**** BEGIN LOGGING AT Fri Aug 12 02:59:58 2016 Aug 12 04:00:20 I'm wondering if anyone can help me with Android Studio. In eclipse, there's an option where if you press Shift and F2 over a method, class, keyword etc, its API shows up and I have the option to view all method signatures within eclipse. Is there anything like that for android studio? Aug 12 04:00:33 There's ctrl + q but it gives me only a really brief overview Aug 12 04:07:27 http://www.fiercewireless.com/tech/android-primary-platform-for-most-pro-developers-study-shows Aug 12 04:17:42 How can I quickly view method names of a class in android studio? Aug 12 04:17:58 how can i quickly add a user id to a members list in firebase? Aug 12 04:17:59 rather than having to google the class then going to android docs Aug 12 04:20:37 you can quick inspect, open the sources and view structure Aug 12 04:20:47 which will give you the list of available api Aug 12 04:31:49 NoSQL is no joke. Aug 12 04:36:35 lol Aug 12 04:42:34 If I want to create an app that works through api's 15 to 24, so 4.0 to 6.0, and I want to use the camera in my app - should I use android.hardware.camera or android.hardware.camera2? Aug 12 04:42:52 android.hardware.camera became deprecated in api 21, so .camera2 wont work from 15-20. Aug 12 04:43:34 I can't really get my head around how to code for different API's, if there are newer classes that won't work on some of my older supported API's, should I always use the older classes? Aug 12 04:45:36 Faizan i'd go camera2 minsdk 21 :) Aug 12 04:45:54 still, camera can be tricky ! Aug 12 04:46:00 I need to support a Google Tango device though, and I can't get an API greater than 19 on that Aug 12 04:46:46 good luck with that Faizan :D Aug 12 04:46:58 Why? Aug 12 04:47:14 you'll see Aug 12 04:47:22 What's different Aug 12 05:14:38 oh pfn I just saw that - how do I quick inspect? Aug 12 05:43:42 @Faizan if you can't set minSdk of 21 don't even look at Camera2 Aug 12 05:44:02 It's not worth it to build an app around both camera 1 and camera 2, it gets too messy (we tried it) Aug 12 05:44:42 The API is nicer for camera2, but other than that the functionality is mostly similar (unless you wanted to do something like RAW photo processing in which case you would have to use camera2) Aug 12 05:45:07 why not use some camera library which handles both behind the scenes Aug 12 05:46:03 but yes, dont bother with camera2 by yourself Aug 12 06:22:21 is it possible to define an XML resource that i can generate a SparseArray from? int->String map Aug 12 06:23:12 i want and then make a SparseArray from a bunch of those Aug 12 07:05:29 How can I access the default truststore ofa device? I want to connect via https using a default certificate. Aug 12 07:25:19 does anyone have experience building toybox/busybox with the NDK? Aug 12 08:58:22 i am making a custom keyboard, how do i prevent it from animating? Aug 12 08:58:26 it slides up and is very annoying Aug 12 09:10:36 Hey, I'm getting "android.content.res.Resources$NotFoundException File *** from drawable resource" exception when using vector drawables in xml. I followed tutorial from https://medium.com/@chrisbanes/appcompat-v23-2-age-of-the-vectors-91cbafa87c88#.mkrpp1ilc and using support library 24.0.0 Aug 12 09:11:40 I'm using app:srcCompat and tried even with AppCompatImageView Aug 12 09:12:07 What am I doing wrong? Aug 12 09:19:30 Hello, on my app I am sending files with bluetooth, using the native system intent. Do I have a way, on the activityResult, to check the files has been sent or not ? Aug 12 10:02:54 I am making a custom view , I need to animate the view while its been drawn in the canvas , like if its a rectangle with strokes only it should start from beginning and user could see it drawingin the layout Aug 12 10:02:57 any help ? Aug 12 10:03:08 Searched online a lot could not find anything helpful Aug 12 10:14:50 ??? Aug 12 10:14:56 I am making a custom view , I need to animate the view while its been drawn in the canvas , like if its a rectangle with strokes only it should start from beginning and user could see it drawingin the layout Aug 12 10:33:35 I made a custom action bar (android.support.v7.app.ActionBarActivity), I put an icon with getSupportActionBar().setIcon(R.mipmap.ic_logo). Now, how can I handle the onclick event for the icon ? Aug 12 10:33:39 I am making a custom view , I need to animate the view while its been drawn in the canvas , like if its a rectangle with strokes only it should start from beginning and user could see it drawingin the layout Aug 12 10:54:58 I am making a custom view , I need to animate the view while its been drawn in the canvas , like if its a rectangle with strokes only it should start from beginning and user could see it drawingin the layout Aug 12 10:58:55 chinu: flooding is useless, if someone can answer, he will. Aug 12 10:59:41 what's your question chinu? Aug 12 11:01:46 iprime : I am making a custom view , I need to animate the view while its been drawn in the canvas , like if its a rectangle with strokes only it should start from beginning and user could see it drawingin the layout Aug 12 11:01:58 kakaou : understood :) Aug 12 11:06:08 so this is view which draws rectangle in canvas in its onDraw? Aug 12 11:06:08 i see what you need, but i'm not sure what it is exactly that you can't do, you can subclass View and override draw (or was that onDraw) Aug 12 11:06:49 chinu, or you can wrap a view into a subclassed layout and reposition it etc etc Aug 12 11:07:20 Hello guys. What could be the reason for bindService(...) returning false? Aug 12 11:07:20 Could anyone explain how to keep a bluetooth connection whenever the screen is rotated? Aug 12 11:07:45 markyosullivan: do the connection in service Aug 12 11:08:03 The service is bound in the activity though Aug 12 11:08:23 nyoro~n Aug 12 11:08:38 So whenever the screen is rotated, the activity is killed, the service is destroyed and has to be recreated Aug 12 11:09:55 Then start the service so it isn't destroyed Aug 12 11:10:45 I'm not sure I follow SimonVT, if the service is bound to the activity, will it not be destroyed whenever the activity is killed? Aug 12 11:11:08 you can make more persistent service Aug 12 11:11:15 and bind to it Aug 12 11:11:25 and unbind and itll survive Aug 12 11:11:41 Use startService instead if it's destroyed on configuration changes Aug 12 11:13:14 so I startService within onCreate, bind as normal and whenever I unbind, the service will continue to run in the background? Aug 12 11:13:44 Yes Aug 12 11:14:20 Then you just have to keep track of how many is bound to it yourself, and stop it manually Aug 12 11:14:47 In which case you might as well drop binding to the service and use something simpler Aug 12 11:18:21 What happens if an activity tries to bound itself to the service if it's already bound to it? Aug 12 11:19:26 No idea Aug 12 11:20:36 Okay cheers for the tip Aug 12 11:28:09 Hey there I'm binding a service to an activity but the onServiceConnected method is never called even though the service is bound correctly Aug 12 11:28:13 Any ideas? Aug 12 11:37:44 am I muted in this channel? hello? Aug 12 11:38:02 Well that means the service isnt bound correctly Aug 12 11:38:32 I said that because I've been asking questions in this channel for 5 days and I've never had an answer until now lol Aug 12 11:39:16 pifon, bindService is returning true, so how can I check for correct binding aside from that? Aug 12 11:39:28 bindservice is asynchronous Aug 12 11:39:39 you won't be bound until onserviceconnected is called Aug 12 11:40:14 pastebin some code Aug 12 11:40:44 Zharf, oh so when bindService finishes its thing, it calls onServiceConnected as a callback? Aug 12 11:41:18 yep Aug 12 11:41:33 OK thanks for the help Aug 12 11:44:13 Is it possible to make to the icon of a custom actionbar clickable ? Aug 12 11:52:15 if I change activity, will the activity stop existing in memory? will it be garbage collected? Aug 12 11:52:56 I want the activity to keep existing so that one of the callbacks can be accessed later. It's a cleanup callback. Aug 12 11:53:19 It can be gc'd once you finish() it Aug 12 12:35:19 hello Aug 12 12:37:45 https://dpaste.de/30AD --> i have a question regarding this paste : Why do we add listeners to buttons if we can just add android:onClick to their layout and have a function do the same work a listener would do ? Aug 12 12:40:18 anybody know ? Aug 12 12:42:05 superKiller: I'm not sure, I generally just do the android:onClick method. Aug 12 12:43:34 sdousley: okay im going through tutorials , and i came across the implementation in that page , and before listeners i would do the onClick. but essentially , we can achieve the same things with onClick too , right ? Aug 12 12:44:52 one reason i could think of was keeping the layout "cleaner" maybe ? Aug 12 12:44:55 Speaking of android:onClick, is it more performant/better to use a single onClick handler than making separate onClick handlers for each button? Aug 12 12:45:37 Keep seeing this if( view == button1 ){} else if( view == button2 ) {} design Aug 12 12:49:27 There's no difference, equally slow Aug 12 12:50:22 Setting a click handler in code just sets a click handler. Using android:onClick sets a click handler in code and looks up the method reflectively Aug 12 12:50:30 And android:onClick only works in activities Aug 12 12:53:23 I used an app that has "continue" prompts, but they appear as "continue`n" Aug 12 13:07:37 Whenever using tags for Fragments is it best to have a new tag for each fragment or just use the same one? Aug 12 13:08:19 where's _richa when you need him Aug 12 13:08:22 _richa Aug 12 13:08:40 markyosullivan: I use tags to identify individual fragments Aug 12 13:09:16 You can use a combination of the FragmentManager and tags to get a reference to fragments which have been added to your view Aug 12 13:13:34 pduin: So whenever you recreate the activity, you check to see what tags are included within the bundle so you know what fragment to display? Aug 12 13:16:06 If the FragmentManager returns a Fragment from a findByTag() method call, you know it has been added to the Activity already Aug 12 13:19:47 Not sure if these tags show up in any bundle Aug 12 13:31:05 Hello! Does anybody know why scrollToPosition doesn't do anything to RecyclerView when it is inside CoordinatorLayout? Aug 12 13:34:51 pduin: I've just got a key for the current fragment and then depending on which fragment is currently being shown, I add the approrpriate fragment tag to the key value store Aug 12 13:35:30 I'm not sure what you are trying to do Aug 12 13:35:50 Restore the current fragment Aug 12 13:36:01 Now got issues where the BroadcastReceiver is giving me errors :D Aug 12 13:36:11 why is changing orientation such a pain Aug 12 13:37:35 I gave up on recreating activities on configuration changes Aug 12 13:37:44 Made my life a bit brighter Aug 12 13:38:24 Can the new espresso test recorder be used for testing multiple apks and the navigation between them? Aug 12 13:39:18 If you add Fragments using: getSupportFragmentManager().beginTransaction().add(R.id.viewid, theFragment, FRAGMENT_TAG_WHATEVER).commit(); Aug 12 13:39:59 You can use getSupportFragmentManager().findFragmentByTag(FRAGMENT_TAG_WHATEVER) to retrieve the Fragment after recreation of the Activity Aug 12 13:40:42 Where FRAGMENT_TAG_WHATEVER is a String object. (final and static recommended) Aug 12 13:43:36 lost soul over here ... looking at https://developer.android.com/guide/topics/ui/controls/pickers.html , and I see in the return a getActivity() . so logically i import it but it says version 24 and I want to stay in 23. So I find the old docs ( which are not search-able, seriously google did you forget what made you !) , and find even in them it is identical and now Im lost should I statically import this method ( from an high Aug 12 14:00:40 Really wondering if someone whose good at using the latest Android Studio can help me. I'm trying to attach https://developer.android.com/reference/packages.html to my IDE so that I can view them easily when hovering over relevant methods. An option like this exists for Eclipse and Javadocs, but I can't figure out how to do it in Android Studio Aug 12 14:02:25 Faizan: I'm not sure you can do that via the web site, you usually do this by attaching the sources Aug 12 14:02:42 That's okay, I can download the reference in a zip can't I? Aug 12 14:05:39 AS should be able to download these automatically when you request it ("Attach sources" when you are viewing a decompiled class) Aug 12 14:07:58 How can I view a decompiled class? Aug 12 14:08:11 God I hate switching IDE's Aug 12 14:10:06 If not android references, how can I add good old Java API documentation? Aug 12 14:10:26 Maybe from there I can figure out how to add android references. Aug 12 14:10:50 I've googled this for hours and the problem is all answers on Stackoverflow etc are for older versions where instructions don't apply to 2.1 Aug 12 14:26:34 If I've configured a MediaCodec to take take an input surface (to encode) is there anyway to measure how long the encoder took? Aug 12 14:26:54 Since OnInputBufferAvailable doesn't seem to get called Aug 12 14:36:52 God damn I hate android studio Aug 12 14:37:03 why is doing something supposedly so simple, made to be difficult Aug 12 14:40:06 Faizan: what you trying to achieve Aug 12 14:40:27 Trying to view android API within android studio Aug 12 14:40:46 java API too, so I don't constantly have to go to google and for example google "java math api" to check method input etc Aug 12 14:40:47 you can view source and api doc for any single method Aug 12 14:40:54 it is not. an api. browser Aug 12 14:41:16 yeah but what about generally every method in a class? Aug 12 14:41:55 Structure tab on the left edge of screen Aug 12 14:42:00 I didn't say it was, but neither is eclipse and it's straight forward to do on eclipse. the thing with android studio is theres plenty of tutorials but they're so outdated Aug 12 14:42:04 Or Alt+7 Aug 12 14:42:21 If i understood you correctly Aug 12 14:42:47 Structure takes me to here: https://gyazo.com/175c23f0f92a20c1ab07bd9f052d6b9d Aug 12 14:45:39 anyone here open to work on a project for commission? Aug 12 14:45:58 That tab lists every internal class, every method and every variable in currently open java file Aug 12 14:47:47 So if you need to view all methods in java.lang.Math, you press shift twice, opening 'Search Everywhere' popup, enter Math, select java.lang.Math and look in structure tab Aug 12 14:48:07 Or are you trying to do something else? Aug 12 14:49:34 Faizan, view super class, and then look at structure Aug 12 14:50:37 learn the tool instead of complaining Aug 12 14:50:57 and anything that documents how intellij does it will be applicable to studio Aug 12 14:56:57 or use completion, it's often sufficient for displaying available (public) methods Aug 12 14:58:20 pfn: This is far from complaining Aug 12 14:58:26 This is just me asking how to do something. Aug 12 14:59:04 loredan13: that'll do, thanks! Aug 12 14:59:27 The way eclipse does it is it actually embeds the HTML of the java docs into the IDE, but this is the next best thing Aug 12 15:07:09 Faizan: you also should try Ctrl+Q on any variable or method, it will bring a popup with javadoc Aug 12 15:08:37 this is so frustrating. Aug 12 15:08:53 for the past year i have been desperately searching for a professional android developer who can help me make my app. Aug 12 15:09:14 everyone i have hired as been all talk, milking paychecks, and then turning out to not be able to accomplish anything. Aug 12 15:09:14 Try outsourcing Aug 12 15:09:33 you mean contacting a company and having them manage it? Aug 12 15:10:03 if the task at hand was porting the Python Bitmessage client to a headless API in Java for Android, would you trust a typical android app outsourcing company? Aug 12 15:10:16 I wonder if they know how to do anything outside of common frameworks Aug 12 15:10:28 Hello, i have a GridView with choiceMode="single", and in the item layout i have a CardView, then, i need implement the checkable interface in my card view for draw a background when the card is checked?? Aug 12 15:10:44 improve the screening then, sn0wmonster Aug 12 15:11:03 so you can avoid having ppl unreliable for the task you want Aug 12 15:11:12 yea it's getting pretty bad, i guess i have to Aug 12 15:11:14 is there no one on freenode who needs work? Aug 12 15:11:37 No advertising, jobs or otherwise Aug 12 15:11:37 that's another frustrating thing. it feels like everyone on freenode is too busy :( Aug 12 15:11:48 this is not the place to hire or search for someone Aug 12 15:12:52 ^ Aug 12 15:14:32 ^ ^ Aug 12 15:14:42 sn0wmonster looking at bitmessage, doesn't look like a trivial thing to create (unlike, say, a cat pictures app) Aug 12 15:15:04 the PoW is the hardest imo Aug 12 15:15:14 Dissem has already written a Java port of it Aug 12 15:15:25 jobs done then Aug 12 15:15:30 :D Aug 12 15:15:33 I had started by using his, but it's become mroe or less nonfunctional Aug 12 15:15:36 the python client is reference - so for them it depends on how good they know p2p and can deconstruct the python client Aug 12 15:15:43 unless there is a good protocol spec out Aug 12 15:16:24 Is it possible to store classes in a bundle? Aug 12 15:16:35 So you need an android dev with python reverse engineering experience. Aug 12 15:16:40 For example, I have an interface which I want to keep whenever screen orientation is changed Aug 12 15:16:51 razor1101, apparently, yes Aug 12 15:17:01 loredan13: yeah I knew about that, it was more trying to find the methods of a class, and ctrl+Q didn't do the trick for that Aug 12 15:17:04 razor1101 also p2p experience; if the dev doesn't kow anything about it i'm guessing it won't go well Aug 12 15:17:14 but your method works, just wish there was something faster Aug 12 15:17:27 that's what i'm digging through upwork and such for. my gut tells me the people onf reenode know more about these things than all of upwork combined Aug 12 15:17:56 (since freenode is home to most of the developers of the tech it uses) Aug 12 15:18:44 sn0wmonster best check their irc channel Aug 12 15:19:44 g00s_, i help maintain it :( no go Aug 12 15:19:56 the mix of special skills needed is just too unique it seems Aug 12 15:20:15 Android/Java, p2p, PoW, Python, etc Aug 12 15:21:12 Whats PoW? Aug 12 15:21:17 proof of work, Aug 12 15:21:38 the kind of thing bitcoin and bitmessage use, originally taken from hashcash Aug 12 15:21:49 i thought prisoner of war, or some war game ha Aug 12 15:21:53 haha Aug 12 15:22:08 when you're doing PoW on Android, you sure feel like a prisoner of war :( Aug 12 15:22:17 especially if you were to run the straight python! Aug 12 15:22:53 at this point though, i'm tempted to try using the Python reference client code in Android in some python interpreter Aug 12 15:22:57 Jython or whatnot Aug 12 15:23:02 has anyone here ever tried that? Aug 12 15:23:15 i wouldn't bother, python doesn't work well on android Aug 12 15:23:54 kinda dumb to create a reference client in python, imho Aug 12 15:24:07 they should have done it in C so its accessible from many languages via FFI Aug 12 15:24:50 then again maybe its hard software to write with plain C and needs a lot of supporting libs Aug 12 15:25:16 Can somone help me with this problem? http://stackoverflow.com/questions/38903288/construction-of-java-io-objectinputstream-throws-uncatchable-eofexception Aug 12 15:25:17 Why would an uncatchable exception be thrown? Aug 12 15:27:05 all Throwable are catchable Aug 12 15:27:09 There's no such thing as an uncatchable exception Aug 12 15:27:15 Anyone recommend any good video tutorials to follow to learn android developing? Aug 12 15:27:35 IWishIKnew: my first guess would be the FileInputStream fin = new FileInputStream() should be in your try Aug 12 15:27:38 Alongside the official android developers website of course Aug 12 15:27:57 please READ the post. Aug 12 15:28:04 And you'll know where the exception is coming from. Aug 12 15:29:49 Faizan: those on udacity Aug 12 15:30:07 Any you'd recommend in particular? Aug 12 15:30:15 `g00s_: agreed. the future plan is to move it all to C/C++. They've already moved the PoW portion to C inside Python Aug 12 15:30:18 There's the google nanodegree one bujt Ł150/month.. Aug 12 15:30:20 but* Aug 12 15:30:39 on another note: is it possible to use C# inside Android Studio? Aug 12 15:30:41 Faizan: there's a free one as well Aug 12 15:30:54 others have also ported bitmessage into things like C (which the developer I hired claims he doesn't know how to get working), Aug 12 15:31:06 and C# (which he told me doesn' work in Android Studio) Aug 12 15:31:13 Is there any chance you could be awesome and provide a link? A lot of the free ones I saw looked really outdated Aug 12 15:31:20 sn0wmonster: only if Microsoft allowed it Aug 12 15:32:25 sn0wmonster c# doesn't work in AS, but does in xamarin Aug 12 15:33:08 Faizan: https://www.udacity.com/google Aug 12 15:33:29 Is Xamarin something develoeprs can use to make Android apps/games in? Aug 12 15:34:21 sn0wmonster yeah but its getting off topic for here, this chan is for app dev in java Aug 12 15:34:54 i wouldn't bother with it either; it could be useful if you already have some c# code Aug 12 15:36:52 Is there any reason an exception would be impossible to catch????? Aug 12 15:40:16 all exceptions are possible to catc h Aug 12 15:40:23 full stop, end of story Aug 12 15:40:55 The exception may be Uncaught (not in a try block) but it's always catchable. Aug 12 15:41:11 as ong as it's in a try block Aug 12 15:42:14 #1 learn to stacktrace Aug 12 15:42:46 porting from C# to java is trivial Aug 12 15:43:00 IWishIKnew: have you tried putting hte FileInputStream in the try ? Aug 12 15:43:19 sdousley: dude... it's not coming from that... Aug 12 15:43:39 it's coming from the construction of the objectinput stream. Aug 12 15:43:42 * razor1101 facepalms Aug 12 15:43:44 or put the new ObjectInputStream in the try Aug 12 15:43:50 yes, I have. Aug 12 15:44:27 I just tried wrapping the entire function call in a try/catch, and I caught the throwable.... but I can't catch it within the function for some reason. Aug 12 15:48:45 Hello, when i send a file with bluetooth, a toast is generated at the end of transfert, saying for example "files not transfered". Do I have any way to intercept this ? I want to know if transfert succed or not Aug 12 15:48:46 sdousley: the "detailmessage" (getMessage) is fucking null... Aug 12 15:48:56 god dammit java... Aug 12 15:49:26 Is this snippet of code true for the determining if a view is visible on screeen? https://gist.github.com/caseykulm/45306fb960c9ac1e431729451855e048 Aug 12 15:50:40 In 2 small demos (1 with 2 textviews in a scrollview, and 1 with 1000 textviews in a recyclerview) it seems to work fine. I'm seeing unexpected results with a more complicated recycleradapter in my production app at the moment though Aug 12 15:52:45 When the Activity resumes, and I call notifyDataSetChanged on the Adapter, all of a sudden all 20 items in my adapter return true for isVisibleOnScreen, event though I'm still only seeing 4 on screen Aug 12 16:01:22 sdousley: holy shit... you would not believe what I had to do to fix this... Aug 12 16:01:59 read the stack Aug 12 16:02:00 problem solved Aug 12 16:02:01 really... Aug 12 16:02:14 there's no such thing as an uncatchable exception Aug 12 16:09:37 there, evidently is. Aug 12 16:10:20 Nope Aug 12 16:13:06 Hmmm, aren't some types of exceptions uncatcheable? Aug 12 16:14:47 Nah, everything can be caught Aug 12 16:23:35 https://dpaste.de/30AD#L9 --> what exactly are we doing on line 18 ? Aug 12 16:24:05 are we creating an array of Questions constructors ? Aug 12 16:24:26 maybe i've been a c# / services webDev too long but why in Android lessons do i see a lot of hard casting (TextView) and classes in classes ? this seems weird and cool , not complaining just weired out Aug 12 16:24:59 any help would be appreciated :) Aug 12 16:25:30 superKiller, array of Questions objects. Aug 12 16:25:40 new Constructor() constructs an object. Aug 12 16:26:55 Can someone tell me how I can change the theme of my app? In the app preview it changes fine when I select a different theme, but when I run the app, the default theme shows Aug 12 16:27:48 Faizan: I've noticed that in androidStudio too... I saw a way to actually change the theme in the manifest file Aug 12 16:28:20 How so? Aug 12 16:28:22 that i ignored and never looked into why it was not working from aStudio Aug 12 16:28:43 Is there any way to change the title bar directly in xml? Aug 12 16:28:50 it's the title bar colour that I dislike Aug 12 16:29:26 i think there are preset themes like holo- materialDesign. and I dont really know specifics Aug 12 16:30:11 Yeah I'm trying to apply them, just can't figure out how to make them persistent when running the app Aug 12 16:30:17 like it shows up in the preview fine Aug 12 16:31:44 https://developer.android.com/guide/topics/ui/themes.html#ApplyATheme Aug 12 16:32:10 The preview window is just a preview, it doesn't change anything Aug 12 16:32:39 Yeah looking at that right now Aug 12 16:33:33 For those who develop on Android in your jobs, are you using Spring, Hibernate, EJB frameworks ? Aug 12 16:35:23 I'm planning on learning Android development, but would like to avoid especially Hibernate and EJB Aug 12 16:36:12 at work now Just joined the android team. Used spring in other parts of the company ( not on Droid) and we are using no Frameworks apparently. Aug 12 16:36:14 It's weird SimonVT because when I was following thenewboston's tutorials all he did was change it from the preview, no manifest file changes were made Aug 12 16:36:30 and the changes persisted when running the code Aug 12 16:36:56 Then he did something else he didn't show you, changing theme in the preview window doesn't affect the app Aug 12 16:36:57 Faizan theNewBoston uses eclipse right ? not Astudio Aug 12 16:37:07 I'm needing to create a jar file, so in android studio I created a new module but when I try to access somethings ilike SharedPreferences, context, or TelephonyManager its a no go. How can I access these items in a module? Aug 12 16:38:21 macq: Hibernate is daunting but quite easy to learn, spring is great I love it and EJB's runAway from that project ( JK but semi serious) Aug 12 16:39:02 dar10s: his latest series uses android studio Aug 12 16:39:09 his eclipse set of videos is from 2011 Aug 12 16:39:21 when I say latest, I do mean 2014 though Aug 12 16:39:57 okay SimonVT, fair enough. I'll take a look at the video again Aug 12 16:41:56 you should not rely on video tutorial at all Aug 12 16:42:17 hi, I want to use this library in my app but it says I must "import the project", not a module Aug 12 16:42:19 https://github.com/ai212983/android-spinnerwheel Aug 12 16:42:39 can anyone point me to resources on how to this kind of thing?] Aug 12 16:42:44 dar10s: Are you using Spring Boot? Aug 12 16:44:12 On the Androidteam we are not using Spring at all... and We used a few of the spring stuff , mostly saml and I made great stuff with the springFlow, but that was other Applications Aug 12 16:45:17 Anyone know of a good way to generate PDF documents from an app? Aug 12 16:46:36 s73v3r https://developer.android.com/reference/android/graphics/pdf/PdfDocument.html Aug 12 16:47:06 thanks Aug 12 16:47:17 @JFlash Have you tried follwing the instructions in README.md ? Aug 12 16:48:17 JFlash: stop trying to “fake it” and actually learn how to use your tools Aug 12 16:48:42 s73v3r, sup s73v3r glad you remember me Aug 12 16:49:04 s73v3r, even if it's a twisted, evil-intended way :) Aug 12 16:49:23 lol JFlash is still here Aug 12 16:49:24 telling you to learn your tools is not evil-intended Aug 12 16:49:49 s73v3r, well, I concede that Aug 12 16:50:00 s73v3r, just kidding Aug 12 16:50:02 i think last time he was trying to get a android job, claiming to know android, but not knowing android :P Aug 12 16:50:08 ValueError: malformed recovery.fstab line: "/boot mtd /dev/block/mmcblk0p6" Aug 12 16:50:23 any ideas? Aug 12 16:50:36 deathcamel57 wrong channel Aug 12 16:50:52 android development? Aug 12 16:51:01 it's a build error? Aug 12 16:51:02 app dev Aug 12 16:51:05 gojira27, so the read is not very helpful, just says I should import the project Aug 12 16:51:06 #android-root Aug 12 16:51:10 no one cares about building aosp here Aug 12 16:51:11 but i needa module, not a project Aug 12 16:51:18 oh haha Aug 12 16:51:19 thanks Aug 12 16:53:37 JFlash: I am with you , when I find useless readMe's and don't know where to start. is there a lesson on grabbing stuff from GitHub and making them flow with your project. That i would read/watch Aug 12 16:54:58 are you trying to add a github project to repo sync? Aug 12 16:55:08 dar10s, thanks man, if all the lame programmers of the world like you and me were united, we could be a powerful source for the good of mankind Aug 12 16:55:10 Sorry, it's mid conversation Aug 12 16:55:26 or if you guys would just learn to read Aug 12 16:55:27 I ge this error when I try to import the zip contents; Aug 12 16:55:30 FileNotFoundException: /home/joao/Downloads/android-spinnerwheel-master/library/src/main/libs (No such file or directory) Aug 12 16:56:27 why not reading some documentation and just trying, struggleling and learn something in the process which will be valuable? Aug 12 16:56:43 cause that takes effort Aug 12 16:56:47 this is why kids are 'youtubing' how to cook pasta nowadays Aug 12 16:57:01 this ain't gonna end well Aug 12 16:57:17 because their parents don't know how Aug 12 16:57:35 i'm just against those youtube tutorials, not only specific to the dev field Aug 12 16:57:39 :P Aug 12 16:57:43 I youtubed how to cook pasta in my student days too. Aug 12 16:57:53 because they can't read properly :P Aug 12 16:57:56 Learned valuable lessons. Aug 12 16:57:59 while it can be entertaining, this is very bad for learning (and consequently sharing knowledge too) Aug 12 16:58:06 (and no, reading/understanding slower than a youtube video is not properly) Aug 12 16:58:10 Like don't believe all the crap you see on the internet. :P Aug 12 16:58:12 <_Auron_> anyone familiar with using the ndk and jni? I'm having build problems with it: ...\android-ndk-r11c\platforms\android-19\arch-arm\usr\include\sys/cdefs.h(277): fatal error C1189: #error: "No function renaming possible" Aug 12 16:58:39 looks like you're using a reserved function name Aug 12 16:58:46 Mavrik what are the top pasta un-truths ? Aug 12 16:58:54 adq, that's what I asked for, documentation to read Aug 12 16:59:13 adq, but you and others seem so anxious to just patronize ppl that you even missed that Aug 12 16:59:20 <_Auron_> I'm trying to build in a .jar sdk into my unreal engine 4 plugin and the ndk isn't playing nice Aug 12 16:59:20 not really lol Aug 12 16:59:29 the documentation is there. Aug 12 16:59:29 g00s_, adding vinegar, chocolate and/or haribo might be a bad idea. Aug 12 16:59:29 adq: i approve of electroboom's tutorials.. but only because i watch them as comedy :P Aug 12 16:59:32 Mavrik and was the pasta cooking video actually about android programming :) Aug 12 16:59:38 JFlash, just make a dummy project, import the s**** of it and see what's happening Aug 12 16:59:39 that's the sad reality of IRC today, wether you like it or not Aug 12 16:59:46 strange connection between android and spaghetti :D Aug 12 16:59:49 understand the concept of "modules" in AS/intellij Aug 12 16:59:50 etc Aug 12 17:00:08 g00s_: bless the flying spaghetti monster Aug 12 17:00:19 usually, ppl seeking help provide info, like what they tried, some error or stacktrace, etc Aug 12 17:00:22 no, it’s because we’ve had enough experience with you deciding that you just want to be spoon fed, and we’re tired of it and not willing to do it anymore Aug 12 17:01:06 s73v3r, i'm not critisizing anyone's lack of willing to help Aug 12 17:01:16 adq, not saying that y tutorials are bad or good just stating that it depends on personality https://en.wikipedia.org/wiki/Learning_styles#Learning_modalities Aug 12 17:01:29 g00s_, maybe it was a ruby/javascript video instead :P Aug 12 17:01:35 Those libraries tend to have food names. Aug 12 17:02:01 s73v3r, I was commenting on what he said..he said I should go read documentation and that's what I asked for from the beginning Aug 12 17:02:21 anyway hi adq Aug 12 17:05:40 are you joking bolovanos? Aug 12 17:05:42 hi too Aug 12 17:05:44 <_Auron_> adq: if it's a reserved function name conflict it must be something from unreal engine, I barely have any functons in my plugin as I'm just trying to get it to build and they're pretty unique. Aug 12 17:06:08 <_Auron_> though ironically I got the ndk installed from an nvidia package from ue4 so you'd think they would have that sorted out. hrm Aug 12 17:06:45 adq, why? Aug 12 17:08:31 too lazy to even explain why, and i think we must get bakc on the channel topic, but justifying the amount of knowledge you can absorb (and re-use) via a youtube tutorial with those shaddy unproven "learning styles" theory from another century is... let's stop there Aug 12 17:09:34 <_Auron_> getting a handle on engine UI and other visual aspects can be handy with those youtube vids, but at least 90% of their coding styles are garbage - I'd agree with that Aug 12 17:10:28 well, if you illustrate the effect of a moving light in real-time in let's say openGL, a video comes handy and serve the purpose Aug 12 17:10:42 <_Auron_> yeah Aug 12 17:11:07 but if it's about teaching how to use matrix, etc... on a medium where you cannot even copy text and would have to "rewind" if you misunderstood something being said, it's... counter productive Aug 12 17:11:43 sadly, most topics being serve by those youtube tutorial (not even speaking of the quality of the vid, not everyone is in the audio field to properly set up the mic or other stuff) makes it even worse Aug 12 17:12:49 <_Auron_> then again some people learn differently, and seeing someone create line-by-line and explaning what they're doing in a video is helpful for someone new to programming Aug 12 17:12:52 <``^``> Hey Aug 12 17:13:03 <_Auron_> but experienced developers don't need videos, just documentation and some examples Aug 12 17:15:09 <``^``> Starting to write my problem here I solved it. Aug 12 17:15:14 <``^``> Thank you! Aug 12 17:16:15 adq, I am not comparing amount of information text vs video/audio, just saying that there are some ppl not capable of absorbing text as good as audio. Btw stating that is something century old and not proven - 1) that is your statement 2) your statement about y is only yours and not supported by anything else than you... - now switching back to topic Aug 12 17:54:13 Hello! Does anybody know why scrollToPosition doesn't work in RecyclerView with a CoordinatorLayout parent? Aug 12 17:55:14 Could it have something to do with nested scrolling? Aug 12 18:04:15 I think kivy is my best chance? Aug 12 18:05:18 native is your best chance :D Aug 12 18:09:06 s73v3r: I cant leave python, I cant! and for what, for java! Aug 12 18:09:25 s73v3r: its hard for me, I really liked python Aug 12 18:09:38 s73v3r: and I also learned python recently Aug 12 18:13:44 for native performance. Aug 12 18:18:45 Hey guys. Is there any convention for resource names? Aug 12 18:19:04 not really Aug 12 18:19:10 i.e. variable names should follow camel case with the first letter being lower case, I'd assume same applies for resources but it seems people use mixed conventions Aug 12 18:19:18 okay awesome Aug 12 18:19:19 just be consistent within your app Aug 12 18:19:19 So, anybody knows what's going on with my scroll? Aug 12 18:19:23 yeah definitely Aug 12 18:20:39 yeah Aug 12 18:20:58 We found it's a good idea to have a prefix for an activity / screen so you know where the resource goes. Aug 12 18:30:16 anyone use nucleus? Aug 12 18:35:51 orbyt_: I've read up on it a ton, but haven't used it. I just always end up rolling my own minimal implementation Aug 12 18:36:09 And feel like if I wanted more, I would just do my own implementation still but with dagger Aug 12 18:36:18 Nucleus still seems cool though Aug 12 18:37:33 yiati: Usually when I used to use it and wanted to deliver something to my view, i simply did getView().....which apprently is now deprecated Aug 12 18:38:12 So i tried doing restartable, but nothing is getting called -.- Aug 12 18:43:27 _Auron_: what compiler are you using? That #error comes from a place that should be impossible to reach with clang or gcc Aug 12 18:44:32 https://android.googlesource.com/platform/development/+/master/ndk/platforms/android-9/include/sys/cdefs.h#277 Aug 12 18:49:49 are olympic swimmers allowed to grease up like a slick orca Aug 12 18:50:15 they’re required to Aug 12 18:50:35 whats the purpose, for speed or to avoid chafing Aug 12 18:50:51 chafing Aug 12 18:51:24 phelps is unreal, i thought i figured him out for a second Aug 12 18:54:59 today ends my third week working in android, and the most common thing i've seen is dev~.goog~.com and "Unfotunately, -appName- has stopped" Aug 12 18:55:20 <_Auron_> danalber1: Visual Studio 2015 Community, I'm trying to get JNI to work with loading a .jar SDK for a Unreal Engine 4 plugin I'm writing. lots of hoops to jump through Aug 12 18:55:45 ohh and gradle claiming its building. but stopping on something stupid like unused import after 2 minutes Aug 12 18:59:02 why do I get this error: Wrong state class, expecting View State... when I call getSupportFragmentManager().beginTransaction().replace(...).addToBackStack(null) twice for two different fragments and then I try to pop the back stack? Aug 12 19:01:55 alexfu, don't reuse the same id for diffe rent view type Aug 12 19:02:10 pfn: my views have unique ids Aug 12 19:02:16 doesn't sound like it Aug 12 19:02:28 the error should also tell you which id failed Aug 12 19:02:31 or what it encountered Aug 12 19:02:37 well, it does. i grepped for that id, and only 1 results came up Aug 12 19:03:02 then an artifact of instant run, because you changed the view type Aug 12 19:03:32 pfn: i've disabled instant run Aug 12 19:06:47 R.java also shows that id only occuring once Aug 12 19:09:54 is there a way to dynamically update the number of fragments and dataset in a fragmentpageradapter? Aug 12 19:10:16 eg. for a recyclerview adapter you have something like notifydatasetchanged() for when you add new data Aug 12 19:10:24 can i do anything like that for a viewpager? Aug 12 19:10:46 you have to make your own implementation of fragmentpageradapter Aug 12 19:10:48 but yes Aug 12 19:11:24 what would need to be done? Aug 12 19:11:48 https://files.gitter.im/scala-android/sbt-android/nrHS/ezgif-2485634249.gif Aug 12 19:11:53 heh, my new project template does this now Aug 12 19:17:06 Guys, I am trying to create a custom AppBar, by anchoring a couple TextViews to the bottom of AppBarLayout with CollapsingToolbarLayout inside. The problem is, when the app bar is collapsed textviews just disappear. What's even more funny is that it is the problem on 5.1, but works perfectly on 4.4 Aug 12 19:17:18 hey guys Aug 12 19:17:40 I am pretending i am working, but I am not. Aug 12 19:18:46 sounds like my life Aug 12 19:19:11 -_- Aug 12 19:20:29 loredan13: but I don't get your problem. isn't the point with collapsing that they disappear? Aug 12 19:20:37 Why doesn't the Android SQLITE api support named parameters? Aug 12 19:20:40 AM I missing something? Aug 12 19:22:43 pfn: you think databinding lib might have anything to do w/ it? Aug 12 19:22:57 dunno, I don't databinding Aug 12 19:25:15 wow, this is super weird. every time i switch the ID of the offending ID, the crash happens, referencing the new ID i gave it Aug 12 19:26:29 @svm_invictvs have you looked into using a SQLite wrapper library or ORM? Aug 12 19:26:34 when I am debugging, and I click on a button in my app, I see some white text in my logcat that appears to be the detection of the touch on the interface, "ViewPostImeInputState ACTION_DOWN" Aug 12 19:26:43 Raw SQLite on Android really sucks to work with imo Aug 12 19:26:49 liuwenhao I'm working with existing code and introducing something like that is more trouble that it's worth. Aug 12 19:26:52 then some red text after: "sendUserActionEvent() mView == null" Aug 12 19:26:56 what is the red text? Aug 12 19:26:57 liuwenhao SO the answer is no. Aug 12 19:27:32 Eplebit: No, I want them to shift onto the toolbar. And they are going there right until the moment of full collapse Aug 12 19:27:33 liuwenhao If it were up to me and this were a greenfield project, yes, I wouldn't be asking. Aug 12 19:27:50 liuwenhao But instead I'm tasked with maintaining somebody else's meathook abortion of a database layer Aug 12 19:29:13 does the databinding stuff work with sqlite cursors ? Aug 12 19:29:30 is it just binding UI to pojos, or can it bind ui to sqlite results ? Aug 12 19:30:01 GOd I hate shitty code so much Aug 12 19:30:09 lol we all do Aug 12 19:30:14 hopefully anyhow :D Aug 12 19:30:48 g00s_ The "DataHelper" is a 1600 line class taht's full of stupid shit, cursors that aren' ever closed etc Aug 12 19:30:55 Faizan did you ask about resource naming ? Aug 12 19:30:55 loredan13: hmm, I see. I actually had a similar problem a while ago. didn't find a good way to solve it, sadly Aug 12 19:31:09 @g00s_ Remember yesterday when I was ripping my hair out about BLE issues? Turns out there is a 90% chance it's a firmware issue with the code this other company added ontop of the CSR8670. So now our company is contacting the firmware devs in Israel to figure out the issue. Two days wasted for nothing :) Aug 12 19:31:19 fun times Aug 12 19:31:26 Eplebit: Do you know the cause? Is it the drawing order? Aug 12 19:31:38 liuwenhao yeah, often its good - doing ble - to have some diagnostic equipment etc Aug 12 19:31:51 liuwenhao hope you get it straightened out :D Aug 12 19:32:08 Is data binding the regex of Android dev? Aug 12 19:32:31 That one thing that everyone things it's a good idea to use and they shoot their foot off? :P Aug 12 19:33:01 i think its ok if you just map view properties to pojos; no need to use expressions Aug 12 19:33:27 they give quite a bit, but restricted subset is good Aug 12 19:33:37 from what i hear thats like scala too Aug 12 19:33:49 :) Aug 12 19:34:05 g00s_: I asked way earlier if there were any conventions people followed Aug 12 19:34:09 Mavrik did you find somebody's toe in your pasta ? Aug 12 19:34:16 or if it was just a free for all as long as you were consistent Aug 12 19:34:22 Faizan ah, this was on reddit the other day http://jeroenmols.com/blog/2016/03/07/resourcenaming/ Aug 12 19:34:42 I'll give that a read, thanks Aug 12 19:35:16 loredan13: it seemed everything but trivial to fix, so I gave up as I had more pressing things I had to fix :/ Aug 12 19:35:48 i guess it would be easy to mistake a toe for penne Aug 12 19:36:10 especially in red sauce ... Aug 12 19:37:18 Eplebit: I see Aug 12 19:39:54 "Microsoft accidentally leaks Secure Boot "golden key" looollll Aug 12 19:40:55 ops? Aug 12 19:41:09 Eplebit: Okay, looks like textviews stay visible if appbar has transparent background Aug 12 19:41:42 oh Aug 12 19:42:02 so the appbar draws over them? Aug 12 19:42:10 Eplebit: Seems like it Aug 12 19:42:30 Eplebit: why doesn't it do that on 4.4, that's the question Aug 12 19:42:44 Eplebit: Yup, perfectly visible... Aug 12 19:44:56 Eplebit: Perhaps I should try putting the views inside CollapsingToolbarLayout, instead of anchoring Aug 12 19:47:17 _Auron_: Uh, we definitely don't support msvc as a compiler Aug 12 19:48:42 <_Auron_> I'm really only in here to see if anyone knows anything about using ndk with unreal engine 4 Aug 12 19:48:50 Eplebit: It worked Aug 12 19:49:03 <_Auron_> which is a thing, but almost no one in here would know about it Aug 12 19:49:43 loredan13: ok, ok. cool :) Aug 12 19:49:45 <_Auron_> I've just spent the entire week fighting with getting it to work because the documentation is so poor on JNI use in UE4 Aug 12 19:50:05 <_Auron_> and afaik the guys in #unrealengine don't really know anything about android Aug 12 19:51:11 You'll probably have to ask a more specific question. Aug 12 19:51:44 Or at least a question that can be answered by people who didn't do the exactly specific thing you did :) Aug 12 19:52:11 <_Auron_> unfortunately the exact specific thing I need to do is the only problem I'm having Aug 12 19:52:54 The specific thing being using the wrong compiler? Aug 12 19:53:02 <_Auron_> ...... Aug 12 19:53:05 <_Auron_> I'm 1. Writing a plugin for UE4 2. Need to make JNI calls to an android SDK in a .Jar file 3. Using JNI 4. Which requires NDK 5. And Visual studio is very unhappy with that Aug 12 19:53:23 <_Auron_> UE4 plugins are compiled in VS2013/2015 in C++ Aug 12 19:54:34 What does "unhappy" mean? Aug 12 19:54:52 How is NDK toolchain invoked when you target Android with UE4? Aug 12 19:59:04 Also, "to an Android SDK in a .jar", does that mean some other kind of external library, or actual Android APIs? Aug 12 20:01:17 Hi, is there anyway to detect when the bluetooth transfert of a file has ended/failed ? Aug 12 20:02:56 Kmo: you transferring the file? Aug 12 20:03:38 ie... your application Aug 12 20:03:57 Ping_2_Ur_Pong: yes, i send the file with the native system intent Aug 12 20:04:05 https://developer.android.com/training/beam-files/send-files.html Aug 12 20:04:29 in Bluetooth Aug 12 20:04:49 nfc is bluetooth Aug 12 20:05:24 huh Aug 12 20:06:02 Kmo go learn what you're doing please. Aug 12 20:06:13 I don't think you actually know what is happening. Aug 12 20:06:50 start with the link I gave you and read through the other documents Aug 12 20:08:54 dude wtf Aug 12 20:09:22 i must transfert file to a computer Aug 12 20:09:30 i doubt any nfc would work Aug 12 20:14:55 Kmo: explain what you are trying to do clearly so that an articulate answer can be given. Aug 12 20:15:42 its weird in this chat room peole ask for questions and they point to dev.android.com and then on Stackoverflow i've noticed that people start the questions with I am on dev.android and need help Aug 12 20:15:49 if I have an array of elements, where each element has an array of sub-elements, like having an array of titles where each title has n rows, should I use fragments to render that? or? Aug 12 20:16:42 Kmo: https://developer.android.com/guide/topics/connectivity/bluetooth.html is what you're looking for Aug 12 20:16:56 it depends on if you're the client or server. Aug 12 20:17:24 alex88: hell to the no Aug 12 20:17:45 recyclerview, use it, love it, like it Aug 12 20:18:10 Ping_2_Ur_Pong: ohhh ok, yeah I've that for another thing, so it should be a recyclerview with another recyclerview in it? Aug 12 20:18:16 I will find you and make you physically eat a print out of your code if you use a fragment for each one of your elements in your list. Aug 12 20:18:54 Ping_2_Ur_Pong: eheh :D ok you convinced me :D Aug 12 20:19:19 anyway, so it's a recyclerview where each element has another recyclerview with the rows in it? Aug 12 20:20:04 You can do that with its layout manager without doing recyclerview in recyclerview Aug 12 20:20:05 gridlayout comes to mine and I think there is a spanlayoutmanager Aug 12 20:20:25 mind* Aug 12 20:20:31 ok I'll try that way, thank you man Aug 12 20:23:10 <_Auron_> Mavrik: So basically I'm needing to do: JNIEnv* env = FAndroidApplication::GetJavaEnv(); jclass jcPluginJavaClass = FAndroidApplication::FindJavaClass("com/jr/sdk/JR"); env->CallStaticVoidMethod(jcPluginJavaClass, jmInit); const char* strPluginJavaMethod = "init"; jmethodID jmInit = env->GetStaticMethodID(jcPluginJavaClass, strPluginJavaMethod, "()V"); env->CallStaticVoidMethod(jcPluginJavaClass, Aug 12 20:23:10 <_Auron_> jmInit); from my UE4 plugin Aug 12 20:23:39 <_Auron_> FAndroidApplication is a class from UE4 that has a dependency on the NDK Aug 12 20:23:40 What's FAndroidApplication? Exposed by UE4? Aug 12 20:23:59 Ok, that mostly makes sense. Aug 12 20:25:38 <_Auron_> I'm not even needing to excecute native code necessary, just initialize an overlay from android java code from the SDK that handles standard activities and fragments ontop of the UE4's rendering surface Aug 12 20:26:23 <_Auron_> but the SDK is packed in a .jar and I have to use JNI calls to execute the java init method in the SDK from my UE4 C++ code Aug 12 20:27:24 <_Auron_> the main problem is if I setup the NDK include/library in my plugin project, it gives a ...\android-ndk-r11c\platforms\android-19\arch-arm\usr\include\sys/cdefs.h(277): fatal error C1189: #error: "No function renaming possible" error, but if I don't include them then the UE4 AndroidApplication.h can't find the NDK include Aug 12 20:28:43 <_Auron_> and unfortunately there's almost _no_ documentation or information for this type of setup. Best I could find is the Ouya SDK for UE4 and lots of unreal engine forums or stackoverflow references to that, but my problem is just getting the build to work with includes without having conflicts Aug 12 20:42:35 https://www.phoronix.com/scan.php?page=news_item&px=Google-Fuchsia-OS Aug 12 20:42:48 hopefully with less jvm ;) Aug 12 20:47:19 not gonna happen. Hackborn <3’s Java too much Aug 12 20:52:00 Hello. Aug 12 20:52:13 Is there anybody out there ? Aug 12 20:52:39 nope Aug 12 20:52:40 From the other siiiiide Aug 12 20:55:31 I'm using Android SDK Manager. I just installed "Android SDK Tools 25.2.1 rc 1" and the window refreshed and... it looks like have to install it again (its marked "Not installed"). This is the 5th time I install it. Do you know why is this happening? Did you experience this problem? Is it serious? Aug 12 20:56:12 the sdk manager sometimes has problems updating itself Aug 12 20:57:10 sometimes locks on files Aug 12 20:58:07 g00s_: ok. Can I leave it as it is? Aug 12 20:58:24 hard to know what state your install is in Aug 12 20:58:39 i wouldn't use RC unless you're really sure Aug 12 20:58:40 well, what would you do? Aug 12 20:58:51 not use RC Aug 12 20:59:10 Ok. I'm not sure why I was installing it in first place, actually Aug 12 20:59:11 just make sure the released versions are installed, and you should be good Aug 12 20:59:11 i'd also just nuke what you installed from orbit, and reinstall known good Aug 12 21:00:21 Ok. I think I'll pretend nothing happened and it I have problem I'll remove the whole Android Studio and reinstall it from scratch, then Aug 12 21:00:28 s73v3r: thanks Aug 12 21:00:32 g00s_: thanks Aug 12 21:00:45 it -> if Aug 12 21:02:07 little OT, but ... this would be amazing http://www.digitaltrends.com/web/ways-to-decentralize-the-web/ Aug 12 21:02:40 <``^``> For some reason when I press "Update now and restart" in Android studio, it downloads the patch and closes but never starts up and actually updates. WHere could I get some log files to report this (and where?)? Aug 12 21:02:43 Tim Berners-Lee, Linked Data, Pods, IFPS Aug 12 21:03:35 ``v`` logs depend on OS Aug 12 21:03:47 location is googleable Aug 12 21:04:15 <``^``> g00s_, Ubuntu Aug 12 21:05:52 <_Auron_> well, I'll see what I can figure out over the weekend Aug 12 21:05:58 Question - what library can I use to add padding to my elements? I'm using Java to add objects as opposed to the XML Aug 12 21:06:08 And I have an ugly button with no padding around the text Aug 12 21:06:23 lolwut Aug 12 21:06:40 Faizan learn about styles and themes Aug 12 21:06:55 i love when GA updates , it has a great changelog Aug 12 21:07:10 https://www.youtube.com/watch?v=RLDqbEhUjVk I'm just following that tutorial Aug 12 21:07:41 I know I could use an XML file and apply certain styles etc Aug 12 21:12:39 Faizan: Unless you absolutely have to, don’t use Java to add UI widgets Aug 12 21:13:18 I guess this tutorials going into an interactive activity or something? Or would you not even use it then either? Aug 12 21:14:06 usually even then, there’s still a way to compose your ui into custom views that can be inflated with XML Aug 12 21:14:58 I wonder if this tutorial is outdated or the guy doesn't know his stuff - saying that, a lot of people recommended the tutorials Aug 12 21:15:17 anyone know a mechanism to show progress when calling "openInputStream" on ContentResolver? Aug 12 21:15:36 dsardari: what’s wrong with a regular progressbar? Aug 12 21:16:28 https://gyazo.com/c75b62cbc17f2fc3507b6493c6a9b3ab basically this s73v3r Aug 12 21:16:40 well the call is blocking. well, for cloud-related data. Aug 12 21:16:42 that’s not true Aug 12 21:16:49 unless i'm doing something wrong Aug 12 21:16:55 sorry, that was for Faizan Aug 12 21:17:15 dsardari: that doesn’t explain why you can’t use a progressbar Aug 12 21:17:26 building a library and I want the client to be able to input their keys and ids in a file for my library to read, in ios this would be info.plist, what would the equivalent file be in android? Aug 12 21:17:58 well, i don't want it to be indeterminate Aug 12 21:18:14 nownot: generally the user of the library would just call a method on the main object in your library to pass the keys Aug 12 21:18:39 dsardari: the regular progressbar doesn’t have to be indeterminate. you can update it Aug 12 21:18:46 so, pass in the values when initalizing the library? Aug 12 21:18:55 nownot: yeah Aug 12 21:19:10 ok Aug 12 21:19:12 thanks Aug 12 21:19:46 right, but i need to know the # of bytes read. i was going to extend AssetFileDescriptor and add a listener, but iirc just getting the file descriptor was blocking. Aug 12 21:20:18 ok. and? just have it at 0% Aug 12 21:20:40 well, let's say the file is 1 gb Aug 12 21:21:10 dude, i’m still not seeing why you can’t use a progressbar Aug 12 21:21:44 just periodically call an update method to send progress back to your activity/fragment Aug 12 21:22:24 you can't send progress if you can't get the bytes read from the stream Aug 12 21:22:42 then make it indeterminate Aug 12 21:23:05 if you can’t get progress, you don’t ahve much choice Aug 12 21:23:09 well, that's what my original question was about. Aug 12 21:23:21 i can be make it indeterminate, but it's not very helpful Aug 12 21:24:48 it’s better than nothing, if the user needs to stay on that screen while the update happens Aug 12 21:25:14 lol. i just re-read what i wrote. i think my brain has had it. Aug 12 21:25:51 yeah, i agree. i was just wondering if someone else has solved that. Aug 12 21:25:54 thanks Aug 12 21:25:59 ContentResolver does have methods to get file descriptors for files at a URI. would one of those help? Aug 12 21:26:38 where can i find all the builtin layouts i can use for a recyclerview item Aug 12 21:27:26 that's pretty much what "openInputStream" is doing. it's just a helper method. Aug 12 21:28:52 the others do appear to give you the ability to get the length. it still doesn’t appear to have ways to get the progress, though Aug 12 21:31:10 i'll double check what i saw yesterday, but basically calling "getParcelFileDescriptor" on the file descriptor seemed to block. so even if i extended the file descriptor's stream and set a listener to track the bytes read it would be too late. Aug 12 21:57:28 s73v3r reading about Fucsia ... Aug 12 21:57:38 *Fuchsia Aug 12 21:57:50 maybe BeOS++ Aug 12 21:57:59 sounds also like some flutter / dart Aug 12 21:58:06 ooooo Aug 12 22:07:51 Do people here use the XML editor for layouts or the drag and drop thing? Aug 12 22:08:21 Faizan, both Aug 12 22:08:33 right Aug 12 22:09:24 Is there a layout that you tend to favour more? Aug 12 22:09:41 In the video tutorial I'm watching, the guy says he almost always uses grid layout for his apps Aug 12 22:09:58 i tend toward linear or relative layouts Aug 12 22:10:16 I find relative quite confusing right now Aug 12 22:11:26 it isn’t, really. you just tell it where stuff is relative to other things Aug 12 22:16:37 Faizan the layout editor in AS 2.2 will be brand new Aug 12 22:16:51 yeah the current one is probably not well regarded ;) Aug 12 22:17:02 Brand new in a good way or bad? Aug 12 22:17:17 it was needed for ConstraintLayout Aug 12 22:17:22 hopefully good ? Aug 12 22:17:28 i never use these things anyhow Aug 12 22:17:30 Plenty of companies that fix things that aren't broken (I don't know whether the current layout system is broken or what) Aug 12 22:17:57 What do you use? Aug 12 22:18:44 just xml editor , like most Aug 12 22:18:59 gotcga Aug 12 22:19:00 gotcha* Aug 12 22:19:07 Faizan: just try it all and see what you like Aug 12 22:19:25 What's wrong with using the design pane though g00s_? Aug 12 22:19:32 Yeah I'm going through different ones s73v3r Aug 12 22:19:38 I quite like grid layout Aug 12 22:19:44 Faizan its not nice how it creates / modifies your xml Aug 12 22:19:49 so changesets look bad Aug 12 22:19:52 because of its simplicity, but I imagine it's not very powerful? Aug 12 22:20:09 it’s not as good as Xcode’s InterfaceBuilder Aug 12 22:20:23 and sadly, the preview window has never really worked for me Aug 12 22:20:35 lol, that damn preview thing haha Aug 12 22:20:40 once in a while it works for me ... Aug 12 22:20:54 all the stars have to be in alignment Aug 12 22:21:30 lol Aug 12 22:21:37 I’ve noticed it tends to screw up if you use a bunch of styles, or if you use stuff from the support library Aug 12 22:21:42 CardLayout, I’m looking at you Aug 12 22:22:02 Jeez you mean there's more layouts than the ones in the design pane? Aug 12 22:22:16 Is this gonna be like SWING all over again Aug 12 22:22:19 yeah. and you can make your own Aug 12 22:22:38 although the ones in the pane are going to be the main ones you use most of the time Aug 12 22:23:16 By the way I was discussing with I think one of you two earlier about using java to create dynamic widgets, and you said it wasn't needed Aug 12 22:23:33 Do you have any links where I could read up a little more? Aug 12 22:42:00 What's the default layout in AS? Aug 12 22:42:09 If you're just dragging and dropping widgets without selecting a layout Aug 12 22:46:50 no matter what I do urlconnection method is always get, https://gist.github.com/anonymous/156e762638a06243e42ac1e3d4ea2bd8, any thoughts? Aug 12 22:48:36 there is no default layout Aug 12 23:21:58 How can I access my string resource and use it in a setText method? Aug 12 23:22:09 Or even in a .equals to see if something equals the text in my string resource Aug 12 23:22:37 for setText I think I got setText(R.string.name) working, but I can't get it working for equals() Aug 12 23:22:38 same way you access it anywhere else Aug 12 23:23:14 As in @string/name? Aug 12 23:23:22 setText has an overload to take a string ID Aug 12 23:23:48 elsewhere in code, you have to use getString/getStringResource (i don’t remember which one offhand) Aug 12 23:23:53 it’s a method on Activity Aug 12 23:24:47 myText.setText(R.string.changed_text) works Aug 12 23:25:01 where changed_text is the name in the resource file. Doesn't use ID's but yeah Aug 12 23:25:09 that is an id Aug 12 23:25:17 it’s a defined value for an id Aug 12 23:25:42 right okay Aug 12 23:25:57 what if I want to use the equals() method to compare a string with something in my resources? Aug 12 23:26:15 like I said, you have to use the getString/getStringResource method Aug 12 23:26:38 what it’s actually called escapes me at the moment, but if you start typing, Studio shoudl autocomplete it Aug 12 23:26:47 Okay, will look that up. thanks Aug 12 23:26:58 getString is the one Aug 12 23:27:19 yup Aug 12 23:28:52 Got it, had to use getResources aswell s73v3r Aug 12 23:28:58 unless I'm over complicating it.. Aug 12 23:29:21 depends on what API level you’re targeting Aug 12 23:29:28 15-24 Aug 12 23:29:35 it used to be you had to do getResources().getString() Aug 12 23:29:49 but at some point they added a getString() convenience method Aug 12 23:29:51 that'll still work for newer API's right> Aug 12 23:29:55 that might have been on 16 Aug 12 23:30:13 yeah, the old way still works, and I’m pretty sure if you were to look at the code, that’s what the new method is doing inside Aug 12 23:30:22 Yeah Aug 13 00:41:50 any idea why a mapview might not render? Aug 13 00:41:58 getting no errors Aug 13 00:42:07 callnig .getMapAsync() on the mapview Aug 13 00:42:12 but nothing is showing up Aug 13 00:55:17 ah guess you need to define mapview.oncreate Aug 13 01:30:39 i've got a keyboardview and some of my keys have a unicode combining character (like an accent mark). half of them show up at normal size, but half of them are shrunk as if there were too much text to fit on the key Aug 13 01:30:51 can i prevent it from resizing the text somehow? Aug 13 01:34:40 ok nevermind it's labelTextSize. but now i have a problem that some are too big and some are too small :/ Aug 13 01:34:58 or* Aug 13 01:53:56 http://pastebin.com/3KvqpAPf can someone explain exactly what line 14 is doing? Aug 13 01:54:23 i get the this.gestureDetector part, just dont get why "this" is given as a parameter for listener Aug 13 01:54:56 I get the first this - thats a context and because the current object is a MainActivity which is an indirect subclass of Context, we can just pass this in Aug 13 01:55:16 but how is a listener related MainActivity (the current object) Aug 13 02:03:25 Anyone have any idea? Aug 13 02:04:24 jaana: IK think it was you who explained to me yesterday why "this" could be passed as a parameter in MainActivity when a Context was expected right? Aug 13 02:04:36 Yes Aug 13 02:04:47 I'm wondering if you have a moment to explain something similar? Aug 13 02:04:52 Sure Aug 13 02:04:58 It’s similar. There ;) Aug 13 02:05:06 http://pastebin.com/3KvqpAPf Line 14 Aug 13 02:05:07 Lol Aug 13 02:05:22 So in line 14, the constructor takes a Context, and then an OnGestureListener Aug 13 02:05:37 I get why we can pass "this" for a Context", but why "this" for an OnGestureListener? Aug 13 02:05:47 As we discussed, Activity is already a Context and I bet it also implements OnGestureListener too Aug 13 02:05:59 (this, this) looks a bit weird but it makes sense Aug 13 02:06:11 Yeah I get the first part Aug 13 02:06:26 "I bet it also implements OnGestureListener too", where can I check this? Aug 13 02:06:40 public class MainActivity extends AppCompatActivity implements GestureDetector.OnGestureListener, Aug 13 02:06:41 GestureDetector.OnDoubleTapListener { Aug 13 02:07:18 Wait so I think I'm just not understanding interfaces then Aug 13 02:07:58 so if X implements Y, then is X a Y? Aug 13 02:08:06 like X extends Y, so X is a Y Aug 13 02:08:53 Exactly. Aug 13 02:09:03 Never thought of interfaces like that Aug 13 02:09:03 And you’re using the right terminology too, it’s call an “IS_A” relation Aug 13 02:09:36 Yeah, same as in UML Aug 13 02:10:06 I always thought interfaces formed a "Has A" relation and not "IS A" Aug 13 02:10:46 I need to get my head around why "if X implements Y, then is X a Y?" is true Aug 13 02:12:40 Experiment with it, it’s vital to understand OO and polymorphism Aug 13 02:12:41 So I just found this in a UML tutorial I followed years back "When "A" inherits from "B" we say that "A" is the subclass of "B" and that "B" is the superclass of "A" " Aug 13 02:13:09 so MainActivity is a subclass of OnGestureListener Aug 13 02:13:20 I didn't think of an interface as a class Aug 13 02:13:49 It’s not really. They can both be called types but they are pretty different (in Java anyway, all languages have different ways to support types) Aug 13 02:14:45 Right okay, but the main thing to take away is both "extends" and "implements" can be seen as IS-A relations Aug 13 02:14:54 and that answers why "this" can be used for the second parameter Aug 13 02:15:03 Appreciate the help as always, thanks Aug 13 02:15:17 You got it. You’re picking up fast, good for you. Aug 13 02:24:30 And once you’re familiar enough with Java, it will be time to learn Kotlin and it will blow your mind :) Aug 13 02:31:44 everything shold blow your mind after java ;) **** ENDING LOGGING AT Sat Aug 13 02:59:59 2016