**** BEGIN LOGGING AT Tue May 17 02:59:58 2016 May 17 03:00:09 logicp: https://gist.github.com/gabrielemariotti/4c189fb1124df4556058 actual source for an implementation of May 17 03:09:47 https://github.com/google/iosched/blob/master/android/src/main/java/com/google/samples/apps/iosched/ui/SimpleSectionedListAdapter.java specifically you're looking for getItem, getItemViewType and getViewTypeCount May 17 03:14:31 sweet, been waiting for something like this https://events.google.com/io2016/schedule?sid=f2c824f1-0bef-e511-a517-00155d5066d7#day3/f2c824f1-0bef-e511-a517-00155d5066d7 May 17 03:15:01 live streamed too ;) May 17 03:17:23 I asked this earlier, didn't really word it that well, how can I get output stream of a socket to another class? I have a context menu class, and have set of commands I want to send to connected client. May 17 03:18:20 g00s I literally was just looking through the schedule of events to see what I will be watching May 17 03:18:35 I have different ways of doing it but they all result null. May 17 03:21:48 I had signed up for that one as well. It looks like it should be good. The one I am look is "What the fragment" May 17 03:22:17 yeah i'll do WTF also :D May 17 03:42:28 why do all methods of a blank class have @Override? Where are the functions they are overriding? May 17 03:42:44 I mean of a blank *Activity May 17 03:43:01 the methods upon which they say overridr May 17 03:43:07 raj press command and click the method name May 17 03:43:22 thanks Ping_2_Ur_Pong May 17 03:43:36 I believe you ponged my ping May 17 03:44:07 so it's just there to make sure I define those functions May 17 03:44:15 or something May 17 03:44:46 raj time to learn java, or something ! May 17 03:44:57 g00s, that's what I'm doing or something May 17 03:45:25 raj also don't forget #java for basic java questions May 17 03:45:58 fair enough, but we have rapport May 17 03:47:06 lookup override vs overload. Once you understand that you'll get why. May 17 03:48:56 well actually it's just the annotation he's asking about I think. The annotation is just there to make sure that you're actually overriding something. It would work without @Override, too but it's better to have it for some helpful hints May 17 03:49:23 but yeah read about inheritance and interfaces in java raj May 17 03:50:11 thanks grekkos, that's what I understood from it, but ya I'm reading something about overloading and overriding May 17 03:51:03 in response to what you said, @Override isn't there to make sure you define those functions, it's there to make sure those functions are redefining existing functions higher up May 17 03:51:30 but more suitable for #java like those other guys mentioned May 17 03:54:55 my computer is so much happier when I'm not running android studio May 17 03:54:59 it's like it has freedom to move May 17 03:55:46 Ping_2_Ur_Pong, overloading is very cool (though I hope to never use it), you just saved me from being lost in the future reading someone else's code May 17 03:55:51 thanks May 17 03:57:56 overloading is okay you just have to be careful May 17 03:59:30 forgive me, but it seems dirty May 17 04:00:14 is there a simple way to test push notifications? May 17 04:00:30 I guess I really only need to test the local notification but sill May 17 04:00:41 you can use a curl script to push notifications May 17 04:00:47 oh hmm May 17 04:00:50 that sounds familiar May 17 04:01:06 how does that work exactly, where would I be curling to May 17 04:01:16 I have the script I wrote on another computer, I can grab it for you if you need May 17 04:01:32 you mean GCM or just push notifications? May 17 04:02:49 well it'd be great to even just fake receiving the notifications on the device. right now I'm trying to test the local notification specifically but if there's a faster way to send a "push notification" that would be cool... Like I know you can telnet in and make phony phone calls to your phone May 17 04:03:47 like a way to do it without really sending a push if possible, to just make the phone receive it instantly May 17 04:04:50 am broadcast May 17 04:11:48 grekkos http://hastebin.com/babiqubeku.md May 17 04:14:12 hi i'd loke get all calendar event May 17 04:14:31 i write this code http://pastebin.com/1pApJyEY but array is 3 sizes May 17 04:15:53 if I have a function `public void sendMessage(View view){/*stuff*/}` within `public class MyActivity extends AppCompatAcitvity {}`, do I need to import View? May 17 04:17:13 raj, if I had your a book in english, japanese and russian, do you need a translator to understand how the russian and japanese alphabet work? May 17 04:17:45 not getting your analogy May 17 04:17:50 ie... can you understand what those parts of the book say, what they can do, how they work without some type of reference. May 17 04:18:34 no May 17 04:18:41 you don't? May 17 04:18:54 how can I read languages I don't know without a translator? May 17 04:19:00 that's the point May 17 04:19:13 now apply that to programming May 17 04:19:24 still don't get the analogy May 17 04:19:40 think it through, I would very much not like to have to spell it out. May 17 04:19:57 You have the pieces, think it through. You yourself have stated the most important part. May 17 04:20:33 I don't see how this applies to importing parameters May 17 04:20:50 what are you doing when you import? May 17 04:21:17 getting the View object May 17 04:21:55 but I expect the View object to be imported wherever the sendMessage function is called May 17 04:22:10 more generally, when you import android.support.v7.app.AppCompatActivity what are you saying? May 17 04:22:32 Hi. If I want to create my own terminal application, what android features should I study. I haven't been able to ask google that in a way that lead me to the right knowledge path. May 17 04:22:35 I'm pulling in that Class and all it's methods May 17 04:22:40 you're thinking specifically, you need to learn the general topic. You don't get what importing is for, that is what I am trying to cover May 17 04:22:43 k May 17 04:22:55 so, why would you have to import View? May 17 04:23:17 so it can be used May 17 04:23:30 somebodystopher what do you mean terminal application? Android terminal application? May 17 04:23:35 raj, you have your answer. May 17 04:23:54 or java terminal application? May 17 04:23:55 wordsToLiveBy, I ran the app before without importing View, and all of a sudden it's asking me to import it May 17 04:24:19 raj, think through the scenario we just covered. May 17 04:24:27 additionally, it doesn't say to import View anywhere here: https://developer.android.com/training/basics/firstapp/index.html May 17 04:24:42 If you aren't making usage of a View object, you don't need reference to its class. May 17 04:25:09 the documentation is very light on specific details. It gives most of the parts, but often leaves out simple stuff. May 17 04:25:14 it's being used to define the type of a parameter in a function's definition May 17 04:25:19 raj, I am trying to get you to think this through for yourself. May 17 04:25:27 raj: they generally leave imports out of code snippets for brevities sake May 17 04:25:42 teasp00n, they included all the others May 17 04:25:53 wordsToLiveBy: my goal is to create a terminal emulator application. a console on the android device. May 17 04:26:06 how would you know what that type means without importing, how would you know the difference between importing a View and a Ball or a Bitch? May 17 04:26:09 also, I ran the app already without having it imported, and now all of a sudden it's saying `cannot find symbol class View` May 17 04:26:14 pfn: am broadcast? May 17 04:26:43 raj: probs a mistake then unless the snippet was in a class package local to view May 17 04:26:47 oh oh May 17 04:26:49 i get it :) May 17 04:27:00 raj, dude I have grabbed your hand and walked you down the path to understand what you need to, only you can think it through. May 17 04:28:20 shit, I was mistaken, I hadn't run it since adding that function May 17 04:28:28 sorry for the trouble May 17 04:28:33 no shit May 17 04:28:53 any idea why symbols wouldn't start resolving after a crash May 17 04:29:05 (computer turned off in the middle of a build) May 17 04:29:25 i cleaned/remade it, but still android studio shows everything in red May 17 04:29:56 du, click on file invalidate cache May 17 04:30:33 file -> inalidate cache May 17 04:31:42 somebodystopher look around on the web for apps that do that and read their source, you would still have a UI though. So you wouldn't be a terminal application in the natural instance of the phrase. May 17 04:31:47 thanks, giving it a shot May 17 04:32:45 somebodystopher: https://github.com/jackpal/Android-Terminal-Emulator May 17 04:33:00 Yeah I just found that May 17 04:33:18 that fixed it. thanks amigo. May 17 04:33:45 what ideas do I use to build the final all if I have the source? May 17 04:33:57 *apk May 17 04:34:44 if you're putting it on your device just build and install it on your device through AS May 17 04:44:48 g00s you still awake? May 17 04:45:17 Maybe you could save me some trouble. I want to modify the source of "Android Terminal Emulator" to give me write access to a folder somewhere in /storage/extSdCard/Android/data/. Would this seven be possible or am I just eating my time? May 17 04:46:25 it can't create access where there was none already, if you just need to access the folder once. You can connect it to AS and open the device and add what you need. May 17 04:46:51 If you need to do that continuously... you'll probably have to root, but I would need to know the specifics to think it through completely. May 17 04:51:33 OK. I have used a download manager ADM or even when downloading torrent file. There is an option to save the files to device memory or to one specific subdirectory of the path I mentioned above. If these apps can access this storage space on the SD card to save files, can the emulator be given permission to be able to navigate to and have read/write access to the same space on the SD card? May 17 04:52:14 anyone read https://plus.google.com/105051985738280261832/posts/FXCCYxepsDU ? May 17 04:53:22 you downloaded a game and you want to play it, so you need execute access to run it? May 17 04:57:21 somebodystopher: it should be able to, but I think you're trying to solve a problem that shouldn't be a problem. If you have files installed on your device you should be able to access them as well as any other application as long as they aren't a part of an apps private directory in which case, yea... that's interesting. I think the OS controls access to an apps inernal private folder. May 17 04:59:24 In my case, I have a nintendo 64 emulator installed and it accesses games that I downloaded that reside in a completely different directory. ie... there shouldn't be anything hindering what it seems you're trying to do from working. As always specifics matter. May 17 05:00:15 No. A bittorrent app offers the option of writing to /storage/extSdCard/Android/data/com.delphicoder.flud/files or to any location on the devices internal memory. "Android Terminal Emulator" allows me to use an emulated console and access the devices filestructure drum the command line. But I do not have write access anywhere on the SD card. May 17 05:00:57 you can't create access where there is none May 17 05:01:02 pfn: do you have an example of how to use adb am broadcast for push notifications? I tried it on my end doesn't seem to work May 17 05:01:23 pfn: I do adb shell am broadcast -a "com.google.android.c2dm.intent.RECEIVE" and then add some extra stuff with --es for the fields May 17 05:02:03 change com.google.android to your applications package name May 17 05:02:26 are you sure? the intent filter is set to that May 17 05:04:51 am broadcast -a -n / May 17 05:05:10 https://gist.github.com/Moddus/6400644 May 17 05:06:29 oh i see May 17 05:06:42 i have to comment the send permission? May 17 05:09:21 yeah still doesn't work for me May 17 05:09:26 it should work with a real device right Ping_2_Ur_Pong ? May 17 05:12:54 it says pkg=Failed on each one May 17 05:45:56 have you noticed that a lot of devs aren't that great at setting up their dev environment? May 17 05:46:47 RustyShackleford: have you noticed a lot of devs are shit? May 17 05:47:06 well yeah May 17 05:47:10 you need a good dev environment to set up your dev environment :) May 17 05:47:19 but some people are pretty good at writing code May 17 05:47:33 anyone read any good android articles today? anything of note? May 17 05:47:52 and terrible at anything related to the command prompt, environment variables, general poweruser computer stuff May 17 05:48:16 we're switching to git and a bunch of these devs want instructions to git/github May 17 05:48:27 * Ping_2_Ur_Pong has come across many a programmer that thinks if it involves the command line it is sorcery May 17 05:48:29 its going to be a mess May 17 05:48:43 RustyShackleford: tell them google or gtfo May 17 05:49:06 i sent out an email with helpful links and outlined some pitfalls May 17 05:49:23 google emailed me, weee May 17 05:49:25 i don't have the pull yet to tell them google or gtfo lol May 17 05:49:26 with this https://plus.google.com/103342515830390186255/posts/5TGKhcwtip5 May 17 05:49:30 gitfalls? like? May 17 05:50:29 well we're using github enterprise May 17 05:50:49 I found that https would not work, talked to devs on different teams who couldn't figure it out May 17 05:51:05 Ashiren: you're on 1.5? May 17 05:51:14 so I told them to make sure they set up a ssh key, gave them links that explained how to do that May 17 05:51:39 nope May 17 05:56:47 I don't care setting up Eclipse or Android Studio May 17 05:56:54 I consider that as waste of time May 17 05:56:57 I created a context menu, and it pops up on listview click, and when I click a item, it seems its not reaching "onContextItemSelected" boolean. Is there a reason why it wouldn't? May 17 06:08:34 https://twitter.com/darylginn/status/707176649478041600 May 17 06:11:12 lulz May 17 06:13:22 I like this more : http://www.humoar.com/wp-content/uploads/webm/2016/01/window-installation-fail.mp4 May 17 06:13:46 good example of - unit tests passed, no functional tests May 17 06:14:45 I like github so much - Receiving objects: ... | 63.00 KiB/s May 17 06:14:50 so fast May 17 06:17:48 why not May 17 06:18:00 it works May 17 06:18:21 you can't open it May 17 06:18:27 but May 17 06:18:31 :) May 17 06:25:22 hello world :) May 17 06:29:35 gordon_, are you sure its not you? http://prntscr.com/b4zrcj :p May 17 06:34:38 hi guys. I was wondering if you can make a template button in xml (design etc) outside a layout, and add it via its id May 17 06:43:56 danijoo_: that makes me more sad May 17 06:47:08 Hi! May 17 06:47:31 What do I need to build an app? May 17 06:47:48 android studio 2 ? May 17 06:49:30 and sdk May 17 06:49:43 (android studio will download it for you) May 17 06:49:48 and also... jdk May 17 06:53:36 Good, so I installed the right tool! I'm now starting the app (I know Python, C/C++, etc. but little java, but I'll learn!) May 17 06:53:57 First, I want to do the simplest thing ever May 17 06:54:10 Just that my app displays a HTML5 website May 17 06:54:37 So, as my website is responsive, my beta version of the app will only be "display the website" May 17 06:54:59 Should I choose "Add no activity" / "Blank activity" / "Fullscreen activity" ? ... May 17 06:59:31 can you just... go to tutorial ? ;) May 17 06:59:51 (you need to have blank activity and add webview) May 17 07:01:48 gordon_ : do you have a tutorial in mind for this? I'm watching one, but it's not a very good one May 17 07:03:43 unfortunately not May 17 07:18:55 google IO tomorrow May 17 07:18:57 ;D May 17 07:22:52 Do I need to pay to put an app on Google Play store? May 17 07:23:33 yea the account creation fee May 17 07:23:56 how much? May 17 07:24:16 how much are you willing to pay May 17 07:24:22 you know, you could end up making millions... May 17 07:24:35 I'm willing to pay 699,99$ but not more May 17 07:24:41 I see May 17 07:24:46 well it's $25 May 17 07:25:04 ok :) May 17 07:25:13 although you can mail me the rest May 17 07:25:25 Traveller check ? May 17 07:25:34 just wire it May 17 07:25:50 :) May 17 07:25:53 your company is asking you to create a new account? May 17 07:26:05 no, I'm a home developer May 17 07:26:37 I have now created my first app, but there is a "top menu bar" with the app name and a button. How can I remove this? May 17 07:26:51 I chose "Blank Activity" May 17 07:27:15 well you have to know what those are and how they are created so that you could know where to look for them and remove them May 17 07:27:32 yes sure May 17 07:27:48 yea, so do that May 17 07:28:07 that's what I'm asking ;) May 17 07:28:32 well they're just that, a top bar and a button May 17 07:28:56 can you point me to the right file: is it activity_main.xml, AndroidManifest.xml or MainActivity.java ? May 17 07:28:58 start with a beginner android tutorial if you're not sure where UI elements live May 17 07:29:12 you need to start from the very beginning May 17 07:29:25 Well the thing is: they don't appear in the activity_main.xml Preview pannel May 17 07:29:36 in the preview pannel, I only see the webview, and that's cool May 17 07:30:09 but the Android Emulator seems to display such a topbar (which doesn't appear in activity_main.xml preview) May 17 07:30:29 it comes from the theme and isn't an explicit UI element in this case May 17 07:30:40 there's a Code tab inside each XML file too, along with the Design tab May 17 07:30:56 Theme.NoTitleBar ? May 17 07:31:12 Theme.DarkActionbar May 17 07:32:22 Theme.AppCompat.Light.NoActionBar ? May 17 07:32:34 why are you listing them all May 17 07:32:42 choose one May 17 07:32:58 you want it to go away? yea you choose the appcompat noactionbar one May 17 07:37:52 In this code [https://dpaste.de/suyC] I get some warnings, at T i get class or array expected, in if condition I get instanceof T can be replaced by != null and at (T) fragment I get unchecked cast May 17 07:42:26 Even retrofit has done it the same way https://github.com/square/retrofit/blob/master/retrofit/src/main/java/retrofit2/Retrofit.java#L127 May 17 07:42:31 Weird ... May 17 07:43:10 So I guess this is teh right way? May 17 08:07:48 Do I need to have thawte or verisign to be able to sign my app, and then to put it on Developer Store? May 17 08:07:54 Google play store? May 17 08:08:06 no May 17 08:08:44 On Build, I see "Generate signed APK", don't I need this? May 17 08:08:55 yes you do May 17 08:09:00 but you can create your own certificate May 17 08:09:06 please read the docs on android.com May 17 08:09:11 I used keytool.exe to generate keys May 17 08:09:30 but then I need a .cer certification file (that's what I found here : http://docs.oracle.com/cd/E19509-01/820-3503/ggfen/index.html May 17 08:09:40 https://developer.android.com/studio/publish/app-signing.html May 17 08:09:42 read that May 17 08:09:45 follow the steps May 17 08:09:46 done May 17 08:09:52 Hey having issues with the recyclerview not changing correctly when I hit the back button the values of the recent activity seems to stay... May 17 08:09:56 Here is my code - http://stackoverflow.com/questions/37270526/back-button-from-a-recycler-view-shows-the-wrong-values-android May 17 08:11:10 Chainfire: it says : "create a private key" May 17 08:11:18 it doesn't say where I can create these keys :) May 17 08:13:04 Chainfire: what do you use to make the keys? May 17 08:13:43 http://www.samsung.com/us/computer/memory-storage/MUF-128BB/AM or http://www.samsung.com/us/computer/memory-storage/MUF-128BA/AM ? May 17 08:16:00 hello everybody May 17 08:16:19 someone speaks spanish? May 17 08:16:35 si May 17 08:16:41 hola :) May 17 08:16:49 hola May 17 08:17:05 es que hablo muy mal inglés y creo que no se me entendería bien May 17 08:17:11 fiveflowerzz it is done in Android Studio further down the page ... May 17 08:17:55 Chainfire: oh you do it right from the Android Studio interface? May 17 08:18:06 But you need to create keystore first, from an exeternal tool? May 17 08:19:59 i need help with ScrollView please May 17 08:22:18 can someone help me please? May 17 08:23:43 Chainfire: how did you create your keystore? May 17 08:25:37 fiveflowerzz oh my god man May 17 08:25:45 Lonesoldier728: freenode/ip.79.156.152.252) has joined #android-dev │ ArGGu^^ May 17 08:25:47 11:06 DaZeK | hello everybody May 17 08:25:50 every single question you have asked is answered in the page I linked May 17 08:25:51 wat May 17 08:26:16 hello May 17 08:26:30 Lonesoldier728: if (myId.equals(userId)) you're setting number of followers only when it's your profile May 17 08:26:39 can anybody help me please? May 17 08:27:06 DazeK post the problem and the geeks here will help you :) May 17 08:27:09 ask question May 17 08:27:58 gordon_ I am using it only for if it is myId May 17 08:28:13 I do not need the count - it is to let me know if the cache matches what I have stored May 17 08:28:15 ok thank you May 17 08:31:28 I'm trying to make an ScrollView that do like in a ScrollableTab, stop in the center of the childs, but i want to see part of the near childs May 17 08:32:23 Lonesoldier728: ok, I read it again. maybe your private static OnEntryClickListener mOnEntryClickListener; May 17 08:32:27 is cached May 17 08:32:31 since you made it... static May 17 08:32:56 that is where the problem lies so it makes sense May 17 08:33:08 removing static should be enough or do I have to attempt something else May 17 08:34:00 I would remove static nad pass listener through constructor May 17 08:35:17 sorry my bad english :( May 17 08:36:57 DaZeK: no idea right now DaZeK May 17 08:37:33 ok thank you May 17 08:38:22 is like a ViewPager but seeing part of the near pages May 17 08:38:37 like this May 17 08:38:49 ] [] [ May 17 08:39:47 ] [] [ --> [] [] --> ] [] [ May 17 08:40:23 what do you think will happen tomorrow May 17 08:41:10 gordon_ how would I pass it exactly... removing static seems to work, do I need to pass it through the constructor still, seems to work without passing it in? I am setting it as I setup the adapter May 17 08:45:09 I dont know how you setup adapter ;) May 17 08:45:21 ah, you're setting it by set method ? May 17 08:50:54 yep May 17 08:51:15 that's why May 17 08:51:25 guess I just prefer setting by constructor ;) May 17 08:54:31 woo https://support.microsoft.com/en-us/kb/3053711 May 17 08:55:30 ahahahhaha May 17 08:55:47 these idiots rewrite xp from scratch May 17 08:55:57 Hello, i want to make ViewPager but can see the near pages, like this: ] [] [ --> [] [] --> ] [] [. --> = finger scrolling May 17 08:56:36 2 --> 1 finger scroll May 17 09:02:26 anyone use GCM? May 17 09:02:35 question about gridlayout: no matter how i set the grid width, with 4 columns the children size still exceeds the layout width's May 17 09:02:41 Do they have a callback method for grabbing the token? InstanceID May 17 09:04:05 http://stackoverflow.com/questions/37271620/gcm-push-notifications-for-android-how-to-get-callback-success May 17 09:08:19 huh May 17 09:09:05 Mavrik was that to me? May 17 09:09:43 I can clarify it, basically asking if there is a callback method for GCM token retrieval or a way I can create one May 17 09:10:21 Lonesoldier728: it seems like google changed their GCM API yet again May 17 09:10:36 seems like they do this every year or so May 17 09:10:39 I'll have a look May 17 09:12:04 yeah Maurits- May 17 09:13:20 I've literally had to reimplement GCM 3 or 4 times in apps already May 17 09:13:36 you'd think they'd settle on a stable api after the 2nd change or something May 17 09:14:04 GCM ? May 17 09:14:09 google cloud messaging May 17 09:14:12 oh. May 17 09:15:30 yep hehe May 17 09:19:17 Maurits- do you know where it points to a callback I saw a onTokenRefresh method but not sure how to make use of it exactly May 17 09:19:20 Lonesoldier728: as far as I can see the above code should not return null May 17 09:19:29 but you should not call it from the UI thread either May 17 09:19:49 as it'll block while it talks to the GCM servers to get the instance id May 17 09:20:24 well before my server call gets initiated I need the token so I can store it with the user - that is the thing... May 17 09:20:44 you can May 17 09:21:39 https://github.com/googlesamples/google-services/blob/master/android/gcm/app/src/main/java/gcm/play/android/samples/com/gcmquickstart/RegistrationIntentService.java May 17 09:21:43 I have this class - http://pastebin.com/EymAHBtb May 17 09:21:53 I am not too sure how to retrieve it from their exactly then May 17 09:22:44 That is sending it to the server on its own May 17 09:22:45 I'm assuming you're using the API correctly May 17 09:22:51 there's just something else that's wrong May 17 09:22:58 which is why it's returning null May 17 09:23:34 well I get it back for diff calls and I call it the same way May 17 09:23:47 Hello everyone, i am about to flash my aquarisE4.5 ubuntu edition but i don't know where to find the ROM, can anyone send me links? May 17 09:23:59 but I think it is because of more time in between May 17 09:24:08 daniman: go to #android-root or #android May 17 09:24:41 can't really tell without any additional information whether something else is wrong, but I'm fairly sure this should just block while it's grabbing an IID instead of returning null May 17 09:25:02 this is why you put it in an intentservice in the first place May 17 09:27:46 according to the docs for getToken it should not return null anyway May 17 09:27:46 can anyone assist with this gridlayout issue? http://i.imgur.com/CtIjSGH.png -- children exceeding layout's width, rather than rescaling May 17 09:27:55 If this helps this is the rest of the code and this method is being called on a button click http://pastebin.com/F5rTH1rc May 17 09:28:02 which means it's triggering the IOException May 17 09:28:42 have a look at whether it's running the IOException catch block May 17 09:28:47 and which error it reports there May 17 09:29:07 Yeah checking that now May 17 09:29:49 Like the TokenRetrieval class I showed you how do I call it, and wait for a callback success May 17 09:30:22 I'm fairly sure it doesn't take a callback but blocks instead May 17 09:30:24 Error java.io.IOException: MAIN_THREAD May 17 09:30:36 So because I am calling it on the main thread May 17 09:31:02 ehm May 17 09:31:16 how are you starting your registration? May 17 09:32:01 not new TokenRetrieval("blah").onHandleIntent(null) I hope May 17 09:32:02 Well users fill out fields and then on sign up button click it grabs the texts and then I need to grab the token and send it May 17 09:32:23 the token I grab it the way I do currently which is wrong May 17 09:32:38 how are you invoking your tokenretrieval class, I mean? May 17 09:32:38 guys how do you benchmark your apps? May 17 09:33:17 I haven't - no clue how to really make use of it correctly May 17 09:33:25 well the code is being run May 17 09:33:30 so you're doing something May 17 09:33:54 Well because I am just calling that line of code instead of the class May 17 09:34:00 right May 17 09:34:15 so, TokenRetrieval is an intentservice May 17 09:34:24 which means you can start it using an intent May 17 09:34:39 and it'll do the processing for you in a background thread, instead of on the main one May 17 09:34:44 http://pastebin.com/F5rTH1rc - that I am just going straight to GCM where as the other class I was thinking of that and then how would I grab the token value from it May 17 09:34:48 which is why you're getting the error May 17 09:35:08 how do you benchmark an app? May 17 09:35:18 no, that won't work, because you can't do GCM stuff on the main thread May 17 09:35:22 Yeah figured but, how do I hold off the sign up till the token is passed back or is that a bad idea and might as well send it to the server on its own May 17 09:35:32 android in general doesn't allow things which may pause to run on the main/UI thread May 17 09:35:40 because it would pause all user interaction as well May 17 09:36:12 so you need to, as in the example, put your code which may block/pause in an intentservice May 17 09:36:16 and call it using May 17 09:37:23 Intent intent = new Intent(this, TokenRetrieval.class); May 17 09:37:28 startService(intent); May 17 09:37:47 make sure you've registrered TokenRetrieval in your AndroidManifest as well May 17 09:37:47 no finish needed? May 17 09:37:56 like the GCM example shows May 17 09:37:59 nope May 17 09:38:07 this will run the service in a background thread May 17 09:38:07 yeah sounds good ok thanks, will implement that then May 17 09:38:12 np May 17 09:40:59 Hi, I'm using an ImageView as splash screen, what image size should I use if I want it to fit all devices? May 17 09:45:12 is it icon in center? or entire background May 17 09:45:51 hey guys, could someone tell me how to fix this conflict in this code ? http://postimg.org/image/vldu8vqfl/ May 17 09:46:39 JanusJanus: What IDE is that? May 17 09:46:49 asking for android.support.v4 which is imported and i added it when declared the fragmentManeger May 17 09:46:58 Where could I find statistics on what percentage of phones in the wild support NFC? May 17 09:47:01 JanusJanus: maybe your fragment is not extending the v4 fragment May 17 09:47:18 Ashiren: it could be entire background, but then how would it fit into multiple resolution? May 17 09:47:27 how do i check the IDE and if the fragment extending v4 ? May 17 09:47:46 Ashiren: the best would be : centered png, and background = plain color #aaaaaa May 17 09:47:52 go check your fragment, and check the imports May 17 09:47:55 How to do that? png with plain background? May 17 09:48:00 fiveflowerzz: put it to corresponding *dpi folders with appriopate scale May 17 09:48:06 it should be import android.support.v4.app.Fragment May 17 09:48:09 JanusJanus: The IDE is the program you are using to code. Intergeated development environment. I was just curious May 17 09:48:19 am using android studio 2 May 17 09:48:30 Ashiren: can I do it with Right click, New image asset, etc. ? May 17 09:48:40 It seems that this tool automatically handles these things May 17 09:48:43 2.1.1 May 17 09:48:43 Looks different to me. Maybe its the dark theme May 17 09:48:50 i guess May 17 09:48:55 fiveflowerzz: instead of using imageView for splash screen, consider background and Theme, https://www.bignerdranch.com/blog/splash-screens-the-right-way/ May 17 09:48:59 just rechecked yeah, i keep it updated May 17 09:49:42 fiveflowerzz: well never used that May 17 09:50:14 This is my full code ; http://pastie.org/10840466 May 17 09:50:38 JanusJanus: how about your fragment? May 17 09:50:52 Ashiren: I'll keep my ImageView for now, do you know how to set a color background? May 17 09:51:12 ahaaa ... http://pastie.org/10840469 May 17 09:51:18 android:background="#FF0000" May 17 09:51:22 you see this is one of the fragments, May 17 09:51:28 how do i make it support v4 ? May 17 09:51:41 JanusJanus: import android.app.Fragment; May 17 09:51:44 JanusJanus: replace the import android.app.Fragment May 17 09:51:47 make it to impurt the support fragment May 17 09:51:50 with import android.support.v4.app.Fragment May 17 09:52:06 thanks! May 17 09:52:18 LOL daaah , just like the MainActivity May 17 09:52:25 -_- May 17 09:52:57 how is it? :) May 17 09:53:27 import android.support.v4.app.Fragment; May 17 09:53:27 import android.support.v4.app.FragmentManager; May 17 09:53:28 import android.support.v4.app.FragmentPagerAdapter; May 17 09:53:37 sorry for posting the code here, my bad May 17 09:53:53 is it fix? May 17 09:53:59 *fixed? May 17 09:53:59 wont that be sufficient ? May 17 09:54:07 yeah I think so May 17 09:54:35 or just delete all the import statement related to fragment and just do a option+space May 17 09:55:18 on the fragment class name May 17 09:55:29 worked - MAGIC :D y'all heretics lol May 17 09:55:38 thank you ***** May 17 09:55:45 yw :) May 17 09:56:53 Ashiren: in which folder would you put the .png file? May 17 09:57:32 if you want your image to seem the same size on all devices May 17 09:57:42 and in appriopate drawable-*dpi folders May 17 09:58:08 or just in xxhdpi May 17 09:58:18 then it will scale down if needed May 17 09:58:27 xxhdpi = 3 * mdpi May 17 09:58:30 I have no such folder, should I create it ? May 17 09:58:54 eeyup May 17 09:59:38 what is your minsdk May 17 10:04:25 Hi guys! May 17 10:08:04 good afternoon May 17 10:08:56 hey guys, how do you fix these kinds of things? http://i.imgur.com/7A4XqYE.png I'm trying to find a way to set the right distance to the top (i guess it's the ToolBar height) for the RecyclerView, I can fix it for vertical or horizontal orientation but I don't know how to fix it for both May 17 10:13:58 this is vertical http://i.imgur.com/9b3RPQF.png May 17 10:15:35 I need to set a different margin or padding to the recyclerview's parent on orientation change i guess? May 17 10:29:01 Ashiren: I'm using https://www.bignerdranch.com/blog/splash-screens-the-right-way/ May 17 10:29:05 as you told me May 17 10:29:23 It nearly works, except that "AppCompatActivity" is not available on my developer studio May 17 10:29:29 Can I replace it by another class? May 17 10:30:00 yes May 17 10:30:12 but thats quite weird you dont have it May 17 10:30:32 I have Android Studio 1 May 17 10:30:41 but don't want to reinstall all A Studio 2 now May 17 10:31:00 Ashiren: by which class can I replace it? May 17 10:33:05 what do you use for normal Activity then? May 17 10:33:20 its not android studio specific. its in the support library May 17 10:33:53 I use: public class MainActivity extends ActionBarActivity May 17 10:34:01 Can I use that instead? May 17 10:34:19 yes May 17 10:34:26 but ActionBarActivity is deprecated anyway May 17 10:35:58 But can I have two classes like this? May 17 10:36:02 public class SplashActivity extends ActionBarActivity { ... } and then : May 17 10:36:08 public class MainActivity extends ActionBarActivity { ... } ? May 17 10:36:16 How will it know which one starts first? May 17 10:38:17 Ashiren: do you know where I should set this? May 17 10:38:33 I will have 2 classes that extend ActionbarActivity, is this normal? May 17 10:39:11 umm May 17 10:39:47 this is how you make your own Activities, byt extending some base Activity May 17 10:40:01 you might need to learn basic java first ~~ May 17 10:44:29 I'm developing an app to receive audio files and manage them. If I share audio file using 3rd party app (file explorer) and "Downloads" app (included as native app on my Moto G). The Intent Uri path is wrong... but with another 3rd party apps it works fine (I've tried to share the same audio with different apps) as I described here: http://stackoverflow.com/questions/37273750/wrong-intent-uri-data-sharing-audio-files May 17 10:44:35 any idea? thanks in advance! May 17 10:45:15 Ashiren: I understood this, but in https://www.bignerdranch.com/blog/splash-screens-the-right-way/ in don't find what piece of code decide why SplashActivity starts first and not MainActivity... May 17 10:48:56 fiveflowerzz: you specify your launcher activity in the manifest file May 17 10:48:58 its int AndroidManifest May 17 10:51:07 fiveflowerzz: https://developer.android.com/training/basics/activity-lifecycle/starting.html#launching-activity May 17 10:51:35 Oh thanks! May 17 10:53:24 hello, how can i pass an object to another intent? it's an observer object so i don't know if serializing is an option. i start a IntentService that runs a few operations and should return results back to an observer (in this case a fragment) May 17 10:54:42 Question: why there is no easy way in Android to set textviews fonts? why we should have libraries for that? May 17 10:55:01 whats the point of making it hard May 17 11:01:25 Moshdev: custom fonts, you mean? May 17 11:01:58 don't know if you can do that in layout resources, but you can use android:fontFamily to choose from system fonts May 17 11:02:04 Maurits-: yes May 17 11:02:28 in iOS its easy to provide your custom font, not only device fonts May 17 11:03:13 Moshdev: only since the last few releases May 17 11:03:27 maybe even 9.0, I can't remember May 17 11:07:32 it's still a bit annoying there's no res/font/ and just @font/some_font, I agree May 17 11:09:16 Maurits-: i just asked iOS guys, and fonts from layout was very old feature May 17 11:10:08 I can't find which version it was introduced in, but I just finished an iOS block, and I remember needing a version check to do something with custom fonts there May 17 11:10:15 iirc in conjunction with UIAppearance May 17 11:10:26 *an iOS app May 17 11:10:36 but it doesn't really matter anyway May 17 11:15:21 Need help with AVD issue, AVD screen orientatio not rotating. My setup: Linux (Ubuntu 14.04, kernerl 3.19), Android Studio 2.1. I tried running the app and testing the orientiation change on AVD's running API levels 19, 22, 23, but in all of these it doesn't work. I also tried changing AVD settings (checking/unchecking hardware input, using and not using skin, changing graphics simulation to auto/hardware/software, etc. etc), but noth May 17 11:15:21 ing solves it. I can rotate the window of the AVD fine, but the screen/display of the AVD stays in landscape. Help? May 17 11:15:56 anyone knows how to get the recyclerview onCreateViewHolder? full: http://pastebin.com/sADKgZZi raw: http://pastebin.com/raw/sADKgZZi May 17 11:18:51 hi there, is there anyway to get a resource value from a string? something like "getResources().getString(R.string[MYSTRINVALUE]);"? May 17 11:19:57 you mean you have the string but you want the R.string.xxx for it? May 17 11:20:33 or you know the xxx value and you want the id value? May 17 11:21:00 i know the XXX value (it's in a var as a String), and i want to get the id value May 17 11:21:17 try http://stackoverflow.com/questions/3042961/how-do-i-get-the-resource-id-of-an-image-if-i-know-its-name May 17 11:28:17 Can I start Activity NOT from current one, but from another Activity (that is still in back of my stack) ? May 17 11:33:27 Ashiren: thanks :D May 17 11:39:17 hithere May 17 11:39:57 I would like to translate xmls in res/values - I would like to use translation editor as suggested https://developer.android.com/studio/write/translations-editor.html#ordering May 17 11:40:33 but I am able to activate TransEdit for strings.xml not for others like strings_settings.xml and so on May 17 11:41:32 yes I can create all files by hand using proper qualifiers May 17 11:41:37 vegetabl_: why would you want to do that? to fiddle around in the activity stack? May 17 11:42:16 but it wont be that clean as with TE May 17 11:42:27 how do you solve that? May 17 11:53:13 hi , I need to create a superclass of fragment which will act as a base fragment and will add the other views in a framelayout inside the base fragment, what is the best appraoch ? May 17 11:53:32 currently I am using onCreateView method May 17 12:13:32 any one ? May 17 12:14:07 yes May 17 12:14:11 sup? May 17 12:19:20 chinu: ?? May 17 12:20:55 thepoosh : hi , I need to create a superclass of fragment which will act as a base fragment and will add the other views in a framelayout inside the base fragment, what is the best appraoch ? May 17 12:21:08 currently I am using onCreateView method May 17 12:21:23 create a class that extends Fragment and let all your fragments extend it May 17 12:23:52 thepoosh : that is what I am doing right now May 17 12:23:59 good for you! May 17 12:46:39 I would like to backup users data each user exits app or switch to another app May 17 12:48:04 accordingly to https://developer.android.com/reference/android/app/Activity.html it is not not recommended doing it in onPause() "be sure to not do anything lengthy here." May 17 12:49:00 but I have not seen any (reference) suggestion where it is the right place to do so May 17 12:49:22 unlike on stack there are people suggesting doing it in onPause - like here http://stackoverflow.com/questions/2676906/android-lifecycle-and-saving-an-instance-state-questions May 17 12:49:51 what would you suggest - how do you save / backup users data throughout app life cycle? May 17 12:54:18 bolovanos: what kind of data? is it possible for you to save data as you go instead of relying on app lifecycle callbacks? May 17 12:55:06 well onPause() is called more often, whenever activity gets covered by other activity May 17 12:55:23 so doing lengthy things is a no-no there. but onPause() is more reliable to write data on May 17 12:55:31 onDestroy() isnt guaranteed to ocurred May 17 12:55:44 Hello everybody May 17 12:56:30 I try to detect swipe up or down motion, but I can't get the onFling() event. This is the code I use: http://pastie.org/10840790 May 17 12:56:43 Can anyone please help me what I'm missing? May 17 12:57:09 porten, shortly said serialized ArrayList - small amount of data - few kB, but I take it as write operation - May 17 12:57:48 using Context.MODE_PRIVATE May 17 12:58:18 if its less than 50ms - go ahead May 17 12:58:32 bolovanos: Is this data user generated or does it come from the network? e.g. if you're getting it from the ineternet you should save then display May 17 12:58:40 if it's user generated save it as it's generated May 17 12:58:50 once it happened - after few months of testing, that app crashed and all data from that location disappeared (reason unqnon - app crashed - and I did not have crashlytics installed that time) May 17 12:59:10 so I was wondering about backup created each time app is closed May 17 12:59:32 this is kind of like an xy problem May 17 13:00:15 Ashiren, 10ms May 17 13:00:24 Ashiren, anything else is too long May 17 13:00:34 ie causes UI stutter May 17 13:00:45 60fps is the goal May 17 13:00:54 bolovanos: without much context we're just going to suggest something and it may be that you should be doing something else instead May 17 13:01:36 I mean by motions with gestures :) May 17 13:01:36 porten, whole context I have is what I have written before May 17 13:02:31 porten, I may have wait another few months for that error which wiped out saved file (maybe memory error - who knows) May 17 13:02:52 porten, or I can find some backup solution for such cases May 17 13:03:21 well what kind of data is it? user generated, from a network operation, some system event logging (like GPS)? May 17 13:04:02 porten, locally generated data, it can be compared to notes - chunks of texts May 17 13:04:07 small texts May 17 13:04:17 and you can't save it as it's created? May 17 13:04:33 I am doing it and I will be May 17 13:04:42 problem is with that unexpected crash May 17 13:04:56 which led me to think about backup... May 17 13:05:16 up vote May 17 13:05:16 2 May 17 13:05:16 down vote May 17 13:05:16 accepted May 17 13:05:20 "None of the lifecycle methods will be called if your Activity crashes." May 17 13:05:22 whoops May 17 13:06:03 in that case I will have at least some data from previous correctly "closed/switched" app May 17 13:06:28 which seems to me better than nothing... May 17 13:07:16 yes, if it's just a simple text blob onPause is fine May 17 13:10:15 and test for "isFinishing()" to avoid excess saving during screen rotation fe May 17 13:10:17 porten, thank you May 17 13:10:36 Ashiren, thank you May 17 13:22:39 omggg May 17 13:22:41 d.android.com May 17 13:22:45 what have they done to you May 17 13:24:04 You dont like it? May 17 13:24:10 i dunno May 17 13:24:15 but my source plugin stopped working May 17 13:24:24 :( May 17 13:26:01 Hello guys, I want to detect swipe up or down on a Fragment. But I get only touch events. My onFling() callback is not called, can someone please look at my code and give me a hint? http://pastie.org/10840790 May 17 13:30:38 bolovanos: you mean isChangingConfigurations() May 17 13:31:11 Never mind, I already fixed :/ May 17 13:31:48 Number5: I would have done that in onViewCreated May 17 13:32:56 Napalm, nope. I set the clickable property of the view to true. But thnx. May 17 13:33:32 The code was fine. May 17 13:33:39 yea, i never said it wasnt May 17 13:33:43 i said "i would have" May 17 13:33:50 Number5, http://pastie.org/10840790#66 probably thats why May 17 13:34:10 https://developer.android.com/reference/android/view/GestureDetector.SimpleOnGestureListener.html#onFling(android.view.MotionEvent, android.view.MotionEvent, float, float) May 17 13:34:11 Returns May 17 13:34:11 boolean true if the event is consumed, else false May 17 13:34:38 Why does super.onActivityResult in a hosting activity go to its fragment May 17 13:34:49 When the fragment really isnt the super class May 17 13:35:35 Napalm, isChangingConfigurations() would be better - thanks May 17 13:35:36 azgul, thank you too. May 17 13:37:34 Anyone seen that? May 17 13:38:21 This code: http://pastebin.com/0EFitwb4 lets me open the documents app but I want people to be able to select any gallery app they have. How do I allow that? May 17 13:39:06 omh May 17 13:39:08 iomg May 17 13:39:09 omg May 17 13:39:17 i wrote code for you the other day for that May 17 13:40:17 R13ose: http://pastebin.com/GbX1BmWi May 17 13:40:34 14th May 17 13:42:28 Napalm: I know, I saw that. May 17 13:42:39 what now then? May 17 13:44:01 Napalm: testing the code again May 17 13:50:48 Napalm: How do I fix this error: "error: cannot find symbol class ComponentName"? May 17 13:51:11 import it May 17 13:51:22 click on it then type alt+enter May 17 13:51:26 jesus May 17 13:51:42 drose379: save me May 17 13:51:57 :D May 17 13:55:06 Hi everyone. Does anyone have a second to answer a few questions for me? May 17 13:59:10 Napalm: sorry I didn't know that but that worked. When I run the code, this says no gallery app found. May 17 13:59:29 then you dont have a gallery app May 17 14:00:10 Napalm: yet, I have an app that I am able to view photos in. May 17 14:00:44 then the app itself is borked May 17 14:00:50 why? May 17 14:00:59 because its not set to view images May 17 14:01:04 i even linked the reference May 17 14:01:08 :P May 17 14:01:25 :P May 17 14:01:45 why not step through the code in the debugger and see what happens May 17 14:03:19 okay May 17 14:04:21 If the app doesn't tell Android it supports ACTION_VIEW and image/* then it will not show up when you want to view that May 17 14:04:32 Whether the app can show you your images or not is irrelevant May 17 14:05:32 I am having trouble getting the dialog to appear when the alarm is fired off. I can fire the event and log some text. But when I try to make a toast it says its a dead thread. So I started a new activity in the onHandleIntent method and then moved the toast to that class but now it just runs continuously. http://pastebin.com/V6axUqeA May 17 14:08:01 Napalm: this is actually opening the printer app I have, and when I use Whatsapp to view an image and click "view in gallery", both the gallery and printer app are listed for me to pick. May 17 14:08:47 R13ose: you wanted it to open the default May 17 14:08:56 if you want it to give you options, then use a chooser May 17 14:09:07 Napalm: okay May 17 14:12:09 wuno, you're trying to do UI stuff on a background thread May 17 14:12:13 What generally won't work on Android. May 17 14:13:20 Gotcha. So would the solution here to be create a fragment then start that activity when the onHandleIntent is fired off for the alarm? May 17 14:13:37 Well wait that is basically what I am doing. May 17 14:14:18 What you want to do is show a notification if you want to tell the user something while your app is in the background May 17 14:14:34 Randomly displaying dialogs or activities is going to get annoying fast May 17 14:15:44 ahh yes. Ok cool. Thanks all! May 17 14:19:28 hi May 17 14:34:49 I now see why the Android developer website was down temporarily yesterday May 17 14:36:17 totally revamped it May 17 14:47:51 fuck goooooogle May 17 14:49:09 hey mikedg May 17 14:49:22 mikedg: just when you got used to the last one, eh? May 17 14:49:24 :D May 17 14:55:36 I'm trying to construct a helper class: http://pastebin.com/W9AkXCAV where I would want to create 10 instances of this ProductHandler to act as seperate imageView's in my activity, I'm not quite sure ArrayAdapter will work for this though. When I worked with Libgdx I simply used their Array class May 17 15:06:18 wow http://www.infoworld.com/article/3071173/application-development/gradle-embraces-kotlin-for-android-app-dev.html May 17 15:07:07 android is so irrelevant in that article May 17 15:10:10 they should have linked to the source though :/ May 17 15:11:02 "The Android community is deeply embracing it." < source | fake May 17 15:11:51 adq haha May 17 15:17:25 adq did you see that HN discussion about dianne H's google+ thing on architecture ? May 17 15:17:39 i think i did, few days ago? May 17 15:17:59 yeah, i'm still laughing "i think they should have stuck with int main()" May 17 15:18:06 hahaha May 17 15:19:14 Hi guys! May 17 15:19:25 I'm developing an app to receive audio files and manage them. If I share audio file using 3rd party app (file explorer) and "Downloads" app (included as native app on my Moto G). The Intent Uri path is wrong... but with another 3rd party apps it works fine (I've tried to share the same audio with different apps) as I described here: http://stackoverflow.com/questions/37273750/wrong-intent-uri-data-sharing-audio-files thanks in May 17 15:21:03 Int main... May 17 15:21:08 dumbest comment ever May 17 15:23:28 when i create a project on AS, roboto fonts should be default for AppCompat? or do i need to import the TTF file? May 17 15:23:38 Sepho: incorrect.. the full path is wrong. May 17 15:23:44 Sepho: never share the full path May 17 15:23:45 hey Napalm May 17 15:23:49 hey g00s May 17 15:24:10 Napalm going to any extended I/O ? May 17 15:24:25 nope May 17 15:24:50 Napalm i'm curious about the 'what the fragment' description, worded as if they got new features May 17 15:25:12 maybe they "fixed them" May 17 15:25:13 lol May 17 15:26:30 Napalm: what should I use instead of getFullPath? I've been looking for an example but I can't find anything... May 17 15:26:42 Sepho: https://developer.android.com/training/secure-file-sharing/index.html May 17 15:26:49 you should be using content:// paths May 17 15:27:17 even if my apps is only for receive audios? not to share with other apps May 17 15:28:16 yes May 17 15:28:56 thanks a lot!! May 17 15:28:58 Sepho: other apps are ACTION_SENDing to you May 17 15:29:06 Sepho: just use https://developer.android.com/reference/android/support/v4/app/ShareCompat.IntentReader.html May 17 15:29:43 thank you Napalm ! May 17 15:29:58 Sepho: https://www.youtube.com/watch?v=h9TunRURWNU and https://www.youtube.com/watch?v=C28pvd2plBA May 17 15:30:33 Sepho: is that your StackOverflow question? May 17 15:31:38 Napalm do you know if romainguy is back on the android team ? May 17 15:32:01 no idea, but I know they are revamping the gui stuff May 17 15:32:11 was talking to Chet about it May 17 15:32:17 is bio says works on android May 17 15:32:19 *his May 17 15:32:30 He might still work on it May 17 15:32:33 its open-source May 17 15:32:34 Napalm in what ways, hope not a new material theme May 17 15:32:49 improving the APIs, etc ? May 17 15:32:59 I believe its more a direction of RenderThread's and performance stuff May 17 15:33:08 ah so like project butter 2.0 May 17 15:33:11 I was talking about to him about the need to get shaders in the gui pipeline May 17 15:33:20 yes Napalm it is May 17 15:33:23 so we can run shaders over a framelayout to shade everything inside May 17 15:33:30 like blur or something May 17 15:33:34 cool May 17 15:33:38 Sepho: answering it now May 17 15:36:49 I want to see the size of a particular variable in the memory analyzer, how can I? May 17 15:38:29 Sepho: there you go May 17 15:40:55 Can anyone tell me why I am throwing "NetworkOnMainThreadException" when I clearly made a separate "client handler" thread to avoid that problem, I started throwing that when I switched to SSLSocket, regular socket I had no problem. May 17 15:41:19 It doesn't lie May 17 15:41:22 sorry, SSLSocket is in clientlistener thread* May 17 15:41:36 read the stack trace May 17 15:41:40 the answer is obvious May 17 15:42:09 sslsockets is weird. May 17 15:42:22 Demon_Jester: Also what looper did you assign to the handler May 17 15:43:11 Demon_Jester: If you don't specify it then by default it's still on the UI/Main Looper May 17 15:43:37 "Default constructor associates this handler with the Looper for the current thread." - https://developer.android.com/reference/android/os/Handler.html#Handler() May 17 15:43:41 No, i see where it is, its in my context menu class. I was looking in the wrong area. May 17 15:43:51 That too May 17 15:43:53 I was looking at another class. May 17 15:44:07 Exceptions never lie :) May 17 15:44:34 I thought the error was being thrown on client listener/ client handler threads. May 17 15:44:57 naaa it was being thrown in another class I was working on @ 4 am. May 17 15:46:41 But I do have another question, apparently "onContextItemSelected" is bugged, and I came across a work around that has been posted on SO since 2013.. So, I am guessing "onContextItemClicked" is still bugged? May 17 15:47:09 If I want to see if there is a bug in the framework, and check for possible workarounds where would I go? Just google search? May 17 15:49:39 use the google May 17 15:50:05 I like that, use THE google May 17 16:07:37 when i create a project on AS, roboto fonts should be default for AppCompat? or do i need to import the TTF file? May 17 16:19:28 how come an api that is said in documentation to be API22 works on a device (emulator) with API19 May 17 16:19:35 specifically putBoolean of Bundle May 17 16:20:10 sometimes they were there but @hidden May 17 16:22:29 In the case of putBoolean, probably because it was added in api level 1: https://developer.android.com/reference/android/os/BaseBundle.html#putBoolean(java.lang.String,%20boolean) May 17 16:22:40 Other than that, ^ May 17 16:25:29 What was done in API 21 (as far as I can guess) was to have Bundle extend BaseBundle, and put the method there. May 17 16:26:09 its Bundles all the way down May 17 16:26:36 so its actually there May 17 16:26:50 funny cuz the ide just linted me that it does not comply with minsdk May 17 16:27:18 the ide should be smart enough to know that Bundle is from BaseBundle too... May 17 16:27:30 and why it didnt say anything until now May 17 16:27:36 and why they moved it for christ sake May 17 16:27:48 sorry, god's sake(more general) May 17 16:28:02 see, living example for inheritance May 17 16:28:09 Report false positives on b.android.com May 17 16:28:18 whatup whatup May 17 16:28:42 But pretty much everything has been in Bundle since forever.. Some later api levels added getters with default values May 17 16:29:36 as if i want to fill a form now May 17 16:29:45 its intellj's fault anyway May 17 16:30:04 i've relaxed now that i know that its there May 17 16:30:31 java.lang.NoSuchMethodException: org.jetbrains.kotlin.relocated.com.sampullara.cli.Args.parse May 17 16:30:36 ugh, fucking thank you jetbrains... May 17 16:32:12 gradle gradle gradle you bring my system to a crawl, gradle gradle gradle you eat up all my mem May 17 16:32:45 does anyone know what the purpose of `requestCode` is in a PendingIntent? it just says "a private request code for the sender" May 17 16:33:25 I'm mostly wondering if it's safe to use this to differentiate my PendingIntents if I have multiple intents May 17 16:33:33 i believe that’s it’s purpose May 17 16:34:34 Where doy ou actually download jhat? May 17 16:36:52 grekkos, that's the whole point of it :) May 17 16:38:44 Mavrik: cool beans just checking :) everything I found on the internet was referencing old documentation saying it's not used May 17 16:39:11 so if you have an api that is basically slow as hell and single pieces of data require more than 1 api call, would it be better to just sacrifice loading time and grab a bunch of data and store it locally rather than making slow calls as needed? May 17 16:40:13 orbyt_ the degree of prefetching is tough to say, you have to do some measurements May 17 16:40:18 can I run a api on android? May 17 16:40:25 wut May 17 16:40:44 I ment ipa May 17 16:40:47 LOL May 17 16:40:53 can I run ipa on android? May 17 16:40:59 isnt that a beer May 17 16:41:17 wut? May 17 16:41:37 Tim241: No May 17 16:41:45 IPA is a beer, yes. May 17 16:41:49 it is possible trough an emulater May 17 16:41:50 oh .ipa is ios apk May 17 16:41:54 did not know May 17 16:41:56 ipa is to ios as apk is to android May 17 16:42:01 cool ty May 17 16:48:37 "Google Cloud Test Lab to start charging $5 per device hour." May 17 16:49:15 cheap May 17 16:49:37 Mavrik what was it before, free ? May 17 16:49:45 Was it? May 17 16:49:50 Afaik it was closed testing? May 17 16:55:56 do you guys think jack / jill stable will be released during i/o ? May 17 16:59:01 no May 17 16:59:13 depends on what you consider stable, though May 17 16:59:22 jack has been the toolchain for android M+ May 17 16:59:32 if it can build all of aosp, it's stable... May 17 16:59:39 http://imgur.com/xv88I05 May 17 16:59:40 :') May 17 17:02:30 thepoosh ! May 17 17:03:45 g00s: May 17 17:03:50 ready for tomorrow? May 17 17:04:53 thepoosh yes i am ! May 17 17:06:59 http://imgur.com/sBHWX0O May 17 17:07:06 looks like a few good sessions will be live streamed May 17 17:09:52 maybe we'll get an update on gradle-experimental too May 17 17:10:27 Hi May 17 17:10:33 you will just get more regression and more alpha things May 17 17:11:05 Hi again May 17 17:15:29 adq: thats what the button on the left is for May 17 17:15:45 the fullscreen four corner icon May 17 17:16:31 indeed Napalm, so intuitive May 17 17:16:51 still 3/4 of the issues still there lol May 17 17:16:56 ill be here https://account.altvr.com/events/415390747420787116 May 17 17:26:03 g00s: how long before the source for iosched is released? May 17 17:26:21 thepoosh last year, it took over 6 months ... May 17 17:27:36 i don't really see anything in this years iosched app that has me curious about implementation though May 17 17:27:42 thepoosh what did you want to check out ? May 17 17:27:50 dunno May 17 17:27:52 stuff May 17 17:28:00 :D May 17 17:28:09 I don;t care though louis ck is coming to IL and I have tickets May 17 17:31:44 thepoosh ah, reading about him, well he doesn't like trump so he passed the first test May 17 17:32:07 "has spoken negatively about capitalism" now more interested May 17 17:32:18 he mentioned that trump is, and im quoting "literally hitler" May 17 17:32:30 haha, like ted was the zodiak killer May 17 17:35:54 mikedg is alive ! May 17 17:36:07 yeah, after being in NJ for a while i'd rather live in VR too May 17 17:36:40 * gomjabbar straps on his vive May 17 17:37:10 gomjabbar if you squint, can you see mikedg out in the distance ? May 17 17:38:03 g00s: how did you get to mikedg?! May 17 17:38:17 next thing you're gonna say happy birthday to romain guy May 17 17:39:20 mikedg was one of the original troublemakers here, back in wut 2010 maybe May 17 17:39:37 he was kinda like a mentor to me May 17 17:40:03 im legendary May 17 17:40:14 I have a crash in an activity `String topSelection = this.getString(R.string.key_light_blue);` with the error `Attempt to invoke virtual method 'android.content.res.Resources android.content.Context.getResources()' on a null object reference` but wouldn't that mean this is null? how does that work? May 17 17:40:18 those were fun times haha, between evanc and jasta the hostility was dripping May 17 17:40:31 g00s: anything distant looks pretty pixelated with these things May 17 17:40:34 need the 4k versions May 17 17:40:57 you dont need 4k hmd's you need shittier vision May 17 17:40:59 Hey now, no reason to be nostalgic and gloomy, there is no reason why we cant have that hostility in this channel once more :P May 17 17:41:18 gomjabbar 6K :) May 17 17:42:01 8k is preferable May 17 17:42:07 my vision is excellent! May 17 17:42:32 memorion: where's that code live? May 17 17:42:46 Let's say you have a database of 65000 english words and the usage is to query the database/dictionary for membership to check for valid words. On Android, what kind of query times is expected? May 17 17:43:28 sdsd: try it with asqlitemanager and see May 17 17:43:34 rager I'm trying to topSelection is a local variable in the activity May 17 17:43:44 i remember him May 17 17:43:50 rager sorry, mangled that sentence May 17 17:44:13 I understand that "this" is an activity, but where's this code being called from? May 17 17:44:23 definitely weird as crap May 17 17:45:00 sdsd, are you looking for like, a O-notation measurement or? On android there are really too many different devices to give you a good real-time answer. The performance vary too much i feel like May 17 17:45:07 memorion: not really sure if I can help, but I'm definitely interested in what you're experiencing May 17 17:45:52 if you don't use a database, matching a valid word in a dict in memory is extremely efficient, close to O(1) May 17 17:45:52 sdsd: requires root if your db isn't copied over to non-app-storage, but it's an easy way to run arbitrary queries on a database you've built in an app already May 17 17:45:53 rager it's just a local variable in the activity class, but I guess that's to early to use getResources somehow? I moved it into onCreate and that works May 17 17:46:03 probably exactly O(nbofletterstomatch) May 17 17:46:11 memorion: where was it before onCreate? May 17 17:46:21 oh, you mean it was in the class def? May 17 17:47:10 rager yes, I think so? just class x extends AppCompatActivity { String topSelectio = this.getString(...); } May 17 17:47:10 bt could it be 1ms, or 20ms or 100ms? May 17 17:47:47 memorion: seems relevant: https://docs.oracle.com/javase/tutorial/java/javaOO/initial.html May 17 17:48:00 sdsd: try it and see? May 17 17:48:43 rager yeah, you asking me again helped me fix it! thanks, now I can investigate my real problem :D May 17 17:49:01 memorion: initializing in #onCreate seems like the right answer in Android May 17 17:49:10 cool beans! May 17 17:49:44 rager yeah, it also looked a lot nicer because the variables already got set again if they were in the bundle May 17 17:50:16 rager: does your name mean like a boner? May 17 17:50:21 thats gross dude May 17 17:52:50 mikedg: I'm Alan rager May 17 17:52:55 mikedg, did you get your tickets yet? :p May 17 17:53:04 pfn: sigh no May 17 17:53:16 fuuck goo May 17 17:53:20 so it's just my literal name. May 17 17:53:29 ok, so I store a bunch of R.color.ids in an int[] but if I try to use that id I get a Resources$NotFoundException May 17 17:53:47 and Alan is taken, anyway May 17 17:55:32 if I look in R.java this exists `public static final int lightblue=0x7f0e0030;` but in my array I have stored -9185815 for lightblue May 17 17:55:33 anything else witty, mikedg? May 17 18:01:07 no May 17 18:01:11 i am out of wits May 17 18:01:45 thanks May 17 18:01:50 memorion: how are you storing them? are you refereing to R.color.lightblue or did you copy the number May 17 18:01:53 the number changes May 17 18:03:00 lol May 17 18:03:14 I'm honored May 17 18:03:26 in the xml I have an array with the colors and I get the array with getIntArray(R.color.color_ids) and iterate through that May 17 18:03:36 The documentation of the ObjectAnimator class says I've got to have a Looper on this thread, what does that mean and how should I do that? May 17 18:04:35 man, IO is tomorrow and they still haven't sent out full details and info yet... May 17 18:04:57 Flaghacker, means you need to run an ObjectAnimator on a thread that has a Handler May 17 18:05:06 usually the UI thread May 17 18:05:26 And how do I run the ObjectANimator on the UI thread? May 17 18:05:49 use the google May 17 18:06:13 memorion: got sauce you can just show us? May 17 18:07:01 Flaghacker: an SO thread that might be interesting http://stackoverflow.com/questions/10558208/android-whats-the-difference-between-activity-runonuithread-and-view-post May 17 18:07:14 it's a little complicated I'll try to make a simpler demonstration May 17 18:07:35 you're throwing an int array into a bundle and trying to use those to grab resources? May 17 18:08:21 So this should work: "runOnUiThread(() -> timeAnimator.start());"? May 17 18:09:00 good morning May 17 18:09:03 assuming that you're doing this from an instance method on an Activity, yeah May 17 18:09:18 hmm getting a duplicateFileException from gradle after adding realm May 17 18:09:28 says its clashing with butterknife May 17 18:09:37 over javax.annotation.processing.processor May 17 18:12:25 orbyt_: relevant SO http://stackoverflow.com/questions/22439156/duplicate-files-while-including-butterknife-with-gradle May 17 18:14:01 orbyt_: and the google query that got it: realm butterknife conflict gradle May 17 18:14:13 using google OP May 17 18:14:33 why would you have to move a project to multidex May 17 18:14:40 because too many methods May 17 18:14:46 rager: already have that packagingOptions block declared. May 17 18:14:46 no go May 17 18:15:16 The compiler (I'm using idea 15.0.3) seems to be having some trouble with lambdas: http://pastebin.com/8rJ1vNKR May 17 18:15:53 rager: so that can be packages and gradle dependencies? May 17 18:16:04 Project SDK: Android API 16 Platform, Project language level: 8 May 17 18:16:45 Flaghacker: then don't use lambdas? May 17 18:17:13 I would like to use them, the anonymous inner classes are really ugly in my opinion... May 17 18:17:14 java 8 features are only partially supported on even the dev preview version of android, anyway May 17 18:17:30 Okay, looks like I'm out of luck then... May 17 18:17:45 you *can* if you really really want to May 17 18:18:02 https://github.com/orfjackal/retrolambda < one way to do it in older android versions than N May 17 18:18:20 s/android versions/api levels/ May 17 18:18:23 or whatever May 17 18:18:36 https://github.com/evant/gradle-retrolambda May 17 18:18:40 is what you want May 17 18:18:50 ooh, shiny May 17 18:19:08 rager I think I distilled my problem https://gist.github.com/Memorion/94a9da38ad3431810843b8f27aeb9c7e May 17 18:19:41 sbt-android also supports retrolambda; just `retrolambdaEnabled := true` May 17 18:20:06 sbt ftfw± May 17 18:20:12 memorion: feels like category error in my head May 17 18:21:14 rager what do you mean by that? May 17 18:21:17 memorion: what's the purpose of doing this kind of thing? May 17 18:21:29 orbyt_, I'll certainly take a look at that, thanks! May 17 18:21:37 well... like... you're trying to reason about colors as if they're ints, and undefined behavior is happening May 17 18:22:10 I expected to get the resource ids because those are ints May 17 18:23:50 memorion: your snippet looks almost exactly like http://stackoverflow.com/questions/9114587/how-can-i-save-colors-in-array-xml-and-get-its-back-to-color-array May 17 18:23:55 but they said it works, so I'm at a loss May 17 18:24:04 curious, though, what are you trying to do with this array of color ints? May 17 18:24:39 unless what they're doing is different from what you're doing after the xml part May 17 18:25:29 typedarray works for sure May 17 18:25:41 memorion, maybe you are referencing the wrong array? seeing: int[] array = getResources().getIntArray(R.array.colors_keys); May 17 18:25:49 instead of "colors_ids" in your example May 17 18:26:12 m( just a sec May 17 18:26:42 weird that neither gradle / jetbrains say anything about kotlin / gradle in their tweets / blogs. where the hell was this announced ? May 17 18:26:54 also try to decompose your problem, first get the resourceId of your array, then resolve the color of your resourceId, etc May 17 18:29:03 updated the gist, now my real problem is that I don't know how to get from the int in the array to the apparently different int thet getColor returns May 17 18:29:10 fuuuuuuuuuuu why do i keep getting duplicate file excp May 17 18:29:27 what's getcolor returning? May 17 18:31:37 an int, and if I try to do `ContextCompat.getColor(this, array[i])` I get a resource not found exception May 17 18:31:38 g00s: It’s not even announced on gradle.org, just on businessinsider May 17 18:32:21 jaana there is this, but pretty canned / useless http://www.businesswire.com/news/home/20160517006230/en/Gradle-Elevates-Build-First-Class-Programming-Kotlin-Language May 17 18:32:38 ah yes that’s what I meant, not businessinsider May 17 18:32:47 but it’s real, confirmed on slack May 17 18:33:02 memorion: colors are ints May 17 18:33:09 I mean, once they're getted May 17 18:33:45 jaana sounds interesting, maybe thats like a good 'gateway drug' to kotlin, you mess around with it in scripts and then decide to use it for bigger things May 17 18:33:56 well the devops guys May 17 18:34:16 seems gradle is really focusing on devops lately and continuous deployment May 17 18:34:28 memorion, https://developer.android.com/reference/android/content/res/TypedArray.html May 17 18:34:33 rager what do you mean? ContextCompat.getColor(Context, int) returns an int May 17 18:34:43 do it differently, with obtainTypedArray + getres..id May 17 18:34:45 that's what I mean May 17 18:34:50 Yes it’s great news for Kotlin, hopefully great news for Gradle users too, I could use a decent language to write build scripts May 17 18:34:55 you're doing it wrong with intarray May 17 18:35:02 still curious what you're using this array for May 17 18:35:12 seems weird/too-clever May 17 18:36:19 I need to match between color values, color keys and translations for the colors May 17 18:36:21 i do it with various types in one of my projects May 17 18:36:46 memorion: you're still answering the "how?" question rather than the "why?" or "to what purpose?" questions May 17 18:37:26 well, if you do it successfully, adq, you definitely know the right answer, here May 17 18:38:46 When I want to animate a progressbar using an objectAnimator, can I set the valueTo to be equal to the max of the bar in xml? May 17 18:39:04 let me search quickly, i do it against an array which contains a string resources id, some strings, some drawable resource id too May 17 18:40:54 memorion, here a quick extract: http://pastebin.com/iepwYyYL May 17 18:41:06 I have a bunch of the same kind of view tagged with what color I want them to be and when one of those is selected I get it's color and recolor part of another image in that color, but I also hacked in voice control with "search for {color} on app" so I also need to match the name of the color in various languages to the colorvalues May 17 18:41:21 the INDEX_thing is just a static int referencing the position in the xml array, like 0, 1, 2.. etc May 17 18:41:42 adq thanks, I'll look into that! May 17 18:41:43 INDEX_UUID is the position of a string resource id (so @string/something) May 17 18:42:00 INDEX_TITLE for example is directly a string like "this is a title" May 17 18:42:58 so in your case, you will need to fetch the id of your color res id (similar to how i did it with INDEX_UUID), and then resolve that id to get the final int color May 17 18:48:16 made it work with that, thank you so much! May 17 18:49:44 seriously, how does sheraton sunnyvale not have a shuttle to IO May 17 18:49:46 ... May 17 18:50:57 wtf im getting a duplicatefileexception with one of the files coming from butterknife---but im not even using butterknife May 17 18:51:18 why is Drawable#setDither deprecated May 17 18:51:28 it still does stuff in the subclasses, which are not deprecated May 17 18:51:35 and I don't see an alternative May 17 18:52:01 pfn: they figured the people in for IO could use the exercise May 17 18:52:18 also, I believe Google arranged for a discount on Lyft or Uber for transit May 17 18:52:30 pfn welcome to the rest of the united states May 17 18:52:33 where cars are mandatory May 17 18:52:51 missingno, maybe they believe most use cases on higher API will not involve dithering since everything tends to be ARGB8888 May 17 18:53:02 they even removed intermediate format in the meantime, like 4444 May 17 18:53:14 pfn there is no hyperloop out there yet ? :P May 17 18:53:28 which was useful to save some memory and keeping alpha without sacrificing too much with RGB565 May 17 18:53:39 but I am using ARGB_8888... May 17 18:53:39 somehow I doubt there will be, though the Hyperloop One team appears to have more sane design than the one Musk shown May 17 18:53:44 and my gradient is still stripey May 17 18:53:45 missingno, then you don't need dithering May 17 18:53:59 dithering is useful if you downsample, mainly May 17 18:54:04 hmm maybe I created my bitmap wrong May 17 18:54:07 and should be done _once_ May 17 18:54:54 I have a bitmapThatShouldHaveArgb8888 = Bitmap.createBitmap(someOtherBitmapThatHasArgb8888) May 17 18:55:13 could be your bitmap config, your canvas, your surfaceview, etc May 17 18:55:19 too many places where the pixel format can change May 17 18:55:27 yep that copies the config over May 17 18:55:28 or simply, it's your source image May 17 18:55:55 I draw a gradient xml onto bitmapThatShouldHaveArgb8888 May 17 18:55:59 and it comes out stripey May 17 18:56:06 ahh that's another issue then May 17 18:56:23 could be one of your "paint" flag then May 17 18:56:28 how do you draw it? May 17 18:56:45 drawable.draw(new Canvas(bitmapThatShouldHaveArgb8888)) May 17 18:56:47 not literally May 17 18:56:49 also depending on the gradient, the size of it and the number of colors in it May 17 18:56:54 you might have artefacts May 17 18:57:15 artifacts are bull May 17 18:57:33 this gradient stretches vertically across the screen May 17 18:57:42 and I don't see a good reason for that to be the cause May 17 18:57:51 I must be missing something somewhere in my pipeline May 17 18:58:17 i think drawing a big gradient or stretching to the same size a big gradient won't give you the same result May 17 18:59:15 hmm can it be stretched? May 17 18:59:28 no I don't think I am doing that... May 17 18:59:32 wait I am, this is a scaled image May 17 18:59:34 yeah with scale operation or a matrix May 17 18:59:37 sweet problem solved May 17 19:05:42 hey guys, architecting question May 17 19:06:14 I'm working on this app, and it's got an image viewer that uses a bucket of images to display a larger image May 17 19:06:18 ie: it's got a list of tiles May 17 19:07:18 these tiles exist at two resolutions - 1x and 0.5x zoom (full size and one size smaller), but I can't reasonably fit all of them into texture memory for an opengl view May 17 19:10:15 the reason for the file formats was decided a while back by the iOS folks May 17 19:10:32 and... crap May 17 19:10:35 I don't know what I'm asking, exactly May 17 19:10:57 I was thinking I might be able to just use a Canvas instead of a surfaceview and just use android's built in optimizations, there, but I'm not sure what the performance characteristics would be May 17 19:11:01 Hello everybody May 17 19:11:08 this view would be something users can pan/zoom around May 17 19:11:29 I guess I could just try-it-and-see, but that's a day's coding to investigate it, I think May 17 19:14:06 I want to set layout_weight of a LinearLayout inside another LinearLayout, in java code. I have try mylinearlayout.setWeight, but i can't do it May 17 19:14:46 weight is a layout parameter May 17 19:14:51 it must go in a LinearLayout.LayoutParams May 17 19:19:46 thank you pfn, i have try it but LinearLayout.LayoutParams.MATCH_PARENT and WRAP_CONTENT is the only i can set May 17 19:19:56 false May 17 19:21:39 can you explain me how can i set the param please? May 17 19:24:11 ok, sorry, i can set a float too May 17 19:24:17 you are rigth May 17 19:24:43 perfect, thank you a lot (L) May 17 19:37:06 So, a few weeks ago I was trying to run an AVD on a core 2 duo Mac, and while it worked it was painfully slow. 6 minutes to boot. 30 secs to register a click in the UI when running. Turns out that CPU is not supported by HAXM any longer (even thought no warning or error is displayed). Then I got a Macbook Air, i5 processor, extra ram and disk space. It's the same bloody thing! The Android Monitor says "HAX is working and May 17 19:37:06 emulator runs in fast virt mode". You keep using that word. I don't think it means what you think it means. May 17 19:37:44 kinch ah, shit. well good to know they don't support core 2 - thats what i have May 17 19:38:04 i thought support was added, but seems to be some confusion there too May 17 19:40:24 so, using the emulator on a modern processor like i5, what kind of boot times are people seeing ? Is something wrong, some obscure setting or flag to set ? This is ridiculous, I'm using the x86 system images of course, so what in the world can cause this to be so slow ? THe processor is after all not "emulating" anything May 17 19:42:49 I mean something has to be wrong. There is not point to an emulator that works this slowly on a modern machine May 17 19:43:44 how often is garbage collection run? May 17 19:43:47 hey everyone May 17 19:43:56 android studio was being painfully slow and eventually hung up my X session May 17 19:44:01 so I killed it May 17 19:44:32 and now whenever I start it it throws a bunch of j.util.io.ResizeableMappedFile errors May 17 19:44:37 well, I'm not sure if that's really an error May 17 19:44:41 but it has a counter next to it May 17 19:44:44 kinch on my i7 4970k hackintosh the N4 api 23 x86_64 emulator boots in 17 seconds May 17 19:44:46 it's at 500k and slowly increasing May 17 19:44:57 what is going on? May 17 19:45:12 kinch so you used Intel x86 Atom_64 System Image ? May 17 19:45:14 and why is android studio so excruciatingly slow May 17 19:45:33 hexafluoride its slow because google fucked it up like they did with ADT May 17 19:45:46 basically, because google May 17 19:45:47 I just want eclipse back May 17 19:45:51 eclipse was slow too May 17 19:45:57 but it didn't take 30 seconds to open a context menu May 17 19:46:00 30 seconds for a context menu May 17 19:46:06 ok, that machine is at least twice as fast but this is many times slower. Interesting point about using an _64 image. I forgot about that May 17 19:46:35 kinch also very first boot might be longer as some stuff is prepared May 17 19:46:55 also have GPU acceleration enabled May 17 19:47:44 is anyone successfully use the Kotlin Extensions in AS 2.1.1? May 17 19:51:40 kinch brought it down to 13 secs by giving the emulator another core in the advanced settings thats marked experimental though May 17 19:53:27 Is there a way to force location detection? Apparently android only collects location data on some unfixed schedule. I'm trying to develop an app that is dependent on location updates - can I force location detection? May 17 19:53:43 Even when using geofix it doesn't seem to trigger locationDetected May 17 19:54:01 For context, I'm trying to use Gimbal May 17 19:54:11 AAH! using a 64 bit image made all the difference, thank you :-) May 17 19:56:19 there is one think that confuses me about the emulator. I have a real nexus 7, but the UI in the emulator is very different. The icons are not the same. There is no skin on the nexus, so why would the downloaded system image from google be different ? May 17 19:58:20 how much is all rager May 17 19:58:43 this sounds like google maps May 17 19:58:53 which lazyloads tiles May 17 20:00:34 hi anybody knows some tutorial to create own GIF keyboard ? May 17 20:00:37 kinch you mean aosp vs google apps? May 17 20:02:17 whatup whatup May 17 20:02:57 bit new to this android development malarkey... can anyone tell me if the scrolling category menu in the BBC news app is a standard widget? May 17 20:03:11 dofidum, ask Napalm May 17 20:03:26 thanks pfn :P May 17 20:03:33 oh May 17 20:03:37 its about my app May 17 20:03:39 :D May 17 20:03:41 duh :P May 17 20:03:52 Napalm, you wrote the BBC news app? May 17 20:03:55 yes May 17 20:04:07 which category menu.. the one on the left or across the top May 17 20:04:24 or do you mean the main content that you scroll down over May 17 20:04:33 because categories appear in all of them May 17 20:04:43 categories being a loose term May 17 20:04:46 Napalm, across the top... with the line underneath the text... May 17 20:05:04 we made that ourself because it was before the design library came out May 17 20:05:08 but now the design library has one May 17 20:05:12 which is done the same way May 17 20:05:58 dofidum: its called TabLayout and its part of the design support library.. find a tut here https://guides.codepath.com/android/google-play-style-tabs-using-tablayout May 17 20:06:26 Napalm, thank you that's very helpful :) May 17 20:06:56 Napalm, how did you get yourself in a position where you are developing the BBC news app? May 17 20:07:03 by being awesome May 17 20:07:04 how else :P May 17 20:07:13 haha May 17 20:07:23 memorion, my expectation is when I make an emulator for a Nexus 7, I will get something that looks and behaves just like the physical device. It's running unadulterated android, so why doesn't the emulator look like it ? Pretty much everything is different, app icons, contents of the settings app, notifications at the top of the screen etc etc. May 17 20:07:35 kinch, the emulator never looks like hard May 17 20:07:36 ware May 17 20:07:43 and it has a pure aosp image, that is all May 17 20:07:50 dofidum: i went for a interview for the role. May 17 20:08:50 Napalm, it must be pretty cool to have made an app that has actual users! May 17 20:09:02 I understand that the emulator doesn't look like hardware. I don't understand why not. but why give the option to make May 17 20:09:17 kinch, it's for a configuration similar to hardware May 17 20:09:20 not the same as hardware May 17 20:10:21 dofidum, overrated, users love giving 1* reviews May 17 20:10:40 dofidum: all my apps have actual users. my job is android developer May 17 20:10:42 lol May 17 20:10:55 the point, is why not. It's not emulating a nexus 7 if it looks different. I'm not talking about whatever random manufacturers shovelware. This is a google device, plain android, so what is the reason it doesn't ? May 17 20:11:09 it looks the same May 17 20:11:11 dunno whatyou're talking about May 17 20:11:25 it's not emulating nexus 7 software May 17 20:11:27 just hardware configuration May 17 20:11:40 and it's an aosp image May 17 20:11:51 Napalm, my only app has 95 users! May 17 20:12:03 it still has users May 17 20:12:10 bonus! May 17 20:12:15 say i wanted to use a linear layout and give it an exact percentage for layout weight, due to arbitrary requirements. Is there any reason not to use something like android:weight="749" in a view that had a weight sum of "1000" May 17 20:12:16 kinch: It’s not emulating a nexus 7. It’s an emulator, running an AOSP image, that happens to have the same screen size as a Nexus 7 May 17 20:12:51 it's not really a percentage layout May 17 20:12:55 use percentlinearlayout for that May 17 20:13:12 Napalm, it's a little soul destroying how hard it is to get visibility in the play store. May 17 20:13:14 hmm, ok. That seems like an odd way to go about it. So aosp has old versions of the google apps. Yet, it's downloaded from google itself May 17 20:13:25 aosp has no google apps May 17 20:13:27 AOSP doesn’t have any of the google apps May 17 20:13:33 aosp has aosp May 17 20:13:35 that is all May 17 20:14:37 ok. So that explains why it's different. What is the reason it's done this way ? The image is downloaded from google, so why don't you get the real thing ? May 17 20:14:46 cause it’s just AOSP May 17 20:14:59 they don’t want to distribute their proprietary image May 17 20:15:02 yes. I get that. May 17 20:15:54 nexus image is not aosp image, fyi May 17 20:16:09 aosp image = repo init -> make world May 17 20:18:20 it's just an odd way to do things for me. What if you want to interact with the google apps from your own app, you cannot do that in an emulator, you need a real device. Same thing if you want to test against some exotic devices, that's what an emulator would be perfect for, yet it cannot do so because it has no image. May 17 20:18:56 an emulator wouldn’t work for testing against an exotic device May 17 20:19:07 there’d be far too many corner cases and such for that to work May 17 20:19:17 yes, that is the point. May 17 20:19:25 kinch you can the emulator images which have the google apis may be what you want May 17 20:19:34 then why did you say that’d be a use for it? May 17 20:20:21 further, you’re assuming that there would be an image available, which would rely on the manufacturer of that image to make such a thing available May 17 20:21:38 Yes, as I said, thats the point. Being able to actually emulate an exotic device requires an image, but it would be much preferable to possess every different physical device May 17 20:22:12 but I just told you that it wouldn’t work well for emulating an exotic device, because there would be too many corner cases in the emulation itself May 17 20:22:21 anyway, I just had too high expectation of what the emulator could actually do. May 17 20:23:10 is that Google Device Cloud Lab anything more than a novelty yet? May 17 20:23:34 at least now it's running at a fine speed so I can get to work without lugging any other devices aolog May 17 20:23:38 kinch it can interact with google apps, you need to choose an image with (with Google APIs) May 17 20:23:56 ok, I'll do that May 17 20:24:19 it’s not going to have Chrome or the Play Store or things like that on it May 17 20:25:09 kinch, yeah the emulator is kinda crap in that way :/ May 17 20:25:16 It has a completely separate sets of bugs May 17 20:25:33 And the image is pretty stripped down and modified so it's a bit of an issue, especially for testing May 17 20:26:18 so... did anybody here write an app that's in the google play "top apps" list (ignoring Napalm)? May 17 20:27:45 Does it count if we wrote a library used by several? :P May 17 20:28:23 I mean, JakeWharton is here so... yes? May 17 20:29:00 Mavrik, well, i'd be interested in finding out either way :P May 17 20:30:11 i am guessing i should know who that is? May 17 20:31:01 mmm. googling for how to rotate the screen gives fn+left ctrl+F11 but that's not working. I launch in landscape, but the UI is in portrait May 17 20:31:45 dofidum: he’s a guy that has been involved in several influential libraries and has given some talks on Android development May 17 20:32:03 other sites say f12, but neither work May 17 20:32:16 s73v3r, thank you for clarifying :) May 17 20:36:29 So did you have an actual question? :) May 17 20:37:00 Mavrik, me? no? May 17 20:39:51 I really don't get this. I take it that the launcher in aosp is too limited to adapt to changing orientations. The other apps in the emulated imaged displays correctly in landscape but not the launcher. May 17 20:40:41 Mavrik, i'm just nosey... May 17 20:40:45 when using the toolbar buttons the orientation flips but in landscape the launcher displays sideways May 17 20:41:59 another case of too high expectations I guess May 17 20:42:52 Hello May 17 20:43:01 just get a device. it’ll make things a lot easier on yourself May 17 20:43:05 How can I detect changes made to preferences from another Activity? May 17 20:43:29 when is percentRelativeLayout height calculated? I'm trying to programatically fill something in the view based on it's height, but it's not there during onCreate or onResume May 17 20:43:55 jujube, after layout. May 17 20:44:10 SharedPreferences.OnSharedPreferenceChangeListener May 17 20:44:13 heh, I have several, including a real nexus 7. I really want to avoid the hassle of carrying it around. I guess succesful use of the emulator just requires dialing the expectaions way back May 17 20:44:31 or How do I know from another another activity that preference were changed? May 17 20:44:53 Mavrik, which library?> May 17 20:45:09 ranguro, eventbus or rxJava observables May 17 20:45:27 the emulator is useless unless you're dead set on not having an actual device May 17 20:45:28 that is all May 17 20:45:42 Ranguro, sharedPreferences.registerOnSharedPreferencesChangedListener May 17 20:45:47 or SharedPreferences.OnSharedPreferenceChangeListener May 17 20:45:55 kinch, what does launcher have to do with anything? May 17 20:46:05 who cares if the launcher isn't the same May 17 20:46:06 irrelevant May 17 20:46:09 I don't remember the AOSP one supporting rotation on devices either O.o May 17 20:46:31 Mavrik: That would only let me know from my Preference Activity May 17 20:46:41 no. May 17 20:46:46 It's a singleton. May 17 20:48:04 So I can set up that listener in any activity and they would know it? May 17 20:48:07 Mavrik May 17 20:48:20 meh, need to drive over to shoreline and pick up badge May 17 20:48:26 can I * May 17 20:51:31 Are there any guidelines somewhere wrt making notifications *always* make sounds? May 17 20:52:44 wut? honor user's wishes May 17 20:54:02 Agreed, what's the use case where you would want to force it to make a sound? May 17 20:59:02 So who here's bringing pizza for our Google IO meetup here tomorrow? May 17 20:59:10 autrilla: Give the user an option to disable it in your app, otherwise they’re gonna disable notifications for your app altogether May 17 20:59:41 pfn: android itself does not have support for per-app notification sound settings May 17 20:59:54 it is up to the app to do it May 17 21:00:04 pfn: this is a somewhat important notification, so it should probably always make a sound May 17 21:00:18 autrilla: That’s for the user to decide May 17 21:00:22 ^ May 17 21:00:47 so put an option in your app which will allow them to disable sounds on notifications. Otherwise they’ll disable notifications for your app completely May 17 21:00:55 Defaulting to with sound might be acceptable May 17 21:01:06 that’s completely fine May 17 21:01:07 but definitely +1 to an in app option May 17 21:01:20 of course, this does also depend on how often your notifications would come May 17 21:01:57 if they’re maybe once a week, and it’s something the user would care about, as opposed to a “You haven’t used us in a while” type thing, then the option might be overkill May 17 21:02:15 but if it’s multiple times a day, then an option should be mandatory May 17 21:03:12 User testing is also great for this, if you have the resources May 17 21:05:59 i'm going to sound stupid asking this but why is Fragment defined in both the android.app package and the android.support.v4.app package? May 17 21:07:27 Hello. I am in a bit of a bind. I changed some configurations on androidstudio to include the android.support-v4 library and use ContextCompat and now my app will not fully launch in AVD... Literally oncreate isn't even called and I just get a persistent white screen. I am stuck because I just don't know how to debug this and I can't seem to fix it by removing the library dependency. Any ideas? May 17 21:08:08 dofidum: Fragment was "Added in API level 11" so for example if you wanted to ship your app to devices on API <11 and you built your app with android.app Fragment instead of the support one, it would not work May 17 21:08:30 You can see "Added in API level 11" in the top corner of https://developer.android.com/reference/android/app/Fragment.html May 17 21:10:54 yiati, but if i use android.support.v4 it would work? May 17 21:11:13 dofidum: yes May 17 21:12:28 dofidum: always use support fragments. that way you get consistent behavior May 17 21:15:26 ^ May 17 21:16:20 autrilla: if an app makes a sound when I don't want it to, I uninstall it. just my two bits. May 17 21:16:40 * dofidum has a lot to learn May 17 21:17:18 s73v3r: adding that sort of thing takes work :( May 17 21:17:36 it takes work to make an app that isn’t complete and utter shit May 17 21:17:44 ^ May 17 21:17:46 It's surprising it hasn't been made standard considering tons of Google apps do that May 17 21:19:38 Hey May 17 21:20:12 hithere - I have old samsung galaxy S III mini with Android 4.1.1 May 17 21:20:46 woul you recomed to overwrite original firmware with cyanogenmod or any other - I would like to use it for app testing... May 17 21:20:53 after upgrade... May 17 21:21:35 bolovanos,There the cloud test lab that free you can use for testing:) May 17 21:21:55 I still try to find more information on it:) May 17 21:22:52 perlsyntax, http://vignette1.wikia.nocookie.net/powerlisting/images/5/53/What-are-you-talking-about.jpg/revision/latest?cb=20131130214609 May 17 21:24:20 bolovanosm,https://developers.google.com/cloud-test-lab/ May 17 21:24:23 Any outcome of oracle v google? May 17 21:24:54 drose379: Yep, they both lose, and owe me 3 trillion dollars May 17 21:24:55 bolovanos,That what i talking about.. May 17 21:25:17 Any effect on us yiatti May 17 21:25:28 yiati * ^ May 17 21:25:47 :O May 17 21:25:58 drose379: I was jk'ing idk. I don't know if the case will ever be resolved May 17 21:26:15 perlsyntax, good to know - let me know when you done with basic research May 17 21:26:32 I honestly dont even know what they are fighting about May 17 21:26:36 Havent looked into it much May 17 21:26:37 fair use May 17 21:26:40 but back to my question - would it be ok to use cyanogenmod device for developement? May 17 21:26:52 it's pretty interesting to follow the live tweets May 17 21:27:04 or i should rather stick to original firmware ? May 17 21:27:05 What is oracles case? May 17 21:27:21 what google did to java wasn't fair use I guess? May 17 21:27:29 Whatd the ydo May 17 21:27:34 that google fucked up when they used java, and they knew they fucked up, based on the emails May 17 21:27:38 fork it for android May 17 21:27:41 bolovanos,Well was told it free from the google play console support.On the web site it say you need a cloud plateform acc. May 17 21:27:53 So whats wrong with that memorion May 17 21:28:10 drose379: Their fork was incompatible with the other javas May 17 21:28:16 bolovanos,Maybe that not the web ui:) May 17 21:28:21 Hmm May 17 21:28:42 the JVM is open source, and you can make your own JVM, but it must be compatible with the other JVMs out there. otherwise you need to pay for a commercial license May 17 21:28:43 read https://twitter.com/xor and twitter.com/sarahjeong for the live trial May 17 21:29:03 Why cant google pay for a commercial licence May 17 21:29:19 they easily could. they didn’t May 17 21:29:25 Ah May 17 21:29:27 I see May 17 21:29:58 today they said that Oracle had to give amazon a 97% discount for java to have them use it for the kindles instead of going with android May 17 21:30:13 perlsyntax, I have no idea - it is completely knew to me - I am using physical devices an virtual ones May 17 21:30:26 memorion: amazon kindles dont use android? May 17 21:30:43 drose379 the tablets do, the ebook reades use java I guess May 17 21:30:48 Ah May 17 21:31:10 So at that discount I wonder how much it costs May 17 21:31:11 bolovanos,cloud test lab are real device to use.But suck i don't have a device yet so cloud test lab be good for me:) May 17 21:31:36 bolovanos,I have to wait for google io 2016 May 17 21:32:06 drose379 I particularly enjoy tweets like this https://twitter.com/sarahjeong/status/732639224877355008 May 17 21:33:07 haha May 17 21:34:03 perlsyntax, ah good to know - 19h to go May 17 21:34:54 Anyone used the new flexbox layout May 17 21:34:58 bolovanos,Yes it is May 17 21:35:46 Google TangoVRGlass 3.0 May 17 21:36:35 w4ffles,Is that on the google glasses:) May 17 21:37:01 just working my crystal ball May 17 21:37:30 ok May 17 21:40:45 bello everybody May 17 21:40:53 hey May 17 21:42:37 somebody know how to set margins for a view in java code? please May 17 21:43:03 don’t you fill out the margins on the layoutparams for the view? May 17 21:44:04 i can't do it May 17 21:44:18 hass no xml May 17 21:44:44 none of what I said had anything to do with XML May 17 21:46:00 i cant May 17 21:46:19 you haven’t even tried May 17 21:46:29 yes May 17 21:46:32 no May 17 21:46:50 when you add your view, you can add layoutparams, which is a class. there is where you set the margins May 17 21:49:15 is part of a item of a view May 17 21:49:39 i need to set in java code May 17 21:51:48 and I just told you how to do that May 17 21:52:32 or if i need set msrgins depending of the screen size for exsmple May 17 21:52:56 you should be using the values in the different density buckets for that May 17 21:53:21 sorry May 17 21:53:33 but isnot my snswer May 17 21:53:45 quesdtio May 17 21:53:47 stackoverflow or provide more details May 17 21:54:35 DaZeK_: your question has been answered. The way you set margins programatically is to do so using the LayoutParams class when you add the view. May 17 21:54:42 there is no other way to do it May 17 21:54:43 i need to know how to set msrgins in java code May 17 21:54:48 no May 17 21:54:54 yes. that is the only way to do it May 17 21:55:07 look up the LayoutParams class May 17 21:55:10 i dont want to know it May 17 21:55:19 then leave May 17 21:55:19 i know that May 17 21:55:54 xml file is interpreted snd parsed to java code May 17 21:56:01 then ineed that code May 17 21:56:12 LayoutParams has nothing to do with XML May 17 21:56:36 mmm o May 17 21:56:41 sorry May 17 21:57:04 in layoutparams i set ints May 17 21:57:15 but that is incorrect May 17 21:57:34 15,15,15,15 May 17 21:58:20 sorry i underdtsnded basd May 17 21:58:56 what’s incorrect about it? May 17 21:58:57 LinearLayout.LayoutParams(); May 17 21:59:12 whst i need to write indide plesse? May 17 21:59:47 sorry im using a rablet... bad keyboard May 17 22:00:43 LayoutParams has a method on it called setMargins. that’s where you set the margins May 17 22:01:08 ok i go to see it May 17 22:01:16 thank you a lot May 17 22:01:20 :) May 17 22:01:27 god bless you May 17 22:01:54 this IRC channel is so confusing May 17 22:02:15 why? May 17 22:02:30 how is this your first stop for basic troubleshooting? May 17 22:02:47 lol May 17 22:04:52 i have tried but dont work May 17 22:05:05 because you didn’t bother to read May 17 22:06:32 yes i have read everything May 17 22:06:51 but i dont underdtsnd you mean May 17 22:06:58 http://stackoverflow.com/questions/2481455/set-margins-in-a-linearlayout-programmatically May 17 22:07:03 there, copy/paste your way to victory May 17 22:07:24 doing exactly the things I told you to do May 17 22:07:36 yeupp May 17 22:08:02 snd i hsve 2cm of window May 17 22:08:14 with the keybosrd in the tsblet May 17 22:08:23 dammit, take your time with your typing May 17 22:10:59 is bluetooth le scan really unreliable? i mean, it takes too long to find an advertising device, when it finds... May 17 22:15:55 anyone know of an article or something that reviews the current state of ecc on android? May 17 22:16:59 ecc? May 17 22:17:22 elliptic curve cryptography May 17 22:17:43 state how? availablility of it? May 17 22:19:19 yeah, which versions support which functions or what version of bc May 17 22:19:36 just use your own bc May 17 22:20:04 yeah, you’re always going to want to use your own bc May 17 22:20:31 if you hate yourself, you can always use JNI with Crypto++. Full ECC support May 17 22:21:00 yeah, trying not to go that route. have another java client that needs to use the same library. May 17 22:22:59 I ran across this the other day May 17 22:23:00 https://github.com/aerogear/aerogear-crypto-java May 17 22:23:04 could be useful May 17 22:23:20 cool. will check it out. May 17 22:24:51 dsardari: bouncycastle has an ECC implementation, if you trust it. [but you'll need to repackage it; e.g. spongycastle] May 17 22:28:27 dsardari: you may also I guess, choose to use https://github.com/WhisperSystems/curve25519-java if you don't really care to integrate via the standard crypto apis May 17 22:29:32 yeah, can't use them. thanks for the info though. will have to do some research. May 17 22:30:59 The other option (probably reasonable, for some definition) may be to use the gms provider installer - though I haven't tried that route myself. It'll be patched continuously, so one less thing to worry May 17 22:31:17 (well, maybe just _one_ thing to worry :) May 17 22:33:23 interesting...didn't even know they had one May 17 22:34:34 It's essentially conscrypt. You'll tie yourself with gms; but in the grand scheme of things there are worse ways to get hosed... May 17 22:35:09 well the doc ui update looks nice May 17 22:37:00 looks like i have some reading ahead of me :o May 17 22:37:45 Are you rolling your own protocol on top of ECC primitives? May 17 22:39:06 yeah, that's the plan. May 17 22:41:10 Well, safe crypto travels :-) one thing that strikes me is to see if the standard JCE apis let you evolve your protocol - you can swap in implementations "relatively" easily later; and you won't get locked into any one implementation too quickly. May 17 22:42:23 jce api is so ugly May 17 22:42:37 i.e., most gotchas seem to happen in the protocol areas; and if this is more of an exploratory thing - JCE for all its warts will probably lead to fewer headaches downstream. May 17 22:43:16 yeah, our current library uses jce for RSA. seems okay thus far. May 17 22:44:55 I disagree, crypto is easy to abstract May 17 22:45:26 unlike jce, magic strings, and undocumented use of various crypto primitive subclasses May 17 23:03:33 I know that a string contains some other strings, is there an easy way to check which of the others appears first in the original? May 17 23:05:43 if my last operator was a .map() and its spitting out a List, which the strings are urls for an api call, what operator should i be looking at next May 17 23:07:27 memorion: depending on how the original string is set up, you could separate it by some separator (a space, comma, etc), and sort the list alphabetically May 17 23:08:03 otherwise you’ll have to loop through the list of other strings, and get the index of where it starts in the original string, and compare that way May 17 23:08:57 yeah, the original string is voice input so I can't really split it because 2 of the potential matches also have spaces May 17 23:09:51 loop through and search for substring it is May 17 23:15:46 Hey guys is it possible to take a screenshot of android screen without it being root? I have done it before ,but my phone was rooted I believe. I am trying to find my old code on how I did it. May 17 23:16:31 are you saying as your app, you want to take a picture of the screen? May 17 23:16:57 if you create a trie, you can do it in O(n) May 17 23:17:01 i don’t see why you’d have to be root to take a picture of your app May 17 23:17:04 Demon_Jester since there are non-root apps that can record the screen there's probably a way to do that, here's an open source screenrecorder https://github.com/JakeWharton/Telecine May 17 23:18:49 s73v3r, what about outside of my app? That is what I was able to do before, but there were times my phone was not rooted, and times it was rooted.. May 17 23:19:17 take a look at the link memorion posted May 17 23:22:40 hmm, the small IO shirt is a bit on the small side May 17 23:22:51 s73v3r, I am, also I found my old code, and getting looper.prepare error.. May 17 23:22:57 one step at a time, I guess. May 17 23:23:13 vysor does it somehow May 17 23:26:37 Demon_Jester https://developer.android.com/reference/android/media/projection/MediaProjection.html May 17 23:30:57 I want something like Handler.postDelayed() but I want to be able to cancel it if a certain event is received so that it never gets fired, is that possible? May 17 23:31:26 grekkos, removeCallbacks May 17 23:31:41 nice May 17 23:31:47 so I can just keep a reference to the runnable May 17 23:46:57 is it worth bringing a laptop to IO? May 17 23:47:06 last time I went, it wasn't, other than for killing time May 17 23:49:16 do you plan on asking google engineers about stuff, or showing anyone else code? May 18 00:19:41 probably not May 18 00:27:23 quickly, if I were a RecyclerView adapter, what’s the appropriate way to get the layoutmanager of my recycler view? May 18 00:32:07 well, the adapter shouldn't be concerned with layout... but you get recyclerview onAttachedToRecyclerView May 18 00:32:16 you can pull layoutmanager from a reference you store from there May 18 00:36:35 How can I use ".getrootview()" in a separate class withouth throwing nullpointexception? May 18 00:37:28 by not doing it on a null object May 18 00:37:30 duh May 18 00:38:15 pfn how can i solve that? I declared View rootView, and then I did rootView.getRootView(); and still throwing nullpointerexception. May 18 00:38:45 learn2java May 18 00:39:13 yep pretty helpful people in this channel. May 18 00:39:40 lol May 18 00:40:02 I'm not going to teach you java May 18 00:40:23 sorry gotta squelch my radio there is an annoying buzzing noise. May 18 00:40:52 feedback from the cops bug May 18 00:40:59 I think this channel is pretty nice and helpful in general May 18 00:41:52 is a fragment considered visible if it's not currently on the screen May 18 00:41:58 like in a view pager or something May 18 00:43:52 i would probably think it helpful, if i understood more then a quarter of wtf they were discussing May 18 00:46:53 than May 18 00:55:21 Hello, I have a function onStart() which creates a notification. I am trying to move the logic inside the onHandleIntent() method in my class. I am having trouble figuring out why this is not working. Would someone mind explaining to me how to do this? I know I have pretty much all the logic I am just not understand how to create the function to create the notification without the onStart method and call it inside the onHandleIntent May 18 00:55:22 method http://pastebin.com/8wF92dzL May 18 01:07:59 shhtt nordic app scan works fine; my code doesn't May 18 01:46:55 Good day. So, i'd like to load up the app drawer with some dynamically changing items. Can that app drawer have pretty much any type of layout/ui components? May 18 01:50:40 TrentonAdams sure ... May 18 01:53:59 g00s, Many thanks. May 18 02:10:56 realm looks pretty awesome May 18 02:11:06 anyone here use it? what do you think? May 18 02:17:01 that would be nice if google threw us some bones in the database area May 18 02:17:41 its pretty difficult yeah? May 18 02:18:04 i prefer regular sqlite May 18 02:18:09 pretty time consuming using the default android classes May 18 02:18:20 iOS has Core Data, google should have something like that maybe May 18 02:19:03 the current database stuff hasn't changed (afaik) since 1.0 - pretty much the same stuff May 18 02:19:52 i don't really like embedding sql in java though, something like jooq is nice May 18 02:22:16 I didnt know you could annotate a method with @Nonnull May 18 02:22:24 I thought you could only mark params with that annotation? May 18 02:24:34 doobie is nice May 18 02:24:35 too bad it isn't setup to work with android sqlite May 18 02:33:59 CedricBeust http://blog.jetbrains.com/kotlin/2016/05/gradle-meets-kotlin/ May 18 02:34:27 Yes I saw May 18 02:34:56 guess the video will be coming soon May 18 02:36:11 "You’ll find that, suddenly, the things you usually expect from your IDE just work, including: auto-completion and content assist .." May 18 02:36:16 hehe May 18 02:37:21 Slightly confused at obtaining app drawer items. I can call findViewById to get the NavigationView, but I'm unable to do that for a sub-menu item that has an id. Seemingly the only way to get the specific item I want is to keep calling getItem(index) until it uses the title I want. May 18 02:40:53 Is there like an app developer console in android studio, where I can run my app, and then call apis within it to see how things operate? i.e. I can stop on a break point, and then evaluate expressions, but I'd ultimately like to do that at any point, with a context I specify. May 18 02:41:37 e.g. ((NavigationView) findViewById(R.id.nav_view)).auto-complete-this May 18 02:53:01 TrentonAdams, debugger let's you evaluate arbitrary expressions May 18 02:54:17 pfn, Yeah, I know. I was just hoping to do it out of context. i.e. just punch in what context I want, such as an active activity, and go May 18 02:55:56 What does pfn stand for? **** ENDING LOGGING AT Wed May 18 02:59:58 2016