**** BEGIN LOGGING AT Mon May 30 02:59:59 2016 May 30 03:04:53 here's my attempt at a nosql schema (firebase): http://pastebin.com/UDA6pB9f May 30 03:05:01 any comments? Am I doing this right? May 30 04:14:51 g00s: https://github.com/slightfoot/android-material-comments May 30 04:15:24 * g00s gets popcorn May 30 04:15:55 see the gif on the readme? May 30 04:16:01 is that what you kinda wanted? May 30 04:17:16 yeah thanks Napalm , reading code May 30 04:17:20 oh didn't know about RecyclerView.NO_POSITION; May 30 04:17:56 parsing out binding stuff - i need to learn that sometime though .. May 30 04:18:17 Napalm did they make any announcement about data binding at i/o ? May 30 04:18:25 yes May 30 04:18:37 https://www.youtube.com/watch?v=DAmMN7m3wLU May 30 04:18:40 Advanced Data Binding - Google I/O 2016 May 30 04:19:27 yeah i saw that, just wondering if any new features May 30 04:19:39 i'll have to do data binding 101 first :P May 30 04:19:42 yea, two-way data binding May 30 04:19:48 ah yes May 30 04:19:53 lamdas without need for java 8 May 30 04:20:01 actually i use that in this May 30 04:20:08 https://github.com/slightfoot/android-material-comments/blob/master/app/src/main/res/layout/item_comment.xml#L29 May 30 04:20:48 ah ok so you needed to make your own Item Animator May 30 04:21:02 I just extend the default one May 30 04:21:38 so you are one of those May 30 04:21:39 { May 30 04:21:41 } May 30 04:21:43 guys May 30 04:22:00 just for top level May 30 04:22:15 comes from my c/c++ days i find it easy to see methods over logic May 30 04:24:57 Napalm so then the selector doesn't need android:enterFadeDuration="..." May 30 04:24:57 android:exitFadeDuration="..."> ? May 30 04:25:12 it can May 30 04:25:26 i am using selectableItemBackground May 30 04:25:32 so no need for a custom selector May 30 04:25:37 unless your referring to something else May 30 04:35:35 no sql is fucked May 30 04:35:40 I don't think I like it lol May 30 04:44:22 p_l dragorn https://mobile.twitter.com/laginimaineb/status/737051964857561093 May 30 05:21:03 Is there a particular layout that is good for grouping together two fragments, one of which is smaller and floating above the other? May 30 05:34:14 fraktor you can look at BottomSheet in support lib May 30 05:43:22 hi. I added a new activity, but misspelt it, so I renamed it and all the references everywhere except in the manifest file. It keeps reverting my changes. What should I do? May 30 05:45:53 I'm using AndroidStudio. Is it to blame? May 30 05:46:45 makara: delete the project and start again May 30 05:46:47 clean project, refactor once again May 30 05:47:31 g00s: What I have is a SupportMapFragment, and I would like to put a search bar (a SupportPlaceAutocompleteFragment) along the top edge. How should I go about doing that? May 30 05:48:54 gordon_, I cleaned project, but refactor>rename not available so I just edit it. As soon as I make project again it reverts back to previous spelling May 30 05:49:23 you probably renamed .class file not .java May 30 05:59:17 gordon_, https://drive.google.com/open?id=0B33_0C-jGlU-OGZxQVR3X3YweVE May 30 06:02:33 clean and correct name in manifest May 30 06:02:46 also, why do you have two manisefs open ? May 30 06:06:32 gordon_, I get an error on cleaning https://drive.google.com/open?id=0B33_0C-jGlU-TzhKc3RmZHdJY1k May 30 06:06:36 Under what circumstances would getViewport on a place return null (according to the docs, this may happen if the size of the place is not known). May 30 06:06:54 fraktor: if the size of the place is unknown May 30 06:06:59 makara: you're smissing string in values.xml May 30 06:12:04 gordon_, ok, the string was always there, but the debug/manifest also had it wrong so I had to change it there too. Now it builds. May 30 06:16:39 don't know why clean project didn't delete debug/manifest May 30 06:17:37 clean project seems like a new feature https://hedgehogjim.wordpress.com/2013/09/25/how-to-clean-an-android-studio-project/comment-page-1/ May 30 06:18:51 Is there a way to show a title pointing to a particular location without creating a marker? For example, I want to be able to search for a place without creating a new marker there. May 30 06:29:43 if it points somewhere, it's a marker fraktor May 30 06:30:05 alright, thanks. May 30 06:31:17 any of you use Basecamp May 30 06:36:02 im trying to disable missing translations but whatever i do. it still doesnt work. May 30 06:36:21 adding tools:ignore="MissingTranslation" > doesnt working. disabling and changing the status of missing translations to warning May 30 06:36:33 still comes up as an error its acting like my settings arent applying May 30 06:37:26 what do you mean by missing translation? May 30 06:37:36 when you have a string that you haven't translated yet? May 30 06:37:48 Error:(14) Error: "action_sweep_wallet" is not translated in "el" (Greek), "es" (Spanish), "it" (Italian), "ja" (Japanese), "ru" (Russian), "zh" (Chinese) [MissingTranslation] May 30 06:37:52 this is what i mean :D May 30 06:37:54 ahh May 30 06:38:06 i havent translated any of the strings its saying as its not my src code May 30 06:38:19 Choose your goal May 30 06:38:35 alright May 30 06:39:19 extrememist: 'action_sweep_wallet', is this a crypto currency wallet? May 30 06:40:15 Vainglory: yeo May 30 06:40:19 yep * May 30 06:40:23 extrememist: mind if i pm you? May 30 06:40:29 go ahead May 30 06:48:47 hmm i have a feeling its not going to work Odaym May 30 06:48:55 because some strings are translated but others arent haha May 30 06:49:07 that's precisely why that directive exists May 30 06:49:20 upon package for release you get the "you still haven't translated this and that" error May 30 06:49:50 used for exempting certain strings from the translation check May 30 06:49:53 but problem is how am i meant to release it ? May 30 06:50:07 you're asking how to release an app to the store? May 30 06:50:16 no im trying to make the signed apk May 30 06:50:19 and its throwing that error May 30 06:50:24 yea May 30 06:50:37 and if i add translatable="false" May 30 06:50:39 you set translatable=false on the strings that it's complaining about May 30 06:50:45 that's what I do when I get that error May 30 06:50:50 i did May 30 06:50:59 but problem is now el/strings.xml May 30 06:51:09 is complaining because received_from is set to translatable="false" May 30 06:51:25 what's the complain say? May 30 06:52:10 one moment May 30 06:52:23 Error:(103) Error: The resource string "received_from" has been marked as translatable="false" [ExtraTranslation] May 30 06:52:31 yes, and? May 30 06:52:39 παρελήφθησαν από is the string its complaining about May 30 06:52:41 it cannot be stating a fact, it has to have a "but ...." May 30 06:53:15 which is now stopping me from compiling/building apk May 30 06:53:38 ah ok, you set it to translatable=false somewhere yet you translated it May 30 06:53:50 well you can't expect to have translated half of this and some of that and a little of this May 30 06:54:03 i didn't translate any of it May 30 06:54:05 its from github May 30 06:54:05 at least be consistent and don't translate what you said you wouldn't translate, and translate what you said you would translate May 30 06:54:06 heh May 30 06:54:29 then open an issue about it May 30 06:54:33 https://github.com/Coinomi/coinomi-android is the main src i cloned from May 30 06:54:33 tell the person who made it May 30 06:54:45 but yet they've got it released on google play Odaym May 30 06:55:02 doesn't mean that they took that code as is and pushed to github May 30 06:55:15 because that's impossible, there's no magic trick that you can do to avoid this problem you have May 30 06:55:18 but i;ve built apks from it before and i havent had that error May 30 06:55:29 the error is clear man May 30 06:55:31 All the apps that come bundled with my phone that create a notification that goes over the lock screen (phone app, alarm clock app) have a consistent look and feel. Is that a samsung only thing, or is that a cross-flavor thing that I can use with an intent? May 30 06:55:43 and i dont know other than what i said May 30 06:55:51 good lups May 30 06:56:20 https://github.com/Coinomi/coinomi-android/issues/97 May 30 06:56:26 he's having trouble building too :P May 30 06:57:09 oh wow thats "helpful" May 30 06:57:26 how can i just disable missign translations globally ? May 30 06:57:27 yea he really explains his issue May 30 06:57:28 :P May 30 06:57:42 it's a lint issue May 30 06:57:58 you looked at this thread? http://stackoverflow.com/questions/12590739/avoid-android-lint-complains-about-not-translated-string May 30 07:02:24 doing things like they say aka, disable inspections it doesnt disable anything ? May 30 07:02:28 because the errors still show May 30 07:02:49 I'd go with that bottom answer that has 40 May 30 07:03:18 regardless of how much upvotes actaully, its just to visually spot the answer im talking about May 30 07:03:30 does the same thing errors dont disable. May 30 07:03:55 it works here when I set lint options in that way May 30 07:07:58 http://pastebin.com/H52e4Wvy Odaym May 30 07:08:36 you placed the directive in the wrong place May 30 07:08:44 keep fucking around with it, you'll get it May 30 07:09:41 oh okay May 30 07:09:41 xD May 30 07:11:58 yay it worked :D May 30 07:16:39 gj May 30 07:23:32 ugh, I hate this freelance gig that I have stuck on my tail, just wanna finish it and get it over with May 30 09:06:44 Hi foks. If I have a service that makes an HTTP request in a thread and a third party activity calls my service, must it call my service in a thread to make use of this HTTP functionality? May 30 09:12:24 Did someone have problems with (Android Studio) AVDs >= 6.0? I get only black screen with 6.0 x86 system images. May 30 09:13:39 An_a_coda, if its an intent service, they run in a seperate thread by default May 30 09:14:05 if it is not an intentservice, you should create a thread in your service May 30 09:16:15 danijoo_: It's a bound service May 30 09:17:15 danijoo_: In my service I do have the HTTP request run in its own thread and return with an interface callback, I didn't know if doing this would block the bound activity May 30 09:21:43 Anyone experienced crashes in WebViewDatabase.initDatabase(...) on app startup? Getting lots of reports, particularly from 4.0.4 devices. It's all SQLite exceptions of different sorts. May 30 09:22:50 I'm guessing either the phones ran out of internal storage, or it's a concurrency issue. May 30 09:29:29 An_a_coda, you should do the request in another thread. May 30 09:31:17 Greetings May 30 09:43:47 What is the best way to make a service available to third party apps? May 30 09:44:05 The service will obviously be exported and run in its own process May 30 09:44:26 I don't think what I'm building is doing it right May 30 09:45:00 then you are all set May 30 09:45:35 How do I let third party apps use my service? May 30 09:45:39 android NDK problem: https://gitlab.com/madresistor/libcsv/blob/android/libcsv.c#L23 https://gitlab.com/madresistor/libcsv/blob/android/android/jni/Android.mk and error is http://paste.debian.net/hidden/6303b07b/ May 30 09:45:47 An_a_coda, exporting it is enough May 30 09:45:51 I let them start it, I let them bind to it, I let them use AIDL? May 30 09:46:07 I am confused by where the rubber actually meets the road here May 30 09:46:17 How do they give my service something to do May 30 09:46:33 the same way you do it May 30 09:46:50 An example would be infinitely more helpful please May 30 09:47:11 im done -std=c99 but still "___STDC_VERSION__ >= 199901L" do not succeed May 30 09:47:24 i have passed May 30 09:49:48 How do the clients actually get to be using my service? I let them start it? I let them bind to it? I let them use AIDL? May 30 09:50:03 yes May 30 09:50:08 Yes to which? May 30 09:50:14 all of them May 30 09:50:39 I know they are all viable options, perhaps if I told you my requirements you could suggest the best approach May 30 09:51:43 I want to make it as easy as possible (easy = least code needed + most work taken care of for them) for the third party app to use my service. My service will be doing HTTP requests and returning results May 30 09:52:09 use an intent service May 30 09:53:10 The third party app does not need to start the intent service in a new thread as I am doing blocking network operations? May 30 09:53:26 IntentServices are on their own thread by definition May 30 09:53:31 only normal services arent May 30 09:54:18 Is it possible to expose the service in multiple ways? In the future I could allow it to be started as intent service but also say make use of AIDL for something else in future? May 30 09:54:54 in theory yes since IntentService extends Service. But ..dont May 30 09:56:06 I fear with what I've done, an intent service would be too problematic to change everything thus far. According to my "easy" definition above, what do you think would be the second best approach? May 30 09:56:58 You want to hear from me to use a normal service but I cant say that ;) May 30 09:57:13 doing one time httprequests is a job for intentservice May 30 09:57:19 At the moment it is just extending Service May 30 09:57:29 Maybe if I gave some more info it would help explain May 30 09:58:33 maybe ;) May 30 09:59:22 The service is quite long-running, it has a companion activity in the same app which can use the service to do all things the service provides but I wish to expose a limited subset of its functionality to third party apps to use (and I wish to make that exposure as easy as possible for the third party apps). The service usually has a stream of tasks to get on with but will schedule itself for an alarm receiver to check again when it has nothing to do May 30 10:00:48 sounds very much like you created a god object May 30 10:01:11 Thanks, if I didn't already feel like I had created enough gloom for myself... May 30 10:01:41 I will add that the service isn't massive, but it is busy May 30 10:02:11 your service is doing a lot of things and you should try splitting that up May 30 10:02:28 doing something repetivly with alarm manager is a single task. May 30 10:02:33 Well more doing the same few things frequently May 30 10:02:56 if you have 2 subsets (1 exposed, 1 not), those shouldnt be in the same service May 30 10:03:18 As it stands at the minute the existing Service and its companion activity (the companion activity is used mainly to manage the service) are working fine, it's just trying to expose some of this to third party apps May 30 10:03:22 at least thats how i would do it May 30 10:03:52 Hmm that is a thought May 30 10:04:03 I think if it was done from scratch that might be what would be done May 30 10:04:34 I am being really hassled right now by the bean counters to get something working for a third party relationship they decided to throw at me/this May 30 10:05:32 And quite frankly this third party is stupid so if it's not easy for them to do they will moan about me May 30 10:47:56 hrmm.. I have a library which is attempting to use getFilesDir() to write some data in the app’s internal storage.. but I’m getting FileNotFound exception.. May 30 10:48:05 might I have a context issue? May 30 10:51:29 openFileOutput() is the culprit May 30 10:59:13 Hi. When I generate a signed APK file from my project I get a "NullPointerException: null" message in my Event Log with no option to trace it's source and cause. Anyone got an idea what this might be and how it might affect my APK file? May 30 11:45:35 Hello, for some reason when I put a scroll listener on a recyclerview, the callback isn't called. any idea what I'm doing wrong? http://pastebin.com/FPNKBjQy May 30 11:52:13 hi May 30 11:53:10 i'm trying to run the command "repo init -u https://android.googlesource.com/kernel/manifest" May 30 11:54:02 but it fails with message: fatal: manifest 'default.xml' not available May 30 11:54:33 so how do you get android kernel using repo? May 30 12:03:39 Is there a way to simulate internal storage full in either AVD or Genymotion? May 30 12:04:53 snowpong, i dont think so. id just put a huge blob on the device via adb to fill it May 30 12:05:17 danijoo: OK May 30 12:20:59 what's the meaning of android:windowDrawsSystemBarBackgrounds May 30 12:21:51 What happens when I set it to true? May 30 12:22:47 Is it possible to get logcat data from a Beta apk running on my device? I'm experiencing issues on the signed Beta APK version that isn't present when simply running the app from my IDE May 30 12:22:49 Things that are described in the documentation I'd say. May 30 12:26:07 Hey, guys is the right place to ask for KVM emulation in android studio? May 30 12:40:48 danijoo: hot tip for filling it up, just run: cat file1 >> file1 May 30 12:40:59 danijoo: discovered by mistake :D May 30 12:42:30 snowpong, hot tip to make it even faster: `dd if=/dev/zero of= bs=1M count=` ;) May 30 12:42:53 to fill a file with count mb of random garbage May 30 12:46:55 Im using ProgressDialog in a fragment.. what do i put as the context? May 30 12:48:31 nvm got it aha May 30 12:57:05 danijoo: neat, however bs= doesn't seem to take any qualifiers like M etc. here on my API16 image - guess they are running some simple version of dd May 30 12:58:43 Since I'm not allowed to upload an APK into Beta with debuggable set to true, how can I in some manner debug my signed APK file? I'm tired of guessing in the dark and end up with versionCode's above 50 May 30 12:59:10 why do you need play store for debugging? May 30 12:59:57 danijoo: I need to test my IAP implementation, and it's only possible once it's been released on the market in Beta/Alpha stage May 30 13:00:27 Bernzel_, if you release to beta, an unsinged debug version on your phone sharing the versionCode works to iirc May 30 13:00:32 too* May 30 13:02:17 danijoo: I'm not sure what you mean. So if I upload a versionCode 20 apk to beta, I can run that same versionCode through my IDE to my phone ? May 30 13:02:35 sure May 30 13:06:08 danijoo: really, then I gotta try that. May 30 13:11:28 Good morning May 30 13:25:43 Hi guys, if I'm in Android Studio 1.5.1 and want to upgrade to 2.1 I have to uninstall and install the new one? (I'm in OS X) May 30 13:26:08 when you say uninstall you mean delete the app ? May 30 13:26:23 yeah May 30 13:26:24 cause you will still have prefs etc May 30 13:26:31 so it's not a total uninstall May 30 13:26:49 and if you were smart the SDK folder would be outside of AS May 30 13:26:58 but yeah I think you have to May 30 13:27:13 mmmm get it. BTW I've clicked on check for updates now again and is offering me to install it. Weird it didn't on the first try May 30 13:27:34 maybe this does the update preserving all May 30 13:27:41 will see :) May 30 13:27:55 StingRay_, it will ask you on first launch if you want to try to import the old settings or use new ones. because different AS versions dont store prefs in the same folder May 30 13:28:28 indeed is asking me about that import May 30 13:30:59 alright all went well. I'm on 2.1.1 thanks for the input StingRay_ and danijoo :) May 30 14:07:19 What is the reason variables have to be declared final to be used in an overridden run() of Runnable? May 30 14:10:34 anyone here? May 30 14:11:12 many people are here I would think May 30 14:14:35 im new to development. I'm currently working with android studio and have the following SDK platforms installed: N Preview (API level N), 6.0 Marshmallow (API level 23). can someone help me explain whether i need to install the other SDKs. and if so, how does this differ from the "minimum SDK" when setting up a new project, and the compiled SDK version May 30 14:18:27 you only need newest (non-preview?) sdk May 30 14:19:17 you should always target newest sdk, the minsdk is minimum android version you want to support May 30 14:19:43 itll mean some functions will be unavailable since they were added in later versions May 30 14:19:56 Kake_Fisk, managing mutable fields across threads would be a mess May 30 14:20:17 Ah, I see May 30 14:20:17 Ashiren, thank you May 30 14:21:08 not only that. all local variables outside annonymous class must be final May 30 14:21:20 Kake_Fisk, better answer here: http://stackoverflow.com/a/4732617/1435058 :) May 30 14:23:23 1 more question. I'm currently working with LocationManager to get the location of the phone. does anyone have experience with that? May 30 14:23:27 Ah, is that also a thing May 30 14:24:30 my async task is getting a runtime exception in doInBackground.. im trying to parse a string array into a url string :/ May 30 14:24:33 i can't seem to make to make my app connect to get the gps information. a lot of the information i am looking at online is already outdated. it seems like the newer version require a permission check, but not sure how to go about implementing it correctly May 30 14:24:33 Kake_Fisk: azgul No, this requirement has nothing to do with multithread. It's a requirement from the language itself May 30 14:25:08 kael03: for the time being target sdk 22 May 30 14:25:19 protected String[] doInBackground(String[]... params) {... } and im going String url = "..." + params[0] + "..." + params[1] May 30 14:25:19 since sdk 23 there is a mumbo-jumbo with permissions May 30 14:25:37 but its not liking params[...] May 30 14:25:59 any more details on the exception? May 30 14:26:10 Huh? May 30 14:26:11 me? May 30 14:26:17 What does target 22 help with? May 30 14:26:19 thornekey, will something like this help?: "String query = URLEncoder.encode("apples oranges", "utf-8"); May 30 14:26:20 " May 30 14:26:34 maybe you're not encoding it correctly? May 30 14:26:42 kael03, found https://developer.android.com/training/permissions/requesting.html yet? May 30 14:27:55 Mavrik: so far apps targeting lower sdk are asked permissions on install. its a temp solution for someone new to android developing May 30 14:28:11 ashiren and mavrik, thank you May 30 14:28:28 Ashiren, no, it's not. May 30 14:28:35 Stop fucking telling people how to build broken applications O.o May 30 14:29:35 no, the sdk23 is broken ~.~ May 30 14:30:20 No, it most certanly isn't. May 30 14:30:50 plot twist: Mavrik works for google May 30 14:37:49 sorry net is being real bad. not sure if anyone answered May 30 14:38:29 thornekey: http://imgur.com/jacoj May 30 14:39:05 i supplied it :o May 30 14:39:23 Nope May 30 14:39:26 oh May 30 14:41:59 http://pastebin.com/9Q5QwKs4 SimonVT, this? May 30 14:42:22 so the problem, i believe, is the string array May 30 14:42:27 arrays* May 30 14:42:34 thornekey: how do you execute the asynctask May 30 14:42:48 i bet you supply it just one string May 30 14:42:51 You pass 1 value and try to access value 2 May 30 14:43:08 AddEventAsyncTask m = (AddEventAsyncTask) new AddEventAsyncTask().execute(addEvent); addEvent is a string array May 30 14:44:51 no whats in that addEvent May 30 14:44:58 Do you know what varargs are? String[]... is an array or string arrays May 30 14:45:04 You're only passing 1 string array May 30 14:45:20 array of string arrays* May 30 14:45:31 now i see... String[] ... arg :D May 30 14:45:50 thornekey: also you should be aware of the line Caused by: java.lang.ArrayIndexOutOfBoundsException: length=1; index=1 in logs May 30 14:46:38 String[] addEvent = {string1, string2, ... }; May 30 14:46:42 is my structure May 30 14:47:10 oh i see you saw that, Ashiren May 30 14:47:30 i am aware of that line too :D i just dont know whats wrong with my structure May 30 14:48:19 oh boy May 30 14:48:29 sorry ahah May 30 14:48:54 lets try String url = "..." + params[0][0] + "..." + params[0][1] and see if it works May 30 14:49:02 then think whats wrong May 30 14:49:09 oh so its an array in an array May 30 14:49:15 eeyup May 30 14:49:22 but where did i do that May 30 14:49:23 :O May 30 14:49:23 Hi everyone. I'm trying to use Espresso's IdlingResources, however tests do not wait for them to become idle. It happen if I register the resource in @Before or @Test method :/ Am I misunderstanding the concept of this? May 30 14:49:59 in (String[] ... params). ... makes it array May 30 14:50:07 oh May 30 14:52:31 hm, woke up and AS was easting 100% cpu May 30 14:52:39 ok i removed that arrauy May 30 14:52:42 array** May 30 14:52:44 thanks :) May 30 14:54:37 g00s still on a mac ? May 30 14:56:30 g00s: Moral of the story: don't wake up May 30 14:57:49 CedricBeust lol May 30 14:58:06 hey StingRay_ , yeah still am. how is your app ? May 30 14:58:38 app is cool, working as android dev now so my career switch is pretty complete May 30 14:59:31 oh nice May 30 15:01:12 SimonVT CedricBeust during this last i/i - i can't find it though - i thought either dave burke or somebody else said they added new int and float property animators? or something like that, do you guys remember that ? May 30 15:01:17 last i/o May 30 15:01:51 g00s I do May 30 15:02:02 remember it from whats new in android talk May 30 15:02:12 I think...:) May 30 15:02:38 StingRay_ ok thanks, i will go over it again ... i thought those things always existed, do you know what they are for ? May 30 15:03:31 I would suspect that they never had primatives ? May 30 15:03:37 but never used them tbh May 30 15:04:18 sorry for being confusing, i'm not good in animation area, but came across something now in recyclerview that made me wonder about what was said May 30 15:21:54 how can i check if output = new FileOutputStream(fileOutput) failed? May 30 15:24:24 <_0xbadc0de> hi May 30 15:25:03 <_0xbadc0de> Correct me if I am wrong but in order to handle different events (or in android parlance, "intents") one usually implements the method onMessage() from main May 30 15:25:19 <_0xbadc0de> the problem is I have two different intents I want to implement May 30 15:25:39 <_0xbadc0de> one is associated to the about button and the other to a verify button May 30 15:25:43 <_0xbadc0de> how do I handle this? May 30 15:28:14 Hi everyone. I'm trying to use Espresso's IdlingResources, however tests do not wait for them to become idle. It happen if I register the resource in @Before or @Test method :/ Am I misunderstanding the concept of this? May 30 15:31:05 google maps, now with more ads .. woohoo ! May 30 15:31:49 hello May 30 15:32:05 anyone uses GCM diagnostics? May 30 15:32:48 google maps has ads? May 30 15:33:04 StingRay_ anything at i/o catch your eye ? May 30 15:33:43 Zharf http://www.theverge.com/2016/5/24/11761794/google-maps-promoted-pins-announced-ads-coupons May 30 15:34:44 that doesn't answer my question May 30 15:36:01 I've never seen ads on google maps so saying it'll get *more* of them makes no sense May 30 15:37:07 Zharf you should know by now, not everyone experiences google the same way ;) May 30 15:38:10 sure, but I wanted an example of current ads May 30 15:39:18 Hey guys, newbie here. Can someone point me in the right direction? May 30 15:40:04 rc_enzo its that way May 30 15:40:15 :) May 30 15:40:23 Had that coming :p May 30 15:40:50 I want to test a library among a great number of devices. What's the best place to distribute such test? May 30 15:42:43 Thought i'd ask a subreddit, but not sure which one May 30 15:45:20 Zharf google maps has had local ads for years, so you are in a special bubble May 30 15:45:24 g00s not gone though all of it yet...still I think it was a little dissapointing May 30 15:45:48 g00s google home made no mention of the 2 open standards that are very used in my current home under 'smartthings' May 30 15:45:58 so all in all a bit ...meh May 30 15:46:19 google kinda reinvents stuff :/ May 30 15:46:23 liked the deep linked partial app stuff, on-demand partial app May 30 15:46:49 yeah, the 2 open standards in use currently allow NO tracking or ANON data :) May 30 15:46:54 so maybe thats why May 30 15:47:58 hopefully next year the ARA modular phones will be ready ... i'm curious how that will go May 30 15:48:04 g00s, but what kind of ads May 30 15:48:39 screenshots! May 30 15:49:01 g00s about as good as eveything else thats a fad :) people dream of configurability and modules, but when it comes to it...doubt it very much May 30 15:49:27 good for the 5%'ers I guess May 30 15:49:29 when you make a both iOS and Android project for GCM - must you use the same bundle / package ID in both? May 30 15:49:57 how can i create this folder if it doesn’t exist? Environment.getExternalStoragePublicDirectory(Environment.DIRECTORY_DOWNLOADS) May 30 15:53:56 StingRay_ i bet you knew everything in the theme / styles talk :P May 30 15:55:26 can i create this dir like this? http://paste.ofcode.org/wvfFqn4vZYyYtKySNLBkpe May 30 15:59:43 Hey people! May 30 15:59:52 What alternative to AdMob do you usually use? May 30 16:00:15 ads give you cancer May 30 16:00:18 There are too many networks out there. I'm looking for something with good CPM and good coverage May 30 16:00:43 Zharf, how do you make money out of your apps? May 30 16:00:52 Mattx, dont focus on a single network May 30 16:01:16 Mattx, my clients pay me for them May 30 16:01:53 Zharf, that isn't the way it works for mane of us May 30 16:01:57 many * May 30 16:02:02 danijoo, what do you use? May 30 16:02:23 sure, and if I happen to like an app that has ads, I'll just rewrite it without them May 30 16:02:35 unless it has a paid version that removes ads of course May 30 16:02:55 Mattx, you need to find out which work best for you on your own May 30 16:03:11 I have good exp with Mopub, admob, Inmobi and Chartboost May 30 16:04:38 I think I should be looking for lib that already includes a lot of networks that I can activate/deactivate easily May 30 16:04:48 just today I had an urge to go burn or blow up some ads I saw on my way home from work May 30 16:04:50 otherwise it takes ages to test them all May 30 16:05:08 Know anything like this? May 30 16:05:12 Mattx, look at mopub May 30 16:05:19 I will May 30 16:05:27 they take care of distributing your ads between multiple networks May 30 16:09:56 wtf? a friend of mine just showed me a screenshot of his adsense report May 30 16:10:17 he has an app with an RPM of around $17 May 30 16:10:35 just yesterday, only 32 clicks = $10.84 May 30 16:10:37 how is that possible? May 30 16:11:12 videos and high click rate May 30 16:11:19 or maybe rewarded video May 30 16:11:48 you wont get that for a banner May 30 16:11:50 but I haven't disabled those kind of ads from my adunits May 30 16:12:05 they should also be display on my apps May 30 16:12:15 but my RPM is not even near to $17 May 30 16:12:18 rewarded videos are a different ad type May 30 16:16:04 hey guys, im currently using a combination of an old android phone and the default emulator. I would like to buy a decent phone for development. what do you guys recommend? May 30 16:16:23 Im thinking the nexus, but which version should i get? May 30 16:16:43 I've recently got a nexus for dev, I've had no problems so far May 30 16:16:47 if you have the budget get a 6p May 30 16:17:01 it's nice it has pure android, plus it's not expensive for the hardware it has May 30 16:17:17 +updates May 30 16:17:59 What happened to build tools version 22 ? I only have 23 and 21 and cant seem to install 22. In android studio that is. May 30 16:18:08 damn. 6p is kind of pricey May 30 16:24:34 NeoFrontier i see build-tools 22.0.1 May 30 16:24:58 mmm May 30 16:25:02 *frowns* May 30 16:25:04 but i am using the standalone version. i read they had some issues with AS version May 30 16:25:19 probably because they didn't test it, as usual May 30 16:25:47 for example the froyo sdk was showing up as windows only May 30 16:25:50 :( May 30 16:26:00 danijoo, I'm checking mopub. Do you use all the networks you mentioned from mopub? May 30 16:26:08 yes May 30 16:26:13 nice May 30 16:26:25 some require some custom work though May 30 16:26:50 but you can setup what ads to show from one place, that's great May 30 16:27:17 most adnetworks offer that though May 30 16:27:29 admob offers the same May 30 16:27:35 but the gui is worse imo May 30 16:29:12 My problem is I have to compile for sdk version 22, and had to revert back to older libs, now I have this rendering issue with layouts. May 30 16:30:01 I am not sure if its because I'm using build tools 23. May 30 16:31:31 Any of you guys use the NullView pattern with MVP? May 30 16:31:41 Setting the Presenter May 30 16:31:51 's View field to new NullView when the acitivty disconnects? May 30 16:32:54 As soon as I have an item centered with xml, and I place any item above it, the item above the centered one disappears. (android:layout_above) May 30 16:33:24 It does not do that when I compile with the latest libs and stuff. May 30 16:33:41 but I cant compile with sdk 22 if I use the latest libs. May 30 16:34:46 So I was wondering if the issue might go away if I use build tools 22, but that I cant find in AS. May 30 16:35:33 hi guys May 30 16:35:56 hi May 30 16:36:00 i want to get android kernel source using repo May 30 16:36:06 how do you do that? May 30 16:36:46 the view does not disappear in the layout renderer in AS, only on real devices. May 30 16:37:06 And probably the emulators. May 30 16:37:25 i actually want kernel source for goldfish but there seems to be no manifest.xml there May 30 16:38:52 bytefire: Try #android-root, this channel is for app dev May 30 16:39:08 Whos heard of using the NullView pattern for MVP? May 30 16:39:29 SimonVT: thanks! May 30 16:41:34 hiya folks..when I enable traceview in my app via Debug class as recomended at https://developer.android.com/studio/profile/traceview.html#traceviewLayout I see my MacMini cpu usage spike to super hight numbers, fans kicking in and gradle build going on endlessly...I'm using And Studio 1.5.1. If I remove the tracing, it works just dandy. Anyone else seen this? May 30 16:41:43 Is there a different xml format than android:layout_centerHorizontal="true" to center a view in a layout ? May 30 16:45:30 I wanted to tackle "frames skipped" issue to see if using fusedlocationprovider in my main thread was resulting in "100+ frames skipped" messages and the web told me to try profiler, but this cpu usage issue is giving me grief...any pointers would help May 30 16:49:29 I tried googling "android startMethodTracing cpu spike", but alas May 30 16:49:54 maybe it needs lots of cpu :) May 30 16:50:46 oh...one thing I just realized...if I start it in one method like onCreate() and stop it in another method where I get some result...could that be an issue? May 30 16:51:46 SimonVT: is there a channel for android kernel? May 30 16:52:11 Not that I know of, I just do app dev May 30 16:52:50 how to maintain versioning in different flavours May 30 16:53:12 hckrtst, android traceview profiling is expensive on your cpu May 30 16:53:36 SimonVT: ok thatnks May 30 16:55:04 hckrtst, frame skipped issue simply means you have too much going on your UI thread and the choregrapher is going to drop some to compensate May 30 16:55:46 you should move outside of the ui thread what is blocking and/or expensive on your cpu but does not interact directly with some UI components to fix it May 30 16:56:30 adq: yes...and that's why I wanted to see the timeline panel view so I can see where UI thread might be getting blocked May 30 16:56:50 well, even if traceview is slow, you should be able to see it then May 30 16:57:27 adq: maybe I just need to let it chug for a while...it looked it was stuck in an infinite loop and not launching my app May 30 16:57:28 the thread named "Main" is the UI thread, other threads are not May 30 16:59:18 adq: is there another way to see the bottlenecks without having to use traceview? May 30 17:01:12 you could use drop some log here & there and compare the timestamp, but this is not accurate at all but in many cases it is sufficient May 30 17:01:45 still traceview should not be a big issue, you should fix that and be sure to be able to use traceview May 30 17:01:46 k let me try that...this thing is making me pull my hair out...thanks ;) May 30 17:02:04 and traceview won't create any infinite loop or whatever May 30 17:03:50 I'm going to try reducing the scope of the tracing in my app first to see if it helps...i.e. trace only in a specific method May 30 17:04:37 i doubt this is related, i usually just hit the traceview button in DDMS (which traces everything) and trace everything (not samples) May 30 17:06:39 Can reflection generate classes? May 30 17:13:42 Is it possible to get the location of a user without opening an activity? I need to periodically query the location of the user from the background. May 30 17:22:30 Hey, danijoo told me I was able to debug beta versions via my IDE somehow, I can't seem to make it work though, anyone know of this? May 30 17:37:14 anyone? May 30 18:04:01 is getting the nexus 5 okay for development, or is that too old May 30 18:13:18 Hi. How to verify setResult intent in espresso? May 30 18:57:23 Using the V3 of iap billing library, would it be correct to try/catch the exceptions like this when making a purchase: http://pastebin.com/qrx2Jv3A ? May 30 19:10:31 What's up people? May 30 19:34:02 l May 30 20:34:49 Anyone familiar with MVP here? May 30 20:43:50 drose379, a little. I am learning it. May 30 20:52:57 sup noobs May 30 20:53:32 Hey Guys!!! May 30 20:53:47 I'm new to android development and I have a question May 30 20:54:12 Is anyone here able to help with a variable question? May 30 20:54:26 You have to take a ticket first mate May 30 20:54:36 do !ticket May 30 20:54:40 !ticket May 30 20:54:51 u messing with me May 30 20:55:27 !ticket May 30 20:55:40 * truckcrash is granted a ticket to speak May 30 20:55:50 go ahead truckcrash May 30 20:56:06 !ticket May 30 20:56:11 wtf May 30 20:56:17 try relogging May 30 20:56:25 cmon do I really have to do that? May 30 20:56:26 android-dev561, no he's totally messing with you May 30 20:56:43 lol May 30 20:56:45 public void updateStocks() { ListView listView = (ListView) findViewById(R.id.stockList); String[] items = {"AAPL", "MGT", "DIS"}; arrayList = new ArrayList<>(Arrays.asList(args[0])); adapter = new ArrayAdapter(this, R.layout.list_item, R.id.txtTicker, arrayList); listView.setAdapter(adapter); } May 30 20:56:48 welp May 30 20:56:49 whoa! May 30 20:56:52 how do I paste code? May 30 20:56:55 hold on their cowboy May 30 20:56:56 dont do that though May 30 20:57:01 pastebin? May 30 20:57:12 try pastie.org, pastbin.com hastebin.com or one of the many others May 30 20:58:20 http://pastebin.com/KymNMvPH May 30 20:58:35 What's the equivalent of $variable in Java in this situation? May 30 20:59:06 do what? May 30 20:59:18 android-dev561, are you coming from PHP? May 30 20:59:22 Yes. May 30 20:59:30 create a new string[] May 30 21:00:08 Variables are typed in java. you have to declare the type and then the name. You should go through some basic java tutorials before diving into android May 30 21:00:37 truckcrash: How do you go about disconnecting the View from the Presentr when the view is getting destroyed May 30 21:02:41 drose379, just let the reference fall out of scope or be over-written? what do you mean by disconnect? show code? maybe I still don't know enough to be a help? May 30 21:03:10 In Activity.OnStop or Activity.OnDestroy, you tell its presenter that the view is being destroyed, yes? May 30 21:03:50 drose379, ah yes, that would make sense. May 30 21:04:01 just have call back for it? May 30 21:04:08 So im asking you personally, how you go about doing that May 30 21:04:29 I have a #disconnect method in my Presenter that I call, and in there I set the Presenters reference to the activity to a NullView class May 30 21:04:33 How do you do it? May 30 21:07:09 Ah, I don't have my code in front of me (at work). May 30 21:07:34 you could just have a member bool isViewPresent? May 30 21:07:44 i donno, i feel like I am the wrong person to ask this May 30 21:07:49 Ok, no prob haha May 30 21:08:21 So if I have: m_Text = input.getText().toString(); why does "updateStocks(m_Text);" give me errors? Isn't m_Text already defined as a string? May 30 21:08:46 updateStocks(String whateverYouWantToCallIt ) {} May 30 21:10:27 updateStocks(String m_Text); gives me an error and says "," or ";" expected May 30 21:10:58 Nope May 30 21:15:18 android-dev561 you should really get some basics of java down May 30 21:15:25 will help you tonnes May 30 21:15:34 and help the sanity of others too I would think May 30 21:15:44 metric tonnes - even more than imperial tons May 30 21:18:10 totally off topic and appologies, but anyone familiar with SPI chip flashing ? and have 5-10 min free :) Thought I would ask given the context of the room may bend to this skillset in some cases May 30 21:35:05 so there only the support FragmentPagerAdapter right? May 30 21:35:15 I can seem to find any other than the support.v4 one May 30 21:44:10 i'm getting a NullPointerException from this code -> http://pastebin.com/SmPBXE3T May 30 21:44:19 maybe someone could help me out since im quite new into java May 30 21:44:34 what does the stack trace say? May 30 21:44:41 it will tell you where May 30 21:45:09 its this line May 30 21:45:10 boolean isAdmin = mDevicePolicyManager.isAdminActive(mComponentName); May 30 21:46:01 mDevicePolicyManager is null ? where is it initalized ? May 30 21:47:17 yeah got it now thx May 30 21:58:23 Ive never understood why there is a Theme.AppCompat.Light.NoActionBar but no Theme.AppCompat.Dark.NoActionBar May 30 21:58:24 why is that May 30 21:58:54 dark is the default without the light qualifier May 30 21:59:29 mhm May 30 22:23:25 does it faster to use eclipse to code android than using android-studio itself? i have limited RAM resources May 30 22:40:51 craptalk whats "limited" ? May 30 22:41:10 1KiB of RAM May 30 22:41:17 lol May 30 22:41:22 g00s: 1.8 GB May 30 22:41:32 40B of RAM May 30 22:41:43 ok... I thought 1KiB was his actual response May 30 22:41:43 Enough for 10 whole integers!!! May 30 22:42:31 craptalk, I am not sure how heavyweight eclipse is, but you might be best off at the command line if you are comfortable there May 30 22:42:50 With some Vim and Gradle May 30 22:43:14 either vim + gradle or vim + ant ... May 30 22:43:35 If upgrading is or becomes an option, I'd highly recommend it. Android studio will be a much nicer environment. (coming from someone who spends a fair amount of time in vim) May 30 22:43:36 uh, is ant stuff still included? :D May 30 22:43:43 O.o May 30 22:43:49 i am ok with command line, just explain it here, what should i do? if i use that, how can i test my app? little emulator? May 30 22:44:00 g00s, you can't build anything modern with Ant anymore. May 30 22:44:03 No AAR support. May 30 22:44:09 haha , ok :D May 30 22:44:11 truckcrash: Android is the only thing I use an IDE fo nowadays May 30 22:44:23 g00s, same with Eclipse ;) May 30 22:44:28 Vim is fine for everything else, but Android Studio is fucking amazing May 30 22:45:43 i'm glad AS 2.2 gets the hierarchyviewer, i hated that eclipse monitor shit May 30 22:45:53 hmm May 30 22:46:02 g00s O_o where? i need that May 30 22:46:05 Didn't even notice that :P May 30 22:46:06 was that at io? May 30 22:46:11 Mavrik lol May 30 22:46:14 The new Gradle display is nice. May 30 22:47:20 Mavrik i think its called "layout inpsector" May 30 22:47:24 i can just rename myapplication to soemthing nice even after i did coding? May 30 22:47:32 Yeah, just saw the icons in monitors May 30 22:47:37 Very noticable that. :P May 30 22:52:47 g00s, hrmf, it's not really useful May 30 22:52:54 Hiearchy Viewer still shows better info May 30 22:53:26 hrmf indeed :( May 30 22:55:40 so i have a viewpager and tablayout with each of 3 pages being a recyclerview. Should I use a single fragment/recyclerview and reload the recyclerview with new data everytime a new tab is swiped to? May 30 22:55:45 or May 30 22:55:55 Have 3 seperate fragments with their own recyclers May 30 22:56:57 my issue with option 1 is that everytime you swipe to a new page youll have to look at a progress bar for a few seconds while it reloads May 30 22:57:07 orbyt_ the neighboring views to the visible have to be ready to show, so you can't really reuse one ( i don't think ) May 30 22:57:27 so if you re on tab 1, tab2 has to be 'live' so the swipe can show it May 30 22:57:33 mhm May 30 22:57:46 and if you are on tab2, tab 1 and 3 have to be ready May 30 22:58:33 do you know of any way to implement this with at least some reusable components? 3 fragments and 3 recyclerviews seems a bit much for what it should be May 30 22:58:45 although, if you have multiple recyclerViews, you can share the recycler pool if they are all the same items May 30 22:59:02 but i'd only do that if there were lots of things May 30 23:08:08 interesting, i git reset --hard and then AS hung. i think somebody else mentioned that the other day May 30 23:09:59 :O May 30 23:11:47 craptalk Leeds can mentor you in the ways of android vimming :D May 30 23:20:23 Anyone ever created a custom annotation / processor before May 30 23:38:03 drose379|brb: Yes https://github.com/cbeust/version-processor May 30 23:39:20 Hello! I'm making an application that needs to create calendars via CalendarContract. I've done it, but... do I have any way to make changes to the calendars that I create with my app? (Namely, change name/description.) May 30 23:43:04 drose379|brb this is a good guide http://hannesdorfmann.com/annotation-processing/annotationprocessing101 May 30 23:43:15 Thanks g00s May 30 23:43:32 i don't think he wrote part 2 yet ... May 30 23:44:28 I just wanna make something to generate a class at compile time that implements an interface May 30 23:44:42 drose379|brb and i haven't seen this video https://www.youtube.com/watch?v=dOcs-NKK-RA&feature=youtu.be May 30 23:45:14 Anyone have much experience with espresso when you're testing programmatically generated views? May 30 23:45:42 Ill check that out, thanks g00s May 30 23:47:23 I have a scrollview with a bunch of linearlayouts, I click one to get to the next activity, however it is not on screen until you scroll to it. I've tried using ViewActions.scrollTo which just gives me a resource not found exception. But if I manually scroll then run the 'click' part of the test, the test runs absolutely fine. May 30 23:47:27 left me very confused :S May 30 23:54:30 so you know with a recyclerview when your putting margins between your items May 30 23:54:54 and if you want 12dp margins u do something like marginTop = 6dp and marginBottom = 6dp May 30 23:55:11 but the first item doesnt have anything above it so the margin is only 6dp May 30 23:55:17 is there an easy workaround for this? May 30 23:59:27 ah cliptopadding works May 31 00:05:48 /join ##java May 31 00:05:50 Oops May 31 00:15:30 why would a seekbar look to fill the width of its parent in the preview but when i run it there's some random margin on the left and right? no margin is being added anywhere in code. May 31 00:20:29 /msg NickServ identify hunter2 May 31 00:20:43 Hate when that happens May 31 00:23:37 I'm looking to buy a new phone for app development and am deciding between 6p vs s7 - any reason to go one way or the other ? May 31 00:26:42 i install JDK using terminal and it is already installed, but when i put JDK path[$:/usr/lib/jvm/openjdk-7] to my eclipse, it won't proceed the steps, why? May 31 00:26:53 am i missing something? May 31 00:31:37 can anyone help me please? May 31 00:45:35 Where do i buy a good dev 6p? May 31 00:52:47 i wouldn't buy one from anywhere but googles store May 31 00:53:05 There's enough ways to break phones lately and try to offload them on ebay, etc May 31 00:53:24 maybe one of the bigger name phone refurb/recycler/upgrade companies May 31 01:37:06 I'm looking to buy a new phone for app development and am deciding between 6p vs s7 - any reason to go one way or the other ? May 31 01:40:42 i'd go for a samsung, not coz i like them, but because they seem to have interesting "quirks" May 31 01:40:59 bankai_: what quirks? May 31 01:41:12 bankai_: Seems like the base hardware is better on the s7 May 31 01:41:42 i think google messed up by not using moto to make nexus devices May 31 01:43:35 codepython777: anyway, you can emulate a Nexus, not a Samsung, keep that in mind May 31 01:44:11 codepython777 do you have other nexus devices ? May 31 01:58:30 spudowiar: seems like i am paying $380 for a 6p vs a $430 for a s7. The hardware on the s7 seems far superior spec wise May 31 01:58:40 g00s: i've a nexus tablet May 31 02:56:18 hello May 31 02:56:53 I've been using http://stackoverflow.com/questions/6645537/how-to-detect-the-swipe-left-or-right-in-android to detect swipe events May 31 02:57:07 using the type of techniques used in that article May 31 02:57:24 my question though - i have a custom list view item. basically a rectangle with some text in it May 31 02:57:39 how can i physically get that rectangle to move left on a right-to-left swipe **** ENDING LOGGING AT Tue May 31 02:59:58 2016