**** BEGIN LOGGING AT Mon Dec 22 02:59:58 2014 Dec 22 03:01:02 oddalot: Police coming? Dec 22 03:02:28 hopefully they didn't get SWATted Dec 22 03:03:17 what the hell is a gun doing in an apartment in the first place? Dec 22 03:04:11 hey guys anyone knows how to write to android/data folder Dec 22 03:04:27 hert: What do you mean "how to write"? Dec 22 03:04:31 self defense, family defense, localized storage for better control of the weapon between range visits. Dec 22 03:04:38 lots of reasons a gun would be in an apartment Dec 22 03:04:47 deryl: Oh, you're in the US Dec 22 03:05:10 add file/folder Dec 22 03:05:31 yep. land of the crazy humans that believe guns are a tool and we have the right to use that tool. definitely an american Dec 22 03:05:33 through AFT Dec 22 03:06:20 Yep. The land with more gun deaths per capita than any other first-world nation. By an order of magnitude. Dec 22 03:06:28 But whatever Dec 22 03:07:01 and still less than the number of deaths per year from heart attacks, and drunk driving. Dec 22 03:07:04 but whatever Dec 22 03:07:08 loke we aren't a first world nation, so bad comparison :) Dec 22 03:07:26 i have the wierdest dreams whenever I nap. Wtf that wasn't relaxing at all Dec 22 03:07:37 i'm glad to be awake Dec 22 03:07:44 RustyShackleford: as bad as my dream of saving air force one from terrorists ? Dec 22 03:07:45 RustyShackleford were you dreaming of driving down the road, when a camera went off ? Dec 22 03:07:54 g00s: worse Dec 22 03:08:10 hert: Anyway, ContextWrapper.getFilesDir() is what yuou want: Dec 22 03:08:13 hert: http://developer.android.com/reference/android/content/ContextWrapper.html#getFilesDir() Dec 22 03:08:17 i was shopping at microcenter or something and the police framed me Dec 22 03:08:48 RustyShackleford: That wasn't a drap. You _are_ framed Dec 22 03:08:55 drap=dream Dec 22 03:09:03 long story short, I'm dealing with police and paperwork until things get progressively weirder. Then I finally realized, wait this has to be a dream Dec 22 03:10:42 hert: Please don't send private messages about points that are appropriate for the channel Dec 22 03:11:16 ok Dec 22 03:13:43 I'm using android file transfer to drag and drop but can't seem to add to android/data folder on nexus 6 compared to nexus 4 Dec 22 03:24:24 Good evening Dec 22 03:24:53 Im new to android development and i have a question. Dec 22 03:25:48 Can someone point me to the api documentation for accessing device settings from within my app? The exact setting i am looking for is auto-rotate. Dec 22 03:26:25 it must be hard to google Dec 22 03:26:27 http://stackoverflow.com/questions/9718317/control-default-auto-rotate-screen-in-my-application Dec 22 03:26:57 you can certainly control rotation in your app by locking it to portrait or landscape. Messing with the system settings is not likely something an app can do Dec 22 03:27:28 What I want to do is change the setting for the whole device not just my app. Dec 22 03:28:02 dauntless2425: an application should not change global settings (and in fact, it can't unless you grant special privileges) Dec 22 03:28:54 The main purpose of the application is to change global settings. Dec 22 03:29:01 I have a fun issue! Hopefully somebody's able to help. Described in full here: http://hastebin.com/eqovilafij.coffee Dec 22 03:29:49 Im thinking I need to include the write_settings permission? Dec 22 03:30:18 you generally cannot change global settings Dec 22 03:30:38 unless you are signed as a system app. The only way to do THAT is to compile your own firmware and run it on an unlocked phone. Dec 22 03:31:29 SuspiciousDroid: ex.printStackTrace(); Dec 22 03:31:38 maybe that's why there isnt anything in logcat ? Dec 22 03:31:44 catch & swallow Dec 22 03:32:05 g00s: so I just discovered that waze does pretty much everything my app does Dec 22 03:32:18 except that it covers a much larger geographical region Dec 22 03:32:22 :( Dec 22 03:33:26 Hmm ok. Dec 22 03:35:32 gordon_: I had that... not there previously Dec 22 03:35:39 I added that while trying to debug Dec 22 03:35:59 dauntless2425: you'll find specifically that a lot of the settings you want to change are going to be blocked for security reasons. Generally you don't WANT an app to be able to change some of them because you could render the device largely unusable. It means some apps aren't possible. Dec 22 03:37:17 Ok gordon_ link actually does what I want. Thank you. Dec 22 03:37:23 gordon_: Of course, deleting that makes the errors appear now. Even though this is the exact same code state I had before and it didn't do that. Dec 22 03:37:54 There's an NPE on setRenderMode(GLSurfaceView.RENDERMODE_WHEN_DIRTY); Dec 22 03:38:00 It allows me to change the global setting. Dec 22 03:38:02 How is that even... Dec 22 03:38:31 Is there some init function I'm supposed to call before accessing that? Dec 22 03:39:16 SuspiciousDroid: I would help you if I've ever done some opengl ;) Dec 22 03:39:45 http://android-developers.blogspot.jp/2009/04/introducing-glsurfaceview.html Dec 22 03:40:08 try first example Dec 22 03:47:35 RustyShackleford i brought up waze a few weeks ago Dec 22 03:54:59 hey guys anyone know how can i launch a VM without a skin on MacOS? Dec 22 04:03:13 g00s: so I wonder if I should scrap this idea Dec 22 04:03:22 i haven't gotten very far Dec 22 04:06:16 Hi, from an Activity, how do I get a Display Dec 22 04:08:09 RustyShackleford i can't say Dec 22 04:09:26 Dale: can you make it do something better than what waze does? Dec 22 04:26:00 can someone help me with importing the facebook sdk into Android Studio 1.0.2? Dec 22 04:36:41 Or, how do I get the View from an Activity Dec 22 04:39:48 t0astt: sure, what's the problem? Dec 22 04:57:22 t0astt: what's the problem with it / Dec 22 05:09:59 Groxx, gordon_ : Is there anything I need to modify after I import the module? The Facebook website only has instructions for Eclipse, and all the search I do for Android Studio instructions says I need to change stuff. Is that true? Dec 22 05:17:05 t0astt: if you have "imported the module", do you have the source in a separate folder or something? Dec 22 05:17:55 if so: in dependencies, add "compile project(':fb_project_name')". otherwise I'd probably add a "compile 'com.facebook:android-sdk:3.21.1'" line which should download and compile and include it for you Dec 22 05:18:31 Hold on, I need to create a new project. I think the way I did it before completely screwed it up. Not a big deal, I just had a very basic login screen. Dec 22 05:18:45 then you'll still need to add the metadata, give FB your signature's hash, etc, all the other stuff they have instructions for. Dec 22 05:18:48 Groxx, i missed part of the conversation, but i might be having the same problem Dec 22 05:19:02 i cant get library projects to compile :/ Dec 22 05:19:15 trying to add gradle projects without maven Dec 22 05:20:00 Actually while I have you guys here, I have a question to ask (I'm new to Android app dev). What is the best "first" activity to pick when creating a new project if I'd like a login screen and then some additional activities for the rest of the project? Blank Activity? Dec 22 05:20:14 drinfernoo: if you have a separate module in AS, and it's using the 'android-library' plugin (dunno if that has renamed in 1.0 or not, it should warn you if so), then you should just be able to do `dependencies { compile project(':module_name') }` and viola Dec 22 05:20:41 more like, if i clone a github repo Dec 22 05:21:14 what view should my parent view be if i want to put a listview inside of a container/fragment Dec 22 05:21:30 drinfernoo: probably 'new module -> import existing project' Dec 22 05:22:01 well... im using AIDE lol Dec 22 05:22:07 or else id just use maven Dec 22 05:22:13 drinfernoo: d'oh. can you include jars? Dec 22 05:22:28 yeah but i can never get it to work Dec 22 05:22:43 i was able to get picasso working, but thats because its distributed as a jar Dec 22 05:23:07 if a project is distributed over maven mainly, i havent been able to use it Dec 22 05:23:21 not sure I can help much there, unfortunately :\ maybe import the maven project -> export as jar, if it has that feature Dec 22 05:23:50 unfortunately I've gotta jump offline :| but I wish you luck / godspeed / keep fighting the good fight :) Dec 22 05:24:07 cya groxx Dec 22 05:24:27 eventually I'll get something up so I don't disconnect from IRC every time I close my laptop. alas that's not set up yet. Dec 22 05:34:07 are fragments supposed to look like this: Container-->FrameLayout-->ListView ?? on the main activity Dec 22 05:36:47 look like? Dec 22 05:37:41 yeah so on my main activity. i want to seperate and make the top portion like a search and the bottom portion a list view Dec 22 05:37:57 anybody know much about the shared element animations between fragments? Dec 22 05:38:19 heres a video of what mines doing, trying to get it to act like play music, basically Dec 22 05:38:22 Animation: http://youtu.be/T_WpRPc8OLc Dec 22 05:39:09 arcanine69: what has that to do with fragments? Dec 22 05:39:37 well.. i am going through some samples here and people are using framelayout instead of fragment. Dec 22 05:39:45 ugh, im so confused right now. Dec 22 05:39:50 drinfernoo: unrelated but you should use snackbar instead of toats since you are doing material Dec 22 05:40:05 arcanine69: framelayout and fragment are apples and oranges Dec 22 05:40:23 usually a framelayout is used holder in the view hierarchy Dec 22 05:40:37 ie, the root view of the fragment layout is swapped for the framelayout Dec 22 05:41:30 so normally you do some call like mFragmentManager.replace(R.id.frame_layout_holder, mSearchFragment) Dec 22 05:41:50 in the fragment class, you return a view from onCreateView Dec 22 05:41:51 i actually want the hearts to color, which i feel like is a more material way of doing it anyway, but i cant get setColorFilter() to work lol Dec 22 05:41:57 right. i understand that. Dec 22 05:42:05 but what is the point of a container. Dec 22 05:42:06 and i cant get a Snackbar project, since i cant use maven lol Dec 22 05:42:16 so the framelayout gets replaced by what you return that Dec 22 05:42:34 drinfernoo: https://github.com/MrEngineer13/SnackBar Dec 22 05:42:51 you can download it can't you? Dec 22 05:43:04 so a framelayout sits inside of a container??? Dec 22 05:43:12 what container are you refering to? Dec 22 05:43:16 can you point me to a webpage Dec 22 05:43:17 just a 'container' Dec 22 05:43:18 in specific Dec 22 05:44:03 give me a sec. Dec 22 05:44:30 ooh thats a good one thanks Dec 22 05:45:30 lsserix, i think a container does not exist? Dec 22 05:45:42 lasserix: i think thats what is confusing me.. not sure where i got it from... Dec 22 05:45:48 either way, i cant get other library projects to compile, animations to work, or colors to filter lol Dec 22 05:46:38 drinfernoo: sounds like you got a bigger problem to fry Dec 22 05:46:51 arcanine69: so container is just "place holder in the view hierarchy" Dec 22 05:46:59 probably. Dec 22 05:47:11 i believe what actually happens is that after the fragment layout is inflated its appended to the framelayout Dec 22 05:47:21 hence the framelayout is the "container" of the fragment Dec 22 05:47:22 right. Dec 22 05:47:22 well im just dealing with no libraries for now, but im trying to get my animations working Dec 22 05:47:35 arcanine69: so makes sense? Dec 22 05:48:18 the container is the framelayout Dec 22 05:48:18 :p Dec 22 05:48:39 ljbade Dec 22 06:06:34 Hey, does the exist in Android Development? I don't see it on my palette anyhwere. Dec 22 06:11:08 so quiet in here Dec 22 06:14:47 I am supposed to make a small maze in the app and have a ball use the accelerometer and guide it to the ginish spot Dec 22 06:14:51 Hi all. If I have a SQLite database, does it matter if I start incrementing at 1 (rather than 0)? Will it mess up the database adapter in android? Dec 22 06:15:15 lasserix ikr Dec 22 06:15:15 I can figure out how to draw the maze and the ball but i dunno how to make the ball interact with the maze edges...any ideas? Dec 22 06:15:29 i am a new to android dev, so was hoping for a relatively simple solution Dec 22 06:15:59 liuwenhao: no Dec 22 06:16:21 truthseeker1990: colision detection look it up Dec 22 06:16:29 you probably want axis aligned collision detection Dec 22 06:17:17 ok, but isnt the solution completely different for the android platform than for anything else? The maze is a bitmap so is the ball....will a generic collision detection still work? Dec 22 06:18:15 no yes Dec 22 06:18:32 cool i will look it up now, thanks! Dec 22 06:25:50 so how do i use setColorFilter()? lol Dec 22 06:28:05 it just doesnt work Dec 22 06:28:17 do i need to set the drawable again or something? Dec 22 06:30:09 probably need to make sure something is enabled Dec 22 06:30:25 and make sure hw accelis either on or off, or see if colorfilters are suported by hw acceleration Dec 22 06:34:50 do I put android:versionName and android:versionCode in the gradle file and the manifest? If I put it in the gradle file, they get inserted into the manifest right? Dec 22 06:39:00 i dont see color filter here: http://developer.android.com/guide/topics/graphics/hardware-accel.html Dec 22 06:39:16 does that mean it wont work or it will? lol Dec 22 06:40:17 my eclipse complains it need adt23 but it has ADT22.05. so i did update software, but eclipse then says "no update available". any hint about this? Dec 22 06:41:16 switch to android studio Dec 22 06:41:33 drinferno how to use it? depends on what you want to do Dec 22 06:41:59 setFoloFilter(Color.RED, PorterDuff.Mode.Multiply Dec 22 06:42:57 lasserix: do i have to switch to android studio? i have a quick task to be done in eclipse now Dec 22 06:43:10 drinfernoo: colofiler is supported by hw Dec 22 06:43:21 rrr idk Dec 22 06:43:37 ? Dec 22 06:43:43 ok Dec 22 06:43:52 poop Dec 22 06:44:21 idk why it won't work, I've even tried a bunch of different modes Dec 22 06:49:52 drinfernoo: post code? Dec 22 06:50:47 favorite.setColorFilter(activity.getResources().getColor(R.color.colorPrimary), PorterDuff.Mode.SRC_IN); Dec 22 06:51:01 lol i know im getting there, it just doesnt work Dec 22 06:51:24 ive tried Color.argb() in there too Dec 22 06:51:59 favorite is an ImageButton with background set as a drawable Dec 22 06:53:45 try Dec 22 06:53:50 Color.RED Dec 22 06:54:25 oh Dec 22 06:54:27 try Dec 22 06:54:33 favorite.getBackground().setColorFilter Dec 22 06:56:34 ? Dec 22 07:01:32 genius Dec 22 07:01:34 that did it Dec 22 07:02:57 except... it does it to every view in my grid lmao Dec 22 07:03:04 is there a way for me to generate a certificate with a given fingerprint? like SHA1: 43:D2:6D:48:E9:20:78:36:7C:08:BC:60:3G:14:AA:44:71:01:D4:BA Dec 22 07:03:48 drinfernoo: prob caue they are sharing the same reference Dec 22 07:03:59 bilb yeah Dec 22 07:04:40 lasserix, is it a part of android studio? like I can give it the fingerprint and it generates the keystore/certificate? Dec 22 07:04:57 tbh i dont remember where i sawit Dec 22 07:05:04 just kno it should be possible Dec 22 07:05:21 lol. ok well thats good to know at least Dec 22 07:09:12 lasserix, any ideas on fixing that? Dec 22 07:12:10 um Dec 22 07:12:13 is this in a gridview? Dec 22 07:12:21 yeah Dec 22 07:12:34 idk Dec 22 07:12:41 create a different drawable for each item Dec 22 07:12:52 since my guess is they're all sharing the same drawable reference Dec 22 07:13:07 *create a different = create a new Dec 22 07:16:08 yeah i have them all set in xml, android:background="@drawable/ic_favorite" Dec 22 07:17:48 so android generates that for you Dec 22 07:17:52 and since it is intelligent Dec 22 07:17:56 it caches/pools Dec 22 07:18:03 so you'll have to manually createnew from it Dec 22 07:18:06 and set it in getView Dec 22 07:18:24 you know what i mean? Dec 22 07:20:14 Hello. How can I make sure that my app is downloadable to tablets in play store. I get the error: Your APK should only require hardware features that are usually available on tablets Dec 22 07:21:12 I have declared `` in my manifest Dec 22 07:21:59 sup vendu Dec 22 07:22:05 you have an android app? Dec 22 07:23:54 vedu and still doesn't work? Dec 22 07:24:01 what's your app ill see with my tablets Dec 22 07:28:46 ok so that works, but not in my normal gridview lol hold on ill show you Dec 22 07:33:23 lasserix: https://play.google.com/store/apps/details?id=com.instano.buyer Dec 22 07:34:01 When browsing play store on a tablet, my app doesn't show only Dec 22 07:35:25 yeah no go Dec 22 07:35:33 Hello humans. Dec 22 07:35:37 :) Dec 22 07:35:49 vedu just log in google account and goto play store it'll show all your devices / which is comptabile Dec 22 07:36:14 I have two really long strings. They are pretty much identical but there is a difference between them somewhere. How can I find the exact location of the difference with code ? Dec 22 07:36:40 lasserix: yeah Dec 22 07:37:45 Here's my manifest https://gist.github.com/vedant1811/b36c30aef999ce0b3766 Dec 22 07:37:50 Unknown0BC: how long these strings? Dec 22 07:38:48 looks like very long Dec 22 07:39:13 vedu where's the no telephony? Dec 22 07:39:18 Unknown0BC: there are some libraries Dec 22 07:39:28 otherwise you can just iterate per caracter Dec 22 07:41:34 Heart Coloring: http://youtu.be/AbSV0K8fsKs Dec 22 07:41:39 lasserix: https://gist.github.com/vedant1811/b36c30aef999ce0b3766#file-manifest-xml-L21 Dec 22 07:41:40 thats whats happening Dec 22 07:42:40 http://pastebin.com/8ccp55D8 Dec 22 07:43:23 drinferno Dec 22 07:44:37 Drawable heart -> Drawable mHeartOriginal. then for each getView you inflate do Drawable specificHeart = originalHeart.getConstantState().newDrawable(); Dec 22 07:44:54 then mGridItem.setBackgroundDrawable(specificHeart) Dec 22 07:45:05 now when you do getBackground it will only affect that one Dec 22 07:45:33 thegetConstantState is a way to clone it, dunno if that will work but should (dunno if that is a deep clone, imagine it is) Dec 22 07:45:59 vedu no idea sorry just remove persmisions till tablets are available Dec 22 07:46:06 to figure out which one it is Dec 22 07:46:11 k I'll try that Dec 22 07:55:15 that... seems to be doing the exact same thing lol Dec 22 07:55:21 dammit Dec 22 07:56:32 oh Dec 22 07:56:34 so Dec 22 07:56:38 whatever your datastructure is Dec 22 07:56:45 that is your gridview elements Dec 22 07:56:49 you need to add a variable Dec 22 07:56:53 focusState or whatever Dec 22 07:57:03 and then in getView, you need to switch the colorfilter Dec 22 07:57:07 depending on the focusState Dec 22 07:57:18 because what's happening is the view your return in getview is being recycled Dec 22 07:57:40 so the colorfilter on one thing is getting pushed into another one Dec 22 07:57:43 would be my guess Dec 22 08:01:33 actually Dec 22 08:01:35 i got it Dec 22 08:01:45 had to use mutate() Dec 22 08:01:58 http://android-developers.blogspot.com/2009/05/drawable-mutations.html?m=1 Dec 22 08:11:05 ho ho ho, good morning fellas :) Dec 22 08:12:53 morning cuppero Dec 22 08:13:01 Good mourning! Dec 22 08:13:02 mutate? Dec 22 08:13:08 Morning* Dec 22 08:13:19 drinfernoo: which class is that method from? Dec 22 08:13:33 haven’t been here in days, what you guys been up to lately? Dec 22 08:13:39 lasserix: did you win the lottery? Dec 22 08:13:49 haha no but finished the f-ing app finally Dec 22 08:13:59 client kept having more last minute changes Dec 22 08:14:13 didn't force them into a specced out contract up front Dec 22 08:14:16 ... Dec 22 08:14:19 but done! Dec 22 08:14:31 oh man, that can be fucked if they don’t pay by the hour Dec 22 08:14:54 Hi. Is there something like 'targets' in Android studio like in Xcode? I have a project which is made for 2 companies, code is the same, only the resources are different (drawables). In the future there will be more than 2 companies for that project. Any suggestions? Dec 22 08:15:24 FrancesoV: yes,there are flavors Dec 22 08:15:51 decalre in gradle productFlavors{ companyOne {}, companyTwo{} and so on} Dec 22 08:15:57 FrancescoV: That would be "facets" Dec 22 08:16:04 have you guys seen this? https://play.google.com/store/apps/details?id=net.havchr.mr2 Dec 22 08:16:09 FrancescoV: here's exactly what you want: http://blog.ropardo.ro/2014/04/04/android-product-flavors-1/ Dec 22 08:16:10 some sick slick animazions Dec 22 08:16:21 Sorry. "Artifacts" Dec 22 08:16:47 Just go to "project structure" and choose "artifacts". You can set up any kind of output thingy you want Dec 22 08:17:19 (I'm assuming here that they didn't remove that feature when they made AS) Dec 22 08:17:39 thats optimistic assumption Dec 22 08:17:57 Ashiren: I don't know. I only ever use IDEA. I don't see the point of using AS Dec 22 08:18:23 Ashiren: Are there any features in AS that never made it to IDEA? Dec 22 08:18:43 dunno i dont use AS Dec 22 08:18:52 Ashiren: what do oyu use? Dec 22 08:19:30 eclipse. but its supporting is dropped so soon i shall migrate to as Dec 22 08:20:09 Ashiren: Why don't you go right to IDEA? Dec 22 08:20:11 bluecup: Yeah, the animations are really nice. Dec 22 08:20:30 (I've been using IDEA for over 10 years now, actually) Dec 22 08:20:33 Would like to see the source to see how they did it all. Dec 22 08:22:02 bluecup not compatible with my n7wtf Dec 22 08:22:40 Radther: I’m drooling over the animations, probably going to try and copy them on the vacations Dec 22 08:22:51 lasserix: wat, is that even possible? Dec 22 08:23:23 bluecup: I was amazed when the animations ran on a pre-lollipop device. Dec 22 08:24:07 Radther: yeah, that’s real slick of them, I believe that’s openGL not the lolli animation libs Dec 22 08:24:14 yeah Dec 22 08:24:16 seriousily right Dec 22 08:24:21 going to see if n5 is compat Dec 22 08:24:44 If the n5 isn't compatible then there is a serious problem. Dec 22 08:27:26 omg, I hate merge conflicts Dec 22 08:27:46 wow Dec 22 08:27:49 lasserix: it is n5 compatible, I installed it first on n5 Dec 22 08:27:52 even the tress bounce a little Dec 22 08:27:54 yeah Dec 22 08:28:06 the n5 i have is from work so different account Dec 22 08:28:11 but wow even the trees bounce a little Dec 22 08:28:54 that drawer tho <3 Dec 22 08:29:13 oh ha ha Dec 22 08:29:30 they took kinetic paper to the max Dec 22 08:29:40 It is a really nice app, unfortunately it doesn't set alarms through the system which is a shame. Dec 22 08:30:09 i like how the drawer is very clean, not a drawer at all Dec 22 08:31:54 think you need opengl to do that? Dec 22 08:32:05 i imagine you can use renderscript Dec 22 08:33:19 sorry lasserix, it's from drawable Dec 22 08:33:31 ahh Dec 22 08:33:36 basically the opposite of constant state Dec 22 08:33:55 oh ha Dec 22 08:34:31 drinfernoo: drawer is from drawable? Dec 22 08:34:55 no, mutate() Dec 22 08:35:16 oh, thought you were talking about the drawer :D Dec 22 08:36:49 definitely a smooth app, but i feel like the "curtain" thing is kind of weird Dec 22 08:37:03 i love the 1-2-3-4 animation on introduction Dec 22 08:37:16 ok Dec 22 08:37:33 so I'm using SlidingTabLayout from io source Dec 22 08:37:41 I love the curtain. Adds a bit of personality to the app rather then looking like everything else. Dec 22 08:37:42 how do i use icons instead of text? Dec 22 08:38:30 Just got in here, which app are you guys talking about? Dec 22 08:38:50 drinfernoo: think you’re going to have to customize it, a colleague did something like that, had to customize the class Dec 22 08:38:59 renanferrari: https://play.google.com/store/apps/details?id=net.havchr.mr2 Dec 22 08:39:22 figures lol Dec 22 08:40:07 Ah, thanks! I was almost sure it was this one. Dec 22 08:41:41 can you get a LayoutInflater from anything but the activity? Dec 22 08:42:29 you need a context Dec 22 08:43:05 drinfernoo: you can use getSystemService(Context.LAYOUT_INFLATER_SERVICE) Dec 22 08:43:10 and cast it to layout inflater Dec 22 08:43:18 no no Dec 22 08:43:24 LayoutInfalter.from(context) Dec 22 08:43:33 Yeah, that from method is nice. Dec 22 08:43:43 It just does what bluecup says under the hood. Dec 22 08:43:49 Hey, when I have been looking into directly accessing the buffer from surface flinger or the frame buffer, everything mentioned is about doing it from c++. Is there a way to directly modify a buffer you request from the buffer queue to draw pixels to it? Dec 22 08:43:52 lasserix: thanks for the tutorial about flavors, exactly what I need Dec 22 08:44:04 heya tactical Dec 22 08:44:10 lasserix: or yeah, like that, much easier :) Dec 22 08:44:20 Hey, lasserix. Dec 22 08:44:30 TacticalJoke: http://sriramramani.wordpress.com/2014/08/14/multiple-text-layout/ Dec 22 08:47:08 A way to do low level editing of the buffer returned by surface flinger or the frame buffer ideally... In Java? Dec 22 08:49:37 Nice, lasserix. Dec 22 08:49:42 Looks surprisingly simple. Dec 22 08:49:55 Or isn't there that low level access in Java only c++ Dec 22 08:53:52 Everything spent hours googling, and every reference to editing either the frame buffer or a buffer from surface flinger is using c++... What is the Java way to edit a buffer directly then display it? Dec 22 08:56:19 there are calls in the opengl package to manipulate the frame buffer Dec 22 08:56:20 Hi, I have create custom checkbox (custom drawable), add some text [https://www.dropbox.com/s/gxyuwln8jsko0ih/Zrzut%20ekranu%202014-12-22%2009.55.38.png?dl=0] How I can make that icon will be closer to text Dec 22 08:56:22 ? Dec 22 08:56:26 you have to use nio buffers Dec 22 08:56:59 Is it fast and direct? Dec 22 08:57:36 CPU or GPU? Dec 22 08:59:00 I would prefer dirrectly editing the buffer. With nothing trying to be a hero and getting in the way Dec 22 08:59:13 Dudi_: Add layout_marginLeft = "16dp" to the checkbox in XML. Dec 22 08:59:24 Change the number to what best suites the app. Dec 22 08:59:27 as opengl it is on gpu Dec 22 09:00:21 Dudi use a textview and set the left compound drawable as your textbox Dec 22 09:00:34 For example so that when I get the buffer the second time it still has the contents and I can draw the delta. Also as it will be pixel by pixel editing. Dec 22 09:02:33 Radther: no effect :( Dec 22 09:03:14 smellymoo: thought you were going ndk Dec 22 09:03:19 lasserix: and I still will have checkbox function? Dec 22 09:03:58 Dudi_: Strange that it didn't work. Dec 22 09:05:20 I am researching both. Dec 22 09:05:37 Radther: this text is in , should still works? Dec 22 09:06:40 What about adding the margin to the parent view? Dec 22 09:08:47 lasserix: I am looking for the best solution, don't mind Java or c++... Both have their downsides. So far it might be both... C++ rendering, them Java for user interaction, as they can run parallel for my planned app. As the render is a sand box that can continue to render continuously, the user interaction doesn't need to block. Dec 22 09:10:52 Radther: I use my previosu attempt. http://www.sourcedrop.net/Pac7e016d10ed Dec 22 09:11:14 lasserix, but researching if Java can do it. Is the nio buffer opengl the only low level way? Dec 22 09:11:59 Dudi_: Does that attempt work? Dec 22 09:12:09 Radther yes:) Dec 22 09:12:30 Wonder why the other didn't then, strange. Dec 22 09:13:09 margin to parent is unsafe cause what happens wheny ou have other stuff Dec 22 09:13:12 but anyways Dec 22 09:13:21 smellymoo there are lots of ways Dec 22 09:13:25 just depends on what you want Dec 22 09:13:41 and you keep going on about low level but why exactly? you haven't coded up anything so performance is not even a question Dec 22 09:15:05 Radther: I know why :) because if I had http://www.sourcedrop.net/D3J7e0d0ef629 and add margin. Then that margin affects at Checkbox not at Checkbox drawable.. that how I understand it Dec 22 09:16:17 Dudi_: But the margin should be for the parent to lay it out, it should affect the thing it self. Dec 22 09:16:51 Lasserix. Coded it before, and it will be important, as it is handling moving lots of pixels, one at time. Perfect solution would be a buffer I can edit the raw data of then send to screen, after reclaim it without clearing then continue drawing on it. So the render can be the delta. Dec 22 09:17:29 can you script in opengl? Dec 22 09:17:31 Dudi_: Layouts can be weird sometimes. Dec 22 09:17:55 script => take advantage of shading language Dec 22 09:18:05 lasserix, no. Would it help? Dec 22 09:18:42 For parallel drawing on GPU.... Not sure it would work. Dec 22 09:18:50 well Dec 22 09:18:57 you should read about opengl shading language Dec 22 09:19:20 i dont know what manipulations you are doing but if you can Dec 22 09:19:24 that would be fastest way to do it Dec 22 09:19:48 lasserix. OK... Any other ideas for direct buffer access? Best would be frame buffer in Java. Dec 22 09:19:48 unless you plan on somehow editing the framebuffer faster than the parallelized processing of the shading language Dec 22 09:20:03 i told you you can get a reference to framebuffer using opengl Dec 22 09:20:30 Ahh, is the the bio buffer you mention? Dec 22 09:20:41 no Dec 22 09:20:47 that is the opengl frame buffer Dec 22 09:20:53 how you manipulate it is up to you Dec 22 09:21:01 but it will give you access to it Dec 22 09:21:21 Will need to think on if it is possible to do in parallel... Dec 22 09:21:29 you use nio buffers to push to gpu (ie from java to opengl ) Dec 22 09:22:25 So is the buffer instructions to render or a raw image? Dec 22 09:22:49 google Dec 22 09:23:35 OK. Thank you for your time, will research what you said and come back tomorrow. Dec 22 09:23:45 :) Dec 22 09:25:27 * drinfernoo thanks you all for your time as well Dec 22 09:25:30 goodnight Dec 22 09:28:37 Has the tooltip feature for widgets been deprecated? Or Android never had it? Dec 22 09:30:28 hey guys Dec 22 09:31:25 I'm trying to get a listview to scroll smoothly to a certain position with: listView.smoothScrollToPosition(position); Dec 22 09:31:47 and it's working on, but it's too fast, can't I use objectAnimator to place that statement inside and make the whole action animated? Dec 22 09:33:43 Odaym: .smoothScrollToPositionFromTop(position,offset,duration); Dec 22 09:33:50 oh.. Dec 22 09:33:59 I looked for duration in the method names, not in params Dec 22 09:34:23 thanks Radagast Dec 22 09:34:32 Yeah, I had to quickly google to see how to do it as it seemed weird that there wouldn't be a duration thing. Dec 22 09:39:11 wow, somebody hacked a german steel plant and seriosuly messed it up Dec 22 09:39:40 how do YOU know that Dec 22 09:39:49 news :) Dec 22 09:39:58 oh Dec 22 09:41:15 I hate coming to HN in the morning and finding the same news of yesterday Dec 22 09:41:39 That's why https://programming.reddit.com/ is better. Dec 22 09:41:41 Though it's not much better. Dec 22 09:42:16 yea Im on programming already, just dont check it that much Dec 22 09:43:28 Is there any best practice to implement Full screen dialogs? : http://www.google.com/design/spec/components/dialogs.html#dialogs-full-screen-dialogs Dec 22 09:43:31 The benefit of reddit I find is that I can add lots of different sources and get a more constant stream of news. (As well as Cats) Dec 22 09:43:55 everything I read there (if I read it before HN), I find on HN later Dec 22 09:44:23 I love Reddit, but I'm finding it so immature lately. Dec 22 09:44:25 so someone's taking from someone Dec 22 09:44:29 it is immature Dec 22 09:44:29 I can't tell whether I'm getting old or they're getting immature. Dec 22 09:44:45 just like anywhere though Dec 22 09:44:49 TacticalJoke: you're getting old Dec 22 09:44:50 ./r/funny is now stuff like "lolol my friend's dad owns a horse". Dec 22 09:44:55 i remember when i got that way about /. Dec 22 09:44:58 Was it always like that and I didn't notice it? Dec 22 09:45:04 i never even bothered with digg, then reddit. Dec 22 09:45:05 It is definitely getting worse. Dec 22 09:45:22 I started with Digg and jumped ship to Reddit. Dec 22 09:45:27 When that whole thing happened. Dec 22 09:45:28 well I've always hated them collectively Dec 22 09:45:40 cause it's a blatant, clear waste of time that everybody is participating in Dec 22 09:45:43 I dont like that Dec 22 09:45:51 Odaym: Score -1, Unfunny Dec 22 09:45:52 ;) Dec 22 09:45:59 I think it can be a waste of time, but it's not if you enjoy yourself. :) Dec 22 09:46:11 enjoyment is a waste of time. Dec 22 09:46:17 yea if you are a regular poster there yea, but for the spectator its not nice Dec 22 09:46:19 * lewellyn gets back to playing with this new shield... Dec 22 09:46:27 It depends on how we define 'waste'. Dec 22 09:46:31 you feel jealous, annoyed by how they all upvoted this little stupid thing, etc... Dec 22 09:46:32 I'd be tempted to define it in terms of suffering. Dec 22 09:46:49 so many things come into play when you are just spectating crowds Dec 22 09:46:53 If X increases total suffering (over time), X is a waste of time. Dec 22 09:46:56 If not, it's not. Dec 22 09:47:09 The problem with hacker news is there isn't a good mobile client. Dec 22 09:47:21 Radther: Same with reddit. :D Dec 22 09:47:25 no, the problem with hn is hn. Dec 22 09:47:26 True. Dec 22 09:47:38 In fact, that's a problem with almost anything. Dec 22 09:47:40 hackernews is even on 1 server :P Dec 22 09:47:40 Twitter, for example. Dec 22 09:47:43 Then again, Twitter just sucks. Dec 22 09:47:46 slowest website I've ever used Dec 22 09:47:57 twitter succeeded on the backs of crushed promises. Dec 22 09:48:51 Twitter is proof that a way-below-average product can thrive. Dec 22 09:49:34 twitter is proof that if you promise things and pretend that you're delivering them, up until the point you hit critical mass, you'll do fine and never have to really do anything truly "hard" Dec 22 09:50:07 Hi everyone, Stupid question: what's better http://pastebin.com/Ad7MbkP9 or http://pastebin.com/Nzx1P8uu ? Dec 22 09:50:08 The idea of twitter is great I think. The implementation not so much. I enjoy checking my feed and seeing what people I'm interested in are up do as well as updates to services I use. Dec 22 09:51:43 fabiob: Note that the latter will throw an exception if the type isn't correct. Dec 22 09:52:10 you almost never want to use instanceof ifyou can help it Dec 22 09:52:12 Radther: Yeah, the idea's great. Dec 22 09:52:14 fabiob: If it's definitely going to be a list preference that is coming back then I would imagine the second but the first option isn't going to affect performance in anyway. Dec 22 09:52:46 I now kinda feel like making a HN client. Dec 22 09:52:53 Wonder what the API is like. Dec 22 09:52:53 Radther: If you're motivated, do it! Dec 22 09:52:59 TacticalJoke: Yes, but I should know there is an error to be able to correct the XML or whatever. Dec 22 09:53:11 you guys can start a club Dec 22 09:53:33 fabiob: getClass = class Dec 22 09:53:52 On the other hand, it would suck to crash the application on the user's face for a thing that can be unimportant Dec 22 09:54:17 ho ho ho Dec 22 09:54:21 blew up dinit! Dec 22 09:54:22 I've not yet used the whole Preference thing. Why is it that you don't know what kind it's going to be until run-time? Dec 22 09:54:32 oh you changed Dec 22 09:54:33 lasserix: What do you mean? Dec 22 09:54:37 fabiob: The second option *requires* that it be of type ListPreference. Dec 22 09:54:40 poor #android-offtopic Dec 22 09:54:51 The second option is a no-go if you're unsure of the type. Dec 22 09:55:49 TacticalJoke: The type should be ListPreference, if it's not then there is an error somewhere. I'm trying to fail graciously for the user. My dilemma is: is it worth / a right thing to do? Dec 22 09:56:08 fabiob: Object c; if (c.getClass == Object.class) Dec 22 09:56:09 In which case would it not be of type ListPreference? (I've not used this API before.) Dec 22 09:56:26 lasserix: Isn't that the same as using 'instanceof'? Dec 22 09:56:54 the vetter version of it Dec 22 09:57:13 TacticalJoke: A programming error. Say I change the XML definition of the preference in the future and I forget to update the code. Dec 22 09:57:51 In that case, wouldn't you prefer for your app to crash so that you notice the bug right away? Dec 22 09:57:51 lasserix: Is it faster? Anyway I was wondering more on the doing it / not doing it side of things. Dec 22 09:57:52 I think I would. Dec 22 09:58:05 Trying to work around this might just hide a bug for a long time. Dec 22 09:58:05 Newbie tip of the day: using the right typographic scale made my app look 200% better. Subtle changes but made all the difference. http://www.google.com/design/spec/style/typography.html#typography-standard-styles Dec 22 09:58:15 Ok, I'm moving out to #android-design Dec 22 09:59:36 Morning All Dec 22 09:59:52 Crappy Missmas too you call! Dec 22 09:59:59 fabiob: If you are really worried about it in the future then do the check but it probably shouldn't be needed. Dec 22 10:00:00 lasserix: Now that I think of it, I guess 'instanceof' also checks for a subclass instance. Dec 22 10:00:04 So it is different. Dec 22 10:00:26 isAssignableFrom Dec 22 10:00:33 TacticalJoke: I would say that, but I was thinking: maybe that code does a trivial thing like, I don't know, setting a color of a cloud in the background. I was wondering if it's worth to crash the application instead of (erroneously) not setting the color. Dec 22 10:01:20 fabiob: But wouldn't you notice the crash immediately? Dec 22 10:01:26 You'd change the code, run it, and it'd crash, right? Dec 22 10:01:54 TacticalJoke: Yeah, you're right. Dec 22 10:01:57 The good thing about crashes is that they're impossible to ignore. Dec 22 10:02:12 (I guess that can be a bad thing in some cases. lol) Dec 22 10:02:30 s/call/all Dec 22 10:02:48 But maybe that code is triggered just in certain cases and it gets released without noticing. Dec 22 10:03:14 actually i have no statement eitehr way Dec 22 10:03:16 Anyway, I'm probably overthinking. Dec 22 10:03:25 Overthinking makes for good programmers, IMO. Dec 22 10:03:32 Though it can lead to wasted time and energy. Dec 22 10:03:46 I know right? Dec 22 10:03:48 fabiob: if you are the one writing this app that SHOULD ONLY EVER return what it is supposed to return right? Dec 22 10:03:48 fabiob: I think it's a bit hard for us to say since we don't know exactly what it is that's in your statement. Dec 22 10:03:56 fabiob: Consider every time you use findViewById. Dec 22 10:04:14 You say stuff such as "textView = (TextView) findViewById(R.id.cool_text_view);". Dec 22 10:04:16 that smoothScrollToPositionFromTop with duration, it scrolls to position from top! Dec 22 10:04:18 I can't imagine making a check everytime that was called. Dec 22 10:04:20 That'll crash if you make a mistake in the XML file. Dec 22 10:04:29 To work around this would be ridiculous. :) Dec 22 10:04:40 that just doesn't make sense, I want to scroll whenever I reach the bottom, to scroll with the usual smoothScrollToPosition, but with duration! Dec 22 10:04:46 strange that it doesn't exist Dec 22 10:04:51 there's no reason to check the textview, you know what it is, you put it there. Dec 22 10:05:04 if you're working in a team, that makes things different Dec 22 10:05:04 Right, lasserix. Dec 22 10:05:10 hey, in my project there is a values-w820dp folder with dimens.xml (and it only has activity_horizontal_margin) What is this for? Is it safe to deletE? Dec 22 10:05:13 And if it's not there then there's simply a bug that needs to be fixed. Dec 22 10:05:35 ktwo it is for big fucking screens and it is safe to delete Dec 22 10:05:48 In the case of medical software, such defensive programming might be a requirement. Dec 22 10:05:52 But it's a pain. Dec 22 10:05:54 oops pardon my french Dec 22 10:06:25 Odaym: http://stackoverflow.com/a/22242885 Dec 22 10:06:28 ktwo it means the screen has a width of at least 820 pixels Dec 22 10:06:34 *not pixels dp Dec 22 10:06:35 Thanks guys, i think you are right. Dec 22 10:06:45 so how big would such a screen be? Dec 22 10:06:53 Odaym: The edit seems to have a bit for working out the offset. Dec 22 10:06:55 yea that's the method I've been using, but that does it from top Dec 22 10:07:00 oh Dec 22 10:07:05 Besides, there's no need to make Android programming even more verbose. :) Dec 22 10:07:09 fabiob: The TL;DR I'd give here is that checking that the type is correct is too much effort, and doing that throughout the project would make your code messy. Dec 22 10:07:14 fabiob: Exactly. Dec 22 10:07:45 ktwo 820 dp Dec 22 10:07:46 All software is full of assumptions that would lead to crashes if they weren't met. I think this is just another example of that. Dec 22 10:08:06 The HN api looks pretty simple but it will have to wait until I have finished my other project(s) Dec 22 10:08:11 well so are there devices which have this size? id like to support tablets too like Nexus10 Dec 22 10:08:13 Radther: Is it in JSON? Dec 22 10:08:19 Yeah. Dec 22 10:08:21 Nice. Dec 22 10:08:28 JSON has good tooling on Java/Android. Dec 22 10:09:43 ktwo do you know large / nomral small xlarge resource qualifiers? Dec 22 10:09:47 I really like Gson. So simple. Dec 22 10:10:06 I really need to try doing some stuff with JSON to get a feel for how it works but I have heard it is quite nice. Dec 22 10:10:17 It's basically a less-verbose XML. Dec 22 10:10:21 And it is so easy to read. Dec 22 10:10:35 well i didnt do anything about different layouts i just want everything to be like in the phone, just scaled.. well.. nevermind ill just delete it and test how it looks lik Dec 22 10:10:43 But it also has different semantics to XML. Dec 22 10:11:35 I will probably try messing with it at somepoint over christmas. Dec 22 10:11:45 ktwo 820 dp is big Dec 22 10:11:52 720 dp is a n10 Dec 22 10:15:51 I have naming issues. Dec 22 10:16:07 That can be said for most I would imagine. Dec 22 10:16:22 thanks again Radagast the brown Dec 22 10:16:24 Reddit gives comment listings which contain either comments or comment stubs. So I have Comment and CommentStub. They inherit from CommentListingItem. Dec 22 10:16:24 that did it.. Dec 22 10:16:30 Problem is that CommentListingItem is long. Dec 22 10:16:56 This problem gets worse when it turns out that I need UI-specific versions of these classes (e.g., I have Comment and PresentableComment). Dec 22 10:17:08 So the end result is that I have a class called PresentableCommentListingItem. ;| Dec 22 10:17:17 good class name Dec 22 10:17:25 This is not a problem. Dec 22 10:17:26 (The presentable classes have other stuff such as "current indent depth" and so on.) Dec 22 10:17:33 It's just too long. Dec 22 10:17:36 0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000007y0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000 Dec 22 10:17:36 000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000 Dec 22 10:17:36 000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000 Dec 22 10:17:36 000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000 Dec 22 10:17:36 000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000 Dec 22 10:17:37 000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000 Dec 22 10:17:37 Any code using it is harder to read. Dec 22 10:17:39 000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000 Dec 22 10:17:41 000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000 Dec 22 10:17:43 000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000 Dec 22 10:17:46 000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000 Dec 22 10:17:47 I think he is on fire Dec 22 10:17:48 000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000 Dec 22 10:17:50 000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000 Dec 22 10:17:52 000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000 Dec 22 10:17:52 WTF? Dec 22 10:17:54 We are being hax0red. Dec 22 10:17:55 000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000 Dec 22 10:17:57 000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000 Dec 22 10:17:59 000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000 Dec 22 10:17:59 yea he's hax0red us Dec 22 10:18:01 000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000 Dec 22 10:18:02 with only 0's Dec 22 10:18:03 000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000 Dec 22 10:18:04 lol Dec 22 10:18:05 000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000 Dec 22 10:18:06 no 1's Dec 22 10:18:08 00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000 Dec 22 10:18:10 oops Dec 22 10:18:13 oops? Dec 22 10:18:14 ;o Dec 22 10:18:14 sorry folks Dec 22 10:18:15 lol Dec 22 10:18:20 oops is an understatement Dec 22 10:18:23 it cannot be unseen now Dec 22 10:18:24 I'm amazed it didn't auto-kick for flooding. Dec 22 10:18:27 lol Dec 22 10:18:52 Anyway, so what should I call an item that a comment listing might contain? It might contain a comment or a comment stub, and I'm currently calling it CommentListingItem. Dec 22 10:18:55 But it's too long. Dec 22 10:19:05 The number of characters is too damn high. Dec 22 10:19:21 That's not that bad, I have animations with names like frameLayoutTranslateAnimation Dec 22 10:19:28 CommentZygote Dec 22 10:19:33 Ooh, that's good, lasserix. Dec 22 10:19:50 Man, we have autocomplete in every IDE nowadays. If the name is long, but we know exactly what it means when we look at it, it's just fine. Dec 22 10:20:03 hes talking about readability Dec 22 10:20:09 I find that with most IDEs the autocomplete is helpful and I would rather have a name that is readable. Dec 22 10:20:10 renanferrari: My code's readability is harmed by the presence of "PresentableCommentListingItem". Dec 22 10:20:12 Right, lasserix. Dec 22 10:20:17 longer names make it more difficult to skim over code Dec 22 10:20:21 cause its not concise Dec 22 10:20:23 Typing is nothing. Dec 22 10:20:32 I Ctrl+Space everything. Dec 22 10:20:36 and a poem with some ugly long words, well, that is either post modern or shit or both. Dec 22 10:20:38 I know, I'm just saying that the only problem with that would be if we had to write it. Dec 22 10:21:20 also long names i think you can infer the coder was thinking too hard about the problem Dec 22 10:21:23 I tried making shorter names for things and ended up refactoring everything because it was no longer readable. Dec 22 10:21:35 because half the time a day later you can come back and come up with a nice concise word that exactly captures it Dec 22 10:21:52 insteadOfThatMelangeOfDescriptionsThatStillDontQuiteGraspIt Dec 22 10:22:09 when ultimatly SpotOn works Dec 22 10:22:23 Here's some code I have: Dec 22 10:22:24 PresentableCommentListingItem child = allItems.get(i); Dec 22 10:22:33 Foo child = allItems.get(i); Dec 22 10:22:37 Which is easier to read? Dec 22 10:22:46 The first is just noise. Dec 22 10:22:59 well you dont need to suffix item types Dec 22 10:23:09 lots of people do that and its a mistake usually Dec 22 10:23:16 How do you mean? Dec 22 10:23:23 PresentableCommentListing Dec 22 10:23:23 I actually thing good readability comes with longer names. A TextView variable named "textView" is better to read than a variable named "tv". Dec 22 10:23:33 lasserix: I already have that class. lol Dec 22 10:23:35 those are short renanferrari Dec 22 10:23:41 I have PresentableCommentListing and PresentableCommentListingItem. Dec 22 10:23:44 Just an example. Dec 22 10:23:49 we're talking about like when a variable name has more than 4 or 5 words to it Dec 22 10:23:54 Right, lasserix. Dec 22 10:24:10 TacticalJoke: that's why i said most of the time ;p Dec 22 10:24:36 In the case of a reddit app though there are soooo many different things that the more descriptive names will be helpful later on. Dec 22 10:24:43 The only time I use abbreviations is with 'i' and 'j' (for loop counters), and 'e' (for exceptions). Dec 22 10:25:02 TacticalJoke: Cmt Dec 22 10:25:04 That's built into most IDEs Dec 22 10:25:05 :D Dec 22 10:25:13 PrsntCmtLstnItm Dec 22 10:25:16 PresentableCmtListingItem Dec 22 10:25:20 idk Dec 22 10:25:27 Hmmm..... Dec 22 10:25:28 Pcli Dec 22 10:25:28 no not all of them then too hard to read easily Dec 22 10:25:36 just standard ones Dec 22 10:25:39 No I need to refactor a bunch of code again. Dec 22 10:25:41 like Comment Dec 22 10:25:47 Now* Dec 22 10:26:03 'Presentable' is very long. Wonder whether there's a shorter synonym. Dec 22 10:26:14 I guess 'Shown', but it sounds weird. Dec 22 10:26:23 And 'ShownCommentListingItem' is still too long. Dec 22 10:26:37 this might sound stupid but if you print out the variable names in your classes, just the names Dec 22 10:26:41 and walk around with them Dec 22 10:26:54 eventually you'll see the diamon underneath Dec 22 10:27:00 Yeah. Dec 22 10:27:05 I often figure out the answer in the shower. lol Dec 22 10:27:10 Or right before sleep. Dec 22 10:27:13 hello Geniuses Dec 22 10:27:15 and others. Dec 22 10:27:19 :) Dec 22 10:27:42 TacticalJoke: Might help when finding shorter versions. http://public.oed.com/how-to-use-the-oed/abbreviations/ Dec 22 10:28:24 I'm not a fan of abbreviations usually. Dec 22 10:28:29 Even stuff like "idx". Dec 22 10:28:51 The worst is when you have just shut down and gone to bed and have loads of ideas but forget them in the morning. Dec 22 10:31:01 theres an app for that Dec 22 10:31:29 I am making one lol. Not it's intended use but works pretty well for it. Dec 22 10:31:39 Are you making a to-do-list app? Dec 22 10:31:45 Yup. Dec 22 10:32:09 Trying to get my head around lots of concepts as well as try out realm for databases. Dec 22 10:32:24 Cool. I was gonna make one, too. :) Dec 22 10:32:32 I'm not huge on Keep or Evernote or whatever. Dec 22 10:32:48 i created a device in genymotion but when i press the power button on the device nothing happens Dec 22 10:32:49 Yeah, I wanted something super simple. Dec 22 10:33:49 i created a google nexus 7 4.4.4 Dec 22 10:33:55 If you're really into HN, you'll probably enjoy making a HN app. Dec 22 10:34:02 I'm doing that for Reddit. Really fun right now. Dec 22 10:34:23 It's like being a mini-deity. You get to control the little "universe". lol Dec 22 10:34:37 I notice that if I look at the largest supported picture size ( with code ) for my front camera I get that it is about 1.92mp,but this is a 0.3 mp camera according to the specs for this device. Dec 22 10:34:40 People's text is displayed however you want it to be displayed, etc. Dec 22 10:35:17 I haven't really gotten into hacker news as much as I want to mostly for the lack of a good app. Making my own means it will work exactly as I want it to. Dec 22 10:35:43 I want to make a decent IRC client at some point as well. Dec 22 10:36:19 IRC has a nice protocol. Dec 22 10:36:21 Very simple. Dec 22 10:36:32 Good morning Dec 22 10:36:41 Morning! Dec 22 10:37:00 Is there a way to check if a notification has been removed from the tray? Dec 22 10:37:45 I love making types really generic. Keep them dumb and happy. Dec 22 10:38:03 Isn't programming like dictatorship? Dec 22 10:38:36 It's all about keeping the citizens under control and clueless. Dec 22 10:38:43 Strange way of putting it. Dec 22 10:38:47 The less they know, the better. Dec 22 10:39:02 But, in a way, what we're doing all day is making something else (a computer) do whatever we tell it. Dec 22 10:39:13 It's a complete power trip. Dec 22 10:40:52 dauntless2425: Try this. http://stackoverflow.com/questions/12665131/how-to-detect-if-a-notification-has-been-dismissed Dec 22 10:41:07 Thanks Dec 22 10:44:49 Radther not really sure what to do with that delete intent. Any ideas? I'm new to android development so maybe in just not understanding. Dec 22 10:45:02 I'm* Dec 22 10:45:03 So what is the best way to determine the actual hardware resolution of your cameras ? Dec 22 10:47:28 dauntless2425: An intent is basically a way of launching something, for example a new activity in an app. In this case you can use set the delete intent to do what you want to happen. Not entirely sure how this is done though as I haven't touched a lot of this stuff. Dec 22 10:48:08 Ah OK. I can set that intent to some class and run what i want there. Dec 22 10:48:24 That's my understanding yeah. Dec 22 10:51:10 Notification notification; Dec 22 10:51:10 Intent intent = new Intent(); Dec 22 10:51:10 notification.deleteIntent = intent; Dec 22 10:51:12 I just typed this into android studio and it seemed to like it(Other then the fact that the notification hasn't been initialised) Dec 22 10:51:34 Radther: if the device doesn't power on in genymotion should i bother closing genymotion and trying to run the device in vbox, cause i did that already and i just get stalling screen that says android in animated color Dec 22 10:52:25 mices: I haven't used emulators other then the one that comes with the SDK sorry. Dec 22 10:52:46 I use a real device as much as possible. Dec 22 10:52:52 o ok so who was that yestserday who told me to try genymotion Dec 22 10:53:35 Dunno, I think quite a few people favor it over most other emulators though. Dec 22 10:54:07 does vbox need to be up or just installed when running geny Dec 22 10:55:11 What error are you actually getting? Dec 22 10:55:34 i'm not getting any errors i just press the power button and nothing happens Dec 22 10:56:19 same thing running in vbox except in vbox i get the android splash screen Dec 22 10:56:43 What API are you trying to run? Dec 22 10:56:49 Well i figured out another way. Dec 22 10:56:56 not trying to run any api's Dec 22 10:57:14 just trying to run an android phone on my pc to play with installing apps and stuff Dec 22 10:57:28 A notification can apparently run an intent even after the service and activity that started it had been closed. Dec 22 10:57:29 The API as in version, e.g. 21 is lollipop. Dec 22 10:57:30 it's also gonna be necessary to have location working Dec 22 10:57:38 Please correct me if in wrong. Dec 22 10:57:40 4.4.4 Dec 22 10:57:54 i thought lolipop was 5 Dec 22 10:58:00 dauntless2425: I'm not sure, you will probably have to try it. Dec 22 10:58:26 mices: is it safe to assume that you're not actually developing android apps? :P Dec 22 10:58:27 Seems to work and i don't see the service running in my apps settings. Dec 22 10:58:35 yea Dec 22 10:58:42 not deving Dec 22 10:58:46 Lollipop is version 5 yes, but it's api is number 21. 4.4.4 is 19. Dec 22 10:58:56 ok thanks Dec 22 10:59:15 Bluestacks might be more what you are looking for then. http://www.bluestacks.com/ Dec 22 10:59:22 mices: you might be better served by the main channel. this one's dedicated to development, so we're probably going to use terms that you're not expecting. like "API 21". Dec 22 10:59:24 so then if i wanna create a 4.4.4 device in geny i have to go to sdk manager and add 4.4.4 api? Dec 22 10:59:40 O.o Dec 22 10:59:48 Mornin happy Android people :) Dec 22 11:00:03 * lewellyn is slightly less happy as of a few minutes ago :( Dec 22 11:00:15 cause i already have kk installed in sdk manager Dec 22 11:00:39 just maybe not 4.4.4 more like 4.4.2 or 3 maybe Dec 22 11:00:45 lewellyn, there there. But a cheap Android you can throw in the wall, it helps :P Dec 22 11:00:48 Morning. Dec 22 11:01:02 Mavrik: i bought a shield a few hours ago. i just discovered the ONE thing it lacks... nfc. :( Dec 22 11:01:14 but 8" 1920x1200 is pretty sexy. Dec 22 11:01:14 I thought you were joking about the shield. ;o Dec 22 11:01:25 mices: http://www.bluestacks.com/ This is what you want rather then genymotion. Dec 22 11:01:26 TacticalJoke: the current promo was hard to resist. Dec 22 11:01:28 ah Dec 22 11:01:29 <3 my Nexus 9 :) Dec 22 11:01:29 lewellyn: i think i should be able to find an api android ver cross reference chart so that's not a problem Dec 22 11:01:40 mices: yes. on developer.android.com... Dec 22 11:01:40 Mavrik: I want a nexus 9 so bad. Dec 22 11:01:47 i have bluestacks installed and couldn't get location working Dec 22 11:01:53 lewellyn, did you test out how the game streaming works yet? Dec 22 11:02:04 Mavrik: no. i actually didn't buy it primarily for gaming :) Dec 22 11:02:27 but i'm a bit sad that STILL my only device with both hdmi out and nfc is the el cheapo hisense sero pro 7. Dec 22 11:02:34 The shield is a really good tablet on it's own. Don't think people were really expecting that. Dec 22 11:03:03 yesterday i ask for help with bluestacks and got a recommendation to use genymotion instead Dec 22 11:03:07 how vica versa Dec 22 11:03:08 yeah, Shield was a rather big surprise on Android tablet front :) Dec 22 11:03:17 s/how/now/ Dec 22 11:03:39 Radther: i wasn't expecting it to be as nice as it's proving so far, no. the xmas promo brought the price to where i was comfortable, so i decided to jump on it before i like end up with a tab s 10.5 or something. Dec 22 11:03:39 what do you guys even use tablets for? mine is shut down and has been for months Dec 22 11:04:21 bluecup: i got the shield so i don't have to use my 17" laptop for things in an airplane seat i barely fit in as it is, if at all possible. Dec 22 11:04:51 bluecup: Before my nexus 7 2012 slowed to a crawl I used to use it before going to bed for reddit and browsing. Dec 22 11:04:52 worst case: bt keyboard, controller as a mouse, high res screen, and plane wifi will let me rdp for things which "require" a pc. :) Dec 22 11:05:12 bluecup: my son plays games on it :) Dec 22 11:05:16 bluecup, testing software I write :P Dec 22 11:05:19 i expect that in the airplane situation, the controller will actually be better than a real mouse. Dec 22 11:05:37 You can even develop android apps on a tablet if you really want. Dec 22 11:05:39 I use my air for those things, or my phone :( Dec 22 11:05:45 also reading, notetaking on customer meeting, watching youtube stuff in bed, playing games / reading / watching stuff while traveling or on a plane... Dec 22 11:05:49 i can't wait till i've used the shield a bit and decided how to use its hardware effectively for things. :) Dec 22 11:05:52 yeah, I thought about downloading codeanywhere Dec 22 11:05:56 bunch of stuff I really don't want to drag my rMBP out Dec 22 11:06:02 i probably can gles 3.1 accelerate something! :D Dec 22 11:06:10 but for testing I use company tablets Dec 22 11:06:13 draggon out a 15" laptop on a plane really pisses off everyone around you :P Dec 22 11:06:17 but I might start playing some games on it :) Dec 22 11:06:29 Mavrik: get a 13” then :D Dec 22 11:06:31 fuck everyone around you Dec 22 11:06:33 Mavrik: This one is the one I saw. https://play.google.com/store/apps/details?id=com.aide.ui&hl=en Dec 22 11:06:38 Mavrik: and mine's 17" and i already don't fit in the seat :D Dec 22 11:06:58 bluecup, even my previous 13" was too big to just pull it out and do some quick notes / browse for a webpage in the meeting Dec 22 11:07:05 i hate precariously balancing my laptop on my knees for a few hours. Dec 22 11:07:06 9" tablet is so much more convenient Dec 22 11:07:13 also, I don't have to use a crappy slow laptop now just for that :) Dec 22 11:07:25 Yeah, using a touch interface is nice when in those situations. Dec 22 11:07:38 Hmm now its not working Dec 22 11:07:42 i don't like laptops that have oversized extended life batteries sticking out the back it kills their portability Dec 22 11:08:09 My Macbook is nice and thin and has lots of battery life. Dec 22 11:08:11 Is there a way to stop all running services from one single method? Dec 22 11:08:11 Radther, yeah, never tested that one, waiting for the foilio keyboard to check if that's even feasable :) Dec 22 11:09:20 Mavrik: Yeah, could be a little weird, also probably don't get all the benefits of a full IDE. Dec 22 11:09:24 I should probably get a bigger tablet then, I got a 7” and it feels tiny Dec 22 11:09:42 yeah, 7" are too small for me as well Dec 22 11:09:57 https://play.google.com/store/apps/details?id=com.codeanywhere&hl=en Dec 22 11:09:58 also, the annoying 16:9 form factor really kills anything that's not watching movies on most tablets :/ Dec 22 11:10:06 I need to change the solid / stroke color of multiple drawables. I found this: http://stackoverflow.com/a/16637696/1723525 But is it possible to change it like using a ColorFilter on a drawable? So that the new color can be as background for multiple Views by one piece of code? Dec 22 11:11:41 bluecup: They have been using a photoshop plugin for those screenshots. http://perspectivemockups.com/ Dec 22 11:12:27 Pure Fucking Magic Dec 22 11:12:28 Built by slave fairies and unicorn horns, this Photoshop Plugin couldn’t possibly be any more fucking amazing Dec 22 11:12:28 - See more at: http://perspectivemockups.com/#sthash.vdIO8FAS.dpuf Dec 22 11:13:31 Unfortunately I can't justify the $19 to buy it as I would probably never use it. Dec 22 11:15:03 hey people, hows everyone this fine Monday morning? Dec 22 11:15:20 Napalm: Pretty well thank you. Dec 22 11:16:11 Napalm: ready to party, you? :) Dec 22 11:17:57 I'm good, to be honest, im relishing a bit of time to work on my own side projects for a bit Dec 22 11:18:12 Which projects are you working on, Napalm? Dec 22 11:19:41 Well I have an iKettle and their Android app sucks, so I am writing my own variant which will resolve all its pitfalls. Dec 22 11:20:14 If I get it finished over the next couple of days I might launch it on the Play store ready for the new year. Dec 22 11:20:33 The other is that custom text-view idea.. but at the moment it doesnt have my attention Dec 22 11:21:40 Cool. :) Dec 22 11:23:16 Napalm: What's the text view idea(Assuming you are willing to share) Dec 22 11:26:40 Radther: its a mix really.. simply put, its a better simpler "TextView".. Main feature set being: exclusion zones, spans, links, higlighting, RTL and BiDi text. Dec 22 11:26:59 That sounds pretty awesome. Dec 22 11:28:17 Is it gonna be super-fast, Napalm? Dec 22 11:28:35 You've got me thinking about the interface and if I should give the view the ability to share its textual data across multiple views. Dec 22 11:28:37 TextView.setText is my app's biggest time-waster, I think. Dec 22 11:28:40 TacticalJoke: thats the idea aswell Dec 22 11:29:08 Although it might be ListView.onDraw. I forget. Dec 22 11:29:11 TacticalJoke: thats normally the case with the current TextView implementation. Dec 22 11:29:15 Yeah. Dec 22 11:29:24 TacticalJoke: i mean setText not ListView.onDraw Dec 22 11:29:29 I'm gonna switch to RecyclerView soonish. Dec 22 11:29:34 BTW. Dec 22 11:29:52 But, yeah, TextView.setText will still be slow (I'll just maybe avoid the slowness of ListView.onDraw). Dec 22 11:30:00 I recommend switching, it offers so much more customisation. Dec 22 11:30:23 Yeah, it sounds perfect for my app. Dec 22 11:30:45 I can imagine. Dec 22 11:31:05 so... completely unrelated question... what's the current favorite android antivirus solution which doesn't have a tendency to catch sideloaded APKs it doesn't recognize as false positives? i've used avg for some time, but it's easily pegged as a device slower-downer :( Dec 22 11:31:42 lewellyn: no idea, but Play store now checks them anyway Dec 22 11:31:49 Is anti-virus really necessary? Dec 22 11:31:49 one of them i used hated every apk i built, a while back, so i'm going to just ask those who likely have looked more recently :) Dec 22 11:32:09 Napalm: the play store checks stuff you're devving and loading up yourself? Dec 22 11:32:25 Radther: i don't know. :) Dec 22 11:32:32 it used to be, for sure. Dec 22 11:32:40 lewellyn: yes, but you can turn it off if you like Dec 22 11:32:50 Napalm: where is this mythical option? Dec 22 11:32:57 Developer options I think Dec 22 11:33:13 oh. i haven't enabled dev mode on this thing yet. Dec 22 11:33:20 Napalm: Do you use Android Studio? Just curious. Dec 22 11:33:52 i don't see it on my 4.2.2 dev device though. Dec 22 11:34:23 lewellyn: yea, on my L installation it says "Verify apps over USB" (check apps installed via ADB/ADT for hamrful behaviour) Dec 22 11:34:42 hm. Dec 22 11:34:46 It seems as though, unless you are doing things that might cause a problem (Like downloading lots of apks online) there is no reason to use anti virus. Dec 22 11:34:48 so that's a brand new thing. Dec 22 11:35:11 Radther: also third party app stores. :) Dec 22 11:35:22 speaking of... i haven't installed amazon on this new thing yet. Dec 22 11:35:44 TacticalJoke: I do, and I am trying to move to it. I am a long time Eclipse user because I've been using for Android device since 2009. So its not that easy for me to switch. But I will as it is now the only supported IDE. Dec 22 11:35:47 custom lock screens seem iffy on L though. i'll have to investigate that later. :P Dec 22 11:36:01 Yeah. Dec 22 11:36:15 I'm on Eclipse too (mainly because I do JVM unit testing). Dec 22 11:36:29 They're in the process of adding JVM testing to Android Studio, but it won't be ready for a while, I think. Dec 22 11:36:58 TacticalJoke: seen this? https://code.google.com/p/android-test-kit/ Dec 22 11:37:36 TacticalJoke: this might better explain it https://code.google.com/p/android-test-kit/wiki/Espresso Dec 22 11:37:53 Yeah, JakeWharton showed me that. Dec 22 11:38:17 I don't mind device tests for some things, but I love the speed and convenience of JVM unit tests. :) Dec 22 11:41:05 I love code that wraps a complex problem domain but works and manages to be simple. Dec 22 11:41:10 Best kind of code ever. Dec 22 11:56:40 hi, there, how can I change the top bar without changing everything else ? Dec 22 11:57:09 what I did is to change the styles xml by adding this @color/red Dec 22 11:57:31 Did that change the default background for every view in your app? Dec 22 11:57:35 but it changes even the dialog colour Dec 22 11:58:02 TacticalJoke, yes, the whole app Dec 22 11:58:24 Are you wanting to change the background of your ActionBar? Dec 22 11:58:49 TacticalJoke, yes, ah it calls ActionBar ! Dec 22 11:59:05 I can't link you right now (no easy way to open a web browser), but it'll be one of the first results of "android actionbar color". Dec 22 11:59:19 Should be "Styling the ActionBar" or something. Dec 22 11:59:25 https://developer.android.com/training/basics/actionbar/styling.html Dec 22 11:59:25 ok, let me search that, I didn't know how it is called Dec 22 11:59:28 There is the link. Dec 22 11:59:34 Thanks, Radther. lol Dec 22 11:59:35 thanks guys :) Dec 22 12:05:41 zoraj: It might be worth looking into the Toolbar instead as it is a bit easier to work with and goes straight into the XML. Dec 22 12:05:42 http://android-developers.blogspot.co.uk/2014/10/appcompat-v21-material-design-for-pre.html Dec 22 12:06:14 It also fits with the new material design. Dec 22 12:07:23 Can you add invisible instructions for blind users? I'm using a view pager with a viewpage indicator but there is nothing there to tell a blind user how to navigate it. Dec 22 12:08:31 Radther, really interesting ! ok will look into it later, thanks for the infos Dec 22 12:09:18 Ankhwatcher: Don't know the exact answer to your question but this might help in regards to accessibility options. http://developer.android.com/guide/topics/ui/accessibility/apps.html Dec 22 12:13:16 Radther, my style.xml is this https://bpaste.net/show/f01e4a94a5d7 Dec 22 12:13:23 but it's still pretty dark Dec 22 12:13:47 Theme.Holo.Light isn't supposed to make the action bar pretty clear ? Dec 22 12:14:17 zoraj: Define clear? Dec 22 12:14:30 Do you mean transparent? Dec 22 12:16:45 @android:color/transparent Dec 22 12:17:48 I mean grey clear like what we can find on the link you just gave me Dec 22 12:17:55 the second Action bar Dec 22 12:18:16 Theme.Holo.Light Dec 22 12:19:27 Change Theme.Holo.Light to Theme.Holo.Light.DarkActionBar Dec 22 12:19:54 ok Dec 22 12:20:22 well Dec 22 12:20:31 has anybody got an idea of how to do promo for a game these days?? Dec 22 12:20:37 I think that's what you mean. Dec 22 12:20:46 i totally ran out of ideas Dec 22 12:21:15 Radther, it's still dark :/ it is obvious since it's DarkActionBar Dec 22 12:21:48 I rather want it to be white or grey light Dec 22 12:22:44 manny: throw a reddit post about how they removed it from the store Dec 22 12:22:50 that seems to do the trick these days :D Dec 22 12:22:53 I think google released a book on doing it. Dec 22 12:22:55 bluecup: yeah lol Dec 22 12:23:11 bluecup: or some other random "scandal" Dec 22 12:23:24 bluecup: or if you are the former devs of Dec 22 12:23:57 manny: yeah, everyone seems to love scandals these days “omg google so evul” Dec 22 12:28:51 Isn't it annoying when the internet just stops. Dec 22 12:33:03 And you just keep refreshing for new content. Dec 22 12:33:45 bluecup: I ment more on the side of my internet just went down for 5 minutes. Dec 22 12:34:26 oooh, I thought you meant when everything is silent and nobody is posting anywhere and you’re just so damn bored while sitting on the toilet :) Dec 22 12:34:47 lol Dec 22 12:34:52 I hate that refreshing thing. Dec 22 12:35:04 I can haz more content?! Dec 22 12:35:07 bluecup: I know that feeling pretty well as well. Dec 22 12:35:41 I demand to be entertained! Dec 22 12:35:46 MORE FUNNY CATS! Dec 22 12:37:21 Just reading "pull to refresh" over and over. Dec 22 12:40:18 is there any kind of information/studies on how well known certain android features are? what is the minimum i can expect from any given user? i'm talking about the navigation drawer in particular Dec 22 12:43:31 What specifically do you want to know? Dec 22 12:44:37 if i can trust an android user to try the "open navigation drawer" gesture before closes the app frustrated Dec 22 12:45:39 one of my colleagues didn't know what to do with our app so he had to call me.. he's from a windows phone background.. Dec 22 12:45:50 fancy42: if you dont, make an arrow pointing to it saying click here Dec 22 12:45:57 Assuming that hamburger is there I think it's quite clear to try to get to the drawer Dec 22 12:46:01 now the app has the drawer open on app start Dec 22 12:46:12 that a good idea too Dec 22 12:46:42 because in 90% of the cases you would want to open the drawer after app start anyways Dec 22 12:46:59 if this is the case, you should change your design ;) Dec 22 12:47:11 and put stuff from the drawer on your main screen Dec 22 12:47:22 our main screen is a map.. Dec 22 12:48:14 and additionally we're having an extra button in the navigation bar that opens the navigation drawer :D which for my taste is doing too much. Dec 22 12:48:39 id do some help overlay Dec 22 12:49:10 something darkish with a white arrow to the top left "click here to open menu" Dec 22 12:49:17 and let it only appear the first time the app is started Dec 22 12:49:27 i want to build an argument to drop the extra button.. for this i'm currently logging to our servers how users use the app, but i'd also like some statistics or studies on how many users are familiar with drawers Dec 22 12:49:48 there arent any i think.. :/ Dec 22 12:50:32 but nav drawer is pretty common these days Dec 22 12:50:38 so i would assume everybody to know it Dec 22 12:50:52 yeah it's all over googles default apps :D Dec 22 12:50:52 every google app has it now. play store, youtube.... Dec 22 12:51:46 hm.. maybe i can make my point once i gathered some logging data :) Dec 22 12:53:07 yeah, users are really familiar with nav drawer Dec 22 12:53:32 but there were some A/B tests that show users interact more with options in tabbed apps Dec 22 12:53:44 so as you wish, you can try to do some A/B testing and check out what happens Dec 22 12:54:30 btw. are there any good reads on how to modulize your android application? we're currently branching a second version off of our main product. the second version will have different features, slightly different ui elements etc.. of course we would like to reuse the same code as much as possible.. i read to 'just do it' with release/feature toggles, but that will blow each application out of proportion Dec 22 12:56:05 so pretty soon different fragments will trigger different events all over the app basically :D we got some ideas how to handle it, but this should be a pretty common challenge shouldn't it? Dec 22 12:58:42 You can use build flavors, or just keep common code in a module and have separate projects for each app Dec 22 13:03:40 SimonVT, yeah we have an own branch for each App. Common features we develop in the Base-App will be merged into the 'clones' Dec 22 13:04:28 build flavors are from gradle, right? Dec 22 13:07:14 yep Dec 22 13:08:13 Has anyone got wireless ADB working before? I have tried multiple times and it never works correctly. Dec 22 13:15:11 Radther, I have made adb over ip work with CM 11. Didn't use it for much, but it worked. Dec 22 13:15:32 Do you have a link for a guide? Dec 22 13:16:01 wireless dab needs a rooted device, correct? Dec 22 13:16:35 Doesn't look like it but it helps. http://stackoverflow.com/questions/2604727/how-can-i-connect-to-android-with-adb-over-tcp Dec 22 13:16:54 This one shows how to set it up if you have a usb cable. Dec 22 13:17:01 Might try that a little later. Dec 22 13:25:53 if you are rooted there are plenty of apps which work flaweleslly, you just need to adb connect ipaddr Dec 22 13:26:45 what you need is bind mount (and some shell knowledge) Dec 22 13:27:03 oops, wrong channel Dec 22 13:38:14 Hello guys, I want to display an image in a detail page that covers one third of the screen. But as we know we have different devices with different screen resolutions, how can achieve that if I want to specify that in xml layout? Dec 22 13:38:56 LinearLayout with weightsum Dec 22 13:38:58 Or do I have to do that in runtime? Dec 22 13:39:18 Number5: ^ Dec 22 13:39:25 thepoosh, interesting, now I happen to use RelativeLayout. Dec 22 13:39:43 switch to linear Dec 22 13:40:01 thepoosh, that's an option Dec 22 13:40:36 Ok, thnx thepoosh Dec 22 13:52:59 play store is not considering my app fit for tablets. Says "Your layout should make use of the available space on 7-inch tablets" Dec 22 13:53:30 exactly which viwes should I update? Dec 22 13:55:20 do you has layout-large folder? Dec 22 13:58:40 Ashiren: I have a layout-sw600dp Dec 22 14:04:21 Do you folks use Arrange/Act/Assert for unit tests? Dec 22 14:30:06 Looked at opengl, seems to generally for rendering textures to 2d or 3d. Doesn't seem to be what I need. I really just want to set pixels simple colours individually. Thought about GPU acceleration, is there a way to set simple code to run on the GPU (it would be similar to a pixel doubling filter, running from an array in memory) Dec 22 14:32:23 Totally doubt you can set arbitrary code to run on the GPU. Dec 22 14:36:00 lasserix: Here's my CollapsingList class which you asked about: http://pastebin.com/TkTBasJ1 Dec 22 14:36:07 I haven't finished refatoring yet, though. Dec 22 14:36:38 refactoring* Dec 22 14:59:15 hey droids, I'm trying to use AppCompat for its material design on pre-lollipop devices. Here's it's dependency line from gradle: compile 'com.android.support:appcompat-v7:21.0.3'. My compileSdkVersion is 21, and build tools are 21.1.1. When I build the project, I get an error that no theme matches android:theme="@android:style/Theme.AppCompat.Light" Dec 22 14:59:17 Can someone advise? Dec 22 15:00:30 What's weird is that I don't get autocomplete for the Theme.AppCompat.Light, but AS doesn't display the line as an error. So I'm thinking there's something wrong with the build process? Dec 22 15:19:07 MarkyC, whats the line ? I dont think you need the android namespace Dec 22 15:19:17 cool Dec 22 15:20:14 csst0111: So it should be `android:theme="@style/Theme.AppCompat.Light"` instead of `android:theme="@android:style/Theme.AppCompat.Light"` Dec 22 15:20:36 yes since you now inherit from the support lib Dec 22 15:23:01 csst0111: Yep, you're right! Thanks Dec 22 15:23:56 anybody know why if you click a Checkbox there is a ripple effect on the entire layout instead of on the Checkbox? Dec 22 15:29:01 Hi guys, I use Dagger to inject mocks in my espresso tests. With Espresso 1 (actually it was double-espresso from JakeWharton, but whatever). Now, updating to Espresso 2.0 I got strange NoClassDefFoundError error. http://pastebin.com/ShH2bAVM Do you have any clue? Dec 22 15:29:33 Hello Dec 22 15:30:00 I'm trying to figure out oneplus one's vendor id, but cannot find it Dec 22 15:52:09 hello, would the existence of an "ongoing" notification avoid the killing of my app on conditions of low memory? Dec 22 15:52:23 Hello Dec 22 15:52:31 hello Dec 22 15:53:07 I had a quick question on SQLite cursors for Android I was hoping I could get help with Dec 22 15:54:23 wodim: It should stop the app from being killed as far as I know. Dec 22 15:54:38 cma574: What's the question? Dec 22 15:54:59 Radther: thank you dear Dec 22 15:55:19 Mainly the fact that I see that Cursor memory shouldn’t go over 1MB, but I was wondering if that still holds true or if that applies just to older versions of Android? Running the same query on the same database on a device with 2.3.5 and it’s crashing, but another one running 4.1.2 is running it fine Dec 22 15:56:42 wodim: I don't think so. IIRC it just prevents your notification to be removed by the user. Dec 22 15:57:04 rciovati: how do i make it then Dec 22 15:57:24 wodim: This seems to say that it does. But it's a new thing. Dec 22 15:57:25 http://www.androidpolice.com/2013/07/29/android-engineer-explains-why-some-apps-suddenly-have-persistent-notifications-after-you-upgrade-to-android-4-3/ Dec 22 15:58:01 Radther: this is related to foreground services Dec 22 15:58:23 :? Dec 22 15:58:23 rciovati: Ahh ok. I'm not sure then. Dec 22 15:59:02 cma574: Why is the cursor using over 1MB, I haven't done much with databases but that seems quite high. Dec 22 15:59:17 usually you have to provide a valid notification is you start a service in foreground mode. prior to android 4.3 there was a bug and you could actually pass a "malformed" notification in order to do not show one. Dec 22 16:00:33 Because the database and the application were originally built by someone who didn’t know/account for this and the database has a large number of rows. I actually did find a workaround by limitting entries, but at this point it’s a curiosity. Dec 22 16:00:49 wodim: anyway, try using a foreground service, but just if you really need it. Dec 22 16:01:45 rciovati: i would rather not have a service... Dec 22 16:01:51 rciovati: it's a radio Dec 22 16:01:57 Why the query works on one device but not the other, the one running 2.3.5 is a Droid X2 and the 4.1.2 is a Droid Bionic Dec 22 16:02:29 cma574: Maybe the limit was upped in later versions. That would be my only guess. Dec 22 16:03:49 Gotcha. Thanks! Dec 22 16:11:07 anyone tried one of these HP Slatebook 14's? Dec 22 16:13:06 where does AS expect android support to be? Dec 22 16:14:55 is it possible to record the call Dec 22 16:14:56 ? Dec 22 16:15:14 complete conversation without root permission Dec 22 16:17:12 no Dec 22 16:17:15 even with, no Dec 22 16:18:14 and thank god for that Dec 22 16:18:14 or what is android-support's latest version? Dec 22 16:18:28 https://aur.archlinux.org/packages/an/android-support/PKGBUILD i see 21.0.2 here and android website just says 21 Dec 22 16:19:26 Rad-, see in your local m2repository that the android sdk downloads Dec 22 16:21:04 pfn: m2? Dec 22 16:21:16 /opt/android-sdk/extras/android/support Dec 22 16:21:17 exits Dec 22 16:21:18 in your ADT manager Dec 22 16:21:24 no Dec 22 16:21:26 m2repository Dec 22 16:21:34 you didn't install support repo then Dec 22 16:21:40 pfn: how do you open ADT manager? Dec 22 16:21:54 i installed with OS repository (cuz it'smostly updated) Dec 22 16:22:04 AVD* Manager? Dec 22 16:22:08 and is actually supposed to be as up to date as possible Dec 22 16:22:31 er sure yeah how do i open the thing that checks if things are installed Dec 22 16:22:33 Rad-: http://imgur.com/YIqIIGk Dec 22 16:22:46 *AVD Dec 22 16:22:51 yiati: NO Dec 22 16:23:01 Android SDK Manager Dec 22 16:23:35 :P yeah that's what I meant Dec 22 16:23:40 avd is different Dec 22 16:23:52 ah there's a 21.0.3 Dec 22 16:24:08 i was wondering because it was flagged out of date on the repository 12 days ago Dec 22 16:24:27 i'm just trying to get thie statement to work: and is compile 'com.android.support:appcompat-v7:21.+' Dec 22 16:25:14 it says i have 21.0.2 on the manager thing which is accurate Dec 22 16:25:37 Did you try 'com.android.support:appcompat-v7:21.0.2' Dec 22 16:26:03 21.+ will point to something newer than 21.0.2 Dec 22 16:26:20 yiati ++ Dec 22 16:26:20 21.1.2 atm Dec 22 16:26:23 using + versions always sucks Dec 22 16:26:33 yes and no Dec 22 16:26:42 I don't think that with the suppor tlibs it matters Dec 22 16:26:49 *support libs Dec 22 16:26:52 it always matters Dec 22 16:26:54 for everything Dec 22 16:27:18 I kinda trust google to not mess me up on this Dec 22 16:27:29 but I can say that appboy fucked us over with that Dec 22 16:30:28 I wouldn't trust anything called appboy anyway Dec 22 16:30:40 Syzygy__: why? Dec 22 16:30:47 weird name :> Dec 22 16:31:15 lol Dec 22 16:31:30 they're ok i guess Dec 22 16:32:01 analytics platform that doesn't cache events when activities are not visible Dec 22 16:32:05 but they're ok Dec 22 16:35:42 yiati: ah okay. i'll do 21.0.2 until the guy decides to update his user repository -_- Dec 22 16:36:58 Error:(24, 0) Could not find property 'is' on org.gradle.api.internal.artifacts.dsl.dependencies.DefaultDependencyHandler_Decorated@265e3075. Dec 22 16:37:10 .-. how hard is it to get hello world running Dec 22 16:39:22 No one has succeeded in doing it yet Dec 22 16:40:55 Is there a way to retain services even though the phone restarted? Dec 22 16:40:55 lol s73v3r Dec 22 16:41:08 i have but then things updated and it borked Dec 22 16:41:13 i'm tempted to just.. start a new project Dec 22 16:45:40 Syzygy__: http://goo.gl/I1SyNo Dec 22 16:45:52 thanks Dec 22 16:52:55 http://www.bbc.co.uk/news/technology-30548468 Dec 22 16:52:59 fuck me, thats bad Dec 22 17:02:07 does anyone have a working solution to remove padding arround cardviews pre lollipop? Dec 22 17:04:33 Error:Failed to find: com.android.support:appcompat-v7:21.0.2 Dec 22 17:04:49 but in extra in sdk manager Dec 22 17:04:58 it says android support library REv 21.0.2 Dec 22 17:05:03 i'm confused -_- Dec 22 17:05:23 did you load the repository? Dec 22 17:05:51 ..load the repo? Dec 22 17:05:58 in sdk manager, der is Android Support Repository and Android Support Library. For gradle you need the first one, not the second Dec 22 17:06:04 Rad-: its not the support library you need, its the support repo Dec 22 17:06:26 the library is if you want to create a seperate library project from the source files Dec 22 17:06:28 oh Dec 22 17:06:45 danijoo: why not just call the funfction Dec 22 17:06:57 Napalm: ? Dec 22 17:07:07 and here i've been messing around trying to figure out why i can't hello world ._. thank you danijoo Napalm Dec 22 17:07:33 danijoo: you said you wanted to remove the padding.. so do it.. lol Dec 22 17:08:00 Napalm: I mean the padding appcompat automatically ads to cardviews instead of the evelation shadow Dec 22 17:08:05 you cant set that from function Dec 22 17:08:16 danijoo: yes, https://developer.android.com/reference/android/support/v7/widget/CardView.html#setPreventCornerOverlap%28boolean%29 Dec 22 17:08:27 and you also have setRadius and setPadding Dec 22 17:09:36 Hey all, is there a way that i can get an ArrayAdapter to update its data when a notification comes to the device? I have a listView and ArrayAdapter but need to modify one of the items but dont know how to access it. Dec 22 17:10:57 skrite: yes, but that all depends on what you have in your ArrayAdapter Dec 22 17:12:33 Napalm: It contains basically, an ArrayList of a special class. Dec 22 17:12:45 omg Dec 22 17:12:48 i know Dec 22 17:12:55 I'm talking about the Special Class! Dec 22 17:14:42 Napalm: sorry, here is the class http://pastie.org/9794519 Dec 22 17:15:01 Napalm: this does not what I want it to do :) Dec 22 17:15:28 danijoo: what do you want to do? you wanted to change the padding Dec 22 17:15:53 if you use appcompat cardview on android 5.0, everything is fine Dec 22 17:16:24 if you use the same layout to show cardview on android 4.x, it adds a margin under every card view, which seems not to be removeable to me Dec 22 17:17:46 skrite: ok thats pretty bad code.. but whatever.. so, you have a couple of options.. the easiest way is A just modify your initial ArrayList and call notifyDataSetChanged() on your ArrayAdapter or B) just do what most people do and extend BaseAdapter and make your own adapter. Dec 22 17:17:52 basically this is my problem: i just want the opposite of the thing the op wants http://stackoverflow.com/questions/27035647/why-there-is-no-space-between-cardviews-on-lollipop Dec 22 17:17:56 danijoo: isnt that just a margin? Dec 22 17:18:28 see stack overflow. it gives the explanation for the behaviour, but not a solution to make it consistent Dec 22 17:18:47 "Before L, CardView adds padding to its content and draws shadows to that area" Dec 22 17:19:45 Napalm, ok, thanks for the help. Will dig into these options. How do i access the ArrayAdapter though? i can't make it static, right? Also.. why is the code bad? (i am kinda new here) Dec 22 17:19:51 isn’t that how it should be, though? It loooks like the other card views on 4.0 devices, and it looks like the other card views on 5.0 devices Dec 22 17:20:31 yeah but im looking for a way to make it look like the 5.x cardviews in 4.x :) Dec 22 17:20:57 but it does not seem to be possible to get rid of that shadow padding :( Dec 22 17:21:05 skrite: noooo Dec 22 17:21:36 skrite: how are you currently creating your ArrayAdapter and you are trying to replace a site? based on what? Dec 22 17:21:43 its id? Dec 22 17:22:05 and I’m saying, shouldn’t you have it blend in with the rest of the device? Dec 22 17:23:08 you don’t want to surprise your users and give them something completely different that they don’t know how to use Dec 22 17:23:13 apps looking like they're native is absolutely undesired Dec 22 17:23:14 obviously Dec 22 17:24:14 yeah i think my users will all get a hard attack if their cardviews dont have a margin :p Dec 22 17:24:28 heart* Dec 22 17:24:47 what you’re suggesting to do isn’t that far off from soemone saying they want their Android app to look like an iOS app Dec 22 17:24:48 I would like to replace a site, or change the info of the site. Yes, i suppose the id would be ideal. I am creating it like this. http://pastie.org/9794534 Dec 22 17:25:27 the GroupSiteArray is a static ArrayList of sites Dec 22 17:25:31 skrite: and SummaryListAdapter extends ArrayAdapter ? Dec 22 17:25:47 skrite: post your SummaryListAdapter Dec 22 17:25:51 well i dont really want to discuss about design here. this never makes anyone happy :) seems like its not doable in an easy way. Dec 22 17:26:05 yes, extends ArrayAdapter Dec 22 17:27:57 http://pastie.org/9794540 Dec 22 17:28:14 danijoo: and its not this https://developer.android.com/reference/android/support/v7/widget/CardView.html#setUseCompatPadding%28boolean%29 Dec 22 17:28:40 Napalm: thats the exact opposite. it adds the pre-L behaviour for L devices Dec 22 17:28:53 danijoo: i think I see the problem.. in which case I dont think there is a solution.. remember on L its using elevation, for which the alternative on pre-L is background drawable. Dec 22 17:29:05 yeah thats the problem Dec 22 17:29:30 danijoo: did you look at the source? Dec 22 17:30:39 nope. only documentation. Interestingly it still adds this margin if you set elevation to 0 Dec 22 17:31:12 seems like I have to work arround by adding multiple views to a single cardview for preL devices. Dec 22 17:31:23 danijoo: just looking, wait Dec 22 17:32:12 CardView adds a "margin" so it has somewhere to draw the drop shadow Dec 22 17:32:23 On L the drop shadow is drawn by the parent, so that's not needed Dec 22 17:32:30 yep Dec 22 17:32:51 thats ok until you want one cardview right below the other without a margin Dec 22 17:33:29 seems like you have to put both layouts into a single cardview in that case Dec 22 17:35:23 danijoo: looks like setElevation and setMaxElevation should work fine.. that is by calling setCardElevation and setMaxCardElevation on CardView Dec 22 17:37:02 skrite: I have no idea what makes you think this is how you should write this.. Dec 22 17:37:09 * Napalm runs and hides Dec 22 17:38:01 skrite: theres just so many things I could say about this.. sorry.. but I dont even know where to begin.. ok well it looks like you override getView in which case you might aswell just extend BaseAdapter Dec 22 17:38:44 ok. Thanks, will look at doing that. Dec 22 17:38:46 skrite: then you can simply modify the ArrayList from a new method called replaceSite(Site site) in your Adapter and call notifyDataSetChanged() after you make changes to the ArrayList in that method Dec 22 17:40:12 skrite: you know creating bitmaps and drawing to canvas.. is about the biggest no-no's you can do in getView Dec 22 17:40:34 Napalm: awesome. I forgot maxElevation, thats why it didnt had any effect for me Dec 22 17:40:34 Napalm, i did not know that. Dec 22 17:40:42 skrite: why are you doing all this JSON parsing also.. JSON is your storage structure not your apps Dec 22 17:40:46 your apps model Dec 22 17:41:18 danijoo: did you get it resolved? Dec 22 17:41:31 yep. Dec 22 17:41:33 I thought it was the logical way to bring data from my API server and create objects from the returned info. Dec 22 17:41:54 danijoo: post an answer on that SO post http://stackoverflow.com/questions/27035647/why-there-is-no-space-between-cardviews-on-lollipop Dec 22 17:41:54 if removes the margin when you set maxElevation and Elevation to 0 Dec 22 17:41:57 and I'll upvote it Dec 22 17:42:25 its not really an answer for that question because OP wants the exact opposite Dec 22 17:42:39 skrite: correct.. create objects .. then you have no need for JSON unless you need to store it again Dec 22 17:42:39 he wants the margin on Lollipop while I want no margin on pre L Dec 22 17:42:52 oh Dec 22 17:42:57 well whatever Dec 22 17:43:08 i see. ok Dec 22 17:43:52 anybody using robospice to post process a result in the background? Dec 22 17:44:03 anyone can help howto build https://code.google.com/p/seek-for-android/source/browse/trunk/src/smartcard-api/ as shared library ? (jar) Dec 22 17:44:20 from cli :D Dec 22 17:44:21 truetechie: what do you want to know.. ask your question Dec 22 17:45:02 do i need grandle? Dec 22 17:45:05 Napalm: i want to know if its possible to process a result in the background before placing it on the ui thread Dec 22 17:45:18 asturel_: What have you tried? Dec 22 17:45:37 javac Dec 22 17:45:50 asturel_: How did that work for you Dec 22 17:46:08 javac -verbose -d obj -classpath "/home/asturel/android/prebuilts/sdk/current/android.jar;obj" -sourcepath src src/org/simalliance/openmobileapi/*.java Dec 22 17:46:22 i.e. did that work for you Dec 22 17:46:24 but it idndt find android libs Dec 22 17:46:58 (Intent & Log) Dec 22 17:46:59 or if robospice also has a way for me to do something to the result in the background before returning it from the cache Dec 22 17:47:43 asturel_: you cant build it out-right like that.. you'll need to compile it with the Android-Studio or at least the command line tools into an aar Dec 22 17:48:15 aar? Dec 22 17:48:44 asturel_: do you have the Android SDK installed? Dec 22 17:49:03 well i have a full android src which containts the sdk too Dec 22 17:49:33 no, you'll need the compiled sdk.. unless you want to compile the platform tools Dec 22 17:49:44 asturel_: then you can use the command line tools here http://developer.android.com/tools/projects/projects-cmdline.html#SettingUpLibraryProject Dec 22 17:50:03 asturel_: you'll want to create the library project in this directory https://code.google.com/p/seek-for-android/source/browse/trunk/src/smartcard-api/ Dec 22 17:50:39 then you can compile the project into an AAR to be included in any android APK Dec 22 17:51:23 but the project is already exists Dec 22 17:51:31 and i want it as 'jar' Dec 22 17:51:43 asturel_: you cant have it as a jar it includes jni Dec 22 17:51:56 asturel_: android uses AAR Dec 22 17:52:04 asturel_: what are you trying to achieve here? Dec 22 17:52:06 well they ship it as 'jar' Dec 22 17:52:13 its a framework 'service' Dec 22 17:52:41 https://code.google.com/p/seek-for-android/source/browse/trunk/#trunk%2Frepository%2F19 they have prebuild here, but it doesnt work on lollipop Dec 22 17:52:51 the binderservice works a bit different and it throws an error Dec 22 17:53:03 asturel_: ok, then they are actually shipping it in two parts.. they are pushing the .so jni librarys into system and a jar of the android code. Dec 22 17:53:40 asturel_: but you'd just be better compiling the smartcard-api project as an APK and including it in your system image Dec 22 17:53:56 i dont think they provide .so Dec 22 17:54:02 omg Dec 22 17:54:10 ? Dec 22 17:54:32 asturel_: look at the jni folder of the smartcard-api project.. that compiles into a series of .so files one for each ABI Dec 22 17:55:04 u mean libassd ? Dec 22 17:55:43 looks like it could be called that Dec 22 17:56:21 Is anyone familiar with a fast library to do low-level analysis and manipulations on sound files? (MP3, etc?) Dec 22 17:56:38 And by fast I primarily mean low resource cost I suppose. Dec 22 17:56:40 its optional (?) Dec 22 17:56:53 Last I looked was around 4 years ago, and there wasn't much. Dec 22 17:57:49 but if it would be an apk how would other applications use it as library? Dec 22 17:58:06 like Dec 22 17:58:33 x0077BE: http://goo.gl/iA0EG Dec 22 17:59:30 yiati: I think you misunderstand me, I think I mean a codec where I can say decode a given frame from an MP3. Dec 22 17:59:42 Though I'll bookmark JTransforms for later. Dec 22 18:00:37 asturel_: jesus, go figure it out Dec 22 18:01:40 x0077BE: Android semi-recently came out with the MediaCodec class http://developer.android.com/reference/android/media/MediaCodec.html Dec 22 18:02:03 It only has support for api 16+ so 4.1+ Dec 22 18:02:19 asturel_: look, all these things have a server/client relationship.. go figure out if the server side is that smartcard-api if it is.. then thats stored in the system as an APK and it will run a service other apps can connect to.. otherwise its a client in which case every app that needs to use the smartcard-api needs to be linked against the client library in which case its a simply Dec 22 18:02:20 library project aar. Dec 22 18:02:32 Oh that's great. I'll look into that and see if it'll fit with what I'm looking for. I remember back when I started doing android dev always wanting a bistream of some sort to manipulate, but generally it was unavailable. Dec 22 18:02:36 Thanks yiati Dec 22 18:04:25 the second :D Dec 22 18:06:41 x0077BE: native low-latency is only a recent addition to android's framework.. if you want that you'll need to target later versions of Android https://www.youtube.com/watch?v=d3kfEeMZ65c https://www.youtube.com/watch?v=sIcieUqMml8 https://www.youtube.com/watch?v=92fgcUNCHic Dec 22 18:06:55 x0077BE: those 3 links should get you update date with what you'll need Dec 22 18:07:14 Thanks Napalm. I have no problem targeting later versions. Dec 22 18:07:22 watch them in that order Dec 22 18:07:25 Will do. Dec 22 18:10:15 x0077BE: the last one is probably the most relavent however you'll probably want the background from the others Dec 22 18:11:40 wb TJ Dec 22 18:14:19 Hey. :) Dec 22 18:18:49 I'm wondering if it's possible to load a webpage in an app as a frame. User hits button and webpage loads in a new activity but only 3/4ths of the screen. The bottom has additional anroid buttons Dec 22 18:20:06 As far as I can tell webview uses the entire activity Dec 22 18:23:31 btnClickMe: yes, you can Dec 22 18:26:00 Also is android studio the official IDE now? I've been using the eclipse bundle Dec 22 18:26:12 btnClickMe: yes Dec 22 18:33:02 Has anyone here ever used sqlite asset helper? I saw it while searching for a problem and wondering if I should be using it https://github.com/jgilfelt/android-sqlite-asset-helper Dec 22 18:33:25 Android Studio is great... it took me a few days to get used to after switching though Dec 22 18:33:55 SDK is extracting now. Dec 22 18:40:15 is anything like the Android One coming to the US? not from micromax but somebody else ? Dec 22 18:40:30 we're a 3rd world country too Dec 22 18:40:35 Oneplus One good too? Dec 22 18:43:18 I heard the scala plugin is available for android studio now Dec 22 18:43:21 which is interesting Dec 22 18:43:39 interestng indeed Dec 22 18:45:08 someone needs to do the same for the sbt plugin, then android studio could be useful Dec 22 18:45:30 I'm too lazy to figure out how to make that happen, though, android studio isn't attractive to me Dec 22 18:56:08 g00s: The closest to android one is the moto G and moto E. Dec 22 19:01:41 liuwenhao: There are quite a few tools that can help with database management. From extensions of SQLite(http://satyan.github.io/sugar/getting-started.html) to completely new databases (http://realm.io/docs/java/0.76.0/). I recommend looking at a few before implementing a database as they can be extremely helpful at times. Dec 22 19:01:47 Good morning everybody Dec 22 19:01:53 How do I add whitespace to a string resource? Dec 22 19:02:26 Thank you Radther, I will check out everything you linked Dec 22 19:03:16 lasserix: Don't you just put a space? Dec 22 19:03:26 Or does that not work? Dec 22 19:06:17 no not work Dec 22 19:06:31 Yeah, just tried it. Dec 22 19:07:23 Does it collapse spaces? Dec 22 19:07:34 Apparently Dec 22 19:07:38 I'm at my parents' and can't try anything. Dec 22 19:07:44 Hmm. Dec 22 19:07:52 lasserix: http://www.ascii.cl/htmlcodes.htm Dec 22 19:08:05 lasserix: put this where you want the white space to be. \u0020 Dec 22 19:08:05 What's the best way to do .... 1) BlahBlah Dec 22 19:08:08 2) Blah Blah Dec 22 19:08:17 where the numbers align and the blah's align Dec 22 19:09:16 There is that CDATA thing. Dunno whether it works, though. Dec 22 19:09:52 Radther: thanks that'll work Dec 22 19:10:14 lasserix: You can use the html numbers Dec 22 19:11:23 They should leave our strings alone. Dec 22 19:14:57 guys, cant rotate a textview normally Dec 22 19:15:07 where is the center point of rotation ? Dec 22 19:15:37 how are you rotating it? Dec 22 19:15:40 You're not still using the preview window, are you. Dec 22 19:16:02 TacticalJoke no Dec 22 19:16:06 now im doign something and running the app (a test one i made for this) on emulator Dec 22 19:16:32 oh boy its a disaster Dec 22 19:16:32 this is very easily done in android Dec 22 19:16:32 ios** Dec 22 19:17:06 lasserix android:rotation="90" Dec 22 19:19:35 lasserix, technically it does rotate,, but it rotates as is, you dont have control to set the rotated version the place u want Dec 22 19:19:40 man I'm sick of people posting on reddit or elsewhere "should I get into this? it's so overwhelming!" Dec 22 19:19:43 http://blog.stylingandroid.com/verticaltext-part-1/ Dec 22 19:19:50 what is wrong with your country, guys? Dec 22 19:20:00 Odaym: what you talking about? Dec 22 19:20:10 like they're all Americans Dec 22 19:20:19 why don't they just DO things and become things Dec 22 19:20:29 no, they’re not Dec 22 19:20:31 maybe it's just the minority I'm seeing, there are tons of great Americans Dec 22 19:20:37 americans made my mac, haha Dec 22 19:20:41 Its Reddit, what do you expect. It's a terrible site Dec 22 19:20:47 it is isnt it!! Dec 22 19:20:51 its so mediocre! Dec 22 19:21:23 lasserix let me check Dec 22 19:21:50 Odaym: age of entitlement Dec 22 19:21:52 you get people like that in here, too Dec 22 19:22:00 very well said lasserix Dec 22 19:22:05 well its far more complicated than that Dec 22 19:22:18 dont know what your elaboration is, but I took the gist of the sentence and its spot on Dec 22 19:22:19 but a lot of it is just that kids are growing up so sheltered in the US Dec 22 19:22:24 age of empowerment, rather Dec 22 19:22:29 well the ones who are middle-class anyways Dec 22 19:22:39 everyone has the right to be worshipped and taken care of like a baby Dec 22 19:22:44 hehe Dec 22 19:22:49 no men! Dec 22 19:22:53 yeh Dec 22 19:22:54 It makes me laugh when people say stuff like "Is Android development like web development?" Dec 22 19:23:10 wtf Dec 22 19:23:16 I dont understand how people look at development in this way, as if it's..like chocolate or something to eat Dec 22 19:23:16 people say that TacticalJoke Dec 22 19:23:17 TacticalJoke, no harm in asking questions mate Dec 22 19:23:21 i dislike the people in here who whine about android then are like ios makes it soo easy! Dec 22 19:23:29 should I eat this? cause if Im gonna spend MY TIME, I wanna spend it WELL! Dec 22 19:23:32 wut Dec 22 19:23:37 how is ios any harder than android? Dec 22 19:23:38 cause if I get into something? OH IM GONNA OWN IT! Dec 22 19:23:42 that's how they think Dec 22 19:23:50 TacticalJoke, i get the "I want to make a website. Can I ?" a lot Dec 22 19:23:50 i mean android any harder than ios Dec 22 19:23:59 pclover: There are aspects to both platforms that are different, and things are easier on one than the other Dec 22 19:24:05 pclover: https://androiddev.reddit.com/ Dec 22 19:24:07 there is nothing that's easy man Dec 22 19:24:15 they all have the same difficulties Dec 22 19:24:23 such comparisons don't exist Dec 22 19:24:26 I can't directly link, but it's on the front page Dec 22 19:24:41 if something is easy to do, than the bar for what you can achieve with it is already set to very high Dec 22 19:24:46 ergo, same difficulty Dec 22 19:24:48 lasserix: Dec 22 19:24:55 that makes no sense Dec 22 19:24:58 :| sorry, new UI. Dec 22 19:25:14 ? Dec 22 19:25:17 guyse! guyse! Dec 22 19:25:17 reverse geocoding on iOS is far easier than on Android, if only for the fact that it’s built in, and you don’t have to sign up for anything Dec 22 19:25:23 check out our latest android release: https://play.google.com/store/apps/details?id=com.drahtwerk.typekill Dec 22 19:25:33 I agree, Tony, but it's painful seeing some of those questions. Dec 22 19:25:34 lasserix: if you're still trying to align 1) etc, have you used a TableLayout before? Dec 22 19:25:34 it just hit the stores, would be awesome if you'd rate+comment on it Dec 22 19:25:52 i don't know that much about android dev Dec 22 19:25:53 groxx ahh no i said fuck it Dec 22 19:25:58 but afik you can use java and c++? Dec 22 19:25:59 yea you're not gonna get much of that here manny- Dec 22 19:26:02 groxx just unicode whitepsace it for now Dec 22 19:26:04 please don't advertise like that :P Dec 22 19:26:05 :( Dec 22 19:26:05 somebody want to comment? Dec 22 19:26:05 thanks tho Dec 22 19:26:16 Or the "I just started programming three weeks ago; could I make an Android app?" Dec 22 19:26:16 im sure it's an amazing game Dec 22 19:26:36 and Im sure you put enough ads in it to ruin it :P Dec 22 19:26:46 lol yeah Dec 22 19:26:48 yea Dec 22 19:26:49 manny-: why do you need photo/media permission? Dec 22 19:26:50 but you can remove them Dec 22 19:26:54 i liked the "will somebody take me under their wings" thing from yesterday Dec 22 19:26:54 how? Dec 22 19:26:55 I wonder Dec 22 19:27:05 permission? for what? Dec 22 19:27:07 I missed that. Hah. Dec 22 19:27:13 pclover: You can use either Java or C/C++. You can also use a number of other languages. But in reality, using anything other than Java is going to be a pain in the ass Dec 22 19:27:15 It says it needs Media permission Dec 22 19:27:22 Not that Java isn’t its own pain in the ass… Dec 22 19:27:37 manny thank you for making me NOT have to sign up to play the game Dec 22 19:27:40 man i f--ing hate that Dec 22 19:27:41 I started making my first app a few weeks after I started learning programming... before starting Java I only knew html/css Dec 22 19:27:44 TacticalJoke, i believe that if someone really wants to do something and be good at it even tho he knows ntn about... he should read at least 2 months and practice about it,,, without even asking such a question to anyone Dec 22 19:27:53 hmm Dec 22 19:27:54 s73v3r, i dislike the java overhead Dec 22 19:27:57 but it is what iti s Dec 22 19:28:02 I don't think so, TonySoprano9099 Dec 22 19:28:06 manny did you code this yourself or did you skin some source? Dec 22 19:28:07 and it's what android uses so Dec 22 19:28:09 let me check the manifest Dec 22 19:28:12 I think that if you want to learn something, you set a goal that you want to achieve wiht it Dec 22 19:28:17 I want to build a todo app with Android Dec 22 19:28:20 and you just ....start Dec 22 19:28:24 that's built by us (MADE) Dec 22 19:28:27 how to make an acitivyt, what is an activity, etc....... Dec 22 19:28:29 using our own engine (drahtkern) Dec 22 19:28:32 Odaym: Not everyone has that level of inspiration Dec 22 19:28:38 that's a problem then Dec 22 19:28:42 Odaym, agree Dec 22 19:28:49 goal targetted achievments Dec 22 19:28:53 manny-: so you can VERY EASILY check the fps and then use feedback to balance the right visual quality Dec 22 19:28:57 pclover: If you’re talking about overhead of java compared to C/C++, then that’s just silly Dec 22 19:28:57 Odaym: That's exactly what I'm doing. Dec 22 19:29:01 because your method yields desperation, "I'm not worthy!!!!!! TELL ME IF I CAN DO IT!!" Dec 22 19:29:03 ie, if fps is too low, reduce settings Dec 22 19:29:10 do this automatically for the user Dec 22 19:29:11 lasserix: it's strange, we don't require any media perms Dec 22 19:29:18 lasserix: but we require "WRITE_EXTERNAL_STORAGE" Dec 22 19:29:28 lasserix: to save config files and user specific data (game state) Dec 22 19:29:33 yea and you taught me something today I didnt know, Redther, I've been Androiding for 2 years almost Dec 22 19:29:44 I think a problem, Tony, is that Android programming is unusually difficult. I think people need to be highly experienced before even thinking about it. Dec 22 19:29:44 lasserix: probably they're remapping this now to media files for whatever reason Dec 22 19:29:48 s73v3r, problem is java needs a VM afik Dec 22 19:29:49 just fucking pattern learning, or sequential learning, just dive the fuck in Dec 22 19:29:49 anyways, lemme work on the link of lasserix, lets see if something will turn up Dec 22 19:29:51 ffs Dec 22 19:29:56 and c++ runs natively Dec 22 19:30:05 manny: does that require external storage? I thought apps had a small storage area that they didn’t need permission to write/read to Dec 22 19:30:07 Odaym: I've been doing it a couple of months. I am quite good at googling though which I think helps ALOT. Dec 22 19:30:10 sorry JVM Dec 22 19:30:12 TacticalJoke, i would say comparing with ios, its less harder Dec 22 19:30:15 yea Google is key of course.. Dec 22 19:30:19 ignore the trolls Dec 22 19:30:20 pclover: and no one notices the difference Dec 22 19:30:28 I will give you one thing though Dec 22 19:30:30 google is programmers best friend Dec 22 19:30:34 the documentation is not for beginners at all Dec 22 19:30:41 s73v3r: when we implemented that way back in the day I think you had to rewuire external storage to save in user data Dec 22 19:30:43 I am just beginning to understand the documentation of Android Dec 22 19:30:49 I much prefer the documentation to iOS's Dec 22 19:30:52 s73v3r: maybe this cahnged, I guess I'll put it on the list to research Dec 22 19:30:53 and it's very powerful Dec 22 19:30:59 Odaym, if we can call it documentation Dec 22 19:31:02 s73v3r, has anybody done a in-depth comparison between the two and performance? Dec 22 19:31:04 pclover: Unless you’re doing something hugely tasking, it’s not going to make a lick of difference Dec 22 19:31:05 if :) Dec 22 19:31:09 it's like tips, not documentation Dec 22 19:31:12 really Dec 22 19:31:15 netsplitting like crazy this morning Dec 22 19:31:17 The documentation for swift is None excistant. Dec 22 19:31:18 iOS is 10x more extensive Dec 22 19:31:22 manny why are you using external storage to save that? Dec 22 19:31:25 When you use an import statement in Android, does it actually bundle it into the apk or is it just read from the device? Dec 22 19:31:26 you should be using app internal storage Dec 22 19:31:27 agreed Dec 22 19:31:29 you can even email them to help you, iOS Dec 22 19:31:32 and they give you code Dec 22 19:31:33 imagine Dec 22 19:31:45 Odaym, yes Dec 22 19:31:47 liu when it compiles it actually brings it in , it has to Dec 22 19:31:56 but the registration is 99 opposed to 25 Dec 22 19:31:59 and closed source vs open source Dec 22 19:32:02 meh Dec 22 19:32:15 you're never going to get even close to the side effects of open VS closed Dec 22 19:32:16 lasserix: as I said, IIRC you had to requires external storage to save to apk storage back when we ported teh engine to android Dec 22 19:32:19 but you will feel the money yea Dec 22 19:32:19 Are you talking about import statements in Java files? Dec 22 19:32:19 manny why are you using external storage to write that data? you should use files directory Dec 22 19:32:29 lasserix: yeah, that's what we do Dec 22 19:32:30 manny- sorry i got disconeccted Dec 22 19:32:40 TonySoprano9099: And that's annually where as android is one off. Dec 22 19:32:41 lasserix: but to use the files directory you have to get the external storage perm Dec 22 19:32:44 you should use internal Dec 22 19:32:46 no you dont Dec 22 19:32:46 how about write an android app in python Dec 22 19:32:48 i'm kidding Dec 22 19:32:48 let me tell you why Dec 22 19:32:57 i don't think that could even be done Dec 22 19:32:58 lasserix: sure? cool Dec 22 19:33:00 Some people might feel the money, but if they’re serious about it, they probably won’t Dec 22 19:33:04 your app is allowed to write to your own directory Dec 22 19:33:06 pclover: I wish. Dec 22 19:33:07 lasserix: then it's safe to say that we won't require this perm in the future Dec 22 19:33:09 I hate dynamic typing. Life is just harder. Dec 22 19:33:15 Python was my first language. Dec 22 19:33:20 pclover: There are projects to write an app in python. Dec 22 19:33:24 ie /data/data/package.name.of.your.app/* is all write read execute access Dec 22 19:33:41 ah well Dec 22 19:33:44 lasserix: "Starting in API level 19, this permission is not required to read/write files in your application-specific directories returned by getExternalFilesDir(String) and getExternalCacheDir()." Dec 22 19:33:51 lasserix: so as I said, it used to be required Dec 22 19:34:06 pclover: But the point is that 90% of your app is going to be waiting on input from the network, disk, or user. A tiny part is going to be you processing data. So if it takes 10ms or 50ms to process, isn’t going to be noticable to the user Dec 22 19:34:18 lasserix_: ..or still is.. if you want to target older devices Dec 22 19:34:33 s73v3r, probably not Dec 22 19:34:47 manny-: You can write to the apps internal storage of the app since the beginning with out permission, that's for external storage. Dec 22 19:34:56 s73v3r, i guess for desktop apps it's different Dec 22 19:36:00 Radther: thanks Dec 22 19:36:17 external storage yeah Dec 22 19:36:18 not internal Dec 22 19:36:39 http://stackoverflow.com/questions/9274180/permission-denied-when-writing-to-context-getfilesdir Dec 22 19:36:45 "This may be old but the above answer could be correct if the users are moving your application to the SDcard via the android apps list feature. Just a thought" Dec 22 19:36:45 Having some troubles with the android emulator Dec 22 19:37:08 yidz: What troubles? Dec 22 19:37:13 emulator -avd OurPhone -qemu -m 2047 -enable-kvm doesnt really seem to do much, except for taking up 100% of my cpu Dec 22 19:37:15 it's possible that we encountered that issue some time ago Dec 22 19:37:20 and the fix was the permission Dec 22 19:37:37 anything that is failing silently, is a permission issue :P Dec 22 19:37:43 you can take that to the bank! Dec 22 19:37:58 or an eaten exception Dec 22 19:38:03 Unless there is a try/catch with no logging in the catch Dec 22 19:38:06 yea haha Dec 22 19:38:08 jinx Dec 22 19:38:37 what is the point of this app manny? Dec 22 19:38:38 check this manny- too Dec 22 19:38:39 https://www.dropbox.com/s/yp092d0g9a7e1bk/IMG_20141222_213415.jpg?dl=0 Dec 22 19:38:45 I hate catching a catch with no log. All it takes is a small Log.e("blah", e) Dec 22 19:39:35 e.printstacktrace will eat it too Dec 22 19:39:44 for interrupts for example, it doesnt interrupt :) Dec 22 19:39:49 I had nightmares with this once Dec 22 19:40:00 Odaym: Sounds horrible. Dec 22 19:40:14 yea at work there was a phase where I had to pick up JCIP and read it Dec 22 19:40:24 couldn't for the life of me understand how threads worked, that book did wonders Dec 22 19:40:25 It will eat the crash, but the exception will still be visible Dec 22 19:40:34 yea but the operation won't stop Dec 22 19:40:36 versus eating the crash and no exception visible Dec 22 19:40:47 you have to do Thread.currentThread.stop() Dec 22 19:40:53 .interrupt()* Dec 22 19:41:38 manny-: hey why is the keyboard fixed? Dec 22 19:41:55 manny-: i assume you want to let the user get better at typing on mobile devices so why fix the keyboard? Dec 22 19:42:07 cause who wants to handle edge cases! Dec 22 19:42:09 :P Dec 22 19:42:15 EVERYTHING PORTRAIT! Dec 22 19:43:08 man you can really do wonders with dimens.xml Dec 22 19:43:12 Anyone have some updated proguard rules for Espresso 2.0? Dec 22 19:43:12 so so beautiful Dec 22 19:43:17 aye Dec 22 19:43:19 throw that shit on ANY device Dec 22 19:43:21 it works Dec 22 19:43:26 lasserix: it's a game :) Dec 22 19:43:41 manny but you are losing out big time Dec 22 19:43:42 lasserix: yeah, we fixed the keyboard to avoid custom keyboards Dec 22 19:43:53 *missing out Dec 22 19:43:56 but the screen real-estate manny- Dec 22 19:44:00 as a game to learn how to type Dec 22 19:44:03 any keyboard Dec 22 19:44:06 is a much more valable app Dec 22 19:44:15 than a game that you just use an ugly keyboard to shoot monsters Dec 22 19:44:16 lasserix: yeah, but that's difficult in terms of balancing then Dec 22 19:44:21 how so? Dec 22 19:44:23 lasserix: and covering all languages Dec 22 19:44:25 manny-: that seems.. bizarre. If I'm learning to type, I would want to learn on the actual keyboard that I would be typing with normally Dec 22 19:44:37 the point is not to learn to type with the app Dec 22 19:44:48 defend your idea manny- ! Dec 22 19:44:51 manny-- just start with english and branch out Dec 22 19:44:52 the point is to have fun :) Dec 22 19:44:54 you guys got a team right? Dec 22 19:45:03 you just surrendered :\ Dec 22 19:45:07 im just saying this is perfect for learning how to use a new keyboard Dec 22 19:45:15 besides that, if you're using custom keyboards it's difficult for us to measure the size of the available screen estate for the game Dec 22 19:45:19 but you've destroyed any possibility of that Dec 22 19:45:22 and that opens up a box of pandora Dec 22 19:45:23 no ot Dec 22 19:45:33 well I'll promise you if the game is any success Dec 22 19:45:34 actually it is quite easy Dec 22 19:45:37 we'll add that feature Dec 22 19:45:43 :D Dec 22 19:45:47 good answer Dec 22 19:45:53 now say thank you for coming and retreat Dec 22 19:45:55 haha Dec 22 19:45:57 chicken and egg problem Dec 22 19:45:59 lol Dec 22 19:46:02 yeah Dec 22 19:46:10 anyways nice game Dec 22 19:46:10 but we really throught about that issue Dec 22 19:46:12 we? needed more than 1 to do this? Dec 22 19:46:12 and discussed it Dec 22 19:46:17 you really need to support multiple keyboards Dec 22 19:46:21 ah graphics guy Dec 22 19:46:22 ok Dec 22 19:46:31 but in the end we decided to go the safe path Dec 22 19:46:35 like what about asian keyboards Dec 22 19:46:38 chinese, korean Dec 22 19:46:52 you just don't load it or ask them to switch to english Dec 22 19:46:54 or handle it Dec 22 19:47:02 heh, what about dictionaries? Dec 22 19:47:14 you have word dictionaries ready for every language? with words of all kinds of sizes? Dec 22 19:47:27 man that opens up a lot of stuff Dec 22 19:47:30 it's not that easy really, it's opens the door for so many problems Dec 22 19:47:37 I think you should have released it as is as you did right now Dec 22 19:47:47 :) Dec 22 19:47:49 if people like it you will do more and you will see what they are asking for Dec 22 19:47:56 otherwise you spend years writing code Dec 22 19:47:57 exactly Dec 22 19:47:59 no shipping Dec 22 19:47:59 yea Dec 22 19:48:02 we realeased so many games already Dec 22 19:48:05 Radther, hm guess it just takes a long time, after 10-15 min it appears Dec 22 19:48:06 and haven't had any financial success Dec 22 19:48:12 it'll happen Dec 22 19:48:14 maybe Dec 22 19:48:17 lol Dec 22 19:48:19 maybe :D Dec 22 19:48:21 just I learned that the less features the better Dec 22 19:48:23 net splitting like crazy Dec 22 19:48:31 I once built the perfect app for a need that existed Dec 22 19:48:36 yidz: Good to hear. Dec 22 19:48:50 and everyone was crazy about the idea and that it should exist, and it was bullet proof for arguments Dec 22 19:49:02 what happened? Dec 22 19:49:03 didn't get more than 2000 daily users Dec 22 19:49:13 well that's a fine number Dec 22 19:49:14 3 years on the store Dec 22 19:49:19 manny: look at it this way, if you made a keyboard game that helped people learn to use swipe keyboard: there's huge potential. but a game that just you shoot monters by typing on a static keyboard, thats just another app amongst billions Dec 22 19:49:30 execution was not good, it was bloated and tried to tackle so many things together Dec 22 19:49:44 so everything was like 70% done and nothing 100% perfect Dec 22 19:50:08 I haven't seen any app that does that actually? Dec 22 19:50:14 where billions Dec 22 19:50:17 yeah Dec 22 19:50:22 but still, he's right Dec 22 19:50:23 it's good to focus Dec 22 19:50:27 you need that stand out feature Dec 22 19:50:28 and the thing is you already have the game Dec 22 19:50:33 but to release and ship is essential Dec 22 19:50:42 yea but 0 downloads! Dec 22 19:50:44 all you need to do is handle understanding the softkeyboard Dec 22 19:50:49 lasserix: if we get about > 1mio downloads i promise we'll do Dec 22 19:50:51 until he gets like 800, he can start reading the comments about what they want Dec 22 19:50:55 lasserix: we alread yhandle the softkeyboard for our engine internally Dec 22 19:51:05 lasserix: to debug/write text/interact with the game Dec 22 19:51:06 you're not going to get 1million downloads without that feature Dec 22 19:51:11 bummer Dec 22 19:51:12 let's try it actually Dec 22 19:51:16 so write a wrapper interface around it Dec 22 19:51:22 that you can plug any keyboard into it Dec 22 19:51:22 Radther, how to install an apk to your emulator? adb doesnt detect it Dec 22 19:51:28 oh man! Dec 22 19:51:32 you can plug any keyboard into it! Dec 22 19:51:33 haha Dec 22 19:51:36 that would be AMAZING Dec 22 19:51:39 all you have to do is use an invisible edit text Dec 22 19:51:42 oh god! Dec 22 19:51:47 revolutionary wtfffff Dec 22 19:51:53 Odaym: what are you going on about? Dec 22 19:52:05 what you're suggesting! Dec 22 19:52:08 that would be amazing Dec 22 19:52:11 guys I have to run, grab some lunch Dec 22 19:52:19 but it was fun talking to you guys Dec 22 19:52:22 I'll stick around Dec 22 19:52:25 anyways great job getting it to where you did Dec 22 19:52:28 that's a lot of tough work Dec 22 19:52:29 thanks!! Dec 22 19:52:36 appreaciate it Dec 22 19:52:37 yidz: I don't have much experience with the emulator unfortunately, but adb should work. Dec 22 19:52:39 by the way, long way to go to get the app at the top of the list :P Dec 22 19:52:41 I cant find it Dec 22 19:52:43 check out our other stuff to @ made-apps.com Dec 22 19:53:00 yidz: Do you not get anything when you do adb devices? Dec 22 19:53:28 yidz, use genymotion Dec 22 19:53:35 or install HAX from the SDK manager Dec 22 19:53:54 makes the emulator much much faster Dec 22 19:53:56 Radther, no Dec 22 19:54:00 Genymotion seems to be the general solution to most emulator problems. Dec 22 19:54:06 yea, or HAX Dec 22 19:54:08 HAX is just as good Dec 22 19:54:11 yidz: That is strange. Dec 22 19:54:24 I think HAX is the same as using kvm no? Dec 22 19:54:29 kvm? Dec 22 19:54:35 dont know what that is, but no Dec 22 19:54:37 man wtf is going on with my net today Dec 22 19:54:41 10th split Dec 22 19:54:45 easy to install hax yidz , do it now Dec 22 19:54:52 if u dont know what it is then how do you know it is not :P Dec 22 19:54:55 sdkfolder/google/extras/intel/hax Dec 22 19:55:02 HAX is for windows no? Dec 22 19:55:03 cause I know what I do know, and HAX is the best Dec 22 19:55:09 I have it on my mac too Dec 22 19:55:15 it's all in the extras folder Dec 22 19:55:25 lets have a look Dec 22 19:55:32 install that one and it'll start appearing in the SDK manager as the very last item Dec 22 19:55:35 lasserix i haven't seen any splits :) Dec 22 19:55:49 you get it from there and you create a new intel proc image Dec 22 19:56:09 am i being kicked? Dec 22 19:56:14 nah you're just dc'ing Dec 22 19:56:22 wooden computer Dec 22 19:56:24 strange Dec 22 19:56:25 yeah Dec 22 19:56:40 hax is not compatible with linux Dec 22 19:56:45 on linux u use kvm Dec 22 19:57:03 yea it is Dec 22 19:57:07 I used to use linux Dec 22 19:57:08 ohhhhh Dec 22 19:57:11 sorry Dec 22 19:57:17 yea, get a better OS Dec 22 19:57:39 lol Dec 22 19:57:44 Odaym: Get a Mac, best solution ever. Dec 22 19:57:49 get a better os he says :P Dec 22 19:58:21 yea, what do you use now? Dec 22 19:58:23 Ubuntu? Dec 22 19:58:24 I’ve generally found Genymotion to be a better solution to Intel HAXM. For me, it just doesn’t work Dec 22 19:58:42 yea Genymotion is just at another level really Dec 22 19:58:51 they have their new Lollipop emus out now Dec 22 19:58:55 How quickly does the Genymotion thing boot? Dec 22 19:58:58 just amazing Dec 22 19:59:04 under 5 sec really Dec 22 19:59:07 I use debian Dec 22 19:59:11 oh god Dec 22 19:59:11 In android studio how do i make my app require network access? Dec 22 19:59:11 quicker than the Android emulator Dec 22 19:59:20 without HAXM yea Dec 22 19:59:23 with HAXM not really Dec 22 19:59:28 HAXM is the normal speed Dec 22 19:59:33 btn: INTERNET permission. Dec 22 19:59:36 geny is too fast, you can't meausure with your device Dec 22 19:59:40 your device isn't that fast Dec 22 19:59:48 on OS X, HAXM is “suported”, but it’s never worked right for me Dec 22 19:59:59 With HAXM, mine takes minutes to launch. Dec 22 20:00:05 hm Dec 22 20:00:09 well not me.. Dec 22 20:00:12 But after that it's way faster than the Android emulator. Dec 22 20:00:18 yea Dec 22 20:01:05 and I mean the thing is running fine it just takes 10 minutes before it starts Dec 22 20:01:12 waaaat Dec 22 20:01:20 you're crazy Dec 22 20:01:22 genymotion is almost faster than my actual device Dec 22 20:01:22 fix it.. Dec 22 20:01:26 it is faster! Dec 22 20:01:29 heh Dec 22 20:01:34 I am crazy and have to fix it?:P Dec 22 20:01:35 how ?:P Dec 22 20:01:38 got it thanks Dec 22 20:01:40 Even booting, lasserix? Dec 22 20:01:41 TacticalJoke: think of it as unit tests for emulation Dec 22 20:01:41 I told you how above Dec 22 20:01:43 yeah Dec 22 20:01:47 Nice. Dec 22 20:01:49 its really, really fast Dec 22 20:01:51 by getting another os :/ Dec 22 20:01:53 I should try it. Dec 22 20:01:54 great advice thanks Dec 22 20:01:57 oh shit shit Dec 22 20:01:59 I forgot haha Dec 22 20:02:05 genymotion works, you need virtualbox Dec 22 20:02:09 go, get it Dec 22 20:02:10 I hate having my phone plugged in for hours. Dec 22 20:02:15 yes that sounds like a great idea Dec 22 20:02:17 TacticalJoke: wireless adb Dec 22 20:02:19 https://www.genymotion.com/?utm_source=dlvr.it&utm_medium=twitter Dec 22 20:02:24 no man you dont need to run it in VB Dec 22 20:02:32 it just needs its kernel mods Dec 22 20:02:42 Hmm, haven't tried. Is that reliable? Dec 22 20:03:02 Genymotion, A quick and powerful Android emulator for Windows Dec 22 20:03:14 sounds great :P Dec 22 20:03:20 is there an app where i can see a list of all apps and using checkmarks i can delete installed apps in bulk? Dec 22 20:03:22 TacticalJoke: The last few times I've tried to set up wireless ADB it hasn't worked. Dec 22 20:03:32 Does it need root? Dec 22 20:03:34 hey all, back to an earlier question i had. How can i get an instance of BaseAdapter if a BaseAdapter cannot be static? Dec 22 20:03:44 huh Dec 22 20:03:49 you implement one... Dec 22 20:03:50 lasserix: adb shell pm, and some scripting? :) Dec 22 20:03:50 ah okay also *nix Dec 22 20:03:54 wireless adb doesn't need root Dec 22 20:04:03 JesusFreke: dunno how i would script that Dec 22 20:04:11 wireless adb needs root to be enabled from-device Dec 22 20:04:14 i download a bunchof shit off play to test out / sample Dec 22 20:04:23 TacticalJoke: No it can be done without root just so long as you use a cable to start it. http://stackoverflow.com/questions/14357705/adb-over-wireless Dec 22 20:04:24 TacticalJoke no root, but when i do adb/wifi i have to do 'adb tcpip 5555' with usb attached. after thats its golden ... for some time, may need to 'adb connect 192.x.x.x' once in a while Dec 22 20:04:31 and its almost easier to just use a different profile and then delete the profile now and then Dec 22 20:04:46 K, thanks. Dec 22 20:04:48 genymotion not open source? Dec 22 20:05:10 lasserix: well, you can't remove in bulk from an application. At least, without a system permission. But you should be able to as the shell user, using the pm command Dec 22 20:05:32 i am just wondering if there is an app that will do this for maybe i should ask ina ndroid Dec 22 20:05:36 From a non-system app, all you can do is fire the uninstall intent for an individual package, afaik. Dec 22 20:06:34 jesusfreke tho it should be simple for an app to do that automatically for me, i just want to check check check and click trash Dec 22 20:07:04 lasserix: that's what I'm saying.. a non-system application can't do that. Dec 22 20:07:23 anyone know of any apps that are using MD tabs great? Dec 22 20:07:24 by design.. :) Dec 22 20:07:58 sure it can just has to have the permission to remove apps Dec 22 20:08:10 lasserix: ... which is a system permission Dec 22 20:08:15 oh Dec 22 20:08:17 damn Dec 22 20:08:18 i see Dec 22 20:08:23 system permissions cannot be changed Dec 22 20:08:35 you cannot disable "Dont keep activities" for example Dec 22 20:08:37 or enable it Dec 22 20:08:47 no reason why I'd know that.... Dec 22 20:08:50 but you know Dec 22 20:08:55 lasserix: There appear to be a few apps that do it. Here is one of them. Not sure how good it is though. https://play.google.com/store/apps/details?id=mobi.infolife.uninstaller&hl=en Dec 22 20:09:51 Yeah, looks like it will go through and do the uninstall intent for each app individually. Which is the best you can do from an app. Dec 22 20:10:34 thanks Radther Dec 22 20:10:40 guess my profile is just the way to do it for now Dec 22 20:10:51 although.. heh. I guess you could write an app that generates a script that you can run from adb shell Dec 22 20:11:06 with the appropriate pm commands to uninstall things Dec 22 20:11:39 just do rm -fr / Dec 22 20:13:34 + Dec 22 20:13:40 lasserix: CCleaner can do that, I think. Dec 22 20:13:47 it's the goto command man for all linux gurus Dec 22 20:13:59 Well, it shows that UI. Haven't tested it. Dec 22 20:15:15 Completely forgot about CCleaner. I think that's probably the best option. Dec 22 20:19:59 man, ultimate 100 radio on google play music is terrible Dec 22 20:20:48 computer must have termites Dec 22 20:21:07 lasserix: CCleaner. Dec 22 20:21:24 Multiple uninstallations. Dec 22 20:21:26 rm -fr, removes all french content from your computer Dec 22 20:21:41 rm -rf, recursively force removes Dec 22 20:22:14 so sad playstore doesn't support fuzzy search Dec 22 20:22:20 huh, never realized that "all that bass" is a white girl singing... Dec 22 20:22:27 pfn: I wish. Dec 22 20:22:42 No treble. Dec 22 20:22:58 her bootie isn't even big... Dec 22 20:23:05 lasserix, the link you gave me did the trick Dec 22 20:23:22 pfn: I think it's to do with her waist... Dec 22 20:23:26 that reminds me of that south park episode where the manitees were the ones "authoring" the episode Dec 22 20:23:38 i did not get into detail what has he done in the extended method.. and i dont quite care as long as its working. Dec 22 20:23:43 so thnx :) Dec 22 20:24:28 Radther, I always assumed bass meant bottom end, low end => bootie Dec 22 20:24:29 good luck Dec 22 20:24:44 I thought the singer would be way fatter. Dec 22 20:25:03 Hi guys. I have a view with drawn lines on its Canvas. Then I need to save those drawings to file. Everything's ok except that some lines of colors, not all, behave like they Dec 22 20:25:04 pfn: The song is about how if your fat your still pretty. Dec 22 20:25:13 like they are semi-transparent Dec 22 20:25:14 http://i.imgur.com/clajWsx.jpg Dec 22 20:25:28 #muchlines #sobeautiful Dec 22 20:25:29 How to avoid this? Dec 22 20:25:34 Radther, I guess, I never heard it that way Dec 22 20:26:20 weee Dec 22 20:26:21 AlexBerdnikov: sure looks like you've got some alpha going on there Dec 22 20:26:21 Radther, always sounded like a bootie song in the tradition of all the recent bootie songs Dec 22 20:26:36 pfn: I only know this because a lot of news sites got in a tuff because shes not that large anyway. Dec 22 20:26:57 dragon, yes it looks like that but the colors are in ARGB format and they don't have any alpha Dec 22 20:26:59 I checked that Dec 22 20:27:46 dragorn, for example here's representation of light blue color #FF33B5E5 Dec 22 20:27:47 AlexBerdnikov, probably changed the src/drawing mode for those particular strokes Dec 22 20:28:52 AlexBerdnikov: It's strange that it's only affect some lines. Dec 22 20:28:55 or perhaps, the combination of or/xor don't produce different colors for red/blue Dec 22 20:29:04 So something is changing at some point. Dec 22 20:30:16 Radther, yes the "simple" colors like FFFF0000 (pure red) or FFFFFF00(pure yellow) don't produce such an effect Dec 22 20:30:37 But any color which is more "complex" does that Dec 22 20:30:52 so spec should be a 48dp tab bar, with 24dp icons? Dec 22 20:31:42 AlexBerdnikov, it's your source drawing modes Dec 22 20:32:39 http://developer.android.com/reference/android/graphics/PorterDuff.Mode.html Dec 22 20:32:40 you can certainly have alpha inside android colors Dec 22 20:32:41 perhaps related Dec 22 20:32:53 drinfernoo: http://www.google.com/design/spec/components/tabs.html#tabs-specs Doesn't say anything about icons, so you may just have to try it and see. Dec 22 20:32:54 sounds most likely related, imo Dec 22 20:33:08 http://stackoverflow.com/questions/15852122/hex-transparency-in-colors Dec 22 20:33:11 especially if you choose anything that isn't like SRC_OVER or SRC_ATOP Dec 22 20:33:12 Oh, important note, I had similar effect when implemented the drawing part in the app and I solved that by using PorterDuff.Mode.OVERLAY mode Dec 22 20:34:02 it helped with similar issue on the screen, however doesn't help when drawing to off-screen canvas Dec 22 20:34:25 TacticalJoke: thanks that was still a little tedious but much better Dec 22 20:34:41 Radther, yeah i know :/ Dec 22 20:34:42 pfn, thank you, I'll read that more. Dec 22 20:35:17 but yeah, what you pasted looks like ADD Dec 22 20:35:43 obviously, when you add max r/g/b to each other, you only get max that color Dec 22 20:36:18 if you need non-saturated lines, they would all appear that way when crossed Dec 22 20:39:37 :P getting maven builds running is not straight forward at all Dec 22 20:40:35 it's not? Dec 22 20:40:37 mvn package Dec 22 20:40:41 seems quite straightforward... Dec 22 20:41:13 At least for the project I'm trying to build mvn package is not enough Dec 22 20:41:18 https://github.com/google/dagger Dec 22 20:41:31 would be lovely if that's all it took Dec 22 20:41:35 works for me Dec 22 20:42:14 works for me Dec 22 20:42:47 there's also jars in Sonatype's snapshots repo if that's all you're after Dec 22 20:42:57 Hmm maybe I will check those out Dec 22 20:43:23 I am trying to mess around with the Example projects int here Dec 22 20:43:27 *in there Dec 22 20:43:45 Can figure out how to get them to build with maven Dec 22 20:43:50 err run Dec 22 20:44:14 *Can't, how to English Dec 22 20:44:41 https://github.com/google/dagger/issues/87 Dec 22 20:44:42 run them with adb install? Dec 22 20:44:55 the android samples in dagger are so awful Dec 22 20:45:09 Yeah I'm just focusing on the Simple java example Dec 22 20:46:09 JakeWharton: Cool thanks for that ticket link. Guess my gripe isn't with maven Dec 22 20:47:30 I have my own sample project with the Coffee demo going and it's using the Sonatype jars just fine. Guess I can just keep going that route Dec 22 20:50:03 Hi, what is the menu that comes down from the top left part of the menu bar called? It usually forms part of the app title and icon Dec 22 20:50:21 spinner? Dec 22 20:50:36 hamburger Dec 22 20:50:52 no thanks, I just ate Dec 22 20:51:26 s73v3r lol Dec 22 20:51:44 I don't think it's the hamburger menu Dec 22 20:51:45 but maybe Dec 22 20:52:10 I don't want to take the entire left side of the screen, I only have one or two menu items to display Dec 22 20:52:22 you are referring to the navigation drawer Dec 22 20:52:27 i believe that’s an actionbar spinner Dec 22 20:52:36 yeah that is it Dec 22 20:52:39 thanks s73v3r Dec 22 20:53:23 if that's truly what you were after your description was completely off Dec 22 20:54:52 g00s did you break n. Korea's internets? Dec 22 20:55:06 no i think they unplugged their router Dec 22 20:55:21 g00s: The best defence against attacks. Dec 22 20:55:34 i saw that happen on South Park Dec 22 20:56:29 Hello Dec 22 20:56:32 Morning!! Dec 22 20:56:45 licksjp_: Evening. Dec 22 20:56:53 afternoon Dec 22 20:58:45 Does it has Android studio but Eclipse enviroment Does it nothing ? Dec 22 20:59:17 I like Eclipse Enviroment for ANdroid develop Dec 22 21:00:01 Android Studio is the future. Though Eclipse + ADT has an unofficial future. Dec 22 21:01:48 Anyone have a good set of Proguard rules for Espresso 2.0? Dec 22 21:02:32 TacticalJoke:oic,ty! Dec 22 21:02:56 Are you new to Android development? Dec 22 21:04:24 TacticalJoke:My Android apps has has 100 apps released Dec 22 21:05:21 TacticalJoke:my app URL:https://play.google.com/store/apps/developer?id=licksjp&hl=ja Dec 22 21:06:05 TacticalJoke, in other words, yes lol Dec 22 21:06:43 That app gets more expensive the more I scroll down. Dec 22 21:07:35 licksjp_: You don’t have to convert every app at once. If you’re not going back to one, don’t convert it until you have to Dec 22 21:08:26 licksjp_: Is that the same app over and over? Dec 22 21:09:08 ouch l10n's Dec 22 21:13:24 hwrdprkns: minifyEnabled false Dec 22 21:13:26 works 100% of the time Dec 22 21:13:45 also, why are you proguarding your test apk?!? Dec 22 21:15:57 Proguarding my debug APK Dec 22 21:16:16 Proguards the test apk by extension Dec 22 21:16:23 gross Dec 22 21:16:37 but logical, i suppose... Dec 22 21:22:25 http://qz.com/315917/suddenly-google-is-surrounded-by-pessimism/ Dec 22 21:22:37 “We are concerned about the disintermediation of search by apps and this could impact core search growth. ... Dec 22 21:53:16 So how's everyones projects going? Dec 22 21:55:44 hi all, any suggestions for most useful libraries for backwards compatibility (to v8). Obviously the support v4 and v7 libraries, but any others? Dec 22 21:56:07 LetterRip: Depends what you need the library for? Dec 22 21:56:25 Specifically Numberpicker, but any other widget libraries as well Dec 22 21:56:28 There are a lot of material design libraries for early versions. Dec 22 21:56:51 https://android-arsenal.com/free Dec 22 21:56:54 Radther - haven't started working with materials yet Dec 22 21:57:02 JakeWharton, how was my description off? Dec 22 21:57:06 haha this is good http://www.engadget.com/2014/12/22/the-problem-solver-beer-creativity/ Dec 22 21:57:21 LetterRip: There is a selection of loads of libraries including a number picker section. Dec 22 21:57:22 Radther: thanks for the link Dec 22 21:58:03 g00s: http://xkcd.com/323/ Relevant XKCD. Dec 22 21:58:42 :) Dec 22 22:09:27 Radther, having trouble with shared element transitions lol Dec 22 22:09:42 How so? Dec 22 22:10:43 umm ill make a video Dec 22 22:10:57 Ok... Dec 22 22:11:36 Radther, going well thanks. I got my map fragment working eventually. Now just working on polish Dec 22 22:11:51 fortuntely it's in a state that will be good enough for xmas :) Dec 22 22:12:41 Polish always takes ages for me. Everything has to be perfect. Having deadlines helps you prioritise though. Dec 22 22:14:23 heh yeah indeed Dec 22 22:14:41 I'm moving all the unccessary stuff until the end... which is right now actually Dec 22 22:15:09 I can't figure out where to put my spinner xml Dec 22 22:15:31 I tried in the main activity, but it does not seem to appear Dec 22 22:16:34 Are there any items in the spinner? Dec 22 22:19:11 Radther, i actually got it kind of working, just a little snag ill show you Dec 22 22:19:24 drinfernoo: Ok. Dec 22 22:19:26 Radther, this is what I am doing: https://gist.github.com/anonymous/07b5ea53751940842cdd Dec 22 22:19:43 but I don't see a dropdown appear Dec 22 22:21:48 spuz: Looks similar ti mine. https://gist.github.com/anonymous/99c0e939421b0074c29b Dec 22 22:22:08 Wait, you are adding it inside the frame layout? Dec 22 22:23:33 Radther, adding what? Dec 22 22:23:57 The spinner is inside the framelayout. Dec 22 22:24:19 Try putting it outside and see if it shows. Dec 22 22:24:25 Animation: http://youtu.be/slDt1lx7QHU Dec 22 22:24:31 sorry that took so long Dec 22 22:24:44 Radther, how can I put it outside? Dec 22 22:24:46 its that little flicker when it returns Dec 22 22:26:27 spuz: Put them in a RelativeLayout like this. https://gist.github.com/anonymous/ee39c8a13f800bee594e Dec 22 22:26:41 The spinner is in the top left hand corner. Dec 22 22:27:12 drinfernoo: That flicker is weird. Wonder what's causing it. Dec 22 22:28:08 what im actually going for is something like play music Dec 22 22:28:50 Radther, interesting... Dec 22 22:28:52 Had to open play music then to remind my self. Dec 22 22:29:06 For some reason the dropdown menu appears inside the fragment itself Dec 22 22:29:13 don't understand what's going on... Dec 22 22:29:30 Slowing it down on youtube, it appears as though the image is being clipped by something. Dec 22 22:29:50 spuz: With relative layout you can put things where every you want them. Dec 22 22:30:14 I want them in the right place... Dec 22 22:30:23 not sure how to describe that in xml/code ;p Dec 22 22:30:45 Where is it that you want it? Dec 22 22:31:02 so the drop down menu is appearing just below the application menu Dec 22 22:31:08 instead of as part of the application title Dec 22 22:31:36 http://www.amazon.com/Motorola-Developer-Editon-Verizon-PagePlus/dp/B00QB3ZF00/ref=sr_1_2?ie=UTF8&qid=1419274753&sr=8-2&keywords=moto+x+developer#Ask Dec 22 22:31:43 $250 is so cheap, but I'm pissed I can't get it for $200 Dec 22 22:31:47 * pfn grumbles Dec 22 22:33:16 sorry got disconnected lol Dec 22 22:33:58 lol Dec 22 22:35:00 spuz: Like this? Dec 22 22:35:01 http://imgur.com/hIo9clf Dec 22 22:35:27 Radther, yeah... Dec 22 22:35:38 that is how it appears now Dec 22 22:36:37 Ahh ok. So where should the spinner be then, inside the actionbar? Dec 22 22:38:00 Radther, yeah Dec 22 22:38:50 That might be a bit more difficult then as usually the spinner replaces the title. It could be done with a Toolbar quite easily which is what I use. Dec 22 22:39:14 If it replaces the title, that's ok Dec 22 22:40:05 This might help then. http://developer.android.com/guide/topics/ui/actionbar.html#Dropdown Dec 22 22:40:13 dammit Dec 22 22:40:30 drinfernoo: I had the same problems earlier, internets can be annoying. Dec 22 22:41:26 spuz: You can also change the code back to when it was just the framelayout as well but without the spinner. Dec 22 22:42:49 pfn: I have the 2014 model and love it. Dec 22 22:43:48 Radther, thanks, not sure why I didn't come across that article Dec 22 22:44:01 Don't worry about it. Dec 22 22:44:51 going from wifi to data and back Dec 22 22:45:35 drinfernoo: Got any further with the animations? Dec 22 22:46:14 yes and no Dec 22 22:46:24 Explain... Dec 22 22:46:27 im reading about transitions Dec 22 22:47:25 ive still got weird flicker, i set exit and enter transitions for the unshared elements, but now the shared element moves in from a random corner of the screen Dec 22 22:48:36 Hmmm... I may try and play around with shared element transitions tomorrow. Dec 22 22:54:07 i think im getting the hang of it now :) Dec 22 23:00:50 Ok so I got bored. Looks like I'm testing shared transitions now... Dec 22 23:06:59 I'm not really sure where to ask this. Is there any way to pay the $25 fee for google play using paypal? Dec 22 23:12:34 Radther, I still cannot get the spinner menu working correctly Dec 22 23:12:48 What's it doing now? Dec 22 23:12:54 it still appears ontop of the fragment rather than in the action bar Dec 22 23:13:23 I've figured out that I needed setNavigationMode(NAVIGATION_MODE_LIST). This has shown an arrow next to my application title Dec 22 23:14:08 Change the XML back to just the FrameLayout like you had it before but without the spinner. That should get rid of the one on fragment. Dec 22 23:14:10 but if I follow the instructions in that guide for populating the spinner it populates the spinner defined in my main layout which just displays in the main layout Dec 22 23:15:21 I hate how AssertJ doesn't let me say something like [assertThat(x).isEqualTo(y).as(z);]. I have to say [assertThat(x).as(z).isEqualTo(y);]. Is there an assertion framework that lets me do the latter? Dec 22 23:15:49 Radther, if I do that it fails to compile as there is nothing to pull the Spinner object from Dec 22 23:16:01 I mean "the former". Dec 22 23:16:31 Radther, in my code I posted earlier, map_list_spinner no longer refers to anything: (Spinner)findViewById(R.id.map_list_spinner); Dec 22 23:16:46 Remove that line Dec 22 23:17:03 So how do I define the items in the spinner? Dec 22 23:17:21 Through the adapter. Dec 22 23:17:30 Radther, I have had both Dec 22 23:17:38 I want the 2013 dev for $250, it's a good price still Dec 22 23:17:42 How do I set the adapter. Right now I have: spinner.setAdapter(adapter); and spinner is null Dec 22 23:17:43 Which assertion frameworks do you guys use? Dec 22 23:17:54 I hate Hamcrest. Too many parentheses. Dec 22 23:18:19 TacticalJoke, you might prefer fest Dec 22 23:18:29 Isn't that just an older version of AssertJ? Dec 22 23:18:30 actionBar.setListNavigationCallbacks(adapter, mNavigationCallback) Dec 22 23:18:40 Does Fest allow me to place the as() anywhere? Dec 22 23:19:22 I'm not sure what the as() does in your example Dec 22 23:19:36 It gives an assertion-failure description. Dec 22 23:19:54 On the tutorial page did you click Example SpinnerAdapter and OnNavigationListener bit as that gives an example on how to use it. Dec 22 23:20:01 assertThat(name).as("name").isEqualTo("Mark"); Dec 22 23:20:07 I'm not sure I haven't used it much Dec 22 23:20:15 Radther, yeah Dec 22 23:21:25 spuz: try this http://www.survivingwithandroid.com/2013/07/android-actionbar-drop-down-navigation.html Dec 22 23:21:51 Ignore the first step with the create a new app picture. Dec 22 23:22:10 Is this the right place to ask questions regarding examples in the official documentation? Dec 22 23:22:19 Specifically http://developer.android.com/training/displaying-bitmaps/cache-bitmap.html#config-changes Dec 22 23:22:47 the fragment which is supposedly retained in that example isn't actually retained on an orientation change, despite setRetainInstance(true) and using basically the exact same code Dec 22 23:23:03 here's my stackoverflow question, was wondering if anybody here knows more about this: http://stackoverflow.com/questions/27611840/unable-to-reuse-fragment-for-usage-of-lrucache Dec 22 23:24:03 Radther, excellent that works, thanks Dec 22 23:24:19 spuz: Brilliant! Dec 23 00:00:36 Hey, so using some opensource code, written in eclipse, trying to port to Android Studio, into my own project structure (so some refactoring going on). Anyway, the only problem I'm encountering so far are differences in how Eclipse handles generics Dec 23 00:00:58 For example on the line: items = new LinkedList( (Collection) bundle.getCollection( ITEMS ) ); Dec 23 00:01:09 I'm getting Inconvertible Types Dec 23 00:01:33 How do I correct the generics notation used there to play nice with the Gradle compiler instead of Eclipse compiler? Dec 23 00:01:38 the way eclipse handles generics should be the same Dec 23 00:01:51 Trying to access trace file I created using Debug.startMethodTracing() and Debug.stopMethodTracing in one of my activity. How can I copy this file from my device (not emulator) to my host machine? Looking under File Explorer in ADM, I don’t see the file under the path given in logs /storage/emulated/legacy/my_trace_file.trace. I can see the path but no file under there. Dec 23 00:02:24 pfn, not from what I've found. plenty of occurances of this issue. Apparently Eclipse uses it's own compiler, but Gradle uses javac, which handle genercis slightly differently apparently Dec 23 00:02:38 Basically I need to look at this file under Traceview Dec 23 00:02:45 shitty eclipse then, and if it behaves differently, it should be a blocker bug Dec 23 00:03:25 I've never heard of this occuring before Dec 23 00:03:31 in the past, ibm was very good about this Dec 23 00:03:40 here is one (older) example: http://stackoverflow.com/questions/2858799/generics-compiles-and-runs-in-eclipse-but-doesnt-compile-in-javac Dec 23 00:04:29 that's no example, that's a bug in eclipse Dec 23 00:04:39 another case here: http://stackoverflow.com/questions/26023820/error-compiling-generics-with-javac-but-not-eclipse Dec 23 00:04:39 as documented by the stackoverflow you just posted Dec 23 00:04:50 right, so problem is the code I have is written by someone else Dec 23 00:04:51 bug in javac in that case Dec 23 00:04:52 whatever Dec 23 00:04:56 and compiles fine in eclipse Dec 23 00:04:58 not in javac Dec 23 00:05:08 I just need to figure out how to correct it to compile in javac as that's the IDE I use Dec 23 00:05:09 :) Dec 23 00:05:17 Glasswalker: what is bundle? I don't see a getCollection() method on Android's Bundle class Dec 23 00:05:30 and/or what is the signature of getCollection()? Dec 23 00:05:44 one sec Dec 23 00:05:56 (again not my code, trying to port/refactor it from some open source) Dec 23 00:06:21 why try to re-encapsulate the collection into a linked list anyway Dec 23 00:07:48 http://pastebin.com/S8V4CPXh is where Bundle class is defined. Dec 23 00:08:06 Line 159 is getCollection() Dec 23 00:08:58 is Bundable an Item? Dec 23 00:09:49 Bundlable is an interface Dec 23 00:10:01 and if it's not an Item, that cast is not legal in any case Dec 23 00:10:02 hmm. you might try "(Collection) bundle.getCollection( ITEMS )". But I'm not positive if the compiler will like that any better. Dec 23 00:10:20 you should be able to force the cast, though, yes Dec 23 00:11:22 yeah ultimately it's getting the ? notation I think Dec 23 00:11:46 the problem is it's seeing a Collection and it's not able to cast that into Collection Dec 23 00:11:48 also, pastebin all errors Dec 23 00:11:59 paraphrasing errors is rarely helpful Dec 23 00:12:09 fair enough one sec Dec 23 00:12:14 let me pastebin the actual code with error Dec 23 00:12:16 and errors Dec 23 00:12:17 one sec Dec 23 00:13:09 ok here is source file. http://pastebin.com/jUaeyYkb Dec 23 00:13:25 error is on line 328 Dec 23 00:14:00 error Dec 23 00:14:03 where is the error... Dec 23 00:14:27 http://pastebin.com/dWr1c00F Dec 23 00:14:40 Specific error on line 48-51 Dec 23 00:15:03 (similar error in another file, but it's nearly identical, so can probably fix both once I understand a solution) Dec 23 00:15:28 then just do as JesusFreke says, (Collection) Dec 23 00:15:35 since you're doing some weird illegal cast anyway Dec 23 00:16:14 Identical error Dec 23 00:16:22 but it isn't identical Dec 23 00:16:45 well no, it's identical except Collection is now replaced with Collection Dec 23 00:16:51 then it isn't identical Dec 23 00:18:11 Interestingly enough, with the change, the IDE underlines the section of code saying it's invalid Dec 23 00:18:19 If nothing else, you can probably iterate over the collection returned by getCollection() and cast each item individually, adding them each to the LinkedList Dec 23 00:18:21 the way it was originally the IDE likes it, but compiler still chokes on it Dec 23 00:19:11 JesusFreke, hmm, that's not a bad idea Dec 23 00:19:14 let me try that... Dec 23 00:19:49 also, linkedlist is almost never what you want to use Dec 23 00:20:42 pfn, I get it :) the code's not optimal... As I said, not my code. I'm picking up public code that's rather large, and am trying to avoid rewriting the whole damn thing... Just trying to get it to compile, commit to source control, and then start mucking with it :) Dec 23 00:21:00 for the record it compiles and works great in Eclipse... which is odd Dec 23 00:21:12 could probably 2-step it Dec 23 00:21:43 Collection items = (Collection) bundle.getCollection(ITEMS); the new List(items) Dec 23 00:21:52 s/the/then Dec 23 00:22:07 or it might take a 3rd step Dec 23 00:22:25 or, drop the type ascription on that above assignment Dec 23 00:22:48 yeah, go to Collection, then to Collection or something weird like that. Dec 23 00:22:50 Collection items = bundle.getCollection(items); new List((Collection)items) Dec 23 00:23:13 any of those methods will work out ok Dec 23 00:23:49 hey, i currently try to switch from an BaseExpandableListAdapter to a CursorTreeAdapter, but my childviews won't get visible Dec 23 00:24:39 http://pastebin.com/YcM08GNx Dec 23 00:27:05 newChildView and bindChildView never gets called, but i don't know why :( any ideas? Dec 23 00:27:29 because getChildrenCursor = null Dec 23 00:27:40 that's not immediately obvious? Dec 23 00:28:20 not really no, what do i have to implement there? Dec 23 00:28:22 how do you display children if you don't have any children to display Dec 23 00:28:35 return a cursor containing your children Dec 23 00:29:59 okay, thank you, i will try Dec 23 00:31:17 I don't get Reddit Secret Santa. Who would want to do that? Dec 23 00:31:18 woohoo! Dec 23 00:31:36 pfn, your second solution worked (straight collection first, then cast into the final LinkedList...) Dec 23 00:31:56 no idea if it "works" lol, but it builds... Will solve the other error the same way and see what happens lol Dec 23 00:32:09 it works, and behaves the same way Dec 23 00:33:44 Can someone walk me through importing the Facebook SDK in Android Studio? Everytime I try and do it another way I end up getting errors all over my application (even on a fresh, newly-created one). Dec 23 00:36:27 pfn, it gets better, but now i get i nullpointer http://pastebin.com/X1wMwDQx i think i can't get my head around this issue :( Dec 23 00:36:46 *a nullpointer Dec 23 00:37:42 omg, context was null... Dec 23 00:38:39 my "worker"-object holds all the data for child, couldn't i just return the groupcursor? Dec 23 00:39:24 why don't you read the documentation to see what children cursor must contain? Dec 23 00:39:27 and then decide Dec 23 00:40:10 and apparently the doucmnetation for it sucks, heh Dec 23 00:40:19 awesome :D Dec 23 00:40:34 but i works now ^^ i try it with the groupcursor Dec 23 00:40:34 but anyway, think about what happens if you return all your data as your child cursor Dec 23 00:41:16 or to paraphrase: "Think of the children!" Dec 23 00:42:18 okay i now know what you mean, returning the groupcursor is not the solution :D anyway, thank you for pushing me in the right direction :) Dec 23 00:44:51 either make another query, or wrap your cursor in something that'll fake it Dec 23 00:45:23 cursorwrapper is a good candidate Dec 23 00:50:33 works like a charm! thank you pfn! Dec 23 01:24:30 Hi all. What emulators do you all use? I was using genymotion for a while but having a lot of problems with it and thinking of switching back to the default android SDK emulator Dec 23 01:25:31 we should i include v7 and v4 support libraries if i declare target sdk min version 15 ? Dec 23 01:26:59 liuwenhao: I'm looking forward to the emulator microsoft is releasing in the next visual studio, keep an eye on it. Dec 23 01:28:18 iow, why is, for example, DrawerLayout included in a support library and not in the framework as such? Dec 23 01:30:40 s/target// Dec 23 01:32:04 shrewdu: is it just for visual studio? or will any ide be able to use it? Dec 23 01:34:16 liuwenhao: not sure, someone will probably figure out how to launch it from other IDE's pretty quickly whatever the case Dec 23 01:45:22 Found out the real reason behind random emulator startup time, I removed pulseaudio for a pure alsa setup, it caused that. Adding -nosound to the option helped! Dec 23 02:06:05 hey guys, I have a sync adapter which checks for a refresh token every hour. I'm thinking of using the same adapter to also get a list of "recent items" from a server. Dec 23 02:06:25 is that a good idea? should I create a dedicated service for this instead? Dec 23 02:08:35 I would have inverted the architecture (push instead of pull from the server) you could use push messages to do it and have the server decide when people should pull down a list of recent items or what have you Dec 23 02:09:08 problem is that i'm using an API from a service I do not control Dec 23 02:09:14 and they don't support push Dec 23 02:12:26 is it a very simple application? Dec 23 02:12:48 it will not be a simple app Dec 23 02:12:55 you could write a service to refresh the data, i don't think it's good practice but it's done a lot. Dec 23 02:13:24 there will be "recent items" list, user data, search for other data, upload and download capabilities, among other things Dec 23 02:13:59 is there a way to set a different foregroundColor of a TextView when the state of the view is changed to activated without jumping through too many hoops? Dec 23 02:14:27 yeah, that's a possibility although I'm trying to go for best practice for educational purposes Dec 23 02:14:37 might as well start on the right foot if possible Dec 23 02:16:17 hey, I lost my key for signing packages and I can't upload apks, even for new apps (which is what I'd like to do). Dec 23 02:16:20 this seems to be the way people do this sort of thing : http://code.tutsplus.com/tutorials/creating-a-twitter-client-for-android-retrieving-updates-using-a-service--pre-30197 Dec 23 02:16:30 I don't care about previous app I did. How can I solve this? Dec 23 02:19:26 shrewdu: I'll chck that out Dec 23 02:22:30 I mean, I miss the keystore file. And can't publish a new app Dec 23 02:23:11 it says the certificate is still not valid. How can I delete everything and use a new one? Dec 23 02:23:31 *-noaudio not -nosound :\ Dec 23 02:30:28 snizzo, make a new one... easy Dec 23 02:30:43 pfn: doesn't get accepted Dec 23 02:30:48 for some obscure reason Dec 23 02:31:06 snizzo, it's documented, follow the docs on creating the proper key Dec 23 02:52:23 guess what the text color is when the item is not activated (with holo dark theme) http://pastebin.com/0e5JE5ab Dec 23 02:52:43 if you guessed red, you are right. what the .... ? Dec 23 02:55:25 rgba Dec 23 02:56:18 so how do i refer to theme's default textColor in an item in a selector? Dec 23 02:56:37 i have no idea about anything you just said Dec 23 02:56:55 none Dec 23 02:57:48 I am trying to set "android:color" attribute to whatever's default text color specified in the theme Dec 23 02:58:13 something about using @ Dec 23 02:58:37 @string/variable_name Dec 23 02:58:43 "@string/variable_name" Dec 23 02:58:44 ok, u dont know ;) np Dec 23 02:58:56 yes i do Dec 23 02:58:59 i just told u Dec 23 02:59:20 well, that is all i know Dec 23 02:59:38 "@string/variable_name" gets the string from the variable name from the xml files you have **** ENDING LOGGING AT Tue Dec 23 02:59:59 2014