**** BEGIN LOGGING AT Sat Aug 09 02:59:59 2014 Aug 09 03:04:09 never done that or looked into it Aug 09 03:04:20 but C is not calling finish to return to A Aug 09 03:04:32 so there would be no onActivityResult Aug 09 03:04:38 that would be delivered to b Aug 09 03:04:54 so you would have to maybe do it anther way or pass the data back Aug 09 03:05:07 as in A > B > C > B > A Aug 09 03:05:09 I would just assume the result flows exactly the opposite direction from calling the activities, despite any flags set Aug 09 03:05:57 so yeah, if you need the result from C passed to A, your best and safest bet would be to forward it manually Aug 09 03:15:17 StingRay_ have you ever run into this before ? since you are Mr Theme / Style ;) http://stackoverflow.com/questions/8041537/how-to-reference-style-attributes-from-a-drawable/13471695#13471695 Aug 09 03:15:45 Mr Theme and Style, is that like Mr Game and Watch? Aug 09 03:17:10 g00s_: i dont like or agree with android's erm, xml style crap… or the parse time, so dont use xml or styles like that, I do my own and own format…work ok, and in a few tests i did, quicker too… users dont mind and easier for me :) Aug 09 03:17:41 its a stupid system Aug 09 03:17:58 I can have what you or android call styles linked to anything, states, combo of states etc Aug 09 03:18:18 not something that is easy if at all poss with the xml crap Aug 09 03:19:15 I can also have references and inheritance in a style that is dynamic with conditions of my choosing :) Aug 09 03:19:37 down side is I have to theme views, but it's surprisingly quick Aug 09 03:19:38 GitHub or it didn't happen ;-) Aug 09 03:19:57 allows me to open up a theme editor and theme settings for users too Aug 09 03:20:01 which have done Aug 09 03:20:14 simple colors but all drawables supported soon Aug 09 03:20:22 or thats the plan Aug 09 03:20:41 Ive found what my problem is when trying to come up with a project on my own and getting put off Aug 09 03:20:51 I find it hard to get excited about something without a purpose Aug 09 03:21:07 well thats easy solved Aug 09 03:21:09 I can develop for clients, fine. I can develop to solve a problem. Fine. I can't develop something for the sake of developing it... Aug 09 03:21:22 choose somethign with purpose Aug 09 03:21:22 And I cant find problems to solve very easily haha Aug 09 03:21:25 always Aug 09 03:22:44 i do like this sqlite firefox app Aug 09 03:22:47 I cant find anything to develop to solve something Aug 09 03:23:04 find a dev tool or process that sucks, and improve it Aug 09 03:23:21 every open source contribution i've ever done has been motivated by something causing me pain at work Aug 09 03:23:25 I dont think I am proficient enough yet to be able to improve on what other people have done. Aug 09 03:23:56 then take something you like and try to rebuild it Aug 09 03:24:05 if you're just looking for exercises Aug 09 03:24:07 Goes back to the purpose thing :/ Aug 09 03:24:16 Im looking for exercises with a purpose I guess Aug 09 03:24:27 Best of both worlds, although I know Im not likely to find it Aug 09 03:24:29 i think you'd be surprised at the amount of room for improvement in almost anything out there Aug 09 03:25:06 Im best when given a bunch of requirements I think :/ Aug 09 03:25:13 Its annoying :/ Aug 09 03:25:17 Anthaas what makes you mad ? Aug 09 03:25:17 I hate this part of myself haha Aug 09 03:25:24 there is *always* something that sucks, and there is usually something that sucks that's not too difficult to solve Aug 09 03:25:44 Mad, haha. Im too laid back a person in everyday life. I haven't raised my voice in years Aug 09 03:26:20 there are too many problems in the world for an informed person not to get mad ;) Aug 09 03:26:42 i haven't either but dealing with serializing loaders via android's mechanisms frustrated the hell outta me. so i wrote a helper library. Aug 09 03:26:48 I understand this, but I also understand when situations are out of my control, and realise there is no point getting frustrated when I lack the ability to do anything about it. Aug 09 03:26:59 android-test-kit kicks ass but it requires white-box testing. so i wrote a black-box fork Aug 09 03:27:13 anything that doesn't work like you think it should, make it :) Aug 09 03:27:43 What would be quite cool - would be if someone could give me an app to make, requirements and what not, and then I'll develop it, and get feedback and things. Aug 09 03:27:46 Anthaas you might not be able to do something about it, but maybe join a group who is doing something about it. maybe then something presents itself where "aha, i can write an app..." Aug 09 03:28:07 I'd like to improve in just developing before going to far out into looking at other peoples work. Aug 09 03:28:20 all my friends who smoke too much weed can't find a cause Aug 09 03:28:33 not to be too blunt but i think that's foolish Aug 09 03:28:33 probably because their brain can't process dopamine any more Aug 09 03:28:42 Oh be blunt. Aug 09 03:28:45 I know it is. Aug 09 03:28:48 looking at/deciphering/re-engineering/fixing other people's work is one of the *best* ways to improve Aug 09 03:29:42 I would LOVE to write a library Aug 09 03:29:44 that old adage.. "endeavor to make yourself the dumbest person in the room; for if you succeed, you won't be for long" Aug 09 03:29:45 But for what haha Aug 09 03:29:56 I know I am Aug 09 03:30:04 Some of the people in here make me want to be great. Aug 09 03:30:13 immerse yourself in trying to fix code written by great devs and you'll find yourself very skilled in short order Aug 09 03:30:15 I honestly feel thick as two short planks at time, and I love it. Aug 09 03:30:39 The problem is, I am usually unable to find the things that need to be fixed. Aug 09 03:30:46 I dont have a github account. Aug 09 03:30:53 I never developed anything myself to show. Aug 09 03:31:06 Which is poor form, I know. Aug 09 03:31:35 i never got the "i don't have github, i've got nothing to show" Aug 09 03:31:40 I still use it Aug 09 03:31:49 Looking at code etc Aug 09 03:31:59 I look at iosched too for example - I love this, and have learnt a few things already! Aug 09 03:32:58 on my own github you'll find a dozen forks that i've likely not done anything with, and a shitty Apple CoverFlow implementation Aug 09 03:33:06 https://github.com/tophyr Aug 09 03:33:20 not having much to show on GH != not having much to offer Aug 09 03:33:54 hell. if you want something to improve, take that coverflow repo and run with it Aug 09 03:34:05 fwiw I've been having fun building an app for a small company that can't properly afford one. we laid out ground terms that it's strictly spare-time and I intend to experiment with structure (e.g. I started heavily event-bus based, built my own, eventually I'll shift to reactive), they're going to run a small campaign to pay me something, and it's fun. there's a concrete goal, i'm doing stuff I would never get away with at work, and I'm finding all manner Aug 09 03:34:15 figure out how to make it smoother and faster - that'll learn you some view programming Aug 09 03:35:36 Anthaas: do a game :) Aug 09 03:36:09 now, thats pointless :D Aug 09 03:36:15 StingRay_: I may do eventually, I guess. I really don't like games though - I hate them. I do not have any on any of my devices. They frustrate me. Aug 09 03:36:38 Actually, what I hate is that my niece can't play any games on her tablet without getting inundated with ads Aug 09 03:36:46 sarbs: Looking into forking it now :D Aug 09 03:37:26 Thats not what I wanted to do is it Aug 09 03:37:29 I wanted to download it haha Aug 09 03:37:33 lol, well cool :) i hang out here daily if you have q's with it. full disclosure: i don't even remember whether it pages horizontally or vertically Aug 09 03:37:56 in order to develop on it what you'll want to do is sign up for GH, fork it to your account, then clone it to your computer Aug 09 03:38:19 that way when you make commits and push them, they'll get pushed back to your fork of the repository - you won't have rights to push to mine Aug 09 03:38:26 Sweet :D Aug 09 03:38:34 Im sure Ill be asking you a few things Aug 09 03:38:40 you can then make pull requests that i'll see which'll let me merge your changes back in Aug 09 03:39:15 Ok, so faster scrolling etc, what other issues are there you know of that I could look into? Aug 09 03:40:01 sometimes that info bubble in AS/IJ makes me want to kill my computer Aug 09 03:40:17 pops up over your cursor preventing clicks Aug 09 03:40:23 is there are way to disable ? Aug 09 03:40:29 StingRay_ yeah i thought that was just me Aug 09 03:40:36 it actually pops up over the cursor Aug 09 03:40:39 obscuring it Aug 09 03:40:56 and thats been going on since i started using AS from the beginning. not too often though Aug 09 03:41:00 half expecting "So it looks like youre attempting to write an app?" Aug 09 03:41:38 sarbs: Sorry, that was to you, I really should get back into the habit of tagging people Im talking to Aug 09 03:41:51 Anthaas i can't remember off the top of my head.. there may or may not be a sample app, if there is check it out Aug 09 03:41:58 no worries, i'm back and forth between the kitchen anyway Aug 09 03:42:19 if there's not a sample app, that'll be task #1 - write something that uses the library and finds its failings (they won't be difficult to find) Aug 09 03:43:30 Cool :D Aug 09 03:43:33 Ill get right on it Aug 09 03:43:37 Thanks by the way Aug 09 03:43:48 i remember wanting to add anti-aliasing to the rendering and the mirrored image below, a la apple's renderings Aug 09 03:44:07 lol, of course man Aug 09 03:44:58 So I cloned coverflow into ASProjects folder, is this correct? haha Aug 09 03:45:02 Seems it! Aug 09 03:48:19 Anthaas: learn how to set the cursor color of an edittext view in code Aug 09 03:48:45 then tell me :) Aug 09 03:49:03 haha Aug 09 03:49:29 well the cursor is under TextView i think Aug 09 03:49:42 but still, all the little things that really make me mad Aug 09 03:49:49 you would think it simple to do Aug 09 03:50:04 Seems like quite a niche functionality request Aug 09 03:50:48 totally, if you only ever use black or white Aug 09 03:50:52 :) Aug 09 04:16:53 hello doea anybody have experince to compile MMS source code Aug 09 04:27:27 as i need to send MMS programmatically without using an INTENT Aug 09 04:28:15 but no success Aug 09 04:28:41 there is no open source library available Aug 09 04:29:07 although i have checkout the android MMS source code but unable to compile it... Aug 09 04:29:12 its too huge Aug 09 04:36:29 android system apps are generally not meant to be compiled on their own outside the source tree, as they are quite integrated with the core and with each other Aug 09 04:36:52 lots of dependencies to resolve/replicate Aug 09 04:37:57 yes you a right Aug 09 04:38:16 so thats why i am looking for some other solution Aug 09 04:39:14 the only "legal" or "official" solution that I know of is using the system-provided stuff via intents Aug 09 04:40:27 actually what i need is redirect the last recived MMS to some other number programmatically Aug 09 04:40:52 where there is no user interaction Aug 09 04:41:43 even in market there are lots of app which are doing this Aug 09 04:42:03 wiithout using an INTENT they can forward MMS Aug 09 04:44:53 why do I need CWM to backup STOCK ROM while I'm SuperUser under Terminal IDE? Aug 09 04:44:59 which file(S) shall I copy/backup as a STOCK ROM for later restoration? Aug 09 04:45:23 LFS please read topic Aug 09 04:49:24 I did already Aug 09 04:49:38 please read it again Aug 09 04:50:00 no Aug 09 04:50:01 this time, comprehend it Aug 09 04:50:08 no but thanks Aug 09 04:54:50 wow Aug 09 04:59:44 StingRay_ when do you think you'll be out of beta ? Aug 09 04:59:57 few weeks maybe Aug 09 05:00:03 lots to do still Aug 09 05:00:18 and a few things to decide Aug 09 05:00:43 I will come out of beta then add polish I think Aug 09 05:00:54 havent seen you around for a while, did you take a break from the project for some time ? Aug 09 05:01:05 well i'sh Aug 09 05:01:09 and was a bit ill Aug 09 05:01:12 for a while Aug 09 05:01:23 getting better and mind is getting going again Aug 09 05:01:25 :) Aug 09 05:01:32 glad to hear that ;) Aug 09 05:01:37 ready to take on the likes of chomp sms :) Aug 09 05:02:20 I still have to decide if I want to allow my users to create themes and share them Aug 09 05:02:41 or if it's better that I do it (cause it's so easy) and that could be a revanue stream Aug 09 05:02:50 unsure yet Aug 09 05:02:52 oh, like an IAP ? Aug 09 05:03:05 well I have 2 IAP's atm Aug 09 05:03:17 silly ares buy them too, not that they do anything currently Aug 09 05:03:39 well no, I think people just want to support me really, so it's nice Aug 09 05:03:46 but yeah IAP for themes Aug 09 05:04:03 i'd let them be able to customize it, if (1) lots are asking for it and (2) its not going to be a big support headache - lile most excessive customization ;) Aug 09 05:04:14 erm, no you can customize Aug 09 05:04:22 themes can come with settings Aug 09 05:04:28 theme creator is something diff Aug 09 05:04:33 ok Aug 09 05:05:16 theme creator allows you to do dimensions, anims, relationships, states etc Aug 09 05:05:40 theme settings allow you to alter variables that are there, theme creator allows you to create Aug 09 05:05:47 thats a better way to look at it :) Aug 09 05:46:25 is it possible to make the widget's clickable area to be larger than the widget? Aug 09 05:46:58 yes Aug 09 05:47:39 johnflux: its what http://developer.android.com/reference/android/view/TouchDelegate.html is for Aug 09 05:48:04 johnflux: example here: http://developer.android.com/training/gestures/viewgroup.html#delegate Aug 09 05:48:32 Napalm: is it possible to use that within the arduino studio gui editor thing? Aug 09 05:48:43 Napalm: it feels like a hack to do it in code Aug 09 05:48:50 arduino studio? Aug 09 05:48:56 grr sorry Aug 09 05:48:59 android studio Aug 09 05:49:06 its suppose to be done in code Aug 09 05:49:20 Napalm: it can't be done in the xml file? Aug 09 05:49:28 the gui editor is for newbs Aug 09 05:49:36 +1 Aug 09 05:49:39 Napalm: maybe, but the xml file is nice Aug 09 05:49:42 Napalm: I wonder if I can just use padding for the same effect Aug 09 05:49:46 you probably just want to use it to understand how it edits the xml Aug 09 05:50:04 johnflux: yes you can use padding Aug 09 05:50:07 most people do Aug 09 05:50:21 but that actually increases the area of the view.. not just its touch area Aug 09 05:52:05 With a relative layout, how do I put one item underneath another one? Aug 09 05:52:21 alignBottom align's, well, the bottom Aug 09 05:52:33 I'm not seeing how you align the top of one with the bottom of another Aug 09 05:53:16 tis a condition Aug 09 05:53:20 topbottom Aug 09 05:53:45 in code takes an anchor in the layout rules and then the rule "topBottom" Aug 09 05:53:56 in the editor it's there too, in a little drop down Aug 09 05:54:16 anchor = viewId that it's releation to Aug 09 05:54:42 StingRay_: in xml, what's it called? at the moment I have: android:layout_alignBottom="@+id/pager" Aug 09 05:54:49 How do I make the navigation drawer to overlap ActionBar? Aug 09 05:54:50 no Aug 09 05:54:52 StingRay_: to align it to the bottom of "pager" Aug 09 05:55:17 johnflux: use android:layout_below or android:layout_above Aug 09 05:55:29 layout:alignComponent Aug 09 05:55:37 they are the rules Aug 09 05:56:15 but make sure there is a need to have a relativeLayout Aug 09 05:56:22 rather than a simple linearLayout Aug 09 05:56:50 yoavst: you have to detach and remove the content of the getWindow().getDecorView() and re-attach it inside your DrawerLayout and then set your DrawerLayout as the only child to the decorView Aug 09 05:58:04 StingRay_: thanks - I think I'll switch to a linear layout. layouts can have backgrounds? Aug 09 05:58:34 yeah adding a background seems to work Aug 09 05:58:36 cool Aug 09 06:00:19 i think there is a feature request to dsiable designed for AS Aug 09 06:00:24 *disable Aug 09 06:00:52 whats up Napalm Aug 09 06:00:58 what up Aug 09 06:01:16 Napalm: Is the an examle? Aug 09 06:01:20 example* Aug 09 06:01:36 im just working on getting the Action Item Button's to animate like the videos of L Aug 09 06:01:48 got the nice scale animations working Aug 09 06:02:03 just cant seem to get them to scale in order Aug 09 06:02:06 oh nice, i'm still trying to make my app nice on holo :( Aug 09 06:03:03 what's holo? Aug 09 06:03:28 oh dear god Aug 09 06:03:37 the last amazing thing before material Aug 09 06:04:02 basically a odd style guide for programmers that dont design or have no designer :) Aug 09 06:04:10 ah Aug 09 06:04:14 ment to make all apps look and act the same ;) Aug 09 06:04:19 so you dont know what your using Aug 09 06:04:21 lol Aug 09 06:04:22 Holo is Android's "Design Language" for Honeycomb to KitKat Aug 09 06:06:33 Napalm what is HoneyComb ? :P Aug 09 06:06:51 lol, true true Aug 09 06:07:08 I have a vertical linearlayout with two items. I want the bottom item to have a height of 40dp. What should I set the height to for the other item, to just take up the rest of the space? Aug 09 06:07:32 I have offically determined LayoutTransition aka animateLayoutChanges sucks Aug 09 06:07:37 give it a layoutWeight of 1 and match_parent Aug 09 06:08:16 johnflux: android:layout_height="0dp" android:layout_weight="1" Aug 09 06:08:54 right, i'm outta here.. cya Aug 09 06:09:00 gnight Napalm Aug 09 06:11:41 Napalm|afk: thanks :) Aug 09 06:15:24 I'm running performItemClick after setAdapter and it throws NullPointerException. why didn't it init the items? Aug 09 06:20:57 pastebin the exception Aug 09 06:21:52 oh well cant you see the items ? if you comment out performItemClick? Aug 09 06:21:59 and why are you doing that btw ? Aug 09 06:22:20 phone contract expires next month. looking to see if anyone would upgrade to m8 or g3 or just wait it out Aug 09 06:24:16 C01N_oP what does that have to do with app development :| Aug 09 06:24:44 gOOS_ gonna use the phone for app testing Aug 09 06:24:52 just get a nexus Aug 09 06:25:02 nexus doesnt work on vzw Aug 09 06:25:12 dont matter if it's for testing Aug 09 06:25:12 haha, vzw sorry about that Aug 09 06:25:36 gOOs_ its the best option in chicago for service Aug 09 06:28:54 my next testing device will probably be an odriod Aug 09 06:30:05 I just want some1 to tell me how to simulate physical dimentsion on nexus 10 Aug 09 06:30:13 or if it cant, why the hell not! :) Aug 09 07:14:28 I am trying to use the viewholder pattern in a custom listviewadapter with two different layouts, but the recycling mechanism seems to feed the wrong types of views to be recycled. Any idea? Aug 09 07:17:29 is there any way of painting a TouchDelegate ? Aug 09 07:17:33 just for debugging Aug 09 07:18:01 Flaiker_ make sure your adapter has the correct getVViewTypeCount or whatever Aug 09 07:20:48 and also getItemViewType (position ) Aug 09 07:21:56 i did override getViewType and getViewTypeCount, and type return 0 and 1 respectively depending on my item Aug 09 07:25:20 g00s: All that research I did into ThreadPools was fun but ultimately academic, as I found the actual problem and fixed it, rather than having to obviate it with a threadpool workaround Aug 09 07:25:38 The issue is in your adapter. ListView returns the view type you tell it to Aug 09 07:27:41 SimonVT: but dont I tell the ListView the type via getItemViewType of the adapter? Aug 09 07:27:50 Yep Aug 09 07:28:23 oic you're "g00s_" tonight Aug 09 07:28:24 actually I won't say academic, I wound up creating a newSingleThread as an incidental second patch and improved general throughput / performance Aug 09 07:30:49 Hello, new here! I'm kinda stuck on how to launch an async task from an array adapter on a button click, and change the buttons view depending on the tasks result. This is what I have currenlty: https://gist.github.com/briedis/132b575ea0813073a23a Aug 09 07:31:30 I dont understand, where should I call it from... From the activity, or from the adapter :? Aug 09 07:33:23 Hmm, this looks like an option http://jmsliu.com/1431/download-images-by-asynctask-in-listview-android-example.html Aug 09 07:37:12 SimonVT: I dont see where I am wrong with getViewItemType, mind if I post the code? Aug 09 07:41:01 As long as you use pastebin Aug 09 07:43:03 http://pastebin.com/7rf28nGA Aug 09 07:46:59 hi- is this correct usage of listen for telephonymanager: mPhoneManager.listen(mPhoneReceiver,PhoneStateListener.LISTEN_CALL_STATE | PhoneStateListener.LISTEN_CELL_LOCATION); Aug 09 07:47:07 to listen call states AND cell location? Aug 09 07:47:13 OR cell location Aug 09 07:47:22 so it would trigger on any kind of the above? Aug 09 07:48:50 Flaiker_: Looks fine to me.. Not sure why you're guarding against item being null in getView, it should never be Aug 09 07:50:53 I just copied some of that implementation and adjusted it, thats why that is still there. I get java.lang.NullPointerException: Attempt to read from field 'android.widget.TextView CustomDrawerAdapter$DrawerItemHolderNormal.textView' on a null object reference when scrolling downwards in my navigationdrawer, seems to be the point where it first recycles a view Aug 09 07:51:58 on line 42 in the pastebin Aug 09 07:52:40 Oh, heh Aug 09 07:52:48 You never set the ViewHolder as a tag Aug 09 07:53:22 But, remove the null check on item.. It should never be null, and you want to fail as soon as possible if it is so you can fix the issue Aug 09 07:53:30 ... Aug 09 07:54:54 yea that totally worked Aug 09 07:54:57 thanks :) Aug 09 07:56:54 * shipit slow claps Aug 09 07:57:35 Flaiker_: you should also use LayoutInflater.from(getContext()) instead of casting to Activity Aug 09 07:58:48 And you need to always set a drawable on drawerHolderNormal.icon Aug 09 07:58:54 Otherwise it'll use the icon from where it was reused Aug 09 08:00:12 oh indeed, suddenly icons appear when I scroll back up Aug 09 08:00:19 whats better with LayoutInflater.from? Aug 09 08:01:27 Flaiker_: you're avoiding an Activity reference Aug 09 08:02:09 as far as possible the Adapter should be decoupled from the container Aug 09 08:02:21 eg if you decide to reuse this adapter in a Fragment Aug 09 08:02:46 ah okay Aug 09 08:02:49 that makes sense Aug 09 08:03:43 In which case you'd also pass it an Activity.. But it's unnecessary anyway :p Aug 09 08:28:30 If I have a touch delegate and attach it to a layout, is it only called if I touch the layout but none of the widgets in the layout? Aug 09 08:28:39 I want to place the delegate above everything else Aug 09 08:38:12 Hey , when I run android emulator(eclipse) , it doesn't go beyond the android screen , any help on this Aug 09 08:38:36 how long have you waited for? it takes a few minutes to load Aug 09 08:38:48 even on a decent pc Aug 09 08:38:57 4-5 minutes and mine is a netbook Aug 09 08:39:17 give it more time Aug 09 08:39:59 eclipse on a netbook must be painful Aug 09 08:40:07 Ok ,will wait for more time Aug 09 08:40:27 :) Aug 09 08:40:47 It got about 2 gb of ram Aug 09 08:42:10 well I guess it is better than 1 Aug 09 08:44:26 lol Aug 09 10:23:56 erm, how does one place a leading "+" in a sqlite column when it's a STRING and all other chars in the field are numbers Aug 09 10:24:05 I got some odd things happening here Aug 09 10:25:15 condition is leading "+" any number of digits only following it… and erm, the "+" goes away, but if you have a space in there anywhere, or a letter, it kinda stays…. is this normal ? Aug 09 10:31:45 delegate Aug 09 10:44:41 this is such a noob question but still. i am trying to implement Picasso into my app, but i can't seem to figure out something. it goes: Aug 09 10:44:41 with(context) load(url) into(imageView) where the url is the String of the actually image like http://mysite.com/theimage.jpg and the imageView is the ID of the imageView i want to insert the image into. But what goes into context ? Aug 09 10:45:12 since the examples are not using a capital C it has me a bit confused Aug 09 10:45:29 Any Context Aug 09 10:45:52 that did not help Aug 09 10:45:53 :D Aug 09 10:46:35 into() you pass a reference to an ImageView, with() you pass a reference to a Context Aug 09 10:46:52 Not sur ehow one is more confusing than the other Aug 09 10:47:02 so context is a reference to a internal function and not a synonym of something Aug 09 10:47:10 Context is a class Aug 09 10:47:18 ahaaa Aug 09 10:47:20 Context is a class type, just like your imageview Aug 09 10:47:24 https://developer.android.com/reference/android/content/Context.html Aug 09 10:48:08 thx.. i have been looking at various examples and non have mentioned that it is a class. i am new at this. thank you Aug 09 10:49:18 The javadocs for with() would show you that it's a class :) Aug 09 10:51:20 i would also like to ask another dumb question here. i have been programmin Java for the past 6 months, and from what i understand Android is pretty much Java but with a, imo, much better structure. But the way of doing thing like using return values from different classes and methods work just the same right? Aug 09 10:52:28 SimonVT: i will show myself out now Aug 09 10:52:30 :) Aug 09 10:53:10 yes.. :p Aug 09 10:54:47 i love how the french pronounce Github.. just saying Aug 09 10:55:57 djidhoba Aug 09 10:56:21 Then they're doing it wrong. There's only one pronounciation ;p Aug 09 11:02:12 a quick question: Can I reuse an SharedPreferences.Editor object after calling .apply or .commit? Aug 09 11:09:26 Is there a way to set a listener for when a listview has scrolled to a particular point? Aug 09 11:10:41 I want to say when a listview has scroll to a certain point the actionbar should show Aug 09 11:13:17 AKK9: What have you tried so far? Aug 09 11:14:35 LambdaDusk, yes Aug 09 11:15:30 EPG: Thanks Aug 09 11:32:01 canvs2321, I've tried using onScroll, and showing/hiding based on the first visible item. It works well. But I was hoping I could make it show a bit earlier. Aug 09 11:32:32 canvs2321, cause when I scroll past the first item and the second item is the first visible item the actionbar comes down over it Aug 09 11:32:50 canvs2321, its not a problem but I'm being really fussy about it. Aug 09 11:37:40 canvs2321, no worries. what i have is fine, im being silly about it Aug 09 11:38:08 cool Aug 09 11:39:29 i think Napalm was posting something the other day about a hiding Actionbar, and had some example of it with using a listview Aug 09 11:39:43 dunno what he had it do though, just know he posted it Aug 09 11:40:03 Yeah i was asking him about it :) Aug 09 11:40:22 did you check his example usage with a listview? Aug 09 11:40:51 with class naming conventions, acronyms should be treated as a word and only the first letter be capitalized yeah? Aug 09 11:42:35 is it ideal to use the webchat thing? i mean should i install a Client? i don't use IRC much Aug 09 11:42:52 aaearon: Go with what looks best to you, I've seen both JSONObject and JsonReader Aug 09 11:43:08 hmm fair point thanks Aug 09 11:44:45 heya Aug 09 11:45:01 canvs2321, yeah I think it used the onScroll listener Aug 09 11:45:17 i think thats where i got it from Aug 09 11:45:53 aaearon: http://stackoverflow.com/questions/2236807/java-naming-convention-with-acronyms , pretty much goes with what Thorbear said, stick with your structure Aug 09 11:51:39 when i try to initiate the emulator from the Android studio i get this http://pastebin.com/LX9a1HKG Aug 09 11:51:48 bu no device shows up even after so much time Aug 09 11:52:09 what am i missing here ? Aug 09 11:52:14 am new to android development Aug 09 11:56:03 solofight: are you running "adb devices" to see the list? Aug 09 11:58:14 Ankhwatcher: when i run adb devices in command prompt it lists none - meaning there are no devices running right ?... but when i executed the program from studio it asked me whether i have a running device on which the program should be deployed or start a the device which i created earlier Aug 09 11:58:17 i selected the second Aug 09 11:58:29 after which i saw that output which i pasted in pastebin Aug 09 11:58:41 why it did not start the device ? Aug 09 11:58:45 Can Somone give me a really good resource to learn HOW TO USE FRAGMENTS????? Aug 09 11:59:08 damn, i've read the offical tut and vogella tut and i still don't know how to get that to work Aug 09 11:59:25 i've made the ffragment class but where should i put the views? in which XML? Aug 09 11:59:31 the main one? or separate one? Aug 09 12:00:09 :| Aug 09 12:03:40 solofight: maybe try recreating the AVD Aug 09 12:03:50 delete it and make another Aug 09 12:03:56 OverCoder: Alot of ppl add a FrameLayout container into their activity layout, then you use that container to fill with fragment Aug 09 12:04:08 What IDE Do you use? Aug 09 12:04:14 Eclipse Aug 09 12:04:18 Standard one Aug 09 12:04:41 ah, i know with AS, you can create a new Project with fragment code already added so that you can just start messing with it Aug 09 12:05:27 hmmm, so i add a FrameLayout in the Main layout and then create a separate XML layout file and load it, something a bit like that right? Aug 09 12:06:27 yeah you create your fragment layout just as you would any other layout, and in your activity, you find your container that you are using, and use the fragment manager to add your fragment to it. then you have a class for your fragment, with all the lifecycles of your fragment etc.. Aug 09 12:07:00 canvs2321: Thanks A LOT Aug 09 12:07:02 hug me Aug 09 12:07:02 xd Aug 09 12:07:13 or you can even add a in your xml of your main activity, but i've always used the container method Aug 09 12:07:19 hah Aug 09 12:07:27 pro's con's? Aug 09 12:08:02 I'm a bit somehow new to android development, so if that doesn't matter a lot then forget it Aug 09 12:08:09 can't give any as i haven't tried it with direct fragment in the main layout :) Aug 09 12:08:24 Thanks :) Aug 09 12:08:30 ah n/m i see it now Aug 09 12:08:47 with container you can swap out fragments, where if you put the straight in it's static Aug 09 12:08:55 so container is for dynamic switching etc.. Aug 09 12:08:56 http://developer.android.com/training/basics/fragments/fragment-ui.html Aug 09 12:09:19 That link is already on my screen Aug 09 12:09:49 Many thanks btw Aug 09 12:10:11 the Prev link using that page talks about and that page talks about the dynamic loading Aug 09 12:10:13 yep Aug 09 12:10:31 learn the lifecycles of fragments too, as it comes in handy to know when to load things etc.. Aug 09 12:10:50 i already understood the life-cycles, got it Aug 09 12:10:54 k Aug 09 12:10:59 thx Aug 09 12:11:51 touchdelegate Aug 09 12:11:59 Let me know if you don't get that fragment-ui.html link, if you follow it it should start clicking Aug 09 12:12:18 onClickListener? Aug 09 12:13:19 i will let you know, but what do you mean by onClickListerner Aug 09 12:13:32 sorry, was just replying, that was for johnflux Aug 09 12:13:33 :) Aug 09 12:13:39 oh ok Aug 09 12:13:40 np Aug 09 12:13:48 i saw the start clicking i said to you&figured you'd think i was chatting towards u :) Aug 09 12:14:20 xd Aug 09 12:16:27 I'm having a lot of trouble with understand TouchDelegates Aug 09 12:16:59 you attach them to the parent.. but does this only work if the parent's size covers the touch delegate area? Aug 09 12:21:03 Anyone know of a nicer way to include the google play expansion file downloader library other than copying the com folders from the sample projects they provide? Seems like there should be a JAR or something that you could include with your project... Aug 09 12:24:12 as of Google, i don't think it's possible, but i don't know, i just did some search, so not sure about it Aug 09 12:27:59 canvs2321: damn im stupid, i still don't get it, as in the tutorial, they add in the main Layout, and then use setContentView(R.layout.news_articles); to "Apply the layout", but what the point of the class? Aug 09 12:28:48 Oh damn me Aug 09 12:30:48 in that link i posted, they change the layout to have the framelayout, it uses that the id of that to load in the fragment Aug 09 12:31:34 quote of that page Aug 09 12:31:34 Because the fragment has been added to the FrameLayout container at runtime—instead of defining it in the activity's layout with a element—the activity can remove the fragment and replace it with a different one. Aug 09 12:33:25 I can't get touch delegate to work at all Aug 09 12:33:26 * johnflux sighs Aug 09 12:36:22 johnflux, what is touch delegate? are you coding in C#? Aug 09 12:37:11 canvs2321: java. it's about increasing the hitbox area Aug 09 12:39:07 What kind of app is it? And what are you trying to get touches of? Aug 09 12:39:24 are you using a surfaceview or something or regular views? Aug 09 12:40:10 "expires_in": 2424, Aug 09 12:40:18 hi all Error: InvalidStateError: An attempt was made to use an object that is not, or is no longer, usable. <--- getting this when trying to call https://www.googleapis.com/youtube/v3/channels?part=id&mine=true&access_token="+token Aug 09 12:42:37 canvs2321: sorry i was away Aug 09 12:42:56 a megabit got it Aug 09 12:42:57 xd Aug 09 12:44:27 hi guys! Aug 09 12:44:34 anyone? Aug 09 12:44:34 iffa: hi Aug 09 12:44:48 o/ Aug 09 12:46:08 I can finally put my apps on the store Aug 09 12:46:10 thanks mom Aug 09 12:49:20 iffa: lol Aug 09 12:49:39 can anyone help me come up with some clever disclaimers concerning copyright infringmenet Aug 09 12:49:53 my app can possibly be used to do illegal things, but it's not what it's made for Aug 09 12:49:53 sec Aug 09 12:50:28 what is it? Aug 09 12:50:49 OverCoder: here is my app on amazon (i know) http://www.amazon.com/gp/product/B00MELMQNC Aug 09 12:50:55 i'll take that down when i get it on google Aug 09 12:51:04 see http://www.techrepublic.com/blog/software-engineer/a-developers-guide-to-copyright-and-trademark-in-google-play/ and report in https://support.google.com/googleplay/answer/2853570?hl=en Aug 09 12:51:16 let me see it.. Aug 09 12:51:22 hey Aug 09 12:51:45 does google fit images work as emulators too?? Aug 09 12:51:59 https://developers.google.com/fit/preview Aug 09 12:52:00 iffa: VERY nice app, but how can it be used "illegal" way? Aug 09 12:52:02 OverCoder: yes, will try that now - thanks Aug 09 12:52:14 it recommends i flash my nexus phone with those images Aug 09 12:52:17 OverCoder: it searches the music from a file sharing website Aug 09 12:52:28 if you wanted to get david guetta, you'd get david guetta Aug 09 12:52:34 i dont own a nexus phone, so can i use those images as emulators with android studio?? Aug 09 12:52:35 if you wanted to download guetta, you could also do that Aug 09 12:52:36 solofight: what? i didnt say anything to you lol Aug 09 12:52:55 any one knows.. Aug 09 12:52:56 iffa: pretty awesome Aug 09 12:52:57 but Aug 09 12:53:07 what is the ILLEGAL use of it? Aug 09 12:53:14 [17:33:45] solofight: maybe try recreating the AVD Aug 09 12:53:18 that is the illegal use of it OverCoder Aug 09 12:53:28 OverCoder: you forgot ! Aug 09 12:53:35 solofight: oww, ye do that and report back Aug 09 12:53:47 OverCoder: its illegal to download david guetta :P Aug 09 12:53:58 OverCoder: edited the emulator, saved it and again ran the program Aug 09 12:54:00 it works now Aug 09 12:54:12 i just want my ass covered in case someone (music companies) gets mad at the idea Aug 09 12:54:12 guess the avd was broken for some reason Aug 09 12:54:14 solofight: good Aug 09 12:54:37 iffa: duh Aug 09 12:54:53 an App to download music while downloading music is illegal? Aug 09 12:55:06 did you fell when you was a child? Aug 09 12:55:14 this conversation got weird Aug 09 12:55:14 haha Aug 09 12:55:25 you got me like -.- Aug 09 12:56:03 iffa: i will make the whole thing easier, give me the source code and i will upload it xd Aug 09 12:56:08 lol Aug 09 12:56:59 im worrying too much when apps like https://play.google.com/store/apps/details?id=com.forshared.music are still there Aug 09 12:57:19 iffa: what do you mean? Aug 09 12:57:42 OverCoder: i dont want my app taken down because some user abused the search function :'( Aug 09 12:58:11 but seeing as these apps have a billion downloads and are also pretty much in the grey ill be fine Aug 09 12:58:26 you just don't care Aug 09 12:58:34 no no one care for such things Aug 09 12:58:36 believe me Aug 09 12:58:44 you might want to have a look at youtube Aug 09 12:58:48 OverCoder: usually how much time it takes for a avd to load ? Aug 09 12:58:54 OverCoder: youre right Aug 09 12:58:59 mine still shows me the android logo only Aug 09 12:59:02 ill get to work on finalizing my code for the play release Aug 09 13:00:45 Sorry had trouble Aug 09 13:00:47 anyway Aug 09 13:00:53 solofight: depends on your pc specs Aug 09 13:01:02 mostly CPU Aug 09 13:01:21 make sure you have the Intel Image and Have the Acceleration thing installed Aug 09 13:01:35 mine takes a bunch minutes Aug 09 13:01:43 it's pretty slow and almost unsable Aug 09 13:02:16 since i started developing i never used AVD because it's silly thing a bit, but usable a times for sure Aug 09 13:02:39 solofight: ^ Aug 09 13:03:15 OverCoder: if you have not used avd's how do you develop and test ? on live device ? Aug 09 13:05:23 OverCoder_: i installed the intel hardware acceleration - but when i create a avd, its difficult to select a device and API level which will have a Intel CPU Aug 09 13:05:43 how do i know which device and which api will have a intel image ? Aug 09 13:05:51 right now i am selecting each option to view it Aug 09 13:06:19 I use a real device Aug 09 13:06:21 however Aug 09 13:06:33 all you need is to download the Intel Image in the SDK Aug 09 13:06:43 API is the same as long as you have the Intel Image Aug 09 13:06:53 SDK manager is not showing the intel image for the api level ! Aug 09 13:07:00 that's all i know don't expect i'm a "developer" Aug 09 13:07:05 still newbish a bit Aug 09 13:07:10 only in the extras i saw an Intel atom image and installed that Aug 09 13:07:14 oh Aug 09 13:07:14 Which API Level you are trying to download Aug 09 13:07:44 API 19 Aug 09 13:07:48 OverCoder_: ^ Aug 09 13:08:03 is there anything special you have to worry about when opening a socket connection on an android phone? Aug 09 13:08:06 sec, capturing a sscreen shot for ya Aug 09 13:08:26 ulli909: avoid using usual ports Aug 09 13:08:41 yeah Aug 09 13:08:44 port conflict did some trobules for me Aug 09 13:08:51 it refuses to connect Aug 09 13:09:04 try using something like 5775 Aug 09 13:09:12 im using 12345 Aug 09 13:09:22 it's OK too Aug 09 13:09:36 you might want to google to see list of common used ports Aug 09 13:09:43 it doesnt want to connect Aug 09 13:10:11 maybe something is using that preticular port? Aug 09 13:10:54 i can try a different one Aug 09 13:11:08 do that and report back Aug 09 13:11:48 ok will do Aug 09 13:13:14 got a new problem Aug 09 13:13:44 97 more togo Aug 09 13:13:45 my input edit text returns null Aug 09 13:14:21 ulli909: is it in your layout? paste some relevant code Aug 09 13:14:28 wait a sec Aug 09 13:15:12 http://pastebin.com/MdK6NTjN Aug 09 13:15:20 its a alertdialog Aug 09 13:15:24 *an Aug 09 13:16:09 it would do. its returning before youve entered anything Aug 09 13:16:12 you have to add it to something Aug 09 13:16:24 its not modal. Aug 09 13:16:43 its returning before i entered anything hmm Aug 09 13:16:49 shouldnt it wait Aug 09 13:16:55 did you run the debugger? Aug 09 13:17:00 I believe .setMessage() is irrelevant if you are going to supply your own content view Aug 09 13:17:02 (I must bind that to a hot key) Aug 09 13:17:22 debugger you mean logcat? Aug 09 13:18:03 no. I mean the debugger. The most basic utility available any programmer. Where you step through and examine your values. Aug 09 13:18:46 (though you can of course "debug" by littering your code with Log.d("tag","text") type calls and see the values in logcat but that's extremely bad form. Aug 09 13:18:54 ulli909, also yes, alertdialog is asynchronous, that's why it has callbacks; your code will continue as normal after the dialog is shown, not after dialog is closed Aug 09 13:19:11 oh yeah well Aug 09 13:19:13 hmmm Aug 09 13:19:21 which I just said and he would see that i n10 seconds if he ran the debugger. Aug 09 13:19:36 ulli909: which ide are you using? Aug 09 13:19:45 androidstudio Aug 09 13:19:53 eclipse was getting laggy Aug 09 13:20:00 https://developer.android.com/tools/debugging/index.html Aug 09 13:20:05 laggy? Right... Aug 09 13:20:32 now. set a breakpoint in side your alterdialog callback and at the end of your function. voila. less time than asking here :)) Aug 09 13:20:37 solofight: sorry but had some troubles with that silly mspaint Aug 09 13:20:42 i have both arm and x86 folders and images inside sdk\system-images\android-19\default... but when i try to create a avd for api 19 with nexus 7, it shows me only arm - why ? Aug 09 13:20:46 solofight: http://i.imgur.com/ockv7UI.png Aug 09 13:20:59 ok this is resolved now Aug 09 13:21:20 it might be but learn to use the debugger. Its there for a reason. and its very good. Aug 09 13:21:26 ulli909: got it working? Aug 09 13:21:42 not the socket one Aug 09 13:21:49 OverCoder: thanks for the image - but the problem is that i dont have the x86 listed under the APi 19 ! Aug 09 13:21:50 oww Aug 09 13:21:57 (if only to step through the code and see how it all hangs together) Aug 09 13:22:16 does your app have the correct permissions to be able to deal with sockets? Aug 09 13:22:18 Refresh (F5) Aug 09 13:22:25 It MUST show Aug 09 13:23:12 solofight: do you only see your installed packages? Aug 09 13:23:41 ravilov, which ones do i need? Aug 09 13:23:42 solofight: just like the photo? (btw i got them installed, but maybe you have trouble connecting to google) Aug 09 13:23:53 OverCoder: http://s4.postimg.org/yw4ldybnx/api19.png Aug 09 13:24:09 ulli909: http://developer.android.com/reference/android/Manifest.permission.html Aug 09 13:24:30 solofight: Windoes ME? Aug 09 13:24:30 xd Aug 09 13:24:36 OverCoder: win7 Aug 09 13:24:48 so why windows Classic thing Aug 09 13:24:50 so silly Aug 09 13:25:08 solofight: Update your SDK Aug 09 13:25:09 ulli909, also yeah, people are right, you should really learn some basic skills such as using the debugger and referring to developer.android.com before asking questions Aug 09 13:25:12 how would i open source an app that has an api key that id rather not shove around publicly? Aug 09 13:25:25 OverCoder: for performace Aug 09 13:25:29 i have ACCESS_WIFI_STATE CHANGE_WIFI_STATE CHANGE_NETWORK_STATE INTERNET and ACCES_NETWORK_STATE Aug 09 13:25:44 anything else needed Aug 09 13:26:10 solofight: if you have a Pentium II PC, you probably need this, but with Core IX you don't even need to mess with that Aug 09 13:26:16 not so sure though Aug 09 13:26:29 pretty sure various ACCESS_* and CHANGE_* perms are not needed Aug 09 13:26:40 unless you actually want to access and change state Aug 09 13:26:56 core i7 is under the hood here :) Aug 09 13:27:00 OverCoder: ^ Aug 09 13:27:04 yes will be implemented later on ravilov Aug 09 13:27:12 like turning on wifi ... Aug 09 13:27:27 solofight: lool Aug 09 13:28:26 ravilov: can he add all permissions by some way? Aug 09 13:28:27 xd Aug 09 13:28:32 no really Aug 09 13:28:34 can we? Aug 09 13:28:38 like using * Aug 09 13:28:58 ulli909, what exactly are you doing? connecting to a remote port or listening on a port? it's hard to tell why your connection is not working without seeing actual code, there is too much involved Aug 09 13:29:02 OverCoder, absolutely not Aug 09 13:29:31 thx btw, i'm a new learner so don't blame me for newbish things xd Aug 09 13:31:18 yeah I know you are, I will only blame you for things that are so trivial and basic you really should've known them or you could've easily googled it yourself :p Aug 09 13:32:04 xd Aug 09 13:32:38 http://pastebin.com/UjT2Qhn1 Aug 09 13:32:46 two way connection Aug 09 13:32:55 got the server running on my pc Aug 09 13:34:31 being able to run on a PC means you have a trouble with some sort of android approperiate things Aug 09 13:34:40 OverCoder: googled on how to update sdk, all suggest updating the adt and stuff Aug 09 13:35:06 solofight: to update the sdk yo just run "android" Aug 09 13:35:29 it could not be simpler. Aug 09 13:35:37 (well on linux) Aug 09 13:36:01 rgr: on windows ? Aug 09 13:36:30 whatever the sdk updater it called. There's a thing called google. Its new but its good. You could google that quicker than it takes to get wrong and misleading info here :)) Aug 09 13:36:43 sdk updater is the same as "android" Aug 09 13:37:03 it's actually called sdk manager though, I think :p Aug 09 13:37:10 yes. His Q is whats it called on windows. ie the executable. Aug 09 13:37:30 on linux I just run "android" from the command line , and heavens, from the intellij menu.... Aug 09 13:37:54 * autrilla would love to use linux Aug 09 13:37:58 Manjaro, specifically Aug 09 13:38:08 Arch without the install hassle Aug 09 13:38:21 please - not linux fanboy fawning here. #linux for that... Aug 09 13:38:22 What's keeping you? Aug 09 13:38:56 it's just a crappy operating system like all the others, use whatever is the best for you Aug 09 13:39:20 kakazza, Adobe and some games Aug 09 13:39:50 rgr: sorry for taking too much time here,, its just too confusing. am new and trying to figure out adt, sdk, stuidio menu's .. Aug 09 13:40:16 read reviews on stackoverflow and there was link to ADT udpate Aug 09 13:40:19 got confused Aug 09 13:40:27 autrilla, is that something that cannot be virtualized? :p Aug 09 13:40:32 oh Aug 09 13:40:33 games Aug 09 13:40:36 pft Aug 09 13:40:40 Exactly, pft Aug 09 13:40:52 then go read the android tutorial so you dont have to ask Qs a 3 year old could google in 2 seconds. Sorry to be blunt but asking hot update the sdk in a programming channel shows you havent done the basics never mind getting to developing an actual app. Aug 09 13:46:53 so what's this with changing the order of positive/negative buttons in API >=14 ? Aug 09 13:47:30 now I need a separate button layout for <14 (positive-negative) and another for >=14 (negative-positive) Aug 09 13:49:43 and why everyone says "dont target 14 or lower because no one uses it". Major changes. APIs change for the better generally and the old crap needs to be said farewell too :) Aug 09 13:50:36 that's bullshit Aug 09 13:50:44 I always target the lowest possible API for my code Aug 09 13:50:58 and this specific app *has* to run on API 8, or else it's useless Aug 09 13:59:18 wait Aug 09 13:59:46 why does it work connnecting to itself Aug 09 14:00:51 its bullshot that APIs change? LOL. The stop whining about having to have two sets of layouts. So is life. And if you feel you need to target an API that 0.0001% of users use then expect to do the spadework. Quite simple really. Aug 09 14:06:18 ravilov: The platform takes care of it Aug 09 14:06:26 Just use AlertDialog and you'll be fine Aug 09 14:07:30 join #iphonedev Aug 09 14:07:57 what Aug 09 14:08:14 anybody knows good PDF rendering libraries? Aug 09 14:09:58 ulli909: if that 'what' is meant for me, I forgot add / before that join :D Aug 09 14:10:22 Anyone familiar with RxJava? What would be the idiomatic way to do something on, say, the IO thread, and then when it finishes, do something on the main thread using the value returned by the IO thread task? Aug 09 14:11:40 kakazza, ha, whoever said I'm even using any dialogs? this is the main layout Aug 09 14:11:49 I'm doing Observable.just(0).subscribeOn(Schedulers.io()).map(IO task).subscribeOn(AndroidSchedulers.mainThread()).subscribe(Main thread task); but I don't think that's correct Aug 09 14:14:20 can i make that shit login automatically? Aug 09 14:14:37 hate entering Nickname Plus Authenticate everytime damn Aug 09 14:14:38 rgr, maybe you should stop assuming people only ever make apps for the general public, therefore the global worldwide usage stats per platform/api are not necessarily always relevant Aug 09 14:15:13 I for one couldn't care less about the stats Aug 09 14:15:24 idk what you are talking about, but i agree with ravilov , at least i make a apps for myself Aug 09 14:16:00 and if I want to rant or just merely ask and discuss, you sure won't be the one to stop me Aug 09 14:16:08 ravilov: you seem to have a comprehension issue. Again. Im not assuming anything. I am saying that if YOU choose to target such a low API then YOU need ot so the spadework and not complain about the changing APIs. Others move one. In fact I admire you for having the dedication to support such an ancient and barely used API. Aug 09 14:16:10 ok it woeks Aug 09 14:16:13 *works Aug 09 14:16:53 And that fact that you, for one, "couldnt care about the stats" is up to you. Good luck with that. Others do. And move on to newer APIs. Aug 09 14:17:15 rgr, like I said, if I want to "complain", it's not up to you to stop me Aug 09 14:17:39 last time I checked you weren't the owner of this channel Aug 09 14:18:51 anyone having prebuilt mupdf files? Aug 09 14:19:01 what is the point where i should make apps? when i finish the Android Training Docs? or i should go further like learning the usage of Monkey and so on? should i be a top notch developer to make an App? or i should just make it straight away when i feel i'm able to? Aug 09 14:19:10 Where did I stop you? What on earth are you talking about. You were whining about needing two layouts for <14. I pointed out thats because APIs and resoure formats change as they improve. *shrug*. Like I said if you feel its worth your time and effort then good luck with that. Aug 09 14:19:40 OverCoder: learn by doing. The android tutorial is great on the google pages. Aug 09 14:19:54 rgr: thx Aug 09 14:19:55 over reading with no hands on will be quickly boring. Aug 09 14:19:56 OverCoder, whenever you feel like it, it's not like there is an official schedule Aug 09 14:20:30 and of course practice with your IDE. When you get used to something like AS/Intellij it makes your job so much easier. Javadocs. auto completion, class browsing etc. A must! Aug 09 14:20:44 rgr i always do what i learn Aug 09 14:20:54 ravilov: hmmm, thx too Aug 09 14:21:11 FWIW, I really recommend AS/Intellij over eclipse. But all to their own. Aug 09 14:21:28 What is a reasonable minimum API level? Aug 09 14:21:31 rgr: reason? Aug 09 14:21:38 vozz: 8/11 Aug 09 14:21:42 IMO Aug 09 14:22:07 you can use the Support library to get most of the things work on 8 Aug 09 14:22:21 I feel like there's still a decent amount of people on gingerbread, and you gain nothing until 11 so I'm on 8 Aug 09 14:22:26 but if you really need more than that, then feel free to go to 11 Aug 09 14:22:54 IMO if you set to API 8 you will reach all the android devices Aug 09 14:22:57 plus Aug 09 14:23:44 There's not much of HoneyComb Users, so if you limit to HoneyComb, i don't think it will differ much than putting the limit on ICS Aug 09 14:24:03 vozz: ^ Aug 09 14:24:24 true Aug 09 14:24:25 vozz, there is no preset general level. if you ask google they will almost always say "whatever is latest". this is strictly on a per-app basis. personally I always support the lowest possible level for my specific code Aug 09 14:24:46 ravilov: right. Aug 09 14:24:46 OverCoder: its better thought out IMO and a lot easier to keyboard navigate. eclipse has become a bit of a monster. But a lot of people would disagree but generally those who have used eclipse for years and are comfortable with it. Aug 09 14:25:06 I'm working on a chat app at the moment so i'm going for as low as is reasonable as it wouldn't be very useful if your friend couldnt use it Aug 09 14:25:31 rgr: well i just got a bit familiar with eclipse and im not ready to work with others, it just feels good and portable Aug 09 14:25:47 vozz: Chat apps probably need API 8 Aug 09 14:25:53 there is always at least *some* way to support a lower api but still make use of higher api's features Aug 09 14:25:59 that's generally what I do Aug 09 14:26:30 i mean if a man had a Phone with ICS and had your app, it's silly to not be able to chat with someone that have GB Aug 09 14:26:34 vozz: you have to remember that the lower you go the more hassle you will have. ravilov knows his stuff and its probably second nature to him to use the backward compatability libs etc. But really the usage stats might say "look the extra work and support for this" in order to target 0.01% of the market isnt really worth it. Its why most experienced developers here target 15 and above now. Aug 09 14:26:37 so i'm the first uninstaller there Aug 09 14:28:13 rgr: oh, if i limit to API 11/15, how much percentage of devices will i be able to reach? Aug 09 14:28:22 JakeWharton you around? Aug 09 14:28:24 google is your friend. Aug 09 14:28:32 ye Aug 09 14:28:34 forgot that Aug 09 14:28:35 lol Aug 09 14:29:02 but do the tutorials and see how targetting older APIs can dramatically change your code. The worry about your audience. Aug 09 14:29:18 OverCoder: none if you spend too much time worrying about it¬ coding, if you target a low api&it takes you 6months to complete, is it worth it? Aug 09 14:29:32 canvs2321: +1 exactly. Common sense. Aug 09 14:30:27 so get stuck in and worry avout it later. When you know java better and the ide and the android activity lifecycle and the basics of threading, main thread, resources etc etc etc then worry about actuall creating your app and who for. ;) Its not easy and there is a lot to learn. Aug 09 14:30:56 * ravilov is not a big fan of the "release early, release often" kind of philosophy, better take your time and do it reasonably right the first time around Aug 09 14:31:53 rgr and canvs2321 , i really don't see much difference in coding, just siimple things.. though i'm still a beginner, but if it will take forever, then go to hell GB users Aug 09 14:31:56 certainly with regard to releasing I would agree Aug 09 14:32:14 OverCoder: Im not sure that means anything Aug 09 14:32:40 and better to become a little proficient and get your hello world apps running going before telling people to "go to hell".... Aug 09 14:33:12 i've ran my hello world app in almost every language lol Aug 09 14:33:22 even i LOL language got it to work Aug 09 14:33:23 xd Aug 09 14:33:33 yes... changing a few strings in a resource file is pretty advanced stuff :) Aug 09 14:33:46 duh Aug 09 14:33:49 not to mention, android has its own timeline, going from earliest api levels to the more recent ones, I feel in order to best understand it and be able to use it it is best to take more or less the same path. it feels wrong jumping into a higher level api before understanding a lower level one at least a decent amount Aug 09 14:33:50 not advnaced Aug 09 14:33:52 so newbish Aug 09 14:33:53 xd Aug 09 14:34:49 ravilov: that i would strongly disagree with. Why bother learning an old soon to be dpreceated API *unless*, like you, you really want to target the older phones? Theres nothing to be gained. The APIs mature and do things smarter now : learn the smart way. Not the cobweb way. Aug 09 14:35:25 as per android dashboard, if i use API <=11, i will reach almost 85% of the market, so why bother? Aug 09 14:35:46 i always ran into troubles just to support API 8 Aug 09 14:35:52 but that now seems silly Aug 09 14:37:06 there is quite a lot to be gained. over time there will be more and more stuff in android that is there "for historic reasons". there is no way to understand that and what it meana if you don't know the history. and if you don't understand such little details, do you really even know your platform? Aug 09 14:37:44 ravilov: at somepoint, maybe, but as a new dev, doesn't make sense Aug 09 14:38:02 quoted: "Any versions with less than 0.1% distribution are not shown.", so Honeycomb has less than 0.1% users? Aug 09 14:38:25 honeycomb never really gained momentum Aug 09 14:38:41 already now that, but i expected at least 10% Aug 09 14:38:43 I'd call it a semi-failed experimemt Aug 09 14:38:46 not 0% Aug 09 14:38:59 ravilov: trube, but ^ Aug 09 14:39:09 true* Aug 09 14:39:58 it is reasonable to expect all the devices originally using honeycomb have by now either been upgraded or been obsoleted and thus not used Aug 09 14:40:42 at some point yes, at some other pint no, at least the first Galaxy Tab had Honeycomb, and it can't be no users still stuck with it Aug 09 14:40:53 damn, we are talking about 6BN ppl Aug 09 14:41:43 well make your own conclusion then - if apis with less than 0.1% are not shown, and honeycomb is not shown, what's that mean? Aug 09 14:41:55 0% Aug 09 14:41:55 possibly an error in their stats, but how likely is that? Aug 09 14:42:01 lol Aug 09 14:42:04 no Aug 09 14:42:07 it could also mean 0.05% Aug 09 14:42:18 maybe 0.005% too! Aug 09 14:42:18 xd Aug 09 14:42:34 gotcha Aug 09 14:43:41 btw, dashborad is really interesting thing! Aug 09 14:43:44 love it Aug 09 14:45:53 i like the nameing of "some-other-class" :P Aug 09 14:50:45 apparently the percentages on the dashboard are calculated via checkins through play store, that makes it somewhat inconclusive as there are other app distribution channels Aug 09 14:52:41 ravilov, don't other distribution channels provide those stats? Aug 09 14:52:56 Google can only provide the data they have :/ Aug 09 14:54:40 autrilla, yes I believe at least some of them do, I'm just saying the dashboard stats cannot be used as an absolute measure of global world coverage Aug 09 14:55:11 I'm just guessing, but I'd say Play Store is still over 90% of the market. Aug 09 14:55:42 And having Play Services is a nice bonus. Aug 09 14:56:03 Still waiting for the August numbers on the dashboard, tho. Aug 09 14:57:31 OverCoder: If you're starting out, minSdkVersion=15 Aug 09 14:57:33 well yes, the play store does hold the vast majority of the share so the dashboard stats are reasonably useful, but still not absolute Aug 09 14:58:01 personally I've never published any of my apps on any store, and once I do it will most likely NOT be the play store Aug 09 14:58:04 but that's me Aug 09 14:58:21 what is the recommended way to deal with font sizing for different screen denisities? Aug 09 14:58:22 And you're free to do so. Aug 09 14:58:32 i am using sp, but the text still looks very small on high res devices Aug 09 14:58:45 xximjasonxx, specifying dimensions in "sp" is a good first step Aug 09 14:59:08 xximjasonxx: high res devices like...? Aug 09 14:59:22 if that doesn't quite cut it, you might want to try creating per-dpi resources Aug 09 14:59:22 well my emulator is running 1200x600 and the login page looks really weird Aug 09 14:59:26 big icon, small text Aug 09 14:59:44 I test on a Samsung S IV Mini, N4, N5, it looks the same here. Aug 09 14:59:48 maybe you're not using the correct built-in style? Aug 09 14:59:51 1200x600 is very weird. Aug 09 14:59:58 2:1 Aug 09 14:59:58 genymotion Aug 09 15:00:27 ha Aug 09 15:00:33 oops, grabbed my tablet vm :) Aug 09 15:00:36 not really aiming for tablets Aug 09 15:01:06 kakazza, just wait for ∞:1 -> full 360° vision! Aug 09 15:01:18 * xximjasonxx wishes Google would buy Genymotion Aug 09 15:03:20 this is quite interesting: http://www.onepf.org/appstores/ Aug 09 15:04:51 hi folks, sorry for potential n00b quesitons. I have an app that i've built and run on a virtual device on my mac (ZOMG SLOW). now i'd like to try debugging it on my Galaxy S4. I enabled debug mode, Eclipse sees it, adb sees it. But when I go to the device choose, I get 'Chose ar unning andoir device" and a serial number, but I can't select / run it. Aug 09 15:04:59 I see Target: unknown, debug is blank, state is ?? Aug 09 15:05:22 penk, first problem is you are using Eclipse Aug 09 15:05:24 http://note.io/V7d5sS Aug 09 15:05:30 second problem is you are using the native emukator Aug 09 15:05:48 third problem is you probably dont have the USB drivers installed for your device Aug 09 15:05:58 check the SDK manager, should be in the extras, that takes care of most Aug 09 15:06:04 hm Aug 09 15:06:09 otherwise, head to your manufacturers website and download the drivers Aug 09 15:06:15 <-- been through this many times Aug 09 15:06:22 heh. okay, hang on a sec. Aug 09 15:06:26 usb drivers should not be a problem if both adb and eclipse see the device Aug 09 15:06:27 (and thank you :) Aug 09 15:06:28 adb can already see it, so Eclipse shouldn't have a problem seeing and selecting it. Aug 09 15:06:35 that was my guess, but i'm checking. Aug 09 15:06:48 * ravilov has no problems whatsoever with eclipse, can run and test on both real and emulated devices Aug 09 15:06:59 oh, i wonder if this is because the samsung is running a very new version. Aug 09 15:07:02 but then again, I'm on linux, that could make a difference Aug 09 15:07:04 * xximjasonxx has finally moved comletely off IntelliJ to Studio Aug 09 15:07:12 (4.3?) Aug 09 15:07:20 aside from the Gradle annoyances, its really a solid environment Aug 09 15:07:29 i'm actually pretty comfortable with eclipse - been using it a long time, so it doesn't scare me. Aug 09 15:07:40 penk, what is your version targetting Aug 09 15:07:48 penk, does it say anything if you hover over the device in the list? I'm wondering about this "warning triangle" Aug 09 15:08:05 hang on a sec... my ADT / SDK is really old. let me do a quick update. Aug 09 15:08:19 that could be your problem right there Aug 09 15:08:21 :) Aug 09 15:08:30 The very fact that Google is using IntelliJ to make their own custom environment should give an indication as to their confidence in Eclipse. Just saying :) Aug 09 15:08:52 penk: its not about version, it happend sometime for me... just kill adb and restart it as sudo.... that's what works for me Aug 09 15:09:06 xximjasonxx, they *made* Intellij. not saying it's bad, haven't tried it myself yet, but wouldn't the maker always make a point of using their own product? Aug 09 15:09:11 thanks guys... let me eliminiate this variable (old ADT), then let me see if i stil get that warning triangle. Aug 09 15:09:25 um Aug 09 15:09:25 ravilov, false. JetBrains made IntelliJ Aug 09 15:09:32 google din't make intellij. jetbrains did. Aug 09 15:09:40 ok, they licensed it from them then? dunno Aug 09 15:09:58 either way, if they are advertising it, it would make sense they will try to make a point by using it as well Aug 09 15:10:01 lead by example and all that Aug 09 15:10:02 basically Aug 09 15:10:19 everyone knew that Eclipse was terrible, but it was free and in heavy usage when Android first came out Aug 09 15:10:28 didn't mean to start IDE WARZ. :) Aug 09 15:10:48 * ravilov has yet to encounter a problem with eclipse, pretty used to it by now, works remarkably well Aug 09 15:10:49 JetBrains saw this and added support into their IntelliJ IDE for it (its a Java IDE) Aug 09 15:10:59 penk: it usually starts here.... you dont have to do much Aug 09 15:11:05 so a lot of shops and android devs started moving to IntelliJ Aug 09 15:11:06 but then again I never tried IDEA/Intellij/anything else, so I might just as well not even realize what I'm missing :p Aug 09 15:11:12 i'm an old hand on ##java. i'm familiar with the minefield :) Aug 09 15:11:24 Google saw this and used the open source version of IntelliJ to begin building Android Studio Aug 09 15:11:31 okay, AFT started fine, restarting ADT. Aug 09 15:11:33 end history lesson Aug 09 15:11:35 :) Aug 09 15:11:56 hey guys! Aug 09 15:12:04 hi person! Aug 09 15:12:08 hey naschurmann Aug 09 15:12:15 eegads. i'm in update hell. http://note.io/1sHXm0x Aug 09 15:12:26 how can i get current date but get only year, month and day with this format? "2014-08-09" Aug 09 15:12:33 teach me not to run this often enough Aug 09 15:12:51 penk, yeeeah. no one said it'll be easy :p Aug 09 15:13:21 I said your problem could be ADT that's too old, but I never said getting the newer one isn't going to be painful Aug 09 15:13:27 heh Aug 09 15:13:29 because sadly it is painful Aug 09 15:13:34 weird, 'check for updates' said 'no updates' Aug 09 15:14:12 * ravilov is still using ADT v21 and is very reluctant to upgrade, why fix something that's not broken Aug 09 15:14:31 and now the project is giving "The import android.os cannot be resolved" - i've seen this happen before. *fiddles* Aug 09 15:14:41 although for me the newest ADT available is 22.6.2, not 23 Aug 09 15:15:13 naschurmann: first parse your date string to Date object using SimpleDateFormatter and then do dateObject.getYear() Aug 09 15:15:37 ravilov: yeah, this is showing v22.3.0 Aug 09 15:15:44 naschurmann, Calendar class plus java.text.SimpleDateFormat Aug 09 15:15:45 *headscritch* Aug 09 15:15:57 penk, at least do yourself a favor, if you arent to try an alternative to Eclipse, give Genymotion a try as a replacement for the emulator Aug 09 15:16:04 Date class would work too I guess Aug 09 15:16:35 xximjasonxx: i'd like to explore other emulators at some point. but right now i have a VERY simple app that i've been given committer access to that needs some minor tweaking. this is sort of my gateway drug into android dev. Aug 09 15:16:56 if android-dev were a drug it would be illegal Aug 09 15:16:58 :) Aug 09 15:17:06 granted iOS would lethal Aug 09 15:17:16 android just makes you sad, iOS creates pain Aug 09 15:17:24 obviously everybody should switch to blackberry Aug 09 15:17:31 windows phone!!! Aug 09 15:17:34 so is that dialog saying i need to download a whole new ADT? Aug 09 15:17:35 nah Aug 09 15:17:36 then i can use XAML all i like Aug 09 15:17:36 that's weird. Aug 09 15:17:41 XAML > Android Layout Aug 09 15:17:54 ravilov: i thought people just finished ranting against eclipse :P Aug 09 15:18:15 * xximjasonxx will continue to rant against Eclipse until everyone stops using it Aug 09 15:18:26 penk: yes, you need to download new version of ADT Aug 09 15:18:27 penk, basically yeah, you probably need to upgrade your whole dev environment Aug 09 15:18:41 * xximjasonxx just rebuilt his windows machine today Aug 09 15:18:44 lewellyn, wouldn't know, haven't noticed, if it happened I was sure not a part of it :p Aug 09 15:18:44 mac is up next Aug 09 15:18:44 okay, that's fine (i mean fsdo 'fine'). Aug 09 15:18:52 thanks guys. Aug 09 15:19:20 penk: i dont think upgrading will solve your issue Aug 09 15:19:24 xximjasonxx, you have just completely destroyed your reputation if you're doing your dev work on windows :p Aug 09 15:19:35 bhargavg: well, it's expliitely saying i'm out of date. Aug 09 15:19:49 ravilov, really? Aug 09 15:19:49 bhargavg, maybe not but generally speaking - can't hurt Aug 09 15:19:50 ravilov: damn. then i'm totally hosed. Aug 09 15:19:57 ravilov, I do dev work on EVERY environment Aug 09 15:20:00 i'm using windows *8* and... QNX BLACKBERRY-C8E2 8.0.0 2014/02/09-15:22:47EST MSM8960_V3.2.1.1_F_NEWPORT_Rev:17 armle Aug 09 15:20:03 ;) Aug 09 15:20:08 xximjasonxx: likewise. :P Aug 09 15:20:14 306MB, 1 minute left. Aug 09 15:20:14 penk: yes, even after update, your device might not be detected properly. Either way you have to update first Aug 09 15:20:18 sometimes, cable is nice. Aug 09 15:20:21 * ravilov was not actually serious there, xximjasonxx - note the emote Aug 09 15:20:29 :P Aug 09 15:20:40 bhargavg: *nod* that's okay. i have a couple android thingies lying around. the s4 is just my regular carry and it was convenient. Aug 09 15:20:40 penk, takes less time to download than to install, eh? Aug 09 15:20:46 ravilov: boy howdy. Aug 09 15:21:01 in all seriousness though, I really hope Xamarin continues its momentuem Aug 09 15:21:06 that + MVVMCross, wow Aug 09 15:21:30 I would rather use Xamarin than anything else, and not just because C# is my best language Aug 09 15:21:40 * ravilov is just generally an old-school kind of person, at least when it comes to android deving Aug 09 15:22:04 xximjasonxx, C# as a favorite? you're most certainly not helping your case here :p Aug 09 15:22:06 ravilov, problem with android (and this goes for iOS and WinPhone) is, that approach will require you to write the same app multiple times Aug 09 15:22:17 ravilov, :) and what is your favorite? Aug 09 15:22:17 ravilov: i've been doing java development for 10+ years. i totally get the old sk00l way of doing things. Aug 09 15:22:21 xximjasonxx, I don't see why Aug 09 15:22:26 xximjasonxx, ASM! Aug 09 15:22:34 ravilov, you are old then :) Aug 09 15:22:41 not necessarily Aug 09 15:22:46 yes Aug 09 15:22:46 maybe I'm just well trained :p Aug 09 15:22:47 :) Aug 09 15:22:58 or you like pain and suffering Aug 09 15:23:11 can't rule that out for sure Aug 09 15:23:20 penk wow, so you are awesome in java Aug 09 15:23:26 OverCoder: hardly :) Aug 09 15:23:27 especially in Java 1.1 Aug 09 15:23:34 OverCoder just found a new person to bug, lol Aug 09 15:23:43 lol Aug 09 15:23:45 xd Aug 09 15:23:49 ravilov: if one troll made me cranky on IRC, I'd never get anything done :) Aug 09 15:24:01 personally, the thought of being able to share the way my apps communicate with a backend server, in addition to using an MVVM pattern to govern the UI capabilities of my apps, and then using platform specific code so I am not forced into a general UI for all platforms, is very appealing Aug 09 15:24:04 and it works very well Aug 09 15:24:14 i've been working with android 10+ years ago too Aug 09 15:24:14 xd Aug 09 15:24:20 even before it's even made Aug 09 15:24:20 xd Aug 09 15:24:29 the original project!!! Aug 09 15:24:30 I SAW WHAT YOU DID THERE. Aug 09 15:24:34 safe to say you helped invent it Aug 09 15:24:41 xd Aug 09 15:24:45 lol Aug 09 15:25:07 at least i now how to make hello-world app, what could be better? Aug 09 15:25:07 JOB REQUIREMENTS: at least 30 years of java knowledge Aug 09 15:25:15 lol Aug 09 15:25:21 here's the funny thing. i used to work with the guy who co-founded android (before google aquired it). so i got SOME old creds there. Aug 09 15:25:31 (worked with him before he worked for Android) Aug 09 15:25:42 hey, I used to glance in the general direction of Google, does that count? :p Aug 09 15:25:53 assuming he started at 20 yrs old.. with 30yrs of knowledge, hmm, 50 yrs old? Aug 09 15:25:54 totes. Aug 09 15:25:55 xd Aug 09 15:26:11 * penk unzips. Aug 09 15:26:17 * xximjasonxx looks at Starcraft4 Aug 09 15:26:17 * ravilov cringes Aug 09 15:26:23 8D Aug 09 15:26:29 * ravilov kicks Aug 09 15:26:48 the adt! cmon guys, get out of the gutter! a zip file! sheesh! Aug 09 15:27:04 um Aug 09 15:27:12 hey, to be honest, i've worked with google to make android Aug 09 15:27:14 you're probably not supposed to unzip it though Aug 09 15:27:21 i've been a very useful though Aug 09 15:27:22 you just give it to eclipse as is Aug 09 15:27:29 To set up the ADT Bundle: Aug 09 15:27:29 Unpack the ZIP file (named adt-bundle-.zip) and save it to an appropriate location, such as a "Development" directory in your home directory. Aug 09 15:27:36 oh Aug 09 15:27:37 nevermind Aug 09 15:27:38 i sent them a feedback xd Aug 09 15:27:40 :) Aug 09 15:28:01 * ravilov used to download ADT only, which was a ZIP file that you were not supposed to unzip Aug 09 15:28:07 yeah, this is the full bundle Aug 09 15:28:14 so weird going from Xamarin all week back to Java Aug 09 15:28:42 why you use /me anyway ravilov :/ Aug 09 15:28:43 penk, keep this up and before you know it you'll end up with a whole new mac Aug 09 15:29:04 heh Aug 09 15:29:16 OverCoder, is that against the rules? Aug 09 15:29:20 penk, what about just rebuilding the environment? Aug 09 15:29:30 did i say that ravilov? Aug 09 15:29:36 no, I'm just asking Aug 09 15:29:42 me too Aug 09 15:29:43 why can't I use /me ? Aug 09 15:30:03 why you does that? Aug 09 15:30:17 because I feel like it? Aug 09 15:30:19 why wouldn't I? Aug 09 15:30:25 why you would? Aug 09 15:30:31 THIRD BASE Aug 09 15:30:39 that's just a very strange question Aug 09 15:30:45 xd Aug 09 15:30:59 it's like Aug 09 15:31:04 why do you have uppercase letters in your nick? Aug 09 15:31:17 I mean, why would I even ask that? why would I care? Aug 09 15:31:30 why you wouldn't? Aug 09 15:31:36 xd Aug 09 15:31:40 right Aug 09 15:31:42 trolls be trolling Aug 09 15:31:50 curious, does the user control the use of Holo Dark and Light, or is that something the app specifies? Aug 09 15:31:50 in not-so-great enlish too :p Aug 09 15:32:03 lol :P Aug 09 15:32:09 nice conversation Aug 09 15:32:09 xd Aug 09 15:32:30 * capella Excuse me? I'm here for an argument? Aug 09 15:32:40 xximjasonxx: what do you mean? Aug 09 15:32:46 xximjasonxx, I think that's generally up to the app, and the app can then have an option of switching Aug 09 15:32:50 you have to specify this in your app's manifest Aug 09 15:32:52 ravilov, i figured that Aug 09 15:33:00 i wasnt sure if needed to check that my app looks good in both Aug 09 15:33:02 however you can implement it by some way to let the user change the theme Aug 09 15:33:18 as ravilov said. Aug 09 15:33:22 i did this in my app Aug 09 15:33:37 android used to only ever have one (consistent) style, then later you got to choose between "dark" and "light" style Aug 09 15:33:52 a dialog that has a switch(), use the setTheme(R.style.*) to apply th theme Aug 09 15:34:09 (of course you could always create your own style, in whichever version of android) Aug 09 15:34:21 ok i think that about does it Aug 09 15:34:25 ravilov: i presonally love holo-modified styles Aug 09 15:34:30 such as Google Play Music one Aug 09 15:34:33 awesome one Aug 09 15:34:35 now to swtich over and check the iOS version Aug 09 15:35:24 * xximjasonxx crosses his fingers hoping that his cloud jobs extract the data correctly once football season starts Aug 09 15:35:32 ravilov: for the most apps, do you use Holo or make ur own? Aug 09 15:36:53 * ravilov always uses the sytem-provided styles that then might or might not get tweaked some Aug 09 15:36:58 ravilov, curious, do you focus on any of the other platforms> Aug 09 15:37:05 yes Aug 09 15:37:13 which is your favorite? Aug 09 15:37:18 ASM! Aug 09 15:37:27 i was referring to mobile Aug 09 15:37:31 oh Aug 09 15:37:32 then no Aug 09 15:37:35 bb, winphone, android, iOS Aug 09 15:37:58 I do have a BB that I never did anything for Aug 09 15:38:04 win phone/ios/android you will reach 120% of the market Aug 09 15:38:04 I'm not touching ios or wp Aug 09 15:38:08 guys, i have a class (an AsyncTask) that is not retrieving data with an httpclient. Would you checkit out? Aug 09 15:38:08 i never did bb Aug 09 15:38:12 win mobile way back Aug 09 15:38:16 bb is silly Aug 09 15:38:20 these days i focus on Xamarin, iOS, and Android Aug 09 15:38:29 https://gist.github.com/nschurmann/ad6ba865fc72c2f962a0 Aug 09 15:38:31 and i maintain vigilent hope that Windows Phone will become more popular Aug 09 15:38:55 imo, developer experience wise, Microsoft blows everyone away with tools and support for their platform Aug 09 15:38:56 I on the other hand hope it dies finally, it sure is on its good way to do that Aug 09 15:39:04 but, clients want iOS, and then Android Aug 09 15:39:15 of course they do Aug 09 15:39:29 wp has yet to gain any momentum worth even mentioning Aug 09 15:39:35 although, they have made strong headway in Europe, 14 markets they are #2 Aug 09 15:39:43 iOS is #3 in those markets Aug 09 15:39:51 in some cases, a very distant #3 Aug 09 15:39:56 ...which they won't ever do if there aren't enough interesting apps available... Aug 09 15:39:57 naschurmann: what is it saying? Aug 09 15:40:00 ...so yeah, closed circle Aug 09 15:40:05 or downward spiral Aug 09 15:40:10 naschurmann: are you getting any exception in logcat? Aug 09 15:40:15 it catches the exception Log.e("[GET REQUEST]", "Network exception"); Aug 09 15:40:25 ravilov, like i said, I have HOPE Aug 09 15:40:29 but that is all :) Aug 09 15:40:38 yeah, good luck with that :p Aug 09 15:40:46 thankfully I know Objective-C and Java well enough Aug 09 15:40:49 name of http://i.imgur.com/KzwR4pd.png ? Aug 09 15:41:17 naschurmann: there are so many things that can go wrong.... do you have internet permission in manifest? Aug 09 15:41:17 what is that theme? Aug 09 15:41:20 it's not Holo Aug 09 15:41:30 naschurmann, it would be more helpful if you would dump at least *something* out of that exception Aug 09 15:42:12 bhargavg: I feel so ashamed right now.... Aug 09 15:42:15 OverCoder, you do know android is user-themeable, right? my (now considered ancient) android looks nothing like android at all Aug 09 15:42:49 bhargavg: but still throws the network exception :P Aug 09 15:42:55 what do you mean? that kind of theme is used a lot Aug 09 15:43:02 OverCoder: custom theme, but look at https://play.google.com/store/apps/details?id=net.openvpn.openvpn&hl=en they switched to Holo Aug 09 15:43:06 ravilov: let me paste that :P Aug 09 15:43:09 And it's kinda ugly Aug 09 15:43:23 https://gist.github.com/nschurmann/5dd9f8487c6e0fd9056f Aug 09 15:43:24 naschurmann, okay, then I guess we can safely conclude there is a network-related problem. that's about it Aug 09 15:43:38 thx ravilov kakazza Aug 09 15:44:24 naschurmann: put e.printStackTrace() in your log, otherwise cant help with the log that you've pasted Aug 09 15:44:40 Everytime i think about my self i get NullPointerException Aug 09 15:44:45 naschurmann, as far as I can see you have in your log exactly what you have in your code, which is completely useless Aug 09 15:44:47 so i don't exist? :P Aug 09 15:44:48 xd Aug 09 15:44:57 naschurmann, you get a full Exception object for a reason, y'know Aug 09 15:45:16 you might want to actually make use of it :p Aug 09 15:46:04 OverCoder, apparently you are an undefined object that has yet to be created Aug 09 15:46:28 come back when you actually get born Aug 09 15:46:44 ok Aug 09 15:46:49 thx for the help Aug 09 15:46:58 in have an apk that's installed in /system/priv-app when using mmp. What is the proper way of installing to /system/priv-app if the package is already built? Aug 09 15:47:20 bhargavg: how do i put it on the log?, Log.d("exc", e.printStackTrace()); ?? Aug 09 15:47:22 i'm awesome even though im not born yet :P ravilov Aug 09 15:47:38 ravilov: i don't understand which approach i should go on Aug 09 15:47:38 naschurmann: yep Aug 09 15:47:59 well why don't you just simply try your own suggestion there :p Aug 09 15:48:06 s/suggestion/idea/ Aug 09 15:48:06 Rescue9: what is mmp? Aug 09 15:48:17 bhargavg: printStackTrace returns void :S Aug 09 15:48:24 so it prints nothing Aug 09 15:48:37 then try just e.printStackTrace(); Aug 09 15:48:48 naschurmann: remove log.d completely as ravilov suggested Aug 09 15:49:18 naschurmann, also make sure to look up the Exception class definition as soon as possible Aug 09 15:49:34 anybody done pdf native rendering thingy in android? Aug 09 15:49:57 bhargavg: its a shell script used when building roms Aug 09 15:50:25 Rescue9: #android-root I guess? Aug 09 15:50:28 Rescue9: if its related to custom ROM's then better ask in #android-root Aug 09 15:50:29 hmmm.... guess I need to head to the android-root channel. didn't see that Aug 09 15:50:40 yea... just noticed. Appreciate it! Aug 09 15:51:05 Rescue9: gb Aug 09 15:51:21 new exception :P Aug 09 15:51:22 na... I'll lurk. Always learning something here anyway Aug 09 15:51:33 -_- Aug 09 15:51:34 xd Aug 09 15:51:34 https://gist.github.com/nschurmann/dffd2e253c123ed7032c Aug 09 15:52:07 Rescue9: that's what i always do ;) Aug 09 15:52:19 well, what's that expection telling you then, naschurmann? Aug 09 15:52:25 seems pretty clear to me Aug 09 15:52:56 ravilov: also for me, thanks! Aug 09 15:53:38 ravilov: says that the character [ is ilegal Aug 09 15:54:02 you'll go to jail, carful Aug 09 15:54:28 naschurmann, thanks for interpreting that for me :p Aug 09 15:54:33 I can see that myself Aug 09 15:54:40 question is, what do you do about it now? Aug 09 15:54:48 ravilov: yeah, but i want to be sure that it was that :P. Aug 09 15:54:48 naschurmann: Did you want to POST that request instead of GET? Aug 09 15:54:58 naschurmann, oh, then yes, you are correct Aug 09 15:55:16 kakazza: no, the api works with get (i don't like that) Aug 09 15:55:33 I guess you'll need to learn some basics about GET requests then Aug 09 15:56:53 i need to transform the string to something readable for the url Aug 09 15:57:24 how can i encrypt data? i don't care a lot about how secure it is, i just don't want it bare data over the network? Aug 09 15:58:02 rot13 Aug 09 15:58:15 i'll search for that Aug 09 15:59:29 (it's quite silly and very trivial to break, but you said you don't care about actual security) Aug 09 15:59:59 yep, i really don't care Aug 09 16:00:09 just to say to users it's encrypted xd Aug 09 16:00:31 honesty is the best policy, I see Aug 09 16:00:32 :p Aug 09 16:00:40 OverCoder: ... Aug 09 16:00:54 At least use HTTPS Aug 09 16:01:15 not using HTTP at all Aug 09 16:01:20 Then you can transfer plain text over a secure line. Aug 09 16:01:30 btw i'm not going to release that app, just a training Aug 09 16:01:31 he just said "network" Aug 09 16:01:32 What protocol then? Aug 09 16:01:52 idk, my own? :D Aug 09 16:02:08 Sure... Aug 09 16:02:17 really unsure just starting to build that preticular thing xd Aug 09 16:02:35 should i use something like SHA-1 for a real encryption? doesn't it takes some more resources? Aug 09 16:02:46 remote host was forcibly closed by an existing connection Aug 09 16:02:47 ;_; Aug 09 16:02:48 SHA-1 is not for encryption Aug 09 16:02:51 cant get this shit fixed Aug 09 16:02:52 does it have to be reversible? Aug 09 16:03:17 SHA-1 not for encyption? :O Aug 09 16:03:22 SHA-1 is a hash function and its output non reversible and of fixed length. Aug 09 16:03:24 ravilov: everything working now 8) Aug 09 16:03:27 i heared it's used in WPA Aug 09 16:03:28 yeah has nothing to do with encryption, OverCoder Aug 09 16:03:34 oww Aug 09 16:03:40 naschurmann, good job Aug 09 16:03:57 thanks :D, was a stupid mistake, leasson learned :P Aug 09 16:03:58 you should know the difference between encrypting and hashing Aug 09 16:04:03 OverCoder, ^ Aug 09 16:04:06 Anyway, I'm out. OverCoder, pick up a book or two ;) Aug 09 16:04:11 OverCoder: i recommend you start by learning a bit about encryption first :-D Aug 09 16:04:21 :O Aug 09 16:04:23 And really, consider using HTTPS, it's well established and there are a lot of helper libraries out there. Aug 09 16:04:25 felt idiot that way Aug 09 16:04:27 Maybe even a little more than a 'a bit'... Aug 09 16:04:30 stop pointing at me Aug 09 16:04:31 xd Aug 09 16:04:35 ;) Aug 09 16:04:55 too late, from now on you will forever be "they guy that doesn't know what encryption is" Aug 09 16:04:58 :p Aug 09 16:05:14 damn you go to hell Aug 09 16:05:18 i got what is the difference Aug 09 16:05:31 that kind of talk is uncalled for Aug 09 16:05:50 i can copy it from wikipedia to be "the guy that knows what encryption is" Aug 09 16:05:52 xd Aug 09 16:06:04 that's cool but you should watch your language Aug 09 16:06:26 lol i hate typiing slower with better accuracy Aug 09 16:06:35 you are a human.. Aug 09 16:06:45 am I? how do you know? Aug 09 16:07:15 cause you are a "guy" who knows the difference between encryption and hashing Aug 09 16:07:17 xd Aug 09 16:07:27 uhuh Aug 09 16:10:58 what kind of thing is this http://en.wikipedia.org/wiki/Esoteric_programming_language#Brainfuck Aug 09 16:11:14 unforgiving Aug 09 16:11:25 that one is awesome http://en.wikipedia.org/wiki/Esoteric_programming_language#LOLCODE Aug 09 16:11:47 not quite sure how is that android-related Aug 09 16:11:55 any of that* Aug 09 16:12:41 wondering that too after i posted that :X Aug 09 16:13:05 Malbolge is cooler though... Aug 09 16:13:46 it's a lol Aug 09 16:13:57 8th circle of hell? Aug 09 16:14:01 ]what does that mean? Aug 09 16:14:02 xd Aug 09 16:14:37 man Aug 09 16:14:40 you must be like Aug 09 16:14:43 really really young Aug 09 16:15:00 like what? Aug 09 16:15:01 xd Aug 09 16:15:12 either that or you haven't paid enough attention in school Aug 09 16:15:33 lol no im young xd Aug 09 16:15:46 ravilov: oooo, you have Dante's Inferno in school? Aug 09 16:15:55 xd Aug 09 16:15:56 bhargavg, doesn't everybody? Aug 09 16:16:02 We don't... Aug 09 16:16:06 we neither Aug 09 16:16:09 well that's just wrong Aug 09 16:16:58 how old are you ravilov Aug 09 16:17:05 OVER 9000 Aug 09 16:17:10 not much.. Aug 09 16:17:17 still young Aug 09 16:17:22 (I bet he won't get the reference :p ) Aug 09 16:17:57 you lost Aug 09 16:17:57 i know that shit Aug 09 16:18:00 lol Aug 09 16:18:14 it's a kind of ugly face Aug 09 16:18:22 i've heared about it at a time Aug 09 16:18:23 xd Aug 09 16:18:56 good Aug 09 16:19:14 also be careful, you might wear down your "X" and "D" keys much more than the rest of them :p Aug 09 16:19:36 Remap something else to them... Solved. ^^ Aug 09 16:19:36 lol Aug 09 16:19:37 xd Aug 09 16:19:37 xd Aug 09 16:19:49 flan3002, good point Aug 09 16:20:23 ok new problem : the app crashes when someone else connects Aug 09 16:21:52 i talk much more then the rest of you, right? Aug 09 16:23:46 ulli909, right, and how do you expect anyone to help if you don't provide any code or logs? Aug 09 16:24:06 generally speaking, look at your exceptions - they can be very revealing Aug 09 16:24:07 ulli909: ^ Aug 09 16:26:05 Hello guys! :) Aug 09 16:26:16 Lex93: hi Aug 09 16:28:19 I need a help for an app I am developing for a customer. He needs an app for sell customized tips by email. Can I use In app billing or i must use the Google Wallet API? Aug 09 16:29:46 :) Aug 09 16:29:51 Lex93: didn't got you, would you explain a bit more? Aug 09 16:32:00 in-app billing is really only good for delivering digital content Aug 09 16:32:20 for physical items you should use a different payment system Aug 09 16:32:20 Ok. This customer is an expert in something, and wants to sell tips on this argument. This tips are sent by him by email, after the payment, to the email specified by the user; or also there are some weekly plans, where he sells an "email conference", so there aren't physical contents Aug 09 16:33:01 oh Aug 09 16:33:14 so tips *are* digital content Aug 09 16:33:17 yep Aug 09 16:33:34 guess you could use in-app then Aug 09 16:35:59 ravilov, I figured it, the unique real "mistery" is that the email are not consumable in app, so there aren't problems? These digital goods are not strictly linked to the app itself, so can I use anyway in-app ? Aug 09 16:36:15 Was just looking online for certifications (more letters after your name - haha), and came across Oracle's Java certifications. What a joke! Aug 09 16:36:32 721 for only the professional level (need professional to do the master level), and it is all basic stuff! Aug 09 16:37:08 An event-based GUI, POJOs, and use of the Java classes in the Java library. Aug 09 16:37:22 721 effing quid! Aug 09 16:37:42 Are there any out there actually worth getting? Aug 09 16:38:13 Lex93, to be honest I don't know for sure, I just know how it generally works Aug 09 16:38:45 ravilov, ok, anyway thanks! :) Aug 09 16:40:17 Anyway guys, I have not yet presented! I'm Alex, an Italian developer :) Aug 09 16:46:34 Now why the... are there this many Build tools? http://i.imgur.com/FMN0ome.png Aug 09 16:48:03 I mean... who actually downloads the old ones? ^^ Aug 09 16:48:43 To not break builds if they make changes Aug 09 16:49:07 The tools should be compatible to old ones, but yeah... Aug 09 16:49:54 Not necessarily Aug 09 16:51:02 It's distributed in this way because several earlier SDK updates broke builds Aug 09 16:51:56 im going to shoot my phone soon Aug 09 16:58:31 to preserve full 100% compatibility, it is necessary to have all the bugs as well as all the features ;) Aug 09 17:01:11 iffa, make sure you tape and publish the action, with any luck it'll go viral Aug 09 17:01:20 ravilov: yeah Aug 09 17:01:29 i wont be testing my app on my phone then Aug 09 17:01:31 ;_; Aug 09 17:01:37 stupid adb Aug 09 17:01:44 Also, this way they don't have to worry if they have to make breaking changes for some reason Aug 09 17:20:21 Anyway to capture RAW Image from camera? Aug 09 17:37:50 overcoder, you did google of course? Aug 09 17:38:29 overcoder, http://bit.ly/1yhcCRu Aug 09 17:46:13 I added: Aug 09 17:46:22 to AndroidManifest.xml Aug 09 17:46:30 * flan3002 sighs at the startup speed of the emulator. Aug 09 17:46:37 but when I run my app, it gives an exception that I need that permission Aug 09 17:46:47 08-10 02:41:55.375 4528-4528/com.example.johnflux.myapplication W/System.err﹕ Caused by: java.lang.SecurityException: Permission Denial: getTasks() from pid=4528, uid=10081 requires android.permission.GET_TASKS Aug 09 17:47:09 do I need to do something special? Aug 09 17:49:18 oh, wait, no it's working fine :-D Aug 09 17:53:07 flan3002: use genymotion Aug 09 17:53:18 shmooz: Nah, it worked fine... Aug 09 17:53:44 shmooz: But the window appears for some milliseconds and then disappears without complaining... :/ Aug 09 17:54:24 * flan3002 murders a colony of zombie-emulators. Aug 09 17:56:45 hm, AS 0.8.6 Aug 09 17:59:14 is there another way to avoid android:defaultValue="inf" being parsed as float than using a string resource? Aug 09 18:01:41 Is there an easy way to reference and empty AttributeSet? Aug 09 18:09:06 EPG, probably not Aug 09 18:11:19 ok, wish this behavior was better documented Aug 09 18:15:48 EPG: googled android:defaultValue="inf" and it had a link to a log from this chat from 2013&you asking a question about it haha Aug 09 18:16:29 canvs2321, yeah :D Aug 09 18:17:02 you were the only result :) a year later it still haunts you with inf :) Aug 09 18:19:29 I went through some old notes and found this :) there are also other issues with this, e.g., using too large integer numbers, "+1" is also parsed as float, etc. Aug 09 18:28:29 so far my app just allows the user to open up and snap a shot with the camera. is location data of the user stored anywhere by default? Aug 09 18:28:38 if they have gps on i mean Aug 09 18:29:20 check the meta data Aug 09 18:29:28 or exif Aug 09 18:30:26 thanks Aug 09 18:48:36 Are cookies persisted through app sessions? Aug 09 18:53:13 EPG, neat, easy answer: look at aosp sources to see why it's expanding that for you Aug 09 18:54:14 pfn, yes, did that but haven't found the code which does it (probably in aapt) Aug 09 18:54:50 well, it'd be becaus of the attr definition Aug 09 18:54:57 not so much aapt Aug 09 18:56:28 grep -w inf res/values/* Aug 09 18:57:45 pfn, no, "inf" is successfully parsed as float during compilation and then stored as such in the compiled resource Aug 09 18:58:10 you can also use any other float, or "nan", "NaN", "+1" etc. all parsed as float Aug 09 18:58:13 yes, look in framework resources Aug 09 18:58:42 hmm, ok, interesting, why is this a problem, presumably your pref is a float Aug 09 18:59:17 you can also use aapt d xmltree Aug 09 18:59:38 EditTextPreference uses String, so I expected that the defaultValue would also be just handled as String Aug 09 19:00:04 (same for other Preferences) Aug 09 19:00:05 it should, provide a sample app that demonstrates this... Aug 09 19:00:26 then file a bug Aug 09 19:07:37 pfn, yeah, probably best thing to do Aug 09 19:09:39 Hi ! I'm new to android development and Android Studio. I want to edit my layout but i get this error: The following classes could not be instantiated: - com.android.internal.widget.ActionBarView Aug 09 19:11:42 I followed this tutorial to end perfectly but the device didn't enter the recovery mode! http://www.droidthunder.com/root-install-cwm-recovery-samsung-galaxy-core-i8262/ Aug 09 19:12:26 I just end up getting a yellow triangle Aug 09 19:12:43 LFS: for questions related to rooting, use #android-root Aug 09 19:13:10 it worked now .. thanks Aug 09 19:23:21 even though everywhere they use LinearLayout, i still use RelativeLayout, but i wonder what is the difference? Aug 09 19:31:09 relative layout performs best for non trivial layouts Aug 09 19:31:12 You wonder whats the difference? Read the API docs. One allows you to align children relative to each other (eg child b to left of child a) while linear is a single row or column. Aug 09 19:33:31 rgr: actually to be honest i haven't worked much with Linear, but when i started learning i didn't read the google docs and i started to make learn with the help of the IDE, something like self-learning, and now i'm familiar with RelativeLayout and i don't want to go for LinearLayout, but i wonder if i will get troubles there Aug 09 19:34:18 i don't think relativeLayout performs better than LL in all situations. especially if the depth is the same, and you aren't using weights - LL should be faster Aug 09 19:34:44 :| Aug 09 19:34:51 so which one i should rely on? Aug 09 19:35:39 Whichever one you need of course. They do different things. Its a layout. All done in preprocessing. Just use the one for the job and dont read too much into it. Aug 09 19:36:53 (and if youre familiar with relativelayout then... well, linear is even easier) Aug 09 19:37:04 rgr: oh Aug 09 19:37:17 i'm a bit puzzled Aug 09 19:37:30 i mean with relative each view based on the descandant one Aug 09 19:37:37 while here each one on it's own Aug 09 19:41:14 OverCoder did you see romain's old posts on LL / Rl ? Aug 09 19:42:40 romain? Aug 09 19:43:36 no Aug 09 19:44:04 http://stackoverflow.com/questions/4069037/android-is-a-relativelayout-more-expensive-than-a-linearlayout Aug 09 19:44:12 read the answer and follow the link in 25 Aug 09 19:45:22 g00s_: Thanks i will check that out now Aug 09 19:50:46 seems LL is better than RL in term of Performance Aug 09 19:51:34 yes, relative layout performs best for non trivial layouts Aug 09 19:52:38 :| Aug 09 19:53:10 a linear layout is a trivial layout and performs better Aug 09 19:57:58 Hello Androidstas Aug 09 19:58:48 Any good documentation based on android development with ROOT? Aug 09 19:59:08 if you have to ask, you shouldn't Aug 09 19:59:19 Well, I just did (: Aug 09 20:00:14 hello Aug 09 20:00:17 how do you create a notification that cannot be cleared with the 'clear all' button? (and how is this type of notification called?) Aug 09 20:00:30 ongoing Aug 09 20:00:31 does this have anything to do with setAutoCancel()? Aug 09 20:01:03 setAutoConfirm(); Aug 09 20:02:58 ok looks like this is it http://developer.android.com/reference/android/app/Notification.Builder.html#setOngoing(boolean) Aug 09 20:03:01 thanks Aug 09 20:03:10 roll a joint was a bit entertaining Aug 09 20:03:30 maybe i should decompile the source with apktool. Aug 09 20:04:28 or try googling root documention and hose your phone? Aug 09 20:04:30 for some odd reasons some apps are installing after i re assign some signatures for re-compiling source. Aug 09 20:04:41 it worked for caller id spoofer Aug 09 20:05:17 brb ladies Aug 09 20:28:00 how would I go about implementing a layout looking like the Play music album layout? Like 2 items in each row. Is there a name for it I could search for? Aug 09 20:29:23 GridView Aug 09 20:29:30 It's a GridView, isn't it? Aug 09 20:29:33 Too slow. Aug 09 20:30:24 thanks, I assume populating it is similiar to a listview and its adapter? Aug 09 20:30:57 Yes Aug 09 20:31:11 great Aug 09 20:31:53 Hmm, I wonder if there is a "best" way to represent a two-level data structure on a ListView.. Aug 09 20:32:13 like a treeview? Aug 09 20:32:32 Not a TreeView, a ListView.. But with two kind of items. Aug 09 20:33:07 I could have two classes extend a dummy superclass, and then an ArrayList of them... but I'd have to do sorting Aug 09 20:46:53 Hello! I am trying to use Android Studio with gradle. I must say gradle integration with IntelliJ/Android Studio sucks. Anyone else having problems? Currently I’m having something similar to http://stackoverflow.com/questions/25181764/gradle-project-sync-failed-with-no-event-log Aug 09 20:47:37 Run gradlew --stacktrace assembleDebug Aug 09 20:48:30 It doesn’t matter what I change, I keep getting the same error: “Gradle “XXX” project refresh failed”. Error: (of class java.lang.String). Aug 09 20:50:01 How about you do what I just said Aug 09 20:52:35 autrilla: It works from the command line, but Gradle refresh from the IDE doesn’t work Aug 09 20:52:39 also maybe load the intellij plugin and run "gradle Idea" Aug 09 20:53:01 "works for me". Are you sure you have told your project which gradle to use? Aug 09 20:53:12 sorry, which build file Aug 09 20:53:19 oscarvarto sounds like Idea doesn't jave a jvm set Aug 09 20:53:30 since it can't find String Aug 09 20:53:40 ah. heh. Aug 09 20:53:43 a jdk* set Aug 09 20:54:29 reading that link it sounds like a plugin issue. Aug 09 20:55:08 Maybe I should try to remove the Scala plugin Aug 09 20:55:15 and see if that’s causing the problem Aug 09 20:55:31 (I do use Scala everyday) Aug 09 20:57:24 I doubt you use Scala with Android Studio every day. Aug 09 20:57:32 It seems to be a problem with the Scala plugin. Damn it. Aug 09 20:57:39 Well there you go :) Aug 09 20:57:57 autrilla. I use IntelliJ IDEA Aug 09 20:57:59 everyday with SCala Aug 09 21:04:57 android studio won't support the scala plugin Aug 09 21:06:23 So, If I extend the View class, could anyone think of a reason that my subclass could not access proteced variables from View? in particular I cant seem to access the protected mPaddingTop variable Aug 09 21:06:58 Google is great Aug 09 21:06:59 http://stackoverflow.com/questions/3071720/why-cant-my-subclass-access-a-protected-variable-of-its-superclass-when-its-i Aug 09 21:09:57 autrilla: I have indeed seen that link, and yet still it does not work Aug 09 21:09:58 :/ Aug 09 21:12:12 zzxx_, from where are you trying to access mPaddingTop? Aug 09 21:13:56 autrilla: I'm just getting some code to post so my problem can be seen better, but from within my custom view I am overriding onDraw(Canvas c), and within there this.mPaddingTop is not resolving as a symbol Aug 09 21:15:13 that should work. Thats not linked to the issue in that link which is the case of myRefToOtherInstance.protectedMember. Aug 09 21:15:34 rgr, yes. I know :) Aug 09 21:15:36 which makes perfect sense. Aug 09 21:15:45 i just am unsure what is making it not work :/ Aug 09 21:15:54 post a minimised example. Aug 09 21:16:03 just minimizing it now :) Aug 09 21:18:47 zzxx_, it's weird, protected should be accessible from a subclass. You can use this.getPaddingBottom() anyway. Aug 09 21:18:49 pfn: Thanks for the information Aug 09 21:24:31 protected is availale from a subclass but not from a reference to another instance of that subclass in the subclass. Oh so it should be. Interested to see this code now. Aug 09 21:25:34 http://i.imgur.com/gdwWk6R.png Aug 09 21:27:09 ide is android studio if it matters at all Aug 09 21:29:18 mPaddingTop is not part of the public api Aug 09 21:32:20 SimonVT: Interesting. Can you explain this further? how is a protected member hidden from its children? Aug 09 21:33:51 (I was unaware of the getter method before, but can obv use that now, so my problem is solved, but am still curious how they hide it according to SimonVT ) Aug 09 21:34:34 zzxx is it 'protected' or 'no modifier' ? Aug 09 21:34:52 becuase it depends on the package of the class extending too Aug 09 21:35:26 for example, with no modifier : int x =1 ; a class in another package which extends can't see that Aug 09 21:35:49 vs protected int x = 1 Aug 09 21:38:09 @ViewDebug.ExportedProperty(category = "padding") Aug 09 21:38:10 protected int mPaddingTop; Aug 09 21:38:15 is the definition of it Aug 09 21:38:17 in View Aug 09 21:38:38 line 3010 Aug 09 21:41:33 zzxx "The protected modifier specifies that the member can only be accessed within its own package" Aug 09 21:41:47 g00s_, so? Aug 09 21:41:49 k5_: Where have you read that? Aug 09 21:42:09 err... sorry, g00s_ ^^ Aug 09 21:42:13 zzxx oops, forgot the other part of the sentence Aug 09 21:42:19 http://docs.oracle.com/javase/tutorial/java/javaOO/accesscontrol.html Aug 09 21:42:38 g00s_, try creating a class Parent with protected String s;, then a class Child, and you can access it from there Aug 09 21:42:44 Now try with View :) Aug 09 21:44:00 it seems its {@hide} Aug 09 21:44:22 zzxx, get it from the getter Aug 09 21:44:52 autrilla: indeed i will. im stull curious :) Aug 09 21:45:59 g00s_: the rest of that quote is ..." and, in addition, by a subclass of its class in another package" Aug 09 21:46:07 Where are you finding the hide annotation? Aug 09 21:46:53 zzxx the {@hide} is in the source code Aug 09 21:46:59 * {@hide} Aug 09 21:47:02 It's commented Aug 09 21:47:29 http://stackoverflow.com/questions/17035271/what-does-hide-mean-in-the-android-source-code Aug 09 21:47:55 ah yes. thank you. Aug 09 21:47:59 that would explain it Aug 09 21:48:45 It does not. That excludes it from the javadoc Aug 09 21:53:11 afaik, android.jar has @hide stuff removed Aug 09 21:53:21 so that explains it ;) Aug 09 22:09:39 Why is there no legacy-toolchains tarball for the ndk r10? or am I supposed to use r10 with the last legacy-toolchains tarball from r9b? Aug 09 22:19:26 if I need GPS fairly quickly (say every 500ms) is there a better way than location listener? Aug 09 22:20:08 preferably even faster, 4x-10x a second would be preferable Aug 09 22:21:20 are phone gps chips not limited to hell ? as in updates max every few seconds and accuracy 4-6 meters ? Aug 09 22:21:40 ^ Aug 09 22:21:45 updates between that are interpolated and guessed :) Aug 09 22:21:49 My phone always puts me in next doors haha Aug 09 22:22:11 guessed … I mean projected/predicted Aug 09 22:22:22 Also depends on how the Location manager calculates your location (Network, GPS, etc.) Aug 09 22:22:25 so then google maps uses a prediction on what road you are on based on movement etc? Aug 09 22:22:34 hence the … whoops moments when your location jumps :) Aug 09 22:22:44 jonc: Aug 09 22:22:51 yeah Aug 09 22:23:17 hmm, ok Aug 09 22:23:47 because I mean 1 second at 60 mph is going to be 88 feet Aug 09 22:24:10 yeah, so it takes your direction, velocity and makes it acceptable Aug 09 22:24:32 also with a bit of path finding correction/guessing Aug 09 22:24:36 I would assume Aug 09 22:24:37 :) Aug 09 22:24:39 yeah Aug 09 22:24:46 some devices also have inertial navigation provider which helps with that Aug 09 22:25:21 and some devices can do commercial grade gps, updates in 10ms and accurate to 3cm Aug 09 22:25:34 but they cost, not due to hardware due to license Aug 09 22:25:38 which is funny Aug 09 22:26:22 ok, that makes sense, using the accelerometer to determine if someone was turning between 2 gps waypoints makes sense though Aug 09 22:26:52 StingRay_: there's no license on that, afaik. with SA disabled you get whatever your GPS manages to get, and what you're willing to power (more updates = more power used). Plus antenna quality etc. Aug 09 22:27:47 I thought there was a spec on it, limited for gov/commercial/military Aug 09 22:28:01 Yes, but it was never about license Aug 09 22:28:04 same satalites diff freq/update time Aug 09 22:28:06 and it was SA Aug 09 22:28:28 any reason why i would be getting a NoClassDefFoundError for one of my class files Aug 09 22:28:36 Selective Availability, no longer present on new sats, was encrypted signal with decoders available only to military Aug 09 22:29:41 with selective availability set to off, the signal it encrypted is sent unencrypted and thus usable without decoder Aug 09 22:29:48 p_l really? about the INS, is it just sensor fusion or extra hw ? Aug 09 22:30:02 (with SA on, you'd get 100m quality) Aug 09 22:30:36 g00s_: software that knows how to use the specific accelerometers as source, afaik Aug 09 22:30:49 those double integrals are pretty bad :) Aug 09 22:30:51 might need to be quite well calibrated for the specific device, though Aug 09 22:30:51 I never understood how GPS works Aug 09 22:30:55 i was posative it would be a license in manuf. of the chips that restrict it, not really signal… Aug 09 22:31:03 StingRay_: nope Aug 09 22:31:19 license means nothing in preventing someone from using the signal Aug 09 22:31:50 Thanks to light not being instant, but... It uses a pseudo-random code and that makes it unprecise if you don't know the randomness it's going to have or something like that Aug 09 22:32:40 And I think the US unlocked GPS not too long ago Aug 09 22:32:53 So now precission is only affected by the clock your system has, I guess Aug 09 22:33:01 autrilla: there's time code plus CPRNG Aug 09 22:33:10 sats are the source of clock signal Aug 09 22:33:25 CPRNG is involved in muxing it, iirc Aug 09 22:36:06 Ah, I think I understand it now Aug 09 22:36:19 You need 4 satellites because one is needed for comparison Aug 09 22:37:30 https://en.wikipedia.org/wiki/GPS_signals <--- full list of signals Aug 09 22:38:15 Hi all Aug 09 22:38:30 Has anyone done any android stuff with Kotlin? Aug 09 22:38:33 Yeah, accelerometer cannot be used exclusively Aug 09 22:38:47 dead reckoning doesn't work reliably over any sort of time Aug 09 22:39:15 GPS transmits at 1023Mbit/s? Aug 09 22:39:17 Oh god Aug 09 22:39:43 Has anyone here used the accelerometer? It seems you have to filter it right? Aug 09 22:40:01 yeah, low pass filter probaby ;) Aug 09 22:40:28 depends on what you are looking for Aug 09 22:41:15 Hmm Aug 09 22:41:27 Would anyone here know how to map button events against a non-linear function? Aug 09 22:42:25 Anthaas, what do you mean? Aug 09 22:42:58 Actually, scratch that a second Aug 09 22:44:39 Im trying to catch when the volume button has been held down for a certain amount of time in a service. Aug 09 22:44:48 and then fire an event Aug 09 22:54:11 you can do an onKeyDown and onKeyUp on an Activity and there are codes for volumekey so you can do your own timer thing. Dunno about services. Aug 09 22:54:25 Yeah, not possible. Aug 09 22:54:41 The only thing you can do in a service is register android.media.VOLUME_CHANGED_ACTION Aug 09 22:55:07 Has anyone here used google play multiplayer services? Aug 09 22:56:11 zzxx: Anything with the @hide annotation is not exposed in the public api. The android.jar android apps are built against simply does not contain those methods/fields/classes Aug 09 23:10:48 Anything thing that can be done with adb repeatedly saying device is offline, even though the device is connected to the computer? Aug 09 23:11:01 What does "adb devices" say? Aug 09 23:11:20 kill server and restart? Aug 09 23:11:22 Switched between offline, and not listing any devices Aug 09 23:11:25 restart device? Aug 09 23:11:25 Zaneo adb is troublesome Aug 09 23:11:30 i just unplug the device Aug 09 23:11:31 I can do that, and it stays connected for 3-5 seconds Aug 09 23:11:42 Try a different USB cable Aug 09 23:12:10 Have done, is adb more finicky than say mounting the sdcard as a disk? Aug 09 23:12:18 because that will stay connected for hours Aug 09 23:14:05 Well it depends what you're trying to do, really. Sure you can mount the storage easily, but you won't be able to send ADB commands to it Aug 09 23:14:28 I mean to say if the cable was the problem, would it be able to mount for that long? Aug 09 23:15:18 It could, yeah Aug 09 23:15:37 I had a cable that made ADB disconnect if I bent it wrong, but the device stayed mounted the whole time Aug 09 23:15:52 Lovely Aug 09 23:19:16 I'd say its your HW. using latest adb here and never a squeak from adb. The only issue I get is sometimes an exec or debug session failing because the kernel was missing a file or something if I run/debug a little too soon after connecting the phone to the USB port. Aug 09 23:21:03 I dunno, ADB is a little finnicky. If I leave the server running, when I disconnect a device and connect any device, the same or different, it can't access it until I restart the server Aug 09 23:21:37 which platform? Aug 09 23:22:10 Linux Aug 09 23:22:39 same here. Debian Testing. No probs at all. Ah well, that's Linux for you.. ;) Aug 09 23:23:16 Manjaro. Haha it's not a big deal, and it's definitely a lot smoother than it used to be with Windows ;) Aug 09 23:23:36 Anthaas: [late response :-)] but are you planning to release your app/source publicly? Oddly, I too am implementing something like this (but with a different trigger.) Aug 09 23:23:46 I am Aug 09 23:23:59 You're all trying to make me jealous aren't you Aug 09 23:24:12 Anthaas: awesome. :) Aug 09 23:24:20 kbs: Why do you ask? :P Aug 09 23:24:53 Anthaas: to avoid replicating work, pretty much. I coded up something crude after a somewhat similar incident, but I like your idea of using the volume button Aug 09 23:25:20 Ahhh - yeah mine is pretty crude at the moment, but it is functional, so she can use it for now. Aug 09 23:25:28 In the meantime, Im going to clean it up a little. Aug 09 23:25:44 It should take too long - I have a lot of free time, I could let you know when its done if you like? Aug 09 23:25:54 s/should/shouldn't Aug 09 23:26:10 autrilla: you can use Linux if you want. A large learning curves. Dual boot. Or simply buy a cheap used thinkpad from eBay and wack Debian or somesuch on it. Far lower HW reqs than Windows. But I'm not one of these Linux fanboyz who says it will "just work" : it probably wont and you will have a lot to learn if you're not already familiar with Linux. That said it was an investment I've never once regretted. Aug 09 23:26:22 Anthaas: that would be excellent - I can just look at your github(?) acct every once in a while. Aug 09 23:26:35 rgr, I've used Linux before Aug 09 23:26:37 kbs: Sure - its empty at the moment haha Aug 09 23:26:40 And I'm considering dual-booting Aug 09 23:26:45 Oop - light just blown. brb Aug 09 23:27:02 Did you install and maintain it yourself or was it provided. Aug 09 23:27:23 I installed it myself and maintain it myseld Aug 09 23:27:26 myself Aug 09 23:27:31 Plus two servers Aug 09 23:27:32 then you#re half way there. Aug 09 23:27:47 Plues one Windows Server server. Awful. Aug 09 23:27:52 Plus* Aug 09 23:28:26 nothing wrong with Windows Servers if you know what you're doing. The world uses it enough. No need to damn Windows : this is an OS agnostic group for the main part :))) Aug 09 23:28:59 The problems come when you don't know what you're doing :P Aug 09 23:29:25 yes.... Aug 09 23:29:39 And sometimes weird stuff happens, for example one of our mouse's buttons stopped working suddenly. It gets fixed by inverting the buttons and de-inverting Aug 09 23:29:50 But bugs exist on all OSs :) Aug 09 23:30:01 Back Aug 09 23:30:13 g00s_: Made some millionare shortbread earlier :P Aug 09 23:30:19 That said I'm picking up my first new desktop in 8 years on tuesday. I'm drooling. 16 Gig of ram, ssd for the OS, 2 Tb sata for main storage and a quad code i7. Intellij is going to be pretty damn quick.... Aug 09 23:30:41 Anthaas bah, give bread to the poor Aug 09 23:30:45 * g00s_ gets in line Aug 09 23:30:47 Think about the number of games of solitaire you can have running at the same time :D Aug 09 23:31:06 I dont run Windows :) (yeah I know it exists for Linux too most probably)... Aug 09 23:31:06 Anthaas: one question - have you ever found a way to make a voice call (rather than an SMS) from a (say, pattern) locked screen? ACTION_CALL seems to still want to unlock the screen. Aug 09 23:31:11 haha - the gutting thing is I started it late so I may not eat any until tomorrow even though its in the fridge and nice and set. Aug 09 23:31:43 rgr, you used laptops? Aug 09 23:31:48 16Gb of RAM here too Aug 09 23:31:53 kbs: Not tried, but I shouldn't imagine you can. Aug 09 23:31:54 I see no need for an i7, but meh Aug 09 23:32:07 I mostly use laptops. I always buy old used thinkpads. Cheap, bomb proof and Linux friendly in the main. Aug 09 23:32:20 128GB for the OS(s), 500GB storage Aug 09 23:32:43 Anthaas: (just realized you are sending an emergency SMS :-) I was hoping to send a voice call somehow -- even if pre-recorded. Aug 09 23:32:53 Why do you see no need for an i7? Some people would say the same about an i5 versus whatever AMDs latest mongrel is. For a few quid more it seems worth it. Aug 09 23:33:20 rgr, because I doubt you'll run something that my i5 4670 can't handle Aug 09 23:33:22 I was also going to implement a similar feature, but you could send a link to it stored on a webserver, for example? Aug 09 23:33:55 And a lot of i5s are better than most i7s Aug 09 23:34:11 Anthaas: so the initial transport mechanism is still SMS, but you send a link via the SMS - is that what you mean? Aug 09 23:34:31 kbs: Thats exactly how Im implementing sending a last known location. Aug 09 23:34:36 I doubt youd run into anything an Core 2 duo couldn't handle either : what I currently use and I run a 15 domain web server connected to mysql from it too. Sometimes we just like to know whats under the bonnet. Aug 09 23:35:01 I dont think any assumptions about the receiving device should be made. Aug 09 23:35:16 rgr, that's surprising, considering your webs are probably PHP. Aug 09 23:35:35 rgr: unless you really need the extra features/cores, most i7-based laptops supposedly go too fast into overheat condition and start clocking down aggressively Aug 09 23:35:48 rgr: of course, there are laptops that cool well :) Aug 09 23:36:23 Anthaas: *nod* it's a good idea. In my [specific] situation, the sending party doesn't have SMS enabled - just voice, or data. Ideally, I'd like to directly tickle a voice call, but failing that some way to notify the receiver in a useful way. Guess I'll need to code up a server bit somewhere in the middle. Aug 09 23:36:36 my new machine isnt a laptop its a desktop. Aug 09 23:36:54 my laptop is a very nice thinkpad x121e. runs debian flawlessly. Aug 09 23:37:12 I'm considering getting a Surface Pro 3 Aug 09 23:37:49 rgr: on desktop then sure :D Aug 09 23:37:56 If the sending party has data enabled, could you not send details to a server, and have the server send an email to someone? Aug 09 23:38:18 Anthaas: right, that seems the way to do it indeed. Aug 09 23:38:19 autrilla: whats that mean "considering webs are mostly php"? They are yes. But its an event driven process and even with quite a lot of hits processing php doesnt hit anything from the last 15 years that hard. I used to run it all from a thinkpad x30 until a year agp : and that with only 2 Gigs of ram. Aug 09 23:38:54 PHP isn't particularly fast Aug 09 23:43:51 apropos nothing at all, (but speaking of 'fast') been looking at the design of order-matching systems; eg: http://martinfowler.com/articles/lmax.html - if someone here has pointers to other papers/thoughts about how these systems achieve such high processing rates, be very interested... Aug 09 23:45:39 Does a configuration change happen mid-function? Like suppose some function is running on the main thread and I turn the phone sideways. Will it interrupt that function or is the function guaranteed to complete before the config change occurs? Aug 09 23:48:05 I've always expected it completes (unless the entire process is destroyed for some reason) - but best to confirm with the better-informed minds here when they wake up I guess Aug 09 23:49:23 (partly because I don't know if there's a way to actually pre-empt running a thread in java unless it's doing some i/o task :) Aug 09 23:51:29 I just tried putting a Thread.sleep(30000) in the main thread and my phone will still do a config change during it, although the config change is delayed by 10 seconds or so. Aug 09 23:52:08 hm, that sleep should [in theory at least] throw an ANR exception Aug 09 23:53:55 Just tried it on two different phones... No exceptions. And both will config change in the middle of the sleep. Aug 09 23:53:58 3 seconds isnt an ANR is it? Aug 09 23:54:04 Thought it was longer Aug 09 23:54:04 30 seconds Aug 09 23:54:11 Isnt it in millis? Aug 09 23:54:15 yes Aug 09 23:54:18 Oh shit haha Aug 09 23:54:21 Misread sorry Aug 09 23:54:22 I put 30000 heh Aug 09 23:54:52 Do you get an ANR if you just wait for 10 seconds without flipping the device? Aug 09 23:55:07 nope Aug 09 23:55:13 very strange Aug 09 23:55:20 Saying that Aug 09 23:55:21 Why should it Aug 09 23:55:30 You are asking it to, and it is doing what you want... Aug 09 23:57:15 out of curiosity, what do you do to trigger the sleep? Aug 09 23:57:26 Thread.sleep(30000) Aug 09 23:57:39 well, meaning - is it on the click of some button, or on some lifecycle callback, etc Aug 09 23:58:35 It's in a function called from onCreate(), so it's happening when I first start the app. Aug 09 23:59:03 Why are you sleeping the thread for 30 seconds onCreate, out of curiosity? Aug 09 23:59:15 * kbs is flummoxed why there isn't an ANR with a 30 second delay within onCreate() :-) Aug 09 23:59:34 As a test. I wanted to know whether or not a config change can happen mid function. Or whether a function is guaranteed to complete before a config change occurs. Aug 10 00:00:39 function ? is it not a case of just looking at the lifecycle methods of an activity ? Aug 10 00:01:03 as in onCreate, onCreateView, onAttach etc will be completed before onPause Aug 10 00:01:10 if the device rotated Aug 10 00:01:23 Here's my concern. What happens if you're in the middle of a loop that's populating some global list or data structure. Can a config change occur in the middle of that, leaving the list half populated or in a corrupt state? Aug 10 00:01:23 including all functions within them on the ui thread Aug 10 00:01:41 depends on thread and where called Aug 10 00:01:47 In the main thread Aug 10 00:02:02 In onCreate() Aug 10 00:02:03 ui in a lifcycle method yes it should complete I would think Aug 10 00:02:33 I'm not 100% on this, but seems logical Aug 10 00:02:49 ui thread + lifecycle method = will complete Aug 10 00:02:59 But I'm not seeing that. I put a Thread.sleep(30000) in onCreate() yet I'm still able to do a config change in the middle of it Aug 10 00:03:20 you cannot sleep the UI thread ? Aug 10 00:03:33 or I'm guessing :) Aug 10 00:03:43 but that again seems logical Aug 10 00:04:19 the symptom SilentByte reports is roughly: "config change occurs after about 10 seconds, however no exceptions are thrown." Aug 10 00:05:12 Yeah I just timed it more accurately. The config change will occur in about 5-6 seconds as the sleep is in progress. Aug 10 00:05:23 5 seconds is very close to the ANR max timeout Aug 10 00:06:11 if I do new Date().getTime() do I get the GMT timestamp? Aug 10 00:06:16 gmt time in ms* Aug 10 00:06:34 SilentByte: dunno that seems (to me at least) to indicate an ANR is getting thrown - but if you cannot trigger an ANR by just doing no device flip, then my theory is bogus :) oh well. Aug 10 00:08:44 jonc: you get the epoch msec - it's effectively a time-zone agnostic number I suppose Aug 10 00:10:27 that's what I thought, just verifying Aug 10 00:14:12 SilentByte: a different way to test this might be to pick a sleep that's smaller than the ANR timeout, and print a log after the sleep. Then, check that you see it Aug 10 00:14:38 this way you'll not be dealing with two issues at the same time ;-) Aug 10 00:16:06 Well, I am seeing my logging (and my app is continuing) after the 30 second sleep. Aug 10 00:18:39 hm, that's so weird. So [just to make sure I follow] the screen itself rotates after 5 seconds, but you see your before/after sleep logging prints exactly once? Aug 10 00:19:17 (the before being logged before you flip, and the after being logged after the flip, and after 30 seconds presumably.) Aug 10 00:23:58 I see "before sleep" then I see no logging whatsoever for 30 seconds, then I see "after sleep" as expected Aug 10 00:24:48 interesting - and means I don't fully understand when ANRs get thrown :-) oh well. Aug 10 00:24:49 if a config change occurs during the sleep, I get an extra "before sleep" and "after sleep" after the above output Aug 10 00:24:52 oh Aug 10 00:25:38 so when you flip the phone, you get four logs - before-30seconds-after [some random pause] before-30seconds-after Aug 10 00:25:50 correct Aug 10 00:28:01 interesting (and unexpected per my understanding at least :-) but at least, you know you won't be interrupted on this device within onCreate() :) Aug 10 00:29:10 my 0.02 - don't cross the ANR timeout (as a general rule I guess) and you should be ok. [You could do another check by putting your timeout within a button just to be on the safe side I think.] Aug 10 00:31:02 Yeah I agree. I'm not actually having any problems. I just want to get a better understanding of how the config change process works. Aug 10 00:31:28 Appreciate the input though. Aug 10 00:35:10 ive made my app be an option when an user goes to a site, is there a way to make it work if the url has stuff like www60 instead of the basic www/nothing? Aug 10 00:54:09 jonc Date is pretty much deprecated Aug 10 00:54:28 did you just need the current time ? Aug 10 00:55:19 there's a reason why AndroidStudio has an import for JodaTime predefined... :D Aug 10 00:55:58 * g00s_ hasn't needed Joda yet Aug 10 00:56:12 Joda is ... probably deprecated too Aug 10 00:56:27 jsr310, threeten, are its successors Aug 10 00:58:00 there is a item in the issue tracker for android to support jsr310 Aug 10 00:58:06 how do you think thats going to work out :) Aug 10 00:58:57 https://code.google.com/p/android/issues/detail?id=62192 Aug 10 00:59:15 Status: Declined Aug 10 01:01:17 JodaTime isn't so much deprecated - indeed, jsr310 doesn't cover JodaTime's full functionality Aug 10 01:01:43 however, it brings several good ideas from JodaTime to standard Aug 10 01:04:33 p_l interesting, 2.4 was just released not too long ago Aug 10 01:04:53 i remember back in te days, it took 30 seconds for it to parse its own Tz data on first use Aug 10 01:05:59 Tz stuff is complex :D Aug 10 01:06:15 Tz stuff changes quicker than joda is released :) Aug 10 01:15:52 * capella yawns ... Aug 10 01:16:48 * g00s_ sticks large trout in capella 's mouth Aug 10 01:17:32 lights it's tail ... puffs Aug 10 01:18:09 * capella blows in it's head, watches it's eyes explode Aug 10 01:18:55 hasta la vista, baby ! Aug 10 01:20:37 g00s_, I need the current time in ms in a timezone agnostic way Aug 10 01:20:52 something that will allow easy comparison across timezones Aug 10 01:20:58 jonc thats just System.getCurrentTimeMillis Aug 10 01:21:06 ok Aug 10 01:21:08 ^ Unix Epoch Aug 10 01:21:37 yeah, from what I read, new Date().getTime() does the same thing, but System.getCurrentTimeMillis will be better Aug 10 01:21:45 and less garbage :) Aug 10 01:21:56 yeah, that's why I am saying it is better :D Aug 10 01:39:37 Hmm, I wish it were possible to have two instances of AS open at the same time Aug 10 01:40:30 Oh wait, I can :D Aug 10 01:40:53 Anthaas probably better to have multi window / project working Aug 10 01:41:02 Oooh how? Aug 10 01:42:44 the behavior is in Preferences -> General i think Aug 10 01:46:06 g00s_: Sorry, disconnected - how do I go about that? Aug 10 01:48:45 Anthaas Prefs -> General Aug 10 01:49:07 open project in new window Aug 10 01:51:37 Royal. Pain. In the arse. Aug 10 01:51:44 Sorry, did you reply that time either? haha Aug 10 01:53:56 lol Aug 10 01:54:05 he said Prefs -> General Aug 10 01:54:11 open project in new window Aug 10 01:54:21 Ahh cheers Aug 10 01:55:38 g00s_: I have mentioned to you the firefox sqlite editor right ? for mac I think it's the best option and the best little thing ever! Aug 10 02:36:10 is there a nice way to persist cookies for network calls? Aug 10 02:50:31 StingRay_ yeah, i have tried it **** ENDING LOGGING AT Sun Aug 10 02:59:59 2014