**** BEGIN LOGGING AT Sat Jul 30 02:59:58 2016 Jul 30 03:22:16 08:50 Hello all! (Newbie alert!!) I need to get a good hold on Java before I start using Android studio, correct? Jul 30 03:24:45 * Bhargav97 wondering if anyone listening to me? Jul 30 03:27:40 Android Studio has nothing to do with Java Bhargav97 Jul 30 03:28:38 The Android SDK is written in Java yes Jul 30 03:28:56 Android Studio is just the tool used to write the java Jul 30 03:29:29 drose379: Thanks for answer! Lemme tell you my current situation... I'm aware of most of the C concepts (Structures, pointers, arrays, yeah) but haven't started any OOP languages yet Jul 30 03:30:02 I'm planning on learning android app dev, so I need to learn Java first, right? Jul 30 03:30:11 Yes Jul 30 03:30:19 You do Jul 30 03:32:23 Great, I start today! Would be great if you can mention next steps after learning Java Jul 30 03:34:42 Get better at java :) Jul 30 03:34:50 Then start playing with the Android SDK Jul 30 03:35:08 Never mind turned out the icon was there all a long thought it had to be set in the manifest as @drawable as opposed to @mip... res fold but never mind... Jul 30 03:35:13 And have fun Jul 30 03:35:49 What i want to know is how one sets the icon to the desktop when installing not just under the button that brings up all the app's Jul 30 03:36:14 drose379: okay, What do you mean by start playing with SDK? Read that HUGE Google documentation??? Jul 30 03:36:40 Go through some tutorials Bhargav97 Jul 30 03:36:55 And the documentation will be your friend Jul 30 03:36:58 I guess i could use R.id and manually create a shortcut Jul 30 03:37:19 drose379: sounds good, thanks! Any nice tutorials you can recommend? Jul 30 03:37:42 Just didn't know if there was a traditional way to set an app icon on the desktop as opposed to the all apps pages Jul 30 03:38:35 I guess the best way is to uses a short cut assocated with the image icon Jul 30 03:39:13 Hmm, not off the top of my head no Jul 30 03:39:17 Start with the Java tutorials though Jul 30 03:39:46 https://docs.oracle.com/javase/tutorial/ Jul 30 03:40:16 I've purchased a nice book for java to help me through.... Jul 30 03:40:54 I'm looking for Android studio OR just specifically Android SDK related tutorials Jul 30 03:42:18 Use google for that Jul 30 03:43:13 Alight! Jul 30 04:11:13 what if i don't include this line in XML : tools:context=".MainActivity"? I saw the documentation but its not very clear about it Jul 30 04:12:59 "used by UI editor uses to render your layout" but even if i don't use it the UI editor still renders it Jul 30 04:14:44 purplex88 Jul 30 04:16:15 yes sir Jul 30 04:16:58 purplex88: At ease Jul 30 04:19:25 I generally delete the tools: fluff, it's AS specific, and just like it says, it's for rendering UI elements Jul 30 04:22:24 i delete it too but my design view still displays/renders the XML Jul 30 04:22:36 I believe it's implied, but I use vim Jul 30 04:23:49 its only use AS Jul 30 04:25:09 I made six projects but noticed it only yesterday Jul 30 04:26:09 Don't stress too much about it, as a general rule, remove things till your heart's content, or until it no longer builds Jul 30 04:30:54 Oh i see it now Jul 30 04:37:08 I've galaxy S4 with broken screen, and I'm wondering how to mirror its screen on ubuntu pc? I didn't find anything to installing vysor nor I have google chrome installed. Are there other alternatives? Jul 30 04:40:18 TheLawyer this isn't really a app dev question Jul 30 04:41:04 contact samsung for warranty ;) Jul 30 04:41:14 lol Jul 30 04:41:41 yup, RMA Jul 30 04:46:06 anybody tried react native? Jul 30 04:46:22 I've been working on something at work using react native. I'm pretty sold Jul 30 04:46:34 development speed is so quick Jul 30 04:50:23 Goddamn it, it's the javascript apocalypse Jul 30 04:51:41 I thought that way as well Jul 30 04:51:52 until I saw the light Jul 30 04:52:11 RustyShackleford: that's not the light, it's the darkness of Satan Jul 30 04:52:28 depends on the app you're building Jul 30 04:52:46 but if your app is a mobile version of your website, its an excellent option Jul 30 04:53:42 RustyShackleford: maybe yes, maybe no. Currently too ignorant to give an informed opinion, but I hate Javascript just on principle. :D Jul 30 04:54:16 Please take this discussion to another channel Jul 30 04:54:20 fair enough. Just trying to spread the word of Satan Jul 30 04:57:26 Sounds easy to reverse engineer. Barely know how to read decompiled Android apps written in Java, but when I decompiled one in Cordova, it was really easy to understand the structure. Jul 30 04:57:56 Probably a minuscule detail, though. Jul 30 04:59:06 Not that easy if it's properly minified (e.g. Proguard) Jul 30 05:06:18 CedricBeust did you notice protobuf 3 final release ? Jul 30 05:06:19 minified javascript is not easy to understand Jul 30 05:06:38 just wondering, i though they had java-nano but where did it go ... Jul 30 05:08:21 i guess its java-lite now Jul 30 05:08:49 scala is also difficult to decompile, dunno how easy it is to decompile kotlin and other compiled jvm languages Jul 30 05:09:54 RustyShackleford, there's nothing compelling about a react native app Jul 30 05:10:15 having your app be 30mb just because you want to use react native is a non starter Jul 30 05:10:32 development speed Jul 30 05:11:11 VerbalKint, its a bit different from cordova. It is not an app inside a WebView Jul 30 05:14:25 pfn, what is the issue with having a larger apk? Jul 30 05:14:45 RustyShackleford: I'm more concerned about performance Jul 30 05:15:30 How do I dynamically add elements to a listview to make it look like this > http://i.imgur.com/YjR4VtB.png ? Jul 30 05:15:45 Only thing I can find online is how to add things to a ListView without that subtext Jul 30 05:15:49 faster than our native app, but its a shitheap of a codebase Jul 30 05:15:58 we're looking into a rewrite in RN Jul 30 05:16:54 It seems fast enough for me. But keep in mind, the app mostly fetches json and shows it on screen Jul 30 05:17:05 Scala is hard to decompile even in source form Jul 30 05:17:56 we also have an android app. Two apps with one codebase is an appealing ide Jul 30 05:17:58 *idea Jul 30 05:42:47 Hi, I am trying to make my app database to sync with a drive worksheet. But before I need to add some settings in the bar so if the user decides to sync it connects to the drive. My problem now is with the Settings, I am using AppCompatPreferenceActivity but I don't know how to catch a checkbox pressed key Jul 30 05:56:18 i have an activity in which i have two buttons and an imageview , one button says "sign in " , i want to remove the other button and change the text of sign in button to sign out , and also make some changes to imageview onclick , what is the best way to achieve this Jul 30 05:56:35 should i use another activity or , fragment , or anything else Jul 30 06:44:13 how do i access a textview from a fragment (viewpager) in my activity? this is how im setting it up so far http://ideone.com/GVbjEx Jul 30 06:55:49 well make the page's textView accessible, i.e. getTextView() Jul 30 07:01:13 Ashiren, so itd be something like pager.getTextView or would it be specific fragment + .get... Jul 30 07:02:42 specific fragment Jul 30 07:03:05 then again, why the activity needs fragment's TextView Jul 30 07:04:28 but if i were to call Fragment PageOne.. etc wouldnt that be a new instance of the object in the view pager Jul 30 07:04:35 sorry, just trying to understand this clear Jul 30 07:08:09 i dont know how you implemented Adapter. i sometimes have references to visible fragments in my adapter in case i need some manipulation on them Jul 30 07:10:13 oh right, i see. this is how mine is set up http://ideone.com/LMxsOi Jul 30 08:32:39 curious does anybody know of an SDK function that allows one to hook into netfilter functions so one can build a firewall or block ip address from your phone Jul 30 08:34:20 afaik the nonroot ways is to make local proxy (like adblock) or local vpn (like block this) Jul 30 08:38:25 You mean like setup there phone to uses a proxy setting and then deny things thru some proxy setting SDK function? Jul 30 08:39:07 Wait let me say that more clearly Jul 30 08:39:49 You mean like setting proxy setting then thru SDK proxy function controll the blocking of ip address Jul 30 08:39:55 actually i dont know how it works in developer point of view Jul 30 08:40:03 adblock and block this are open source, so you make peek Jul 30 08:40:29 more or less Jul 30 08:40:31 If so what functions would i need and i am trying to block incoming ip address as well as outgoing ip address from the same ip address Jul 30 08:42:00 say like blocking the system updates sites ip address incoming /outgoing connections so one has a way to turn off automatic update Jul 30 08:42:06 of system things Jul 30 08:42:32 I have no problem finding the settings for google play apps but for system updates Jul 30 08:43:23 I thought the best thing if there is no SDK function or button to turn off these updates is to uses a firewall like program to block them from ever getting to the phone Jul 30 08:45:12 If there was a netfilter based function in the SDK then using it in my spp would allow me to make an app to toggle system updates on or off without going thru all the rooting stuff which i cann't or not willing to do Jul 30 08:49:59 then i just provided you possible ways. though i know nothing about them except theyre open source Jul 30 08:50:17 you could try to find an open source nonroot android firewall and peek at source code Jul 30 08:53:48 These are app's to uses i am more about not download third party app's on the phone just creating my own app Jul 30 08:54:17 So i was think your adblock was just an add on SDK that i could uses Jul 30 08:54:31 BUT when i look its just app Jul 30 08:55:27 i mean you should see what functions they do use to achieve that Jul 30 08:56:57 O ya right decompile it Jul 30 08:57:41 ya give it a try if the app exist i know it can be already done so its just a matter of figure the functions i need out. cool thanks Jul 30 08:58:21 silly no need to decompile when theres source code Jul 30 08:58:28 i.e. https://f-droid.org/repository/browse/?fdfilter=adblock&fdid=org.adblockplus.android Jul 30 08:58:52 or https://github.com/ggsava/block-this Jul 30 09:12:07 Hello everyone. I am trying to implement a transparent proxy app using the VpnService functionality. I think I got it to work so far but am stuck now with the question how to forward the packets once I intercepted them. It seems the only documented case is the one where you forward the packets to a VPN tunnel. But I want to forward the packets to their original destination after inspection. Jul 30 09:12:56 Do I have to manually create the TCP / UDP packets and send them out accordingly? Or is it as simple as forwarding them to the tunnel? Jul 30 09:13:46 I mean, instead of tunnel.write(packet); I am searching for something like eth0.write(packet); Jul 30 09:15:18 Hi guys, wanted to ask if anyone knew what cpu family the Moto G thea's Quad-core 1.2 GHz Cortex-A7 is? Jul 30 09:16:07 hello Jul 30 09:16:31 i have a question about the filesystem Jul 30 09:17:14 it seem to have changed in some way between Lollipop and Marshmallow Jul 30 09:17:49 an application that used to work prior to marshmallow does not work anymore wuth internal storage Jul 30 09:18:09 im assuming its a permission thing. do any of yall know what it could be? Jul 30 09:18:09 Conti: you mean ARM? Jul 30 09:18:28 BobbyJones: keyword: runtime permissions Jul 30 09:18:42 so things did change? Jul 30 09:18:56 external storage still works tho Jul 30 09:18:58 eeyup Jul 30 09:19:02 oO Jul 30 09:19:29 yeah its weird. Jul 30 09:19:39 in android M now you need to ask for permission on runtime additionally, not only in manifest Jul 30 09:19:59 even for internal storage? Jul 30 09:20:00 you could target sdk 22 to mitigate, but its hacky and temporary only Jul 30 09:20:36 i read the docs and it says that there is no permissions for internal Jul 30 09:20:45 internal storage, you mean the app's private path or internal phone's memory Jul 30 09:20:58 private path Jul 30 09:21:03 then you dont need any permission for this Jul 30 09:21:15 yeah thats what i am confused about Jul 30 09:21:17 you get SecurityExceptions for that? Jul 30 09:21:29 um im not sure Jul 30 09:21:38 Ashiren, this is what i have now, using setter too and it still says mPageOne.getClass() is null.. Hm http://hastebin.com/sahigoseza.axapta Jul 30 09:21:42 im just not allowed to create a directory Jul 30 09:22:01 could it be that i am trying to create a directory with permissions code 0770? Jul 30 09:22:27 (well not me specifically its a open source project) Jul 30 09:23:21 dunno Jul 30 09:23:49 https://bitbucket.org/rude/love/src/db0da08a17cf02276255ab78a2b3d6a7f048550a/src/common/android.cpp?at=default&fileviewer=file-view-default#android.cpp-201 Jul 30 09:24:03 this is where it errors Jul 30 09:24:27 also yes its a cpp project and we use ndk. im assuming that makes it even more difficult to debug Jul 30 09:24:48 would logcat tell us if there was a security exception? Jul 30 09:25:46 that could be many things. not only security Jul 30 09:26:16 https://bitbucket.org/MartinFelis/love-android-sdl2/issues/132/could-not-set-write-directory-on-android-6 Jul 30 09:26:35 well in this bug report there is logcat output if its any help Jul 30 09:27:44 whats the path exactly Jul 30 09:28:19 maybe its pointing something root or the parent dir Jul 30 09:28:33 the path is the private path plus the name of the game Jul 30 09:29:02 we retrieve the path from SDL and i haven't seen a bug report on there yet Jul 30 09:30:25 and it worked in Lollipop. Jul 30 09:31:01 do you think i could try targeting the latest api level? Jul 30 09:31:12 and see if it will make a difference Jul 30 09:32:15 or lower Jul 30 09:32:54 ok. i will try that in a couple hours, once i get to work. Jul 30 09:37:03 any ideas regarding my question? Jul 30 10:12:24 HI Jul 30 11:24:36 is an intent filter for hosts for subdomains with "cloud.*" possible somehow? So everytime cloud.xyz.com; cloud.abc.com or like that is clciked in webbrowser the app is selectable Jul 30 12:56:24 Does something like /dev/fb exists, when running terminal emulator (Termux)? Jul 30 14:32:55 hey! anyone here willing to help me out with my question from earlier? (regarding VpnService) Jul 30 14:44:42 How can I align a checkbox center to button on right? Jul 30 14:44:46 Hi, I am tryign to learn gradle. Installed debian jessies defautl version, jcenter() is not recognized, where can I find the android plugin for manual installation, and why isn't it packed with the android sdk? Jul 30 14:46:03 why not use android studio Jul 30 14:46:16 Seems liek jessie's gradle is version 1.5, guide specifies version 2.2. Jul 30 14:46:29 Ashiren: because I prefer to work in terminals, with vim Jul 30 14:46:42 eh, you don't have to use AS if you don't want to, but you shouldn't use some ancient gradle version just because your distro is slow Jul 30 14:47:07 I am using: android:layout_toRightOf="@id/button" it places checkbox on right but not in center of button Jul 30 14:47:28 possible in relativelayout? Jul 30 14:47:44 Leeds: Well, jessie is about a year old.. I figured a build system ought to be stable enough to work within that confines, but apaprently not. Jul 30 14:48:29 these newfangled distros can't keep up Jul 30 14:49:14 Or someone needs to have more stable ABIs. Jul 30 14:49:31 yeah, alright Jul 30 14:49:40 anyway, you can moan, or you can get a working system - up to you Jul 30 14:49:53 Yeah I know Jul 30 14:51:34 But it doesn't speak well of a project if it is too volatile. Jul 30 14:52:27 eh, the transition to gradle hasn't been the smoothest thing, but the SDK and tools iterate pretty quickly Jul 30 14:54:25 Well I am usually install the SDK manually, so I guess doing the same for the build system is ok. Jul 30 14:54:40 Ugh 43 Mb Jul 30 14:54:55 I bet the Android plugin isn't even included Jul 30 14:55:52 Well at least this allows me to purge the other stuff. Jul 30 14:57:00 Hmm, no signing of the gradle binaries either? Jul 30 14:57:51 Oh, sdkman, another third party package manager like npm, exactly what I wanted. Jul 30 15:02:39 Omfg, the downloading orgy has started Jul 30 15:04:03 wtf? I downloaded the latest version and it is 2.14, which is still not new enough? Jul 30 15:06:08 "Failed to apply plugin" "Gradle version 2.2 is required. Current version is 2.14.1." Jul 30 15:13:04 screw this "build system", i am going out for a run Jul 30 15:16:43 I know someone who said the same thing like an hour ago :p Jul 30 15:16:45 xarragon, what on earth are you doing Jul 30 15:16:56 Why aren't you using gradle wrapper supplied in your project? Jul 30 15:17:02 Don't use system installed gradle ffs -_- Jul 30 15:17:07 ./gradlew assembleRelease Jul 30 15:17:08 That's it. Jul 30 15:20:09 Mavrik: I dont wish to redownload an antire suite of software for every single project, thus I opted for system-installed builder. Jul 30 15:20:36 Mavrik: Started with debian's default, which was too old (!), downloaded the binary release from the website, which was, apparently also too old. Jul 30 15:20:55 Don't. Install. Gradle. Manually. Jul 30 15:20:56 But that is probably just some glitch, induced by me mishandling it. Jul 30 15:21:27 Mavrik: I often work offline on the road. Can the wrapper be sett up to use a local cache? Jul 30 15:21:46 As I said already. Everything is cached locally after initial bootstrap. Jul 30 15:22:43 Mavrik: Ok, then I probably misunderstood what the wrapper did. My bad Jul 30 15:24:23 I'm using firebase-UI https://github.com/firebase/FirebaseUI-Android/blob/master/auth/README.md for an app, I want to log users with custom email or with facebook, and give the chance to the user if he logs in with his email to connect to his facebook as well, do you know if I can do this with firebase or I have to log the user to facebook independently after logging in with his email? Jul 30 15:24:26 try reading the docs, gradle has a huge manual to explain these things to you Jul 30 15:26:45 pfn: Well I was following this: https://sites.google.com/a/android.com/tools/tech-docs/new-build-system/user-guide Jul 30 15:27:11 that gives no background on using gradle Jul 30 15:27:21 just the specifics of the android plugin Jul 30 15:28:53 there's nothing volatile, use gradlew, done Jul 30 15:30:15 Well I still need a locally installed gradle to create the wrapper ina new project, right? Jul 30 15:30:53 Why? Jul 30 15:30:59 how would i i get a Bitmap from an android.media.Image that is in JPEG format? i tried doing something like this http://pastebin.com/G5xrHw0u but the bitmap is null Jul 30 15:31:11 Wrapper is a script that downloads and locally installs Gradle appropriate for the project. Jul 30 15:31:41 Mavrik: And how do I create that wrapper in an empty project then? Jul 30 15:31:48 Mavrik: Copy it from another? Jul 30 15:32:04 AS usually creates it for you. Jul 30 15:32:11 If you don't want to use AS copy it from another yes. Jul 30 15:32:13 Like I said, I don't use AS Jul 30 15:32:37 You apparently really want to waste your own time. Jul 30 15:32:39 copy the gradle directory from an existing project Jul 30 15:32:45 Jidoor, hmm Jul 30 15:32:46 or use android create project Jul 30 15:33:04 Jidoor, are you sure you're getting valid JPEG data_ Jul 30 15:33:16 that should work? Jul 30 15:33:45 i know barely anything about bytebuffers so was kinda waving my hands there Jul 30 15:34:05 Did you check in debugger if it starts with jpeg magic numbers? Jul 30 15:34:25 What's the log output you're getting? :) Jul 30 15:34:40 not printing any bytes yet Jul 30 15:34:41 I don't belive 'android create' sets up a gradle wrapper. Jul 30 15:34:52 I actually tried that as my first solution. Jul 30 15:35:07 It sets up an ant project, which is what I have been using so far. Jul 30 15:35:16 Perhaps there is some option to enable it, let me check Jul 30 15:35:26 xarragon, -g Jul 30 15:35:48 xarragon, although, if you want to work exclusively from commandline and vim, I recommend sbt Jul 30 15:35:53 Jidoor, looked at the doc a bit, what you did will be VERY slow :) Jul 30 15:37:12 Jidoor, decodeByteArray(image.getPlanes()[0].getBuffer().array(), 0, getBuffer().capacity()); should be enough Jul 30 15:37:16 xarragon, lots of useful features for working from cli that you won't get from gradle Jul 30 15:37:24 No need to copy out arrays. Jul 30 15:37:37 Yes, recomment SBT to newbie :P Jul 30 15:37:40 Good job :D Jul 30 15:38:40 pfn: http://www.scala-sbt.org/ ? Jul 30 15:38:57 Mavrik: I am only a newbie at android. Jul 30 15:39:08 yes, although, you'll want to look at scala-android.org Jul 30 15:39:31 you don't get instant run in gradle without using Android studio Jul 30 15:39:39 Mavrik: that getBuffer().array() didnt work for me Jul 30 15:39:42 unsupported operation Jul 30 15:39:47 you can do something similar to instant run from commandline using sbt Jul 30 15:39:55 I think I came across camera2 application written in Scala actually. Jul 30 15:39:57 think its because its not backed by an array or something Jul 30 15:40:07 xarragon, you don't have to use scala Jul 30 15:40:33 Jidoor, ah, possible. Jul 30 15:41:00 pfn: Yes, I know. I was just surprised, it seemed less niche than I expected. Jul 30 15:41:30 Jidoor, use "data = new byte[buffer.remaining()]; buffer.get(data)" to copy it out in one pass. Jul 30 15:41:41 And then verify that the array data begins with JPEG magic number Jul 30 15:41:42 It is just that in my world, a build system is supposed to be small, unobtrusive and _simple_ Jul 30 15:42:01 xarragon, that's pretty false of just about all build systems Jul 30 15:42:29 there is no build system for complex systems that is ever small, simple nor unobtrusive Jul 30 15:43:54 Well, do we really need a one-size-fits-all-approach if most projects are not complex? Jul 30 15:44:14 Makefils is usually what I use Jul 30 15:44:57 And ant has worked well for my crapple little toy android projects Jul 30 15:46:02 Otherwise I like scons Jul 30 15:47:48 But I've heard it has become a bit rotten as of late. Jul 30 15:48:03 then keep using ant Jul 30 15:48:23 pfn: Well I am toying with cardboard/VR Jul 30 15:48:40 pfn: It used to be a jar file, but then they switched to AAR. Jul 30 15:48:58 pfn: So i figured I should give gradle a go to at least understand it better Jul 30 15:49:43 pfn: I know I can just extract the .class files from the AAR, but they also pack in resources in them, which might be messy to handle manually. Jul 30 15:50:46 they are, and it is complex Jul 30 15:50:50 ant is not suitable Jul 30 15:53:30 Nice thing about make otherwise is that it is language-agnostic, for better or worse Jul 30 15:54:11 xarragon: given your background, have you even worked with imake? Jul 30 15:54:27 kbs: no? Jul 30 15:54:48 xarragon: ah. was hoping to provide a point of reference for gradle. Jul 30 15:55:07 autotools I've used, which is the closest equivalent I can think of right away Jul 30 15:55:20 That, make building suitable for end users Jul 30 15:55:28 That is* Jul 30 15:58:56 It would be awesome if the android sdk tools could handle the aar merging/splitting or whatever it needs to do. Jul 30 15:59:26 And then i could just use those tools with make, ant or whatever I feel comfortable with. Jul 30 16:01:31 well I could always write such a tool I suppose, would be interesting to learn the details of the formaty Jul 30 16:14:22 imake... xmkmf fml Jul 30 16:14:54 the android sdk stuff handles all of that Jul 30 16:15:06 just not worth writing the code to make it work with ant Jul 30 16:29:01 why isn't there a layout_alignCenter in RelativeLayout? Jul 30 16:31:47 Doesn't sound like something you need often when using RelativeLayout Jul 30 16:34:20 centerInParent Jul 30 16:34:33 I'm using firebase-UI https://github.com/firebase/FirebaseUI-Android/blob/master/auth/README.md for an app, I want to log users with custom email or with facebook, and give the chance to the user if he logs in with his email to connect to his facebook as well, do you know if I can do this with firebase or I have to log the user to facebook independently after logging in with his email using a direct connection to facebook sd Jul 30 16:34:41 and theres center horizontal and vertical Jul 30 16:34:52 * pfn ignores j4f-shredder Jul 30 16:34:58 I think he wants one side of a View to align to the center of the parent Jul 30 16:35:23 create a stub view that is centered Jul 30 16:35:30 then align against it Jul 30 16:39:09 But I want to center it to another view Jul 30 16:39:18 not in parent Jul 30 16:39:55 A button align centered on the right with checkbox Jul 30 16:40:56 i think not possible with relative layout Jul 30 16:42:16 is it possible to take screenshots from a background service? Jul 30 16:44:20 Hi. Does anyone know if it's possible to sign APKs with my own GPG private key? (same one I use to send email and sign Git commits) Jul 30 16:44:35 my googling came up with MediaProjection which i've been trying to make work unsuccesfully and https://code.google.com/archive/p/android-screenshot-library/ which requires some native service to be started with adb haven't tried this second approach yet Jul 30 16:51:37 nvm my question that's a dumb idea (because key expiry dates) Jul 30 16:52:05 i can just include an asc file like with any other binary Jul 30 17:09:00 I'm signing in with google and get the idtoken... which I want to post along with some other data to a server from an BroadcastReceiver. Any suggestions about how to do that? I mean should I store the token somewhere or pass it to the receiver? Jul 30 17:10:03 tjg1, kind of, but no Jul 30 17:10:18 gpg keys tend to have relatively short validity Jul 30 17:10:29 play store requires minimum 30 year Jul 30 17:10:51 You can always sign your public key with GPG and publish that. Jul 30 17:11:48 there's also some issue with using sdk signing vs jarsigner Jul 30 17:11:57 the latter includes cert chain when signing Jul 30 17:12:12 so publishing to play store results in incompatible updates Jul 30 17:12:23 dunno if that's still an issue Jul 30 17:14:02 I signed qicr with a chained key, sdk tools don't behave the same, so I have to sign with jarsigner Jul 30 17:14:23 haven't tried switching back to the sdk signer in a few years though Jul 30 17:15:11 yes, i will do that Jul 30 17:15:19 another question Jul 30 17:15:36 pfn: can you answer my newbie question? Jul 30 17:15:50 I don't answer. questions explained by docs Jul 30 17:15:53 is there a library for sharing big objects (too large to pass in an Intent) between activities Jul 30 17:16:06 something more seemless than using static fields Jul 30 17:16:08 ? Jul 30 17:16:15 pfn: i think its not in docs , please dude Jul 30 17:16:18 tjg1, android behaves like any java application in that regard Jul 30 17:16:34 tjg1, pick a suitable design pattern of your choice Jul 30 17:16:41 pfn: please , please , please Jul 30 17:16:49 :) Jul 30 17:17:19 google esr smart questions Jul 30 17:17:19 well, regular Java applications dont have Activities and TransactionTooLargeExceptions Jul 30 17:17:26 come back after you read Jul 30 17:17:32 tjg1, ortgogonal Jul 30 17:17:37 orthogonal Jul 30 17:17:53 there are many design patterns that don't care about activities Jul 30 17:17:59 pick one that fits you Jul 30 17:18:40 pfn: so i have an activity which has two buttons , facebook sign in , and google sign in , and one imageview , i want that as soon as user sign in from either one of their social accounts, i will change the imageview to their pfp , and then i want to change the button text , and hide one button Jul 30 17:18:50 do i need to create a new activity for this ? Jul 30 17:19:05 no Jul 30 17:19:09 what is the best way to handle these kinds of changes , by best way i mean right way Jul 30 17:19:24 change your views from code Jul 30 17:19:33 do i need to create a logout activity , Jul 30 17:19:45 or should i make changes in that activity only Jul 30 17:19:57 why not another activity? mind telling me that Jul 30 17:20:48 google for the purpose of am activity Jul 30 17:21:04 is what you propose a new activity? Jul 30 17:24:22 Does android:width have any use? Jul 30 17:24:42 pfn: dont i need a whole another activity for logout Jul 30 17:26:06 what i don't get is why "layout_width" is used both for layouts and views? as the name implies "layout_width" should set width of layouts only Jul 30 17:26:47 jackhum, up to you to decide Jul 30 17:30:09 My use case is that i have a GridView with infinite scrolling that has to pass metadata about its content to another Activity (with an infinite ViewPager). If I scroll too far down, I get a TransactionTooLargeException. Ideally, I would like to share the object between the two Activities, but I think I'm just gonna limit the number of items I send and hope I don't hit any edge cases (like an image with a %^&*load of tags) Jul 30 17:41:36 purplex88: layout_width refers to the width of the view (or viewgroup) with respect to the layout it is IN Jul 30 17:42:05 purplex88: a view(group) always live *inside* a layout Jul 30 17:42:23 (basically viewgroup == layout) Jul 30 17:43:32 yes if viewgroup is layout then how using layout_width for views make sense? because viewgroup inherits from view? Jul 30 17:44:00 i was thinking android:width for views Jul 30 17:44:05 no, i explained it already Jul 30 17:44:48 tjg1 don't put big things in Intents. small primitives / pointers / urls work best Jul 30 17:44:54 match_parent -> i am as wide as my parent is wide Jul 30 17:46:10 just as there's gravity for views and layout_gravity for layouts Jul 30 17:49:25 also you can set layout_width = "16 dp" for views Jul 30 17:49:59 which not with respect to parent i suppose Jul 30 17:50:03 is* Jul 30 17:50:25 so layout_ makes confusion Jul 30 17:51:15 no, it doesn't Jul 30 17:51:24 you dont understand the system Jul 30 17:51:40 so how it makes sense? Jul 30 17:53:23 layout_ attributes are set on LayoutParams Jul 30 17:53:54 The parent ViewGroup uses LayoutParams to layout a View Jul 30 17:54:07 i just mean the name is misleading, because you are setting the width of view not of layout Jul 30 17:54:50 let's just call ViewGroups ViewGroups, not layouts Jul 30 17:54:52 If that's how you choose to interpret it Jul 30 17:54:55 i think android:width sounds more appropriate if it works Jul 30 17:55:10 anyway, it matters not. the system is what it is Jul 30 17:55:42 Having it clearly defined what is and what is not LayoutParams is by far preferable Jul 30 17:56:32 e.g. gravity vs layout_gravity. They're very different Jul 30 17:57:40 Without some common prefix, or whatever, you don't know at a glance what is a LayoutParams attribute and what is a View attribute Jul 30 17:57:43 if we layout width of "view" then it makes more sense Jul 30 17:57:49 say^ Jul 30 17:58:36 and if layout != container or parent Jul 30 17:58:55 layout_ = LayoutParams Jul 30 18:07:48 Also layout parameters are passed (and listened to) by the parent while other properties apply to the view itself. Jul 30 18:07:58 See the difference between layout_gravity and gravity. Jul 30 18:16:29 the layout determines how to layout a view Jul 30 18:17:04 the view can only provide suggestions Jul 30 18:17:22 and for the most part, android:width is unused Jul 30 18:18:19 it's never used where you think Jul 30 18:18:49 Where is it used? Jul 30 18:19:11 I don't even recall Jul 30 18:19:39 drawables, at least Jul 30 18:20:10 Ah, yeah Jul 30 18:21:54 some views make use of it, but I definitely can't recall Jul 30 18:29:47 so even when you say layout_width = "16 dp" on a view, it is handled by the layout of view? Jul 30 18:29:55 Yes. Jul 30 18:30:13 This is why valid layout_ properties change depending on what the parent layout is. Jul 30 18:30:30 anyone know if xtrestolite will come to sy7 edge? Jul 30 18:30:32 or dev has quit Jul 30 18:30:41 xtre-stolite Jul 30 18:30:45 XtreStolite Jul 30 18:31:14 freekevin: Sounds like a question for #android or #android-root, this channel is for app dev Jul 30 18:31:52 asking if osmeone is developing something is not an android-dev q? Jul 30 18:31:59 it literally has the title in the question Jul 30 18:32:03 developer, developing Jul 30 18:32:27 The topic is android application development Jul 30 18:32:53 i disagree Jul 30 18:32:58 could be rom development Jul 30 18:33:04 See /topic Jul 30 18:33:19 a rom is an application Jul 30 18:33:47 and not asking for help with the custom rom Jul 30 18:33:54 Root/custom ROMs, head to #android-root - this is not a discussion Jul 30 18:34:09 asking if someone is developing the custom rom Jul 30 18:34:54 its an android application development question Jul 30 18:35:10 No Jul 30 18:35:11 so rom dev's are not devs? Jul 30 18:35:24 Yes Jul 30 18:35:29 you present no argument Jul 30 18:35:31 obviously you have failed Jul 30 18:36:55 heh ... he "disagrees" Jul 30 18:45:24 pure comedy Jul 30 19:10:32 pretty much most android rom developers are hacks Jul 30 19:14:02 how I learned ... after awhile we hope to get better XD Jul 30 19:31:30 hi all ! Jul 30 19:32:14 pfn: rom developers... sometimes they dont even know what they're doing and copy some pieace of codes from one model to another. Jul 30 19:32:19 got an issue with my video it's playing in stretched Jul 30 19:34:03 this is my fragement file : http://pastebin.com/tx8GkeWZ Jul 30 19:35:37 isn't there like a scaletype element you can define in the xml? Jul 30 19:37:46 fels: I know for a fact that ImageViews have a scaletype which you can set in the xml, you can set it to like fitXY, center, centerInside etc Jul 30 19:38:12 It's possible that SurfaceView has the same thing, so maybe try that Jul 30 19:38:25 BasedGob: I d'ont know too much about this - let me search : scaletype Jul 30 19:39:11 in your surfaceview xml, start typing scaletype and see if anything pops up Jul 30 19:47:05 BasedGob: No nothing there Jul 30 19:47:33 fels: K try this http://stackoverflow.com/questions/10707519/scaling-a-fixed-surfaceview-to-fill-vertically-and-maintain-aspect-ratio Jul 30 20:00:03 BasedGob: I don't get it ? :( Jul 30 20:31:48 https://medium.com/google-developers/a-better-underline-for-android-90ba3a2e4fb#.g1g2i0ulb Jul 30 20:31:52 nice Jul 30 20:44:18 No nougat for nexus 5 : ( Jul 30 20:44:45 any ideas ?? Jul 30 20:52:43 connectivityManager.registerNetworkCallback will that notify an app before the wifi notification sound occurs on the android system. I am trying to figure out an issue that the wifi keeps beeping alerting Jul 30 20:54:07 There is to many layers of stuff so i am confused theres alerts for different networkings i imagine so even figure that out is difficult it is a newer 6 phone Jul 30 20:55:41 I looked in the Block-this and it seems there using ConnectivityManager in there net folder so i imagine this is pretty low level stuff i.e called before alot of network things though really confused so could be wrong with this Jul 30 20:56:08 cann Jul 30 20:56:09 t Jul 30 20:56:46 really test it on this older phone first because its like api 21 so if anybody know alot about android networking api's let me know Jul 30 21:04:09 sorry guys any tips on my video stretched issue Jul 30 21:21:22 fels, your video will always be stretched to the SurfaceView size. Jul 30 21:21:30 If you want to keep AR, resize the surfaceview. Jul 30 21:22:01 Mavrik: how would I do that ? Can I do it in XML or have to do it in code ? Jul 30 21:26:00 Sup devs Jul 30 21:26:14 if i use android studio, will i be able to build my project in cmdline? Jul 30 21:26:47 Yes Jul 30 21:26:55 SimonVT: using? Jul 30 21:27:03 gradle Jul 30 21:27:12 SimonVT: android studio is based on swing ui right? Jul 30 21:27:18 or swt? Jul 30 21:27:30 Uh, I have no idea Jul 30 21:27:38 It's a fork of intellij idea Jul 30 21:27:40 i wish isn't swing.. Jul 30 21:28:13 SimonVT: swing isn't accessible for screen reader's while swt is it Jul 30 21:28:51 ok Jul 30 21:29:06 thank SimonVT for clarifying Jul 30 21:31:36 studio is downloading Jul 31 00:26:17 is anyone running AS 2.2 Preview 6 on Linux Jul 31 00:26:53 SDK build tools 25.2 refuses to unzip for me with no error output Jul 31 01:04:11 Hey all. I'm curious as to what the minimum screen resolution/dpi you all most commonly support. Jul 31 01:12:20 anyone using Android studio 2.2 preview 6 cmake to build? Jul 31 01:13:56 Hey everyone, I've got some questions about onSaveInstanceState in Activities / Fragments. anyone have some time to talk about it? Jul 31 02:00:14 wow i didn't realize making a custom keyboard was such a pain in the ass Jul 31 02:18:44 maybe i'm going about this wrong. what I really want is inputType="numberDecimal" with android:digits= "0123456789.". But I still get all the other symbols on the keyboard like - + , * / ( ) = Jul 31 02:18:57 seems like this should be an easy thing to do ... **** BEGIN LOGGING AT Sun Jul 31 02:36:11 2016 Jul 31 02:42:51 g00s custom keyboard? Like InputConnection class etc? Jul 31 02:45:10 yeah Jul 31 02:45:32 i think its because of tablet, but i get the numeric keyboard and the symbols - but i don't want the sumbols Jul 31 02:45:41 this api is ghetto archaic from android 1 Jul 31 02:47:46 seriously fun stuff... closer to the metal as I prefer 👍 Jul 31 02:49:03 yeah until it looks like shit in Estonian locale Jul 31 02:50:09 Ohhhhh .... locales are hard Jul 31 02:50:28 backspaces hurt Jul 31 02:51:03 autocorrect compositions, meh Jul 31 02:51:42 Thread switching when user changes IME on you during active process **** ENDING LOGGING AT Sun Jul 31 02:59:58 2016