**** BEGIN LOGGING AT Sat Dec 19 02:59:58 2015 Dec 19 03:21:01 hi Dec 19 03:21:14 can i use C++/C to create andriod apps? Dec 19 03:21:30 my android studio does not recognize java.awt Dec 19 03:23:32 guys? Dec 19 03:24:17 hi Dec 19 03:24:32 what do you mean "not recognize"? Dec 19 03:24:40 doesnt compile? Dec 19 03:25:16 yeah Dec 19 03:25:16 doesn't compile Dec 19 03:25:18 says unrecognized symbol I believe Dec 19 03:25:27 cannot resolve symbol Dec 19 03:25:32 package java.awt does not exist Dec 19 03:25:32 ? Dec 19 03:25:42 other packages do exist Dec 19 03:25:49 java.util, whatever Dec 19 03:25:52 ? Dec 19 03:26:00 well java.io apparently has no complaint Dec 19 03:26:27 well i mean can you compile a program that uses only java.io Dec 19 03:26:37 hello world , whatever Dec 19 03:26:47 have not tried Dec 19 03:27:03 try that Dec 19 03:27:14 if you miss awt, i think other things are broken aswell Dec 19 03:27:27 create a file on disk, whatever Dec 19 03:27:30 really now Dec 19 03:27:39 can I include java.io onto my other android project tictactoe Dec 19 03:27:46 that is working Dec 19 03:27:50 ok Dec 19 03:28:24 aaah Dec 19 03:28:26 look here Dec 19 03:28:27 http://stackoverflow.com/questions/6344654/how-to-add-java-awt-image-package-in-android Dec 19 03:28:45 Android has its own graphics libraries (android.graphics). Dec 19 03:28:49 lol Dec 19 03:28:57 miss awt? oh dear Dec 19 03:29:02 oh ok Dec 19 03:29:05 so then... Dec 19 03:29:07 what do I do Dec 19 03:29:08 android doesn't use awt, obviously Dec 19 03:29:14 how do I get awt to work Dec 19 03:29:17 you don't Dec 19 03:29:20 android does not use awt Dec 19 03:29:21 rewrite it to use andriod.graphics Dec 19 03:29:32 uh Dec 19 03:29:35 man it's a lot of a code Dec 19 03:29:45 android does not use awt, you will not use awt on android Dec 19 03:29:47 not even my code Dec 19 03:29:48 rewrite it to work correctly Dec 19 03:29:56 Tal Vu, yeah.. maybe you can find third party awt emulator on web Dec 19 03:30:05 what? Dec 19 03:30:13 but its not part of the standard Dec 19 03:30:23 this is the source code for the app I'm supposed to port to iOS Dec 19 03:31:12 well, porting is sometimes more then just pressing compile button Dec 19 03:31:16 http://stackoverflow.com/questions/16140431/android-the-type-java-awt-image-cannot-be-resolved-it-is-indirectly-referenced Dec 19 03:31:52 hey cool Dec 19 03:31:57 try it Tam_Vu Dec 19 03:32:08 where is project properties Dec 19 03:32:16 donno man Dec 19 03:32:36 i am not andriod programmer, i am asking questions about C and andriod myself)) Dec 19 03:34:40 oh that is probably for eclipse Dec 19 03:39:12 port to ios? how's that related to android then Dec 19 03:40:20 well I need to build it on the android simulator Dec 19 03:40:24 in android studio Dec 19 03:40:27 so I can figure out what's going on Dec 19 03:40:36 I guess the issue is that Dec 19 03:40:46 java.awt is used by commonsimagingv1 library Dec 19 03:41:47 What are some attractive options for storing persistent application data (config. info.) which has the form of arrays of strings and primitives? Dec 19 03:42:10 shared preferences Dec 19 03:43:06 i think he ment andriod, not ios Dec 19 03:43:14 because there is no java on ios iphone Dec 19 03:43:29 robovm works on ios Dec 19 03:43:39 and there's intel multi-os engine Dec 19 03:43:41 which also runs on ios Dec 19 03:43:41 pfn, it only seemed to support storing individual numeric types and string sets Dec 19 03:43:50 HGBG, a string array is a set of strings Dec 19 03:44:14 pfn how can I get this to work Dec 19 03:44:16 -.- Dec 19 03:44:17 you don't Dec 19 03:44:21 it's not an android project Dec 19 03:44:32 pfn, it doesn't provide ordering guarantees which I need Dec 19 03:44:33 well he showed me the app yesterday Dec 19 03:44:38 running on android phone Dec 19 03:44:50 HGBG, and there's tons of ways to fake ordering guarantees Dec 19 03:44:51 is it possibly outdated Dec 19 03:44:59 no Dec 19 03:45:03 it never built for android Dec 19 03:45:07 I mean he's using eclipse ADT Dec 19 03:45:17 java.awt does not exist for android, period Dec 19 03:45:18 pfn, yes, but it was worth asking if there was a better option Dec 19 03:45:25 HGBG, there isn't Dec 19 03:45:28 I read a bit about that -.- Dec 19 03:45:51 well are you sure pfn Dec 19 03:45:56 you sure it didn't exist for Eclipse ADT Dec 19 03:46:09 I'm not answering anymore Dec 19 03:46:11 wasting my time Dec 19 03:48:27 well even when I search for it Dec 19 03:48:33 it seems like people are talking about java.awt and ADT Dec 19 03:50:46 So I just straight up removed commonsimaging Dec 19 03:54:48 http://postimg.org/image/tlceb8y61/ Dec 19 03:54:49 pfn Dec 19 03:54:53 what do you suggest there Dec 19 03:56:10 do what it says Dec 19 03:56:22 pfn: know anything about graphics? Dec 19 03:56:28 Suggestion: use tools:overrideLibrary="com.google.zxing.client.android" to force usage Dec 19 03:56:29 that thing? Dec 19 03:58:24 Dec 19 03:58:30 put that above android:minSdkVersion="11" Dec 19 03:58:30 android:targetSdkVersion="18" /> Dec 19 03:59:03 Error:The prefix "tools" for attribute "tools:overrideLibrary" associated with an element type "uses-sdk" is not bound. Dec 19 04:04:26 why does google make so many useful methods package private Dec 19 04:04:29 why do they hate me Dec 19 04:04:54 One of the reasons why I hate the principle of making things private by default Dec 19 04:05:16 Actually private is fine, it's final I have a beef with for libraries Dec 19 04:05:31 i prefer the "we're all adults here" philosophy Dec 19 04:05:36 yup Dec 19 04:10:46 yeah, so many final and package-private functions that are perfectly ok being used from 3rd parties Dec 19 04:11:26 it's very annoying Dec 19 04:11:47 package private isn't the end of the world, though Dec 19 04:11:57 workaround: create code in package Dec 19 04:12:10 private and final is a problem (private is final for all intents and purposes of course) Dec 19 04:13:58 what does that mean? create code in package Dec 19 04:14:03 does reflection work Dec 19 04:14:21 what do you mean what does that mean, exactly what that says Dec 19 04:14:37 create code in that package that you want to use the method in Dec 19 04:14:59 * pfn has hacked so many google libraries because of that Dec 19 04:15:01 even if it's some decompiled google library Dec 19 04:15:14 either copy-paste, or throw an extension class into the library's package Dec 19 04:15:28 Error:(17, 0) Gradle DSL method not found: 'android()' Dec 19 04:15:46 copy-paste usually ends up involving pasting in half the classes from the lib Dec 19 04:15:57 or throw an extension class into the library's package Dec 19 04:16:17 how would you modify do that Dec 19 04:16:27 java.lang.IllegalArgumentException: You need to use a Theme.AppCompat theme (or descendant) with the design library. Dec 19 04:16:29 what do? Dec 19 04:16:40 by typing "package THE.PACKAGE.YOU.WANT.IT.TO.GO.INTO;" Dec 19 04:16:47 hmmmm Dec 19 04:16:51 interesting Dec 19 04:16:55 seems rather obvious Dec 19 04:17:00 I just made a starter project and got that error after trying to change the text field Dec 19 04:17:12 morenoh149, the answer is dead obvious Dec 19 04:17:19 just....never thought of that Dec 19 04:17:24 i blame javascript and php Dec 19 04:17:42 javascript and php have terrible namespace issues Dec 19 04:19:06 is there such a thing as the new marshmellow app auto-backup but to a custom server rather than Google Services? Dec 19 04:19:11 does javescript have namespaces? Dec 19 04:19:21 and it was a late addition in php, i never used it Dec 19 04:19:29 it's not obvious to me. pretty much the generated project has an error. Dec 19 04:21:34 of course it doesnt....i should know that....android is rotting my mind Dec 19 04:22:39 morenoh149, that's happened to me a few times Dec 19 04:23:54 the generated code kinda sucks anyway imo, it's just a reference, you're gonna have to change it massivly anyway Dec 19 04:25:17 even so I'm just getting started with android. So i dunno. Dec 19 04:25:58 i'm hoping AS 2 brings real time feedback of errors without having to do build :| Dec 19 04:30:22 ugh Dec 19 04:30:25 I'm just NOT going to be able to build this project Dec 19 04:30:38 now I see the source files that actually DO use the commons imaging library Dec 19 04:30:46 which in turn uses java.awt Dec 19 04:30:47 which I've been told does not work on Android? Dec 19 04:30:54 can anyone recommend a good intro to android development? a free one? Dec 19 04:31:16 and I've been told this is not even an android project Dec 19 04:31:16 which makes no sense to me Dec 19 04:31:22 unrelated I know, but xda has really gone to shit Dec 19 04:31:54 lol Dec 19 04:31:57 g00s they are going to have to do that kinda shit to make dev tolerable Dec 19 04:32:00 they were cool back in their winmo days Dec 19 04:32:22 MooGoo - even in the last like 4mo its a total pain in the ass to just navigate subthreads or login Dec 19 04:32:32 i miss windows mobile Dec 19 04:32:39 lets hire someone who is on bathsalts to design our website Dec 19 04:32:48 MooGoo - you really shouldnt Dec 19 04:32:58 it was so like....permissive tho Dec 19 04:32:59 ms has some interesting stuff in the latest win10 for mobile devices Dec 19 04:33:00 but Dec 19 04:33:03 you could whatever the fuck u wanted Dec 19 04:33:13 we'll see if they ever do anythign with it Dec 19 04:33:58 their tech stack is far superior in just about every way than android Dec 19 04:34:09 i believe it Dec 19 04:34:15 ron_frown some food for thought http://blog.ezyang.com/2015/12/the-convergence-of-compilers-build-systems-and-package-managers/ Dec 19 04:34:30 but they manage to fuck up the ui and extendability and app store etc Dec 19 04:34:32 okay. so I have clean build, rebuild, etc.. I have compile files('libs/org.apache.http.legacy.jar'), put the jar in the directory, etc.. Still reports it as Warning:Unable to find optional library: org.apache.http.legacy. Any ideas? Dec 19 04:34:37 so badly nobody wants any part of it =) Dec 19 04:35:53 I think the fact that maven and gradle actually made things way worse than what was there before it Dec 19 04:36:09 and java community puts them up on a pedestal Dec 19 04:36:21 tells you exactly what kinda people the community is made up of Dec 19 04:37:29 i think how omnisharp + rosylyn work are the way forward Dec 19 04:37:36 ehhhhh Dec 19 04:37:41 it works Dec 19 04:37:43 VS code is pretty dumb by itself, but with omnisharp gets superpowers Dec 19 04:37:57 omnisharp is really just mostly roslyn tho Dec 19 04:38:22 I went to go suck in as2 stuff the other day Dec 19 04:38:36 and remembered that last time I did that I had 15g of system images and sdks Dec 19 04:38:46 eff it =) Dec 19 04:40:02 g00s they managed to get in their initial pass at performance tuning, kestrel handling 1.024mil requests per second Dec 19 04:40:12 this looks good https://www.udacity.com/course/developing-android-apps--ud853 Dec 19 04:40:14 for somethign thats beta beta Dec 19 04:40:17 thats pretty respectable Dec 19 04:40:41 morenoh149 - honestly def dont get a book Dec 19 04:40:57 I'd just read tuts... try to make sure they are as late as possible Dec 19 04:41:18 google has blogs with their stuff on it, though I dont know if they've been keeping it relevant Dec 19 04:46:21 has anyone else here messed with the flutter.io shit? Dec 19 04:49:46 Does anyone know why if I have a widget that launches a configuration activity when added, and call setResult(RESULT_OK, resultValue) and then hit the home button, the widget doesnt get added? Dec 19 04:50:06 * impliednude sighs Dec 19 04:50:07 BUT if I do the same as above and call setResult() and then finish() right after, it DOES get added? Dec 19 04:52:04 okay. so I have clean build, rebuild, etc.. I have compile files('libs/org.apache.http.legacy.jar'), put the jar in the libs/ directory, etc.. Still reports it as Warning:Unable to find optional library: org.apache.http.legacy. Any ideas? Dec 19 04:54:28 maven made things worse? Dec 19 04:54:31 what crack are you smoking Dec 19 04:55:45 Ah to answer my own question...I guess its because finish() closes the activity right then and returns the result specified in the setResult() back to the callers onActivityResult Dec 19 04:56:22 Where as it doesnt get added without finish() as the activity is still running in the background. Someone correct me on that if im wrong. Dec 19 04:57:46 because that's how setResult works Dec 19 04:57:54 when you press home, you didn't complete the activity Dec 19 04:57:56 you just skipped out of it Dec 19 04:58:28 pfn: yep thats what I thought. ty Dec 19 04:58:29 pressing back can return a result, however, if you set a result before hand Dec 19 04:59:10 pfn: because isnt hitting the back button the same as calling finish()/onDestroy()? Dec 19 04:59:26 it calls finish indirectly Dec 19 04:59:36 and finish will indirectly call onDestroy Dec 19 05:10:34 Hmm is it possible to return the result before calling finish()? I need the widget to be added regardless, and I dont want to make an "Ok" button to call finish() with. Dec 19 05:11:27 hehe this is great http://thomasbyttebier.be/content/03-blog/14-the-best-icon-is-a-text-label/washing-icons.png Dec 19 05:14:03 tennis balls :D Dec 19 05:17:05 Hey friends, I have a problem. Dec 19 05:17:27 I'm trying to get a google-services.json config file from https://developers.google.com/identity/sign-in/android/start-integrating#get-config Dec 19 05:17:50 I click GET A CONFIGURATION FILE, but the link it takes me too just loads. Dec 19 05:17:57 Is it just me? Dec 19 05:18:27 to* Dec 19 05:21:08 Hi, I want to develop for android Dec 19 05:21:14 i know java/C++/C Dec 19 05:21:42 can i develop for android on CentOS, maybe in a virtual machine Dec 19 05:22:58 jacob___ why in a VM ? don't know how well running an emulator will work that way Dec 19 05:23:21 CentOS should work though Dec 19 05:23:54 Is it bad to call a fragments methods from the parent activity? Dec 19 05:24:06 its fine Dec 19 05:24:11 Sweet Dec 19 05:24:15 i mean, not lifecycle methods of course Dec 19 05:24:24 Yeah, just a public method I wrote Dec 19 05:24:54 ok Dec 19 05:27:31 so i cant see anything that tells me but if i have a return inside a try block is the finally executed? Dec 19 05:27:32 is it ok to call setSupportActionBar multiple times? like if a fragment need a special AB, provide it to the hosting activity (which may already have done that) Dec 19 05:28:04 mark4 sure Dec 19 05:28:17 ty, thought it would be but needed to make sure :) Dec 19 05:37:43 hahahahaha https://code.google.com/p/android/issues/detail?id=186273 Dec 19 05:37:52 i was so confused Dec 19 05:38:16 orbyt_, then call finish onPause Dec 19 05:38:28 orbyt_, but that's bad Dec 19 05:38:54 pfn: Thats exactly what I thought. How else would it be done? Dec 19 05:39:08 how do you allow the user to cancel then? Dec 19 05:39:25 home is an implicit cancel action Dec 19 05:39:27 so should back be Dec 19 05:39:39 The widgets already been dragged and dropped onto the screen Dec 19 05:39:42 so? Dec 19 05:39:51 a user can't change their mind? Dec 19 05:40:02 of course they can, drag it up and drop to remove Dec 19 05:40:19 that's annoying Dec 19 05:40:23 but if you insist, finish onPause Dec 19 05:40:42 but dragging it onto the screen, having the config show up and than hitting the home button only to have to go back to the widget list and add it again is far more annoying Dec 19 05:40:59 if you think so, do that Dec 19 05:41:01 I don't agree Dec 19 05:41:33 back and home typically mean cancel Dec 19 05:41:43 and placing it anyway even though a user presses back is frustrating Dec 19 05:41:50 So If you already picked your widget and dropped it onto the screen, youd expect the back button to not add the widget? Dec 19 05:42:03 if there's a configuration step, absolutely Dec 19 05:42:22 Yea, its more of a settings/help activity more than a configuration Dec 19 05:42:33 what would you recommend in that case Dec 19 05:42:40 why would a widget need help... Dec 19 05:43:21 this uses some acronyms and other values that not everyone interested in the widget may know Dec 19 05:44:23 I could have the user just hit the app icon to launch the activity but i had thought that having it pop up automatically when adding would be nicer Dec 19 05:45:02 you could just add a help button to the widget itself Dec 19 05:45:37 Well AFAIK you can only set a click listener on the entire widget itself, not specific views Dec 19 05:45:46 false Dec 19 05:45:46 That might work though... Dec 19 05:45:50 oh really? Dec 19 05:49:23 Ah your right. Regardless, is the finish() in onPause the only way to get the result returned? Is there really no way to forcefully return a result without destroying the activity? Dec 19 05:50:07 that's what returning a result means Dec 19 05:53:40 okay. so I have clean build, rebuild, etc.. I have compile files('libs/org.apache.http.legacy.jar'), put the jar in the libs/ directory, etc.. Still reports it as Warning:Unable to find optional library: org.apache.http.legacy. Any ideas? Please... ^_^ Dec 19 05:56:17 pfn: I mean theres probably a method in the onDestroy() process that returns the result to the calling activity, why shouldnt it be possible to do the same without actual destroying the activity Dec 19 05:56:29 actually* Dec 19 06:07:12 Hi Guys, Is there a way to programmatically check what archtype a .so file was compiled for? Dec 19 06:07:27 What ABI Dec 19 06:16:50 no Dec 19 06:16:57 well, yes Dec 19 06:17:01 read it and check for magic headers Dec 19 06:19:37 this place I work is so odd. They hired probably 12 fresh college grads Dec 19 06:19:48 2 of them are developers, the rest are BA's Dec 19 06:19:55 i honestly have no clue what they do Dec 19 06:20:14 pfn: Sorry I didnt get that Dec 19 06:20:22 but I think they could possibly be replaced with Outlood Dec 19 06:20:24 .so files are binary files right/ Dec 19 06:20:24 orbyt_, why are you so fixated on destroying activities Dec 19 06:20:25 *Outlook Dec 19 06:22:41 pfn: I want the Widget to be set after the dragndrop regardless if the activity is destroyed or whatever Dec 19 06:23:58 But from what you've said and the lack of SO answers calling finish() or having the activity destroyed any other way seems to be the only option to have the result returned. Dec 19 06:28:31 then finish regardless Dec 19 06:30:04 ? what do you mean Dec 19 06:31:23 what's unclear, finish onpause Dec 19 06:32:22 wasnt sure what your meant by regardless. anyway thanks. Dec 19 06:32:48 you* Dec 19 06:33:49 hey people. Is there any message broker for android ? Dec 19 06:34:27 lxsameer need to be more specific Dec 19 06:37:12 g00s, something like Apache Kafka or RabbitMQ Dec 19 06:37:36 hm, there is java RabbitMQ client ... Dec 19 06:38:04 or you can use websocket to talk to RabbitMQ Dec 19 06:38:16 but as far as running broker on the phone, i haven't heard of anything Dec 19 06:39:57 no I need a client Dec 19 06:41:23 i think okhttp has a websocket client. not sure how robust / conformant it is to the spec tho Dec 19 06:41:41 you can also use mqtt paho client if thats your thing Dec 19 06:44:06 okay. so I have clean build, rebuild, etc.. I have compile files('libs/org.apache.http.legacy.jar'), put the jar in the libs/ directory, etc.. Still reports it as Warning:Unable to find optional library: org.apache.http.legacy. Any ideas? Please... ^_^ Dec 19 06:47:38 useLibrary org.apache.http.legacy is only for compileSdkVersion 23 and up Dec 19 06:49:25 which I did Dec 19 06:49:48 It just isn't working at all and I am pulling my hair out Dec 19 06:50:16 then you don't have sdk 23 properly installed Dec 19 06:51:10 putting the jar in libs is orthogonal to useLibrary Dec 19 07:53:34 is it possible to read the sensors more than 60 times a second? Dec 19 07:53:53 i need to read it about 130 times a second Dec 19 09:43:33 One3yed: yes Dec 19 09:43:54 depends on the device though. Dec 19 10:17:52 How everyone today?:) Dec 19 10:28:09 do you know any mobile sqlite <-> sql server sync framework? Dec 19 11:01:38 gdrc, I've yet to find a good sync library for DBs for mobile :/ Dec 19 11:03:00 For very simple use-cases, here's a "meta library" ;-) http://stackoverflow.com/questions/12340083/consolidating-changes-when-syncing-with-a-server-from-offline-localstorage/12346606#12346606 Dec 19 11:03:25 Coding it is left as an excercise. Dec 19 11:09:16 Hello Dec 19 11:10:22 Needed some insight in android programming Dec 19 11:12:58 mhm Dec 19 12:07:55 anyone know how i might animate an image to rotate on top of another image? in html/css i'd do this by rendering one image on top of the other and applying a css rotate anim, can I do similar in android? e.g. a FrameLayout with one image behind and one in the foreground Dec 19 12:07:59 Hi friends! Is there any chance to use Android Studio on NixOS? Dec 19 12:08:33 storkme: I'm not certain, but maybe you need to use RenderScript? Dec 19 12:10:42 had a little look, renderscript seems a bit overkill maybe? Dec 19 12:14:14 storkme: yep, also it works only on SDK 3+ Dec 19 12:15:50 storkme, do you need to do it in realtime? Fast? or render ahead? Dec 19 12:17:01 sure, real time. Just looking into ObjectAnimator now Dec 19 12:17:38 Make a FrameLayout and add two imageviews to it Dec 19 12:17:40 rotate one. Dec 19 12:17:43 apply alpha Dec 19 12:32:57 neat, it was as easy as that. Thanks. Dec 19 12:58:38 tricky part I suppose will be positioning the items correctly Dec 19 13:41:26 is this an okay way to connect to a PHP file on a server and return data to my app? http://pastebin.com/GGUGXAWw Dec 19 13:51:58 so I need to use support-v4 to use a ViewPager? seems bizarre Dec 19 13:53:25 you should be using StringBuilder to concatenate the strings, and you should be able to get the character set from the HttpUrlConnection (isn't that done automatically?) Dec 19 13:53:29 @ thornekey Dec 19 14:00:28 Ah Dec 19 14:00:36 could you give me an example storkme? Dec 19 14:00:42 and other than that does it look fine? Dec 19 14:02:56 thornekey: http://stackoverflow.com/questions/4666748/java-how-to-read-bufferedreader-faster for the stringbuilder, as for the charset thing i think you can just remove the "iso-1234" argument you're passing (might be wrong on that) Dec 19 14:06:01 thanks, ill take a look :) Dec 19 14:08:19 oh, storkme thats simple enough ahaha Dec 19 14:15:49 storkme, is this the correct way ? http://pastebin.com/5mVhiBDd Dec 19 14:17:32 move text = builder.toString() to outside of the while loop Dec 19 14:20:06 So do we have any RxJava focused ORM yet? Dec 19 14:21:04 didn't Realm announce first class rx support recently? Dec 19 14:25:35 thanks storkme Dec 19 14:26:53 storkme, they still have the limitation of where you can't carry an object over thread boundaries which makes Rx usage extremely problematic Dec 19 14:27:22 Are there any more libraries like json-path to query json objects for android? Dec 19 14:33:04 hm storkme when i add a println for the text nothing is displayed, but there are no errors saying it didnt connect or anything Dec 19 14:39:03 Wait, does System.out.println go to logcat? Dec 19 14:43:48 yes Dec 19 14:44:01 okk Dec 19 14:51:17 how does one query json objects? Dec 19 14:57:33 im getting this error: "A resource was acquired at attached stack trace but never released. See java.io.Closeable for information on avoiding resource leaks. Dec 19 14:57:34 java.lang.Throwable: Explicit termination method 'close' not called" Dec 19 14:57:42 think it has to do with InputStream Dec 19 15:16:09 why do i get the "ERROR" msg in post? http://pastebin.com/YUhpSxtB Dec 19 15:18:59 because you didn't close Dec 19 15:19:12 i used in.close() Dec 19 15:19:57 pfn, where do i need to close? :) Dec 19 15:20:06 finally Dec 19 15:20:53 after the catch? and is that all ill need to put in it Dec 19 15:21:03 do i need to move it btw or duplicate it Dec 19 15:22:29 your for loops should contain only a single try Dec 19 15:23:31 so merge all into one Dec 19 15:34:05 when i put it in a finally it gives me a nullpointer Dec 19 15:38:33 then fix it so it isn't null Dec 19 15:38:46 null pointer exceptions are easiest to fix Dec 19 15:41:36 so I'm calling Intent intentApp = new Intent(MainActivity.this, CapturingActivity.class); MainActivity.this.startActivity(intentApp); to start a new activity Dec 19 15:41:51 how might I call a public function within CapturingActivity associated with this new activity? Dec 19 15:42:18 huh Dec 19 15:43:59 when i go to close my InputStream (in finally) it says that the input stream may not have initialized Dec 19 15:44:26 so fix it so that it is Dec 19 15:44:42 these are java basics you need to learn Dec 19 15:44:44 i put a null on it. cos i need to do it properly ina try. Dec 19 15:44:57 however when i do it that way Dec 19 15:45:13 i get the null error so im thinking the try isnt working..? correct? Dec 19 15:45:46 the check for null Dec 19 15:45:49 then Dec 19 15:46:43 ok :) Dec 19 15:46:45 so pfn.. Dec 19 15:47:16 how exactly do you write a class within a libraries package? I tried it and got the same method not public cant be accesed out of package Dec 19 15:47:39 somehow I doubt it considers this the same package just cause it has the same words Dec 19 15:47:40 told you already Dec 19 15:47:50 package library.package; Dec 19 15:48:02 that's what I did Dec 19 15:48:15 i had to make a new directory and everything Dec 19 15:48:23 then it works fine Dec 19 15:48:35 is it lieing to me? Dec 19 15:48:52 you're not doing what you think you're doing Dec 19 15:49:23 and i guess that got rid of the null error but im still getting it retuned false Dec 19 15:50:09 I made a new directory structure, android.support.design.widget, and put my class in that folder....with the same package name Dec 19 15:50:40 I mean....it's just a static method that takes an AppBarLayout object and tries to access it Dec 19 15:50:57 and then? Dec 19 15:51:10 I get a big red wavy line under the method call saying you cant do this Dec 19 15:51:30 what is the method call, how are you sure that this is the right package Dec 19 15:52:19 it works fine Dec 19 15:52:44 final int getMinimumHeightForVisibleOverlappingContent() in AppBarLayout Dec 19 15:53:11 android.support.design.widget package Dec 19 15:53:11 it's final Dec 19 15:53:21 and it's not static Dec 19 15:53:32 right well, im passing in an appbarlayout object Dec 19 15:53:45 im not trying to override it Dec 19 15:54:22 then that would work Dec 19 15:54:29 compile error or it didn't happen Dec 19 15:54:34 public static int getShit(AppBarLayout appbar) {return appbar.getShit(); } Dec 19 15:55:03 anyone know an easy way to take screenshot when using the android junit test runner for instrumentation tests? Dec 19 15:55:58 Error:(10, 22) error: getMinimumHeightForVisibleOverlappingContent() is not public in AppBarLayout; cannot be accessed from outside package Dec 19 15:56:01 hi, a few years ago, circa 2011, there was an official (or so I recall) "visual" tool to assemble programs for Android. If I'm not mistaken it was dropped by Google and released open source, then adopted by some institute, possibly MIT, for teaching programming to children. Can anyone confirm the existence of this tool and recall its name? Dec 19 15:56:56 app inventor? Dec 19 15:56:57 typing google MIT into Google suggests your result in the top Dec 19 15:57:06 that too Dec 19 15:57:19 MooGoo: Then you got the package wrong Dec 19 15:57:29 anddam app inventor Dec 19 15:57:35 pfn: not in my results Dec 19 15:57:43 thanks all Dec 19 15:58:01 SimonVT: I just copied the same one from the top of the AppBarLayout source I have Dec 19 15:58:11 yes, I remember the dreaded cat demo Dec 19 15:58:26 anddam: yes it was called app inventor Dec 19 15:58:26 MooGoo, compile error or it didn't happen Dec 19 15:58:49 MooGoo: Well, you got it wrong.. It's that simple.. Otherwise javac wouldn't complain that you're in an outside package Dec 19 15:58:55 Error:(10, 22) error: getMinimumHeightForVisibleOverlappingContent() is not public in AppBarLayout; cannot be accessed from outside package Dec 19 15:59:25 hm Dec 19 15:59:30 pretty much, and that's the error when you run gradle? wrong package then Dec 19 15:59:32 oh Dec 19 15:59:34 fuck Dec 19 15:59:37 me Dec 19 15:59:38 ill leave now Dec 19 15:59:39 sucker Dec 19 15:59:57 told you you didn't do what you thought you did Dec 19 15:59:58 android.support.desgin.widget Dec 19 15:59:58 net.moogoos.app.android.support.design.widget Dec 19 16:00:10 Or that.. Dec 19 16:00:33 so much for copy and paste Dec 19 16:00:43 your computer must be dyslexic Dec 19 16:00:51 ok i lied Dec 19 16:01:03 but why does the spell checker only work when i dont want it to Dec 19 16:01:23 People usually do.. And then they try to argue for 30 minutes that they got it right, usually without even showing any code Dec 19 16:04:34 hi Dec 19 16:08:57 SimonVT++, true Dec 19 16:15:48 hi Dec 19 16:19:35 jacob___, hi Dec 19 16:19:51 ji OverCoder, thats a nice name Dec 19 16:19:54 coder? Dec 19 16:19:59 ubercoder Dec 19 16:21:09 how are you all doin? Dec 19 16:22:07 bye Dec 19 16:38:00 Guys I am generating cards depending on downloaded data, I use Picasso to load images into the cards, however, until the image is loaded, the card is not taking it's space (i.e. there's no placeholder) Dec 19 16:38:47 What is the correct way to put placeholders? I am aware of .placeholder() but I don't know how to use iy Dec 19 16:39:17 by the way, I can make the server send image dimensions or something before the image is loaded Dec 19 16:39:31 But how am I going to put the placeholder depending on that? Dec 19 16:39:53 I mean there are variety of aspect ratios for images Dec 19 16:49:38 So my project uses java.awt Dec 19 16:49:38 but I've been told that Android cannot use java.awt Dec 19 16:49:40 so what's the deal with that Dec 19 16:51:39 Tam_Vu: ... Dec 19 16:51:45 there's no awt on android Dec 19 16:51:47 or swing Dec 19 16:52:17 Well so I just don't understand why this is an app Dec 19 16:52:25 and it's written using a library called "commons imaging" Dec 19 16:52:38 and commons imaging relies on java.awt Dec 19 16:54:30 Tam_Vu: android has some awt classes. Dec 19 16:54:38 ok Dec 19 16:54:56 like import java.awt.font. ? Dec 19 16:56:09 yea, looks like thats the only package Dec 19 17:06:37 pfn do you have any idea how the expanding toolbar behavior would be implemented as in Google Calendar? when you click the Month drop down, the toolbar expands. again, it retracts. There isn't any scrolling entering / exiting these states Dec 19 17:08:06 well i guess you can scroll up to exit Dec 19 17:08:13 didn't notice that, interesting Dec 19 17:11:10 appBarLayout.setExpanded(true/false) oh nice Dec 19 17:34:44 so I was told this: Dec 19 17:34:51 with regards to using commons imaging Dec 19 17:34:59 which requires java.awt Dec 19 17:35:00 in ADT, configure build path for QikTalk, in the Libraries tab, I had to add library . i use the default JRE , which is jre7. Dec 19 17:35:14 but he is using eclipse adt Dec 19 17:36:51 If you check commons-imaging-v1 build path, you can see it includes jreSE-7 libraries. Do the same for qiktalk project. Dec 19 17:37:03 Tam_Vu no AWT on android. give up. Dec 19 17:37:24 well he's saying he just added the library? Dec 19 17:44:39 hi there Dec 19 17:44:47 I am trying to set up a search bar for my app Dec 19 17:44:51 these are my files Dec 19 17:44:52 http://pastebin.com/dJzenz3k Dec 19 17:45:11 it's not even showing the search bar, I can't figure out what I am missing Dec 19 18:30:50 g00s, it looks custom Dec 19 18:30:55 howdy y'all, anyone familiar with RecyclerView's GridLayoutManager? Y'all know if you can offset only specific types of children? Dec 19 18:31:09 but yeah Dec 19 18:59:28 g00s, doesn't look like appbarlayout Dec 19 19:00:44 i tried hierarchyviewer, but i dont think it accurately reports some layouts, maybe just punts to FrameLayout Dec 19 19:05:43 no, because it's handled custom Dec 19 19:06:20 but yeah, that's kinda punting Dec 19 19:07:08 something like view drag helper enables that "easily" Dec 19 19:12:59 um, is it possible to make RecyclerView horizontal? Dec 19 19:13:11 I want horizontally scrolling CardViews Dec 19 19:14:50 even when you cancel compilation it takes a while for android Dec 19 19:17:09 Error:duplicate files during packaging of APK /Users/Tam/AndroidStudioProjects/QikTalk/qikTalk/build/outputs/apk/qikTalk-debug-unaligned.apk Dec 19 19:17:21 any idea Dec 19 19:18:30 I'm not really sure, but, check for write permissions or something Dec 19 19:18:47 I think the error is something like: file already exists Dec 19 19:19:21 maybe try deleting the apk and clean build Dec 19 19:25:40 I am not telling you to do anything, but do you know why? I'd like to know what is the wrong thing I've done Dec 19 20:09:52 OverCoder, read the docs for linearlayoutmanager Dec 19 20:27:05 mhm Dec 19 20:32:21 is there any non-painful ui toolkit? I really only need a simple gui and last time I tried I couldn't wrap my head around it Dec 19 20:33:35 With a simple UI, it shouldn't be extremely painful. Dec 19 20:33:49 Though "simple" and "simple on Android" don't correlate very strongly. Dec 19 20:34:02 My idea of simple is: not getting stuck as soon as the phone rotates Dec 19 20:35:24 Sorry that was the opposite of my last problem. Last time I got stuck in that I couldn't get it to update the screen so I worked around it by rotating it Dec 19 20:35:48 lol Dec 19 20:35:56 'shake to update' Dec 19 20:36:22 Simple screen-rotation stuff isn't too bad. Dec 19 20:36:40 This was interesting: was in a PC store earlier, and the assistant was an Android developer. Dec 19 20:36:53 I wonder whether he comes in here. Dec 19 20:37:14 He was recommending an 8GB laptop, saying it's enough for Android Studio and the emulator. Dec 19 20:37:18 I mean 8GB RAM. Dec 19 20:39:55 TacticalJoke which laptop was he trying to sell? xps13 got good reviews again from the verge Dec 19 20:40:16 I think one was an HP and the other a Lenovo. Dec 19 20:40:25 meh Dec 19 20:40:44 hmm, no local shops have the 5x in stock Dec 19 20:40:49 I don't think I'd touch Lenovo because of Superfish. Dec 19 20:40:56 I'd like to check it out before buying Dec 19 20:41:07 g00s: Only problem I have with that is that a 13" screens sounds tiny to me. :s Dec 19 20:41:17 xps15 :D Dec 19 20:41:18 15.6" master race over here. Dec 19 20:41:28 I don't think the 6p casing will hold up to dings Dec 19 20:43:22 g00s: They're so much more expensive than similar-spec ones. Hmm. Dec 19 20:44:01 TacticalJoke consumer reports did laptop reliability reports again recently Dec 19 20:44:10 apple came on top, then everyone else Dec 19 20:44:21 but i'd avoid the stinkers, just can't remember who Dec 19 20:44:25 Yeah, it's always Apple. Dec 19 20:44:34 they had a very low failure rate Dec 19 20:50:17 TacticalJoke http://www.consumerreports.org/laptops/laptop-reliability-by-year Dec 19 20:51:14 "On an annual basis, Apple's MacBook line suffers a collective failure rate of about 3 to 4 percent, which according to ZDNet is much lower than devices running Windows. " Dec 19 20:52:00 I see "Sign in or subscribe today to access the full article". Are you logged in? Dec 19 20:52:14 i wonder how the Surface is doing reliability wise Dec 19 20:52:16 but what is considered a failure Dec 19 20:52:17 Same if I go via Google. Dec 19 20:52:45 TacticalJoke my dad had the subscription, i read the article there. Dec 19 20:52:45 driver glitches considered a failure? Dec 19 20:52:54 repairs are failure Dec 19 20:53:16 g00s: Who are #2 and #3? Dec 19 20:53:33 yeah, but lots of repairs are software only Dec 19 20:54:23 from reading the article the other week, hardware repairs :D Dec 19 20:54:28 going on memory Dec 19 20:54:41 like, what you would get AppleCare for Dec 19 20:55:13 * g00s curious how Surface is doing, still curious about those :D Dec 19 20:55:57 anecdotally, I have had far more hardware problems with MacBook requiring physical repair vs pc laptops Dec 19 20:56:18 gpu failure particularly Dec 19 21:18:39 I tried adding android {packagingOptions{exclude 'META-INF.txt'}} Dec 19 21:18:39 to my build.gradle Dec 19 21:18:41 but gradle doesn't recognize android() Dec 19 21:22:39 Tam_Vu, does the same build.gradle have apply plugin: 'android' ? wise to have in the very first lines Dec 19 21:22:52 I just added that Dec 19 21:22:52 saapas Dec 19 21:23:06 so I'm trying to draw points on a canvas that already has two triangles. the points don't appear. should't this suffice? canvas.drawPoint(x, y, paint); my Paint has a green color and its style is fill. Dec 19 21:23:11 so I also added compileSDKVersion and buildToolsVersion Dec 19 21:23:15 to 19 and 19.1 respectively Dec 19 21:23:20 which are sort of random numbers Dec 19 21:25:12 now I get this error Error:Cause: java.io.FileNotFoundException: /Users/Tam/AndroidStudioProjects/QikTalk/src/main/AndroidManifest.xml (No such file or directory) Dec 19 21:25:39 Error:Cause: java.io.FileNotFoundException: /Users/Tam/AndroidStudioProjects/QikTalk/src/main/AndroidManifest.xml (No such file or directory) Dec 19 21:25:39 and /Users/Tam/AndroidStudioProjects/QikTalk/src/main/AndroidManifest.xml (No such file or directory) Dec 19 21:25:50 and you're sure the file exists? Dec 19 21:25:58 looks like it Dec 19 21:25:58 yes Dec 19 21:26:48 Actually the actual path Dec 19 21:26:56 seems to have anothe qikTalk in the path Dec 19 21:27:00 another* Dec 19 21:27:39 as in the actual path is /Users/Tam/AndroidStudioProjects/QikTalk/qikTalk/src/main/AndroidManifest.xml (No such file or directory) Dec 19 21:27:45 how about you create a new project in AS, it might create that file automatically to the right place? Dec 19 21:28:09 oh man Dec 19 21:28:10 but I've recreated this project so many times Dec 19 21:28:13 and I'd have to start over Dec 19 21:28:26 I just recreated this project I don't know why it would suddenly not do this Dec 19 21:28:39 like if I remove the apply plugin android and the android compile version Dec 19 21:28:41 that whole block Dec 19 21:28:46 then it builds Dec 19 21:28:46 Is there a way to search a json file and update a field where a key is equal to a value? I'm tempted to just convert the file to a string and use a regular expression since I can't seem to find a way without iterating over the whole file for every update. Dec 19 21:28:48 kind of Dec 19 21:28:56 right, then just move the file manually to where gradle/AS is looking for it. Dec 19 21:29:21 Well I'd have to add another directory path Dec 19 21:29:26 and it seems like where it is looking for it is pretty close Dec 19 21:29:41 Renari, write some code that goes through the file and does the desired changes? :) Dec 19 21:31:01 saapas, that's what I intended to do I was just wondering if there was a more simple way that I'm overlooking. Dec 19 21:31:19 not that I know sorry Dec 19 21:32:01 saapas Dec 19 21:32:09 moving the androidmanifest does not work Dec 19 21:32:15 as everything else and their relative paths Dec 19 21:32:17 are not correct Dec 19 21:33:13 Renari, sounds like you shouldn't be using json files :) Dec 19 21:33:36 Mavrik, I have no choice in the matter. Dec 19 21:33:42 why if I do not have apply plugin and android block Dec 19 21:33:43 They are preexisting and I need to edit them. Dec 19 21:33:56 it builds a large portion of my project Dec 19 21:34:00 but if I add that block Dec 19 21:34:07 it says it can't find androidManifest Dec 19 21:34:07 A database would be much more helpful. Dec 19 21:34:13 even though I'm pretty sure it's been building up the AndroidManifest up till now Dec 19 21:34:28 sounds like you have to learn it the hard way :) Dec 19 21:34:36 Renari, well, then I'm not sure how do you expect to update a file without streaming through it Dec 19 21:34:50 Grab a streaming JSON parser and go through it, there's really no other way. Dec 19 21:35:10 Regex will just be a shitty version of same solution :P Dec 19 21:35:51 very similar to this guy Dec 19 21:35:52 http://stackoverflow.com/questions/32064635/java-io-filenotfoundexception-for-androidmanifest-xml Dec 19 21:39:08 I think this saved me Dec 19 21:39:08 http://stackoverflow.com/questions/24459992/how-does-android-studio-gradle-plugin-manage-resource-files-androidmanifest-xml Dec 19 21:39:58 gradle is such a funny beast. Dec 19 21:42:38 now android studio is paused Dec 19 21:42:45 At this /Users/Tam/Library/Android/sdk/tools/emulator -avd AVD_for_Nexus_5 -netspeed full -netdelay none Dec 19 21:44:12 Man I can't resize the emulator?? Dec 19 21:45:04 not directly. Dec 19 21:45:39 what does that mean Dec 19 21:45:59 you can have it to a scale of choice, such as 10dp on device = 1px on screen Dec 19 21:46:01 It's going below my dock Dec 19 21:46:11 how do I scale it Dec 19 21:46:32 AVD manager Dec 19 21:46:37 You get genymotion. Dec 19 21:47:16 why? :P Dec 19 21:47:45 Tam_Vu: i had the same problem, couldn't find a solution, but i noticed that the new android emulator in the preview channel is resizable, so i switched to that :P Dec 19 21:47:57 in the preview channel? Dec 19 21:48:18 http://tools.android.com/preview-channel Dec 19 21:51:53 yaay my points appeared on the canvas! (although they're really circles..) Dec 19 21:54:11 saapas, because it's resizable and less problematic than AVD. Dec 19 21:54:41 aha, I thought AVD had no competitors Dec 19 21:54:58 does it have more features than AVD? Dec 19 21:56:30 "It works" is a pretty badass feature to match. Dec 19 21:56:57 ha Dec 19 21:57:08 AVD works pretty well nowadays Dec 19 21:57:51 the new one is quite nice Dec 19 21:58:11 Still has bunch of strange decisions. Dec 19 21:58:22 Like templates which don't represent realistic devices. Dec 19 21:58:30 (48MB heap on Nexus 4?!) Dec 19 21:58:43 would love it if I could run my apps on the platforms of different brands' devices Dec 19 21:59:34 would be cool if google hosted emulators on the cloud Dec 19 21:59:42 then i wouldn't need to slaughter my machine :) Dec 19 21:59:58 that, too. Dec 19 22:00:22 or go to work and buy a better machine ;) Dec 19 22:01:06 g00s, why on earth would you want something that silly :) Dec 19 22:01:24 Adding network stability issues to current emulator ones won't improve things :P Dec 19 22:02:44 Ability to run test suite on multiple devices would be fine though. Dec 19 22:02:52 Without the ridiculous pricing of current services. Dec 19 22:04:34 they already have https://developers.google.com/cloud-test-lab/?hl=en Dec 19 22:04:38 but i haven't checked it out Dec 19 22:05:26 neat https://developers.google.com/cloud-test-lab/images/CTL-physical-devices.png Dec 19 22:08:39 what is the file that you can use to view your android UI? Dec 19 22:10:05 what Dec 19 22:10:15 activity files? Dec 19 22:10:41 g00s, I wonder if they have them flashed with modified firmware to not do dumb stuff Dec 19 22:11:19 Tam_Vu, are you asking, how a certain layout looks like without using an emulator or a device? Dec 19 22:11:27 well no Dec 19 22:11:29 I am using an emulator Dec 19 22:11:36 but I just want to know how it's decomposed Dec 19 22:11:45 It honestly starts looking like you should at least do a basic tutorial on a hello world app :/ Dec 19 22:11:46 decomposed? Dec 19 22:11:47 like to me the UI looks like it's composed of a whole bunch of xml files Dec 19 22:11:55 I made a tictactoe app already mavrik Dec 19 22:12:16 right. yes. the layouts indeed are composed of a bunch of xmls Dec 19 22:12:20 which is horrible Dec 19 22:12:29 I mean, we have json Dec 19 22:12:37 lol :D Dec 19 22:12:45 json sucks too Dec 19 22:13:02 everything sucks! drink all the booze! Dec 19 22:13:08 I mean in XCode Dec 19 22:13:12 this is so much more straightforward.. Dec 19 22:13:13 what? Dec 19 22:13:16 everything sucks in xcode Dec 19 22:13:27 what is the glue Dec 19 22:13:37 xcode is kinda flaky these days, but it looks pretty nice to me Dec 19 22:13:38 what file picks out everything in the layout directory Dec 19 22:13:40 and puts it together Dec 19 22:13:49 err.. Dec 19 22:14:04 Tam_Vu time for 'android training 101' Dec 19 22:14:11 after 2 years of android development, I don't know. I don't need to. Dec 19 22:14:13 -.- Dec 19 22:14:14 oh. but for making ui I think I almost prefer the ib in xcode Dec 19 22:14:31 I mean XML.... Dec 19 22:14:38 do you literally have to write it? Dec 19 22:14:41 just like XIB files in iPhone Dec 19 22:14:43 in the old days Dec 19 22:14:54 Eplebit, IB is good for basics, but pretty much noone developing anything half serious uses it :/ Dec 19 22:15:06 Mavrik: think that has changed Dec 19 22:15:08 And putting together layout in ObjC is way worse than any Android XML :/\ Dec 19 22:15:11 Tam_Vu, no you don't need to write the xmls .. perhaps if you have a custom view Dec 19 22:15:21 Eplebit, doubt it. Dec 19 22:15:30 well, from what I read online it seems it has Dec 19 22:15:32 actually mavrik Dec 19 22:15:39 Objective C has not been used mainly for 2 years Dec 19 22:15:40 Also autolayout is rather terrible Dec 19 22:15:42 Mavrik hanging out in #iphonedev, seems the regulars still use it Dec 19 22:15:50 these are smart people Dec 19 22:15:55 I find manual writing handier than using the layout editor Dec 19 22:16:09 IB is actually what Dec 19 22:16:10 g00s, well I guess I need to tell people I work with regullary they're doing it wrong :P Dec 19 22:16:17 90% of iPhone apps are created in Dec 19 22:16:18 the UI of it Dec 19 22:16:35 Mavrik yeah, just storm into their office and proclaim "you're doing it totally wrong" and leave :D Dec 19 22:16:36 More like 40 Dec 19 22:16:44 g00s, oh I do that daily. Dec 19 22:16:50 Leave a nexus on the table. Dec 19 22:16:53 :P Dec 19 22:16:55 heh Dec 19 22:17:41 if what I'm doing is more like "designing", I use the editor. if I'm tuning / need to edit certain things quickly or know exactly what I'm doing, manual it is Dec 19 22:18:41 android or ios? Dec 19 22:18:47 WP Dec 19 22:18:55 hehe Dec 19 22:18:59 so android people Dec 19 22:18:59 http://postimg.org/image/52uqg2cxz/ Dec 19 22:19:02 I do it like saapas on ios. for android I mostly write it manually Dec 19 22:19:08 Hmm, I'm not really sure anyone created a better way of laying out stuff than XML :/ Dec 19 22:19:09 if I want to find out the color of that gray bar Dec 19 22:19:13 how do I do that Dec 19 22:19:16 Do we have better layout toolkits? Dec 19 22:19:40 Eplebit, android. Dec 19 22:20:25 no, they all suck Dec 19 22:21:20 guys? Dec 19 22:21:30 Tam_Vu go read the training Dec 19 22:21:32 Tam_Vu, you have two gray bars :D find out your theme's xml file, and look for ActionBar (the thicker one) Dec 19 22:23:19 I've managed to have two ActionBars at the same time in the same app, accidentally. Dec 19 22:25:02 so Iwhat I want to know Dec 19 22:25:08 is just Dec 19 22:25:14 you really just manually Dec 19 22:25:18 go around in all these XML files Dec 19 22:25:30 to edit and figure out what is going on in the UI? Dec 19 22:25:39 you don't just click on a UI element and it tells you the color Dec 19 22:25:40 and stuff Dec 19 22:25:43 like in XCode?? Dec 19 22:25:56 dang, I wish Dec 19 22:26:10 effing google engineers. Dec 19 22:27:24 Canvas.drawPoints() works no better than drawPoint :( Dec 19 22:27:51 no points appear Dec 19 22:38:15 Tam_Vu, are you switching to android from ios? Dec 19 22:38:21 yes Dec 19 22:38:26 well I'm porting this app to iOS Dec 19 22:38:50 why? Dec 19 22:50:12 what do you mean why Dec 19 22:50:30 what is your motivation Dec 19 22:51:41 does it make sense to use CollapsingToolbarLayout, when you aren't using a full bleed scrim, but a few Views instead ? Dec 19 22:52:11 for example, on cheeseSquare - like that, but no cheese, just a few checkboxes Dec 19 22:52:31 what's full bleed scrim? Dec 19 22:52:48 yeah i'm just parroting the docs, they don't explain half the shit they talk about Dec 19 22:53:20 common sense, they would have a diagram with all the moving parts labeled Dec 19 22:53:30 um, basket build is down to me or everyone? Dec 19 22:54:54 how I honestly see the current situation on this channel is that everyone has enjoyed some substances Dec 19 22:55:38 because it needs to run on both platforms Dec 19 22:55:47 because there are a significant market share of android devices and iOS devices Dec 19 22:55:56 less likely alternative is that I'm not familiar with the technologies you're taking about Dec 19 22:56:03 ok that's nice Dec 19 23:02:55 I was downloading an Android Lollipop ROM, it was 92.5% Dec 19 23:02:58 uh.. Dec 19 23:03:14 omg, sorry, wrong channel Dec 19 23:49:32 g00s, the scrim. is just to make typography visible over an image background Dec 19 23:51:21 https://www.google.com/design/spec/style/imagery.html#imagery-ui-integration Dec 19 23:52:16 "Scrims are lightweight, translucent material layers." aha Dec 19 23:52:51 thanks Dec 19 23:53:35 so the presence of a scrim is irrelevant for using appbar and collapsing layouts Dec 19 23:53:47 it's just a utility for the typical case Dec 19 23:55:57 hmm, maybe I should just get a 6p Dec 19 23:57:01 5x is only $70 cheaper and requires purchasing a type A to C cable for another $20ish Dec 20 00:26:32 can anyone help me with a layout problem? Dec 20 00:28:22 Why does right_container take the entire width in the following layout: Dec 20 00:28:24 < Dec 20 00:28:42 wait Dec 20 00:29:01 android:layout_width="match_parent" Dec 20 00:29:07 android:layout_height="wrap_content" Dec 20 00:29:12 android:layout_alignParentBottom="true"> Dec 20 00:29:22 android:id="@+id/left_container" Dec 20 00:29:41 android:layout_height="wrap_content" Dec 20 00:29:55 android:layout_width="wrap_content" Dec 20 00:30:00 android:background="#00FF00" Dec 20 00:30:06 android:layout_alignParentStart="true"> Dec 20 00:30:15 android:layout_width="wrap_content" Dec 20 00:30:24 android:layout_height="wrap_content" Dec 20 00:30:36 android:text="Left Container"/> Dec 20 00:30:41 Dec 20 00:30:46 android:id="@+id/right_container" Dec 20 00:30:53 android:layout_width="wrap_content" Dec 20 00:30:59 android:layout_height="wrap_content" Dec 20 00:31:00 android:background="#FF0000" Dec 20 00:31:04 android:layout_alignParentEnd="true"> Dec 20 00:31:12 android-dev310, you something like pastebin.com Dec 20 00:31:13 android:layout_width="wrap_content" Dec 20 00:31:18 android:layout_height="wrap_content" Dec 20 00:31:39 android:text="Right container" /> Dec 20 00:31:40 android-dev310, don't just paste code or no one will help you Dec 20 00:31:51 how do i do that Dec 20 00:32:03 android-dev310, pastebin.com Dec 20 00:32:15 or someother site that provides the same thing Dec 20 00:35:16 ok. i am confused with why 'right_container' takes up the entire with in http://pastebin.com/index/kVEd8sbh Dec 20 00:35:27 can anyone help? Dec 20 00:35:43 i mean "entire width" Dec 20 00:44:57 because you align parent end Dec 20 00:45:15 all items in relative layout are top and left aligned by default Dec 20 00:45:31 so you told it to take the whole width from left to right Dec 20 00:48:18 But the right_container width is wrap_content Dec 20 00:49:12 I am experiencing this weird issue with my unit tests such that when I run them using "./gradlew connectedAndroidTest" that when a test fails, i will stop the entire unit tes Dec 20 00:49:26 I'd like it to keep going regardless of whether they fail or not Dec 20 00:54:38 android-dev310, can you paste that xml to the channel again? I didn't see it the first time Dec 20 00:55:12 Sure. http://pastebin.com/index/kVEd8sbh Dec 20 00:58:47 android-dev310, read this: http://developer.android.com/guide/topics/ui/layout/linear.html#Weight Dec 20 00:59:29 Do a weighted Linear Layout Dec 20 01:00:08 Ologn, I'm aware of that but I don't want to weigh it Dec 20 01:00:14 ok Dec 20 01:00:36 Just want the left container on the left and the right container on the right Dec 20 01:01:43 The problem is that layout_alignParentEnd of the Image View screws up the layout Dec 20 01:02:09 If I remove that the containers are aligned to the left and right correctly Dec 20 01:03:26 But since I want the Image View to be at the end of the right_container I put layout_alignParentEnd="true" for Image View Dec 20 01:03:43 But it screws up the right_container and takes up the entire width Dec 20 01:05:06 why not use relative layouts Dec 20 01:05:41 sleepster, it uses relative layout. Check http://pastebin.com/index/kVEd8sbh Dec 20 01:07:14 in general relative layouts are much more expensive than any other viewgroup.. and you have them nested :) Dec 20 01:07:19 do you need them to be nested? Dec 20 01:07:28 why not just a single root relative layout Dec 20 01:07:55 and then have two TextViews Dec 20 01:08:13 on the TextView on the right, you use the drawableLeft attribute Dec 20 01:08:21 which allows you to attach an imageview to a textview Dec 20 01:08:44 android-dev310: http://developer.android.com/reference/android/widget/TextView.html Dec 20 01:08:52 look at drawableLeft attribute Dec 20 01:09:36 or even better, change RelativeLayout with single LinearLayout oriented horizontally Dec 20 01:10:00 RelativeLayouts are expensive because it has to parse the view tree twice for each view Dec 20 01:10:32 GridLayout is pretty nice also Dec 20 01:11:37 sleepster, good question. but i do need a nested layout because of a style i need to use for TextView + ImageView Dec 20 01:11:46 and PercentRelativeLayout nice too Dec 20 01:12:07 android-dev310 can you use compoundDrawable ? Dec 20 01:12:31 I dont think I can use use drawableRight because then I wont be able to access some properties of ImageView Dec 20 01:12:39 android-dev310: look at the link I sent you though Dec 20 01:12:47 TextView has drawableLeft Dec 20 01:13:00 and drawableRight which you can set an ImageView too Dec 20 01:13:25 well not the ImageView itself but the drawable within the ImageView Dec 20 01:13:42 android-dev310: so all you really need is two adjacent TextViews Dec 20 01:13:59 True. But how I set e.g. scaleType of the drawable. Dec 20 01:33:38 hi Dec 20 01:33:55 I have a search bar with a back button, how can I access it so I can have an onclick function? Dec 20 02:08:51 something about the twitter app - do you guys think its hybrid / JS / cordova kind of thing (or react, etc) Dec 20 02:11:33 Native. Dec 20 02:13:47 Hi Dec 20 02:15:25 I am writing an heart rate counter for Android Wear. I would like to display the heart beat in real time in a notification card. So far it's okay. But how can I get to close the app when I don't want to see my heartbeat anymore and also dismiss the card (which cannot be manually dismissed) ? Dec 20 02:25:14 anyone knows how to have a function when I press the up button in the search bar? Dec 20 02:28:03 yapme: What do you mean up button ? Dec 20 02:28:30 yapme: You mean shift for capital letter ? Dec 20 02:28:49 yapme: Or the arrow? Most keyboard don't have that key for sure because never saw one Dec 20 02:29:08 when I open the search bar it provides a left arrow to close it Dec 20 02:30:36 yapme: Alright, I do not have the answer but if someone does, he will better understand your question now :) Dec 20 02:30:48 yeah, you're right :) Dec 20 02:54:13 so if I am running android studio Dec 20 02:54:19 and I have a simulator going on Dec 20 02:54:27 in general if I put breakpoints in android studio Dec 20 02:54:30 they don't seem to get hit Dec 20 02:54:37 if the simulator reaches that line of code Dec 20 02:55:26 guys **** ENDING LOGGING AT Sun Dec 20 02:59:59 2015