Jun 08 08:15:15 android studio seems folding listeners as lamda functions Jun 08 08:17:13 rrr_: like always Jun 08 08:17:16 but it's still there Jun 08 08:23:06 gordon_: can i disable gradle sync and indexing? Jun 08 08:23:27 gradle syncs only once Jun 08 08:23:37 you cna turn gradle into offline mode Jun 08 08:23:50 (which is preffered when you have all dependencies in the place) Jun 08 08:24:11 sync and indexing everytime i make change in build.gradle Jun 08 08:27:14 people, do you have concurrent directory traversal algorithm? Jun 08 08:45:54 is android studio/gradle considered stable enough to switch from eclipse? Jun 08 08:46:46 O.o Jun 08 08:47:37 <_rm> i've worked with android for a couple years now and i've never used eclipse Jun 08 08:48:35 rrr_, pretty much everything is built only for Gradle for awhile now Jun 08 08:48:49 and Eclipse ADT has been obsoleted for a long time Jun 08 08:48:51 rrr_: yes Jun 08 08:49:51 Can a gradle option be made conditional to build flavor? Jun 08 08:50:32 knapper_tech, that's a bit wide... which option? Jun 08 08:52:39 anyone knows good ibreries like AndroidSlidingUpPanel ? ;] Jun 08 08:53:21 how to see running details behind gradle sync? Jun 08 08:53:33 Mavrik, looks like Proguard doesn't send it's mapping to a flavor-dependent directory, so I end up with this error: Execution failed for task ':app:parseUploadSymbolsSandboxDebug'. Jun 08 08:54:04 rrr_, "Gradle Console" Jun 08 08:54:06 But I never care about doing this for the Sandbox flavor since it's just a bunch of code for messing around and regression testing isolated solutions Jun 08 08:54:25 knapper_tech, well, what's the exception / error? Jun 08 08:54:25 Gradle Sandbaawss Jun 08 08:54:39 Mavrik: blank gradle console Jun 08 08:54:40 Mavrik, > /home/silentk/work/androids/tangram/app/build/outputs/mapping/sandbox/debug/mapping.txt (No such file or directory) Jun 08 08:55:01 The mapping file would normally be from proguard but doesn't exist Jun 08 08:55:08 hmmm Jun 08 08:55:17 but honestly I never need these done for anything except release builds in one flavor Jun 08 08:56:23 There's a parse outer block and "uploadSymbols true" line Jun 08 08:58:00 hmm, that probably means that parse craps out on that Jun 08 08:58:06 Can gradle even doe conditionsals? Jun 08 08:58:19 yes, you can write any code Jun 08 08:58:22 Pretty sure I've seen it described as Groovy DSL Jun 08 08:58:37 build.gradle is a fully fledged Groovy code :) Jun 08 08:58:41 Okay, so if I can find the build type as a variable, I can set the parse upload symbols there Jun 08 08:58:44 but that's probably not your problem Jun 08 08:58:57 since you can just shove most of configuration to the falvor specific blocks Jun 08 08:59:02 and don't have to deal with code Jun 08 08:59:14 I'm afraid I haven't used Parse yet though, so I dunno what their plugin does or how it's configured Jun 08 08:59:30 rrr_, it usually has to be allocated before sync to fill up :/ Jun 08 08:59:49 I'll just move the section around and see what happens Jun 08 09:00:09 Mavrik: what does that mean? Jun 08 09:07:54 how do you do animations like in whatsapp new material design, the animation where you click the add attachment button Jun 08 09:14:44 joroci, they probably have a fragment, with an enter transition. Something like "explode" Jun 08 09:15:05 just lost Jun 08 09:15:40 the game? Jun 08 09:16:55 offline Jun 08 09:27:32 I have a button called activate gps. It just crash with this code: http://pastebin.com/UiBn8x5q - what is the issue? Jun 08 09:27:54 logcat plx? Jun 08 09:28:07 i bet its permission issue Jun 08 09:32:14 Ashiren : http://pastebin.com/VdR1z9mt Jun 08 09:33:12 in xml, do you have android:onClick in the button? Jun 08 09:33:52 android:onClick="gps" Jun 08 09:33:54 Yes Jun 08 09:34:44 either you implement click listener via have public void gps(View v) { } in activity Jun 08 09:34:54 or setOnClickListener programmatically Jun 08 09:35:16 if programmatically, then remove OnClick from xml Jun 08 09:35:19 Datasmurfen, just remove the onClick in xml Jun 08 09:36:28 Thx chrisaardal I will try that :) Jun 08 09:38:23 Datasmurfen, heheh, tried out Fresco yet? Jun 08 09:44:17 yea chrisaardal :) But no luck so far :) Jun 08 09:44:51 It dosn't work with removeing the onClick from xml Jun 08 09:46:47 hi. each time i debug my android app.. it says it can't find classes from my java library which is imported in my android project.. i can't find a solution to this Jun 08 09:47:15 it used to work before.. so not sure what changed Jun 08 09:47:31 krad, only when you debug? Jun 08 09:47:38 i don't know Jun 08 09:47:50 can u run it? Jun 08 09:48:09 yeah Jun 08 09:48:18 it just crashes when it tries to use my java lib Jun 08 09:48:22 because it can't find it Jun 08 09:48:32 i see the errors in logcat Jun 08 09:48:39 about not finding class etc.. Jun 08 09:49:59 also when i run mvn clean eclipse:eclipse.. it doesn't add gen/ as a source folder.. rather it adds target/ Jun 08 09:50:23 it adds target/generated-sources/aidl and target/generated-sources/r Jun 08 09:50:27 tried cleaning project etc? Jun 08 09:50:30 sure Jun 08 09:51:29 i made sure that my private library in the order & export of my android project's build path Jun 08 09:53:38 i don't understand the confusion between target and gen folders Jun 08 09:54:10 krad: Who's confused? Jun 08 09:54:42 i am Jun 08 09:56:20 you're confused about your own confusion? Jun 08 09:56:30 yeah, kind of Jun 08 09:57:24 * wakelock is confused about how come people get confused Jun 08 10:00:37 wakelock: Are your deprecated? Jun 08 10:00:58 s/ur/u/ Jun 08 10:01:30 so why it fails finding a class from my private lib Jun 08 10:01:42 phix, I don't think so Jun 08 10:03:07 maybe because it's private? Jun 08 10:03:37 no Jun 08 10:03:38 wakelock: Ah no it is a few of your constants that is deprecated Jun 08 10:05:59 how is it that domain with .coffee tld doesnt show as link for me (whatsapp/telegram) but does for my friend? has android added new tld's for deeplinking in android 5 or something? Jun 08 10:08:49 vompatti: I think you are asking on the wrong channel Jun 08 10:08:58 ^ Jun 08 10:10:26 vompatti: Ask in #LOLZOMGWHATZUPWOOOOOOO Jun 08 10:10:45 Or tag it on your wall Jun 08 10:12:31 Title: "Android application development"; I'm developing app and using deep linking to share data between users and I noticed that .coffee tld doesnt get regonized as url link in other applictions where as exact same link with some other tld (com/net/org) is regonized Jun 08 10:13:13 so I was thinking that other android application developers _could_ have noticed the same problem and might have solution for it other than buying another domain with different tld Jun 08 10:13:19 but I guess I was wrong Jun 08 10:15:26 you're developing whatsapp? Jun 08 10:16:53 Leeds: do you know what deep linking means? Jun 08 10:17:57 yes, I believe it's a sexual activity which is illegal in 48 of the 50 US states Jun 08 10:19:22 seriously? Jun 08 10:19:32 no, of course not seriously Jun 08 10:19:39 God bless Mississippi Jun 08 10:19:57 Amen, my temple-priest-assisting cousin! Jun 08 10:20:49 vompatti: it's the practice of linking directly to a page within a site, rather than to the front/entrance page Jun 08 10:21:13 every now and again, sites try to 'ban' it in their T&C, at which point the world laughs Jun 08 10:22:08 it also means linking to resources inside an app Jun 08 10:23:15 rrr: not that I've ever heard, but ok Jun 08 10:25:19 How can I make an animation like this: https://www.google.com/design/spec/animation/meaningful-transitions.html#meaningful-transitions-hierarchical-timing (hierarhical timing) Jun 08 10:25:56 wow i had a rough night the problem that was messing me up for 3 hours was if(b=true){..... damnit xD Jun 08 10:27:15 vompatti: so... this whatsapp that you're writing... Jun 08 10:28:11 Leeds, isn't that "hot-linking" and not deep linking? Jun 08 10:28:48 NateRiver, this is where you learn the value of "final" Jun 08 10:29:38 wakelock: https://developer.android.com/training/app-indexing/deep-linking.html Jun 08 10:29:45 wakelock: possibly one refers to linking to pages, and one to embedding things like images in other sites? Jun 08 10:30:09 Leeds: you can send links through other applications directly Jun 08 10:30:30 but for somereason on my phone .coffee domains doesnt get regonized as links Jun 08 10:32:50 wakelock yeah i did think of that, hopefully it will cut down on my little typos xD Jun 08 10:33:44 can android run java 8? Jun 08 10:35:03 no Jun 08 10:46:52 Is it a good idea to create a little SQLite database on the Cellphone and then keep data on it? Is there any reason why a lightweight app should try and stay away from something like that? Jun 08 10:48:01 Or is it really standard practice to save data in one? Jun 08 10:51:13 depends on data and how lightweight the app is Jun 08 10:51:31 if sharedpreference would be convenient in this case, why not use it Jun 08 10:52:53 cart_man, sqlite is the default persistent storage for data on Android Jun 08 10:53:09 cart_man, and it's built-in, so no, there's no way you should stay away from it Jun 08 10:53:27 if you have simple/trivial data, SharedPreferences are easier to use, but anything that requires queries should go into SQLite Jun 08 10:56:02 Mavrik, Ok well I have some data like lets say... 20 pictures at Most and then little details about the pictures Jun 08 10:56:13 SQLite can save pictures as Blobs of Data right? Jun 08 10:56:28 Thing is I dont want the user to download the pictures everytime Jun 08 10:56:43 obviously prefered is to save the pics and update when they have changes Jun 08 10:56:50 changed` Jun 08 10:57:29 cart_man, you really shouldn't put pictures into any database, that'll cause you bunch of memory and resource related issues Jun 08 10:57:53 krad, android doesn't run any kind of java Jun 08 10:58:00 cart_man, store the pictures with their ID / hash as a name into cache directory (Context.getCacheDir()) and store metadata and __relative__ path to the images into database Jun 08 10:58:24 krad, no, ART and Dalvik run Java 6 bytecode only with some Java 7 extensions Jun 08 10:58:45 that is, java-6 level bytecode (it's a bit different from desktop JVM bytecode) Jun 08 10:59:32 cart_man, if you just need to store pictures, libraries like https://github.com/JakeWharton/DiskLruCache are very helpful to make a disk cache Jun 08 11:10:42 how do you do debug asserts/ Jun 08 11:17:45 I have a project with several git submodules (not forked), that's working well enough, but now that I try to include unit tests, it runs the unit tests of the submodules which don't work... Jun 08 11:17:53 Is there a way I can not run the submodules of submodules? Jun 08 11:37:19 submodulepocalypse Jun 08 11:46:11 pretty much. Jun 08 11:46:35 and of course by running the submodules of submodules i mean running the tests of submodules... Jun 08 11:51:19 when you say "it" what do you mean? :| Jun 08 11:54:58 the run configuration that's supposed to run my tests. Jun 08 12:02:03 in Android Studio, ok Jun 08 12:03:01 as a workaround you could limit it to your package Jun 08 12:03:14 if not, you can lunch a custom gradle task that runs the desired tests Jun 08 12:05:48 hey guys. i'm using a LayoutAnimationController on my listview to show & hide my items one by one.... when I show them it works great but when I want to reverse that effect it does work BUT I want the items to go away starting from the last item in the ListView... here is the method i'm using http://pastebin.com/d2jiimYq Jun 08 12:09:40 nevermind, found it... LayoutAnimationController.ORDER_REVERSE Jun 08 12:11:06 Hi guys, Is it allowed to use the Facebook 'F' icon (which links to 'your' Facebook page) in the main menu (in my case) of a game? I didn't found anything regarding the use of social networking icons in a app.. Jun 08 12:11:28 afaik no Jun 08 12:11:42 I remember reading a notice not to Jun 08 12:11:51 dumb Jun 08 12:12:22 you can use facebook logo when it is related to facebook login Jun 08 12:12:57 can i put Android M on my Nexus 7? Jun 08 12:13:15 MartialLaw: #android-root Jun 08 12:13:37 Thanks for the clear answer squ! Jun 08 12:15:41 wtf. i dont get it, i have function that rotate nv21 frame. if i create buffer which is bytearray each frame it works fine Jun 08 12:16:10 but when i want to reuse that buffer and fill with zeroes before the calling the function, it stays all zeroes Jun 08 12:17:43 Gjansen: https://developers.facebook.com/docs/apps/review/branding Jun 08 12:18:18 section “Do:” has two items, one is: "Log in with Facebook" Jun 08 12:19:21 Logo sections has single “Do:”, which is: Design your own logo that represents your brand. Jun 08 12:19:51 plus large list of what you don't do :) Jun 08 12:20:24 Ah yeah I see :) Jun 08 12:21:50 That's the reason why not so much games have such 'F' in their game :) Jun 08 12:23:28 If you startActivityForResult(), and the user hits 'back' in that activity, does it automatically finish()? Jun 08 12:27:10 @squ Again thanks for your clear answer, you saved me (another) hour of searching ;) Jun 08 12:28:29 thanks for you kind heart Jun 08 12:29:59 Does anyone know how to make Android use the applicationId of a test variant while running instrumentation tests? adb says it's loading com.myproject.debug.test, but when I use resources defined in gradle with resValue, it only uses the com.myproject.debug version, without the test suffix https://gist.github.com/shekibobo/da0237437c578cd0de00 Jun 08 12:31:48 mrmeyers: I don't think it takes that much experimentation to figure that out for yourself Jun 08 12:33:14 I created a build type for debug in gradle which has debug related stuff. But when I install the app, it's creating a blank notification by default. Jun 08 12:35:14 MartialLaw: Maybe. I could also try it, find that some other class of something is doing something special case something or other, unless I'm standing on one foot on the night of a waxing gibbous moon, in which case it promptly kills my dog. Jun 08 12:35:29 I don't gamble with the lives of my pets. Jun 08 12:35:59 ...or you could try it and it would take about 5 seconds Jun 08 12:36:48 damn im dumb Jun 08 12:38:00 Can someone please have a look: http://pastebin.com/ZW47cFp9 - I think I have done something wrong because the GPS tells me it' on all the time, and bluetooth tells me its on until I update the view. The pictures OK should display when the gps/bluetooth are on. Jun 08 12:38:13 Have two samsung devices, and haven't been able to get adb to push or install to them either over Linux or windows. adb devices lists the device, and the logcat in AS can see the devices just fine, any ideas? Jun 08 12:38:53 MartialLaw: My meaning is that I'm getting inconsistent results. 'try it' only gives useful info when you know something will behave consitently. Hence the asking. Jun 08 12:39:52 oh well then the answer would be your doing something wrong... why would you be getting inconsistent results? Jun 08 12:41:10 qkzoo1978: Do you get any error messages or warning? Jun 08 12:41:48 MartialLaw: That is precisely what I'm trying to figure out. Jun 08 12:41:49 nope, just hangs till i ctrl+c and kill it. Jun 08 12:43:41 mrmeyers: i'm not trying to be a dick but that's not really something anyone on here can help you with unless you sent all your code Jun 08 12:51:09 MartialLaw: I didn't ask "Code not run, how to fix?". I asked if anyone knew offhand whether hitting 'back' does anything weird for an activity called by startActivityForResult(). If not, meh. If so, it'll help me figure out where exactly my own stuff is going wrong. Jun 08 13:04:44 mrmyers: It calls onBackPressed() Jun 08 13:18:04 barq: Thanks. Jun 08 13:19:28 So if I add breakpoints in my code using Android studio...is there a way to step through the code? Jun 08 13:20:19 Ohh nevermind I just got the buttons.. Jun 08 13:21:27 guys using Retrofit how do you indicate the loading process ? Jun 08 13:26:08 tagrudev: do you mean for downloading large files? retrofit isdn’t really intended to support that Jun 08 13:26:11 JakeWharton: ... Jun 08 13:26:55 nope I mean what do you use to indicate while the http request passes by Jun 08 13:27:15 tagrudev: i use a spinner Jun 08 13:27:27 or nothing if it’s happening in the background Jun 08 13:27:42 (by background I mean, the user isn’t actively waiting for it) Jun 08 13:27:45 yep its asynchronous Jun 08 13:28:08 but I have to indicate in some way that an http request is currently on going Jun 08 13:28:12 (i don’t mean background as in the network io isn’t happening on the main thread. that is always the case) Jun 08 13:28:15 i use a spinner Jun 08 13:28:17 is the ProgressIndicator the way to go Jun 08 13:28:21 with material design too ? Jun 08 13:28:41 sorry i mean progressindicator Jun 08 13:29:08 this is a dev channel, not a design channel, but i think progressindicator is used in material design apps too Jun 08 13:29:36 http://www.google.co.uk/design/spec/components/progress-activity.html Jun 08 13:30:42 :) Jun 08 13:35:26 I'm running into the strangest error building an app with a library that uses play services. The app builds fine but when I run it on the device it fails with a NoClassDefFound exception Jun 08 13:35:31 the class is definitely present in the Jar Jun 08 13:35:54 and when I reinstall I get an error saying "Rejecting re-init on previously-failed class" Jun 08 13:35:58 mmarklar: have you done a clean build? Jun 08 13:36:01 has anyone seen that before? Jun 08 13:36:08 samskiter: several times :) Jun 08 13:36:25 is the jar present in the APK? Jun 08 13:36:37 in the following link I have my MAIN Android file (MainActivity.java) and then underneath that I have my 1 class that I use with MainActivity. My probleme here is that for some reason my list.add(value[i]) keeps on going out of bounds for somen reason....The test integer (x) seems to work out fine but (i) seems to just spiral to something random above what x will en up tp be -- > http://pastebin.com/hC6GhGdS Jun 08 13:36:55 samskiter: I should have checked that thanks. I'm assuming it is cause the class not found is an anonymous inner class Jun 08 13:37:12 hmmm, its not something to do with multidexing is it? Jun 08 13:37:23 samskiter: nope Jun 08 13:37:33 i believe there is some behaviour problems with fragments and anonymous classes Jun 08 13:37:46 yeah I found some stuff about that on stackoverflow Jun 08 13:38:00 this is a class with a single static method, its basically a helper for getting a play services client Jun 08 13:38:07 the class not found is the connection failed callback Jun 08 13:39:22 mmarklar: is this your implementation of the callback that it cvan’t find? or is it the interface itself that it cant find Jun 08 13:40:07 if the former, then why is it in a jar? (re: to “the class is definitely present in the Jar”) Jun 08 13:40:25 samskiter: my implementation, the class name is ClientHelper$1$1 because its an inner class within another inner class Jun 08 13:40:31 its in an aar to be shared across projects Jun 08 13:40:51 and I went into the classes.jar within the aar to ensure the .class file is there Jun 08 13:41:31 ok, go do the same exercise with the apk i guess... Jun 08 13:41:43 yeah checking that out now, thanks :) Jun 08 13:45:24 in the following link I have my MAIN Android file (MainActivity.java) and then underneath that I have my 1 class that I use with MainActivity. My probleme here is that for some reason my list.add(value[i]) keeps on going out of bounds for somen reason....The test integer (x) seems to work out fine but (i) seems to just spiral to something random above what x will en up tp be -- > http://pastebin.com/hC6GhGdS Jun 08 13:46:14 On line 24 it also seems to have a problem with the CAST I make to (ListView) Jun 08 13:46:28 Im not quite sure why it will have a problem is someone does that Jun 08 13:47:31 cart_man: that should only be an issue if mylist is not a ListView Jun 08 13:48:20 why do you need 'x'? Can't you just use 'i' as the index? Jun 08 13:48:31 cart_man: it should be i++ rather that ++i Jun 08 13:49:02 and then use i Jun 08 13:50:40 Good afternoon, I just managed to set up TestNG and ran some tests. Does anyone know whether all the unit test-related features added in AS 1.2 are specific to JUnit, or can any unit-testing framework be used, like TestNG? Jun 08 13:53:25 Question, i am making an app that will be able to customize the status bar settings. I have the code, but it's using the SettingsPreferenceFragment. Which is located in the ASOP settings app. Jun 08 13:53:44 How do i import it or make the app change it in some way ? Jun 08 13:54:26 dex2goat, sorry for the late reply, went for dinner. Does limiting it to a package allow me to still test submodule stuff in my unit tests? Will it still be a fully testable build? Jun 08 13:58:04 mmarklar, Ok but the mylist it is refering to is a .xml layout file...So what exactly do you mean with mylist is not a ListView ? Jun 08 13:58:21 mmarklar, Should I add a ListView component to it? Jun 08 13:58:47 cart_man: is there a tag in the main.xml file with an id of 'mylist'? Jun 08 13:59:28 mmarklar, No ... Shit ok I see now what you mean Jun 08 13:59:40 cart_man: :) Jun 08 14:00:19 cart_man: alos looks like the for loop in StableArrayAdap will out of bounds use objects List Jun 08 14:00:25 also* Jun 08 14:02:04 Hey, guys. Im trying to implement a EditText i want to zoom and pan with a touchevent. (Just like Snapchat). Any ideas on how to make this work? Jun 08 14:02:24 mmarklar, Cant believe ive spent soooooo much time with that problem..did not stop for 1 second to look at my .xml files -.- Jun 08 14:02:26 THanks allot Jun 08 14:03:43 cart_man: np, happens to all of us :) Jun 08 14:04:09 Any touchlistener wizards here? :P Jun 08 14:05:56 mmarklar, Ok so let me just get one thing straight here... You can use anthing with an ID as long as its in Layouts and has the same ID ? Theres no Linker as such between the 2 ? An Exampele... final ListView listview = (ListView) findViewById(R.id.mylist); get ID=mylist . BUT I had an mylist.xml file and it compiled with it...so then I remove the file and then added a listview inside main.xml OR activity_main.xml and it automatically picked Jun 08 14:07:21 cart_man: the link is the setContentView call right above it Jun 08 14:07:43 that inflates a particular xml file, and then you can use findViewById to get references within that xml file Jun 08 14:07:53 unfortunately R.id. will contain all ids from all xml files Jun 08 14:08:00 so the IDE can't tell you it won't work Jun 08 14:08:19 mmarklar, Ohhh yea I guess that is good and bad ... ok nice nice glad that is cleared up Jun 08 14:08:59 yeah its just one of those things particular to android Jun 08 14:09:35 samskiter: Thanks for talking me through debugging that issue I had, it seems to be caused by having a build-tools/sdk mismatch between the library and app projects Jun 08 14:16:11 mmarklar: glad u found it Jun 08 14:16:24 cart_man: i believe the ide can give you some warnings if you start to do something mad Jun 08 14:17:11 it will only give a warning if the id doesn't exist period, right? Jun 08 14:17:26 How do i fill the cardView xml with a custom layout xml file i have ? Jun 08 14:18:21 I want the cardView to be like a container, and the whole layout_xml inside it. Is it possible ? Jun 08 14:18:28 mmarklar: i think it\s been getting smarter Jun 08 14:18:29 it seems to know if you tryt and cast the wrong type Jun 08 14:19:40 samskiter: very cool I didn't know that Jun 08 14:20:22 mmarklar: have you seen the new databinding stuff coming? Jun 08 14:20:27 no more findviewbyid Jun 08 14:22:18 yeah, haven't played with it yet but it looks really neat Jun 08 14:24:09 samskiter, It actually had a red line but To me everything seemed fine and then it compiled and ran and crashed rather then errored out of compiling...which was a bit awkward Jun 08 14:24:25 cart_man: its not a static error Jun 08 14:24:56 that’s the IDE doing some smarts for you, rather than a compile time check Jun 08 14:35:53 hello devs.. is there any way to change fonts from adb? like settings > display > fonts > huge? :s Jun 08 14:36:22 in terminal or in the IDE? Jun 08 14:37:05 from terminal.. i need to make a script, that change the fonts to huge when first boot. Jun 08 14:37:18 dont know how to trigger settings.apk.. Jun 08 14:37:25 somewhere in your terminals application setting then Jun 08 14:41:01 are we talking root or? Jun 08 14:41:46 sorry got disconnected.. so i was asking hot to logcat only settings.apk activity? Jun 08 14:42:03 gotnut, filter by packagename Jun 08 14:42:09 What invokes a GetView() call on an adapter? Jun 08 14:42:35 the list view I would guess Jun 08 14:42:43 literallycat, its called everytime a newm view has to be drawn from the list Jun 08 14:43:00 so its called multiple times initially and then on scroll Jun 08 14:43:48 danijoo I see Jun 08 15:11:10 Is there a way to hook into an onActivityResult call similar to the way you can hook into activity lifecycle events using Application.ActivityLifecycleCallbacks? Jun 08 15:11:34 getting NullPointerException on the marked lines: http://pastie.org/10229655#42-43 can anyone help? the values are defined on the calendar, before i call the function Jun 08 15:13:03 luist: What exactly is null? textAlarmPrompt or targetCal? Jun 08 15:13:06 Hello, can anyone help me with this > http://stackoverflow.com/questions/30712836/android-shutting-down-vm-with-no-stacktrace ? Jun 08 15:13:27 is it ok to animate views from the item selected callback? Jun 08 15:13:34 instead of from the getview? Jun 08 15:14:21 So what does everyone think about the new Data Binding Library in beta? Jun 08 15:14:36 codepete, i like it Jun 08 15:14:39 a lot dont :P Jun 08 15:14:48 mmarklar: ooh nvm.. i just noticed something stupid :) Jun 08 15:15:37 danijoo: I think it was pretty cool. I think it definitely assists in building a cleaner architecture if you do it right. Jun 08 15:15:39 I wish the new kotlin-gradle-plugin would come out so I can actually use it Jun 08 15:15:42 luist: :) Jun 08 15:15:43 NPEs usually are caused by stupid mistakes ;) Jun 08 15:15:57 danijoo: why do a lot of people not like it? Jun 08 15:16:10 codepete, ask them :) Jun 08 15:16:14 dunno. Jun 08 15:17:22 huh, so everyone who doesn't like the Data Binding Library ... why dont you? Jun 08 15:17:31 does anyone know how i would be able to import my own 3D object into a mapping software? Jun 08 15:18:06 /join #3DObjectMappingSoftware Jun 08 15:18:40 codepete, i think its not the actual idea behind databinding Jun 08 15:18:51 its more about how it is implemented Jun 08 15:18:59 ah ok Jun 08 15:20:29 how about you try it for yourself and then make your own judgement? ;) Jun 08 15:20:52 hi i m launching a daemon (openvpn) as root; what would be a correct user and group to drop privilege to ? Jun 08 15:21:06 ask in #android-root Jun 08 15:28:57 hmmm im trying to set up an alarm, but its not receiving… the calendar information seems to be right. What could i be missing? http://pastie.org/10229681 Jun 08 15:29:39 danijoo: Ah I see, some people are thinking it could make things more messy as people will try to mix business logic somehow in the layout Jun 08 15:31:03 "with great power comes great responsibility" :P Jun 08 15:32:15 lol Jun 08 15:34:20 if only the opposite were true too :p Jun 08 15:36:43 wakelock, ok thanks Jun 08 15:40:20 how do you invoke onlayout? Jun 08 15:41:02 literallycat, dont. Jun 08 15:41:08 its a system callback Jun 08 15:41:18 ok Jun 08 15:41:53 a good thumbrule is to never call methods starting with "on" Jun 08 15:42:05 they are most often callbacks for something you dont control Jun 08 15:42:39 unless they are a part of your own custom defined interfaces/listeners :p Jun 08 15:43:15 yeah, I havea custom view Jun 08 15:43:30 hmmm im trying to set up an alarm, but its not receiving… the calendar information seems to be right. What could i be missing? http://pastie.org/10229681 Jun 08 15:47:14 Hello, Is it possible to send an intent/broadcast to the camera application to take a picture? Not just opening the application, but also taking a picture Jun 08 15:47:40 prinsen, you can only send an intent to open it Jun 08 15:47:52 or you must make your own camera activity Jun 08 15:48:55 hm, pretty sure being able to tell the camera to auto-take a picture would be a bit too invasive Jun 08 15:53:20 hi. I have published my signed app on the play store for beta testing. I even used ProGuard to generate the apk. Is there any risk in posting my obfuscated .apk file publicly for testing on places like Fiverr? Jun 08 15:53:38 oranjuice, anyone can take your apk and reupload it somewhere else Jun 08 15:53:40 I am primarily worried about people republishing it under their own name. Jun 08 15:53:43 proguard doesn't protect against that Jun 08 15:53:52 oranjuice, playstore == posted public Jun 08 15:54:09 nothing can protect you :p Jun 08 15:54:20 danijoo: but beta testing only playstore != posted public ? Jun 08 15:54:24 talking about that, i've dropped LVL Jun 08 15:54:28 oranjuice, yeah Jun 08 15:54:38 LVL? Jun 08 15:54:38 so much stuff for almost nothing Jun 08 15:54:40 oranjuice . have you attempted to decompile your own APK to see what you can do with it? Jun 08 15:54:40 if you want to be completely sure, don't publish your app at all, oranjuice Jun 08 15:54:47 licensing verif lib Jun 08 15:54:57 adq, ah. :) Jun 08 15:55:00 i dont use it either Jun 08 15:55:15 Gryd3-Shop, I've successfully hacked/modded a few obfuscated apps myself ;) Jun 08 15:55:25 Gryd3-Shop: nope. I'm no expert. I'm just being wary of people who do this on a regular basis. Jun 08 15:56:01 wakelock: haha :D but seriously, this is my first adventure and I don't want to make foolish mistakes. Jun 08 15:56:04 oranjuice, in short - as soon as you publish it, it is open to just about ANYTHING. the only thing you can do is maybe slow it down some, but there is no protection against it Jun 08 15:56:58 I see. Jun 08 15:57:11 but what's a "reasonably" measure? Jun 08 15:57:16 what you just did Jun 08 15:57:33 right. thanks :) Jun 08 15:57:49 now give me the link to your app so I can mod it and republish it as mine Jun 08 15:57:50 :p Jun 08 15:58:03 wakelock: I'll just give you the money I make Jun 08 15:58:14 easier Jun 08 15:58:20 :P Jun 08 15:58:41 https://io2015codelabs.appspot.com/codelabs/android-performance-profile-gpu-rendering#1 Jun 08 15:59:01 oranjuice, deal. consider it a ransom to NOT hack your app :p Jun 08 15:59:24 k Jun 08 16:04:15 hmmm im trying to set up an alarm, but its not receiving… the calendar information seems to be right. What could i be missing? http://pastie.org/10229681 Jun 08 16:05:06 luist, did you register that broadcastreceiver properly? Jun 08 16:05:29 ah nvm Jun 08 16:05:38 danijoo: i added inside application of manifest Jun 08 16:11:52 oranjuice if you app relies on server-side code to function properly it will be much more difficult to copy/paste Jun 08 16:12:15 unless the server isnt secured too :) Jun 08 16:12:24 Gryd3-Shop: true that Jun 08 16:12:30 make sure to use ssl and maybe client side certs Jun 08 16:12:36 server 'should' be ;) Jun 08 16:12:52 Gryd3-Shop, way to many apps out there that dont ssl :/ Jun 08 16:13:02 danijoo, because ssl in android is totally bulletproof, right? :D Jun 08 16:13:24 if you can call REST calls to a server from browser, something is horribly wrong Jun 08 16:13:26 i know ;) I sniff a lot of traffic from my Android. It's funny to see Jun 08 16:13:36 wakelock, its not about being bulletproof Jun 08 16:13:37 https://code.google.com/p/marketlicensing/issues/list lol LVL Jun 08 16:13:41 very abandonned Jun 08 16:13:52 I know I know Jun 08 16:13:54 what a shame Jun 08 16:13:57 it's something critical Jun 08 16:14:14 seemed from the beginning it was easy to get around (LVL) Jun 08 16:14:42 it started to be massively (and automatically) circumvented near 2012 iirc Jun 08 16:14:58 forcing you to entangle it more and more in your app Jun 08 16:15:35 my app is already tangled :( Jun 08 16:15:58 well you were the one to add rx to it :p Jun 08 16:16:06 meh, the /r/android guys didn't like my HTC suggestion Jun 08 16:16:21 wakelock now i have streams of tangles :D Jun 08 16:17:17 g00s is apparently working on the new string theory, particle entanglements and stuff :p Jun 08 16:17:25 heh Jun 08 16:17:58 How can I pass an SQLiteOpenHelper to fragments and to a new activity Jun 08 16:18:12 Hi! Jun 08 16:18:13 not sure we should bring quantum entanglement as a comparaison Jun 08 16:18:15 pretty sure you are not supposed to, b2zeldafreak Jun 08 16:18:41 Which is the best GUI to use on Android for a java videogame? Trying to decide Jun 08 16:18:42 hi Jun 08 16:18:54 How should I access the database then? I have a main activity with 2 tabs made via fragments, and a details view. Both fragments and the details view need to access the DB Jun 08 16:18:55 Iarfen, the built-in framework preferrably Jun 08 16:19:19 wakelock: is this framework compatible with desktop app? Jun 08 16:19:28 many apps today have a 'Share' function, but are the available destinations determined by the app developer? Jun 08 16:19:30 of course not... Jun 08 16:19:37 Iarfen, maybe libGdx. It builds for android, iOS and desktops Jun 08 16:19:39 wakelock: and with iPhone? Jun 08 16:19:45 or is an app supposed to 'register' itself as a possible destination? Jun 08 16:19:48 if you like it easy, unity3D :) Jun 08 16:20:09 camoder, the app has to "register" Jun 08 16:20:28 you have to declare it in your manifest that your app is able to receive a shared string for example Jun 08 16:20:30 Iarfen, as an user, I couldn't care less about the framework availability on other platforms, I just want it to be consistent and intuitive, and as an android user I'm most used to the android UI Jun 08 16:20:31 danijoo: right. so each registered app would show up under the 'Share' menu? Jun 08 16:20:32 camoder, share is often a simple intent (Intent.ACTION_SEND) with some extra Jun 08 16:20:45 then it depends on what is available on the device Jun 08 16:20:45 camoder, right now, yes. Will change with android M Jun 08 16:20:52 danijoo: what happens then? Jun 08 16:20:55 at least for some stuff Jun 08 16:21:11 adq: i see Jun 08 16:21:17 b2zeldafreak, what's wrong with instatiating a new SQLiteOpenHelper wherever/whenever you need it, and disposing of it as soon as you're done? Jun 08 16:21:19 twitter will be able to say "only our official app can open tweets!" Jun 08 16:21:52 * Activity Action: Deliver some data to someone else. Who the data is Jun 08 16:21:52 * being delivered to is not specified; it is up to the receiver of this Jun 08 16:21:52 * action to ask the user where the data should be sent. Jun 08 16:21:59 ah, the "deep linking" mentioned earlier Jun 08 16:22:00 wakelock: nothing particuarly, I just though that might be bad for performance if the databse has to be reopened everytime Jun 08 16:22:24 b2zeldafreak, you can use a singelton approach Jun 08 16:22:31 thats the best way i think Jun 08 16:22:37 b2zeldafreak, I'd first test it to see if that's a concern at all. if it is, then consider using a singleton, but those can be tricky to manage... Jun 08 16:22:39 one openhelper for the whole app Jun 08 16:23:07 cool, I'll have to look that up. thanks Jun 08 16:23:07 danijoo: users can still over-ride the app linking Jun 08 16:23:17 Leeds, I know. Jun 08 16:23:35 but it will be on by default Jun 08 16:27:24 Do I need a ContentProvider to use a CursorTreeAdapter? Jun 08 16:28:12 b2zeldafreak, no. you can get cursors without a contentprovider Jun 08 16:28:25 ok, thanks Jun 08 16:34:04 Hello Jun 08 16:34:20 I am Japanese Jun 08 16:34:28 I live in Japan Jun 08 16:34:40 Arigato! Jun 08 16:34:50 ircfox: hello Jun 08 16:35:29 Konnichiwa Jun 08 16:35:30 hello licksjp Jun 08 16:36:12 iravan: I have made this app Jun 08 16:36:28 Plase get Play? Jun 08 16:36:35 https://play.google.com/store/apps/details?id=joker.tower.com Jun 08 16:36:54 licksjp, see topic ;) Jun 08 16:36:56 "No bots, and no advertising please, jobs or otherwise" Jun 08 16:37:12 sorry Jun 08 16:39:33 * wakelock downvotes licksjp's app :p Jun 08 16:39:35 (not really) Jun 08 16:45:16 Does anyone else see this as the preview for a CoordinatorLayout with an AppBar and CollapsingToolbarLayout? https://i.imgur.com/cjBgz1j.png Jun 08 16:46:11 The reason there is no image is because I'm using Glide to load one in, but the point is that the toolbar is in front of the RecyclerView. Jun 08 16:46:20 Hello guys, I want to learn game devt in for android, what opensource lib do you guys recommend? Jun 08 16:47:34 Muchoz, no idea about your problem but as a tip for imageviews: you can use tools:src="some image" to show an image in preview if you use something like glide at runtime Jun 08 16:48:09 shadej: check out something call bad logic games Jun 08 16:48:56 danijoo, ya I should probably use that. Do you also see the RecyclerView behind it? Jun 08 16:51:02 lasserix_: I am asking for a library, I think you need to restart your brain Jun 08 16:51:27 yeah i agree Jun 08 16:51:38 unfortunatly im out of dmt and amps Jun 08 16:51:40 otherwise Jun 08 16:51:57 I would be able to control your mind. Jun 08 16:52:42 lasserix_: let me know when you are ON safely. I think your brain is now dumping some restart messages.. Jun 08 16:53:17 when is it save to call getHeight() in a custom view? Jun 08 16:53:47 and by save i mean, it does return actual values. Jun 08 16:53:50 probably after onMeasure Jun 08 16:56:10 If I form an intent to open a URL in the browser. Do I need to ask the "INTERNET" permission?? Jun 08 16:56:55 I don't believe so, deadmund Jun 08 16:57:16 t0astt: Why not? I can put something in a post parameter and effectively send data off the device right? Jun 08 16:57:33 BTW, according to my experiments, it seems you're right. I don't need any permissions Jun 08 16:57:42 Because it would be the browser doing the internet actions, not your app Jun 08 16:58:27 t0astt: I guess that's true. But it still seems wrong to me. My app is able to send arbitrary data (in a POST parameter / arg) and send it to an arbitrary web host. Jun 08 16:58:59 I am effectively causing a socket to open, and then sending data through it. Jun 08 16:59:35 the web browser they choose to allow the action is doing it Jun 08 16:59:37 Ok, well think of it this way: your app is just communicating to another app. As far as your app knows, you're just telling another app to open but with some data as parameters. It's up to the recipient app to know what to do Jun 08 17:02:04 you can't send POST request through an intent Jun 08 17:08:19 Has anyone tried the data-binding stuff yet? Is it anything to be optimistic about? Jun 08 17:09:02 TacticalJoke, not working with kotlin so far :( Jun 08 17:09:10 Doh! Jun 08 17:09:56 the kotlin gradle plugin does not support android gradle plugin 1.3 yet Jun 08 17:10:17 and thats a requirement for the databinding stuff afaik Jun 08 17:10:35 danijoo orly? binding needs 1.3 :( Jun 08 17:11:06 g00s, they say this or next week in their issue tracker Jun 08 17:15:31 Where in Developer Console can I see the Android versions running on devices that downloaded the app? Jun 08 17:15:47 barq, main screen Jun 08 17:18:57 hope el capitan run on my old mbp, looks pretty good Jun 08 17:21:57 .... did they just rediscover drag'n'drop, on a level of unaugmented X11? Jun 08 17:22:15 (I'm mercifull, so I'm not going to compare with WinNT) Jun 08 17:22:35 hehe, seems like they are talking about window management, a fun topic Jun 08 17:22:55 p_l are you running windows 10 ? Jun 08 17:23:02 or whatever preview it is Jun 08 17:23:09 g00s: And they are still behind a machine I've read in a mail from ~1993 Jun 08 17:23:34 g00s: yes, I have it in VMware Jun 08 17:23:35 1993, i was reading mail from a VAX O.o Jun 08 17:23:50 g00s: let me find the email... Jun 08 17:24:20 5th January, 1993: http://ml.cddddr.org/slug/msg07774.html Jun 08 17:25:34 Do I need to complete all information about my app in order to start uploading apks for alpha/beta testing? Jun 08 17:25:43 a more integrated version of what I experienced in late '90s on Windows... Jun 08 17:26:43 p_l interesting Jun 08 17:30:33 speaking of flashbacks, this seems like a decent business model, lol http://dilbert.com/strip/2009-06-14/ Jun 08 17:35:57 hi how can i create an unprivileged user on android like nobody:nobody Jun 08 17:37:34 wakelock: I can include any URL I want (just a string) and the URL can have parameters / arguments. Jun 08 17:37:45 troulouliou_dev, you must be confusing android with unix Jun 08 17:37:46 t0astt: canvs2321 Good point. I think that does make sense then. Jun 08 17:37:54 deadmund, that's not a POST though Jun 08 17:38:31 wakelock, i m launching openvpn from root; i want to drop to an unprivileged user; but i guess i need first to create one Jun 08 17:38:49 wakelock: Whatever, it's a GET. It doesn't matter. I can send data in the URL is the point. Jun 08 17:40:32 This isn't necessarily Android-related, but I like the group in here. Can someone who has real-world experience in IT/CS offer me some advice on this? http://www.reddit.com/r/cscareerquestions/comments/391xar/need_to_give_decision_on_two_offers_today_need/ Jun 08 17:40:32 deadmund, its still an active action. the user sees what you are actually doing Jun 08 17:40:37 troulouliou_dev, there are no users on android. certainly not the ones you're probably used to Jun 08 17:40:45 you cant just send data randomly like an app that has the permission Jun 08 17:40:45 danijoo: Yes, I see. Good point as well. Jun 08 17:41:28 deadmund, the distinction between GET and POST is huge so don't dismiss it so easily. and yes you can include whatever args you want in your intent and it will get through. I know at least one app that actually did that and it was confusing me as hell. ended up being uninstalled. Jun 08 17:41:48 wakelock: mmmhmmm Jun 08 17:44:10 you would only be able to send one get until the user knows your app is opening browser and doing something weird Jun 08 17:44:22 its an interessting idea nevertheless Jun 08 17:47:09 danijoo: yes, thanks for the input :) Jun 08 17:47:14 Hey guys, could someone please help me out with loading shared libraries from dlopen that depends on another library? That seems to be impossible now for some reason, worked fine last I tried on a Android 4 device... Jun 08 17:50:35 Hi Jun 08 17:51:03 I have a problem with importing a "module library" with gradle Jun 08 17:52:17 I added the module, and included it in the settings (its on "/myLibrary/lib"): include ':myLibrary' Jun 08 17:52:35 and to my build.gradle: Jun 08 17:52:45 compile project(':myLibrary:lib') Jun 08 17:53:05 but it throws: Error:(55, 0) Project with path ':myLibrary:lib' could not be found in project ':app'. Jun 08 17:53:23 It worked on other project... i have no idea :O :'( Jun 08 17:58:25 oh man.... I had a bug in my documentation! Jun 08 17:58:43 how do diable the button that brings up the question mark on mc Jun 08 17:58:44 I should have do "include 'myLibrary:lib'" Jun 08 17:58:48 Is it possible to dlopen() a library that depends on another shared library? Jun 08 18:03:30 If i have a callback reference in a veiw, from its parent view, i dont need to worry about clearing it as a reference? Jun 08 18:03:51 I only need to worry when the context object is held by a static object, or some other object that outlives that view & its heirarchy Jun 08 18:03:52 ? Jun 08 18:05:32 My shared library has a dependency on another shared library with no specfic path... that dependency library is in the same folder as the librayr I'm dlopen'ing, but it can't find it ... Jun 08 18:05:46 is there a way to manually call action_pointer_up? Jun 08 18:05:48 how can I work around that? and this used to work fine on previous Android Jun 08 18:06:42 I have a bitmap which gets dragged around with a finger when the finger is inside of a certain bounds value (where the bitmap exists). However, when you drag it too quickly, the bitmap can’t move fast enough and your finger never actually went up, so it thinks its still being touched Jun 08 18:07:28 sorry ESpynx didn’t mean to steal your question’s thunder :) Jun 08 18:07:36 you didnt Jun 08 18:07:38 lel Jun 08 18:08:00 in_deep_thought: I'm sure your question badly needs answering too :) Jun 08 18:08:12 Are margins or paddings better to use for layout optmization? Jun 08 18:08:32 really depends, no? Jun 08 18:09:09 Is there somewhere we can get support for the NDK? Jun 08 18:09:21 lasserix_, they are 2 completly different things Jun 08 18:09:30 one is in a view, one is out of it Jun 08 18:09:34 lasserix: Yeah, the GC should be able to tell that the parent View is collectible. Jun 08 18:10:57 danijoo: just verifying Jun 08 18:11:08 the performance should be identical Jun 08 18:11:19 for instance, a presenter who holds a view reference, should clear that view reference when that view reference is "removed" Jun 08 18:11:33 oh Jun 08 18:11:40 you are talking about madding/margins Jun 08 18:11:42 oh ok Jun 08 18:11:43 thanks Jun 08 18:11:51 Anyone have a good way to trigger onLowMemory or onTrimMemory ? Jun 08 18:11:53 just wondering like if padding takes longer to calculate than margins Jun 08 18:12:29 really? Jun 08 18:13:02 AdamJB: run a seperate process (or number of them) that make services that create large bitmaps or play video or something Jun 08 18:13:02 even if that would be the case (I doubt), it would be at a scale that really doesnt matter Jun 08 18:13:20 AdamJB, for what? Jun 08 18:13:24 Does anyone here have experience with the NDK? Jun 08 18:13:37 testing app / clearing cache and stuff on low memory Jun 08 18:13:56 AdamJB, check "Dont keep activities", that should be all you need for testing Jun 08 18:14:04 on low memory, your app will somply get killed. thats all Jun 08 18:14:14 ESpynx, android's library loader won't load them automatically like Linuxs does Jun 08 18:14:19 you need to call System.loadLibrary for each Jun 08 18:14:28 ok cool, thanks. Jun 08 18:14:44 Mavrik: THanks for answering. I read things about that. First, I don't use Java so I don't call System.loadLibrayr, ratehr dlopen. Jun 08 18:14:57 Ugghh. Jun 08 18:15:01 Mavrik: note that this used to work fine on the Android 4 versions before. Jun 08 18:15:38 Android does not give you guarantee your hackery with dlopen() will work. Jun 08 18:15:54 Mavrik: I also tried dlopening the dependencies first, and the bottomost dependency loads fine. The problem is that I have to load them with an absolute path or else they don't load. And then when my libraries depending on them are linked with just the filename, they don't recognize that this is the library already loaded. Jun 08 18:15:56 If you're not using System.loadLibrary to load stuff into memory space of dalvik, you're SOL Jun 08 18:16:58 Mavrik: I read many posts about things like that but they were all dates from years ago, and I thought things were put in place to address that . My stuff always worked fine. now all of a sudden with Android 5 these issues come up Jun 08 18:21:12 ESpynx, uhh, there never was support for using dlopen(), neither was it announced. Jun 08 18:21:18 It was always very clearly said to not do it. Jun 08 18:21:29 If it worked it worked by accident, not explicit API / Google support Jun 08 18:21:45 Mavrik: Google provides libdl.so Jun 08 18:21:52 and provides dlopen()... why would it not work Jun 08 18:22:28 Mavrik: I'm searching for how to do 'System.loadLibrary()' from C with JNI code or something Jun 08 18:22:31 any clue? Jun 08 18:22:42 Don't. Jun 08 18:22:45 Call it from Java code. Jun 08 18:22:48 Mavrik: It's a C library depending on another C library Jun 08 18:22:50 I don't have Java code Jun 08 18:22:54 Yes you do. Jun 08 18:23:20 Mavrik: No I don't, my Manidest has android:hasCode="false" just like the sample NativeActivityApp Jun 08 18:23:43 ESpynx, there cannot exist an Android code without its Java entry point and VM Jun 08 18:23:52 ESpynx, there's still a loader in there written in Java Jun 08 18:23:54 Anyone have experience with the MaterialDialogs library? I’m trying to set the button color with positiveColor() or positiveColorRes() and it’s not taking Jun 08 18:24:06 so hook in there and call System.loadLibrary() before trnasferring control to native code Jun 08 18:24:08 Mavrik: I get that that is the case, but I don't want to deal with Java. Jun 08 18:24:09 and stop doing unsupported shit Jun 08 18:24:27 ESpynx, do it right or don't do it at all. Jun 08 18:24:29 Mavrik: it was supported just fine throughout the last years on all my devices. Jun 08 18:24:37 *sigh* Jun 08 18:25:01 ESpynx: Private APIs mean that things can break like this Jun 08 18:25:02 Mavrik: say I wanted to do it 'right', what do I need to do? set hasCode to true ? Jun 08 18:25:22 write a Java file with my dependncies, javac it, put it in a jar? Jun 08 18:25:37 O.o Jun 08 18:27:08 ESpynx, http://stackoverflow.com/a/13081655/169115 Jun 08 18:28:32 Mavrik: thanks, I'm confused as to where that should end up though? Jun 08 18:29:01 apple open sourced Swift, support for linux? Jun 08 18:29:04 right in my apk top folder ? Jun 08 18:29:24 Being ported to the JVM can’t be far behind Jun 08 18:29:27 g00s, source? Jun 08 18:29:47 Swift sist on the CLANG compiler tool chain Jun 08 18:29:50 danijoo http://www.apple.com/live/2015-june-event/9d2ad033-d197-4009-96a7-2a97fd044cb7/ Jun 08 18:29:54 so basically it will be everywhere Jun 08 18:29:56 announced on their keynote today Jun 08 18:30:10 hi a tried building the hellomap3d sample from (https://github.com/nutiteq/hellomap3d-android), but I got an unsupported major minor version 52 error on com/nabilhachicha/nativedependencies/NativeDependenciesPlugin. Any suggestions for how to resolve this? I tried changing the java compiler project bytecode version in android studio to 1.7 and 1.8, but I still get the error Jun 08 18:30:27 this step kinda makes sense Jun 08 18:30:48 swift could probably work n android easily also Jun 08 18:31:07 i think they open sourced the standard library too Jun 08 18:31:08 please not Jun 08 18:31:22 Mavrik: do I need to run dex ? Jun 08 18:31:27 please do. much better than java Jun 08 18:31:35 ESpynx, what the hell are you doing? Jun 08 18:31:53 Mavrik: I can write that code in a .java file, but then how the heck do I get it in my APK ? Jun 08 18:31:54 s73v3r, dont deal with java then ;) Jun 08 18:32:10 ESpynx, by using one of the three available Java build systems with Android plugin support Jun 08 18:32:18 Mavrik: I have my own build system Jun 08 18:32:19 that will properly package resources, code and do processing Jun 08 18:33:22 does anyone happen to know a good article on preventing memory leaks on android? Jun 08 18:33:52 1) find the leak Jun 08 18:33:56 2) fix the leak Jun 08 18:33:58 3) ????? Jun 08 18:34:03 4) profit! Jun 08 18:34:04 that's not prevention Jun 08 18:34:20 skip 1 or 2 for prevention Jun 08 18:34:24 and* Jun 08 18:34:31 Mavrik: javac and dx ? Jun 08 18:34:56 preventing it would mean to just not use too much memory Jun 08 18:36:21 also not holding on to contexts everywhere Jun 08 18:43:08 the other day I started an objectanimator with a button Jun 08 18:43:15 and the imageview it animated teleported to the button's y coordinate and *then* animated smoothly Jun 08 18:43:16 Is there a way to give imageviews padding without affecting the size of the image, Jun 08 18:43:22 it was supposed to just fly across the screen w/o any abrupt jumps Jun 08 18:43:29 but when I started that obj animator from a separate thread it worked as intended Jun 08 18:43:32 or is that like the delegate stuff im supposed to do in code? Jun 08 18:43:36 does the reason for that seem obvious to anyone? Jun 08 18:43:58 lasserix_, make them bigger in size Jun 08 18:44:28 does anyone know how to get the ETA back from directions in google maps? Jun 08 18:44:45 bigger in size and keep size by using padding? Jun 08 18:45:37 yes Jun 08 18:47:47 thanks Jun 08 18:49:04 How can I set the encoding of a TextView to display special characters such as "ä" properly? Jun 08 18:50:48 The encoding of my layout is UTF8 Jun 08 18:51:04 UTF8 displays ä Jun 08 18:51:14 unless your font does not contain an ä Jun 08 18:51:52 barq, where do you get the text from? the web? Jun 08 18:52:55 danijoo: Yes, the web. Jun 08 18:53:17 barq, your encoding issue is the web fetching part, not the textview :) Jun 08 18:53:38 So I've got this class now: public class test01 extends android.app.NativeActivity Jun 08 18:53:49 I'm getting: Error: Activity class {com.ecere.test01/test01} does not exist. Jun 08 18:57:26 Seems like it's named something else, because lo and behold the app seems to now be running!! Jun 08 18:58:58 danijoo: With some feeds it works, with others it does not. What do I need to adjust? The feed or the fetching? Jun 08 18:59:13 the fetching Jun 08 18:59:22 decode properly Jun 08 18:59:34 the whole entire android framework is completely UTF-8 based and has full built-in support for all the exotic characters Jun 08 18:59:56 I'm using Request to get the data. Jun 08 19:00:02 this seems awfully stupid to ask, but can't I get Picasso to load a different image from the web inside error()? Jun 08 19:00:26 try and see? :p Jun 08 19:00:28 cause the error is not necessarily due to a failure in connection, it just won't be able to find that specific image I'm looking for, in my use case Jun 08 19:00:29 Odaym, use a target Jun 08 19:00:42 to call picasso again but with no Target, yea? Jun 08 19:00:44 What would my activity be named Jun 08 19:00:47 yup Jun 08 19:00:48 seems right Jun 08 19:00:51 ok thanks Jun 08 19:01:08 you're welcome :p Jun 08 19:02:48 i.e. with public class test01 extends android.app.NativeActivity ... What's my activity class? Jun 08 19:03:20 maybe com.ecere.test01/.test01 Jun 08 19:03:34 . eh Jun 08 19:04:08 well yes, that works, thank you wakelock. Jun 08 19:04:38 np Jun 08 19:04:39 Mavrik: thanks again. got it working. Jun 08 19:04:45 So instead of new String(NetworkResponse.data, HttpHeaderParser.parseCharset(NetworkResponse.headers)); I pass UTF-8 as second parameter here. Now the characters display properly. Not sure this is the most elegant solution, though. Jun 08 19:05:09 I had a feeling I was going to have to do this last night, but was reluctant to try to figure out how to add Java code :P Jun 08 19:05:13 you should try it with some content/site that you know is not UTF-8 Jun 08 19:06:54 The resource says Jun 08 19:10:28 yea, too much heavy lifting Jun 08 19:10:32 it's just a damn not found image Jun 08 19:10:48 I guess I can just do new String then and not pass an encoding with it. Jun 08 19:11:09 barq, if you know the encoding will never change, yes Jun 08 19:11:30 everyone not using utf-8 or utf-16 should be slapped these days anyway Jun 08 19:12:31 It works without specifying an encoding. Odd this doesn't work when using the encoding from the headers Jun 08 19:12:49 * wakelock convert all danijoo's source files to US-ASCII Jun 08 19:13:25 EBDIC would be better Jun 08 19:13:42 EBCDIC*, and yeah I didn't think of that :p Jun 08 19:15:16 real programmers read EBCDIC like their mother tongue Jun 08 19:15:23 automatically encrypts ! Jun 08 19:15:41 man, AS is really fucked up on undo backstack Jun 08 19:15:45 the code gets mangled Jun 08 19:16:08 oh wow, yes! Jun 08 19:16:18 using EBCDIC as a form of encryption :D Jun 08 19:16:36 next time someone asks how to hide their gmaps or whatever access keys... :) Jun 08 19:21:51 hello Jun 08 19:21:53 what is the correct way to add a library to an Android Studio project? Jun 08 19:22:05 view gradle Jun 08 19:22:09 via* Jun 08 19:22:30 with a shovel Jun 08 19:24:25 check this, if you set noPlaceHolder() on an image being loaded by Picasso, it stops the image from reloading its error bitmap when events occur on that page Jun 08 19:24:35 i checked it Jun 08 19:24:52 usually if its in a list item and you press any item in the list, the picture that had the error holder on it refreshes and it like blinks Jun 08 19:25:07 I think it means "this one is a dead end, stop trying" Jun 08 19:26:53 has anyone here used OSMdroid? Jun 08 19:31:33 looks toxic for devs Jun 08 19:31:54 and for that thing, you need Callback not Target Jun 08 19:31:55 they take apps, remove the stuff that make me earn money and republish Jun 08 19:32:00 like my code.. *badum tish* Jun 08 19:32:16 because I dont want to be handling onSuccess, just onError Jun 08 19:32:32 and if you go with Target, onBitmapLoad cannot be left empty Jun 08 19:32:45 be like water my friend Jun 08 19:36:28 oh by OSMdroid i mean the open source mapping software for android, not that weird osmdroid.net site haha Jun 08 19:37:08 oh :D Jun 08 19:37:11 no Jun 08 19:37:30 its a library replacement https://github.com/osmdroid/osmdroid Jun 08 19:37:52 kinda old but it has features (i think) that i wanna use, namely 3D buildings on maps Jun 08 19:39:34 wakelock: haah shovel Jun 08 19:41:29 nah no way you can have that inside an adapte,r with the callback and everything, things will get recycled and fuck up Jun 08 19:41:56 http://blog.danlew.net/2014/10/08/grokking-rxjava-part-4/ isnt the first example here wrong? shouldnt it be subscribeOn(mainThread and observeOn(io) ? Jun 08 19:42:38 because the subscription part (changing UI) should run in main thread, right? Jun 08 19:42:59 danijoo its backwards Jun 08 19:43:24 in rx, subscribeOn means the work thread Jun 08 19:43:45 subscribeOn and observeOn are such annoying names Jun 08 19:44:02 subscribeOn is only for side-effects that occur as a result of calling subscribe() Jun 08 19:44:04 i would expect those names to swap Jun 08 19:44:10 its consistent with OnSubscribe<> Jun 08 19:44:11 observeOn() is for all your callbacks Jun 08 19:44:25 that's a horrible description Jun 08 19:45:13 danijoo, subscribeOn(io) to start the observable pulling the image using the IO thread Jun 08 19:45:24 well thanks Jun 08 19:45:25 danijoo, observeOn(main) is for your code to run on UI thread onNext Jun 08 19:45:29 i think I got it :) Jun 08 19:45:50 danijoo this is a must read http://www.grahamlea.com/2014/07/rxjava-threading-examples/ Jun 08 19:45:51 is webkit-overflow-scrolling: touch something that's undesirable on android? I see that chrome ignores it for my app Jun 08 19:49:37 can you please explain why this fails. I just dont get it... http://pastebin.com/zrqcm1mn fails with Observers must subscribe from the main UI thread, but was Thread[RxCachedThreadScheduler-1,5,main] Jun 08 19:50:08 without subscribeOn, it works. But obviously my database call would then run in mainThread which I dont want Jun 08 19:50:10 danijoo, because the side-effect that occurs as subscribe() must be run on main thread Jun 08 19:50:45 danijoo, because you're binding WidgetObservable Jun 08 19:50:59 searchBox.setTextWatcher must run on UI thread Jun 08 19:51:12 ah yeah. makes sense. Jun 08 19:51:23 but how would I do this correctly Jun 08 19:51:52 dunno which thread operators run one Jun 08 19:51:54 on Jun 08 19:51:55 * pfn shrugs Jun 08 19:52:11 yeah thats my problem :) Jun 08 19:52:21 I thought I can somehow also alter where they run on Jun 08 19:54:29 I would assume operators run on observeOn thread, but that shouldn't be desirable either Jun 08 19:55:45 i'm having an issue with the camera API, when my app starts i associate a surface holder with the camera. and as the documentation suggests i release the camera onPause and re-open it on onResume. when i first start my app my surface view remains a black square in my app, when i lock my phone and then unlock it though it starts showing me the camera preview properly is there a callback i should wait for before starting Jun 08 19:55:45 the camera preview or something else i'm missing? Jun 08 19:56:15 danijoo probably best to not assume a default scehduler. when you compose the pipeline, apply the parametric scheduling then Jun 08 19:56:17 danijoo, you could flatMap it into an Observable.observerOn(Schedules.io()) Jun 08 19:57:06 good idea pfn Jun 08 19:57:23 wow writing plugins for intellij is shit. Jun 08 19:57:37 sorry that was actually a compliment Jun 08 19:57:49 complement* Jun 08 19:58:02 it's HIV, rather. Jun 08 19:59:44 * pfn continues to just use Futures Jun 08 20:02:07 Yeah the naming is bad, even now I still trip myself with subscribeOn() and subscribe() because these two look so connected Jun 08 20:02:45 that method takes an observer Jun 08 20:02:52 an observe observes Jun 08 20:02:59 I guess rx needs an operateOn modifier Jun 08 20:03:00 hence, observeOn Jun 08 20:03:04 no it does not Jun 08 20:03:14 that woudnt work i think Jun 08 20:03:19 <_genuser_> world cup!!! you guys!! Jun 08 20:03:38 operators are just observers on the stream Jun 08 20:03:38 you cant emit sync, operate async and subscribe sync again Jun 08 20:03:38 it makes sense once you work with it a while Jun 08 20:03:46 hello, i have two questions Jun 08 20:03:57 danijoo, that's not true Jun 08 20:04:01 yeah i think its just starting problems for me :) Jun 08 20:04:17 ok.. flatmapping doesnt work either :/ Jun 08 20:04:38 I wonder if anyone can make sense of this one: https://github.com/ReactiveX/RxJava/issues/1292 Jun 08 20:04:49 meaning what has changed Jun 08 20:04:55 first question, how can i make one column of a GridView take 50dp [width] and the other one take the rest? (something like "weight")? Jun 08 20:05:33 second one, how can i prevent my content from disordering in the gridview? [i use an adapter] Jun 08 20:05:47 danijoo, it just runs it on the appropriate scheduler as the events occur Jun 08 20:06:33 danijoo, if there were such a thing as operateOn that was distinct from observeOn Jun 08 20:06:37 danijoo: you need to subscribe on the main thread and observe the work on the io thread and then observe the result on the main thread Jun 08 20:06:53 although, I guess JW is somewhat right there Jun 08 20:07:14 obs.subscribeOn(main).observeOn(io).map.map.map.map.observeOn(main).subscribe(...) Jun 08 20:07:44 http://pastebin.com/zQckeQhP Jun 08 20:08:00 doh! I thought I somewhere read that subscribeOn/observeOn always affects the whole chain :) Jun 08 20:08:08 i didnt know this is possible Jun 08 20:08:11 no Jun 08 20:08:20 yeah, no Jun 08 20:08:25 now it made "click" :) Jun 08 20:08:26 subscribeOn affects "up" the chain for subscriptions only. observeOn affects "down" the chain for observing data Jun 08 20:09:46 any help? :| Jun 08 20:10:06 I guess 1.4.0 android-sdk-plugin incoming Jun 08 20:10:14 * pfn ponders if there's anything else to throw in for this version Jun 08 20:11:42 hi Jun 08 20:12:26 when a post is shared from one app to another, is there any way to make sure only the URL is being sent over? Jun 08 20:12:36 e.g., Quora sends over a big blurb of text Jun 08 20:12:51 however, the 'Copy link' option manages to dig out just the URL Jun 08 20:13:45 that's up for the app to perform Jun 08 20:14:25 do I actually need AppObservable.bindActivity here? I mean. No userinput can emit anyways, once the app is closed Jun 08 20:14:44 pfn: you mean the source or the destination app? Jun 08 20:15:10 camoder, source Jun 08 20:15:14 btw it worked with JakeWharton 's code snipped. thanks for that :) Jun 08 20:15:29 [22:04:55] first question, how can i make one column of a GridView take 50dp [width] and the other one take the rest? (something like "weight")? Jun 08 20:15:29 [22:05:32] second one, how can i prevent my content from disordering in the gridview? [i use an adapter] Jun 08 20:16:01 pfn: so you mean the Quora, StackExchange, etc. apps designed themselves to send blobs to everything beside the 'Copy link to clipboard' option? Jun 08 20:16:39 Any recommendations of programs that can draw UML diagrams etc. from code? :) Jun 08 20:16:40 hTmlDP, use tablelayout or another view besides gridview if you want the size thing, and the ordering is displayed by your data Jun 08 20:16:58 camoder, no idea what you're talking about, but yeah Jun 08 20:17:00 Vercinger, for android or in general Jun 08 20:17:18 canvs2321: 1st, i would use ListView instead then Jun 08 20:17:45 what are column one and column two? are they related? Jun 08 20:17:50 canvs2321: what do you mean with the second? It gets disordered after scrolling the table. Jun 08 20:18:10 hTmlDP, i'm saying it gets displayed in the order of your data you provide to your adapter Jun 08 20:18:25 canvs2321: two columns. Jun 08 20:18:36 pfn: what i mean is that, in these apps, a text blurb is sent to the destination app - whichever it is. however, the 'Copy link to clipboard' option manages to dig out just the URL Jun 08 20:18:46 what copy link to clipboard option Jun 08 20:18:54 there is no copy link to clipboard option that's universal Jun 08 20:18:54 danijoo, for my app - so android :) Jun 08 20:18:59 canvs2321: one column displays hostnames, the second displays the client count Jun 08 20:19:00 i'm saying are they rows in those columns related Jun 08 20:19:15 hmm yes Jun 08 20:19:16 pfn: right. so it's not a system-wide choice Jun 08 20:19:16 Vercinger, i think eclipse had a plugin for that. maybe theres also one for intellij/AS? Jun 08 20:19:17 say then use listview and use one row for that data Jun 08 20:19:22 k Jun 08 20:19:34 camoder, if the app provides a copy link to clipboard option, that's clearly something the app is doing Jun 08 20:19:54 pfn: ok. got it Jun 08 20:21:45 anyone work with the new multidex support in the android build tools? Jun 08 20:22:00 it was new about one year ago Jun 08 20:22:10 heh, ok new to me Jun 08 20:22:25 danijoo - http://stackoverflow.com/questions/17123384/how-to-generate-class-diagram-uml-on-android-studio Jun 08 20:22:47 I'm seeing a gson.fromJson create a heap runaway when multi dex is enabled and I can't find anything online to suggest what might be going on Jun 08 20:23:18 and there isn't a lot of documentation on how to customize things if you use multiDexEnable in the build.gradle file Jun 08 20:26:14 heap runaway on-device? Jun 08 20:27:02 pfn: yeah we go to parse the json and the call hits a timeout we have set Jun 08 20:27:09 watching the heap it just keeps climbing Jun 08 20:27:33 do you have any custom TypeAdapter/deserializers? Jun 08 20:27:55 I have one but the object being parsed was pretty simple Jun 08 20:28:18 its a list of a single object that contains two string fields Jun 08 20:28:32 well if there's something fishy in the deserializer the simplicity of the JSON input is irrelevant Jun 08 20:28:45 oh hi! Jun 08 20:28:49 hola Jun 08 20:28:52 Quick question -- does Android have something like iCloud? Jun 08 20:28:57 hi EGreg Jun 08 20:29:03 Where if I delete an app and reinstall it, the data persists based on google account? Jun 08 20:29:20 dex2goat: agreed, looks like some sort of look up error looping through dex files or something Jun 08 20:29:53 EGreg, http://developer.android.com/training/cloudsync/backupapi.html Jun 08 20:30:24 the documentation I've found for multiDexEnabled doesn't call out how to customize whats in the main dex (which is my current theory of what might be happening) Jun 08 20:30:32 but I'm kinda grasping at straws here Jun 08 20:30:33 and it will have the data if I access it from my app on another device Jun 08 20:30:36 or if my app was deleted and reinstalled Jun 08 20:30:42 as long as user is logged into the same google account, danijoo? Jun 08 20:31:04 EGreg, read first, then ask for more infos : Jun 08 20:31:05 :) Jun 08 20:31:35 Yes, I did. it just talks about backup/restore Jun 08 20:31:42 but what about if I have two andoid devices Jun 08 20:31:50 cloudsync will sync, I imagine, given its name Jun 08 20:32:02 aha. http://developer.android.com/training/cloudsync/index.html Jun 08 20:32:04 thanks! Jun 08 20:32:16 Using the Backup API Jun 08 20:32:17 Learn how to integrate the Backup API into your Android Application, so that user data such as preferences, notes, and high scores update seamlessly across all of a user's devices Jun 08 20:32:49 ibfrog: I don't think it's supported yet, but you can definitely do that with some groovy-voodoo in your gradle file. Jun 08 20:33:15 https://developer.android.com/tools/building/multidex.html Jun 08 20:33:24 there is a directive in the build tools for it now Jun 08 20:34:38 though you have me wondering if my TypeAdapter is somehow gumming this up by just being registered Jun 08 20:57:34 i have a viewpager inside a viewpager, whats best way of not having a scroll in the inner view pager to not goto parent? Jun 08 20:57:52 override onTouchIntercept or so Jun 08 20:58:03 onInterceptTouchEvent rather Jun 08 20:58:17 in the parent? Jun 08 20:58:19 JesusFreke http://digg.com/video/mad-scientist-builds-a-40-watt-laser-shotgun Jun 08 21:00:04 how do I verify from a server that a user is actually using an android phone? Jun 08 21:00:12 is there some signed value I can obtain on the phone? Jun 08 21:00:27 Hi. Is it possible to modify platform_frameworks_base/core/res/res/values/config.xml of a device without the source? Can I unpack a jar, make my changes, and then replace that jar and reboot? I have root access. Jun 08 21:00:36 EGreg, check the user-agent Jun 08 21:00:44 but it can be faked if someone really wants to Jun 08 21:00:47 that can be faked Jun 08 21:00:57 everything can be faked in an http request Jun 08 21:00:57 I need something signed with an android private key Jun 08 21:01:13 but androids might have some method to sign data using a private key Jun 08 21:01:15 theres no such thing Jun 08 21:01:23 I guess that would let us track the user, so I don't mean it would be phone-specific Jun 08 21:01:31 Just something that proves the request is coming from a real android phone! Jun 08 21:01:38 thats not possible Jun 08 21:01:38 Nothing? Jun 08 21:01:42 Shaisa, ok :) Jun 08 21:01:48 Thanks. How do you know for sure it's not possible Jun 08 21:01:57 why would you need that? Jun 08 21:02:12 Because I want to avoid people creating unlimited accounts, 1000 accounts a second. Jun 08 21:02:25 I want them to prove have something expensive first Jun 08 21:02:27 Which is an android phone Jun 08 21:02:31 ahh man best way to get over falling off train is 2 espressos/an hour/per day Jun 08 21:02:51 I can create 1000 accounts/second with my andorid phone too :p Jun 08 21:02:57 why would an android check hinder me Jun 08 21:03:09 Good question, let me think Jun 08 21:03:12 if they have a phone they can recieve text messages? Jun 08 21:03:26 thus hopefully proving they are real Jun 08 21:03:33 Because your android phone would be able to receive a "confirmation message" sent via in-app notifications, which is a unique id Jun 08 21:03:35 which is expensive to obtain Jun 08 21:03:39 there is only one per google account Jun 08 21:03:48 Same as sms authentication that lasserix_ said Jun 08 21:03:50 only one what? Jun 08 21:03:52 then check their google account Jun 08 21:03:59 Only one endpoint for in-app notifications Jun 08 21:04:06 you dont need to check if its android or not if you check the google account Jun 08 21:04:08 EGreg also http://www.quirksmode.org/blog/archives/2015/02/chrome_continue.html Jun 08 21:04:22 OK so danijoo I think that's the answer ... when they try to create an account, can we try immediately to ask them to allow notifications and send them an in-app notification? Jun 08 21:04:28 If that succeeds, I know it's a real android device! Jun 08 21:04:29 Right? Jun 08 21:04:31 lasserix_: You can do it from the one you wish to disable, in your case the child view pager: http://stackoverflow.com/a/9650884/1331240 Jun 08 21:04:53 g00s why do I care that there are many chrome user agents? Jun 08 21:05:04 I am talking abotu sending in app notifications Jun 08 21:05:09 EGreg, from my understanding you want to know if the user already has an account and not if its a valid phone Jun 08 21:05:11 so just check that Jun 08 21:05:23 play services has an api for that Jun 08 21:05:37 can you send me a link? Jun 08 21:05:38 my problem is Jun 08 21:05:42 i have viewpager inside viewpager Jun 08 21:05:46 Yes, I want to basically make it expensive for the user to create an account Jun 08 21:05:48 EGreg, google oauth Jun 08 21:05:49 Best if they already have an account with google Jun 08 21:05:52 lets say i get to 0 1 2 3 inside inner viewpager, if i get to 3 Jun 08 21:05:57 Google OAuth, perhaps it's a good point. Jun 08 21:05:58 and keep swiping to goto non-existant 4 Jun 08 21:06:02 it'll swipe the parent viewpager Jun 08 21:06:16 How do I get access to the in-app notification feature in Android phones? Jun 08 21:06:33 viewpagers are not built to deal with nested focusability Jun 08 21:06:41 I still didn't understand what you are trying to do Jun 08 21:06:49 i have a viewpager Jun 08 21:06:53 inside is a viewpager with pictures Jun 08 21:06:57 if they swipe in the pictures, Jun 08 21:07:02 the last picture, if they keep swiping Jun 08 21:07:07 AppObservable.bindActivity(this, WidgetObservable.itemClicks(listView)) << do I actually need that bindActivity here? From my understanding it should stop emitting when the app is closed anyways? Or does it also prevent my observable from leaking Jun 08 21:07:10 will start the parent viewpager to swipe in that directio Jun 08 21:07:38 How do push notifications work in Android? Jun 08 21:07:43 Just tell me that. Jun 08 21:07:54 EGreg, google? Jun 08 21:07:58 yes Jun 08 21:08:03 Google Push Notifications Jun 08 21:08:11 Whichever ones wake up the device and integrate with the system, like Apple Jun 08 21:08:13 no. i mean... https://support.google.com/websearch/answer/134479?hl=en Jun 08 21:08:35 danijoo: https://www.dropbox.com/s/z8mq5m8u0xc012o/Screenshot%202015-06-08%2017.08.31.png?dl=0 Jun 08 21:08:36 I'm not an idiot :) Jun 08 21:08:44 i didnt say you are Jun 08 21:09:00 but you are asking questions that are easily googleable Jun 08 21:09:22 lasserix_: so.. you can't expect it to work normally out of the box, normally you're not supposed to nest viewpagers. at worst case, you have to disable touch events for one of the viewpagers. Do you wish to do that for the parent viewpager? Jun 08 21:09:47 I'm asking this: how do I send push notifications? To whom are they addressed? I have to send them to a server and specify SOME ID right? Jun 08 21:09:53 I thought it would be easier to ask here Jun 08 21:10:18 From the screenshot, there are already all relevant answers Jun 08 21:10:32 read the one from developer.android.com ;) Jun 08 21:10:50 dex2goat: yeah i am aware i already had to deactive the parent view pager in for another reason Jun 08 21:10:56 It says registration_ids Jun 08 21:11:06 so why would you even have the parent be a viewpager? Jun 08 21:11:23 Aha! http://stackoverflow.com/questions/10812433/how-can-i-get-my-registration-id-device Jun 08 21:11:31 Dudes that's what I meant. I wanted to get valid registration ids Jun 08 21:11:34 because sometimes it needs to be swippable -> user fullscreens a video Jun 08 21:11:39 EGreg, check GCM Jun 08 21:11:57 Indeed. https://developers.google.com/android/c2dm/ Jun 08 21:12:08 not c2dm, GCM Jun 08 21:12:13 c2dm is deprecated Jun 08 21:12:25 sorry right, that's what i meant, wrong link Jun 08 21:12:39 but you dont need that if you use googles oauth Jun 08 21:12:48 that will make sure everyone can only create one account Jun 08 21:13:12 How does GCM work with iOS? Jun 08 21:13:26 lasserix_: not sure I completely get it, but it sounds like these things can overlay each other instead. Jun 08 21:13:36 no Jun 08 21:13:37 It doesn't actually show the notification as coming from your app, right Jun 08 21:14:11 danijoo -- the difference is that Google OAuth requires user interaction Jun 08 21:14:37 But with GCM I can get a "registration id"... On successful registration, InstanceID invokes the registrationToken handler with a valid registration token and a nil error object. Jun 08 21:15:06 An example GCM registration token looks like the following: bk3RNwTe3H0:CI2k_HHwgIpoDKCIZvvDMExUdFQ3P1pLTQ/8t-5QNiXbYwZYEWiSFD-frQKlsV8lgI Jun 08 21:15:17 These are kind of like the tokens I was asking about originally, right? Jun 08 21:15:22 no Jun 08 21:15:23 that's one masterpieced hash. Jun 08 21:15:28 GCM tokens can change Jun 08 21:17:20 when do they change? Jun 08 21:17:41 read the docs Jun 08 21:18:06 or tfm Jun 08 21:18:16 i didnt want to use the f word :P Jun 08 21:18:30 fabulous Jun 08 21:18:35 ? Jun 08 21:18:40 :p Jun 08 21:22:27 EGreg: re: "how do I verify from a server that a user is actually using an android phone?" - see https://developer.android.com/training/safetynet/index.html Jun 08 21:22:36 gcm tokens are _expected_ to change when the OS changes or the app updates, I'm not sure if there's any other documented time. in practice, they change whenever Google feels like changing it, though the old tokens _usually_ keep working for quite a while (but no guarantee there either) Jun 08 21:23:00 check the token continuously. it'll change, and you should handle that gracefully. Jun 08 21:23:23 basically you should call back to google every time the app starts and ask if the token is still valid Jun 08 21:23:34 yep. Jun 08 21:23:51 then it doesn't matter why, because you're handling it regardless. Jun 08 21:25:03 so I need to basically store a table like this in the server: Jun 08 21:25:21 userId*, deviceId*, registrationToken (the latter may change for same userId and deviceId and I update the row) Jun 08 21:25:21 right? Jun 08 21:25:56 why would you need the deviceId Jun 08 21:25:56 yep. and personally I'd recommend adding app-version to that table too, so you can deliver messages that that particular install knows how to handle (in case you add / remove / change a message in the future) Jun 08 21:26:20 danijoo - I don't know :) Jun 08 21:26:23 It's like a session id Jun 08 21:26:27 no its not Jun 08 21:26:33 Maybe a person has 3 different devices Jun 08 21:26:38 its just a random id you can literally do nothing with Jun 08 21:26:48 Nothing at all? Jun 08 21:26:55 ^ yeah. it lets you decide things server-side, instead of putting everything on the device Jun 08 21:27:02 It's a session id Jun 08 21:27:12 no. a device id is not a session id Jun 08 21:27:12 userId*, sessionId*, registrationToken, deviceInfo Jun 08 21:27:23 wait, device ID means something specific to you? Can you link me please Jun 08 21:27:28 also for things like "if device A dismissed notification X, dismiss it from device B too", which is impossible otherwise Jun 08 21:27:37 for me device Id means IMEI Jun 08 21:27:52 you can get that in Android? Jun 08 21:27:59 yes Jun 08 21:28:02 needs an extra permission Jun 08 21:28:04 you may wish to change that definition, danijoo - IMEI won't be on tablets or watches or anything without a SIM Jun 08 21:28:15 and will give you lots of 1-star hate ratings :p Jun 08 21:28:48 if anything, "device ID" in android probably means http://developer.android.com/reference/android/provider/Settings.Secure.html#ANDROID_ID - but there are good reasons to not rely on that one for anything. Jun 08 21:28:57 groxx, good point :) Jun 08 21:29:02 or the one accessible in Telephony (and yeah, permission Jun 08 21:29:33 anyway it would be this: Jun 08 21:29:42 userId*, sessionId*, deviceToken, deviceInfo Jun 08 21:29:48 do you understand what I mean? * means primary key Jun 08 21:29:57 it would be never-expiring sessions Jun 08 21:30:07 sessions would only be deleted if a device is lost or stolen Jun 08 21:30:17 deviceToken can rotate Jun 08 21:30:26 deviceInfo provides more info about the device (is it an adnroid? an iphone? etc.) Jun 08 21:30:31 deviceToken is what's used for push notifications. Jun 08 21:30:33 yep. I'm reading "deviceInfo" as e.g. an un-typed field, which I wouldn't recommend in general (though it can work), but you've got the idea. Jun 08 21:30:43 right. Okay great :) Jun 08 21:31:51 so how do I prevent users from creating a million accounts? Jun 08 21:32:01 without forcing user interaction with oAuth? Jun 08 21:32:17 Let me ask the following question, which will answer everything ... how do I request in-app notification approval from user in Android? Jun 08 21:32:25 sorry for such a basic question I can google easily Jun 08 21:32:54 It's done only when app is installed? Jun 08 21:33:53 So in that case I can get the GCM registration token. The only thing that remains is, how can I verify it is a valid token? That would prevent creating 1000 accounts! Jun 08 21:33:54 EGreg: can't, really. I mean, there are ways, but they're all fake-able, and they don't really give you much of a benefit. as far as in-app notification approval: just show your own dialog or something. I personally appreciate being asked, but IMO most people assume apps will at some point show notifications :) Jun 08 21:34:11 danijoo: I've tried adding the JSch library to my project, but even when Android Studio searches the correct file it does not find the class there. Here is my gradle: http://pastebin.com/U2zPgRST Jun 08 21:34:22 groxx ... what I want to do is ask for notifications premission, and then obtain the GCM registration token Jun 08 21:34:24 could you help me to get it to work? Jun 08 21:34:25 I bet that token is signed somehow Jun 08 21:34:30 I just want to be able to VALIDATE it Jun 08 21:34:34 and that would prevent 1000 accouts. right? Jun 08 21:35:10 EGreg: there's no permission for that, you already have permission. validating: when you try to send to it, google will tell you if it's invalid. and I wouldn't recommend using GCM tokens as identities, since it changes. Jun 08 21:35:19 Mac_Weber, please dont highlight random people Jun 08 21:35:58 EGreg, you cant use GCM token as an account registration token Jun 08 21:36:09 GCM is only for sending messages to the device Jun 08 21:36:52 danijoo: you are the one who earlier suggested me to do it in gradle. I was AFK, but now I'm back =P sorry Jun 08 21:37:11 if you want a relatively low-friction identified-user thing, you're pretty much stuck using email addresses (since you can verify them by having them click a link), or some social account (e.g. log in with G+/twitter/facebook/etc) Jun 08 21:37:46 is there a way in Android to find out the user's phone #? Jun 08 21:37:48 reliably? Jun 08 21:37:53 with the person's permission? Jun 08 21:38:13 danijoo I am not using the GCM token as an account registration token, I'm using it as a token that proves the user can create 1 account Jun 08 21:38:23 as long as I can validate the string somehow! Jun 08 21:38:31 is ther any info on how GCM are signed with an HMAC or something Jun 08 21:39:00 why dont you use oath like everybody? Jun 08 21:39:03 with telephony permissions, yes-ish. 1) if they don't have a sim card they don't have a number. 2) if they have more than one sim card (either 2+ in the device, or they just swap cards) the number will change. 3) some devices just won't return it to you, even though you have permission. 4) it'll be block-able in M. Jun 08 21:39:37 oauth* Jun 08 21:39:46 EGreg: with TelephonyManager you can get the number Jun 08 21:39:55 EGreg: tm.getLine1Number(); Jun 08 21:40:34 Mac_Weber, did you read the comments in the file where you placed your dependency Jun 08 21:40:42 also, if you're thinking of using phone number as an identity: don't. or verify it via e.g. twilio. it's trivial to fake that info, and then user A can take user B's account. Jun 08 21:40:45 what does the thing under NOTE: tells you? (line 14) Jun 08 21:42:12 * danijoo wonders how many devs annoyed google in the issue tracker until they added the note Jun 08 21:42:45 I'm writing my first Android app and was wondering what is the best way to handle progressbars in a RecyclerView Jun 08 21:43:37 specifically do I run the thread that updates the progressbar's progress in the adapter or in the viewholder? Jun 08 21:44:29 danijoo: oh, I see. To which file shall I add that? BTW, is there an automatic way to add it via the Android Studio UI? Jun 08 21:44:52 1) read the note and 2) yes, in the module settings Jun 08 21:45:21 This is my current implementation(I know i'm leaking threads but I don Jun 08 21:45:37 know a better way to fix it. https://github.com/raorbit/TheDudleyColony/blob/master/app/src/main/java/com/admalamalinchock/thedudleycolony/BuildingAdapter.java Jun 08 21:46:14 no offense but that's like looking at fire Jun 08 21:46:15 Is it possible to use a cardView as a "container" and fill it with a custom layout xml file ? Jun 08 21:46:20 straight Jun 08 21:46:47 Nightwalkerkg, yes. A cardview is just a fancy FrameLayout Jun 08 21:47:23 danijoo, This is the problem. It's a recycler view, and using this for the fragments to fill it : https://github.com/nightwalkerkg/MaterialViewPager/blob/master/sample/src/main/java/com/github/florent37/materialviewpager/sample/TestRecyclerViewAdapter.java#L40 Jun 08 21:47:41 It's getting filled to infinity, i just want one fragment inside that cardView. Jun 08 21:48:56 i cant look at code right now. sorry Jun 08 21:49:23 danijoo: I got it. Thank you! Jun 08 21:50:21 Nightwalkerkg: I'm not sure I understand the question Jun 08 21:50:59 Nightwalkerkg: card.addView(some other view) ? Jun 08 21:51:22 ibfrog, sorry, i am not sure how to explane this the best in English. Here it goes : This library is using a recyclerView, and two xml layouts and filling that recyclerView with them. Jun 08 21:51:48 How can I update a progressbar in a RecyclerView? Should I use a Thread/Service/or Async Task? Jun 08 21:52:13 I don't want that, i just want one of those xml layouts (cardViews) that has a specific layout i already have. Called about_layout. Jun 08 21:52:36 It containes the PreferenceCategory and PreferanceScreen. Jun 08 21:53:24 raorbit: part of the problem is that by the time your thread runnables actually run, the progress bar they're referring to might be used for some other row. so you make a row for item 1, start the thread, then the row goes off-screen and gets reused for item 7, then your thread actually executes its code, and updates / clobbers item 7's settings. Jun 08 21:53:55 danijoo because I don't want extra user interactions Jun 08 21:54:05 Is there a way to validate the GCM registration token? Jun 08 21:54:15 http://stackoverflow.com/questions/12403628/is-there-a-gcm-registrationid-pattern Jun 08 21:54:37 EGreg, if you send a message to that token and get an error from google, its not a valid one Jun 08 21:54:47 that could be good, danijoo! Jun 08 21:54:51 and there isn o cost to doing this right? Jun 08 21:55:00 I mean no significant cost, I could send 1000 messages? Jun 08 21:55:06 I could send a silent notification. Jun 08 21:55:13 but since those tokens can randomly change and user can force them to change, they could still create multiple accunts Jun 08 21:55:31 The way I had it setup the Threads would still be runnning when I scolled down but when I scrolled back up the progressbar would stop updating but the number my runnable is incrementing would still increaase Jun 08 21:55:31 Nightwalkerkg: seems like you would just use your own adapter and inflate your layout inside the cardview or change your layout to include the card view as a root element Jun 08 21:55:44 hmm, danijoo, but the user can have only one token at a time Jun 08 21:55:53 if a token changes, then they'd have to re-use an existing session Jun 08 21:55:55 so that's not a problem for us Jun 08 21:56:02 but they can just unistall the app and reinstall and have another one Jun 08 21:56:20 or edit your sharedpreferences to reuse the old one Jun 08 21:56:23 hmmmm let me think Jun 08 21:56:32 the question is. is this all really worth the effort? Jun 08 21:56:59 yes Jun 08 21:57:01 if it can be done Jun 08 21:57:10 what I really want is this: Jun 08 21:57:12 EGreg: sending messages is free. they'll apparently block abuse, but on apps I've worked on, we've sent out a million plus in a burst and never had a problem. Jun 08 21:57:21 groxx: thanks, that's very valuable info Jun 08 21:57:36 by the way do they monitor messages like apple, meaning they shut your app down for unusual spikes etc Jun 08 21:57:39 in your experience Jun 08 21:57:40 they actually _recommend_ using GCM for e.g. messaging apps, in which case you'd have rapid-fire messages back and forth between users. Jun 08 21:57:40 EGreg, whatsapp uses GCM Jun 08 21:57:46 so you can really send huge amounts Jun 08 21:57:51 right Jun 08 21:58:08 okay so ideally what I want is to validate GCM registration ids Jun 08 21:58:08 EGreg: I've never heard of anyone being blocked on GCM, fwiw. I'd guess they only do it in spam cases. Jun 08 21:58:21 afaik they're not signed, so you have to send a message to verify it Jun 08 21:58:41 that way I'd allow device tokens as valid resource to create a user account Jun 08 21:58:59 is that in any way better than `new Random().nextLong()`? Jun 08 21:59:08 but danijoo brought up a valid point, what if they create multiple accounts that way Jun 08 21:59:25 well to do that they'd have to change their token - which means their old token wouldn't work Jun 08 21:59:39 but danijoo is implying that I get no notification on the server that an old token is disconnected, right? Jun 08 21:59:50 actually, the old ones tend to work for a while (months, sometimes, there's no guarantee though). they'll just forward to the new install. Jun 08 21:59:51 so, now they create multiple accounts by changing their tokens all the time Jun 08 21:59:54 the error message is your notification Jun 08 22:00:06 right but I meant push, not pull Jun 08 22:00:18 I don't want to poll every token in the system every X hours Jun 08 22:00:22 is multiple accounts _actually_ a bad thing? and do you have enough users for it to be a problem? Jun 08 22:00:29 thats why i say GCM is not a good way to do what you are doing Jun 08 22:00:35 groxx -- one user with a billion accounts could bring down the system Jun 08 22:00:39 so I need to prevent it in the first place Jun 08 22:00:40 has it happened? Jun 08 22:01:04 danijoo you may be right, I may need o piggyback off an existing USER ACCOUNT system, such as Apple Login or Google OAuth or Facebook OAuth or Amazon Jun 08 22:01:10 Or, I could use phone numbers. Jun 08 22:01:38 EGreg, tablets have no phone numbers Jun 08 22:01:46 phone without a sim dont have one too Jun 08 22:01:50 I'll find out quite soon as it's installing (well, downloading components) but what's androidworks like from NVidia? Anyone used it yet? Jun 08 22:02:12 i'd really recommend oauth Jun 08 22:02:22 Valid phone numbers are pretty limited as far as I know. Jun 08 22:02:23 There may be some country that allows unlimited phone numbers to receive SMS verification but I doubt it. Jun 08 22:02:23 groxx ... yes this is a very real fear for a social app / site / service Jun 08 22:02:27 a denial of service attack can be shut off, if things can be traced via a tree to a single user account or IP or something Jun 08 22:02:36 but if a user has already created a billion fake accounts in the system, Jun 08 22:02:45 it's game over, the network is compromised Jun 08 22:02:48 you could also check the ip for a registration Jun 08 22:03:00 so it's better to harden the network against that in the beginning, and not allow, say, creation of an account with any old email address Jun 08 22:03:03 and block it for registration attempts for a time Jun 08 22:03:06 sure. so don't make it impossible to fix if it happens, and then move on to _getting users_. having a bullet-proof system is worthless if nobody uses it, and there's no way to have a bullet-proof sign-up process. Jun 08 22:03:34 I'm not paying attention to this, but Twitter has a auth system using cell numbers: https://get.fabric.io/digits Jun 08 22:03:54 groxx we already have a bulletproof system built, using phone numbers and Facebook OAuth, I am just wondering if we should add some other awys to create accounts in addition to that Jun 08 22:04:08 you still have all those problems coming with cell numbers groxx mentioned Jun 08 22:04:10 To be honest, we need phone #s anyway, because we reconstruct the social graphs from people's addressbooks (they upload hashes of phone #s) Jun 08 22:04:28 What problems? If someone doesn't have a cell # they won't be able to be found by their friends on the app. Jun 08 22:04:32 if you accept phone numbers, and send an SMS to the number, I can make your system send billions of SMSes unless you're protecting against that. Jun 08 22:04:47 Oh, that. Jun 08 22:04:50 hell, unless you're watching it, I can get your number banned by telecoms Jun 08 22:04:55 Well, how does Facebook protect against that? Jun 08 22:05:04 they're big enough to throw money at it Jun 08 22:05:09 and lawyers Jun 08 22:05:17 How does anyone protect against spamming user signup Jun 08 22:05:25 and build in abuse-detection systems, which are all inherently flawed, but make it harder Jun 08 22:05:26 I think digits is all internal, you wouldn't have to worry about sending SMS Jun 08 22:05:33 I don't know if anyone remembers, 15 years ago there was a site called "digicrime.com" and it was a satirical site Jun 08 22:05:34 It just happens automagically for you! Jun 08 22:05:45 i know about 2 (small) sites that just block ips for an hour Jun 08 22:05:49 one of the "services" was mailbombing, where they said "rather than mailbomb you, we sign you up for 1000 mailing lists" Jun 08 22:05:53 so you could actually trick that Jun 08 22:05:56 yeah, blocking abusive IPs is pretty common. Jun 08 22:06:02 but it will be hard to generate a shitload amount of acc Jun 08 22:06:11 reconstruct the social graphs from people's addressbooks ... what app is this ? Jun 08 22:06:24 it's all the apps built on our platform, g00s Jun 08 22:06:26 http://platform.qbix.com Jun 08 22:06:33 i mean blocking it after registration immediatly. so there wont be a registration possible from that ip for 1 hour Jun 08 22:06:35 One of the things that a social app needs is a way to find friends Jun 08 22:06:46 And your address book is like the friendlist on facebook, execpt it's not owned by fb Jun 08 22:06:51 you could still hop proxys but you cant do 1000s accs per second Jun 08 22:06:56 It's synced with Apple/Google, but not owned by them Jun 08 22:07:06 danijoo you could have a botnet Jun 08 22:07:12 a botnet that creates fake accounts in facebook/twitter Jun 08 22:07:13 and they do Jun 08 22:07:27 yeah.. you could also buy 10k phones. Jun 08 22:07:30 danijoo: aaah, lol, clever. very very simple and probably good enough :) Jun 08 22:07:37 but what would prevent me from renting a botnet and spamming 1 person's phone with 1000 faceboook verification messages Jun 08 22:08:05 danijoo blocking IPs is a problem when you have several employees from ac ompany's intranet wanting to sign up Jun 08 22:08:08 in the same hour :) Jun 08 22:08:17 EGreg, with all your system right now, what prevents me to fire up 1000 android emulators that can receive valid GCM messages and have connected facebook and google accounts? :pp Jun 08 22:08:26 yeah. so it's a problem when you become popular enough for it to be a problem, and not before :) Jun 08 22:08:36 you CANNOT be 100 % sage Jun 08 22:08:37 safe Jun 08 22:08:41 danijoo so maybe you're right, if Android emulators can receive valid GCM messages then that's not a good enough resource Jun 08 22:09:17 groxx... but that's basically admitting that each startup only succeeds because of security by obscurity, because no one bothered to DDOS it early on or overwhelm it with a sybil attack Jun 08 22:09:20 EGreg: tbh, you're just not thinking about this in the right way. GCM is _not_ an identity service. it doesn't provide the guarantees required. period. use something else. Jun 08 22:09:36 hey, theres a problem with a menu item that i've created.. i am unable to register its selection. i get an error on logcat - "Attempted to finish an input event but the input event receiver has already been disposed." Jun 08 22:09:41 in other words if I wanted to take down ALL promising competing startups I could just do it right now Jun 08 22:09:44 anybody know how to fix, or have seen this before? Jun 08 22:09:47 EGreg, after what you described, there are not many things you can do without adding more actions for a user to register (which is probably not a thing you want). You already benefit of a big filtering from facebook (despite there are also fake account there which might be used) on top, what remains is mainly proving the user is a human and not a bot Jun 08 22:09:52 EGreg: minus the fact that it's illegal to do so, yes Jun 08 22:09:52 no one is secured against a sybil attack? Jun 08 22:09:54 EGreg, no. it just means startups usually use ways that are actually there for what you want. like oath google accounts Jun 08 22:10:06 groxx yeah it looks like I won't use GCM Jun 08 22:10:12 I would use OAuth and just piggyback off the existing big sites Jun 08 22:10:30 But honestly what if I want to not rely on Facebook forever? Jun 08 22:10:34 Or Google Jun 08 22:10:41 Then I'd need a way for people to add their email/phone number Jun 08 22:10:42 Then use emails Jun 08 22:10:47 and send them a confirmation link Jun 08 22:10:49 allow migrating accounts to different identity providers, e.g. email or verified phone numbers Jun 08 22:10:50 you add more step to register Jun 08 22:10:56 Right but as you said, that confirmation link is a public service which can be used to spam people Jun 08 22:11:01 but it slowdown to attraction rate i guess Jun 08 22:11:05 the* Jun 08 22:11:08 The most I can recommend there is an opt-out for recipients of the spam Jun 08 22:11:21 maybe openid will make a comeback when people realize it's exactly the same as oauth-for-login, but is federated. Jun 08 22:11:33 OAuth isn't federated? Jun 08 22:11:39 bank account verification, it's slow Jun 08 22:11:41 I can use OAuth for login Jun 08 22:11:43 but it's harder to bypass Jun 08 22:11:52 idk of the costs Jun 08 22:12:00 I can't point you to a domain I control which tells you which oauth site to use for login. so I can't control my identity. so I dislike oauth, on principle. Jun 08 22:12:02 Anyone have good ideas to prevent spam via the sms verification service? Jun 08 22:12:06 you have to rely on bigger safer system using strong filtering Jun 08 22:12:13 You could make the user scan their passport Jun 08 22:12:14 if you don't want to have 10 steps before someone is "in" Jun 08 22:12:25 groxx -- that's why xauth was supposed to take off Jun 08 22:12:39 but never did Jun 08 22:12:44 there is no security without adding more work for the user. and there will never be 10% security at all Jun 08 22:12:57 100% Jun 08 22:12:59 We actually patented a system that would have a federated login much better than OAuth Jun 08 22:13:00 stupid keyboard Jun 08 22:13:01 www.faqs.org/patents/app/20120110469 Jun 08 22:13:05 Sorry http://www.faqs.org/patents/app/20120110469 Jun 08 22:13:12 EGreg: because there's no money in allowing that for twitter / facebook / etc, since they can't use it to track you :) it's in their best interest to keep you locked into their system. Jun 08 22:13:18 In our company Jun 08 22:13:42 and alas Persona hasn't really survived either Jun 08 22:13:54 Right. I am personally against centralized systems. The reason Wordpress powers 20% of the web is because it allows you control over your own blog, data, plugins, etc. Jun 08 22:14:11 that one I mostly blame on a _complete_ failure of Firefox to integrate their own system, to provide a better UX + better safety guarantees Jun 08 22:14:21 Well my company's been working on this problem for years (decentralizing SOCIAL the way bitcoin decentralized money) and we solved it Jun 08 22:14:34 But it's a complicated dance of addressbook imports, syncing, authentication, etc. Jun 08 22:15:03 It seamlessly reconstructs all your social connections on every network you visit. It finds friends only if they want to be found, though. Jun 08 22:16:37 see, personally I think that people jump between social network sites _because_ they have different groups on each. they present themselves differently with different groups, and that's normal. I legitimately don't want my social circles to merge into one uber-group, because there's no filtering system that can stop me from being overrun by stuff I don't Jun 08 22:16:37 care about. Jun 08 22:17:02 groxx: i hate when irccloud does that.. Jun 08 22:17:08 sounds like a a gigantic social network crawler.. Jun 08 22:17:15 scary Jun 08 22:17:31 supay: eh, lots of them do. I forget if IRC has a line limit or something that implies they should do so (or if there's just a frequent limit that breaks some servers) Jun 08 22:17:49 kinda like how email is wrapped ~ 80 characters. Jun 08 22:17:53 I forget the exact number. Jun 08 22:18:02 512 characters or something for typical IRC message Jun 08 22:18:12 groxx: iirc, i've seen bigger paragraphs on freenode. i thought it was client specific Jun 08 22:18:15 groxx -- they should be able ot have different accounts on different sites Jun 08 22:18:22 but it isn't all or nothing Jun 08 22:18:36 I should be able to tell some friends that I'm XYZ on such and such site, and others won't know Jun 08 22:18:47 And when they arrive they should be able to find 10 friends automatically Jun 08 22:19:04 Not keep track manually of everyone who's ever told them they are XYZ on that site, or spam all their friends asking if they're on the site Jun 08 22:19:28 All that should be reconstructed automatically Jun 08 22:19:47 Hey guys anyone familiar with Parse GeoPoint? Jun 08 22:19:49 In fact, that would be a cool service. Even for sites which don't use our system. It would be a directory of "I am X on Y site" Jun 08 22:20:16 And each person would let only certain people know about certain sites. And of course, it would be distributed, not centralized. Each person would host their own index somewhere. Jun 08 22:20:33 And it would all update in realtime, so you'd know when one of your friends joined a site. Jun 08 22:20:49 If the site would be integrated with our system, you'd also be able to auto-connect with them in the site. Jun 08 22:20:52 That's what I mean. Jun 08 22:21:07 Otherwise you'd just get a notification that they joined, but you'd manually have to go to their profile to add them. Jun 08 22:27:36 Are there alot of Android-dev jobs out there? kind like web dev? Jun 08 22:29:13 http://hyperboleandahalf.blogspot.com/2010/04/alot-is-better-than-you-at-everything.html :D Jun 08 22:30:44 JesusFreke: yeah, my alternate avatar is the meowing alot. some day I need to try to make an alot of code. Jun 08 22:31:10 pretty much everything hyperbole is great. have you read the book? Jun 08 22:31:26 nope, I should though Jun 08 22:32:14 it's pretty much a series of (nicely) printed blog posts, plus some not blogged. so it's good :) Jun 08 22:32:31 also, useful to throw at anyone who entirely fails to grok depression Jun 08 22:33:43 and the answer to his question? :P Jun 08 22:34:01 ¯\_(ツ)_/¯ Jun 08 22:34:26 groxx mehs alot :D Jun 08 22:34:45 draw a meh alot pls Jun 08 22:34:59 I would assume there's alot more web, because the web is so much bigger. android's doing reasonably close to iOS though, afaik. Jun 08 22:35:17 I thought the alot was a product of the oatmeal Jun 08 22:35:30 Is it save to subsribe yo things like actionbars searchView with an observable? Jun 08 22:35:39 there are some similarities. but if the oatmeal did it, it'd have a butthole-X. Jun 08 22:35:44 i realized that there is no observable for that in RxAndroid, thats why i wonder Jun 08 22:35:59 i haven't seen any good job data between the 2 platforms laterly. but one area thats growing is enterprise, so whatever platform is doing well there ... Jun 08 22:36:18 yeah, there's always jobs in b2b it seems :) Jun 08 22:36:30 but who knows how to find them. Jun 08 22:36:56 i did hear that mobile dev shops were going bust like crazy Jun 08 22:37:07 groxx i bet the big IT outsourcers :( Jun 08 22:37:30 I assume that "dev shops" go bust like crazy either way. contract work is hard. Jun 08 22:37:31 ibm, infosys, wipro, etc Jun 08 22:37:42 and they're typically small businesses, which always go bust like crazy Jun 08 22:38:06 what a shame Jun 08 22:46:18 i did find this https://media.good.com/documents/mobility-index-report-q4-2014.pdf Jun 08 22:46:37 seems consistent with what i've glanced over at fiercedeveloper or whatever Jun 08 22:48:43 "iOS activations rose to 73%, winning share from Android" seems pretty US / EU centric :| Jun 08 22:49:11 also, what the heck is a "secure browser"? Jun 08 22:49:39 I love how that article on the front page of /r/androiddev mentions using Eclipse. :D Jun 08 22:49:43 And using that new design library. Jun 08 22:49:54 ^^ Jun 08 22:50:10 My app is DONE! Jun 08 22:50:12 Eclipse ftw :p Jun 08 22:50:21 im done too Jun 08 22:50:22 Good for you pal. Jun 08 22:50:25 I anint changing much on it now.. only minor tweaks.. Jun 08 22:50:29 Im not done Jun 08 22:50:36 My app will never be finished. lol Jun 08 22:50:36 Every page crashes Jun 08 22:50:39 I will die and it will live on. Jun 08 22:50:42 Vercinger, what is it about Jun 08 22:50:47 and then.. now to write +40 pages on my bachelors project Jun 08 22:50:52 The endgame will be it programming itself. Jun 08 22:51:22 * danijoo wonders if TacticalJoke 's reddit app will be out before reddit blocks third party apps in android M Jun 08 22:51:25 Lol Jun 08 22:51:28 well danijoo the title of my bachelors project is "Mobile Application for Positioning".. so.. it's an app that's able to give your position from wifi signals :) Jun 08 22:51:36 In other news.. Passed me first year at uni Jun 08 22:51:41 :D Jun 08 22:51:55 DarkChaoz, i'm 5 years in to my bachelors project ;) Jun 08 22:52:04 Gawd, I hope so. Jun 08 22:52:09 Nice :o Jun 08 22:52:18 Took me 5 years for my backelor, too :P Jun 08 22:52:22 2 years too much Jun 08 22:52:24 Closer to becoming a ruthless lawyer.. Jun 08 22:52:53 Hopefully I'll be done with my bachelors degree and move on to masters after summer :) Jun 08 22:53:12 U in the UK? Jun 08 22:53:38 I'm in Denmark Jun 08 22:53:53 Ahh Jun 08 22:54:15 Tutition fees here are bullcrap Jun 08 22:54:38 9k a year and uni dont teach hardly teach u anything Jun 08 22:55:09 75% self study 20% going to workshop classes Jun 08 22:55:13 Uni is about teaching yourself.. with guidance :D Jun 08 22:55:45 Meh, but i'd expect more value of my money Jun 08 22:55:59 DarkChaoz, USA? Jun 08 22:56:01 After all im the one who has to pay back the loan lol Jun 08 22:56:10 Nah im UK Jun 08 22:56:50 Prettt sure i'll be over 27k debt by the time i finish uni Jun 08 22:57:03 you system sucks ;? Jun 08 22:57:05 :/ Jun 08 22:57:08 Yup Jun 08 22:57:34 danijoo i was just reading something about americans going to germany for free education the other day Jun 08 22:57:37 Govt keeps cutting expenses and increasing it in other areas Jun 08 22:57:59 g00s, i'd do that if I would not live here :p Jun 08 22:58:08 I heard they're gunna increase it to 10k per year -__- Jun 08 22:59:13 anyone know if the SM-g920F for galaxy samsung is supposed to show H, H+ and edge instead of 4G, LTE, and 3G? Jun 08 22:59:29 i always thought H and H+ stood for hspa and hspa+ Jun 08 22:59:45 dogarrhea, it doesn't? Jun 08 22:59:49 HDSPA? Jun 08 22:59:51 dogarrhea, they do Jun 08 22:59:57 That's what I've been taught Jun 08 22:59:59 but LTE !+ H Jun 08 23:00:01 != Jun 08 23:00:04 and I'm studying network technology Jun 08 23:00:19 This is the international version of the galaxy samsung s6 Jun 08 23:00:20 LTE is 3.9 G Jun 08 23:01:13 so is it just a user interface thing or is it really hspa+ ? Jun 08 23:01:36 copy+pasting code from a pull request of another project into my app that uses that other project.. im feeling so bad Jun 08 23:01:47 is there a way to tell if your phone's data really is Band 400 lte from T Mobile? Jun 08 23:01:54 Yes Jun 08 23:02:01 how do you check? Jun 08 23:02:04 H+ is visualised for the user Jun 08 23:02:17 You can check your current connection in the phones "about" Jun 08 23:02:32 and "status" Jun 08 23:02:41 there u can see what network type you're connected to Jun 08 23:02:50 dogarrhea: is there a reason you need to know which band? Jun 08 23:03:10 groxx to know if i'm getting what I paid for Jun 08 23:03:30 the band should be limited within the standards Jun 08 23:04:01 if it's a galaxy S6, go into settings (the cogwheel) > 'about phone' > status > Mobile Network type Jun 08 23:04:09 dogarrhea: they have coverage charts, and disclaimers that they're a) not accurate, and b) they're not contractually bound to provide the service the charts show. your actual connection speeds depend a lot on your surroundings. Jun 08 23:04:15 This is my time to shine! This is stuff I know something about wooh! Jun 08 23:04:34 HSUPA Jun 08 23:04:40 U = upload Jun 08 23:04:43 D = down Jun 08 23:04:45 so it is hspa Jun 08 23:04:50 and not LTE Jun 08 23:04:59 yes Jun 08 23:05:01 it's 3.5 g Jun 08 23:05:08 damnit. Jun 08 23:05:08 HSDPA = 3.5G Jun 08 23:05:12 LTE = 3.9G Jun 08 23:05:20 Check your providers coverage map Jun 08 23:05:34 are you sure it's not 3.89G? Jun 08 23:05:38 i need to get a new sim card or this international version doesn't work with the Tmobile reseller Jun 08 23:05:43 JesusFreke, yes - very :) Jun 08 23:05:54 and see if you should be within well reason of receiving LTE Jun 08 23:06:09 dogarrhea, first.. check if you should get it first.. Jun 08 23:06:16 i bought a plan that said "lte" Jun 08 23:06:18 I just got a new SIM today because I didn't.. Jun 08 23:06:25 dogarrhea, that's relative to the coverage.. Jun 08 23:06:36 that just means "Up to LTE" Jun 08 23:06:37 and i'm next to the tower by UCLA so i shoooould be entitled to get it but it might be the SIM card Jun 08 23:06:40 dogarrhea: gsmarena.com should tell you if that model supports the frequencies. beyond that, it depends on where you are. if it's technically capable, odds are they're not screwing you, you just aren't in the coverage area. Jun 08 23:06:41 not "LTE everywhere" Jun 08 23:07:14 Being close to a tower isn't always better Jun 08 23:07:31 http://blog.laptopmag.com/fastest-4g-lte-los-angeles according to this article it's best by UCLA Jun 08 23:07:33 yeah, LTE plans are exclusively "can get LTE" not "will get LTE" Jun 08 23:07:36 but then again.. that's mainly when talking about very close to a tower Jun 08 23:07:56 i'm about 3 blocks south of UCLA's south part of campus Jun 08 23:08:48 I'm in Denmark, so.. Jun 08 23:08:59 I don't quite know LA ;) Jun 08 23:09:07 the standards for 4G lte are different there than from the us right? Jun 08 23:09:08 it's big, and has lots of traffic jams Jun 08 23:09:13 I think that covers most of it Jun 08 23:09:18 dogarrhea no.. LTE standard are standards Jun 08 23:09:22 made by the IEEE Jun 08 23:09:28 ok so i just need to get a new SIM card Jun 08 23:09:33 ask your provider Jun 08 23:09:40 the one i have is 6 years old from my galaxy s2 Jun 08 23:09:43 Yeah Jun 08 23:09:44 and check your phone's hardware on e.g. gsmarena. Jun 08 23:09:44 it' the SIM Jun 08 23:09:51 I'd bet it's the SIM Jun 08 23:10:10 eh... the sim isn't an antenna. does it actually affect that? Jun 08 23:10:14 I just got a new SIM because it was 6 years old Jun 08 23:10:21 iirc it can Jun 08 23:10:27 god that fucking persian asshole in the phone store said it was going to be fine. just bring the old card over and he'd cut it into a micro sim and i'd get the lte Jun 08 23:10:29 i'm going to kill him Jun 08 23:10:44 dogarrhea sounds like a bad plan Jun 08 23:11:02 and/or you just don't get LTE in location X. it depends. Jun 08 23:11:30 the coverage map showed highest coverage where I am Jun 08 23:11:37 afair older SIM does not support LTE Jun 08 23:11:45 UCLA is the biggest campus in all of southern california Jun 08 23:12:03 I'd put my money on the SIM.. Jun 08 23:12:28 ok. first order of business is to get a new sim from the provider/reseller/simple mobile Jun 08 23:12:35 and dogarrhea, do you expect a store-clerk to know something like that? :) Jun 08 23:12:44 new AS 1.2 stable release Jun 08 23:12:46 I didn't, and I'm studying network technology Jun 08 23:12:50 2nd order of business is to put negative review on said stop clerk's business Jun 08 23:13:03 aww dogarrhea.. :P Jun 08 23:13:08 dogarrhea this doesn't have /anything/ to do with android development Jun 08 23:13:26 g00s, you're not wrong Jun 08 23:13:29 g00s: does that make it 1.2.1.2? Jun 08 23:13:36 or 1.2.1.666? Jun 08 23:13:37 1.2.2 Jun 08 23:13:46 can't wait for 1.3.3.7 Jun 08 23:13:56 kek not really but thanks for the help. Jun 08 23:14:02 gonna need to get a new sim Jun 08 23:14:23 GL :) HSDPA should be more than enough for now though Jun 08 23:16:26 w00t, bug accepted: https://code.google.com/p/android-developer-preview/issues/detail?id=2108 Jun 08 23:16:52 will retrofit automatically handle turning a list of numbers into a path? Jun 08 23:17:05 no Jun 08 23:17:09 k Jun 08 23:17:11 retrofit is an http library Jun 08 23:17:18 right Jun 08 23:17:28 groxx i want to see what happens with that bugreport against all of String() constructors being deprecated :D Jun 08 23:17:39 is it still not accepted? Jun 08 23:17:48 i lost track of it Jun 08 23:17:51 but what i eman is if i have /1,2,3,4,5? I just was wondering if could se tup the interface like @Path("ids") ArrayList Jun 08 23:18:17 so you're talking about Gson serializtaion? Jun 08 23:18:20 g00s: ha, still new: https://code.google.com/p/android-developer-preview/issues/detail?id=2073&q=string&colspec=ID%20Type%20Status%20Owner%20Summary%20Stars Jun 08 23:18:32 JakeWharton: um no. Jun 08 23:19:03 http://someapirest.call/4127,5068,5067,5066,7003,121281,7004,7000,123345,7213,122565? Jun 08 23:19:13 groxx ah fixed ! Jun 08 23:19:21 i was wondering if i could just set ArrayList or in the interface Jun 08 23:19:33 and it would convert that if i set it as path, instead of building the string myself Jun 08 23:19:54 no Jun 08 23:20:06 documentation says that it will just call toString() Jun 08 23:30:27 Wagwan bretheren Jun 08 23:32:01 Ayo. Jun 08 23:32:15 TacticalJoke: You got a sec to check a TypeAdapter out for me? Jun 08 23:32:27 I've found some spare time at home to get back on my app! Jun 08 23:32:44 Also how is your app going? Jun 08 23:32:45 I've never used TypeAdapter. I can, however, offer you guesses. Jun 08 23:33:00 It's going pretty well. Life is taking my time away, though. ;| Jun 08 23:33:28 It's a weird project. None of it is particularly complex, but everything takes forever. Jun 08 23:33:45 Bah - IP at my server has changed - must have had a power cut at home. Jun 08 23:33:48 Will have to ask another time haha Jun 08 23:34:33 Yeah - life can do that - its a bastard like that Jun 08 23:34:36 I need a new keyboard :/ Jun 08 23:34:42 My B is buggered on this. Jun 08 23:34:55 Anthaas, Dynamic DNS :p Jun 08 23:35:01 Yeah :/ Jun 08 23:35:04 At home. Jun 08 23:35:09 Its good and bad :/ Jun 08 23:35:22 If I want/need a new IP I just have to turn the router off and back on Jun 08 23:35:26 use a dynamic dns provider to resolve the ip :) Jun 08 23:35:29 but if there is a power cut, it changes. Jun 08 23:35:31 I do :P Jun 08 23:35:43 But what the DDNS provider has as my IP has changed. Jun 08 23:35:49 why cant u access it then :P Jun 08 23:36:01 The IP that the DDNS service has to resolve has changed. Jun 08 23:36:24 server should report that and the DNS should point to the new ip Jun 08 23:36:33 Ahhh Jun 08 23:36:36 Im using noip.com Jun 08 23:36:53 yeah thats what i mean Jun 08 23:37:39 Hmm Jun 08 23:37:55 Just checked my account, and it still has my old IP there Jun 08 23:39:03 06-08 16:18:11.791: E/qdmemalloc(10264): heap_msk=40000000 flags=1 Jun 08 23:39:04 :( ?? Jun 08 23:41:37 flags=1?! D: put the phone down and back away slowly! don't break eye contact! Jun 08 23:45:45 what's whta? Jun 08 23:45:48 that* Jun 08 23:53:42 The Kotlin site has a new header: http://kotlinlang.org/ Jun 08 23:54:11 Also mentions Android now. Jun 08 23:55:15 #BREAKING Jun 08 23:55:27 no oxford comma. fail. Jun 08 23:56:40 they must burn. Jun 08 23:57:39 is this a thing in english? Jun 08 23:57:43 Yeah, it's a shame about that comma use. Jun 08 23:57:44 by "and the browser" do they mean "because it is compatible with java"? java isn't for the browser. java + browser = I close your tab. Jun 08 23:57:52 It targets JavaScript too. Jun 08 23:58:14 danijoo: http://themoosebody.tumblr.com/post/10317138331/unlikelywords-why-the-oxford-comma-is Jun 08 23:58:32 danijoo: oxford commas are totally a thing. http://stephentall.org/2011/09/19/oxford-comma/ Jun 08 23:58:49 potentially nsfwish Jun 08 23:59:11 oxford commas are safe for work Jun 08 23:59:18 ideally it'll be burned into their brain, and they'll never be able to forget. Jun 08 23:59:24 JakeWharton: my link is not necessarily. Jun 08 23:59:31 i know, was joking Jun 08 23:59:33 groxx, i wonder because we have the same word order in german sentences but oxford commas are not known Jun 08 23:59:41 we only have the version without Jun 08 23:59:53 is it ambiguous in german? Jun 09 00:00:00 its not existant Jun 09 00:00:08 danijoo: that comic explains very very well why it's important in english. Jun 09 00:00:10 putting a comma would be a gramatic error Jun 09 00:00:18 so with your normal sentence construction, is the sentence ambiguous? Jun 09 00:00:26 it's an image which burns itself into your mind. Jun 09 00:00:36 our version without the comma means your version with the comma Jun 09 00:00:44 good. Jun 09 00:00:50 then German does not need to die. Jun 09 00:01:03 we also dont have "respectivly" Jun 09 00:01:40 its implizit Jun 09 00:03:08 Weird how they talk about targeting Android and targeting the JVM separately. Jun 09 00:03:26 I mean "they talk separately", not "targeting separately". Jun 09 00:04:08 Since we're digging Oxford commas and general disambiguation. Jun 09 00:04:18 maybe they're planning direct-to-dex'd compilation? /me hopes Jun 09 00:04:43 They told me (in #kotlin) that the Android people had not contacted them. Jun 09 00:05:29 But I guess they could still be planning stuff. Jun 09 00:05:59 I'm gonna ask them. :D Jun 09 00:06:10 huh. is there a way to put a literal "@whatever" string into a /xml file? Jun 09 00:06:30 maybe they're planning some magic that mere mortals cannot comprehend, and trying will reduce them to a gibbering mass. Jun 09 00:06:40 specifically in an attribute. I can't build with that value, but I need that value :| Jun 09 00:06:43 TacticalJoke: Android and the JVM are different VMs Jun 09 00:07:18 if they said "Targeting Java 6 Classfile Format" then they wouldn't need both Jun 09 00:07:25 groxx: try "@whatever" Jun 09 00:07:38 Ah, true. Jun 09 00:07:53 now i have to copy/pasta Jun 09 00:08:00 icedp: doesn't work in an attribute, since it's already `attr="@whatever"` Jun 09 00:08:09 :D Jun 09 00:12:56 hello Jun 09 00:12:59 Hmm, this seems to be a new Kotlin presentation: https://youtu.be/-BvN0X5tqjw Jun 09 00:13:15 5:11:52 PM linuxuz3r the surfaceflinger prevents you from playing google movies on a modified version of surface flinger 5:12:23 PM linuxuz3r what about audio if i use an opensource lib can i access the lowlevel api in android 5:12:29 PM linuxuz3r please help Jun 09 00:16:07 5:12:31 linuxuz3r don't worry i found the solution Jun 09 00:16:12 Directed by M. Night Shyamalan. Jun 09 00:16:25 huh Jun 09 00:16:28 xD Jun 09 00:22:36 Sorry, I have no idea. Just couldn't resist adopting your format. (I should've added more than two seconds, though. And "PM", and two spaces after the username. Multitasking isn't working tonight.) Jun 09 01:47:31 anyone know how to get rid of this @Generated error i'm getting when using jsonschema2pojo? Jun 09 01:48:37 anyone here who works with sound programming in android Jun 09 01:48:44 i wanna team up Jun 09 01:53:28 TacticalJoke yeah i wonder if 'the swift of android' pisses off the googlers; after all last fireside they said apple needed swift because obj-c was decrepit; saying the swift of android is essentially saying java is decripit :) Jun 09 01:58:43 what is swift of android Jun 09 01:59:05 g00s?!!?!? Jun 09 01:59:05 kotlin Jun 09 01:59:09 meh Jun 09 01:59:19 for me jvm.* anything java related Jun 09 01:59:22 just kill yourself Jun 09 01:59:42 I'd honestly rather just have a decent ui toolkit that targets android functionality and be forced into writing c++ Jun 09 02:01:30 hey guys i've been trying to figure this out for a while now, http://pastebin.com/nxmKaLPT i keep getting a null object reference at line18 and 19 i thought parse sdk was not linked properly but i'm able to log into the app using parse user and on another activity i'm able to add data and upload to parse Jun 09 02:01:31 i'd probably be more interested in rust than c++ these days, but yeah - i like close access to c libs Jun 09 02:01:57 while android studio being built on jetbrains is better than most java ide's etc Jun 09 02:02:07 its just the whole community is effed Jun 09 02:02:28 ron_frown the java community ? Jun 09 02:02:36 everything about it Jun 09 02:02:41 maven and gradle Jun 09 02:02:56 oh, the ecosystem Jun 09 02:02:57 holy fucking shit, I've never seen a bigger pos gain so much adoption Jun 09 02:02:59 yeah Jun 09 02:03:03 community too Jun 09 02:03:05 #java Jun 09 02:03:07 holy shit. Jun 09 02:03:13 anyway Jun 09 02:03:21 what kinda funshit is everyone working on Jun 09 02:03:29 the only thing i like about java is the huge open source community Jun 09 02:03:54 well, actually like java for some things, like server side stuff Jun 09 02:03:57 thats what I like and hate =) Jun 09 02:03:58 meh Jun 09 02:04:13 like a lot of software that gets adoption would actually be better implemented in anythign else Jun 09 02:04:22 but because it was free and open, gets adoped being built in java Jun 09 02:04:27 like elasticsearch Jun 09 02:04:29 it works and is impressive Jun 09 02:05:19 seems like java stuff is fairly entrenched in the data science ecosystem, like Spark & stuff - which i'd like to get into Jun 09 02:05:23 would be better in anything else =) Jun 09 02:05:30 ehhhhhhhhhhh Jun 09 02:05:41 I've spent a fair bit of time in hadoop and all the shit that sits on top of it Jun 09 02:06:03 and while a lot of time there just isnt anything else that will handle the workloads Jun 09 02:06:10 but its way slower than most people expect Jun 09 02:06:16 its free though :) Jun 09 02:06:47 yuuuup Jun 09 02:06:48 anyway Jun 09 02:06:51 what is everyone working on Jun 09 02:07:03 (I hoped like IO would have announced a non jvm non java language/platform Jun 09 02:07:17 eh i was just catching up on what happened at wwdc today. swift 2, xcode 7, stuff Jun 09 02:07:33 sadly I think that is why apple is better in this case Jun 09 02:07:41 I have an android phone and I prefer the os itself Jun 09 02:07:43 they move quickly Jun 09 02:07:52 bu if they could just axe god damn java once and for all Jun 09 02:08:05 or at least provide a diff route and just see what takes over Jun 09 02:08:13 everyone says java is "easier" Jun 09 02:08:24 but I think there are far fewer limitations with something like c++ Jun 09 02:08:34 i find it harder in an embdedded / restrictured resource context Jun 09 02:08:43 me too Jun 09 02:08:48 doing object pooling and other BS i would probably never do server side Jun 09 02:09:43 my ex employer moved from .net to java, and my ex coworker tells me about all these numbers their contractor is bragging about Jun 09 02:09:53 "we loaded and serialized 8 work orders in 2 seconds" Jun 09 02:09:59 yeah we were doing about 1000 in 50ms Jun 09 02:10:02 but congrats Jun 09 02:10:30 glad I dont work there anymore Jun 09 02:10:41 g00s you been kicking ass tand taking name? Jun 09 02:10:46 on your android goodies Jun 09 02:10:50 or you switch to the dark side Jun 09 02:10:58 ron_frown they probably just fucked up ;) the Oracle JVM can be pretty performant Jun 09 02:11:17 when i see guys like HFT do very fast stuff, no GC per event, they are pushing it Jun 09 02:11:36 oracle themselves are tuning the runtime environment Jun 09 02:11:39 oracle+java Jun 09 02:11:57 so what I will admit Jun 09 02:12:06 it may be the components they decided to use that sit above the db Jun 09 02:12:13 totally possible Jun 09 02:12:41 so if Java can be used in stock trading platforms, where latency is major importance, thats something Jun 09 02:13:04 but .. yeah, on embdedded. so sad Jun 09 02:13:06 what language at all wouldnt be Jun 09 02:13:27 I mean I bet go or python could be made to do stock trading platforms Jun 09 02:15:47 i remember back in the 90s, looking at java - the main innovation the language brought was the JVM Jun 09 02:16:17 language itself didn't have much interesting, except GC Jun 09 02:16:27 hotspot Jun 09 02:16:29 that is impressive Jun 09 02:16:41 but oracle is like midas but the opposite Jun 09 02:16:50 sun was a blessing and a curse for java Jun 09 02:17:00 they had some wonky times trying to get standards implemented etc Jun 09 02:17:04 if i recall, lambdas were going to be in Java 1.0 but it didn't happen for scheduling reasons Jun 09 02:17:06 but its gotten worse Jun 09 02:17:17 seems like thats the tale every release Jun 09 02:17:21 anyway Jun 09 02:17:28 got me off course yet again =) Jun 09 02:17:31 what is everyone working on Jun 09 02:17:43 been plugging along in your android apps or whatever Jun 09 02:18:18 ron_frown: like midas but the opposite. everything they touch turns to shit, but they're happy? Jun 09 02:18:27 hhahaa Jun 09 02:18:30 they are making money I gues Jun 09 02:18:47 just don't high-five them :D Jun 09 02:19:03 when people fork stuff oracle touches because oracle touches it, and entire companies exist to cater to please the companies that have finally had enough of their shit Jun 09 02:19:27 postgres has a distribution that pretends to be oracle, binary compatibility and I think most functionality Jun 09 02:19:29 outperforms Jun 09 02:19:39 postgres ? Jun 09 02:19:52 well postgres themselves dont make it Jun 09 02:19:57 enterprisedb Jun 09 02:20:04 MySqL you mean MySQL right ? Jun 09 02:20:07 in a similar vein, I totally read "kicking ass tand taking name" as "taking ass and kicking name". I have no idea why, but I'm totally going to use that. thanks :) Jun 09 02:20:08 nope Jun 09 02:20:09 postgres Jun 09 02:20:23 postgres can out oracle oracledb and out mongo mongodb =) Jun 09 02:20:31 it loses more data? Jun 09 02:20:36 burrrrrn Jun 09 02:20:41 but I meant outperform Jun 09 02:20:45 out webscale Jun 09 02:21:06 at my last company, we had DB2 admins, Informix admins, and Oracle admins. Guess who enjoyed their weekends the most ? Jun 09 02:21:15 at some point here I need to poke at postgres for srsly. I've only done (quite a bit of) mysql. Jun 09 02:21:16 who Jun 09 02:21:21 well, and I guess sqlite, because android Jun 09 02:21:29 postgres has impressed the everliving shit out of me in the past year Jun 09 02:21:31 g00s: the ones that drank the most? Jun 09 02:21:36 ron_frown informix guys had it easy with Db2 guys, the Oracle admins were miserable Jun 09 02:21:55 i'm trying to create a bunch of CheckBox and add them to a LinearLayout. When I create the checkboxes, I want to pass in a XML-defined style to the constructor. I attempted new CheckBox(this, null, R.style.my_stile_id); but this doesn't actually apply any style. I'm using minapi 16, so I can't use the 4-argument constructor. What am i doing wrong? Jun 09 02:22:02 oracle dba's exist because you need a dba for tuning Jun 09 02:22:13 mssql is mostly create the shit and in 90% of the cases it just works Jun 09 02:22:14 and recovery :P Jun 09 02:22:17 hesperaux: Doesn't work, AFAIK. Jun 09 02:22:18 grow a table past a few mil Jun 09 02:22:20 Can only pass style resource. Jun 09 02:22:21 bam Jun 09 02:22:32 I don't know why it doesn't work. Jun 09 02:22:37 Probably nobody does. Jun 09 02:22:41 TacticalJoke, is it possible to generate a style resource from the XML? Jun 09 02:23:01 I mean "a style attribute". Jun 09 02:23:29 * hesperaux googles what that means Jun 09 02:24:04 One of those `?attr/whatever` things. Jun 09 02:24:28 ah, ok Jun 09 02:24:33 this sucks... Jun 09 02:24:38 so what, I have to make a custom view for this? Jun 09 02:24:52 god damn it Jun 09 02:25:01 its fucking amazing I get anything done with kids in the house Jun 09 02:25:03 I really don't want to manually assign the style to each object Jun 09 02:25:21 lol, apple's new Move to iOS app is pretty thorough Jun 09 02:25:40 ? Jun 09 02:25:42 move to ios? Jun 09 02:25:59 hesperaux doesnt the checkbox thing use that statelist stuff Jun 09 02:26:08 * hesperaux doesn't know Jun 09 02:26:15 first time I've used checkbox to be honest Jun 09 02:26:45 hesperaux: I guess you could create a method that sets the style. I don't think there's a better way of doing this from Java code. Jun 09 02:26:49 http://stackoverflow.com/questions/3192173/change-icons-of-checked-and-unchecked-for-checkbox-for-android Jun 09 02:26:56 And by "sets the style" I mean "does it all manually". Jun 09 02:26:57 TacticalJoke, that's a fair compromise I guess Jun 09 02:26:59 I think it expects a selector Jun 09 02:27:21 if you manually apply style, does it appear correctly Jun 09 02:27:56 ron_frown, haven't tried yet, but I'm doing very basic styling (text color, font, not the drawable) Jun 09 02:28:09 oh Jun 09 02:28:10 ok Jun 09 02:28:18 isnt there a textStyle or soemthing Jun 09 02:29:24 I guess another option is to place the CheckBox in its own layout and inflate that. Feels hacky though. Jun 09 02:29:31 (Inflate it N times.) Jun 09 02:29:34 I'd apply style programatically manually Jun 09 02:29:38 that should work Jun 09 02:29:45 perhaps your style isnt syling the right things Jun 09 02:30:10 I was thinking of inflating an XML and then cloning that, to avoid the overhead Jun 09 02:30:36 http://pastebin.com/KJej29rZ <--this is the style Jun 09 02:30:57 if you apply in designer it renders as you'd expect? Jun 09 02:31:09 I don't think you can clone Views. Jun 09 02:31:42 i thought you could clone any Object? Jun 09 02:31:43 Putting width and height in a style. ;o Jun 09 02:31:59 ron_frown, yes to your question Jun 09 02:32:04 ok Jun 09 02:32:54 in the LinearLayout I have one defined in XML, and then I add some others...the one defined in XML displays correctly Jun 09 02:33:06 the ones added with the style applied in the constructor are just text, no checkbox or style Jun 09 02:33:58 clone() is defined on Object, but in general no, you can't clone anything. almost nothing overrides it to do anything useful, except collection classes. Jun 09 02:34:12 sad face :( Jun 09 02:34:26 there are times when i wish equals / clone / a couple others were not defined on Object. they imply e.g. everything is comparable, when they are definitely not. Jun 09 02:34:35 indeed Jun 09 02:34:39 well they tried Jun 09 02:35:53 I can understand not being able to clone a view - it has a lot of properties that shouldn't be cloned, I suppose Jun 09 02:36:17 "a lot" / "omfg that's a lot", yeah Jun 09 02:36:20 i'll create a method to assign the style attributes Jun 09 02:46:29 can't set the checkMark property in java Jun 09 02:46:32 or margins? Jun 09 02:49:50 hesperaux: What checkMark property? Jun 09 02:49:59 And margins are properties of the LayoutParams. Jun 09 02:50:02 ?android:attr/listChoiceIndicatorMultiple Jun 09 02:58:53 Does that really work for CheckBox? Jun 09 02:59:02 The documentation and source code seem to suggest otherwise. Jun 09 02:59:29 CheckedTextView supports that property. Jun 09 02:59:58 it is working for the XML-defined version **** ENDING LOGGING AT Tue Jun 09 02:59:58 2015