**** BEGIN LOGGING AT Sun Dec 13 02:59:58 2015 Dec 13 03:00:00 Thanks! Dec 13 03:00:11 weird Dec 13 03:00:16 emulator crashes Dec 13 03:00:30 not a suprise :D Dec 13 03:01:28 java.lang.NullPointerException Dec 13 03:01:29 :D Dec 13 03:05:51 haha Dec 13 03:05:59 and no clue whats wrong :D Dec 13 03:06:34 check stacktrace, set breakpoints, put on your hat and go on a bug hunt Dec 13 03:09:44 only bug here is on the other side of the screen :D Dec 13 03:11:02 Computer science metaphors are so bad. Bug, window, desktop... srsly now. Dec 13 03:11:18 Actually, "desktop" isn't so bad. Dec 13 03:11:23 Anyone know a good API of a video player? Dec 13 03:11:26 But "window" -- really? Dec 13 03:11:35 java.lang.RuntimeException: Unable to instantiate activity ComponentInfo{laakkonen.antti.mibio_bioenergycalculator/laakkonen.antti.mibio_bioenergycalculator.MainActivity}: java.lang.NullPointerException Dec 13 03:11:35 at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:1983) Dec 13 03:11:35 at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2084) Dec 13 03:11:35 at android.app.ActivityThread.access$600(ActivityThread.java:130) Dec 13 03:11:35 bug comes from the fact bugs used to chew thru wires Dec 13 03:11:36 at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1195) Dec 13 03:11:36 at android.os.Handler.dispatchMessage(Handler.java:99) Dec 13 03:11:37 at android.os.Looper.loop(Looper.java:137) Dec 13 03:11:37 at android.app.ActivityThread.main(ActivityThread.java:4745) Dec 13 03:11:38 at java.lang.reflect.Method.invokeNative(Native Method) Dec 13 03:11:38 at java.lang.reflect.Method.invoke(Method.java:511) Dec 13 03:11:43 hups Dec 13 03:11:45 sorry Dec 13 03:12:14 lasserix_: Yeah, but that stuff just causes whole systems not to work, rather than tiny things going wrong. :D Dec 13 03:12:33 ? Dec 13 03:12:57 The bug metaphor is bad because insects inside a computer do not cause dates to display incorrectly. Dec 13 03:13:01 i need my glasses.. putting stuff into wrong places Dec 13 03:13:07 They either have no effect or prevent the entire computer from working. Dec 13 03:13:17 Or some major system. Dec 13 03:13:31 better metaphore would be lever Dec 13 03:13:34 or wrench Dec 13 03:13:41 between gears Dec 13 03:13:52 or bearings.. Dec 13 03:13:55 A lot of metaphors are bad, really. It might be simpler to call them what they are: defects. Dec 13 03:14:02 they can do small or big damage Dec 13 03:14:08 mistakes Dec 13 03:25:52 weird.. shows no errors Dec 13 03:26:21 TacticalJoke, hows aqua coming? Dec 13 03:32:05 should private static buttons be after setcontent view? Dec 13 03:32:41 i feel brainless when i do this :D Dec 13 03:34:41 lasserix_: Going well, but real life is getting in the way, making development slow. It's way different from when you last tried. (Note that it has a new name now.) Dec 13 03:34:58 CaptainMint: You shouldn't really be using static View fields. Dec 13 03:35:24 what would be better? Dec 13 03:35:49 Non-static fields. Dec 13 03:36:56 sigh.. activity goes crazy Dec 13 03:37:13 and i was so excited to have structure ready :D Dec 13 03:39:37 still fails Dec 13 03:41:08 TacticalJoke, you going to opens ource it? Dec 13 03:48:05 daily standups are such a joke. Dec 13 04:59:11 so g00s, how's it going? Dec 13 05:07:55 Daily standups would be good if you are in a team of 4-5 people... any more than that and it seems like it would be worthless Dec 13 05:08:53 daily standups: convincing everyone you did something yesterday :) Dec 13 05:08:59 drinfernoo ok Dec 13 05:09:15 I think scrum as an idea is very cool but maybe some companies go overboard with it Dec 13 05:10:26 Do I actually need the system.img files in android-sdk/system-images/... ? Dec 13 05:10:33 They are taking most of the space on my SSD Dec 13 05:17:37 I'm assuming they are used for the default emulator... just saved 30GB by trashing them Dec 13 05:33:27 liuwenhao: It does feel excessive. I haven't trashed mine yet, but damn. Those images take up the same as the rest of the system combined, including it's toolchain. Dec 13 05:34:03 Yeah. next time I update sdk I will probably update to my external rather than wasting space on my SSD Dec 13 05:34:18 I didn't even realize the images were taking so much space Dec 13 05:35:22 Indeed. And I only have 256GB SSD. Dec 13 06:10:22 thanks g00s for the explanation Dec 13 06:36:43 what is andorid M or MNC? Dec 13 06:37:53 g00s: are you here? Dec 13 06:37:59 it takes 9 gig on my hard disk 8918 system-images/android-MNC Dec 13 06:38:01 hey thepoosh Dec 13 06:38:08 hi hi Dec 13 06:38:38 my work is paying for an iMAX ticket to SW Dec 13 06:38:47 on opening night Dec 13 06:38:49 whats SW ? Dec 13 06:38:53 starwars Dec 13 06:38:54 oh ha Dec 13 06:39:01 may the force be with you :) Dec 13 06:39:05 meh Dec 13 06:39:11 I mean I liked the movies Dec 13 06:39:13 but... Dec 13 06:39:21 or the schwartz :) Dec 13 06:39:28 yeah baby! Dec 13 06:39:33 not THAT is a movie Dec 13 06:55:08 thepoosh, that's nice of them Dec 13 06:55:13 yep Dec 13 06:55:17 it is Dec 13 06:55:23 I'm super excited for it Dec 13 06:56:16 pfn: are you planing on watching? Dec 13 06:56:40 when it comes out on bluray Dec 13 06:56:51 I rarely watch movies in theatre anymore Dec 13 06:57:08 I like to, just not practical at the moment Dec 13 07:01:28 lame, child fragments need to be created dynamically Dec 13 07:04:34 i dont see that limitation in the docs; effing fragment guide doesn't even mention child fragments, so when was it last updated ? before 4.2 ? Dec 13 07:07:04 "Note: You cannot inflate a layout into a fragment when that layout includes a . Nested fragments are only supported when added to a fragment dynamically." Dec 13 07:07:11 ok so the note is in the release notes Dec 13 07:07:58 the whole platform is so disheveled Dec 13 07:18:05 its mind boggling how poorly designed this is. how can a child fragment be reusable if it has to know whether its parent is an activity or another fragment? (and handle things differently) Dec 13 07:32:55 Don't you just have to use getChildFragmentManager()? Dec 13 07:33:18 I've only used nested fragments once or twice. It seems like they should be used very sparingly Dec 13 07:34:35 I have a SupportMapFragment inside of another fragment's XML and it works fine with getChildFragmentManager Dec 13 07:36:29 liuwenhao you have the child fragment declared in the paren't xml ? Dec 13 07:36:51 Yes Dec 13 07:36:56 Its like this Dec 13 07:37:38 activity_product has product_feed fragment, product_feed fragment has SupportMapFragment Dec 13 07:37:55 and then in the ProductFeed fragment Java I use getChildFragmentManager to call that nested fragment Dec 13 07:38:52 liuwenhao ok - so what you are saying, is that you didn't have to dynamically add the child fragment to some framelayout in the parent ? Dec 13 07:38:58 its in the XML Dec 13 07:39:04 hm Dec 13 07:39:53 the child fragment is in a framelayout inside of the first fragment's xml, but that's for styling, it works the same outside of the framelayout Dec 13 07:41:43 Are you sure you're importing the support.v4 fragment api? Dec 13 07:41:54 I don't know if that would change it, but maybe Dec 13 07:42:37 liuwenhao thanks for the tip, i'll try tomorrow (almost 3am here) thanks again Dec 13 07:42:52 Good luck, hope you can get it working Dec 13 07:42:56 thx Dec 13 07:42:58 gnight Dec 13 07:43:00 See ya Dec 13 07:57:26 Hello mates.. I'm trying to have a gallery style navigation.. Where the users scrolls an unlimited list of items left to right. Dec 13 07:57:59 Is there a good way to implement the list control? A standard way? Dec 13 08:05:47 hello Dec 13 08:06:01 i am new to android programming Dec 13 08:06:17 id like to know if i can 'intercept' an app Dec 13 08:06:24 well let me explain Dec 13 08:06:46 there is an app that has a button and when it is clicked it sends its photo to 1 or 2 more other apps Dec 13 08:06:52 like gallery, or another photoviewer Dec 13 08:07:06 can i write also an app that can 'intercept' this launching? Dec 13 08:07:10 the 'share' button? Dec 13 08:07:20 yes something like that Dec 13 08:07:31 im nto sure if its exactly tht Dec 13 08:07:35 you can advertise your app as being able to open certain types of files Dec 13 08:07:40 this has to do with 'intents?' Dec 13 08:08:01 yeah been a while since i programmed Android but yes Dec 13 08:08:10 how would i know what that 'certain type' is Dec 13 08:09:11 iirc your app defines what it can handle, and then when in another app the share button is tapped, the system takes the type of object being 'shared' then lists what apps have defined themselves as being able to handle it Dec 13 08:09:48 https://developer.android.com/training/sharing/receive.html Dec 13 08:10:06 in your case probably Dec 13 08:10:44 oh so its just done via mimetype? Dec 13 08:10:57 how would i 'snoop' whats going on? Dec 13 08:11:15 yes because when the share button is hit in an app, the app defines the mimetype as well Dec 13 08:11:20 im not sure on that, sorry Dec 13 08:12:09 actually i think with adb you can sort of listen to whats going on if the pgoram outputs Dec 13 08:12:59 right im not sure if logcat will show the mimetype of what is being shared when the button is hit Dec 13 08:13:04 you'd just have to try it Dec 13 08:14:26 right Dec 13 08:14:34 thanks for the tips/leads Dec 13 08:14:44 no problem, hope it helps Dec 13 08:15:44 well Dec 13 08:15:55 also doesnt a program have to declare what intents it gives out in th emanifest? Dec 13 08:16:12 i think there is a way to decompile an apk to get the manifest at least Dec 13 08:20:36 with view pager, it seems to ask for a count.. is there a "better" method that allows for n views Dec 13 08:23:06 only what it can receive, not send, in the manfiest irc_smirk i believe Dec 13 08:26:22 Anyone down to help a chap with custom layout buggyness? I have a custom view, that is kinda like a dummy I'm calling an child.layout() That child has sub views, like a linear layout However, that does not seem to be getting set onLayout Dec 13 08:26:50 when I call child.onlayou() Dec 13 08:54:30 howdy Dec 13 08:57:17 I want to create serializers that map to the fields of database models which extend from an ORM class. What is the best way to reuse the field declarations in the models without dragging all the cruft associated with the ORM model along with it? Dec 13 09:13:58 Odd question coming.. I want to hit a fun api end point.. I'm making a "toy" app to practice. Dec 13 09:14:42 Anyone know of a good fun api to target? Dec 13 09:15:08 programmable web Dec 13 09:15:10 have a search about Dec 13 09:15:27 ^^ Dec 13 09:23:21 not spam. i found a good offer to get free 6 month of pluralsight video tutorials Dec 13 09:23:30 no credit card blah blah. its a microsoft give away Dec 13 09:23:32 http://www.troyhunt.com/2015/12/get-more-awesome-pluralsight-content.html Dec 13 09:23:35 not my blog Dec 13 09:23:36 spam! Dec 13 09:23:46 :p Dec 13 09:23:51 sorry! Dec 13 09:24:00 just kidding ;) Dec 13 09:50:33 hey all it says no job posts in topic, is there #android-jobs or something? Dec 13 09:57:55 daemon, /list andorid ;) Dec 13 09:58:00 android :o Dec 13 09:58:11 danijoo, I would have to be insane to do that LOL Dec 13 09:58:15 on this network Dec 13 09:59:09 danijoo, you know any communities I can quickly drop a request in, simple 2 file app, less than 200 lines offering 50 GBP for basically 2 very simplistic features that the code is alkready done for, just can't get the custom listview thing working for Dec 13 10:13:29 daemon, no. some freelancer site maybe Dec 13 10:28:18 Hey... Is it possible to have 2 onTouchEvent () in the same activity ? I have a ViewFlipper in my Activity and the onTouchEvent() override function I have only seems to cater for ViewFlipper but not for my ListView or anything else. Dec 13 10:37:00 cart_man, you can create a second event listener Dec 13 10:38:36 jonky: But how do I tell it on which to react? Dec 13 10:39:06 because the first event listener seems to automatically choose the ViewFlipper Dec 13 10:48:42 hello guyz, any suggestions about a lib for photo editing ? Dec 13 10:51:37 hi Dec 13 10:51:42 whats going on? Dec 13 10:56:43 x Dec 13 11:08:54 jonky: Any ideas? Dec 13 11:09:06 1. I have a tabs-pager with an adapter: `FragmentStatePagerAdapter` (incl. 2 fragments: OneFragment, TwoFragment) Dec 13 11:09:28 2. I want to do a transaction and to change the fragment to `AnotherFragment`. Dec 13 11:09:39 Without adding "another fragment" to the tabs Dec 13 11:10:36 however, simple transaction results in an empty fragment Dec 13 11:10:38 getSupportFragmentManager().beginTransaction().replace(R.id.tabs_pager, debugFragment).addToBackStack(null).commit(); Dec 13 11:22:40 hello, i have a problem with collapsingtoolbarlayout on KitKat Dec 13 11:22:41 https://mrokita.pl/img/r510jk-12-21-57.png Dec 13 11:23:33 after collapse: https://mrokita.pl/img/r510jk-12-23-24.png Dec 13 11:25:55 layout: https://gist.github.com/mRokita/c012e6dae9a8907cb590 Dec 13 11:40:48 and that's the problem on Lollipop https://mrokita.pl/img/r510jk-12-40-25.png Dec 13 11:40:56 can somebody help me please? :S Dec 13 11:41:23 Set fitsSystemWindows to true Dec 13 11:41:52 SimonVT: but i want the status bar to be transparent Dec 13 11:42:03 SimonVT: It won't be then, right? Dec 13 11:42:03 Also, look at chrisbanes cheesesquare sample. That showcases the design lib Dec 13 11:43:23 fitsSystemWindows has nothing to do with the status bar color Dec 13 11:44:17 what makes the statusbar transparent is the translucent mode you set in style Dec 13 11:48:18 when you see the app you worked on for two months appear as the first of its kind by someone else because you had to stop working on that project to pay rent Dec 13 11:48:24 you just want to ****ing shoot yourself Dec 13 11:48:52 lasserix_, just make it better then the other one :p Dec 13 11:49:01 yeah it already is Dec 13 11:49:06 but Dec 13 11:49:09 it kills me a little Dec 13 11:49:29 mine was inspired by the idea the user should be able to edit how it functions with a simple text file Dec 13 11:50:13 but like every feature and use case Dec 13 11:50:18 its all there besides that Dec 13 11:50:54 guess what it really means is i should make real all the other ideas Dec 13 11:53:11 god this feeling is nearly as bad as breaking up with someone Dec 13 11:53:21 virtual bereavment Dec 13 11:54:40 lasserix_: I feel for ya Dec 13 11:56:15 well i guess i will use this to fuel the energy to overthrow scrum and mobile outfits to the benefit of developer independence Dec 13 11:56:16 okay, now on lollipop everything i fine, but on KitKat it looks like this: https://mrokita.pl/img/r510jk-12-55-49.png Dec 13 11:57:05 anyone play with SPAN mesh library? Dec 13 11:58:04 lasserix_: I haven't heard of it, what is it? Dec 13 11:58:20 a mesh networking library Dec 13 11:58:22 *ad hoc Dec 13 11:58:43 like firegarden Dec 13 11:59:20 Ahh ok, I don't really have much knowledge there Dec 13 12:00:14 does anyone use realm? The objects returned from createOrUpdateFromJson don't match what I see in a realm browser, along with querying the same object after I commit a transaction. Idk wtf is going on. Dec 13 12:00:37 can somebody help me? :/ Dec 13 12:02:26 enzlbtyn: I have used realm but I have never used the JSON stuff Dec 13 12:04:40 hmm it seems that this http://stackoverflow.com/a/30345848/1427533 answered my doubts. I figured it would assign the variables declared in the instance, so I was looking at the values in the debugger. Dec 13 12:04:50 that just makes debugging all that much harder :/ Dec 13 12:10:11 That does look like it will make debugging harder. Never realised that before. Dec 13 12:10:52 hmm.. emulator 2.0 seems to have some weird sdcard memory leak Dec 13 12:11:24 after a few hundret app installs it says its low on disc space Dec 13 12:13:24 how can I set true in my Java code? Dec 13 12:13:38 false* Dec 13 12:16:57 mRokita: http://stackoverflow.com/a/29147487/1427533 Dec 13 12:16:59 ? Dec 13 12:20:32 enzlbtyn: yeah, but it want to set it to false, not true Dec 13 12:21:48 false is default Dec 13 12:22:22 could you use clearFlags? or maybe set it to 0? s: Dec 13 12:22:28 nvm i've achieved it in another way Dec 13 12:32:23 I have a RecyclerView that I hide when it is empty (since it is inside CardView, and empty view is not). When I add item back and then setVisibility(VISIBLE) it blinks with the old item, and then change it Dec 13 12:32:27 Is there a way to fix that? Dec 13 12:33:23 yoavst, maybe by removing or invalidating the adapter Dec 13 12:37:49 danijoo: I'm using adapter.notifyItemRemoved(position), and I don't want to remove the adapter since I hold some bitmaps inside it :/ Dec 13 12:48:14 But I guess there is no other options. Thanks. Dec 13 12:58:55 So what's everybody's preferred tech stacks&architectures these days? MVP, MVVM, data-binding, libs? Asking for a friend.. ;-) Dec 13 13:02:42 mvmpc Dec 13 13:03:05 mvm for UI, p for UX out, c for UX in Dec 13 13:04:09 then you can just have a java module for anything non android specific (eg business layer) Dec 13 13:04:18 or domain logic Dec 13 13:04:30 so i guess that's mvmpcd ;p Dec 13 13:04:55 So where's your blog post about it? :-P Dec 13 13:06:08 im going to throw up example app in github in next month Dec 13 13:46:41 when using the emulator, how can you view the database? Dec 13 13:47:01 rather, does the database exist where in a directory? Dec 13 13:47:09 s/where/somewhere Dec 13 13:48:55 with regards to https://github.com/googlesamples/android-Camera2Basic, it looks like if I rotate my device so that the preview image rotates, it ends up creating a new MainActivity instance, does that sound right? Dec 13 13:49:11 jonky, http://lmgtfy.com/?q=android+database+folder&l=1 Dec 13 13:49:38 jiffe, yes. on configuration change (rotation) the activity gets destroyed and recreated Dec 13 13:50:01 danijoo, the link doesn't work. what does it say? Dec 13 13:50:26 jonky, too bad :/ Dec 13 13:50:34 thanks for trying! Dec 13 13:51:11 jonky, try this one http://bfy.tw/3GKB Dec 13 13:51:35 danijoo, my browser must be broken Dec 13 13:51:53 enable DART Dec 13 13:51:54 ;) Dec 13 13:56:02 is there a way to get a list view animation for a custom adapter in a RecylceView for when you press down on an item? Dec 13 13:56:27 I'm using a selector at the moment, with enter/exitFade duractions, but it's not the effect I'm looking for. Dec 13 13:56:48 s/duractions/durations Dec 13 13:57:35 I'm having some problems with gradle in android studio - It will not sync with any dependencies. Anyone how might be able to help me? Dec 13 13:58:26 Silverbaq, try File->Invalidate Caches/Restart Dec 13 13:58:36 and select Invalidate & Restart Dec 13 13:59:28 ok - I'll try that :-) Dec 13 14:00:09 nope - still getting an error Dec 13 14:00:41 I am trying to record audio, but I am getting some kind of memory protection error (SIGSEGV). http://pastebin.com/fqAhKUzm Dec 13 14:04:07 Silverbaq, what is the exact error message? Dec 13 14:05:38 Hi, I have a fragment container(aka container) with ViewPager with an fragment adapter(aka pager) Dec 13 14:06:11 when I change the fragment in the container, and going back- the fragement regenrating the viewpager but this time its empty Dec 13 14:06:20 I have tried using the gradle that comes along with Android Studio, and also downloading the newest version from gradles homepage... Dec 13 14:06:34 But can't sync anything at all... Dec 13 14:07:08 Silverbaq what is logs error Dec 13 14:07:11 *are Dec 13 14:08:21 Error:(39, 13) Failed to resolve: com.pkmmte.view:circularimageview:1.1 Dec 13 14:08:22 Show in File
Show in Project Structure dialog Dec 13 14:09:32 there you go ^ Dec 13 14:10:50 Silverbaq, your dependencies seem to be wrong Dec 13 14:11:18 danijoo, - Ok? how can you tell? Dec 13 14:11:38 Failed to resolve: com.pkmmte.view:circularimageview:1.1 Dec 13 14:11:44 I've tryed to add the dependencies on another computer - it works Dec 13 14:11:48 this means it cant find the repository of this dependency Dec 13 14:13:13 sound fair enough - so any sugestions on how to make gradle being able to see the repository? :) Dec 13 14:16:47 Silverbaq, only if you show your gradle file Dec 13 14:17:44 http://pastebin.com/xhQ9DvtT Dec 13 14:19:18 Can anyone tell me why the "no valid output file" error occurs? Stacktrace http://pastebin.com/2pDUPUdN Code: http://pastebin.com/fqAhKUzm Dec 13 14:20:09 Silverbaq, hm.. this works for me :s Dec 13 14:20:38 yaa, it works on other computers... :/ Dec 13 14:21:10 <_0xE2> I've just noticed that there is a Swift port for Android lol Dec 13 14:21:40 I've been having the issue for 4 days now... starting to me Dec 13 14:21:58 Silverbaq, is gradle set to offline mode? Dec 13 14:22:04 nope Dec 13 14:22:21 try to manually clearing the cache of gradle Dec 13 14:22:43 should be under ~/.gradle if im not mistaken Dec 13 14:22:58 are you behind a proxy or sth? Dec 13 14:23:40 AlmogBaku, what should I do in the .gradle folder you say? Dec 13 14:23:55 danijoo, no proxy Dec 13 14:24:38 AlmogBaku, just rm the fils in cache folder? Dec 13 14:24:55 AlmogBaku, or is there a cmd for it? :) Dec 13 14:25:32 i dunno Dec 13 14:25:45 just delete it. its safe Dec 13 14:25:51 ok :)( Dec 13 14:27:08 AlmogBaku, Getting same error Dec 13 14:28:05 on another machine it getting compiled? Dec 13 14:28:16 yeps Dec 13 14:28:23 arrgh Dec 13 14:28:58 yaaa, arrrgh indeed Dec 13 14:30:39 Silverbaq, can you add other dependencies? Dec 13 14:31:37 I get an error, on every dependency I try Dec 13 14:32:28 Silverbaq, can you provide more of the traceback? Dec 13 14:33:19 jonky, Gladly! is there a log file somewhere? Dec 13 14:33:48 jonky, (I'm on ubuntu, if it makes it easyer) Dec 13 14:33:50 So, did you test the exact same project on another computer, or did you just add the dependency go another project? Dec 13 14:34:14 SimonVT, Tested the same project (git) Dec 13 14:36:06 Build with --info Dec 13 14:36:26 See what happens when it checks whatever repositories you added Dec 13 14:38:20 SimonVT, Studip question: how to build with --info? Dec 13 14:38:20 hey guys Dec 13 14:38:39 does anyone know of a websocket library for android? Dec 13 14:39:03 in particularly one that allows me to open a websocket using http basic auth... Dec 13 14:40:26 I'm guessing any websocket library out there would allow me to do something like "wss://user:pass@site.com" but that would leave the username and password wide open in the url, is there a library that would allow me to set the basic auth section of the websocket open request? Dec 13 14:46:08 SimonVT, http://pastebin.com/AVG4eq7Q Dec 13 14:48:35 Hey how can I get the size in pixels of a ViewFlipper? viewFlipper.getX() always returns 0 Dec 13 14:48:37 0.0 Dec 13 14:49:01 x is position Dec 13 14:49:16 Silverbaq, Failure initializing default system SSL context << thats the issue (line 56) Dec 13 14:49:27 canvs2321: Ohh wel that makes sense >.< Dec 13 14:49:43 canvs2321: Anything else that will give me a hint of the actual size though? Dec 13 14:49:56 something that deals with width/height Dec 13 14:50:05 Ok! what should I do to get around that? Dec 13 14:50:12 Ahm... wait was that a hint? Dec 13 14:51:06 you want size, you have to get a width or get a height or get a depth etc Dec 13 14:51:36 get x or y is just showing position to start drawing your widthy height depthy view Dec 13 14:52:16 ok but is there a view.?? that gives me size? Dec 13 14:52:26 danijoo, Do you think reinstalling the JDK could solve anything? Dec 13 14:52:35 Silverbaq, no idea. sorry Dec 13 14:52:44 danijoo, ok :) Dec 13 14:53:22 All your stacktraces mention some file not found in openjdk.. Seems like that would be the issue Dec 13 14:53:56 SimonVT, Oki, I'll try to reinstall it :) Dec 13 14:54:17 Is there a sort of "Service" that does not die when your app gets forced closed Dec 13 14:54:17 ? Dec 13 14:54:49 cart_man, I think services in their own process dont die on force close Dec 13 14:54:51 but im not sure Dec 13 14:55:03 I remember that World of Tanks could shove messages down my throat without me even having the app or a service running. Dec 13 14:55:09 danijoo: Hmmm...that is a good idea Dec 13 14:55:11 Depends on if that process force closes Dec 13 14:55:30 cart_man, they might use GCM or AlarmManager Dec 13 14:57:10 cart_man, you can restart the service when a force close happens. In the onDestroy() method you can have a broadcast receiver send a signal Dec 13 14:57:39 does force close actually calls onDestroy() ? Dec 13 14:57:41 Bubo, I doubt onDestroy is called if the service force closes Dec 13 14:57:54 a force close is like a `kill` Dec 13 14:58:30 danijoo: Sorry I DC allot ...sigh Dec 13 14:58:32 well then an AlarmManager Dec 13 14:58:40 anyway do you know how I can get the size of a View ? Dec 13 14:59:02 cart_man, view.getWidth() ? Dec 13 14:59:35 danijoo: ghez ...whole time I have been going View.getSizeX() Dec 13 14:59:37 anyway thanks Dec 13 15:07:05 * Silverbaq is super happy!!!! Dec 13 15:07:11 IT WORKS!!!! Dec 13 15:07:21 Silverbaq, what did you do? just reinstalled jdk? Dec 13 15:07:27 Changed from OpenJDK to OracleJDK Dec 13 15:07:42 ah. the openJDK devil Dec 13 15:08:21 hehe, normally I love Open stuff - But it's better when stuff works :D Dec 13 15:08:28 Thank you all so much for your help!! Dec 13 15:22:19 hello what is the best way to uninstall android-studio Dec 13 15:22:35 and reinstall it has been giving me errors and not letting me update Dec 13 15:22:45 So I want to uninstall it and reinstall Dec 13 15:23:05 on solaris? Dec 13 15:23:11 mac osx Dec 13 15:23:24 same way you uninstall all programms on osx Dec 13 15:23:46 just move it out of your apps folder Dec 13 15:24:05 i dont think that completely removes it Dec 13 15:24:38 if you also want to remove the settings folder this should be somewhere in your home directory Dec 13 15:24:44 names .AndroidStudio or so Dec 13 15:24:55 at least thats where it is on windows Dec 13 15:27:28 i guess ill just try that and see if it works Dec 13 15:49:58 Beginner question about Android Studio. Is it better to make my UI elements in the .java file like "Button btn = new Button();" and add them to a Layout Object? Or to make them in the UI editor where they appear in an XML file instead? Dec 13 15:51:39 Hey. For some reason, the speech recognizer stops listening after a few seconds (around 2 minutes). Any idea what's happening here? Dec 13 15:54:56 C_minus, whats easier for you? usually thats xml Dec 13 16:01:27 is there a simple way to make an app exit if the home or back buttons are pressed? Dec 13 16:01:53 jiffe, thats not how android works Dec 13 16:04:08 what about detecting it? I have a communications thread I would want to shut down at least Dec 13 16:06:43 activities callback methods arent enough? Dec 13 16:31:56 onUserLeaveHint seems to give me the information I'm looking for Dec 13 16:32:35 How do I get the draw rect of an image view? Dec 13 16:32:41 Position rect, I mean. Dec 13 16:39:33 hm? Dec 13 16:39:45 you could try to look for drawing layouts in developer options Dec 13 17:02:11 hello Dec 13 17:08:12 hi, can any1 explain how can I change a fragment from my main activity, by clicking a button in the respective fragment? Dec 13 17:11:27 How come google play says Ive only got 1 download but Facebook analytics says 25? Dec 13 17:17:59 Yes Bullet_93 Dec 13 17:17:59 Oh, I thought you were asking if you can, missed the explain part Dec 13 17:18:50 and how? Dec 13 17:23:18 Still an android newbie Dec 13 17:23:27 drose379, it doesn't update immediately Dec 13 17:23:39 Its been 2 days pfn, is that still normal? Dec 13 17:23:46 * pfn shrugs Dec 13 17:23:56 Alright :/ Dec 13 17:24:00 don't expect analytics numbers to ever match up directly Dec 13 17:24:10 Well I dont Dec 13 17:24:14 But 1 and 25 are pretty dif Dec 13 17:24:23 not really Dec 13 17:24:37 I'm trying to create a canvas (w/ bitmap rendered onscreen) Dec 13 17:24:49 Really pfn Dec 13 17:24:52 should I create this at runtime? or am I going to have to define an object in the xml layout Dec 13 17:25:06 *view Dec 13 17:25:15 when the scales are millions, 1 and 25 are the same thing Dec 13 17:25:51 Ahh see since I only have X downloads I thought my scale would be X Dec 13 17:26:17 But, google play does show "1-5" downloads, then I think the next may be 50? Dec 13 17:26:21 So thats most likely why Dec 13 17:26:54 hi, how can i listen for a buttobclick from a fragment in my main activity? Dec 13 17:27:03 buttonclick* Dec 13 17:27:47 drose379, actual numbers do show up in dev app list about a day delayed d Dec 13 17:28:05 pfn im not seeing correct numbers in my dev console either Dec 13 17:28:26 there's no such thing as correct Dec 13 17:28:37 it IS correct according to google Dec 13 17:28:43 I know I have more then 1 download though Dec 13 17:28:57 I know what you mean though Dec 13 17:29:10 not through play then Dec 13 17:29:37 Yeah I know for a fact I've got more then 1 through play Dec 13 17:29:51 then it's a day delayed Dec 13 17:30:12 Yeah, prob Dec 13 17:32:34 hi all Dec 13 17:32:44 anyone know of any good php notification server? Dec 13 17:32:45 gcm Dec 13 17:33:37 gcm Dec 13 17:33:52 yo yo, drose379 Dec 13 17:33:58 sup Dec 13 17:33:59 drose379: gcm is a service not a lib Dec 13 17:34:11 Ok Dec 13 17:37:43 Hi, I cant find the HAXM accelerator in android sdk manager of android studio 1.5.1 :( Dec 13 17:47:41 vikaton, open the independant sdk manager Dec 13 17:47:49 independent* Dec 13 17:47:53 Bubo: yeah I just found it Dec 13 17:48:34 but now I can't install it because my pc doesnt support Intel virtualizatnio technology Dec 13 17:48:36 :( Dec 13 17:49:11 vikaton, why don't you just use a real device Dec 13 17:49:57 Bubo, I'm a beginner at this, but dont I need haxm to use the interface builder? Dec 13 17:50:07 or is tha just for running the simulation? Dec 13 17:50:10 i dont think so Dec 13 17:50:14 just for the emulator Dec 13 17:50:59 hmm Dec 13 17:51:34 yup. its just for the emulator Dec 13 17:53:57 I dont have the interface builder showing up Dec 13 17:54:06 it says there is no rendering target selected :s Dec 13 17:54:26 select one :p Dec 13 17:54:33 how2 Dec 13 17:55:18 interface builder is useless Dec 13 17:55:44 dudes, push? :-P Dec 13 17:55:59 pfn: i hate any gui for programming Dec 13 17:56:13 idk Dec 13 17:56:24 I like XCode's approad to app development Dec 13 17:56:45 this sounds silly, but in what order does recyclerview call the adapter methods? Dec 13 17:56:59 as in, when does a ViewHolder get created vs being bound? Dec 13 17:57:27 a view holder always has to be created before. being bound Dec 13 17:57:30 drinfernoo, how to bind something thats not created yet? Dec 13 17:57:47 you obviously can't bind something that doesn't exist Dec 13 17:59:04 well that's what I thought too lol told you it sounded silly Dec 13 17:59:33 it is silly Dec 13 18:00:47 do I need android NDK Dec 13 18:00:52 I'm a silly kind of guy ;) I was getting an NPE, but I think I figured it out Dec 13 18:00:57 vikaton, probably not Dec 13 18:01:01 no ndk Dec 13 18:01:26 I find it interesting ndk isn't distributed through sdk manager Dec 13 18:01:38 never really understood. that Dec 13 18:02:01 it is. Dec 13 18:02:39 Just in the new one though. Dec 13 18:04:06 what is the ndk actually for? Dec 13 18:04:15 I really think I need haxm to use the interface builder Dec 13 18:04:20 drinfernoo, c++ on android Dec 13 18:04:22 http://prntscr.com/9dq1xw <--- thats my screen now Dec 13 18:04:24 vikaton, no you dont Dec 13 18:04:41 Mavrik, indeed, the new 2.0 stuff? that's neat then, about time Dec 13 18:04:51 vikaton, click on the small droid in the top barr where it says and select something Dec 13 18:04:57 Yeah, it shows up in the SDK manager inside AS, but not on the old one O.o Dec 13 18:05:56 danijoo: there is nothing to select http://prntscr.com/9dq7m5 Dec 13 18:06:14 vikaton that green android icon with is the problem Dec 13 18:06:21 checking and unchecking auto pick best does nothing Dec 13 18:06:29 vikaton, seems like your setup is broken Dec 13 18:06:30 you need to select something there Dec 13 18:06:38 theres also a gradle sync error in your AS Dec 13 18:06:41 fix that first Dec 13 18:06:41 and you also need at least one SDK installed, like 23 or something Dec 13 18:09:11 it says there is not enough space on the object heap Dec 13 18:09:50 makes no sense http://prntscr.com/9dq9j8 Dec 13 18:11:16 vikaton, its commented out in your dilw Dec 13 18:11:28 oh woops Dec 13 18:11:29 file* Dec 13 18:12:30 commenting it out and saving doesnt work either Dec 13 18:13:26 check if AS recognizes your sdk Dec 13 18:15:53 and people say using AS is easy Dec 13 18:15:56 2 minutes, right Dec 13 18:16:48 danijoo_: I thought I had it setup? http://prntscr.com/9dqcuo Dec 13 18:17:06 vikaton, seems like you didnt Dec 13 18:17:23 easiest way is to set the environment variable to sdk Dec 13 18:18:15 o boy :( Dec 13 18:18:35 but you can also set it in the settings. its the same for AS and INTELLIJ Dec 13 18:19:14 this is my first experience in Android dev Dec 13 18:19:37 obviously :P Dec 13 18:20:45 danijoo_: I have it set :S Dec 13 18:21:05 the environment variable? Dec 13 18:21:37 no in the settings Dec 13 18:21:54 vikaton, try the variable. Im not sure if gradle can grab the setting of AS Dec 13 18:22:20 danijoo_: http://prntscr.com/9dqfwq Dec 13 18:22:49 this is osx, right? Dec 13 18:23:28 no Win 10 Dec 13 18:23:29 oh nvm its windows :D didnt see the C: Dec 13 18:23:37 i was confused because of the light theme Dec 13 18:23:49 yeh i notcied that too Dec 13 18:23:59 google how to set ANDROID_HOME variable in windows Dec 13 18:25:46 I have 1 splash screen that needs to stay up for a while then the app should enter as normal... Thing is if I make this intent then the Ram usage just shoots up almost 100meg >.< So how can I make that intent destroy everyting including the Picture loaded into the ram? Dec 13 18:25:51 danijoo_, its weird, I posted in reptiles and got some good feedback, but posted in /dogs and got nothing Dec 13 18:26:10 drose379, reptile owners are kind persons :) Dec 13 18:26:19 source: Im a kind person Dec 13 18:26:22 lol Dec 13 18:26:40 :p Dec 13 18:26:54 Yes... I have a bearded dragon and a cameloen Dec 13 18:27:17 camileon` Dec 13 18:27:19 Looking to adopt something else cart_man Dec 13 18:27:30 cart_man, I had a bearded too! Dec 13 18:27:35 died L. Dec 13 18:27:37 :/ Dec 13 18:27:43 Awww : / Dec 13 18:27:59 do you live in very cold conditions? Dec 13 18:28:08 Germany Dec 13 18:28:22 danijoo_: Ohh yea ghez Dec 13 18:28:32 Oymyakon, Russia (63.25000000/143.14999390); Conditions: Light Snow; Temperature: -46.1°C (-51°F); Feels-like: -46.1°C (-51°F); High/Low: -40/-46.1°C (-40/-51°F); Humidity: 54%; Wind: Calm Dec 13 18:28:36 t-shirt weather Dec 13 18:29:02 hi there Dec 13 18:29:07 right now I own a garter snake and 4 leopard geckos Dec 13 18:29:09 ohai Dec 13 18:29:26 imagine that I have a string array containing ["hello", "world"] Dec 13 18:29:49 mArray.join(",") is the answer Dec 13 18:29:51 Sooo... anyone on my question up there? Dec 13 18:29:52 how to put "hello" and "world" in the same textview, one in each line? Dec 13 18:30:03 damn! Dec 13 18:30:13 mArray.join("\n") it is then Dec 13 18:32:37 Ashiren how do you guys keep cars running over there? Dec 13 18:32:45 thats cold :D Dec 13 18:32:50 i dont live there Dec 13 18:33:01 g00s, simple: never turn them off Dec 13 18:33:03 vodka freezes there, i dont know how do they live in that place Dec 13 18:33:10 and i read that they turn off their cars Dec 13 18:33:15 dont* Dec 13 18:33:39 i would think the defrosters wouldn't even be able to prevent crystals forming on the inside window Dec 13 18:33:56 so i guess roll down all the windows, open the skylight :D Dec 13 18:33:57 danijoo_, where else should I post? Seems like you're good at this Dec 13 18:34:05 drose379, dunno Dec 13 18:34:09 make flyers! Dec 13 18:34:21 if you have enough money buy ads Dec 13 18:34:29 and dont forget to 1 star all competitors :D Dec 13 18:34:35 Lol Dec 13 18:34:55 I am thinking of sending emails to a few shelters that are found in my app and asking them to tweet out a link and share link on FB Dec 13 18:34:58 Havent heard back Dec 13 18:36:41 They may think I am scamming or something Dec 13 18:42:11 is there an android layout layout item with multiple text fields that i can use in a ListView? Dec 13 18:44:19 siaw, android.R.simple_list_item_2 has 2 textviews, but its also very easy to create your own adapter Dec 13 18:44:49 danijoo_: yeah, i would like to create mine. how do i do that? doing some googling but not sure exactly what to look for Dec 13 18:45:18 oh MY LORD Dec 13 18:45:31 I literally did everything https://spring.io/guides/gs/android/ said Dec 13 18:45:40 but still cant sync my gradle Dec 13 18:45:43 * vikaton cries Dec 13 18:47:14 i have a recyclerview filled with items. when i press a downarrow button on an item ( v ) i would like it to expand but take up the whole area the RV occupied. collapse should make it small again. whats the best way to do this ? Dec 13 18:48:07 i'd like the listview to remain active, scrolling pages up or down Dec 13 18:48:13 err recyclerview Dec 13 18:49:10 hmm. Am I going mad? Dec 13 18:49:29 I've defined the class Traceablecanvasview under TracingActivity Dec 13 18:49:59 but in TracingActivity.xml it throws rendering problem "the following classes cannot be found" Dec 13 18:50:04 "please configure an android sdk location" Dec 13 18:50:08 I ALREADY DID! Dec 13 18:52:25 "tracingactivity.traceablecanvasview" Dec 13 18:52:28 0_o Dec 13 18:53:12 danijoo_: could you help in a join.me ? Dec 13 18:57:49 what is a join.me? Dec 13 18:59:30 danijoo_: its like team viewer but web based, you go to a link and observe my PC Dec 13 18:59:37 no sorry Dec 13 18:59:50 hey, i have a adapter loaded with json results from a server and everytime there is a orientation change the activity ends up making a call to the server. is there a way to avoid all this? Dec 13 18:59:56 "Tatort" starts in 10 minutes :s ^^' Dec 13 19:00:44 :( ok Dec 13 19:00:45 kingwill101, cache the downlaoded data and check the cache before downloading it again Dec 13 19:00:52 sigh i give up for today Dec 13 19:01:43 So if I create a new branch, then checkout the branch, I am only editing the code on that branch? Dec 13 19:03:26 drose379, thats how git works, yeah Dec 13 19:03:32 Awesome Dec 13 19:03:51 So for a new feature, create a new branch, work on that branch, once it works, merge it, and publish an update? Dec 13 19:04:08 if thats what you want Dec 13 19:04:33 Cool, I have a sqlite question for you Dec 13 19:04:53 guys... Dec 13 19:04:58 i wish to send push notification Dec 13 19:05:07 anyone know of any open source project in php? Dec 13 19:05:17 So I need to change the name of a table in my current db, so I need to change the version of the db from 1 to 2 in the constructor, then I need to write the code to ALTER the table in the onUpgrade? right Dec 13 19:05:23 DelphiWorld, yes I wrote one Dec 13 19:05:32 drose379: its open source? Dec 13 19:05:46 I mean I wrote it for one of my apps to use Dec 13 19:05:55 I wonder if its on github Dec 13 19:05:58 able to share? Dec 13 19:06:07 my needs is very simple Dec 13 19:06:17 send just text and a url of a image, so client display it Dec 13 19:06:33 PM me DelphiWorld Dec 13 19:07:17 drose379, as always rftm Dec 13 19:07:32 lol Dec 13 19:07:33 I know you didnt :p Dec 13 19:07:43 I did just wanted to make sure I understood Dec 13 19:08:36 daniele_athome: rtfm, not rftm. crazy ;) Dec 13 19:08:37 lol Dec 13 19:09:07 I feel very bad for daniele_athome. This seems to happen at least once a day ^^ Dec 13 19:09:29 I do it all the time danijoo_ :) Dec 13 19:14:30 android 5.X is pretty fun Dec 13 19:14:36 better a lot for blind users Dec 13 19:14:48 two questions: do you guys put your adapters in their own file? and would you store image and Palette information in the model or view layer? Dec 13 19:17:49 drinfernoo maybe. if you want to reuse it Dec 13 19:18:46 I store them in my classes until they get too big Dec 13 19:18:46 so in general, you would make it a class inside the file wherever its used? Dec 13 19:18:54 (adapters) Dec 13 19:22:57 A screenshot of my issue Dec 13 19:22:58 https://gyazo.com/75dd19c6a6bcc8ffcea21c3e96efe097 Dec 13 19:23:01 https://gyazo.com/231c1e9c8b9b55b113bcd74b6896e650 Dec 13 19:24:11 any ideas? 0_o Dec 13 19:27:06 Are you referring to the rendering issue? Dec 13 19:27:14 Because theres no errors Dec 13 19:28:10 yep, I'm referring to that Dec 13 19:28:22 sorry if my use of vocab is a bit loose, i'm a noob :P Dec 13 19:28:50 *referring to the rendering issie Dec 13 19:28:54 **issue Dec 13 19:29:34 Yea thats because your using a custom view, so it cant render the preview. Dec 13 19:29:43 oh Dec 13 19:29:58 is there any way I can fix this/hide this rendering problem message? Dec 13 19:31:50 Just build it and run on an emulator to see how it comes out? Dec 13 19:32:09 alright, I'll give that a go Dec 13 19:33:12 Trying to run on my device. Says compatible: No - minSdk(API 15) > deviceSDK(API 1). What does that mean, my phone has API version 1? It's not *that* old... Dec 13 19:40:12 Error inflating class Dec 13 19:40:18 looks like I'll have to do some googling. Dec 13 19:42:56 can someone please help me? i’m getting “of type org.json.JSONObject cannot be converted to JSONArray” https://gist.github.com/siaw23/fc0486d748ec33406691 Dec 13 19:44:28 Anyone from Canada? Dec 13 19:49:04 Caused by: java.lang.ClassNotFoundException: Didn't find class "SNIP.funtrace.TracingActivity.TraceableCanvasView" on path: DexPathList[[zip file "/data/app/uk.sch.ealing.castlebar.funtrace-1/base.apk"],nativeLibraryDirectories=[/data/app/uk.sch.ealing.castlebar.funtrace-1/lib/x86, /vendor/lib, /system/lib]] Dec 13 19:49:43 orbyt_: could this be caused by the same issue as the rendering isue? Dec 13 19:49:51 danijoo_, I was on another branch, made a change and tried to marge with master but it says everything is up to date Dec 13 19:50:05 drose379, #git Dec 13 19:50:15 True Dec 13 19:50:45 https://xkcd.com/1597/ ← Dec 13 19:51:09 so true Dec 13 19:51:59 after i learned git stash, i tend to do this less frequently... but i still do Dec 13 19:52:03 Humorousone: Well yea if it cant find then class then your gonna have problems. But the rendering issue is really with any kind of custom view Dec 13 19:52:40 hahaha squirrel Dec 13 19:52:48 orbyt_: what's confusing me is.. the class has been defined. I'm not sure how it couldn't be found Dec 13 19:53:01 see my screenshots from earlier 0_o Dec 13 19:53:54 Humorousone: proguard much? Dec 13 19:54:46 squirrel: I'm not sure what you mean :P Dec 13 19:55:06 was that a jest? Dec 13 19:55:36 Humorousone: is there a reason your view is a second level code? is it in another class? Dec 13 19:57:07 Second level? in what context? Dec 13 19:57:23 It's contained within the .java file associated with an activity Dec 13 19:57:28 that's where the class is defined. Dec 13 19:57:39 It's not contained within another class Dec 13 19:57:53 oh wait Dec 13 19:59:04 who ever nukes git clones... Dec 13 19:59:28 it's so hard to irreversibly fuck up Dec 13 20:00:01 you have to intentionally fuck up Dec 13 20:00:36 except for push -f, but then you're fucking up someone else Dec 13 20:05:44 i'm dumb and git is hard for me and your use of bad awful words is excessive Dec 13 20:06:23 rebase all the things! Dec 13 20:06:44 its a simple calculation. clone vs investigating what the problem is Dec 13 20:10:25 clone is always faster :P Dec 13 20:10:40 --depth 1 ftw Dec 13 20:33:19 Anyone know whats wrong with this syntax? Dec 13 20:33:20 "ALTER TABLE favorites RENAME COLUMN favorites.lastUpdated TO shelterId" Dec 13 20:34:02 having a really hard time trying to get espresso instrumentation tests to run, anyone seen this error before, or have any suggestions? Test running failed: Instrumentation run failed due to 'java.lang.NullPointerException' Empty test suite. Dec 13 20:34:36 drose379 can't rename columns ... i dont think anyhow Dec 13 20:35:23 Damnit Dec 13 20:35:40 Saying I need to create a whole new table, copy everything over, then drop the old? Dec 13 20:35:47 yeah Dec 13 20:37:27 is it something to do with productflavours maybe? Dec 13 20:37:28 Damn Dec 13 20:40:36 Hello Dec 13 20:40:45 orbyt_: Restarting android studio fixed the issue... Dec 13 20:40:49 orbyt_: odd. Dec 13 20:42:32 restarting often helps Dec 13 20:45:00 #join ##maths Dec 13 20:45:03 oops haha Dec 13 20:45:08 meths? Dec 13 20:45:18 and its "math" because USA Dec 13 20:45:53 does anybody in here knows a way to refresh a live wallpaper canvas without having to rewrite the background bitmap everytime? Drawing it every time at a 30FPS rate uses 12% of CPU which is way too high. Dec 13 20:46:20 I constantly have to redraw atleast a part of the background because I'm drawing a visualizer on top of it Dec 13 20:49:02 well, nevermind. it didn't help Dec 13 20:49:16 I just had a derp moment, deleted a line of code that was causing the error.. then forgot about it Dec 13 20:49:35 use commenting Dec 13 20:50:00 Ugh - I hate it when #latex is quiet. Dec 13 20:50:11 I'm going to chill out, my brain hurts Dec 13 20:50:17 thank for the suggestions, and goodnight Dec 13 20:58:21 Erik95, use OpenGL or at least a surfaceview Dec 13 21:04:06 I am currently using a surface from which I lock the canvas, do my calculations and then unlockCanvasAndPost. However, even just drawing a full screen bitmap uses 12% of cpu which ends up to around 20% when I'm drawing the visualizer itself aswell Dec 13 21:05:10 Isn't there a way to like backup a default canvas with the bitmap already on it? I had tried that before but it ended up making my screen flash from black to the bitmap continuosly Dec 13 21:27:28 finally got instrumentation tests working, i just deleted the productflavor mock and switched over to using 'dev' Dec 13 21:42:25 How do I create a step-wise android animation? Something like: first move to x pos whatever, then move to x pos whatever2. Dec 13 21:46:24 looking for a mobile analytics that will allow me to export filtered results for sponsers, or allow me to create accounts that only have access to specific metrics. any suggestions? Dec 13 21:49:15 When creating a custom LayoutManager for RecyclerView, how do you determine what type of view it is at each position without accessing the Adapter? Dec 13 22:01:36 squirrel: sorted out my issue. Dec 13 22:01:51 squirrel: Fixed it by placing my class inside it's own java file Dec 13 22:02:12 squirrel: ty for the suggestions. Dec 13 22:04:17 Humorousone: :3 Dec 13 22:04:50 Humorousone: could've used tho Dec 13 22:30:51 To use a snackbar I have to use a Theme.AppCompat theme? Not a new one like Theme.Material? Dec 13 22:34:30 gopar, one is the support version of the other Dec 13 22:35:13 danijoo_, so how can I use a snackbar with Material. I get error that I need to use appcompat theme. Dec 13 22:35:52 AppCompat is material Dec 13 22:38:10 danijoo_, hmmm so just use AppCompat for all themes? Dec 13 22:38:18 yes Dec 13 22:39:02 mmmm ok Dec 13 22:44:42 can someone confirm my understanding/correct me on how custom views work in android Dec 13 22:45:47 If I create a View class in it's own .java file, and create an instance of that view in the layout.xml file, it will bring with it all of the overrides defined in the class.java file Dec 13 22:46:27 Humorousone, xml file is just a plan for the layoutinflater how to create and configure the java classes Dec 13 22:46:29 so es Dec 13 22:46:31 yes* Dec 13 22:46:37 oh, cool Dec 13 22:46:44 thanks :) Dec 13 22:46:59 I find the name funny for some reason. Dec 13 22:47:11 what name Dec 13 22:47:35 inflator Dec 13 22:47:39 i don't know why. Dec 13 22:47:41 wow, Windows 10 Mobile updates no longer need carrier approval. So that leaves Google. Dec 13 22:47:57 # Windowsphonemasterrace ;) Dec 13 22:47:59 *sighs* ... sad times, google, sad times Dec 13 22:48:18 Hi guys. I've just installed Android Stduio 2.0 preview 3, but cannot have the new AVD and emulator interface like advertised here --> http://android-developers.blogspot.be/2015/12/android-studio-20-preview-android.html Dec 13 22:48:37 I connot resize the emulator nor change network etc. settings on the fly. Dec 13 22:48:38 g00s, this was never a thing in europe fortunatly.. Dec 13 22:49:06 I'm just testing the new GUI (I know these settings could be changed telneting to the emulator like in previous Android Studio versions) Dec 13 22:49:14 wget, update sdk Dec 13 22:49:47 danijoo_: I have the latest version available: 24.4.1 Dec 13 22:50:23 hmm maybe playing with 25 rc1 could help Dec 13 22:50:49 yes you need sdk tools 25, platform tools 23.1 and the newest HAXM version Dec 13 22:50:53 see http://tools.android.com/tech-docs/emulator Dec 13 22:51:27 danijoo_: HAMX? I'm running on linux and I see the HAMX is not compatible... Dec 13 22:51:36 I've always used x86_64 emulator versions up to now Dec 13 22:51:59 yeah no haxm then Dec 13 22:54:45 How is one supposed to create consistent font/layout sizes on different screen densities? Even with density-specific folders, things can look drastically different even on phones with the exact same resolution and screen size, because of differing density values. For example, Note 4 = 640, Nexus 6P = 560. Almost a 100 dpi difference on screens of the exact same size and resolution. Dec 13 22:55:38 So what looks great on my Nexus 6P looks awful on my Note 4 Dec 13 22:57:17 a key aspect is to not put too much stuff into a view Dec 13 22:57:22 or screen Dec 13 23:07:04 Case in point. N6P: http://silentbyte.net/screenshot1.png Dec 13 23:07:09 Note 4: http://silentbyte.net/screenshot2.png Dec 13 23:07:22 Everything is ginormous on the Note 4! Dec 13 23:08:45 hey guys Dec 13 23:08:56 i have been battling this with sometime Dec 13 23:09:27 im sorry for newbie question but you guys see any problem with this? i can find any answer to what i did wrong.. Dec 13 23:09:29 http://justpaste.it/pntz Dec 13 23:10:23 No line numbers. pff Dec 13 23:10:33 ouh Dec 13 23:17:59 You're most likely looking up either the wrong id or the correct id but on the wrong parent Dec 13 23:24:00 need to comp it through i guess Dec 13 23:24:04 one by one Dec 13 23:35:51 Guys. Do you uknow if device encryption should be working in the emulator? Dec 13 23:36:24 I would assume it should but I haven't tried it on 6.0 Dec 13 23:36:30 I tried sevral times and checked the progress with adb logcat, but I've nothing regarding "crypt" dmcrypt etc. appearking in the logs. Dec 13 23:37:15 the emulator device rebooted straight away Dec 13 23:37:53 and the encrypt menu is still present inviting me to perform the same steps to encrypt the device. I assume it shouldn't invite me to proceed to the encryption if the device was encrypted Dec 13 23:38:13 I cannot say since I never succeeded to encrypt any of my devices (physical or not) Dec 13 23:46:46 any particular reason you'd want to encrypt the emulator? it's not likely you'll leave it somewhere, or have it stolen... Dec 13 23:55:17 question: I have a list, with ImageViews, being populated by Picasso, and containing views colored by Palette using a PaletteTransformation pattern. on tap, those rows launch an Activity, which I want to display the same image and use the same Palette colors for accents. how would you guys approach that in order to not make extraneous Palette and Picasso calls? Dec 13 23:56:35 TacticalJoke, can you help me a bit with the reddit api since you are making a reddit app? Dec 13 23:58:36 TacticalJoke, how is your app coming, btw? any sneak peeks? ;) Dec 14 00:01:01 Bubo: Depends on what the question is. drinfernoo: It's going well, though no sneak peeks yet. Dec 14 00:01:51 TacticalJoke, do you get a permanent token or temporary one? Dec 14 00:02:26 They're all temporary. AFAIK, they last for 30 minutes or 1 hour (one or the other; I can't remember right now). Dec 14 00:02:51 TacticalJoke, alright. Dec 14 00:03:05 TacticalJoke, you don't set a redirect uri for an installed app? Dec 14 00:03:36 also how do you handle the refreshing of the token? Do you just do it every xx minutes or? Dec 14 00:03:47 only when it fails? Dec 14 00:07:46 I think it's best to keep track of the time you got the token and refresh only when needed, but you can do it either way. Dec 14 00:08:17 RedReader is an open-source Reddit app that mainly gets things right. Here's his implementation of OAuth: https://github.com/QuantumBadger/RedReader/commit/de5cade830f86749b89394216c7ef2d65c57745f Dec 14 00:09:47 thanks TacticalJoke Dec 14 00:14:09 TacticalJoke, any input on this? Dec 14 00:14:12 question: I have a list, with ImageViews, being populated by Picasso, and containing views colored by Palette using a PaletteTransformation pattern. on tap, those rows launch an Activity, which I want to display the same image and use the same Palette colors for accents. how would you guys approach that in order to not make extraneous Palette and Picasso calls? Dec 14 00:16:25 How do I add a 3rd party library in AndroidStudio? I put the jars inside the libs folder, but it still doesn't work Dec 14 00:17:44 nvm Dec 14 00:17:45 Bubo edit your gradle file, don't put stuff in libs/ unless last resort Dec 14 00:18:17 g00s, well I want to use the Google OAuthClient Dec 14 00:18:43 I didn't see any compile("xx") in the tutorial on how to setup it Dec 14 00:18:59 Bubo is it part of GMS ? Dec 14 00:19:27 g00s, gms? Dec 14 00:20:35 Bubo are you using https://developers.google.com/android/reference/com/google/android/gms/auth/GoogleAuthUtil Dec 14 00:20:40 etc Dec 14 00:20:55 Bubo: You don't need to use that for Reddit authentication, BTW. Dec 14 00:21:01 If you know what you're doing, it's quite straightforward. Dec 14 00:21:04 g00s, https://developers.google.com/api-client-library/java/google-oauth-java-client/oauth2?hl=en Dec 14 00:21:25 Bubo listen to TacticalJoke :) Dec 14 00:21:29 TacticalJoke, so just handle everything myself? opening urls and stuff? Dec 14 00:21:31 alright Dec 14 00:22:03 I haven't used OAuthClient, so I can't say much about it. But I was never tempted to use anything else, personally. Dec 14 00:22:30 are there any major downsides to having an app directly use sqlite on a file to make its database instead of going through the android way of doing things? Dec 14 00:23:06 (Anything other than basic HTTP requests and stuff, I mean.) Dec 14 00:23:27 TacticalJoke, do you use HTTLUrlConnection for requests or is there a better way Dec 14 00:23:32 Http* Dec 14 00:24:00 I use OkHttp. Dec 14 00:24:25 dagger with circular dependencies, bad or does dagger do some good magic? Dec 14 00:24:43 Speaking of HTTPUrlConnection, anybody know why my input stream from a valid web address always returns 0 bytes? Dec 14 00:25:05 TacticalJoke, so for installing OkHttp do I just put compile 'com.squareup.okhttp:okhttp:(insert latest version)' inside my gradle build file? I don't need to put any libs anywhere? Dec 14 00:25:22 Yeah. Dec 14 00:25:56 awesome Dec 14 00:31:06 Bubo: are you the same Bubo from foonetic? Dec 14 00:31:11 if so hi :D Dec 14 00:31:57 Are there any permissions or anything that a "Google" app can do that a regular app can't? I'm trying to find an android cupcake dev video I saw a while ago, and it said the goal of android was that no one is actually limited in making a certain feature on a phone, just because theyre the manufacturer or something. Dec 14 00:31:59 lizzie, sorry but no Dec 14 00:32:14 oh oh well :P no worries Dec 14 00:32:20 hi anyway :) Dec 14 00:32:25 hi! hehe Dec 14 00:33:08 TacticalJoke, where do you keep your _secret_ ? Where is it safe to keep it? Dec 14 00:34:47 Installed apps don't get a 'secret'. Dec 14 00:34:53 Check . Dec 14 00:35:06 Wait Dec 14 00:35:29 I don't see how it could ever be safe to ship an app with a secret Dec 14 00:35:47 TacticalJoke, there is one in the prefs/apps in reddit but I guess I just dont use it Dec 14 00:36:16 no wait that's the client_id ._. Dec 14 00:37:26 Check https://www.reddit.com/prefs/apps/ Dec 14 00:37:50 Oh, sorry, you mentioned that. Dec 14 00:39:36 TacticalJoke, so inside prefs/apps/ the code below the app name is the client_id right? Dec 14 00:54:58 Hey anon, I'm from the /g/ thread. Dec 14 00:55:07 my bad, just registered. Dec 14 00:55:49 So I'm new to appdev, wanted to start with android because of the freedom compared to iCuck Dec 14 00:56:03 learning java would be the first step, yes? Dec 14 00:57:18 Yeah Dec 14 00:57:58 any resources you recommend for that? Dec 14 00:58:02 BenisBoy, pm'd you Dec 14 01:00:04 TacticalJoke, since installed apps don't use a redirect uri what happens? do you just get a response from reddit when they allow the app to auth? Dec 14 01:00:47 I'm upgrading my apps to use permissions (finally). Do I have to do API checks? Like if (api 23 or higher){ do permission check things } else {you've got permission}? Dec 14 01:08:06 Bubo: You can use a WebView and listen out for a URL redirect. Isn't this stuff documented somewhere? In any case, that RedReader changeset gets it right, AFAIR. Dec 14 01:08:43 TacticalJoke, thanks Dec 14 01:22:40 TacticalJoke: speaking of WebViews, I would like to play a video inside a WebView while maintaining API 14 compatibility. Any recommended libraries to acheive this? Dec 14 01:30:53 hi all. again) Dec 14 01:31:22 do anyone knows a quick way to change resources from upper case to lower case? Dec 14 01:31:38 CRÉER ÉVÉNEMENT Dec 14 01:32:13 I have lot of this, and want all of them to become lower case strings Dec 14 01:32:27 maybe there is some plugin for IDEA Dec 14 01:34:16 https://www.jetbrains.com/idea/help/finding-and-replacing-text-in-file.html#change_case Dec 14 01:34:31 https://www.jetbrains.com/idea/help/toggling-case.html Dec 14 01:35:51 bankai_ : thanks, first one looks like what I need Dec 14 01:35:59 TacticalJoke: nap time? Dec 14 01:49:58 vigilancer: Couldn't you just getString(R.string.create_event_big).toLowerCase()? Dec 14 01:50:22 eghdk_ : every here and there. seems like overburden Dec 14 01:50:37 eghdk_ : regex did the trick Dec 14 01:56:37 Hey, I'm getting started with making apps and I created a "Scrolling Activity" in Studio. But I cannot add any children to the layout or modify it in any way except for deleting things. Any idea why? Dec 14 01:56:47 I eventually started with an empty layout and added my own ScrollingView, etc to make what I wanted. Dec 14 01:58:42 It's probably best to use the Text tab. The Design thing is probably useless for serious Android development. Dec 14 02:00:14 TacticalJoke, so, get used to typing in the various XML tags for different things? :) Dec 14 02:00:21 Let me see if that actually works Dec 14 02:02:17 Oh the autocomplete works very nicely Dec 14 02:02:18 Trying to push it to my phone now Dec 14 02:04:28 I think Android layouts don't lend themselves well to drag-and-drop input. Dec 14 02:05:03 Heh it worked, thanks TacticalJoke Dec 14 02:05:11 Yeah, this is reminding me of HTML and fighting with Dreamweaver Dec 14 02:05:22 Easier to just do it in text mode and use Dreamweaver as an (inaccurate) preview Dec 14 02:05:45 Supertanker2: There is a preview tool window in the Text tab. You might have to double-press Alt if you can't see it. Dec 14 02:05:56 TacticalJoke, I see it, it works well. Dec 14 02:06:08 Onward with the tutorials I guess Dec 14 02:14:14 strange - even though android 4.2 release notes say child fragments must be dynamically created, embedding them in with in layout instead seems to work. or does it. Dec 14 02:14:30 so hard to tell when things are working or not with android :D Dec 14 02:33:32 how can I get the system time in milliseconds using adb? Dec 14 02:34:23 I've tried adb shell echo \$EPOCHREALTIME, adb shell "busybox date +%N", both not work Dec 14 02:35:26 adb shell date +%s Dec 14 02:35:29 should work Dec 14 02:35:38 it does Dec 14 02:35:51 alex_PP, it returns time in seconds, but not milliseconds Dec 14 02:36:57 oh, sorry Dec 14 02:38:28 np Dec 14 02:39:54 why do you need to know? Dec 14 02:43:57 alex_PP, I have to know the time DELTA in milliseconds between my PC and android Dec 14 02:44:23 just get the standard unix timp stamp and add three 0's to the end ;) Dec 14 02:46:13 zhangxaochen the latency between your machine and phone, sending the command, getting the result, is going to make tens of ms meaningless Dec 14 02:46:38 I was looking for a way to say that g00s Dec 14 02:48:10 g00s, maybe tens of ms is acceptable, so first how to get the time in ms using adb? Dec 14 02:49:35 zhangxaochen, http://stackoverflow.com/questions/732034/getting-unixtime-in-java Dec 14 02:49:41 assuming that will work fine for phones too Dec 14 02:52:11 SU-14, I'm trying to get phone time on my PC, that's why I'm trying to use adb Dec 14 02:52:43 on windows? Dec 14 02:52:52 so that I can get the time of phone && PC at the same time (maybe tens of ms latency) Dec 14 02:52:56 alex_PP, yes windows Dec 14 02:53:57 isn't windows time only accurate to 100ms or something? Dec 14 02:54:00 been a while Dec 14 02:54:12 alex_PP, you can query the hardware clock on the mobo if you want to be really precise Dec 14 02:54:16 but thats WAY over kill Dec 14 02:54:24 zhangxaochen, got pythom java or perl installed? Dec 14 02:54:31 any one of them has funtions to get time that is reasonable accurate Dec 14 02:54:40 SU-14, yes Ihave python and java Dec 14 02:54:57 you mean python on the phone? Dec 14 02:55:25 zhangxaochen, you said you need the time on your pc Dec 14 02:55:31 for that you can use java http://stackoverflow.com/questions/732034/getting-unixtime-in-java Dec 14 02:55:32 like this Dec 14 02:56:18 SU-14, why do you mention java? how can I use it to get time from *PC*? Dec 14 02:57:20 I know i can get time using that code on the phone, but I need to get the PC time at the same time, which seems to be impossible Dec 14 02:57:47 oh, use a standard TCP service on the phone OR pc, get the phone to ping/pong the server over TCP measure the latenct difference Dec 14 02:57:58 and then re post the current timestamp with the lag corrected for **** ENDING LOGGING AT Mon Dec 14 02:59:58 2015