**** BEGIN LOGGING AT Sun Apr 17 02:59:58 2016 Apr 17 04:13:09 I don't know any real programming, I've done some HTML and RBase scripting, as well as some command prompt batch. I would like to develop software/games through Unity for Android. Apr 17 04:13:36 I expect this to take a long time. I'm not going to expect masterpieces out the door (or probably anything really playable), but I do need to start somewhere.. Apr 17 04:13:45 What would be a good place to start, and what languages to learn? Apr 17 05:30:27 for android apps start at d.android.com, but if you want to do unity stuff, That is likely very different. I think you just download/use unity go through their tutorials and then save out to an apk Apr 17 05:30:41 IanTLopp, ^^ Apr 17 05:31:15 thanks, hopping over there right now. Apr 17 05:45:02 Hi, can anyone help me with getting a google account in my app? This was working two weeks ago. I changed nothing except I upgraded to Android Studio 2.0. Now my app returns 0 accounts when checking for accounts. Apr 17 05:45:55 I checked and I have GET_ACCOUNTS priviledges. Apr 17 05:50:19 Some other great features of Android Studio 2.0 - it really bogs down the system while building and honeybadger don't care if you want to use a different emulator to try a different app flavor. Nope, just stick it on the last emulator that was running. Apr 17 07:06:52 I have an idea for a project Apr 17 07:07:01 I drive a lot, and everone uses their phone Apr 17 07:07:48 how about a service similar to accessibility services that makes it easier to use the phone while keeping your eyes on the road Apr 17 07:08:21 gestures for easier navigation, easily switching between apps Apr 17 09:48:10 hi ... could someone pitch me a name of an open source app/lib that i could use to rate images/vid ? Apr 17 09:49:31 trying build a social network app, for any type of community that users could uploads images/videos and could rate the content of other members, what is the best way to do that ? Apr 17 11:16:26 Hello. Apr 17 11:16:55 I have the kernel of my LG grabbed from OpenLGE in a .Tar file. Apr 17 11:17:05 How can I build AOSP? Apr 17 11:17:41 Dil3mm4, probably should move the convo #android-root but not necessarily Apr 17 11:18:24 Dil3mm4, but you NEED_FAR_MORE than a kernel to build AOSP Apr 17 11:18:52 including vendor and device trees, binary blobs etc Apr 17 11:21:10 Pclover how can I obtain em? Apr 17 11:21:25 OEMs don't provide those Apr 17 11:21:29 since they don't have to Apr 17 11:21:49 bet is to look at github repos for your device. Maybe CM has them or other AOSP builds etc Apr 17 11:22:06 No trace of my device on github Apr 17 11:22:14 What do you have? Apr 17 11:22:58 LG L Bello, a MTK 6582 equipped device Apr 17 11:23:56 I suspect that LG heavily modified kernel btw because Mediatek didnt release any full kernel source for mt6582. Apr 17 11:24:14 Since source is available from LG i think that thwy changed a lot of things Apr 17 11:24:25 I found this https://github.com/rohantaneja/android_device_mediatek_mt6582 Apr 17 11:24:37 but keep in mind building AOSP is not easy Apr 17 11:24:43 you have to have knowlge about how the stuff actually works Apr 17 11:24:47 knowledge Apr 17 11:25:00 And prepare for a world of build errors and a non booting device Apr 17 11:25:00 plus you have binary blobs to deal with Apr 17 11:25:04 ^^^^ Apr 17 11:25:27 i spent 45 minutes of it bitching at me about my java version Apr 17 11:25:30 and debugging that Apr 17 11:26:03 What about the blobs? Apr 17 11:26:14 you'll have to find those depending on what hardware is used on the device Apr 17 11:26:14 I would strongly advise trying to build CM in any case if you are starting out. AOSP is very hard to build for non-supported devices Apr 17 11:26:19 ^ Apr 17 11:26:45 like i said you have to have knowledge about how the stuff works Apr 17 11:26:49 and the hardware in use Apr 17 11:26:56 Especially considering you have some sort of base repo you can work from above Apr 17 11:27:00 and being a MediaTek device makes it worse Apr 17 11:27:17 Qualcomm devices seem to be the best to work with Apr 17 11:27:19 Well it's come a long way since the JB days but still not exactly a piece of cake Apr 17 11:27:45 Mainly because of Android One Apr 17 11:27:51 i guess OEMs use mediatek due to price Apr 17 11:27:57 and Qualcomm SoCs must cost alot more Apr 17 11:27:59 Yup definitely Apr 17 11:28:19 but it seems if your doing a phone design Qualcomm is the way to go Apr 17 11:28:26 since they have crazy basebands that support like everything Apr 17 11:28:27 as well Apr 17 11:28:59 but when your trying to build something down to a price point that doesn't work i guess Apr 17 11:29:09 I wont never go again for a MTK equipped device Apr 17 11:29:22 they are also known GPL violators Apr 17 11:29:22 as well Apr 17 11:29:43 Expecially if used by a "big" company like LG Apr 17 11:29:56 Theres a lot od people that made skmething for 6582 Apr 17 11:29:59 sounds like a LG budget phone Apr 17 11:30:10 were price was the number one factor Apr 17 11:30:15 But i cant use it due to kernel issues Apr 17 11:30:56 I managed to have a generic 6582 cm build booting Apr 17 11:31:05 But no Ril no media no camera Apr 17 11:31:09 Nothing of nothing Apr 17 11:31:13 yep Apr 17 11:31:16 RIL is another problem Apr 17 11:31:20 Well you got it booting Apr 17 11:31:24 That's pretty good already Apr 17 11:31:26 and than does the framework and telephony stack work with it etc Apr 17 11:31:31 yeah it is Apr 17 11:31:38 Data are correctly stored in data nvram Apr 17 11:31:47 But nothing works. Apr 17 11:31:47 there is so much code that makes android tick Apr 17 11:31:59 All of those issues are likely binary blob issues Apr 17 11:32:03 yeah Apr 17 11:32:13 Especially if you are compiling for a newer version of Android than your device ships with Apr 17 11:32:29 and sometimes those blobs wont work with newer versions Apr 17 11:32:33 for various reasons Apr 17 11:32:46 Usually symbols have changed and you have to hack them back in Apr 17 11:32:59 yeah Apr 17 11:33:13 or until the vendor updates them Apr 17 11:33:16 Meh who knows. Other 6582 generic device has everything working Apr 17 11:33:30 Our phone just boots xD Apr 17 11:33:36 but besides the SoC there is other hardware you have to worry about Apr 17 11:33:41 such as the wifi bluetooth chip gps etc Apr 17 11:33:46 baseband Apr 17 11:34:36 tilal6991, i wish vendors would at-least release device and vendor trees. Apr 17 11:34:42 but that isn't happening Apr 17 11:35:14 How can i try to obtain binary blobs? Apr 17 11:35:22 Theres a procedure ? Apr 17 11:35:33 https://github.com/CyanogenMod/android_frameworks_base/commit/fc496c0607d0d2863ff9587019e890ab806ea49d Apr 17 11:35:37 These were the days Apr 17 11:35:55 GB -> ICS with a total rewrite of the EGL stack Apr 17 11:36:14 i wonder how many more changes N brings Apr 17 11:36:35 KK to L was pretty major Apr 17 11:36:39 L to M seems alot less Apr 17 11:36:41 Dil3mm4: they are located on the stock ROM of the device Apr 17 11:36:58 I've been out of the platform scene since 4.4 I guess Apr 17 11:37:05 oh Apr 17 11:37:06 So I don't really know how it's been Apr 17 11:37:17 you just do app dev stuff now or? Apr 17 11:37:25 I did do some work with the Sony guys for AOSP on L though Apr 17 11:37:36 That was nice because you had the support of Sony itself Apr 17 11:37:43 yeah Apr 17 11:37:58 App stuff but I follow along with AOSP changes I guess Apr 17 11:38:10 it seems most dev don't touch platform stuff Apr 17 11:38:10 Just not how custom roms have been doing Apr 17 11:38:17 and deal with higher level stuff frameworks and APIs for apps Apr 17 11:38:32 I did platform before apps lol Apr 17 11:38:46 I'd quite like to work in the platform team at some point if I get the chance Apr 17 11:39:03 i wonder what pays more tho Apr 17 11:39:11 app devs or platform devs in companies Apr 17 11:39:29 Oh I wouldn't work in any platform team outside Google Apr 17 11:39:46 I don't feel you'd be as appreciated in a company which doesn't make the platform itself Apr 17 11:39:53 And probably get paid less too Apr 17 11:39:56 lol yeah Apr 17 11:40:02 even tho you built the base to make it work Apr 17 11:40:07 and low level stuff like the bootloader etc Apr 17 11:40:12 Yup exactly Apr 17 11:40:20 was looking at that Apr 17 11:40:26 android bootloader stuff is very complex Apr 17 11:40:29 since it's multi stage Apr 17 11:40:45 and of course it varies from vendor to vendor Apr 17 11:41:31 Most bug companies will take QCOM bootloader and modify it to account for hardware changes Apr 17 11:41:38 Very few actally maintain their own Apr 17 11:41:52 Samsung for Exonys probably Apr 17 11:41:53 that would make sense to me Apr 17 11:42:45 and implement a chain of trust in it as well as qFuses depending on the design (I'm looking at you Samsung ) Apr 17 11:44:33 tilal6991, wonder if you need to know arm assembly for a bootloader or if you can just do it in C or something. Apr 17 11:45:05 arm assembly maybe if you need to do low level stuff and hardware initialization Apr 17 11:45:51 Yes certainly for the low level stuff you do need to do assembly Apr 17 11:46:04 I'd imagine more than 20% at least would need to be Apr 17 11:46:25 the device would have no clue what C is when first turning it on Apr 17 11:47:00 i guess maybe the 2nd stage bootloader could be C which is called ABOOT iirc Apr 17 11:50:32 tilal6991, i guess one project i could try and build AOSP for my moms galaxy tab A which has a Snapdragon 410. I bet generic trees have to exist somewhere for it. Apr 17 11:51:20 I doubt it Apr 17 11:51:37 for a snapdragon410 Apr 17 11:51:40 it's a common chip Apr 17 11:51:40 Considering the amount of work that went into getting Sony AOSP working Apr 17 11:51:51 You could probably hack AOSP for it sure Apr 17 11:52:05 But if you want to compile directly against Google trees probably not Apr 17 11:52:20 yeah Apr 17 11:52:22 that would be the goal Apr 17 11:52:42 A kernel had to be written from scratch for it to work for Sony devices Apr 17 11:52:50 https://github.com/sonyxperiadev/kernel Apr 17 11:54:19 https://github.com/MotoG3/android_kernel_motorola_msm8916 Apr 17 11:54:28 i guess would be a good start Apr 17 11:54:37 It's a CM kernel Apr 17 11:54:54 But I guess if the commits are nicely split then yeah good starting point Apr 17 11:55:27 i don't think it's device specific Apr 17 11:55:30 just for that SoC Apr 17 11:57:31 it's probably alot of work Apr 17 12:01:06 https://github.com/CyanogenMod/android_device_cyanogen_msm8916-common Apr 17 12:01:16 i guess that's good as well tilal6991 Apr 17 12:06:28 Sure anything helps Apr 17 12:07:32 just seems like its going to be lots of work Apr 17 12:08:29 Tilal6991 Apr 17 12:08:48 Would you help me and 4pda guys with this device? Apr 17 12:09:05 i don't own the device so i can't Apr 17 12:10:00 We would test and provide anything you need pclover Apr 17 12:12:18 Even if you don't have our device Apr 17 12:12:32 really not hte best Apr 17 12:12:34 plus i'm not a dev Apr 17 12:14:39 Hello, why it is said in the docs that internet permission is in normal protection level but in AndroidManifest.xml it is set to be dangerous? Apr 17 12:14:43 I mean, if I take AndroidManifest from Android sources and look at it, it says internet permission is dangerous Apr 17 12:14:51 Isn't it core/res/AndroidManifest.xml which defines system permissions? Apr 17 12:15:00 In Android source tree, core/res/AndroidManifest.xml I mean Apr 17 12:16:58 Miika--: https://android.googlesource.com/platform/frameworks/base/+/master/core/res/AndroidManifest.xml Apr 17 12:17:19 says android:protectionLevel="normal"" Apr 17 12:22:48 Maurits-: oh, ok... I used file from repo mirrored at Github, but it wasn't master, it was from release 5.1.1_r36 since I need it from latest version before the 6.0 Apr 17 12:23:18 but, anyway, the developer docs are authoritative Apr 17 12:23:35 things might be defined differently under the hood Apr 17 12:25:27 I used this: https://raw.githubusercontent.com/android/platform_frameworks_base/android-5.1.1_r36/core/res/AndroidManifest.xml Apr 17 12:26:36 Hm, so you mean if I want to get list of permissions and their protection levels, I should use docs, not that file? Apr 17 12:26:40 yep Apr 17 12:27:24 Is this the right one? http://developer.android.com/reference/android/Manifest.permission.html Apr 17 12:27:45 the only reason you are able to look at that file is because android happens to be open source Apr 17 12:27:47 That's one place Apr 17 12:27:48 http://developer.android.com/guide/topics/security/permissions.html#normal-dangerous Apr 17 12:27:53 That's another Apr 17 12:28:18 More friendly and easy to understand than the very terse JavaDocs Apr 17 12:28:41 what do you think of android N switching to OpenJDK Apr 17 12:28:51 from Oracles version of of it Apr 17 12:29:06 Seems like a good decision Apr 17 12:29:23 i guess it doesn't effect devs at all Apr 17 12:29:34 I mean pre-N is based on Apache Harmony which doesn't even exist anymore Apr 17 12:29:47 The legacy code is there but there's no development on it Apr 17 12:30:15 oh Apr 17 12:30:30 maybe i should get serious about andoid platform dev stuff Apr 17 12:30:52 problem is i've spent too much time learning cellular network stuff Apr 17 12:31:03 and radio stuff Apr 17 12:31:05 and networking lol Apr 17 12:34:16 Maurits-: Yes, I just need the list of system permissions available to app developers :) I really doesn't matter where I get those. Apr 17 12:34:32 Docs are ok, if I get those from there :) Apr 17 12:40:18 Thanks anyway Apr 17 14:20:07 Guys, I've a viewpager in my activity, which hosts 3 fragments, each fragment have a listview. The activity handles downloads, and there's a callback for progress/status updates, how can I send events for these listviews? Apr 17 14:27:51 You need communication between your Activity and Fragments? Apr 17 14:31:49 Yes, I receive a constantly event in my activity and i want to send it to my fragments inside the viewpager, what is the correct approach without event buses? Apr 17 15:02:38 Hi guys! I'm new to retrofit, and I have question. Documentation says that it uses OkHTTP if available. Does it mean that it's enough to add OkHttp in build.gradle dependencies section and it'll be automatically "fetched" by retrofit? Apr 17 15:03:54 For version 1, yes. Apr 17 15:04:09 For version 2 it's already a dependency Apr 17 15:04:58 JakeWharton: Thank you, Jake! Apr 17 15:49:32 Hi, i want a background process to watch for clipboard changes and do some process on clipboard data, which one i should choose? service or intentservice? or maybe another option?! i'm a beginner ... Apr 17 15:54:11 intent service if you need to do a lot of work Apr 17 15:54:42 pfn: if he's trying to do long term monitoring, that wont work.. since a intent-service self finishes Apr 17 15:54:47 you can just do it in a manifest receiver if you do no work Apr 17 15:55:13 doesn't matter, you can listen from a manifest receiver Apr 17 15:55:27 can you? clipboard sends intents? Apr 17 15:55:35 iirc Apr 17 15:55:39 Maybe not Apr 17 15:56:12 I suppose it could just be a listener interface in the clipboard manager Apr 17 15:56:22 in which case, a plain service Apr 17 15:56:33 why is restricting input on a edit-text so painful Apr 17 15:56:49 the whole input system is painful Apr 17 15:57:41 true, that and text rendering is are the real areas of work that need to be done on android Apr 17 15:57:50 but, they are satisfied leaving them how they are :( Apr 17 15:58:01 for new magical features Apr 17 16:02:10 hello #android-dev, one quick/noob question: i'm following thos guide https://developer.android.com/training/basics/supporting-devices/languages.html to learn the first things about android-studio and android programming, i'm working on ubuntu 14.04 LTS, should i upgrade android-studio to newer version? it's everything i've already setted (such as my tablet for testing) compatible? Apr 17 16:02:49 no overriden stuff, basically, when upgrading? Apr 17 16:04:15 Napalm i think the biggest problem google could solve is quick updates for everyone; somehow partitioning things into google territory and oem + carrier overlay Apr 17 16:04:35 they are doing that in N Apr 17 16:04:59 the new vendor parition as a file-system overlay on system Apr 17 16:05:00 orly? nice; i haven't read anything so far .. Apr 17 16:05:38 well thats one step, eventually google would need to be able to push out OTAs though Apr 17 16:05:52 but if thats necessary groundwork than , cool Apr 17 16:07:04 maybe i meant "updating" Apr 17 16:07:18 g00s: to do that they need to define some sort of API between what they want to be "theirs" and what is manufacturers Apr 17 16:07:28 THe entire point of Android is that it's totally open Apr 17 16:07:49 its greatest strength is simultaneously its greatest weakness ;) Apr 17 16:08:09 Ofc - there will always be the tradeoff Apr 17 16:08:13 I'm glad it is the way it is Apr 17 16:08:21 but the thing is, i wouldn't say android is totally open. its open-ish Apr 17 16:08:25 and the trend is becomes less open Apr 17 16:08:40 Well yes this debate could go on forever Apr 17 16:08:52 indeed Apr 17 16:09:00 It entirely depends on where you draw the line as what is "Android" and what is "Google's Android" Apr 17 16:09:28 its all google's android :P Apr 17 16:11:08 I disagree but I think we should leave it at that a) a very contentious issue and b) not really on topic for this channel Apr 17 16:14:52 sup tilal6991 Apr 17 16:16:10 Hey Apr 17 16:17:07 Hows it goin? Apr 17 16:18:10 Not too bad Apr 17 16:18:27 Cool, I was gonna ask you something but I ended up making a decision on it Apr 17 16:24:50 Hi all Apr 17 16:25:07 ohai Apr 17 16:25:13 I have created a swipe view with 3 tabs. Apr 17 16:26:02 Now I want to put buttons on the 3 fragments. Do I need to put the buttons in their respective fragment xml files or in the main activity xml? Apr 17 16:26:21 Fragment xml rudolf_ Apr 17 16:26:45 And what about their click listener? Do I need to put the click listeners in MainActivity.java or in the java files of the fragments? Apr 17 16:26:59 No everything for the fragment view goes in the fragment Apr 17 16:28:07 drose379: What layout changes will go in the MainActivity.java then? Apr 17 16:28:55 Just the ViewPager Apr 17 16:29:20 Ok :) thanks drose379 Apr 17 16:29:31 Sure Apr 17 16:34:34 Hi all - is there a recommended way to set an image as the background for the entire application? I'm currently using android:windowBackground in the theme, but believe this may be causing memory leaks. Apr 17 16:35:05 better in the theme Apr 17 16:35:21 its would be most natural i think Apr 17 16:38:12 Ashiren: Does this have any potential to lead to issues with memory? Is it possible that the image is being loaded into memory for every new activity that is shown, or does this method avoid that? Apr 17 16:39:07 actually i dont know Apr 17 16:39:14 is image big Apr 17 16:39:42 I am trying to use button1 = (Button) findViewById(R.id.button1); in the java file of my one of the fragments but it is saying cant resolve findViewById method :( What am I missing? Apr 17 16:39:57 Ashiren: 500 x 1000 Apr 17 16:40:42 rmrrn: you could check by starting few activities Apr 17 16:40:58 rudolf_: in fragment? Apr 17 16:41:07 rudolf_: you probably miss view.findViewById(...) Apr 17 16:41:55 view.findViewById() says cant resolve the symbol view Apr 17 16:42:20 umm Apr 17 16:42:32 Also tried rootView Apr 17 16:42:57 well can you pastebin the code snippset Apr 17 16:43:03 ok...wait Apr 17 16:44:42 Ashiren: Here: http://pastebin.com/RkYuDcTq Apr 17 16:44:51 This is the java code for my fragment one Apr 17 16:45:32 rudolf_: you do that in onCreateView Apr 17 16:45:41 View view = inflater.inflate(R.layout.fragment_one, container, false); Apr 17 16:45:51 then view.findViewById Apr 17 16:46:03 Ok Apr 17 16:46:35 No error now :) What did this do? Apr 17 16:46:41 Can you explain a little please? Apr 17 16:47:34 actually its pretty basic Apr 17 16:47:49 most fragment tutorials should have it Apr 17 16:50:47 Ok...will try to google more. Thanks :) Apr 17 16:51:28 tilal6991: Apr 17 16:51:59 expecially look for how views in fragment get initialized Apr 17 16:54:24 I'm using termux and trying to statically link to some libraries. ld can't find libc, does anyone know where it is on android? Apr 17 16:55:25 Ashiren: One last question...do I create the clickListener inside the onCreateView or somewhere else in the java file of the fragment? Apr 17 16:59:18 rudolf_: you can create onclicklistener whenever you want Apr 17 16:59:34 of course you can set it after the button is created Apr 17 16:59:49 Who can reccomend a good first Android app, something a lil beyond hello world.. I just need a goal to work twards.. Apr 17 17:00:20 just an idea? Apr 17 17:00:29 hello world is too easy Apr 17 17:00:33 Like an app that does... Apr 17 17:00:39 messaging Apr 17 17:00:45 Yes it is.. its just a label Apr 17 17:01:06 like a full sms client? Apr 17 17:01:06 for my first android app? Apr 17 17:01:08 hmm Apr 17 17:01:17 nah Apr 17 17:01:19 yeah probably not :P Apr 17 17:01:42 Maybe an app that encrypts words with a key and decrypts them Apr 17 17:01:49 That should be pretty simple Apr 17 17:03:26 at first you could write notes app so it would save text files in app internal storage Apr 17 17:03:37 then create option to encrypt/decrypt them Apr 17 17:04:50 Ya, thx. Apr 17 17:05:11 Just gotta learn java right quick. Apr 17 17:05:37 Ashiren: What if I am not writing a click listener? What if I directly tell in the xml of the fragment, the onClick method? In that case, do I write the onClick function inside the main activity.java or still in the fragment.java? Apr 17 17:05:37 just make the 'core' app, then add to it fancy features Apr 17 17:06:06 rudolf_: xml's onClick is for activity Apr 17 17:06:17 personally i dont use onClick in xmls and write my own Apr 17 17:06:18 cool :) Apr 17 17:06:21 Whats the best way to post from a runnable back to the main thread? Apr 17 17:06:29 handler Apr 17 17:06:30 Ashiren: Is it bad coding? Apr 17 17:06:49 not always Apr 17 17:06:59 but if button belongs to fragment, activity shouldnt know about it Apr 17 17:07:07 everything should be done in that fragment Apr 17 17:07:25 How do I get the text resized according to screen size ? Apr 17 17:07:30 Of a textview. Apr 17 17:07:34 hmm Apr 17 17:08:08 Ashiren: if I create a handler on a bg thread wont it just post to the bg thread and not to main? Apr 17 17:08:41 i would use previosuly created handler Apr 17 17:09:01 Oh how about: new Handler(Looper.getMainLooper()) Apr 17 17:09:04 eventually you can new Handler(Looper.getMainLooper()) Apr 17 17:09:05 Thatd be on the main right Apr 17 17:09:12 ha Apr 17 17:09:36 actually afair if you create new Handler() in bg thread it would cause exception Apr 17 17:09:56 Why is that? Apr 17 17:11:40 Ashiren: It works if I create one with the main looper Apr 17 17:12:09 yes Apr 17 17:12:23 but without arguments it would scream probably Apr 17 17:12:47 Im gonna try it and find out why Apr 17 17:13:21 Can't create handler inside thread that has not called Looper.prepare() Apr 17 17:13:24 Interesting Apr 17 17:13:57 So if I really wanted to make a handler in a background thread, I would have to subclass Thread and call Looper.prepare in it Apr 17 17:14:21 no, just Looper.getMainLooper() is sufficient Apr 17 17:14:22 drose379 look at HandlerThread Apr 17 17:14:32 ah you mean handler for bg Apr 17 17:14:38 Yeah im just wondering Apr 17 17:14:44 I know that using Looper.getMainLooper works Apr 17 17:14:52 Its fine tho Apr 17 17:15:33 If I subclassed thread, then called Looper.preapre() in there, then created a handler and tried to post to the UI, it would not work Apr 17 17:15:41 Because that handler is not on the UI thread, right? Apr 17 17:20:42 dunno. never needed handler for bg Apr 17 17:20:46 or handlerthread Apr 17 17:21:10 How do you post back to the UI thread from background process then? Apr 17 17:21:28 In my situation im doing a sqlite trans on background, then telling ui its done Apr 17 17:21:43 by handler which does things in ui Apr 17 17:21:47 duh Apr 17 17:22:08 So the same way im doing it Apr 17 17:22:09 hey guys, what is the difference between "compileSdkVersion 23" and "compileSdkVersion "Google Inc.:Google APIs:23"? Apr 17 17:28:33 I didn't even know the second way was allowed syntax Apr 17 17:29:33 drose379: what are you trying to do? Apr 17 17:31:23 Not much tilal6991, just tell the UI that something is complete Apr 17 17:31:43 Then you want new Handler(Looper.getMainLooper()) Apr 17 17:31:49 Works on any thread Apr 17 17:32:10 Yep thats what I've got Apr 17 17:32:11 tilal6991: i didnt know it either, but a project i cloned had that syntax and gradle complained ^^ after reinstalling Google APIs it works now Apr 17 17:32:12 Thanks Apr 17 17:32:28 i haven't even found anything about that syntax, thats why i asked Apr 17 17:32:48 Wow that's insane Apr 17 17:38:29 tilal6991: i prefer new Handler(context.getMainLooper()); Apr 17 17:38:35 feels better to me Apr 17 17:39:13 Napalm: in what sense? Apr 17 17:39:53 If I have a background task operation I don't particularily want to require a context so I can fire it off Apr 17 17:40:15 Although with Context being a god class it's hard to get rid of that dependency anyway Apr 17 18:21:41 will having an array of 2000 (non-empty and different) strings degrade app performance? Apr 17 18:22:34 as in, is the java string pool able to handle them without slowdown (if I don't misunderstand how it works)? Apr 17 18:28:10 new idea for a project Apr 17 18:28:42 I'm picturing a service or app to make it easier to control your phone while driving Apr 17 18:28:57 samsung phones have driving mode which is pretty useless Apr 17 18:29:24 any ideas? I haven't really fleshed it out yet Apr 17 18:29:47 I'm thinking voice commands and gestures would really help Apr 17 18:29:55 Dont we already have that though? Apr 17 18:30:32 do we? Apr 17 18:31:06 like a driving mode? or you mean gestures and voice commands Apr 17 18:33:23 Hey Apr 17 18:33:41 How can I duplicate a widget in the designer view Apr 17 18:33:52 I have a button I would like to duplicate Apr 17 18:35:14 I am editing activity_main.xml Apr 17 18:50:55 Ctrl+D doesn't seem to work, and I can't seem to copy and paste Apr 17 18:53:28 rgb-one: just copy and paste xml Apr 17 18:54:17 altcp: I doubt it but I would strongly advise testing it out on a low end device Apr 17 18:54:28 Also depends what size the strings are Apr 17 18:54:29 what I wanna do is just copy a button in a grid layout Apr 17 18:54:36 tilal6991: all size < 10 Apr 17 18:54:49 the array itself is size 2000 Apr 17 18:55:53 rgb-one: then copy and paste the XML for the button inside the GridLayout and change the row and column specs as appropriate Apr 17 18:56:20 tilal6991: what exactly can I test/measure though? Apr 17 18:56:21 altcp: sounds OK but as advised I would test it and find out rather than relying on my intuition Apr 17 18:56:24 tilal6991: Is that the only way? Apr 17 18:56:26 I may very well wrong Apr 17 18:56:46 rgb-one: you can also extract the button out into it's own xml file and include it twice Apr 17 18:57:25 Have a look at this video at 2:03 up https://www.youtube.com/watch?v=CQpxNvmKinw Apr 17 18:57:32 altcp: memory usage through the tools Google provides and also just see if it impacts performance in a empircal way (i.e.e can you notice the slowdowns) Apr 17 18:57:45 Is that what the guy is doing? Apr 17 18:58:15 I'm not really concerned about memory (given the sizes), but about performance when creating strings later on anywhere in the app Apr 17 18:58:39 I'm pretty sure he's copying and pasting the widgets through the GUI which has the effect of copying and pasting the xml Apr 17 18:58:53 altcp: not sure why it would affect string creation later on? Apr 17 18:58:56 ##java told me that java VM works nothing like dalvik/androidRT but I'm still wondering if there's some kind of string pool that has to handle those 2000 strings Apr 17 18:59:45 Yes a lot of the methodologies on Java do not translate well to Android Apr 17 18:59:55 alright Apr 17 18:59:57 tilal6991: did you reply? Apr 17 19:00:18 "I'm pretty sure he's copying and pasting the widgets through the GUI which has the effect of copying and pasting the xml" Apr 17 19:01:17 Not the best start into my Android Dev course.. Apr 17 19:01:33 Very first thing I do in AS breaks haha Apr 17 19:01:47 Gradle project Sync failed. Apr 17 19:01:56 So I am doing some googling. Apr 17 19:02:30 Think I need to do this http://stackoverflow.com/questions/34749299/gradle-version-2-2-is-required-current-version-is-2-10 Apr 17 19:02:51 hey all - i am using mupdf - and trying to see how I can convert its activity into a fragment or customize its view? any pointers? found nothing useful on the web. Apr 17 19:03:57 tilal6991: so which xml file am I to copy? Apr 17 19:04:29 is there a generic way in which we can extend a library projects view? Apr 17 19:04:42 rgb-one: you copy the button inside the xml file not the file itself Apr 17 19:07:55 My API 23 emulator image runs in 'qemu-system-i386.exe'. My API 21 one, with identical settings, runs in 'emulator-x86.exe'. Why is this? Apr 17 19:08:07 I have never kept up with the implementation details of the emulator. Apr 17 19:12:19 Ugh screw gradle. Apr 17 19:12:43 Man I just started this course and have somehow messed up already. Apr 17 19:13:38 The udacity course? Apr 17 19:13:41 And all I did was open the project the course provided.. And AS says it has a gradle sync issue. Apr 17 19:14:09 hey TacticalJoke Apr 17 19:14:12 BenSoloMobile: Should just work. Apr 17 19:14:15 Hey, g00s_. Apr 17 19:14:18 Um I think so the one Google put out for free. I think it's through udacity yeah. Apr 17 19:14:25 the emus all changed in sdk tools 25 ... Apr 17 19:14:34 Yeah I should but it's not. Apr 17 19:14:42 g00s_: Ahh, okay. Did consider that notion. Apr 17 19:15:30 I somehow messed up a simple git sync and opening a project Haha. Apr 17 19:15:58 Alright tilal6991, I went to Text view and copy and pasted and made the relevant changes Apr 17 19:16:03 g00s_: Hmm, but shouldn't it be using the same emulator for my API 21 image? Apr 17 19:16:42 what I would like to know now is how align these buttons evenly in the layout? Apr 17 19:16:53 the buttons are within a grid layout Apr 17 19:18:07 Local unit testing is way faster now. Apr 17 19:19:15 barq: is the udacity course a bad starting point? I have some some work with C# before so I figured I could catch on? Apr 17 19:19:16 Gawd, Reddit is so stupid. It sends URLs containing '&' instead of '&'. Apr 17 19:19:24 That's why some Reddit clients are failing to show reddituploads.com images. Apr 17 19:19:49 TacticalJoke: not all sites use utf8 Apr 17 19:20:02 I didn't complete it but I would imagine it is a good start. If you really need the course, that is. Apr 17 19:20:24 If your app isn't super complex looking up things as you go will probably work as well. Apr 17 19:20:35 rgb-one: Hmm, I don't see what that has to do with this. It's just a URL containing '&', and Reddit converts that to '&' before sending it to API clients. Apr 17 19:20:44 I just want to learn to make android apps in general Apr 17 19:21:10 Then learn iOS if I have to as well. Apr 17 19:21:16 TacticalJoke: if it didn't then & may not be interpreted properly by some clients Apr 17 19:21:24 I should think Apr 17 19:21:32 ObjC looks shitty though. Apr 17 19:21:55 rgb-one: The clients aren't web browsers: they're apps. Apr 17 19:22:09 barq: any idea how I managed to break AS already with this gradle sync failing? Apr 17 19:22:18 No app is gonna get confused about '&' in a link URL. Apr 17 19:26:06 BenSoloMobile: What are the symptoms? (I just joined.) Apr 17 19:27:49 TacticalJoke: I am just starting this Udacity course and I went to run the starter code as it tells me but I get a Gradle project sync failed Error Apr 17 19:27:52 Gradle sync failed: failed to find target android-21 : /home/sarge/Android/Sdk Apr 17 19:29:02 oh is it saying I dont have the platfor installed? Apr 17 19:29:38 Yeah. Maybe you have only the API 23 SDK installed. Apr 17 19:29:38 it offers a link to download missing things doesnt it Apr 17 19:30:12 Yeah I am a dummy, sorry guys not even worth bugging you. I didnt research enough first. Apr 17 19:30:27 I havent seytup my platforms yet Apr 17 19:30:52 I had only 23 I need like all of them haha Apr 17 19:31:13 You might be able to change `compileSdkVersion 21` to `compileSdkVersion 23`. Apr 17 19:31:46 I think I am just going to install 17- 23 anyways just to have them. Apr 17 19:32:48 Wait I can play with 'N' in an emulator!? Apr 17 19:32:50 Maybe this is the reason my 23 emulator is running a different executable: "Added SMP support to take advantage of host multi-core architecture when emulating Android 6.0 (API level 23) or higher," Apr 17 19:32:52 how cool! Apr 17 19:33:24 I haven't tried N yet, but I think it works. Though do we need Android Studio 2.1 for that? Apr 17 19:34:15 Last time I tried to learn Android Development Android Studio was like a plugin for some Jetbrains IDE I believe. Apr 17 19:34:33 It was a plugin for Eclipse before. Apr 17 19:34:47 Oh, I swear it was something else.. weird Apr 17 19:34:59 Android Studio is basically an Android-focused IntelliJ. Apr 17 19:35:49 No it was IntelliJ thats what it was Apr 17 19:35:57 Not eclipse Apr 17 19:36:02 maybe android studio beta Apr 17 19:36:10 I remeber cause I was using IntelliJ at the time Apr 17 19:36:24 rememeber* Apr 17 19:36:34 Yeah the beta Apr 17 19:37:13 I knew it was Jetbrains though haha Apr 17 19:38:58 I knew it wasn't eclipse because I have always hated it and stayed away.. and I can't tell you why. Apr 17 19:39:20 they called it Android Studio when they switched to IntelliJ IDEA Apr 17 19:40:07 Which is a great IDE imo Apr 17 19:56:37 hello android noob here, I tried adding okhttp jar to my project but i get no main manifest attribute, in C:\Users\--\AndroidStudioProjects\--\app\libs\okhttp-3.2.0.jar Apr 17 19:57:37 anyone know fix? Apr 17 19:58:11 I'm call the developer into anyone of you :D HEEELP https://gist.github.com/anonymous/797746fb461ed5df8b6b2a070ab8fd9c Apr 17 19:58:19 Calling * Apr 17 20:02:06 JavNumb: why dont you add dependency to gradle instead of jar Apr 17 20:06:40 Was someone telling me that not all devices have the GeoCoder? Apr 17 20:07:04 my toolbar's nav icon & overflow menu won't show in CollapsingToolbarLayout. a few people mentioned this on SO / etc but nothing really worked. i don't see any tangible difference between my code and cheese square ... anyone have ideas ? Apr 17 20:10:05 I'm calling the developer into anyone of you :D HEEELP https://gist.github.com/anonymous/797746fb461ed5df8b6b2a070ab8fd9c Apr 17 20:10:22 hey g00s Apr 17 20:10:45 hi perlsyntax Apr 17 20:11:41 :) Apr 17 20:14:35 MeMoc, why have two onlicklisteners on the same objects? Apr 17 20:14:59 MeMoc, why not flip a boolean with each click and have that change the rest of the state? Apr 17 20:15:02 not the same bro each one for a dif picture Apr 17 20:17:37 is it possible to make it with two clicklistener ? Apr 17 20:18:06 MeMoc, why not have both listeners flip the same boolean? Apr 17 20:21:01 tbh i don't follow dude Apr 17 20:24:47 I wonder if there's any software to treat a pc as a chromecast Apr 17 20:25:09 lol, the navigation icon actually works but just won't show up. wth Apr 17 20:25:26 if i remove collapsingtoolbarlayout, everything is fine Apr 17 20:28:04 Is it possible to migrate all Google Play Game Services accoutns for a specific app? I mean can you get all the accounts and their data through an API so that you can easily move it to for example Heroku if you want to? Apr 17 20:41:30 mjoelner: what do you mean? like so you can manage the logins from Heroku? Apr 17 20:42:24 g00s_: whats up Apr 17 20:42:26 lets say i get a bunch of users using google play game services and for some reason i want to migrate the backend from GPGS to my own backend. Apr 17 20:42:38 hey Napalm :D Apr 17 20:42:39 Is it possible. Can i get the user data for all the users? Apr 17 20:42:45 like their achievements and stats? Apr 17 20:44:07 https://gist.github.com/anonymous/797746fb461ed5df8b6b2a070ab8fd9c Apr 17 20:44:35 mjoelner: https://developers.google.com/games/services/publishing/api/ Apr 17 20:47:27 MeMoc: dont you want kur to start with alpha 0? so add android:alpha="0" on your layout or call kur.setAlpha(0) Apr 17 20:48:06 i did bro and it's working well if i removed back method Apr 17 20:48:07 now if the two ImageView's are on top of each other.. always the one on the top is going to get clicked. even if its alpha is zero Apr 17 20:48:47 just have one click listener Apr 17 20:49:00 on the parent layout that surrounds these Apr 17 20:49:14 If they are stacked then you should set the one fading to have visibility gone Apr 17 20:49:21 That's generally how it's done Apr 17 20:49:37 tilal6991: i wouldnt make it too complicated for them... Apr 17 20:49:40 ;) Apr 17 20:49:45 Lol fair enough Apr 17 20:49:49 as your read in my code what i want is to click on gon to fade and kur appear then when clicked on kur it will fade and gon appear agian back and forth Apr 17 20:50:01 Napalm, thanks, so it doesnt seem like there is a way to get the data for all users... Apr 17 20:50:15 ugh, just figured out why my Toolbar's <-- icon wasn't showing in CollapsingToolbarLayout - it has to be the first child. is that documented anywhere ? Apr 17 20:51:17 tilal6991: doesnt look like, but that seems a little wierd Apr 17 20:51:21 ugh Apr 17 20:51:25 io mean mjoelner Apr 17 20:52:00 yeah the two images are on the top of each other , now what do you think is the solution ? Apr 17 20:52:59 pastebin your layout Apr 17 20:53:04 ok Apr 17 20:53:08 Napalm is there a way to keep the text from expanding in collapsingtoolbarlayout ? Apr 17 20:53:50 https://gist.github.com/anonymous/ceda45dd81a334c2c849654c5d59515b Apr 17 20:54:08 Lol what Apr 17 20:54:22 Youve got onCiick on the parent and both the children Apr 17 20:54:47 i didn't do it at all i saw it right now also but i didn't even assign it Apr 17 20:54:48 this is not the way to do this Apr 17 20:55:02 at all Apr 17 20:55:25 I'm confused at this point what is being attempted here Apr 17 20:55:38 g00s_: https://developer.android.com/reference/android/support/design/widget/CollapsingToolbarLayout.LayoutParams.html#COLLAPSE_MODE_OFF Apr 17 20:56:26 g00s_: so get the layout params for your Toolbar and then cast to CollapsingToolbarLayout.LayoutParams and then call setCollapseMode(COLLAPSE_MODE_OFF)? Apr 17 20:56:27 perhaps Apr 17 20:56:43 oh i used COLLAPSE_MODE_PIN for the toolbar Apr 17 20:56:48 Or easier still do it in XML Apr 17 20:56:55 * g00s_ tries Apr 17 20:57:05 g00s_: or do you mean this.. https://developer.android.com/reference/android/support/design/widget/CollapsingToolbarLayout.html#setTitleEnabled(boolean) Apr 17 20:58:10 title translation was OK, just didn't like the zooming effect. i guess i will set the textAppearance Apr 17 20:59:11 oh Apr 17 20:59:57 SO guys what is the problem ? Apr 17 21:02:10 Napalm: Makes sense in a way, why would google make it possible for you to migrate? Apr 17 21:02:14 they want to keep you... Apr 17 21:02:36 no it really doesnt Apr 17 21:04:55 cant wait till google goes to swift Apr 17 21:05:08 Lol Apr 17 21:05:25 franchy you'll be waiting ... Apr 17 21:05:26 http://thenextweb.com/dd/2016/04/07/google-facebook-uber-swift/ Apr 17 21:05:29 This article? Apr 17 21:05:38 Someone here was speaking about it a few days ago Apr 17 21:05:45 Made some brilliant points Apr 17 21:05:46 anything would be better than java Apr 17 21:05:56 Kotlin <3 Apr 17 21:06:04 i would love to use swift instead of c++ for cross platform Apr 17 21:06:05 Which is actually a realistic idea Apr 17 21:06:41 I dread the idea of having to program both in kotlin and swift Apr 17 21:06:55 This swift rumour really doesn't make any sense - for one why would Google bother rewriting the ENTIRE core of Android for a language they are deprecating. Apr 17 21:07:06 (core in the sense of moving from Harmony -> OpenJDK) Apr 17 21:07:15 sameish syntax but different Apr 17 21:07:29 Kotlin is very liberating Apr 17 21:07:34 I already have problems keeping java and python syntax apart haha Apr 17 21:07:38 And quite easy to switch back to Java Apr 17 21:07:51 yeah, it's just that the syntax is very similar to swift, but different Apr 17 21:08:00 Android is leaving java? Apr 17 21:08:12 kotlin targets the JVM Apr 17 21:08:14 so not really Apr 17 21:08:17 we can only hope Apr 17 21:08:42 meh, it works Apr 17 21:08:54 google is deprecating swift? Apr 17 21:09:00 MeMoc: https://gist.github.com/slightfoot/35b32d646f9955c46de96f392c2f8dd6 Apr 17 21:09:04 Deprecating swift? Apr 17 21:09:06 What? Apr 17 21:09:26 im asking you Apr 17 21:09:31 I'm confused Apr 17 21:09:39 I never said they were deprecating swift Apr 17 21:09:46 so what did you just say Apr 17 21:09:53 what are they deprecating? Apr 17 21:09:54 but kotlin is probably the most realistic solution Apr 17 21:10:08 I said why would they bother rewriting the JVM implementation for Java if they were moving to swift? Apr 17 21:10:15 Maurits- .. but kotlin doesn't solve any problems at the systems level Apr 17 21:10:17 It doesn't make any sense Apr 17 21:10:27 oh well sure Apr 17 21:10:36 i see no point at all in switching to kotlin, it already works fine Apr 17 21:10:49 g00s_: which problems, specifically? Apr 17 21:10:50 its not java Apr 17 21:11:01 I mean, reengineering all of android is not going to be an option Apr 17 21:11:02 Maurits- with kotlin you still need the java classpath Apr 17 21:11:22 so any legal problems with using java.util.* etc, are not going to be solved using kotlin Apr 17 21:11:30 no, that's true Apr 17 21:11:40 g00s_: it is solved by moving to OpenJDK which is exactly what they are doing Apr 17 21:11:41 but if oracle wins this google's going to be in deep shit anyway Apr 17 21:11:42 In N Apr 17 21:11:51 regardless of how they'd solve it Apr 17 21:11:54 http://arstechnica.co.uk/tech-policy/2016/01/android-n-switches-to-openjdk-google-tells-oracle-it-is-protected-by-the-gpl/ Apr 17 21:12:12 they've got 5+ years of devices using the old stuff Apr 17 21:12:13 tilal6991 i'm not sure google's move to openJdk insulates them for anything. i think they are hoping :) Apr 17 21:12:25 I'll leave that to the lawyers ;) Apr 17 21:12:35 Maybe maybe not. That's the court and lawyer's job Apr 17 21:12:36 ^^ Apr 17 21:12:40 well last week google / oracle talks fell through so it goes back to court Apr 17 21:12:56 so i'm sure google is thinking of a plan B Apr 17 21:13:05 after all, Android itself was a Plan B to iOS :) Apr 17 21:13:13 yeah, but the entire framework is written in java Apr 17 21:13:25 parts of it are being rewritten in C Apr 17 21:13:35 because brillo doesn't have a Java environment Apr 17 21:14:14 yeah, but all the widgets, the rest of the frameworks, etc Apr 17 21:14:17 most of it is in java Apr 17 21:14:23 If it was to happen it won't be for another 3ish years at least and the option for Java apps is still going to exist Apr 17 21:14:28 i mean, i don't think swift is as crazy at it seems - but seeing how glacial development on android seems to go, i can't see it Apr 17 21:14:41 you can bridge it to, say, swift Apr 17 21:14:43 Think of the costs: retraining everyone in Swift, redoing the entire framework Apr 17 21:14:50 but that wouldn't solve your legal problems Apr 17 21:14:50 And still having to keep the JVM around Apr 17 21:15:01 Because all the legacy apps are not going to disappear Apr 17 21:15:21 tilal6991 the costs for everyone doing mobile may actually go down though, if they can easily share android / ios stuff (i mean, they can with c/c++ now anyhow but) Apr 17 21:15:37 ndk is kinda second class citizen Apr 17 21:15:39 g00s_: the problem with this is that you can't really Apr 17 21:15:49 Unless you want to also port iOS widgets to Android Apr 17 21:15:59 oh - no i don't think that would ever happen Apr 17 21:16:00 And all the iOS helper classes Apr 17 21:16:07 well, having a common standard library wouldn't be terrible Apr 17 21:16:17 objc->swift has been rather nice Apr 17 21:16:18 basically the stuff that Apple is open sourcing in the Swift runtime, core classes Apr 17 21:16:28 Just look at how much trouble Microsoft is having unifying Xbox and Windows Apr 17 21:16:33 And they control both Apr 17 21:16:40 (I do both iOS and Android development, so I've worked with Swift a fair bit) Apr 17 21:16:47 You're talking about a shift much bigger than that Apr 17 21:16:59 And it took them 2ish years from when they first announced it Apr 17 21:17:21 objc to swift is trivial Apr 17 21:17:27 java to swift isn't Apr 17 21:17:46 well, yeah, swift was designed with migrations from objc in mind Apr 17 21:17:59 just as a thought experiment. if google actually decided to go to swift (again, i can't see this happening any time soon) they would probably provide tools for automatic translation of parts of the app Apr 17 21:18:37 An autotranslation tool would work. Until it hit a JAR. What then? Apr 17 21:18:43 Whose going to port libraries over lol Apr 17 21:18:53 * who's Apr 17 21:19:20 who is to say the swift ecosystem is >> than the java ecosystem compat with android ? Apr 17 21:20:42 Napalm it's working bro thnx but can you tell me what was my problem to avoid it in the future ;) Apr 17 21:20:45 ? Apr 17 21:21:16 hi, I have a AlertDialog. in it's OnClickListener I get all children in a layout, then remove them from that layout and add them to another... this throws an error (wrong thread). Apr 17 21:23:10 tilal6991 i don't think google could pull this off (to be clear) but i like to play devils advocate Apr 17 21:23:35 No that's perfectly fair. I do debating in real life and love trying to phrase arguments nicely :) Apr 17 21:26:45 MeMoc: step one.. dont use android:onClick unless it relates to the data-binding library.. step two dont put a click listener on an view with an alpha of 0 as it will still be clickable. Apr 17 21:31:34 JakeWharton for your timber library page :D https://i.imgur.com/onh5zFa.gifv Apr 17 21:32:18 lol apple recruits for android dev Apr 17 21:32:50 just saw it in android weekly: https://jobs.apple.com/us/search?job=38181776&openJobId=38181776&board_id=47196d=38181776#&openJobId=38181776 & https://jobs.apple.com/us/search?job=41632321&openJobId=41632321&board_id=47196 Apr 17 21:33:06 "Apple has a world-class reputation for product quality and we need your help to keep those high standards in our Android Applications." :')) Apr 17 21:33:24 adq i think they have a migration app :D Apr 17 21:33:37 from android to iOS of course :) Apr 17 21:33:58 https://play.google.com/store/apps/developer?id=Apple+Inc.&hl=en Apr 17 21:34:05 they got 3 apps it seems atm Apr 17 21:34:28 damn the rating of apple music Apr 17 21:34:29 i thought the beats thing was dead Apr 17 21:34:56 oh man, crazy ratings they got on all their app Apr 17 21:35:26 adq i wouldn't be surprised if it was just apple fanboys Apr 17 21:35:32 i mean android fanboys downvoting Apr 17 21:35:35 "This app took all 'my money and I got nothing a complete scam. I sent a text you the make and have not heard nothing. Scam is all I can say..." Apr 17 21:35:36 lol ok Apr 17 21:36:01 yeah, probably highly biased rating Apr 17 21:36:55 I can't believe fanboyism hasn't died out in prominence yet Apr 17 21:37:00 It's disappointing :( Apr 17 21:37:08 it's the contrary i think Apr 17 21:37:19 it's just growing with time Apr 17 21:37:33 adq like political polarization maybe Apr 17 21:37:45 i have no idea, can't tell Apr 17 21:37:57 i think it has to do with being fair and self-critism Apr 17 21:38:07 + rational thoughts Apr 17 21:38:16 In my younger days I did slip into it (this was when I was 14/15 so excusable I think) but at this point it's clear that Android and iOS are both good platforms which have different aims Apr 17 21:38:21 you diminish one or more of those, you end up with deep fanboyism Apr 17 21:38:53 ahah i think they are both bad platform, i must be one of those Apr 17 21:39:03 lol :D Apr 17 21:39:10 still it's working enough that i use them ;) Apr 17 21:39:13 Lol either way you aren't hugely biased towards one. Apr 17 21:39:33 When I mean good I mean they perform their jobs well enough that a large part of the world wants to use them Apr 17 21:39:51 Obviously both have gripes lol - glass half full/half empty Apr 17 21:39:55 yeah but that could be because of marketing and social induction don't you think? Apr 17 21:40:04 not really a real need being satisfied maybe Apr 17 21:40:11 Very legitimate point Apr 17 21:40:54 i'm gonna stop there, i don't want to sound like a contradictor :) Apr 17 21:41:23 Yay netsplit Apr 17 21:41:49 freenode's shaking again Apr 17 21:50:53 "Drone hits British Airways plane approaching Heathrow Airport" d'oh ! Apr 17 21:56:36 g00s: isnt it illegal to be flying them there Apr 17 21:56:57 i'd guess yeah, around any airports ... Apr 17 21:57:28 Napalm, why doesnt it mke sense that Google makes it hard to migrate? Apr 17 22:03:06 Hi guys, quick question. I'm using this library: https://github.com/afollestad/material-dialogs and I want to find out what font it is using for its dialogs. Where would I go in the source code to find out? I can't find anything in styles Apr 17 22:03:11 styles.xml that is Apr 17 22:04:12 Perhaps it's just the default system font? That's what I'm using and it doesn't look nearly as nice Apr 17 22:04:59 yonatankoren, android:fontFamily="sans-serif" Apr 17 22:06:04 also the sans-serif-light it seems, in the styles.xml from sample Apr 17 22:06:12 just search into the repository Apr 17 22:07:53 adq: thank you. What actually happened is the author specified the font in Java rather than XML. Apr 17 22:08:16 well, he explained how to do with typeface i saw, just search for "typeface" too Apr 17 22:08:22 you will see where it has been used Apr 17 22:09:20 I suppose I'm not too familiar with this stuff, fonts in particular Apr 17 22:13:03 yonatankoren: i was chatting to the author of material-dialogs the other day Apr 17 22:13:23 Napalm: I'm really impressed with this library, highly useful Apr 17 22:13:25 yonatankoren: anyways, it doesnt use any font unless you put them in your assets/font dir Apr 17 22:13:38 Napalm: ah Apr 17 22:13:46 yonatankoren: you can get them from here: https://www.google.com/design/spec/resources/roboto-noto-fonts.html Apr 17 22:14:20 Napalm: so by default it uses sans-serif? Apr 17 22:14:37 no, it uses the system default Apr 17 22:14:50 which varies based on version of the API Apr 17 22:15:20 hmm Apr 17 22:15:33 thanks for the link, I might use that family of fonts Apr 17 22:15:50 anyways I'm really happy that there are so many cool libraries like this out there Apr 17 22:16:02 yonatankoren: read the README.md you add Roboto-Medium.ttf and Roboto-Regular.ttf and it will use those fonts Apr 17 22:16:10 from your assets/font dir Apr 17 22:18:55 Napalm: oh I see, somehow when I searched the README.md for 'font' I only looked at the first result Apr 17 22:23:57 Do unused fonts / icons become part of the apk? Apr 17 22:24:04 I'm guessing no Apr 17 22:28:25 yonatankoren: yes they will Apr 17 22:29:49 Napalm: ah I see. Makes sense though, since it involves declaring them as a resource before you can use them Apr 17 22:30:21 Hey Apr 17 22:32:07 I am developing a calculator in Android and have used the Large textView for the text view and a below, with GridLayout with 19 buttons in it. Apr 17 22:33:44 I would like to align the buttons so that they fit together well and take up all the space in the GridLayout Apr 17 22:33:54 any ideas? Apr 17 22:36:11 isnt there a column weight property Apr 17 22:36:25 thats rhetorical i know there is Apr 17 22:36:44 Yea Apr 17 22:46:01 Why doesnt AlertDialog have a getView()? Apr 17 22:46:39 Oh, it has FindViewById Apr 17 22:46:46 drose379: because AlertDialog's have always been a pain in the ass Apr 17 22:47:33 :/ Apr 17 22:47:37 Well findViewById should work Apr 17 22:59:29 hi, can i please ask for a design tip on this channel? i have a descriptive card of a product and the customer wants me to add navigation buttons: prev and next product, prev and next product group and prev and next product family. Apr 17 23:00:06 he wants them easy to reach, not in drop down menu Apr 17 23:00:34 but they are 6 buttons (or icons) and i really don't know where to put them Apr 17 23:00:38 i'm using material design Apr 17 23:00:44 can someone gimme an idea? Apr 17 23:01:57 i was thinking on a bottom tabs (like g+ app) but i only have space for 4 of them Apr 17 23:02:36 any idea? Apr 17 23:05:45 Hi guys! I have issues with Picasso downloading images from httpS. Brief googling says I have to set OkHttpDownloader for Picasso but it doesn't help :( Apr 17 23:06:27 Did anyone encountered this problem? Apr 17 23:07:17 Did anyone have it fine with a default downloader? Apr 17 23:17:45 I'm bored of my public transit app Apr 17 23:17:48 what else do I make? Apr 17 23:18:11 I would like something thats a little more challening from a UI point of view Apr 17 23:18:18 What do you think about TableLayout view vs GridLayout for aligning buttons? Apr 17 23:18:49 I would like to equally align the buttons within the layout Apr 17 23:22:00 RustyShackleford: is your public transit app done? Apr 17 23:27:46 drose379: well no Apr 17 23:27:50 the interesting parts are done Apr 17 23:28:16 there are more features I could add Apr 17 23:28:44 I mean, it is not ready to publish Apr 17 23:28:51 I could use it to know when my train is coming though Apr 17 23:29:23 I do want to learn more about UI design... this app doesn't lend itself to anything interesting really Apr 17 23:29:41 listview/recyclerview is about all it needs Apr 17 23:29:42 hi there, i need some info about installing Apr 17 23:32:32 Got any other ideas in mind RustyShackleford Apr 17 23:33:33 ehh not really. I'm thinking about rolling my own Trello Apr 17 23:33:49 mostly as an exercise. Todo lists are a good way to learn about a framework Apr 17 23:34:11 I'd like to learn more about web stuff. I would understand how to consume web api's better if I made my own maybe Apr 17 23:35:42 Retrofit? Apr 17 23:35:56 yeah I use retrofit Apr 17 23:36:08 all GET requests is super easy lol Apr 17 23:36:11 Yes Apr 17 23:36:27 I need to learn about about using the other commands, authentication, more advance stuff Apr 17 23:36:40 my web knowledge is not so good Apr 17 23:36:50 Go for it Apr 17 23:37:08 any ideas for something more interestng than a todo list? hah Apr 17 23:37:20 i'll definitely get bored of that one when the interesting parts are done Apr 17 23:38:08 Idk, look up a list of cool apis and see if you can think of anything Apr 18 00:04:26 apparntly learning Java and Android Development at the same time is just not a good idea Apr 18 00:04:44 Going to have to learn java first Apr 18 00:04:56 SO wont be developing apps any time soon :( Apr 18 00:05:47 Even the DUmmy books and Head on Book are written for people who already know some Java Apr 18 00:06:47 Why not try the hello world app Apr 18 00:06:49 BenSolo yeah, the android books are pushing 800+ pages , some of them, no room for Java intro :) Apr 18 00:07:35 Just thought learning Java would be alot more fun if I could do it while learning android devel as well Apr 18 00:07:36 BenSolo what about head first java :P Apr 18 00:07:52 Yeah I actually like the Head First Books Apr 18 00:07:54 lol Apr 18 00:08:01 They are silly I know Apr 18 00:08:14 maybe also grab the head first patterns for extra credit Apr 18 00:08:33 mmmk Apr 18 00:08:40 BenSolo for the most part, the java you need to get stuff done is pretty rudimentary Apr 18 00:09:00 really the only / one of the few tricky places, is concurrency though Apr 18 00:09:03 Anyways ill be through Java basics in 2 weeks tops.. ready to start learning Android Studio proper Apr 18 00:09:21 SInce I already know Oo programming shouldnt be too bad. Apr 18 00:09:36 BenSolo: yeah probably. You need a pretty solid command of Java Apr 18 00:10:13 idk g00s disagrees with me as usual Apr 18 00:10:27 depends on how much programming experience you have Apr 18 00:10:34 * g00s has no idea what RustyShackleford has said :) Apr 18 00:11:04 BenSolo you said you knew OO right ? Apr 18 00:11:12 OO is all the same, classes are the blueprints for your objects.. objects have propertoies, fields, methods, etc, inheritence, etc etc.. Java can't be that different Apr 18 00:11:24 I can't type Apr 18 00:12:08 and there really isn't much OO to know for android either Apr 18 00:12:21 just need to learn all the stupid syntax, etc Apr 18 00:13:01 how do you do an array in this language, what is mutable, what is not, scope, etc... Apr 18 00:13:08 Just gotta learn that jazz Apr 18 00:13:37 sounds like you'll pick it up quick Apr 18 00:13:55 Guys, sorry for repeating, but I'm just desperate in my attempts to make Picasso work with httpS. Has anybody encountered issues with loading images with Picasso by https? Apr 18 00:14:21 AlexBerdnikov i doubt it ... :) Apr 18 00:14:24 Anyways I am off to "Obtain" a good java book and get in my zone.. hopefully I will be a java man in a week. Apr 18 00:14:39 thx for the support btw Apr 18 00:15:01 g00s: you doubt that anyone had such issues? Apr 18 00:15:15 AlexBerdnikov i'm sure picasso works just fine with https ;) Apr 18 00:16:14 g00s: here's my question on SO http://stackoverflow.com/questions/36683377/picasso-issue-with-https Apr 18 00:16:34 This code doesn't work. Images just don't load Apr 18 00:17:23 AlexBerdnikov: pretty sure you dont need any of that. Its just Picasso.with.load.into Apr 18 00:21:00 orbyt_: I tried it without any tricks in the beginning Apr 18 00:22:51 AlexBerdnikov: I'd guess its something with how your trying to display it, but I cant test it right now so ¯\_(ツ)_/¯ Apr 18 00:28:08 AlexBerdnikov: show us your permissions in your manifest Apr 18 00:28:40 drose379: Apr 18 00:28:49 This is the only permission I have Apr 18 00:29:06 And what does it have to do with https anyway? Apr 18 00:29:19 So if you try a url with just http it works? Apr 18 00:30:33 Yes Apr 18 00:31:07 AlexBerdnikov: I'm using Picasso and have no issue with HTTPS Apr 18 00:31:46 yonatankoren: Lucky you! Apr 18 00:31:47 AlexBerdnikov: works for me with Picasso.with(context).load.into Apr 18 00:32:08 AlexBerdnikov: it's probably outside the scope of Picasso Apr 18 00:32:15 the issue i mean Apr 18 00:32:42 well I haven't checked your SO question yet, perhaps you have a stacktrace on there Apr 18 00:32:48 yonatankoren: That's great. I also tried the very standard way of doing it with with.load.into Apr 18 00:33:13 You sure your not using a dead link, or that the imageview your showing is actually visible Apr 18 00:33:18 Something stupid like that Apr 18 00:33:36 No stacktrace at all. Apr 18 00:33:54 Whats the xml Apr 18 00:34:05 AlexBerdnikov: I'm not an expert, but what is the purpose of the first part before the ... ? Apr 18 00:34:37 drose379: Yes, I change my dynamic URLs to some static one with simple http url and it works perfectly Apr 18 00:34:43 AlexBerdnikov: For my purposes I can just use what you have after ... and it'll work Apr 18 00:35:16 AlexBerdnikov: theres something wrong w your dynamic url maybe Apr 18 00:35:35 The purpose of Picasso is that you don't really need to instantiate anything, caching, downloading and all that stuff is managed by the library Apr 18 00:35:55 yonatankoren: Well, it doesn't work for me, otherwise I wouldn't bother people here with this :) Apr 18 00:36:36 what if you paste in a static https url Apr 18 00:37:15 AlexBerdnikov: what happens when you use Picasso.with(< insert activity reference here> ).load(url).into(view) Apr 18 00:37:17 ? Apr 18 00:37:27 forget the other code, try it and let me know what happens Apr 18 00:38:54 Goddamit, it seems that it has something to do with the images... They open just fine in browser but not in the app. I tried a couple other https images and they worked. Apr 18 00:39:23 I just hate such a stupid situations... Apr 18 00:39:28 Make sure you .trim the url before using it Apr 18 00:39:37 Sorry guys for your time. Apr 18 00:39:59 In fact, I'm still interested why some particular images don't show Apr 18 00:40:10 I've been on this channel for over a hundred days, I have plenty of time (; Apr 18 00:40:25 or maybe not Apr 18 00:40:33 but something long like that Apr 18 00:43:29 AlexBerdnikov: I think you should ditch using that Downloader class. I think perhaps what's going on here is Asynchronosity, and you'd need to handle that yourself. Apr 18 00:45:23 AlexBerdnikov: have you tried with okhttp 2.75 Apr 18 00:45:27 AlexBerdnikov: have you tried with okhttp 2.7.5 Apr 18 00:46:09 Napalm: No, I thought OkHttp3 must do the trick... Apr 18 00:46:10 My biggest question is, why bother using okhttp when Picasso does all this stuff by itself? Unless of course you have your reasons Apr 18 00:48:56 I wonder if my issue has something to do with file compressing... Because when I try images by https from some random servers, like imgur, everything works just fine Apr 18 00:49:24 AlexBerdnikov: what happens when you remove everything before the ... in your SO question? Apr 18 00:49:34 nothing Apr 18 00:49:45 It just doesn't display the image Apr 18 00:51:10 AlexBerdnikov: your post has been deleted? Apr 18 00:52:23 Yes, I just deleted it since it's clearly that it's not just https problem. It has something to do with the files from one specific server. Apr 18 00:53:13 AlexBerdnikov: how large is the image? Apr 18 00:53:22 the image will be blank until it loads Apr 18 00:53:42 If there were a problem I'm pretty sure it'll throw an Exception Apr 18 00:54:00 or perhaps you have your layout set up wrong. But I'm more interested in my former theory that the image is too large. Apr 18 00:54:12 How long, like for 5 minutes? :) Apr 18 00:54:20 haha Apr 18 00:54:25 no probably not Apr 18 00:54:36 so, is your view an ImageView? Apr 18 00:54:42 that you're loading it into? Apr 18 00:55:19 oh wait, you said it works for other images Apr 18 00:55:40 do any of you guys like groovy? Apr 18 00:56:08 I might play around with grails Apr 18 00:57:31 AlexBerdnikov: if you don't mind sharing your activity / fragment / whatever code, would you mind uploading it to pastebin? I'd like to take a look Apr 18 00:59:37 yonatankoren: thank you for being so into my problem, but I just have to move forward. I'll discuss the issue with the web guys who maintain remote api and storage I use... Apr 18 00:59:59 It's clearly not a Picasso problem. Apr 18 01:00:41 I checked the response headers of the images and there are some weird stuff I found TBH... Apr 18 01:01:01 So it's not a topic for this channel anymore Apr 18 01:02:13 Ah I see, no problem. I have a hard time moving on from issues. Apr 18 01:16:03 RustyShackleford not really :) Apr 18 01:16:27 my impression is the language is in decline Apr 18 01:18:14 how do I fill buttons within a grid layout? Apr 18 01:20:27 Cool Apr 18 01:20:32 I have used it for scripting, mostly cause I don't have any other choice lol. My work computer has the jvm and its as simple as dropping some jars into your PATH Apr 18 01:20:35 change the row weignt for each button Apr 18 01:20:41 and gradle of course Apr 18 01:20:44 row weight* Apr 18 01:21:38 I got some buttons that look cluttered together Apr 18 01:21:45 to make a big rectangle Apr 18 01:21:48 no space in between Apr 18 01:21:50 RustyShackleford aren't most jvm languages drop in jars ? clojure is like that too Apr 18 01:22:07 how can I add space in-between the buttons both vertically and horizontally? Apr 18 01:22:20 g00s: well my point is that installing python was a no go Apr 18 01:22:31 I HATE not having admin on my computer Apr 18 01:22:34 you can use scala, clojure, ceylon ;) Apr 18 01:22:36 kotlin ... Apr 18 01:22:41 I needed something portable Apr 18 01:23:03 Jython Apr 18 01:23:06 and its worked really well for me. I don't see why its not more popular given the popularity of android and the jvm Apr 18 01:23:17 yeah but no python3 wtf Apr 18 01:23:41 that was released ages ago Apr 18 01:24:16 ah Apr 18 01:24:22 Python is supported well on Windows Apr 18 01:24:36 looks like portable python is discontinued Apr 18 01:27:13 so, how to get spaces between buttons Apr 18 01:27:17 anyone know? Apr 18 01:28:17 padding or margins Apr 18 01:33:14 Having issues setting up the Android Studio Emulator Apr 18 01:34:24 The issue is that /tmp gets filled when Android Studio downloads and tries to install the emulator Apr 18 01:34:50 this machine only has 4GB and from what I understand /tmp is half of that Apr 18 01:35:58 Android studio downloads the file which is less than the size of /tmp, but when it unpacks the archive in /tmp then I get an error stating that there is no space left Apr 18 01:36:07 anyone experience something like this? Apr 18 01:40:05 i have a stupid question, i should know this i guess. What happens (or what is supposed to happen) when you have parent ViewGroup X, with a Child Y --- X says wrap_content but Y says match_parent ? Apr 18 01:40:44 is it undefined, does the parent or child override, etc .. Apr 18 01:42:35 I would think Y inherits X's state Apr 18 01:42:40 But am not sure Apr 18 01:43:56 RustyShackleford can you install node.js on your machine ? :D Apr 18 01:44:32 Might be a bit off topic but it seems for android you sign stuff once you build your OS? It seems it's singed with public test keys and your supposed to sign it with your keys after for release stuff. Apr 18 01:44:45 was reading https://source.android.com/devices/tech/ota/sign_builds.html Apr 18 01:45:25 RustyShackleford my last employer scanned the machine for .exes once per week Apr 18 01:47:02 pclover, they might know on #android-root Apr 18 01:47:32 there really need to be a android platform channel here Apr 18 01:47:37 or like android-dev-platform Apr 18 01:50:39 pclover there is google groups for that Apr 18 01:51:13 good suggestion Apr 18 01:51:16 g00s: fairly certain the parent viewgroup inherits match parent from the child Apr 18 01:51:34 which if you at the root of the layout is match parent by default Apr 18 01:51:37 your* Apr 18 01:52:47 you're* =/ Apr 18 01:55:39 any firebase users here... I am trying to use the demo apps in android, but can not record anydata.. not even from the simulator... thoughts? Apr 18 02:38:07 * tyler_elric dances Apr 18 02:38:18 I finally got android studio installed and running. Apr 18 02:38:27 Don't need any help, just wanted to share my joy. Apr 18 02:41:03 mazel tov! Apr 18 02:44:31 Leeds, that build booted btw Apr 18 02:44:37 not sure if you saq Apr 18 02:44:38 saw Apr 18 02:47:38 I'm going to learn some web programming Apr 18 02:47:59 i'm just curious how websites handle multiple client platforms Apr 18 02:48:12 web, android, and iOS for example Apr 18 02:52:21 i'm faced with this final challenge getting migrating my app to android studio 2.0, duplicate class found: R.java and BuildConfig.java -- any ideas? Apr 18 02:54:18 meetri: Check your source folders in your project structure Apr 18 02:54:25 the conflict is inside of ~/Library/Caches/AndroidStudio2.0/.../genereated_sources/aapt/com/.../R.java Apr 18 02:54:41 CedricBeust, I only have src & gen selected **** ENDING LOGGING AT Mon Apr 18 02:59:58 2016