**** BEGIN LOGGING AT Sat Jul 09 02:59:58 2016 Jul 09 03:49:23 If you’re using Clang as the cross-compiler, there is a problem in the LLVM ARM back-end that is producing absolute relocations on position-independent code (R_ARM_THM_MOVW_ABS_NC), so for now, you should disable PIC: Jul 09 03:49:26 :/ Jul 09 03:55:19 arm-linux-androideabi/4.9.x/../../../../arm-linux-androideabi/bin/as: unrecognized option '-K' Jul 09 03:55:22 dafq Jul 09 03:57:15 bugger its -k not -K Jul 09 03:57:19 lol Jul 09 04:01:10 Anyone familiar with using svg files ? Jul 09 04:01:24 I had an svg with a drop shadow, but when I add it as an image asset the shadow is gone, not sure why Jul 09 05:01:06 Hey all. Can someone point me in the right direction? I want to create a service/Activity that floats above the screen (similar to Facebook chat heads). What's API should I look at? I'm targetting 5.0+ or 5.1+ if that makes a difference Jul 09 05:15:53 Anyone know? Jul 09 05:16:20 I think it's Friday night :D Jul 09 05:16:31 I'm just getting started in Android so I sure don't know Jul 09 05:16:47 I'm the second S in KISS Jul 09 05:17:10 (as in Keep It Simple..) Jul 09 05:17:54 liuwenhao: are you coding a game? Jul 09 05:18:09 No Jul 09 05:18:16 Just a GPS utility Jul 09 05:18:23 oh cool I like GPS Jul 09 05:19:00 https://github.com/recruit-lifestyle/FloatingView This looks pretty interesting Jul 09 05:19:09 But I think I might need to fork it since it's not very flexible Jul 09 05:25:12 5.1.1 is api 22 Jul 09 05:25:28 so 21 and 22 i guess Jul 09 05:52:36 Can I add a string paragraph with \n in strings.XML? Jul 09 06:13:25 help me to edit one xml of my application that is on apk package now! Jul 09 06:22:45 I just cant understand gridlayout Jul 09 06:23:09 I try to centarlize a widget, and then I centralize a widget in the line below, but the widget in the line below effects the widget in the line above Jul 09 06:23:15 even though the rowspan for both is 1 Jul 09 06:23:17 what the Jul 09 06:25:04 nvm I'll just use linear layout Jul 09 07:05:50 hello Jul 09 07:05:55 is xamarin good? Jul 09 07:55:13 all android geeks seem asleep Jul 09 07:56:05 drunk/passedout more likely Jul 09 07:56:28 if only Jul 09 07:56:49 * Robdgreat gets started Jul 09 07:57:03 lol, no thx, i dont do hangovers Jul 09 07:57:33 me neither Jul 09 08:11:28 Tims_Tech: it depends what you want to do. Jul 09 08:12:16 Tims_Tech: basically its just a cross platform framework. Jul 09 08:12:24 yes Jul 09 08:13:18 Tims_Tech: if you want such a thing for free, you can also use phonegap/apache cordova. Another possibility would be coding it for one platform and then translating it using XMLVM or the alternatives of it. Jul 09 08:13:30 Bradan, it is free already Jul 09 08:14:06 oh I see, right Jul 09 08:16:01 To evaluate whether or not it suits you the best, one has to know what you want to do. The problem with these cross platform frameworks is usually some sensors aren't well integrated or file management isn't well integrated on all platforms. Jul 09 08:17:14 For example in cordova I once tried to build an app for browser, windows, linux, android and iOS, but the file or database management was just a mess and not so cross platform as I wanted it to be. Jul 09 08:19:30 hmm Jul 09 08:20:03 I just watched conference video, where android advocates were telling how to optimize app for slow networks and low-end devices. I wonder, why google play cannot download files only needed for specific device? why it have to download all the images for different screens? sorry for being noob Jul 09 08:28:26 ok, no more wondering. https://developer.android.com/google/play/publishing/multiple-apks.html Jul 09 08:53:51 How do I attach Android N source to Android Studio? Or tell him to use Android M source instead? Jul 09 08:56:23 yoavst, linux or windows? Jul 09 08:56:34 Windows. AS 2.1.2 Jul 09 08:56:57 ok go to top window on android studio and you will see the select option Jul 09 08:57:04 there select android M Jul 09 08:58:45 Sorry, didn't understand you. :( Jul 09 09:00:52 I've changed `compileSdk` to 23 for now. Jul 09 09:08:58 yoavst: menu>tools>android>sdk manager ? Jul 09 09:10:11 xorgate_: android N (sdk 24) - I have it fully installed Jul 09 09:10:51 do you want to look at the source or just compile against the sdk? Jul 09 09:11:04 Look at the source Jul 09 10:19:33 anyone here developing apps without an IDE? i.e. in vim/emacs/sublime/w/e only? Jul 09 10:20:15 stasiic: its do-able but a lot of the tools are built to work though AS. Jul 09 10:20:28 is there something in particular you are interested in? Jul 09 10:21:10 Guys, any idea why when I try to start a new activity it just crashes without saying anything? no exception in the logs (debug mode, emulator) Jul 09 10:21:16 Intent registerIntent = new Intent(this, ProfileActivity.class); Jul 09 10:21:17 startActivity(registerIntent); Jul 09 10:21:50 Yeah I just want to program in vim. I installed the vim plugin for AS but it is still a bit wonky. i.e. no tab completions, so I am wondering if anyone here has managed to make a good vim setup for android developement Jul 09 10:21:51 nadav: put a breakpoint on the Intent line and look at the debugger Jul 09 10:22:36 nadav: there is always an exception. Jul 09 10:22:38 nadav: If there's nothing in logcat, then you're likely filtering away the exception Jul 09 10:22:41 its part of the contract Jul 09 10:23:48 stasiic: I personally haven't done it, ive heard it being done. But, never went down that path I like IDE's. Jul 09 10:25:11 * Ping_2_Ur_Pong places a wager that nadav didn't add the Activity to his manifest Jul 09 10:25:29 any takers, give you good odds 2/1 Jul 09 10:27:46 it's weird thought that "it just crashes without saying anything" .. it should say something, like "Couldn't find activity in manifest" if that was the case Jul 09 10:29:41 youd probably win Jul 09 10:30:07 yeah you won Jul 09 10:30:21 Ping_2_Ur_Pong: I'm not saying I don't like IDEs. For me any kind of java developement has been a pain in vim Jul 09 10:30:23 but yeah, I don't understand why not throwing an appropriate error Jul 09 10:31:50 nadav: it does, its part of the contract. You're filtering it, your log is filled and you are at the top and not bottom or some other reason. It has to. Jul 09 10:33:00 stasiic: yea, oddly I will use emacs for python/short scripts, but other than that I have been spoiled by IDE's particularly intelliJ based. I learned shortcuts once and apply for all my different IDE's. Jul 09 10:33:21 * Ping_2_Ur_Pong just wishes there was an IntelliJ for Xamarin. *starts swearing out loud* Jul 09 10:38:54 Ping_2_Ur_Pong: I don't know much about IDE's in general tbh. Why are intelliJ based IDEs better than others in your opinion? Jul 09 10:41:12 tons of features, great UI/UX, functionality is usually well done and thought out. They go to great lengths to make everything work well, and highly customizable. Jul 09 10:41:51 jerbrains are doing things proper Jul 09 10:42:08 try writting code with IntelliJ Idea and you will never want to use anything else. Jul 09 10:42:32 being someone that's done the Eclipse and earlier Netbrains. It is like night and day. Jul 09 10:43:14 hmm... Jul 09 10:43:43 jetbrains is proprietary though. RMS not approve :( Jul 09 10:44:01 netbeansneatbeans* Jul 09 10:44:19 depends on the version, there is the community which is free Jul 09 10:45:53 * Ping_2_Ur_Pong personally advocates spending money on a great IDE. As a programmer you will spend more time working with it than anything else. Its like an painters brushes, or a musicians instrument. It is the medium with which you create. Jul 09 10:46:35 or just use vim for coding anything other than java ._. Jul 09 10:50:50 IIRC there was an android studio version based on eclipse before the intellij one Jul 09 10:51:34 and i didn't even notice the switch. I just assumed that they made slight UI change Jul 09 10:52:57 so i am not so sure about the "night and day" difference you are talkning about Ping_2_Ur_Pong. Maybe I haven't dug deep enough into the IDEs Jul 09 10:54:33 There wasn't Jul 09 10:55:38 SimonVT: an eclipse based IDE or a slight UI change? Jul 09 10:55:53 AS was never based on eclipse Jul 09 10:56:35 The previous ide integration was an eclipse plugin, but that was called Eclipse ADT Jul 09 10:57:23 oh yes that right Jul 09 11:22:25 Hi, what do you think is the best way to solve the multiple accounts on one phone/pad issue? I use GPGS and if the user isnt logged in well there is no multiplayer/achievements/leaderboards but he can still progress in singleplayer. but how should this progress be handled? Jul 09 11:22:49 if it can be saved to a GPGS use rlater, then it could also be saved to another... Jul 09 11:23:04 2 players gaining the progress of one player.... Jul 09 11:23:29 if not, should the player have to start over when signing up for GPGS? Jul 09 12:13:42 i'm gtting confused now.. what's the proper way to use vector drawables so they are generated to .png on 5.0 . I want to load .svg in AS, and not worry about missing drawables <5.0 Jul 09 12:38:31 Hello. Ive a queston. I would like to create a own launcher which has a different splash screen (fixed widgets/views) but shouldnt change the behaviour of the other "pages". I dont want to loose the plug and play functionality to display and move the apps on the other pages. Is there any way to modify the default launcher instead of recreating a whole new? Jul 09 12:43:07 you fork the AOSP launcher Jul 09 12:44:05 lol. sry. hungover. I should have written "you can fork the AOSP launcher" Jul 09 12:44:43 Okay Jul 09 12:44:50 Do you have any hint or tutorial where to start? Jul 09 12:45:12 ah, found a github called flauncher Jul 09 12:50:28 misterli: here is the aosp launcher repo https://android.googlesource.com/platform/packages/apps/Launcher.git just download the source and modify it Jul 09 12:50:50 Ah, okay. Thanks. Is it "allowed" by license to do that? Jul 09 12:51:06 Or does google discline apps hosted in the appstore if they belong to the default luancher? Jul 09 12:52:29 misterli: i think it's under the apache license so yes you can use the source and modify it and host it on the play store Jul 09 12:53:47 Thank you Jul 09 12:55:05 i am not lawyer though, so you should probably read the license your self if you are worried https://www.apache.org/licenses/ Jul 09 12:56:22 all of it. Jul 09 13:03:42 oh, by the way.. launcher3 is the current launjcher right? since launchers source is 7 years old Jul 09 13:06:26 misterli: lol sorry. that is right, launcher3 is the current Jul 09 13:06:36 https://android.googlesource.com/platform/packages/apps/Launcher3.git Jul 09 13:09:20 Found it already, thanks Jul 09 13:10:14 By the way. I got an offer from a company creating an own launcher including 3 Widgets which grabs the data by a CRUD/REST Service and display them. The First Screen is "fixed" the other pages in the launcher are like the default launcher. ~ 180.000USD. Toooo expensive, right? Jul 09 13:17:50 ok, looks like that its a pain to import launcher3 since it requires protocol buffers and such Jul 09 13:19:30 misterli: sorry I dont really understand what the company's offer was and what you are asking Jul 09 13:39:59 Hi, what do you think is the best way to solve the multiple accounts on one phone/pad issue? I use GPGS and if the user isnt logged in well there is no multiplayer/achievements/leaderboards but he can still progress in singleplayer. but how should this progress be handled? [13:21] if it can be saved to a GPGS use rlater, then it could also be saved to another... [13:22] 2 players gaining the progres Jul 09 13:46:28 i dont get it. Execution failed for task ':generateDebugProto'. How do i install protobuf? Ive downloaded the binary for windows, but what is the next step? Jul 09 13:56:19 Hello, I have a View (RecyclerView), I've add a ViewTreeObserver to it, and I print it's size onGlobalLayout... it has the same size when the soft keyboard is visible and hidden... should'nt that change? Jul 09 13:57:58 depends on your activity flags Jul 09 13:58:09 adjustPan will not change size Jul 09 14:03:07 thanks Jul 09 14:03:53 is it possible to get the mode in runtime? I see I can set it, but can I get it first so I could restore it in onDestroyView() ? Jul 09 14:04:40 found it, nm Jul 09 14:06:12 LunarEclipse120, but I'm wondering if I'm using pay api 3 Jul 09 14:06:33 will adding such key help to improve security, if there will be just paying for some application options Jul 09 14:07:01 What> Jul 09 14:07:13 so when I wont use such key Jul 09 14:07:31 then I can simply implement billing with IInAppBillingService Jul 09 14:07:40 and in code check if user has some purchases or not Jul 09 14:08:05 I don't see point if adding mentioned anpp key policy will improve security against hackers in this case Jul 09 14:08:11 it's a freemium paying model Jul 09 14:08:37 O.o Jul 09 14:08:45 What exactly are you talking about? Jul 09 14:08:59 ok, so I want to release app for free download Jul 09 14:09:02 InAppBillingService is currently at API version 3 ? Jul 09 14:09:23 sorry, not Android API 3 Jul 09 14:09:26 Can you link to APIs that are confusing you? Jul 09 14:09:28 but 3rd version of pay api Jul 09 14:09:37 sample code: Bundle ownedItems = mService.getPurchases(3, getPackageName(), "inapp", null); Jul 09 14:09:50 In-app Billing Version 3 Jul 09 14:10:21 so my app will check if user has some purchasess, if yes then some functionality will be available Jul 09 14:10:46 I don't see how having License Verification Library would help to protect against crackers Jul 09 14:10:54 in this particiral case Jul 09 14:12:56 whoa, it's strobing outside - summer storm coming over Jul 09 14:13:47 marekw2143, is your app offline only? Jul 09 14:16:26 mainly offline Jul 09 14:20:25 it's not available on Google Play yet Jul 09 14:20:30 but hope to deploy it soon ;) Jul 09 14:21:46 so will it give any profits or not in offline apps ? Jul 09 14:23:26 since getPurchases of IInAppBillingService doesn't return encrypted data Jul 09 14:23:39 I think that giving such licence key is not necessary Jul 09 14:23:48 but I may be wrong, that's why I'm asking : ) Jul 09 15:38:02 is there anything like a guide on how textview works internally or how to make a custom one? i.e. where text gets measuered, where spans are parsed, how the actual drawing is done, etc Jul 09 15:39:02 dunno about a guide, but you can get quite far with just staticlayout, depending on what you want to do Jul 09 15:40:04 ultimately, afaik it more or less just uses standard java apis with paint/canvas/drawtext Jul 09 15:43:08 for now i want to decide if i can make a custom textview (that takes input other than spannables and html and draws custom spaces) or it is too much effort Jul 09 15:43:22 the source of staticlayout is pretty hard to read :s Jul 09 15:43:25 heh Jul 09 15:43:54 well, basically all everything ends up doing is measuring the width of rendered strings, and then deciding where to break on spaces Jul 09 15:44:14 Are you thinking of doing something like TeX or something? Jul 09 15:46:05 hi Jul 09 15:47:51 it shouldn't be too troublesome to (e.g.) do something that does flush-left/right text "by hand" - essentially you'd use something like TextPaint.measureText, then draw one word at a time on the canvas by suitable modification of the x position Jul 09 15:50:01 There is one caveat - which is that the underlying engine (skia) has more sophisticated control over how it parses/manages the font files. Essentially, you'll find that the spaces you choose will be slightly "off" from what skia would render - there's some info lost via measureText() ... Jul 09 15:50:17 * kbs has obsessed over this for too long :) Jul 09 17:08:39 does gradle use the android studio proxy settings? Jul 09 17:29:20 no Jul 09 17:42:42 I understand a large screen needs fragment to display two windows side by side but why does a small screen need one? to swipe to next screen? Jul 09 17:44:51 it doesn't, it's just a reusable group of views and logic Jul 09 17:45:00 that's the basic goal of fragments anyway Jul 09 17:46:31 pfn: reusable in same activity or different activities? Jul 09 17:46:44 any way you want it Jul 09 17:47:59 for example on small screen i would be swipping one screen to another and on large i will be seeing them side by side. when you mean swipe, will it happen within same activity? Jul 09 17:48:39 so like i switch between fragments rather than activities on swipe? Jul 09 17:49:04 no one switches activities on swipe Jul 09 17:49:22 activity switches are hard context switches Jul 09 17:51:41 i think i don't need fragments there since i wn't be reusable the in different activities Jul 09 17:52:04 reusing using them* Jul 09 17:52:25 reusing them* opps lol Jul 09 17:54:27 pfn: because i won't be creating same layout for swipe screens, so does it still make sense to use them? i think i should use them for table layout. Jul 09 17:57:16 use them where it makes sense Jul 09 17:57:28 experience will teach you that Jul 09 17:58:29 pfn: since i think it won't be reusing any fragment layout, so i shouldn't be using it Jul 09 18:00:24 think of it as a reusable component of UI and logic Jul 09 18:04:10 ok i'm going to use it for now then i will figure out if i can really avoid it or require it. Jul 09 18:07:35 hi, do default proGuard configuration proguard-android-optimize.txt enable code obfuscation ? Jul 09 18:10:55 yes Jul 09 18:11:27 the default is to obfuscate unless -dontobfuscate is set Jul 09 18:12:45 Hmm so I got an Email stating -> that collects personally identifiable information (PII) without disclosure. Apps like this may be considered in violation of our User Data policy. Jul 09 18:13:07 Hmmm does that mean I should just ASK the user if the SDK can take their details Jul 09 18:13:08 ? Jul 09 18:15:32 disclose it as part of a notice when starting the app for the first time Jul 09 18:16:24 pfn: And that is all I should do? Jul 09 18:17:00 that's precisely what you pasted says Jul 09 18:17:06 Ideally you'd provide an opt-(in|out) notice... but disclosing any collection of PII should be the high-order bit. Jul 09 18:17:29 there's never any opt out: accept or exit the app Jul 09 18:18:04 that'd be up to the app developer of course - it may not be necessary to collect PII for the app to provide value Jul 09 18:21:57 Well if we dont then its kind of useless Jul 09 18:23:07 pfn: would it be resuability if i use two fragments i created for small screen and use them for large screen on tablet? Jul 09 18:23:58 surr Jul 09 18:24:48 cart_man: ah :) in that case... Jul 09 18:27:28 cart_man: https://play.google.com/about/privacy-security/personal-sensitive/ also for further specifics Jul 09 18:48:44 hi all Jul 09 18:48:50 hi Jul 09 18:49:16 i dont really good speak english Jul 09 18:49:30 is this channel frpm android programming? Jul 09 18:49:45 frpm ? for Jul 09 18:52:17 yes Jul 09 18:53:46 unless theres a difference between development and programming idk Jul 09 18:54:26 i need a simple http request but all dont run Jul 09 18:54:44 apachehttp, okhttp, loopj Jul 09 18:57:07 for web page? Jul 09 18:58:07 yes Jul 09 18:58:25 i have a php file that give me "hello world" Jul 09 18:58:42 this hello world i want read over an android app Jul 09 19:00:51 snooky: Have you tried the page in a web browser on the Android device? Is the URL valid? http://localhost or http://127.0.0.1 will not work, for example. Jul 09 19:01:50 yes it runs. its my own root server. from computer or smartphone browser i can read the hello world Jul 09 19:02:42 okay, can you show the okhttp code you used? (use a site like fpaste.org) Jul 09 19:03:08 also, what happens when you run the code? do you get an error? Jul 09 19:05:55 the app crashed Jul 09 19:06:03 moment, i past the code i an nopaste Jul 09 19:10:02 hhmmm... i have erase it :( Jul 09 19:10:11 now i test it new Jul 09 19:14:58 i dont find the old howto :( Jul 09 19:15:40 snooky: https://raw.githubusercontent.com/square/okhttp/master/samples/guide/src/main/java/okhttp3/guide/GetExample.java Jul 09 19:17:37 Any advice for getting better at designing the architecture for an app? Like knowing what classes to make and how to link it all together? Jul 09 19:18:31 markyosullivan2 if you follow /r/androiddev - they take a stab at it every day :D Jul 09 19:18:48 but android resists Jul 09 19:19:12 g00s: I'm on /r/Androiddev every day Jul 09 19:19:23 Seeing all those posts makes me paranoid about how I build apps :D Jul 09 19:20:06 markyosullivan2 did you see that post from yesterday-or-so ... 'i took out all the presenter and interfaces and everything was so simple' Jul 09 19:20:43 g00s: Didn't see that one! Jul 09 19:20:53 I'm still not developing apps in an MVP approach yet Jul 09 19:20:59 it was a comment Jul 09 19:21:21 now the app runs but i dont can see everything connection on my server log Jul 09 19:21:23 I thought you need the presenter Jul 09 19:21:31 hence mvP Jul 09 19:21:38 instead of MV Jul 09 19:22:11 Like is there any guide on how to plan out a big app? Jul 09 19:22:19 Or one which is going to get potentially big Jul 09 19:22:47 I'm the only Android dev for a startup and I feel like I'm going to mess up eventually Jul 09 19:23:08 Or there'll be another Android dev brought in who will wonder what the hell I'm doing with my code Jul 09 19:23:21 lol Jul 09 19:23:23 http://nopaste.linux-dev.org/?1119386 Jul 09 19:24:58 I don't know, I think I'm just stressing a lot, I don't want to mess up and I just want to keep getting better at Android dev Jul 09 19:25:31 snooky: do you have in the android manifest? Jul 09 19:26:02 snooky: also, you need to call the okhttp code. you have methods but they won't be called. Jul 09 19:26:04 yes Jul 09 19:26:39 its my first android project Jul 09 19:27:30 then you may need to learn about AsyncTask and activity lifecycles - https://developer.android.com/training/basics/activity-lifecycle/index.html Jul 09 19:29:34 can i dont write android applications in c? Jul 09 19:30:49 not easily Jul 09 19:31:24 android is base of linux, or? Jul 09 19:31:39 sry Jul 09 19:31:47 snooky can you google ? Jul 09 19:31:53 linux is the base of android. Jul 09 19:31:55 yes Jul 09 19:33:40 Android is life Jul 09 19:40:11 LOL Where do I download AS from? Jul 09 19:41:22 http://lmgtfy.com/?q=download+android+studio Jul 09 19:42:05 LOL see that's my point Google's own website is broken for firefox on Linux Jul 09 19:43:20 LOL so funny topkeklmao Jul 09 19:43:49 I go here: https://developer.android.com/studio, then I click "DOWNLOAD ANDROID STUDIO 2.1", it asks me to agree, and I agree, (But the agree button is blank) and it sends me right to here:https://developer.android.com/index.html Jul 09 19:44:25 I think I had a similar problem, I may have just used chrome temporarily Jul 09 19:44:44 Funny thing is it's been broken for so long Jul 09 19:44:45 yeah, chrome works Jul 09 19:44:56 just use chrome on Linux to download it Jul 09 19:45:25 few months ago I noticed the problem, and used google to find a back way to the download and I figured it was just my computer. But today I tried another computer with a fresh install and it had same problem Jul 09 19:57:06 in which folder do you suggest to install jdk 8? Jul 09 19:57:15 ^^ am on linux Jul 09 20:01:44 levo, one you got lots of space in :D Jul 09 20:02:18 jesseg: i unpacked the tar.gz file, is there anything else i should do? Jul 09 20:02:19 rubenwardy, hmm, Google seems to only offer debs or rpms for Linux Chrome, and only for amd. I wonder if that would run on intel if I converted it to a package for slackware Jul 09 20:02:29 how do i position an ImageView or any View in between (and in front of) two layouts like the one on twitter profile pic shown here - http://i.stack.imgur.com/bYLYq.jpg Jul 09 20:03:44 levo, you know what I don't remember if I had to do an install setup or anything. Mine's in /big/jdk1.8.0_25 -- big is a partition I have that's bigger than / Jul 09 20:05:50 levo, I think I just extracted it there, then I modified my studio.sh to have a line near the top that says https://developer.android.com/index.html Jul 09 20:05:53 oops wrong paste Jul 09 20:05:57 JAVA_HOME=/big/jdk1.8.0_25/ Jul 09 20:06:17 oh right so i have to export the new path Jul 09 20:06:20 that tells it where my jdk is -- you would want to modify yours to wherever you put your jdk Jul 09 20:06:30 yep right thanks Jul 09 20:06:45 yeah you can export it or you can just put the command in the studio.sh which comes with android studio Jul 09 20:10:33 jesseg: amd64 runs on intel Jul 09 20:10:46 it's like how i368 or whatever runs on amd Jul 09 20:10:57 they're just 32 vs 64 instruction sets Jul 09 20:11:05 hmmm Jul 09 20:11:24 http://askubuntu.com/questions/54296/difference-between-the-i386-download-and-the-amd64 Jul 09 20:16:28 Thanks Jul 09 21:25:18 Can someone explain this behaviour in Android Studio? Jul 09 21:25:19 https://gfycat.com/SecondShockedBlackfish Jul 09 21:25:36 I cannot update the JDK location. Jul 09 21:25:50 It is the default location, other than drive letter, that the JDK provides. Jul 09 21:26:13 When I attempt to update the JDK, no error occurs. But reopening the dialog box, shows it has silently reverted. Jul 09 21:30:26 Cyberstorm interesting Jul 09 21:31:15 how can I get a callback when location data becomes available? i'm using locationsettingsrequest and startactivityforresolution and can detect user accepts enable location services but the app crashes if I attempt to get location immediately after Jul 09 21:31:35 Normally, having errors in your program, is a sign of bad programming. Jul 09 21:31:42 having it happen without an error, is worse. Jul 09 21:31:56 And having it happen in an app DESIGNED for developers....I don't even know what to say. Jul 09 21:32:12 Freshly installed JDK and freshly installed Android Studio... Jul 09 21:34:03 What version of JDK do you use? Jul 09 21:34:12 Cyberstorm this is just the beginning :D Jul 09 21:34:44 it's much better with emacs, so few expectations :-) Jul 09 21:34:46 Wow, android programming sure is user friendly Jul 09 21:35:02 By which I mean, merely setting up your environment. Jul 09 21:37:56 Time to whip out lowlevel tools examining registry and file system writing to see if a clue as to why settings aren't preserved, might be found. Jul 09 21:39:43 I have two drawers with a hamburger icon controlling the left, how can i create a hamburger icon (on the right side of the appbar) for the right drawer? Jul 09 21:40:30 Chloe just put an icon on the right - but not hamburger Jul 09 21:40:35 put it in the action menu Jul 09 21:41:25 Found access to "C:\Users\\.AndroidStudio2.1\config\options\statistics.application.usages.xml" which mentions: " lol, every time i create a menu resource file my AS internal errors Jul 09 21:42:46 g00s: ah, good idea, thanks Jul 09 21:44:59 how can I detect when location becomes usable? Jul 09 21:46:58 I created a NEW project, on the latest version of android studio, and by default, the project has jdk 1.7 as it's choice. WHy is that? Jul 09 21:47:43 Cyberstorm lol, close down your project Jul 09 21:47:56 so that its just the little AS splash window Jul 09 21:47:58 I completely closed...deleted, and created a NEW blank prject Jul 09 21:48:20 yeah, then go into prefs, project defaults, etc and change that Jul 09 21:48:34 its inheriting default settings Jul 09 21:49:25 Looking for default settings, rather than "Project Structure" Jul 09 21:51:02 So, an existing prject can never be changed? Jul 09 21:51:11 Cause, attempting to change the existing project failed silently. Jul 09 21:52:01 Nope, despite having changed the "default settings" and then created a NEW project, it reverted to 1.7.0.67 Jul 09 21:53:24 maybe that other jdk install is corrupted Jul 09 21:53:44 perhaps AS looks for the askjeeves_toolbar.dll Jul 09 21:55:29 The other JDK is not installed. Ther named directory does not exist. Jul 09 21:57:12 Here it is, in action, at the simplest level... Jul 09 21:57:13 https://gfycat.com/FlimsyGoodArmednylonshrimp Jul 09 21:57:49 Witness it is the latest version. And no error's occur. Merely silently restored. Jul 09 21:58:01 Who designs an program to do such a thing!? Jul 09 21:58:23 If it has a problem with your input, proper programing dictates it TELL YOU. Jul 09 21:58:39 not silently go against your wishes and change it back. Jul 09 21:59:39 Well, it's IDEA. Jul 09 21:59:51 So I guess login to your IntelliJ account and file a support ticket? Jul 09 22:00:02 (We're not AS developers here, whining here just annoys people.) Jul 09 22:00:42 Sorry for complaining . It's not meant for developers, who are hopefully very experienced. Jul 09 22:00:55 But for fellow users who might wonder "Yeah, that's really odd of them" Jul 09 22:01:25 But I'm a hands on problem sover. Jul 09 22:01:46 Rather than just file a ticket, also like to go digging thru configuration files, to see where the origins of the old path comes from, for exmaple Jul 09 22:02:45 Whenever my phone messed up, I eventually learned WHY it was. Jul 09 22:03:04 Why I couldn't find a text message, by the corruption in the sqlite database that held messages Jul 09 22:03:10 And actually fixed it myself. Jul 09 22:03:54 By the way, is android studio the recomended devlopement environement for making an app? Jul 09 22:05:35 I love how there's a video tutorial on how to install...press next, next, install, finish. Jul 09 22:05:35 https://goo.gl/Q5Jr7i Jul 09 22:15:28 Heya, what is the name for buttons that are just text? Like the "OK" and "Cancel" here http://i.stack.imgur.com/03TwW.png -- as opposed to buttons like "clear" and "submit" here http://stacktips.com/wp-content/uploads/2013/08/Android-RadioButton-Example.png Jul 09 22:18:06 A button with a clear background? Jul 09 22:20:11 Ahhh... that's all it is isn't it? Jul 09 22:20:14 k thanks Jul 09 22:25:53 Can anyone explain why this doesn't work for Marshmallow? Jul 09 22:25:54 http://pastebin.com/QFhxs83j Jul 09 22:26:51 I'm working on an app that involves location, and as part of testing it, I have to move around. However, it's crashing on me. How can I store the debug logs so that I can view them when I connect to a computer again? Jul 09 22:49:19 use a crash reporter, like fabric Jul 09 23:26:51 Can anyone please explain why this doesn't work for Marshmallow? http://pastebin.com/QFhxs83j Jul 09 23:27:17 It works pre-marshmallow Jul 09 23:42:09 explain doesn't work Jul 09 23:52:08 every once in a while, AS gets into this funk where it does each build twice .. anyone notice that ? Jul 09 23:53:18 g00s, i see something like that, but i haven't identified it as that in particular. but yeah, it goes nuts sometimes and i have to shut it down and repoen it. Jul 10 00:17:39 whatitis: On the start of my app, it should create a file. I wrote a simple test to check that the file is created. However the file isn't created when I run on Marshmallow. When I run the app without the test though, the file is created. Jul 10 00:34:29 Is it not possible to exclude a layout file from Android Studio? I right click on the file and don't see "exculde" or "remove" option Jul 10 00:52:40 what's the last NDK 32-bit package? Seems strange that google don't do links to the older versions on the revisions web site Jul 10 01:12:36 wow, i had no idea Amazon's official inventory was co-mingled with anyone else selling that product but fulfilled by amazon, so you might get fake items Jul 10 01:38:55 g00s, maybe from the same supplier. where does that information come from? Jul 10 01:39:36 timemage i'm reading this story about amazon having problems with counterfeits Jul 10 01:39:48 story is from HN Jul 10 01:40:17 timemage but, quite a few have commented that all the same SKU goes in the same bin no matter who its from Jul 10 01:40:36 they will ship from the location closest to you Jul 10 01:40:55 which could be some affiliate's inventory Jul 10 01:41:19 so legit & counterfeit stuff get mixed Jul 10 01:45:00 g00s, i guess i've yet to notice a problem. Jul 10 01:47:21 timemage i purchased some eneloops a few months ago that were terrible, and i've been using them for years. dunno, all looked legit. i guess i could send them back Jul 10 01:47:36 but on CPF a lot of people claimed to get fake eneloops Jul 10 01:47:49 What do most people use for storing dates and times in android? Jul 10 01:47:54 g00s, huh. i was looking at those a while back. Jul 10 01:49:24 timemage there are 2 legit versions, one from japan and one from china. but still, mine were supposedly from japan. the chinese ones aren't as good Jul 10 01:49:40 the chinese one show up in some markets Jul 10 01:54:02 Okay I found out the issue for my tests failing on marshmallow Jul 10 01:54:15 permissions aren't set Jul 10 01:55:05 should I be asking for permissions before the app even starts? Jul 10 01:56:38 IggyGee have you googled at all? thats like the big marshmallow thing Jul 10 01:57:00 yeah, but it felt weird to happen in a unit test Jul 10 01:58:01 g00s: should I ask for permissions before my first activity is created?? Jul 10 02:00:28 IggyGee i'm not sure in the context of unit tests Jul 10 02:00:47 g00s: in general Jul 10 02:01:38 IggyGee this is a good one https://inthecheesefactory.com/blog/things-you-need-to-know-about-android-m-permission-developer-edition/en Jul 10 02:01:57 alright, thanks Jul 10 02:05:56 "If you could learn Android Development from scratch how would you re-do it?" hmm Jul 10 02:09:40 I wouldn't, and wait a few years for it to get easier Jul 10 02:43:14 moto G4 looks OK, wonder what the update policy has been like under lenovo Jul 10 02:45:13 Lenovo ruined Motorla Jul 10 02:45:16 *Motorola Jul 10 02:45:21 I hate them with a passion now. Jul 10 02:47:25 even back in the day, the E / G said "gets one update" but you had no idea what it was Jul 10 02:48:03 basically i'm too lazy to research how this company is going to handle that so, i'll stick with htc nexus when it comes out :D Jul 10 02:48:43 unless its too much $$$ for what i'm willing to pay for an android phone, which isn't much Jul 10 02:49:38 hopefully the small one will be ~300 usd Jul 10 02:51:15 what are those things called that make programming mobile apps way easier? Jul 10 02:51:35 Shit. Jul 10 02:52:57 i feel like one was named after alcohol or something Jul 10 02:56:24 is android studio like that one thing for kids to learn how to develop on android? Jul 10 02:58:19 man, this channel is dead Jul 10 02:58:22 you're thinking of app inventor Jul 10 02:59:19 thanks leeds. so android studio is their legit dev environment then? Jul 10 02:59:33 yes Jul 10 02:59:57 and its not as hard as it used to be to install? **** ENDING LOGGING AT Sun Jul 10 02:59:58 2016