**** BEGIN LOGGING AT Wed Jan 18 03:00:01 2017 Jan 18 03:15:03 "Google is expanding its “Android One” program for low-cost smartphones to the U.S in coming months" ; $200-300 ; 2 years of updates Jan 18 03:15:10 finally Jan 18 03:16:26 what about here? Jan 18 03:25:01 bankai_ android share has been declining in US for a while, this could be reactionary Jan 18 03:35:09 "90% of Google Play’s revenue came from games" ugh Jan 18 07:13:03 When I open a link with the "Maps" app, the route that is sent as parameter will not show up? http://stackoverflow.com/questions/41671889/google-maps-does-not-show-route-when-opened-by-link Jan 18 07:29:52 In vs, the context menu does only provide opening a directory in windows explorer, but not a file, why? Jan 18 07:30:14 "Open folder in file explorer" Jan 18 07:30:39 vs? Jan 18 07:30:44 Wrong channel Jan 18 07:30:45 Sorry Jan 18 07:30:54 Visual studio Jan 18 07:51:25 When I use chrome://inspect to inspect a webview, it seems like google chrome does not show the same portion of the screen as the one I see on my device any longer... Jan 18 07:52:52 It does not scale with the developer tools window Jan 18 08:25:46 sweet, rust language server implements MS language server protocol, should work great with VS Code Jan 18 08:47:08 how is it possible to retain the state of an item in a recylerview? (image gallery for example), so that when that item is rebinded, it doesnt reset itself? Jan 18 09:38:14 k, the issue is with the viewpager: so a viewpager with views, can i save the state of that viewpager b4 the view is destroyed and then restore it from that? Jan 18 09:39:27 why not putting rows of horizontal recyclerview inside your vertical recyclerview raoul11? Jan 18 09:39:49 went with a viewpager approach Jan 18 09:39:56 also the purpose of being recycled is not really to keep everything, just have a list of "model" in your adapter Jan 18 09:40:03 and restore the ui in onbind Jan 18 09:40:18 How do I refresh the android web browser completely? Jan 18 09:40:44 i can control the recycling of the recyclerview, but the problem occures with the viewpager's onDestroy Jan 18 09:41:03 Actually, I am talking about chrome on android Jan 18 09:41:07 soz, destroyItem Jan 18 09:41:12 anli_, #android Jan 18 09:41:20 well, true Jan 18 09:41:44 so wondering whether i can save the state of the viewpager (which image was last visible) Jan 18 09:42:05 that should be trivial Jan 18 09:42:09 and when that recylcerview item is being binded again, restore the state Jan 18 09:42:40 don't you have a model for your RV adapter where every rows contain a viewpager? Jan 18 09:42:47 yes Jan 18 09:42:51 i would put it there, simply Jan 18 09:43:22 like a map containing id/currentPicture ? Jan 18 09:44:20 you want to save an int "somewhere", this int correspond to the position of the viewpager item, that's basically your problem Jan 18 09:45:07 i think you have to figure it out yourself :) Jan 18 09:45:14 yep Jan 18 09:45:38 just avoid anything static if you can, avoid a hacki-sh solution like sharedpreferences too Jan 18 09:45:51 (i'm only telling you what to NOT do) Jan 18 09:47:05 seen that proposed somewhere Jan 18 09:47:47 thought bout re-arranging the order of items pre destroyItem Jan 18 09:49:58 this seems interesting https://github.com/JakeWharton/salvage Jan 18 09:50:36 too old but it was great Jan 18 09:51:14 or this https://github.com/NightlyNexus/ViewStatePagerAdapter Jan 18 10:12:05 do heaps lie ? Jan 18 10:14:33 do pies heal Jan 18 10:36:07 Hey people.. I'm wondering if analytics can be set up to upload only when data is wifi? Jan 18 10:40:39 What's your favourite part of being a droid dev? Jan 18 10:56:37 Guys, https://imgur.com/a/IHfeZ ...why on Nougat (1st image) i have this layout issue? Jan 18 11:13:23 I'm trying to retrace an obfuscated stacktrace. The mapping file and everything is available. however the retrace.bat spits out the stacktrace i put in without deobfuscating. Jan 18 11:13:32 Any idea how I could solve this? Jan 18 11:50:42 NDK question: how can this line: m_acceleration = IMUWriter( "imu_acc", ASENSOR_TYPE_ACCELEROMETER, 100 ); cause app to crash? What am I missing? Jan 18 11:50:59 did you read the stack trace? :P Jan 18 11:51:10 I don't have one :( Jan 18 11:51:11 did you have compile warnings? Jan 18 11:52:37 Will double-check, but as far as I remember only warning was about overriding deprecated Java method or something Jan 18 11:52:56 wrong compiler Jan 18 11:54:34 well, get a (desymbolicated) stack trace Jan 18 11:54:40 Hard to debug :) Jan 18 11:59:50 The only warning was LOCAL_LDLIBS is always ignored blah-blah-blah... Jan 18 12:01:17 How do I get that desymbolicated stack trace? Build flavor is debug, what else do I need to set up? Sorry, I'm fairly new to NDK Jan 18 12:07:28 Taugeshtu, logcat around the time of crash? Jan 18 12:07:48 Taugeshtu, I'm going to suggest that IMUWriter is in some library that's not loaded though Jan 18 12:07:50 That's interesting. --stacktrace and --debug compiler options make the problem go away. Jan 18 12:08:24 IMUWriter is sitting right next to my main class, in which the assignment happens... Sec, will get logcat Jan 18 12:09:05 The hell... Now it doesn't crash even without debug and stacktrace... Jan 18 12:10:18 All because I deleted all the obj/ and build/ contents Jan 18 12:11:00 I have a similar problem right now... Jan 18 12:11:25 App crashes in release, but if I either set debuggable true or minifiedEnabled false it doesn't crash anymore... Jan 18 12:11:38 And the stacktrace can't be deobfuscated for some reason. Jan 18 12:14:13 Yeah, basically logcat was: https://hastebin.com/oqovawopag.cpp Jan 18 12:20:43 so you just cleared projects and it suddenly started to work Jan 18 12:20:45 what a big deal Jan 18 12:21:26 Taugeshtu, unfiltered logcat might be more useful Jan 18 12:24:50 Ashiren: just new to NDK, surprised that this was the issue... Managed world is so much more forgiving :) Jan 18 12:25:53 its not only NDK Jan 18 12:26:15 also yiu might want to full rerun (not instant run) app sometimes Jan 18 12:27:06 That's what I always do, but thanks :) Note to future self: if shenanigans - clean everything Jan 18 12:33:37 if anyone has any insight: Is a sparseArray similar to a hashmap (or just a regular map) in that PHP will recognize it as an associative array? Jan 18 12:35:15 sparsearray dont extend or implement abstarct maps, its separate being Jan 18 12:36:06 thank you Jan 18 12:54:32 hi all Jan 18 12:54:57 will an android app go to sleep, when I place that to background? Jan 18 12:55:01 When making an app with authentication and login. Is it best to start MainActivity and check if user is logged in and redirect to LoginActivity or start LoginActivity and check if user is already logged in and redirect to MainActivity? Jan 18 12:55:12 or normally that will run just like if that would be the active app? Jan 18 13:01:54 Kake_Fisk, what is best is to not "block" anything and invite the user to login if not already logged, so i would say the first thing you said Jan 18 13:02:04 but you could do it differently, with fragment for example Jan 18 13:02:16 I think I agree Jan 18 13:02:18 switching from one activity to another just for login purpose is not really seamless Jan 18 13:02:40 but we've seen worst ;) Jan 18 13:02:45 worse* Jan 18 13:03:06 greyline: place to background? Jan 18 13:03:27 Ashiren: yeah, but it seems to be it won't run, only if it is a service Jan 18 13:03:31 Ashiren: http://jeanmeyblum.weebly.com/scripts--tutorials/communication-between-an-android-app-and-unity Jan 18 13:03:34 Yeah, that's also true. But I'll probably start with a seperate login activity while I'm doing my proof of concept Jan 18 13:03:45 Ashiren: I used this example, but I don't know if it will run in background or not Jan 18 13:04:04 Ashiren: the only thing I know is this isn't working now on my device Jan 18 13:04:54 service in background should work. if device's screen is off for at least few minutes it goes to deep sleep and/or doze mode Jan 18 13:05:08 but that depends on device. with screen on, it is active Jan 18 13:05:40 are you sure the service is created and started Jan 18 13:06:54 Android Studio have switched to use RelativeLayout as the default layout for activities now. Isn't linearlayout cool anymore? Jan 18 13:07:50 its too linear Jan 18 13:08:55 heh, I see Jan 18 13:11:15 If I compile my app with a release configuration, it crashes when starting, however if I set either minifyEnabled false or debuggable true, the app runs just fine. Jan 18 13:11:42 My best guess is that proguard optimizes something away, but I don't get why it would work with debuggable true Jan 18 13:12:01 here's my build configuration and my stacktrace https://gist.github.com/Syzygy2048/6dac0ddc20ac661a4f26aac9fd1d29a6 Jan 18 13:12:39 because, usually minify is disabled on debug, thus no proguard, consequently no crash Jan 18 13:13:00 fix your proguard configuration Jan 18 13:13:16 so debuggable true overwrites minifyEnabled true? Jan 18 13:13:41 "minify is disabled on debug" (or not enabled by default if you don't get it) Jan 18 13:13:50 it has nothing to do with debuggable Jan 18 13:15:06 so one configuration overwrites the other in this case. ok Jan 18 13:15:48 I would like to fix my proguard config, but I don't know how... Deobfuscation won't work for some reason even though I have the correct mapping file. Jan 18 13:16:26 Ashiren: and how can I check if that service is running at least? Jan 18 13:16:33 Ashiren: because I'm not even sure about that Jan 18 13:17:01 Ashiren: I have never written this kind of thing before, wrote simple android app like 3-4 years ago Jan 18 13:17:16 Any simple way to make a text fade between "Loading..." and "Loading.." until i stop it? Jan 18 13:18:33 Sourcey, schedule a timer to set the name. Jan 18 13:20:45 If I have a timer going and the user leaves the page. fragment replace. is it still running? Jan 18 13:21:20 I'm not entirely sure, but you can simply stop the timer in onPause() Jan 18 13:24:47 greyline: put logs like Log.d("xxxx","something"); in onStart() and inside Runnable and check the logcat Jan 18 13:26:49 adq, from what I understood from what you said and what I found online, if i have a build type like so: "testRelese {minifyEnabled true debuggable true}" then my build should be debuggable as well as perform proguard tasks like obfuscation? Because it does not do that right now. Jan 18 13:27:45 ProGuard is going to make the results incomprehensible. Jan 18 13:27:58 don't you get that your crash comes from proguard misconfigured? Jan 18 13:28:13 and that you don't have crash in debug because minify is disabled there Jan 18 13:28:20 and that debuggable flag has nothing to do Jan 18 13:28:58 ppl should not push a red button if they don't know what the red button does Jan 18 13:32:39 adq, I get that, but I can't fix my proguard configuration without knowing what's wrong, and since my stacktrace won't let itself get deofuscated that won't work either. Jan 18 13:33:00 You can delete it back to the default Jan 18 13:33:29 the default doesn't even seem to compile. but I'll try that again as well. Jan 18 13:33:41 then don't obfuscate or resolve the mapping Jan 18 13:33:52 I can assure you that the defaults for proGuard work just fine Jan 18 13:34:28 proguard is not always trivial to set up, good luck Jan 18 13:34:48 (it helps to understand what you're doing) Jan 18 13:35:12 I neither wrote the app nor did I set up proguard... this is how it was handed to me. Jan 18 13:36:04 Since not obfuscating is not an option I'll have to find a way to fix the mapping again... Jan 18 13:36:35 If you don't know any better proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro' should work just fine Jan 18 13:37:24 Nothing really needs to go into the .pro file and it'll still obfuscate fine Jan 18 13:38:26 That might be the case for a simple app, but doesn't seem to work for this one. Jan 18 13:38:58 1505 unresolved references. Jan 18 13:39:00 i am creating a short questionaire in an alertdialogue. One of the questions is multiple choice, which I populated with radiobuttons and a radio group, adding the view to the alertdialogue builder. I c an't seem to figure out how to identify the users selection in the OnClickListener though Jan 18 13:39:33 It's more likely you need to clean the build tree or test your RAM Jan 18 13:44:01 guess my ram is broken then since a clean build won't fix it. Jan 18 13:44:31 -_- Jan 18 13:44:57 is here someone comfortable with soft keyboard development? Jan 18 13:46:22 i think i answered my own question. the radiogroup appears to have a getCheckedRadioButtonId() method Jan 18 13:46:36 Something's sure broken Jan 18 14:03:37 Hello, mates! Jan 18 14:04:41 Is there a way to know what files need to be committed in all modules included in the project in Android Studio? Jan 18 14:05:42 Sometimes renaming a method causes changes in a module that is collapsed and I have to open all modules one by one to be sure I'm committing everything. I have many modules Jan 18 14:36:10 For a NavigationView, should I use fragments for content for the different options? Jan 18 14:50:37 Melatonina, you mean committing to source control? Jan 18 14:50:58 Syzygy: yes Jan 18 14:51:16 are you using git or something else? Jan 18 14:51:50 git Jan 18 14:52:15 are you talking about git modules or android modules? Jan 18 14:52:46 android project modules Jan 18 14:53:22 git status in your project root should display all changes, regardless of android module. Jan 18 14:53:49 if you use a git GUI like sourcetree, tha also displays all changes regardless of android modules Jan 18 14:54:33 basically git has no concept of android modules and just checks the whole filesystem (as long as it's not in .gitignore) Jan 18 14:54:36 I use the git commands in Android Studio. Should I use an external tool? Jan 18 14:55:28 I haven't really used it, so I don't know how good it is. Jan 18 14:55:57 Ok. I'll try an external GUI. Thanks! Jan 18 14:56:03 I recommend SourceTree if you don't want to use it over the command line Jan 18 14:56:23 Melatonina, don't you see all your changed files since last commit in the "Version control" tab? Jan 18 14:56:44 you can even custom the files & folders color in the project view Jan 18 14:56:52 http://stackoverflow.com/questions/41722207/gradle-issues-need-hellp-asap?noredirect=1#comment70639107_41722207 Jan 18 14:57:09 lol ASAP Jan 18 14:57:18 adq: me stupid. I never noticed the "Version Control" tab. Thanks! Jan 18 14:57:22 the guy cannot even format properly his own SO post Jan 18 14:58:33 adq im a beginner. i apologize Jan 18 14:58:58 well, i put a comment telling what you have to do to maximize your chances to get an answer Jan 18 14:59:27 i did not downvote you Jan 18 14:59:40 did u not understand my question? Jan 18 14:59:45 i did not even read Jan 18 14:59:52 why would i read this #@! Jan 18 15:01:28 bubbely, to summarize, use meaningful titles, format your question correctly and don't beg with "help asap", people will do that anyway, unless you come over as weird... Jan 18 15:02:22 He's managed to _break_ gradle? Jan 18 15:02:30 ok i fixed my title Jan 18 15:02:41 now do the rest. Jan 18 15:04:02 you're mixing up gradle and android gradle plugin versions Jan 18 15:04:25 it should be something like classpath 'com.android.tools.build:gradle:2.3.0-beta2' Jan 18 15:04:50 and in gradle-wrapper.properties you should have something like distributionUrl=https\://services.gradle.org/distributions/gradle-3.3-all.zip Jan 18 15:05:26 now if that's the solution of your issue, you'd better answer your own post and provide the solution which worked, and format your post as Syzygy said to you Jan 18 15:05:49 Manually messing about is probably how he got things into the state they're in now Jan 18 15:06:16 bubbely, try creating a new project in android studio, it should be set up correctly. Jan 18 15:06:41 i will check later on if you updated properly your post and provided the working solution if no one did in the meantime Jan 18 15:07:25 you have to understand that requesting help does not have to be symetric but if someone runs into the same problem as you did, why would you not help them since you requested similar thing Jan 18 15:07:55 k Jan 18 15:07:58 adq: Error:(1, 1) A problem occurred evaluating project ':app'. > Failed to apply plugin [id 'com.android.application'] > Minimum supported Gradle version is 3.3. Current version is 2.14.1. If using the gradle wrapper, try editing the distributionUrl in /Users/zero/Documents/AndroidLoginAndRegistration/gradle/wrapper/gradle-wrapper.properties to gradle-3.3-all.zip Jan 18 15:08:06 no. Jan 18 15:08:13 just no. Jan 18 15:12:07 Does anyone here have experience getting the android x86_64 package to run under hyper-v? Jan 18 15:12:25 only visual studio emulator works and requires hyper-v, Duvrazh Jan 18 15:12:47 but no experience on my side on that part Jan 18 15:12:59 i meant, works with hyper-v* Jan 18 15:20:06 for proguard caused errors like com.somelibrary.SomeClass can't find referenceClass com.someotherlibrary.SomeOtherClass, the solution supposedly is to add -libraryjars com.someLibrary.jar to the proguards config, but what am I supposed to add for files loaded via gradle? e.g. compile 'org.springframework.android:spring-android-rest-template:2.0.0.M3' Jan 18 15:33:22 ayyyyyyyyyyyyyy Jan 18 15:33:41 I want textview text to wrap arround a imageview Jan 18 15:33:48 what layout do I need to use with that? Jan 18 15:33:57 for* Jan 18 15:34:41 the TotallyNotKimLayout Jan 18 15:34:53 or a WebView Jan 18 15:36:05 so (C) DoItYourselfInc or throw it in a html Jan 18 15:36:06 alright Jan 18 15:36:07 thanks Jan 18 15:37:10 yeah I don't know of any native views that handle mixed content like that other than webview Jan 18 15:38:02 TotallyNotKim: have a look at Android Arsenal, just in case Jan 18 15:38:35 oh Jan 18 15:38:40 https://github.com/deano2390/FlowTextView Jan 18 15:38:43 didnt even knew that site yet Jan 18 15:38:45 thanks Jan 18 15:39:16 so I assume "-libraryjars ..\.glrade\chaches\modules-2\files-2.1\com.somelib\somelib\1.0\someHash\somelib.jar" is the wrong approach for the proguard stuff? Jan 18 15:39:39 it doesn't help that a build currently takes around 5 minutes and every 4th time it runs forever... Jan 18 15:39:39 TotallyNotKim: you are welcome Jan 18 15:39:55 Melatonina: looks perfect :3 Jan 18 15:47:44 So I get a ton of warnings like this: "Warning:org.springframework.http.client.HttpComponentsClientHttpRequestFactory: can't find referenced class org.apache.http.client.protocol.HttpClientContext". They're caused by proguard. However I can't seem to find the correct way to solve the error. Jan 18 15:49:48 the official documentation recommends adding -libraryjars somelibrary.jar to the proguards file, however I can't find a way to add a library that has been loaded from a maven repository via gradle, just using the local path won't work. Jan 18 15:50:11 dasunt: Problem there is that commutation of a sentence is actually a form of clemency Jan 18 15:53:30 various proguard configs for springframework and solutions on stackoverflow aren't working either. Jan 18 16:04:21 hi Jan 18 16:07:13 i am using two buttons to load an image on a fragment on any button click but when i am using commit() in both button listeners it is crashing my app after the second click and even on first click it is not loading any image Jan 18 16:21:35 ?? Jan 18 16:22:54 i am using two buttons to load an image on a fragment on any button click but when i am using commit() in both button listeners it is crashing my app after the second click and even on first click it is not loading any image Jan 18 16:32:20 sub_zero, everyone can see your question. Be patient. If someone knows the answer they will let you know, or ask more questions. Jan 18 16:32:39 also, please paste your stack trace and provide a link to it here Jan 18 16:36:07 sub_zero: why do you need a fragment transaction to load an image? Jan 18 16:36:28 to load it in a fragment. i would assume.. Jan 18 16:38:32 you don't load an image in a fragment Jan 18 16:38:49 you're silly Jan 18 16:39:35 https://developer.android.com/guide/components/fragments.html Jan 18 16:39:46 Hello! Is it possible to run espresso and robotium in a single project? Now I can either run the robotium tests or espresso tests. Jan 18 16:40:39 sasser: https://developer.android.com Jan 18 16:40:57 you obviously dont even know what a fragment is, so i will just stop arguing with you Jan 18 16:41:05 o.O Jan 18 16:41:21 :D Jan 18 16:42:38 Instead of trying to prove how thick you are, you might want to specify what type of widget you're "loading" this image into and precisely how you're "loading" it Jan 18 16:43:09 Dagmar: that's what I wanted to know Jan 18 16:44:35 Dagmar: because, as I said, you don't load an image in a fragment. You load it into a view Jan 18 16:45:43 morning! i was wondering, does anyone know how to modify android runtime? Jan 18 16:46:24 im trying to intercept sys calls Jan 18 16:50:32 I know it means source(src) and destinations(dst), but do we really save keystrokes here ? https://developer.android.com/reference/android/graphics/Matrix.ScaleToFit.html#CENTER Jan 18 16:53:30 I have a problem with the latest Android Studio. My project have a module dependency, an aar file, and that file has some definitions. For example, it defines @color/translucent, among others. When I use this on a layout file, AS accuses it can't find the symbol. But it compiles correctly nonetheless. I can't find a solution to this, I tried cleaning the project, doing the invalidate cache Jan 18 16:53:31 thing, nothing helps... It happened when I updated from AS 2.1.something to 2.2.3 Anyone knows how to fix this? Jan 18 16:53:38 malX: that's basically Linux system development. After you devised a method to do that, you need to build and install your custom Android and you find yourself redirected to #android-root. This channel is for Android application development Jan 18 16:54:15 @Melatonina thank you very much! Jan 18 17:05:39 dar10s: They're not looking to save keystrokes as much as they are trying to avoid namespace collisions caused by past sins. Jan 18 17:11:44 i am trying to set image in imageview of fragment on a button click but its not displaying the image , if i set any image as default then it shows it on button click Jan 18 17:12:05 show code Jan 18 17:14:29 zharf https://gist.github.com/anonymous/17cf1c9dcd0a658f530cdd874d70ce74 Jan 18 17:15:04 what Jan 18 17:15:09 * Zharf confused Jan 18 17:15:40 ?? Jan 18 17:17:08 could you paste the layout as well Jan 18 17:17:13 I have a problem with the latest Android Studio. My project have a module dependency, an aar file, and that file has some definitions. For example, it defines @color/translucent, among others. When I use this on a layout file, AS accuses it can't find the symbol. But it compiles correctly nonetheless. I can't find a solution to this, I tried cleaning the project, doing the invalidate cache Jan 18 17:17:13 thing, nothing helps... It happened when I updated from AS 2.1.something to 2.2.3. Anyone knows how to fix this, please? Jan 18 17:18:30 zharf ok Jan 18 17:18:54 let me paste the whole stuff Jan 18 17:21:22 God i hate the android emulator. So many years its been an embarrassment. How come the log says "HAX enabled and running in fast virt mode" but i only get 5fps on the emulator? Tried both the x86 and x64 images - same result Jan 18 17:22:11 * Zharf never uses the emulators Jan 18 17:22:50 zharf https://gist.github.com/anonymous/d26af5380bfe838c2284bec6ada2e4cb Jan 18 17:22:53 thats kind of sad no? That the emulators are so bad that many people just dont use them Jan 18 17:23:01 I guess Jan 18 17:23:07 http://eclipser.xmms2.org/Vu1V8_20160318_102008.jpg we just have a lot of devices :p Jan 18 17:23:26 regardless, how can HAX claim to be installed and working when its clearly not? Anyone know any common pitfalls/gotchas? Jan 18 17:23:58 So do we Zharf, but its a poor alternative to a good emulator Jan 18 17:24:07 the ios simulator for example is a joy to work with Jan 18 17:24:22 speeds up development a lot Jan 18 17:24:53 sub_zero, oh, don't do that Jan 18 17:24:54 i'm sick of the emulator too atm, it has crashed like... 30 times today, and i'm stuck with it because i'm testing android wear stuff which is not available on genymotion or other solutions Jan 18 17:25:05 sub_zero, don't access fragment stuff from other fragments or the containing activity Jan 18 17:25:21 zharf why? Jan 18 17:25:24 Its an embarrassment. I dont know how else to put it Jan 18 17:25:31 the android team should be ashamed Jan 18 17:26:02 liefer you can talk this bullshit in #android Jan 18 17:26:16 sub_zero, encapsulation, lifecycle problems, lots of reasons Jan 18 17:26:25 ohh Jan 18 17:26:29 sub_zero, what about no? this is clearly a developer issue Jan 18 17:26:30 sub_zero, also fragment transactions are asynchronous Jan 18 17:26:38 idiot. Jan 18 17:26:47 The emulator works well enough for me Jan 18 17:26:52 Now now children Jan 18 17:26:57 Sounds more like an end-user problem Jan 18 17:27:14 lol Jan 18 17:27:18 obviously. Jan 18 17:27:31 the dummies are coming out in force Jan 18 17:27:36 zharf there is no way to achieve this? Jan 18 17:27:41 with their worthless little snarks Jan 18 17:27:48 sub_zero, of course there is, do it in the fragment? Jan 18 17:28:23 sub_zero, you can also give the fragment parameters that it'll get when it's instantiated by the fragmentmanager Jan 18 17:28:35 oh Jan 18 17:28:53 sub_zero, but you should interface with the fragment, not touch its views directly Jan 18 17:29:07 (from outside) Jan 18 17:29:22 ok thanks Jan 18 17:29:36 :) Jan 18 17:30:11 liefer: It's probably a safe bet that I run a lot more virtual machines than you do Jan 18 17:31:31 Dagmar, then maybe you could consider helping out instead of attacking me because i brought up a valid point that triggered an insecurity in you (for whatever reason)? Jan 18 17:31:59 maybe because you didn't seem to be seeking help, instead just random ranting Jan 18 17:32:09 liefer regardless, how can HAX claim to be installed and working when its clearly not? Anyone know any common pitfalls/gotchas? Jan 18 17:32:27 random ranting? hmm Jan 18 17:32:56 but I can't help you, sorry Jan 18 17:33:26 then dont make stupid accusations as an alternative, please Jan 18 17:33:32 I didn't? Jan 18 17:33:38 Zharf maybe because you didn't seem to be seeking help, instead just random ranting Jan 18 17:33:56 You've _yet_ to define or even attempt to explain why you think it's not working Jan 18 17:34:17 adq, finally solved that viewpager state issue: override onViewRecycled and get the position of the current viewpager item, put it in a map with key as holder.getAdapterPosition, and recheck on onBindViewHolder and setCurrentItem Jan 18 17:34:21 ...or what steps you've gone through to verify that it is, in fact, functional. Jan 18 17:34:32 When will the lies stop? Jan 18 17:34:35 You've just demanded a bunch of strangers spoon-feed you troubleshooting steps Jan 18 17:34:39 raoul11, k Jan 18 17:34:41 liefer How come the log says "HAX enabled and running in fast virt mode" but i only get 5fps on the emulator? Tried both the x86 and x64 images - same result Jan 18 17:34:49 hackish? Jan 18 17:35:09 liefer, it's probably because it's using software rendering Jan 18 17:35:13 and that it cannot use your gpu Jan 18 17:35:15 It could be that you're just an idiot who expects HAXM to somehow compete with a hardware-accellerated GPU. Jan 18 17:35:16 or reasonable within the boundaries of a plain pageradapter. am pretty sure theres other ways to overide the state Jan 18 17:35:21 Dagmar, you're an insecure moron who is grasping for straws as why it was actually ok for you to attack me like you did. Jan 18 17:35:23 Dagmar, shush kid Jan 18 17:35:37 ... Jan 18 17:35:37 liefer: What am I supposed to grab at? You're just bitching and not giving anyone any useful details. Jan 18 17:35:43 oh my Jan 18 17:35:46 i did, though. Jan 18 17:35:46 liefer: Be useful or bugger off, noobass. Jan 18 17:35:53 haha Jan 18 17:35:59 no you bugger off Jan 18 17:36:05 you've done nothing but call me names Jan 18 17:36:06 Some people might consider it important to know WTF you're attempting to put on the display Jan 18 17:36:11 and refuse what info i gave you Jan 18 17:36:16 Welcome to the ignore list, shortbus. Jan 18 17:36:21 <3 Jan 18 17:36:27 thanks for saving me time in the future Jan 18 17:36:57 I suspect society started this long, downhill spiral, when we stopped leaving unwanted children out for the eagles. Jan 18 17:37:18 Surely that guy could have made sure some baby eagles had a healthy diet. Jan 18 17:37:28 aww cute you still keep going Jan 18 17:37:43 you really dont have better things to do with your life? Probably not Jan 18 17:38:51 https://code.google.com/p/android/issues/detail?id=82985 if anyone has a "valid" workaround (i know.. oxymoron almost) but still cannot find a decent way Jan 18 17:46:08 adq, sorry forgot to thank you for being the only one to respond who doesnt rely on android to give him an identity Jan 18 17:46:14 thanks for actually trying to help Jan 18 17:46:57 np, you can try to force gpu accel in the avd settings (it's probably in auto by default and fallback to software) Jan 18 17:47:19 but if it does not set it automatically by default, i doubt this will work and you will see huge corruption of the emulator screen Jan 18 17:50:52 dis shitty pageradapter Jan 18 17:50:55 huh... IDEA doesn't give me suggestions in xml anymore Jan 18 17:51:33 Zharf i've seen that happen , but only in preferences xml files Jan 18 17:51:49 this was a layout file, I'll check if restarting it helps Jan 18 17:52:32 power save mode Zharf ? Jan 18 17:52:54 didn't help, not in power save mode Jan 18 17:53:12 invalidate caches & restart next.. Jan 18 17:53:25 i've seen it many times Jan 18 17:53:39 or even worse, wrong suggestions like https://plus.google.com/u/0/+AladinQ/posts/RGGDbJJmk7N?sfc=false Jan 18 17:54:23 never seen that Jan 18 17:54:41 if you look all the bug i hit... it's crazy Jan 18 17:55:26 rebuild project might've helped too actually Jan 18 18:01:28 hm, invalidating caches didn't help Jan 18 18:04:38 it won't, in the past, one of the workaround was to create a dummy attr to force refreshing a cache which would not Jan 18 18:04:41 there are many tickets Jan 18 18:05:00 (and of course it implied to switch manually this boolean attr from true to false everytime it occurs) Jan 18 18:05:05 no thx Jan 18 18:05:32 it works in all but this one situation Jan 18 18:05:35 oh well Jan 18 18:06:33 sometimes it knows how to resolve the string, completion or goto declaration don't work too, like https://plus.google.com/u/0/+AladinQ/posts/SH9HzLdW4xK?sfc=false Jan 18 18:07:04 it happens only when i have multiple modules (which is the case for all my projects), but not always and not in all modules Jan 18 18:07:45 i'd be perfectly happy with google spending the next year or so to improve AS performance and fix lots of bugs Jan 18 18:08:31 can't think of any major features missing, well except working well Jan 18 18:09:01 this won't happen g00s, expect new features, new fixes, new bugs, new regressions too Jan 18 18:09:02 oh, well i guess realtime error feedback like eclipse had with its incremental compilation Jan 18 18:09:17 eclipse was corrupting my project when refactoring sometimes Jan 18 18:09:24 i was so glad when AS came out Jan 18 18:09:27 and then... Jan 18 18:09:37 yeah, i saw that too ... but determined it wasn't eclipse but the ADT Jan 18 18:09:54 i need to screenshot of "invalid undo state" Jan 18 18:09:56 it corrupted stuff eclipse would not know about, like the structure of androidmanifest.xml Jan 18 18:09:58 IDEA was better before AS... not as many tools maybe but less buggy :P Jan 18 18:09:59 which after a lot of undo/redo in xml Jan 18 18:10:02 something got corrupted lol Jan 18 18:10:05 it's so funny Jan 18 18:10:38 Zharf, definitely Jan 18 18:10:50 and few ppl I know using IDEA instead of AS has a much less issues Jan 18 18:11:20 seems like this is the fate of almost everything, to become over bloated , complex, and buggy Jan 18 18:11:21 I never used AS yet Jan 18 18:11:48 recently the android support plugin in IDEA has been throwing a lot of errors Jan 18 18:11:52 and it's starting to annoy me Jan 18 18:12:16 it doesn't stop working functionally but almost everything causes a red box with "android support did something wrong, send error report to google?" Jan 18 18:12:23 "report to google" Jan 18 18:13:04 what would have helped to mitigate this issue could have been to not entangled so many things in the IDE Jan 18 18:13:17 ppl using vim or emacs are not used to these kind of unstable environment Jan 18 18:13:34 it's still possible to build everything with gradle, but what brings AS/IDEA is almost irreplacable Jan 18 18:13:38 (for android dev, i mean) Jan 18 18:14:11 when you're IDE hangs because adb hangs because... it starts me worrying Jan 18 18:15:15 also I'm thinking there's some leak in recent version of IDEA/AS Jan 18 18:15:20 it's hogging a lot more memory than before Jan 18 18:16:00 on that, they made huge progress in my opinion Jan 18 18:16:18 2 years ago, i had to restart & invalidate cache almost daily, now it runs for few days Jan 18 18:17:29 that's probably true Jan 18 18:18:16 Does my format for a firebase database for a IM app look sensible? http://www.jsoneditoronline.org/?id=077933c29ba1e2b802ee15b132889b7c Jan 18 18:18:24 well i don't lie :) but experience and mileage vary a lot, from what i deduce the platform is also decisive, much less bug on macosx Jan 18 18:18:40 I run IDEA on linux and windows Jan 18 18:18:59 linux version has had its own bugs Jan 18 18:19:14 Or should I maybe have an own id for messages between two recipients? Jan 18 18:19:28 until recently it tried to open iexplore.exe to show a webpage too Jan 18 18:21:10 not really very knowledgeable about what's needed in IM protocol... sorry Jan 18 18:24:47 finaaaaaaly Jan 18 18:24:56 * raoul11 thepooshes thepoosh Jan 18 18:25:02 !! Jan 18 18:25:09 wtf have u been today Jan 18 18:25:17 missed u longtime Jan 18 18:25:19 in bed Jan 18 18:25:21 sick Jan 18 18:25:22 :( Jan 18 18:25:23 lol Jan 18 18:25:28 thepoosh lol again? man flu ? Jan 18 18:25:33 did u notice this happens everytime u go to google Jan 18 18:25:35 nah Jan 18 18:25:42 kek Jan 18 18:25:46 topkek Jan 18 18:25:52 raoul11: they didn't take names, shame you didn't make it Jan 18 18:26:01 really? Jan 18 18:26:09 i was busy making murica great again Jan 18 18:26:14 ud be proud Jan 18 18:26:32 did you see trump's last tweet? Jan 18 18:26:36 https://i.redd.it/smv3x2whqcay.png Jan 18 18:26:38 negative Jan 18 18:26:38 google just aquired Fabric... Jan 18 18:26:50 lmao Jan 18 18:26:52 wow Jan 18 18:27:01 grab em by their kitty Jan 18 18:27:06 orbyt_: woot Jan 18 18:27:16 why don't they buy us?! Jan 18 18:27:30 us? Jan 18 18:27:42 company i work at Jan 18 18:27:45 glide? Jan 18 18:27:59 yeah Jan 18 18:28:15 the only glide that matters is the imagelib Jan 18 18:28:17 * raoul11 away Jan 18 18:28:19 They're looking to integrate Fabric with Firebase, should be interesting Jan 18 18:28:23 woo orbyt_ Jan 18 18:30:04 raoul11: you hurt mah feelings Jan 18 18:30:43 well the funny point is that we all switched to something else than the default crash reporting in the dev console Jan 18 18:31:03 let's hope we're not back to square one Jan 18 18:31:45 i cant download sdk to my android device Jan 18 18:32:00 i hope to god they get rid of that shitty “app” you had to use to set up Crashlytics on OS X Jan 18 18:32:58 i get "your operating system is not supported button" and no link to downloads Jan 18 18:33:17 why would you download the sdk on an android device? Jan 18 18:33:18 zharf you there? Jan 18 18:33:33 you’re supposed to download the SDK on the computer you want to do development on Jan 18 18:34:08 purelazy: if you really want to try and do android dev on an android device, you’re gonna want to look at AIDE Jan 18 18:34:49 how can we set images in imageview in fragments at runtime? Jan 18 18:35:03 i just want to dl on this, then copy it to linux Jan 18 18:35:23 i don’t think they let you do that Jan 18 18:35:39 how come they would prevent someone to download a zip oO Jan 18 18:36:16 it’s not that they don’t want you to do it, Jan 18 18:36:32 anyony have the url for linux 64bit? Jan 18 18:36:37 it’s that they thought “I’ll autodetect what platform they’re on, and then show them the correct one” Jan 18 18:36:41 https://developer.android.com/studio/index.html Jan 18 18:36:57 if you scroll all the way down to the bottom, you should see a zip with the tools Jan 18 18:37:02 oh right, it's bundled now Jan 18 18:37:11 no way to retrieve it without parsing crazy xml Jan 18 18:37:53 s73 all that is cleverly hidden Jan 18 18:38:07 it is what it is Jan 18 18:38:21 all the zips are not there for me Jan 18 18:38:47 you’d be better off downloading it from the desktop, then Jan 18 18:39:02 purelazy, if you google for it you will find direct url like: http://dl-ssl.google.com/android/repository/android-23_r02.zip Jan 18 18:39:11 if i could i would Jan 18 18:39:18 or you can parse manually yourself url like https://dl-ssl.google.com/android/repository/repository-12.xml Jan 18 18:39:25 those links may not be up to date Jan 18 18:39:35 and you will have more troubles later on Jan 18 18:39:43 but since you asked.. Jan 18 18:40:20 sub_zero, same way you do in activity Jan 18 18:40:46 sub_zero, after (or in) onCreateView has completed that is Jan 18 18:40:57 purelazy, no offense but the fact you're not able to find yourself the link(s) is probably a wall lower than android development itself Jan 18 18:41:36 and it's not hidden nor cleverly hidden at all Jan 18 18:42:07 zharf yes i too think so Jan 18 18:42:33 making another method Jan 18 18:42:38 may work Jan 18 18:47:22 adq: no offence taken Jan 18 18:49:04 adq thanks - i'm dling now Jan 18 18:53:40 https://firebase.googleblog.com/2017/01/FabricJoinsGoogle17.html Jan 18 19:00:07 Hi all, when your app is installed on a device, can you make int impossible to install other apps? maybe with the NDK or do you need to create a custom rom for this? Jan 18 19:01:25 custom rom Jan 18 19:01:46 "Fabric is Joining Google" O.o Jan 18 19:02:46 joining is a cute word for this Jan 18 19:02:58 true Jan 18 19:02:58 Coming in June of 2017: Google Pants Jan 18 19:03:45 FrancescoV: No, you can’t do that. That would have to be a rom thing Jan 18 19:03:57 i don't understand this, isn't it overlap with existing google capabilities ? Jan 18 19:04:24 it kinda does, but Fabric does stuff better Jan 18 19:04:50 "When we met the team at Google we quickly realized that our missions are the same - helping mobile teams build better apps, understand their users, and grow their businesses" haha, i love that vacuous sounding bullshit Jan 18 19:06:12 everyone has the samemission Jan 18 19:06:44 too bad the market is so saturated with utter crap that it's impossible to reach users :) Jan 18 19:10:13 so i guess that means there may be something to talk about wrt android at i/o 2017 ;) Jan 18 19:10:41 remember, fabric also works on iOS and web Jan 18 19:10:59 zharf i tried with many ways but nothing is working out Jan 18 19:11:16 i signed up a while back but never used it because the setup was strange Jan 18 19:11:32 & convoluted, but that was a while ago Jan 18 19:12:17 sub_zero, show code again Jan 18 19:14:08 s73v3r so would this replace firebase analytics too? just wondering, i still have GA - am I wasting time converting it to Fb Jan 18 19:14:08 the whole code? Jan 18 19:14:33 whatever you changed Jan 18 19:14:35 i think it would enhance it. plus, there’s also the Crashlytics stuff Jan 18 19:14:57 but there is firebase crash reporting too Jan 18 19:15:09 firebase analytics seem very limited compared to GA Jan 18 19:15:16 fb crash reporting is so limited Jan 18 19:15:28 zharf https://gist.github.com/anonymous/0e5154ac977360ae003dd08bf563c9c5 Jan 18 19:15:36 like they're saving on stacktraces Jan 18 19:16:33 zharf https://gist.github.com/anonymous/71279047bc3b86ff0375d9d600c0aeb0 Jan 18 19:17:17 sub_zero, you're not giving any arguments to the fragment though Jan 18 19:18:29 sub_zero, https://github.com/codepath/android_guides/wiki/Creating-and-Using-Fragments#fragment-with-arguments Jan 18 19:18:57 got this amazing stacktrace http://pastebin.com/suCm31D2 Jan 18 19:19:16 i think its actually firebase which is causing the crash Jan 18 19:19:30 heh Jan 18 19:19:58 zharf oh Jan 18 19:20:08 http://stackoverflow.com/questions/41081037/google-mobile-services-gms-nullpointerpointerexception-from-calling-string-to Jan 18 19:20:18 " Jan 18 19:20:18 Jan 18 19:20:18 i have the same crash report using Firebase 9.2.1, 16 errors, 6 users, and exactly same type of device in all instances, LGE Nexus 5x, API 23 " Jan 18 19:20:32 am on the same situation, no idea what to do about it Jan 18 19:20:39 sub_zero, best read the whole page, it's quite a bit of information but once you understand it fragments are quite easy Jan 18 19:20:57 hehe ok Jan 18 19:29:10 apparently its firebase crash analytics which is causing the crash /: Jan 18 19:29:15 amazing stuff Jan 18 19:29:44 not the first time crash analytics causes the crash Jan 18 19:29:57 hockeyapp also has had such problems Jan 18 19:32:17 gonna trade it for crashlytics Jan 18 20:03:50 if i have an animation set with two scale animations. let's say the first goes fromX of 1.0 toX of 2.0. When the next scale animation runs in the set, is it true that a fromX of 1.0 is actually 2.0x the original view size? Jan 18 20:13:50 I would assume so, yes Jan 18 20:26:21 Is it possible to make an app in Google Play appear unavailable to devices that lack certain capabilities? Jan 18 20:27:27 I see lots of negative reviews in a compass app by people who claim that the app doesn't work on their Samsung J2 Jan 18 20:27:49 And apparently Samsung J2 doesn't have a compass sensor Jan 18 20:30:16 yes cousteau, with flag Jan 18 20:30:26 see documentation Jan 18 20:33:20 Is there an easy way to see what features an app from Google Play uses? Jan 18 20:34:11 (maybe downloading the apk if possible and checking the manifest for that flag) Jan 18 20:35:32 oops, * Jan 18 20:36:11 cousteau, dev console can list the apk details, other than that you don't need it since you are responsible for putting those things yourself in the manifest Jan 18 20:36:17 Yeah Google corrected me already :) Jan 18 20:37:35 * cousteau_ switches to PC Jan 18 20:57:47 so, if I get an .apk, is there a way to see the features it uses? Jan 18 20:57:55 read the manifest Jan 18 20:59:00 the manifest is this AndroidManifest.xml file in the compressed apk? is it plain text? or should I get the Android SDK for all this and stop trying to do it manually? Jan 18 21:01:56 what are you trying to do? Jan 18 21:02:25 and the manifest might be plain text, or it might be converted to binary. i’m not sure Jan 18 21:02:40 it seems to be utf16 or something Jan 18 21:03:03 I'm trying to see if a compass app requires the phone to have a compass sensor Jan 18 21:03:18 why wouldn’t it? Jan 18 21:03:20 and if it doesn't, mail the developers suggesting them to add that requirement Jan 18 21:03:38 why not just mail them and say that they should add that if they don't? Jan 18 21:03:45 but, that information would be in the manifest Jan 18 21:04:03 s73v3r, well, some of the reviews are by people who are annoyed that the compass, as well as other compass apps, is just a fake app that shows a static compass, on their phone with no compass sensor Jan 18 21:04:43 Hey guys, can I ask u something about MVP pattern? Jan 18 21:05:11 juloor: Just ask the question. please do not ask to ask; it just creates noise Jan 18 21:05:16 if someone can help, they will Jan 18 21:05:57 awesome! today I read this tutorial about mvp: https://code.tutsplus.com/tutorials/how-to-adopt-model-view-presenter-on-android--cms-26206 Jan 18 21:07:31 In the presenter class he is creating a weakreference with the view from activity, everything good. There is also a methode getView() which checks if the WEAK REFERENCE is null. Jan 18 21:07:58 shouldnt it be if(weakref.get() == null) ? Jan 18 21:08:37 if the activity gets destroyed the weak ref isn't null but the view inside. I dont get it Jan 18 21:10:18 it’s possible it’s a typo Jan 18 21:10:37 But I'm right, right? Jan 18 21:10:48 eeyup Jan 18 21:10:54 maybe not Jan 18 21:10:57 it should be ref.get() != null Jan 18 21:11:06 the weakreference itself might get nulled out when invalid too Jan 18 21:11:48 why would anyone check for weak reference itself :/ Jan 18 21:11:52 interesting, current linearlayoutmanager doesn't actually use context for anything in the single argument ctor Jan 18 21:11:56 so better ref != null { if(ref.get() != null { do() })} Jan 18 21:11:57 unless checking if it was set in the first time Jan 18 21:12:11 well, the point of weakreference isn’t to not check; it’s to not hold a strong reference Jan 18 21:12:41 s73v3r, ok so apparently I can just download a binary precompiled version of `aapt` and it'll work out of the box :) Jan 18 21:12:58 yes but what about activity gets destroyed, thread is running and then trys to tv.setText(""); Jan 18 21:13:29 aapt dump badging com.twodlevel.compass.downloader.apk | grep uses-feature --> uses-feature:'android.hardware.(wifi,telephony,touchscreen)'... yeah, none of those are a compass Jan 18 21:14:03 juloor: where are you talking about? Jan 18 21:14:45 i bet he means the getView() Jan 18 21:14:53 if ref is not null, view still might be null Jan 18 21:15:09 it will result in NullPointerException if you try something on this view Jan 18 21:15:18 yes and I have to check if the view is null Jan 18 21:15:23 i don’t think so? Jan 18 21:15:38 tbh arent there better MVP tutorials out there Jan 18 21:15:57 it looks like, if the thing that the weakreference was pointing to, in this case the view, gets collected, the weakreference itself will go to null Jan 18 21:16:02 those underscores scare me Jan 18 21:16:08 there’s a thousand MVP tutorials out there Jan 18 21:16:13 yes there are, just curious about that point Jan 18 21:16:16 but this isn’t an MVP question Jan 18 21:16:23 this is a WeakReference question Jan 18 21:16:26 huh Jan 18 21:16:55 weakReference.get() is null, not weakReference itself Jan 18 21:16:58 weak ref question dependent on this tutorial Jan 18 21:17:10 juloor: it’s still a WeakReference question Jan 18 21:17:21 i bet they made a typo, thats all Jan 18 21:17:37 I just wanted to know if there is a mistake Jan 18 21:17:39 i don’t think so. i’ve done a quick search, and I see a lot of code where they do that Jan 18 21:17:49 they just check if the reference is null Jan 18 21:18:17 but why? I need to know if the view still exists Jan 18 21:18:25 but why what? Jan 18 21:18:39 why just checking the weak ref? Jan 18 21:18:51 to see if the reference is null? Jan 18 21:19:07 what about the view? view will be null after onDestory() Jan 18 21:19:13 or maybe it checks to see if the thing it’s referencing is null Jan 18 21:19:17 ->NPE Jan 18 21:19:30 if the reference is null, why the hell would you try and use the view? Jan 18 21:19:55 for calling UI related stuff? MVP? Jan 18 21:20:23 you’re saying you’d still try to use the view if the reference to it was null? Jan 18 21:20:25 that makes no sense Jan 18 21:21:07 haha no, I tried to say that you have to check the view if the activity still exists Jan 18 21:21:23 they make a WeakReference to the view Jan 18 21:21:24 and they are not checking if the view is null or not Jan 18 21:22:07 it looks like they’re using “view” not to refer to an Android.View Jan 18 21:22:18 they’re treating the Activity as part of the “view" Jan 18 21:22:51 yep, with view I mean the activity casted to the interface Jan 18 21:23:35 RequiredViewOps Jan 18 21:24:07 yeah. so i don’t see the problem? Jan 18 21:24:50 I just wanted to know if there is a "mistake" or not Jan 18 21:25:12 you’d have to look up more about WeakReferences Jan 18 21:25:38 off the top of my head I’d think it might be, but i see a bunch of code online that just checks if the WeakRef is null Jan 18 21:25:55 can you post a link? Jan 18 21:25:58 so maybe when the item is GCed, the WeakRef goes to null Jan 18 21:25:59 no Jan 18 21:26:59 apparently the safe method is to call .get() to get the object, and then test that for null Jan 18 21:27:30 however, by doing that, if it is not null, you are now creating a strong reference, and must keep that in mind Jan 18 21:28:02 but just in the scope of the methode, right? Jan 18 21:28:23 assuming you don’t pass it to anything that might hold onto it, yes Jan 18 21:29:08 yep, I also found a so thread about that, so it looks like its just a mistake. See: http://stackoverflow.com/questions/21336544/why-do-they-check-weakreference-for-null Jan 18 21:29:49 Seriously, Fabric.io is now part of Firebase, and Crashlytics will be integrated into Firebase analytics? Jan 18 21:29:54 now that’s a recipe for disaster Jan 18 21:30:00 meh Jan 18 21:30:18 s73v3r: thanks for the discussion! ;) Jan 18 21:30:47 Hello. I'd like to embed a messaging widget in my application. Are there any open source libraries to do so? The only thing I need is a widget, I don't need the underlying networking backend. Jan 18 21:31:12 ison__: what do you mean with "messaging widget", what would it do? Jan 18 21:31:27 justJanne: it should look like WhatsApp Jan 18 21:31:46 Well, you can’t do that in just one widget Jan 18 21:31:47 check here? https://droidux.com/ Jan 18 21:31:53 didnt know there is a whatsapp widget :D Jan 18 21:32:04 or here: https://android-arsenal.com/ Jan 18 21:32:12 i think he means a widget that shows a conversation Jan 18 21:33:06 yes, I just want to add an activity to my application which would display a conversation Jan 18 21:33:11 thanks for the links, I'll take a look Jan 18 21:33:33 ahhh Jan 18 22:18:05 I think admob must be doing something strange to determine ad visibility now, I finally narrowed down the few lines of code that cause admob to think my custom banner isn't visible, https://gist.github.com/bfrog/372bebf8646f66a18d381008be6cdb87 Jan 18 22:18:35 if I uncomment any of the 3 lines adding listeners that I've commented out in the gist, admob things the ad isn't visible and never refreshes the ad Jan 18 22:18:48 that seems very very odd to me Jan 18 22:20:03 I guess I might need to setup an example project and send it their way for questioning... but what a pain Jan 18 22:20:26 if anyone here happens to know any secrets to the inner workings of admob and could enlighten me faster, I'd be forever grateful Jan 18 23:21:45 which fragment callback should I use to hide Activity's actionbar ? I tried onStart/resume but I'm getting NPE Jan 18 23:23:33 getActivity().youMethodToHideToolbar() Jan 18 23:23:44 what do the lifecycle methods have to do with it Jan 18 23:24:03 i guess you need to have the view created before you can hide the toolbar Jan 18 23:24:52 http://imgur.com/a/Gr7kx still trying to find a workaround for this nasty surfaceview issue which generates a "changeCanvasOpacity: opaque=true" Jan 18 23:25:08 i think i will switch to textureview but i really wanted to avoid that :| Jan 18 23:42:51 US sues oracle, bwahaha \o/ Jan 18 23:51:58 Android speech recognition actually kind of works in both English and Italian Jan 18 23:52:41 Today is the first time I use it with the soft keyboard inside my application Jan 19 00:01:00 I feel like a mobile retard Jan 19 00:42:25 For IAP im looking at using the IabHelper class provided by the TrivialDrive sample that was made to demo IAP. Jan 19 00:42:56 The IabHelper constructor requires a string of the apps public license key Jan 19 00:43:15 They recommend the following: Instead, construct the whole public license key string at runtime from substrings or retrieve it from an encrypted store before passing it to the constructor Jan 19 00:43:39 Are they just suggesting splitting up the string into a couple pieces and concatenating them together? Jan 19 00:51:33 orbyt_, yes and it's weak Jan 19 00:51:50 What do you suggest? Jan 19 00:52:43 whatever you do, even obfuscating it via jni in .so will not stop anyone determined to retrieve it, the only solution is to validate everything on an external server Jan 19 00:53:15 which requires more effort (and money) and it's usually not worth it, except for fun or if you are a very big company Jan 19 00:54:03 i fixed my issue by switching from surfaceview to textureview \o/ Jan 19 00:54:06 it was worth it Jan 19 00:54:22 I have not dug into the internals of their suggested helper class, but as I mentioned it required the string in the constructor. I am not sure what it uses it for though Jan 19 00:54:23 now i need to profile but i reach easily 60FPS Jan 19 00:54:51 I've read through the IAP docs and it has no mention of needing the key when using the "vanilla" billing api Jan 19 00:55:27 this string is the base64 of the public key they give you in the dev console Jan 19 00:55:53 linked to your app, so your users can purchase your item Jan 19 00:56:19 it's a couple with the sha1 of your apk iirc Jan 19 00:56:51 and the packagename of your app too, this is how google IAB server can detect if (not your users but) your app is legit and allowed to query billing stuff Jan 19 00:57:27 why is it required with this helper class, but not with the normal billing api? Jan 19 00:57:35 it is always required Jan 19 00:57:41 the helperclass is just an old boilerplate Jan 19 00:59:08 you use it to validate the signature of the payload of the purchase Jan 19 00:59:14 I haven't seen anywhere its required with the normal v3 billing api. The docs say the key is used to sign responses, but I havent seen anywhere where it asked me to pass it in Jan 19 00:59:18 well, not explicitly required i mean Jan 19 00:59:26 Oh ok Jan 19 00:59:29 the doc is crazy Jan 19 00:59:37 they mention v3, also a v4 and even a v5 api Jan 19 00:59:56 but on our side (developer/apk) we are on v3 it seems Jan 19 01:00:21 there are also 5 years old issues not being adressed or fixed (see github issues on this project) Jan 19 01:00:24 Yea V3 was released last year I believe. Havent heard anything about a v4/5 Jan 19 01:00:39 they mention it, you will see, i was surprised too when i discovered that Jan 19 01:00:52 Yea, I was just on an issue with it. The .aidl file included with the sdk is different from the one in their sample Jan 19 01:01:01 if you're new to IAB, it will take a little amount of time to grasp all those things, and how to test properly too Jan 19 01:01:06 and how to avoid all those issues Jan 19 01:01:20 yeah different, because not updated :x Jan 19 01:01:20 All im doing is offering a single subscription Jan 19 01:01:28 Youd think it be straightforward Jan 19 01:01:33 be very careful with this helper boilerplate, that's my advice Jan 19 01:01:37 lot of problems Jan 19 01:02:16 i highly modified it across time, and now i have issue to merge their patch in one of my project Jan 19 01:02:20 i have* Jan 19 01:06:02 The api seems like a prime candidate for a better 3rd party library Jan 19 01:06:56 some tried and failed, or were stuck on v2 iirc Jan 19 01:07:14 there are lot of edge cases unfixable Jan 19 01:07:24 like if user has more than 1 account, purchase with the second account Jan 19 01:07:30 but use the primary account with your app Jan 19 01:07:54 or the promo code purchase cannot be verified with the signature -_- Jan 19 01:07:54 hi orbyt_, hi adq Jan 19 01:07:56 or etc... Jan 19 01:07:59 io Jan 19 01:08:05 Hi Melatonina Jan 19 01:08:54 and since they don't allow other form of purchase for digital goods Jan 19 01:09:06 you're basically stuck with IAB, except if you use a server Jan 19 01:58:04 Hello? Jan 19 01:58:11 Is anyone here? Jan 19 01:58:27 I'm in dire need of some help with my android Jan 19 01:58:40 Hi guys. Has anybody encountered a problem with Cursor.getInt() when it always returns 0 even though the column contains valid integer value? Jan 19 01:59:03 I double checked that I use right column index Jan 19 01:59:20 I haven't.. Hope someone answers you.. Jan 19 01:59:41 Is there anyone who has experience with using FlashTool? Jan 19 01:59:53 I need some advice, please Jan 19 02:00:04 android-dev335: welcome to the app-dev channel... Jan 19 02:00:33 I'm sorry if it's the wrong channel to discuss this in Jan 19 02:00:55 Everything's right there, I see through Stetho that the record has, say, 20512, the value I successfully written there, but when I read it, it reads all the columns right but one Jan 19 02:01:23 android-dev335, this channel is appdev focused; try #android-root or more likely the XDA web forums are going to have the best info Jan 19 02:01:24 *except only one column wich always is 0 Jan 19 02:01:28 you know it's the wrong channel, because you checked the topic before you posted... right? Jan 19 02:01:33 Thank you :) Jan 19 02:38:14 Good day all! Jan 19 02:39:50 Is the debug.keystore generated by Android Dev Tool always uses 'android' as password and 'androiddebugkey' as keystore alias? Jan 19 02:48:37 anyone had a play with android things yet? **** ENDING LOGGING AT Thu Jan 19 03:00:01 2017