**** BEGIN LOGGING AT Sun Jun 28 02:59:58 2015 Jun 28 03:00:34 george3 if you really want to go the usb route, Chainfire or dragorn might know .. .hard to catch them though Jun 28 03:00:55 good luck ;) Jun 28 03:02:20 who are they Jun 28 03:02:44 george3 busy smart people :) Jun 28 03:03:09 george3: and here is some info on getevent: http://stackoverflow.com/questions/24062545/getevent-and-pointer-location looks like that's what you want want to find the x/y values using adb. Jun 28 03:03:42 do they have email address I can ask them through Jun 28 03:05:02 george3 lol no, if you are lucky maybe here Jun 28 03:11:05 Ughh, Chipotle really needs to bring back carnitas. Jun 28 03:11:46 oops, didn't mean to type that here. haha Jun 28 03:22:44 hello there. i have a question. i am going to be an app that is going to handle some data. user's names, passwords, etc. and some other data such as the books they like etc. these things will be stored in a server. how do i set up a way so that the app communicates in the server and what framework do i put up on the server? Jun 28 03:23:24 so a few ideas would be if i made a web page and put it up somewhere and let the app log in then jsoup to parse the webpage and get the info Jun 28 03:25:23 basically how would an app communicate with server side functions Jun 28 03:25:29 GitGud set up a web service, http, json, rest , etc Jun 28 03:25:45 use retrofit on android; server side, whatever ;) Jun 28 03:25:54 retrofit? Jun 28 03:25:55 hold on Jun 28 03:26:05 holding Jun 28 03:26:35 lol Jun 28 03:26:38 :D Jun 28 03:26:39 ok Jun 28 03:26:50 first of all, thank you for responding to my question Jun 28 03:27:40 secondly, if i may ask a follow up. g00s do i need to use dropwizard to create the web service that you were talking of? i mean, couldn't i just use jsps and servlets. it is simple but needs to be secure Jun 28 03:28:39 GitGud i'm losing touch with server side these days, can't recommend a framework there Jun 28 03:28:56 is there anyone who can? Jun 28 03:30:58 i'll wait patiently Jun 28 03:31:28 Anyone know why my PreferenceFragment is not styled using appcompat? I have a viewpager with 3 tabs and each hosts a PreferenceFragment. The activity extends AppCompatActivity. Jun 28 03:32:25 * note styled on pre-L Jun 28 03:32:29 * not Jun 28 03:32:49 anyone? Jun 28 03:32:55 GitGud look at jetty Jun 28 03:32:56 :( Jun 28 03:33:05 g00s, ok thank u Jun 28 03:33:06 :) Jun 28 03:39:48 hmm.. what am I doing wrong. Even if I use AppCompatDelegate it doesn't style the PreferenceFragment Jun 28 03:39:49 https://chromium.googlesource.com/android_tools/+/7200281446186c7192cb02f54dc2b38e02d705e5/sdk/extras/android/support/samples/Support7Demos/src/com/example/android/supportv7/app/AppCompatPreferenceActivity.java Jun 28 03:40:03 * surf2b1 scratches head Jun 28 04:01:16 is there a good service to promote an app for free? Jun 28 04:09:08 GitGud maybe also check out https://jersey.java.net/ Jun 28 04:09:51 i'm trying to set up jetty Jun 28 04:09:55 i think it is what i need Jun 28 04:12:47 hm i think you want jersey for jax-rs Jun 28 04:13:28 GitGud something like http://sangupta.com/tech/rest-server-with-jetty.html Jun 28 04:13:41 can anyone help me? I'm trying to check if firebase getauth() returns anything Jun 28 04:13:42 so that would be jetty + jersey Jun 28 04:13:46 i'm getting frustrated :( Jun 28 04:42:34 g00s, so which framework would help my app communicate with the server in getting data? Jun 28 04:42:42 and how would the server even send the data back? Jun 28 05:04:39 GitGud: If you're a beginner about servers, I recommend DropWizard over Jetty+plugins, easier to set up Jun 28 05:04:55 dropwizard is easier? Jun 28 05:04:56 :P Jun 28 05:05:01 ok Jun 28 05:05:24 CedricBeust, but how would the android app and the server communicate? give me a keyword :P Jun 28 05:05:34 java server side is so awfully convoluted Jun 28 05:05:47 GitGud: the client sends a request to the server, the server responds Jun 28 05:05:52 for the client, I recommend retrofit Jun 28 05:06:02 GitGud, fastest way to get started : use appengine Jun 28 05:06:03 retrofit on android? Jun 28 05:06:13 pfn: Maybe I'm used to it but I don't find it convoluted, at least considering the complex problem that a backend represents Jun 28 05:06:22 CedricBeust, does the server respond in the form of a webpage back? Jun 28 05:06:27 GitGud: Yes, Retrofit on Android. Easiest way to send queries to yoru server Jun 28 05:06:40 CedricBeust, compared to stuff like wsgi and php... convoluted Jun 28 05:06:44 and then the app uses jsoup to parse returned webpage? Jun 28 05:06:53 and thats where the data is stored? Jun 28 05:06:53 GitGud: No, it typically responds JSON, or if you're more sophisticated, protobuf Jun 28 05:07:00 JSON ? Jun 28 05:07:01 sigh Jun 28 05:07:06 so many buzz words i have to learn Jun 28 05:07:17 GitGud: If you've never heard of JSON, you have a long road ahead... Jun 28 05:07:18 gitgud Jun 28 05:07:37 do like your nick suggests Jun 28 05:08:27 appengine runs php Jun 28 05:08:38 ive heard of it Jun 28 05:08:51 but this is not the type of stuff i did before Jun 28 05:09:03 i did mostly scraping Jun 28 05:09:21 JakeWharton, eh? no it doesn't, python, Java and go Jun 28 05:09:35 https://cloud.google.com/appengine/docs/php/ Jun 28 05:09:58 wow, that's a 180 Jun 28 05:10:09 a few years ago, they basically said never Jun 28 05:10:48 is there a way to say List (a type that implements X and Y) ? Jun 28 05:10:49 I'm disappointed that they gave in, 😞 Jun 28 05:11:14 t extends x & y Jun 28 05:11:21 g00s: Yes, List Jun 28 05:11:55 i'm having trouble with: private static final HashMap clients = new HashMap<>(); Jun 28 05:13:07 this is embarassing :( Jun 28 05:13:26 ? extends x & y then Jun 28 05:14:02 on the '&' it says '>' or ',' expected Jun 28 05:17:02 bah, language spec says not supported Jun 28 05:17:55 final class FooMap extends HashMap {} Jun 28 05:18:29 thanks JakeWharton Jun 28 05:21:45 interesting SO entry about it http://stackoverflow.com/questions/6643241/why-cant-you-have-multiple-interfaces-in-a-bounded-wildcard-generic Jun 28 05:23:05 ok so basically, set up server with drop wizard Jun 28 05:23:10 send requests with retrofit Jun 28 05:23:11 got it Jun 28 05:23:32 get response json and parse it Jun 28 06:07:13 in my gradle build, I have 3 different flavours for the different build types. I want to allow installing all simultaneously Jun 28 06:07:40 so I added to each flavour applicationId = "com.my.package.ADDED_VALUE" Jun 28 06:07:56 but they still install one over the other Jun 28 06:25:19 hey thepoosh Jun 28 06:25:25 hya Jun 28 06:27:28 interesting, SharedPreferencesImpl#notifyListeners() checks to see if its running on the main thread, and if not, calls itself on the main thread O.o Jun 28 06:28:06 o.O Jun 28 06:28:56 g00s: it's a well known pattern Jun 28 06:29:06 thepoosh really ? Jun 28 06:29:22 i thought its kinda weird Jun 28 06:29:42 if (Looper.myLooper() != Looper.getMainLooper()) {runOnUiThread(runnableThatCallsSelf)} Jun 28 06:30:00 yeah i haven't seen that often Jun 28 06:30:04 idk why this happens to the SharedPreferencesListener Jun 28 06:30:11 never did it myself :) Jun 28 06:30:11 we have it in some places Jun 28 06:30:20 thepoosh last post on glide engineering blog is 2013, whats up with that Jun 28 06:30:31 we never went into it Jun 28 06:30:35 not sure why Jun 28 06:30:38 yeah no kidding :D Jun 28 06:30:43 :D Jun 28 06:30:50 it's an iOS thing? Jun 28 06:30:57 or maybe a Node.JS Jun 28 06:31:06 anywho, http://stackoverflow.com/q/31096822/1056359 Jun 28 06:31:32 lol you got a -1 Jun 28 06:32:35 i see Jun 28 06:32:38 dunno why Jun 28 06:32:43 seems like a legit question Jun 28 06:32:57 no documentation saying this is not going to work like that Jun 28 06:33:42 the docs seem to be in favour of my question Jun 28 06:35:14 thepoosh maybe try what jake did here https://github.com/JakeWharton/u2020/blob/master/build.gradle#L71 Jun 28 06:35:25 lines 71, 75 Jun 28 06:41:51 g00s: that was the initial try, it seemed more elegant Jun 28 06:41:57 but didn't work Jun 28 06:42:01 same result Jun 28 06:42:22 it's more an issue of us fucking up our own servers by installing one over the other Jun 28 06:42:31 I'll change the keystore aliases now Jun 28 07:33:36 https://github.com/android/platform_packages_apps_calendar Is this the updated source of aosp calendar app? it uses a lot of deprecated methods :/ Jun 28 07:41:59 yoavst dunno, the google calendar app is not aosp Jun 28 07:42:03 anymore Jun 28 07:42:23 g00s: I know, but I need to show agenda, and it should work, right? Jun 28 07:42:44 https://github.com/android/platform_packages_apps_calendar/blob/master/src/com/android/calendar/Event.java Jun 28 07:44:40 It even support repeating events, which I always had problem with. Jun 28 09:30:03 I have posted my question here http://stackoverflow.com/questions/31094178/how-to-convert-library-uneditable-java-class-files-into-editable-java-files. Anyone able to help? Jun 28 09:58:45 I have posted my question here http://stackoverflow.com/questions/31094178/how-to-convert-library-uneditable-java-class-files-into-editable-java-files. Anyone able to help? Jun 28 10:08:51 well Jun 28 10:13:24 android don’t support eclipse any more? Jun 28 10:16:56 I think they're officially ending support at the end of this year - but they've pretty much left it behind now, year Jun 28 10:29:24 I have posted my question here http://stackoverflow.com/questions/31094178/how-to-convert-library-uneditable-java-class-files-into-editable-java-files. Anyone able to help? Jun 28 10:30:16 hello Jun 28 10:30:59 I need to write a method that start another activity, and I want it to be callable from within the UI thread and outside the UI thread. will this work: http://stackoverflow.com/questions/6274653/how-to-start-an-activity-from-a-thread-class-in-android/16739778#16739778 Jun 28 10:31:38 try it ... Jun 28 10:32:09 I can't for the life of me figure out why my spinnertext is white. All examples have black text. I even tried to changed the theme from Theme.AppCompat.Light.NoActionBar to Theme.AppCompat.NoActionBar Jun 28 10:33:02 barq: I have found where do I start my service. :D Jun 28 10:33:19 demahum: Good. How did you solve it? Jun 28 10:33:32 barq: But I have another problem now. You may check it here: http://stackoverflow.com/questions/6274653/how-to-start-an-activity-from-a-thread-class-in-android/16739778#16739778 Jun 28 10:33:50 barq: No no no... Not that one... Sorry.. Jun 28 10:33:57 barq: This one: http://stackoverflow.com/questions/31094178/how-to-convert-library-uneditable-java-class-files-into-editable-java-files Jun 28 10:34:10 barq: I did not solve it yet... Jun 28 10:34:26 demahum: Where did you start your service then? Jun 28 10:35:13 barq: It is started from within one of the files in the dependency... But the dependency is uneditable. I have to make it editable. Jun 28 10:35:35 paulo_: Have you tried it? Jun 28 10:35:52 demahum: Is the code open source? Jun 28 10:35:58 demahum: not yet Jun 28 10:36:01 barq: Yes. I have the source. Jun 28 10:36:10 barq: Then just edit the source. Jun 28 10:36:48 barq: But the problem is that when I import the source in form of .jar (uneditable) it works perfectly, but I cannot change anything in Android Studio. Jun 28 10:37:02 barq: But when I import the source into Android Studio directly, project does not work anymore. Jun 28 10:37:07 hi Jun 28 10:37:07 demahum: A jar is not the source. Jar is binary. Jun 28 10:37:14 Hi. Jun 28 10:37:14 barq: Althought nothing has changed, everything is the same. Jun 28 10:37:33 demahum: By source I mean code. Do you have access to the code? Jun 28 10:37:46 barq: I know I know. :) As I said, I have the source code. I compile .java classes and generate .jar. Jun 28 10:38:07 demahum: Where is the problem then? Jun 28 10:38:10 http://pastebin.com/3svaYCKX i want to add where in the query Jun 28 10:38:24 SQLiteQueryBuilder help? Jun 28 10:38:33 barq: The problem is that I want to edit these classes directly in Android Studio. Jun 28 10:38:50 i tried using where in third place does not work Jun 28 10:38:53 barq: When I compile and import, it works. Without compiling, only the source does not work. :/ Jun 28 10:39:03 demahum: Then import the source to AS. Jun 28 10:39:12 barq: I did that, as I said. Jun 28 10:39:17 trying to link a native application, but it wants to link to 'crt1.o' aka crtbegin.o I assume? Jun 28 10:39:19 barq: But it does not work then. Jun 28 10:39:37 demahum: I cannot help without more specific information. Jun 28 10:39:56 barq: http://stackoverflow.com/questions/31094178/how-to-convert-library-uneditable-java-class-files-into-editable-java-files Jun 28 10:40:05 barq: I have posted the question there. Jun 28 10:40:14 why is it looking for beginning files that don't exist Jun 28 10:40:17 anon_555: Have a look at http://stackoverflow.com/questions/3271740/how-to-add-where-clause-to-query-on-android Jun 28 10:40:25 Using NDK gcc, and nothing fancy. Jun 28 10:40:30 You can find the source on the links attached. Jun 28 10:40:51 demahum: You already got an answer. You need to decompile the class if you don't have access to the original code. Jun 28 10:41:18 barq: And I said in the comment that that is not the answer. I have the original code already. Jun 28 10:41:39 demahum, edit the original code, recompile, use modified jars? Jun 28 10:41:51 This ^ Jun 28 10:42:15 demahum: Then you asked the wrong question. The answer to your question is correct. Jun 28 10:42:19 now if only someone could tell me why android GCC looks for the wrong set of CRT files \o/ Jun 28 10:43:12 Kitt3n, barq: That is approach that is working. But that is so tiring. I mean, I have to edit the classes, recompile, and then to import all of that just to test. If it does not work, all over again. There must be a way to import all these sources directly and to make it work that way. So they are editable in Android Studio. Jun 28 10:43:41 demahum: Just import the sources and use those as a dependency. Jun 28 10:44:06 barq: Already did. It does not work. Jun 28 10:44:13 Why not? Jun 28 10:44:33 It shows bunch of errors that it usually does not (when I import .jar directly). Jun 28 10:46:23 demahum, get to the point and show us the error messages. Jun 28 10:47:57 Kitt3n: I can, but I believe it will not help. Because these error messages are not shown when I import the .jar. And I even tried to solve all of these errors, which I did, but then the app does not work as it should. Jun 28 10:49:32 demahum: Then you are doing it wrong. Jun 28 10:50:08 demahum: A jar is just a package. If you can reproduce how this package is created then you can edit the source and use that. Jun 28 10:50:34 demahum, don't come here asking questions, then say you're not going to show us the bloody errors you get. Jun 28 10:51:49 barq, Kitt3n: Just try to do it on your own. It will take you 5 minutes to download the source and test the app. Jun 28 10:53:07 You want us to do the work instead of reproducing and pasting the errors here yourself? Jun 28 10:53:21 ^ Jun 28 10:54:21 barq, Kitt3n: It would be much faster for you and for me. Up until now, you could already see what I am talking about. Jun 28 10:54:39 demahum: It would be easier for you, not for us. Jun 28 10:54:45 I am not going to go reproduce YOUR problem Jun 28 10:54:54 ^ Jun 28 10:55:04 demahum: You can provide pastes and screenshots for us to look at. Jun 28 10:55:47 Kitt3n, barq: Ok. Let's do it that way. Jun 28 11:17:45 Has anyone got Google APIs to work properly with Genymotion? Jun 28 11:23:39 Kitt3n: barq: Thanks however. :) Jun 28 11:23:42 Where can I find out some info on file-access restrictions? I'm trying to access some files on the internal phone storage (since the S6 has no sd-card anymore) Jun 28 11:24:31 ismithers: Rooted? Jun 28 11:24:53 No just a regular device. Jun 28 11:24:55 ismithers: #android-root #android Jun 28 11:26:49 I don't want to root the phone and why would #android be more appropriate than here? Jun 28 11:27:05 ismithers: Is this a development question? Jun 28 11:27:38 What else would it be? Jun 28 11:28:15 Cracking Jun 28 11:29:40 Why would I join #android-dev then?! Jesus. Why is this so difficult... Jun 28 11:29:56 I have an app. The S6 phones have no sd-card anymore, so its all internal phone storage - thus, the question was born. Jun 28 11:36:03 presumably these are your own files? Jun 28 11:37:35 Yes. Previously we shipped files and the apk on a sd-card, as this is a prototype app. But now we need to get it working on the S6. Jun 28 11:37:53 Its OK I'm reading this http://developer.android.com/guide/topics/data/data-storage.html#filesExternal Jun 28 11:42:41 I'm having a weird error in the IDE. I'm overriding the onBackPressed, and trying to call a .cancel() method. http://pastebin.com/kZzUVRcc Jun 28 11:42:43 line 143 Jun 28 11:43:17 I'm getting "Non-static method cancel() can not be referenced in a static context." Jun 28 11:43:18 paulo_: What is the error? Jun 28 11:43:23 is onBackPressed static? Jun 28 11:43:56 onBackPressed is not static, as far as I know. Jun 28 11:44:06 paulo_: cancel() is not static, but you are trying to call it in a static way. Jun 28 11:44:21 oh Jun 28 11:44:23 thanks :) Jun 28 12:00:06 lol, now I know that 'context' is relevant. still no clue what its for though :p Jun 28 12:04:27 How can I send a parameter with my JSONArrayRequest? I want to transmit my versionCode and get a response depending on that. Jun 28 12:09:24 JSONRequest* Jun 28 12:10:18 barq, using POST? Jun 28 12:10:52 saapas: Right now I have a get request, but want to modify it to contain some information about the app version. Is this possible with get? Jun 28 12:11:25 barq, http://www.json.org/JSONRequest.html using post you can set whatever data into the request body -- the 'send' parameter. Jun 28 12:12:38 saapas: So I can still get the same response as in the get, but add additional info from the requester with post? Jun 28 12:14:07 barq, yes, IF the server software has been configured so. Jun 28 12:14:57 http methods like get and post are language independent, but what they do is totally up to the server software :) Jun 28 12:15:18 But I could not send this information with a get request? Jun 28 12:15:43 barq, using GET you can send data only in the URL. Jun 28 12:15:46 http://www.w3schools.com/tags/ref_httpmethods.asp Jun 28 12:15:55 this is out of android scope somehow Jun 28 12:16:25 So I could add something like ?version=7 to the url Jun 28 12:16:35 or &version=7 Jun 28 12:16:42 depending if you have other params Jun 28 12:16:43 barq, you should read the server documentation to find out, rather than write code just to see what works and what doesn't Jun 28 12:17:01 saapas: The server will be adjusted, just needs the info in some way. Jun 28 12:17:09 ok Jun 28 12:18:02 in REST APIs post is used for inserting data, and get for querying data Jun 28 12:18:39 I'm querying data, just need to send some parameters in order to get the correct data. Jun 28 12:18:46 sounds like get Jun 28 12:19:31 So if I have url://myurl.com?name_of_string=10&version_code=7 that would work? Jun 28 12:19:58 if the server supports that. Jun 28 12:20:20 OK, thanks. But it would not be url://myurl.com?name_of_string=10?version_code=7 Jun 28 12:20:26 Not sure when to use ? and when to use & Jun 28 12:20:52 ? begins the "query part" Jun 28 12:20:59 ok Jun 28 12:20:59 & is the parameter delimiter Jun 28 12:21:18 this is the standard more or less, and can also be configured. Jun 28 12:21:32 you can probably send a small base64-encoded image there. Jun 28 12:23:58 Thanks Jun 28 12:25:15 Hmm, my SherlockFragmentActivity is not finding getPackageManager Jun 28 12:26:05 do you need compatibility libraries like that one? Jun 28 12:26:39 I will get rid of it soon. Jun 28 12:26:44 ;D Jun 28 12:27:10 But if I extend that the context should be there for getPackageManager, shouldn't it? Jun 28 12:27:32 I get a NameNotFoundException. Jun 28 12:28:22 now this is unfamiliar territory for me, but ... I would find out what classes have that getter and then figure out how to use that class. if it's in the context, then just pass the context to your sherlock Jun 28 12:29:46 2 hours you ask question barq :) Jun 28 12:29:59 adq: Huh? Jun 28 12:30:20 nothing wrong with asking, but you might need to consider learning and searching by yourself from time to time, otherwise you will always depends on the assistance of others Jun 28 12:30:49 adq: It's only been 26 minutes. Jun 28 12:30:54 I was answering questions before. Jun 28 12:31:12 I really do appreciate your help here, though. Jun 28 12:31:21 oh you right Jun 28 12:32:04 for getPackageManager i have no idea, especially with ABS Jun 28 12:33:32 probably the context is wrong Jun 28 12:33:42 because it's a very old stable api, it should not fail Jun 28 12:42:40 Or I could just use BuildConfig.VERSION_CODE I guess. Jun 28 12:51:35 hello, i have this fragment layout http://pastebin.com/gtF2jPNh inside the fragment that inflate this layout i have another fragment that i add to home_featured_tours framelayout, the problem is when the +id/wrapper's height is wrap_content i the another that goes to +id/home_featured_tours container is gone, but if i put some values in +id/wrapper's height its not gone ... Jun 28 12:53:19 if you have a screen with several tabs which are different activities. is it possible to put the tabhost in the main activity and from there call the different activities to appear in a the 'contentview' or does every activity need to have a tabhost and depending on the activity view I populate the conentView? Jun 28 12:53:44 Has anyone come across this error when running a unit test? java.lang.NoClassDefFoundError: android/os/Parcelable Jun 28 12:56:03 alexfu: google seems to think so: http://stackoverflow.com/questions/29265534/exception-running-junit-tests-with-androidstudio-java-lang-noclassdeffounderror Jun 28 12:56:26 yea, that doesnt help Jun 28 12:59:13 alexfu: maybe you should reformulate your question Jun 28 13:02:29 gavit: by the way... your tab screens should not be each be separate activities Jun 28 13:05:02 alexfu: how do you determine what an activity is? I agre that if it's like a browser tab it should be 1 activity, but if it's like a router settings webpage it would have different activities wouldnt it? Jun 28 13:21:25 Any tips for a android coding newbie in golang? Jun 28 13:22:57 playstore uses a drawerlayout, and in there it seems to have different activities(store home, people, my account). Does one need to recreate the drawerlayout in every activity? Jun 28 13:23:23 or can one just 'start' the activity in the content window Jun 28 13:24:25 pressure679: learn Java? Jun 28 13:40:13 Leeds: I can java, but java makes some limitations on HW usage Jun 28 13:40:30 uh-huh... Jun 28 13:40:42 OSI-model lvl 4 and lower to be specific Jun 28 13:41:58 right... Jun 28 13:44:07 not really Jun 28 13:44:25 OS is the one that will make you issues about layer 4 and lower Jun 28 13:46:20 p_l: But jnetpcap cannot activate monitor mode on a network card, even is the OS is able to do this. Talking about jnetpcap, if what you say is possible, then I am to create a shared object from the jnetpcap library Jun 28 13:46:54 jnetpcap: winpcap wrapper for java Jun 28 13:47:43 pressure679: android won't let you :) Jun 28 13:48:18 p_l: sry, not jnetpcap, but maybe pcap4j? - I am to use golang in either case. Jun 28 13:48:38 But go1.5 with android support is first released in august :/ Jun 28 13:50:56 pressure679: you're nit going to go far with Go on Android Jun 28 14:01:31 CedricBeust: come on, we all know that Android Nougat (I can't think of any other N...) is going to be "All Go, all the time!" Jun 28 14:03:45 seriously, half the categories on https://en.wikipedia.org/wiki/List_of_desserts don't even have an N section :) Jun 28 14:05:17 http://android-developers.blogspot.co.il/2015/06/an-update-on-eclipse-android-developer.html Jun 28 14:05:19 AHHHHHH Jun 28 14:28:04 lol Jun 28 14:28:38 Yeah it makes me sad Jun 28 14:29:37 also, you should know I am a silly potato Jun 28 15:02:19 If I have a warning or error when I hover over something in AS, how can I copy that to clipboard? Jun 28 15:03:23 am I correct to understand that its better to place as much 'stuff' in xml rather than in code? Jun 28 15:03:51 Didn't we already have this discussion 2 days ago? Jun 28 15:09:10 Anyone have an idea how to solve this problem with Google MapView https://code.google.com/p/android/issues/detail?id=172412 Errors shown in AS even though it compiles fine. Jun 28 15:14:09 hello guys, I'm having a hard time understanding why my arrayAdapter.notifyDataSetChanged only updates its listview starting second time Jun 28 15:18:30 Hey. Question, are regular USB joysticks supposed to work? Jun 28 15:19:33 ... can someone suggest an application that I can use to test if the joystick works? Jun 28 15:30:27 hi, im having a weird case of nullpointer exceptions. barebones java it works without issue but when i try using it with android thats when i get all the errors https://bpaste.net/show/b8094eb13bc4 Jun 28 15:30:45 error log https://bpaste.net/show/93b92ef533b5 Jun 28 15:33:27 so whats line 60 in MainActivity.java ? Jun 28 15:34:02 if(!currentUser.inGroup){ Jun 28 15:36:49 lemg_mx: my user class https://bpaste.net/show/56d763ca3ae3 Jun 28 15:39:28 hello guys, I'm having this problem with my arrayadapter that has a list of checkboxes Jun 28 15:39:31 are there good alternatives to Crashlytics? Jun 28 15:39:37 there site gives me headache Jun 28 15:39:38 https://gist.github.com/raul782/ea1e9981c14aedd88b4e Jun 28 15:39:53 If I use Google Maps API, do I need to specify metadata in my manifest? Jun 28 15:40:03 It works but the second time I select a checkbox Jun 28 15:40:42 so the logic is that if I select the second checkbox, the first should be selected too Jun 28 15:41:08 this behavior is only working when I select the second checkbox the second time Jun 28 15:42:13 I'm using a viewholder and notifyDataSetChanged Jun 28 15:42:23 something that I'm missing here? Jun 28 15:45:04 so your currentUser is null Jun 28 15:50:23 Does Google Maps API v1 even work on Android 5? Jun 28 15:54:48 am I correct to understand that its better to place as much 'stuff' in xml rather than in code? Jun 28 15:56:02 oeps Jun 28 15:56:12 sorry :) pressed up & enter Jun 28 16:06:06 why don't you use the new maps api ? Jun 28 16:07:08 lemg_mx: The App I am working on right now needs quite a few updates and I can't do everything at once. The question really is, how Maps API v1 ever worked, since I don't see any API key in the manifest. Jun 28 16:07:41 😀 Jun 28 16:07:51 maybe it's hardcoded? Jun 28 16:07:58 maybe it did not require a key back then Jun 28 16:08:24 Where would it be hardcoded though? How can Google read it if it is not in the Manifest? Jun 28 16:11:52 lemg_mx: Yes, there is a hardcoded string in strings.xml Jun 28 16:12:20 But it's google API key, not maps Jun 28 16:12:55 maybe before you just needed a google api key Jun 28 16:13:01 instead of one specific for maps Jun 28 16:13:10 How would you notice if the maps are not working? Would the Activity crash or just the background not show? Jun 28 16:13:44 in my experience, the map images would just not show up Jun 28 16:13:55 That's exactly what is happening. Jun 28 16:14:12 given that google play services has been correctly defined as dependency Jun 28 16:14:14 Does Maps v1 even work on Android 5? Jun 28 16:14:28 don't know. Jun 28 16:14:50 I have compileSdkVersion 'Google Inc.:Google APIs:22' Jun 28 16:15:12 o_O Jun 28 16:15:26 mine's just '22'. Jun 28 16:15:40 https://developers.google.com/maps-engine/documentation/reference/v1/ Jun 28 16:15:44 to be clear, you really mean v1? "Version 1 of the Google Maps Android API has been officially deprecated as of December 3rd, 2012" Jun 28 16:15:44 it says deprecated Jun 28 16:15:50 probably does not even work anymore Jun 28 16:16:01 not just deprecated, but deprecated 2.5 years ago Jun 28 16:16:05 Leeds: Yes, v1. Jun 28 16:17:02 What dependency do you need to specify in gradle though besides Google APIs ad compileSdkVersion? Jun 28 16:17:26 for maps? nothing Jun 28 16:17:33 nothing else Jun 28 16:17:43 Then I don't know where else I could be going wrong. Jun 28 16:18:05 then there are the keys, of course. have you done anything in the google developer console? Jun 28 16:18:25 saapas: This used to work in the past. Jun 28 16:18:41 how much far in the past? Jun 28 16:18:55 August, 2014. Jun 28 16:19:10 for the new maps api you need to include in your build.gradle Jun 28 16:19:11 compile 'com.google.android.gms:play-services-location:6.5.87' Jun 28 16:19:14 something like that Jun 28 16:19:23 but I doubt it will affect maps v1 api Jun 28 16:20:22 https://developers.google.com/maps/documentation/android/v1/ Jun 28 16:20:28 However, apps using v1 will continue to work on devices. Existing and new developers are encouraged to use Google Maps Android API v2. Jun 28 16:20:33 So v1 should still work. Jun 28 16:23:23 so, it's the map all grey ? Jun 28 16:23:28 Yes, all grey. Jun 28 16:24:01 Anything in the logs ? Jun 28 16:24:21 Maybe something broke during AS migration. Jun 28 16:24:59 probably. Jun 28 16:27:25 lemg_mx: This is the errors I am getting: https://ghostbin.com/paste/kscu5 Jun 28 16:30:24 http://stackoverflow.com/questions/7296467/google-map-signed-api-key-errors-in-android Jun 28 16:30:35 Yes, I am reading that :) Jun 28 16:30:53 cool Jun 28 16:31:16 barq: incidentally, I assume you've checked your log for any errors or messages? Jun 28 16:31:35 Leeds: I just pasted the errors. Jun 28 16:31:48 ah, sorry... just out the shower :) Jun 28 16:31:53 np :) Jun 28 16:32:05 Seems I am screwing up something with the keys. Not familiar with the process. Jun 28 16:32:45 maybe you need to set your debug flag to false or something like that Jun 28 16:33:04 Even for debug versions? Jun 28 16:35:00 I think you have a debug api key and a release api key Jun 28 16:35:02 How can I test if the maps work then? That post reads like you need to publish to store for it to work. Jun 28 16:35:06 or something like that Jun 28 16:35:20 so maybe you have the release api key Jun 28 16:35:27 so if you have the debug flag set, it won't work Jun 28 16:35:48 ooh... good thought Jun 28 16:36:23 Right now I don't have any debug flag set in my manifest. Jun 28 16:36:46 certainly for the current API keys, they're based on the signature of the key that signs the APK, so if you've got code with a hardcoded API key against the release APK key, that might not work if you're building debug Jun 28 16:36:56 which is a build thing, not a manifest thing, AFAIK Jun 28 16:40:24 Hey guys, I was wondering if theres any way in the build.gradle file to compare the app version number with a Build Config Field before any of the building of the apk happens. I'd like a popup box to show if my build config field and the app version match up. Do you think this is possible? Jun 28 16:40:26 Leeds: OK, what do I need to in order to get it working when using adb to get the app onto my device? Jun 28 16:41:04 barq: possibly use an API key which is attached to the signature on your local debug APK key... except you can't get new API keys... Jun 28 16:41:29 so either you upgrade to a newer maps API... or you make sure you're doing a release build with the same release key as before Jun 28 16:41:35 Does anybody know of a good tutorial/example on writing a service called from AlarmManager? I'm getting "unable to start service Intent" and I think the tutorial I'm following is skipping steps. Jun 28 16:43:09 Most examples I'm finding call startService(), then in the service they set a timer, but my understanding is that AlarmManager and setInexactRepeating() are better for battery conservation. Jun 28 16:43:40 Leeds: In the code there are 3 keys, one is tagged market and the other two are labelled with computers. Are keys not transferrable to different pcs? I thought there is only debug and release? Jun 28 16:43:41 (I want it to wake up when other services wake up, not schedule its own wakeups, when possible.) Jun 28 16:44:02 debug keys are typically auto-generated by the SDK and are computer-specific Jun 28 16:44:09 Oh Jun 28 16:44:17 it sounds like at some point, someone has generated a couple of API keys against different debug keys Jun 28 16:44:17 So I need a debug key Jun 28 16:45:17 And I can't get that, because you can no longer get v1 keys? Jun 28 16:45:30 sounds like it Jun 28 16:45:37 presumably you have the key it was published with? Jun 28 16:45:43 Yes. Jun 28 16:45:48 The market key. Jun 28 16:46:01 so do a release build, with that key, and see if it works Jun 28 16:46:41 How do I do a release build? Do I need to upload it to the store then? Jun 28 16:46:52 you don't need to publish it, no Jun 28 16:46:54 Or just export and sign Jun 28 16:47:06 for me to do a release build, I do "ant release", but I suspect that won't apply to you... Jun 28 16:47:51 I'll try with one of my betas. Jun 28 16:48:01 so someone else might need to help with that - but given that it's almost 1am on Monday morning, you might not have much luck Jun 28 16:48:25 1am already? :P Jun 28 16:48:44 build -> generate signed apk Jun 28 16:48:50 maybe that will work Jun 28 16:49:11 Ah, on the beta it works. Jun 28 16:49:18 On a release build. Jun 28 16:49:31 That means I need to release build every time to test it. Jun 28 16:49:34 That sucks. Jun 28 16:50:03 yeah because you don't have the debug api key Jun 28 16:50:17 I have 2, but they are not for my computer. Jun 28 16:51:43 Guess I need to upgrade to v2 then. Jun 28 16:51:48 Thanks a lot for your help! Jun 28 16:57:48 :) Jun 28 16:57:57 cool, next iphone has pressure sensitive displays (force touch). isn't there an experimental display that detects your hand hovering over the screen? thought i read about that somewhere Jun 28 16:58:22 would be useful for revealing hidden actions, like if you hover over a UI element Jun 28 17:00:25 g00s, samsung or something had hover mode, but it was more hover-touch than telling the app you were hovering Jun 28 17:00:44 hmm ok Jun 28 17:00:44 My galaxy s4 has a pref for that, but I haven't tried turning it on to see what it does. Jun 28 17:00:58 g00s, from what I've been told the force screen is the same as the iwatch and the new mac touchpads, and it's quite nice. I haven't experienced it yet. Jun 28 17:04:26 dragorn yesterday somebody asked about transferring a byte stream of data from their device to their PC via USB, how feasible is that without using ADB ? Jun 28 17:04:45 i havent done anything with usb Jun 28 17:06:09 g00s, I dunno, never tried with adb. There's some sort of USB acessory protocol, but I've never used that, either Jun 28 17:06:54 hm, in RxJava range(0, 999).repeat() doesn't repeat Jun 28 17:07:28 dragorn ok thanks Jun 28 17:07:37 g00s, looks like adb is a channel for debugging in the accessory protocol, so if he wasn't doing anything production, there's that. I suppose if he's doing low bandwidth he'd be better off just doing a rfcomm spp socket Jun 28 17:07:46 which any laptop should support Jun 28 17:07:55 then he'd just have a com port on the windows side to read from Jun 28 17:08:19 I have nexus 5, it stuck with booting with 4 colors, it refuses to continue http://postimg.org/image/qlksltjx9/ Jun 28 17:08:20 dragorn have you heard anything about android + bluetooth HS ? Jun 28 17:08:39 g00s, i have not, but i haven't looked; it's been a while Jun 28 17:08:53 jalalsfs, probably better luck in #android-root, we're app dev oriented not hw/rom stuff Jun 28 17:12:19 dragorn: Okay, thanks Jun 28 17:12:51 can anyone guide me as to how to get a spinner like this? Jun 28 17:12:52 http://s14.postimg.org/5iaorwj8h/weird_dropdown.png Jun 28 17:13:18 I've tried everything but the spinner is always elevated not flat Jun 28 17:21:34 Volley﹕ [1742] BasicNetwork.performRequest: Unexpected response code 500 for locahost any idea people ? Jun 28 17:21:57 i have been searching for it couldn't find something usefull Jun 28 17:22:13 ashwink005, if I had to guess it's not a spinner, it's an expanded view with a listview Jun 28 17:23:22 in short its more like a custom spinner.. the expanding height would be decided by the number of items to be displayed right? Jun 28 17:23:53 ashwink005, yeah, probably. You can take a look at: http://kismetwireless.net/gitweb/?p=android-pcap.git;a=blob;f=src/net/kismetwireless/android/pcapcapture/FilelistFragment.java;h=2294dfbd6c216c89590d06474953ea1d771edf4b;hb=HEAD Jun 28 17:24:23 ashwink005, which does something like that. That's really old code, I don't promise it's very good anymore, but it made an image+name "menu" b/c menuview didn't support doing that Jun 28 17:24:32 ashwink005, which is basically similar to what you want to do Jun 28 17:24:49 ashwink005, it's about 2 years old and written for holo, your mileage may vary, but it might give you somewhere to work from. look for 'popup' in that file. Jun 28 17:25:14 whoa dude that was drastically helpfull! Jun 28 17:25:24 thanks alot! I'll look into it Jun 28 17:28:49 dragorn did you see this? https://koz.io/android-m-and-the-war-on-cleartext-traffic/ Jun 28 17:29:30 that is strange that range(a, b).repeat().debounce(..) doesn't work but range(a, b).debounce(..).repeat() does Jun 28 17:29:33 ashwink005, specifically it anchors the view in the popup menu indicator and then populates a listview. I think a lot of the custom spinner-esque stuff is just a new view anchored over the old one Jun 28 17:29:44 g00s, I did not Jun 28 17:30:28 Google going 502 Jun 28 17:31:38 MediaCodec transcoding works with AAC, but not MP3.. why? Jun 28 17:32:58 Volley﹕ [1742] BasicNetwork.performRequest: Unexpected response code 500 for locahost any idea people ? Jun 28 17:33:29 localhost is forbidden Jun 28 17:33:37 are you running a http server in your phone? Jun 28 17:33:38 g00s, cool. I approve. Jun 28 17:34:40 g00s, might be a bit annoying for apps that don't use TLS on a custom protocol, then again, I bet the number that do that are rapidly decreasing since you don't really want to be synchronous off your phone anyhow Jun 28 17:44:06 JakeWharton: just finished your presentation about overhead Jun 28 17:44:13 thanks, very interesting Jun 28 17:46:42 👍 Jun 28 17:47:07 found it via the reddit article Jun 28 17:47:24 It's about knowing, and choosing what and when to optimize. Don't apply them all blindly. Jun 28 17:48:02 yeah, i still have ways to go there Jun 28 17:48:33 find myself asking colleagues about over the lack of over optimisations when doing code review Jun 28 17:51:07 Guys I have a LinearLayout that matches the parent for width and height Jun 28 17:51:11 So it fills the enitre screen Jun 28 17:51:17 Is there a way to change the view in the transition back? Jun 28 17:51:19 That is a fragment container Jun 28 17:51:41 Then I have the fragment with wrap content for width and height, and im doing layout_gravity center vertical but it wont center Jun 28 17:51:44 Am i missing something Jun 28 17:53:39 LinearLayout puts everything from the top left, try using FrameLayout Jun 28 17:53:43 drose379: ^ Jun 28 17:53:56 What do you mean from the top left? Jun 28 17:54:18 of the screen Jun 28 17:54:38 meaning LinearLayout always starts drawing from (0, 0) Jun 28 17:54:50 And FrameLayout does this differently? Jun 28 17:54:55 yes Jun 28 17:55:09 how? Jun 28 17:55:59 FrameLayout is designed to block out an area on the screen to display a single item. Generally, FrameLayout should be used to hold a single child view, because it can be difficult to organize child views in a way that's scalable to different screen sizes without the children overlapping each other. You can, however, add multiple children to a FrameLayout and control their position within the FrameLayout by assigning gravity Jun 28 17:55:59 to each child, using the android:layout_gravity attribute. Jun 28 17:56:35 LinearLayout is a Layout that arranges its children in a single column or a single row Jun 28 17:56:45 * taken from the android documentation Jun 28 17:56:45 OK, so I have one Framelayout as the parent Jun 28 17:56:52 and the child is the RelativeLayout Jun 28 17:56:59 should I apply a layout gravity to the relative Jun 28 17:57:05 that doesn't make sense Jun 28 17:57:15 if you have a relative layout just use it Jun 28 17:57:16 why, I need to center the relative verticlaly in the frame Jun 28 17:57:29 Well, true Jun 28 17:57:34 that is nesting the layout when you don't need to Jun 28 17:57:53 Volley﹕ [1742] BasicNetwork.performRequest: Unexpected response code 500 for locahost any idea people ? Jun 28 17:58:21 s9iper1: yes, your server is down Jun 28 17:58:32 http://www.checkupdown.com/status/E500.html Jun 28 17:58:56 my locahost is running thepoosh Jun 28 17:59:04 well, it's returning 500 Jun 28 17:59:07 so... Jun 28 17:59:17 s9iper1, obviously not, since you keep repeating the same question and no-one has an answer. I have no idea why you're trying to talk to localhost in the first place, or what you think you're talking to ON localhost. Jun 28 18:00:10 as a quick google shows, error code 500 is internal server error. So whatever server you think your'e talking to, is broken. Look at the logs for the server and see what you're doing wrong. Jun 28 18:00:19 +1 Jun 28 18:00:31 dragorn, i am asking bec i am not finding any helpful answer on google i think is the second place to ask. Jun 28 18:00:53 s9iper1, but when no-one here has an answer, sitting there repeating the same question every 2 minutes is really obnoxious Jun 28 18:01:26 people are coming a leaving may be someone had the same issue in the past Jun 28 18:01:30 s9iper1: you need to add logs of incoming requests in your server or ask someone who deals with the server end, this is not a client issue Jun 28 18:02:11 ok Jun 28 18:02:22 good luck Jun 28 18:02:34 thanks alot Jun 28 18:05:37 so in a browser if you go to localhost Jun 28 18:05:40 does it work? Jun 28 18:05:45 in your phone Jun 28 18:06:28 define work, what do you expect to happen/want to do? Jun 28 18:06:46 I'd certainly expect it's not on port 80, since a nonpriv'd app couldn't bind to it Jun 28 18:12:44 g00s: morning Jun 28 18:13:07 what things i need to learn to get into app dev more profesionaly? Jun 28 18:13:23 android or general Jun 28 18:13:29 good morning thepoosh :D Jun 28 18:13:34 android Jun 28 18:13:40 well, it's night for me Jun 28 18:13:42 first learn how to java Jun 28 18:13:43 i allready made some small apps Jun 28 18:13:55 g00s: i figured out the issue i had Jun 28 18:13:58 it was stupid Jun 28 18:14:00 including a audio file sending with wifi direct Jun 28 18:14:03 and wasted a day Jun 28 18:14:05 ArrayCreator, I'd start with making apps, and then look for some contracting gigs or similar. Jun 28 18:14:06 thepoosh what was it ? Jun 28 18:14:18 initWith debug Jun 28 18:14:23 after my code Jun 28 18:14:28 flippin idiot Jun 28 18:15:12 ArrayCreator, most of the devs we hire where I work are either system integration people (system apps and firmware dev) or contractors doing one-off apps; getting a breakaway hit and making a living just from the play store is pretty rare Jun 28 18:15:47 Hello. Is it default by Espresso to save object references even after the object was re-created by the activity? Here's my code and logcat output: http://pastebin.com/ZSD6F6vy Jun 28 18:15:57 ArrayCreator, I tihnk most people are either a) doing android work b/c it's something to do on the side, b) contractors working on multiple apps, or c) "that guy who does android stuff" at their company, either by design or because they were there at the right time and the company wanted some android project Jun 28 18:16:41 dragorn: so android dev is not very mainstream as a sole path? Jun 28 18:17:48 ArrayCreator, I'm sure it is for some, but not in my experience. Others may have other opinions. Jun 28 18:18:53 dragorn:well lucky for me i want to do this as a side thing , i have a free half of a year and figured using some contacts and creating some apps for money will be nice :) Jun 28 18:21:08 what do you thing , 3+ years of knowlage in c# (oop and such) alot of internet related programs (TCP mainly) , python ,php, 2 years of java and a nice bit of c++ is good enough to start doing this semi profesionaly ? Jun 28 18:23:21 ArrayCreator: I know quite a few people who only live off Android development as contractors. Jun 28 18:34:10 Is there a way to override the back views for Lollipop transitions? Jun 28 18:35:43 can someone tell me what Context is Jun 28 18:37:14 A java class that some app components extend Jun 28 18:37:16 kr4sh: God Jun 28 18:37:51 thepoosh hm i might have to pick this up, looks interesting http://www.amazon.com/gp/product/1250073952 Jun 28 18:37:59 i don't get it :-/ Jun 28 18:38:12 kr4sh its known as 'Blob' anti-pattern Jun 28 18:38:23 http://stackoverflow.com/questions/3572463/what-is-context-in-android Jun 28 18:38:46 https://sourcemaking.com/antipatterns/the-blob Jun 28 18:39:07 kr4sh read this, very important https://possiblemobile.com/2013/06/context/ Jun 28 18:41:57 okay, makes more sense Jun 28 18:41:58 thanks! Jun 28 18:43:19 It's like god, you pray for him to get some resources, and hope he will not get angry and leak or be null. Jun 28 18:43:55 good way to look at it i guess lol Jun 28 18:45:01 public void didDetermineStateForRegion(int state, Region region) { Jun 28 18:45:01 ' //TODO: Found Region. Jun 28 18:45:02 sendNotification(); Jun 28 18:45:02 } Jun 28 18:45:17 how would i send notification of the "region" and parse that? Jun 28 18:46:54 kr4sh: search for Android Notifications on google Jun 28 18:48:18 g00s: the water situation here was not very good for many years Jun 28 18:48:25 similar to CA now but not as bad Jun 28 18:48:34 they had to find creative solutions Jun 28 18:50:02 the US water problem is very complex; over allocation of colorado river, famers getting subsidies for water hungry crops, goes on and on Jun 28 18:53:44 thepoosh remember yesterday we talked about that method checking which thread it was running on Jun 28 18:53:54 there are new annotations you can use like @MainThread , etc Jun 28 18:53:59 to document that - i think thats a better way Jun 28 18:55:00 i think those are in the support annotations lib now; and they work with AS 1.3+ for extra support Jun 28 18:59:29 hmm... my android unit tests fail if I compile against 22 but works against 21?? Jun 28 19:04:57 hey guys I''m creating a horizontalScrollview to display arraylist of pictures in, i have a linear layout inside the the scrollview should there be a image view inside the linear layout? Jun 28 19:08:06 hi all.. I want to hide soft navigation buttons and I noticed that I need to call setSystemUiVisibility with correct flags Jun 28 19:08:35 there is also a flag View.SYSTEM_UI_FLAG_IMMERSIVE which is only for API 19 and up Jun 28 19:08:39 hert what about just forget about the LinearLayout and throw the ImageView right in the scrollview Jun 28 19:08:58 my min sdk is 17.. what happens if user runs this code on android running sdk 17? Jun 28 19:09:18 drose379: assuming hert wants to show multiple ones, hert is going to need that linearlayout Jun 28 19:09:25 FrEaKmAn_, unsupported flags will be ignored in that case afaik Jun 28 19:09:31 hert use the linearlayout Jun 28 19:10:18 g00s: cool Jun 28 19:10:29 we are probably finally going to move on to AS Jun 28 19:10:45 now that google announced that they're dropping support by december Jun 28 19:12:27 EPG: wont View.SYSTEM_UI_FLAG_IMMERSIVE resolve to underfined? Jun 28 19:12:45 undefined* Jun 28 19:14:14 alexia i'll be showing multiple pics based on array size, but do i still need image view inside the linearlayout Jun 28 19:14:49 FrEaKmAn_, no, why should it? it's just an int Jun 28 19:16:22 EPG: but if I understand it.. apis below 19 don't have SYSTEM_UI_FLAG_IMMERSIVE defined in View class Jun 28 19:17:07 yes Jun 28 19:17:24 so I should get an exception? Jun 28 19:18:21 no, after compilation there's just an int in the code Jun 28 19:18:26 ok Jun 28 19:32:21 Handler.postMessageDelayed is not a blacking call, is it? Jun 28 19:32:26 blocking* Jun 28 19:32:39 er, sendMessageDelayed* Jun 28 19:35:29 It's bad practice to use it. Jun 28 19:36:15 why? Jun 28 19:36:37 Messes up the state machine. You don't know how long things will take on different devices. Jun 28 19:36:52 what's the margin of error? Jun 28 19:37:01 You should use another way to solve this. Jun 28 19:37:12 FrEaKmAn_: just put those lines in conditional api level checks Jun 28 19:38:03 FrEaKmAn_: yes it will force close on older devices that don't support the flag Jun 28 19:38:20 shmoooz: ok Jun 28 19:40:40 barq: what 'messes up the state machine' exactly means? Jun 28 19:40:59 Your app is no longer deterministic. Jun 28 19:42:52 huh? Jun 28 19:43:33 icedp: Happy to hear different opinions if you think postDelayed is a good idea. Jun 28 19:43:48 using postDelayed for what ? Jun 28 19:44:38 question -> distortion -> answer -> more distortion Jun 28 19:44:41 it's always funny Jun 28 19:45:03 I was using postDelayed and it works. it's not ms precise, but reasonable. However I don't claim of having a deep knowledge of it. Also I don't understand how it is going to mess up a state machine (which one?) and make my app undeterministic Jun 28 19:45:39 Does it work on one device or all devices/different resource utilization? Jun 28 19:45:44 i'm using postDelayed too when i want to postpone without much precision Jun 28 19:46:24 Why do you need postDelayed? Jun 28 19:46:29 I'm trying to format a date and set it on a button Jun 28 19:46:33 for some reason it's not working Jun 28 19:46:48 (to compensate visual feedback with audio playing when i know the latency in my case) Jun 28 19:46:48 logging the string to be shown on the button shows it as a valid string, so I'm not sure what's going on. Jun 28 19:46:58 (it's precise enough to reach millisecond order) Jun 28 19:47:01 Foxhoundz: Show your code. Jun 28 19:47:17 barq: http://pastie.org/private/j7givltxh52ux0sibjnq Jun 28 19:47:55 and I'm just calling .setText() method and passing the resulting string Jun 28 19:48:05 adq: That's a different case. Some people use it when having multiple Listeners in order to get the hierarchies right. Jun 28 19:48:10 Passing in any other string works. Just not the formatted date. Jun 28 19:48:30 ah indeed and for sure, it all depends the context Jun 28 19:49:39 shmoooz, did you test it? Jun 28 19:50:10 EPG: yes I have Jun 28 19:53:44 g00s, what do you think about fragments? do you ever use them? Jun 28 19:54:22 i use them heavily; my activities are pretty empty Jun 28 19:54:52 have you ever read this article: https://corner.squareup.com/2014/10/advocating-against-android-fragments.html Jun 28 19:55:03 a while back Jun 28 19:55:29 oct 2014 i'm guessing :P Jun 28 19:55:34 pffft Jun 28 19:56:07 ^^ Jun 28 19:56:18 o look, Google killing off Eclipse Jun 28 19:56:26 finally I can stop pretending we support that PoS Jun 28 19:56:42 Pwnies: http://www.droidjournal.com/blog/reviews/2015/06/27/squares-hypothetical-response-to-our-review.html Jun 28 19:57:03 Mavrik: !!! Jun 28 19:57:11 thepoosh that fella posted that on /r/androiddev, and it got kinda slammed Jun 28 19:57:15 now I can force my boss to do the transition Jun 28 19:57:26 g00s: I haven't read it yet Jun 28 19:57:39 not sure its worth it ;) Jun 28 19:57:49 hmmmm Jun 28 19:57:52 so g00s, why not use custom views in place of fragments? Jun 28 19:58:03 Pwnies: we should you? Jun 28 19:58:05 Pwnies i'm not getting dragged into this topic ;) Jun 28 19:58:07 *why Jun 28 19:58:13 fiiiine Jun 28 19:58:25 just like eclipse vs AS, use what makes you happy :D Jun 28 19:58:28 I'm here for an argument Jun 28 19:58:48 even with all of its complexity, the fragment life cycle is a good thing Jun 28 19:58:50 https://www.youtube.com/watch?v=kQFKtI6gn9Y Jun 28 20:00:12 thepoosh lol Jun 28 20:01:28 this is abuse, you want argument in 12a Jun 28 20:01:29 GreenDao seems like it's about to be updated soon Jun 28 20:01:35 :) Jun 28 20:01:51 they've been closing issues like crazy in the past few days Jun 28 20:02:26 why onMapSharedElements is called before OnResume? Jun 28 20:03:34 and why setExitSharedElementCallback (from A) is called when Activity B finishes back to A?!? Jun 28 20:03:50 Alians Jun 28 20:12:27 http://media.giphy.com/media/l41lK9lHcC3hIEuXu/giphy.gif see the end - http://pastebin.com/0QTucJw4 - why? Jun 28 20:14:40 oh lol typo in my code :/ Jun 28 20:46:29 I'm trying to use osmdroid to view a map, however I see that the tiles are causing a strain on the servers and therefor blocked. is there a way to see if my code actually works and indead loads the map? when running my app all I see is the grid :'( Jun 28 21:28:02 hey guys i trying to do this, a button to open camera then once a pic is taken it's added to an array, size reduced, displayed in a horizontal scrollview and saved after here's what i have so far not sure how to move on from there http://pastebin.com/LGPkhEM5 Jun 28 21:51:55 Hey guys as for something fun on a sunday, I am made a app to send shell commands to my linux server from my phone. I noticed if I try to use a command with a space in it, it will not work I get this in log "sendUserActionEvent() mView == null" I googled it and said its a s4 thing (which that is what I have) Jun 28 21:52:57 any way to send string with space through sockets? I am able only to use commands with no space (ifconfig, uptime, ls etc..) Jun 28 21:59:29 sounds more like something broken in your code, as in you're using something weird to send stuff over socket Jun 28 21:59:33 any code? Demon_Jester Jun 28 22:00:40 p_l you're right, I have a custom command button, and it brings up a dialog with a edittext on there, so essentially, outputstream.write(edittext.getText().toString().getBytes()) Jun 28 22:01:00 i bet its something along that, is why its not working. Jun 28 22:04:22 how do you receive and execute command? Jun 28 22:04:28 how do you parse it Jun 28 22:07:15 icedp, when I receive it I use runtime, and to partse it I just use socket.getInputStream() Jun 28 22:07:22 parse* Jun 28 22:14:29 public class AuthData Jun 28 22:14:29 extends Object Jun 28 22:14:41 WTF does that mean Jun 28 22:14:52 Constructor and Description Jun 28 22:14:52 AuthData(String token, long expires, String uid, String provider, Map auth, Map providerData) Jun 28 22:19:14 kr4sh: I have answered your question in ##java. Also, please do not use the return key as punctuation, and also try not to copy your questions across multiple channels - many people frequent a number of channels - just ask it in the relevant channel and be patient for an answer. Jun 28 22:22:37 when you take a pic and you the choice to keep or discards is it aumatically saved? Jun 28 22:22:57 if you chose keep Jun 28 22:23:51 There is AuthData getAuth() i need to use that and then push to a webAppinterface, can you help? Jun 28 22:24:47 Have you tried? Jun 28 22:24:50 Where have you got to? Jun 28 22:25:11 I've got to frustration. it always throws an error Jun 28 22:25:13 Post some code example so people can see where you may have gone wrong. What are you specifically trying to achieve. Jun 28 22:25:17 You have an error - solve the error. Jun 28 22:25:39 You have the details of the error, you can use breakpoints or logs or whatever to find where in your code you specifically have a problem, and adjust your code accordingly. Jun 28 22:26:39 public class WebAppInterface {Context mContext;WebAppInterface(Context c) {mContext = c;}@JavascriptInterface private void authz() { Object AuthData = ??? } Jun 28 22:26:47 hi Jun 28 22:27:07 the option when you touch the left down part of phone, what is it called? Jun 28 22:27:31 KeyDown and KeyLeft? Jun 28 22:27:35 kr4sh: Please post your code to pastebin. Jun 28 22:27:45 Peyam: I think you are talking about a DrawerLayout ? Jun 28 22:27:57 Anthaas: the problem is I don't know how to code it. Jun 28 22:27:58 no no.. Jun 28 22:28:06 kr4sh: Also, you haven't answered the rest of the questions. Jun 28 22:28:20 Anthaas, I mean when you press the left button. and you see a menu. optionmenu Jun 28 22:28:27 kr4sh: Post your attempt onto pastebin. People generally do not like to help people who haven't attempted it first. Jun 28 22:28:46 Anthaas: You mean when a drawer pops out from the left with items on it for you to press and navigate elsewhere? Jun 28 22:28:56 Anthaas: I'm creating a native app that uses Firebase, I set the login. This stores a token. I want my webViewApp to retrieve that token so the user doesn't have to login twice. Jun 28 22:29:19 Peyam: Like this http://www.androidhive.info/wp-content/uploads/2013/11/android-navigation-drawer-sliding-menu.png?58dc74 ? Jun 28 22:29:37 no. Jun 28 22:29:38 kr4sh: I am not coding it for you. Jun 28 22:30:04 I dont know what you mean by "left button" Peyam Jun 28 22:30:06 Anthaas, you see the menu button: http://2uagoo1zzsoo4bcz3347bs2y.wpengine.netdna-cdn.com/wp-content/uploads/2011/03/CheckBoxMenu4.jpg Jun 28 22:30:41 On the Emulator? Jun 28 22:33:19 Peyam: onPrepareOptionsMenu and onCreateOptionsMenu are the two methods I think you are after, they are primarily for 2.3.x and lower. Jun 28 22:33:40 Anthaas: http://pastebin.com/jGHh14q4 Jun 28 22:34:06 <_|x|_> christ this is a heavy chan Jun 28 22:34:36 we are not that fat. Jun 28 22:35:30 kr4sh: Im not really constitutes you trying. Have you looked at tutorials, read the documentation, understood it, seen where you are going wrong? Jun 28 22:36:11 I have! and no I don't understand it. once i figure this out i'm sure i'll be okay Jun 28 22:36:24 Give the documentation and tutorials a good read! Jun 28 22:36:32 I have man Jun 28 22:36:41 <_|x|_> whats the problem Jun 28 22:37:13 _|x|_: I'm trying to get something using some API and I don't know what I'm doing. Basically. Jun 28 22:37:37 <_|x|_> 'some api' Jun 28 22:37:54 Firebase API. Jun 28 22:38:16 yes yes. thank you Anthaas Jun 28 22:38:22 <_|x|_> k have fun Jun 28 22:38:24 https://www.firebase.com/docs/java-api/javadoc/com/firebase/client/AuthData.html Jun 28 22:40:02 so what error are you getting? Jun 28 22:42:05 i can't even try it because it just won't let me do it i don't know howt o do it, do i use public final private final private static public void Jun 28 22:42:25 i'm a noob and I can read but there is no clear documentation to do what i want.. Jun 28 22:42:51 do i have a constructor and then i need a method? Jun 28 22:42:59 kr4sh: Do you know Java? Jun 28 22:43:10 what do you want.? Jun 28 22:43:22 lemg_mx: He wants us to do it for him. Jun 28 22:43:40 Anthaas: I don't know it well obviously Jun 28 22:43:56 it can't be much, like 2 lines? I can help with Javascript?!? Jun 28 22:44:09 i thought we were here to help each other :( Jun 28 22:44:11 kr4sh: Java != javascript. Jun 28 22:44:17 Java is to javascript as car is to carpet Jun 28 22:44:26 what are you trying to do? Jun 28 22:44:28 We are here to help, we are not here to do your work. Jun 28 22:44:38 Anthaas, Im trying to make the slidemenu fill_parent in hight. All I see is this. http://i58.tinypic.com/6ehzpw.png h Jun 28 22:44:50 blah i give up Jun 28 22:44:51 Anthaas, here is the code: http://pastebin.com/ypN9i422 Jun 28 22:45:16 Peyam: You are trying to simulate something which already exists. Jun 28 22:45:20 Peyam: DrawerLayout Jun 28 22:45:35 Anthaas, Yes I use drawerlayout. Jun 28 22:45:43 this is the listView Jun 28 22:45:46 You can have the onPrepare/CreateOptionsMenu to open the drawer layout Jun 28 22:46:31 yes. The result will be the same.. the menu doesnt cover all the height Jun 28 22:46:43 so your ListView drawerListChannels Jun 28 22:46:48 does it have any parents? Jun 28 22:46:49 yes Jun 28 22:46:56 yes Jun 28 22:47:04 which ones? Jun 28 22:47:08 and what is their height? Jun 28 22:47:22 http://pastebin.com/ZbdazZwh Jun 28 22:47:29 lemg_mx, here http://pastebin.com/ZbdazZwh Jun 28 22:48:25 are you using drawerlayout as your root view or is that view inside something else ? Jun 28 22:48:53 root view. everything is in it and its the first layout. n mainactivity Jun 28 22:49:22 Try to add a linearlayout Jun 28 22:49:28 outside everything you have in that view Jun 28 22:49:54 lemg_mx: can you help me PLEASE? I'll send u money lol Jun 28 22:49:55 with height match_parent Jun 28 22:49:56 but how can this help? Jun 28 22:50:04 okey Jun 28 22:50:14 kr4sh: Is this homework or your job? Jun 28 22:50:16 not sure, that's how it is in the drawerlayout examples. Jun 28 22:50:24 what are you trying to do kr4sh ? Jun 28 22:50:27 but I still need to refer to the drawerlayout? and not to the linearlayout in java? Jun 28 22:50:50 you still refer to the drawerlayout for drawerlayout things. Jun 28 22:50:54 lemg_mx: can i msg you? Jun 28 22:50:59 lemg_mx: I wouldn't bother - he wants you to do it for him - I asked him several times, he gives a very vague description and clearly hasn't attempted or read the documentation. Jun 28 22:51:01 okey thanks Jun 28 22:51:31 Anthaas: i have like 1000 lines of code, i promise you i've tried. I've been here for two hours trying to figure this stupid thing out Jun 28 22:51:50 <_|x|_> 1000 lines in 2 hours Jun 28 22:51:52 <_|x|_> dayum Jun 28 22:51:56 lemg_mx, when I make default adapter I don't have anyproblem. it only happens when I creat my own adapter in java. Jun 28 22:52:01 NO two lines in 2 hours Jun 28 22:52:02 jeez Jun 28 22:52:16 * Anthaas throws his hands up in the air Jun 28 22:53:01 I guess i know what to do Jun 28 22:53:02 thanks Jun 28 23:05:05 <_|x|_> so in doing the tutorial for the first time and getting stuck on 'ActionBarActivity' does not exist Jun 28 23:05:27 <_|x|_> i open the sdk manager and 'install the support library' Jun 28 23:06:02 <_|x|_> still having the problem, even while importing android.support.v7.app.ActionBarActivity Jun 28 23:06:22 <_|x|_> which apparently doesnt exist either Jun 28 23:06:37 <_|x|_> any ideas what im doing wrong Jun 28 23:11:49 use AppCompatActivity Jun 28 23:13:04 <_|x|_> over apperror: package android.support.v7.app does not exist Jun 28 23:14:16 Do you have stuff in build.gradle? Jun 28 23:14:25 <3's gradle right now Jun 28 23:14:36 Now Im using it for a CL Java app Im making Jun 28 23:15:46 <_|x|_> i dont have a build.gradle i dont thing Jun 28 23:15:48 <_|x|_> think Jun 28 23:16:15 <_|x|_> doing this on cli Jun 28 23:17:14 You need to add an entry to build.gradle to use AppCompat. Jun 28 23:17:58 * Anthaas loves a bit of Fleetwood Mac. Jun 28 23:18:03 Yeah, in dependencies Jun 28 23:18:21 <_|x|_> not sure i even have gradle, does it come as a binary with the sdk/ Jun 28 23:18:26 No Jun 28 23:18:28 Well Jun 28 23:18:33 Maybe actually Jun 28 23:18:39 It is downloadable separately too Jun 28 23:18:44 I think it comes as part of AS Jun 28 23:18:48 Just use Android Studio. Jun 28 23:18:51 ^ Jun 28 23:18:59 gradle files are generated for you then Jun 28 23:19:04 <_|x|_> i can't, it's too slow on my comp Jun 28 23:20:14 Step 2: Buy a new computer. Jun 28 23:20:26 <_|x|_> after i get this next sweet job Jun 28 23:20:33 <_|x|_> just gotta learn me some android dev first Jun 28 23:20:38 <_|x|_> oh, shit. Jun 28 23:20:40 Consider it an investment! Jun 28 23:22:18 <_|x|_> do most devs not even think about their toolchain and let these ides do it for them Jun 28 23:22:21 _|x|_, what kind of computer do you have that cant run AS Jun 28 23:22:38 <_|x|_> core solo w/ 4g ram on debian Jun 28 23:22:38 Well Jun 28 23:22:51 I think it is important that dev's know the build process, what it does, why, how it does it, etc. Jun 28 23:22:58 As soon as you have that understanding, then use an IDE Jun 28 23:23:20 most devs know their toolchain but let the IDES automate the busywork Jun 28 23:23:28 I am currently developing a tool which has to be run through several tools before being compiled, and gradle is great for this. Jun 28 23:24:29 It will run the code through one tool, then the next, and then javac, before wrapping it all up in a nice jar for me to use Jun 28 23:24:42 _|x|_, you could get a better PC off the free section on craigslist i bet Jun 28 23:24:57 <_|x|_> i just ran ant like the tutorial told me to then stuck the file on my android device Jun 28 23:25:07 Is anyone here familiar with the MPAndroidChart? Jun 28 23:25:10 <_|x|_> im not even sure what gradle is Jun 28 23:25:15 s/?/library?/ Jun 28 23:25:15 Google is officially stopping support for Ant and Eclipse soon aren't they. Jun 28 23:25:19 Or has it already happened? Jun 28 23:25:22 already happened Jun 28 23:25:28 Good Jun 28 23:25:36 I don't think it's happened yet. Jun 28 23:25:48 they announced it Jun 28 23:25:49 "Later this year." Jun 28 23:25:51 <_|x|_> is gradle also a make Jun 28 23:26:19 http://android-developers.blogspot.co.uk/2015/06/an-update-on-eclipse-android-developer.html Jun 28 23:26:41 _|x|_ grade is like a makefile, but more advanced Jun 28 23:26:48 It does a better job of handling dependencies etc Jun 28 23:27:03 Hi folks. I'm starting to study android development, and I'm following the official training doc. I'm trying to create an Activity that extends ActionBarActivity but seems that this class does not exist. I'm using minimum SDK level 14, and according to the docs, this class exists since Android 3.0 (API 11). Is it right? Jun 28 23:27:17 <_|x|_> me too Peste_Bubonica Jun 28 23:27:26 <_|x|_> lol Jun 28 23:27:28 Peste_Bubonica: You have to add stuff to build.gradle. Jun 28 23:27:56 _|x|_, :) Jun 28 23:28:06 TacticalJoke, could you indicate any docs? Jun 28 23:28:19 https://developer.android.com/tools/support-library/setup.html Jun 28 23:28:47 ActionBarActivity shouldn't require any additional dependencies? Jun 28 23:29:02 oh right that's true it's part of the support library Jun 28 23:29:16 ABA is deprecated Jun 28 23:29:53 I read about the Support library.. Why I need to use this dependency as it is supported by the API.. Jun 28 23:30:11 sorry by this noob question.. I'm starting to study right now :) Jun 28 23:30:23 ActionBarActivity is part of the support library, not part of the framework. Jun 28 23:31:17 Wasn't the actionbar replaced with the toolbar? Jun 28 23:31:22 yes Jun 28 23:31:51 TacticalJoke, i've read this on the official docs: "Adding the action bar when running on versions older than Android 3.0 (down to Android 2.1) requires that you include the Android Support Library in your application." Jun 28 23:32:11 TacticalJoke, so, even using Android 4.00 SDK, I need to include the support libraries? Jun 28 23:32:22 yes Jun 28 23:32:26 thats what a library is Jun 28 23:33:24 Peste_Bubonica: Since you're using minSdkVersion=14, you could just use Activity with ActionBar. You don't absolutely need AppCompat (the support thing). Jun 28 23:33:32 Personally, I use AppCompat anyway, for a material look, Toolbar, etc. Jun 28 23:34:03 (I'm using minSdkVersion=15.) Jun 28 23:34:09 I'm with this setup on Manifest: Jun 28 23:34:39 but the project complains that this class does not exist. Can by only a ClassPath related issue? Jun 28 23:34:41 You should target the latest (after testing on the emulator). Jun 28 23:35:18 so I decided to use a RxJava to animate a float value from 0 to 1 and back. This is what I've got: https://gist.github.com/mlatu/4080ebeb9ed10876786e And this is how it works. https://t.sql01.com/sc/a4e7ac7c_1435516178.png Hmm. is Rx suitable for this? Or is this okayish mem usage? Should I use Android Animator? Jun 28 23:35:19 Peste_Bubonica: Use Activity or add a dependency on AppCompat and use AppCompatActivity. Jun 28 23:36:19 AppCompatActivity and ActionBarActivity are not part of the Android framework. Jun 28 23:37:03 OK.. I will do that! Jun 28 23:38:27 icedp: Image isn't loading for me Jun 28 23:39:08 TacticalJoke, I'm upgrading support libraty to rev 22 and I will do a test.. Thanks for your help! Jun 28 23:39:34 desmin88: please try one more time, it is up. if no, I'll upload to another server Jun 28 23:40:20 <_|x|_> does everyone generally use android studio Jun 28 23:40:23 yes Jun 28 23:40:27 icedp: try imgur Jun 28 23:40:29 not working for me Jun 28 23:40:31 <_|x|_> in enterprise? Jun 28 23:40:43 desmin88: strange, but ok http://i.imgur.com/sGGE1LY.png Jun 29 00:01:30 hi Jun 29 00:02:03 Ive made a navigation drawer menu with a listview. Now I want to refer to it in onCreateOptionMenu Jun 29 00:02:09 does anyone know how to do that? Jun 29 00:07:06 anyone? Jun 29 00:13:30 Peyam: needs more informations/context about your situation Jun 29 00:15:47 hert: paste has been removed Jun 29 00:16:04 TacticalJoke: I found my issue :) Jun 29 00:17:11 TacticalJoke: my spinner had the wrong context Jun 29 00:18:21 context strikes again ! Jun 29 00:20:43 Im trying to run a google sample. but it says I need to migrate to gradle Jun 29 00:21:00 I can find the gradle file in the project Jun 29 00:21:00 gavit: Ooh. Jun 29 00:21:06 Hidden complexity FTW. Jun 29 00:21:22 Peyam: Using Android Studio is sufficient, basically. Jun 29 00:21:46 TacticalJoke, well yes. but it says i need to migrate Jun 29 00:23:36 Hmm, what is the exact message? Jun 29 00:24:30 ohh i opened instead of importing it Jun 29 00:24:32 now it works Jun 29 00:26:29 TacticalJoke, Im tring to make the oncreateoptionmenu to open a navigationdrawer Jun 29 00:29:01 how do I open a menu with the keyboard? Jun 29 00:31:09 <_|x|_> window button Jun 29 00:31:25 windows? Jun 29 00:31:44 doenst work. on a linux mechine Jun 29 00:32:38 <_|x|_> what wm Jun 29 00:32:50 <_|x|_> nvm this is a dumb conversation Jun 29 00:33:00 haha Jun 29 00:33:17 Peyam: I can't remember. I'm also half-dead. Google knows the answer. Jun 29 00:33:32 Just google "open navigation drawer code" or something. Jun 29 00:33:47 DrawerLayout#openDrawer Jun 29 00:33:58 TADA Jun 29 00:34:05 *crowd applauds* Jun 29 00:35:37 <_|x|_> so wheres the entry point to all this stuff Jun 29 00:35:45 <_|x|_> theres no main function or anything Jun 29 00:36:00 Your manifest declares your main activity. Jun 29 00:36:08 Your main activity will have an onCreate method. Jun 29 00:36:15 For all intents and purposes, it starts there Jun 29 00:36:48 application class! Jun 29 00:36:57 For all intensive purposes. Jun 29 00:37:05 Is that the saying? Jun 29 00:37:05 Wow. Jun 29 00:37:06 TIL Jun 29 00:37:09 No. lol Jun 29 00:37:10 <_|x|_> no Jun 29 00:37:12 I was being sarcastic. :D Jun 29 00:37:12 Oh hahaha Jun 29 00:37:14 I was going to say Jun 29 00:37:24 Intensive purposes haha. Jun 29 00:37:24 <_|x|_> is that intent.action.main Jun 29 00:37:52 I think it is the one described Launcher actually is it not? Jun 29 00:37:54 Its been a while haha Jun 29 00:38:07 is there a way to rename your Play package name w/o losing all your paid users ? Jun 29 00:38:16 didn't think there was but .. Jun 29 00:38:54 bope Jun 29 00:38:56 nope* Jun 29 00:39:17 gah, sucks - thats like losing your citizenship to get a new social security number Jun 29 00:45:52 guys Jun 29 00:45:57 whats the best library to make a chat app? Jun 29 00:46:04 to use Jun 29 00:46:08 i wanna use parse.com for login Jun 29 00:50:28 i think the package name should have been a UUID or something Jun 29 01:03:05 whats the best library to make a chat app? Jun 29 01:03:24 use all of them Jun 29 01:04:16 no i mean specifically for the chat functionality Jun 29 01:04:24 like i'll be using parse.com api for login Jun 29 01:04:55 bankai_ if you dont know, dont answer :P Jun 29 01:05:06 you're asking very ambiguous questions Jun 29 01:05:11 there's heaps of jabber APIs out there Jun 29 01:05:22 which one is easiest/best Jun 29 01:05:34 thats a dumb question really Jun 29 01:05:41 no one library will be the best Jun 29 01:05:45 just do some googling Jun 29 01:06:02 smack eh? Jun 29 01:06:06 ok ill look into it thanks Jun 29 01:07:39 is these something similar to parse.com for the server? Jun 29 01:09:02 why not just parse Jun 29 01:11:20 do they have a cloud jabber server Jun 29 01:18:18 jakewharton.github.io/butterknife/ has a typo! "Be sure to [supress] this lint warning" Jun 29 01:18:29 send a PR then Jun 29 01:19:22 ok! Jun 29 01:21:55 Oooh wait, let me do it Jun 29 01:22:04 let my github page look like I actually do things! Jun 29 01:22:46 beat you to it! Jun 29 01:27:23 yay it was merged Jun 29 01:39:54 * p_l looks at his just started manifest, sees a ton of uses-permission and uses-feature -_-; Jun 29 01:50:47 hey p_l Jun 29 01:51:20 a week or so ago, i was reading about webassembly - and thoughts came to mind of somebody writing a lisp to wasm compiler Jun 29 01:52:54 not sure if wasm supports a) code generation at runtime b) access to memory-protection. Without those two, it would be even crappier environment than it already is Jun 29 01:53:36 :( Jun 29 01:53:39 TBH, I think of webassembly as java applets done worse Jun 29 01:54:07 yet another layer to slow things down so we have to buy better hw or something Jun 29 01:54:09 lol, you think the pnacl guys can do worse than applets :D Jun 29 01:55:00 g00s: I think "implemented by JS shim" is big enough hint to me to run all the way away Jun 29 01:55:03 ;) Jun 29 01:55:20 i didn't get the impression it had much to do with js though Jun 29 01:55:28 js can import wasm modules Jun 29 01:55:49 g00s: its portability is based around the same idea as asm.js, afaik Jun 29 01:55:51 they might be related for a short time just because near term adoption Jun 29 01:56:06 anyway, it's shoehorning waaaay too much shit into browsers Jun 29 01:56:31 maybe, maybe, wasm will turn out to not be as shitty as even 5% of the "browser is the OS" crap Jun 29 01:56:39 * p_l looks pointedly at Mozilla Jun 29 01:56:47 heh Jun 29 01:56:57 where is capella :D Jun 29 01:57:24 yakking on PM re: recent moz get together :) Jun 29 01:57:42 oic scrollbacks Jun 29 01:58:05 i'm noticing (anecdotally) that the web is getting slower and more broken; i'm guessing all the tracking shit Jun 29 01:58:35 "marketing guys love you to death" Jun 29 01:58:35 like this presentation - when i press > it doesn't advance, some shitty js probably got denied Jun 29 01:58:43 http://blog.revolutionanalytics.com/2015/06/r-at-microsoft.html Jun 29 01:58:44 g00s: well, my opinions has been shaped from "this is cool" (sometime after GMail introduction) to current opinion by browsers becoming single worst resource hog on my system, beyond things like heavy duty media programs, big compilations (unless compiling webkit, then it balloons) etc. Jun 29 01:58:57 They're like that girlfriend who'se really into you and won't go away Jun 29 01:59:02 and that's with tracking etc. dropped from loading Jun 29 01:59:03 capella does anything happen when you press play on that presentation ? Jun 29 01:59:08 sec Jun 29 01:59:33 I get an overlay to skip Jun 29 01:59:53 but then it works a frame at a time Jun 29 02:00:07 oh maybe since i don't see that overlay it doesn't let me play it Jun 29 02:00:12 no idea whats blocking it heh Jun 29 02:00:48 I have to disable Adaway before travelling or I can't get into airport/hotel networks Jun 29 02:02:04 capella p_l i have high hopes for the next FF, with e10 ! Jun 29 02:02:15 hopefully it isn't as bloated as chrome Jun 29 02:02:25 g00s: I don't, they probably murderized the interface or something in latest attempt Jun 29 02:02:26 yah ... was bumpy @ first ... getting better :) Jun 29 02:02:43 capella its in the next release right ? Jun 29 02:02:59 p_l i have to switch, i'm getting 10-20 "Aw snap!" in chrome per day Jun 29 02:03:09 is supporting LDPI even necessarry anymore Jun 29 02:03:13 Yah, I think it's beta 9w/o checking to be sure) ... we've also added Pocket recently ... not sure where that is Jun 29 02:03:14 as bad as Chrome is, some stuff works plainly better with it at the moment, maybe I'll try FF again sometime soon, though the interface changes are getting to me Jun 29 02:03:40 i'm worried about their advertising shit they will add Jun 29 02:04:06 We have a nice ReaderView implementation in mobile/android, and we ported it to desktop, but then they yanked it fast and swapped in Pocket Jun 29 02:04:40 So ReaderView grows into this bigger thing Jun 29 02:05:25 Or rather, the ReadingList portion of ReaderView becomes Pocket list Jun 29 02:05:52 can you make effective splash screens using intents and asynctask? Jun 29 02:07:24 TheKarlBrown: Those two things dont really follow Jun 29 02:08:02 https://stackoverflow.com/questions/19225969/splash-screen-with-asynctask I was modeling my splashscreen after Update Number 2 on this stackoverflow but it seems off to me Jun 29 02:08:53 generally people dont use asynctasks Jun 29 02:09:01 the hip folk use rxjava Jun 29 02:09:43 g00s: btw, been thinking about building a personal-area-network kind of "cloud" for android and desktop. Pair devices, then easily sync files around (and possibly other data, through an API) Jun 29 02:10:36 http://simonvt.net/2014/04/17/asynctask-is-bad-and-you-should-feel-bad/ Jun 29 02:10:48 heh - I love that title Jun 29 02:11:16 capella from futurama Jun 29 02:11:56 I feel bad :[ Jun 29 02:12:19 https://www.youtube.com/watch?v=jG2KMkQLZmI Jun 29 02:12:39 p_l sounds like old AeroFS ? Jun 29 02:12:55 zoidberg ftw \o/ Jun 29 02:12:56 https://stackoverflow.com/questions/5486789/how-do-i-make-a-splash-screen Would this be acceptable? do you have a good tut for rxjava splash screens? Jun 29 02:13:03 bender is bae Jun 29 02:13:16 hahahaha Jun 29 02:13:31 g00s: haven't seen AeroFS, but I was in need of something where I could easily download something on the PC, then just "send" it to phone/tablet Jun 29 02:14:11 p_l: sounds like you want an OwnCloud clone Jun 29 02:14:12 ability to do it N-way was obvious addition :) Jun 29 02:14:26 p_l: though OwnCloud is a pull from phone more than a push to phone Jun 29 02:14:27 SirLagz: no, I want it decentralized, not a centralized service like OwnCloud Jun 29 02:14:27 p_l pushbullet ? Jun 29 02:14:39 oh decentralized Jun 29 02:14:44 p_l: oh right Jun 29 02:14:47 g00s: have you seen pushbullet work over LAN only, sending >100MB files? :> Jun 29 02:14:49 p_l: so a btsync type thing Jun 29 02:15:28 SirLagz: I did consider using git-annex as transfer system, either in my app or by using the stuff available in market (but that one is pretty horrible in use) Jun 29 02:15:39 SirLagz: I prefer to think of "networked intents" :) Jun 29 02:15:49 + some basic services Jun 29 02:16:32 p_l will you use wifi direct ? Jun 29 02:17:04 g00s: probably not, though it is an option later on. Right now I want to start with normal IP + mDNS Jun 29 02:17:21 wifi direct might be an option mainly for android-android transfers Jun 29 02:17:24 well. I'm out of ideas then....and I should probably get back to work Jun 29 02:19:31 there would be a security mechanism based on private CA (as in, every "account" is a private CA, where each machine gets a cert), and connections would be made according to names encoded in certs and localized with mDNS and possibly BT/BLE/NFC Jun 29 02:23:27 no "central" service at all Jun 29 02:27:57 How does one handle crashlytics and airplane mode? it crashes on app startup with nigh a stacktrace Jun 29 02:28:05 All I get is "Fabric﹕ Error performing auto configuration." Jun 29 02:36:45 I take it back, my app is crashing but its not crashlytics fault. The only stacktrace I get is "FATAL EXCEPTION: main" Jun 29 02:41:24 Anyone know why a crash would just throw this out and nothing more? http://pastie.org/10263732 Jun 29 02:45:54 App size > 50MB? Jun 29 02:45:59 Thats the only one I could think of Jun 29 02:46:44 nope Jun 29 02:47:13 i suspect it might have to do something with rxjava/retrofit but im unsure Jun 29 02:48:40 Yep. If I make a retrofit call w/ rxjava observables w/ a custom retrofit error handler that returns null, my app doesnt crash. Jun 29 02:49:23 interesting. Jun 29 02:51:24 Have you ever turned on the dev options show ui boundries. YOu can learn alot just by keeping your phone in that mode and using it, plus it looks cool Jun 29 02:59:32 It looks like AIDS **** ENDING LOGGING AT Mon Jun 29 02:59:58 2015