**** BEGIN LOGGING AT Mon Oct 24 02:59:57 2016 Oct 24 03:04:04 Ok, so, I discovered a problem fro mcouple of days ago, when I launch second activity (remote directory) it will show the files/folders just fine, but when I use onbackpressed and re open it, it will not load, I was wondering if someone can look at my code, and sorry for the messy code im just running around as a headless chicken trying ot figure it out. http://pastebin.com/whpZnF8S Oct 24 03:05:03 Its receiving the data (according to the log) but its just not populating in listview. Oct 24 03:05:32 exit Oct 24 03:05:36 whoops Oct 24 03:10:31 Demon_Jester: What's the first Activity's code? Oct 24 03:10:42 Demon_Jester: BTW, that code is bad in about 700 ways. Oct 24 03:10:50 It's a complete spaghetti mess. Oct 24 03:11:44 TacticalJoke, you know I did say it was messy. Also, I using intent to launch second activity. Oct 24 03:11:59 Demon_Jester: Yeah, but that's beyond messy. lol Oct 24 03:12:17 Starting new threads all over the place -- it's a recipe for disaster. Oct 24 03:13:24 TacticalJoke, you made your point, but is there anything you see why listview won't repopulate when i open it up second time? or no? Oct 24 03:13:39 I think I'd need to see the first Activity. Oct 24 03:14:06 The fact that your second Activity has public fields and a defined constructor makes me wonder how other classes are interacting with it. Oct 24 03:14:34 the only other class is global_stream, when I grab DOS/DIS etc.. Oct 24 03:14:54 The other Activity is another class. Oct 24 03:15:38 you mean the context menu that launches my activity? I have menu pop up with options when I click on my phone in listview from first activity Oct 24 03:15:51 I mean the first activity. Oct 24 03:16:26 TacticalJoke, I noticed value of my DataOutputstream changes whenever I click on my "user" idk if that is a factor Oct 24 03:18:50 TacticalJoke, with thread everywhere, I could just wrap thread around my intent, and get rid of all the threads in my remote_Dir class, and just add any other threads if I get "network on main thread" exception or whatever Oct 24 03:23:19 i've had intermittent recurring issues with an apk allegedly missing an activity class. its ruffled my feathers again so if anyone has any ideas it would be appreciated. see the paste http://pastebin.com/w6ZTyXE7 Oct 24 03:24:32 AlexBerdnikov: any luck? Oct 24 03:25:02 NOpe Oct 24 03:26:50 AlexBerdnikov: assuming you checked that their google play services is up-to-date? Oct 24 03:39:03 Demon_Jester: Why not post the other activity. Oct 24 03:40:56 TacticalJoke, I will go figure it out on my own, and butcher the code, usually thats what happens the other times I am in here, no one helps me, they're just smart asses (like you) and anyone else asks a question BAM 5-10 people already helping someone else. Oct 24 03:41:36 The point is that his code was an unmaintainable mess. He's never gonna solve problems with code like that. Oct 24 03:57:44 has anyone anserd my question yet Oct 24 03:59:09 if i pull the apk apart with apktool the class is defs there.. Oct 24 03:59:10 I don't even see it on my screen. Oct 24 04:01:50 hello all, i am playing about with a fragment and also sliding menus, and was wondering how i would go about using it i have got a simple app that demonstrates it, but my current app has a bit of other services in it like the use of media player, and reading stream data. i am hoping to add new features like about us page and more. the current fragment1.java is this http://pastebin.com/r3gYmeAh the main activity of the sliding menu is Oct 24 04:01:50 http://pastebin.com/iGiXKZ86 and the main activity of the app i have so far is http://pastebin.com/iJq80a45 would i just put what is in the main activiyty of mny current app in the fragment1. Oct 24 04:04:28 velus why don't you just try to put your contents of main activity into the fragment activity in fragment1? If it fails at least then you can ask a less open ended question. Oct 24 04:08:11 i dont want to add that and then brake the whole thing, but im thinking i can add it on a test app and see what happens Oct 24 04:09:14 velus: You should use version control (for many reasons). Then you can revert all your changes in a moment. Oct 24 04:10:19 "Be cautious when combining bottom navigation with tabs, as the combination may cause confusion when navigating an app. " .. one of the reasons why i like nav drawer better, NavDrawer + tabs = ok Oct 24 04:11:23 Programming without version control is like putting your arm in an alligator's mouth and letting one drop of sweat his the inside of its mouth. Oct 24 04:11:49 hit* Oct 24 04:12:20 velus: Try to roll with, not against, the alligator. Oct 24 04:13:34 The nested scrolling introduced in API 21 is kinda disappointing. If I consume the full pre-scroll (and I don't know anything else makes sense here), I also consume tiny fling gestures. :[ Oct 24 04:13:38 yeah i know but i have not fully set this pc properly and im doing it slowly but i want to get this app out quicker, is fragments then just tabs? Oct 24 04:13:40 Users need their tiny flings. Oct 24 04:14:19 velus: Doing any programming without version control is a mistake. But I won't say any more. Oct 24 04:15:10 yeah i know and will be sorting that out hopefully next week (my woirk schedule is hectic this week and wanted to do something before i have no sleep for the next week Oct 24 04:18:39 though i do technically have a form of version control though archaic i have usb's with the versions on them (in both apk and project files) Oct 24 04:18:54 velus: Haha. You should talk to shmooz. Oct 24 04:19:56 sangoma took over schmooze Oct 24 04:24:02 It's telling me my update is live in the Play store, but it's not showing on my laptop or devices. Is that typical? Oct 24 04:24:12 I'm still seeing the old version. Oct 24 04:37:27 hi Oct 24 04:37:46 when i create my apk pro guard has some problem Oct 24 04:37:47 http://pastebin.com/FhnVjwZy Oct 24 04:39:44 this is my pro guard http://pastebin.com/VK5pwk7h Oct 24 04:42:04 devuser: Are you referencing this proguard-rules.pro file in your build.gradle file? Oct 24 04:42:57 ehehe no.. sorry... Oct 24 04:46:04 i put proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro' and now gradle is building Oct 24 05:05:08 TacticalJoke, i have only single problem Oct 24 05:05:10 http://pastebin.com/4Ur60ju1 Oct 24 05:05:23 Warning:com.davemorrissey.labs.subscaleview.SubsamplingScaleImageView: can't find referenced method 'float sqrt(float)' in library class android.util.FloatMath Oct 24 05:05:47 it's work in debug Oct 24 05:06:34 Quite a few answers here: https://www.google.co.uk/search?q=can%27t+find+referenced+method+%27float+sqrt(float)%27 Oct 24 05:06:45 Do you run ProGuard for debug builds? Oct 24 05:28:56 can anyone here give documentation of creating a mvc architecture for consuming rest api Oct 24 05:33:33 Hi, I've an activity with a thread attached to it, does the thread remain working if the activity goes in the background? Oct 24 05:51:25 Hi, sorry about this question but how much space has the buffer read by logcat? Oct 24 06:24:44 guys, I have a Q Oct 24 06:24:51 I used this code in my app: Oct 24 06:24:58 https://github.com/android/platform_development/blob/master/samples/Support7Demos/src/com/example/android/supportv7/app/AppCompatPreferenceActivity.java Oct 24 06:25:09 What do I add in my app's license information? Oct 24 06:25:16 Android Open Source Project? Oct 24 06:25:34 and redirect it to source.android.com? Oct 24 06:33:58 anyone? Oct 24 06:45:14 Areeb: 'consult a lawyer', but yeah, I'd say something like "contains code from the Android Open Source Project at source.android.com" is probably ok Oct 24 06:49:13 Leeds: Thanks Oct 24 06:49:33 and I'm going to find a lawyer lol Oct 24 07:22:13 * capellaGoesBOO picks up a pumpkin, slices it into cubes, bakes and hands tacticalJoke a spiced pie Oct 24 08:25:35 Hi, if one of my application components require a permission, do I need to require this permission in my AndroidManifest.xml file if I want to start the component from the application itself? Oct 24 08:57:37 application component? Oct 24 08:57:41 piece of code you mean? Oct 24 08:58:44 Activity? Oct 24 08:59:00 heh, wasn't sure either Oct 24 08:59:17 capellaGoesBOO: yes, Activity for instance Oct 24 09:00:46 yea you have to have uses-permission entry Oct 24 09:00:50 and ask for the permission explicitly Oct 24 09:00:52 mmm, I'd have to Google, perms news to me 🤔 Oct 24 09:02:07 Odaym: ok, thanks Oct 24 09:02:20 ok, thanks Oct 24 09:04:54 perms new to you? Oct 24 09:05:06 oh boy when he reaches the runtime permissions Oct 24 09:08:34 the Android UI level specific implementation in Java is unfamiliar to me ashiren, perms in *nix aren't ☺️ Oct 24 09:24:44 I have an application with two activities, MainActivity and SecretActivity, I added to the SecretActivity the following attribute android:permission="android.permission.CAMERA, however I'm still able to start the activity from the MainActivity, any idea why? Oct 24 09:34:50 soulisson: your question is a non-sequitur Oct 24 09:38:21 soulisson: "My house has two doors, the front door and the back door. I hanged a pumpkin to the back door, however I'm still able to enter from the front door. Any idea why?" Oct 24 09:38:39 soulisson: that's how your question looks to me Oct 24 09:43:49 runtime perm grants SecretActivity camera access at point of useage, but mismatch with MainActivity won't block it triggering SecretActivity Oct 24 09:44:11 yes? Oct 24 09:46:54 Melatonina: My question was related to permissions and if permissions restrictions applied to the components that belong to the same application, to test it I wrote an application with two activities MainActivity and SecretActivity, I added to the SecretActivity's element in AndroidManifest.xml a permission restriction "", and I Oct 24 09:46:54 tried to start SecretActivity from MainActivity, I expected it to fail since my application doesn't the CAMERA permission Oct 24 10:13:03 soulisson: where you did find this android:permission attribute? Permissions are requested and granted for the whole Application, not for single Activities. Oct 24 10:13:35 Melatonina: you can set permission restrictions on activities Oct 24 10:14:06 soulisson: I can't google "android permission restriction" Oct 24 10:14:14 Ok, a sec Oct 24 10:15:06 Melatonina: https://developer.android.com/guide/topics/manifest/activity-element.html#prmsn Oct 24 10:18:46 soulisson: my understanding is that attributes has meaning only when you use an implicit intent. If an activity has android:permission="X" then if another application starts an activity with an (implicit) intent that is matched by that activity, if the calling application has not permission X that activity is not used to answer to that intent. Oct 24 10:19:42 Melatonina: ok, I'm testing this, I'm writing another app, to start the activity Oct 24 10:21:46 soulisson: moreover you can start an application even if it has not the permission required for it to work. It will crash only we you execute code that actually requires that permission. Oct 24 10:26:07 Melatonina: ok, I tried the "SecretActivity" activity from an another application with an explicit intent, if I don't require the CAMERA permission, I'm unable to start the activity Oct 24 10:30:22 soulisson: you are really becoming an Android security expert! Oct 24 10:30:40 soulisson: ...which is what you are paid for, after all. Oct 24 10:32:29 Melatonina: :), I'm in the learning process, there are some training available but my employer refuses to pay for trainings :) Oct 24 11:05:28 When shoudd fragments be removed? In onDestroy of the Activity? Oct 24 11:07:02 here's a nice caveat Oct 24 11:07:52 when inside a Fragment, request permissions through requestPermissions() method, not through ActivityCompat.requestPermissions because with the latter, your onRequestPermissionsResult will be caught by the activity and not by your own fragment Oct 24 11:15:20 That sounds logical tbh :) Oct 24 11:21:08 barq: you dont remove your own fragments really.. but if you want to I'd suggest you do it in onStop Oct 24 11:22:58 OK, so I can just get rid of any removing of fragments and let the OS take care of it? Oct 24 11:40:28 no, it's a caveat Oct 24 11:40:35 * Odaym complains Oct 24 13:30:47 I have an Activity with a bunch of tabs that are fragments and some of the fragments have subfragments. II want to move the business logic out of the Activities/Fragments. Would MVP or MVVM be the better approach? Oct 24 13:38:31 which OS is preferred for android development? Oct 24 13:38:36 linux/windows/macOS? Oct 24 13:39:42 the one you prefer Oct 24 13:41:15 HAXM is not supported under linux. would that be an issue? Oct 24 13:45:09 GenyMotion is a good substitute for the standard emulator when HAXM is not available Oct 24 13:45:20 Not sure if it's still offered for free though Oct 24 13:45:48 what emulator do you use Oct 24 13:48:38 The standard haxm enabled one, on OSX Oct 24 13:50:10 OS X :( Oct 24 13:50:19 I dont have macbook sad Oct 24 13:51:16 you don't need HAXM on linux Oct 24 13:51:17 https://developer.android.com/studio/run/emulator-acceleration.html#accel-check Oct 24 14:01:37 need help about dbflow, can i ask here? Oct 24 14:02:23 ?? Oct 24 14:04:48 I seem to not be able to find the API reference for Facebook's like button on their webpage. Can someone pinpoint me where? Oct 24 14:07:59 ? Oct 24 14:16:06 hi Oct 24 14:16:46 can I publish APK built with ADT to Google Play ? Oct 24 15:11:33 dumb question - are there (library|assets) to simplify grid-based layouts? Ideally, permitting resizing/re-layout-ing of various views based on window width through layout attributes [similar to responsive css grids; rather than via *w/ based layout files.] Oct 24 15:13:37 kbs: why should that be a dumb question? Oct 24 15:13:40 would Oct 24 15:15:33 kbs: don't underestimate yourself! Just because you are dumb doesn't mean every question you ask is dumb too! Oct 24 15:16:01 okay (I think :) Oct 24 15:16:19 :D Oct 24 15:16:22 Joking Oct 24 15:16:54 kbs: did you have a look at Android Arsenal? Oct 24 15:17:29 nope, thanks for pointer - poking around there... Oct 24 15:38:05 need help about dbflow, can i ask here? Oct 24 15:49:17 xan_IT: sure Oct 24 15:49:50 xan_IT: I never heard of anybody using it here but of course you can ask here about dbflow Oct 24 15:50:17 Melatonina it's not a good lib? Oct 24 15:50:29 Hey, where is the source for ConstraintLayout? Having no luck rummaging through git. Oct 24 15:50:39 xan_IT: I don't know. It's just that nobody ever mentioned it Oct 24 15:56:22 anyone know anything about https://github.com/Raizlabs/DBFlow/issues/1036 ? Oct 24 16:55:27 Is it possible to create a bluetooth input device for a dualshock 4? There's no driver for it on the S7 Edge, and I'd really like to get it working with it, but I'm not sure where to start Oct 24 17:00:38 umm Oct 24 17:00:48 ElectricFlux, shouldn't DS4 just work out of the box with Android? Oct 24 17:01:13 It should, but it seems like Samsung intentionally removed the functionality Oct 24 17:01:40 Others have also stated it doesn't work. What I'm wanting to know is if I can program either an input service or a driver to replace it Oct 24 17:02:02 You should just be able to reenable the module if you erm... build your own entire kernel from source Oct 24 17:02:17 Just about a terabyte of disk required to set up, no big deal. ;) Oct 24 17:02:26 Yeah that won't be trivial :/ Oct 24 17:03:02 Is it possible to even replace the kernel though? The bootloader is locked on my T-mobile variant. Oct 24 17:07:24 ElectricFlux: Largely that depends on how you intend to replace the kernel Oct 24 17:08:25 If it's possible, I can at least look into it (although it wouldn't be the most enjoyable route to take haha), but I wonder which module is used for the dualshock 4 then? Oct 24 17:08:58 why build a whole kenrel for just a module? why not build a missing module for said kernel version and load that without replacing entire kernel, etc Oct 24 17:09:07 because it's funny. Oct 24 17:09:25 Might as well have told him that eating the Taj Mahal is just a matter of taking things one bite at a time Oct 24 17:09:26 is there anything that blocks loading the missing module in the current kernel? Oct 24 17:10:22 wltjr: because a sensible vendor that ships picky bootloaders probably has enough sense to block loading of unsigned/untrusted kernel modules as well Oct 24 17:10:33 Dagmar: did in the past for tap, and tried to see if devices were missing hardware or drivers for mic input, the cross compile env was the more difficult aspect, unless you run into symbol missmatch etc Oct 24 17:10:35 wltjr: Because every last kernel module has a fair crack at direct hardware access Oct 24 17:10:46 Dagmar: if running rooted kernel should be possible Oct 24 17:10:57 *eyepinch* Oct 24 17:11:21 Dagmar: I haven't tried with samsungs but other devices in the past, though much has changed since Oct 24 17:11:22 I'm not going to be able to drink at PhreakNIC at this rate Oct 24 17:16:09 ElectricFlux1: So... what happened when you tried pairing the PS4 controller with your phone? Oct 24 17:17:25 It does pair, but it doesn't do anything beyond that Oct 24 17:17:49 Then you don't have a missing kernel module problem Oct 24 17:19:20 Are there any logs I could check to see if it's registering any input? On other devices I can at least control the homescreen, but here, not so much. Oct 24 17:20:39 Run some game that has third-party controller support Oct 24 17:21:09 I'll try that. Any suggestions? Oct 24 17:40:21 Right now I'm trying some emulators since I can't think of any games that don't use android input support. Oct 24 17:51:10 is it better to use the x86, x86_64, or ARM image when developing an app using the emulator to test it? Oct 24 17:51:29 (i don't have a particular target architecture in mind, so my only concern is emulation efficiency) Oct 24 18:00:13 diphtherial: x86 or x86_64 Oct 24 18:00:33 as emulator is virtual machine and it is better to use arch as the host Oct 24 18:00:39 unless you develop on arm machine ;o Oct 24 18:00:48 i should mention that i develop mostly on a mac Oct 24 18:01:09 mac is x86_64 isnt it Oct 24 18:01:10 (i assume this one is x86_64, let me check) Oct 24 18:01:13 believe so Oct 24 18:01:54 yeah, it's a core i7 Oct 24 18:18:15 I don't think there's a big diff between x86 and x86_64 Oct 24 18:18:22 but there is a huge diff between x86 and arm Oct 24 18:21:13 is there a low-impact cpu profiler for android? Oct 24 18:21:16 like a sampler Oct 24 18:22:06 there’s two of them built into Android studio Oct 24 18:22:32 hm, i can only find the method invocation thingy, which is very intrusive Oct 24 18:23:09 that’s one. then there’s traceview Oct 24 18:24:13 This should tell you about both of them: https://developer.android.com/studio/profile/index.html Oct 24 18:25:03 so there is no sampler? Oct 24 18:25:12 yes, there is Oct 24 18:25:20 i said there were two of them Oct 24 18:27:05 Method Trace is certainly not a sampler. and traceview looks more like a log viewer Oct 24 18:27:21 try it Oct 24 18:27:40 watch the videos on it, and then try using it Oct 24 18:31:30 okay, maybe im missing something - theres this one https://developer.android.com/studio/profile/am-methodtrace.html which is just a tracer and theres https://developer.android.com/studio/profile/traceview.html which is a different kind of tracer Oct 24 18:31:36 are you talking about a third one? Oct 24 18:32:26 if you open the Android Monitor tab in AS, you’ll see a cpu monitor. you can start it recording, stop it, and then see it’s output Oct 24 18:32:40 yes, that is a tracer Oct 24 18:32:42 not a sampler Oct 24 18:33:07 android device monitor has one that you can tell to sample Oct 24 18:35:16 missingno: noted, thanks Oct 24 18:35:55 s73v3r: brilliant, thank you! Oct 24 19:37:46 guys why do we need to put the URI matcher inside the static{} here https://developer.android.com/reference/android/content/UriMatcher.html Oct 24 19:37:51 I'm not making much progress trying to find out which driver is used for dualshock controllers (or controllers in general) if any Oct 24 19:41:55 so that it is done once, available at the beginning Oct 24 19:43:29 Do you happen to know Dagmar? Oct 24 19:43:53 he chats here sometimes Oct 24 19:44:45 I meant that to be more like a ping to him since I was talking to him earlier. I'm still kind of new to irc Oct 24 19:45:39 well you already hilighted him, if he doesnt respond probably hes AFK Oct 24 19:47:03 Ahh that makes sense Oct 24 19:48:00 I wish I knew how the drivers for the dualshock 4 worked or at least which one it is. I tried comparing modules between my s4 and my s7 edge to see what might be missing, but no dice Oct 24 19:48:11 i use irssi over ssh, so im 24/7 but mostly afk Oct 24 19:48:32 thanks Ashiren Oct 24 19:58:43 hey guys, I just published my app to the app store. Checking its store entry I see its not compatible with any of my devices Oct 24 19:58:56 I have a tablet running marshmallow and a phone running lollipop Oct 24 19:59:05 min version is 4,4 Oct 24 19:59:15 there a way to figure out what it is complaining about? Oct 24 20:00:59 xximjasonxx, you probably put something in the manifest excluding any device Oct 24 20:01:20 sometimes, it's because of a lib you're using and the manifest merger too, just inspect the final manifest of your signed apk Oct 24 20:02:15 adq: just found it, i think Oct 24 20:02:17 if it's only related to your devices, and not all devices, same story, additionally it could be your minsdk, some geographical restrictions, etc Oct 24 20:02:17 external storage Oct 24 20:02:25 do you have something like ? Oct 24 20:02:33 this works like white-list Oct 24 20:02:44 excluding everything else not mentioned Oct 24 20:02:50 does that theory sound sensible? Oct 24 20:02:58 is there any way to get a callback from a user app review with the score? like if you could relate ratings to some content view in the app? Oct 24 20:03:05 no Oct 24 20:03:21 maybe pastebin parts of the manifest Oct 24 20:03:24 you probably made a booboo Oct 24 20:03:36 and just in case, thebishop, it's forbidden to ask your user to put a 5 star reviews Oct 24 20:03:39 it's ok to ask for a review Oct 24 20:04:47 adq, yeah i didn't mean that. but ideally, i'd like to know if my "ask for review" prompt is actually bringing up the average in an anonymous way Oct 24 20:04:48 http://pastebin.com/tx4TFQgG Oct 24 20:05:43 fyi, i added the required="false" Oct 24 20:05:51 not in the version in the play store Oct 24 20:06:16 its not about permission Oct 24 20:06:20 thebishop, well you can at least track the fact they went to the store listing of your app, and externaly correlate that since you started to ask _gently_ and sometimes to review the app the ratings improved Oct 24 20:06:26 i dont see why wouldnt this work Oct 24 20:06:31 seems alright Oct 24 20:06:39 thebishop, if done right, it's almost 100% guaranteed anyway Oct 24 20:06:40 my theory is, my phone does not have exandable storage Oct 24 20:06:49 so, the permission to write to external storage Oct 24 20:06:56 would fail for my device Oct 24 20:06:58 adq, thanks yeah that's what i expected would be the best case. seems reasonable Oct 24 20:06:59 if its required Oct 24 20:07:29 no, thats alright Oct 24 20:07:42 even if device doesnt have sdcard, it mostly still have virtual external storage Oct 24 20:07:56 the would restrict it Oct 24 20:09:02 this SO is saying i should include the minSDKVersion Oct 24 20:09:22 retract that Oct 24 20:09:29 xximjasonxx, what does your apk details show in the dev console? Oct 24 20:10:08 adq: how can i check Oct 24 20:11:06 xximjasonxx, open your dev console, go to your app, go to apk, click your (latest?) apk v Oct 24 20:11:15 just below where it shows excluded devices Oct 24 20:11:19 it looks like: http://imgur.com/a/Gg8kz Oct 24 20:11:38 the one in this pic has 0 excluded devices Oct 24 20:13:57 http://screencast.com/t/DmRMIgJLSATg Oct 24 20:14:31 supported screen layouts are: small, normal, large, and xlarge Oct 24 20:14:48 hmm Oct 24 20:15:04 what are your unsupported devices? some x86 vm? Oct 24 20:15:18 because native platforms set to armeabi will exclude any x86 devices for example Oct 24 20:15:19 my device is unsupported - Motorola Droid Turbo Oct 24 20:15:59 which i know is arm Oct 24 20:16:14 yep, so it's not that. And your Motorola Droid Turbo device is running on API 19 or greater? Oct 24 20:16:28 5.1 Oct 24 20:16:59 ok, so it's probably one of your 6 features, otherwise i have no idea Oct 24 20:17:04 in my 2 features, i only have: Oct 24 20:17:08 android.hardware.FAKETOUCH Oct 24 20:17:08 android.hardware.MICROPHONE Oct 24 20:17:17 but it's related to the permission i used Oct 24 20:17:41 you must find what your device is not supporting which results in being excluded Oct 24 20:17:41 what is faketouch Oct 24 20:17:55 it would be nice if something would tell me why its being excluded :) Oct 24 20:18:50 i don't remember exactly faketouch, it's very old and probably historical to android touchscreen Oct 24 20:18:54 adq: my only other theory is, xlarge seems a bit low Oct 24 20:19:14 i think my phone, and most top end android phones are xxlarge, no? Oct 24 20:19:54 looks like any apk i pushed to the store got this faketouch feature Oct 24 20:20:05 yeah, i dont remember adding it, so i assumed Oct 24 20:20:22 i still think one of your features (your pic shows 6 in total) might be the culprit Oct 24 20:20:27 it was the only one I couldnt determine by looking Oct 24 20:21:11 does a serviceIntent close when the app does? Oct 24 20:21:24 an intent is just an object carrying some data Oct 24 20:21:55 but does it stop running when I close the app? Oct 24 20:22:01 adq: colleague cannot install to One + 3 Oct 24 20:22:04 xximjasonxx, good luck i don't know more but i'm sure you're not that far to find what is excluding your device, if you find it i would be curious to know what it was Oct 24 20:22:12 but can install to Moto G2 Oct 24 20:27:53 nug700: finishing an Activity does not stop a Service, just like finishing one Activity doesn't finish another. They are two different app components with separate lifecycles. Oct 24 20:32:14 does anyone know what drives the excluded devices list on the play console? Should I modify it? Oct 24 20:34:54 you probably shouldn’t modify it unless you’re feeling heat from people on that list Oct 24 20:36:23 that is what i figured. I am just utterly perplexed why i am getting these incompatiblilies Oct 24 20:36:29 Is there a class that controls how all apps render to the screen? Like, some way of controlling which parts of the screen are available to the system bars and other apps? Oct 24 20:37:30 no Oct 24 20:39:02 Hmm can I capture the currently displayed activity's screen and then re-render it with a fullscreen overlay? Oct 24 20:40:09 what is it you’re attempting to accomplish? what’s your end goal? Oct 24 20:40:14 and there is a fullscreen mode Oct 24 20:40:25 What is the value with a channel that you come to if you are not registered? Oct 24 20:40:31 where the system bars go off screen Oct 24 20:42:15 I'm trying to think of a way to run preexisting apps in cardboard Oct 24 20:42:23 In a cardboard viewer, I mean Oct 24 20:42:50 like, apps made to run on a regular touchscreen, now being run on a VR headset with no touch interface Oct 24 20:42:53 anli, it's just an additional wall useful for filtering lazy trolls who don't want to register, among other purposes Oct 24 20:43:17 but some channels don't need that feature because less trolling Oct 24 20:43:33 How is it a problem that a person is not registered? Oct 24 20:43:35 Ideally there would be a separate input like mouse or gamepad, but essentially yes Oct 24 20:44:01 anli, it's not Oct 24 20:44:24 anli: in some channels, it’s a problem that they’re not registered because then they can keep trolling Oct 24 20:44:55 Registered trolls could also be a treat to humanity Oct 24 20:44:57 ElectricFlux: that sounds about as good of an idea as putting regular Windows apps on an 8 inch touchscreen tablet. Which is to say, not very much Oct 24 20:44:59 threat Oct 24 20:45:06 but they’re easier to deal with Oct 24 20:45:08 not treat :) Oct 24 20:45:41 It's more for making it easier to go between vr and non-vr portions of apps. Like youtube, for example. It could also be used for watching movies and such Oct 24 20:45:47 Well, it is always an annoyance to me to be redirected to channel where I do not want to be. Oct 24 20:46:57 sure, it’s annoying. But the level of annoyance is less than the people in those channels believe allowing non-registered people in Oct 24 20:47:54 Then I really understand how annoying those trolls are Oct 24 20:49:27 think of it like the IT guys that maintain the mail server. If they’re doing what they’re supposed to be doing, you won’t notice anything at all Oct 24 20:50:33 And I would not get annoyed Oct 24 20:52:39 *sigh* Oct 24 20:52:42 this is perplexing Oct 24 21:04:43 * Alina-malina alina-malina Oct 24 21:05:56 Hey everyone, I'm having an issue with a WebView, I want to be able to go back in the history of the webview but the canGoBack() method always returns false. Oct 24 21:08:24 alina-malina Oct 24 21:09:40 I've just loaded google.com in the webview and the history starts to work. Oct 24 21:11:22 Does this mean the website itself is messing me up? Oct 24 21:11:36 could be Oct 24 21:11:39 try a few other websites Oct 24 21:12:48 and try your website in a regular, desktop browser Oct 24 21:14:24 The back functionality works in the desktop browser. Oct 24 21:15:29 And on the Android chrome browser. Oct 24 21:15:40 Oh I think I found the issue. Oct 24 21:16:10 I think the link I was clicking was actually showing an overlayed viewed which wasn't really a new page. Oct 24 21:18:03 Yeah, that's it. There just isn't any indication that the overlay is an overlay. It looks like a new page. My bad! Oct 24 21:18:33 it happens Oct 24 21:24:12 how do I check the body of the HTTP response to a Retrofit request? Oct 24 21:24:43 a member of an object is not being initialized correctly and I'd like to debug to see what's the cause Oct 24 21:27:18 Melatonina, response.body() in your onResponse callback Oct 24 21:27:39 response.body() is null Oct 24 21:27:55 well, no Oct 24 21:27:55 you could also set a verbose debug interceptor, so you see request being sent and their response in logcat Oct 24 21:28:13 response.body() is the object that is being initialized incorrectly Oct 24 21:28:19 if response is null, idk, you need to check if the request was successful too Oct 24 21:28:28 there is a raw body property that is null Oct 24 21:29:11 two properties are initialized correctly, the third is not Oct 24 21:29:11 is there any way to figure out why a device is not compatible with an app Oct 24 21:32:46 xximjasonxx: debugging Oct 24 21:33:21 adq: I'll look into this verbose debug interceptor thing. Thanks Oct 24 21:33:58 Melatonina, it's a must if you don't use a proxy or somethig to sniff what's getting in and out Oct 24 21:34:02 from the context of the google play store Oct 24 21:34:15 i mean, we have it up to 7,000 devices Oct 24 21:34:29 just cant figure out what is going on that is causing this app to not be compatible with most newer devices Oct 24 21:35:00 Melatonina, it's 3 lines to add the the httpclientbuilder: HttpLoggingInterceptor logging = new HttpLoggingInterceptor();...httpClientBuilder.addInterceptor(logging); Oct 24 21:38:35 Anyone have a clue why this error notification is popping up: http://prntscr.com/cyhqol Oct 24 21:40:43 clicking it goes to the file item_background_material.xml in an Android Studio/plugins/android/lib/layoutlib/.../drawables Oct 24 21:40:48 directory Oct 24 21:40:55 AS madness maybe Oct 24 21:41:21 I first saw it almost a week ago and it's persisted Oct 24 21:41:58 this is the contents of the file it links to: http://prntscr.com/cyhs7t Oct 24 21:42:31 what’s the actual error? Oct 24 21:43:15 anyone know a way to get the play store to tell you why an app is not compatible with a device? Oct 24 21:43:34 you’ve asked that same thing several times in the last few minutes Oct 24 21:43:39 if someone knew, they’d be telling you Oct 24 21:44:07 s73v3r: never hurts to ask - i am not watching this screen the whole time. For all i know, someone has entered who may know the answer Oct 24 21:44:23 it does, in fact, hurt to ask when you are constantly spamming the channel Oct 24 21:45:14 i dont think you will get many to believe that a single line post every 5-10 minutes constitutes spamming Oct 24 21:45:27 you’d be wront Oct 24 21:45:29 wrong Oct 24 21:48:21 s73v3r: It says URI not registered Oct 24 21:48:32 ¯\_(ツ)_/¯ Oct 24 22:04:11 hi - I'm trying to keep EditText from grabbing focus when a new viewing context is initialized by editing the manifest (see: http://stackoverflow.com/a/9733579/576436), and it works for views attached to activties and fragments, but dialogs aren't respecting it Oct 24 22:04:16 is there something I'm missing? Oct 24 22:23:59 adq: it's strange. I added the logger, following these instructions: https://futurestud.io/tutorials/retrofit-2-log-requests-and-responses Now logcat is strangely silent. There is no logging whatsoever. Zero. Oct 24 22:24:59 so, adq this is just bizarre Oct 24 22:25:12 all perms are removed except WriteExternalStorage, Internet, and AccessNetworkState Oct 24 22:25:18 and the highest i can get to is 7450 Oct 24 22:26:25 does anyone know of a way, to see why a particular device is not compatible with an app? This makes no sense, I removed all and except for those mentioned Oct 24 22:28:15 do you have an actual device that you’re worried about? If not, then ignore it Oct 24 22:28:17 guys, is it possible to start an application from Android Studio and receive zero messages in logcat? Oct 24 22:28:44 Melatonina: unplug and replug the device. Sometimes Logcat gets broke Oct 24 22:29:00 s73v3r: my clients, the devices we are testing on, and my own personal device Oct 24 22:29:09 it's android emulator. I restarted it and I restarted Android Studio too Oct 24 22:29:13 and they’re not showing up in the list? Oct 24 22:29:17 what are those devices Oct 24 22:29:31 Nexus 5x, OnePlus3, Galaxy S7, Droid Turbo Oct 24 22:29:47 and none of those can install the app? Oct 24 22:29:54 strangely older devices seem to be available Oct 24 22:29:58 correct Oct 24 22:30:09 Nexus 7 (2010) can, Nexus 7 (2013) cannot Oct 24 22:30:14 what error do you get when you try to install? Oct 24 22:30:35 and are any of them rooted/custom roms? Oct 24 22:30:39 no error. Not available in the store. When I forcefully include the device (we tried with the OnePlus3) the app functions without issue Oct 24 22:30:49 none, to my knowledge Oct 24 22:31:56 what happens when you go to the store page with one of those devices? Oct 24 22:32:55 i cant even find it in the store, when we go there with the URL from the console it says, your app is not compatible with any devices Oct 24 22:32:57 no reason given Oct 24 22:33:44 question, is it normal for en_us to NOT appear on the localizations? because i just noticed its not there, default is Oct 24 22:34:06 xximjasonxx, by the way, it's not a paid app which you try to buy with account associated on your (excluded) device? Oct 24 22:34:22 it won't allow the dev account to buy it Oct 24 22:34:47 adq: its not a paid app Oct 24 22:34:52 s73v3r: logcat was set to follow a "zombie" emulator instances. It's called as one of the emulator that is running but it has a DISCONNECTED label. Logcat was following that. I don't know where it comes from. Anyway I just had to select one of the running emulators from the dropdown menu Oct 24 22:34:59 ok then same as before, no clue Oct 24 22:35:30 What are your SDK numbers? Oct 24 22:35:46 adq: what about this: http://screencast.com/t/F8IqjVMnp2j Oct 24 22:35:55 note there is no en_us - is suspect this is covered by default Oct 24 22:36:01 min 19, target 23 Oct 24 22:36:12 do you have a max set? double check Oct 24 22:36:18 max set? Oct 24 22:36:25 max sdk Oct 24 22:36:27 it looks of for languages Oct 24 22:36:28 ohh sdk max, no we dont' Oct 24 22:36:36 ok* Oct 24 22:36:42 double check, it might be a typo Oct 24 22:37:10 Oct 24 22:40:02 hi Oct 24 22:44:48 AlecTaylor: hi Oct 24 22:45:12 Hi Oct 24 22:45:19 Been playing around with the new Haskell (GHC 8) Oct 24 22:45:34 i am going home Oct 24 22:45:50 AlecTaylor: can you do Android Development in Haskell? Oct 24 22:46:13 Apparently: https://wiki.haskell.org/Android Oct 24 22:46:19 >.< Oct 24 22:47:25 https://github.com/neurocyte/android-haskell-activity/blob/master/src/HaskellActivity.hs https://github.com/ajhc/demo-android-ndk/blob/master/native-activity/hs_src/Main.hs Oct 24 22:49:28 Hi guys. So I am loading dex dyanamically in my app. What can be major security concerns? Please shed some light. Oct 24 22:50:10 https://github.com/wavewave/haskell-android-example/blob/master/hs/HaskellActivity.hs Oct 24 22:50:19 ^Most recent one, only a year old Oct 24 22:50:23 cool Oct 24 23:00:37 https://techcrunch.com/2016/10/24/smartwatch-sales-are-tanking Oct 24 23:05:02 How do I transparently intercept calls to my server with mock responses? | http://stackoverflow.com/q/40033482 | angular/in-memory-web-api is the closest I found (but it's for web). Oct 24 23:05:51 try MockWebServer Oct 24 23:06:55 s73v3r: MockWebServer is only good for unit testing, I can't run my app with that fake server Oct 24 23:08:27 why not? Oct 24 23:11:47 s73v3r: You're talking about this, right? - https://github.com/square/okhttp/tree/master/mockwebserver Oct 24 23:13:16 varunest, running arbitrary code is always a security issue Oct 24 23:13:16 you can't really do android dev in haskell Oct 24 23:13:23 only a replacement for ndk stuff Oct 24 23:13:50 AlecTaylor: Sorry, I meant MockServer Oct 24 23:13:56 http://www.mock-server.com/ Oct 24 23:14:42 Ah right, yeah I referenced that one in my StackOverflow post. It's an interesting option Oct 24 23:16:53 s73v3r: Have you tried it in Android? Oct 24 23:17:25 yeah. i could talk to it, running on a computer. we had other complications that didn’t let us use it at the time Oct 24 23:20:35 Hmm, what was the issue? Oct 24 23:21:16 it was our requests and responses Oct 24 23:21:25 they were just too complex to reliably mock Oct 24 23:43:02 Hey guys, does anyone know if the Application is booted in the background after a play store update? Oct 24 23:43:04 i don’t believe it is. i’m not sure why it would be Oct 24 23:43:08 My server had a wrong database and thus was sending non-sense as answer. Unfortunately updating the database I fixed the problem but now I don't know what could cause the wrong behavior Oct 24 23:43:12 s73v3r: My thinking is that if the app is backgrounded, then it's shutdown, patch is applied, and then restarted Oct 24 23:43:13 Affian what patch ? Oct 24 23:43:25 g00s: When the play store updates your app Oct 24 23:43:43 oh! sorry thought you meant play services Oct 24 23:43:49 I'm seeing a huge spike in installs in my analytics suite after the update that added it, about 4 times higher than app opens. This makes sense to me but some people are paranoid about the analytics being broken Oct 24 23:45:39 installs == app booted for the first time after the update Oct 24 23:55:52 s73v3r: That's not good, you should fix that complexity issue! Oct 24 23:56:02 out of my hands Oct 25 00:04:16 looking for good books on testing Oct 25 00:04:28 "How Google Tests Software" .. i'll skip that one Oct 25 00:05:06 this could be interesting https://www.amazon.com/Developer-Testing-Building-Addison-Wesley-Signature/dp/0134291069 Oct 25 00:05:45 actually, the google one isn’t bad Oct 25 00:05:55 aside from android, they’re decent at testing Oct 25 00:05:58 s73v3r you read it ? Oct 25 00:06:02 part of it Oct 25 00:06:31 rockynook has a bunch of testing books, but they look like they are for some certification Oct 25 00:07:14 no reviews on that one yet, hmm. the cohn series is usually pretty good though Oct 25 00:13:05 hi guys Oct 25 00:15:37 (and girls) Oct 25 00:20:01 Hello, real person who's totally not a robot. Oct 25 00:28:16 g00s: Well there's always "The art of software testing" by Glenford J. Myers. Oct 25 00:28:16 Which is "THE" book Oct 25 00:28:16 and Growing Object Oriented Software Guided By Tests by Sandi Metz Oct 25 00:28:16 many android application are just ugly Oct 25 00:28:17 be more specific Oct 25 00:28:17 no wonder they spent so much time defining Material Design Oct 25 00:28:17 ugly code? ugly aestetics? ugly UI? Oct 25 00:28:17 ugly aestetics Oct 25 00:28:17 You, gee, ell, why. They ain't got no alibi. Oct 25 00:28:17 And I sincerely hope I find a business model for my app that doesn't require ads or stuff like that Oct 25 00:29:21 what are the other models you’re looking at? Oct 25 00:29:32 you're damn right Oct 25 00:29:32 haha Oct 25 00:30:00 paid subscription or funding by some institution Oct 25 00:30:08 don't know at this point Oct 25 00:30:16 g00s: fwiw, not exactly testing per-se, but of late I'm beginning to become convinced that static analysis (decent lint/checkers) catch a category of issues that's orthogonal to testing, but improves code quality Oct 25 00:30:18 too early Oct 25 00:42:00 Melatonina you can totally make it so Oct 25 00:42:00 the app i'm building is being paid by the university i work in Oct 25 00:42:00 so, it's a safe round environment, but anyways it's cool because i'm learning in the whole process Oct 25 00:46:06 Should I use getCacheDir() or getExternalCacheDir()? I should store the data that I'm downloading before moving it to the final location Oct 25 00:46:36 data is around 10MB big Oct 25 00:47:07 I read somewhere I should limit the usage of the internal cache directory to under 1MB Oct 25 00:47:24 Is that true? Oct 25 00:49:01 Melatonina: The documentation talks about the 1MB thing: https://developer.android.com/reference/android/content/Context.html#getCacheDir() Oct 25 00:49:24 Yeah, it must have been a excerpt from that page. Oct 25 00:50:00 Then I go for the external cache directory Oct 25 00:51:25 hexagonSun_: thanks for the encouragement Oct 25 01:01:53 Can I use File.renameTo() to move the temporary file (on external storage) to the final location (the database directory) Oct 25 01:01:54 ? Oct 25 01:02:25 Should I use a move function of mine, instead? Oct 25 01:02:40 (read/write and delete) Oct 25 01:12:08 what does it mean android.support.v4, android.support.v7 ??? Oct 25 01:12:31 Melatonina: I currently do that, don't know if the correct way :-/ Oct 25 01:14:09 pmercado: The number is the lowest version of Android the library supports. Oct 25 01:14:35 thanks :) Oct 25 01:18:32 AlecTaylor ah yes, i read the 1e of tat book - was super expensive ! Oct 25 01:18:42 :P Oct 25 01:19:01 g00s: I found the first-edition in Storage of my university's library Oct 25 01:19:40 and it was like 120 pages lol Oct 25 01:19:49 almost at the time $1/page Oct 25 01:22:16 AlecTaylor damn, kindle edition is $107 ! Oct 25 01:23:57 Wiley, those bastards Oct 25 01:24:03 I had to use a function that read/writes the file Oct 25 01:24:55 Time to go to sleep. Oct 25 01:24:59 Good night Oct 25 01:25:11 Melatonina: Remember to read the documentation. Oct 25 01:25:30 The Android documentation for File.renameTo says that they have to be on the same mount point. Oct 25 01:25:37 "Both paths be on the same mount point. On Android, applications are most likely to hit this restriction when attempting to copy between internal storage and an SD card." Oct 25 01:26:15 Yeah, I know that. What I don't know if external storage and database directory are on the same mount point Oct 25 01:26:19 They aren't Oct 25 01:26:38 So I had to use the function to read and write the file Oct 25 01:26:44 * g00s detects Melatonina is up to NO GOOD Oct 25 01:27:00 g00s: why? Oct 25 01:27:23 Did I do anything wrong' Oct 25 01:27:25 ? Oct 25 01:27:41 AFAIK, external storage might be on an SD card, while the database directory is on the hard drive. So, AFAIK, they might be on a different mount point. Oct 25 01:28:24 I empirically determined that aren't Oct 25 01:28:37 because the renameTo() function failed to update my database Oct 25 01:28:55 Melatonina: In your case they aren't, I guess. I don't know whether it always holds true. Oct 25 01:29:05 so, as I said, I've used a read/write function and that worked Oct 25 01:29:10 Though of course "might be" is as good as "is" here. Oct 25 01:29:17 Or as bad. Oct 25 01:29:54 4th time: I've already switched to a read/write function to move the data Oct 25 01:30:02 Is that wrong too? Oct 25 01:30:50 Melatonina: I was just pointing out that the documentation answered both of your questions (the `getCacheDir` one and this new one). Not reprimanding; just giving you hints on how to make the most of your time. :D Oct 25 01:31:16 The documentation is often awful, but sometimes it's good. Oct 25 01:32:26 its interesting, when you pull up a book on amazon - all the suggestions are of books of that same 'era' Oct 25 01:33:02 i had Boriz Beizer's book, Copeland ... old stuff Oct 25 01:33:32 I really need to go to sleep. My eyes are closing. Thanks for everything Oct 25 01:37:57 Oh they modularized google play services Oct 25 01:38:30 well that's good Oct 25 01:39:05 Onlogn == ologn ? Oct 25 01:39:59 g00s, yes Oct 25 01:40:41 This is my remote username (although my desktop/workstation is off because my hard drive is crashing) Oct 25 01:44:52 Onlogn back up your keystore ;) Oct 25 01:45:21 Has there been some change with certs for 7.0? I have been having issues hooking up charles proxy since to debug. Getting "Connected, no internet" for the Wi-Fi, and nothing is coming through CharlesProxy Oct 25 01:45:56 g00s, I did...I ordered a new hard drive which should be coming this week. Usually I would order a new desktop around this time but I'm being thrifty. Oct 25 01:47:30 herping and derping Oct 25 01:47:42 I was filtering out all requests :) classic Oct 25 01:47:45 Onlogn which brand, hope not seagate Oct 25 01:48:35 g00s, hitachi Oct 25 02:01:17 twitter cutting more jobs Oct 25 02:14:06 sounds like Dirty Cow is the next stagefright Oct 25 02:19:15 yiati, I know there were a bunch of cert changes in general, I don't recall what all was impacted Oct 25 02:29:01 trying to debug a problems with views, seems some others remove a textview and I cannot seem to get it back, think it has to do with using merge for main tag in manifest.xml Oct 25 02:29:41 start with custom view, I can switch to others and back, the text view sits on top of customview, but after switching to other views, textview never shows again, just custom one Oct 25 02:30:16 if I do not switch to other views, with their own layout, I can switch between custom view and text view, that displays text over the custom view Oct 25 02:43:53 https://www.reddit.com/r/androiddev/comments/597foc/android_71_round_icon_resources_why/ Oct 25 02:43:58 yeah, this seems so stupid to me Oct 25 02:45:57 The question? Or the round icons? Oct 25 02:47:48 Makes sense why they want to do it, idk though. So much awesome stuff you can do with a freeform icon, but on the other hand, a phone can look so clean with all icons having the same shape Oct 25 02:48:19 I published my first app in Google Play, or rather, it tells me it is "Published", but when I click on "View in Play Store", it says "URL was not found on this server". It took a couple of days before it went from Pending Publication to Published, and now I don't know what Google thinks Published means. Oct 25 02:48:51 Searching online, the best explanation I can find is random people saying, "It takes awhile to update everywhere" Oct 25 02:50:54 So, does anyone know how long I can expect for my published app to actually be published and available in the store? Oct 25 02:52:15 whats the url? Oct 25 02:52:33 yiati its one thing - for iOS - to mandate or enforce these things ... Oct 25 02:53:05 but who is Google after all this time with all this fragmentation to say ok , we're going to take your icon and make it a circle now ? Oct 25 02:53:49 https://play.google.com/store/apps/details?id=com.gbgames.toytlesleafraking Oct 25 02:54:01 they seem to keep making bad decisions, they regret, and then 'enforce' a new policy (doze mode, whatever) after all these apps are already out there Oct 25 02:54:10 good night friends Oct 25 02:54:10 take care :p Oct 25 02:54:29 when did you publish it GBGames? Oct 25 02:55:04 Google is a company that has to compete with Apple, and consider their options. I'm not saying they are wrong or right to make this change but obviously some people high up thought that this was an important distinction that helps iOS, that they now want to experiment with. Oct 25 02:55:16 orbyt_: I clicked Publish on Saturday. I noticed that it said it was Published this morning, but I don't know what time. Oct 25 02:55:33 GBGames several days isn't right Oct 25 02:57:15 I agree. I think I've heard of first time publishers waiting a little longer than usually, but not days. Oct 25 02:57:22 usual* Oct 25 02:57:22 I figured that it was late Saturday night when I clicked Publish, and if someone has to manually check something, fine. Monday morning, it says it is published, but all day I've been checking, and I don't see it. Oct 25 02:58:12 It seems all I can do is wait, and after 24 hours, I can email them if I can find the help page that said to do so again. Oct 25 02:58:41 I'd try unpublishing and then republishing tbh. Perhaps the play store is having issues currently Oct 25 02:58:54 oh yeah there were those dns problems Oct 25 02:59:01 mhm Oct 25 02:59:03 i thought a few people had problems Oct 25 02:59:46 The only other thing I can think of is that after clicking publish and seeing that it was in "Pending publication", I added some text to the listing's description a few times, but since it wasn't published yet, it would all get rolled into the initial publication when it finally gets published. **** ENDING LOGGING AT Tue Oct 25 02:59:58 2016