**** BEGIN LOGGING AT Sat Aug 06 02:59:58 2016 Aug 06 03:45:23 http://i.imgur.com/gFeghWo.png Anyone know what this Power Save mode in Android Studio does? Aug 06 03:45:55 liuwenhao basically disables everything :| Aug 06 03:45:55 It's just for inspections right? Or does it do something else Aug 06 03:46:07 auto completion stuff too if i recall Aug 06 03:46:22 AS clobbers battery for sure Aug 06 03:46:30 Ah Aug 06 03:46:36 So it basically just turns IntelliJ into a text editor? Aug 06 03:46:43 vi :) Aug 06 03:48:18 Does it actually help battery life at all? Aug 06 03:48:26 like Aug 06 03:48:29 any noticable difference Aug 06 03:48:38 The thing that kills my battery is Gradle Aug 06 03:48:43 and 1 minute build times Aug 06 03:49:20 you'll have to experiment ... Aug 06 03:49:30 probably depends on your project, workflow, etc Aug 06 03:54:13 i made a login system for my app also made profile object (which i set) but how do i make it so taht the object is set throughout the whole app not just an instance of the object? Aug 06 03:54:31 i think im just setting an instance of that object Aug 06 03:58:54 thornekey: make your own class that extends the Application class then put it in the name field of your application tag in your manifest.. now cast context.getApplicationContext() to that class and you can access its fields and setters/getters and what not Aug 06 03:59:02 accessible everywhere Aug 06 03:59:05 :) Aug 06 03:59:08 br Aug 06 03:59:09 brb Aug 06 04:00:07 oh i see hm Aug 06 04:00:08 thanks Aug 06 04:18:52 Napalm, just make it accessible static Aug 06 04:19:25 you are almost always guaranteed it will be singleton and available Aug 06 04:20:37 make the class static? Aug 06 04:23:09 no, give it a static accessor Aug 06 04:24:10 public static* Aug 06 04:33:44 pfn, this is what ive got http://ideone.com/Cba5dE Aug 06 04:34:37 cos then i want to call Aug 06 04:34:37 AccountProfile profile = AccountProfile.getCurrentProfile(); Aug 06 04:34:37 return (profile != null); Aug 06 06:21:54 Hi. Is anyone here experienced with broadcast receivers that call services via intents? Aug 06 06:24:53 I have a service that handles connection and disconnection from an internet server, and I need to control it via some broadcast intents (hardware buttons). I've got the buttons working, the broadcast receiver working and even the passing of the received intent to my service, but as soon as I added onStartCommand() method to my service it only runs the onCreate and onStartCommand methods, and those that get triggered by my intents. Aug 06 06:25:14 The other methods for connecting to, monitoring and disconnecting from the internet server no longer run when called from my activity. Aug 06 06:59:00 Hey yall. Would anyone happen to know the javadoc link for this? I’m trying this but it’s not working out too well for me: {@link #android.content.ContextWrapper.getFilesDir() getFilesDir} Aug 06 08:58:14 hi guys Aug 06 09:01:02 guys, how do run an operation that cannot handle anctivity(or fragment) recreation? Aug 06 09:01:24 Can you explain more? Aug 06 09:01:33 Why can't it? Aug 06 09:01:39 for example, I write a code for downloading a file that cannot be resumed. Aug 06 09:02:25 if I can an instance of this downloder object in OnCreateView, Aug 06 09:02:50 it will be created again in each activity recreation. Aug 06 09:02:55 and everythign messes up. Aug 06 09:03:23 that Object should persist between activity recreations somehow... Aug 06 09:04:13 My code somehow have similar problem. Aug 06 09:04:39 I use a jni for authenticating to a server. Aug 06 09:05:09 I have created my jni object in OnCreateView. Aug 06 09:05:57 but if my activity recerates while authentication process is running in my jni, everything messes up. Aug 06 09:06:32 what should I do? do authentication in a service? Aug 06 09:11:42 viceroy, how do i check if its null then? Aug 06 09:28:13 i have an activity with Login fargment and an Start page fragment . should i name it mainActivity because program starts with it or i should give mainActivity name to my real Main Activity. what's the convention? which one do you think is better? Aug 06 09:29:03 What i mean by real main activity is the activity that everything happens in there and user has most interactions Aug 06 09:30:20 why not StartActivity? Aug 06 09:30:44 Hm, that's also a good name Aug 06 09:31:07 thanks Aug 06 09:31:15 or LaunchActivity since it's the one in the launcher Aug 06 09:32:10 but since it just hosts fragments why do you need an activity at all? Aug 06 09:32:59 well, i'm not sure, i'm a newbie Aug 06 09:33:38 what kind of app are you building? Aug 06 09:34:18 but you know it's also about having fun.. so you might as well call it LunchActivity ) Aug 06 09:35:06 i have this structure in mind, StartActivity(LoginFragment,StartButtonFragment) , MainActivity( TopPanelFragment, ImageListFragment, BottomPanelFragment) , MessageActivity , OtherImagesActivity Aug 06 09:35:16 is this strange? Aug 06 09:36:19 It'a an app which takes pictures, track user, and assign tags to images with positions Aug 06 09:37:27 why so many fragments? are you gonna reuse them? Aug 06 09:37:45 in different layouts/activities Aug 06 09:38:22 no, just to reduce codes in an activity Aug 06 09:39:31 I just saw a conference video which said a pattern like this so i thought maybe this is good Aug 06 09:40:47 For example fragments in mainActivity does not relate to each other so they can be in different fragments Aug 06 09:41:06 yeah, well this is a big topic Aug 06 09:41:45 i'm not the biggest fragment fan out there Aug 06 09:42:19 It would avoid long activity classes Aug 06 09:44:14 iprime, You said at first with two fragment, why should i have an activity, How's that possible to have a UI without activity? Aug 06 09:45:18 Shouldn't they attached to an activity to appear on screen? Aug 06 09:51:27 yes, correct, but you can also have them all in 1 activity Aug 06 10:29:32 Hi ! Is there an app that would allow me to add a shortcut on my android desktop that, when pressed, would send a certain packet to a certain host ? Aug 06 10:30:50 Hello everyone. I am using JNI (i.e., I am running native functions from my Java code) and I have a rooted device. So far, executing root-enabled commands from the Java part works just fine. But how to I gain root permission inside my native function? Any hints? Thank you! Aug 06 10:31:23 s/to I/do I Aug 06 10:42:26 Anyone has any tips how to make input method "fully transparent" and not push up activity at all? (seems fleksy has it implemented somehow) Aug 06 10:47:17 oftc_ftw: you generally can't do that unless the java process is running as root Aug 06 10:48:05 wyoung: yeah, too bad. is it possible to run the entire app as root? Aug 06 10:48:23 oftc_ftw: you could call sudo or su or whatever is on your rooted platform, there is probably another library that exists that enables you to gain root priviliges however on a linux process point of view you can only drop cap / priviliges, you cant gain them Aug 06 10:49:37 wyoung: ok, so do you thing calling the native api (from java code) using [1] could work? Aug 06 10:49:38 [1]: https://github.com/Stericson/RootTools/wiki/Java-as-root Aug 06 10:50:07 it seems to be capable of executing java code as root Aug 06 10:51:31 I like your use of references, what univeristy degree(s) do you have or are going for? Aug 06 10:52:24 or have you been for/ Aug 06 10:54:46 It just feels like a good way of doing it. No degree needed ;) Aug 06 11:06:01 oftc_ftw: no you are right, but most people who reference properly do so because they went to uni Aug 06 11:31:27 wyoung: or if they read scientific articles Aug 06 11:31:58 oftc_ftw: alot of them Aug 06 11:54:32 So no onw knows how to do full screen transparent input method (say handwriting input that would display [almost] nothing, and would let "recieving" activity to take full screen)? Aug 06 12:07:05 morphles, this is just a matter of configuration Aug 06 12:07:23 you make your activity full screen, make it translucent, have no content overlay, set the window/decor view background to transparent etc Aug 06 12:08:03 Why i don't have auto complete for android:fitsSystemWindows="true" inside CoordinatorLayout using Android Studio? Aug 06 12:19:43 what activity, I'm talking about input method, I have just inputmethodservice and view subclasses Aug 06 12:21:03 ah Aug 06 12:21:31 iprime: well your advice works ether way :) Aug 06 12:22:02 cool ) Aug 06 12:22:04 just set view measure dimensions to be arbitrary large and seems to work, likely it finds no way to resize underlying activity to fit it together with method, and just leaves it as is Aug 06 12:22:16 iprime: yes super cool, super simple! Aug 06 12:22:17 thanks Aug 06 12:22:28 what kind of an input method is yours? Aug 06 12:22:51 hopefuly future defining ;) Aug 06 12:23:27 the next swype?) Aug 06 12:23:29 gesture based input is closest description for now, though it is not stricly it Aug 06 12:23:33 when are you going public? Aug 06 12:23:37 did it get far? Aug 06 12:24:04 dunno, I'm not some company just a geek with some idea, possibly might make place it into store in months time maybe Aug 06 12:24:17 but you'll need to edit text/config file for it to work :D Aug 06 12:24:21 Or something like that Aug 06 12:24:38 for now just tryign to get it to state so that I could do extensive testing of concept Aug 06 12:24:41 myself Aug 06 12:25:00 ah, sounds interesting Aug 06 12:25:01 which with your advice is quite close Aug 06 12:25:47 glad it helped Aug 06 12:26:17 we could surely use a better IM Aug 06 12:28:38 well it will likely be a bit slower than regular onscreen keyboard, but no need for shifting and alt layouts, also screen not obscured mostly, nether by drawings nor by fingers Aug 06 12:32:44 that'd be cool, one of the annoying things about soft keyboard, they get in the way Aug 06 12:33:48 precisely, point is to have terminal fully visible on screen without much interferance from ether hafl screen taking keyboard or fingers needing to get to press stuff in a middle of the screen, those can't be made transparent :) Aug 06 12:33:55 ok away now Aug 06 12:34:37 laters Aug 06 13:56:27 In android if I have a view container like FrameLayout in the xml layout file. Will it always inflate if it's inside the main root view? Aug 06 13:56:46 I'm taking about having multiple fragments for one activity Aug 06 14:29:25 crised, if i got the question right -- sure Aug 06 14:29:31 sometimes it's faster to just try Aug 06 14:30:03 google doesn't have fines for nonworking code... yet Aug 06 14:33:34 there's no such thing as lazy inflating Aug 06 14:33:45 viewstub tries to simulate it Aug 06 14:47:09 iprime: I see, only eager inflaton as pfn suggests Aug 06 14:47:28 Can I use a CardView as the top level element of a fragment, right? Aug 06 14:47:39 sure Aug 06 14:47:47 g00s: cool Aug 06 14:49:12 you can use view as the top level of anything, so long as the particular view doesn't have rules about its contents or parents Aug 06 14:49:25 eg coordinator + appbar + collapsing Aug 06 14:50:29 pfn: ok Aug 06 17:29:18 Hi. While signing an app what should I write into Organizational Unit and Organization if I'm a private person? And what should I write into State or Province if I don't live in USA? (I have an equivalent for it but I'm not sure.) Aug 06 17:31:34 afair you can leave them empty Aug 06 17:31:46 only name(?) Aug 06 17:31:48 is needed Aug 06 17:32:23 Ashiren: oh, thanks! It doesn't show that's possible. I'll try to sign it without filling them then. Aug 06 17:33:12 it works Aug 06 17:41:39 Should I care about USA exports policy? (I'm not from USA.) Aug 06 17:53:38 Karkoon, what kind of an app are you publishing (just curious) Aug 06 17:54:48 iprime: a game, a simple one because it's my first Aug 06 17:56:02 cool, you publishing now? Aug 06 17:56:13 yeah Aug 06 17:56:38 i'd love to check it out Aug 06 17:57:09 okay, but you'd have to wait Aug 06 17:57:12 google is checking it Aug 06 17:58:02 iprime: it's called Narwhal Grappling Hook Aug 06 18:02:17 usually takes up to a couple of hours Aug 06 18:03:08 iprime: it's enough time to play the game a bit and see all these small errors and have new great ideas Aug 06 18:04:49 what kind of game is it? Aug 06 18:04:55 the name makes it sound adventurous Aug 06 18:05:03 that's good lol Aug 06 18:06:31 it's a sidescroller. The Narwhal is the player. You create a rope between it and clouds (platforms) and try to go as far as possible with as much as possible coins with as little as possible time elapsed. Aug 06 18:06:54 (there's no highscore system, and that's a shame) Aug 06 18:07:50 cool Aug 06 18:07:56 what did you build it with? Aug 06 18:08:02 libGDX Aug 06 18:08:33 It's really easy to use if you get something once. Aug 06 18:08:48 But as I have made everything for the first time then it was somewhat difficult for me. Aug 06 18:10:08 (and I have used Intellij as my IDE) Aug 06 18:10:32 great, yeah i use libgdx too Aug 06 18:10:43 it's pretty neat Aug 06 18:15:18 libgdx made my head want to explode last time i looked at it Aug 06 18:15:42 why's that? Aug 06 18:15:47 and what do you use instead? Aug 06 18:45:26 dragorn go to defcon? http://motherboard.vice.com/read/hackers-could-break-into-your-monitor-to-spy-on-you-and-manipulate-your-pixels Aug 06 18:52:06 http://stackoverflow.com/questions/38807634/google-play-game-services-save-feature-not-working-consistently <- anyone familiar with GPGS and save? Aug 06 18:54:20 Hi guys! I'm about to introduce MVP architecture in my new project. I read quite a lot about different libs that might help and ease the whole thing, however I'm not sure if I'll manage with all the stuff which is new for me, like Dagger for DI so I just wonder if I should try to build my MVP without Dagger or other DI framework and do it with Adnroid/Java bare bones we have out-of-the-box just to feel what it's like? Would Aug 06 18:54:20 you try Dagger in commercial project while never tried it before? Aug 06 18:54:22 I Aug 06 18:55:14 I understand how does it work just really afraid to try something new in commercial project I make for the client, not for myself. Aug 06 18:59:54 Would you guys recommend to play with it for some time in some spare time project or there are no any majpr pitfalls beginners might find themselves in? Aug 06 19:09:54 AlexBerdnikov strategy i use when testing new libs is quarantine them to non-critical functions / components Aug 06 19:10:11 if you are uneasy about dagger atm, just use it some place unimportant, to get a feel of it Aug 06 19:10:30 i wouldn't try doing some grand architecture yet, baby steps ;) Aug 06 19:11:08 for MVP, again i'd just understand the principle and apply the pattern - there are some MVP libs out there i guess - can't comment on how useful they are Aug 06 19:11:37 AlexBerdnikov: dagger is not essential part of mvp. try to feel nuts and bolts Aug 06 19:11:46 g00s: Thank you for reply! I thought about such approach but what scares me off here is that I afraid to create some ugly monster of inconsistency. Aug 06 19:12:13 AlexBerdnikov: and you will =) probably. so what Aug 06 19:12:35 It might really help to feel it but it comes with the cost of the code consistency and stuff like that... Aug 06 19:14:28 vigilancer: Yes, I understand that any DI framework in not a rrequirement, just a handy tool, but it seems that all the big boys these days use it and it makes me wanting to use it as well :) Aug 06 19:28:59 AlexBerdnikov: try doing constructor injection first Aug 06 19:29:08 and then add a DI framework when that becomes too onerous Aug 06 19:29:10 http://stackoverflow.com/questions/38807634/google-play-game-services-save-feature-not-working-consistently <- anyone familiar with GPGS and save? Aug 06 19:29:11 https://gist.github.com/pareshchouhan/1bf8418613fb26037f3eeaaa93fd41ec Aug 06 19:29:20 having trouble with the new transition API Aug 06 19:29:23 or when you finally understand how you'd use it "correctly" Aug 06 19:30:01 animation works fine the first time Aug 06 19:30:01 bourbon: Thanks. That's what I probably will stick with Aug 06 19:30:14 but when I reset the position and call beginDelayedTransition again Aug 06 19:30:18 It just breaks :( Aug 06 19:31:16 the heart animates to left of TextView (which I tried fixing by storing the start offset and using it but that renders animation useless) Aug 06 19:46:11 Using RxJava, it seems that my subscribers onError method is getting called from the background thread, even though I'm observing on mainThread(), is this intentional or did I muck something up? Aug 06 19:54:48 Hello Aug 06 19:57:18 Does this chat work? Aug 06 20:03:19 Neo can you see my message? Aug 06 20:03:37 Yeah. of course .Y? Aug 06 20:03:54 Oh I thought this chat doesn't work, I'm new here Aug 06 20:04:01 haha.. Aug 06 20:04:07 This is very quiet Aug 06 20:05:11 Why chat is so inactive here? Aug 06 20:06:22 Hi, I have a generic question about implementation of dynamic layouts based on server response. Currently I'm using prebuild layouts and filling data according to json responses from server. However it seems to bad when comes give frequent changes & changes specific to certain elements. Is there any design pattern used for handle these cases other than a laggy web view Aug 06 20:06:53 SandDrifter, don't know . I'm new born here too Aug 06 20:07:39 n_e_o: strange... Aug 06 20:09:06 SandDrifter, may be everyone working too hard & busy.. Aug 06 20:09:38 I thought programming is supposed to be fun Aug 06 20:10:18 SandDrifter, well depends. where/on what/for whom :P Aug 06 20:12:52 n-e_o, I suppose you're right :) , is this chat ok to chit chat a little bit, it's not like StackExchange, I thought this chatroom about communitty Aug 06 20:16:59 SandDrifter, i hope so.. irc usually comes with those chit & chat. Aug 06 20:19:04 nothing more satisfying then an app that works.. big or small. that is fun Aug 06 20:21:12 So what do you guys think of Xamarin? Aug 06 20:21:24 Karkoon: the thing is, you are slowing down with every jump Aug 06 20:21:32 its now owned by microsoft.. Aug 06 20:21:45 xamarin is.. Aug 06 20:22:02 SandDrifter: context? Aug 06 20:22:22 vigilancer: you need to catch the coins Aug 06 20:22:27 they are a speed up Aug 06 20:22:33 Karkoon: ah Aug 06 20:22:43 fun Aug 06 20:22:50 vigilancer: Sorry, I am a noob, what do you mean by context/ Aug 06 20:22:54 I'll need to make them more obvious. My family says pretty much the same. Aug 06 20:22:54 ?* Aug 06 20:24:56 SandDrifter: in what context your are asking about it Aug 06 20:25:17 how to catch in with poke-ball or ask for a date? ) Aug 06 20:25:37 SandDrifter, i would give it try if it was free .. even for a newbie 99$ .. would hate microsoft for that Aug 06 20:26:31 it depends how deep you go. with simple app you'll get .. siimple apps that looks ugly on all platforms Aug 06 20:26:38 n_e_o: but it is free, I even created one lame app Aug 06 20:27:51 SandDrifter, i mean one of the main feature cloud-test Aug 06 20:27:51 vigilancer: well the context maybe it will be the future of mobile developement because, you can create an app for all platforms... Aug 06 20:28:39 ah Aug 06 20:28:39 n_e_o: oh I don't really know about cloud thing :/ ... Aug 06 20:28:41 no Aug 06 20:28:44 ) Aug 06 20:28:55 why no? Aug 06 20:30:57 because it's one more layer of abstraction. and not perfect one. on plus side - saves dev's time (=saves money), on down side - it has limitations, and if you can't do something with it - you can't. Aug 06 20:31:39 also not sure is Xamarin developer is such a replaceble position Aug 06 20:32:30 is there some thing flexible like https://github.com/Avocarrot/json2view which is a good choice for dynamic layouts? Aug 06 20:34:00 vigilancer: oh thanks for you'r answer about Xamarin Aug 06 20:34:15 well, maybe Xamarin and js-based frameworks have their niche but if so, why to bother to learn things, that maybe in some situations can be profitable, if you have officially supported java/etc for android and obj-c/swift for ios Aug 06 20:34:16 only 2 contributers in that.. seems like some other pattern exists for good dynamic layout building.. Aug 06 20:34:26 iho and all Aug 06 20:34:33 *imho Aug 06 20:35:45 what does facebook android app use? like they seem have millions of variety of views based on type of content, idt it is all hardcoded layouts Aug 06 20:39:17 considering how big the app is, wouldn't expect it to be anything except hard coded layouts Aug 06 20:39:41 but creating a model that produces a dynamic view isn't hard Aug 06 20:41:45 it's generally what stuff like recyclerview does Aug 06 20:41:51 n_e_o fb apps probably have dozens of developers on them too Aug 06 20:41:58 and any adapterview Aug 06 20:43:26 yeah. but every single change needs an app update though. or such an initial plan for how definitely things will be in some few months at least : Aug 06 20:45:06 i'm part of a startup, we think of something today, build tomorrow, rollout next day.. seems to be pissing off for users Aug 06 20:47:51 n_e_o probably sweet spot for updates is no more than once per week ... Aug 06 20:50:49 yeah.. but that takes more preplanned steps. Aug 06 20:52:57 that's all for the day folks.. have a nice day if DAYTIME else have a nice night Aug 06 20:59:29 lol... weekly releases taking planning? why not just patience? Aug 06 21:20:21 Hey there Aug 06 21:20:43 does anyone know if it’s possible to copy the javadoc from an inherited method with a hotkey? Aug 06 21:40:45 tricknology: @inheritDoc ? Aug 06 21:41:01 Ah yeah forgot about that one. Thanks vigilancer ! Aug 06 21:46:45 updates more often than once a week are annoying Aug 06 21:47:18 digging inside leanback lib. seems they discarded generics and just using Object's. Strange approach at the first glance, but I feel surprisingly comfortable with it after a while Aug 06 22:12:46 http://stackoverflow.com/questions/38807634/google-play-game-services-save-feature-not-working-consistently <- anyone familiar with GPGS and save? Aug 06 23:00:48 So I’ve used the heirarchy of Callers in AS and now I don’t know how to unhighlight it.. haha, does anyone? Aug 06 23:00:59 (unhighlight the call) Aug 06 23:46:35 https://github.com/Thangiee/Metadroid/blob/master/README.md Aug 06 23:46:40 pretty cool Aug 07 00:32:09 Guys, any thoughts on why AlertDialog.Builder.setView() method might not affect dialog appearance at all? Aug 07 00:32:09 I call it like setView(inflater.inflate(R.layout.blabla)) Aug 07 00:32:33 ANd then dialog simply doesn't show my customnly inflated layout at all Aug 07 00:36:33 what are you doing with the result of setView? Aug 07 00:38:00 Leeds: .create().show() Aug 07 00:38:44 Leeds: http://pastebin.com/3LkZTszJ Aug 07 00:39:25 I did this like hundred times in the past and never had any problems Aug 07 00:39:37 It drives me nuts Aug 07 00:41:29 To be precise, it shows the root layout but not the content Aug 07 00:41:36 I have a TextVIew in there Aug 07 00:42:28 GOddamit what a stupid mistake of mine Aug 07 00:42:47 forget everything... It's just I have to go to bed apparently Aug 07 00:51:33 pfn: looks nice. but you still need to care about config changes, hence almost same boilerplate, just without static ExampleAct.start("hello", Person(..)) Aug 07 00:53:42 http://stackoverflow.com/questions/38807634/google-play-game-services-save-feature-not-working-consistently Aug 07 01:37:05 Hey quick question about the ContextWrapper.getFilesDir().. I know it’s safe to the application but what it it’s called from a library that is implemented in the app? Aug 07 01:51:12 vigilancer, except it's all done automatically Aug 07 01:53:59 well, not writing in scala, just saying. but nice idea and syntax Aug 07 01:54:43 ie not the same boilerplate Aug 07 01:56:53 almost) one still need to 'if (savedInstance != null) { restoreThisParams }', and save them on config change. I mean, that's not enough to just pass params, it saves only few lines Aug 07 02:15:40 I don't know about you, but my use of savedInstanceState is exceedingly rare Aug 07 02:16:19 so yes, it saves a ton for passing data between many different activities Aug 07 02:32:24 for that matter, extending it to support savedInstanceState would be rqsy Aug 07 02:32:26 easy Aug 07 02:43:43 Has anyone else experinced this? The longer my class names are the more distortion there is with the cursor positinoed closer to the end.. Aug 07 02:44:12 tricknology: That sounds... crazy Aug 07 02:45:42 haha so it’s not normal CedricBeust ? I thought it was just AS lol Aug 07 02:45:48 an AS’ism Aug 07 02:45:53 sec and I’ll drop a link Aug 07 02:46:40 CedricBeust: http://imgur.com/a/lxrX2 Aug 07 02:47:05 imports, class definitions, String car names (but only seems to be the “final” ones) **** ENDING LOGGING AT Sun Aug 07 02:59:57 2016