**** BEGIN LOGGING AT Wed Apr 06 02:59:58 2016 Apr 06 03:16:25 Demon_Jester: sorry about that locked the computer didn't realize I wasn't plugged in Apr 06 03:16:36 did you figure it out? Apr 06 03:26:09 IrishGringo custom event listeners ? Apr 06 03:27:20 g00s: yes.... I am newby.. trying to figure out how I can do something like the way onClick works for a button.. except I want this to be soemthing external... Apr 06 03:27:32 Am I asking the right question? Apr 06 03:27:48 this is a custom event listener? Apr 06 03:40:37 IrishGringo: what do you mean "external?" Apr 06 04:07:51 grekkos: I am working with BLE devices... and I want to handle events from them. But I thought I would start by just listening to BLE devices that are talking to the android phone... Second part of my project will be to talk to the BLE device and handle call back events... Apr 06 04:09:39 call me confused, but isnt that kindof oh idk, illegal Apr 06 04:10:36 wyrdtrtle: is that question to me? Apr 06 04:10:40 How do you figure? Let's give benefit of doubt and assume the devices are IG's. :P Apr 06 04:10:41 sounds like bypassing the device and acting in its place Apr 06 04:11:19 i'm not accusing, worded that badly. Apr 06 04:11:21 If they're not encrypted, that's pretty much fair game, though. :/ Apr 06 04:11:57 This is stuff you hear about in Blackhat conferences or the like. Apr 06 04:12:05 they will be, but I have a key. Apr 06 04:12:19 Hehe, even better. Apr 06 04:12:42 Just listening in takes some money Apr 06 04:12:44 ok... well, I am jsut looking for custom call back events... because I am trying to figure it out Apr 06 04:13:00 MITM is even more so Apr 06 04:13:19 GL heh Apr 06 04:16:16 https://bluegiga.zendesk.com/entries/22882472--REFERENCE-Bonding-encryption-and-MITM-protection-with-BLE-modules Oh, interesting. Apr 06 04:27:31 grekkos, yeah I figured it out, the list option helped, it was able to filter out the mac address, now I need ot make a list of the company mac address. Apr 06 04:56:07 Hello. Anyone still up? Apr 06 04:56:08 How would I go about finding what the default theme is for a BottomSheetDialog? Apr 06 05:23:41 morning! Apr 06 05:36:05 is there a way to log every retrofit network call? Apr 06 05:36:36 I have 3 services and will eventually add more. It would be nice to find a DRY solution Apr 06 05:36:50 install OkHttp's logging interceptor in your HTTP client Apr 06 06:28:52 Hi! Apr 06 06:44:58 my android is showing a circle instead of touch, i need to position the circle through touching and then touch twice to click, how do i disable that, please ? Apr 06 06:45:56 what? Apr 06 06:46:27 maybe it's some accessability feature... Apr 06 06:49:19 Zharf: tks, i thought so too but i search for it and there is none, its an XperiaZ2, stock kernel Apr 06 06:49:27 the circle behaves like a mouse pointer Apr 06 06:49:35 and that "mouse" is controlled by the touch screen Apr 06 06:50:48 hello Apr 06 06:50:59 could be some developers option? Apr 06 06:51:56 Ashiren: tried enabling and disablding the show touches and pointer location.. no good Apr 06 06:53:10 it happened after i edited the touch screen cfg file on /system/usr/idc/max1187x_touchscreen_0.idc Apr 06 06:53:13 i reverted it Apr 06 06:53:22 but the circle remains :( Apr 06 06:57:15 how to set customlayout for tab when no viepager is attached.. Apr 06 06:58:20 renatofdds, -.- Apr 06 06:58:26 renatofdds, reboot and #android-root perhaps Apr 06 06:58:43 i am using in this way... Apr 06 06:58:45 http://pastebin.com/L01WqPWp Apr 06 06:59:01 Zharf: already rebooted.. ill try there, thanks a lot! Apr 06 07:17:08 hello, I want to create a service which holds the connection to a backend and I also want it to be bindable so I can get vlceetain stuff back from the service. Can I somehow make it bindable if and only if a connection to the backend has been established? Apr 06 07:17:55 szt: are you talking about a streaming service? Apr 06 07:18:41 no my service basically polls a rest endpoint periodically Apr 06 07:19:00 that is a bad idea, consider using GCM Apr 06 07:19:07 or any other service like that Apr 06 07:19:41 GCM? Apr 06 07:21:00 yeah, send pushes when new content has arrived instead of maintaining a keep-alive connection Apr 06 07:21:07 use sync-adapters Apr 06 07:21:15 or any push mechanism instead of polling Apr 06 07:21:19 polling is bad Apr 06 07:23:39 well polling is my only option as of now Apr 06 07:24:21 szt: Why is it your "only option"? Apr 06 07:24:31 then let me rephrase my question: how would a media player service do it? Apr 06 07:25:04 my backend currently only supports polling. Apr 06 07:25:10 i believe VLC is open sourced Apr 06 07:25:25 szt: You should write a server application that polls then, and pushes messages to the devices using GCM Apr 06 07:25:38 szt: I would write an aditional module to push as a response to polling Apr 06 07:25:40 is notifySetDataChanged deprecated? All I am finding is deferNotifySetDataChanged. Apr 06 07:25:54 szt: You really, _really_ don't want to be managing long-lives connections in an Android client. It's hell. Apr 06 07:26:13 Demon_Jester: do you mean notifyDatasetChanged? Apr 06 07:26:27 * thepoosh agrees with loke Apr 06 07:27:03 thepoosh, yes sorry, I found out my listview is not updating properly, and I can't seem to add lv.notifydataSetChanged Apr 06 07:27:20 Demon_Jester: notifyDatasetChanged is an adapter method not a lv Apr 06 07:27:30 maybe listview itself is deprecated :? Apr 06 07:27:41 thepoosh, ... oops... brb Apr 06 07:27:47 For new code you wouldn't use ListView, but rather RecyclerView. Apr 06 07:27:48 szt: you should read the AT&T paper about battery life and open connection Apr 06 07:29:10 thepoosh, when I type in my adapter.. arrayadapter it doesn't bring up notifyDataSetchanged, either.. :/ Apr 06 07:29:28 can a function from an .so file call another function from another .so file? i mean, can I comminicate between 2 .so files without having java involved? Apr 06 07:29:49 HunterD: Yes Apr 06 07:29:51 HunterD: one .so needs to dlopen() the other .so file Apr 06 07:30:07 is this possible on Android? Apr 06 07:30:11 HunterD: yes Apr 06 07:30:15 cool :) Apr 06 07:30:23 p_l: actually, that shouldn't be necessay, as long as both are opened. Linux has a flat symbol namespace. Apr 06 07:30:34 do I have access only to my .so files? *and the ones from the ndk Apr 06 07:30:41 loke: Linux has nothing to do with it - it's all linker's Apr 06 07:31:04 and Bionic linker doesn't automate certain things Apr 06 07:31:17 p_l: Wasn't there some kind of weak linking you can use? Apr 06 07:31:26 where can I read more about this sort of stuff? linux / android / so files Apr 06 07:32:02 p_l: Ah wait. Last I tried this, my test case was a bit different. I've never actually tried what was described here. Apr 06 07:32:44 also, what is the difference when using gnustl_static vs gnustl_shared ? Apr 06 07:32:56 *when building ndk code Apr 06 07:33:25 one is linked statically into resulting .so, the other is shared Apr 06 07:33:49 if you use libs that use other STL implementation, it might be important to link it statically Apr 06 07:34:10 and the one shared, from what I notice, it will be placed inside the libs folder, next to my .so file Apr 06 07:34:35 so this is why I asked if an .so file can call from another .so file without having java involved Apr 06 07:34:40 though given the dlopen() dance required it might not be necessary to statically link it on android. Don't remember everything off the top of my head :) Apr 06 07:34:48 "it might be important to link it statically" why is this? Apr 06 07:35:03 at the very least, Bionic's linker used to not chain link Apr 06 07:35:08 HunterD: symbol conflicts Apr 06 07:35:20 I see. Apr 06 07:35:43 where can I read more on the details of ndk? I have not found that much on google's doc site Apr 06 07:36:06 loke: it is no long-living connection Apr 06 07:36:22 there are not many Apr 06 07:36:38 i just conmect, get the response, and wait Apr 06 07:36:50 szt: You made it sound like that when you were talking about binding to a service that had an open connection. Apr 06 07:36:56 HunterD: I'd recommed learning some low-level details on how linkers work and how shared objects work in Linux and in general Apr 06 07:37:20 szt: But even if you don't, polling is a crazy idea. It drain battery, as well as drains data from the user's cap, consting money. Apr 06 07:38:08 loke: what if it was long polling? Apr 06 07:38:29 loke: plus I only want to poll when the display is on Apr 06 07:38:30 p_l: I will look into this. thank you! Apr 06 07:38:46 or maybe only if a client is bound Apr 06 07:43:37 szt: still keep-alive is a battery draining bastard Apr 06 07:43:41 don't do it Apr 06 07:43:44 not worth it Apr 06 07:43:57 it's one of the top 5 reasons people uninstall applications Apr 06 07:44:13 right after bad UX, crashes and ANRs Apr 06 07:45:44 long-poll allows for OS to sleep Apr 06 07:46:08 thanks to special TCP handling in wifi/modem Apr 06 07:48:57 jeez, why can't play store grasp the idea that if download failed during update, it should retry instead of putting big error message in notifications :/ Apr 06 07:49:01 thepoosh: then how do whatsapp, hangouts, telegram and what not do it? Apr 06 07:50:40 by long polling :p Apr 06 07:50:48 long pool != keepalive Apr 06 07:51:23 yeah I will implement long polling, that's no problem Apr 06 07:51:43 just lookup details on how to get it running without wakelocking the os Apr 06 07:52:29 still this doesn't solve my problem of disabling service binding when the service has not been started (i.e. by making it connect) Apr 06 07:52:40 that's the part I'm struggling with actually Apr 06 07:53:01 I also guess that for this I'll need an actual Service subclass Apr 06 07:53:07 not the IntentService Apr 06 07:53:11 szt: they have a long-polling or websocket service running Apr 06 07:53:28 or solutions like Pubnub Apr 06 07:54:34 nah I don't want to use external cloud services Apr 06 07:55:11 so build one yourself and maintain it Apr 06 07:55:20 it's a pain Apr 06 07:55:24 and expensive Apr 06 07:55:49 well I'll just create a long-polling end point Apr 06 07:56:34 and how would I make the service bindable only if a connection has been openedß Apr 06 07:56:39 s/ß/?/ Apr 06 08:04:22 Ok, I am assuming my arrayadapter is not updating? When I go to click on it, it will show me mac address of a router that is not displayed. I input adapter.notifyDataSetChanged() into various locations. But its still not updating.. Apr 06 08:24:57 any hints on why I might get: libc: Fatal signal 5 (SIGTRAP), code 1 in tid 24117 (package info here) when doing NDK debugging? the breakpoint is set on the first line of my JNI_OnLoad method Apr 06 08:25:57 <_eddy> hi guys has anyone integrated a push notification for an android app before? if yes i am trying to set up a project in google cloud and i am wondering if it is free or not? I keep saying this blue button saying start your trial. So do i need to pay later for setting up a project and recieving the GCM API key? Apr 06 08:26:20 should be free Apr 06 08:28:11 it seems that I crash each time I hit a breakpoint. someone here stubled into something similar? Apr 06 08:28:32 *ndk - side breakpoint, not java-side Apr 06 08:29:11 _eddy: create a proj > enable GCM > create a key Apr 06 08:29:43 <_eddy> the_fog, have you used pushbot or oneSignal before? Apr 06 08:30:27 no, I used AWS SNS Apr 06 08:31:01 <_eddy> the_fog, how much do you pay? Apr 06 08:32:03 it was for a client, so not sure, but 1st 1 million are free I think Apr 06 08:32:04 https://aws.amazon.com/sns/pricing/ Apr 06 08:32:44 <_eddy> the_fog, thanks Apr 06 08:32:52 np, oneSignal looks nice though Apr 06 08:33:04 <_eddy> will check if it has a cordova plugin Apr 06 08:35:10 <_eddy> i think i will stick to oneSignal Apr 06 08:49:07 what are the valid stl(s) that I can use at the line: stl = "gnustl_shared" (inside the build.gradle file) Apr 06 08:52:46 Hello guys, is it better to read the SharedPref settings in another thread? Apr 06 09:08:03 sharedpref on another thread would be overkill Apr 06 09:33:45 anyone know what would cause really slow APK installs? Apr 06 09:33:58 on both real devices and AVDs Apr 06 09:37:49 Ashiren, thnx. Apr 06 09:39:08 I want to access database data from a BroadcastReceiver, for example to get next time-information to schedule a notification. Is it a good approach? Apr 06 09:39:24 HunterD: http://developer.android.com/ndk/guides/cpp-support.html Apr 06 09:39:44 HunterD: if you scroll down that a bit there is a table of them Apr 06 09:46:35 I'm following google's guide on handling potentially large Bitmaps, but I keep getting this: http://pastebin.com/H1ntfd6u when creating the scaled bitmap on line 66 of this: http://pastebin.com/AHbPp1KG why isn't height being handled? Apr 06 09:59:05 Can I avoid dealing with Bitmap resizing by simply using Picasso centerCrop() & fit() or even the resize() from the uri (gallery image) into a Bitmap that I then scale down the quality of, that way I should be able to avoid memory leaks? Since Picasso will essentially scale down a 2000x3000 image into my predefined size? Apr 06 10:01:50 Like this perhaps: http://pastebin.com/wAfa3967 any input? Apr 06 10:11:38 Hey. FloatingActionButton is not responding to onclick on api 17 device but working all good for api 21 device. Apr 06 10:11:59 What should i do for backward support Apr 06 10:12:25 I am using android.support.design.widget.FloatingActionButton Apr 06 10:41:35 I have a problem when using gnustl_static and gnustl_shared. with gnustl_static the game (a big project with about 2000 source files) crashes each time. with gnustl_shared the game runs without crashing. any ideas why this is happening? Apr 06 10:41:48 *the build and link stages finish with no problems in both cases Apr 06 10:48:44 I love how instant run is failing Apr 06 11:00:42 My users upload images to my backend, they are all stored in the same folder. So I need a waterproof way of naming their files so they won't collide with one another. Any ideas? I thought of using the users unique username included in the filename, but that was a bad idea apperantly Apr 06 11:01:18 Hello. I am making an android app that talks with a sever via web service calls. What I want to do is ensure that my app is the only one using the web service. I read about sending a password with the request (via HTTPs) so that the server can check if it's the application. But is it possible that a android user can see the code of my application and learn the password? Apr 06 11:03:06 yes, never embed any secret in your app Apr 06 11:04:07 Bernzel_: do your users have a database id? a number? Apr 06 11:04:09 Bernzel_, you need to find a way to uniquely identify your user or generate a big hash for each of them Apr 06 11:04:37 adq, Should I use challenge-response auth then? Apr 06 11:06:49 minas114, no idea, it's a big issue on android to verify that an app is legit Apr 06 11:07:05 if you could avoid that and verify that your user is legit, you bypass this problem Apr 06 11:07:26 adq, The thing is that my app does not have the notion of a user Apr 06 11:07:35 (no accounts) Apr 06 11:07:37 well, you're basically screwed then Apr 06 11:09:10 you could verify the signature of your apk (meaning no alteration) and send it to the server for matching, but then someone evil could spoof at several places (in the code, in memory, in socket, etc) the expected signature Apr 06 11:09:55 minas114, what you can do is basically make it harder to defeat your app <-> server com Apr 06 11:10:03 adq, From what I read online, this problem is unsolvable Apr 06 11:10:15 it is solvable, but it costs, money and user confort Apr 06 11:10:56 Leeds: yeah they get assigned a userID when they create their account. adq I was recommended to use "UUID" ? Anything you have used? Apr 06 11:11:31 Bernzel_, be sure to tie with an ID which will remain the same across several devices, mainly the user account Apr 06 11:12:34 like an email, but then you need to bring a policy & stuff, because there is something in the TOS of playstore when you use emails of your users Apr 06 11:13:17 adq, An idea that comes to mind is to use facebook account to log-in users, then send the token within the cookie to my server. Apr 06 11:13:45 adq: my users have to include their email when signing up, so I have to have policy agreements in my app just because of that? Apr 06 11:13:55 Bernzel_, read the tos Apr 06 11:14:24 minas114, not sure it fits your need, because then you need the server to be aware of the token Apr 06 11:14:35 you cannot blindly send the token to the server and accept everything from it Apr 06 11:14:46 otherwise you could directly ask user to authenticate with user/pwd on your server Apr 06 11:14:48 adq: I will. But abou that UUID , is it a common way of doing it? Apr 06 11:14:58 adq, Yeah now that I think about it I believe it doesn't suit me. Apr 06 11:15:01 an UUID is special identifiant, like a GUID Apr 06 11:15:11 40782A6E-1C3F-4834-9897-09449776D1EF Apr 06 11:15:12 like that Apr 06 11:15:25 it ensures low collision probability on generation Apr 06 11:15:37 that's the same format as userID from my backend. So that might be worth using instead of email? Apr 06 11:15:52 it will be uniquely to each user as well Apr 06 11:16:11 you could tied an email to an UUID Apr 06 11:16:26 so a user with more than one device is still a match in the system Apr 06 11:17:08 but then, the email should be sufficient, since 2 ppl cannot have the same email Apr 06 11:18:34 adq: but then character limitation might appear. If they have a "." in their email, that filename will fail on the server Apr 06 11:18:55 how come a dot is not supported lol Apr 06 11:19:04 that's another problem than your original one Apr 06 11:19:57 no idea.. but it is. yeah I suppose. But what about that userID I meantioned? Shouldn't that work since there will never be another user with the same id? I can't see how that would fail Apr 06 11:22:32 i have no idea what is this "userID" Apr 06 11:22:46 just google about identifying uniquely a user across multiple devices Apr 06 11:24:04 It's the identifying key for every individual user, looks like this: "03CD2198-55EE-5944-FF64-86802D577C00" and is unique to the user Apr 06 11:24:07 adq: Apr 06 11:24:36 that looks like a UUID already... Apr 06 11:25:33 So in that case I might aswell add that value to the filename, I can't see how it will fail if it's completely unique to the user who owns the image? Apr 06 11:25:50 why not create a folder Apr 06 11:25:56 instead of adding that to _each?_ filename Apr 06 11:26:08 we're far from android dev i think :) Apr 06 11:26:40 Yeah we are, thanks for your help. I'll figure something out :) Apr 06 11:33:43 I have a somewhat unusual question. I need to translate characters to HID-usage ints. Right now I do a lookup in Generic.kl, and then a lookup in a HID-table. It works pretty good. 1. However, I have a Swedish keyboard and I can't find swedish characters in Generic.kl, or any other .kl file Apr 06 11:34:53 hi..i don't understand beacause i have this error. 1) i have this png https://www.dropbox.com/s/u45k4gh1omy10j5/red.png?dl=0 2) i use draw9 https://www.dropbox.com/s/a7j9mvctu8mv96m/red_tool9.png?dl=0 3) the result has a unespected shadow https://www.dropbox.com/s/8uvp76o0g3sw7ev/device-2016-04-06-133303.png?dl=0 Apr 06 11:35:15 it' s strange... this shadow Apr 06 11:56:22 the problem is in material design.. in Theme.AppCompat.Light.NoActionBar Apr 06 11:59:09 I have a somewhat unusual question. I need to translate characters to HID-usage ints. Right now I do a lookup in Generic.kl, and then a lookup in a HID-table. It works pretty good. 1. However, I have a Swedish keyboard and I can't find swedish characters in Generic.kl, or any other .kl file Apr 06 12:07:43 hithere Apr 06 12:08:47 I am on Android Studio 1.5.1, in Android Monitor - there is find function (ctrl+f), is there a way to copy text from within find field? Apr 06 12:17:24 hi guys, how can i update the a number in call log? A link to an example would be great Apr 06 12:18:37 thepoosh: maybe u can help mate? Apr 06 12:18:45 what's the question? Apr 06 12:18:52 how can i update the a number in call log? A link to an example would be great Apr 06 12:19:39 meaning, you want to change an already existing one? Apr 06 12:19:42 or add a new entry Apr 06 12:19:43 ? Apr 06 12:19:51 yes, because i added a prefix Apr 06 12:19:58 and want to remove it in call log Apr 06 12:20:16 because number are unrecognized by system Apr 06 12:23:19 skin1980: yes what?! Apr 06 12:23:24 i asked a question Apr 06 12:23:40 yes i want update Apr 06 12:23:45 an existing one Apr 06 12:24:28 Hi all, I use RXBinding to disable fast clicking like this: http://pastebin.com/8suWj58A But is there a way to use this for all the clicks on my CustomButton (extends Button) ? Apr 06 12:25:42 I'm on AS 1.5.1 any reason why I can not use Design view to drag drop controls on my window? I have tried for both layout files... activity_main and content_main no joy Apr 06 12:33:09 how to do TDD in android sqlite? Apr 06 12:34:22 is there an known good resource that covers package creation in detail? Apr 06 12:34:33 I guess some book or something Apr 06 12:39:56 Package creation? Apr 06 12:44:36 yes, there needs to be a classes.dex file holding class dependencies, resources, etc Apr 06 12:44:46 all that structure Apr 06 12:59:23 Good Morning. Apr 06 12:59:41 morning it is i guess Apr 06 12:59:47 it's 16:00 here Apr 06 13:01:20 thepoosh: I saw in java channel something called Universal greatins , where always that you are getting in the channel, is morning, always that you are leaving is night. Apr 06 13:01:49 wviana: I like it Apr 06 13:01:52 morning! Apr 06 13:01:58 thepoosh: So did I. :) Apr 06 13:02:31 ugt is Universal Greeting Time, which states that it is always morning when person comes into a channel, and it is always late night when person leaves. http://www.total-knowledge.com/~ilya/mips/ugt.html Apr 06 13:08:07 In retrofit how can I supply the ":id" in the url "http://baseurl/profile/:id" ? Apr 06 13:38:08 hi! Could someone with Android 5.0+ and External SD Storage device send me contents of this file: /proc/mounts, pretty please? Apr 06 13:38:57 I want to see how external SD card is mounted on 5.0+, but I don't have a device with 5.0 and can't create such AVD Apr 06 13:43:05 You know that different OEMs have different mount points right? Apr 06 13:43:34 Mavrik, yes Apr 06 13:44:11 Anyway, my devices are at the office, ask me tomorrow if noone else answers. Apr 06 13:44:19 ok Apr 06 13:45:34 Hey guys, I heard I could make 1.4 million dollars making android apps, where is a good place to get started? Apr 06 13:46:13 a bank loan :v Apr 06 13:53:20 practoz: http://imgur.com/ebQNDkY Apr 06 13:53:55 Ashiren: That answer does not make sense... Apr 06 13:54:09 How will a bank loan help me code? Apr 06 13:55:46 practoz: @GET("group/{id}/users") Call> groupList(@Path("id") int groupId, @Query("sort") String sort); Apr 06 13:58:08 How do I set a view in the and of the "line" keeping the container wrapped ? Apr 06 13:59:00 Ok.... I have a question.... Is this possible. Apr 06 13:59:12 To write an activity with a single button that creates a textview.... Apr 06 13:59:37 Every time you click the button you create a new textview under the button..... potentially infinitly? Apr 06 13:59:57 And each button would have a different text... is that possible? Apr 06 14:00:04 TinFury: yes, it is. Apr 06 14:00:22 wviana, What would I look at for an example? Apr 06 14:00:44 TinFury: do you know LinearLayout ? Apr 06 14:00:47 I don't understand how that would be done as the textviews didn't exist at the time of compilation. Apr 06 14:01:09 wviana, Yea... not much... i'm new to all this. Apr 06 14:02:20 TinFury: you may call add view into a LinearLayout, this view could be a TextView. So you could inflate a TextView with some layout that you defined before, than add it into the LinearLayout. Apr 06 14:03:29 TinFury: But probably having a button and a ListView would be better. You could set the listview with a Adapter, then just add the Strings that you want into a list. every string in the list would magically apear on the list. Apr 06 14:03:58 wviana, This isn't something I'm actually trying to make. I was wondering if it were possible at all. Apr 06 14:04:10 TinFury: Take a look on it. http://developer.android.com/guide/topics/ui/layout/listview.html Apr 06 14:04:23 Like for a user to define a form.... what kind of data he wants to collect. Apr 06 14:04:34 TinFury: Yes, it is. And not that hard to do. Apr 06 14:05:22 And it would generate an activity to capture this data? Allong with data types etc? Apr 06 14:06:06 TinFury: I did a test for a company where I use to receive a JSON that says the fields and mask, then I create the fields dynamicaly. Take a look: https://github.com/wviana/HanzoChallenge Apr 06 14:07:17 Ok lemme take a look. Apr 06 14:08:03 does it make sense to use String.format("", ...) in a Log or there is a better practice? Apr 06 14:09:40 xcolors: I think it's ok. In the end you'll cut out all the Log calls for your production APK Apr 06 14:10:20 yt wviana Apr 06 14:10:27 ty!!! wviana Apr 06 14:10:52 xcolors: Welcome. ;) Apr 06 14:12:55 wviana, YA!!!!! This is EXACTLY what I was asking!!! Apr 06 14:16:22 TinFury: Happy for help! Apr 06 14:22:32 I am having AS Draw Layout issues... cannot get Items to drag and drop on screen, rendering issues... Does anyone have a source of info I can study about how to resolve this? Apr 06 14:23:49 Has anyone used Picasso to resize large images coming from the users gallery where the width/height is unknown? Apr 06 14:30:39 Bernzel_: I just set the ImageView size, Picasso fits it inside it. I think so. The only config that I'm doing about size is in ImageView. https://gist.github.com/wviana/0f0e62a9f2f56a545ee0f9de58671783 Apr 06 14:32:41 Bernzel_: Just updated it, added the xml to my imageView Apr 06 14:33:11 Bernzel_: Sorry if it isn't what you'r looking for. Apr 06 14:33:19 wviana: It's not for an imageview, I upload the image data to my server to be stored. But I'll be displaying these images a squares into imageview when I fetch them. So it's the case if the users selected image is enormous (my upload method takes a bitmap) so I have to scale the image down Apr 06 14:33:44 if I'm to put it into a Bitmap Apr 06 14:34:36 To avoid Out Of Memory error Apr 06 14:34:51 Bernzel_: oh, never did it. Probably someday I'll need to. If you get the solution, please comeback and tell us how. Apr 06 14:35:00 absolutely. Apr 06 14:36:25 hmm, I just want to create a search filter for a list I have, and make it all look material and awesome and all that stuff Apr 06 14:36:46 and I've googled it and found like thousand different answers (it feels like) where everyone do it in different ways Apr 06 14:36:52 often pretty ugly ways Apr 06 14:37:08 is there a best(tm) way to handle this? Apr 06 14:37:11 dammit i'll be assigned to a SAP netweaver integration project Apr 06 14:37:42 bitkiller: man, I'm so sorry Apr 06 14:38:27 be more sorry because it's for the 2006 or something version Apr 06 14:38:44 nw 7.0 Apr 06 14:38:53 i would like to write my first android app - contacts book app. what you think of using android studio? Apr 06 14:39:10 i have no prior coding experience nor android experience of any kind Apr 06 14:39:18 poua, leanr java first Apr 06 14:39:23 *learn Apr 06 14:39:31 ill try to learn as i code this app Apr 06 14:39:43 otherwise im not sure i will find motivation Apr 06 14:40:31 An android app is a large project to take on for your first programming endeavor ever Apr 06 14:40:41 but you are welcome to try if that is your desire Apr 06 14:40:44 Well if programming isnt completely new to you it might work. And yes android studio is the most common soltuion for android dev Apr 06 14:40:47 even when such apps can take 1-2 mb in apk size? Apr 06 14:41:35 What specifically are you getting at? what does the apk size have to do with? Apr 06 14:41:37 lets say i have general idea, but i dont know any specifics, and i only find motivation when i want to solve something Apr 06 14:41:59 like in this case, i find no good contacts app for older devices running 2.3 gingerbread Apr 06 14:42:03 and small screen Apr 06 14:42:08 Ok, go for it - i am certainly not trying to stop you. Just warning you. Apr 06 14:42:14 I aplaud your efford Apr 06 14:42:15 thanks Apr 06 14:42:17 effort* Apr 06 14:42:27 is android studio all i need? Apr 06 14:42:36 pretty much Apr 06 14:42:44 already got it installed and running Apr 06 14:42:44 and d.android.com is a good place to start Apr 06 14:42:54 but im not sure i understand emulator Apr 06 14:43:05 does it work like a phone or not? can i interact with it with mouse? Apr 06 14:43:17 yes the mouse simulates a finger Apr 06 14:43:23 Test it out and see Apr 06 14:43:30 then im doing something wrong because it doesnt work for me, how do you run emulator? Apr 06 14:43:36 like i see it on the screen Apr 06 14:43:44 but that is probably not it is it Apr 06 14:43:56 is it displaying anything at all? Apr 06 14:44:07 do you have acceleration enabled? Apr 06 14:44:35 http://i.imgur.com/ok1mUxN.png Apr 06 14:44:49 That is not the emulator Apr 06 14:44:53 hehe xD Apr 06 14:44:54 That is the UI designer Apr 06 14:45:00 i knew something was wrong Apr 06 14:45:31 Press the green play arrow in the toolbar to run your project, from there you can select the emulator Apr 06 14:45:41 but read through some tutorials. they will teach you this stuff Apr 06 14:46:25 im about to go through "first app" tutorial http://www.androidauthority.com/first-android-app-what-you-need-to-know-619260/ Apr 06 14:47:08 great. go for it Apr 06 14:47:20 alright thanks guys Apr 06 14:47:29 ill be back :D Apr 06 14:52:12 Where can I get the base/used xml for this android.support.v7.widget.SwitchCompat ??? Apr 06 14:52:33 Does anyone know why setting a notifications ringtone like so: https://gist.github.com/Renari/79b0172748beff9ff138fab1fc298a52 causes the tone to play continuously. The tone in question is a uri obtained from ringtone picker. Apr 06 14:53:12 The tone will only stop playing if the user looks at their notification bar by dragging it down. Otherwise it will play forever. Apr 06 14:56:00 How can I check R.styleable.SwitchCompat from android.support.v7.widget.SwitchCompat ? Apr 06 14:58:19 I want to see how they did te component layout. :| Apr 06 15:00:30 wviana, in appcompat values xml Apr 06 15:00:34 where else... Apr 06 15:06:06 pfn: I'm trying to get where the Text and the Button are in? Relative Layout or Linear, and how is it aligning the button into the right without making its parent container to get as wide as possible. Apr 06 15:06:53 hmm Apr 06 15:07:21 when running emulator on blank "hello world" project, without changing anything i get some errors http://i.imgur.com/oBaNGrY.png Apr 06 15:07:41 could it be related to setting up project to support gingerbread 2.3 api? Apr 06 15:08:44 that's not emulator, and preview sucks Apr 06 15:09:02 oh i know, i have emulator running, but im still wondering why is it reporting errors there Apr 06 15:09:10 set the correct theme, as the error shows Apr 06 15:09:13 it's preview Apr 06 15:09:34 it wouldnt be already correct in blank new project by itself? Apr 06 15:10:29 Does anyone use Design Layout Editor? because all I get are rendering problems, and I only occassionally can I drag and Drop Apr 06 15:10:35 items ont he screen Apr 06 15:10:57 btw can emulator be sped up? seems to lag a lot, when i press bottom buttons it waits 2-3 seconds before responding Apr 06 15:11:01 poua, no, because preview sucks Apr 06 15:11:06 emulator sucks Apr 06 15:11:09 get a device Apr 06 15:11:16 use x86 emulator image Apr 06 15:11:18 alright Apr 06 15:27:53 i created new device with lower dpi and it seems to be much more responsive Apr 06 15:28:44 now, if i want to write an app compatible with 2.3 gingerbread can i run emulator for marshmallow or is it better to create new device specifically for gingerbread? Apr 06 15:29:27 just want to have initial setup done, so that i can go do tutorials and start writing app Apr 06 15:33:13 start by not writing an app to support gingerbread Apr 06 15:33:17 that's for suckers Apr 06 15:33:31 have you ever used MiXplorer file manager? Apr 06 15:34:08 see, that little amazing file explorer is so good, looks amazing, and still works on gingerbread Apr 06 15:34:36 that tells me it's possible to write new modern apps in 1-2 mb size on 2.3 gingerbread that are fast and great Apr 06 15:34:55 the reason i want to write contacts app is because all apps either have bad ui or are slow Apr 06 15:34:57 or both Apr 06 15:35:23 I'm having rendering issues in design mode of Android studio... I think the problem is that I can not get AppCompat stuff to load into my theme select box... just Material design. But I am doing SDK 19 stuff, which I do not believe work with material design, thus I need appCompat Apr 06 15:35:40 so is there a way to got the AppCompat stuff to load? Apr 06 15:42:41 simple answer: don't use preview Apr 06 15:43:05 poua, so you want to support gingerbread just for the challenge Apr 06 15:43:11 because there's no practical reason Apr 06 15:43:26 no, i want to support 2.3 GB because i have a phone running it XD Apr 06 15:43:54 and that mixplorer proved there is no real limit to making small, fast and amazing modern looking apps for it Apr 06 15:44:32 even if no limit , huge costs in time that could have been spent better ;) Apr 06 15:46:55 there's no limit, but whether there's any value is questionable Apr 06 15:48:08 i wonder how much longer the support libs will be bloated up with v4/v7 specific stuff Apr 06 15:49:25 libraries that drop lower-level support go into different -vX libs Apr 06 15:49:35 and they just build upon the -v4 and -v7 Apr 06 15:49:38 pfn if something works great on lollipop it might not work great on lower frameworks Apr 06 15:49:58 but if something works great on lowers there is higher chance still working great performance wise on higher frameworks Apr 06 15:49:58 poua, the point is so what, but if you have a gingerbread device you actually want to use, have fun Apr 06 15:50:15 I and just about no one else here is interested in supporting it Apr 06 15:50:21 hello Apr 06 15:50:23 and will not answer any questions you have regarding it Apr 06 15:50:27 other than troll you Apr 06 15:50:34 the point is i see contacts apps and even sms apps that scroll so slowly i wonder why Apr 06 15:50:44 and i want to make app that has nice smooth scroll even on gingerbread Apr 06 15:50:55 nothing else, just a list of contacts that scrolls fast Apr 06 15:51:05 have fun Apr 06 15:51:06 and has many on screen too Apr 06 15:51:08 not going to help Apr 06 15:51:14 alright Apr 06 15:51:42 you know one of the big problems with GB was its crappy animation performance, right? Apr 06 15:51:56 then how come i have other apps that run smooth Apr 06 15:51:57 that only really got properly fixed in 4.2ish Apr 06 15:52:12 clearly it is app issue, the way it was coded Apr 06 15:52:23 I don't know, what I remember about 2.3 is that it was terrible Apr 06 15:52:37 but that was like, 6 years ago Apr 06 15:52:38 sure, i understand that, but i confirm there are apps that run very smooth and well Apr 06 15:52:56 example is mixplorer and sms messenger Apr 06 15:53:26 yeah, they might perform some tricks to make it okay, but that's likely black magic that doesn't actually serve any purpose anymore Apr 06 15:53:46 then there is app like chompsms that has worst scroll on gingerbread making it unusable for me Apr 06 15:54:25 those tricks are what motivates me to explore this endeavor Maurits- Apr 06 15:54:29 i saw that gradle finished successful but when i want create a new project in android studio i see this http://picpaste.com/android4-40iurvXq.png Apr 06 15:54:30 what should i do ? Apr 06 15:54:30 i saw that gradle finished successful but when i want create a new project in android studio i see this http://picpaste.com/android4-40iurvXq.png Apr 06 15:55:02 poua: well, grab a profiler and have a look Apr 06 15:55:13 im a complete newb Apr 06 15:55:38 linuxlove get oracle jdk ... Apr 06 15:55:40 lol Apr 06 15:55:43 need help about http://developer.android.com/reference/android/telephony/TelephonyManager.html#hasCarrierPrivileges() Apr 06 15:55:58 im dev of italian currier Apr 06 15:56:22 but i shall google profiler at some point in time Maurits- and try to see what its about and how to set it up Apr 06 15:57:05 g00s, i found that current java doesnt make problem for me Apr 06 15:57:38 problem is freezing on gradle for new project i dont have problem in my connectivity now Apr 06 15:57:58 there is google support ? Apr 06 15:58:25 linuxlove probably gradle connectivity problem Apr 06 15:58:55 Where can I find documentation on why activity was sperated from content in layout and the benefit of why this was done. Apr 06 16:00:18 g00s, i can open https://developer.android.com in my browser easily Apr 06 16:01:24 poua: I would just code your app first and then worry about its scrolling performance Apr 06 16:04:09 hey g00s, do you like jonnie walker blue or any other 8 year plus single malt? Apr 06 16:04:14 i can see updates in sdk Apr 06 16:04:14 how can i solve problem for gradle? Apr 06 16:04:42 ohh wow, after using sdk manager to install intel HAXM accelerator now emulator is much faster and more responsive Apr 06 16:07:00 im dev of an italian carrier, and i need carrier privileges, but i receive false. there is any official support? Apr 06 16:15:01 How does one show multiple lines on-screen when using Canvas.DrawLine and onDraw? Apr 06 16:27:02 The suggested way of creating a timepicker fragment is by subclassing..... I do not know how to pass the selected time back to the calling activity after the time is set. Apr 06 16:27:18 I'm having a hard time with this can anyone point me in the right direction? Apr 06 16:28:38 TinFury: http://developer.android.com/training/basics/fragments/communicating.html Apr 06 16:28:57 cleanest way to do it Apr 06 16:29:50 Ok... :( that's the site I was trying to work from. I don't find the adroid documents clear. And I think they sometimes contain frustrating mistakes. Apr 06 16:36:19 TinFury what part are you struggling with? Apr 06 16:36:58 TimePicker fragment. sending hour and min back to calling activity... I don't know why it's so hard. Apr 06 16:37:16 A lot of people struggle with this part I think Apr 06 16:37:25 TinFury, post some code Apr 06 16:37:27 I'm in the middle of editing I'll pastebin when I'm somwhere Apr 06 16:37:38 kk Apr 06 16:38:08 I am writing an app that uses allot of timepickers... so it makes sense to create a single class to handle display timepicker... and pass back hour and min... or better yet date. Apr 06 16:38:11 :( Apr 06 16:38:20 Ok lemme try and I'll paste where I get to. Apr 06 16:59:18 http://pastebin.com/1ymLHYUU Apr 06 16:59:29 This is where I'm at now... I don't know how to implent the callback Apr 06 16:59:30 :( Apr 06 16:59:57 If you look at the example Apr 06 16:59:57 http://developer.android.com/training/basics/fragments/communicating.html Apr 06 17:00:20 The example uses OnHeadlineSelectedListener Apr 06 17:00:37 But my TimePicker uses OnTimeSetListener Apr 06 17:00:46 So I don't know how to do it Apr 06 17:09:52 ugh, why does the new camera2/imagereader api have to have colorplanes instead of a single pixel array Apr 06 17:10:10 can't do what I want without copying data all over the place and accounting for interleaving, yuck Apr 06 17:20:03 carcrash, you there? Apr 06 17:21:46 TinFury, yes but at work. Apr 06 17:21:52 I may look in a bit Apr 06 17:21:55 k Apr 06 17:37:40 Hey, I want to update the gradle plugin to 2.0.0-rc2, can I do with with sdk/build tools 23? Or do I have to upgrade to 24/25 ? Apr 06 17:38:21 Is it enough to apply this option "options.inSampleSize = 2;" to a decoded bitmap to make sure it's not producing a OOM error? Or do I need to really calculate the size of incoming data and apply inSampleSize value based on that? Apr 06 17:46:57 If I have object A, and object B, B extends A Apr 06 17:47:03 Why cant A be cast to B Apr 06 17:47:38 because B is an A, but A is not a B Apr 06 17:47:48 True I see Apr 06 17:47:51 Damnit Apr 06 17:48:35 s73v3r: I have an object that im using with Retrofit called RequestResponse, it has its own deserializer and I use it for general calls to my API that return either success/fail and a message Apr 06 17:48:58 I want to make a subclass of RequestResponse, with no extra functionality, just a different class name Apr 06 17:49:10 That makes absolutely no sense Apr 06 17:49:31 Because I am using EventBus, I dont want to broadcast the general RequestResponse object, cause several activities could be listening for that at the same time Apr 06 17:49:52 So don’t deserialize into RequestResponse Apr 06 17:50:06 have retrofit deserialize into the actual object, which is how Retrofit is designed to work Apr 06 17:50:07 What do you mean Apr 06 17:50:51 Don’t have your retrofit calls return RequestResponse. Have them return the actual model object they’re retrieving Apr 06 17:51:20 Hmm, I think that would be HashMap Apr 06 17:51:26 no Apr 06 17:51:36 If im sending back an assoc array Apr 06 17:51:38 make an actual model object Apr 06 17:51:46 I did, its called RequestResponse haha Apr 06 17:51:53 no, that’s not a model object Apr 06 17:52:01 Why not Apr 06 17:52:06 It models the data its receiving Apr 06 17:52:14 no it doesn't Apr 06 17:52:26 it models a response. it doesn’t model what that response is actually supposed to represent Apr 06 17:52:55 Well I dindnt want to make a model object for each different type of response I get Apr 06 17:53:04 except that’s how you Apr 06 17:53:08 are supposed to do it Apr 06 17:53:11 Really Apr 06 17:53:14 Hmm Apr 06 17:53:28 Still can't get the callback to work with TimePicker fragment... Any help would be GREATLY appreciated. Apr 06 17:53:29 can you have the same response coming from different calls? Apr 06 17:53:34 Yes Apr 06 17:53:42 Thats why I use RequestResponse Apr 06 17:53:54 that really makes no sense Apr 06 17:53:55 http://pastebin.com/SgWSzYtF Apr 06 17:54:05 Why s73v3r Apr 06 17:54:14 Some of my api calls just return success/fail with a message Apr 06 17:54:21 A lot of them actually Apr 06 17:54:27 that’s different, then Apr 06 17:54:37 How Apr 06 17:54:40 but if you’re returning actual data, it would make no sense Apr 06 17:54:46 Right Apr 06 17:55:04 So basically when Im returning actual data, make a model for it, but for general pass/fail + message, RequestResponse is fine? Apr 06 17:55:07 because all you’re returning is pass/fail. all you need for that is either HTTP 200 or an error code Apr 06 17:55:50 Say I have two different tasks Apr 06 17:55:51 Delete X Apr 06 17:55:54 Add a new X Apr 06 17:56:03 API is going to send the same response back Apr 06 17:56:09 pass/fail + message Apr 06 17:56:24 And my repo is going to receive that, and use the EventBus to broadcast it back to the UI Apr 06 17:56:27 that’s fine Apr 06 17:56:30 ok Apr 06 17:56:56 But I dont want to broadcast the same thing for those two tasks, I want to broadcast a DeleteXResponse for delete, and a AddXResponse for add Apr 06 17:57:17 so send different EventBus messages Apr 06 17:58:00 So the repo will get RequestResponse, and I should just parse that into either AddXResponse / DeleteXResponse and send that out Apr 06 17:58:05 sure Apr 06 17:58:31 Should AddXResponse extend RequestResponse though Apr 06 17:58:36 no Apr 06 17:58:42 Ok Apr 06 17:58:49 These are EventBus messages, not responses Apr 06 17:58:49 Thanks s73v3r Apr 06 17:58:52 Right Apr 06 18:00:27 s73v3r: what would you say if I just passed the RequestResponse into the constructor of AddXResponse, and stored it as a public member "data" Apr 06 18:00:36 addXEvent.data.getSuccess() Apr 06 18:00:47 given that it’s just a bool and a string, i wouldn’t bother Apr 06 18:01:04 Youd just store the literal bool and string Apr 06 18:01:13 Maybe make a constructor that will take it, and then copy that in the object Apr 06 18:01:13 yes Apr 06 18:01:21 Cool Apr 06 18:01:21 i mean copy it’s data fields Apr 06 18:01:25 Right Apr 06 18:01:59 I hope Im not overthinking everything, I've re-designed my architechture like 5 times the past few months Apr 06 18:02:41 you are a bit Apr 06 18:02:49 TinFury, what doe the activity that yo uare using it on look like? Apr 06 18:02:57 I just want to make it maintainable s73v3r Apr 06 18:03:32 carcrash, http://pastebin.com/TnPHS7sq Apr 06 18:03:39 yeah, but constant overthinking means there won’t be anything to maintain Apr 06 18:03:39 Thats where I call it from Apr 06 18:03:51 True I guess Apr 06 18:04:02 At line 161 Apr 06 18:14:55 Okay so I'm in my 40s with a stronger background in PHP than anything (some JS but nothing fancy), and I'm feeling like I'm in alien space. Like I want to load an image that exists on a website, so apparently I need to add a library that will fetch and cache the image as a bitmap resource? Okay.. but I get lost following the basic install steps.. Ie: ImageLoader imageLoader = ImageLoader.getInstan Apr 06 18:14:55 Hi, I have a Samsung Grand Prime. When I press RUN on Android Studio, the app gets loaded to the phone and then the phone says something like "SIM Card has been removed" or "SIM Card not found". Anyone encountered this problem ? I have to reboot each time -.- Apr 06 18:14:57 ce(); // Get singleton instance *( What is a singleton?!) Apr 06 18:15:26 TinFury, why is your call back commented out? line 57 Apr 06 18:15:42 Androit: Singelton means, there can only be one instance of this particular class Apr 06 18:16:14 Androit: whats the img url Apr 06 18:16:15 Androit: You cannot instantiate 2 or more Instances of ImageLoader class Apr 06 18:16:17 Because it will not accept mCallback Apr 06 18:16:29 what do you mean it will not accept it? Apr 06 18:16:33 mCallback.OnTimeSet is only option as well. Apr 06 18:16:49 Androit: Spend some time learning basic Java. It will help immensely Apr 06 18:17:14 Anyone know where TacticalJoke has been? Apr 06 18:17:21 he was here yesterday Apr 06 18:17:23 why Apr 06 18:17:30 Androit: in addition to s73v3r, what you are looking for is "singleton" as a design pattern. Apr 06 18:17:34 Idk I used to see him all the time and I havent in a while Apr 06 18:17:41 mhm Apr 06 18:18:04 How is he? Apr 06 18:18:09 Idk if you guys chatted Apr 06 18:18:34 Well I assume hes alive, so.. Apr 06 18:18:46 True Apr 06 18:19:04 *push* Hi, I have a Samsung Grand Prime. When I press RUN on Android Studio, the app gets loaded to the phone and then the phone says something like "SIM Card has been removed" or "SIM Card not found". Anyone encountered this problem ? I have to reboot each time -.- Apr 06 18:20:26 carcrash, when i type mCallback. it doesn't suggest onTimeSelected as an option Apr 06 18:20:36 it only suggests OnTimeSet. Apr 06 18:20:37 Ahhh so really the comment is saying that we're just doing this once, like an initial instance...The image URL is a typical "http://site.com/images/image.png" reference. Apr 06 18:21:31 no, it’s saying that the ImageLoader class can only be instantiated once Apr 06 18:21:54 Every call to getInstance() should be returning the same instance Apr 06 18:22:33 I wish, in AS, that methods with the @Subscribe annotation were highlighted as used Apr 06 18:22:40 Instad of greyed out saying that they are not used Apr 06 18:23:14 I'm trying to follow another document.... http://android-er.blogspot.com/2013/09/implement-callback-function-with.html Apr 06 18:23:24 s73v3r: Oh. So it's going to only cache one image vs. having lots of instances for multiple images? Apr 06 18:23:36 Maybe this will work cause I have no idea why the other one is the way it is.... I don't understand it so I can't diagnose. Apr 06 18:23:51 no. It’s only going to have one instance of that class, regardless of how many images you get Apr 06 18:24:03 like I said, best to learn some basic Java and design patterns Apr 06 18:24:29 s73v3r: Ahhh I look at classes as functions written sideways.. ;) Apr 06 18:24:44 drose379: if you option-enter on methods with @Subscribe, is there a quick fix to suppress the warning for methods annotated with that? Apr 06 18:24:50 TinFury, you are not using your interface. look at line 21 Apr 06 18:25:05 that is the TimerPickerDialog's interface Apr 06 18:25:17 No there isnt damien5314 Apr 06 18:25:33 I know I'm not.. I'm asking for guidance... because I couldn't get it to accept mCallaback Apr 06 18:25:58 use your own interface OnTimeSelectedListener Apr 06 18:26:32 Ok.. almost finished with this other tutorial Apr 06 18:26:35 Let me try Apr 06 18:28:25 So I really need to find some basic tutorials then.. I mean I don't know where to put code (I've seen lots of easy how-tos that hand you code without saying where it goes, I don't know some of the lingo (Maven vs. Gradle?), and I'd probably do well with a tour of the common addons (9-Patch?) Apr 06 18:28:54 drose379: http://i.imgur.com/d0tZebj.png i think you can exclude those methods here Apr 06 18:29:43 that's in the Inspections preferences Apr 06 18:31:56 Ill check that out damien5314 thanks Apr 06 18:32:09 Androit: what do you even try to do? Can you upload the code to pastebin ? Apr 06 18:33:28 carcrash, I can't use that document cause now it says I must create a blank constructor. Apr 06 18:34:44 What's the best way to create a Bitmap from Uri? I don't want to throw exceptions around preferably Apr 06 18:36:28 Androit, d.android.com it's in the topic Apr 06 18:36:49 I would really like someone to explain why TimePicker dialog is do difficult to work with... I feel like it should already have what it takes to return the time to calling activity if you want. Apr 06 18:37:03 I feel that thats the more intuitive action. :( Apr 06 18:37:27 Not sure if this is the right place to ask, but does anyone know why Android Studio/Gradle has to do so much work if I merely run an otherwise unchanged project in Android Studio? Once it builds a debug APK, if the source code has not changed at all, why is it not just deploying the same APK again/restarting the process? But, then, to follow up, when only one file has changed, it again seems like it takes forever, like it's incapable of do Apr 06 18:37:27 any incremental updates whatsoever. Do the people who make Android Studio/Gradle not... you know... use it? Do they not know that this is such a catastrophic problem? Apr 06 18:37:29 And I can't find accurate examples for what I'm trying to do. I feel like I must be going about this in the wrong way Apr 06 18:37:49 I see most claiming this is the way to go: "MediaStore.Images.Media.getBitmap(getContentResolver(), uri);" but then I have to use try/catch and I get depressed... Apr 06 18:37:53 PeteS, Lookup intantrun Apr 06 18:38:08 TinFury, It's buggy though I think someone said. Apr 06 18:38:14 I have a designer who says he will give me .psd files and says programmer can do slicing of components insid the .psd which are vector based - as he claims. On the other hand, I have a an android programmer who wants the whole file in SVG and tells me it's better to use that. I want to which method is supported and used as a standard? I would like my graphics to look same on all devices like any normal app Apr 06 18:38:30 PeteS, http://tools.android.com/tech-docs/instant-run Apr 06 18:38:40 Is that a very complicated thing to ask for when it comes to Android development? Apr 06 18:40:14 @TinFury thanks, I'll check that out. I have had that working in the past, but... I don't know, everything is so inconsistent on my machine. I constantly find myself waiting on Gradle, or some nonsensical background process, when there is nothing that needs to be recomputed. I have definitely had InstantRun working for me, and it's decently fast, but I remember things being many orders of magnitude faster back in '09 when I started. Apr 06 18:40:44 er, faster even without needing something like InstantRun Apr 06 18:41:16 ahh good old eclipse times Apr 06 18:42:19 monsterco: psd is a no-no. SVG is better, but android also has its own VectorDrawable Apr 06 18:43:25 Ashiren - thanks for the feedback - designer says that all parts are in vector inside the container Apr 06 18:43:41 I was reading that not all SVG properties are supported in Android - shades, filters, etc... Apr 06 18:44:00 Ashiren - so what should we ask our designer for? SVG files? Apr 06 18:45:14 what kinds of graphics? icons? backgrounds? Apr 06 18:45:33 i bet it will eventually turn into manually making shapes, 9-patches and background Apr 06 18:45:41 your designers should be designing in vector, but should be supplying splices at different densities, or 9-patches Apr 06 18:48:51 why is it that some libraries, such as internal_impl for example, get a hash at the end of it's jar file name and others don't, prior to being packed into classes.dex? Apr 06 18:49:03 Is there a good way to place an image as the toolbar title instead of text? Apr 06 18:49:15 Ok so maybe I'm going about this in the wrong way. Apr 06 18:49:36 Does anyone have example code of TimePicker that returns hour and min to calling activity? Apr 06 18:51:08 Tinfury are you having trouble passing data back from frag to activity Apr 06 18:51:22 yes Apr 06 18:51:33 Have you ever made a callback interface Apr 06 18:52:28 Yes. I did in another program. But this is different as now I cannot pass this to callback in constructor. Apr 06 18:52:49 Fragments want empty consturctors apparently. Apr 06 18:52:53 Right Apr 06 18:53:04 Do you override the onAttach() method in your fragment? Apr 06 18:53:22 No should I ? Apr 06 18:53:37 Yes, because it receives a Context, which is of the parent activity Apr 06 18:53:46 So if the parent activity implements the callback interface Apr 06 18:53:54 Callback myCall = (Callback) context; Apr 06 18:53:57 in onAttach Apr 06 18:54:11 TinFury, I am not sure of the sate of your code now, as I can only peek in here every now and then, but are you sure you were trying to use your interface "OnTimeSelectedListener" at ! line 21 of TimePickerFragment? Apr 06 18:56:55 carcrash, Yes I was... hold on trying I think drose379's sugguestion may work. Apr 06 18:57:21 I cannot for the life of me get Kotlin to build a Dagger module for a GoogleAnalytics module Apr 06 18:58:08 Try that. http://hastebin.com/xiquculofu.java I think it should work without any other tinkering. Apr 06 19:03:53 What type of an object is "this" Apr 06 19:04:59 TinFury, this is the current object you are writing Apr 06 19:05:26 Ok look at this example I'm working with Apr 06 19:05:27 http://android-er.blogspot.com/2013/09/implement-callback-function-with.html Apr 06 19:06:12 In his class AyncTask he passes a context(this from mainactivity) to his interface. Apr 06 19:06:38 I'm trying to do that with droes's sugggestion. but my Interface doesn't expect a context. Apr 06 19:07:04 You dont need to be using async tasks for this. Apr 06 19:07:36 I was trying to use his example of the interface only Apr 06 19:07:47 I can't find a closer code example. Will it not work? Apr 06 19:07:56 I'm just using the part that models the callback. Apr 06 19:09:11 I am not sure what drose379 has worked with you on, but you dont need an asynctask to show a dialog. Async task has its own callbacks, but you wont use them Apr 06 19:10:23 OMG I GOT IT TO WORK!!! Apr 06 19:10:24 Fark Apr 06 19:10:30 lol Apr 06 19:10:48 Instead of casting from Context I casted to my interface and it worked. Apr 06 19:11:02 Now..... only if someone could explain why that works to me. Apr 06 19:13:01 How can I declare and interface.... and then cast an activity to it? I created the Interface and I don't know what type of object it is... Apr 06 19:13:46 the activity implements your interface Apr 06 19:14:13 otherwise it would throw an exception (if you still have that code in there) Apr 06 19:17:14 carcrash, no i took it out... but why can I cast activity to intefrace? As far as I know the interface I created doesn't really contain anthing.. just the framework methods for callback Apr 06 19:20:03 carcrash, I have to go..... thanks for all the help and drose379 too man.. this was driving me nuts.... gonna try go read up on how that worked. Apr 06 19:20:44 Ashiren - these are static graphics; it's an employee access portal for salaries and clock-in/clock-out so no fancy graphics. I am not sure what you mean by manually making shapes? Apr 06 19:21:12 so the correct answer between designer and programmer is what? make them in SVG? Apr 06 19:32:55 hmmm it's a bit rubbish how crashlytics doesn't seem to work with gradle experimental Apr 06 19:33:01 anyone has had success with this? Apr 06 19:43:52 gradle-experimental is useless Apr 06 19:45:47 instant run instant run is more trouble than it is worth at this point Apr 06 19:50:42 hopefully it will improve Apr 06 19:56:13 heh, even setting up maven is a nightmare Apr 06 19:56:47 maven’s always been like that Apr 06 19:57:02 * g00s forgot why gradle-experimental exists Apr 06 19:57:28 anyone here familiar with android wallet? created a backend service that creates the save to android pay button, wondering if there is someway to auto click the button or send in email so the end user doesn't have to go to the site and click to save it Apr 06 19:57:45 that sounds pretty damn scummy Apr 06 19:58:10 anything I do since I begun with android leads me to error, to a some miss-versioned and useless info, to clicks on an ide... Apr 06 19:58:28 same for most of us Apr 06 20:00:29 too much wasted time with a dumb technology Apr 06 20:01:30 I heard that Node.js is cool yo. Apr 06 20:01:34 And just works (tm). Apr 06 20:01:53 My emulator keeps giving me failed install insufficient storage, but it's a new emulator, with 5GB/5GB space Apr 06 20:02:20 You can use Appcelerator and use node on Android Apr 06 20:02:26 wasn't that some web crap? Apr 06 20:02:27 Or Cordova Apr 06 20:02:30 Haha Apr 06 20:02:56 >joins android dev Apr 06 20:03:00 >tells people to use html Apr 06 20:03:04 >is explodes Apr 06 20:03:09 :p Apr 06 20:03:45 Should've added the /s Apr 06 20:04:16 On the emulator internal storage is reporting 365MB or 533MB used Apr 06 20:04:26 I was expecting the 5GB to show up there Apr 06 20:04:39 Anyone know how to make AS highlight methods with the @Subscribe annotation Apr 06 20:04:46 Right now it greys them out and tells me they are un-used Apr 06 20:04:49 Just kind of annoying Apr 06 20:05:24 drose379 did you check the menu i linked earlier? i tried it with @Deprecated and it worked fine Apr 06 20:05:46 Hi, I have a game. I want to have sound effects each time some collision happens. I am using this http://pastebin.com/E6ecWi3Q but its the sound play slows down the gameplay. Any more efficient ways to do this ? Apr 06 20:06:08 damien5314: Howd you do it? Apr 06 20:07:39 drose379: Preferences > Editor/Inspections > Java Declaration Redundancy / Unused Declaration > Click "Configure Annotations" and add @Subscribe to the list of excluded classes Apr 06 20:08:08 Thatll highlight the method below it? Apr 06 20:08:22 if by highlight you mean remove the warning that it's unused, yes Apr 06 20:12:26 Thanks damien5314 Apr 06 20:12:57 Is there an easy way to check if an id_token is expired in Android without contacting the service which gave out the token? (jwt token) Apr 06 20:13:46 actually I suppose that it's best to just contact the service. Apr 06 20:14:43 Because it's not just time which could make this token expired, it's also the service itself which could say it's no longer valid. I was just trying to save from making an HTTP request by decoding the jwt using some sort of android / java library and seeing if the exp field is still in the future Apr 06 20:16:49 SDK tools 25.1.1 final out Apr 06 20:19:07 woo indeed g00s Apr 06 20:20:52 maybe this means AS 2 final is almost done Apr 06 20:21:04 presumably build-tools will go from rc to final too now Apr 06 20:21:14 keep hoping Apr 06 20:33:55 Yay, maybe we can slowly get rid of genymotion Apr 06 20:36:37 talking about gm they plan to announce something few days, i hope it's worth it Apr 06 20:37:09 hi guys, can anybody please help me with this piece of code, for some reason i cant display the contact name, here my code http://pastebin.com/XK7rxn6g Apr 06 20:38:07 is "display_name" ok? Apr 06 21:04:17 Where did you get display name from? Apr 06 21:04:52 I don't think it is correct. It does not appear here: http://grepcode.com/file/repository.grepcode.com/java/ext/com.google.android/android/5.1.1_r1/android/provider/Telephony.java#Telephony Apr 06 21:06:27 maybe display_name is from an older version Apr 06 21:07:36 cant recall where i get the keys body, address and display_name, everything works perfect except for the contact name Apr 06 21:16:53 changed display_name for contact_id like in http://grepcode.com/file/repository.grepcode.com/java/ext/com.google.android/android/5.1.1_r1/android/provider/Telephony.java#Telephony Apr 06 21:17:06 i get java.lang.IllegalStateException: Couldn't read row 0, col -1 from CursorWindow Apr 06 21:42:09 do android BufferedWriter & OutputStreamWriter work different than the java ones? Apr 06 21:42:23 meh, I'm so uncreative, I can't think of anything cool to do with opencv now that I have the basics figured out Apr 06 21:42:25 J11, no Apr 06 21:43:03 hi Apr 06 21:45:06 as I get some zero bytes then a 27 byte at the end of an array when verifying an OutputStream write call Apr 06 21:45:17 then you're doing it wrong Apr 06 21:49:46 pfn: thats the computer vision library right? Apr 06 21:49:53 yes Apr 06 21:49:58 radical Apr 06 21:52:16 i need change unlock screen from source android ... what i do need ? Apr 06 21:52:17 pfn: well it looks like it's writing the string I wanted, but in an array of 8192 bytes Apr 06 21:57:37 can anyone help me? Apr 06 22:06:14 Hi all, quick question regarding animations in a custom View. Im currently overriding onDraw for custom drawing and animating by using a Handler with a Runnable and calling it recursivly like so handler.postDelayed(runnable, 17) until my animation completes. My animations are short (200ms). At times it gets choppy. Using handler/runnable is probably not the best way to achieve this, what would be the best way? Apr 06 22:10:38 pfn i was thinking about giving opencv a spin too Apr 06 22:11:00 but not sure if i should use tensorflow instead, i wanted to make a lentil sorting robot Apr 06 22:11:13 separate lentils from rocks Apr 06 22:17:01 do it Apr 06 22:19:04 mostly, I'm just not bothering with opencv because I can't do reliable skin detection Apr 06 22:23:09 can I just ignore the 'Call requires API level' warnings for unit test code? Apr 06 22:52:23 you can ignore them all if you don't mind crashing on those api levels Apr 06 23:02:34 during testing Apr 06 23:08:16 god, these DT_SONAME warnings on android N preview are so annoying Apr 06 23:18:05 is it possible to check first on android if another app has already registered an intent filter for launching a specific activity from a URL handler? I want to check for a specific protocol but I don't want to override it if the phone can already handle it with a different app Apr 06 23:18:31 for example if I get someapp://whatever I want to handle it only if there is no other app capable of handling that url Apr 06 23:28:48 I'm trying to use a CertificatePinner to use a service running on my localhost (but not on the android emulator!). I keep getting a CertPathValidatorException and not a SSLPeerUnverifiedException Apr 06 23:29:16 i think this is because I'm doing this: builder.add("10.0.2.2", "sha1/BadPin"); -- which is suggested here: https://github.com/square/okhttp/blob/83090befcca69b44c257b96afb519ca66282ca63/okhttp/src/main/java/com/squareup/okhttp/CertificatePinner.java#L43 Apr 06 23:29:50 i suspect it's not working because I'm not using a real dns name and I'm just trying to connect to localhost. Am I right? How do I fix this? Apr 06 23:42:17 grekkos, no Apr 06 23:46:02 hmm... i am totally out of ideas on this one Apr 07 00:21:48 I hate how the default java inspections recommend making everything private Apr 07 00:21:58 but then again, I guess the typical mode of developers is to embrace side-effects Apr 07 00:23:49 pfn: hold on, isn't making everything private *good* if you want to limit side effects? :P Apr 07 00:23:55 everything within reason anyways Apr 07 00:24:11 that's the point, people write too many side-effects, so it should be private Apr 07 00:24:19 but for pure functions, there's no reason to make them private Apr 07 00:24:33 I only want to make stuff private when I know there are side-effects I don't want to expose Apr 07 00:24:33 how about, not cluttering up your api with internals that are worthless to other people? Apr 07 00:24:47 that part doesn't really matter Apr 07 00:24:51 I want to be able to type instanceOfYourObject. and then have my IDE's completion options be things that aren't worthless Apr 07 00:24:51 is there not a good way to implement a struct in java? Apr 07 00:24:57 I make all the members public Apr 07 00:24:59 RustyShackleford, there is not Apr 07 00:25:01 but I guess you don't care about whether your code is a friggin pain for other people to ever deal with Apr 07 00:25:20 lizzie, having pure functions visible is never a pain to deal with Apr 07 00:25:27 whats the point of making setters? I'll trust other programmers to not be an idiot over all that boilerplate Apr 07 00:25:28 encapsulation isn't just about side effects, it's about presenting a sensible API to the outside world Apr 07 00:25:35 encapsulation is a joke Apr 07 00:25:45 it's about limiting the presentation of an object so you're not wasting everyone else's time and effort understanding your stupid internals Apr 07 00:25:50 it's what a good developer does Apr 07 00:25:59 no, it's what someone that buys into the java mantra does Apr 07 00:26:28 RustyShackleford: well if you have public simple getters and setters, and they're gonna stay simple, then yes it's stupid. if a data member should be publicly readable and writable it should just be public Apr 07 00:27:39 pfn: learning how to interact with a foreign api is enough work when it *is* well encapsulated. what you're espousing is just plain stupid Apr 07 00:27:51 so you claim Apr 07 00:27:53 it makes me think you've never had to work with any kind of major codebases outside little toy projects Apr 07 00:28:03 heh, make me laugh more Apr 07 00:28:13 if IDE autocomplete is how you develop, I name thee noob Apr 07 00:28:24 yeah, real men use nano Apr 07 00:29:19 and you miss the point, there are rarely ever any pure functions that aren't useful being public Apr 07 00:29:28 pure functions don't expose internal state Apr 07 00:29:44 I think you're under the mistaken impression that your code is more useful than it actually is :P Apr 07 00:29:56 yep, I write worthless code Apr 07 00:29:57 no one uses it Apr 07 00:30:05 keep thinking that Apr 07 00:30:13 anyways if you make a function that is actually broadly useful, by all means make it public Apr 07 00:30:42 * lizzie puts pfn on ignore and sips lemonade Apr 07 00:30:49 silly child Apr 07 00:30:59 one of those people that have nothing to contribute Apr 07 00:31:01 you’re both being silly Apr 07 00:31:31 s73v3r: yes I know. that went on a bit too long :P Apr 07 00:31:34 has anyone seen a CoordinatorLayout Behavior (with capital B) that follows the material spec on hiding bottom nav ? Apr 07 00:31:53 not hard to write one Apr 07 00:32:02 apparently I just buy into the java mantra, even though I write in scala Apr 07 00:32:05 on scroll, hide dependent view Apr 07 00:32:29 sure you do Apr 07 00:35:56 weird, why does leaving camera2 preview running for a while lead to sluggishness of my app, main thread just gets bogged down in dispatching for some reason, even though my callbacks go to a background handler Apr 07 00:42:18 huh popupmenu still doesn't show icons Apr 07 00:43:14 and my use of opencv has a jni memory leak, \o/ Apr 07 00:50:05 http://shop.oreilly.com/product/0636920031680.do Apr 07 00:50:19 "Make: Fire The Art and Science of Working with Propane" Apr 07 00:50:30 yeaah, thats what android needs ... more propane ! Apr 07 01:03:41 Is it possible to add Google Analytics tracking without dealing with Google Play Services? Apr 07 01:06:02 i think they are still separate ... Apr 07 01:06:09 I finished the "Set up your project" section of the Analytics for Android guide, and now I'm getting gradle and build errors Apr 07 01:08:06 The guide says: "Required: Latest versions of Android Studio and Google Play Services" Apr 07 01:09:05 just put the GA dependency in gradle Apr 07 01:10:30 oh, weird. Looks like that just works. Then why are there these extra steps for Play Services in the guide? Apr 07 01:10:37 But either way, thanks! Apr 07 01:11:01 Artichokeslam make sure you read the GA docs for what you have to do without play services though Apr 07 01:11:12 a few extra things needed in the manifest Apr 07 01:11:19 Say I have a mehtod that takes an object as a param, can I unit test that one method by passing it a dummy object that I create? Apr 07 01:11:55 g00s Oh yeah, i saw that part. Thanks for the reminder Apr 07 01:12:27 there hasn't been a play services update in a loong time, wonder whats going on there Apr 07 01:13:09 well i notice i have GMS 8.7.0 Apr 07 01:13:22 and i'm usually the last one on the planet to get GMS so ... Apr 07 01:13:31 maybe announcement soon Apr 07 01:13:37 g00s: did my Q make any sense Apr 07 01:13:47 I'm using play-services-ads and play-services-analytics 8.4.0 Apr 07 01:14:30 drose379 Have you tried it yet? What you suggested is a common method of setting up a unit test (using a dummy object) Apr 07 01:14:44 No I really dont know where to begin with testing Artichokeslam Apr 07 01:14:51 Its been something I've wanted to learn for a while Apr 07 01:14:53 Artichokeslam oh, so then if you are using ads, the rest of GMS will be there and GA will fall back on the provided dispatching Apr 07 01:15:46 drose379 usual thing is make that method take an interface, production code gets one impl and test code provides another impl or mock Apr 07 01:16:07 Hmmm Apr 07 01:16:08 anyhow unit testing is a big topic, time to find some books Apr 07 01:16:21 Any reccomendations? Apr 07 01:16:46 i haven't read any in a while Apr 07 01:16:58 last one i read was xUnit test patterns, that was a long time ago :P Apr 07 01:17:08 Maybe I'll check out some youtube vids then Apr 07 01:17:12 But I definitely didn't set up anything like this google-services.json previously Apr 07 01:17:14 I'm sure theres some nice ones out there Apr 07 01:17:34 never heard of that file until I started getting errors from the Analytics guide Apr 07 01:19:00 I'm just going to add that fallback stuff to the manifest and hope for the best. Should be pretty easy to see if I'm getting hits or not Apr 07 01:19:58 yeah i have the fallback stuff Apr 07 01:21:54 do you stay on top of library updates? Apr 07 01:22:12 how quickly do you upgrade to new versions of your dependencies? Apr 07 01:22:34 It really depends on how frequently my team is updating the apps Apr 07 01:22:41 i use dynamic versions, on z (x.y.x) usually good enough Apr 07 01:22:44 If we don't have a project need to update, it could be months Apr 07 01:22:55 x.y.z rather Apr 07 01:23:06 i mean this is constantly being worked on Apr 07 01:23:07 I'm hesitant to use the -alpha versions that Android Studio prompts me with Apr 07 01:23:36 they're hesitant to upgrade versions Apr 07 01:23:44 because of new bugs Apr 07 01:24:09 I think we'd solve more bugs by tracking a newer version of support-v4 Apr 07 01:24:50 i usually use newest support libs, but those aren't updated often at all ... Apr 07 01:25:04 is there a way to tell which version? Apr 07 01:25:24 usually x.y.0 will come out and be a total clusterfuck, followed up by a few .1s and then quiet for a few quarters Apr 07 01:25:40 I don't even know. I was emailed a zip file on my first day which hhad all the jars we depend on Apr 07 01:25:43 Uggh... Apr 07 01:25:51 most jars don't list the version in the manifest Apr 07 01:26:09 i'm willing to bet its more than a year old Apr 07 01:26:32 lol ... emailed a zip ... Apr 07 01:26:39 retarded Apr 07 01:26:58 yeah that's scary Apr 07 01:27:00 I'm rewriting our gradle scripts and getting all of our dependencies in nexus Apr 07 01:27:17 making progress. pasting jars into libs/ is idiotic Apr 07 01:27:25 gradle can do this for you! Apr 07 01:29:15 yeah. but even in the old days of doing stuff with ant + jars in libs/ smart people would MD5 their jars and annotate the MD5 with the version Apr 07 01:29:54 some jars might have some information in their manifest file Apr 07 01:30:00 i'm trying to convice the architect that we should do this. He wants to make a big thing out of updating libraries Apr 07 01:30:04 thats hit or miss though Apr 07 01:30:12 but he doesn't even know which versions we're using in a lot of cases Apr 07 01:30:26 does the architect even code ? Apr 07 01:30:33 they didn't even bother to name it 1.0.2 or whatever Apr 07 01:30:50 he knows the ins and outs of the codebase, i'll give him that Apr 07 01:31:13 yeah the majority of them don't have that in the manifest, looked already Apr 07 01:32:22 why does openvpn automatically reconnect on reboot on samsung galaxy s7 while openvpn on samsung galaxy 5 prompts the user to allow openvpn to connect? Apr 07 01:32:57 eelstrebor ask openvpn guys Apr 07 01:33:11 wrong channel ;) Apr 07 01:33:21 how much qa/testing effort is devoted to a version upgrade? Apr 07 01:33:39 * eelstrebor didn't get an answer there - waited for 6 hours Apr 07 01:34:02 eelstrebor ask your dentist then, about as likely to get an answer Apr 07 01:34:06 i guess i'll trade in the s5 so i can spend more money for something else even though there's probably a way to make the app work properly - i had the same problem on an s4 also - works properly on an s7 Apr 07 01:34:06 3 weeks of devoted effort just for updating seems like overkill to me Apr 07 01:34:49 i'd upgrade at the beginning of a sprint, and just watch out for bugs in the next 12 weeks. you can always back out, worst case scenario Apr 07 01:36:42 RustyShackleford your employer sounds crazy :P Apr 07 01:36:53 like lots of PHBs running the show or something Apr 07 01:36:55 3 weeks testing just for library upgrades??? Apr 07 01:37:04 what is a PHB? Apr 07 01:37:14 maybe my dentist has the answer Apr 07 01:37:17 pointy hair boss from dilbert Apr 07 01:37:32 i would agree with you 100%. Gonna give it a shot since I might have the oppurtunity to look really smart Apr 07 01:38:04 yeah it's a lot like Dilbert Apr 07 01:38:43 RustyShackleford: offtopic. how long sprints do you have? Apr 07 01:39:13 vigilancer: 3 weeks Apr 07 01:39:41 so I guess when I said 12 weeks to watch out for bugs, I meant 9 weeks Apr 07 01:40:05 I don't really see what the big deal is about Agile. I guess i've never done it any other way Apr 07 01:40:08 wow. you can do alot in 3 week sprint Apr 07 01:40:36 what's a typical length? Apr 07 01:41:01 i've only worked here so I have no idea Apr 07 01:41:21 RustyShackleford: don't know if it's typical, mine 1 week. Apr 07 01:41:30 My current gig has 2 developers total: me and my boss. No sprints, minimal issue tracking, just coding the hell out of life. It's quite a good time. Apr 07 01:41:38 hi, Apr 07 01:42:01 our issue tracker, like everything else there, is terrible Apr 07 01:42:14 I have to task my hours in the issue tracker Apr 07 01:42:22 RustyShackleford: what's you using? Apr 07 01:42:32 Rally (it's okay) for user stories Apr 07 01:42:55 IBM Quality Center for defects, its terrible. And I need to have both open lots of times Apr 07 01:43:24 alguien me puede ayudar con un tema que tengo con un adapter, yo quiero obtener el valor de donde estoy pocisonado pero en lugar de eso obtengo algo como esto (android.dabase.sqlite@32e55f) Apr 07 01:44:03 RustyShackleford I do not envy you lol Apr 07 01:44:42 alguien me puede ayudar con un tema que tengo con un adapter, yo quiero obtener el valor de donde estoy pocisonado pero en lugar de eso obtengo algo como esto (android.dabase.sqlite@32e55f) Apr 07 01:45:04 someone can help me with an issue that I have with an adapter, I want to get the value of where I am pocisonado but instead get something like this (android.dabase.sqlite@32e55f) Apr 07 01:45:47 RustyShackleford: we using TFS, it feels.. windowish. slow too Apr 07 01:46:29 someone can help me with an issue that I have with an adapter, I want to get the value of where I am pocisonado but instead get something like this (android.dabase.sqlite@32e55f) Apr 07 01:46:57 RustyShackleford: I'm wondering, what happens when you miss estimates? Apr 07 01:47:06 you get beheaded Apr 07 01:47:26 I dunno it happens. Depends on the reasoning Apr 07 01:48:07 we had some stories last sprint that weren't done at all. Web services were not complete yet Apr 07 01:48:53 hi ... help me ? Apr 07 01:49:19 Orishi: pastebin some code, maybe someone will pick up your question Apr 07 01:50:00 thansk, the code is: public void onItemClick(AdapterView adapter,View arg1,int position,long arg3){ String item = adapter.getItemAtPosition(position).toString(); Toast.makeText(this,item,Toast.LENGTH_LONG).show(); } Apr 07 01:50:42 RustyShackleford: do you have to explain to some random manager that 'estimates are just.. estimates u know'? or it's more like 'shit happens, moving on' Apr 07 01:50:50 sorry, this the code: http://pastebin.com/SK34hJMp Apr 07 01:51:19 Orishi: your items do not implement .toString() Apr 07 01:51:28 vigilancer: yeah I was in a meeting that felt like I was in the principals office Apr 07 01:52:38 From this snippet of me making a request using retrofit, are any red flags raised about how im going about things? Apr 07 01:52:41 http://pastie.org/private/eage7vs0syl7mkrfkgdmg Apr 07 01:52:54 got a little attitude even though its entirely out of our control. I dunno it wasn't too bad. None of those people are my manager so they can fuck off :p Apr 07 01:52:59 Vigilancer: I do not understand, could you explain me a bit better? Apr 07 01:53:59 Orishi: well toString() is not showing what you expect Apr 07 01:54:09 you need to write your own custom one Apr 07 01:54:34 Orishi: getItemAtPosition(p) returns some item. Class of that item have to have overriden toString method Apr 07 01:54:56 g00s: did you see my paste by any chance? Apr 07 01:57:18 drose379: yeah, use Rx ;-P Apr 07 01:57:35 Ok but lets say im not Apr 07 01:57:45 but my code is this method, no? Apr 07 01:57:53 vigilancer:but my code is this method, no? Apr 07 01:58:18 drose379: than imo it's good idea return exception, not empty response Apr 07 01:58:41 How can I do that with the eventbus though Apr 07 01:58:53 My activity is only listening for that one class response Apr 07 01:59:05 Unless I declare the method as throwing X, and call it in a try/catch Apr 07 01:59:14 Orishi: http://stackoverflow.com/questions/3615721/how-to-use-the-tostring-method-in-java Apr 07 02:01:23 vigilancer: thanks, I see and how I can get the value of this adapter Apr 07 02:01:57 I actually kinda like wrapping the call in a try catch and throwing an exception on error vigilancer Apr 07 02:01:59 hmm Apr 07 02:02:08 drose379: don't use eventbus then :) I'm not. It makes you feel too powerfull with no reason. One should not have abilities, it'll complicate things in future Apr 07 02:02:43 I am switching from passing a callback into each method call to using EventBus Apr 07 02:02:47 And I dont think im gonna look back now Apr 07 02:03:15 I'm using eventbus but I might rewrite it with callbacks Apr 07 02:03:26 drose379: if you looking for new direction Rx is definetly is the way to go Apr 07 02:03:34 Whats the benefit Apr 07 02:03:41 if I can find a clean way to do it Apr 07 02:03:54 callbacks can get so messy Apr 07 02:05:14 vigilancer: whats the benefits of rx Apr 07 02:05:17 sorry if not almost understand I am I'm just learning Apr 07 02:05:29 I see and how I can get the value of this adapter Apr 07 02:06:05 drose379: if you want to get rid of callback hell, rx is your guy. eventbus will make things messy. wait and see. you already have to invent means to denote errors Apr 07 02:06:19 rx is awesome Apr 07 02:06:26 What _is_ it Apr 07 02:06:50 drose379 check out a video / tutorial Apr 07 02:06:55 its tough to explain, it doesn't a lot of stuff Apr 07 02:06:57 kinda hard to describe on irc Apr 07 02:07:00 does rather Apr 07 02:07:01 Sounds good Apr 07 02:07:14 Just search "Rx java" ? Apr 07 02:07:19 drose379 start with dan lew's 4 rxjava tuts Apr 07 02:07:20 or rx android Apr 07 02:07:21 rx android Apr 07 02:07:32 youtube has some good videos Apr 07 02:07:45 its a suprisingly good resource for coding Apr 07 02:08:08 Oh yes Apr 07 02:08:13 Just watched a nice talk today Apr 07 02:08:15 hmm, google opinion rewards is awesome, next to free money Apr 07 02:08:58 sorry if not almost understand I am I'm just learning, I see and how I can get the value of this adapter , this code: http://pastebin.com/SK34hJMp Apr 07 02:09:48 not available in my country :( Apr 07 02:12:47 Just learned how to use breakpoints and the debugger Apr 07 02:12:48 Loving it Apr 07 02:13:16 Been just logging everything out forever Apr 07 02:15:16 http://imgur.com/t5KOuRq reducing overdraw and smoothing the scroll Apr 07 02:15:56 previously i had a ribbon (rotated textview of 45°), this was really bad for perf despite such a little thing Apr 07 02:19:38 sorry if not almost understand I am I'm just learning, I see and how I can get the value of this adapter , this code: http://pastebin.com/SK34hJMp Apr 07 02:23:03 Orishi: pastebin full code Apr 07 02:26:48 Orishi: how pastebin how do you create adapter Apr 07 02:27:37 vigilancer: this full code of the Class http://pastebin.com/nxNcyXxc Apr 07 02:34:11 Orishi: you using SimpleCursorAdapter. so I guess adapter.getItemAtPosition(position) should return Cursor. then do not use .toString, but extract data from cursor Apr 07 02:35:44 vigilancer:yes, but if I take toString android-studio mistake puts me in line **** ENDING LOGGING AT Thu Apr 07 02:59:58 2016