**** BEGIN LOGGING AT Wed Mar 01 03:00:03 2017 Mar 01 03:08:27 when you make a new class, do you put it in its own file? Mar 01 03:09:07 Like, if I have a simple app to send an audio file, I just recorded, to a linux server on a tcp port, where do I put my "public class TcpClient {}" code? Mar 01 03:09:33 (I'm new to java and to android coding so I'm not sure how to properly organize these things) Mar 01 03:09:46 Usually a new file. Mar 01 03:09:55 like TcpClient.java ? Mar 01 03:09:58 Yes Mar 01 03:10:02 thanks Roughy :) Mar 01 03:10:03 You may also place it inside an existing class Mar 01 03:10:07 if it makes sense to do so Mar 01 03:10:52 When inside another class, it cannot be instantiated without an instance of the parent class, unless you make the new class static. Mar 01 03:12:22 I'll interject that _that_ is a rather advanced usage Mar 01 03:12:23 no it's probably good to be general Mar 01 03:12:28 For now, just make each class it's own file Mar 01 03:12:37 just to use for any other clients I might make Mar 01 03:13:09 The subclass thing will make sense eventually, just not right now Mar 01 03:13:35 It's kind of a "which hole does the golf club go into" problem Mar 01 03:13:46 I've not heard of that problem :) Mar 01 03:15:32 They have this code too: public class ConnectTask extends AsyncTask {} Mar 01 03:15:41 I have a knack for somewhat disturbing metaphors Mar 01 03:15:42 http://stackoverflow.com/questions/38162775/really-simple-tcp-client Mar 01 03:15:51 (first of two answers) Mar 01 03:15:56 Dagmar, lol :) Mar 01 03:16:08 The golf club goes in the hole it came out of in the golf club bag, but you won't know that until you've seen the bag, dig? Mar 01 03:16:18 I actually already read through the tutorial they based it on, but it was way more than I wanted Mar 01 03:16:25 By then it makes so much sense you wouldn't even think anything of it Mar 01 03:16:42 dagmar, I figured that was the idea you meant.. it's called a subclass? Mar 01 03:18:31 the public class ConnectTask extends AsyncTask -- is that within my public class MainActivity? Mar 01 03:21:05 I mean, how do you decide? Mar 01 03:21:22 ConnectTask needs to modify some variables of the parent task Mar 01 03:21:27 you decide whether it needs access to your other private vars and such? Mar 01 03:21:36 ah Mar 01 03:21:53 so either you need to either pass the parent class instant to it Mar 01 03:22:11 or declare it as a non-static subclass, so it has direct access to all teh variables of the parent class instance Mar 01 03:22:15 I see it modifies the mTcpClient variable, which is supposed to be in the main ui Mar 01 03:22:46 so fascinating Mar 01 03:22:58 s/instant/instance Mar 01 03:22:59 I've done straight C for decades :) Mar 01 03:23:02 nod Mar 01 03:23:18 my condolences Mar 01 03:24:41 heh Mar 01 03:25:01 new ConnectTask().execute(""); When they use this, they pass a single "" Mar 01 03:25:20 but ConnectTask extends AsyncTask {} Mar 01 03:25:41 what do String String TcpClient end up being set to? Mar 01 03:26:18 (I don't see an execute() method there at all.. must be something in AsyncTask) Mar 01 03:26:26 * jaggz looks that up Mar 01 03:27:04 ConnectTask extends AsyncTask Mar 01 03:27:22 the 3 types there correspond to params, progress, result Mar 01 03:27:24 (I don't understand generics fully still) Mar 01 03:28:44 Execute is how you run the task, so this will take one or more values of the type params Mar 01 03:28:53 Strings(s), in this case Mar 01 03:29:17 I don't see how you just say new ConnectTask().execute("") without those params Mar 01 03:29:40 I'd expect new ConnectTask(foo,bar,something) Mar 01 03:29:53 If you have a look at the declaration of ConnectTask Mar 01 03:30:12 you'll see that it has a few methods inside it, namely doInBackground and onProgressUpdate Mar 01 03:30:16 yeah Mar 01 03:30:50 you can also implement OnPostExecute Mar 01 03:31:02 yeah I saw that in android's AsyncTask docs Mar 01 03:31:21 These 3 correspond to the types provided in ConnectTask extends AsyncTask Mar 01 03:31:44 Params is the type that will be provided to doInBackground, and also what you have to provide when calling execute() Mar 01 03:31:52 How does AsyncTask differentiate one String from the other String? Mar 01 03:32:04 if they don't have unique names Mar 01 03:32:16 those are primitive types Mar 01 03:32:26 String, Float, Double, Integer etc Mar 01 03:32:45 yeah.. read that those could be used in the java generics page Mar 01 03:33:00 Note how the last one is TcpClient, meaning the result must provide an instance of class TcpClient Mar 01 03:33:32 hmmmm... Mar 01 03:33:55 getting an inkling of understanding (more not being a fault of yours of course) Mar 01 03:34:05 so they have their generic AsyncTask Mar 01 03:34:36 when we're extending it, we just use the types because.. we don't care about the names and aren't going to be using them? Mar 01 03:35:59 Looking at the definition of ConnectTask again, it passes the string parameter on to the OnProgressUpdate Mar 01 03:36:30 It runs the task with the string input HELLO Mar 01 03:36:53 this starts a TcpClient and has it do... stuff Mar 01 03:37:15 everytime the TcpClient receives a message, it calls OnProgressUpdate("HELLO") Mar 01 03:37:17 wait where's HELLO? Mar 01 03:37:26 I'm using that as an example of a String put Mar 01 03:37:32 *String input Mar 01 03:37:52 doInBackground(String... message) Mar 01 03:37:55 Changing the original to Mar 01 03:37:58 so it gets the first ? Mar 01 03:37:58 new ConnectTask().execute("HELLO"); Mar 01 03:38:17 then onProgressUpdate(String... values) takes the second, in order? Mar 01 03:38:36 (String... message) means you can pass any number of Strings to the method Mar 01 03:38:48 so on the method side, message is actually an array Mar 01 03:39:02 okay.. a java varargs type thing? Mar 01 03:39:08 yup Mar 01 03:39:16 I'm terrible at explaining Mar 01 03:39:24 give me a second and I'll try writing up a ... more structured explanation Mar 01 03:39:32 awwww Mar 01 03:39:34 thank you so much Mar 01 03:40:14 * jaggz feels bad for taking your time with his unclear questions and understanding Mar 01 03:40:49 (but, then again, I've sat in irc helping people for years so.. used to that end of things) Mar 01 03:48:50 Has anybody ever had issues with fragments inside a viewpager not respecting layout_marginBottom? Mar 01 03:53:00 jaggz: https://hastebin.com/vuwududiru.java Mar 01 03:56:12 err, small correction https://hastebin.com/gevipehepe.java Mar 01 03:58:41 i'm trying to do create a view similar to a bottom bar. it starts expanded, however i want to it to start in a collapsed state. i'm using animate().translate in onCreate(), but that doesn't seem to work. where/when should I do something like this/ Mar 01 04:04:35 Syzygy: Animating is different from actually moving Mar 01 04:04:48 Roughy, re Mar 01 04:05:09 actually, forget the animate(), i'm using setTranslationY() Mar 01 04:06:43 can I do this in onMeasure or will this be lead to unexpected results? Mar 01 04:07:19 also, if i do setTranslationY(500) twice, will it have moved 1000 from it's original spot or just 500? Mar 01 04:08:24 Only one way to find out Mar 01 04:09:31 500 Mar 01 04:10:05 I need a better source code viewer in Android :) Mar 01 04:10:23 (had to leave desktop and am viewing hastebin on my phone) Mar 01 04:10:33 which means since onMeasure does what I want and calling it several times does not move it away by several times, I can use onMeasure without issues >D Mar 01 04:11:32 SetTranslation sets the position relative to its layout position Mar 01 04:11:59 Presumably it doesn't work in onCreate() because it has not been layout yet, Mar 01 04:12:46 Roughy, i got it working by now. thanks for your help though. Mar 01 04:12:49 Might be better to do it in onLayout() though Mar 01 04:13:08 ¯\_(ツ)_/¯ Mar 01 04:13:14 i did it in onMeasure, partly because i'm using getMeasuredHeight() Mar 01 04:21:44 Hmm, so I just downloaded the Android studio and the NDK last week, and its seems that the SDK is version 25, and the NDK does not even have the option for android-25 (it ends at 24). I'm wondering if this inconsistency is was it causing the errors regardless of whether I use JDK 8 or JDK 7. Would I need to downgrade the SDK android version in order to work with the NDK? Mar 01 04:24:11 I don't recall there being anything version-specific about the ndk. Where does it stop at 24? Mar 01 04:25:12 "Google's SVP of hardware Rick Osterloh has announced the second version of the Pixel laptop will be the last of its kind. " huh Mar 01 04:25:26 guess we won't have to worry about android desktop apps :D Mar 01 04:26:32 Inside of home/Android/Sdk/ndk-bundle/platforms/ there are a bunch of folders for platform versions, and they only go up to "/android-24" Mar 01 04:27:36 But /home/Android/Sdk/platforms/ has a single folder called "/android-25" Mar 01 04:28:11 Ah, right you are Mar 01 04:28:41 I've been Google searching the errors that I've been getting, and all the results keep talking about things like having to downgrade to a lower java version and android versions being misaligned. Mar 01 04:28:51 But this is all a little above my head Mar 01 04:29:17 I'm just guessing here from what I see in my folders... Mar 01 04:29:35 But since I downloaded them just a few days ago, I don't see how they would be outdated. Mar 01 04:29:48 Indeed they are not Mar 01 04:29:54 So I guessed that one is out of synch with the other Mar 01 04:30:03 But could that be the source of the problem? Mar 01 04:30:13 I've been using the current NDK while targeting sdk 25, so I don't think that should be a problem Mar 01 04:30:37 CaptainBlackton are you still using ecere ? Mar 01 04:31:07 because everyone here assumes you are using AS likely Mar 01 04:32:36 Yes, ndk can usually target a lower api than the sdk without problems Mar 01 04:32:50 I have ndk's targeting donut and eclair Mar 01 04:36:20 Using Ecere is no different than any other app written in C or C++ using the NDK. Mar 01 04:36:58 The errors don't seem to be referencing anything in Ecere either. They seem to be compiler errors Mar 01 04:37:13 And what do these errors say? Mar 01 04:37:41 After switching to jdk 7, the error I get says: Exception in thread "main" java.lang.UnsupportedClassVersionError: com/android/dx/command/Main : Unsupported major.minor version 52.0 Mar 01 04:38:26 52 is java 8 Mar 01 04:39:46 Yes, so wouldn't that mean that it is looking for something that is in java 8 when I've switched back to java 7? Mar 01 04:40:32 roughy, thank you, again... been reading it over and over :) Mar 01 04:45:19 But when I still had java 8 installed, it gave this similar error: processing obj/release.linux.arm64/classes/./com/ecere/hello/hello.class... Mar 01 04:45:19 PARSE ERROR: Mar 01 04:45:19 unsupported class file version 52.0 Mar 01 04:49:40 how are you building this? Mar 01 05:04:15 CaptainBlackton have you tried the ecere bulletins ? Mar 01 05:42:27 hi Mar 01 05:43:21 i want to create the marker only on the streets/roads not on buildings in google maps,how can i do this? Mar 01 05:48:17 Hi, I need to know if the following is possible - sending data from my backend to my app without making the app make an api call. Mar 01 05:48:50 Umm... Probably? Mar 01 05:49:01 I know I can notifications and catch them and perform specific tasks but can't the user disable notifications? Mar 01 05:49:09 So long as you don't count recieving push notifications as an 'API call' Mar 01 05:49:17 big|bad|wolf: are you talking about the advanced system called "push"? Mar 01 05:49:45 notifications and push messaging are not the same thing Mar 01 05:50:09 The other option I've found is using firebase realtime database and creating a listener but I don't really need to store the data. Mar 01 05:50:13 push notifications are just given to your recieving class Mar 01 05:50:21 They're not the same thing as the Notifications you see on the top of the phone Mar 01 05:50:34 Ahhh so the user can't really stop that then? Mar 01 05:50:37 Nope Mar 01 05:50:48 Most of the time they're completely unaware of them in the first place Mar 01 05:50:53 Interesting Mar 01 05:50:57 They're just magic pixie dust as far as the user knows Mar 01 05:51:19 They're also kind of pointless unless they result in the app generating some kind of message for the user Mar 01 05:51:44 I think there is an option now for firebase push to have messages go straight to a notification if the app isn't running... Mar 01 05:52:16 Leeds: You should read up on them in more detail. It's not even as complex as you think. Mar 01 05:52:18 Dagmar: makes a lot of sense to push an app to update, so latest data is available immediately without having to load it when the user opens the app Mar 01 05:52:39 Push it is Mar 01 05:52:45 Thank you Dagmar and Leeds Mar 01 05:52:51 Leeds: Yeah but that's kind of a heavy-handed usage. Mar 01 05:53:25 Dagmar: sure, but there are cases where it makes sense Mar 01 05:54:01 I honestly can't think of any that wouldn't result in a lot of wasted sends Mar 01 05:54:39 If you push an update to a substantial amount of data, and the user never looks until a second one has come down, the first one was wasted bandwidth Mar 01 05:54:54 how about... traffic events (e.g. a crash) nearby - I don't need telling about it if I'm not driving, but I'd like it to be immediately available when I open maps Mar 01 05:55:28 Doesn't really work, either. The app would have to know which direction you're going, and it can just find out what accidents are in the way while it's looking up the route Mar 01 05:55:31 Like it does Mar 01 05:55:47 Doesn't matter if there's an accident three miles in the direction the user isn't going Mar 01 05:56:01 nope, I don't want to have to look up a route - just tell me what's going on near me Mar 01 05:56:04 anyway, meh Mar 01 05:56:09 ...and if you're talking about Nashville pretty much any morning, there's about ten wrecks every ten miles in every direction Mar 01 05:56:17 On fucking FLAT ground Mar 01 05:56:20 With no rain Mar 01 05:56:23 because idiots Mar 01 05:57:23 The delay involved in just polling for info like that on an as-needed basis is under a couple seconds Mar 01 05:58:24 But hey, caching problems are complex and annoying Mar 01 06:05:11 Hey guys, so what I was looking for was Firebase Cloud Messaging instead of Firebase Push Notifications? Mar 01 06:06:10 While talking android specific both should be able to do the same thing, because you can capture the push notification before generation the top pull down Notification Mar 01 06:07:05 But on iOS (I'm not sure about this) I think it only lets you trigger an action once the Notification is tapped on Mar 01 06:08:33 I'm a backend developer so sorry about the long ass questions Mar 01 06:09:47 basically with fcm you're running a service/listener that triggers once theres a notification, and on the client you can do whatever you want with that notification: internal, popup a push notification, design it etc Mar 01 06:17:15 i gets it now Mar 01 06:37:42 thepoosh Mar 01 06:37:45 buddy Mar 01 06:37:47 hi hi Mar 01 06:37:52 today is my first day Mar 01 06:37:56 in school Mar 01 06:38:01 woohoooo Mar 01 06:38:03 congrats Mar 01 06:38:10 you'd be a great teacher Mar 01 06:38:20 hope so Mar 01 06:38:20 just imagine everyone naked thepoosh Mar 01 06:38:34 i would rather not have erections while teaching Mar 01 06:39:47 thepoosh: i need u to test something, your QA might have missed it: facebook login, without any native facebook client (ie webview) with leakcanary or some other memory leak analyzer Mar 01 06:39:56 http://i.imgur.com/lDNRRLg.jpg Mar 01 06:40:21 it keeps leaking 5.2/5.4 kb, no matter which version of their shitty sdk i am using Mar 01 06:40:36 right after it returns to the app from that webview Mar 01 06:56:57 raoul11: 0_0 Mar 01 06:57:07 yes Mar 01 06:57:16 thepoosh http://stackoverflow.com/questions/32139576/few-memory-leaks-in-facebook-sdk Mar 01 06:57:27 i have the exact same leak in my canary /: Mar 01 06:57:36 tried about 5 diff facebook sdk versions Mar 01 06:57:55 the guy there said it was fixed in 4.2.0 Mar 01 06:58:36 wasnt Mar 01 06:58:41 another said 4.7.0 Mar 01 06:58:42 wasnt Mar 01 06:58:53 another said 4.10.0, guess what - wasnt Mar 01 06:59:16 facebook said it was fixed in 4.19.0 (latest), guess what - it still leaks Mar 01 07:01:37 I never understood why they use webview, why can't they do it using native components :/ Mar 01 07:01:59 looking into the code now Mar 01 07:03:17 the leak is totally outside the scope of the app Mar 01 07:04:44 astroduck, so you can experience how slow it is Mar 01 07:04:54 and apparently, how leaky it is Mar 01 07:05:23 might be a leak in the Android web client Mar 01 07:08:01 perhaps Mar 01 07:08:30 g2g thepoosh, lemme know what conclusions u get Mar 01 07:08:50 well, I am now following the rabbit hole of facebook login Mar 01 07:08:58 there is a FacebookActivity.java Mar 01 07:10:33 FacebookDialogFragment.java Mar 01 07:11:21 raoul11: https://github.com/facebook/facebook-android-sdk/blob/master/facebook/src/main/java/com/facebook/internal/FacebookDialogFragment.java#L75 Mar 01 07:14:04 defuq Mar 01 07:30:24 Hi all, how can you have system permission in development without signing your app with the platform key? Mar 01 08:45:11 Hello, I have a text view with wrap_content as the width but when text starts to go to a new line it leaves a gap on the right side and it seems it does not wrap. Any ideas? Mar 01 08:45:39 picture? Mar 01 08:45:46 s/picture/screenshot Mar 01 08:46:14 thepoosh ! Mar 01 08:46:18 A retention of 15% over 3 weeks is quite good right? Mar 01 09:02:57 g00s: hi Mar 01 09:03:00 what's up? Mar 01 09:03:05 hey thepoosh . new sdk update Mar 01 09:03:16 sdk? Mar 01 09:03:17 looks like the standalone android tool went away ... Mar 01 09:03:27 oh, android SDK Mar 01 09:03:30 thats what AS told me. i couldn't update it through the standalone Mar 01 09:03:39 sucks Mar 01 09:03:48 and also, sounds like an isolated issue Mar 01 09:03:52 maybe the S3 one Mar 01 09:04:12 i think this is normal. the standalone went away Mar 01 09:04:28 The android command is no longer available. Mar 01 09:04:28 For manual SDK and AVD management, please use Android Studio. Mar 01 09:04:29 For command-line tools, use tools/bin/sdkmanager and tools/bin/avdmanager Mar 01 09:04:29 I don't why force AS on everyone? Mar 01 09:04:59 so the GUI went away, the command line exists Mar 01 09:06:00 g00s, it's after your bedtime! Mar 01 09:06:09 going to bed Mar 01 09:06:19 hee ;p Mar 01 09:06:50 hey capella "Over 120 retired generals sign letter against Trump's defense spending plan" so trump is taking money from places like EPA and giving more to the DoD than what they asked for - brilliant Mar 01 09:07:19 I like it Mar 01 09:07:30 maga = make america grey again Mar 01 09:07:39 120 retired dem leaning Mar 01 09:07:56 well the pentagon said they needed X, not X + 120 b Mar 01 09:08:14 which is already like way too much Mar 01 09:08:15 cite? Mar 01 09:08:46 https://www.cbo.gov/sites/default/files/114th-congress-2015-2016/reports/51050-2016fydp.pdf Mar 01 09:09:06 x averaging ~$534b Mar 01 09:09:19 g00s 3,000 people I know say Obama should jump off a bridge Mar 01 09:09:22 so did he want to increase or decrese the budget for the spending plan? Mar 01 09:09:39 Syzygy increase it, beyond what they asked for Mar 01 09:09:40 heh, random analogy Mar 01 09:10:09 Part of the infrastructure spending package Mar 01 09:10:15 Syzygy so in order for trump to spend, he has to cut + cook the books pretending 4% growth Mar 01 09:10:31 bush spent way too much, thats how the tea party kinda got started Mar 01 09:10:46 We'll hit 4...European rate already waking up Mar 01 09:11:08 bama spent 6trillion Mar 01 09:11:35 so he proposed to increase spending, those retired (why do they matter) generals were against it, and now he still wants to spend that much but trying to finance it differently? did I understand that correctly? Mar 01 09:11:37 well that was to rejuvenate an economy wrecked by bush Mar 01 09:12:20 bama and his progressive spending policies pushed the through loose credit at hud g00s caused it Mar 01 09:12:36 he's already asked his economists to assume 4% growth and backfill the numbers Mar 01 09:12:55 well, don't expect cbo to help Mar 01 09:12:56 capella well, he handed Trump a 'decent' economy so it kinda worked, eh ? Mar 01 09:13:18 decent not great, like the middle class getting gutted still Mar 01 09:13:24 decent? meh, underreported unemployment Mar 01 09:13:27 I wonder if this will ruin the world economy again, or just the US economy. Mar 01 09:13:37 oh yeah those fake numbers, right ! Mar 01 09:13:45 it'll fix japan! Mar 01 09:13:58 Syzygy everything is connected, so impact will ripple Mar 01 09:14:00 no more negative interest rates Mar 01 09:14:02 japan is differently screwed from most other places Mar 01 09:14:39 Id guess the nuclear thing still hurts japan Mar 01 09:14:50 Syzygy especially if trade wars from protectionism Mar 01 09:14:52 as in, cancelation Mar 01 09:14:55 mostly, a lack of young people and a strong aversion to immigration Mar 01 09:15:11 very close population Mar 01 09:15:30 not closed Mar 01 09:15:51 great place for a holiday though :) Mar 01 09:17:15 why the hell did google put binaries in tools/ and tools/bin Mar 01 09:18:55 because easier is near. happy egg hunt. Mar 01 09:19:05 Hi guys! I'm using a mapview in my app. On the device it works fine, in the emulator i get a message that my app won't run without Google Play services, which are not supported by your device. Mar 01 09:19:25 So how can i test my location / maps based app in the emulator? Mar 01 09:19:39 replman you have to use an emu with Google API / play services Mar 01 09:19:58 hopefully its up to date, they still havent fixed that though Mar 01 09:20:17 man, almost 10 years and google can't figure out how to give us an emulator with up to date play services Mar 01 09:20:18 g00s: How to do that? Mar 01 09:20:37 "Dead cockroaches have different magnetic properties compared to their living counterparts, according to Tomasz Paterek from Nanyang Technical University in Singapore" Mar 01 09:20:45 go into the sdk manager and d/l one with play services ... Mar 01 09:20:51 then run that one Mar 01 09:21:18 the soul is magnetic, confirmed Mar 01 09:21:25 also, cockroaches have a soul, confirmed. Mar 01 09:21:39 that's why they don't stick to my refrigerator Mar 01 09:22:12 while alive they're attracted to it though. Mar 01 09:25:24 g00s: in the sdk manager i just see the different Android versions. Mar 01 09:32:04 capella don't eat any and get an MRI Mar 01 09:32:45 * capella mad cockroach disease Mar 01 09:34:07 thepoosh lol, sdkmanager is still fucking up the output Mar 01 09:34:11 system-images;a...gle_apis;x86_64 | 4 | Google APIs Intel x86 Atom_64 ... Mar 01 09:34:30 i thought after 4 months they would have fixed it Mar 01 09:34:41 i think it was one of the first bugs filed, because you can't do shit with that Mar 01 09:35:51 g00s: i got it, thank you! Mar 01 09:50:58 Has anyone tried firebase realtime database? I can't put a multiline string inside it. It converts \n to space Mar 01 10:00:41 Morning, i recently updated my android SDK and i now seem to be missing my gradle wrapper. Mar 01 10:01:24 It's looking in AppData\Local\Android\sdk\tools\templates\gradle\wrapper the templates dir does not exist however Mar 01 10:07:18 If i want my app to run on devices with API >=22, shall i set compileSdkVersion=25,minSdkVersion=22,targetSdkVersion=25 or compileSdkVersion=25,minSdkVersion=22,targetSdkVersion=22? TargetSdkVersion is my problem... Mar 01 10:09:05 I believe the targetsdkversion barely matters. it should run regardless. Mar 01 10:09:50 I would like the compiler to tell me if i use something not available with api22... Mar 01 10:10:42 minSdk=22 Mar 01 10:10:45 that's what minSdkVersion is for. targetSdkVersion is for forwardcompability. Mar 01 10:10:47 rest should be newest sdk Mar 01 10:10:56 thank you! Mar 01 10:11:06 https://developer.android.com/guide/topics/manifest/uses-sdk-element.html here you can read up on that. Mar 01 11:55:28 Can service start just a one needed activity and after finish() return to the previous point of view? Mar 01 11:57:08 mine starts needed activity and after finish returning to previous point of view in this application or to activity which starts this service Mar 01 11:57:35 depends of previous point of view Mar 01 11:58:14 if the activity finishes, the screen returns to previous screen before activity started Mar 01 11:59:24 yeah, but if (for example) i was on home screen and my service has to start a needed activity - it start whole application and open needed activity in it Mar 01 11:59:59 after finish activity i return to previous screen, which is main activity of this application Mar 01 12:01:14 actually, it's not main, but this is not important, i think Mar 01 12:01:32 fiddle with intent flags like Intent.FLAG_ACTIVITY_NEW_TASK or Intent.FLAG_ACTIVITY_CLEAR_TASK Mar 01 12:01:58 yeah, i am using them Mar 01 12:03:15 by any chance .. can I not add a fingerprint login into my android app which transfers the info about fingerprint just scanned and verifies it with database within remote server.. Mar 01 12:03:24 for authentication purposes? Mar 01 12:08:06 Without NEW_TASK flag app wont be made Mar 01 12:17:09 Hey all.. Mar 01 12:17:48 I'm trying to figure out how to write a native activity application.. I'm missing something though. Mar 01 12:18:07 Anyone here ever use one of the samples? Mar 01 12:18:30 Ashiren, I solved it, thanks to you Mar 01 12:22:06 native activity? Mar 01 12:22:27 oh ndk Mar 01 12:23:44 Yeah.. but with no java component. Mar 01 12:23:49 a nativity Mar 01 12:24:54 10/10 would chuckle again Mar 01 12:26:09 I've followed the steps outlined on the samples (Like native plasma) but gradle hangs... I seem to remember that the SO has to be made before running the app. Mar 01 12:26:19 Some stuff in the terminal.. Mar 01 12:26:39 I was wondering if anyone knows the missing steps Mar 01 12:36:49 I'm trying to get my phones signal strength as accurately as possible, but using TelephonyManager/PhoneStateListener.onSignalStrengthsChanged(...) it seems like it's mostly fixed to steps of 30/40. (-90, -120, -160db) Any idea how I could get that more accurately? Mar 01 12:44:29 I'm trying to do something with android.net.wifi.WIFI_STATE_CHANGED, android.net.conn.CONNECTIVITY_CHANGE broadcast receivers, so that i receive a broadcast when wifi is turned off or if i walk out of wifi range. Both is working on most phones i tried it with, but on the Nexus 6, I can just walk out of range without a broadcast being received. Why would that not trigger? Mar 01 12:57:48 Anyone know how to handle Unsupported class: com.mediatek.common.telephony.IOnlySimSupport? Mar 01 12:59:05 what about the other classes in that package? Mar 01 12:59:30 and what is the IOnly... class look like Mar 01 13:03:21 hithere Mar 01 13:10:31 Looks like its from android intern and i can't get access Mar 01 13:13:25 That looks like internal framework stuff you kinda shouldn't touch as an app. Mar 01 13:44:05 :>>:><:><><<< Mar 01 13:44:12 sry wrong channel lol Mar 01 13:44:41 Syntax error: Expected ; Mar 01 13:52:46 ; Mar 01 13:53:06 why no one closes tags Mar 01 13:56:45 /> Mar 01 14:24:24 Does anyone know where I can find a good Auto Size Text View that will match width and wrap height to it's selected text size? Mar 01 14:24:58 everyone I try seems to leave the bounds of the TextView at what they were in the initial font Mar 01 14:34:10 Yesterday I received bugreport.txt with lot of rows. This bug report was generated on my device, and send through mail app to mail associated with my application. I would like to understand what happened from recieved report. I have found this https://source.android.com/source/read-bug-reports.html#scans Mar 01 14:34:48 but I do not truly understand why are they searching for BluetoothLeScanner Mar 01 14:35:28 it is just an example Mar 01 14:35:57 of course - but I would like to know where to start first when searching for what happened Mar 01 14:36:12 the name of the app that crashed? Mar 01 14:36:26 yes - that is what I did as a first thing Mar 01 14:36:29 but Mar 01 14:38:20 but my app is not listed among those in PID mappings - Mar 01 14:38:32 i got a dialogfragment with animations i set on onActivityCreated - after i close the screen with the power button, and reopen - the dialog entry is again showen with the animations Mar 01 14:38:44 anyidea why this happens? onActivityCreated is only called once Mar 01 14:40:12 Hi Mar 01 14:41:54 good afternoon Mar 01 14:53:45 ok - I have suspicion that bugreport.txt I am looking at was generated because of crash of another (not mine) application. Is there a way to find out because of what app that bugreport was generated? Mar 01 15:20:37 I have fabric integrated in my app - there is no crash recorded, but I have received bugreport for some unknown error. What is responsible for filling right email adress when user touches "report"? Mar 01 15:24:32 bolovanos, you shouldn't need user interaction to get a fabric report Mar 01 15:25:50 bolovanos, you can add the user's email to reports with Crashlytics.setUserEmail(String email) https://docs.fabric.io/android/crashlytics/enhanced-reports.html Mar 01 15:37:36 thebishop, I know that there is no need for interaction. I am just saying that I have send report (by touching report choice) from my device, where my app is installed, but I do not have any sing of error recorded in fabric. Mar 01 15:38:19 therefore I am asuming, that there were no error in my app and by some confusion bug report was send to my bug reporting email related to my app Mar 01 15:38:19 bolovanos, first check for crashlytics initialization output in your logcat Mar 01 15:38:25 instead of some other app Mar 01 15:39:31 thebishop, right now - for production version - there is no logging , for debug version - crashlytics is off... Mar 01 15:39:32 bolovanos, you're saying a crash report from another app reported to your fabric profile? I doubt this if so Mar 01 15:39:55 thebishop, yes that is what am I saying... Mar 01 15:41:02 thebishop, I was trying to find any sing of error from my app in that bugreport.txt, but there is no stack trace or something saying that my app crashed Mar 01 15:42:04 btw - is it normal to see all acounts of reporting device in bugreport.txt? Mar 01 15:42:31 rbb Mar 01 15:52:15 bolovanos, what path is bugreport.txt? Mar 01 16:01:30 thebishop, what do u mean? Mar 01 16:14:16 thebishop, it was part of bug report email I am talking about as an attachment Mar 01 16:22:14 thebishop, i don't understand half of what you said, you could have at least shown us your bug report Mar 01 16:22:32 oops i meant, bolovanos :)) Mar 01 16:24:18 or give you keys to my house... - I wrote previously that there are all accounts on that device - who knows what else is there 290k rows... Mar 01 16:25:19 I am trying to understand what generated that report, what is responsible for choosing email address to be reported to Mar 01 16:26:27 and what exactly have to be searched in that report in order to answer my questions Mar 01 16:28:34 -_- Mar 01 16:28:55 adq, lol Mar 01 16:42:59 ⊙_☉ Mar 01 17:00:08 what's up people? Mar 01 17:00:29 awfully quiet in here Mar 01 17:00:44 nobody's having an problems? Mar 01 17:02:45 Nothing more than the usual ennui caused by mixing XML layouts and pure java Mar 01 17:06:24 Anyone has an explanation why this doesn't work: https://code.google.com/p/android/issues/detail?id=235402 Mar 01 17:06:36 It used to work on support v4 25.0.1, but it is broken on all versions above. Mar 01 17:11:49 whoa, is this real? Mar 01 17:11:52 lemme produce this Mar 01 17:17:01 nvm, lost the will to produce this bug Mar 01 17:17:02 lol Mar 01 17:21:37 oh right, this is why I joined. Anybody used battery historian to significantly improve battery usage in their app?? Mar 01 17:25:14 no i use battery boss Mar 01 17:25:24 and batter optimizer pro Mar 01 17:25:36 and kingobattery Mar 01 17:25:38 sasser I meant to optimize your app's battery usage Mar 01 17:25:41 <_< Mar 01 17:25:44 and I sense sarcasm Mar 01 17:26:01 Most people would just use fewer clockcycles Mar 01 17:26:07 hey is digits down for anyone Mar 01 17:26:11 or AWS still having issues? Mar 01 17:26:32 Sean Spicer said it's working okay Mar 01 17:26:56 ...also, so does their dashboard so it's probably fine. Mar 01 17:27:11 Dagmar I ask mostly for background usage. Foreground is easier to know straight up, background, waking up the device every now and then, kinda hard to measure the impact without waiting or measuring Mar 01 17:27:29 Afzel: That's actually where it gets easier Mar 01 17:27:37 how so? Mar 01 17:27:47 don't do it?? :P Mar 01 17:28:01 Well, for one, there's seldom any _waking up_ the device unless there's a damn good reason, in which case you can't very well optimize that out Mar 01 17:28:23 ...and background processes don't typically involve a lot of UI so you can make them pretty damn spartan Mar 01 17:28:38 Dagmar that's what I told my boss, unfortunately they don't understand that you can't just wake up the device to log certain sensors every few minutes :( Mar 01 17:29:02 "let's not care about battery" they said :/ Mar 01 17:29:06 Then optimize your code and call it done Mar 01 17:29:24 that's why I'm asking if anybody else has had significant improvements :/ Mar 01 17:31:11 did yo guys get the update to sdk tools (only available from AS, not GUI). sdkmanager still has the bug where it prints out garbled lines Mar 01 17:31:34 g00s I see the update Mar 01 17:31:46 guess i'm not gonna do it lol Mar 01 17:32:01 i still see : Mar 01 17:32:03 system-images;a...gle_apis;x86_64 | 4 | Google APIs Intel x86 Atom_64 ... Mar 01 17:32:14 what is even sdk manager? Mar 01 17:32:16 use the new one Mar 01 17:32:17 i thought this was fixed Mar 01 17:32:28 Afzal that is the new one lol Mar 01 17:32:42 no garbled lines over here Mar 01 17:32:55 2.3 RC1 Mar 01 17:33:20 whoa Mar 01 17:33:26 what is this Android Emulator? Mar 01 17:33:31 in SDK tools Mar 01 17:34:00 looks like something new Mar 01 17:34:51 Afzal so you did "sdkamanager --list" and everything looks fine ? Mar 01 17:34:59 nvm just the emulator executable :( Mar 01 17:37:19 g00s ah I see it's truncated sort of Mar 01 17:37:36 didn't realize you were talking about the command line Mar 01 17:37:46 terminal** Mar 01 17:41:21 Using GSON I'm trying to serialize my POJO which has a field Map myMap, that serializes it so that each field in the map gets added top level to the JsonObject as a JsonField, rather than as another JsonObject which is the default. Mar 01 17:41:28 I have it working now with something like this http://stackoverflow.com/a/11272452/1229735 Mar 01 17:41:37 but I was wondering if there is a simpler way to do it Mar 01 17:42:12 Currently I have to add a type adapter for each object that contains this map Mar 01 17:42:29 I was hoping to be able to just make one Mar 01 17:42:48 JsonSerializer only allows you to return one JsonField :( Mar 01 17:43:15 afzal https://code.google.com/p/android/issues/detail?id=232620 Mar 01 17:43:18 yiati https://hastebin.com/setahexuze.java :D lol Mar 01 17:45:01 Afzal: for my case there are no predefined keys (only known at runtime), and I really only care about serializing to JSON, not so much about deserializing back to a POJO Mar 01 17:45:30 oh yiati fair, I was just kidding lol, the code I posted is a bad way to do it long term Mar 01 17:50:05 g00s opportunity for a PR to AOSP tools :P Mar 01 17:51:05 Afzal i'm confused because this was supposed to be fixed already Mar 01 17:51:11 oh Mar 01 17:51:15 i wonder if they released the wrong bits or something Mar 01 17:51:36 i wonder if they test anything Mar 01 17:52:12 lmao Mar 01 17:52:19 ellipsized, not garbled... Mar 01 17:52:35 sounds more like: ohh it's friday afternoon, YOLO let ship this alpha version as a stable one and let's skip the tests because we don't have them anyway, we will wait some random developers to provide everything if something went wrong (need more info) as test sample and test cases Mar 01 17:55:46 nah Mar 01 17:59:03 Yo, I have a Moto G2 2014. I want to know a bit more about CLOGO in /dev Mar 01 18:01:25 ARCT1CF0X: Try #android or #android-root if you need help with your device, this channel is for app dev Mar 01 18:02:35 SimonVT: Ah sorry for the confusion. Cheers! Mar 01 18:07:18 I figured it out.. I tihnk AWS is still down Mar 01 18:07:31 our lambda server is returning all sorts of null.. good times :/ Mar 01 18:07:38 yay for lack of redundancy Mar 01 18:07:46 so i have an issue where, on load, my recyclerview is scroling up, causing my content to appear to be underneath the toolbar Mar 01 18:10:58 It.. scrolls up? Mar 01 18:11:06 yeah Mar 01 18:11:23 What does that even mean Mar 01 18:11:38 RecyclerView doesn't randomly move somewhere you didn't put it Mar 01 18:11:44 exactly what it sounds like Mar 01 18:11:51 the content is scrolling up Mar 01 18:12:00 i am not touching the device at all Mar 01 18:13:38 there is a margin on the top of the recyclerview. that should make sure that the content starts after the toolbar Mar 01 18:13:55 but the top cell of the recyclerview seems to be scrolled up so it’s at the top of the screen Mar 01 18:16:01 If there's margin to push the RecyclerView below the Toolbar I don't see how the items could leave the RecyclerView and still be behind it Mar 01 18:19:21 interesting, so jetbrains hired a team to implement Kotlin Native Mar 01 18:19:57 native binaries, that could be cool ... if they have good runtime libs Mar 01 18:20:19 (which seems to me like more work than targetting llvm) Mar 01 18:24:12 i don’t either, but it is happening Mar 01 18:24:49 I doubt it Mar 01 18:26:04 what is this kotlin hype g00s ? Mar 01 18:26:29 raoul11 Kotlin team talks about it here https://discuss.kotlinlang.org/t/why-kotlin-native/2275 Mar 01 18:26:48 well various people from the kotlin team + community Mar 01 18:27:53 SimonVT: Doubt all you want, but I’m looking at it right now Mar 01 18:28:09 it scrolls the content up so it’s under the toolbar Mar 01 18:28:34 I'm sure it is. But if that happens, I doubt you actually layout the RecyclerView below the Toolbar Mar 01 18:29:26 then what do you think is happening Mar 01 18:29:28 i’m all ears Mar 01 18:29:30 You're probably doing all kinds of other things to try and work around something you did wrong, that somehow ends up resulting in the content scrolling behind the Toolbar Mar 01 18:29:36 But who knows, you haven't provided any information Mar 01 18:29:40 "it doesn't work" Mar 01 18:29:45 layout_below s73v3r ? Mar 01 18:29:52 no Mar 01 18:29:58 the toolbar is added separately Mar 01 18:30:13 the recyclerview has layout_marginTop set to the size of the toolbar Mar 01 18:30:21 it is scrolling up. Mar 01 18:30:28 put a margin top on the RV with ?attr/actionbarsize whatever Mar 01 18:30:34 i did that Mar 01 18:30:37 lol Mar 01 18:31:33 something is causing the recyclerview to scroll up on it’s own Mar 01 18:35:56 try putting it on framelayout and set the margintop on that Mar 01 18:36:25 Or just use LinearLayout and weight Mar 01 18:36:53 raoul11: done that too Mar 01 18:37:40 i having problems to run android studio, i am using Android Studio 2.2.3 and Ubuntu Linux Mar 01 18:37:43 error: Unable to detect adb version, adb output: /home/ramdom/Android/Sdk/platform-tools/adb: 3: /home/ramdom/Android/Sdk/platform-tools/adb: Syntax error: Unterminated quoted s Mar 01 18:39:00 How'd you install it? Mar 01 18:39:02 run /home/ramdom/Android/Sdk/platform-tools/adb version Mar 01 18:42:15 Android Debug Bridge version 1.0.32 Mar 01 18:43:15 my computer is 32 bits Mar 01 18:46:09 mhm Mar 01 18:46:16 and how did you install it Mar 01 18:46:39 download from Android Mar 01 18:46:52 quick google says it might be 32bit http://stackoverflow.com/questions/35503064/android-adb-can-not-start-on-ubuntu-14-04-lts-or-cannot-launch-avd-in-emulator Mar 01 18:48:48 trying to download https://dl-ssl.google.com/android/repository/platform-tools_r23.0.1-linux.zip but server doesn't respond Mar 01 18:53:49 Is this the only time you've tried to install Android Studio? Mar 01 18:54:05 It's my suspicion that there may be a path conflict between that one and some other pieces Mar 01 18:54:25 it happen on windows and linux Mar 01 18:54:27 Also there's actually a repo for this now Mar 01 18:56:10 hi. I just do style and a college did the coding. Can inflating a layout somehow gobble up my margins? I know nothing about draw cycles and alike Mar 01 18:56:24 Akuw: You're getting the _same_ exact error on WIn32? Mar 01 18:56:31 ~colleague Mar 01 18:56:44 anotheryou: yes Mar 01 18:57:00 can provide url Mar 01 18:57:20 Dagmar, oh... Anything I can do about it? I'd really love to have layout_weight for the children Mar 01 18:57:36 Dagmar, or can you hint me on a keyword about this so I can read a bit? Mar 01 18:57:39 Dagmar: please provide repository Mar 01 18:58:20 I'm pretty sure this is the one I used... https://paolorotolo.github.io/android-studio/ Mar 01 18:58:34 There's not really all that much _to_ it, it's just a bit cleaner because you get a desktop icon Mar 01 18:59:06 anotheryou: Most layoutparams will get trashed if you inflate and ignore the container and third paramter Mar 01 18:59:18 that's... sad Mar 01 18:59:22 Dagmar: that support 32 bits ? Mar 01 18:59:27 Akuw: Yeah Mar 01 18:59:42 Properly constructed repos will never install bins for hte wrong arch Mar 01 19:00:00 Akuw: but i'm extremely curious about how this same error is apparently happening with win32 Mar 01 19:00:23 wait, i will login on windows to check Mar 01 19:00:31 i'll be back Mar 01 19:00:36 It's sounding like maybe something interfered with the download of the package Mar 01 19:01:12 Dagmar, ah, you mean 2nd parameter? Maybe I just need to reference the parent instead of null than. I'll try Mar 01 19:01:55 Yes, if you're going to inflate something into another container, you really want to tell the inflater what the parent is as well as that you're linking it right away Mar 01 19:02:34 thank you Mar 01 19:03:02 The only exception that that I've found is with containers that take multiple, serial child elements like TableLayout with the multiple tableRows... that's a case where you'd want to tell it the parent container but use false for the third parameter because subsequent inflates just wind up overwriting the first one, so you have to use parent_continer.addView(inflatedStuff) Mar 01 19:03:19 ok Mar 01 19:03:37 adding things to this recyclerview is pushing it up Mar 01 19:03:45 why the hell would that do that? Mar 01 19:06:03 If you're invalidating the entire set it's probably not hanging onto the scroll position Mar 01 19:06:22 You can always try grabbing it before you do the invalidate and setting it again later Mar 01 19:07:53 but this is when the app starts up. nothing has scrolled yet Mar 01 19:09:52 how do i get that from the adapter Mar 01 19:30:44 Dagmar: installing from repo Mar 01 19:31:05 android-studio-ide-143.2790544-linux Mar 01 19:33:14 Mind you it's not going to do anything substantially different, but it will give you a nice tidy set of inventoried support files (icon, desktop file, and udev hooks) Mar 01 19:34:59 I have a problem, I cannot see errors in logcat anymore in Android Studio, it worked yesterday, how can I turn it on again? Mar 01 19:35:30 and I also cannot see the log from retrofit2 also ;( Mar 01 19:37:52 Akuw: Actually, I should amend that... The repo method should ensure what gets installed is the correct thing to install, but the SDK manager built into Android Studio follows it's own rules and keeps it's own inventory. It can also screw up. Mar 01 19:38:30 Akuw: Fixing the mess might be as simple as going into the standalone SDK manager and telling it to remove and then redownload/reinstall the platform tools Mar 01 19:38:44 ok Mar 01 19:38:53 lets see when finish to install Mar 01 19:44:08 zerorax: Why do you need to root it? Mar 01 19:44:10 @#$@# Mar 01 19:44:21 what version is that? Mar 01 19:50:05 can anyone here help me fix that? :) Mar 01 19:51:16 have you tried unplugging the device and plugging it in again? Mar 01 19:51:27 if so, I’d suggest killing ADB and restarting it Mar 01 19:52:19 yes I closed down the Emulator (BigNox) and restarted it again Mar 01 19:52:37 then try killing ADB and restarting it Mar 01 19:52:48 also, I have no idea what BigNox is Mar 01 19:52:48 okay Mar 01 19:52:55 have you tried with a device plugged in? Mar 01 19:53:07 Bignox is an android emulator Mar 01 19:53:19 no I didnt try that yet Mar 01 19:53:43 like, a 3rd party one? Mar 01 19:54:09 yes :) Mar 01 19:54:33 it worked yesterday, and I have used it for very long time now Mar 01 19:54:46 have you tried asking in their channel Mar 01 19:54:48 ? Mar 01 19:54:54 it might be a problem with that Mar 01 19:55:54 No not yet, but I will try restart my computer, and see if it helps Mar 01 20:06:29 What does it mean when my build.gradle has error "Neither path nor baseDir may be null or empty"? I don't see path or baseDir as variables in the file Mar 01 20:09:01 s73v3r: got it to work now, after the restart, thx for helping :) Mar 01 20:16:43 hello Mar 01 20:17:10 I've implemented an appwidgetprovider/broadcast receiver for a widget, so I've populated onUpdate method and I've added onReceive method Mar 01 20:17:26 unfortunately, visual changes in my widget are not displayed and I've not clues though I've placed some log call in logcat Mar 01 20:17:44 in particular, onUpdate log message ia not displayed anymore in logcat Mar 01 20:18:06 I removed the toolbar completely. Now the content is scrolling off screen Mar 01 20:18:39 why is adding items to the recyclerview scrolling it up Mar 01 20:22:36 I pastebin java code: http://pastebin.com/4mdpRCDR Mar 01 20:24:10 I've tried to use getResourceEntryName method, but it returns only view name string in logcat Mar 01 20:25:38 so, it's not useful for showing background and source, set dinamically at runtime Mar 01 20:25:43 Any ideas? Mar 01 20:26:28 *showing bacground and src Mar 01 20:26:34 *showing bacground and src names Mar 01 20:26:37 sorry Mar 01 20:32:57 cristian_c best approach is to use a background imageview Mar 01 20:35:58 s73v3r, negative margins? container is off screen? hierarchyviewer Mar 01 20:36:39 it’s as if the recycler was scrolled up Mar 01 20:37:35 i have the recycler’s top padding set to ?android:attr/actionBarSize Mar 01 20:37:36 sasser: exactly, which way' Mar 01 20:37:38 ? Mar 01 20:38:29 s73v3r you are going to have to start showing videos or something, it doesn't make sense Mar 01 20:38:45 i can’t. company app Mar 01 20:39:46 children of CoordinatorLayout can do funky shit sometimes Mar 01 20:39:53 no coordinator layou Mar 01 20:39:55 layout Mar 01 20:41:15 hi Mar 01 20:42:50 is implementation of aes encryption/decryption on android too hard for a school project? Mar 01 20:44:03 is that the project itself, or just a component of it? Mar 01 20:44:26 also, how well do you know java, how long do you have, etc etc Mar 01 20:44:46 actually its up to me, but I'm thinking of data transfer using bluetooth rfcomm Mar 01 20:44:48 s73v3r, screenshot the view outline in hierarchyviewer Mar 01 20:44:59 android already comes with AES Mar 01 20:45:05 do you mean to implement aes yourself Mar 01 20:45:11 or use it already Mar 01 20:45:14 so... depending on what exactly you want to do Mar 01 20:45:24 it may be just a few lines of code Mar 01 20:45:32 Ashiren: just using it Mar 01 20:46:02 mib8: If the project itself is not to implement encryption, then just use a library Mar 01 20:46:29 don't need to use a library, android already comes with AES Mar 01 20:47:14 pfn: what minimum sdk is requred for using it? Mar 01 20:47:21 1 Mar 01 20:47:34 pfn: really? didn't know that Mar 01 20:47:43 there are some examples (note the comments if they are appriopate) http://stackoverflow.com/questions/6788018/android-encryption-decryption-with-aes Mar 01 20:47:52 that's actually pretty awesome Mar 01 20:48:19 well probably the available algorhitms and modes depend on android version Mar 01 20:48:49 for a school project, you're only going to do ECB or CBC Mar 01 20:48:56 and that's been available since api1 Mar 01 20:49:57 Actually I can only make an android bluetooth rfcomm with no encryption at all, encryption is not necessary. But I'd like to learn the encryption myself Mar 01 20:50:00 more details https://developer.android.com/reference/javax/crypto/Cipher.html Mar 01 20:50:39 Ashiren: thanks Mar 01 20:51:06 is there anyway I can fake a device profile/manufacturer/id for testing ? either with emulator or real device Mar 01 20:51:29 i was considering AOSP as a possible solution Mar 01 20:53:35 does anybody know where the old legacy ApiDemos went? stuff with BluetoothChat example, etc Mar 01 20:53:48 get an older samples Mar 01 20:54:02 but where ? they dissapeared from the sdk manager Mar 01 20:55:16 Who else is seeing the issue where AndroidStudio is not showing horizontal scroll bars at the bottom of the editor panes? Mar 01 20:55:51 i think thats enabled in prefs Mar 01 20:56:10 g00s: if you need BluetoothChat, maybe I can find an old sample Mar 01 20:56:27 mib8 that was just one example, i'm wondering where it all went Mar 01 20:56:42 g00s: aah, ok, LOL Mar 01 20:56:44 but there were lots of goodies in ApiDemos Mar 01 20:56:54 canvas drawing stuff, etc Mar 01 20:57:13 any idea which preference? Mar 01 20:57:26 g00s: did you check the developer site too? Mar 01 20:57:44 it has some samples broken out individually Mar 01 20:57:51 but not ApiDemos Mar 01 20:58:25 its like an intern was tasked with updating all of this, and went back to school with stuff unfinished Mar 01 20:59:20 g00s, indeed, doesn't show up in my install list anymore, maybe under obsolete Mar 01 20:59:30 don't remember if I filtered out obsolete in my installer Mar 01 21:00:04 $ sbt android-install | grep samples Mar 01 21:00:06 $ Mar 01 21:01:36 comparatively: Title: [CVT-8233][Inconsistency] FTUE copy between iOS and Android is different Mar 01 21:01:39 Ticket ID: https://redmine.xevo.co.jp/issues/16817 Mar 01 21:01:42 Solution: fix quarter screen: use shorter text Mar 01 21:01:44 oops Mar 01 21:01:46 sbt android-install | grep platforms | wc -l Mar 01 21:01:46 14 Mar 01 21:02:39 Did you merge your shell window and your IRC window? Mar 01 21:03:01 just pasted from the wrong buffer Mar 01 21:03:08 meant to paste from screen buffer, not clipboard Mar 01 21:06:24 g00s: https://github.com/android/platform_development/tree/master/samples/ApiDemos Mar 01 21:07:09 g00s: is this what you're looking for? or you just need the old ApiDemos? Mar 01 21:07:46 has anyone had this problem ? build gives errors if not done right after a clean project Mar 01 21:08:14 I assume it has something to do with Dexguard. or my gradle building to a dir where i cant copy over files Mar 01 21:09:17 mib8 yeah thanks Mar 01 21:09:41 g00s: my pleasure Mar 01 21:11:02 dar10s, how about read the error Mar 01 21:11:04 and then decide Mar 01 21:11:14 there's lots of problems that can result in that sort of situation Mar 01 21:12:28 hi Mar 01 21:13:04 is there a doc about obtaining root access and running root programs in the developers.google.com? Mar 01 21:13:12 no Mar 01 21:13:54 root isunrelated to android development Mar 01 21:15:33 elichai2, nope; all the root stuff is basically a hack; i'd check the xda web forums as probably being the best resource. There's nothing official b/c there's no official way to root on a phone; it's a bad idea for lots of reasons, in general Mar 01 21:19:12 "how to su" https://su.chainfire.eu/ Mar 01 21:19:37 Used it to enable my app back in kitkat Mar 01 21:21:30 apps requiring root suck.... Mar 01 21:21:35 as does having to use such apps Mar 01 21:59:05 capella: pfn told your app sucks Mar 01 22:00:36 well, I've seen his irc alternative to yaaic, and I haven't switched so, shrugs Mar 01 22:00:47 heh, jk Mar 01 22:01:06 melatonina trying to start a fight 😆 Mar 01 22:01:26 :) Mar 01 22:19:13 what's the name of the style attr for the toolbar action items? (also same for actionbar) Mar 01 22:19:23 buttonBarStyle isn't doing what I want Mar 01 22:19:34 so I removed all padding/margins on the RV itself and the enclosing FrameLayout. I then put a ridiculous amount of padding in the layout of the first view. The RV appears to ignore this space Mar 01 22:19:43 pfn it's actionBarItemStyle or something Mar 01 22:21:00 not a public style.... Mar 01 22:21:45 hmm, mabe it's actionButtonStyle Mar 01 22:22:23 indeed, 'tis Mar 01 22:32:07 where do I enter the allowed redirect URIs for an Android application in the Google developers console? Mar 01 22:33:12 I get "Error: redirect_uri_mismatch" trying to authenticate with Google using Auth0's Lock activity. I read I have to "add the redirect URI" but I can't find the place. Mar 01 22:33:44 I also found example for web apps but the credential pages for web apps look different. Mar 01 22:34:05 Does anybody have experience in this field? Mar 01 22:34:41 I managed to add GitHub authentication pretty quickly but most people doesn't use GitHub. I'd like to add Google too Mar 01 22:36:11 Usually mobile apps do not have a redirect uri. Mar 01 22:36:20 Thats for web apps. Mar 01 22:37:09 Ok. So what does the google messages mean? I get it as soon as I attempt to login through google from my Android app Mar 01 22:37:52 What are you using for OAuth? Mar 01 22:38:37 I'm using Lock, the Auth0 login activity. It's working with username/password database and with GitHub Mar 01 22:39:27 You have Auth0 setup in your Google API console? Mar 01 22:41:31 I created a new project in google dev console and then created credentials for the application Mar 01 22:42:13 ok, https://auth0.com/docs/connections/social/google Mar 01 22:42:15 then I enabled Google in auth0, setting the "ID client" Mar 01 22:42:37 looks like the redirect URI would be https://YOUR_AUTH0_DOMAIN/login/callback Mar 01 22:43:06 I followed that document, actually Mar 01 22:43:50 I would check to make sure whats in the Google API console matches whats in Auth0 Mar 01 22:44:00 and I added that URI to the allowed callback URI in the Auth0 console Mar 01 22:44:06 might be a typo in the uri Mar 01 22:44:40 that URI must be added on Auth0, on Google or on both? Mar 01 22:45:01 both I would think. Mar 01 22:45:58 basically Auth0 sits in the middle between your mobile app and Google. The mobile app does not need the callback URI but Auth0 does. Mar 01 22:46:13 ok, then we are back to my original question. I don't see a place in the google console to add that URI, not for an Android app. And you told me that's only for web apps Mar 01 22:46:53 ok Mar 01 22:48:10 well, the URI is there in the "Allowed callback URLs" field Mar 01 22:48:12 Melatonina, In the Google console you need to select the "web app" not Android. Mar 01 22:48:30 It's not intuitive I know. Mar 01 22:57:02 oh Mar 01 22:57:10 no, it's not intuitive at all Mar 01 22:57:21 Thanks. I'll try that Mar 01 23:08:10 DLSteve_: Thank you very much! Mar 01 23:08:24 DLSteve_: it worked Mar 01 23:08:25 Get it to work? Mar 01 23:08:27 Nice Mar 01 23:09:42 DLSteve_: actually the https://auth0.com/docs/connections/social/google tutorial says that but I thought it was a mistake Mar 01 23:15:46 How do I enable internet on my Android Emulator via Android Studio? Mar 01 23:15:50 Seriously cannot find a solution online Mar 01 23:15:54 (I'm on Windows) Mar 01 23:16:36 I didn't need to enable anything Mar 01 23:17:10 the emulator sees the my local network and thus the internet just like my desktop and my VMWare virtual machine do Mar 01 23:17:20 :( Mar 01 23:28:02 Why would a ViewFlinger be flinging if the screen hasn’t been touched? Mar 01 23:45:33 DLSteve_: How do I identify an user authenticated with OAuth 2? Mar 01 23:46:18 Melatonina, As far as username/email? Mar 01 23:47:00 I have not used Auth0 so I'm not sure what attributes are available to return to the client. Mar 01 23:48:29 when the endpoints of my API are called I have access to a User.Identity property containing claims. That's all I have Mar 01 23:49:31 In theory, I should be able to tell "Ok, this is my user #4743812" by looking at them, no matter if the user logged in with google, facebook or something else Mar 01 23:49:52 I just can't see such an "id" Mar 01 23:52:07 Hi guys! What is the best and simplest way to implement swipe-to-dismiss\delete\archive feature in Gmail app style? Mar 01 23:52:36 the simplest? Probably look for a library Mar 01 23:55:23 s73v3r: I've tried to implement it by overriding onChildDraw() in ItemTouchHelper but I find it kinda boilerplate solution - to draw all the stuff programmatically... Mar 01 23:55:54 I also looked at this lib https://github.com/hudomju/android-swipe-to-dismiss-undo Mar 01 23:56:35 Melatonina, I would look in the Auth0 documentation. Any kind of user id would be in there. Mar 01 23:56:52 But it doesn't seem to be really popular even thoug it looks promising in demo gif Mar 01 23:57:30 I guess I have to change the "scope" of the authentication request Mar 01 23:58:01 https://github.com/pfn/keepshare/blob/master/src/main/scala/com/hanhuy/android/keepshare/BrowseActivity.scala#L373-L447 Mar 01 23:58:05 hmm, I did swipe to dismiss there... Mar 01 23:58:11 except I mixed all the logic together, ftw Mar 01 23:58:30 DLSteve_: it's here, in case you'll ever need it: https://auth0.com/docs/tokens/id-token#how-to-control-the-contents-of-an-id-token Mar 01 23:59:21 Melatonina, Nice, thanks. Mar 02 00:01:39 but it looks like something that could have been done in about 20 lines... Mar 02 00:01:45 android webview doesn't allow you to focus text fields if there is no click event, so stuff like this doesn't work: http://stackoverflow.com/questions/15247849/how-to-set-focus-to-first-text-input-in-a-bootstrap-modal-after-shown#15252413 Mar 02 00:01:51 is there any way to override this? Mar 02 00:09:33 In a typical app, if I log in using Facebook and the log in using Google, will that count as two different users? Mar 02 00:10:14 unless you do something on the server to connect the two Mar 02 00:12:54 you can try to compare some pieces of information, like email address Mar 02 00:13:00 it’s not foolproof Mar 02 00:16:10 ha! vs code gets minimap, i can delete atom now Mar 02 00:18:42 g00s: so you’re saying they’ve … extinguished… your need for atom? Mar 02 00:19:47 i was playing around with both, but mostly just use vs code these days. i think this was the last feature vs code was missing Mar 02 00:20:18 so you’ve… embraced it Mar 02 00:20:31 oh yeah, love it Mar 02 00:24:56 due to the minimap extension Mar 02 00:51:47 it seems like I can get animate().translationY(stuff).start() not to work. any idea what I can do to fix that? Mar 02 00:52:31 In Android Studio I have inspections turned on for "Declaration access can be weaker" and "Private member access between outer and inner classes" (to avoid creating synthetic accessor methods). I want to keep both on but they conflict. Mar 02 00:52:34 it works on the emulator, but not on my nexus 6 or galaxy s2 Mar 02 00:52:44 I can suppress the warnings with @SuppressWarnings("WeakerAccess") Mar 02 00:53:13 But I would rather use my own annotation... something like @Synthetic that automatically suppresses warnings about weaker access Mar 02 00:53:19 does anyone know if this is possible? Mar 02 00:54:56 Would be cool if annotations could extend from other annotations Mar 02 00:56:56 Looks like the android launcher uses an annotation named "Thunk" https://android.googlesource.com/platform/packages/apps/Launcher3/+/master/src/com/android/launcher3/util/Thunk.java Mar 02 00:57:10 But still wouldn't suppress warnings :| Mar 02 01:12:24 So my RV woes march on, but I think I’ve isolated the issue Mar 02 01:13:18 There is a cell that has a large image. However, in the layout, it’s just made as MatchWidth/WrapContent for width and height Mar 02 01:13:35 when the image comes from the network, the ImageView is made to be the proper size Mar 02 01:13:52 however, the recyclerview probably has made the measurement of the cell already Mar 02 01:14:16 in the layoutmanager’s infinite wisdom, it decides to grow in such a way that it pushes the content off the top of the screen Mar 02 01:14:34 So I have a custom view that's supposed to act similar to a bottom bar view, however animate().transitionY(200).start() does nothin. Except that this skill actually works on my emulator. Mar 02 01:14:47 https://gist.github.com/Syzygy2048/2feca99f76ef2e7d4dd32d842a35380a Mar 02 01:14:50 here's the code Mar 02 01:15:47 Again, on (at least) two devices it does nothing. Mar 02 01:16:03 but on the emulator it's working just fine. Mar 02 01:16:03 so, for a band aid fix, how do I instruct the recyclerview in which way to grow when cells change size? Mar 02 01:17:41 i believe you can define a maximum size for the elements. Mar 02 01:18:06 if your assumption is correct you might also be able to fix this using requestLayout. Mar 02 01:19:01 i don’t think a max size is appropriate for this. I would like to hear more about requestLayout Mar 02 01:20:33 https://developer.android.com/reference/android/view/View.html#requestLayout() Mar 02 01:25:19 will that cause the parent to do a layout pass as well? Mar 02 01:27:57 i do not think so Mar 02 01:28:00 but possibly. Mar 02 01:29:19 I’m putting in a placeholder imagve Mar 02 01:29:55 that might be the easy way to fix this Mar 02 01:30:57 just installed android studio using repository but always got 09:23:55 PM Unable to detect adb version, adb output: /home/ramdom/Android/Sdk/platform-tools/adb: 3: /home/ramdom/Android/Sdk/platform-tools/adb: Syntax error: Unterminated quoted string Mar 02 01:40:28 anybody here can help Mar 02 01:40:43 i am on ubuntu and i have 32bits computer Mar 02 01:43:44 s73v3r: feels like the way to "instruct the recyclerview which way to grow" is to instruct it to redraw and then focus on the child you want to have focused Mar 02 01:46:31 rager: problem is, I’m seeing this happen before the recyclerview is even displayed Mar 02 01:46:37 it comes on screen already scrolled Mar 02 01:47:12 A video is worth a thousand words per frame Mar 02 01:50:31 can’t Mar 02 01:50:34 company app Mar 02 01:55:05 Is it the imageview (holder) that goes off screen, or the image inside the imageview? Mar 02 01:55:17 it’s the cell above the one with the image view Mar 02 01:55:25 the imageview one is the 2nd item Mar 02 01:55:41 are the images all the same size? Mar 02 01:55:43 is there an app that will tell me the size of something in dips? Mar 02 01:56:17 this cell has one image, that is about the width of the screen, with a 16x9 (roughly) ratio Mar 02 01:56:25 http://angrytools.com/android/pixelcalc/ ? Mar 02 01:57:06 i was hoping something that would run on the device. Mar 02 01:57:23 otherwise i can get the size of the image in pixels, but i don’t know for this device how to turn that into dps Mar 02 01:59:17 s73v3r: you could get a "density checker" app Mar 02 01:59:21 and it'll get you at least part way there Mar 02 01:59:37 i had one on here, but i don’t remember what it was Mar 02 02:12:25 what is the most efficient to load say 50gb of data in android? Mar 02 02:12:38 i am wanting to be able to select different segments from it Mar 02 02:12:46 wether it be sql or xml, alternatives? Mar 02 02:13:07 im not wanting to parse rather select but idk if sql is appropriate Mar 02 02:13:14 where do you want to keep 50gb ?! Mar 02 02:13:20 sqlite Mar 02 02:13:28 50gb ? Mar 02 02:13:34 Define load? What type of data? How large chunks are you loading? Mar 02 02:14:28 well i have names with geographical, history, statitics, cordinates, etc and its quite bulky about 42gb Mar 02 02:14:36 needing to query these but sqlite seems bloaty Mar 02 02:15:29 seconding sqlite then Mar 02 02:16:44 is there a way to access sqlite without dropping the database? Mar 02 02:16:58 huh, why would you drop it Mar 02 02:36:38 sasser i'd say, 42gb is too much and you'll have to rethink the design of your app Mar 02 02:36:53 good chances anyhow, you go to install it and it fails (not enough space) Mar 02 02:37:25 don't even bother going down that route. you'll have to fetch the data you need Mar 02 02:39:04 not an option Mar 02 02:39:16 sasser i don't think you understand :) Mar 02 02:39:42 fallout is 30 gb and see no one complain Mar 02 02:39:44 lloll Mar 02 02:40:34 i doubt they d/l all the assets at once Mar 02 02:41:11 I imagine it's some custom specialized setup rather than a mainstream app Mar 02 02:41:37 (At least I hope god it is) Mar 02 02:42:49 and sqlite , to be opened, would need to be copied to apps private space. fallout's assets could be in the apk(s) Mar 02 02:44:48 eh screw it ill just play sc2 Mar 02 02:44:51 and throw away my life Mar 02 02:45:14 wise choice Mar 02 02:45:15 well, you'll get more accomplished that way :) Mar 02 02:45:27 lol Mar 02 02:45:46 i remember when i used to have a job, wife, and kids, then i played starcraft 2 Mar 02 02:48:22 I'm playing the Pixel/Daydream castle defense app I bought Mar 02 02:55:58 Does anyone know what the basis is for the filters on the Play Store with respect to restricting an app by carrier? Is there any basis for the carriers listed (e.g. some countries only have a small selection of mobile networks listed) **** ENDING LOGGING AT Thu Mar 02 03:00:01 2017