**** BEGIN LOGGING AT Sat Dec 03 03:00:01 2016 Dec 03 03:06:51 is possible to set language/locale setting when application start? could be declared inside manifest file ? Dec 03 03:06:59 is there a way to see previously scanned networks on android ? Dec 03 03:39:23 akgerber, yeah should be able to do it, or even just a basic custom view setting the canvas since you don't need anything complex really Dec 03 05:02:24 I'm having trouble controlling the dimensions of a WebView via the manifest. It seems to get the same effect as match_parent irrespective of what I do. Dec 03 05:53:43 The answer I googled seems to use PIC_WIDTH, but that appears to have been removed. Dec 03 06:00:35 whoa whoa whoa, hi nyc Dec 03 06:05:44 hi all Dec 03 06:06:58 I'm trying to get a verification sms from a remote server using the emulator in android studio but nothing comes through. Any help would be greatly apprciated Dec 03 06:17:35 I'm desperately trying to get this WebView to avoid overflowing the width of the screen while rendering the webpage. Dec 03 06:29:39 The webpage has which should make it responsive, and my XML layout has match_parent as the WebView width, but the page's width still appears to overflow the screen. Dec 03 07:57:42 How do I install my app on the test device so I can see the icon and such? Dec 03 08:04:38 adb install foobar.apk Dec 03 08:04:44 or probably some IDE way... Dec 03 08:05:43 Okay, adb install sounds plausible, though I don't have the first clue what's going on there. Dec 03 08:07:40 Install failed already exists. Dec 03 08:08:50 When I search for it on my phone, I'm not able to find it even though adb install reports a preexistence error. Dec 03 08:13:56 I've been using Instant Run and am not sure how to have it launched from an icon. Dec 03 08:17:09 I'm sorry if I sound dense. I know almost nothing of Android development. I have a rudimentary knowledge of antique Java and all my experience is in the kernel. Dec 03 08:22:22 Is there a way to install a project I have in Android Studio over USB so it launches from an icon? Dec 03 08:27:13 nyc: you should find your app in the list of installed app. You can put an icon on the home screen if you like Dec 03 08:28:51 Melatonina: How do I update the app version installed on the phone? I'm not sure how I got the app there, but I found it. Dec 03 08:29:10 are you using Android Studio? Dec 03 08:29:23 Yes, I'm totally reliant on it. Dec 03 08:29:35 When I push the "Run" or "Debug" button in Android Studio your app is installed on your device and then it's run Dec 03 08:30:01 if you check the status like you should read "Installing APK..." during the process Dec 03 08:30:07 status line Dec 03 08:30:56 o/ Melatonina Dec 03 08:31:05 raoul11: hi! :) Dec 03 08:33:15 whats up Melatonina Dec 03 08:35:52 I'm fighting with SignalR. I have to send progress information about the video processing from the server to the Android app. SignalR most of the time fails without error so it's hard to debug. Boring stuff. Dec 03 08:36:02 Did you release your product? Dec 03 08:36:08 Melatonina: Instant run is clobbering the installation every time it happens, so the demo should be just fine. Dec 03 08:36:59 yes Dec 03 08:37:01 yday Dec 03 08:37:27 now on a beggin mission to friends and family to make a big effort and download and rate /: Dec 03 08:37:39 :) Dec 03 08:37:56 Care to give me a link? Dec 03 08:38:26 sure Dec 03 08:41:07 figured out why i couldnt use clang to build my stuff Dec 03 08:41:32 ncurses needs to be built with tinfo Dec 03 08:41:38 in gentoo its a simple use flag :/ Dec 03 09:32:57 having problems with being able to build android from source under gentoo. android does not build with any version of the JDK thats avaiable in portage Dec 03 09:33:06 :/ Dec 03 09:33:27 google needs to get the FUCK rid of java and just create a new system from scratch Dec 03 09:42:01 or, y'know, you could not try to build it using whatever has been packaged for some random distro Dec 03 10:19:18 I have made a simple representation of an design idea I want to do: http://imgur.com/a/DmJX7 The "X" square will be a visible imagebutton and when pressed, shall bring into the screen a list of 3 imagebuttons in a horizontal row. So the X button will be moved to the right side of the screen and bring the list with it. Dec 03 10:19:24 Any ideas on what to use? Dec 03 10:19:43 Im pretty sure I can get it to work with loads of LinearLayouts, but if there's a better way. I'm open ears Dec 03 10:31:07 My Grundle isn't working Dec 03 10:31:10 Can someone help me? Dec 03 10:38:58 Have anyone seen this error before? http://pastebin.com/ae7zgsGA Each time I get this error it says a different resource in intermediates\res\merged\debug\ is missing.. Dec 03 11:09:38 I couldn't figure out RelativeLayout and had to drop having two "tiles" side-by-side below a third above them for LinearLayout. Dec 03 11:23:16 I sure hope user interfaces aren't as difficult as the project I just did was for me at all times. Dec 03 11:30:41 Can someone help me with my Grundle? Dec 03 11:31:06 Bacta: Stop calling it grundle Dec 03 11:31:24 Then what is it? Dec 03 11:31:31 gradle Dec 03 11:31:36 Ahhh Dec 03 11:31:46 I've been asking people for the longest time for help with it Dec 03 11:31:50 But get banned from places Dec 03 11:31:52 You even joined the channel named gradle Dec 03 11:31:54 I'm dyslexic Dec 03 11:31:58 I didn't know it was Gradle Dec 03 11:32:03 I thought it was Grundle Dec 03 11:32:44 Feel free to ask a specific question, maybe someone knows the answer Dec 03 11:33:04 So you can help me with my Grundle? Dec 03 11:33:08 Errr Gradle Dec 03 12:35:02 Is there a way to temporarily "disable"/"remove" my app from play store? I'm going to undergo massive changes on the backend, I don't want anymore people signing up accounts and stuff atm. Dec 03 12:37:13 u can unpublish Bernzel Dec 03 12:38:02 raoul11, and then republish without any specific side-effects? Dec 03 12:38:45 i guess u gonna lose ranks, positions on keywords and shit like that Dec 03 12:40:58 raoul11, hm very well. Thanks Dec 03 13:05:39 Do textStyle="bold" vs no textStyle and fontFamily="sans-serif-light" vs fontFamily="sans-serif" affect the same font attribute, i.e. font weight? Or are these different typographic font properties, if yes, what is the name of those? Dec 03 13:12:50 they don't affect the same thing, you can compare and see it for yourself Dec 03 13:13:14 like sans-serif-medium with or without bold, etc Dec 03 13:27:38 adq: yeah but I mean that the graphic effect is the same, even though you can combine them. light-bold is just a different font weight, but all four variants (none, bold, light, light-bold) differ only in the font weight, or is there another graphic difference that I'm not noticing? Dec 03 13:36:11 bennofs1, for example sans-serif-condensed Dec 03 13:36:36 i don't see how you can do the "condensed" with any attr except fontFamily Dec 03 13:37:02 (down-scaling horizontally is cheating) Dec 03 13:37:36 adq: yes i agree with that. this is why I'm wondering if the -light version also does something else other than just changing the font weight. Also, does it not make sense to have a -light-condensed? Dec 03 13:39:07 hum not sure but it's sans-serif-condensed-light which works Dec 03 13:39:13 not sans-serif-light-condensed Dec 03 13:39:38 this is so cryptic, the completion in the editor is so broken, and the documentation does not state clearly for all api which fontfamily are available, etc Dec 03 13:39:44 so good luck bennofs1, i'm outa there! Dec 03 13:58:54 is there a proper way to simulate network change, network loss in android emulator? atm i just did ifconfig eth0 down, but even if i set it as up it wont work anymore... Dec 03 14:09:56 Isn't there settings for that both in the emulator config and in the android OS developer settings? Dec 03 14:42:20 for handling stuff as textsizes on TextViews for phones,tablets etc. Is it commong to set the size of elements using a value from a values file, and having different values folder "values-sw600dp" ? Dec 03 14:47:31 Thorbear, only cellular settings but that doesnt trigger disconnect :/ Dec 03 14:47:35 or network change Dec 03 14:47:59 Bernzel: It's probably quite common. Dec 03 14:49:49 TacticalJoke, would you say that method has some advantage over the following: having layout-sw600dp and copying all my .xml layout classes into that and just adjust the the "sp" values there? Cause I've heard you don't need to actually have the .xml layout classes duplicated in the sw Dec 03 14:49:55 sw<>dp folders Dec 03 14:50:42 that it's enough to have them in the vanilla "layout" folder and just have the directories -sw600dp created and empty? Dec 03 14:52:01 Bernzel: Duplicating your layout files unnecessarily doesn't sound like a good idea. Not sure I understand your question. Dec 03 14:52:46 TacticalJoke, hm okey. Na I know, I'm out on a limb here. Trying to piece all the layout information together. But I'll go for the first method and try my way ahead. Thanks! Dec 03 14:53:36 For your info, the Android framework itself uses different dimens.xml files for sw600dp now and then. One example is for `android:actionBarSize`. This is 64dp on tablets (in portrait mode) but 56dp on phones (in portrait mode). Dec 03 14:54:19 Can't think of a text-size one off the top of my head. Dec 03 14:59:44 TacticalJoke, ah okey. But then that should be a very accepted way of proceding I assume Dec 03 15:00:37 Yeah. Using `sp` (or even `dp`) works well in many cases, but there are times when the text is still too small for a big screen. Dec 03 15:01:58 TacticalJoke, well I'll still be using the sp measure when setting the values in my dimen variables? Dec 03 15:02:11 Yeah, that's generally desirable. Dec 03 15:02:21 (y) Dec 03 15:02:44 I just meant that using `sp` alone is often enough, but not always. Dec 03 15:03:03 oh, right Dec 03 15:04:22 hi Dec 03 15:05:08 I've got a widget composed by a linearlayout , and inside it there are a relativelayout and an imageview. Inside the relative layout there are a button and an imageview Dec 03 15:06:47 <|Ace> Hi, if one wants to start with app dev. is it still preferred to be on linux? I have done programming before but mostly scientific Dec 03 15:08:00 when I changed from relativelayout to linearlayput the external imageview is not displayer anymore: imgur.com/a/zgAuH Dec 03 15:08:18 |Ace: I think it's debatable. For Android development, people use Windows, Linux, Mac. Dec 03 15:08:44 cristian_c: Way too little info. Dec 03 15:09:30 TacticalJoke: this is widget.xml: http://pastebin.com/rtbV0K56 Dec 03 15:09:45 <|Ace> are both equally fine? or is one more preferred than the other? Dec 03 15:10:20 <|Ace> also I am just trying this out with a friend, say I develop on linux and he does it on windows, can we still do cross testing? Dec 03 15:10:33 |Ace: I doubt there's much difference for Android development, because it's largely a case of running Android Studio and going from there. But I haven't used Linux lately, so I'm not sure. Dec 03 15:11:33 I don't know why imageview with 'widget_bottom' id is not displayed anymore Dec 03 15:11:38 Any ideas? Dec 03 15:13:01 |Ace: What do you mean by "cross testing"? Dec 03 15:13:18 <|Ace> so what would you recommend? should I install or on linux or windows? I have my programming environment on linux I am not sure what I would need in addition to the sdk on windows? Dec 03 15:13:31 cristian_c: You're doing an apples-and-oranges comparison. For example, the RelativeLayout has `minHeight` set but the LinearLayout doesn't. Why not make them as equal as possible? Dec 03 15:13:39 <|Ace> TacticalJoke: sorry, I Meant testing apps dev. on windows on linux. Dec 03 15:14:46 The testing situation should be the same, because you're targeting a common platform (Android). You can also run unit tests on the local JVM, but that's also a common platform. Dec 03 15:15:06 I've done Android programming only on Windows, and all works well there. Dec 03 15:15:26 TacticalJoke: relativelayout and linearlayout have both 'layout_width' and 'layout_height' parameters Dec 03 15:15:47 cristian_c: If you're comparing the two, though, why add differences such as "minHeight versus no minHeight"? Dec 03 15:16:25 You want to know the difference between using RL and LL, right? In that case, make everything else *identical*. You're wasting time until you do this. Dec 03 15:16:33 TacticalJoke: you are referring to commented code Dec 03 15:16:38 Yeah. Dec 03 15:16:46 it's commented code, it0s not active code Dec 03 15:17:07 TacticalJoke: I talk about the not commented block in xml Dec 03 15:17:27 Of course I know that. I was assuming that the commented code was the RelativeLayout attempt that you're referring to. Dec 03 15:17:41 i'm not using min_height in the current code Dec 03 15:17:49 But were you using it in the previous code? Dec 03 15:18:34 TacticalJoke: it was not the immediately previous code, it was more more older Dec 03 15:19:21 Well, it'd be a lot easier to help you if you showed the previous (RelativeLayout) code as well. Dec 03 15:19:29 TacticalJoke: ok Dec 03 15:20:06 TacticalJoke: http://pastebin.com/jbFfVGaZ Dec 03 15:20:29 Anyone know how to get the android emulator webcam to record video? Tapping record doesn't seem to do anything Dec 03 15:20:35 Which ImageView isn't show? The one called `widget_bottom`? Dec 03 15:20:37 showing* Dec 03 15:20:38 so, no min_height parameter Dec 03 15:20:43 s Dec 03 15:20:51 TacticalJoke: yeah Dec 03 15:21:11 TacticalJoke: with two relativelayouts it was displayed (bad) Dec 03 15:21:42 <|Ace> TacticalJoke: thanks another Q: is the default language Java? or can one do it in C? Dec 03 15:21:43 cristian_c: Not sure, but maybe it's the `android:gravity="end"` thing. Dec 03 15:22:00 TacticalJoke: I've added that after tested Dec 03 15:22:29 TacticalJoke: the imageview was not displayed also putting gravity parameter Dec 03 15:22:44 *also before puttjng Dec 03 15:22:57 |Ace: Java is the "native" language for app development. It's possible to use C++, but from what I hear the development experience is nowhere near as good. Dec 03 15:23:19 so, I've tried to add it, but with no results Dec 03 15:24:14 <|Ace> in addition to the SDK what else is necessary to install? Dec 03 15:24:42 |Ace: Not sure about Linux, but on Windows it's simply a case of installing Android Studio. Nothing else (not even a JDK). Dec 03 15:24:57 And Android Studio will take care of installing the Android SDK. Dec 03 15:25:39 cristian_c: It's easier for you to debug this stuff than for someone on IRC to debug it. :D Dec 03 15:25:58 I'd just simplify everything until the solution was obvious. Dec 03 15:26:15 TacticalJoke: I don't know useful tools to do it Dec 03 15:26:17 By removing as much as possible and using `android:background="#f00"` and such to determine what's going on. Dec 03 15:26:18 <|Ace> okay thanks, are there any intros on how to get started? any useful webpages? Dec 03 15:26:51 TacticalJoke: what tests do you suggest? Dec 03 15:26:53 cristian_c: Maybe the LinearLayout is pushing the second View out of view. Not sure. Dec 03 15:27:33 TacticalJoke: ok, but the second imageview is included into linearlayout Dec 03 15:27:53 There are cases where a LinearLayout would push something out of view. Dec 03 15:28:04 |Ace, it'll be fine for you and your friend using different OS's. As for what is favourable, it's all about preference. I think Linux is superior for machines that I'll use solely for developing. Dec 03 15:28:50 TacticalJoke: uhm, ok, strange Dec 03 15:28:57 but I've not ideas about that Dec 03 15:29:08 cristian_c: Just simplify. Dec 03 15:29:11 Everything. Dec 03 15:29:15 TacticalJoke: what tests do you suggest? Dec 03 15:29:36 It's like finding a needle in a haystack. Remove as much hay as possible. Dec 03 15:30:14 if I remove the secondimageview . the test is not useful Dec 03 15:30:43 TacticalJoke: what could I remove, then? Dec 03 15:31:23 You could try a LinearLayout with two views: the top one with a fixed (small) height; the second being the ImageView in question. Dec 03 15:31:30 Just think about it, cristian_c. :D Dec 03 15:31:35 TacticalJoke: I could try to remove 1) the relativelayout Dec 03 15:31:41 You could try the ImageView on its own. Dec 03 15:31:45 2) the first imageview in relativelayout Dec 03 15:32:08 TacticalJoke: into linearlayout? Dec 03 15:32:29 ok Dec 03 15:32:52 <|Ace> Bernzel: thank you, do you program on linux? did you have to install any additional packages to SDK? Dec 03 15:33:32 TacticalJoke: so, two imageview in a linearlayout Dec 03 15:33:41 |Ace, I did. And I miss it, but since I'm forced to enjoy games from time to time, I'm back on Windows. Nope, should be exactly the same setup on all platforms. Dec 03 15:33:57 cristian_c: Why two ImageViews? Dec 03 15:34:04 cristian_c: You need to learn the art of simplifying stuff. Dec 03 15:34:17 TacticalJoke> You could try a LinearLayout with two views: the top one with a fixed (small) height; the second being the ImageView in question. Dec 03 15:34:23 'two views' Dec 03 15:34:51 or a textview? Dec 03 15:34:59 The top one could be ``. That'd work in the preview, at least. Dec 03 15:35:01 textview + imageview Dec 03 15:35:14 A TextView would work on a device too. Dec 03 15:35:37 I'll try textview + imageview Dec 03 15:35:47 into a linearlayout Dec 03 15:37:25 * cristian_c he didn't know he could use a simple 'view' object Dec 03 15:39:53 <|Ace> Thank you both :) gonna try and see if I can get it to work Dec 03 15:43:57 cristian_c: You need to learn the art of simplifying stuff. << he just need to learn, it has been weeks if not monthes he's asking about this widget thingy Dec 03 15:44:33 cristian_c, on your previous layout: http://pastebin.com/jbFfVGaZ << it makes no sense even if it was displaying what you wanted, like the last imageview (android:id="@+id/widget_bottom") being below itself: android:layout_below="@id/widget_button Dec 03 15:44:43 so many attributes totally irrelevant too on both pastebin Dec 03 15:44:57 you should just restart it from scratch Dec 03 15:45:24 adq: no, id was added further, to mske tests Dec 03 15:46:01 you need to be inside the same sibling when you use android:layout_below and other relativelayout child thingy Dec 03 15:46:10 adq: I've not deleted it after it, but it's irrelevant for the issue Dec 03 15:46:43 this should be trivial Dec 03 15:48:58 adq: I've already asked aboutmbelow parameter, after read the official documentation Dec 03 15:49:05 *in past Dec 03 15:49:17 cristian_c's the kinda guy who goes to the doctor bleeding from bullet wounds just to get advice about a rash on his leg. Dec 03 15:51:37 also this margin you added, check https://developer.android.com/guide/topics/appwidgets/index.html#AddingMargins Dec 03 15:52:07 i admit, the doc is ambiguous though, they call it margin, they set some padding but this is how it should be done Dec 03 16:04:25 uhm, I'll choose a textview, view gives me error inflating class android.view.View Dec 03 16:09:22 TacticalJoke: ok, textview and imageview are displayed (in order) Dec 03 16:12:00 TacticalJoke: imgur.com/a/3kNkm Dec 03 16:15:35 You should include the protocol specifier. Dec 03 16:16:53 TacticalJoke: btw, also with textview, test works Dec 03 16:17:24 * cristian_c he's reading also 'add margins to app widget' Dec 03 16:18:18 TacticalJoke: issue seems related the existence of relativelayout Dec 03 16:18:25 *so Dec 03 16:18:37 cristian_c: I can't imagine why. Dec 03 16:18:39 *related to Dec 03 16:18:49 ok Dec 03 16:19:10 Swapping between RL and LL doesn't work? Dec 03 16:20:02 TacticalJoke: being previosuly displayed with two relativelayout, I think issue exists if relativelayout is put into linearlayput Dec 03 16:20:39 TacticalJoke: I can't swap them. Relativelayout is required in order to display imageview into button Dec 03 16:20:45 (first imageview) Dec 03 16:24:56 JakeWharton: just saw your tweet about websockets I saw in the documentation on github a sample project that used websockets last week already, is this a new thing?! Dec 03 16:25:19 documentation says margins are added automatically between widget frame and widget bounding box, after android 4.0 Dec 03 16:25:46 Ah but if you read the post it would have answered your question! Dec 03 16:26:06 It's new and not new Dec 03 16:26:15 New API, old implementation Dec 03 16:26:17 it's open but i haven't finished Dec 03 16:26:27 but the sample already used that API Dec 03 16:26:29 :S Dec 03 16:27:04 https://github.com/square/okhttp/blob/master/samples/guide/src/main/java/okhttp3/recipes/WebSocketEcho.java Dec 03 16:27:17 linked that 4 days ago Dec 03 16:27:36 I'm confused Dec 03 16:27:42 We develop on GitHub on master so yes that was there 4 days ago Dec 03 16:27:45 raoul11: sup Dec 03 16:28:14 developing on master? I too like to live dangerously Dec 03 16:32:35 adq: I've added the margin to linearlayout in order to make the widget smaller inside widget boundingbox Dec 03 16:33:13 (previously margin was inside the external relativelayout) Dec 03 16:36:16 uhm, I'll choose a textview, view gives me error inflating class android.view.View < yes this is expected with widget (it's stated in the doc which views are supported, View class is not one of them) Dec 03 16:37:35 adq: now, I've removed the margin in linearlayout. No effects, second imageview is not displayed Dec 03 16:38:03 and widget is bigger (as expected) Dec 03 16:39:13 adq: previously , I was talking about TacticalJoke suggested test Dec 03 16:39:29 i'm not going to even try to follow Dec 03 16:39:51 so, I've read the doc out margins too Dec 03 16:39:58 *about Dec 03 16:40:06 when you have an issue, just state it clearly (carefuly explaining your problem is half the solution) and if ppl from the chan wants and know how to answer they will Dec 03 16:40:29 Has anyone anyother ideas? Dec 03 16:40:35 *any other Dec 03 16:50:20 I can write stuff in HTML5 and it just works on Android (no signing, no complications etc.). Are there some big disadvantages I'm not aware about right now? Dec 03 16:50:46 by stuff I mean interactive applications (e.g. games) Dec 03 17:21:19 I'm using fitsSystemWindows=true in my app. How can I get the correct margin that I need to apply to the Toolbar if I'm not using CollapsingToolbarLayout (I don't want the expanded state of collapsingtoolbarlayout) Dec 03 17:25:15 Can I have a statusbarscrim for when a collapsedtoolbarlayout is expanded? app:statusBarScrim sets the scrim for the collapsed state Dec 03 18:15:25 I've an old Samsung Note3, running CM12.1, that's decided to suddenly lose its mind re: Bluetooth -- no longer startable without an immediate crash. Sooooo, starting troubleshooting ... 1st want to delete/clear all existing paired-device profiles. I *thought* Apps>BluetoothShare>ClearData should do it. Apparently not :-/ Old device pairings keep reappearing. I can't clear/delete pairing from WITHIN the Bluetooth settings -- it crashes too Dec 03 18:15:25 quickly; just can't turn it on. Dec 03 18:15:38 How/where do I manually remove the pairings -- and have it stick? Dec 03 18:30:25 Hi. Is there any way to determine when ViewHolder destroyed? Dec 03 18:32:43 PGNd: Everything about that screams "media viability problem". Cross your fingers and reflash. Dec 03 18:33:48 Dagmar: 'media viability'? as in sdcard's horked? or .... ? Dec 03 18:36:31 Dagmar: I've tried with linearlayout but the imageview is disappeared Dec 03 18:36:55 *it's not displayed Dec 03 18:39:11 Dagmar: I don't know what could be the issue. If you want, I can pastebin the updated layout code Dec 03 18:58:31 Is there any way to determine when ViewHolder destroyed? Dec 03 19:24:49 so i have this NDK library that im "re" writing. it was mostly coded in assembler but had some C wrappers Dec 03 19:25:27 I have ported all the C wrappers to assembler (they are about 1/10 the size they were before) but... now all my Java_foo_bar_bam_FudgeFunction functions do not resolve Dec 03 19:26:10 im looking at the assembly listing for the C versions of these functions and I cannot see anything in there that prototypes them - expected parameters, return values etc Dec 03 19:27:02 .type eval,%function Dec 03 19:27:10 how get I get /me executes mark4 Dec 03 19:27:29 oh wait Dec 03 19:27:33 * function executes mark4 Dec 03 19:27:35 there we go Dec 03 19:27:53 you being funny or just being a jerk? i cant tell lol Dec 03 19:28:35 mark4 funny? Dec 03 19:28:48 I'm a function. I execute things. Dec 03 19:29:36 mark4, uhhm, you mean you're missing exported symbols? Dec 03 19:29:53 Mavrik, they are exported, I can objdump and see them Dec 03 19:30:00 but im thinking maybe their prototypes are wrong Dec 03 19:30:08 so java is not recognizing them Dec 03 19:30:23 java only cares about the name really Dec 03 19:30:36 but im looking at the assembly listing of the C functions and I see nothing in the assembler code that prototypes the function Dec 03 19:30:56 hrm then why cant it see any of them? Dec 03 19:31:29 Is there an analogue to OnDestroy for ViewHolder? Dec 03 19:31:29 i see a link error cannot resolve Java_foo_bar_bam.... and i can cut that and search my sources for it and... its there and its exported Dec 03 19:31:30 I'm not sure why would assembly prototype a function Dec 03 19:31:39 It just exports a name / label Dec 03 19:31:49 I suggest you try using javah on your Java native class Dec 03 19:31:57 And compare generated names with yours Dec 03 19:32:02 what does javah do? create headers? Dec 03 19:32:06 yeah Dec 03 19:32:09 Or any other way to know when the ViewHolder is destroyed? Dec 03 19:32:10 how can it create headers for an assembler function Dec 03 19:32:13 it's a shortcut to check that Dec 03 19:32:15 and what would I do with the header files Dec 03 19:32:22 the code is no 100% assembler Dec 03 19:32:24 And compare generated names with yours Dec 03 19:32:25 [20:32:02] Dec 03 19:32:47 oh i see what your saying, but I already compared them and they are the same Dec 03 19:32:50 Also check if you're actually running on the same architecture as your asm is written for Dec 03 19:33:03 e.g. that you're not attemptig to load x86 binary on arm Dec 03 19:33:18 its not running on anything. android studio has the native function references in red. mouse over them and it says cannot resolve Dec 03 19:33:36 the library IS in the project, it exports those symbols Dec 03 19:33:42 Oh you're talking about AS. Dec 03 19:33:57 That won't work :) Dec 03 19:34:02 ? Dec 03 19:34:04 I mean. Dec 03 19:34:06 The app will work. Dec 03 19:34:13 AS will never find ASM entry points in code editor Dec 03 19:34:15 it worked just fine when I had c wrappers Dec 03 19:34:16 Just ignore it. Dec 03 19:34:21 Yes. Dec 03 19:34:24 Because AS supports C. Dec 03 19:34:27 its a libfoo.so Dec 03 19:34:27 And not ASM Dec 03 19:34:47 .so has nothing to do with it. Dec 03 19:35:04 The code highlight looks at source files, not compiled artifacts. Dec 03 19:35:12 not true Dec 03 19:35:15 And if it can't see a .c or .cpp it'll warn you. Dec 03 19:35:29 it NEVER saw the .c before Dec 03 19:35:48 the library itself is in a different project. it only got the .so Dec 03 19:36:49 i can send you a libfudge.so and you can add it to your projject and NEVER see one line of source code. your code can now reference symbols in that library and the editor resolves them Dec 03 19:37:39 if you call x = FUDGEFfunction(x,y,z) and it does not see that symbpol it will complain Dec 03 19:37:56 private static native .....FuDGEFunction(...) Dec 03 19:38:15 that reference will not resolve Dec 03 19:38:28 will or will not... Dec 03 19:39:05 it is saying "cannot resolve corresponding jni function Dec 03 19:39:46 Are you sure you didn't just upgrade AS from 2.0 to 2.2 or something and NDK support got enabled? Dec 03 19:40:14 That JNI resolution has been broken for me forever and before 2.x something wasn't even enabled (so you wouldn't get an error) Dec 03 19:40:21 this was working on AS 1.x Dec 03 19:40:45 erm Dec 03 19:40:57 i actually just downgraded it from 2.2 to 2.0 Dec 03 19:41:02 or 2.1 or something Dec 03 19:41:46 i think google hates NDK developers Dec 03 19:42:50 though im doing some stuff that would make them want to lock down NDK devel even further Dec 03 19:43:23 my code does not use .text it uses .blah which is defined as +r +w +x :) Dec 03 19:46:04 hm, what's the use-case? Dec 03 19:47:38 its a forth compiler Dec 03 19:48:02 you have forth sources in your assets and you can have the compiler load those sources Dec 03 19:48:17 forth code does not compile to a separate object, they extend forth Dec 03 19:48:30 you can dynamically define your project on the fly Dec 03 19:48:53 for example. my proof of concept use of the library is a game. the world map personality is defined in forth Dec 03 19:49:07 when i go into a town that personality is unloaded and the towns personality is loaded Dec 03 19:49:51 it also makes doing JNI stuff MUCH simpler Dec 03 19:50:35 you can code your bitmap color fudging function in forth and have it execute at machine opcode speed not java speed Dec 03 19:50:43 and you dont have to know SHIT about jni Dec 03 19:51:09 Hello. is it possible to either play audio straight to the other side when in phone call, or reroute the phone call audio to my app completely? Dec 03 19:51:38 can anyone help me with this? I am trying to create an app to login with retrofit2 and slim2 as api, but then I press login, i get this error: http://pastebin.com/a9T1R90e I also included the logcat, java, php Dec 03 19:52:50 mark4, neat Dec 03 19:53:14 webczat, I think that's not possible for most devices Dec 03 19:53:18 at least not for mobile calls Dec 03 19:53:53 why like there are constants at least in some places, like I in theory should be able to play to a voice call stream? Dec 03 19:54:10 webczat, mmm.... example? Dec 03 19:54:21 Mavrik, do you do NDK dev? Dec 03 19:54:32 yeah Dec 03 19:54:41 Just C++ mostly :) Dec 03 19:54:54 im going to add in a c wrapper file Dec 03 19:54:56 mark4: well MediaPlayer has a stream type parameter, and AudioManager has a stream constant for voice call Dec 03 19:55:06 what do you call a function that just does a jump to the real function? Dec 03 19:55:14 webczat, IIRC it'll let you set up routing Dec 03 19:55:30 webczat, but not give you access to the stream Dec 03 19:55:36 but if I would set this stream type in a MediaPlayer... Dec 03 19:55:41 some devices don't even forward the audio stream to the main ARM core Dec 03 20:04:18 oh. what do the JNIEXPORT and JNICALl macros do? Dec 03 20:04:23 maybe i just need to do that? Dec 03 20:05:23 jniexport sets the visibility Dec 03 20:06:19 I think they just translate to sometihng sensible for each compiler supported Dec 03 20:06:26 hidden attribute or whatnot Dec 03 20:06:31 and calling convention for MSVC Dec 03 20:07:10 #define JNIEXPORT __attribute__ ((visibility ("default"))) Dec 03 20:07:15 #define JNICALL Dec 03 20:07:18 jnicall is a do nothing Dec 03 20:07:27 jniexport sets its visiblity Dec 03 20:07:33 .global foo would be the same thing i think Dec 03 20:07:48 both macros are from java times Dec 03 20:07:57 JNICALL is set to nothing on Android since MSVC isn't a thing :P Dec 03 20:15:23 lol Dec 03 20:15:48 msvc was never a thing, it just thought it was Dec 03 20:33:37 Mavrik: mark4: both JNIEXPORT and JNICALL are used and its about native code. Let me explain both. Dec 03 20:34:11 these are used as preprocessor definitions to allow different platforms to override with the expected behaviour Dec 03 20:34:15 for instance. Dec 03 20:35:10 JNIEXPORT in most compilers, just changes a flag on that function in the output object file, so that the linker can see it. Dec 03 20:35:43 then when another object file needs to import that function the linker knows which to "link" it too Dec 03 20:35:58 Napalm, yea i understand those Dec 03 20:36:20 in android JNIEXPORT sets the visibility to the default visibility Dec 03 20:36:23 i.e. does nothing Dec 03 20:36:53 .globl foo <-- export the symbol foo Dec 03 20:37:07 in asm the default visibility is not visible Dec 03 20:37:16 isn't it doing something if symbols are hidden by default? like making them visible? Dec 03 20:37:31 mark4: default is to export it Dec 03 20:37:32 yes Dec 03 20:37:36 did you even read the docs? Dec 03 20:37:41 Napalm, default in C is to export it Dec 03 20:37:49 "In your header files, wherever you want an interface or API made public outside the current DSO, place __attribute__ ((visibility ("default"))) in struct, class and function declarations you wish to make public " Dec 03 20:38:17 default in asm is to not export it which is why you need to mark them .globl Dec 03 20:38:20 or .global Dec 03 20:38:43 sure... but whats this got to do with Asm? Dec 03 20:38:51 my code is asm Dec 03 20:38:56 plus, it also depends on the assembler Dec 03 20:38:59 100% pure arm assembly Dec 03 20:39:40 good luck with that Dec 03 20:39:49 I know that pain Dec 03 20:39:50 it used to be 99.9999% assembler with a set of small exported C wrappers Dec 03 20:39:51 :) Dec 03 20:40:09 mark4: no, it isnt lol Dec 03 21:37:07 how long does it take AS to create a new gradle prokject Dec 03 21:37:15 its bulding project info now and it seems stuck Dec 03 21:37:36 ya cansel button didnt do anything killing that shikt Dec 03 21:38:07 join #idea-users Dec 03 21:38:14 oops Dec 03 22:08:32 so im creating a blank project to move my existing non gradle prokect into Dec 03 22:08:41 android studio is stuck building the gradle project Dec 03 22:08:58 its not doing anything at all. there is no download going on, the drive is not thrashing, its just STUCK Dec 03 22:09:35 and if i kill it it wont launch again Dec 03 22:09:52 do you have the ide open, or are you on the luanch splash screen with your project loading/building Dec 03 22:11:18 launch / splash Dec 03 22:11:34 so you did import project from there and then it freezes up? Dec 03 22:11:40 no NOT import Dec 03 22:11:45 import does not work Dec 03 22:11:57 not on idea projects Dec 03 22:12:06 i created a new gradle project Dec 03 22:12:10 and its stuck building it Dec 03 22:12:39 kill it. open AS again, open the incomplete project and it goes right back to building gradle project forever Dec 03 22:12:40 righttt Dec 03 22:12:57 do this Dec 03 22:13:39 file > setttings > build, execution, deployment > compiler > command line options Dec 03 22:13:42 if i try import the existing project i get no sources, no manifest no NOTHING except the output directory containing the jar file Dec 03 22:13:48 add in the suggested --stacktrace and --debug Dec 03 22:13:49 there is no file Dec 03 22:13:51 theres nothing Dec 03 22:14:19 thers a window with no menus and a popup thats /////////////////// progress bar Dec 03 22:14:54 well theres a start new AS prokect, open existing etc etc etc Dec 03 22:14:58 but thers no meny bar Dec 03 22:15:20 mark4: sounds like many things can cause this Dec 03 22:15:32 mark4: close AndroidStudio.exe processes Dec 03 22:15:40 and i wish i could simply import my existing IDEA project into as and have it convert it to gradle but thats the one type of project google refuses to import Dec 03 22:15:49 there is no .exe this is not windows Dec 03 22:16:03 same difference, you know what i mean Dec 03 22:16:16 killall java is the only way to close it Dec 03 22:16:17 do you want help or not? or you simply complaining Dec 03 22:16:42 sorry, i have a lot on my plate right now, im getting frustrated with everything Dec 03 22:16:45 sorry Dec 03 22:16:51 right, what platform you on? Dec 03 22:16:55 linux Dec 03 22:17:18 open a terminal, type: which gradle Dec 03 22:17:33 i have no job. im about to lose my apartment and be on the streets. been hunting CL for weeks for a new place and all i get is gay guys looking for a fuck buddy and scammers :( Dec 03 22:18:00 the only gradle i have installed is the gradle installed by android studio Dec 03 22:18:31 which is not in my path Dec 03 22:18:38 Hello :) Dec 03 22:19:16 mark4: use whereis Dec 03 22:19:32 im uninstalling android studio and installing a different version. this one is totally fucked, it cant create ANY gradle projects at all Dec 03 22:19:34 brb Dec 03 22:19:50 what version of AS do you suggest Dec 03 22:19:59 mark4: the latest, 2.2.2 Dec 03 22:20:09 yea that one is fucked for ndk devel Dec 03 22:20:25 it wont see any of my jni functions in the library Dec 03 22:20:32 even when the library IS in the project Dec 03 22:20:47 they changed the way it works if i remember correctly Dec 03 22:20:48 which means i cant use it Dec 03 22:21:16 you mean like microsoft keeps changin the way windows update works so windows update stops working till you have updated it which you cant because it wont work? Dec 03 22:21:26 lol Dec 03 22:21:57 no Dec 03 22:22:21 lol that was funny tho or it would be if that was not actually why windows update keeps failing Dec 03 22:22:38 https://developer.android.com/studio/projects/add-native-code.html Dec 03 22:22:41 and why they needed multiple hot fixes for it to fix this issue multiple times Dec 03 22:22:46 its all documented Dec 03 22:23:07 right away i read the first sentence and. BAM that documentation is no good to me Dec 03 22:23:10 im not using gradle Dec 03 22:23:28 i want to but cant. i cant import, i cant export. i cant create a new blank gradle project Dec 03 22:23:35 so anything it says in there is irrelevant Dec 03 22:23:40 right Dec 03 22:23:44 mark4 Dec 03 22:23:56 calm down, seriously, or you aint getting any help from me Dec 03 22:24:19 ou can add C and C++ code to your app <--- im using neither Dec 03 22:24:28 UI is surprisingly difficult for me. Algorithms are far easier for me. Dec 03 22:25:04 i dont care if AS builds my NDK code. I can still use ndk-build which is what some people recommend with AS Dec 03 22:25:15 dont use gradle to build your ndk stuff just use ndk-build Dec 03 22:25:29 go someplace else, your attitude is not wanted here Dec 03 22:25:40 but there is a java part to this project that I would like to have built in AS using gradle Dec 03 22:26:05 but that part needs to see the functions defined in the .so Dec 03 22:26:10 Napalm, i did calm down Dec 03 22:27:13 also, i did read the linked page before and that use deprecated ndk stuff is not present in my files Dec 03 22:27:41 i cannot even create a new gradle project of any type Dec 03 22:28:30 Napalm, i did calm down... im not fighting against you Dec 03 22:28:32 mark4: check your home directory for .gradle and .Android Dec 03 22:28:35 Studio Dec 03 22:28:49 i have .gradle Dec 03 22:29:00 well you can delete it Dec 03 22:29:14 and i have .AndroidStudioPreview2.3 but ive tried different versions. Dec 03 22:29:17 that will get rid of any temporary cache files and other related crap, so you get a fresh start Dec 03 22:29:18 k deleting it Dec 03 22:29:20 While I'm incredibly drunk, I still seem to be preoccupied with my difficulties with the alienness to me of the sorts of API's used for UI, and in what ways I could practice so that they could become less so. Dec 03 22:30:04 The XML specifications of View layouts are particularly difficult for me to relate to operations in the code. Dec 03 22:30:42 hey g00s Dec 03 22:30:55 heya Napalm ;) Dec 03 22:31:50 I feel as if there is a principle I've not yet grasped underpinning the relation of XML manifest and resource specifications and operations for the configuration of the UI state in the code that would enlighten me if I could only ascertain it. Dec 03 22:31:55 deleted the .gradle. ran android studio. clicked on create new prokect, just skipped through the entire thing and took the defaults and clicked finish Dec 03 22:32:04 stuck building gradle project info Dec 03 22:32:12 does not seem to be downloading anything Dec 03 22:33:06 tho it might be, im looking at a graphical picture of my network traffic and it doesnt look any different now than it did before i cretaed clicked finish Dec 03 22:35:35 In what way are you attempting to initiate network connections within the code? Dec 03 22:35:51 actually now i see it doing stuff so maybe it was just downlding things very very slowly :/ Dec 03 22:37:04 shouldnt websocket libs 'handle' 'timeouts' or network change (atleast call the disconnect?) every websocket lib that i tried basicly just hang if some network error occured Dec 03 22:37:09 atm i use com.neovisionaries:nv-websocket-client Dec 03 22:38:54 asturel okhttp has improved ws support Dec 03 22:39:09 you could also use mqtt i guess Dec 03 22:39:28 not a huge fan of it these days though Dec 03 22:39:29 mqtt? Dec 03 22:39:41 yeah for messaging Dec 03 22:40:11 well when i search after it i found _only_ this https://github.com/TakahikoKawasaki/nv-websocket-client Dec 03 22:40:22 the others didnt implemented the proper websocket closing method Dec 03 22:41:21 i mean the closing handshake Dec 03 22:42:26 okhttp have it also?:P Dec 03 22:44:38 so in the gradle project structure editor it has a slot for library repository. it does not let me browse for it ? Dec 03 22:46:27 ok i dont get that field. i just typed in the path to my lib file and it conferted /home/me/foo/bar/bam into / home / me / foo / bar / bam in the config file Dec 03 22:47:44 i delted the native-app.cpp and... now my prject has nothing at all under app Dec 03 22:47:50 the files are not deleted Dec 03 22:48:19 i just dont get to see them in the project structure in the ide Dec 03 22:48:49 ok now i do, must be a bug, i closed AS and opened it again Dec 03 22:50:00 if you're deleting files out from under AS it'll probably take a while to notice; doing a refresh on the directory might fix it Dec 03 22:50:12 I don't think it's smart enough to use inotify to notice immediately Dec 03 22:50:31 if i recall you can right-click and refresh on a dir Dec 03 22:51:08 Tools > Android > Sync should do it Dec 03 22:51:49 that might have worked :) Dec 03 22:52:39 but when i deleted a auto generated cpp file from the cpp dir everything else disappeared Dec 03 22:52:55 anyway now im back to com.foo.bar.bam.jnifunction not resolving Dec 03 22:53:14 that function is in the .so file i just added to this gradle project and i know its exporting the right symbols Dec 03 22:54:02 but my private static native void foo.bar.bam.nativeFunction() is red because AS cannot resolve it Dec 03 22:55:38 but i figured out why and this is messed up. it needs the sources Dec 03 22:56:07 but if thats the case how do YOU use ml libfoo.so in your projects without the soruces? Dec 03 22:57:04 erm. now it wont let me build because default activity not found, there is no activity in this Dec 03 23:00:27 mark4 are you using any of the cmake stuff ? Dec 03 23:00:53 i was not doing so. my project was not gradle. i created a blank no activity gradle project Dec 03 23:01:01 and am moving my sources in and configuring it Dec 03 23:01:24 but. my sources are NOT c they are assembler and I dont want cmake to make them. ndk-build will make them Dec 03 23:02:00 but the problem is, even though the resultant .so file is in the project none of the symbokls are being recognized. i know there correct and being exported Dec 03 23:02:15 but my private static native void ...... is unresolved in the ide Dec 03 23:02:52 guys how do you handle clicking notifications to take you to an intended activity? Dec 03 23:04:35 this is like a million times more complificated than it needs to be Dec 03 23:04:53 its not rocket surgery why does it have to be THIS complificated to build one simple prokect Dec 03 23:05:23 ]project Dec 03 23:09:43 if i were to use cmake to build my ndk library how do i get it to assemble my asm sources and compile the c sources too? Dec 03 23:14:31 yup evena google for "building assembler soruces in android studio" only returns "Building c++" Dec 03 23:15:14 newer cmakes handle assembler, maybe thats a better route. but i never tried using assembler with as :) Dec 03 23:15:21 asm with as :D Dec 03 23:16:28 google does not want to have to support assembler sources, they dont even want to support native at all Dec 03 23:18:10 this already builds just fine with ndk-build but again, android studio refuses to recognize any of the symbols being exported from the library Dec 03 23:18:33 what if you want to use a library YOU didnt create? Dec 03 23:18:49 seems like this native function linkage only works if AS can see the soruce code Dec 03 23:20:57 my problem is now i have to learn gradle. i have to learn cmake and lord knows what elese, just to get a projec that was previously 100% functional to simply build Dec 03 23:23:09 Gradle uses cmake? Fantastic, I dealt with it in the 1990's barring being too drunk to remember coherently. Dec 03 23:23:25 no android studido uses cmake Dec 03 23:26:29 I'm at a roommate's work, so I'm trying not to cramp his commissions before getting a cigarette break, but he gave me two cigarettes and I threw away my last pack to protect my last cigarette, so I'll have to hold off on trying to integrate primal-dual methods into my own app concept. Dec 03 23:27:23 your drunk. im pissed and depressed and frustrated... want to swap ? Dec 03 23:28:40 M¥ roommate will introduce me to all 10-20 guys he brings home from grindr tonight, so I'm for idle conversation all night. Dec 03 23:29:40 SimonVT i think we have troll Dec 03 23:30:57 I'm sorry I came off the wrong way. My WebView came out right last night for the demo a few hours ago, so I'm celebrating. Dec 03 23:31:23 how do i set the CFLAGS with cmake? Dec 03 23:31:41 and the LDFLAGS? Dec 03 23:32:05 mark4 you can ask in #cmake lol Dec 03 23:35:56 <_genuser_> lol amazon. Dec 03 23:36:11 <_genuser_> first you need to download amazon unground, then you need to install amazon video. Dec 03 23:36:29 <_genuser_> because amazon is so cool, it can't publish apps on google play store. And it goes out of it's own way to block videos from playing in chrome. Dec 03 23:36:36 <_genuser_> so people can download their app. Dec 03 23:36:52 <_genuser_> maybe they should focus on trump a little less and on their product more. Dec 03 23:37:23 amazon was dead man walking from inception Dec 03 23:37:59 <_genuser_> I like the VOD, it's pretty cool. I have some shows I bought. But "ish" like this is why I don't get the prime membership. Dec 03 23:42:20 oooh!!!!!!!!!!! enable_language(ASM) in CMakeLists.txt Dec 03 23:42:39 but it doesnt seem to be using the correct assembler it doesnt know what .thumb is but thats progress! Dec 03 23:46:16 asm like assembler ? Dec 03 23:46:31 *asm as assembler Dec 03 23:46:47 yes assembler Dec 03 23:46:50 arm assembler Dec 03 23:47:14 but wheni run the build it doesnt know what .thumb is because its using the x86 assembler not the arm assembler Dec 03 23:51:45 how do i make the build NOT try to assemble arm sources with the x86 assembler :/ Dec 03 23:52:20 you specify the ABI iirc Dec 03 23:52:42 https://developer.android.com/ndk/guides/abis.html Dec 03 23:53:14 ogh right... thats what i was specifying in my CFLAGS before Dec 03 23:53:54 all this tells me is what abis are supported, not how to configure my cmake to use this abi. Dec 03 23:54:16 it seems to assume ndk-build Dec 03 23:57:24 unknown target CPU armv7-a Dec 04 00:31:58 its trying to build my lib as an application and fails Dec 04 00:32:17 so i changed the com.android.application to com.android.library and that does not resolve. Dec 04 00:32:28 so i change it back and... com.android.application doesnt resolve either Dec 04 00:33:14 plugin with id "whatever the fuck i put here" not found Dec 04 00:34:00 i spend so much fucking time fighting the fucking tools i dont get ANY fucking work done :( Dec 04 00:34:38 lol why are you using assembler ... Dec 04 00:34:43 After much hacking around with the generated gradle file, I ended up with the following that seems to make android studio happy. The trick seems to be to tell gradle about jcenter, twice. Oh, and to tell gradle about gradle... <-- Dec 04 00:34:51 srsly that fucked up Dec 04 00:34:53 1% of ppl hear arent in your boat of approach Dec 04 00:39:25 fucking google tells you how to create a library module in your project, i dont have a fucking library module i hav ea fucking library project Dec 04 00:39:44 im out im going to get banned if i keep this up Dec 04 00:39:51 you dont need this shit any more than i do Dec 04 00:39:55 fuck i hate this Dec 04 00:40:13 lol Dec 04 00:40:30 must be full moon Dec 04 01:03:16 "Chrome 55 uses 30% less memory than 54" progress, let me know when its like 80% less :) Dec 04 01:05:46 I upgraded yesterday, seems to be working pretty well here Dec 04 02:04:54 g00s: just don't open up as many tabs :P Dec 04 02:07:42 wyoung great suspended works too Dec 04 02:07:48 *suspender Dec 04 02:08:12 i've been using FF lately, once they got their e10s shipping Dec 04 02:08:22 FF has its own problems :) Dec 04 02:26:44 g00s: yeah I heard something about some exploit Dec 04 02:42:47 * capella-5x heard that about FF 😜 Dec 04 02:56:23 That's because you didn't pay your 3€ to the Mozilla Foundation **** ENDING LOGGING AT Sun Dec 04 03:00:01 2016