**** BEGIN LOGGING AT Wed Dec 21 03:00:00 2016 Dec 21 03:02:41 hey guys what's the best IDE to developer java on android? Dec 21 03:02:54 for Windows10 Dec 21 03:03:19 So i guess i need an emulator...? I've googled it but i want your personal suggestions Dec 21 03:04:05 Android Studio Dec 21 03:04:25 AReverser: You should ALWAYS use Android Studio Dec 21 03:05:21 this comes with the emulators? Dec 21 03:05:59 cool i'll check it out thanks! Dec 21 03:46:39 Is there a way to display the PDF background with PdfRenderer? Dec 21 03:47:15 The white background from the PDF file isn't rendered across to the bitmap Dec 21 03:50:10 g00s: ugh Dec 21 05:27:45 Hey all, is there a good estimate to dp to pixels Dec 21 05:28:51 I have a banner image view i would like to down load an image and then set to the image view. I am slightly confused about how to determine the height and width of the image asset i need to make based on the space i have available Dec 21 05:29:40 <_rm> you can convert dp to px in code Dec 21 05:31:41 <_rm> TypedValue.applyDimension(TypedValue.COMPLEX_UNIT_DIP, dp, resources.getDisplayMetrics()) Dec 21 05:33:19 BinaryWaves: you can get call getWidth() or getHeight() on the view. This will give you its actual pixel size. Dec 21 05:36:49 <_rm> gotta wait until layout is completed though Dec 21 05:37:21 <_rm> one way to check for that is OnGlobalLayoutListener but that always feels super hacky to me Dec 21 05:37:25 nope Dec 21 05:37:26 noooo Dec 21 05:37:28 noooooo Dec 21 05:37:30 onPreDrawListener Dec 21 05:37:32 :P Dec 21 05:37:49 <_rm> even then, feels hacky :) Dec 21 05:37:52 onMeasure->onLayout->(pre-draw)->onDraw Dec 21 05:38:08 _rm if your targeting > 19 theres new functions for it Dec 21 05:38:12 OnGlobalLayoutListener Dec 21 05:38:15 What a classic Dec 21 05:38:22 yea :( Dec 21 05:38:48 <_rm> Napalm: i'm not, though :| Dec 21 05:38:52 _rm: View#isLaidOut() Dec 21 05:39:14 <_rm> our minSdkVersion is *finally* up to .. 16! Dec 21 05:39:35 _rm: doh! it was APIv11 that added it Dec 21 05:39:44 addOnLayoutChangeListener/removeOnLayoutChangeListener Dec 21 05:39:58 <_rm> oh, nice Dec 21 05:40:31 right, its bed time Dec 21 05:40:32 cya all Dec 21 06:08:38 test Dec 21 06:10:15 hi guys i'm building a custom kernel right now and i got this error https://hastebin.com/unezuyuloc.vbs do you know how to fix it? thanks Dec 21 06:10:52 fortoszone: please to be reading channel topic again please thank you Dec 21 06:18:50 Napalm|afk, I'm not trying to get an exact size. The images would be downsized to fit into the imageview with Glide. Idk how to describe what I am looking to do. Basically I want to have one image file on my server and since screens can be slightly different sizes I am trying to find what resolution I should store my images at so they are small in file size but not too small in resolution otherwise it looks blurry on my Dec 21 06:18:51 screen Dec 21 06:19:09 In retrofit how we can filter data before arriving at onResponse callback, i have a live api which giving me the malformed json response attched with string tags attached in beginning and end which I need to remove it. Dec 21 06:19:33 Via handling raw HTTP reponse I am able to retrive it all but in this scenario I have to perform removal of intial and end tag work in onresponse method. Dec 21 06:20:31 In advance: there is no way to change at API side. Dec 21 06:56:10 hi Dec 21 06:56:24 hi Dec 21 06:56:36 guys, is there anyone with vpnservice experience here? Dec 21 06:56:38 :) Dec 21 06:56:46 hey guys, i'm trying to make my first $1M but idk what i'm doing. I want to make a setup program of sorts, that has several screens. each screen requires an input (like username/password, then the next screen phonenumber, etc) Dec 21 06:56:53 what would be the easiest way to do this? Dec 21 06:57:20 would I have to create multiple RelativeLayouts? Dec 21 06:57:28 and hide/show them as needed? Dec 21 07:00:08 you are a long way from $1M Dec 21 07:01:26 yup i know. a lot of learning. I know java but i don't know the android api Dec 21 07:02:04 tutorials are boring and demotivating ... so just dig right in, right? Dec 21 07:02:12 how would you go about creating multiple screens like that? Dec 21 07:04:08 is there a cheat sheet that'll save me the torture of going through a billion useless tutorials? Dec 21 07:04:39 no Dec 21 07:04:52 cheating is wrong Dec 21 07:04:57 don't do it Dec 21 07:05:39 VpnService experience? :P Dec 21 07:06:13 Melatonina: look. no one has time to go through all this crap... creating a basic app should be simple Dec 21 07:06:20 this isn't C Dec 21 07:06:41 creating a basic app in C actually is simple Dec 21 07:07:00 Is it? Dec 21 07:07:03 simpler than creating a basic Android app Dec 21 07:07:19 AReverser: everyone thinks coding android is simple. but it is not that really. Dec 21 07:07:52 Looks easy enough. I got a button to change text in a total of 5 minutes Dec 21 07:07:57 i installed the ide 10 minutes ago Dec 21 07:08:46 Time is the problem you know Dec 21 07:09:27 It feels so heavy coming from someone who codes in c++ Dec 21 07:09:33 the whole IDE, emulator, etc Dec 21 07:09:52 but i kinda like it... and eventually i'll learn it. but now i need to make an app and quickly ... Dec 21 07:10:08 AReverser: http://start-jandroid.blogspot.it/2011/01/android-multiple-screen-example.html Dec 21 07:10:39 Intent... i keep seeing that. Ok cool thank you Dec 21 07:10:58 btw is there an advantage to using NDK? The C++ version of android studio? Dec 21 07:11:03 anyone tried that? Dec 21 07:11:38 Using NDK you make 2 millions at once instead on only 1 Dec 21 07:11:53 that's the only difference Dec 21 07:12:28 So if you want to make 1 million $ or 3 million $ use the SDK Dec 21 07:12:32 yeah idk mixing C++ and android "apps" will produce some kind of cognitive dissonance for me Dec 21 07:12:55 because with NDK you can only make 2M$ or 4M$ or 6M$ but no odd numbers of M$ Dec 21 07:12:59 "managed C++" <- kill_self() Dec 21 07:13:31 Melatonina: an idea is an idea. i wouldn't touch "apps" unless i knew it was a good idea Dec 21 07:13:44 i come from the land of non-managed programming Dec 21 07:14:09 did you come from the 90's with a time machine? Dec 21 07:14:10 you know, kernels Dec 21 07:14:32 nah but i write the stuff that makes running your operating system possible Dec 21 07:14:46 so in a way i come from the 60s Dec 21 07:15:24 https://cosmos.codeplex.com/ Dec 21 07:15:47 haha Dec 21 07:16:50 APPS! Dec 21 07:16:53 AReverser: seriously speaking you could use multiple activities, like in that example, or a tabbed interface Dec 21 07:16:55 Evening. Dec 21 07:17:50 Cool Melatonina Dec 21 07:17:52 puff: are you in the west coast or in Asia? Dec 21 07:17:55 Makes sense..... Dec 21 07:18:09 Melatonina: No. Dec 21 07:18:21 Melatonina: I'm on the east coast. It's 2:18am here. Dec 21 07:18:40 puff: and you call that "evening"? :) Dec 21 07:18:51 Melatonina: Yup. Dec 21 07:18:55 how is an Activity related to a RelativeLayout? Dec 21 07:18:58 Melatonina: I could say "good morning" but. Dec 21 07:19:03 The latter is the type? Dec 21 07:19:59 AReverser: an activity as a View (to be visualized on screen). The activity's root view can be a RelativeLayout Dec 21 07:20:31 "an activity has as View..." Dec 21 07:20:31 okay, i ought to look into that. thanks! Dec 21 07:20:47 VpnService experience? :P Dec 21 07:22:03 AReverser: You need to learn the basics... I'm just doing that myself. Dec 21 07:22:13 yeah i feel off about this Dec 21 07:22:30 AReverser: I wish Android Development For Dummies was updated. Dec 21 07:23:35 It's pretty well written and takes my favorite approach for programming. He builds an app, starting with a super simple version of it. Then adds a feature, then adds another feature, etc. Dec 21 07:23:46 Each time he gives you a code listing, certain lines of the listing are labeled with numbers, and following the listing he explains each of the numbered lines. Dec 21 07:23:48 guys, is it possible(a simple approach) to forward captured packets with vpnservice on the phone(like a packet sniffer, just inspect packet and then forward) Dec 21 07:26:19 AReverser: Activities are classes that Android will instantiate and keep in memory, and then various events will cause Android to call methods on the Activity instance. Some of those events are things like user input, others are things like Android taking the activity instance out of memory because it needs to free up space. Dec 21 07:26:28 AReverser: And some of them are actually callbacks. Dec 21 07:26:51 this worked... i just created a new layout xml, and a next button that set it in focus Dec 21 07:26:54 boom, headshout Dec 21 07:26:56 shot* Dec 21 07:27:14 AReverser: You' Dec 21 07:27:15 You should probably read a few tutorials before being so gun ho about making a million dollars Dec 21 07:27:23 well like any other event driven api most things are callbacks/handlers Dec 21 07:27:23 AReverser: You're familiar with event listeners and etc in Java,r ight? Dec 21 07:27:35 puff: from GDI Dec 21 07:27:39 AReverser: GDI? Dec 21 07:28:07 AReverser: Ah, a windows thing? Dec 21 07:28:50 AReverser: what OS do you work on usually? Dec 21 07:31:53 wow my OS exploded Dec 21 07:32:00 this IDE is so heavy Dec 21 07:32:36 AReverser: what OS do you work on usually? Dec 21 07:32:45 AReverser: I'm not familiar with that. In java, when you want object A to be able to react to something happening on object B, you call objectB.setListener() and you pass in a bit of code that implements the event listener interface. This gets added to a list internal to objectB. When objectB changes state or whatever, it goes through that list and calls the event happened verb on each object. For example, for the Dec 21 07:32:45 WindowFocusListener, it has a windowGainedFocus() and windowLostFocus() methods. Dec 21 07:32:48 Windows10 Dec 21 07:32:58 AReverser: so you work at Microsoft? Dec 21 07:33:00 Usually what people do is make an anonymous inner class right in that setListener() call, which has a few simple lines of code to invoke whatever method needs to be invoked on objectA. Dec 21 07:35:33 lol puff Dec 21 07:35:40 With the WindowFocusListener, when those methods are called a WindowEvent is passed as a parameter. The event parameter then contains whatever data is necessary to describe the event; in the case of WindowEvent, a reference to the Window in question and an int that identifies the window. Dec 21 07:36:04 AReverser: The point of this digression is that the Intent class corresponds to the Event class. Dec 21 07:36:20 u sure about that?? Dec 21 07:36:28 AReverser: About which? Dec 21 07:36:33 about that monologue Dec 21 07:36:35 AReverser: What I just said? Fairly sure. Dec 21 07:37:39 Intent objects are created by various events. They contain some data about the event. The Android OS then invokes standard methods on relevant Activity instances. Dec 21 07:38:08 so what's a nonstandard method? Dec 21 07:39:38 AReverser: "standard method" as in, lifecycle methods; methods inherited from the base Activity class and automatically called by Android in various circumstances. Sometimes as a callback. Sometimes because the Activity's intent filter configuration matches an event and the user selects the app in the chooser menu. Dec 21 07:40:51 AReverser: do you work at Microsoft in the Windows 10 team? Dec 21 07:43:02 Melatonina: No. I'm in infosec/research... not with the Core devs Dec 21 07:43:04 hbu? Dec 21 07:43:49 Anybody is using PreferenceFragmentCompat view? I use SDK 24 and it tells me there's no "android.support.v7.preference" package although I see the source code in SDK directory :( Dec 21 07:46:58 whew this stuff is a breath of fresh air i must admit! Dec 21 07:47:26 And sometimes because your code explicitly creates an Intent using the class of the target activity. Dec 21 07:48:18 i'm not used to code thinking for itself. this IS 2016 though Dec 21 07:48:23 We created intents to act an indirection between activities, so that they can call each other without knowing about each other. Dec 21 07:49:25 AReverser: when you're doing a callback, you use a PendingIntent. Dec 21 07:49:36 CedricBeust: Cool. Dec 21 07:50:34 on Linux you usually use a PenguinIntent Dec 21 07:50:49 CedricBeust: I'm still learning this, am I getting it right? Dec 21 07:51:11 Yes Dec 21 07:51:14 Thanks. Dec 21 07:51:33 I need to get an updated book, the android books I have are 3 years old. Dec 21 07:51:43 And I understand that a ton changed since then. Dec 21 07:52:16 anyone used pdfbox before? Dec 21 07:52:17 I did a bit of messing around with Android but didn't get too deep into it. Dec 21 07:52:25 AReverser: nope. Dec 21 07:52:32 \ Dec 21 07:52:44 I think someobody here recommended the Busy Coder's Guide To Android. Dec 21 07:52:54 As being one of the most up to date. Dec 21 07:53:15 actually is very much outdated Dec 21 07:53:43 but it's a good exposition Dec 21 07:54:38 I liked the approach that the Dummies book used, as I mentioned, but I'd also like to find/read something that is more akin to the servlet spec. Dec 21 07:54:50 AReverser: code thinking for itself? Dec 21 07:55:24 oh, you watched the last Zuckerberg video Dec 21 07:56:50 brb Dec 21 07:58:31 And I mean the old school servlet spec, back when it was 30 pages, not the more recent ones :-) Dec 21 08:00:07 you guys are too much old school Dec 21 08:00:13 Melatonina: So are there any good, up to date android books? Dec 21 08:00:41 I don't know. I hate programming books. They all suck to me. Dec 21 08:01:33 Most do, yeah. Dec 21 08:01:49 I hate programming, basically Dec 21 08:02:01 Melatonina: Good for you :-) Dec 21 08:02:28 not really Dec 21 08:05:17 books are not even worth the reference Dec 21 08:05:48 those learn n in 21 days especially Dec 21 08:06:09 well, I have a Remote-Config question Dec 21 08:06:22 does it auto-fetch every time the cache expires? Dec 21 08:06:30 or do I need to manually ask every time? Dec 21 08:07:49 What remote config are you using? Dec 21 08:08:42 Firebase Remote-Config Dec 21 08:08:49 which version? Dec 21 08:09:06 9.8.0 Dec 21 08:16:04 Hm, I'm having trouble figuring out how to get this APK to build. Dec 21 08:16:11 I have an activity which is dominated by a full-screen display of images. The user perform some choices and operations, then they should press a "save" button to save the result. Is the "check" symbol a good choice for such button? Dec 21 08:17:38 I wouldn't find it great. Dec 21 08:17:50 But I think I've seen other apps use it that way. Dec 21 08:17:54 puff: what seems to be the issue Dec 21 08:18:08 would "SAVE" be better? the Android picture editing has a "SAVE" button Dec 21 08:18:16 Melatonina: That sounds sensible. Dec 21 08:18:17 picture editing activity Dec 21 08:18:25 Ok. I'll go with SAVE Dec 21 08:18:30 thepoosh: GEtting a gist ready. Dec 21 08:18:38 sure Dec 21 08:19:33 The "check" symbol means nothing to people outside the US, why not a simple label "Save"? Dec 21 08:21:10 Melatonina: https://developer.android.com/shareables/icon_templates-v4.0.zip Dec 21 08:21:21 check if there is a pre-existing save icon Dec 21 08:21:56 CedricBeust: ? Dec 21 08:23:22 thepoosh: I always check https://materialdesignicons.com/ Save icon usually have representation that remind of "saving to disk" or "saving to the cloud". Which are not very appropriate. I'll go with CedricBeust and puff suggestion and use "SAVE" like the Android image editing activity Dec 21 08:24:33 guys, is it possible(a simple approach) to forward captured packets with vpnservice on the phone(like a packet sniffer, just inspect packet and then forward without any vpn server) Dec 21 08:25:14 hero_biz: I'm afraid I have no idea. Dec 21 08:25:37 hero_biz: just connect to burp on your computer and check out the packets Dec 21 08:26:47 thepoosh: lol, I know that. But I need to forward packet. :) Dec 21 08:29:08 thepoosh: https://gist.github.com/anonymous/343c8182c2b83fd89b79e573aede337e Dec 21 08:35:03 thepoosh: In a nutshell, I follow the directions to include the mapbox jar in the project/app/build.gradle and it builds successfully in Android Studio. But Android Studio/Build/Build APK fails with FileNotFoundException on the jar file. And putting the same config lines in project/build.gradle gets me a an error. Dec 21 08:35:18 "Error:(22, 0) Could not find method compile() for arguments [com.mapbox.mapboxsdk:mapbox-android-sdk:4.1.1@aar, build_8jcqxz63ggeem18zbfrdrthrp$_run_closure2$_closure5@243e86b7] on object of type org.gradle.api.internal.artifacts.dsl.dependencies.DefaultDependencyHandler." Dec 21 08:40:41 Hm, where does Android Studio stick the gradle binaries? Dec 21 08:42:47 According to the android docs I should be able to invoke gradle from the command line, but when I try (using Studio/Tool Windows/Terminal to create the terminal, so it should have all of the appropriate environment variables.. shouldn't it?) gradle isn't there. Dec 21 08:43:53 Ah, gradlew's in the top level of the project directory. Dec 21 08:46:12 * raoul11 thepooshes thepoosh Dec 21 08:47:44 raoul11: !! Dec 21 08:47:51 hi buddy Dec 21 08:47:57 whats the score? Dec 21 08:48:00 puff: you added a jar? Dec 21 08:48:05 0-0 Dec 21 08:48:29 thepoosh: I added it to the project/app/build.gradle. Dec 21 08:48:42 puff: you need to add compile fileTree(dir: 'libs', include: '*.jar') Dec 21 08:48:56 or compile to wherever it is Dec 21 08:49:01 if it's a physical file Dec 21 08:49:15 oh, wait Dec 21 08:49:19 It's being fetched by gradle. I don't know if Gradle is caching it or what. Dec 21 08:50:33 thepoosh u think letting users pick their own nicknames is a bad idea? Dec 21 08:50:39 remove the dependency from the root build.gradle Dec 21 08:50:48 raoul11: hell no! Dec 21 08:50:52 it's a good idea Dec 21 08:50:55 Hm, I just noticed something odd about the error message, it's for an old version of mapbox, mapbox-android-sdk-0.7.4.jar Dec 21 08:50:56 but what about cusses Dec 21 08:51:08 thepoosh: okay, did. Dec 21 08:51:24 also, leave the mavenCentral there Dec 21 08:51:50 that would be o(n^) to regex from a list of foul words Dec 21 08:51:56 thepoosh: In the root build? Dec 21 08:52:02 yessir Dec 21 08:52:10 under repositories Dec 21 08:52:41 thepoosh: Ok. I just realized that in addition to the line I added, there was a compile() line from the previou developer that specified the old version of the mapbox jar. Dec 21 08:53:49 I wonder how that's gumming up the works. I'm trying commenting it out and rebuilding, see what happens. Dec 21 08:58:20 Is there a way to open password protected PDF files with the inbuilt PdfRenderer API? Dec 21 08:58:23 i can't seem to find anything Dec 21 08:59:17 Me4502: doesn't seem like it Dec 21 09:00:38 All I really found on the topic is unanswered stackoverflow pages :( http://stackoverflow.com/questions/30882742/opening-password-protected-pdf-document-and-rendering-in-android-using-new-pdfr Dec 21 09:02:37 Does anyone know a PdfRendering library for androdi that's still really fast, and supports passwords? Dec 21 09:03:00 Just needs to be able to open password protected files, and return a pixel array from a PDF page Dec 21 09:04:27 thepoosh: Okay, so when I commented out the compile line for the older mapbox api, I got a whole bunch of new and different errors. https://gist.github.com/anonymous/0bbc31a2e5cb1b3478497032e6ffd4c1 Dec 21 09:04:42 the older api? Dec 21 09:04:48 are you sure it's still live? Dec 21 09:05:16 puff: you passed the dex limit of 65k methods Dec 21 09:05:22 thepoosh: No, I"m pretty sure it's not supported by mapbox anymore, which might be a problem if the existing code base is incompatible with the new one. Dec 21 09:05:23 you need to add multidex support Dec 21 09:05:38 puff: https://developer.android.com/studio/build/multidex.html Dec 21 09:06:12 thepoosh: What about all of those inner class errors? Dec 21 09:07:41 Hm,I guess they're just warnings. Dec 21 09:12:06 thepoosh: Is the "module level build.gradle file" the one in project/app/build.gradle? Dec 21 09:12:52 Hm, this app is set to minSdkVersion 19, how old is that? Dec 21 09:14:27 hello i have an hard time getting my head around the FragmentPagerAdapter or PagerAdapter in general, how they work , and it's callbacks/lifecycles Dec 21 09:21:27 thepoosh: Okay, configured multidex, now rebuilding... Dec 21 09:24:56 thepoosh: Yay, that... *seemed* to go well? Different error at least: Content is not allowed in prolog. Dec 21 09:25:13 prolog?! Dec 21 09:25:19 WTF are you doing there? Dec 21 09:25:37 :D Dec 21 09:25:58 Not sure. Dec 21 09:26:25 thepoosh: This is a legacy codebase I inherited, I'm trying to get the dang thing to build, so I can start debugging it. Dec 21 09:26:25 Hi all, If you're using the Mobile Vision APIs to create a barcode scanner. Is there any possible way to include all the recources in my apk instead of checking if the the play services are up to date? Dec 21 09:27:06 I distribute my app for testing to devices which haven't installed the play-services or haven't got a google account set in the Play Store Dec 21 09:31:46 thepoosh: ahah, a typo when I edited the android manifest... at least I hope that's it. Yeesh, talk about cryptic error. Dec 21 09:32:27 thepoosh: Hm, back to the FileNotFoundException error on the old jar file. Dec 21 09:33:36 ?! Dec 21 09:33:52 thepoosh: nowait, that's because I'd uncommented that old jar file line. Dec 21 09:34:11 re-commented it and building now. Dec 21 09:34:58 wtf is AS so slow today Dec 21 09:35:50 it's the weather Dec 21 09:37:42 today? Dec 21 09:39:50 dont be mean guise Dec 21 09:40:15 its superslow, and without disabling powersaver i can barely do helloWorld Dec 21 09:47:37 thepoosh: Yay! It took several minutes, but it generated an APK. Dec 21 09:47:54 mazal tov Dec 21 09:54:06 thepoosh: Thank you, this has been very helpful. Dec 21 09:54:13 thepoosh: It's 5am here, I think I'll go to sleep now. Dec 21 09:54:48 thepoosh: Tomorrow I'll try installing and running this thing, then set about figuring out how to debug it. I guess the first step will be to figure out how to see the logs while it's running. Dec 21 09:55:47 hello guyz need help, In retrofit is it possible to catch the reponse or parse it before arriving at onResponse callback Dec 21 09:56:27 i have one live api which giving me the malformed json response attched with string tags attached in beginning and end which I need to remove it. Dec 21 09:58:20 min2: set an interceptor in the underlying OkHttpClient Dec 21 09:58:51 min2: http://stackoverflow.com/questions/32294557/retrofit-intercept-responses-globally Dec 21 09:59:36 ohh wow.. thanks Melatonia let me explore this.. Dec 21 10:00:06 *Melatonina Dec 21 10:11:57 what does android:state_hovered mean on a touch sensitive device like a smartphone? Dec 21 10:12:49 depends on device Dec 21 10:12:56 most of them will work with a mouse Dec 21 10:13:06 some of them support detecting hover over touchscreen Dec 21 10:14:42 ok Dec 21 10:14:45 thanks Dec 21 10:15:00 I guess Android is not only my smartphone Dec 21 10:21:26 Any idea why my geofencing would only trigger sometimes? https://github.com/Syzygy2048/GeofenceTestApp Dec 21 10:22:30 I have an app that has virtually the same implementation and doesn't trigger them at all. Dec 21 10:25:55 hello, i have some trouble with tcp sockets, any help would be appreciated. The problem is that while the socket is still connected, incoming messages sometimes not Dec 21 10:26:21 detected in my app, but i listen the socket with wireshark, server sends packets to me Dec 21 10:41:48 Hello, is it possible that HttpClient in some cases sends multiple identical requests ? On timeout or some request glitch ? Dec 21 10:57:04 how do I resolve ?android:attr/selectableItemBackgroundBorderless ? Dec 21 10:57:11 where is it defined? Dec 21 12:05:29 Hello everyone! This is not a question but rather an invitation to an architectural discussion. I have been using MVVM with databindings in my companys application for quite some time now and it general i really love it but there are a bunch of stuff that can not really be "bound" so to speak. Stuff like error events and similar things. So for instance if an API call made by the ViewModel responds with an error i want to show a dialo Dec 21 12:05:29 or a snackbar. This is something i don't want to be handled in the ViewModel since i want to keep the ViewModel "pure" so that i can simply test it with unitttests. How would you go about this problem, how do you notify the activity/fragment showing alert dialogs and snackbars? Most other Dec 21 12:05:50 MMVVM implementations doesn't have the problem of an activity/fragment. Dec 21 13:08:48 I have two fragments with almost identical layouts, except one has a button named "Edit Profile" and the other a button named "follow". I'm trying to create a BaseFragment class for those two Fragments, but I'm not sure how to write onCreateView() - is it possible to have a base layout class and use it in onCreateView or is there another way ? Dec 21 13:10:03 Maybe check a variable's value and inflate the appropriate layout ? Dec 21 13:52:48 csst0111: depends what you mean Dec 21 13:53:28 you could have an abstract method on the baseclass returning the id of the layout, then have the subclasses override that method, and have the baseclass use that id to inflate Dec 21 13:56:25 what. edittext inside a TextInputLayout only shows hint when i start typing Dec 21 14:09:33 What's a good way to copy my apps database to a public storage location? (so i can easily pull it and load it with a database viewer) Dec 21 14:10:49 Syzygy: I do that in an app of mine, lemme find you a snippet Dec 21 14:11:18 thanks Dec 21 14:11:22 you should be able to adb shell in and run-as Dec 21 14:11:29 and jsut copy it manually Dec 21 14:11:32 I tried that but it didn't work Dec 21 14:11:54 hm. works whenever i do it for testing Dec 21 14:12:13 weird... seems to work now Dec 21 14:13:09 I know i can run adb pull /data/... but how do I do that from the shell? Dec 21 14:13:19 or should I copy it to /sdcard ? Dec 21 14:13:38 Syzygy: https://gist.github.com/pimduin/c9288a87ccd7e037da640456c828ed2a Dec 21 14:14:08 I use the Apache Commons FileUtils lib to copy the file though Dec 21 14:14:31 But that should work with any code that copies files Dec 21 14:15:05 what's the scope of getExternalFilesDir? Dec 21 14:15:07 Syzygy, I copy it to sdcard and adb pull it Dec 21 14:15:30 Syzygy, you can also stack shell commands so 'adb shell run-as cp ...' Dec 21 14:15:40 Syzygy, so you just have 2 commands from your dev system to copy & pull Dec 21 14:16:48 Syzygy: Activity/Context Dec 21 14:17:11 pduin: thanks for your help, it seems like dragorns solution works for me Dec 21 14:17:48 also thanks to dragorn of course Dec 21 14:20:22 np; if you do a lot of it you'd want to do it in code, if you're just debugging a db I'd do it in adb shell Dec 21 14:21:30 is there a good manual for importing projects without grade files into android studio? trying to build a project that i cloned from a repository, but the source generator can't find the manifest even though it is there Dec 21 14:24:23 i think you meant "modules" not "project", and you can always copy/paste any files into an actual module Dec 21 14:25:44 i guess Dec 21 14:35:12 i guess i need to select 'check out project from version control' instead Dec 21 14:36:57 but android's documentation doesn't seem to cover how to set up gradle after importing modules Dec 21 14:38:51 I think, unfortunately, the answer is more or less "look at existing stuff" and "write a file that looks like it". There's a bunch of tutorials on raw gradle stuff out there independent of android specifics. Dec 21 14:40:48 <_rm> JuliusN: remember to add your modules in settings.gradle Dec 21 14:41:05 <_rm> only then are they available as local dependencies in your module's build.gradle Dec 21 14:41:19 there is no settings.gradle Dec 21 14:41:38 i thought that the placement of the gradle files should be quite specific Dec 21 14:42:23 i imported the modules, i know the required dependencies, i just don't have any source for instructions on how to set the gradle files properly Dec 21 14:43:25 <_rm> no settings.gradle huh Dec 21 14:45:04 <_rm> something like this https://gist.github.com/superjohan/81104067d5adbb25acef43faf09717a4 Dec 21 14:45:39 <_rm> (that's verbatim from one of our work projects, with the names changed) Dec 21 14:46:02 <_rm> we have a script to generate settings.gradle based on which repos exist on disk Dec 21 14:50:28 in import project window, should i select "import project from external model" with gradle? Dec 21 14:51:27 if so, what should i set as gradle home directory? Dec 21 14:54:53 <_rm> i don't know Dec 21 14:54:59 <_rm> i just do all the configs by editing files :) Dec 21 14:55:03 <_rm> no idea how to do any of that in the UI Dec 21 14:55:32 hi guys i got this error https://hastebin.com/unezuyuloc.vbs when i was trying to build a custom kernel and add some custom governor. Any solution? thanks Dec 21 14:57:41 <_rm> wrong channel Dec 21 14:58:57 compiling a shared library that references a static library and am doing it wrong in the android.mk Dec 21 14:59:22 i get undefined reference to the following object Dec 21 14:59:28 cef_ref_counted.cc Dec 21 15:00:12 this is compiled into the static library. however when include this file instead of referencing. the undefined reference is gone Dec 21 15:01:13 has anyone successfully compiled shared library that referenced static library with Android.mk? Dec 21 15:01:46 When I include the following variable: LOCAL_STATIC_LIBRARIES Dec 21 15:02:05 it causes undefined references in the static library which compiles fine on its own Dec 21 15:03:02 Should I used two Android.mk, build the static library, and include the static library as a prebuilt? Dec 21 15:08:00 if i start a new project and try to import modules, studio asks me to specify location for gradle or eclipse project Dec 21 15:08:45 but the repository that i cloned has no gradle files Dec 21 15:12:05 Hi - I Dec 21 15:12:12 I'm having problems with my Grundle Dec 21 15:12:15 Project won't build Dec 21 15:12:22 Help?! Dec 21 15:19:05 hithere https://github.com/shardul/Android/blob/master/ChromeStyleHelpPopups/src/com/shardul/android/chromestylehelppopups/ChromeHelpPopup.java#L156 Dec 21 15:20:10 That's some gay code Dec 21 15:20:13 regarding to my issue: according to a stackoverflow answer studio should set up gradle files upon importing a project. but it doesn't. http://stackoverflow.com/a/27820788/5963217 Dec 21 15:20:13 I was about to substitue deprecated "new BitmapDrawable())", but I do not understand why is author having this condition there Dec 21 15:20:29 JuliusN: Gradle? You mean Grundle? Dec 21 15:20:39 Pls spell correctly next time Dec 21 15:20:40 no Dec 21 15:20:42 mBackgroundDrawable is always null Dec 21 15:22:28 bolovanos: Did you forget to fix your Grundle? Dec 21 15:23:34 any helpful advice before I start to reverse destroying it? Dec 21 15:26:22 bolovanos: Check your Grundle Dec 21 15:28:18 grundle Dec 21 15:28:18 thanks Dec 21 15:28:40 even if it were little bit funny :) Dec 21 15:28:49 he does it every day no? Dec 21 15:28:58 Quite often, yeah Dec 21 15:29:29 he has gone mad, because tried to dev for android platform :) Dec 21 15:36:28 what's the appropriate room for aosp related questions? Dec 21 15:36:32 android emulator for instance Dec 21 15:41:41 gr1sha, maybe. This channel is very app-centric so if you're trying to compile a custom rom you're better off with maybe android-root or the xda web forums Dec 21 16:02:35 t Dec 21 16:02:55 Why is this so dead? Dec 21 16:22:34 WriteLn.Console ( " Hello " ) ; Dec 21 16:22:35 If I want to build an app using one of the available online mobile app builders. Will my app be hosted on their infrastructure so I won't be able to download that app after I finish creating it? Dec 21 16:23:02 depends on the 'app builder software' Dec 21 16:23:15 this is android-dev Dec 21 16:24:07 On not that note, is it still okay to use ListView or is RecyclerView always preferred Dec 21 16:24:20 depends on how lazy you are Dec 21 16:24:21 Building your app with Android IDE will give you full control on over your app and code. Dec 21 16:24:46 lizx6451: If there are no list elements that will leave the screen, there's zero reason to use RecyclerView Dec 21 16:24:50 lizx6451, I'm still using Listview's as much as I can. Dec 21 16:26:09 Here's the list that I've got: appery.io,Mobile Roadie,Good Barber,Appy Pie,AppMachine,GameSalad,AppMakr,ShoutEm,AppInstitute,Como,AppsBuilder,Mobincube,AppMachine. Dec 21 16:26:14 ^So if there was a list of elements that could potentially go off screen RecyclerView would be better? Dec 21 16:26:20 Have fun doing that research yourself. Dec 21 16:26:54 lizx6451: Yeah, if it's lots of them. ListView starts to get slow with less than 200 items Dec 21 16:28:00 Dagmar: Ok, Thanks. I think it could be more than that. So I guess I'll have to go with a Recycler Dec 21 16:28:51 c0mrade: wierd, I'm not able to find Android IDE in your list.. Dec 21 16:29:00 lizx6451: Yeah if you have more than 200 entries you *definitely* want to be using RecylerView, which is not that tricky if you just follow along with a tutorial the first time or two Dec 21 16:30:24 Dagmar: Yeah, I've done one using a tutorial and it wasn't that bad. But IIRC you have to manually do a lot of boilerplate for a checkbox, is that true? Dec 21 16:31:04 Yes, sadly Dec 21 16:31:09 :( Dec 21 16:31:35 Personally I was more irritated by being unable to find documentation on WTF I needed to set to change the appearance of the checkbox reliably Dec 21 16:31:45 ...so I just bloody wrote my own Dec 21 16:31:56 Panacea: I mentioned online ones. Android IDE is not an app builder, its an IDE that lets you build things from scratch. Dec 21 16:32:21 c0mrade, I know that's the joke. Dec 21 16:32:29 .gif Dec 21 16:32:55 Dagmar: Yeah it seems like it's even hard to just make dividers Dec 21 16:37:05 lizx6451: Just make a 1px 9-patch image and use an Imageview for that Dec 21 16:37:28 ...or 3x3 image if you want to get fancy Dec 21 16:37:59 But I also so that there are websites that provide free and paid app source code and templates that you can simply download and build on top and modify etc... Yall got any comments on that? Anyone used that? Dec 21 16:38:07 You got this https://www.codester.com/categories/29/android-app-templates-source-codes and this https://codecanyon.net/category/mobile/android Dec 21 16:38:41 Those sites are not for people who want to actually write usable software Dec 21 16:38:44 Is there a fix for putting 2-byte emoji in a strings.xml file? Dec 21 16:39:02 I know they can go in the source as constants, but I wanted to include them in translations Dec 21 16:39:04 They're for people who want to pretend they can code, and/or simple-minded adults Dec 21 16:39:11 Dagmar: Why? What do you mean? Dec 21 16:39:13 Dagmar, Oh that is clever, going to do that Dec 21 16:39:43 Dagmar: I want functionality, I don't want to brag about the fact that I can code. I just need 'ready made' stuff that I will tweak a little. Dec 21 16:39:52 CyberJacob: huh? Use the escaped values like \023 and so forth Dec 21 16:40:13 c0mrade: Then start poking at those websites. Dec 21 16:40:24 what's the best way to perform a search on a JSONArray of JSONObject's? Dec 21 16:40:57 c0mrade, According to the Uber guy today "none of the popular frameworks out there (xamarin, react native, etc) have actually measured up to their promise when we researched them, particularly with regards to the "Write once, deploy everywhere" Dec 21 16:41:56 Dagmar: any idea how I convert them? I've just got 🇬🇧 at the moment Dec 21 16:41:56 https://www.reddit.com/r/androiddev/comments/5jhd0z/engineering_the_architecture_behind_ubers_new/dbg8u3s/ Dec 21 16:42:34 lizx6451: In a little bit less techy way, can you explain what you said? Aren't the links that I presented good for what I am looking for, it's source code of ready app templates that I can build on top and have the source code and full control on my box? https://codecanyon.net/category/mobile/android and Dec 21 16:42:34 https://www.codester.com/categories/29/android-app-templates-source-codes Dec 21 16:44:37 CyberJacob: Un momento... I have an excellent example here somewhere Dec 21 16:44:49 c0mrade, Oh sorry I thought you were talking about something like Xamrin. Dec 21 16:45:26 lizx6451: Well do you know anything about what I've asked... Dec 21 16:45:28 Also Is there any documentation for android shell? Like it's structure, how can someone create shell scripts maybe, do cron jobs, what executable are available, what can the user access and what requires root etc, neet things that you can do? Dec 21 16:45:49 c0mrade, Sorry not particularly Dec 21 16:46:38 CyberJacob: I hadda deal with this awhile back... Note what they show at http://www.fileformat.info/info/unicode/char/2640/index.htm Dec 21 16:47:48 CyberJacob; ...although you *can* just paste the emoji into a definition, it's probably not the nicest thing to be doing. See in there where it says "C/C++/Java source code", it shows you can escape the hex with just \u Dec 21 16:48:36 Dagmar: I tried just pasting it, but got a big error when trying to use the string Dec 21 16:48:51 I guess I've been getting lucky so far then Dec 21 16:49:21 Sorry, big traceback. This was the actual error: input is not valid Modified UTF-8: illegal start byte 0xf0 Dec 21 16:49:43 This is with _Android Studio_? Dec 21 16:49:52 yes Dec 21 16:50:00 those escape codes do the same thing Dec 21 16:50:44 I think it's because each character is 2 bytes, that might be what's messing it up Dec 21 16:51:08 Java's supposed to be cool with that Dec 21 16:51:31 Apparantly not :( Dec 21 16:51:36 Full traceback, if it helps https://gist.github.com/cyberjacob/d32bad211057abd866e6a4ee8a5da5cc Dec 21 16:51:58 Oh *facepalm* when you say bytes I still think 8-bits Dec 21 16:52:18 I'm trying to add a library to Android Studio but I keep getting Gradle build errors Dec 21 16:53:36 CyberJacob: I'm pretty sure it's just a matter of splitting them into two like \uD83D\uDE13 Dec 21 16:53:46 yeah, I already had that Dec 21 16:57:27 CyberJacob: well that's definitely the way to do it. I just tested it here Dec 21 16:57:46 I'd only bothered with 16-bit strings before, not longer ones Dec 21 16:57:56 Hey, Why this code doesnt open a new fragment? http://dpaste.com/38M3FDW Dec 21 17:02:37 tsousa: At a guess, you're trying to replace a fragment that doesn't exist Dec 21 17:19:52 displayMetrics.heightPixels https://developer.android.com/reference/android/util/DisplayMetrics.html#heightPixels Dec 21 17:21:04 why does it differ ie in API 16(800px) vs API 22 (736px) for an 800 px display? Dec 21 17:23:36 it seems to me that sw buttons (back, home) is substracted from real height Dec 21 17:23:44 is it possible? Dec 21 17:24:47 Why would backup over ADB fail versus directly invoking bu backup on the shell? Dec 21 17:41:23 Does adb backup require root? Dec 21 17:42:00 Should not... Dec 21 17:42:04 Backup is just 'copy'. Dec 21 17:42:23 It's not logical that it should require root. Dec 21 17:47:49 Is there a restriction that'd stop me from backing up the contents of my sdcard with the -shared flag? It seems as though it starts, but stops way short.. Dec 21 17:48:19 Lots of reasons. A corrupted filesystem, lack of selinux contexts Dec 21 17:48:48 "root" is not guaranteed to let you access anything y9ou want anymore Dec 21 17:48:56 It hasn't been since Android 4.4 Dec 21 18:20:25 So I’ve gotten an error for not setting our java version to 8 when targeting API 24+, does that mean we’re required to compile with jack? Dec 21 18:33:21 No idea about jack but java 8 is probably a necessity Dec 21 18:34:52 Hmm.. fun Dec 21 18:36:29 konk3r, https://source.android.com/source/jack.html Dec 21 18:48:51 what is the best way to pass a list to a fragment? Dec 21 18:50:49 or it's the best way to call a service every fragment? Dec 21 18:51:46 That depends, your fragment could call a data layer to request the list or you could pass the list into the fragment in the argument bundle Dec 21 18:53:41 i have a service that handles all the db related operations. i though in calling it in the activity and not in every fragment. but that also put in the question in how to pass a list in a bundle... Dec 21 18:54:32 tsousa: the model should implement the Parcelable interface Dec 21 18:55:22 tsousa: then you simple do Bundle#putParcelableArrayList or Bundle#putParcelableArray Dec 21 18:55:25 And then there is a special command to write and read the list of it, see http://stackoverflow.com/questions/15543033/how-to-write-list-into-parcel Dec 21 18:55:57 yeh. i will need to figure that out. never used parcelable Dec 21 18:56:10 tsousa: want some help Dec 21 18:56:16 And look into the newInstance pattern for fragments for building that: http://www.androiddesignpatterns.com/2012/05/using-newinstance-to-instantiate.html Dec 21 18:56:32 you can dl an addon for android studio which converts a class to parcelable Dec 21 18:56:36 forget what its called Dec 21 18:57:31 no i dont want a addon. i want to learn how to do it for myself Dec 21 18:57:40 konk3r: another one is a public static showInstance for a DialogFragment.. i like that Dec 21 18:57:54 tsousa: addon? Dec 21 18:58:03 Napalm: Nice, I’d never thought of that Dec 21 19:00:05 konk3r: yea, public static MyDialogFragment showInstance(FragmentManager fm, int id){ MyDialogFragment frag = MyDialogFragment.newInstance(1); fm.show(frag, "myDialogTag"); return frag; } Dec 21 19:01:50 konk3r: if you pass in getChildFragmentManager() to that then in MyDialogFragment#onAttach you can try casting getParentFragment() to your Dialog's interface before the Context. Then your DialogFragment can report its results to its Parent fragment. Dec 21 19:04:02 is it possible to put a service bind connection global, that way i have it in every activity and fragment? Dec 21 19:24:20 can a broadcast be sent with data? Dec 21 19:51:28 what, TextInputEditText with a .setOnEditorActionListener not catching up on key events Dec 21 20:48:33 How can I force the back navigation button to act like the one on the top. Dec 21 20:49:55 wait nm Dec 21 20:51:43 hm Dec 21 21:00:31 How can I read a string from strings.xml without it losing its (internal) xml tags (just using this during development)? Dec 21 21:01:15 MarkRS: Do you mean attributes? Dec 21 21:01:51 the whole thing. I've copied the contents of a fully formed xml file into a string, just to save loading it from somewhere "external" Dec 21 21:02:09 I want to read it as if it were the file Dec 21 21:02:29 I still don't understand. Can you pastebin your strings.xml? Dec 21 21:03:01 noahmg123: Hmm, hold on, I'll paste a small version... Dec 21 21:03:04 ok Dec 21 21:05:31 MarkRS: include the xml file as a raw resource or asset Dec 21 21:06:15 noahmg123: http://pastebin.com/zBGSdfNn Dec 21 21:06:38 Melatonina: Err, 'scuse my ignorance. How does that work? Dec 21 21:07:09 Yeah that's not how you would do what you want Dec 21 21:07:13 :/ Dec 21 21:07:33 MarkRS: are you using android Studio? Dec 21 21:07:38 yes noahmg123 Dec 21 21:07:56 I'm pretty new with it too, I'm having great trouble using emulated files Dec 21 21:08:00 MarkRS: OK, you you have the Project panel open? Dec 21 21:08:08 so I thought this would be an easy way to put off that problem Dec 21 21:08:08 MarkRS: google "android asset file" "android raw resource" Dec 21 21:08:16 I have Dec 21 21:08:27 MarkRS: OK, you you have the Project panel open? Dec 21 21:08:30 yup Dec 21 21:08:33 MarkRS: http://stackoverflow.com/questions/9544737/read-file-from-assets Dec 21 21:08:35 OK Dec 21 21:08:48 Thanks Melatonina Dec 21 21:08:50 MarkRS: http://stackoverflow.com/questions/15912825/how-to-read-file-from-res-raw-by-name Dec 21 21:09:03 Melatonina: That is good, except there is a specific way for XML files Dec 21 21:09:21 MarkRS: right-click the res folder Dec 21 21:09:52 MarkRS: New -> Android Resource Directory Dec 21 21:10:03 MarkRS: Name it xml Dec 21 21:10:19 put your xml file in there Dec 21 21:10:27 resource type? raw? Dec 21 21:10:46 xml Dec 21 21:10:48 ooops, no, "XML" i gues Dec 21 21:10:51 yeah Dec 21 21:10:51 yeah, ta :) Dec 21 21:11:12 and then one (or both of those answers that Melatonina pointed me to? Dec 21 21:11:41 MarkRS: let me check Dec 21 21:12:45 MarkRS: no, but the idea is similar. How much do you know of Java? Dec 21 21:12:58 a little. But I can Google :) Dec 21 21:13:22 Another question: does this have to be in XML? Dec 21 21:13:45 yes Dec 21 21:13:54 Why? Dec 21 21:14:14 Or at least, for structured data to be distributed to apps, is there a better format? Dec 21 21:14:49 I've got a full (I hope) XML parser set up, I just need my xml to push through it :) Dec 21 21:15:06 I've done (man)(many) years of programming, just not much java, yet Dec 21 21:15:15 MarkRS: OK, so you already have learned XML parsing in Java? Dec 21 21:16:07 I've found https://developer.android.com/training/basics/network-ops/xml.html and modified it for my structure Dec 21 21:16:51 MarkRS: you could also embed a SQLite database in your app as raw resource. But if you are ok with XML, go with XML Dec 21 21:16:57 MarkRS: Ah, OK cool Dec 21 21:17:07 :) Dec 21 21:17:59 MarkRS: Here is a whole page about resources: https://developer.android.com/guide/topics/resources/providing-resources.html (I will also give you a proposed solution to your problem) Dec 21 21:18:23 noahmg123: "I" or "it"? :) Dec 21 21:18:29 I Dec 21 21:18:35 I am pating something Dec 21 21:18:35 you're a star, thanx Dec 21 21:18:38 ok Dec 21 21:19:22 It looks like I ought to be able to set up a virtual sd card, but b*ggered if I've been able to yet :( Dec 21 21:19:30 Resources res = activity.getResources(); XmlResourceParser xrp = res.getXml(R.xml.your_resId); Dec 21 21:19:49 your_redId is just the filename Dec 21 21:20:00 res* Dec 21 21:20:04 oooh, that looks a lot easier than what I've been doing. Dec 21 21:20:24 Well that only gets you to a XmlResourceParser Dec 21 21:20:34 the rest you have to do on your own. :) Dec 21 21:20:46 What is the xml filename? Dec 21 21:20:48 That's fine. I've got all that done. Just need to push my xml through it now to make sure it works Dec 21 21:20:53 OK Dec 21 21:20:55 cool Dec 21 21:20:56 L1 Dec 21 21:21:02 L1.xml? Dec 21 21:21:04 yup Dec 21 21:21:10 catchy, eh? :) Dec 21 21:21:16 :) ok so it will probably be: Dec 21 21:21:21 Resources res = activity.getResources(); XmlResourceParser xrp = res.getXml(R.xml.L1); Dec 21 21:21:37 As long as it is in the xml folder you just created Dec 21 21:23:06 Thanks noahmg123 (& Melatonina), just getting there now... Dec 21 21:23:11 cool Dec 21 21:33:07 noahmg123: Android Studio insists on the file being called L1.xml , but when I try to refactor it to that, it complains that the resource xml/L1 already exists Dec 21 21:37:17 How can i when a fragment come backs to focus update the listview? Dec 21 21:37:41 is it on resume? Dec 21 21:38:14 onResume Dec 21 21:39:00 MarkRS :P Dec 21 21:39:08 MarkRS: you still there Dec 21 21:39:17 s'ok noahmg123, an external file manager did the trick Dec 21 21:39:23 Cool Dec 21 21:39:30 thanks. Odd Studio Dec 21 21:39:35 Is the XML parser working? Dec 21 21:39:53 MarkRS: ^ ^ Dec 21 21:40:04 haven't quite got there yet noahmg123... a minute or two... Dec 21 21:40:07 ok Dec 21 21:41:38 noahmg123: hmmm, I've got some work to do rejigging it. Previously I was using a factory to generate a XmlPullParser and feeding it the string converted to a stream... Dec 21 21:41:42 doesn't quite work like that now :( Dec 21 21:51:13 so can you have an alpha text in a button (10% transparent) so the text color is really just the background color ? Dec 21 21:52:19 dar10s: it would be the background color of the button. Thus the button would appear empty Dec 21 21:52:39 MarkRS: you shouldn't need to be working with streams if you did the code I gave you Dec 21 21:53:00 yes noahmg123, that's (part of) what I'm re-jigging Dec 21 21:53:08 ok. :) Dec 21 21:53:28 I was thinking blue background and white button . then the text is also blue. but I needed to do this for multiple pages so setting alha on the text was my 1st thought Dec 21 21:53:28 seems like there's coding difference between using a proper file and using this Dec 21 21:53:54 differences Dec 21 21:54:00 dar10s: you didn't read what I wrote Dec 21 21:57:06 I thought I did Dec 21 21:57:22 dar10s: you may want to use styles to save code Dec 21 21:58:09 you can't create a hole in a view with the alpha settings Dec 21 21:58:31 maybe you can if you create a custom view Dec 21 21:58:54 but in your case probably the most appropriate solution is using styles Dec 21 21:59:28 hey Dec 21 21:59:44 why am i getting this messages in android logcat [ 12-22 03:22:04.853 21172:21172 E/ ] Dec 21 21:59:44 [adb] handle the adb command, and the command = adb shell:cat /proc/net/xt_qtaguid/stats | grep 10551 Dec 21 21:59:52 singam: don't paste in channel Dec 21 21:59:52 its very fucking bad and annoying Dec 21 22:00:12 Lvl4Sword: sure.. can u please tell me how i fix this Dec 21 22:00:32 singam: what are you getting it from? Dec 21 22:00:44 in logcat ... everywhere Dec 21 22:00:46 singam: no bad words in channel Dec 21 22:00:52 Pasting two lines doesn't seem problematic. Dec 21 22:01:03 Though I guess there was some whitespace. Dec 21 22:01:07 jesus. fine Melatonina Dec 21 22:01:15 singam: Is it your process or another process? Dec 21 22:01:16 ya its only two lines Dec 21 22:01:20 its my process Dec 21 22:01:27 the app im debugging Dec 21 22:01:39 singam: are you wondering why you get [ 12-22 03:22:04.853 21172:21172 E/ ] ? Dec 21 22:01:43 yes Dec 21 22:01:46 i need it removed Dec 21 22:01:53 why do you need it removed? Dec 21 22:01:54 i cant debug properly .. i cant see my log messages Dec 21 22:01:58 onboarding animations like this are done using custom widgets? https://material.uplabs.com/posts/onboarding-animation-5896f29e-00e6-40fb-aa69-e32c9b84acee Dec 21 22:02:06 singam: You can filter stuff. Dec 21 22:02:12 not this one Dec 21 22:02:14 its there forever Dec 21 22:02:17 Hmm. Dec 21 22:02:26 "forever"? Dec 21 22:02:29 Can you paste the whole thing? Even if you hide your app ID. Dec 21 22:02:34 i been using System.out.println and use debug tab to see my messages .... but after update to canary its not working Dec 21 22:02:55 where do i paste Dec 21 22:03:05 @singam: pastebin Dec 21 22:03:46 thanks ventura Dec 21 22:03:46 http://pastebin.com/txjuBGSV Dec 21 22:03:48 here guys Dec 21 22:04:54 What makes you think it's your process? I'm not seeing anything there to suggest that it is. :S Dec 21 22:06:03 Also, what do you mean by "the debug tab"? In general you should use the Log class and the Android Monitor tab (Alt/Cmd+6). Dec 21 22:06:27 Actually, might not be Cmd+6. Is Alt+6 on Windows, though. Dec 21 22:06:34 i used to print into Debug tab console ... using System.out.println() Dec 21 22:06:40 it used to work till the new fucking update Dec 21 22:06:46 Try `Log.d` instead. Dec 21 22:06:49 Just out of interest. Dec 21 22:07:05 yes im now doing it ... thats hwen i get this DAMN FUCK messages i pastebiineed Dec 21 22:08:39 `System.out.println("test");` works here. Dec 21 22:08:57 yes but i still get those spam messages Dec 21 22:09:01 Is English a secondary language of yours? 'DAMN FUCK' sounds very serious to my English ears. Dec 21 22:09:03 i cant even filter this cock sucks Dec 21 22:09:04 Like life-of-death serious. Dec 21 22:09:08 or* Dec 21 22:09:39 ohh no im just watching lots of english movie thats all sorry if i offended u Dec 21 22:10:44 @singam: please, be respecful Dec 21 22:10:53 ofcourse sir im sorry Dec 21 22:10:59 @singam: take a look at https://github.com/JakeWharton/pidcat Dec 21 22:11:34 singam: Are you using the 'logcat' tab in Android Studio right now? Dec 21 22:11:48 Yes Dec 21 22:11:55 android monitor logcat Dec 21 22:12:06 ventura: thanks but i dontk now how to set it up Dec 21 22:12:35 Is it really showing "[ 12-22 03:22:04.850 21172:21172 E/ ]", or did you remove your app ID from there? Dec 21 22:12:48 no i didnt Dec 21 22:12:53 i just pasted the whole thing Dec 21 22:13:36 Hmm, maybe you have LogCat configured strangely. Try clicking the gear icon on the left of the 'logcat' tab (you might have to click >> first). Dec 21 22:13:42 Make sure all four are checked. Dec 21 22:14:41 THANKS BRAA Dec 21 22:14:48 TacticalJoke: I think ITS WORKING Dec 21 22:14:52 i ticked of 3 of em Dec 21 22:15:08 Is it another process after all? Dec 21 22:15:38 its not i think..its coming from Adb Dec 21 22:15:44 @TacticalJoke: animations like https://material.uplabs.com/posts/onboarding-animation-5896f29e-00e6-40fb-aa69-e32c9b84acee are done using custom widgets? Dec 21 22:16:05 or are just images being moved? Dec 21 22:16:08 ventura: Hmm, not sure. Haven't done much with animations. Dec 21 22:16:18 me neither Dec 21 22:16:53 It is actually possible to do that with an animated GIF and the android.graphics.Movie class. Not sure if that's a good solution, though. Dec 21 22:17:00 can i use webp animation inside imageview? Dec 21 22:17:15 actually i hate doing it Dec 21 22:18:18 gif vs webp which is best? Dec 21 22:18:48 singam: ImageView doesn't support animated images. Dec 21 22:19:04 I think it supports static WebP content (but I'm not certain). Dec 21 22:19:29 thanks again TacticalJoke Dec 21 22:22:05 Just use mp4, c'mon -_- Dec 21 22:22:52 I have a recyclerview that works great in later versions of android but goes out of order on earlier versions that I emulate (since I do not have any physical devices to test on) Dec 21 22:24:23 hey all, i am hoping you can help me out. I tried 20+ diff articles and cant figure out... how to point my Android VM to my localhost web service app (lets say which is http://ws.dev vs the real url the app uses). Dec 21 22:24:28 noahmg123: Strange, because RecyclerView versions are not tied to Android versions. Dec 21 22:24:52 I can also put the real url the app uses in my hosts file, and point that actually locally. but Android VM doesn't seem to look at my Windows hosts file at all. so how can i make this local debug setup work? Dec 21 22:25:11 alot of articles just say use IP, but i think thats a copout Dec 21 22:25:28 TacticalJoke: I think it may be the emulation bit. Where the limited processing capacity makes the loop run out of whack Dec 21 22:25:42 monk12: Does 10.0.2.2 work? https://developer.android.com/studio/run/emulator-commandline.html#networkaddresses Dec 21 22:26:24 noahmg123: I can't imagine that ever happening without there being a bug somewhere, though (either in your code or in the RecyclerView code). Dec 21 22:27:13 The emulator does do crazy things at times, but this would be such a specific crazy thing. Dec 21 22:27:26 TacticalJoke: yeah. I haven't tested it in a bit or that thoroughly so I am not entirely sure what the issue is. Dec 21 22:27:38 hey TacticalJoke, if it visit that url in the VM, it will goto my default website i setup (but not my Virtual Host where the actual web service is setup) Dec 21 22:28:07 basically it goes to my phpinfo.php file on the default localhost, not my web service app virtual-host Dec 21 22:28:13 monk12: Oh, sorry, I misread your messages. Not sure. Dec 21 22:30:41 Is it possible to use linux kernel code in a NDK app? Dec 21 22:31:22 I'm supposed to port POSIX code and this is the first time I'm getting in contact with the NDK. I need crc32.h, which is from the linux kernel. Dec 21 22:31:42 So is it as 'easy' as including the kernel header and relevant sources? Dec 21 22:40:10 @TacticalJoke: are you familiar with RxJava? Dec 21 22:40:46 anyone on rxjava 2 Dec 21 22:41:45 for 5 seconds i thought @missigno was morgillo, the book author Dec 21 22:42:26 anyway, rxjava combines observable with iterator Dec 21 22:43:24 this is a little problematic, considering how firebases work Dec 21 22:43:41 mchl_nix: in general we try to make anything that works with glibc work with Android Dec 21 22:44:27 mchl_nix: i.e. if it works with glibc, probably Dec 21 22:44:44 I'm not sure, what you mean, danalbert. Were you refering to possible dependencies in the linux code, that Bionic might not meet? Dec 21 22:44:55 if you have a sequence of 10 itens and 2 change remotely, should the whole sequence be resent? Dec 21 22:45:31 mchl_nix: old versions of bionic were rather lacking, yes Dec 21 22:46:02 mchl_nix: I was a little unsure from your question whether you meant this was somethign that does already work with glibc, or if you were asking if arbitrary kernel source would work in an app Dec 21 22:46:19 Pretty sure you meant the former though Dec 21 22:49:17 I was asking in general. I didn't consider what you mentioned to be a possible problem. I'm setting everything up to try, though. Guess I need the kernel headers and the code files in the CMakeLists.txt file. Dec 22 01:57:04 google employees might be getting $14,600 bonuses soon :) Dec 22 01:57:52 what for? i want a bonus... tax man loves those :( Dec 22 01:58:37 http://www.theverge.com/2016/12/20/14033044/google-lawsuit-confidentiality-practices-spying-program Dec 22 01:59:57 Is Google's motto even "Don't be evil" anymore? I thought they'd ditched that a long time ago. Dec 22 02:02:57 Even Reddit seems to be turning evil. This cruel world just gets worse. Dec 22 02:08:37 TacticalJoke giant meteor 2016! Dec 22 02:08:48 Time is running out. :S Dec 22 02:09:03 Super Giant Meteor 2017 Dec 22 02:09:40 here in the US its a combination of 1984 & brave new world Dec 22 02:17:13 Are you doing anything for Christmas, g00s? Dec 22 02:17:34 hello , can somebody tell me why this android ?code is sending a POST request (thereby generating a 404) to my django server. im asking for a jsonrequest from the server (which works fine) here . code --> https://dpaste.de/xLMM Dec 22 02:18:02 TacticalJoke was thinking about civic disobedience, protests, etc :) Dec 22 02:19:51 g00s: Sounds fun. :D Dec 22 02:22:42 superKiller just needed to read the documentation. :E Dec 22 02:25:13 TacticalJoke did you see https://www.reddit.com/r/androiddev/comments/5jhd0z/engineering_the_architecture_behind_ubers_new/ Dec 22 02:25:48 i was going to be a smart ass and ask about how they designed the part that tracks you even when you get out of the car :D Dec 22 02:27:02 Yeah, I read most of it. Oh, I've not used the Uber app before. Dec 22 02:27:24 http://www.npr.org/sections/alltechconsidered/2016/12/01/503985473/uber-now-tracks-passengers-locations-even-after-theyre-dropped-off Dec 22 02:27:53 there was a story the other day about uber employees accessing data of people, celebrities, exes, etc Dec 22 02:28:06 seems like a pretty scummy company Dec 22 02:28:43 It's terrible how our privacy is disappearing. Dec 22 02:31:25 hi - weird bug happening Dec 22 02:31:39 I've got stuff writing over the system ui stuff accidentally bu tonly on 7.x Dec 22 02:32:18 it's with a canvas - the stuff stays inside of the clip bounds as long as it's in the app's area, but if it writes on the status bar or soft buttons, it stays until I change activities Dec 22 02:35:14 rager: Wait, what is the question? Dec 22 02:42:04 has anybody else seen this weird? Dec 22 02:42:10 I'll post a screenshot Dec 22 02:43:28 http://imgur.com/a/cHyCN Dec 22 02:43:52 see the softbuttons and the system statusbar? they got all weirded over Dec 22 02:44:03 that's what happens when I drag the text "through" them Dec 22 02:46:21 weird, right? Dec 22 02:46:33 this only happens on 7.x devices, though Dec 22 02:51:49 Hello. With RxJava2, do you need to dispose of a stream that has completed? Dec 22 02:54:08 wow wtf rager Dec 22 02:57:21 canoe: RxJava is like Java -you have to get rid of things only if you have to get rid of them Dec 22 02:57:40 what's really frustrating is that I'm not sure how I'm supposed to make it stop doing that weird glitchy thing Dec 22 02:58:05 canoe: without further information, I'm going to say that your answer is this: "Your lucky numbers are 6, 47, and twelve" **** ENDING LOGGING AT Thu Dec 22 02:59:59 2016