**** BEGIN LOGGING AT Mon May 16 02:59:59 2016 May 16 03:00:43 Bless me with knowledge. May 16 03:02:00 well, that was a weird non-question May 16 03:02:22 :( May 16 03:03:01 actionbarsherlock hates me May 16 03:03:31 erm... I think ABS has been officially deprecated for about 2 years now May 16 03:04:11 Guess I should just get rid of it... Pain in the ass. May 16 03:04:28 Anyone mind pointing me to some reading for creating super basic bots with nodejs? May 16 03:07:07 PandaVengeance: anyway, what do you mean by can't debug because of NineFrameLayout.java? May 16 03:08:07 wrong chat my b May 16 03:08:29 Java can't find it for some reason causing multiple errors. May 16 03:12:30 is it part of your code? May 16 03:13:18 just removed it for now. just got one error now May 16 04:14:45 This keeps giving me an error even though I have the images in mipmap folders. android:icon="@mipmap/icon"> May 16 04:25:15 Pretty quiet May 16 04:25:56 PandaVengeance: you need to be more specific what the errors are May 16 04:26:24 Error:(15, -1) android-apt-compiler: [library] C:\Users\Julian\Downloads\Documents\VengeMobile App Development Folder\AndroidDevelopmentNation v1.4.4 Pre Alpha - Updated\AndroidDevelopementNation-master\library\AndroidManifest.xml:15: error: Error: No resource found that matches the given name (at 'icon' with value '@mipmap/icon'). May 16 04:26:46 When I +1 an app on Google+ it points to ... market.android.com May 16 04:27:45 Tried everything still keeps giving me that error. May 16 04:38:08 wow i thought i was the only one https://news.ycombinator.com/item?id=11703545 May 16 04:38:27 consensus so far are the APIs are shitshow May 16 04:40:15 I would like to use some code from this project: https://github.com/pires/android-obd-reader May 16 04:40:18 apache license May 16 04:40:42 would I be allowed to use it as some boilerplate, heavily modify it, and change the name of the project? May 16 04:45:30 g00s: mvp works pretty well May 16 05:01:54 android is hard May 16 05:02:05 it would be nice if there was a more standard way to make an android app May 16 05:04:25 :) May 16 05:04:28 android is shit May 16 05:04:54 it is less effective and more expensive, after all. Compared to iphones May 16 05:07:16 but it's open ;) May 16 05:09:24 but i think google is looking for replacement of Android if Google vs Oracle trial not goes well May 16 05:11:46 what trial? May 16 05:12:03 http://thenextweb.com/google/2016/05/15/oracle-google-trial-android-uh-oh/#gref May 16 05:12:13 google should buy QNX from Blackberry May 16 05:13:06 > When Oracle purchased Sun, it acquired Java as well as all its various APIs — which are copyrighted May 16 05:13:08 remours are swift will be served as a first language for android May 16 05:13:23 > Oracle is claiming Google has no right to use Java APIs for Android May 16 05:13:34 from the very start I was saying that java is shit May 16 05:13:52 and it was bad choice to be used with android May 16 05:14:42 > Oracle’s team is doing a solid job of pointing out how Google may have been obfuscating its ‘fair use’ May 16 05:14:44 haha May 16 05:14:51 ahahahahahaha May 16 05:15:18 > Android creator Andy Rubin, Oracle points out that Google offered him a lot of money to get Android built for smartphones quickly May 16 05:15:32 that is why java, to make it quickly into production May 16 05:15:42 yeah they are looking strongest in this trial May 16 05:16:24 damn if that is true it is so funny, Google obfuscated java code to hide paid api use May 16 05:16:49 someone in this channel said android is open and free May 16 05:18:08 > Oracle also pointed to an email Rubin received from a colleague, Tim Lindholm, stating that Google founders (and by then, owners of Android) Sergey Brin and Larry Page asked for “technical alternatives to Java.” May 16 05:18:10 :) May 16 05:19:10 now android future seems looking very unpredictable May 16 05:19:15 no May 16 05:19:33 they will find alternative to java or buy license from Oracle May 16 05:19:37 Now no idea what Android will gonna do May 16 05:19:44 very simple May 16 05:20:46 if they will go for alternative..then lot of developers will be sacked from oragnizations May 16 05:20:49 if so, then it probably makes sense at this point to compare prices for java from Oracle and swift from Apple May 16 05:23:00 James Gosling talks about this oracle android issue a little on this show I remember https://twit.tv/shows/triangulation/episodes/245?autostart=false May 16 05:23:19 > Google took our property—and our opportunity, Oracle tells jury May 16 05:23:19 > "If that code wasn’t in their three billion phones, not one would work." May 16 05:24:01 one thing that strikes me as strange - didn't Larry E - in the beginning, congratulate Google ? May 16 05:24:46 now you know why ;) May 16 05:26:48 > "$42 billion in revenue through all of those activations. Each with our client's property in them. Valuable computer code." May 16 05:26:54 "Speaking at a JavaOne conference in SF, Ellison said he was "excited" and "flattered" by Android, and he speculated that there would be more Java devices on the way, "some of them coming from our friends at Google."" May 16 05:27:04 bankai_ lol May 16 05:27:19 'our friends who are going to make us rich!" May 16 05:27:38 they can only screw their own customers over so much... May 16 05:27:38 should have never used java May 16 05:27:44 gotta get revenue other ways :) May 16 05:27:47 java was mistake May 16 05:28:06 why, whyyyy :( May 16 05:28:12 well luckily, there are some interesting alternatives in 2016 :D May 16 05:28:17 why java ... May 16 05:28:34 i wouldn May 16 05:28:38 oracle would sue kotlin too May 16 05:28:38 oops May 16 05:29:07 i wouldn't worry about any of this much yet; if google had to make some big adjustment, i bet they would give us tools to migrate our projects May 16 05:29:19 ha May 16 05:29:22 ))))) May 16 05:29:22 uum May 16 05:29:31 your belief is solid May 16 05:29:31 kotlin depends on java May 16 05:29:47 g00s: it will fall down to language converting tools May 16 05:29:51 :) May 16 05:30:23 doesn't intelliJ have a java -> kotlin wizard ? May 16 05:30:50 > Bicks went on to show some of the "greatest hits" of Google's internal e-mails from 2012, including an e-mail from engineer Tim Lindholm to Google's Android chief, Andy Rubin, saying that alternatives to using Java "all suck." May 16 05:30:52 i'm sure they could make java -> swift easily too, although it wouldn't be idiomatic swift ... May 16 05:31:10 the corporations are the problem May 16 05:31:16 with their greed May 16 05:31:38 instead of proper research work, they e-mailed “all suck” May 16 05:31:40 we have to depend on their being in the mood to be nice to get lucky May 16 05:31:40 imagine that? May 16 05:31:45 squ well ... at that time, they were probably right ... May 16 05:32:02 how the hell is this possible in such major company May 16 05:32:09 what would they have used, C++ ? May 16 05:32:16 i guess they could have used D May 16 05:32:19 idk May 16 05:32:35 probably be far less apps in Play if they went with C++ :D May 16 05:32:39 discovery would be easier :D May 16 05:33:08 I'd use gtk May 16 05:33:17 wuuut May 16 05:33:17 and C or perl to call apis May 16 05:33:22 gtfo! May 16 05:33:39 well i'm glad squ didn't design android :D May 16 05:34:01 QNX with ASM/C/C++ and QT May 16 05:34:13 g00s: May 16 05:34:16 firefox os May 16 05:34:18 ok? May 16 05:34:28 obj-c is C May 16 05:34:50 obj-c is C + Smalltalk May 16 05:35:25 they could have used Eiffel :D May 16 05:36:11 shmooz: any gui toolkit would be better than inventing .xml layouts from scratch May 16 05:36:16 :) May 16 05:36:35 i think the xml stuff is fine May 16 05:36:41 the theme system, now that kinda sucks May 16 05:38:12 anyways May 16 05:38:12 squ the anko stuff might interest you May 16 05:38:24 google will pay for their own stupidity May 16 05:38:33 that's normal May 16 05:38:44 :> May 16 05:38:59 9.3 billion is nothing May 16 05:39:32 > Anko (sweet red bean paste) Recipe – Japanese Cooking 101 May 16 05:40:31 they could khm.. use.. khm.. scala ;) May 16 05:42:24 my vote for perl 5 and a popular gui toolkit May 16 05:42:43 maybe html+css+javascript? May 16 05:42:45 i want to read that code after... May 16 05:42:52 yes, and node js May 16 05:42:56 and electron May 16 05:42:58 and more May 16 05:43:12 anyone deal with issues during animation for progress dialog May 16 05:43:39 http://stackoverflow.com/questions/37247308/getting-this-error-gradientdrawable-cannot-be-cast-to-animationdrawable-in-andro --- for some reason my tester is getting this error I was getting it before but not anymore May 16 06:01:08 hello world May 16 06:02:21 good post https://plus.google.com/105051985738280261832/posts/FXCCYxepsDU May 16 06:02:22 I was wondering why is it bad to use enabledciphersuites in android? May 16 06:02:34 read it, it' worth it! May 16 06:08:55 anyone know if SharedPreferences.Editor is thread-safe? May 16 06:23:46 Hey guys May 16 06:36:03 Xanather, the internet says it is, but not process safe May 16 06:44:03 Zharf thanks, but where did you find that info btw? May 16 06:44:27 I tried looking, I can only see SharedPreferences class as thread-safe, can't find anything about the editor May 16 06:46:47 https://nayaneshguptetechstuff.wordpress.com/2014/07/09/sharedpreferences-apply-vs-commit/ May 16 07:28:33 +do i want to display/load admob ads on the main UI thread? May 16 07:39:39 thornekey: You need to. Someone correct me if I'm wrong. May 16 07:39:58 Ok cool. I thought so too but just making sure May 16 07:40:17 "think twice. code once" and all that May 16 07:44:31 I dont get it, where else would you display them May 16 07:44:49 idk might load them on another thread May 16 07:45:09 its not up to you to load them, you include the project setup and the needed libraries, and add the ad as XML May 16 07:45:22 ok May 16 08:24:24 How can I fill a linear layout with another activity? May 16 08:26:58 you fill a view with another view May 16 08:27:34 so i can achieve this with a view http://picpaste.com/pics/ex-plJZ2WTY.1463387231.png May 16 08:27:51 and yes ive looked into tabs but i want my buttons to be pictures May 16 08:28:24 this is a simple viewpager May 16 08:28:33 there are tons of examples online for how to achieve this May 16 08:28:36 really easy May 16 08:28:38 Thanks ill take a look May 16 08:28:42 just wasnt sure on the term May 16 08:28:53 yea, viewpager May 16 08:43:36 Hi guys, i added the android.jar from here https://github.com/anggrayudi/android-hidden-api to my sdk folder May 16 08:43:57 but now, how can i use hidden api or at least check if working? May 16 08:50:45 https://android.googlesource.com/platform/frameworks/base/+/f76a50c/core/java/android/os/Power.java How can i access to this programatically? May 16 08:52:32 hmm if I'm storing stuff like name, phone number and email is shared prefs looked at as a major no-no ? May 16 08:53:12 or is it okay as long as it's not passwords or something that will allow people into others' accounts May 16 08:53:27 other apps cannot read your shared prefs May 16 08:53:47 only rooted/exploited devices May 16 08:53:49 yeah but I know there is some concern of security still May 16 08:53:51 yeah May 16 08:53:58 why? by whom? May 16 08:54:07 there is no way to encrypt it on device that cannot be encrypted with sufficient skill May 16 08:54:39 yes, I am familiar with the argument that you shouldn't save things unencrypted in the apps' personal storage May 16 08:54:57 in my personal opinion, it's just BS however May 16 08:55:10 I thought I read it somewhere in the developer docs May 16 08:55:19 (until such times we can use actual proper secure storage with hardware enforced keys) May 16 08:56:50 yeah May 16 08:56:51 I'd go the extra mile for login details and passwords, but just for email address and phone number, nope May 16 08:57:02 personally I think it's fine as long as it's not some login credentials May 16 08:57:08 yeah May 16 08:57:18 Odaym, all i can find online is sliding/swiping between them May 16 08:57:22 I dunno I guess we'll see what corporate says May 16 09:00:08 grekkos: encrypt what you can even if it's not perfect it will deter more bad guys than if you didn't May 16 09:02:25 grekkos note that if you actually did have account data, you can use AccountManager for that, which *should* use proper encrypted storage in the backend if available on the device May 16 09:03:47 isnt that what you need? May 16 09:03:59 having such a layout and not enabling swiping/sliding between them is wrong May 16 09:05:19 Chainfire: can i ask a thing if you have the time to answer? May 16 09:06:00 pm then May 16 09:07:13 Odaym, nah i want to have like a tab system so i click a button and it loads a different screen under it May 16 09:07:45 but when a user sees that layout the first thing they're going to try and do is swipe May 16 09:08:01 no they wont May 16 09:08:02 what you want is way easier than a sliding viewpager, you can do that May 16 09:08:33 Hm May 16 09:08:36 oh and fire your designer May 16 09:08:41 or you can shoot them May 16 09:08:48 i will shoot them May 16 09:09:17 So what do you suggest I use? instead of tabhost and viewpager May 16 09:09:25 just a viewpager May 16 09:09:41 tabhost is something else, and its 4 years old at least May 16 09:09:51 but the viewpager makes it swipeable (which is what i dont want) May 16 09:09:57 you should want it May 16 09:10:01 is what I'm saying May 16 09:10:07 :D May 16 09:10:12 otherwise its so easy May 16 09:10:24 tabhost is so easy May 16 09:10:47 ok but we want the app to not swipe. you press the buttons to change the view May 16 09:11:15 yea that's what you'll get May 16 09:11:37 with the view pager? May 16 09:11:42 with the tabhost May 16 09:12:04 but tabhost i want the above tabs to be imagebuttons not tab widgets May 16 09:12:24 then look that up, but the foundation of the solution is there May 16 09:13:28 so i can make the last tab just a button not change view? May 16 09:14:03 the last tab? May 16 09:14:20 the tabs (imge buttons) up the top May 16 09:14:30 you want the last one to be something different? May 16 09:14:35 I want the first 3 to change the view down the bottom and the last one to log out of the app May 16 09:14:46 wew May 16 09:14:53 so wrong May 16 09:14:57 but yea you can definitely do that May 16 09:15:02 why is that wrong? May 16 09:15:26 too much to put into one sentence, you should probably read the design guidelines May 16 09:16:07 which part May 16 09:16:17 navigation maybe May 16 09:16:48 this is the type of thing im going for https://www.google.com/design/spec/components/bottom-navigation.html#bottom-navigation-usage May 16 09:17:01 https://material-design.storage.googleapis.com/publish/material_v_8/material_ext_publish/0B3321sZLoP_HZHA1UVAyRFpMVDQ/components_bottomnavigation_usage5.png May 16 09:17:16 cool, you can use this https://github.com/roughike/BottomBar May 16 09:17:50 mind that it's called "Bottom" May 16 09:19:26 Cool May 16 09:19:30 they talk about the oracle java google issue more in depth on this most recent tech show ... https://twit.tv/shows/this-week-in-tech/episodes/562?autostart=false May 16 09:19:50 Odaym, then do i use fragments for the content? May 16 09:20:09 you can May 16 09:20:18 ok cool ^_^ May 16 10:19:36 Hi, anyone know if the Eclipse plugins for Android are still actively maintained (as most have moved over to Android Studio I guess)? Cannot update mine now - it falls over claiming it can't update ADT due to various conflicts etc. May 16 10:21:11 they're not May 16 10:21:24 Here's where it crashes out, atempting to update ADT: http://pastebin.com/u8qwSWJk - I'll just reinstall Eclipse if the Android plugins still work, but if it's abandoned then I'll change over to Studio May 16 10:26:57 Meh, just dumped Eclipse, will be converting projects over to Studio - been putting it off for too long... May 16 10:27:01 gj May 16 10:27:27 so much easier May 16 10:27:49 Probably won't be easier initially as I'm used to Eclipse, not Studio May 16 10:27:57 Dave666: should have done this years ago May 16 10:28:09 studio/IDEA has eclipse based shortcuts available May 16 10:28:11 I'm thinking about switching to native java ide May 16 10:28:18 I've converted multiple eclipse users into IDEA over the past few year May 16 10:28:18 s May 16 10:28:20 I rarely write apps in Android these days - mostly use Eclipse for C++ work at the moment May 16 10:28:21 netbeans (maybe ?) May 16 10:28:35 its technical debt May 16 10:28:56 you learn how AS works in a day, you benefit in the long run May 16 10:29:11 fuck Eclipse shortcuts, learn the AS ones May 16 10:29:18 AS > * May 16 10:29:36 anyone who says otherwise is included in the * regex May 16 10:29:50 I still use Eclipse for C++, but I'll get a handle on Studio too. I did like using 1 IDE for both May 16 10:30:16 fuck AS ones, use ideavim ;) May 16 10:30:36 f....ok yea you win May 16 10:30:56 there's like 5 AS shortcuts :P May 16 10:31:03 I still navigate around like an idiot May 16 10:31:29 the shortcuts were the big thing I had to convince an old eclipse user about in order to convert May 16 10:32:17 do you know the shortcut for switching between designer and XML view? May 16 10:32:39 I never use the designer May 16 10:33:17 nor do I, but I switch to it to see how things look if I missed anything major May 16 10:33:20 ctrl + shift + arrows May 16 10:33:33 why not just have the preview open May 16 10:33:49 heavier May 16 10:33:55 o.O May 16 10:34:05 get a better computer ;) May 16 10:34:13 heavier on my own input May 16 10:34:19 in code screen i dont have anything open either May 16 10:34:29 fullscreen and no tabs or toolbars May 16 10:34:36 only status bar and line numbers May 16 10:34:47 I don't use line numbers... May 16 10:35:03 but I do have bunch of other stuff open around the code May 16 10:35:07 2016 - not having a second monitor :) May 16 10:35:17 oh yea, i dont have 2 monitors yet May 16 10:35:40 been here only 2 months May 16 10:35:55 I'd demand it - for productivity May 16 10:35:58 I often code on a 11.6" 1366x768 display May 16 10:36:07 that's my home mac May 16 10:36:15 I have multiple displays around but I prefer to code on that thing May 16 10:36:32 That's like 1995 level - hehe May 16 10:36:53 I don't like using my 27" 2560x1440 display for coding May 16 10:36:54 it would be retina i think May 16 10:37:32 Zharf: Why on earth wouldn't you use a better display? See more things = less tabbing and moving shit around May 16 10:37:52 yea big screen is definitely relieving May 16 10:37:58 I just don't like it May 16 10:38:01 ive grown to hate my home mac a little because of the screen here May 16 10:38:19 I use it for music making and video editing... and games May 16 10:38:28 but the little one is for ircing and coding May 16 10:38:48 I prefer using my 22" Lacie 4:3 aspect ratio flat CRT monitor May 16 10:40:09 but I often lie on my bed when I code stuff May 16 10:40:25 I don't like sitting in front of a desk for that stuff May 16 10:40:27 you can see more lines with a 4:3 aspect ratio May 16 10:40:42 I've got 5 displays on my PC at home - have it laid out with 3 at bottom and 2 above. Along bottom have coding window, next screen is visuals, right screen debugging output etc. Top screens have email/IRC in left, and misc stuff int top right (videos, spotify etc) :) May 16 10:40:53 also if methods don't fit on my small screen, they're too large anyway May 16 10:41:47 (I work on installation stuff a lot, so top 2 monitors also rotate, and are touchscreen, so I can test stuff out quickly) May 16 10:42:12 yeah those ones that rotate vertical are nice May 16 10:42:20 I tried the multimonitor thing for some years, but in the end it just made me realise how crap most window managers are May 16 10:42:28 since I don't use a mouse for most things.. May 16 10:42:50 Zharf: Yeah, Linux is terrible with multiple monitors, specially when using multiple GPUs. May 16 10:43:16 Zharf: Windows works well with it though. OSX is "ok" but has some problems. May 16 10:43:41 windows doesn't have any good tiling wm options though May 16 10:43:58 Most stupid thing OSX does - if I rotate an external monitor to vertical, it also rotates the screen on my laptop to vertical?! May 16 10:44:10 heh May 16 10:46:55 Dumbest thing Linux does is treat 2 GPUs as 2 separate X-servers. So you cannot drag windows from one X-server to another, unless you use Xinerama, which causes some apps to crash. Tried using it for a while, but it was too much of a headache. May 16 10:48:24 I didn't use xinerama, but I also didn't drag things to another monitor... I had a simple script that the move with some tricks so I could just press a button to send a window to another display May 16 10:49:01 didn't even try xinerama because I'm pretty sure wmii didn't support it, probably still doesn't May 16 10:49:38 Zharf: Yeah, that's kind of what I ended up doing, but I couldn't get along with that restriction. I like using the mouse... May 16 10:50:42 I only use the mouse if I'm forced by lack of keyboard support from an application May 16 10:51:21 coworker had a keyboard which had mouse emulation in the hardware May 16 10:51:34 some combination of keys would move the mouse around May 16 10:52:07 You can do that in Windows using mouse-keys - just using arrow keys to move it about :) May 16 10:52:29 Not sure why anyone would, unless they had a physical disability though May 16 10:52:34 but it was on the hardware, no need for special software May 16 10:55:49 launching web browser web page to google json lint page is faster than launching local terminal and editor to check its syntax May 16 10:55:52 how do you like that May 16 10:57:39 which terminal May 16 10:57:47 squ: Does anyone still use man pages? May 16 10:57:50 iterm May 16 10:57:56 iterm is ridiculously slow May 16 10:57:56 it's pretty slow May 16 10:58:09 urxvt <3 May 16 10:58:12 and bash may be slow too May 16 10:58:12 + May 16 10:58:40 iterm is launched and it stays black until bash prompt appears May 16 10:58:46 hate bash May 16 10:59:18 use zsh May 16 10:59:42 Used to have to work on an HP/UX cluster that only had "sh" - bash was a luxury May 16 11:00:48 Dave666: no csh too? May 16 11:01:06 tcsh May 16 11:01:23 freebsd installs without bash May 16 11:01:25 nope. Had to do all scripting using awk, had the original vi too - none of that vim nonsense - hehe! May 16 11:01:51 zsh on zfs on openbsd May 16 11:02:05 vi is just a little bit better than sh May 16 11:02:50 if ActivityCompat.shouldShowRequestPermissionRationale returns true, do I create a explanation dialog in old school manner or does it have an API to create the explanation dialog? May 16 11:03:30 Zharf: no urxvt for macos? May 16 12:29:07 seems I cannot get this works. is current Google Calendar broken? http://developer.android.com/guide/topics/providers/calendar-provider.html#intent-edit May 16 12:45:22 molikto, what happens May 16 12:46:35 Zharf: it is as if you are creating an event May 16 12:51:42 I'm unsure but I suspect that the ID is wrong May 16 13:11:25 hello, i'm trying to get an offline gradle build working with mixed success, the idea is I build/prime the project on a internet connected machine, move the source/gradle cache to another machine, and run the build form there with the necessary command line args May 16 13:11:48 it works, but if the .gradle cache directory/path is different, it no longer works May 16 13:12:24 has anyone been able to get an offline command line build working? May 16 13:15:06 Odaym, are you on ? :) May 16 13:17:13 yea May 16 13:17:41 Ive used the library like you suggested, however I am a bit stuck would you mind taking a look May 16 13:18:29 Ive got the bottom bar showing but now I need to display the fragment. http://ideone.com/EckkZm I cant get it though May 16 13:19:11 you need to have a FrameLayout in your activity's layout, that's where you load your fragments into May 16 13:19:32 Oh May 16 13:19:43 and i can call that within my case switch May 16 13:21:34 Odaym, i added contentFrame = (FrameLayout) findViewById(R.id.frame_content); May 16 13:22:07 yea May 16 13:22:22 now you need to call replace on it, passing the new fragment May 16 13:24:13 Hmm ok May 16 13:24:14 ill try May 16 13:29:54 Odaym, something like this? http://ideone.com/lTUFIX May 16 13:30:02 i feel like its not right tho May 16 13:30:28 what are your feelings based on May 16 13:30:37 based on it doesnt look right May 16 13:30:54 look? May 16 13:31:01 how is it supposed to look May 16 13:31:15 well maybe it needed an R.id._____ May 16 13:31:18 for the first param May 16 13:31:18 try and find out May 16 13:31:34 but then i figured ive made that a variable May 16 13:31:44 (contentFrame) May 16 13:32:00 that's a FrameLayout, not the same thing as what replace is expecting as a first argument May 16 13:32:12 its expecting an integer, R.id.something May 16 13:32:29 ohh i thought that ws how i was meant to replace the framelayouts view May 16 13:32:51 framelayout is the view May 16 13:33:21 Ohhh May 16 13:33:24 ok one sec May 16 13:33:28 ohhhhhh May 16 13:33:30 my back! May 16 13:37:42 haha sorry May 16 13:38:15 so i want something like: ft.replace(R.id.frame_content, createEventFrag); May 16 13:38:22 ft being FragmentTrans May 16 13:38:49 yea May 16 13:39:47 my fragment (createEventFrag) extends Fragment, right, but it says "wrong 2nd argument type. required.. android.app.fragent" May 16 13:40:10 don't mix support and framework fragments May 16 13:40:14 see if it's a difference between v4 and Fragment May 16 13:40:17 yea, that May 16 13:40:38 oh yea, the fragment is support May 16 13:40:42 which is better May 16 13:41:18 i use support fragments, for better "support" May 16 13:41:19 lol May 16 13:41:40 ok cool, time to test :D May 16 13:44:16 ok cool, so it works :D, thanks heaps for your guidance May 16 13:44:32 anytypes May 16 13:44:52 is it ok to do it how ive done it though? http://ideone.com/JMfWFW by just replacing everysingle time May 16 13:45:25 yea May 16 13:45:33 cool, thanks :) May 16 13:45:50 addToBackStack makes the system add the last fragment you were in to the back stack so that when you press back you go there May 16 13:45:53 if you didnt know May 16 13:47:24 oh so im not loading too much? May 16 13:48:19 without real measurement, you cant say too much or too little by just the look of repeated code May 16 13:48:38 you could forego the creation of the fragmenttransaction twice May 16 13:49:33 Ohh May 16 13:50:30 so how do i use the smae fragtrans for both May 16 13:51:10 nvm got that ahahah May 16 13:51:15 that was silly May 16 13:51:18 yea May 16 13:51:22 k, im off May 16 13:51:26 Are edittexts locale-aware? May 16 13:51:26 cya mate, thanks May 16 13:53:42 I'm looking for a way to consistently set a decimal value on an edittext, and retrieve it back. The user may input their own number too. Using Java's numberformat, it breaks on some locales, such as es May 16 14:31:11 guys May 16 14:33:22 I wonder if android studio can be configured in a way that use local junit in installed 'android source' package rather than trying to resolve it online. May 16 14:34:16 ignore my question May 16 14:40:47 Hey, im new to android programming and have a question regarding databases. Is the built in SQlite database completely internal on device or do people use SQLite to communicate with webserver-databases? May 16 14:41:02 That's a strange question. May 16 14:41:11 How would you use SQLite to communicate with servers? May 16 14:41:23 yeah i see, but im quite comfused May 16 14:41:41 confused* May 16 14:41:57 About which part? :) May 16 14:41:58 It's the new hot paradigm: D2D. Database to database. May 16 14:42:31 use a REST api May 16 14:43:24 like send data from an internal storage to a webserver? May 16 14:43:59 well, what is the purpose of your app? May 16 14:44:10 what are you trying to store i mean May 16 14:44:29 Awozo, not sure what SQlite would do there... perhaps you're missing the fact that there's no SQlite server anywhere, but it's a library that directly writes database data into a file? May 16 14:44:35 So there's no remote connections? May 16 14:44:48 Im in the learning stage, so im only reading about it. Not making an app atm May 16 14:47:36 Okey, understand it know, was so confused about this. thanks for the answers. May 16 14:48:41 Hello, Is there someway to push exceptions into android console ? There is a tab called "Fails and ARN". In my code I treat an exception telling user that it isn't possible to to that action. But I would like to push this problem into my console tracking. May 16 14:54:40 whatup whatup May 16 15:03:22 Hey there :-) I need help with the new permission system on android 6.0. It just dont work for me. I use requestPermissions but on onRequestPermissionsResult it failed. shouldShowRequestPermissionRationale seems to be false. The best part is it is allowed in settings but it doesnt work i get always the result denided permissions May 16 15:12:58 Hello. Someone knows why a SurfaceView doesn't take all the space available ? May 16 15:13:20 My tablet is around 720p but my SurfaceView is : M_WIDTH 557 M_HEIGHT 281 May 16 15:25:20 wviana, Have you tried the Log.e function? May 16 15:27:08 truckcrash: I'm removing all log calls from Proguard. I think that the tracked errors are not done by Log class, cause sometimes I receive errors from users using APK's that haven't Log calls. May 16 15:28:20 Oh, are you looking for something like crashlytics.com ? May 16 15:28:42 A lot of people use that to monitor crashes on released apps May 16 15:30:16 crashlytics is awesome May 16 15:31:40 it is May 16 15:32:12 seems unanimous May 16 15:33:43 wtf? there's no shuttle from sheraton sunnyvale to IO? May 16 15:56:10 anyone know any orange colored apps with a good ui/ux thats not not google music? May 16 15:56:31 O.o May 16 15:56:42 what May 16 15:57:13 well, anyhow, i like UX of google analytics (the new version) May 16 15:57:21 its about as orange as donald trump May 16 15:59:12 although, you won't be able to see much unless you have analytics set up May 16 16:09:28 speaking of analytics, im using facebook api, should i use their analytics as well as google or just one May 16 16:21:57 Does anyone have any experience with intercepting responses in WebView, or know if it's even possible. Specifically, I need to detect when I receive a 302 redirect in the webview. Supporting API 16+ May 16 16:25:35 using facebook api, my testers cant log in. I have tried to make the app available to public (in App Review) and that stll hasnt worked. May 16 16:32:17 hey May 16 16:38:31 all May 16 16:47:27 truckcrash: No, just looking for someway to push exceptions into Android Developer Console, just as it already catches in some errors. But in this case I won't really crash app. I'm treating the exception, I just want to push it into Android Developer Console. May 16 16:49:39 wviana: AFAIK there is no way to do that. there's no API for the developer console May 16 16:53:07 http://techcrunch.com/2016/05/10/please-dont-learn-to-code/ May 16 16:53:38 seand: Sad :( . Thank you folks anyway. :) May 16 16:56:06 uh is there any difference in binding to a service using context.bindService() when the context is from a class extending Applicaiton rather than Activity? May 16 16:58:26 no May 16 16:58:45 rgr May 16 17:01:04 oh, I guess there's a shuttle at the google campus across the street from it May 16 17:01:33 or I'd think there would be May 16 17:02:21 looking for resources on making android games... any ideas? ive got a fair bit of experience building apps, but im not sure where to start using those ideas to build a game May 16 17:02:53 drinfernoo: unity May 16 17:02:57 or ue4 May 16 17:06:36 https://googleblog.blogspot.com/2016/05/introducing-spaces-tool-for-small-group.html May 16 17:06:41 is this like Slack ? May 16 17:08:22 isn't slack more for large groups? May 16 17:08:30 g00s: I've seen it described more like G+ communities, spun out May 16 17:08:49 seand, why should it not be useful for small groups if its usefull for larges May 16 17:08:55 Does Picasso redownload images it just downloaded previously on a past screen or does it store them on the device? May 16 17:09:10 g00s: also, nothing to do with that, but http://goo.gl/S2xc7S May 16 17:10:09 danijoo_: it might be useful, but if it's not targeted for small groups then it's most likely not ideal for them May 16 17:10:48 Hey anyone get a bad request 400 on google developer page under android?Must be update something. May 16 17:10:50 Leeds yes, i did see that .... May 16 17:11:29 seand, cant imagine a feature that would be like that May 16 17:13:02 danijoo_, what about the UX? May 16 17:13:22 seand, but anyways, slack is targeted for any size May 16 17:13:25 Leeds also OT , well they talk about android/ios http://ow.ly/qVsC300f1jj May 16 17:14:09 perlsyntax: yes May 16 17:14:55 has anyone encountered the 65k method limit but only when running with debugger? May 16 17:14:59 orbyt,So i am not the only one cool:) May 16 17:15:03 hehe May 16 17:15:24 orbyt_,I thought it was just me. May 16 17:17:00 it is just you May 16 17:17:07 funny:) May 16 17:17:12 what is May 16 17:17:19 yes May 16 17:17:32 ok May 16 17:18:03 :) May 16 17:18:40 orbyt_,I shick there working on the web site today. May 16 17:18:49 shocked May 16 17:20:10 I might be late to the party, but is https://developer.android.com/ down for anyone else? May 16 17:20:16 400's at least May 16 17:20:22 that would be awesome May 16 17:20:26 nope up for me May 16 17:20:35 yiati: must be just you May 16 17:20:38 because it might mean, they are updating it after several years : May 16 17:20:58 Down here as well, yiati May 16 17:21:24 400 Bad Reques there May 16 17:21:38 < HTTP/1.1 400 Bad Request May 16 17:21:39 Hi there. Is anyone with a little experience with the camera2 api around? I'm trying to make 2 still pictures (one without flash and one with flash) using the CameraCaptureSession.captureBurst function and have trouble getting the flash to work May 16 17:21:41 yep May 16 17:22:17 Is developer.android.com down for anyone else? May 16 17:22:20 yes BigDru May 16 17:22:26 Updates? May 16 17:22:30 possibly May 16 17:22:55 K thanks seand May 16 17:23:48 BigDru down for me May 16 17:24:33 yiati,Down for me. May 16 17:25:04 g00s, or they gave up and removed it completly :D May 16 17:25:19 danijoo_ yeah 'you guys have the source code, after all' :D May 16 17:25:25 https://developer.android.com/ is down May 16 17:25:30 :( May 16 17:25:33 it should redirect to https://developer.apple.com/ May 16 17:25:44 Im working on AIDE so no I dont believe i have the source May 16 17:25:49 I thought they update web site after google i/o May 16 17:26:10 lets count how many people come in and ask if d.android.com is down :p May 16 17:26:38 ok May 16 17:26:41 guys guys May 16 17:26:47 is d.android.com down May 16 17:26:51 3 May 16 17:26:59 :) May 16 17:27:07 Oh source.android.com? May 16 17:27:09 Dont dount me. I didnt asked I said May 16 17:27:19 Wait was i first? May 16 17:27:21 :d May 16 17:27:33 BigDru, why AIDE? May 16 17:28:05 danijoo_: android ide -> android development on android May 16 17:28:21 No real comp just a tablet right now :s May 16 17:29:14 yo dawg, i heard you like android May 16 17:29:15 still down May 16 17:30:48 imgur seems down too, maybe the interwebs are broken May 16 17:31:15 ok guys. who deleted my internet? May 16 17:31:40 >.< May 16 17:36:43 while you are waiting for d.android.com to come back, here is a cat picture http://i.imgur.com/nnm9puS.jpg May 16 17:37:14 anyone read the Dianne Hackborn essay? May 16 17:37:26 http://www.mostexclusivewebsite.com/ May 16 17:37:35 lol, they should be at I/O http://i.imgur.com/byiyaOe.jpg May 16 17:38:40 So if i have a login flow that on launch the user goes to a login screen and logs in, whats the best way to keep track of that logged in state? May 16 17:39:18 s73v3r: which one? May 16 17:39:19 probably at the application level. Checking whether or not you have an access token May 16 17:39:24 orbyt_, AccountManager? May 16 17:39:29 the one she posted on G+ yesterday May 16 17:39:39 https://plus.google.com/105051985738280261832/posts/FXCCYxepsDU May 16 17:39:58 hi guys is it smart to create apps in Basic4Android? May 16 17:40:14 s73v3r that was on /r/android, /r/androiddev, and HN ... sure lots of people saw it May 16 17:40:32 it confirms my suspicions :D May 16 17:40:35 or is it good to buy Basic4Android? May 16 17:40:51 Mavrik: perfect time for docs to be down (╯°□°)╯︵ ┻━┻ May 16 17:41:03 Mavrik has Dash anyhow May 16 17:41:11 tim241: Why would you buy Basic4Android ? May 16 17:41:15 Yeah May 16 17:41:22 because it costs money? May 16 17:41:23 Dash is pretty nice May 16 17:41:30 no, i mean why would you bother with it? May 16 17:41:33 One of those days when I can say my paranoia is ok May 16 17:41:41 "Offline everything!" :P May 16 17:41:51 Mavrik does Dash allow literal matching, instead of always fuzzy? like 'foo would give me foo, not fXoXXo May 16 17:42:01 s73v3r is it a good software? May 16 17:42:07 g00s, I have it wired up with alfred May 16 17:42:26 So it's basically cmd + space dash view and the doc pops up May 16 17:42:35 i haven’t used it, but I don’t know why you’d bother with it May 16 17:42:37 alfred integration is always literal afaik May 16 17:42:48 ah k May 16 17:42:50 s73v3r because I want to buy it? May 16 17:43:06 why would you want to? May 16 17:43:14 I love vb May 16 17:43:23 and I dont want to learn java May 16 17:43:23 tim241 why would you love vb May 16 17:43:29 then don't learn java May 16 17:43:31 why why why ! May 16 17:43:31 xamarin is free May 16 17:43:35 because I use it mostly May 16 17:43:39 yeah, if you' May 16 17:43:49 if you’re going to do Android dev, suck it up and learn Java May 16 17:43:50 there's scala, and kotlin and c# and just about anything else that's reasonable and not garbage May 16 17:44:15 Just learn Java and then learn Kotlin. This will set you for a while May 16 17:44:16 even if you move on to one of the alternatives, just about everything documentation wise and design wise is designed around Java May 16 17:45:02 s73v3r ik but visual basic is easie to use and I created my first app today it is much easier than java May 16 17:45:06 and i can't see how basic4android would even be a commercially viable product, ever - so you're investing in something thats either a hobby toolchain or a commercial flop May 16 17:45:15 it’s easier for trivial things May 16 17:45:31 once you run into bugs, or need to know how something works, you’re SOL May 16 17:45:35 it is easier for complex things too May 16 17:45:38 Mavrik: wait you have offline docs? How? May 16 17:45:40 no, it’s not May 16 17:45:44 SOL? May 16 17:45:50 shit outta luck May 16 17:46:04 ok May 16 17:46:19 but visual basic is good for complex things too May 16 17:46:24 it isn't May 16 17:46:30 it is May 16 17:46:31 lol May 16 17:46:34 no, it’s not May 16 17:46:39 is anyone being able to access developer.android? May 16 17:46:40 yes it is May 16 17:46:42 futher, now you’re compounding performance problems May 16 17:46:45 ignore, carry one May 16 17:46:51 carry on May 16 17:47:03 there are no performence issues at all May 16 17:47:09 bullshit May 16 17:47:17 tim241 stop trolling us :) May 16 17:47:19 last time I checked, visual basic was for plebs May 16 17:47:19 it is actually the same speed as java apps May 16 17:47:25 basic was fun in the 80s May 16 17:47:28 just a troll May 16 17:47:30 ignore, carry on May 16 17:47:38 either it’s going to implement the interpreter in the NDK, in which case you’ve got no access to the Android constructs, or it’s in Java, which is going to compound performance issues May 16 17:47:47 g00s trolling? https://www.b4x.com/ May 16 17:48:03 It's what Xamarin does :) May 16 17:48:13 https://wiki.theory.org/YourLanguageSucks#VB.NET_sucks_because May 16 17:48:25 and Xamarin is infamous for having a bunch of bugs on top of Android’s bugs May 16 17:48:37 hehe May 16 17:48:37 casadogg: yeah its down. We're at 4 right? May 16 17:48:50 BigDru That's right May 16 17:48:56 Damn interns May 16 17:49:02 s73v3r But you're saving money becuase WORA May 16 17:49:13 Hey guys, I created a separate class for my context menu, and I want the value of my dataoutputstream to be used on my separate class how would I be able to use the value? May 16 17:49:25 wut May 16 17:49:36 wut May 16 17:49:48 wut May 16 17:49:51 wut May 16 17:49:54 w May 16 17:50:03 BigDru weakest link ! May 16 17:50:04 god dammit BigDru May 16 17:50:18 http://memesvault.com/wp-content/uploads/Wat-3d-Gif-12.png May 16 17:50:23 I typed tuw but my keyboard didnt connect till the w May 16 17:50:24 :s May 16 17:50:44 always you May 16 17:50:50 LOL xD May 16 17:51:02 shit I kinda need to access the android documentation right now May 16 17:51:13 go to google May 16 17:51:21 type in google documentation May 16 17:51:24 and voila May 16 17:51:38 ow android documentation May 16 17:51:40 huh... May 16 17:51:43 ok sorry, I will see if I can find a way. May 16 17:51:43 orbyt_, i see that unity is used with C#, would i have to use the ndk? May 16 17:52:01 casadogg, you do know you have a copy of it inside your sdk dir right? :P May 16 17:52:06 casadogg: http://web.archive.org/web/20160505153028/http://developer.android.com/index.html May 16 17:52:07 drinfernoo: Unity abstracts that away May 16 17:52:07 It's right there in SDK downloads as well ;) May 16 17:52:10 or that^ May 16 17:52:15 who of you guys ignored me? May 16 17:52:34 drinfernoo: what no May 16 17:52:36 everyone great!! May 16 17:52:39 drinfernoo: its a game engine May 16 17:52:56 poke tim241, 0 May 16 17:53:05 ?? May 16 17:53:06 i didn't ignore you, tim241 May 16 17:53:10 ok May 16 17:53:13 thankgod May 16 17:53:20 tim241: May 16 17:53:21 I thought I was lonely May 16 17:53:26 but i should have after you said VB can handle complex programs May 16 17:53:40 it can May 16 17:53:43 no May 16 17:53:53 i’ve seen far, far too much trash in VB to take that statement seriously May 16 17:53:59 did you guys ever programmed in visual basic? May 16 17:54:04 yes, i have May 16 17:54:08 is it just me or is developer.android.com not working? May 16 17:54:10 orbyt_, thanks ill check it out May 16 17:54:11 show me a complex application developed in VB May 16 17:54:29 dofidum, me too May 16 17:54:29 icechat was originally created in vb May 16 17:54:45 drinfernoo, dang, that is annoying... May 16 17:54:49 VB is actually a pretty serious language that’s become crazy fast. However, this only applies to Windows. I don’t expect any kind of Basic to have decent perfs or decent integration on Android. May 16 17:54:49 damn i was afk... where are we? 5? 6? May 16 17:54:54 maybe we should set the topic to "d.android.com is down" May 16 17:55:08 danijoo_: think so May 16 17:55:09 jaana https://www.b4x.com/b4a.html May 16 17:55:15 originally? so they migrated to another language? maybe after the application got too complex? May 16 17:55:15 ok May 16 17:55:23 tim241: Yeah I saw that, toy apps, I wouldn’t trust it. May 16 17:55:30 There must be update something:) May 16 17:55:33 I have the trail May 16 17:55:47 it is great so far May 16 17:56:14 orbyt_: dang why didnt i think of web archives?thanks May 16 17:56:28 created an hello world app in 2 min May 16 17:56:37 in basic4android May 16 17:56:38 so have I, in java May 16 17:56:43 xD May 16 17:56:58 anyways, you have our answer, which is no, don’t bother. Do as you wish May 16 17:57:41 tim241: This means nothing. You can create toy apps in dozens of languages on Android but there are really only two credible languages to write real world applications: Java and Kotlin. May 16 17:57:57 scala maybe too May 16 17:58:02 Unity May 16 17:58:06 jaana, or c++ if you you have sufficient spare time... May 16 17:58:37 jaana, depending on what type of app of course... May 16 17:58:39 C++ is mostly used for games, not much else (with good reasons) May 16 17:58:53 tim241: https://www.youtube.com/watch?v=hkDD03yeLnU May 16 17:59:02 jaana, yes, agreed, don't use it for anything else... May 16 17:59:03 i write my apps in http://lolcode.org/ May 16 17:59:07 goml May 16 17:59:20 http://developer.android.com May 16 17:59:38 does unity just export to apk, then? May 16 17:59:41 Why the hell is this not loading? May 16 17:59:48 Yes i know it still down May 16 17:59:55 Christ May 16 17:59:57 Ologn: did you try turning it off and on again May 16 17:59:58 :) May 16 18:00:00 hi quick question May 16 18:00:03 seand what was that video? May 16 18:00:05 is dagger 1 deprecated? May 16 18:00:16 harsukh: no May 16 18:00:23 tim241: it was a documentary about the uses of visual basic in real world applications May 16 18:00:26 C++ <3 ;) May 16 18:00:42 Does anyone use the web ui for google cloud test lab? May 16 18:00:59 you can use it for so many things, like tracking IP addresses May 16 18:01:00 JakeWharton: when will dagger 1 be deprecated? May 16 18:01:46 Mavrik Yeh, dat search though. May 16 18:01:56 developer.android.com has been deprecated May 16 18:02:04 orbyt_ ty man May 16 18:02:40 intern has been deprecated May 16 18:02:55 http://programmers.stackexchange.com/questions/52749/why-is-vb-so-popular/52754 and https://www.youtube.com/watch?v=YABbTXt_JP4 May 16 18:03:00 Oh no it down!! May 16 18:03:04 lol May 16 18:03:18 Ologn, 5 :p May 16 18:03:24 tim241: you’re not going to convince anyone here that VB is not a steaming pile of dog shit May 16 18:03:41 read the article May 16 18:03:46 no May 16 18:04:04 lol he is saying something without reading it wow May 16 18:04:16 #grammerskills May 16 18:04:17 no, because I’ve had experience with VB. May 16 18:04:33 so it is YOUR opinion May 16 18:05:04 you’ve had your answer for a while now. you can do with it what you will, but you’re not gonna change anyone’s minds here. if you wanted validation of your opinion, you’re not gonna get it here May 16 18:05:20 it is an opinion formed with real world experience May 16 18:05:23 works brand color is orange and im building a sample app to demonstrate our sdk thing. Would it be weird if I make the sample not orange May 16 18:05:28 cuz orange is so fkin ugly May 16 18:05:31 harsukh i doubt it, isn't it still under active development ? May 16 18:05:34 orange is cool May 16 18:05:41 orange blows May 16 18:05:46 never seen a good looking orange app May 16 18:05:48 i like orange :( May 16 18:05:57 i mean i like the color May 16 18:06:00 orange is my favorite color May 16 18:06:03 yeah, I know May 16 18:06:09 but for apps i just doesnt work idk May 16 18:06:21 tim241: what article May 16 18:06:26 works good as an accent color May 16 18:06:29 orange looks like a toy app in apps :( May 16 18:06:31 like soundcloud May 16 18:06:33 http://programmers.stackexchange.com/questions/52749/why-is-vb-so-popular/52754 May 16 18:06:41 danijoo_: yes exactly May 16 18:06:44 tim241 holy shit. May 16 18:06:45 s73v3r: VB is not a steamping pile of dog shit. It’s a pretty good language used very widely. It’s just a poor fit for Android. May 16 18:06:45 lol May 16 18:06:51 tim241, posting it more times doesnt make it better;P May 16 18:06:58 tanks May 16 18:06:59 i have never had a good experience working with VB. May 16 18:07:00 thanks May 16 18:07:06 brb May 16 18:07:15 I dont say that but seand asked it May 16 18:07:38 I worked on a vb 6 project for a few years May 16 18:07:41 can't say I miss it May 16 18:07:55 what kind of project? May 16 18:08:02 There have been plenty of VB versions, all very different from each other (and steadily improving). Anyway, it’s really off topic for here. May 16 18:08:15 Does it make any sense to have a matchparent fragment in both directions in an activity that contains only that fragment and maybe a side drawer? May 16 18:08:26 (Im looking over old code) May 16 18:08:39 BigDru, yes May 16 18:08:53 if you need to swap it out vs another fragment for example May 16 18:08:55 tim241: nah, was a webapp. real estate. asp + vb6 May 16 18:09:01 ok May 16 18:09:31 BigDru, what else? May 16 18:09:47 Check yo gui interfaces bitches. May 16 18:10:08 wut May 16 18:10:29 too many android apps with their stupid gui interfaces not written in visual basic... makes me puke. May 16 18:10:36 can't track shit May 16 18:10:52 lol May 16 18:10:57 Is there a performance boost in swapping out fragments instead of loading seperate activities? May 16 18:11:33 BigDru: obviously May 16 18:11:39 visual basic teach you bad programming skills. May 16 18:11:45 That's what i was leaning towards May 16 18:11:52 BigDru It's not a big deal though... May 16 18:12:04 BigDru, yes. way faster but there is a big cons.. May 16 18:12:09 http://pastebin.com/PaajXQvQ is the standart b4a hello world app May 16 18:12:16 It is a big deal most of the time, launching a new activity is also very jarring to the user May 16 18:12:21 Fragments are faster than activities? In what way? May 16 18:12:25 tim241, im bling. my eyes... May 16 18:12:29 blind* May 16 18:12:46 lol May 16 18:12:52 Mavrik, transition is usually faster i think May 16 18:12:58 at least it looks like May 16 18:12:58 jaana It's "jarring" if you make it jarring, lol May 16 18:13:03 Just work on them transitions. May 16 18:13:12 Launching a new activity is always jarring. Whole screen gets replaced... May 16 18:13:25 Compared to just replacing a section of your screen May 16 18:13:37 You realize that sometimes you have to replace the screen, right? May 16 18:13:42 Like, if it's a completely different screen May 16 18:13:48 the downside is: you have to deal with fragments :p May 16 18:13:51 With different elements and different purpose. May 16 18:13:59 Since Fragments donćt really do things much differently than activities. May 16 18:14:14 No good reason for them to be slower. May 16 18:14:16 Right but i think we're speaking about situations where both fragments and activities are viable May 16 18:14:36 @casadogg May 16 18:14:37 jaana: this is made much less jarring with activity transitions. May 16 18:14:39 For me, fragments' biggest advantage is not using fucking parcelable to pass objects to other fragments May 16 18:14:54 s73v3r: and even less jarring if you just replace a fragment :) May 16 18:14:58 guys? May 16 18:15:05 what is better: May 16 18:15:07 but then you’ve got to deal with fragments May 16 18:15:13 casadogg, dont you have to use a Bundle to pass things to fragments May 16 18:15:15 tim241: we will always say native java May 16 18:15:16 python for android or visual basic for android? May 16 18:15:20 casadogg: You usually use the host activity to pass info between fragments, it’s a solved problem May 16 18:15:21 BigDru Then I'd go with fragments because if you have to make different layouts for different sizes (tablets, phones, watches, etc.) then it makes everything way easier May 16 18:15:35 tim241: Both terrible choices May 16 18:15:43 jaana, That's what I said, you don't have to use parcelable... May 16 18:15:46 jaana, dont feed the troll :) May 16 18:15:48 if you need to choose one May 16 18:15:56 we wouldn’t. May 16 18:16:06 I’ll try to be in a position where I never have to make that choice May 16 18:16:17 which one is less terible? May 16 18:16:18 I'm not saying fragments suck I'm just saying they suck if you use them when you should be using activities May 16 18:16:22 neither May 16 18:16:30 lol xD May 16 18:16:34 Ok. So fragments whereever possible got it :D May 16 18:16:42 Why not Java tim241 May 16 18:17:07 because I tried java May 16 18:17:16 and I did not liked it at all May 16 18:17:16 What happend May 16 18:17:21 you’re not going to get a different answer here May 16 18:17:26 ik May 16 18:17:31 I hate java too, but it’s still what I use to write Android May 16 18:17:53 Why do you hate it s73v3r May 16 18:17:57 s73v3r: =0 you take that back May 16 18:18:12 hate might be too strong of a word, but I dislike java, compared to Objective-C or Swift May 16 18:18:20 or even C++ sometimes May 16 18:18:31 well swift is beautifyl so meh May 16 18:18:35 beautiful May 16 18:18:49 orbyt_, try kotlin then. its very similar May 16 18:18:51 the generics are pretty worthless, and the android insistence of having an ancient version of Java doesn’t help May 16 18:18:55 so you guys are not recommending b4a? My reason why I choose that is because it is the same language as I program on my PC and I dont want to learn an new one :-( May 16 18:19:01 NO May 16 18:19:04 i've looked at kotlin but I prefer java May 16 18:19:21 Sounds like youd like kotlin then May 16 18:19:26 BigDru, My criteria for fragments is: Is it possible that these 2 separate screens in the phone can be put together on a bigger screen? May 16 18:19:34 Yes? Fragment. No? Activity. May 16 18:19:34 tim241: Learn Java, period. If it’s not for you, then maybe Android development is not fo ryou. May 16 18:19:40 drose379: what May 16 18:20:04 what orbyt_ May 16 18:20:10 I dont think I said anything.. May 16 18:20:50 jaana but I want to buy b4a for some not too complex applications May 16 18:21:19 then do it May 16 18:21:29 tim241: Sounds like you’ve already made up your mind, why keep asking the same question? I don’t think anyone here knows b4a so nobody will be able to help you May 16 18:21:29 but no one here is going to tell you it’s a good idea. end of story May 16 18:21:43 is there any irc? May 16 18:21:51 you’d have to check their website May 16 18:22:01 wait try this /join b4a May 16 18:22:16 nvm May 16 18:22:33 maybe I can create an irc channel May 16 18:22:45 named B4A May 16 18:23:01 Go for it. Expect some loneliness. May 16 18:23:27 well, if they don’t create it, you can’t expect anyone else to May 16 18:23:35 I will mail it to them(they have a really fast r/a ratio) May 16 18:23:40 I predict you got more interaction with a community here in the past 10mn than you will get with a B4A community in the next months. May 16 18:24:00 dont make fun of him. B4A is used by thousands of devs including the NASA and IBM ;) May 16 18:24:18 at least thats what they say May 16 18:24:51 A long time ago, Java, Kotlin and Scala lived peacefully in the android development environment. Then everything changed when Swift attacked. May 16 18:25:04 did it? May 16 18:25:13 Yeah nothing to do with Swift May 16 18:25:40 casadogg: lol May 16 18:26:09 no programming languages ever lived together in peace ^^ May 16 18:26:30 swift maybe put more pressure to add those modern features to Android development May 16 18:26:37 smart-asses. May 16 18:27:00 No new features were added to Android as a response to Swift. Not sure that claim even makes any sense May 16 18:27:16 not by android May 16 18:27:18 lambdas where added May 16 18:27:27 uh what May 16 18:27:28 s/where/were May 16 18:27:35 Do you ever take that stick out of your ass from time to time? May 16 18:27:40 That pressure is coming a lot more strongly from the Oracle lawsuit than anything else May 16 18:27:41 but the popularity of Kotlin increased, and Google finally got off their ass and started updating their version of Java to 8 May 16 18:27:43 in places May 16 18:27:48 casadogg: who u talking to m8 May 16 18:27:52 no, it was coming from devs May 16 18:27:54 jaana obviously May 16 18:28:05 So much smart-assery May 16 18:28:08 I can't handle! May 16 18:28:20 watch the IO fireside chats from the past several years. Every one has a question of when android’s java is going to modernize May 16 18:28:22 =0 May 16 18:28:50 I stopped caring about Java 8 on Android ever since I switched to Kotlin personally. May 16 18:28:57 When will people admit that Java does everything poorly? May 16 18:29:06 Never, because it’s not true May 16 18:29:17 It is when you compare to other languages. May 16 18:29:17 I cant tell if casadogg is a troll May 16 18:29:19 It does somethings poorly and some pretty well May 16 18:29:28 guys plz try /join ##B4A May 16 18:29:30 Then your standards are low. May 16 18:29:31 Ok what does Java do poorly compared to Visual Basic? :) May 16 18:29:35 I want to see if it will work May 16 18:30:11 jaana: I can’t switch to Kotlin on my work project, so I still do care about core Java features May 16 18:30:19 Wow May 16 18:30:21 What the fuck are you actually comparing urine to vomit? May 16 18:30:24 s73v3r: Totally understand May 16 18:30:25 "Which one is better?" May 16 18:30:36 casadogg: that’s enough May 16 18:31:23 Anyway, Java can't create graphical user interface interfaces like VB does so... May 16 18:31:51 wasnt android studio written in java May 16 18:31:57 it is May 16 18:32:10 mhm May 16 18:32:50 Anyway, Java is a tool. Like Kotlin, Scala, B4A and everything else. May 16 18:32:58 Like me and you, we are all tools. May 16 18:37:39 that was a pretty sad troll attempt May 16 18:38:18 would anyone here have some wizard magic and know of a bit level way of clamping an int to [0, 255]? :) May 16 18:38:48 & 0xff May 16 18:38:49 why bit level? May 16 18:38:54 Pyuruku, int clamped = source & 255? May 16 18:39:11 there's no wizard magic there... May 16 18:39:12 thats not clamping... May 16 18:39:13 does someone knows how to add a bot to his freenode server May 16 18:39:21 pfn that doesnt work with values > 255 May 16 18:39:27 or negative values May 16 18:40:14 oh, you want to lower any values and raise any values, there is no May 16 18:40:18 s73v3r: unforuntately I'm manipulating bitmap pixels in java because the android developers decided to omit a few useful porterduff blend modes May 16 18:40:26 min(max(x, 0), 255) May 16 18:40:44 pfn: yeah thats what I'm doing, was just wondering if someone here had wizard code May 16 18:41:00 you could look at the source of the other modes May 16 18:41:10 but I don’t see why doing it that way would be a problem May 16 18:41:22 there is no "wizard code" May 16 18:41:46 s73v3r: the actual manipulation of the bitmap happens in native code, which I didn't feel like writing a wrapper for May 16 18:42:26 Hi all, question: I have a project to see what server this android app is connecting to. I did a network monitor but it seems to be jumping to different IPs. How can I figure this out? It either have a lits of IP to check or is using a hostname right May 16 18:43:14 normally you’d just look in the source code to find out May 16 18:43:21 ^ this or wireshark May 16 18:43:23 but given that phrasing, you don’t ahve that May 16 18:43:47 pretty much one of those two, yes. either it's using a DNS entry with multiple IPs, or it has an internal list of IPs May 16 18:44:06 a hostname would not explain that jumps because it usually queries the dns server once and then stick to that server even with DNS round robin May 16 18:44:19 I’m saying they probably don’t have the source code. which means the app probably isn’t theirs May 16 18:44:56 danijoo_, i wouldn't say his explanation rules anything out in terms of actual app behavior May 16 18:45:00 I don't have the source code. But I did manage to decompile it if that helps May 16 18:45:13 why don’t you have the source code? May 16 18:46:31 Because it is an app made by someone else. Our task is to figure out how to block this on our network May 16 18:47:44 couldn’t you do that using the IPs? May 16 18:50:06 It seems that the "hostname" is through amazonaws. We can't possibly block all compute-1.amazonaws.com:443 May 16 18:50:50 So I'm wondering, maybe there is a "list of IP" hidden in the app somewhere that it's picking at random? May 16 18:55:33 I want to make a progress bar that slowly fills up (say 10 secons) and after that time I need to perform an action (say update the layout). What's the best way to do that? May 16 18:55:55 Flaghacker, Handler.postDelayed May 16 18:56:19 and an Objectanimator to fill the bar May 16 18:56:43 And those will run independantly of each other? May 16 19:02:48 oh it's back and pretty :P May 16 19:03:44 Until you go into a page about a class. then it’s back to the old style May 16 19:04:15 danijoo_, I'm sorry, my conection dropped. So They will both run independently from each other, right? May 16 19:05:04 Flaghacke, yes May 16 19:05:31 woa things looking a bit different on d.android.com :D May 16 19:07:04 And there's no way for them to get desynced? May 16 19:08:30 And can I construct a handler in the onCreate method? Is that the "correct" thread? May 16 19:10:40 thats a way to do it. May 16 19:11:32 money for nothing and your chicks for free May 16 19:11:46 And how do I do this in a repeated fashing? Simple post a new Runnable when the previous one ran? May 16 19:13:34 yes. May 16 19:13:52 inside runnable you could handler.postDelayed(this,...) May 16 19:14:06 hello May 16 19:14:50 french ? May 16 19:14:58 Yes I'll do that. How can I declare an ObjectANimator inside a XML file? May 16 19:15:15 this is rather enligh speaking channel :v May 16 19:15:51 wow they really update android develper web site.:) May 16 19:16:26 ok no problem May 16 19:16:51 :O May 16 19:16:58 http://stackoverflow.com/questions/37241777/get-command-google-now-in-my-app/37256495#37256495 May 16 19:17:09 https://zestedesavoir.com/forums/sujet/6069/recuperer-les-commandes-google-now/?page=1#p110407 May 16 19:37:10 hi guys, i have been looking this for 3-4 hours now. I want my async task thread to be able to receive change in state of object that belong to a main thread. how to do this? May 16 19:37:54 please gide me May 16 19:37:55 *guide May 16 19:38:22 anyone there? May 16 19:39:25 guys, is there a way to find on what site an app is connecting? May 16 19:39:44 hi guys, i have been looking this for 3-4 hours now. I want my async task thread to be able to receive change in state of object that belong to a main thread. how to do this? May 16 19:41:17 Hello, I'm following this tutorial to create a chat app with firebase https://github.com/firebase/FirebaseUI-Android/tree/master/codelabs/chat#create-a-project-in-android-studio but when i get to this part: http://pastebin.com/B8QC4xw5 and run the app it crashes with this error: http://pastebin.com/eZD7wHrk .. What could be causing this.. I would greatly appreciate any help, thanks! May 16 19:41:39 hi guys please guide me, i have been looking this for 3-4 hours now. I want my async task thread to be able to receive change in state of object that belong to a main thread. how to do this? May 16 19:41:57 http://stackoverflow.com/questions/37241777/get-command-google-now-in-my-app/37256495#37256495 May 16 19:42:01 https://zestedesavoir.com/forums/sujet/6069/recuperer-les-commandes-google-now/?page=1#p110407 May 16 19:42:18 HELP ME PLEASEEE :( May 16 19:42:26 tux24 you'll need to read about concurrency in Java, its a big topic May 16 19:43:57 g00s: i definitely want to learn, but don't have time as of now. In my particular case, it does not matter if the variable is corrupted as it will be corrected in next packet. May 16 19:44:17 which comes 10 times per second.. so please guide me May 16 19:47:12 g00s: i will keep a hidden text field in my xml view. will update this from UI thread. and then in the onProgressUpdate(..) update my views based on that. Luckily, my doInBackground remains the same May 16 19:47:17 i know bad fix May 16 19:47:42 stackoverflow May 16 19:48:16 could someone advice me on a couple of things for fragments May 16 19:55:43 lol did they roll back to the old web site May 16 19:57:44 s73v3r wonder if DH will ever post again :D May 16 19:58:20 so say i have an app with the following, a login page (should be an activity), this takes me to a control panel (should be an activity), this has two buttons, each button takes me to a number of screens say 5, so when i click a button should that take me to a new activity, then from that activity use fragments, same goes for other button, what best practice on this? May 16 19:59:53 anyone available that could help me? May 16 20:03:01 I'm following this tutorial to create a chat app with firebase https://github.com/firebase/FirebaseUI-Android/tree/master/codelabs/chat#create-a-project-in-android-studio but when i get to this part: http://pastebin.com/B8QC4xw5 and run the app it crashes with this error: http://pastebin.com/eZD7wHrk .. What could be causing this.. I would greatly appreciate any help, thanks! May 16 20:05:48 id say it cant parse the json May 16 20:20:22 can someone please tell me why `putExtra` in intents needs keys to be dotted paths? https://developer.android.com/training/basics/firstapp/starting-activity.html May 16 20:20:31 public final static String EXTRA_MESSAGE = "com.mycompany.myfirstapp.MESSAGE"; May 16 20:22:46 raj: where is that May 16 20:23:36 #6 May 16 20:23:38 oh i see May 16 20:23:38 https://i.imgur.com/5fvVeS4.png May 16 20:23:41 It doesn't need to.. But your link explains why May 16 20:23:45 well the key could be qanything May 16 20:24:04 SimonVT, where does it explain why? May 16 20:24:09 The next line May 16 20:24:19 "It's generally a good practice to define keys for intent extras using your app's package name as a prefix. This ensures the keys are unique, in case your app interacts with other apps." May 16 20:24:29 oh geez May 16 20:24:32 I'm blind May 16 20:24:33 thank you May 16 20:24:51 because the same Intent carries information for other apps too? May 16 20:25:11 you can use intent to start other apps' activities May 16 20:25:37 and they may happen to read values in keys you used in your app May 16 20:25:38 SimonVT and hwta's the bast way to "hardcode" those strings. As untranslatable strings in strings.xml? May 16 20:26:41 Like in that link May 16 20:26:45 You don't need it as a resource May 16 20:29:25 So a public static final in the launching activity? Doesn't that create an extra dependency? May 16 20:29:58 huh May 16 20:30:35 I mean a hardcoded coupling between the classes... May 16 20:31:12 yet for getting string resource youd need context May 16 20:31:47 What do you mean with context, an actual Context object? May 16 20:32:07 if you need string from resource, how do you get it? May 16 20:32:27 ah well since activity is context so it would be easy May 16 20:33:31 Is there ever a place where you don't have a context easily available? May 16 20:34:18 You're creating a hardcoded coupling between the classes by explicitly launching another activity May 16 20:34:26 no, at least not in places where you'd receive intent May 16 20:34:33 It makes sense to put the extra keys an activity supports in the activity class May 16 20:34:38 but i like public statics May 16 20:34:40 Well no, the new activity doest' now that May 16 20:35:01 Could I maybe put them in the "new", receiving activity? May 16 20:35:43 So other activities who want to start it can find the constants in the activity they want to start... Seems logical to me. May 16 20:37:02 Yes, that's usually how it's done May 16 20:37:36 Ah okay then I misunderstood the site. I thought it said to put the constants in the activity that starts the other one. May 16 20:38:22 I didn't look further than public static final String May 16 20:39:27 Okay May 16 20:39:41 Well thanks everyone for the help, I've got to go. May 16 20:40:33 Ashiren, if an intent can start another app's activities, isn't that a security concern? May 16 20:41:43 no. why would it be? You can only start the activities that the app has expressely said can be opened by outside apps May 16 20:41:52 ah ok May 16 20:42:08 thank you May 16 20:42:33 I mean, if your app doesn’t properly handle the parameters sent, then maybe, but that’s the problem of the app not securing it’s API May 16 20:43:09 understood May 16 20:45:08 .,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,0 May 16 20:46:15 oops May 16 20:46:31 god dammit, you’ve hacked my IRC client. May 16 20:46:37 gotta big butt cat May 16 20:46:43 raj: basically, yes - each activity/service is expected to protect itself, but there's are 'standard' configurations/settings to make it easier. An activity's logic for deciding whether it's publicly visible/not is slightly convoluted; simplest to just use the exported flag. http://developer.android.com/guide/topics/manifest/activity-element.html#exported May 16 21:22:04 eclipse 1, AS 0. “As an app developer on Google Play, we wanted to make you aware of an important security update for Android Studio...." May 16 21:22:29 that means nothing May 16 21:26:52 tricknology thats a few days old ... gotta be quicker or be hacked :D May 16 21:28:49 that e-mail jsut came today May 16 21:28:58 thankfully I downlaoded the latest version Friday May 16 21:29:11 getting hacked is relatively difficult for most desktop systems anyway May 16 21:29:29 of course, if you use public wifi without ap isolation, sure May 16 21:29:38 unless that whole e-mail was a spear phishing attempt May 16 21:29:40 and all those untrusted networks May 16 21:29:48 D-: May 16 21:30:15 g00s, still uploading to BT at 4.55kb/s ... May 16 21:30:38 ;) May 16 21:30:56 HW vendor sent over their own class that I pass an open BT socket to.. still slow as molasses.. well 0.06kb/s faster than mine :/ May 16 21:31:36 sounds like you need some lab equipment May 16 21:32:25 Hi all! I'm trying to find out if the weather servers for Google News and Weather have been changed. For the past three or four days, all I get for weather is the error message "Sorry, weather currently unavailable". May 16 21:33:01 I'm running Google News and Weather 1.3.03 on Android 2.2.2 May 16 21:33:18 time to get a new phone May 16 21:34:28 hey guys, how do you set the right distance below the toolbar and above the bottom for a recyclerview? I'm trying to add a padding to it or margin but it never looks quite right May 16 21:35:20 i dont think i've ever set distance May 16 21:35:22 pfn: Why? The one I have has been working fine for years, and it's still in great shape. May 16 21:36:05 g00s: and how do you avoid it being below the toolbar ? May 16 21:36:30 i dont understand, below the toolbar ? May 16 21:37:05 yea, imagine a screen with a toolbar and a recyclerview below it May 16 21:37:18 i'm using framelayout and inside of it the recyclerview May 16 21:37:52 wrong layout container , use something else May 16 21:38:09 whats the question May 16 21:38:11 linearlayout , vertical, with toolbar then RV May 16 21:38:39 CoordinatorLayout will arrange things too with the right behaviors attached to the child views May 16 21:39:47 i have the recyclerview inside a fragment May 16 21:40:56 dsnyders: Android 2.2.2 hasn’t been supported in a long time May 16 21:41:15 oh lol i missed that dsnyders was on froyo ! May 16 21:41:32 kinda changes things haha May 16 21:41:42 wasn't sure why pfn recommended a new phone :D May 16 21:42:12 also, changing orientation increases the gap when it's vertical so it doesn't look good May 16 21:42:45 lock orientation. That’s the Android way to handle that problem May 16 21:42:56 * g00s has no idea wth Twirl is talking about May 16 21:43:58 s73v3r gotta love those apps which display upside down :D May 16 21:44:25 i actually have my device upside down, most apps are OK except for those special few which are locked to upright portrait May 16 21:44:31 s73v3r: g00s: Everything was working fine until late last week. That's why I was wondering if Google changed their weather servers somehow. May 16 21:44:54 we wouldn’t know. May 16 21:45:20 g00s: man, i'm probably too tired to explain this right, I will try again tomorrow when I'm not so tired May 16 21:45:32 with pics and everything May 16 21:45:40 gn everyone May 16 21:45:54 shmooz , you have been outdone May 16 21:45:56 s73v3r: Ah. Someone in #android thought he saw a message here about server maintenance. May 16 21:46:08 we have a froyo user here, which i'm sure things GB is newfangled crap May 16 21:46:08 not regarding that app May 16 21:49:29 hell, I didn’t know Google News and Weather was still supported May 16 21:51:06 g00s: I'd upgrade if I could. The LG tool didn't seem to work. May 16 21:51:37 your phone has long since been abandoned May 16 21:54:27 s73v3r: but... but... but it's a great phone. May 16 21:54:38 was. it was a great phone May 16 21:55:31 dsnyders: stand proud , don't give up, we are the olden golden boys May 16 21:56:18 dsnyders: can you test my app on your froyo phone? May 16 21:56:36 shmooz: What app? May 16 21:57:19 a media player app that plays audio/video on device and on the internet, like streaming stations May 16 22:00:46 thanks kbs May 16 22:02:12 shmooz: I'll give it a try. May 16 22:02:45 dsnyders: I msg'd you a link to the .apk May 16 22:03:31 if it works you'll have some of the coolest internet radio stations May 16 22:06:23 g00s: http://bit.ly/1TdhS8X came home to this last night :( May 16 22:06:55 how hard is it to use C code in android studio/java? May 16 22:09:01 bankai_: is that a matress? May 16 22:09:09 it 'was' their bed May 16 22:09:40 proper dog bed they've had for ages, dunno why yesterday was the day to destroy it May 16 22:10:01 it sounds like a cry for help May 16 22:10:28 maybe they felt they were being ignored May 16 22:11:27 or a small piece of the stuffing came out, and they wondered where it would end May 16 22:11:38 bankai_, http://weknowmemes.com/wp-content/uploads/2013/02/there-was-a-spider.jpg May 16 22:11:41 classic May 16 22:13:28 dpyro: Studio doesn’t really support it May 16 22:13:47 you can add NDK stuff, but there isn’t much in the way of support for writing it in Studio May 16 22:18:44 how come `startActivity()` doesn't haven't to be imported, according to the tutorial's item #7? https://developer.android.com/training/basics/firstapp/starting-activity.html#BuildIntent May 16 22:20:45 is it some sort of global function? May 16 22:21:00 it's an instance method May 16 22:21:32 an instance method of what class? May 16 22:21:33 of the scope in which you're currently coding May 16 22:21:47 there is no such thing as a bare "global function" in java May 16 22:22:06 global "method"? May 16 22:22:12 you can statically import static methods from a class, but those show up as such in the file header May 16 22:22:21 I'm guessing that you're probably making an Activity May 16 22:22:26 yes May 16 22:22:33 but where did startActivity come from? May 16 22:22:36 I never imported it May 16 22:22:42 startActivity is a method on Activity May 16 22:22:46 did you click on the blue "startActivity"? May 16 22:22:46 https://developer.android.com/reference/android/app/Activity.html#startActivity(android.content.Intent) May 16 22:23:09 that link's probably donked up a bit because of the parenthesis at the end May 16 22:23:23 it's literally linked from the article you posted May 16 22:23:24 but I didn't do `Activity.startActivity()` or `Activity.startActivity = startActivity` May 16 22:23:28 also, please excuse my dickishness May 16 22:23:28 raj May 16 22:23:33 it's not Activity.startActivity() May 16 22:23:39 it's this.startActivity() May 16 22:23:41 you don’t have to, because you are an activity. it’s not a static method May 16 22:24:01 for instance members of the current scope, you don't need to "this." May 16 22:24:10 isn't `this` a View? May 16 22:24:20 "this.myFunction()" is the same as "myFunction()" May 16 22:24:21 raj May 16 22:24:26 click the blue "startActivity" in the link May 16 22:24:28 ‘this’ is whatever class you’re writing May 16 22:24:29 it's apparently not a view May 16 22:25:04 the code snippet you're looking at is apparently written to be in an instance method of an Activity May 16 22:25:35 Ok, but where does sendMessage get defined as part of the Activity class? May 16 22:25:41 raj May 16 22:26:13 raj: that’s for you to write May 16 22:26:25 have you read the article you linked? May 16 22:26:26 it shows you May 16 22:26:58 "At the top of the MyActivity class, add the EXTRA_MESSAGE definition as follows:" and then the first line of MyActivity.java is given as "public class MyActivity extends AppCompatActivity {" May 16 22:27:24 so, if you just click the link that they provide you to the documentation to show you *exactly* where `ActivityCompat#startActivity` is defined May 16 22:27:34 oh, crap May 16 22:27:35 wait May 16 22:27:54 raj, do you "grok" the concept of "inheritance"? May 16 22:27:59 yes May 16 22:28:08 ok, so May 16 22:28:29 what does EXTRA_MESSAGE have to do with this? May 16 22:28:53 if `MyActivity` extends `ActivityCompat`, all of the members of `ActivityCompat` that are visible to your current namespace are defined on `MyActivity` May 16 22:29:17 right May 16 22:30:25 I'd suggest just using your browser's "find" functionality and carefully reading all the text around each occurrence of `EXTRA_MESSAGE` May 16 22:30:41 it's just that: a message tacked onto the "extra" data in the `Intent` May 16 22:31:09 I understand May 16 22:31:17 what does that have anything to do with `startActivity`? May 16 22:31:29 you can add extras with `Intent#putExtra` and get them out with `Intent#get[SOME_TYPE_IN_CAMEL_CASE]Extra` May 16 22:31:30 you’re the one that asked about those May 16 22:31:40 those extras are available to the started activity. May 16 22:31:53 sometimes, you need to know things to actually "do" the activity May 16 22:32:02 like... May 16 22:32:16 what if you had a "ButtActivity" that showed you a picture of a specific butt? May 16 22:32:29 now, what if you wanted to show up to 5 different butts in your app? May 16 22:32:34 if you’re displaying a details screen for items in a list, you’d need to pass in the item ID so the detail screen can be found May 16 22:33:05 you'd either have to make a `ThomasButtActivity` `MelissaButtActivity` and so on May 16 22:33:06 *or* May 16 22:33:16 maybe my question isn't clear. I understand what you guys are saying so far but that's not my question May 16 22:33:19 you could tell `ButtActivity` which butt to display with a string extra value May 16 22:33:21 raj May 16 22:33:24 that's all it's for May 16 22:33:29 it's to pass information May 16 22:33:31 I want to know where the method called `startActivity` came from May 16 22:33:37 raj May 16 22:33:38 you're trolling May 16 22:33:44 we’ve told you several times. it’s defined on activity May 16 22:33:48 and I'm too bored to just ignore you May 16 22:33:49 rather loose use of that word rager May 16 22:33:57 \o/ May 16 22:34:10 no, it isn’t, when you have had the answer given to you several times, and you just ignore it May 16 22:34:11 Sounds like something fun is happening here. May 16 22:34:16 giving you the benefit of the "what else would I do with my time, now" May 16 22:34:57 because honestly, I'm willing to burn the time on helping you to understand this if you really are having trouble May 16 22:35:41 raj, since I'm not sure if we're speaking with the same terminology, let's at least sync up on that:what is your understanding of "inheritance" in Java? May 16 22:36:37 properties of a class being on a function within that class May 16 22:37:05 ok, so what's that actually give you May 16 22:37:16 like... what good is that for you, the programmer who just made a class that extends another class May 16 22:37:47 what can you do within the scope of the new class that you couldn't do without inheriting from another class? May 16 22:38:05 it gives you access to public methods/variables in that class within the other class without rewriting May 16 22:38:15 not quite May 16 22:38:21 it gives you access to everything that is visible May 16 22:38:31 visible !== public? May 16 22:39:14 protected members are also visible from subclasses May 16 22:39:31 and anything that's package-local is visible to you if you're in the same package May 16 22:40:08 what actually happens, raj, is that the inheriting class essentially "gets" all of the visible bits of the parent class as if it were part of it May 16 22:40:11 like... May 16 22:40:42 `Activity#startActivity` is callable as "this.startActivity()" anywhere inside an instance method of the class `Activity` May 16 22:41:29 how did inside sendMessage become an instance method of the class `Activity` May 16 22:41:30 when you extend `Activity` (or `ActivityCompat`, as it would have it) you place all the members visible to your current package "in" the extending class May 16 22:41:32 ? May 16 22:41:38 a google engineer put it there May 16 22:41:42 with his hip thrusts May 16 22:41:46 right into the keyboard May 16 22:42:03 (assuming male because SV is so terribly lopsided on gender, and this is old code) May 16 22:42:07 wouldn't I have to define it as such? I don't recall explicitly doing so May 16 22:42:17 refer to above: May 16 22:42:37 I don't remember setting sendMessage as an isntance of anything either May 16 22:42:44 raj: you’re supposed to write sendMessage May 16 22:42:50 what about the "extends" ? May 16 22:42:55 you’re supposed to write it inside your activity subclass May 16 22:43:12 just like that kindly google engineer did for you so many years ago May 16 22:43:13 ohhhhh May 16 22:43:14 shit May 16 22:43:15 in that nice tutorial May 16 22:43:16 I just got it May 16 22:43:23 wooooo May 16 22:43:25 sendMessage is within a class May 16 22:43:33 * rager swings his members about in exhultation May 16 22:43:39 I didn't recognize that for some reason May 16 22:43:41 thank you rager May 16 22:43:43 raj: it’s java. Everything is in a class May 16 22:44:03 but not everything's an object! May 16 22:44:05 woooooooooooo May 16 22:44:09 so I don't need to write `this.startActivity` in java? I can always just write startActivity? May 16 22:44:58 if I write this.startActivity instead, will people curse? May 16 22:45:11 probably not May 16 22:45:31 ok good, because I definitely prefer that May 16 22:45:40 why? May 16 22:45:41 raj, are you using android studio? May 16 22:45:45 yes rager May 16 22:46:02 s73v3r, source of the method is more explicit May 16 22:46:22 not to people who have been writing Java for a while May 16 22:46:31 hm May 16 22:46:43 some people say that about static imports, too May 16 22:47:16 * kbs begins to feel Go had the right idea about much of this... May 16 22:47:33 kbs, what's Go's idea on `this`? May 16 22:47:40 Go can go fellate Java's half-butted generics May 16 22:48:10 raj: throwaway comment from the peanut gallery - it's late and not thinking straight :) carry on May 16 22:48:13 because at least a half of a butt is generic enough to sit down and take out a buttload of boilerplate May 16 22:50:51 k May 16 22:51:42 thoughts on parsey mcparseface? May 16 22:56:26 they should have called it Dicky Attenborough May 16 22:57:54 they should have called it Parsey Parse and the Funky Bunch May 16 23:00:22 Grandmaster Parse and The Furious Five May 16 23:00:59 parseDMC May 16 23:01:08 parseltoungues May 16 23:01:50 for a pendingintent from a local notification how can I check if I'm already on that activity and not send them to the same activity again? i don't mind normally but it looks like it animates in May 16 23:02:58 grekkos: what're you doing? May 16 23:05:05 grekkos: http://stackoverflow.com/questions/12043671/notification-click-activity-already-open May 16 23:05:08 I'm showing a push notification and I want them to be sent back into the app when they tap it May 16 23:05:22 in case you're curious, here's the google query: android activity notification already open activity May 16 23:05:57 i guess the problem is that I have a view pager and the view pager is animating in May 16 23:06:47 that link looks pretty on-the-nose May 16 23:08:09 ah ok that makes sense May 16 23:12:19 I have a custom loading (progress dialog going), however if it does not hide after a certain amount of time I want the hide function to be called - I tried to use a countdown timer in the custom progress dialog - but I realized it can lead to a memory leak and also calling countdownTimer.cancel() is not stopping the finish function from happening May 16 23:14:37 Lonesoldier728: what does the loading indicator indicate? May 16 23:17:17 Lonesoldier728: try controlling the dialog's lifecycle from the thing that creates the dialog May 16 23:17:19 rather than from within the dialog May 16 23:18:06 rager http://stackoverflow.com/questions/37264693/how-to-hide-a-custom-loading-icon-after-a-certain-amount-of-time-android May 16 23:18:17 Here is the question I just posted a little more in depth with code May 16 23:19:13 if you *really* want to create a `SuicidalProgressDialog` class May 16 23:19:23 have you tried using a `Handler` and `postDelayed`? May 16 23:19:57 ok rager I just added the way I use the dialog in my activity May 16 23:20:32 so what method can I create to complement the dialog - should I just shift the method from progressdialog to another method in the activity May 16 23:20:48 Also, would it make more sense to use timer instead? May 16 23:22:31 Lonesoldier728: why? May 16 23:22:45 no need to make another thread May 16 23:23:38 reading your new code... sec May 16 23:24:03 what's the dialog indicating, again? May 16 23:24:10 not sure what the purpose of the code is, still May 16 23:24:55 This is the way I just implemented it going to test if it makes more sense http://pastebin.com/TW89LWLJ May 16 23:25:01 It is a loading screen May 16 23:25:07 not really asking about implementation or code May 16 23:25:10 as things get loaded in the app May 16 23:25:10 just *purpose* May 16 23:25:25 I described it in the SO May 16 23:26:07 in any case May 16 23:26:08 http://stackoverflow.com/questions/29153378/how-can-i-close-a-progressdialog-after-a-set-time May 16 23:26:36 does more or less what I'd suggested at the outset May 16 23:27:18 if you're really paranoid, `Handler#removeCallbacksAndMessages` called with a null "token" param will kill the crap out of all pending messages May 16 23:28:14 and for extra bonus points, if the `Handler` is instantiated on the main thread (or given the main looper during instantiation), it cannot race with other main-thread events May 16 23:28:29 because it's just using the main thread to do the things May 16 23:29:06 Would I instantiate this on my activity side then, no way to include this in the custom dialog class? May 16 23:29:51 that's where I'd put it, but you could get away with creating a handler inside the custom dialog class and doing all that stuff there May 16 23:30:12 since there's nothing forcing you to make your dialogs not suicidal May 16 23:31:27 haha May 16 23:32:39 rager http://pastebin.com/nJRD1VyF This is the new update but it is crashing on me... I am assuming I am implementing it incorrectly (the top 3 methods are in the activity) May 16 23:32:53 Getting this java.lang.InternalError: Thread starting during runtime shutdown May 16 23:33:46 instantiate the Handler either in the method that opens the dialog or in your `#onCreate` May 16 23:34:07 or... May 16 23:34:08 reading still May 16 23:34:30 yeah May 16 23:34:43 Handler pdCanceller = new Handler(); so move this to the onCreate? May 16 23:35:09 sure - not sure what happens if you create the Handler like that May 16 23:35:18 like... what's the crash? May 16 23:35:49 well moving it out now, lets see if it crashes May 16 23:36:06 seems to work May 16 23:36:39 one more test to see if it really works May 16 23:37:56 btw May 16 23:38:11 why not set the window background in your custom dialog instead of the activity? May 16 23:38:23 what the image background? May 16 23:40:17 yeah it does not stop running May 16 23:40:25 even if I call cancel May 16 23:40:42 what doesn't stop running? May 16 23:40:45 hm May 16 23:40:49 oh May 16 23:40:54 let me see might have done it wrong May 16 23:41:26 well I call an alert if the time does run out with out cancel stopping it May 16 23:41:36 ohh May 16 23:41:46 I guess you really do have to call `Handler#removeCallbacksAndMessages`, then May 16 23:41:47 yeah the alert keeps popping up.. May 16 23:41:50 https://developer.android.com/reference/android/os/Handler.html#removeCallbacksAndMessages(java.lang.Object) May 16 23:42:22 I need the runnable to stop completely midway if it is canceled May 16 23:42:36 the timer does not seem to stop May 16 23:46:24 I updated the question: http://stackoverflow.com/questions/37264693/how-to-hide-a-custom-loading-icon-after-a-certain-amount-of-time-android with the second attempt of solving it May 16 23:55:07 So May 16 23:55:50 What are some tips for architecting an app around a shit api? May 16 23:58:15 you cannot stop something that is already running May 16 23:58:28 your task should check to see if it's canceled and stop May 16 23:59:43 orbyt_, write abstractions that make it look less like shit May 17 00:00:16 orbyt_: I'd use design patterns May 17 00:00:46 Thats a great idea rager ill use design patterns May 17 00:01:20 a vague question deserves vague answers! May 17 00:01:22 design patterns OP May 17 00:03:00 orbyt_: tips for a shit api? like web api or the app itself? May 17 00:03:32 also any ideas why onNewIntent isn't getting called from my single top activity? May 17 00:03:49 grekkos like the web api was written by a squirrel May 17 00:04:04 orbyt_: oh sounds like we work for the same company May 17 00:04:11 the best advice I can give is to try and sequester off the api as much as possible May 17 00:04:16 orbyt_: which building are you in? May 17 00:04:31 Which what May 17 00:04:37 haha it was a joke May 17 00:04:47 some things I've started doing may not apply to you though May 17 00:05:06 orbyt_: write a graphql backend in node, obvi May 17 00:05:08 but when I create classes to handle the http requests I pass full urls for each end point May 17 00:05:25 and separate out the parsing of the response to another class May 17 00:05:31 rager its not my backebd May 17 00:05:37 no, no May 17 00:05:39 Backend* May 17 00:05:43 then I unit test that class as much as possible May 17 00:05:44 I'm saying you should set up your own completely separate set of servers May 17 00:05:50 actually May 17 00:05:52 Lol May 17 00:05:53 that's a really good idea too May 17 00:05:57 or, preferably, just run node on the phone May 17 00:06:07 like... nodejs running inside an android app shouldn't be too bad, right? May 17 00:06:08 :P May 17 00:06:10 ..? May 17 00:06:15 ;p May 17 00:06:24 orbyt_: try and put everything dealing with it behind a Repository pattern setup May 17 00:06:30 but to be honest wrapping their apis in an api of your own might not be horrible idk May 17 00:07:01 if that's not an option though (like me again) I just try to be careful with those apis, and write lots of unit tests May 17 00:07:31 I always pass full urls, I don't split up base url and path components May 17 00:07:33 Meh whatever. Talk later bbs bye May 17 00:07:35 it was intended to be not-an-idea May 17 00:07:46 orbyt_: care to explain what you mean by "bad", though? May 17 00:08:28 it's hard to read your mind over wireless - I can see if I can get a lan card, but I don't think the telepathy works over usb-c, either May 17 00:08:29 rager: yeah I got that but I think there's some value to it, latency wise probably not the best idea but if you had a team that could spend time on it it might be worth it... the hours of time I've lost because these servers are down or broken May 17 00:08:53 in any case May 17 00:09:06 was really just pulling buzzwords out of thin air to suggest a fragile and terrible solution May 17 00:09:43 yeah it sounded mostly like jibberish but then I gave a real idea whatever name was concocted May 17 00:10:03 the way I deal with shitty api's depends on what makes them shitty doe May 17 00:10:07 * rager shrugs May 17 00:10:22 is it sometimes not there? the backend suddenly sounds like a pretty decent idea May 17 00:10:37 yeah that happens to me a lot May 17 00:10:38 hahaha May 17 00:10:43 that's why I was thinking that May 17 00:10:49 that, or a caching layer in the client May 17 00:10:50 I imagine it’s just crappily architeched May 17 00:10:52 just today I was blocked for like 2 hours May 17 00:10:57 yeah May 17 00:10:59 along with just assuming that stuff might not answer May 17 00:10:59 some kind of caching May 17 00:11:26 not too hard to make code that just deals with a backend that doesn't answer - just gotta code a different path and take it when the condition comes up May 17 00:12:00 well i mean May 17 00:12:03 log in failing is pretty bad May 17 00:12:28 if log-in fails, is there any sensible thing *to* do? May 17 00:12:57 I mean i can retry for like 10 minutes May 17 00:13:10 but that just makes the app feel slow so I don't know if that's good or bad May 17 00:13:21 anyway May 17 00:13:36 any ideas why onNewIntent might not be getting fired? May 17 00:13:48 just considering that if you can't log in, you can't access any resources that would be accessible to a logged-in user, anyway May 17 00:14:09 read through the SO posts on the matter? May 17 00:14:12 yeah for us there is some stuff but it would be mostly pointless May 17 00:14:14 yeah May 17 00:14:16 I haven't got much actual hands-on experience with this May 17 00:14:38 the only way this guy got it working was to create an instance of his activity class and call onNewIntent on it... which sounds really awkward May 17 00:14:48 everything else looks like what i'm doing May 17 00:15:13 that sounds really gross May 17 00:15:42 so you set the flags on your intent and changed the activity to singleTop in the manifest? May 17 00:17:21 well just in the intent I think May 17 00:17:25 now that I'm looking at it May 17 00:17:44 I thought this was set to singletop in the manifest before too I must've been looking in the wrong file or something May 17 00:18:02 but doc says it should be fine with just the flag May 17 00:18:56 or... does that wreck the back-stack? May 17 00:19:45 i think that should be fine May 17 00:19:48 it's the main activity May 17 00:20:14 omg May 17 00:20:19 vysor is paid now and it's so slow May 17 00:20:28 although I don't know if that's correlational May 17 00:23:08 pfn understood, is it a problem if someone closes the app or switches screens while it is running though (memory leaks or any issues of the sorts?) May 17 00:25:39 Lonesoldier728: not pfn, but what is "it"? May 17 00:25:58 the running task May 17 00:26:49 no right, but what is it? May 17 00:27:39 Not sure I understand what you are talking about May 17 00:28:10 It referring to the task running... the runnable May 17 00:29:45 oh, man May 17 00:29:49 stop begging the question and answer it :( May 17 00:30:17 or maybe I need a better question May 17 00:30:45 what is this mysterious runnable that you want to kill? what does it do? why do you want to kill it? under what conditions do you want to kill it? May 17 00:31:27 because Java decided early-on that `Thread.stop` was a terrifying thing May 17 00:31:52 so it is self handled... that is all I was trying to clarify May 17 00:33:06 wait, what? May 17 00:33:14 was this the thing with the handler? May 17 00:33:18 yeah May 17 00:33:24 oh, that May 17 00:33:44 I figured you understood since we were talking about it earlier, ran to get food real quick May 17 00:33:49 context now understood May 17 00:33:57 I lose context p quickly May 17 00:34:03 yeah I see haha May 17 00:34:21 was using irc without scaling things up, so I couldn't really see all the words that well, anyway May 17 00:34:40 I added a boolean to stop the alert from popping up but the runnable still goes obviously was just making sure it wont cause random errors that will confuse me in the future May 17 00:34:51 especially before I implement it across all screens May 17 00:34:52 remember what I said earlier about `#removeCallbacksAndMessages` May 17 00:35:02 you can tell the Handler to cancel all pending tasks May 17 00:35:04 by passing it null May 17 00:35:20 oh setting it to null May 17 00:35:26 not setting anything May 17 00:35:39 something like "datHandlerDoe.removeCallbacksAndMessages(null)" May 17 00:36:25 pdCanceller.removeCallbacksAndMessages(null); May 17 00:36:28 ok i will try this May 17 00:37:52 also, my computer crashed since you first asked the question, so I assumed that I had lost my scrollback buffer May 17 00:37:54 it turns out, I didn't May 17 00:38:26 screw it May 17 00:38:29 I want more points on SO May 17 00:38:32 * rager goes to SO May 17 00:39:38 kk May 17 00:39:43 ill updvote it May 17 00:39:51 it seems to work the null passing May 17 00:48:13 not sure If you understand this - but I somehow messed up the R file and now my strings are passing the wrong strings anyone know how to fix this May 17 00:48:59 you can't mess up your R file, per se May 17 00:49:34 I'd tell AS to rebuild project May 17 00:50:00 hope that solves it everything is out of wack May 17 00:50:10 strings are all mixed up with other strings May 17 00:51:14 While extracting string i sometimes by accidentaly clicked the other option which generated an R id which I had to remove from the "R" file - so yeah not good May 17 00:51:47 wat May 17 00:51:59 as a rule, you probably shouldn't ever edit R.java May 17 00:52:35 right, I figured but didnt realize that, well rebuilding solved it close one May 17 00:52:40 lolwut? May 17 00:52:47 you thought you should edit R.java? May 17 00:53:23 No, android offered to extract string but I misclicked create field May 17 00:53:30 and it created it in the R.java file May 17 00:53:46 which I then undone but apparently it messed things up somehow May 17 00:55:21 that's souper weird May 17 00:55:26 just delete R.java May 17 00:55:38 rebuilding the project solved it May 17 00:55:43 oh, cuil May 17 00:56:27 ooh May 17 00:56:33 Lonesoldier728: posted an answer, but then an idea struck me May 17 00:57:14 haha why do you call it suicidal May 17 00:57:43 I originally figured that you meant it will kill my app but now I get it May 17 00:58:35 interesting May 17 00:58:58 this will be much easier but do I need the listeners or can I just put it in the show and dismiss I already have? May 17 00:59:35 lol May 17 00:59:35 good point May 17 00:59:46 I'll edit it into the two different ideas May 17 01:02:08 rager also it does not work that ways shows error May 17 01:06:02 I think I officially hate SO's edit box for entering code May 17 01:06:20 yeah May 17 01:14:58 Lonesoldier728: pfn was def right that you can't "stop" a task May 17 01:15:02 in Java, that is May 17 01:15:08 but you can most certainly prevent a task from starting May 17 01:15:41 makes sense May 17 01:16:32 the archaic Thread.stop did do that, but it was deprecated almost immediately and then completely removed in 7 or 6 or something May 17 01:16:46 it was the equivalent of signal 9 from outer space May 17 02:45:19 Does anyone have experience playing recyclerviews inside fragments or listviews? May 17 02:45:22 sorry, placing May 17 02:45:45 though sometimes it feels like playing May 17 02:46:32 logicp: that is very common, what is your question? May 17 02:46:54 well recyclerview inside fragment, recyclerview inside listview wtf May 17 02:49:09 well this is a recyclerview inside a fragment inside a listview :) May 17 02:49:46 but I guess that's not supposed to be a good way to go about things May 17 02:50:13 you should only put roughly 3 fragments on the screen at once, they are very heavy. 2. Why recyclerview inside fragment inside listview, why not just one recyclerview? May 17 02:50:36 what are you trying to do? May 17 02:50:46 I'm looking for the appropriate way of displaying, within a listview item, a view with an unknown number of rows May 17 02:51:00 for example, comments on an activity item May 17 02:51:28 you can dynamically add to a listview, but why not use 1 recyclerview? May 17 02:52:44 You mean one recyclerview to handle both requirements? May 17 02:52:53 ie the activity item, and the comments of the activity item? May 17 02:53:20 * Ping_2_Ur_Pong nods May 17 02:53:33 well I better do more recyclerview reading May 17 02:53:55 thank you for the tip May 17 02:53:59 ah May 17 02:54:26 that indeed sound deadly May 17 02:56:14 logicp: http://stackoverflow.com/questions/26245139/how-to-create-recyclerview-with-multiple-view-type will give you a better idea of what you want May 17 02:56:30 you'll have to edit it some but, its what you're trying to do. May 17 02:57:26 Wow.. that's terrific. Thank you :) **** ENDING LOGGING AT Tue May 17 02:59:58 2016