**** BEGIN LOGGING AT Fri May 15 02:59:58 2015 May 15 03:05:56 burntcookie90, it is that style May 15 03:10:59 burntcookie90, latest SwipeRefreshLayout in support-v4 is new style May 15 03:12:06 does anyone know why AS like does a little jig every once and a while? it shifts left and right and left and right? May 15 03:12:35 lasserix_ lolwut May 15 03:14:58 it shifts left and right May 15 03:15:11 like im on a spaceship and everything is shaking? or something, but like May 15 03:15:23 hmm maybe i am hallucinating but i will do a screen capture and confirm tomorrow May 15 03:15:26 lasserix_ maybe it detected you are coding drowsy and is trying to wake you up as precautionary measure May 15 03:15:34 seriousily May 15 03:21:51 lasserix_: I have a fair number of rendering glitches in AS. gray rectangles flickering, previously the code area would flash white when scrolling, etc. May 15 03:22:01 no dancing yet though. May 15 03:22:02 this looks intentional May 15 03:22:12 like back spacing while at the front of the document May 15 03:24:59 lasserix_: which OS? May 15 03:25:07 mac May 15 03:25:29 https://gist.github.com/Nyceane/6ed64734b734fe48ad35 May 15 03:25:30 hey guys May 15 03:25:36 hwy am i recording horizontal videos? May 15 03:26:00 Because you're holding it wrong? May 15 03:26:46 lasserix_: I forget which windows have done it, but sometimes OSX things do that to show errors. lately I've had AS fullscreen though, so I wouldn't be seeing it :| May 15 03:27:18 CedricBeust, please elaborate, I've tried all sort of combinations between mCamera.setParameters, mCamera.setDisplayOrientation, and mediaRecorder.setOrientationHint May 15 03:27:19 hadn't happened on 1.1 though, which I primarily used windowed May 15 03:27:29 I am doing this on lollipop, i dont care about gingerbread May 15 03:27:53 meetoman: That was a joke and a reference to an Apple thing a year ago, you can ignore May 15 03:28:13 pfn: i think you're misunderstanding :D i want swipe to dismiss, not swipe to refresh May 15 03:28:42 Oh, misread May 15 03:28:52 time to go May 15 03:28:53 phew May 15 03:30:05 camera is somehow always side ways :| May 15 03:30:08 and how do I turn it around? May 15 03:35:38 nvm May 15 03:35:41 somehow i got it odne May 15 03:35:42 done May 15 03:35:53 not fully understood it but I got what i wanted May 15 03:49:26 neat solar city uses scala May 15 04:02:55 groxx yeah i keep getting the autosuggestion callout popping up over my cursor in AS May 15 04:03:30 most often it happens when it shows up as i am pressing CR to go to the next line, but then the cursor is under it :/ May 15 04:04:52 is there a way to run unit tests on a device/emulator? May 15 04:05:12 I mean, obviously I could just copy the files and do it by hand, but does AS do anything to make that easyish? May 15 04:07:18 guys May 15 04:07:35 my preview surface holder is in right orientation, but recorded video is always landscape May 15 04:07:40 please help, i dont know what is wrong May 15 04:10:14 hihya guys May 15 04:10:45 anyone think of a way to enable usb debug mode from Windows? May 15 04:12:37 ronkrt weren't you using aide, or was that somebody else May 15 04:13:01 it was me but now i have a pc again May 15 04:16:43 The Android NDK page says chmod a+x ndk.bin May 15 04:16:52 why not chmod u+x ndk.bin? May 15 04:16:53 Bleh May 15 04:19:18 it sucks i can see my phone in a device manager, May 15 04:19:22 groxx, instrumentation tests? May 15 04:19:28 i just cant access or fix it May 15 04:19:39 groxx, stuff in androidTest should rum automatically May 15 04:20:41 pfn: so far no luck :\ I've got an androidTest folder + an ApplicationTestCase, but they don't seem to be running May 15 04:21:23 groxx, you need to add the manifest tags and are you running the test profile in studio? May 15 04:21:42 in studio, have not added the manifest tags. that would explain it :) (first time trying this) May 15 04:22:09 well, the ide should add the tags automatically, I think May 15 04:22:33 not sure May 15 04:23:00 http://developer.android.com/tools/testing/testing_android.html seems to imply that, but it hasn't happened :| May 15 04:23:17 and it doesn't mention much of anything required to do it by hand. annoying. May 15 04:27:40 i can't keep track of all the android testing thingies. i just put stuff in androidTest :D May 15 04:28:57 bluh. I'll make a new project from scratch tomorrow :| even the default androidTest/.../ApplicationTest.java file isn't fully set up in a brand new project :( still missing parts. May 15 04:29:42 welp. I'm off for the night or something. o/ May 15 04:29:54 gnight groxx May 15 04:55:02 g00s: I don't think he meant he's going to bed. haha May 15 04:55:20 heh May 15 05:04:26 how can I get rid of notification text box on android wear ? May 15 05:07:20 electrical tape? May 15 05:14:13 eh wearables May 15 05:20:10 there should be a "keep screen on while connected to ADB" option in developer settings May 15 05:23:00 wtf. adb logcat -c is not working for me. anyone else get this on L? https://code.google.com/p/android/issues/detail?id=78916 May 15 05:30:06 hey anyone understand the issue I am having here http://stackoverflow.com/questions/30249115/pagerslidingtabstrip-indicator-light-does-not-change-with-the-page/30250270#30250270 May 15 05:37:00 surf2b1: if it's not clearing, what's the issue? are you constantly querying logcat, or keeping a steady flow of it? May 15 05:39:51 where are the cool kids looking for jobs these days? May 15 05:40:37 canvs2321: my IDE has logcat output. May 15 05:40:40 eco something May 15 05:41:12 I'm trying to hire the best Android dev on a growing team. Need someone with some experience who can be a lead. May 15 05:42:10 knapper_tech: "No bots, and no advertising please, jobs or otherwise" ^^ May 15 05:42:18 lol May 15 05:42:27 :p May 15 05:42:30 who reads MoD's? May 15 05:42:40 not knapper_tech :) May 15 05:42:45 correct May 15 05:43:00 surf2b1: so are you saying you click the button in your IDE to clear and it isn't clearing? May 15 05:43:13 knapper_tech: we, you=nope May 15 05:43:45 canvs2321: yes. it clears in the window but if I run adb logcat -d it never clears. May 15 05:44:17 logcat -d doesn't clear, or are you saying after logcat -c, running logcat -d shows full buffer May 15 05:44:28 either way why mention IDE May 15 05:45:07 mentioned IDE because you asked if anything is constantly querying logcat. May 15 05:45:16 no i mentioned if you are May 15 05:45:23 "after logcat -c, running logcat -d shows full buffer" <-- this May 15 05:45:36 other than checking if it cleared, no May 15 05:46:37 what is the issue if it doesn't clear? there are so many ways to filter results, how is it hindering you? May 15 05:47:23 canvs2321: it's just annoying. May 15 05:47:48 cool May 15 06:06:01 import android.support.v7.app.ActionBarActivity; May 15 06:06:01 import android.support.v7.widget.Toolbar; May 15 06:06:04 oops May 15 06:06:08 lol May 15 06:06:12 ~ May 15 06:06:16 well that cant be resolved.. am using appcompat_v7 May 15 06:06:34 Toolbar cant, ActionBarActivity can May 15 06:08:04 Tricknology: I thought you accidentally pasted code. That's weird. May 15 06:08:15 I meant to past the last import May 15 06:08:18 paste May 15 06:09:42 AS or eclipse? I've had weird import issues in Eclipse before. May 15 06:09:49 http://stackoverflow.com/questions/30145169/android-toolbar-no-longer-works May 15 06:09:50 :/ May 15 06:10:05 meh nevermind.. that guy was being silly May 15 06:10:10 eclipse surf2b1 May 15 06:10:42 did you try the good ole project -> clean? May 15 06:12:40 In the past that has fixed my import issues. May 15 06:14:40 for sure May 15 06:14:42 and restart May 15 06:15:45 IDK what it could be. weird stuff. Toolbar hasn't moved. May 15 06:19:58 maybe that im using appcompatv7 through JWViewPagerLibrary? May 15 06:23:17 join #android May 15 06:24:34 error: Error retrieving parent for item: No resource found that matches the given name May 15 06:24:34 'android:Widget.Material.ActionButton'. May 15 06:24:39 wtfff May 15 06:24:44 coming from support lib May 15 06:24:48 hi May 15 06:25:08 i can new Handler in onCreate but cannot new Hangler in method, why? May 15 06:25:28 where are you creating it? May 15 06:25:37 got code? paste to pastebin.com May 15 06:25:51 Tricknology: in a static method May 15 06:26:57 Tricknology: must i use Looper with it? May 15 06:28:18 omg finally.. I had to delete appcompat-v7 import support-v7 to workspace, then change project.properties target=android-22 May 15 06:28:19 phew May 15 06:28:34 davidmemm, i dont know, i dont know what your code is doing or what you want it to do May 15 06:28:40 a million reasons why it could faild May 15 06:30:56 I'm working with gridView, how can I set that the element is a square? without specify any dimension? May 15 06:31:15 who tried developing with BLE here? May 15 06:32:19 davidmemm a new Hangler would be your own class May 15 06:32:46 icemanbp, what? set the square in your layout May 15 06:32:53 hey Tricknology May 15 06:32:58 I see you've upgraded your 't' May 15 06:33:33 hacks involved with t to T May 15 06:33:43 he is now senior May 15 06:33:48 getting ahead in life May 15 06:33:59 canvs2321, yes, but I set the number of column in the gridview, I don't want set dimension in dp May 15 06:34:19 icemanbp, what i'm saying is your query is weak, bring some heat May 15 06:34:31 you must set in dp, you put the measurement in dimens file and it will stay the same across devices May 15 06:34:54 Tricknology: doc said Handler must be created with a Looper May 15 06:35:00 then from xml width="@dimen/your_dimension_name" May 15 06:35:35 I did bhans May 15 06:36:01 David, I use handlers a lot. Depends on what you're doing with it. Can you paste code? May 15 06:37:08 Tricknology: i have a static method that’s called by JNI May 15 06:37:16 that static method creates a empty Handler May 15 06:37:21 just this May 15 06:37:30 Odaym: did you use GATT for your development? (master - slave) May 15 06:37:35 you must May 15 06:37:55 Tricknology: i tried to create the Handler in: May 15 06:37:56 (new Thread(new Runnable() { May 15 06:37:56 @Override May 15 06:37:57 public void run() { May 15 06:37:58 Looper.prepare(); May 15 06:38:00 what is GATT? May 15 06:38:02 then it has no error May 15 06:38:03 like WATT May 15 06:38:12 equally strange May 15 06:38:42 the General Agreement on Tariffs and Trade? May 15 06:38:53 yes, you use that for BLE May 15 06:40:04 I suggest you read/watch Double Encore tutorials about Bluetooth low energy May 15 06:40:15 it's not easy to implement correctly May 15 06:40:48 and several gotchas May 15 06:40:57 i haven't seen anyone implement it correctly. even dave smith's code is pretty bad May 15 06:41:06 bear man? May 15 06:41:09 that's his name? May 15 06:41:47 yeah he had a book i would like to ge though May 15 06:41:52 he wrote a book? May 15 06:41:58 yup May 15 06:42:02 damn it and we're still sitting here doing nothing May 15 06:42:05 i think now 4e May 15 06:42:17 when we gonna write a book May 15 06:42:27 bhans do you actually have a question ? May 15 06:43:14 yea I'd love to hear what he can be wondering about May 15 06:43:33 probably things like, "wtf is this shit" May 15 06:44:01 I'd like to hear the use case, what he's going to be using it for May 15 06:44:42 I need to build a hardware that has a BLE chip, and connect it to android app using multiple connections. Q: which will be the master/slave? May 15 06:45:01 well surely you're going to be doing that.. May 15 06:45:21 but what kind of things will it be doing, how much is it going to be communicating with the app when in use May 15 06:45:55 bhans the phone will be central, your hw will be peripheral May 15 06:46:06 yea it won't be master/slave, sorry May 15 06:46:34 bhans also, don't plan on connecting to many devices. limit depends on android version May 15 06:48:00 BLE peripherals will about 6 devices May 15 06:48:10 and I need to monitor them whithin the app May 15 06:48:32 man I am confused, yesterday I was at an interview with a big company that makes only apps, they have an iOS team and an Android team and they have at least 40 apps they've done, I get there and in the end of all the interviews Im asked to implement a marquee of text from a JSON feed May 15 06:48:47 wtf.. May 15 06:48:59 does anyone know how useful logging into google from AS is? May 15 06:49:07 Hello. How to set left and right margins to my dialog fragment? I know I cannot set them in the XML. How to do it programatically? May 15 06:49:19 yes you can vedu May 15 06:49:26 how come you cannot set in XML.. May 15 06:49:36 bhans you might get 6. but i have trouble with less May 15 06:49:46 bhans and every phone will be different, good luck May 15 06:50:12 I will be sticking to 1 model only May 15 06:50:39 you haven't build the hardware yet bhans ? May 15 06:50:52 Not yet, I need to order it first, lol. May 15 06:50:59 order the chip May 15 06:51:27 or the whole thing? May 15 06:52:14 whole thing, actually May 15 06:52:30 so you aren't building the hardware May 15 06:53:03 not as "whole" May 15 06:53:07 piece by piece May 15 06:53:15 I need to set it's unique uuid May 15 06:53:18 you gonna get the NRF chip? May 15 06:53:24 uuid can be injected from code :P May 15 06:53:30 i think so May 15 06:54:14 im gonna use BLE ISP130301 Module May 15 06:54:17 you are not electrical engineering major? May 15 06:55:00 does it come with a spec? what's the size of each packet you can send it? May 15 06:57:15 nRF51822 2.4 GHz May 15 06:57:32 so it is NRF May 15 06:57:35 yea you're good May 15 06:57:47 ok ok thanks May 15 06:57:52 wait, 1 more question May 15 06:57:54 or at least safe cause the help for this is big May 15 06:58:00 they have an app you can test with and everything May 15 06:58:09 ahh really May 15 06:58:11 thats cool May 15 06:58:20 yea but no source, even if you bought the chip from them May 15 06:58:28 I can help you with code, as g00s can May 15 06:58:28 oh crap May 15 06:58:35 alright! :D May 15 06:58:56 1 more question, can I make something like prototype without the hardware yet? May 15 06:59:15 like, im planning to create a master/slave thing with phones May 15 06:59:35 well you'd have to figure out a way to make the chip working (advertising itself) May 15 06:59:44 don't know electrically how that would work May 15 06:59:46 1 nexus 5 as master then 2-3 device but as peripherals May 15 07:00:12 but when I was working on it, the chip was on a board that we had written the firmware for May 15 07:00:16 can someone point me to the explanation of how the @sign works in the android studio xml. I'd like to declare some manifest strings May 15 07:00:28 fire up the device which had the board in it, the chip is on and advertising, you listen to it and talk to it May 15 07:00:42 I see.. this will be my first time assembling BLE stuff May 15 07:00:56 bhans there are also some tools for PC that emulate devices May 15 07:01:13 i see.. cool :) ill take note on that May 15 07:01:44 redengin: You want to create a string? Just add your string to /res/values/strings.xml May 15 07:02:14 surf2b1, but I'd like to to be in its own namespace by the file, rather than have to namespace it by the key May 15 07:02:29 i.e. I want to share a custom intent string May 15 07:02:47 bhans, what was your question about BLE? May 15 07:03:27 scroll up May 15 07:03:35 oh you just joined May 15 07:04:13 :) May 15 07:09:40 redengin: why would you need to do that? May 15 07:11:38 anyone has experience with android wear? I got the same problem but that method doesnt work for me. http://stackoverflow.com/questions/25006207/is-it-possible-to-remove-text-box-from-android-wear-notification-page May 15 07:11:40 surf2b1, I suppose it can just be documented, butI'd like to supply an sdk package that would have the strings defined May 15 07:23:17 it's fucking working from code with width and height May 15 07:23:20 -.- May 15 07:23:26 never what you espected May 15 07:24:01 this shouldnt be like thisl.. im doign something wrong May 15 07:24:08 have to use deprecated ActinoBarActivity to use Toolbar May 15 07:25:54 is toolbar just a view? May 15 07:26:59 NotificationCompat.Builder(this) is gives an error when used inside a thread May 15 07:27:10 there is no this in a thread May 15 07:27:19 should i use getApplication? May 15 07:27:22 RishabhTatiraju, do you think it's cause this references the thread May 15 07:27:26 no, you have to work with a handler May 15 07:27:43 give it a context May 15 07:27:47 you can pass it May 15 07:27:51 you can't get it a context May 15 07:27:51 and check it before use May 15 07:27:55 where you gonna get the context from May 15 07:27:59 sure you can May 15 07:28:03 how May 15 07:28:09 you can pass it if you extend Thread May 15 07:28:24 no need man, you just have a handler defined in your activity that does the UI for you, you sendEmptyMessage for it May 15 07:28:28 or MessageDelayed or whatever May 15 07:28:33 no, May 15 07:28:39 says you May 15 07:28:42 its a service class May 15 07:28:59 then bus event May 15 07:29:03 bah May 15 07:29:39 Post your relevant code May 15 07:31:16 Okay, i'll tell you my scenario, i am running a service which periodically checks a csv file for changes and displays notification May 15 07:31:24 Odaym: sorry I missed your message. my IRC stopped notifying me May 15 07:32:51 Odaym: I want to set the margin of the main container. But they are ignored. I am using the theme: '@style/Theme.AppCompat.Light' May 15 07:33:13 RishabhTatiraju: you can use your service as a context May 15 07:33:15 margin means to push outside of the direction it was set in May 15 07:33:24 maybe they are not ignored but not applicable May 15 07:34:36 Odaym: maybe. How can I make my dialog some min separation from the screen sides? May 15 07:34:50 you just can't throw around "this" inside whatever code and expect it to use actual reference of something that'd work, if using "this" in an inner class, your thread, it'll use this as a reference to that thread May 15 07:34:54 padding to the layout that you're feeding the dialog May 15 07:35:51 Odaym: but that would be pushing out. I want it to be say 5dp from left and right of the screen at all times May 15 07:36:00 no that would be pushing in May 15 07:36:02 margin is pushing out May 15 07:36:10 right now the dialog is wrapped around the content May 15 07:36:14 Sorry May 15 07:36:18 Power cut May 15 07:36:57 Anyway, i am running a service which will periodically check a csv file for updates and display a notification. May 15 07:37:16 Since it slows down loading of the main activity May 15 07:37:33 Im trying to run it inside a separate thread May 15 07:37:55 Odaym: padding wont give fixed separation from the screen sides May 15 07:38:01 yes it will! May 15 07:38:13 Yes it will vedu May 15 07:38:14 Odaym: ok ok. sorry. let me check :) May 15 07:38:19 CHECK then speak May 15 07:39:10 margin is the one that will not do that since margin pushes out from the direction of where it's set, and at the very edges of the device there is nothing to push out to May 15 07:40:53 ---|MARGIN|----, |---PADDING---| May 15 07:44:56 So what should be the fix? May 15 07:45:41 up up down down left right left right a b a b c May 15 07:46:14 basically read what a service is capable of May 15 07:47:28 it is ran on main thread, if wanting long work, which you'd want with service, you have to provide a thread. and in doing that if you want callbacks you need to set them up May 15 07:49:53 the service works fine May 15 07:50:07 the lag on the mainactivity is the concern May 15 07:50:47 read fully how services work, and you'll get it May 15 07:51:04 should i run startService(new Intent(this, ServiceActivity.class)); in a new thread? May 15 07:51:27 read how services work is how you do it May 15 07:51:29 definitely May 15 07:52:48 there is also IntentService, so you need to define your goal, and find the correct solution May 15 07:57:22 Is there a way to offer features of Android 5 and support Android 4 in the same app or am I limiting my features based on the min version? May 15 07:59:01 barq: great question, as it it's horrible and bad, and others can learn from it May 15 07:59:40 ? May 15 07:59:57 what features fool May 15 08:00:07 so open of a question May 15 08:00:09 The question is horrible and bad or Android 5? May 15 08:00:29 features as in animations? May 15 08:00:38 if so, that isn't features May 15 08:01:04 hi all May 15 08:01:15 no u May 15 08:01:40 i need some help im getting the text messenger for kitkat 4.4.4 to automatically delete messages in the spam box May 15 08:01:47 without having to do it manually May 15 08:01:49 What features are limited by supporting Gingerbread to Lollipop? May 15 08:01:52 ok? May 15 08:02:01 Mr_X, get outta here May 15 08:02:15 alright, i'm going with IntentService May 15 08:02:29 barq: what "features" are you wanting? just animations? May 15 08:02:35 No animations. May 15 08:02:46 why do i need to leave canvs2321? May 15 08:02:49 then what "features" May 15 08:02:59 Mr_x u know why May 15 08:03:07 i dont know why so explain May 15 08:03:13 and this is a public room May 15 08:03:18 What app are you making? May 15 08:03:51 Mr_X show code or GTFO! May 15 08:03:55 canvs2321: I am trying to decide what minimum version of Android to support for the app, specifically, whether to remove support for old Android versions. May 15 08:04:05 i need to learn how to code ok? May 15 08:04:18 honestly i do wanna learn how to code stuff May 15 08:04:24 barq that isn't really justifying API levels May 15 08:04:37 heh - "Escape from the #android-root channel" :) May 15 08:04:39 Mr_X show your code May 15 08:04:44 what code? May 15 08:04:49 exactly May 15 08:04:50 lol May 15 08:04:54 /part May 15 08:05:06 im not going to use that command May 15 08:05:16 that will put me out of here May 15 08:05:38 android coding has great rewards May 15 08:05:46 canvs2321: So supporting Gingerbread will not limit the features I can use in my app? May 15 08:05:59 i know it does C_Dogg_w May 15 08:06:18 and that is why i wish to learn how to start cdoing it so i can write my own apps for my note 4 May 15 08:06:34 barq, you've never said your features, so guessing not May 15 08:06:50 barq,but you were so sure on android 5.0+ etc May 15 08:07:15 I don't understand what you are trying to say. May 15 08:07:33 C_Dogg_w would you mind if i pm you? May 15 08:07:48 barq, it's even greater that i don't know what you are trying to say May 15 08:08:10 barq, state your features May 15 08:08:28 Features? Basic UI with a few buttons and text. May 15 08:08:44 Some GPS tracking as well. May 15 08:08:46 barq,keep trolling May 15 08:09:44 canvs2321: Give an example of a feature, please, so I can give a more suitable answer than what appears to be trolling. May 15 08:13:52 So if I support 4.0.3 to 4.4.2, can my App still be run on 5.1? May 15 08:14:15 in general, apps always run on newer versions of Android May 15 08:16:55 what is the meaning of gradientRadius? May 15 08:17:12 I can't understand what it manages May 15 08:18:58 Could someone help me exporting a library from android studio? Building it creates an aar file, but if I import said file in another project there seems to be nothing in it (apart from the R file) May 15 08:39:24 Odaym, g00s, redengin: can I PM you guys directly in case I am in need of help about BLE stuff? :) May 15 08:41:54 shoot, here, its probably good for all, and the channel is quiet May 15 08:42:17 aight then :) May 15 08:49:05 here it's better for everybody to see May 15 08:58:41 Kryil: You can import aar files via gradle. e.g. Drop the aar file in libs folder & then point gradle to pick all aar files as dependencies from the libs folder (*.aar). May 15 09:07:34 anirudh24seven: thanks, I just tried that but gradle tells me that it doesn't support local .aar files? It seems to me that this is wrong as I managed to import it in a different way but it simply didn't recognize any class apart from R May 15 09:08:31 btw, I simply added '.aar' to the filetree that also includes '.jar's, that's where the mesage came from May 15 09:13:57 managed to solve it via http://stackoverflow.com/a/30220451/4903107 ... fully scanning for all aars doesn't work, but adding them one by one worked. Whatever, thanks though May 15 09:26:42 Can anyone clarify if Google Directions API takes traffic situations into account when generating estimates? Like, if there are a jam, will the API adjust the est based on the current situation? May 15 09:30:11 <_zoom_> Hi, I'm using old android studio based on eclipse, I need to install new API 21 it's not there in the SDK manager any suggestions? May 15 09:30:22 How can I set the behavior of the virtual keyboard to not move the contents of the activity up but just lie on top of the activity? May 15 09:30:54 Update your installation, _zoom_? Or is there a reason for the usage of an old version? May 15 09:31:03 barq: check out soft input. You need to set in the android manifest May 15 09:33:02 vedu: I have android:windowSoftInputMode="adjustPan|stateHidden" configured. In most cases the keyboard lies on top of the activity, but in one case when I click next on the keyboard it moves the contents of the activity up. I am surprised that the behavior is not consistent. May 15 09:34:11 How can I make the behavior consistent? May 15 09:34:48 barq: see the documentation. adjustPan adjusts or pans as the OS seems fit May 15 09:36:03 <_zoom_> Exclusive: you mean installing new ADK May 15 09:36:05 <_zoom_> ? May 15 09:36:42 barq, any difference when using adjustResize instead of adjustPan? May 15 09:36:53 Odaym: The padding is being set but I am not getting the behaviour I want. The width of the dialof depends on the size of the image in it. full code: https://gist.github.com/vedant1811/b6a53d284db46eb6c281 May 15 09:38:03 Odaym: I decided just to get the whole thing. wont build it myself, lol. May 15 09:42:33 surf2b1: adjustResize still has the keybaord shift the Activity up. However, rendering problems are gone. Before the action bar was ripped. Now it is not. May 15 10:06:48 how do you not have a height attribute in the image view at the top, vedu May 15 10:07:57 can you show me the picture of the thing you're trying to implement May 15 10:21:38 Odaym: I have set the height to "0dp" for performance, as suggested by android studio. May 15 10:21:45 Odaym: here is a screen shot https://docs.google.com/file/d/0ByX9pxaZGODKQXEtYXdIMFBITVk/edit?usp=docslist_api May 15 10:24:22 and what's going wrong? May 15 10:24:59 cause there's a lot of redundancy in the code you sent, many things that do nothing May 15 10:32:59 Odaym: really even I dont know what exactly I want May 15 10:33:55 when the height of the image is fixed at 240dp (by the style) and everything works fine May 15 10:34:08 it must be like that May 15 10:34:17 you cannot let the image take up the whole size of the picture, the picture is huge May 15 10:38:36 here you go https://www.dropbox.com/s/1z3unw4b0nvloot/Screenshot_2015-05-15-13-36-54.png?dl=0 May 15 10:38:40 http://pastie.org/10190183 May 15 10:44:34 Odaym: in a dialog the entire layout is put inside another container that "wraps content May 15 10:45:06 Odaym: oh wait you are using relative layout May 15 10:47:13 so what May 15 10:47:22 you place that whole thing in the setLayout of the dialog object May 15 10:47:25 comes out the same May 15 10:48:09 relativelayout you should really get into it, really great May 15 11:01:38 Hello! Can someone explain why apps like battery savers, task killers etc use Accessibility services? May 15 11:08:17 If I have an EditText with inputType textPostalAddress, how can I make sure that the keyboard does not show the suggestionsbar? In other editTexts I have textNosuggestions and then the keyboard is smaller. May 15 11:19:05 barq, can't you use textPostalAddress and textNoSuggestions at the same time? Like.. android:inputType="textPostalAddress|textNoSuggestions" May 15 11:20:29 xgearx: perhaps for getting info about what app is currently visible May 15 11:34:48 VnM: Yes, that works. Thanks. May 15 11:50:15 Hey, after popBackStack()... on the fragment that is becoming the top fragment, i see that onCreateView is being called again.... is that normal? May 15 11:52:19 https://github.com/xxv/android-lifecycle viran May 15 11:55:37 icedp: so yes? It's possible for a fragment to be destroyed when its on the backstack then onCreateView will be called? May 15 11:56:45 viran: fragment is not always destroyed when onDestroyView is called May 15 11:56:49 view is destroyed May 15 11:56:57 follow the diagram please May 15 11:57:34 viran: see "Fragment is added to the back stack" and "Fragment returns .... from the back stack" May 15 11:58:09 hello May 15 11:58:17 why onCreatedView is needed again if it was not destroyed? May 15 11:58:40 no May 15 11:58:55 it's not needed May 15 11:59:03 I guess May 15 11:59:37 viran: view was destroyed, fragment was not (in this case) May 15 12:02:05 viran: and view is destroyed because it can consume a lot of resources and we don't need it since view is not visible. but you may want to save some state in the fragment from which to recreate the view May 15 12:03:30 thanks May 15 12:03:45 Thanks for previous help, IntentActivity does the job...however... The app notifications only are shown in API 15 (Which is my minimum sdk) May 15 12:04:07 No other API level displays the notification May 15 12:04:19 Possible trouble? May 15 12:14:14 I want the virtual keyboard to overlap the underlying UI. I tried adjustResize, but in some cases the underlying UI is still pushed up by the keyboard. How can I make this work in all cases? May 15 12:17:23 Anybody in Bangkok by any chance? May 15 12:19:02 Why? May 15 12:20:13 I have made a little app, but its use is Bangkok specific. Just thought it would be nice to share with another dev if they were interested. May 15 12:20:40 Seems like a long shot... :) May 15 12:21:19 Taxi app? May 15 12:21:46 you can share it with fdroid I think. May 15 12:22:16 Rain prediction. It's tells you shortly before rain arrives, based on radar data, motion analysis, etc. The rainy season is arriving. May 15 12:24:38 i have installed android studio 1.2.1.1 but i can not build my app and the connctign to adb is wrong please help me May 15 12:26:23 DeviceMonitor: Adb connection Error:EOF May 15 12:26:37 DeviceMonitor: Sending Tracking request failed! May 15 12:32:09 i have a problem with android studio 1.2.1.1 please help me May 15 12:36:00 Mccs: How? You haven't stated your problem. May 15 12:36:48 barq : This usually happens if you have an incompatible version of adb running already. May 15 12:36:48 Try re-opening Studio after killing any existing adb daemons. May 15 12:37:14 but it happend several times May 15 12:37:34 Why do you have incompatible versions of adb running? May 15 12:41:21 i dont know May 15 12:41:26 Does anyone know how RertroFit keeps a reference to a callback? IE - is it a proper reference or a weak-reference of some kind. May 15 12:41:28 barq : i dont know May 15 12:41:50 I mean RetroFit obviously May 15 12:42:11 Nzsai...i am making a similar app May 15 12:42:22 But it focuses on disaster management May 15 12:42:35 Sounds interesting. What does it do? May 15 12:42:53 Lately with all the earthquakes in Nepal May 15 12:42:57 Ive realised May 15 12:43:10 I work for search and rescue, so very interested :) May 15 12:43:31 People are noobs not just in Android usage, but also in disaster management May 15 12:43:50 barq : how do i slove it ? May 15 12:44:21 They panic for every unnecessary reason. Although it wont help in search and rescue May 15 12:44:43 It will notify users about upcoming disasters (cyclones and extreme weather) May 15 12:44:59 Probably hard to help much for situations like Nepal then ;) May 15 12:45:00 And also report the latest earthquakes May 15 12:45:08 Mccs: Don't use incompatible versions. May 15 12:45:19 Oh, okay. May 15 12:46:14 barq : it is not incompatible why do you say it is incompatible ? May 15 12:46:34 Rish: sounds cool. May 15 12:46:37 i want to make it possible to load classes/resources from an arbitrary folder on my android (think plugin system). so i want to preserve the default dalvik.system.PathClassLoader and also add a couple of my own ones... is there any recommended or available solution for that? May 15 12:46:41 barq : This usually happens if you have an incompatible version of adb running already. May 15 12:46:48 currently i am about to write my own "combo" classloader... May 15 12:47:35 barq : but i closed it befor runing android studio how can i fix it please ? May 15 12:48:06 Describe your question clearly, please. May 15 12:49:10 barq : how do i use compatible version adb ? May 15 12:49:41 Download and install from d.android May 15 13:04:39 how can i see whican verison is compatible for me ? May 15 13:05:50 Hello all, another n00b here hoping to learn May 15 13:06:00 Hello May 15 13:06:13 AnonymousCelt, do you know anything about trouble shooting android? May 15 13:06:43 I haven't programmed Android before but I have programmed in Java a fair bit if that would be of use? May 15 13:08:20 ah i mean like, recover a bricked phone May 15 13:09:16 No sorry, I came here hoping to learn how to program for Android as I am struggling to find a hands on tutorial May 15 13:09:25 have you tried #android-root May 15 13:10:33 hello everyone May 15 13:10:43 hell omccs May 15 13:10:48 hello mccs* May 15 13:10:49 how can i see wich adb verison is compatible for me ? May 15 13:11:02 AnonymousCelt, try looking at https://www.youtube.com/watch?v=nBD4xhH5vIE May 15 13:11:24 has some good series and is generally good :) May 15 13:11:25 Mccs: Ask here, no need to query me. May 15 13:11:43 Mccs: What is your problem? May 15 13:12:09 Already have it installed. just need some walk through tutorials to get me some momentum May 15 13:12:55 it's a series May 15 13:13:00 just check the later episodes :P May 15 13:13:03 oops, sorry May 15 13:13:18 barq : befor upgrading from android-studio 1.2 to android studio 1.2.1.1 all things were very well but after upgradin i can not connect to adb May 15 13:14:05 dab might still somehow be 'used' by the previous install. tried completely shutting it down? May 15 13:14:14 the process* I mean May 15 13:15:34 Mccs: How did you try to connect to adb? May 15 13:16:06 Mccs: What version of adb are you using? May 15 13:16:20 barq : also after installing api level 19 and its sdk platform this proble take placed May 15 13:16:20 adb I ment* :) May 15 13:17:10 Mccs: See my two questions above. May 15 13:17:44 Mccs: What OS are you using? Maybe the daemon is not started. May 15 13:17:54 barq : when i am runing android studio after 20 seconds the android -studio says me pelase restart android studio and kill adb May 15 13:18:03 Mccs: Have you tried restarting? May 15 13:18:15 barq : yes May 15 13:19:13 Hello, I need my app to read values from industrial scales through rs232, what is the simple way to do it? May 15 13:19:15 Mccs: What OS? May 15 13:19:24 my adb version is : 1.0.32 May 15 13:19:40 barq : windows 8 May 15 13:20:01 blaa: you could use a Serial to USB adapter if you have a device capable of USB host mode. May 15 13:20:08 is it possible to get some version of android studio to run on an android tablet? May 15 13:20:22 blaa: otherwise you can get RS232 bluetooth adapters, and then it's wireless and would work with anything. May 15 13:20:50 nzsai I saw some rs232 bluetooth adapters, but I would like to use a cable first May 15 13:20:51 Mccs: Try adb kill-server May 15 13:20:53 is it a simple cable? May 15 13:21:03 nzsai and how can I read the values through the USB? May 15 13:21:09 AnonymousCelt, what do you mean? May 15 13:21:10 Mccs: Then run adb start-server May 15 13:21:19 barq : i had used kill-server May 15 13:21:24 It's a USB serial dongle. More than a cable. And you need a device that does host mode, which not all that many devices do. May 15 13:21:25 Mccs: Then run adb start-server May 15 13:21:44 I have an android tablet and bluetooth keyboard. Is it possible to program apps on the tablet for the tablet? May 15 13:21:53 i had use adb kill-server and adb start-server May 15 13:22:03 Mccs: run adb devices May 15 13:22:11 blaa: what hardware is the app going to run on? May 15 13:22:18 (what android device?) May 15 13:22:32 Mccs: If that doesn't work: Tools > Android > (Uncheck) Enable ADB Integration May 15 13:22:32 for testing purposes I'm using my zen fone 5 May 15 13:22:42 AnonymousCelt, nope, can't run android studio on an android device May 15 13:22:43 but it will run on worst devices May 15 13:22:43 Mccs: Then Tools > Android > (Check) Enable ADB Integration May 15 13:23:09 also i had use them May 15 13:23:35 barq : i had used all of them May 15 13:23:47 Mccs: Restart Android Studio. May 15 13:23:50 do aide or similar work? I haven't gotten used to an ice for it yet so don't mind if I need to lean and die. I just hope to be able to program on my tablet for my tablet, like I do for my laptops May 15 13:24:07 Not sure if that supports host mode. Have you checked? May 15 13:24:48 I will, but that cable solution sounds like crap now, lol May 15 13:24:59 AnonymousCelt, never heard of that being possible :) May 15 13:25:02 blaa: did you look at this? https://code.google.com/p/android-serialport-api/wiki/android_to_rs232_guideline May 15 13:25:11 yes I did May 15 13:25:17 Mccs: Is it working now? May 15 13:25:21 I will do something with arduino May 15 13:25:24 barq : no barq May 15 13:25:26 yeah, it's not very universal. May 15 13:25:33 Mccs: Try killall adb May 15 13:25:33 you can program it on your pc and compile it onto your connected device or an emulator May 15 13:25:33 even if I root the device? I noticed terminal-ide and aide but wasn't sure May 15 13:25:54 is it possible to receive bluetooth data without asking for user interactions nzsai? May 15 13:26:15 I take it you can only use java 7 for android studio? May 15 13:26:25 you need to pair the device once, and then I think it shouldn't require interaction after that. May 15 13:26:52 Mccs: Tools > Android > (Uncheck) Enable ADB Integration, Quit Android Studio, restart computer, Reenable adb integration May 15 13:27:06 the user will pair the device one time, if tomorrow he wants to get data from the device it will ask for confirmation again? May 15 13:27:21 no, bluetooth automatically reconnects with no user interaction May 15 13:27:21 perlsyntax: http://stackoverflow.com/questions/23318109/is-it-possible-to-use-java-8-for-android-development May 15 13:27:28 barq ; i am doing May 15 13:29:13 nzsai thank you, I think that will be my solution May 15 13:31:34 barq,When i use java 8 it ask for java 7 odd. May 15 13:31:52 perlsyntax: Java 7 is supported. May 15 13:32:31 i see thanks. May 15 13:33:17 Quick question, no response in #android-root, with a newer galaxy S device, that is encrypted, what is the best way to root? Will it succeed if rooting is attempted while the device is still encrypted? Should the device be decrypted, rooted, then once root succeeds, kill "su" and re-encrypt the device (preserving root, but allowing encryption to take place)? Does anyone have any experience with rooting encrypted devices that they would be willing to sh May 15 13:33:17 are? May 15 13:34:59 Mccs: Is it working? May 15 13:35:56 barq : no May 15 13:36:26 Don't know then, sorry. May 15 13:36:44 Tons of answers on Google though. May 15 13:37:38 has any of you played with mediacodec + mediamuxer? May 15 13:38:19 why does it keep kicking me out of hur :( May 15 13:38:32 with mediacodec i can record raw h264 "video". while using mediamuxer it adds some header and the video is twice in size May 15 13:38:36 which is meh for my purpose May 15 13:39:47 hi. i've generated an apk with android studio, but when i try to install it on a tablet, android says that it cannot install the apk. so my only way to install it is to connect the tablet to my laptop and debug the app on the tablet, so it gets installed May 15 13:40:08 the problem is that i need to do this installation for 5 tablet. May 15 13:40:19 is maybe a problem with apk signing? May 15 13:40:34 LucaS05: Why can it not install? Is there no more specific error message? May 15 13:41:06 did you set install from 3rd party? May 15 13:41:12 in android settings May 15 13:41:38 i've simply putted my apk on my ftp, and then from the tablet i go to the url of the apk May 15 13:41:59 i don't remember the message because i don't have the tablet with me right now May 15 13:42:42 error message and logcat, otherwise all anyone is doing is guessing May 15 13:43:33 dragorn: when i try to install the apk i don't have the tablet connected to my laptop, so i don't have any logacat May 15 13:43:36 logcat* May 15 13:44:02 so... try to install it, connect it, and get the logcat. It's going to tell you what's going on rather than everyone randomly guessing. May 15 13:44:26 dragorn: ok sir :) May 15 13:45:46 dragorn: but is it a problem about signing, isn't it? May 15 13:47:30 LucaS05: It can be a bunch of things. My guess is api level issue, but we shouldn't really be guessing and then possibly steering you in the wrong direction. May 15 13:49:27 just got a lenovo a6000 =) May 15 13:49:41 the UI remind me of iOS May 15 13:51:04 damn ! wrong channel May 15 13:51:07 sorry May 15 13:52:40 !! May 15 13:53:36 I was supposed to talk in #android but I have just noticed I have posted it in #android-dev May 15 13:54:52 Hello! Can someone explain why apps like battery savers, task killers etc use Accessibility services? May 15 13:55:07 what a fruitful thing you were about to say there too May 15 13:55:11 the UI reminded of iOS ... May 15 13:55:12 lol May 15 14:01:43 ohhh its ad! May 15 14:01:46 adq*! May 15 14:02:01 I thought you were be, confused you with zlr when osr was here May 15 14:02:09 I thought I was incognito with my sun glasses May 15 14:02:29 autocorrect ruined my joke May 15 14:05:33 I feel sane today, haven't touched an android line of code May 15 14:08:51 In my DialogFragment I currently have a few EditTexts and some buttons. How can I change the style of the buttons to be like the buttons of the AlertDialog Builder? May 15 14:09:09 As in using setPositiveButton May 15 15:11:21 Hi guys, are we able to use the html canvas api in android apps natively? May 15 15:24:33 How can I pass a variable into a class that uses ASyncTask? And how do I output a variable from the ASyncTask class back into the main class? May 15 15:26:33 is anyone here? May 15 15:32:31 I am going to asume no one is here. May 15 15:42:59 test May 15 15:43:35 test May 15 15:44:09 it owrks May 15 15:44:11 works* May 15 15:45:06 oh hi May 15 15:47:51 hi May 15 15:48:01 noahmg123: You pass variables into a class through constructors, or methods of the class May 15 15:49:20 yiati: I know that. I just don't know how to use it. I know you use <> for the ASyncTask (not sure how exactly). But I do not know how to use it within the class. May 15 15:50:41 noahmg123: Read "AsyncTask's generic types" in the documentation, http://developer.android.com/reference/android/os/AsyncTask.html May 15 15:51:17 yiati: Thank you. Here is what I want to do 1. Create variable in main class (done). 2. Pass the variable through into ASyncTask (I think I know how to do that) 3. Use the variable within AsyncTask (here is where I don't have a clue) May 15 15:51:21 noahmg123: Also it's good to note that most people tend to use Event buses or rxjava as a cleaner means of doing work in the background instead of AsyncTask May 15 15:51:46 yiati: ok. May 15 15:52:46 noahmg123: http://stackoverflow.com/questions/9963691/android-asynctask-sending-callbacks-to-ui May 15 16:20:11 how do I make my ASyncTask return the IputStream from my HttpUrlConnection. Android Studio forced me to define it within a try statement so it is not available where I need to put my return statement. May 15 16:24:39 noahmg123, post what you have to pastebin for us May 15 16:25:42 quinnjn: ok. Just wondering, is it just that most people on this channel are in different time zones, because barely anybody is on. May 15 16:26:20 457 people are on May 15 16:26:57 Most people are probably buried in work at the moment May 15 16:27:27 yeah, generally there is an explosion of chatter then it dies off for a bit. May 15 16:27:45 yiati: :-) I guess I am just used to seeing this channel more active May 15 16:28:04 quinnjn: http://pastebin.com/evedDJZh don't worry about the URL I am going to change it. May 15 16:28:05 Most people get on later in the day May 15 16:28:37 well it's about noon where I am May 15 16:29:37 same here, later in the day usually means after 5pm May 15 16:31:06 ok May 15 16:31:37 why does every new type it as ASyncTask May 15 16:31:50 it's not a sync, it's async May 15 16:34:28 noahmg123_: Given that you're asking basic Java-syntax questions, writing a networking app is too advanced. It's really as simple as that. May 15 16:34:36 You need to learn Java and so on before writing networking apps. May 15 16:35:40 TacticalJoke: ok. May 15 16:35:54 anyone know where one could find a Android 4.4.1 LG Optumis F60 MS395 Stock rom? May 15 16:36:13 I'm sure it won't take long for you to be able to make an app that talks to an HTTP server, but I think you need to start simple. May 15 16:36:24 TacticalJoke: Thank you. May 15 16:36:49 noahmg123, just taking a peek and the goal for your GetJson AsyncTask should be to open the url, get the stream, create some model from the stream and return that. That way you can keep all that long running work off the main thread. May 15 16:37:50 quinnjn: yes. I just don't know how to access the InputStream from the return statement as it is declared in the try{} May 15 16:38:04 Sorry ment 4.4.2 May 15 16:38:38 somebody has been using the facebook sdk?, I get an error when I'm trying to import his module: "Error:(15, 0) Could not find property 'ANDROID_BUILD_SDK_VERSION' on project ':facebook'." May 15 16:39:02 I search and seems like I need a gradle.properties file… May 15 16:47:13 ronkrt: try #android May 15 16:47:42 ronkrt: Estel: #android-root May 15 16:48:16 Maybe not for stock roms May 15 16:55:03 Anyone here wrote an app that scraps website for data(on a server? google docs script?) and presents the data? May 15 17:03:38 Meowser: What's your actual question? I'm sure a few people have done something similar. :) May 15 17:06:19 Hey guys getting "Error:error: cannot find -lGLESv1_CM" while doing NDK stuff, i think its because my app_platform in my application.mk is not being seen by gradle. any suggestions ? May 15 17:12:28 TacticalJoke: what is the best method to collect data for an app like that? run a script on a server or is there a way to use google's APIs? May 15 17:14:13 horo__, and how are you building the NDK part? May 15 17:14:52 task buildNative(type: Exec, description: 'Compile JNI source via NDK') { May 15 17:14:52 def ndkDir = android.plugin.ndkFolder May 15 17:14:52 commandLine "$ndkDir/ndk-build", May 15 17:14:52 '-C', file('src/main/jni').absolutePath, // Change src/main/jni the relative path to your jni source May 15 17:14:52 '-j', Runtime.runtime.availableProcessors(), May 15 17:14:54 'all', May 15 17:14:56 'NDK_DEBUG=1' May 15 17:14:58 } May 15 17:15:00 got ndk command within gradle May 15 17:15:47 Do use pastebin for such stuff next time. May 15 17:16:33 I see no reason why it wouldn't see your Application.mk May 15 17:16:39 does it build if you run it from console? May 15 17:17:25 Sorry about that. Haven't though of trying that i will in a second though May 15 17:19:21 hey guys and gagls May 15 17:20:05 is it possible to have a App installed to external sdcard, and set to auto run.. and when thie sd card gets put in another phone of the same os, it auto starts there as well? (both phones have root) May 15 17:22:57 Mavrik, i am running into the same error from command line, It seems to link -llog with LOCAL_DLIBS and others just fine, its only libraries that require a higher target that wont load May 15 17:23:49 how does your Application.mk look like? is in in the "jni" directory? May 15 17:23:57 ronkrt, no. May 15 17:24:35 fk May 15 17:24:38 im totally screwed May 15 17:24:49 that sounds like a virus May 15 17:24:54 no s73v3r May 15 17:24:58 personal app May 15 17:25:28 i need a app that can auto start usb debug mode on a device that freezes instantly on homescreen load May 15 17:25:53 hey, ron's back! May 15 17:26:05 both phones have root and untill i can get usb debug MY phone of the two cant do anything but get into download mode, factory reset mode and thats it May 15 17:26:23 that or i need to find a rom for Stock LG F60 May 15 17:26:53 its just 2 lines, APP_ABI := armeabi APP_PLATFORM := android-19 May 15 17:27:15 but how do i get it to run? May 15 17:27:35 TacticalJoke: I was thinking worst case: server -> google spreadsheet -> app (data flow ->) May 15 17:27:50 i need to put it on the sdcard while in 1 phone, (so i can put it there) and then have it auto run when the other phone books ith it May 15 17:28:40 Meowser: Scraping is not very stable May 15 17:30:11 but it is possible to try? May 15 17:31:26 yiati: what do you mean? May 15 17:31:57 Meowser: "an app that scraps website for data" May 15 17:32:36 if the DOM of a website changes at all then everything will break for you May 15 17:32:38 yiati: "an app that uses scraped data from a website" is what i was looking to say May 15 17:33:36 yep May 15 17:36:24 i would have to catch errors on the server side May 15 17:36:33 so that the spreadsheet is always good May 15 17:36:44 even if it is old data May 15 17:54:02 what is best practice for keeping api keys obscured within the app? May 15 17:55:24 heater89 In the end you are going to have to send them down the network... and anyone that knows what they are doing can setup a proxy and just grab the keys that way May 15 17:56:02 that doesn't mean you should make their job easier and by keeping the keys in plain sight. but you still need to keep that in mind May 15 17:57:48 proguard May 15 17:59:30 Meowser: What are you trying to achieve? May 15 17:59:46 wakelock: that isn't an option for actually obscuring the key May 15 18:00:06 hm May 15 18:00:21 wakelock: it will only obscure the variable name May 15 18:01:04 I see May 15 18:01:14 I was hoping it could be used for the keys too I guess May 15 18:03:58 tantalum: so, is it worth investing time to make these api keys non constants? May 15 18:04:41 heater89 That is between you, your app and your client to be honest May 15 18:07:58 tantalum: correct me if i am wrong, but wouldn't using https obscure all query strings parameters? May 15 18:10:19 Yes from a passive sniffer but not someone who really wants them. For example I can install my own root CA on my phone, install your app and setup a proxy between my phone and the world. Because I have my own root CA on the phone, even if you make an https request I can pretend to be who ever I want and intercept/decrypt the traffic May 15 18:10:29 The thing here is that I control the phone May 15 18:11:03 damn, did you guys know we can label loops in java? May 15 18:11:09 but I couldn't do that to someone else's phone because I can't install a root CA on their phone without previous access May 15 18:11:20 Afzal, Yes but use functions xD May 15 18:11:34 tantalum: ahhhh understood, it isn't trivial, but it isn't impossible May 15 18:11:39 sublimate I use it to break out of an outer loop :) May 15 18:11:56 I always find I can make a boolean function which does the inner loop May 15 18:12:40 ehhhh yeah, but refactoring the one method that runs the algorithm is the last thing I wanna do :p May 15 18:18:16 heater89, everything humans made, humans can break ;) May 15 18:19:19 wakelock: haha yea, i guess it's about deterring a large portion May 15 18:19:40 barq May 15 18:19:51 lol, i just downloaded the iosched 2015 app - and you have to reset the filter for every hour you want to browse May 15 18:23:35 Love how a terrible UX is par for the course on Android. :D May 15 18:31:18 TacticalJoke heh yeah, job seems so simple ... show sessions for 2 days - no, show sessions i'm interested in for 2 days May 15 18:32:07 i dont think roman nurik worked on it this year May 15 18:32:13 probably some intern May 15 18:35:35 ahh still jigging not suffering from dementia May 15 18:37:09 Hey all. I'm doing some WebRTC/TokBox implementation with an OpenGL overlay. I have an issue with my layouts - once the chat starts, the person being called covers the preview window for the user's camera May 15 18:37:12 https://gist.github.com/thomasbiddle/d622a9f93aef4c37cc77 May 15 18:37:30 It's fine before the call starts - but then gets overlayed May 15 18:37:44 whats the best way to implement a download interface with pause resume? May 15 18:38:35 make a downloader, add a pause/resume button to it, make it do stuff May 15 18:38:37 PROFIT May 15 18:38:51 And when the call ends - the preview window is where it should be May 15 18:39:38 luist: I'd probably say "stick it in a notification" May 15 18:39:53 groxx: uh? May 15 18:40:37 download interface with pause/resume -> assuming it takes more than like a second, you'll probably want a foreground service to run if they leave the app, which requires a notification anyway. so just make the notification the only UI. May 15 18:42:01 or if it's a download-manager-style-thing, consider using the system's downloader, or I'm kinda fond of how Coursera does it. download + progress + pause in a single button, and have a list somewhere for all current + pending downloads. May 15 18:43:30 Hello. I have a separated broadcastreceiver. How do I let it inform my *only* activity that it received something if and only if the activity is actually running? May 15 18:44:54 ekh: `class Receiver { public static Activity current; }; class Activity { onResume { Receiver.current = this; } onPause { Receiver.current = null; } }`. May 15 18:46:02 that is quite simple May 15 18:47:12 ekh: there can be small gaps, e.g. your activity will pause if a dialog appears over it. and you may want to store the result until the activity appears, if that's relevant. but ultimately everything boils down to something like that, but with more code. May 15 18:47:59 I would definitely recommend pause/resume though, they're very reliable and predictable, nothing else is. e.g. onStop isn't called by some lock screens, and sometimes it happens several seconds after the display turns off. May 15 18:48:28 or, you can probably make something else reliable by combining a bunch of other hints, but pause/resume is super easy. May 15 18:48:39 groxx: oh im more worried about the background May 15 18:50:01 luist: It's hard to tell what you're asking about. What exactly are you trying to create? May 15 18:51:12 luist: yeah, gotta say I'm kinda fuzzy on it too :) May 15 18:51:17 Hey all :) May 15 18:51:24 Hai. May 15 18:51:32 Is there a way to tell if the user picks Twitter, Facebook etc when using a share chooser? May 15 18:51:36 (Intent.createChooser) May 15 18:52:21 matt_j: any reason in particular? e.g. are you doing that so you can just re-do that choice automatically the next time? May 15 18:53:20 groxx: so I can track if someone shares on Twitter or Facebook May 15 18:53:22 etc. May 15 18:53:41 matt_j: you could probably implement your own disambiguation dialog May 15 18:53:54 I _think_ there isn't, for good or bad. you can make your own "fake" chooser though, and then you can do anything. May 15 18:54:11 TacticalJoke: maybe a class to manage the downloads? May 15 18:54:15 Yeah with faking it isn't using the standard UI, that's all. May 15 18:54:22 yeah May 15 18:54:51 matt_j: you might be able to use the standard UI still. I'm not familiar with exactly how it's implemented, but you might be able to subclass the existing dialog, etc. May 15 18:54:55 luist: Still too vague. I think you're gonna have to give a complete description of what you're trying to achieve in order to get assistance. May 15 18:55:49 I'd guess you're asking how to manage background tasks (e.g., with threads), but it's a shot in the dark. May 15 18:56:22 matt_j: oh, take a look at Intent.createChooser May 15 18:56:34 the 3 argument one may be what you're looking for May 15 18:57:07 haha May 15 18:57:10 "The caller may optionally supply an IntentSender to receive a callback when the user makes a choice." May 15 18:57:10 there is only a 2 argument one May 15 18:57:13 groxx: thanks very much. that trick works perfectly for me May 15 18:57:21 oh, only available on api 22 May 15 18:57:23 Target, title May 15 18:58:12 darn May 15 18:58:16 still supporting gingerbread here May 15 18:58:50 matt_j: http://androidxref.com/5.1.0_r1/xref/frameworks/base/core/java/com/android/internal/app/ChooserActivity.java dunno if "android/internal" is by default hidden, but that appears to be public, and it seems to be what's used May 15 19:01:27 Interesting... May 15 19:02:34 matt_j: hm. I can't seem to refer to it. ¯\_(ツ)_/¯ agreed that "stock" UI is best, especially since it gets hugely customized sometimes, but dunno if you have a choice here. May 15 19:02:48 yeah. May 15 19:03:19 fwiw I do see a lot of apps building their own, e.g. the old stock gallery app had a drop-down "share" button that made it a bit easier to re-share to the last destination May 15 19:03:44 True... May 15 19:04:08 and the google apps occasionally do their own too, though there they're probably experimenting before an official release. May 15 19:04:54 okay, I'll let the higher-ups know that this won't be feasable without writing a custom share dialog May 15 19:05:36 matt_j: you could do it optionally for api 22+ devices May 15 19:05:48 haha May 15 19:06:18 I don't even think *I* have that May 15 19:06:35 it's 5.1 I think? May 15 19:06:37 5.0.2 on my oneplus one May 15 19:06:41 what a shitty phone btw May 15 19:06:56 orly? I tend to hear good things there May 15 19:07:24 the touchscreen has huge flaws where it glitches out or even just stops responding to touch at all May 15 19:07:34 also it likes to start playing music randomly May 15 19:07:44 my n7 2013 touchscreen is shitty on the bottom right corner May 15 19:07:44 even though I turned off the media player gestures May 15 19:08:50 definitely sounds annoying May 15 19:13:02 matt_j, i have heard a lot about touchscreen issues in the last couple of weeks but i guess im lucky - haven't experienced May 15 19:13:27 except for the delayed lollipop upgrade due to the falling out between oneplus and cyanogen im very happy with the phone May 15 19:14:22 HI , I am storing time in server with timeZone (America/New_york) , but i want to show it as local time in mobile as per default time zone , what is the best approach May 15 19:14:50 I tried manipulating it with Calender class like = > Calendar serverAmericaTime = new GregorianCalendar(TimeZone.getTimeZone("America/New_York")); May 15 19:15:14 liefer: that was also BS. Can't believe how long it took to get Lollipop May 15 19:15:31 and Google's Nexus 6 is the biggest fucking phone in existance. I'd need to buy new pants to fit it in the pocket May 15 19:15:32 serverAmericaTime.setTime(date); //date is DAte Object formatted from server time string May 15 19:15:38 plus the fact that it's $750 May 15 19:16:04 Screens over ~4.5" are quite hard to use one-handed (especially while walking down the street). May 15 19:16:23 shareactionprovider? May 15 19:16:39 TacticalJoke: walking down the street... right. :) May 15 19:16:43 haha May 15 19:17:23 chinu_: 1) how far off is the result? just a few hours? 2) does the server time string contain the timezone? May 15 19:18:04 groxx : no it does not contain time zone value in server but i checked it in server and it has a timezone of "America/New_York" May 15 19:18:10 a new huawei nexus is coming right ? May 15 19:18:14 chinu_: also if you are using emulator that can throw off your timezone May 15 19:18:23 chinu_: and fwiw if it's possible to do so, I'd definitely recommend using only UTC for storage :| then you "just" convert it to local time. May 15 19:18:51 groxx : ok May 15 19:19:05 well, it gets more difficult if you are storing points in the future but May 15 19:19:13 I was also testing in Emulator as lasserix has hinted , that might be the problem too May 15 19:19:28 yeah May 15 19:19:36 since your emulator probably has a weird time zone May 15 19:19:40 unless you explicitly set it May 15 19:19:52 i know i was getting a day off my times between my emulator and my device May 15 19:20:02 lasserix thanks , I was just in the moment where my hands grab my hair :p May 15 19:20:04 g00s: UTC is harder when storing future times? May 15 19:20:27 I mean, sure, we should all use TAI and (╯°□°)╯︵ ┻━┻, but that's also a PITA May 15 19:22:03 Does this line "(this only works if the app has already been launched by the user at least once):" in https://developer.android.com/training/scheduling/alarms.html#boot means the user has to launch the application once after the device reboots? May 15 19:23:20 Xeeshu: it's more general than that. you won't receive _anything_ until your application has been launched after install / force-stop. May 15 19:23:41 <_genuser_> I feel I'm designing a db schema that's pretty dumb. May 15 19:23:46 is it normal for android studio to refactor some references but not others? The activity names in AndroidManifest.xml didn't get renamed when I refactored May 15 19:23:56 Xeeshu: once you've been launched, you can receive the boot broadcast automatically. May 15 19:24:31 groxx: I have implemented this step in my Receiver but it gives me null pointer exception when the user sets alarm. When I comment the line out, it works just fine. May 15 19:24:33 if (intent.getAction().equals("android.intent.action.BOOT_COMPLETED")) { May 15 19:24:39 shoerain: Hmm, I don't recall seeing that. May 15 19:24:48 So I am not sure if I should even implement this or not? May 15 19:25:22 TacticalJoke: I wonder if it matters about the version of android studio, but ah well. Got over it now, was stuck for ~30 minutes though May 15 19:25:35 Which version are you running? May 15 19:26:58 Xeeshu: hm. it's not an alarm you can/should actually _set_, the system will broadcast it. I have had (what appear to be buggy) null action intents sent to my services / receivers, but for boot completed I mostly just assume it's correct May 15 19:27:00 I just renamed an activity, and the entry in AndroidManifest.xml updated. Using 1.2.1.1. May 15 19:27:25 Xeeshu: you should probably also be adding a permission requirement to the receiver's intent filter, btw, otherwise other apps can fake-broadcast boot events, iirc May 15 19:28:48 shoerain: I forget if it catches those without "search in strings" checked May 15 19:29:44 groxx : UTC timezone is not possible now at this stage , is there a workaround of converting a time in american timezone to devices local time zonce May 15 19:29:55 groxx: by setting alarm I meant setting the time, the time when the broadcast should happen. And yes, I have set those permissions in the manifest. May 15 19:30:54 groxx : here is my function http://pastebin.com/2KZq3vdt but it returns the same server timeZone value in return May 15 19:31:29 Xeeshu: what I mean is that you aren't expected to make that broadcast. ever. you just set the intent filter in your manifest, and the OS will start your process and send it when it feels ready, not you. May 15 19:31:51 it's _possible_ that's the cause - I've never tried to actually create a broadcast with a protected action like that :| May 15 19:31:59 TacticalJoke (and I guess groxx): http://i.imgur.com/7yvjYm0.png for version of Android Studio May 15 19:32:20 groxx: ah, that might be relevant, I guess I'll see next time I need to refactor May 15 19:32:24 Oh okay. Thanks, groxx May 15 19:32:49 groxx yeah, imagine you want to store a time : May 10, 2016 in Cairo Egyp. So you do the conversion with the tz database you have, and convert it to UTC. but then, sometime between now and then - they decide to update the tz database differently, and that time isn't in DST as before May 15 19:34:28 shoerain: hm. well, the "ctrl-T -> rename" route worked fine for me, also 1.2.1.1 though. dunno. May 15 19:35:30 Yeah, I just renamed in place like that. May 15 19:36:14 Though I use Eclipse shortcuts (Alt+Shift+R). #eclipse4lyfe May 15 19:36:58 g00s: ah. good point. though that's just kinda time in general, and it depends on the desire - if they wanted X seconds from now, it's still accurate. if they wanted "at wall-clock time X", you're right. May 15 19:37:25 time sucks :| May 15 19:37:32 DST sucks :D May 15 19:37:50 well, it'll also be wrong if the timezone boundaries change, e.g. if a country's borders move May 15 19:37:56 timezones suck :| May 15 19:38:10 wait. solution. swatch time. May 15 20:14:24 does rxandroid have any considerations with regard to having to unsubscribe and such on lifecycle changes? May 15 20:14:35 or do the references just disappear naturally May 15 20:16:23 better add canary & find out :) May 15 20:17:04 yeah, too lazy to figure that May 15 20:22:22 pfn: there are some lifecycle-observables / composite subscription methods, not sure if RxAndroid in particular has anything to make that easier though May 15 20:24:10 pfn: https://github.com/ReactiveX/RxAndroid/blob/0.x/rxandroid/src/main/java/rx/android/lifecycle/LifecycleObservable.java ? May 15 20:25:28 not what I'm asking May 15 20:26:04 I'm asking what the gc root for rxandroid would be May 15 20:26:22 probably same as all java objects May 15 20:26:31 no reference, collect May 15 20:26:38 ... May 15 20:28:04 ah. I'd imagine it's no different than normal rx? there are just maybe more ways to shoot yourself, because there are more lifecycle / scheduler / observable-things options. May 15 20:28:15 of course it's the same for all java objects May 15 20:28:29 the question is what is the gc root May 15 20:28:40 what is gc root? May 15 20:28:48 i'm not hip, sorry :) May 15 20:28:55 which implies "no gc root except your code, unless you subscribe to a persistent observable, like maybe something that returns Application on subscribe" May 15 20:29:07 ah is gc root akin to rx May 15 20:29:11 the term atleast May 15 20:30:11 no, it has nothing to do with rx May 15 20:30:16 or am I missing part of the question (again)? May 15 20:30:22 gc root is a basic gc concept May 15 20:30:38 ignore me, i've never had to deal with "gc root" as an issue May 15 20:30:49 if you don't know about gc roots, then you don't understand gc May 15 20:31:05 i understand it as, i have no need for this object, it'll get gc May 15 20:31:11 if gc == garbage collected May 15 20:31:16 yeah, you don't understand gc May 15 20:31:39 your higher abstraction level is too high for me i guess May 15 20:31:50 higher level? May 15 20:31:58 basic concept May 15 20:32:00 is not high level May 15 20:32:22 object a = new object(); use it, then once outta scope it's gc, as long as i didn't list.add(a); somewhere elese May 15 20:32:25 it isn't hard May 15 20:34:07 has nothing to do with hard May 15 20:34:36 pfn obviously if you have anonymous inners , whether functions in the chain, or the subcriber, you can leak the outer context May 15 20:34:56 i thought there was some fragment bind operaror in rxandroid, never used it May 15 20:35:41 typically what i do is use a compositeSubscription, add all my subs to that, and then in onStop unsubscribe from that May 15 20:36:19 thats fine for passively getting things from a hot observable, but if you are using cold observables whether the subscription causes side effect, and unsubbing can cancel, you have to think of something else May 15 20:36:42 if you unsub from that in onStop you may not want to cancel the operation May 15 20:37:21 (and even so, if the observable doesn't honor unsub signal, it will still hold a hard reference to your subscriber anyhow) May 15 20:37:30 I'm just not getting the need for a question of asking about a "gc root", but guess g00s can guide you May 15 20:38:29 nothing wrong with rx; its just android being a pita May 15 20:39:28 g00s, there still isn't a good/proven solution to unsubscribe rx observables in activities/fragments/adapters? May 15 20:40:48 canvs2321: garbage collection works by traversing object graphs and marking all objects it finds as used. And then it can clean up any objects not marked as being used. a gc root is a starting point for the graph traversal. gc roots are things like static fields, local variables and thread objects. May 15 20:40:52 FrozenCow on one hand, i'm not up with latest rxandroid stuff. on the other, simple cases of CompositeSubscription & hot observables are fine (this idiom is easy, no need for library) May 15 20:41:09 anyway, gc root for widget observable seems to run through the view they observe May 15 20:41:29 the problem is when you want to kick off a Cold observable, that does something, and then allow rotation and come back to "re-attach" to the results. May 15 20:41:29 shouldn't be anything special necessary to unsubscribe on config changes May 15 20:41:51 yeah, I'm using rx purely for listening to widget events May 15 20:41:59 I use futures for everything else May 15 20:42:33 ok that sounds good May 15 20:43:11 https://github.com/pfn/keepshare/blob/master/src/main/scala/com/hanhuy/android/keepshare/EntryEditFragment.scala May 15 20:43:18 some trivial use of rx May 15 20:44:43 pfn, ah nice, updating the model like this sounds like a good idea too May 15 20:45:22 JesusFreke, i understand that, but it's just simple as i've said, create object, use it, as long as it hasn't been passed around it's gc'd May 15 20:45:29 pfn, i haven't made the switch to scala or kotlin yet, but stuff like this seems damn handy May 15 20:45:52 but i'm not familiar with rx, so ignore me :) May 15 20:46:01 /ignore canvs2321 May 15 20:46:35 canvs2321: no, it gets gc'd because it's not reachable from a GC root ;) May 15 20:46:52 ^^ May 15 20:46:54 guess that gets me thinking to google May 15 20:49:34 does anyone have a good example of Rx passing events from RecycleViews ViewHolder, Adapter to outside? May 15 20:50:12 FrozenCow i do that its pretty easy. subscribe when view is bound, unsub in recycle listener May 15 20:50:25 JakeWharton: you mentioned that NotRxAndroid was getting merged into RxAndroid upstream the other day... just curious if you've heard of a possible ETA on that May 15 20:50:41 anyone have link to gson custom type adapter for custom class ? May 15 20:50:50 at the moment I have a PublishSubject in Adapter and ViewHolder. I subscribe to viewholders onViewAttachedToWindow and unsubscribe onViewDetachedFromWindow May 15 20:51:07 joshkovach: wouldn't those cancel each other out, and you'd be left with nothing? ;) May 15 20:51:44 :) May 15 20:51:52 g00s, maybe on bound and recycle is a better idea May 15 20:52:19 some day I'll try out recycler view May 15 20:56:00 FrozenCow: I saw an RxRecyclerView example posted on /r/androiddev the other day May 15 20:56:04 if I set @JsonAdapter(SomeTypeAdapter.class) on a list, will it use the adapter to parse the elements or try at the list itself? May 15 20:58:44 guys how hard would it be to make an app that would be a random shoutcast radio sweeper so it would randomly sweep thru radio stations ? May 15 20:59:14 joshkovach: after I/O May 15 20:59:20 dont think it would be much of code... i can do GUI but would need a coder May 15 20:59:33 joshkovach: too much to do before May 15 20:59:57 JakeWharton: ok, thanks May 15 21:00:09 JakeWharton are you giving any talks at I/O ? May 15 21:00:20 sandbox sessions, etc May 15 21:00:42 g00s: no. The googs is never receptive to outsiders. We've tried May 15 21:00:55 hmm May 15 21:02:14 mm, yummy spresso May 15 21:10:51 pfn: i'm annoyed with recyclerview right now May 15 21:10:57 lol May 15 21:11:05 finally got the swipe to dismiss to do something useful May 15 21:11:08 but it's still not right May 15 21:11:16 :/ May 15 21:12:54 burntcookie90, isn't the Email app in aosp using recyclerview? if so, you can take swipe to dismiss out of there May 15 21:13:25 hmm, guess not May 15 21:25:55 i checked the MMS app, but it's using listview May 15 21:28:10 i've never had to work with touches that much before this May 15 21:28:20 it's probably just the learning curve that's annoying me May 15 21:28:32 burntcookie90, why not use ListView? There are tons of examples of swipe to dismiss May 15 21:29:00 for the view itself, recyclerview is the exact solution we need May 15 21:29:41 also, it's too far into development to switch it to listview anyways May 15 21:30:20 i just need to familiarize myself with the touch framework May 15 21:30:38 right now it's consuming the action down, i need it to forward onto click the list item if not swiped May 15 21:39:53 man I can't believe these guys I interviewed with asked me to implement a marquee text from a json feed May 15 21:40:03 and I cant believe that Im actually going to do it May 15 21:40:07 lolol May 15 21:40:12 make it blink too May 15 21:40:23 what the fuck am I missing! it's a company that makes apps and they have an android team and everything May 15 21:40:37 they arent stupid I mean.. May 15 21:40:46 Odaym: it's to test your tolerance for stupid bullshit May 15 21:40:53 ohhhh May 15 21:40:57 PRO analysis May 15 21:40:58 aka "life" May 15 21:41:22 if you're working in a service company where outside companies hire you to do their apps you'll end up with a LOT of stupid bullshit requests like that May 15 21:41:43 "it needs to blink" "it needs to look and behave exactly like our iphone app" etc. May 15 21:41:48 hey guys what was your timetable for going from unpaid to paid as an android dev? I'm thinking about diving in, and I'd like to hear your experiences. My experience is front end dev, and basic c++ knowledge. May 15 21:42:01 I know, I told that to the team leader there, I told him that none of this that you're making I would consider pretty or good looking or would have any shot at being picked in Editor's Choice May 15 21:42:10 feel free to PM me too May 15 21:42:26 exactly usgrant May 15 21:42:29 davedev24_: negative 1.5 years? May 15 21:42:43 it's like this everywhere? I refuse to believe this May 15 21:42:55 mediocrity is the same way everywhere, yes May 15 21:42:57 i've worked for three app shops now and yeah the stupid requests keep on flowing May 15 21:42:59 existing job evolved into an android app after I had been there for a while :) May 15 21:43:13 groxx: ahh ok. have you ever worked remote, or contract? May 15 21:43:13 i was a hobbyist dev in 09 and got my first job doing this in 2011 May 15 21:43:32 I was just talking about this yesterday, and I wanted to record a rant May 15 21:43:33 but I didnt May 15 21:43:38 tomorrow I will May 15 21:43:38 remote work is the shit May 15 21:43:40 i love it May 15 21:44:23 oh yeah usgrant? i think i'm far too green to land one of those positions, i heard they are hard for junior devs to get May 15 21:44:24 the job Im in right now, they gave me a challenge to show a map, place 2 markers and plot a path between them then animate a car moving along that path and turning as it moves May 15 21:44:32 I loved that, it was challenging May 15 21:44:37 yeah May 15 21:45:02 this guy I talked to he saw what I had made and said wow this is very pretty, then he saw the open source section and saw all the referenced libs May 15 21:45:06 davedev24_: nope. fwiw though a new hire here has started from a bit of old java experience from school and no mobile experience, and is quite a way along (i.e. has shipped like 3 features, some non-trivial, in a semi-ugly codebase) in ~2 months. as long as you can already code, it's just another framework/language, doesn't take too long to get going. May 15 21:45:12 and he sort of like scuffed or something at the amount of respect I had for these devs May 15 21:45:25 yeah, the toughest thing is just learning how to program in general May 15 21:45:27 groxx: very reassuring to hear May 15 21:45:33 it's like misplaced pride he has, here in my country they highly exaggerate their capabilities and end up in the shitter May 15 21:45:43 yeah Odaym May 15 21:45:54 everything they do is half assed May 15 21:45:56 everything May 15 21:46:00 when i interview people and ask for code samples i want to know if they know when to use libraries and when to roll something by hand May 15 21:46:08 im sorta torn between ios dev, android, or python lol May 15 21:46:08 i realllly don't want candidates that insist on rolling their own everything May 15 21:46:12 yes very important to do that May 15 21:46:19 or ones that are crippled without libraries May 15 21:46:28 its just to know how to pick your battles May 15 21:46:31 yup May 15 21:46:33 davedev24_: main thing many starters miss, IMO: the app lifecycle is quite different. learn it, it's hugely important, and it influences an enormous amount of the API design. it's easier to deal with / remember / predict where to look when you understand _why_ it's organized this way. May 15 21:46:45 even with navdrawer sometimes I see a library for the navdrawer more fitting to what is needed May 15 21:47:04 and sometimes I write it, even with such a primitive element as the navdrawer May 15 21:47:35 eh, whatever, we can keep agreeing with each other till tomorrow May 15 21:47:42 all depends on your business needs May 15 21:48:18 groxx: app lifecycle, like this? http://www.linuxtopia.org/online_books/android/devguide/images/activity_lifecycle.png May 15 21:48:26 cause in this company's case, they made an app for the company I work for right now, I was brought to this company to redo the app they made for them May 15 21:48:26 oops May 15 21:48:31 confused app with activity May 15 21:48:38 so at the workplace we mocked them for a while, then they called me May 15 21:48:40 imagine the situation May 15 21:49:09 so basically I told the guy hey bro Im at my company working on what you couldnt get done well May 15 21:49:29 davedev24_: basically. and the activity is the main thing that's relevant, so it's important :) but also "your process can die at any time, and will be restarted invisibly if needed, so you have to save state when you're supposed to". May 15 21:49:37 in fact, let me show you May 15 21:50:11 this is what they make https://play.google.com/store/apps/developer?id=apps2you May 15 21:50:20 and configuration changes typically destroy your activity and recreate it, to let you load different resources (e.g. portrait and layout changes, if you wanted to change like e.g. the youtube app does, and show something different) May 15 21:50:35 ah ok groxx May 15 21:50:43 yeah May 15 21:51:28 groxx: i have a 2012 nexus 7, is that good enough to get started with android dev? May 15 21:51:36 sure May 15 21:51:37 yes davedev24_ May 15 21:51:41 it's probably terribly slow at this point, but absolutely :) May 15 21:51:50 groxx: oh god is it slow May 15 21:52:01 but my computer is reasonably fast May 15 21:52:19 the nexus devices are way nicer to dev for too, since they tend to behave the closest to spec + it's easy to build a debug rom from AOSP + etc. May 15 21:52:27 and there are emulators, they're decent. May 15 21:52:31 jetbrains is the preferred IDE of choice right? May 15 21:52:32 right May 15 21:52:37 not as nice as iOS's, but acceptable. May 15 21:52:47 please see the link above May 15 21:52:51 Android Studio is based off Jetbrains' Intellij, but yes. May 15 21:53:13 groxx: what are your thoughts on Eclipse? May 15 21:53:17 there's also a plugin for Intellij, if you prefer to go that route. May 15 21:53:27 there are no thoughts on Eclipse May 15 21:53:29 only emotions May 15 21:53:32 heh May 15 21:53:54 so Android Studio it is May 15 21:54:13 im going to be out of town for about 2 weeks with not much to do so i want to dig into something new May 15 21:54:15 davedev24_: eclipse is technically no longer supported, but it still has some benefits. runs way better on lower-power hardware, builds faster, has that handy "problems" view, and can do NDK. if none of that is a requirement, use Android Studio. May 15 21:54:26 NDK? May 15 21:54:28 time to google May 15 21:54:37 Native Development Kit. C code, basically. May 15 21:54:44 ah May 15 21:55:07 Eclipse integrates multiple languages like that quite well, Android Studio has nothing for C/C++ yet. May 15 21:55:13 right May 15 21:55:20 you can still `make` and copy the binary over though. May 15 21:55:41 so android is sounding like a win win. as long as there's enough contract or remote jobs for junior guys.. May 15 21:56:09 clion did come out recently, https://www.jetbrains.com/clion/ May 15 21:56:46 android studio or eclipse? im noob May 15 21:57:03 oh, you are discussing this right now May 15 21:57:04 voi: android studio. there's some related discussion just above, btw May 15 21:57:13 groxx: just noticed! ty May 15 22:00:42 davedev24_: btw upgrading my 2012 n7 to 5.1 has breathed new life into it. it's still kinda slow, but it _works_, before it would lock up everything all the time. May 15 22:01:45 it's back to being a thing-I-may-use-if-in-reach, instead of a paperweight :| May 15 22:02:08 groxx: haha mine went the reverse. it was great before and 5.1.1 made it a paperweight May 15 22:02:16 i should treat it better probably May 15 22:03:28 really? weird. the 2012 n7 has a habit of slowing down (immensely) as it's used, main blame I see is due to the flash storage. 4.3+ (literally every version in between) was all equally terrible, 5.1 just makes it feel old and cheap (which it is). May 15 22:03:52 ahh May 15 22:04:26 maybe you got lucky or something :) May 15 22:04:57 ha i have alot of crap installed on it too, HD is probably filled up too, havent checked in a while May 15 22:05:32 oh yeah, how should the portfolio look to best land an android job? 3-4 projects? May 15 22:05:54 just talkin about contract work, or a remote project May 15 22:06:14 years not project May 15 22:06:39 yeah just googled and found this one. 4 years experience. http://careers.stackoverflow.com/jobs/88054/android-developer-work-from-home-varsity-tutors?searchTerm=android May 15 22:07:03 everyone looks for years May 15 22:07:33 Odaym: any way to get around that? May 15 22:07:42 no May 15 22:07:50 hah. the cold truth. May 15 22:07:59 well its because people arent stupid May 15 22:08:04 not because it's a hard thing to get around May 15 22:08:49 Odaym: yeah i know what you mean. why pay for n00b code? May 15 22:09:08 yea its their right to want the best May 15 22:09:28 Odaym: exactly May 15 22:10:06 I applied to booking.com and they said no, the guy later posted a job on HN, same one, I said why did you refuse flat out based on resume, I have what you are looking for May 15 22:10:27 he said you dont have 3 years, that non-android thing you were doing for that year doesnt count as android May 15 22:11:02 yeah May 15 22:11:47 hey guys i'm trying to draw a rectangle by touch motionevent, got free drawing to work but not rectangle i'm not sure what i'm missing http://pastebin.com/ainhq6GQ May 15 22:13:07 burntcookie90, please download this app by Google and see how they have a bug with the exact thing that you are asking about :P https://play.google.com/store/apps/details?id=com.google.samples.apps.iosched&hl=en May 15 22:13:28 that's the IO 2015 app May 15 22:13:35 bug is in My Schedule section May 15 22:15:21 hello people. instead of populate a ListView at once using an ArrayAdapter, is it possible to populate with an animation effect? May 15 22:15:31 ex. fade in the items May 15 22:16:31 I think you would have to read the implementation of getView for the BaseAdapter class May 15 22:17:20 Odaym: thx. May 15 22:18:31 take a look at this May 15 22:18:32 http://android-er.blogspot.co.il/2009/10/listview-and-listactivity-layout.html May 15 22:18:39 Im gonna do that, thanks for mentioning it May 15 22:18:50 wouldnt have thought to be so ambitious :P May 15 22:19:04 its so fucking easy May 15 22:19:15 oh god May 15 22:23:54 works May 15 22:25:35 Is it possible to have a generic Func1 with rx? Func1, Observable>> May 15 22:26:13 where's that guy who was complaining about OOM? May 15 22:26:13 lol May 15 22:26:41 sometimes you just want to crtl alt delete the people who ... ugh May 15 22:26:45 I have 4 images (gifs) loaded IN MEMORY without OOM >_< May 15 22:26:46 try it yiati May 15 22:26:49 lol May 15 22:26:54 haha May 15 22:26:57 he'll be back tomorrow May 15 22:27:02 he got around to using picasso May 15 22:27:11 hahaha May 15 22:27:12 nice May 15 22:27:32 I'm not using Picasso :p these gifs are in the app as assets May 15 22:27:35 I've never met anyone like him May 15 22:27:42 Odaym: I did. For the body I currently have "return Observable.from(embeddedList.embedded).toList();" which won't work because from is returning List instead of List May 15 22:28:17 I learned lately that there is a reason why you are allowed to not provide a type with List<> or ArrayList<> May 15 22:28:21 the reason for that is your answer May 15 22:28:23 Odaym: thx!!! that's exactly what i was looking for May 15 22:28:30 me too ventura ! May 15 22:30:01 it works fine I tried it May 15 22:30:16 did you see Whatsapp new design? May 15 22:30:27 really good May 15 22:31:59 i miss the bold text for unread messages. my ADHD totally ignores the green bullet on the right XD May 15 22:32:37 yea you have a brain that prioritizes May 15 22:32:41 they call it ADHD now? May 15 22:33:47 Observable.empty() is kind of like what I want, but I guess I can't use a generic wildcard :P May 15 22:34:18 I dont think they are aware of the type May 15 22:34:42 let me just try something May 15 22:34:58 best theories about code without documentation May 15 22:36:41 this doesn't compile http://pastie.org/10191228 May 15 22:38:27 Odayam: ADD or ADHD. i remember a theory, by Dr. Dan Eisenberg, that it is actually an evolutionary trait that emerged from natural selection of nomadic hunters May 15 22:39:22 you just wanna be special May 15 22:39:25 :P May 15 22:39:31 lol May 15 22:39:38 hm, Moto G 3rd rev. i should get one of those May 15 22:39:59 with android, same experience between $100 device and $700 device :) May 15 22:40:35 where does my myimagebutton.xml go? May 15 22:40:59 depends what it contains May 15 22:41:00 ADD and ADHD does not exist is just a fuckin symptom May 15 22:41:13 its not a fuckin disease May 15 22:41:17 or some sshitty disorder May 15 22:41:33 calm your tits May 15 22:42:07 even the "inventor" of ADD and ADHD said on death bed it was a fuckin lie to make shitloads of money druging poor kids May 15 22:42:13 oh well May 15 22:42:25 but yes it is a symptom May 15 22:42:41 people can have those sort of issues May 15 22:43:22 i usually recommened taking L-Tyrosine and get great results May 15 22:43:40 Kitar|st = dr mercola ? :D May 15 22:43:46 tell me about it May 15 22:43:48 no May 15 22:43:52 l tyrosine, gtfo May 15 22:43:55 screw mercola May 15 22:44:09 Kitar|st: aye. and in France adhd virtually do not exist. they don't "pathologize" it there May 15 22:44:22 you know who is quack? the quack doctor May 15 22:44:36 he says everyone is quack without even providing any rational evidence May 15 22:44:46 if its alternative or natural medicine for him its quack May 15 22:44:57 why are you discussing this stupid topic May 15 22:45:34 even if there are people having amazing results he relies only on science but while there is not enough "scientific research done on certain natural treatment" then for him its not true and its a quack medicine May 15 22:45:45 yea i know i got off guard sorry guys :D May 15 22:45:55 it's simply stupid May 15 22:46:01 i ate too much cococa powder now i cant sleep early :P May 15 22:46:14 + May 15 22:46:24 forgiven :) May 15 22:46:39 cause same May 15 22:46:41 haha May 15 22:46:47 but I dont talk about some shit like that May 15 22:46:53 i remember drinking some crazy ass turkish tea or coffe i drank it in the morning and had trboule sleeping for 1-2 days May 15 22:46:59 dont know what kind of shit was that May 15 22:48:58 anywaaay i'm thinking of making a simple application to make shoutcast radio random sweeps within certain amount of time... how long would that take for coder to make ? May 15 22:49:01 i can do GUI .... May 15 22:49:47 for a coder? May 15 22:49:49 ya May 15 22:49:50 a real coder's coder? May 15 22:49:57 a real coderian coder? May 15 22:49:57 wel someone to code that for me May 15 22:50:14 3 months May 15 22:50:15 to code within a code thats a code from a code and now we have codeception May 15 22:50:19 BS May 15 22:50:22 more like 3 hrs May 15 22:50:26 or less May 15 22:50:30 you lying bastard May 15 22:50:36 3 hours? May 15 22:50:36 you just want to milk people dont ya :D May 15 22:50:41 using yet another JW library May 15 22:50:45 my life depends on Jake :/ May 15 22:50:50 haha May 15 22:50:58 let's revolt May 15 22:51:05 lol freedom from Jake! May 15 22:51:09 yes man May 15 22:51:15 we'll make our own shit May 15 22:51:18 code an app that randomly sweeps thru shoutcast.com radio stations would take you 3 months? you serious bro? :D May 15 22:51:26 lol, less well tested, less robust May 15 22:51:26 well if you have ADD or ADHD i understand :))))))))) May 15 22:51:37 yes, that's the way to counter him, he wont see it coming May 15 22:51:40 we do the OPPOSITE May 15 22:51:43 hahaha May 15 22:52:01 fuck it, do it in objc and make a library to run objc on android May 15 22:52:09 he won't even be able to contribute to it May 15 22:52:18 Im sure some of what we have is needed on iOS May 15 22:52:22 unless he knows objc May 15 22:52:34 oh for sure May 15 22:52:41 especially retrofit May 15 22:52:57 like I heard a senior ios dev some time ago fearing loading images into a list saying it will cause lag May 15 22:53:06 haha May 15 22:53:09 seriously May 15 22:53:13 lol May 15 22:53:22 like she'd prefer not to May 15 22:53:35 yep loading cute kitten images can cause overload on your phone May 15 22:53:39 true story May 15 22:55:54 but srsl could anyone help me on that project ? May 15 22:56:09 nah man you cannot ask for help like that here May 15 22:56:20 no one for hire here May 15 22:56:21 :( May 15 22:56:24 lol May 15 22:56:33 what project? May 15 22:56:54 i just need someone to code an app that would sweep thru shoutcast radio stations using certain presets May 15 22:56:59 randomly May 15 22:57:09 so it would sweep every 0.5 secs or 1 sec.. randomly May 15 22:57:22 Kitar|st: no advertising for jobs/some to hire/etc., please :) May 15 22:57:34 i'll do gui and everying just need coder as i'm too lazy to learn to code :( May 15 22:57:41 what is gui man May 15 22:57:43 what're you nuts May 15 22:57:53 i know how things work from looking at code quickly but i have no idea how to code May 15 22:58:05 nonsense May 15 22:58:06 Kitar|st: you might check out any of the freelance sites, etc. May 15 22:58:13 Odaym: worked perfectly. only have to set an interpolator now May 15 22:58:18 thx!! May 15 22:58:20 why interpolater? May 15 22:59:06 Odaym: designer required a fade in animation and linear fade in doest look good May 15 22:59:24 k May 15 22:59:28 ahh May 15 22:59:33 yes I want like that May 15 22:59:45 I think you have to follow the ones by material design May 15 22:59:52 bye everyone\ May 15 22:59:53 ah ok you are already, interpolation May 15 23:00:01 hm, i'm still having these random error markers in Android Studio - it just gets mad at one library - all the rest are fine - and just highlights it as red everywhere May 15 23:00:57 and build works fine, completes w/o errors May 15 23:01:28 invalidating caches takes like 5 minutes May 15 23:03:15 Hello.. i've one PRoblem: The imageview is added, but the animation does not start... why? :D http://pastebin.com/CxfCmguG May 15 23:04:00 you're not telling it to move anywhere May 15 23:04:06 from where it was to where it is May 15 23:04:22 line 15? May 15 23:04:33 from right to left May 15 23:04:34 yea May 15 23:05:05 nah im sure the problem is there May 15 23:05:16 thats all i got May 15 23:05:41 hm, okay May 15 23:07:31 we still can't import a folder without copying into an AS project right? May 15 23:22:01 http://www.reddit.com/r/programming/comments/362u7e/rust_10_is_here/ May 15 23:22:45 * g00s looks at his shitty java code :( May 15 23:24:23 TacticalJoke can an android rust ? May 15 23:25:30 w00t, 1.0 May 15 23:26:07 Hmm, not sure: http://www.reddit.com/r/rust/comments/2m6mul/is_it_possible_to_write_a_gui_android_app_in_rust/ May 15 23:26:34 android should be able to rust soon May 15 23:26:36 one can hope May 15 23:37:11 maybe it will but the point is using a language without good Java interop you end up limited to games/utils apps which do not interact with the Android system and have non-native interface May 15 23:52:58 icedp: bah! soon we'll have an ncurses UI written in Rust running on Android, and we'll have no need of this "gui" crap. ncurses was the past and is the future ( ꒪Д꒪)ノ May 15 23:55:30 I have a problem where implementing this http://android-er.blogspot.co.il/2009/10/listview-and-listactivity-layout.html runs just fine the first time I run the project and the animation doesnt stutter before beginning May 15 23:55:48 every other run after that, there's a small stutter and then the animation begins and by then it just looks ruined May 15 23:56:24 hello, i'm having trouble adding selenium-java as a dependancy. When i try to build after adding it, it get "org.gradle.process.internal.ExecExcedption: Process 'command C:\Program files\java\jdk\bin\java.exe finished with non zero exit value 1 May 15 23:56:48 i thought i needed multidexing, so i turned that on and i still have the problem May 15 23:57:55 lol ( ꒪Д꒪)ノ May 16 00:01:15 groxx: i'm in ncurses app right now, looks fine =) May 16 00:02:33 exactly. "native UI". pah! a coder needs not these things. May 16 00:03:11 we need ncurses material design May 16 00:04:17 or just 1-up google: immaterial design May 16 00:04:21 A comparison of function-declaration keywords: Kotlin -> `fun`, Rust -> `fn`. May 16 00:04:39 K.O., Rust wins! May 16 00:04:53 but kotlin is funner. May 16 00:05:17 and more vowely. those two probably cancel each other out. May 16 00:05:26 I actually like 'fun'. It's bright and happy, and something like 'fn' doesn't match to 'function' so well. May 16 00:05:42 fnctn May 16 00:06:02 groxx: well, kotlin does have twice the number of vowels as rust. May 16 00:06:19 further evidence that Rust > Kotlin May 16 00:06:23 infinitely May 16 00:06:26 Is less more? May 16 00:06:44 only if you like golf May 16 00:07:10 I do <3 me some perl. and regexes. I'm probably infected by golf. May 16 00:07:46 I'm not sure you would like my perl. but that's another story May 16 00:08:37 one that ends in "but nobody likes other people's perl. by design." May 16 00:08:56 If less is more and Rust has less than Kotlin, Rust has more than Kotlin. And more is bad. Therefore, Kotlin wins. May 16 00:09:00 https://github.com/JesusFreke/teensyhand/blob/master/main.S.pl#L247 May 16 00:09:01 :p May 16 00:09:31 a serious question, what style guide should I use? May 16 00:09:43 oh dang, we've been logic'd Σ(゚д゚lll) May 16 00:09:51 For the style of what? May 16 00:10:30 JesusFreke: is that... perl written like assembly? May 16 00:10:43 Android Java style guide May 16 00:10:47 groxx: basically using perl as a macro language on top of assembly May 16 00:11:10 the output of the perl program is the actual assembly program that then gets assembled May 16 00:11:30 that's awesome May 16 00:11:31 so something like "_ldi r16, 0xF4;" outputs an ldi instruction, etc. May 16 00:11:48 I'm actually quite happy with how it turned out :) May 16 00:11:52 needs more $!/ $_ though May 16 00:11:53 so that's a DSL May 16 00:13:15 icedp: I'm more concerned about Kotlin style. :D May 16 00:13:39 It's unchartered territory. May 16 00:13:51 uncharted* May 16 00:13:56 // TODO: style needs more chartering. May 16 00:14:50 and/or charting. 3D pie charts, specifically. May 16 00:15:15 charting in kotlin is definitely uncharted territory May 16 00:15:22 TacticalJoke you can write effective Kotlin and profit May 16 00:15:46 actually, i bet kotlin not being 1.0 has had some effect on books not being written about it May 16 00:15:56 and a language without a book is , eh May 16 00:16:14 "this language doesn't even have a book!" May 16 00:16:14 not really a language, yeah. how do you know if you can learn it in 21 days or less? May 16 00:16:15 * JesusFreke cries May 16 00:16:21 smali's not a real language :( May 16 00:16:45 it could be! I know someone who could write the book May 16 00:16:46 JesusFreke well, write Effective Smali :D May 16 00:17:17 writing a book is just slightly above getting kicked in the nads, on my todo list. May 16 00:17:45 * JesusFreke hates writing :p May 16 00:18:41 TacticalJoke do you use mvvm or mvp more often May 16 00:18:47 if you talk too much generally like I do writing a book is easy May 16 00:19:00 I don't think I've ever used MVVM. :S May 16 00:19:16 I tend to be.. rather quiet, in person :) May 16 00:19:34 TacticalJoke they are pretty similar, you probably did at one time without knowing it :P May 16 00:19:35 is JBTDT™ (Just Build The Damn Thing) a thing? May 16 00:19:50 it is now! May 16 00:19:54 Hmm, yeah, maybe. May 16 00:19:55 trademarked and all May 16 00:19:56 every time i JBTDT for android it turns out to be a mess May 16 00:19:56 DIBS May 16 00:20:29 You know what'd be cool? A book about how to write a book. May 16 00:20:33 But would it ever get written? May 16 00:20:41 there are plenty of those :) May 16 00:20:41 There is that book How to Read a Book. And I managed to read that. May 16 00:20:50 I think you'd first need a book about how to write a bo... nevermind. May 16 00:20:52 Mortimer Adler May 16 00:20:56 Yeah. May 16 00:21:08 well, first you'd need to chart the book-writing-book territory May 16 00:21:09 That book is so... condescending. May 16 00:21:17 Like "If you don't read a book this way, you are a total failure". May 16 00:21:20 Okay, paraphrasing. May 16 00:21:30 TacticalJoke lol, wasn't it written in the 50s or something :) May 16 00:21:34 Yeah. :D May 16 00:21:55 if you read this way, you are a commie May 16 00:22:51 I seem to remember them saying that you have to write all over a book to really read it. May 16 00:23:03 I couldn't do that to a good book. May 16 00:23:08 It's vandalism. May 16 00:24:42 A great book was The Elements of Style. May 16 00:24:53 Also condescending, but condescending in a way I liked. May 16 00:33:45 a cool book is one that is self concious and infects you May 16 00:41:40 TacticalJoke it would be great if uncle bob wrote a book on "clean android" :D May 16 00:44:02 anyone know a good example for listview rows swipe to delete with drag and drop reordering? May 16 00:44:33 is this a trick question? May 16 00:44:42 no May 16 00:44:48 lasserix seriosly, heh thats like 500 lines of code :D May 16 00:45:01 dont mean code May 16 00:45:09 g00s: That would be awesome. :D May 16 00:45:09 just an example i can interact with May 16 00:45:22 eg existing app or library or .. May 16 00:45:32 there is one for recyclerview May 16 00:45:39 otherwise i am going to end up implementing iOS style May 16 00:45:44 *to end up having to May 16 00:45:54 https://github.com/h6ah4i/android-advancedrecyclerview May 16 00:46:30 yeah, as crazy as it may seem, I might actually try one of the "advanced" listviews too. some do pretty much everything (though I don't know if they do any _well_) May 16 00:48:24 I have this code that makes a net request via http, should I use asynctask or a future, I can only act after I get the result. May 16 00:48:28 Hello May 16 00:48:33 thanks May 16 00:48:46 well if you can get it done in a day or two May 16 00:48:55 and its good enough May 16 00:48:59 netcrash: You don't need future for that. May 16 00:49:01 Future* May 16 00:49:05 unless you are trying to pull off another ABS why invest so much time? May 16 00:49:08 You also don't need AsyncTask. :D May 16 00:49:44 netcrash: Have you already written the HTTP stuff? May 16 00:49:55 using jsoup for the http request May 16 00:50:03 I have to parse a website May 16 00:50:33 use regex ! May 16 00:51:12 :S regex, I need to locate specific content and interact with it. I feel regex will be a pain May 16 00:51:26 Regex all the things! May 16 00:52:33 netcrash: In any case, you should be able to simple do the GET and read the response in a background thread. I don't see why you'd need to use Future at all here. May 16 00:52:37 Everything is linear and so on. May 16 00:52:43 simply* May 16 00:53:46 emulator is complaining I can't run a net call from the main thread May 16 00:54:03 So it's AsyncTask versus own thread pool and stuff. May 16 00:54:47 question.. why would my app crash right after I make a quick update and install it with the following error: Failed to find OatDexFile for DexFile with checksum OatFile May 16 00:54:57 If you're not very familiar with concurrency, AsyncTask is probably worth using. May 16 00:55:11 It does the job and gently introduces you to concurrency at the same time. May 16 00:55:43 TacticalJoke, ok May 16 00:55:50 I prefer using my own thread pool, personally, for maximal flexbility. But it's not really a requirement. May 16 00:56:01 (AsyncTask maintains its own thread pool behind the scenes.) May 16 00:56:05 own thread pool? May 16 00:56:35 netcrash: Are you that noah guy under another name? ;o May 16 00:56:46 It's own "thread manager"? May 16 00:57:07 TacticalJoke, no. I have no arc. May 16 00:57:45 going to use AsyncTask then May 16 00:57:52 TacticalJoke, thanks for your help May 16 00:58:29 Okay. Some other guy was doing something like this, and I was wondering whether he'd moved to jsoup. May 16 00:58:52 A thread pool is basically a bunch of threads just waiting around to do stuff. May 16 00:58:56 nope, it's the first time on the channel May 16 01:00:41 ouch ! http://digg.com/video/u2s-the-edge-falls-off-the-edge-of-the-stage May 16 01:00:53 https://github.com/pfn/keepshare/blob/master/src/main/scala/com/hanhuy/android/keepshare/EntryEditFragment.scala May 16 01:01:13 alright, looking pretty reasonable, now I just have to hook up the saving aspect and editing entries is done, rx was a pretty decent convenience May 16 01:01:21 Maybe it's evil, but I was hoping it was gonna be Bono. :D May 16 01:02:46 pfn its not done, needs to be rewritten in kotlin May 16 01:02:54 nope May 16 01:02:59 That guy seems to have a history of falling and hurting himself. May 16 01:03:02 http://www.bbc.co.uk/news/entertainment-arts-32751548 May 16 01:06:06 Oh, it says Bono. May 16 01:11:40 Done, never will I ever take more than a minute to setup bintray publishing in a library May 16 01:17:14 Hi, i'm sorry about this question but i'm a beginner in android dev, i would like to know if the startActivity method set fields of an Intent object to indicate the intent is the start of an activity? May 16 01:21:49 soulisson: ... come again? May 16 01:21:56 I couldn't understand your question :) May 16 01:22:16 JesusFreke, sorry about my english May 16 01:23:01 JesusFreke, is the intent object modified by the call to the startActivity method? May 16 01:23:16 no, it shouldn't be May 16 01:24:45 soulisson: Why do you ask? May 16 01:25:02 JesusFreke, so if i understand correctly an intent is just a generic message, what defines what type of action is required is the method call, for instance startActivity vs startService? May 16 01:25:20 TacticalJoke, i want to understand how it works May 16 01:26:11 soulisson: effectively. though startActivity vs startService is really only telling the system what kind of recipient to look for. whether or not it can be handled is still decided by e.g. the action, or the class you passed it May 16 01:26:56 groxx, thank you very much May 16 01:26:57 for example, you could have the same action handled by both a service and an activity (though you probably shouldn't do this) May 16 01:27:59 sorry about this question sometimes i get stuck into the details May 16 01:28:31 details are fun, nothing wrong with that May 16 01:29:09 so is kotlin! May 16 01:29:20 May 16 01:29:57 groxx, so for instance startActivity passes the intent to the system which looks for the appropriate class and instanciates it, and passes to the new activity the intent? May 16 01:30:29 passes the intent to the new activity, not the other way around, but yep. May 16 01:30:54 groxx, ok, nice, thanks May 16 01:31:46 intents are largely a simple, generic way to communicate across processes. which is why things you put into it need to be serializable (for most uses). May 16 01:32:04 groxx, ok, i see May 16 01:32:35 well, Parcelable generally May 16 01:32:37 currently i'm trying to learn about notifications, i find them a little bit hard to do May 16 01:32:55 although Serializable works May 16 01:44:27 Anyone here with experience with working with ByteBuffers in Java and passing the resulting byte[] to JNI? May 16 01:44:56 http://pastie.org/private/hgnvdu4hl4r4tpkp1yfehg for some reason I'm getting an error at line 28 May 16 01:46:14 It's a Signal 11 SIGSEGV error, but I tried releasing memory on everything I'm able to, but the crash persists. It's not a regular Java exception or error either, it happens on a native SetByteArrayRegion call (crash dump included in pastie) May 16 01:58:49 Anyone here been to io? i know they have sessions. but theyre all live streamed. anyone meet up and do anything cool/meet anyone cool there? May 16 01:59:48 eghdk it's a pretty hefty waste of money if you don't go to sessions and interact with people during the breaks to talk about the sessions May 16 02:00:00 plus free stuff May 16 02:00:17 swag fthw ! May 16 02:50:26 when you close an android webview does the data get wiped out, i.e. the app data is in memory? **** ENDING LOGGING AT Sat May 16 02:59:59 2015