**** BEGIN LOGGING AT Fri Dec 23 03:00:01 2016 Dec 23 03:07:49 hm https://firebase.googleblog.com/2016/12/how-does-firebase-initialize-on-android.html Dec 23 03:08:12 "But why misuse ContentProvider like this?" "But, it turns out that this is the most reliable way to automatically initialize without requiring extra code. " Dec 23 03:08:34 is this documented anywhere? i remember hearing about it, but seemed informal Dec 23 03:09:14 like communal observation Dec 23 03:43:47 howdy Dec 23 03:49:25 Hi there! Heads up: I just started Android development a couple of days ago... Dec 23 03:49:40 How would I use a FloatingActionButton with AppCompat? Dec 23 04:06:08 RavinduL: I'm not sure.. but I do know that cheese makes a poor land bridge Dec 23 05:10:12 Hi all I have a bit of an odd issue. I have an activity that loads a fragment. The fragment's view is a relative layout with a progress bar and a linear layout. the linear layout includes 2 other views and i made two xml files for portrait and landscape mode. the only difference between the two is the linear layout is set to vertical or horizontal orientation accordingly. So basically 2 square views either side by side Dec 23 05:10:12 or above/below each other depending on orientation. The issue is with an imageview i have inside one of the inner layouts. On first load it loads the img fine but after rotating the screen Glide fails saying "java.lang.IllegalArgumentException: You cannot start a load on a null Context". I'm using Glide.with(getContext()) Dec 23 05:10:20 Anyone know what might be the cause of this? Dec 23 05:25:15 anyone on? Dec 23 05:47:35 bad handling of lifecycle Dec 23 06:37:47 what are common mistakes to look for in fixing it Dec 23 06:40:33 Leeds u may find interesting https://www.amazon.com/dp/1119127238 Dec 23 06:41:58 that does look quite interesting, thanks Dec 23 06:57:27 huh, this guy says " Google has "deprecated" multi process apps. " ... sounds weird ? Dec 23 07:00:01 apps have one process but many threads Dec 23 07:00:25 thanks, squ :| Dec 23 07:00:57 :) Dec 23 07:01:16 Captain here Dec 23 07:07:46 hmm? but services can have different process eh? Dec 23 07:09:47 What are Android Libraries (AARs)? Dec 23 07:10:13 i think the name explains itself Dec 23 07:10:59 its like jar, but more specifically for android and contains resources, layouts etc. Dec 23 07:11:09 Well, I was thinking of it like, when I create an android project, do I manually create the libraries or the needed default ones load by default? Dec 23 07:13:28 you mostly define libraries in gradle. by default android studio adds the support library Dec 23 07:15:30 Are these libraries like sensitive in terms of source code? Should I hide / obfuscate the code from the end user trying to decompile the apk? Dec 23 07:15:51 <_rm> are you the one producing the AAR or is it something you're including Dec 23 07:16:04 <_rm> if you use proguard, that should take care of the obfuscating and stuff Dec 23 07:23:44 All right. Dec 23 07:28:56 c0mrade were you doing a 'security audit' or was that somebody else ? Dec 23 07:29:16 ' ' ha ha Dec 23 07:29:29 g00s: Securidy audit for what? Dec 23 07:29:57 ok i guess that was somebody else Dec 23 07:30:39 Also if I want to encrypt a piece of android code, when someone mentions that the key is dynamic what does that mean? Dec 23 07:31:16 So the key is calculated at runtime. Dec 23 07:31:31 It's nowhere to find in the code so a static analysis will fail. Dec 23 08:04:28 Hi all, is this something that works? http://stackoverflow.com/a/37484656/1723525 I have an error: 'Cannot convert string ${XXX} to target class boolean in my manifest file Dec 23 08:39:56 hi fellas Dec 23 08:52:35 can you check this file? https://dl.dropboxusercontent.com/u/19390574/just_like_wharton_intended_it_and_you_abominationized.java Dec 23 08:52:44 it includes a proposed way of working with Otto, is that sound? Dec 23 09:42:38 Odaym: https://bpaste.net/show/76dd58349257 so others don't need to download it Dec 23 09:42:48 thanks Dec 23 09:42:54 i keep looking for a good paste site Dec 23 09:43:00 pastie goes down a lot Dec 23 09:43:13 bpaste is recommended in #python Dec 23 09:43:20 why not paste straight into irc Dec 23 09:43:24 * Ashiren hides Dec 23 09:43:39 Ashiren: Because we're not horrible people :-( Dec 23 09:43:54 I mean, some of us probably are but I'm giving them the benefit of the doubt Dec 23 09:44:07 excess flood ban Dec 23 09:44:07 lol Dec 23 10:26:11 I need to know the size of a programmaticaly created view to know where to place it, but in the code the size is always zero. Do I need to inflate it? I thought that was for xml defined views? Dec 23 10:33:29 you need to postpone the timing of the call Dec 23 10:33:55 until when, raoul11? Dec 23 10:34:01 try to override onWindowFocusChanged Dec 23 10:34:16 and see if the call returns non 0 when you call it from there Dec 23 10:34:58 MarkRS, views are laid out in the layout pass Dec 23 10:35:10 that's where the actual view size is finally set Dec 23 10:35:26 before layout, there's a measure pass where the views tell the world how they should be sized to fit their content. Dec 23 10:35:44 You can manually ask for measure if you want to figure out how big non-attached view would be. Dec 23 10:35:56 I've already let the layout draw, then clicking on the area should draw the views... is that not late enough? Dec 23 10:36:13 ? Dec 23 10:36:14 Ah! That "manually ask" bit sounds promising. How do I do that? Dec 23 10:36:36 (should've said "clicking on the area defined by the layout"?) Dec 23 10:36:42 https://stackoverflow.com/questions/2827079/measuring-a-view-before-rendering-it Dec 23 10:37:32 fabulous! Thanks Mavrik (& raoul11) Dec 23 11:42:40 fabulous! Dec 23 12:03:13 hello guys how to fix this error java.lang.NumberFormatException: Invalid int: "10.99" Dec 23 12:03:35 in input i have android:inputType="number|numberDecimal" Dec 23 12:05:13 If it has decimals then it's not an int Dec 23 12:06:54 SimonVT take a look here https://dpaste.de/yiAi Dec 23 12:07:48 10.99 is not an int, that's what the exception is telling you Dec 23 12:08:24 so i want it to accept decimals Dec 23 12:08:40 https://docs.oracle.com/javase/tutorial/java/nutsandbolts/datatypes.html Dec 23 12:08:49 so do Double.parseDouble()? Dec 23 12:11:30 i am new on java guys should i past AddProductDetail.java to help me out ? Dec 23 12:13:00 look at AddProductDetail.java the line 1274 Dec 23 12:13:30 else if(Integer.parseInt(postPrice) == 0){ Dec 23 12:13:30 Toast.makeText(AddProductDetail.this, getString(R.string.price_should), Toast.LENGTH_SHORT).show(); Dec 23 12:13:30 } Dec 23 12:13:53 this is it Ashiren Dec 23 12:14:26 so change it into Double.parseDouble(postPrice) Dec 23 12:14:47 ok Dec 23 12:23:04 it works but is not creating Ashiren Dec 23 12:23:06 W/System.err: org.xmlpull.v1.XmlPullParserException: unterminated entity ref (position:TEXT @1:52 in java.io.InputStreamReader@530fdd4) Dec 23 12:23:29 oO Dec 23 12:24:29 here is the debug error Ashiren https://dpaste.de/tYJs Dec 23 12:26:35 welp i dont get it Dec 23 12:26:45 is it during compiling or running the app Dec 23 12:27:43 on running debug i tried to add a product with a decimal price succeed but not creating Dec 23 12:33:16 Ashiren do i need to past AddProductDetail.java Dec 23 12:44:45 Hi! Is there any way to view a SQLite database on the Android phone? Dec 23 13:07:52 When I have a TextView that is a label for some other view that comes after it, should the labelFor tag in the TextView have "@+id/..." because it is the first mention of the id in the xml file? Dec 23 13:09:58 totokaka: http://stackoverflow.com/questions/24731137/difference-between-androidid-and-androidlabelfor Dec 23 13:10:25 The reason I ask, is that if I have @+id/ on the label (TextView), and just `android:id="@id/.."` in the other view, android studio says it can't resolve the symbol when I use DataBinding classes. However, if I do the opposite, and use the + on the id definition, I get a compile error Dec 23 13:10:25 I already looked at that Dec 23 13:11:05 The accepted answer uses + in both places, but I can't see why that would be correct. And besides, Android studio still gives me the same error Dec 23 13:11:25 I have no experience with databinding, sorry Dec 23 13:12:28 I suspect this is just an android studio issue, though, as it compiles just fine as long as at least the first mention of the id uses the + Dec 23 13:12:45 Thanks for trying to help out, though, Melatonina Dec 23 13:26:03 hi, i am trying to compile a jni library written in c++. i am getting "undefined reference to 'getObjectField'" error while linking. which library should i link it with? Dec 23 13:28:06 hi, I would like to ask something about image scaling. If I have image loaded by HTML in TextView, is there some possibility, how to scale this image by scale gesture? Thanks Dec 23 14:54:34 <|\n> hello, playing with android for the first time i've made some x86 tablet working on ver. 7 however i'm having hard times to find out where is my adb so i could install some apk, apparently it is not present, do i have any options? debian jessie aside in dualboot could possibly help me Dec 23 15:10:53 Hello, i have a project which uses Android.mk for building and importing other native libraries. in Android.mk, importing a library make sure that the library is build and available. Dec 23 15:12:42 but, i was looking at https://developer.android.com/ndk/guides/cmake.html and https://developer.android.com/studio/projects/add-native-code.html it dont seems to specify how to import my libraries. (import libraries that are not provided by android - but im providing them). Dec 23 15:13:33 doing, $(call import-it,$(LIBUSB_PATH),android/jni) make sure that the library is build and available for linking. anything such in cmake? (note: libusb isnt provided by android) Dec 23 15:34:08 import-it = \ \n $(call import-add-path,$(shell dirname $(1))); \ \n $(call import-module,$(shell basename $(1))/$(2)) Dec 23 15:35:08 basically, im looking for import-module equivalent in CMake. Dec 23 15:43:15 danalbert, hey Dec 23 15:43:58 hello. just got a new phone and I have some chinese signs on menu and he symbols keyboard is strange. https://drive.google.com/drive/u/0/folders/0Bz543nSyVRWJeWZhQXEyMzFrR1k after that I had the same type of phone (samsung galaxy c5), which did not had any of this problem(normal keyboard, no chinese), but couldn't send messages so I send it back and they gave me a new one. what can I do ? I want the "classic" samsung keyboard and no chinese. should Dec 23 15:43:58 being original, legit ? Dec 23 16:01:10 off topic the best thing about being new to android and watching old dev videos.... When they say the future of android I can just google it and its there. similar to time travel..ehh Dec 23 16:13:32 hi everyone, I am working with a gridlayout and one of my EditText's within the layout I want to fill its particular cell, however match_parent gives the width of the whole grid layout which makes it expand beyond its cell. I have looked online but a lot of the help seems to be evenly distributing the cells which is not what I am looking for Dec 23 16:13:45 I just want a single particular cell to fill its cell (width) Dec 23 16:19:21 ill be going offline but ill check logs later if anyone has suggestions Dec 23 16:24:31 In Android.mk, i can do "import-module" to use a shared library that i have written. in the Android CMake, what is the equivalent of "import-module"? Dec 23 17:23:10 what's the data structure of a path? Looking at it in the debugger, can I see its structure? Dec 23 17:47:26 Hi i have some problem with manifest merge. Dec 23 17:47:26 2 module: app, library Dec 23 17:47:26 "library" has an activity CameraActivity Dec 23 17:47:26 "app" has activity that extends CameraActivity Dec 23 17:47:26 when app run in debug it works but in release i have this problem: Dec 23 17:47:27 http://pastebin.com/f88LQvQB Dec 23 17:50:44 devuser, due to proguard. (just a guess) Dec 23 17:50:51 (due to proguard? Dec 23 17:50:55 *due to proguard? Dec 23 17:51:08 Proguard is disabled Dec 23 17:51:53 I use minifyEnabled false for this releae Dec 23 18:30:58 any clever android freelancers in here? I have a webview app working great... i want to add QR scanning to the mix. see plenty of guides and libraries already made but so much faster to just pay someone to add this part for me. Just need the text value of a QR scan returned to running PHP code/webview app Dec 23 18:58:35 how can i remove space between my columns when using a gridlayout? Dec 23 19:16:14 Does anyone know if there's an RxJava channel/irc somewhere? Dec 23 19:16:32 What is best to put a list in a bundle. a Serialized object of parcelable? Dec 23 19:16:54 I have a question pertaining to Rx... perhaps someone here can answer it: http://stackoverflow.com/questions/41306706/whats-the-idiomatic-way-of-doing-recursive-network-calls-in-rxjava-reactive-wor Dec 23 19:22:09 Hey, is it okay to ask for support here? Dec 23 19:25:00 what kind of support Dec 23 19:25:16 hopefully not material Dec 23 19:27:14 Is there anywhere more active where I could ask for help? Dec 23 19:32:48 einzige: do you need money? Advice for romantic matters? Spiritual guidance? Dec 23 19:34:36 einzige: hint: asking questions like "Can I ask for support?" "Can anybody help me?" "Does anybody know about X?" is considered wasting other people's time and thus impolite. Dec 23 19:35:29 einzige: while you would like a more active place, other people would like to read concrete questions. Dec 23 19:40:36 Hi. Do you know if there's a gui for sdkmanager on linux? Dec 23 19:59:58 My mistake, Melatonina Dec 23 20:00:41 I know it's bad for to ask to ask Dec 23 20:00:54 I didn't mean to criticize this channel, I was just wondering Dec 23 20:01:09 I will take my question elsewhere Dec 23 20:01:58 You just had to ASK your question at least ONCE. Dec 23 20:02:00 Good luck Dec 23 20:06:44 Melatonina: I also realized that my question was probably a bit broad in scope to ask on IRC. Sorry for the frustration I might have caused Dec 23 20:07:24 Ok Dec 23 20:07:41 Anyway, the answer you are looking for is Dec 23 20:08:56 Thanks again, Melatonina! Dec 23 20:10:46 Really looking forward to future interactions with the android development community! Dec 23 20:17:05 HELP Dec 23 20:17:31 Hi, I have questions about Android development.. Can you help me? Dec 23 20:20:28 android-dev422: What's your question? I'm not very knowledgeable but I might now something Dec 23 20:22:11 First, I have a service with the interface LocationManager implemented. Dec 23 20:22:50 I try to run the locationListener but it's killed by the OS.. Dec 23 20:23:17 After 7 request it was killed by the os.. Dec 23 20:24:27 In the service and more precise in the method onLocationChanged I try to end the listener but it was running coutiniously Dec 23 20:24:42 And then killed by the OS Dec 23 20:24:56 Hello, anyone knows how to explore android real device contents? I don't want to use Android File Transfer because it pops up every time I plug it and it's too annoying, on mac btw Dec 23 20:28:16 Anyone? Dec 23 20:32:08 RxMcDonald: wrong channel Dec 23 20:32:16 Melatonina: ? lol Dec 23 20:32:36 lol Dec 23 20:33:06 I think they might mean your question is better suited to #android, but I'm not sure Dec 23 20:36:28 I have a question.. First, I have a service with the interface LocationManager implemented. I try to run the locationListener but it's killed by the OS.. After 7 request it was killed by the os.. In the service and more precise in the method onLocationChanged I try to end the listener but it was running continuously And then killed by the OS. Can you help me? Dec 23 20:38:25 Well, did you read documentation on services yet? Dec 23 20:39:33 thanks for your answer.. yes I did it.. and my service is running. but the locationListener is killed by the OS. Dec 23 20:40:49 Do you actually need it? Dec 23 20:40:56 Before you even continue. Dec 23 20:41:02 Since that will kill the battery in matter of hours. Dec 23 20:43:32 Is not the same with an http request? I want to get one request every 15 minutes not less Dec 23 21:16:57 Question. i have a fragment that onCreateView it sends an broadcast to a service. and then receives a list to show on a listview. but it also has to update the list when that same broadcast is sent. How can i do that without too much replicated code? Dec 23 21:40:17 http://dpaste.com/1TV6CXA how the hell is that android tell me i dont have a column named correct_answer Dec 23 22:03:23 How can i acess a sqlite database i am creating in my phone to if it is creating the stuff correctly? Dec 23 22:04:01 man, just got a 4k monitor finally: wow Dec 23 22:04:05 so many pixels Dec 23 22:10:49 pfn, <3 Dec 23 22:11:01 got a 27ud68 Dec 23 22:11:40 Yeah Dec 23 22:11:52 I just kinda wish someone would make an ultrawide with that DPI :/ Dec 23 23:09:05 http://stackoverflow.com/a/40874675/1500988 and $sdk/licenses i have no such directory. Dec 23 23:09:07 Warning: License for package CMake 3.6.3155560 not accepted. Dec 24 01:09:51 Its true that onResume & onStart always get called after onCreate? Dec 24 01:10:32 if you have to think about it - don't make any assumptions **** ENDING LOGGING AT Sat Dec 24 03:00:00 2016