**** BEGIN LOGGING AT Thu Jan 15 03:00:00 2015 Jan 15 03:00:04 JesusFreke: newlines Jan 15 03:00:04 maybe I'll have to drill a hole in my desk to give it a new mount point Jan 15 03:00:04 groxx: or. Jan 15 03:00:05 you ppl are mean i just havve to fuck aroudn with it Jan 15 03:00:16 Hey guys, I had thought I had found the way to do something, but it ended up being a bust. Jan 15 03:00:36 cool story. I feel ya bret Jan 15 03:00:47 Working on a live wallpaper and want the camera's x position to change when you scroll between home screen pages Jan 15 03:00:54 story of my day D: Jan 15 03:00:56 is onOffsetsChanged not the way to do that? Jan 15 03:01:20 * groxx lurks. never made a wallpaper. Jan 15 03:02:15 Google's not being of any help, either. Jan 15 03:02:25 I'm probably just not using the right words. Jan 15 03:03:48 BretHudson: called setOffsetNotificationsEnabled(true)? Jan 15 03:04:16 ah, default true. Jan 15 03:05:03 does it have to be larger than the screen, perhaps? Jan 15 03:06:09 The wallpaper? Jan 15 03:06:31 Android wouldn't know any different, I'm rendering it with OpenGLES Jan 15 03:06:57 groxx: Just realized the function's never called Jan 15 03:10:45 Anyone wants to work on Android project, I have $2,000 budget. PM me please. Jan 15 03:11:35 Interesting project and, high possibility of turning into something long-term. Jan 15 03:11:39 groxx: Got it working! Jan 15 03:15:40 Apparently my phone just doesn't support it, even though it's 4.4 Jan 15 03:15:45 BretHudson: cool, what was it? I'll probably have to learn it eventually :) Jan 15 03:15:49 My Nexus 7 (5.0) runs it just fine though Jan 15 03:16:04 aah. wonder if it has anything to do with the launcher? Jan 15 03:16:17 groxx: Maybe Jan 15 03:17:15 I thought it was something else I did but then I realized I had also switched devices, so I don't know what's going on. Jan 15 03:17:42 Verizon's default Android launcher just must not support it Jan 15 03:17:51 (default on my phone) Jan 15 03:18:32 BretHudson: no horizontal paging in the launcher maybe Jan 15 03:18:37 ? Jan 15 03:18:56 or they're just being a pain. Jan 15 03:19:05 Well the launcher allows for unlimited horizontal pages, so maybe the programmers got lazy and didn't want to allow for scrolling between them? Jan 15 03:19:10 it is Verizon after all. Jan 15 03:19:21 I don't know how the code is under the hood so I can't really say. Jan 15 03:19:30 But that'd be my assumption. \ Jan 15 03:19:35 BretHudson: yeah, me neither. thanks for the info though :) Jan 15 03:20:09 No problem! Jan 15 03:21:39 JesusFreke you can do this too right ? :) http://digg.com/video/this-guy-makes-unicycle-tricks-looks-like-a-breeze Jan 15 03:21:46 What's the kosher way to handle touch swipe ambiguity? Jan 15 03:21:54 knapper_tech: don't do it with bacon. Jan 15 03:22:13 already ate bacon today Jan 15 03:22:30 welp. no kosher ways for you. try harder tomorrow and you might end up with the halal way! Jan 15 03:22:34 is there an ambiguously named library that is not from a pig? Jan 15 03:23:37 ah, verizon - just what i expect from these guys http://digg.com/2015/h1-style-font-family-helvetica-neue-sans-serif-color-rgb-51-51-51-zombie-cookie-the-tracking-cookie-that-you-cant-kill-h1 Jan 15 03:23:54 that's a title! Jan 15 03:24:04 i don't need to be kosher but the app source needs to embody the true lord without being born from a virgin somehow involving the andriod ghost Jan 15 03:24:07 also digg? Jan 15 03:24:47 knapper_tech: yeah, that android ghost can be a real pain to kill if it gets into your shell Jan 15 03:24:50 guys, i dont have a libs folder Jan 15 03:24:51 what's the sanity preserving way of handling touch ambiguity in Android? I am bringing Rx java in for async network. Jan 15 03:24:52 in my project Jan 15 03:24:57 where would i create a libs folder in my project Jan 15 03:25:00 android studio Jan 15 03:25:08 knapper_tech: what kind of ambiguity? Jan 15 03:25:08 g00s: that page likes the number 2013 Jan 15 03:25:17 Example ambiguity is swipeable items in a list that is a child in a swipeable view Jan 15 03:25:54 groxx, in some cases swipe could logically be handled by three objects while contextually only once makes sense at a time. Jan 15 03:26:27 knapper_tech: I'm trying to resolve that too. let me know if you find anything :) Jan 15 03:26:28 how do I make the objects in a tree beholden to the contextual truth? Jan 15 03:26:50 I need an adapter/controller to hold the context info, でしょう? Jan 15 03:27:20 knapper_tech: last thing I did was add a "canscroll(x,y)" method, and scroll inner before outer. then when inner reaches an end, outer starts. Jan 15 03:27:52 groxx how do these two scrollable things coordinate? Jan 15 03:28:11 and what determines which object gets a stab at the touchMove event first? Jan 15 03:28:27 an interface defining canScroll. and yeah, that's part of the pain. Jan 15 03:28:51 knapper_tech: it's imperfect, I'm convinced there's a better way. Jan 15 03:28:56 Anyone have experience creating device owner app or Kiosk mode device? Have any luck doing the nfc thing? Jan 15 03:28:58 dunno what tho Jan 15 03:29:00 What in Android controls the order in which touch events are dispatched Jan 15 03:29:58 knapper_tech: parents can intercept, children can request they don't do so, but otherwise it's the first thing touched and it bubbles up, iirc Jan 15 03:30:31 groxx, "first" = visible? Jan 15 03:30:50 the leaf-view Jan 15 03:31:06 k Jan 15 03:31:14 top-most / whatever was touch-downed. Jan 15 03:32:03 knapper_tech: but I don't think I totally grok the touch input system. might not be completely accurate. Jan 15 03:32:24 k Jan 15 03:34:03 knapper_tech: otherwise I would think I would already have a better solution :) Jan 15 03:35:03 groxx I now have both projects sharing activities and layouts :) Jan 15 03:35:09 groxx thank you Jan 15 03:36:18 Is it possible to launch an intent that opens an activity and then hold that activity inside a swipeable container (view?)? Jan 15 03:36:37 some of it is that it seems like the touch input system lacks enough context. like it needs another mode, not just down/done/cancel/up, but also "partially consumed, others may use remainder" Jan 15 03:37:26 groxx, seems like all children with ambiguities need a coordinator to tell them whether to respond and wether to block bubbling up or not Jan 15 03:37:59 knapper_tech: pretty much, yeah. how to make a sane one though, dunno. Jan 15 03:38:00 the coordinator needs to be some controller object outside the tree, a class Jan 15 03:38:18 makes sense to attach it to the activity lifecycle Jan 15 03:38:21 maybe Jan 15 03:39:00 but definitely I wouldn't want my controller to be inside a class in the tree Jan 15 03:39:42 just pull out the entire context and deal with the ambiguity in one class that has all the context info and have children call in to find out what to do Jan 15 03:40:37 I built a bunch of stuff like this in another UI framework with great effect. Jan 15 03:41:46 knapper_tech: find any nice articles for that in the other framework? Jan 15 03:42:25 or best practices or something Jan 15 03:42:34 Weird when you write loads of code and it just works. I want an error to think about or something. Jan 15 03:42:48 There has to be one somewhere. Jan 15 03:42:56 groxx, nah. It's Kivy. It's Python and only shares concepts. Jan 15 03:43:24 groxx, each touch handler should call into a controller and ask if they are handling the touch or letting it bubble Jan 15 03:43:37 groxx, the controller knows the context of the UI Jan 15 03:43:50 groxx, so any changes to that context also have to be updated Jan 15 03:44:05 knapper_tech: is that nicer than forwarding everything to the controller and having it call out explicitly? Jan 15 03:44:08 groxx, but the controller really just centralizes the related state Jan 15 03:44:37 knapper_tech: controller + bubbling seems more complicated, at first glance Jan 15 03:44:42 groxx, I would not want the controller telling the widgets what to do, but rather just if they are the intended handler Jan 15 03:45:00 it's just a coordinating controller style Jan 15 03:45:38 the controller knows the context of the application and children can either access attributes or call through getters Jan 15 03:45:45 I suppose then views always bubble if they know they can't use it? Jan 15 03:46:19 the alternative is that updates to the controller context are sent out to the widgets via events or observable properties, but then each widget is holding a copy of the state Jan 15 03:47:18 the code for the widget is as simple as onTouchMove(){ if (!heyController.isThisMine()){bubble}} Jan 15 03:47:29 g00s: some of it :) Jan 15 03:47:35 definitely not all Jan 15 03:48:09 knapper_tech: I assume "... else { interpret }"? Jan 15 03:48:18 and when you load up some view that has an area that you need to override some action on, you go heyController.activateSwipeOverrideOnTheLeft() Jan 15 03:48:23 yeah Jan 15 03:49:15 touches are contextually handled. context exists atomically and on something all widgets can access easily. Jan 15 03:49:17 knapper_tech: I'll have to think about it a bit to really get it. but it's something I hadn't considered - thanks :) Jan 15 03:49:45 I'm just going to have to read up on the touch handlign API's to get my own implementation going Jan 15 03:50:41 (I'm happy to keep listening if you want to continue, but I think I've got the corr idea. just not quite how to use it for my scenario, that'll take some thinking) Jan 15 03:50:52 corr -> core Jan 15 03:51:50 I'm heading out, might jump in here again sometime soon. Jan 15 03:51:53 Thanks again groxx! o/ Jan 15 03:52:23 BretHudson: o/ happy to attempt to help! Jan 15 03:55:54 Samsung finally got Tizen out the door and now they might buy Blackberry? Jan 15 03:56:11 til! :p Jan 15 03:56:54 way Jan 15 03:56:58 wat* Jan 15 03:57:30 I fear what Samsung would do to bbm Jan 15 04:00:51 tizen Jan 15 04:00:52 lul Jan 15 04:00:58 BB is denying as rumours Jan 15 04:01:22 tizen will be the subject of the next seth rogen movie Jan 15 04:01:48 that was probably way too subtle for this channel Jan 15 04:01:54 but reread it a few times til it makes sense Jan 15 04:02:57 * lewellyn has no clue who seth rogen is. Jan 15 04:03:07 but samsung also said they're ungrounded rumors Jan 15 04:05:03 seth rogen -- the interview -- sony hack -- anti (north) korean lewellyn Jan 15 04:05:14 Did you folks know that it's possible to compile a method that is declared as returning a value and yet doesn't have a 'return' statement or a 'throw' statement? I'm kinda surprised. Jan 15 04:05:17 http://pastebin.com/Vk2XGzDB Jan 15 04:05:22 I guess it makes sense, though. Jan 15 04:05:48 samsung -- tizen -- rebel OS Jan 15 04:06:20 The antiDroid Jan 15 04:06:28 and its korean! Jan 15 04:06:32 movies love cellphones Jan 15 04:06:34 and koreans Jan 15 04:06:38 we must destroy -- tizen Jan 15 04:08:09 I wonder whether it's poor form to exploit the above. Jan 15 04:08:30 TacticalJoke: hah, I never tried that Jan 15 04:08:40 Yeah, first time here too. :) Jan 15 04:08:45 TacticalJoke: I'm gonna say no. you should use it everywhere Jan 15 04:09:17 performance optimization via not returning when not necessary, right? Jan 15 04:10:00 Here's the code that led to my discovering that: http://pastebin.com/W35AejCC Jan 15 04:10:10 The alternative would be to 'break' from the loop and 'return' underneath. Jan 15 04:10:15 But that does look kinda nicely concise. Jan 15 04:11:06 I guess the compiler is cleverer than a lot of people realise. :) Jan 15 04:11:34 Oops, messed up whitespace on the second link. Jan 15 04:11:35 HevvyMetal: i'm generally detached from popular culture. sorry. Jan 15 04:11:54 I wonder if the compiler does a class check on the return type Jan 15 04:12:25 ie can you substitute public foo method() { Jan 15 04:13:01 * capella-s3 goes to his ide Jan 15 04:13:27 classpath 'com.android.tools.build:gradle:1.0.0-rc2' showing error. whats the latest in your projects Jan 15 04:13:35 I'm guessing any return type would qualify. Jan 15 04:14:01 even an invalid one? I mean actually return "foo" where foo doesn't exist Jan 15 04:14:04 Oh. Jan 15 04:14:13 /build.gradle file Jan 15 04:14:14 Then it's just "sdfds cannot be resolved to a type". Jan 15 04:14:20 since it's irrelevent Jan 15 04:19:20 * g00s used SynchronousQueue for the first time, for great win ! Jan 15 04:20:32 How normally people do, if they want when the device boots, a specific app is launched? Does a launcher app will do the job? Jan 15 04:22:37 fairuz: you can receive the "boot completed" event with a broadcast receiver. it requires a special permission though. Jan 15 04:25:21 It's annoying how we can't define static methods in inner classes. Jan 15 04:25:44 (For private static methods, I'm thinking.) Jan 15 04:26:12 java is annoying Jan 15 04:31:37 it's a good thing I don't have to be married to it Jan 15 04:31:45 next project I get on, I'll make the team use retrolambda Jan 15 04:31:58 too late to introduce it into this current project Jan 15 04:32:42 damn, I wanna rub my eye so badly... Jan 15 04:33:46 groxx: ah thanks. I suppose a device owner app can have this kind of permission? Jan 15 04:34:21 BOOT permission is requestable by any app Jan 15 04:34:25 fairuz: other apps can too Jan 15 04:34:44 pfn: but you can't? been chopping jalapeños or something? Jan 15 04:34:58 groxx, no, I got a laser shot into it Jan 15 04:35:16 pfn: aah, I've been pondering that. Jan 15 04:35:29 ah k Jan 15 04:35:31 How long till you can rub your eye? Jan 15 04:35:38 I'm blind without glasses :) 20/400 in both eyes, roughly Jan 15 04:35:51 well, I shouldn't need to rub my eyes, it's just because the procedure leaves the eye itchy Jan 15 04:35:53 so a launcher app is basically a normal app that has this boot permission? Jan 15 04:36:01 my prescription is like -6.25 or so Jan 15 04:36:09 so yeah, same Jan 15 04:36:24 My left eye is getting worse regarding distance. Jan 15 04:36:28 fairuz, no, a launcher app doesn't have boot permission Jan 15 04:36:32 * groxx can never math the conversion between 20/x and +/-x Jan 15 04:36:39 fairuz, launcher app launches because of its intent filter Jan 15 04:36:47 groxx, there isn't one Jan 15 04:37:07 seems like there should be Jan 15 04:38:06 I am trying to use the jreddit wrapper in a app, but the app crashes when i try to connect a user. Logcat shows a java.lang.classnotfoundexection Jan 15 04:38:06 groxx, well, lots of things affect 20/XX vision, astigatism, hyperopia, myopia, etc. Jan 15 04:38:15 anyone have any help? Jan 15 04:38:21 DadFoundMy: You're making a reddit app? ;o Jan 15 04:38:28 so you could have a 0 diopter prescription, but a shitton of astigmatism and still can't read an eye chart at any level Jan 15 04:38:38 groxx, because of that, there isn't a 1:1 mapping Jan 15 04:38:48 TacticalJoke: not really just wanted to try out this jreddit wrapper Jan 15 04:39:05 this small app will just manage messages Jan 15 04:39:10 pfn: thanks. Jan 15 04:39:21 aah, gotcha Jan 15 04:40:06 never put 2 + 2 to equal E I guess :) Jan 15 04:40:11 makes sense though Jan 15 04:40:14 the error is saying that it cant find the calss but i have all my import statments and the jars are added Jan 15 04:40:24 am i doing something really stupid that i jsut dont realize? Jan 15 04:40:56 Which class is it not finding? Jan 15 04:41:39 pfn: well, let me know how it goes. it has been on my "once my eyes stabilize" list for a long time, and they're probably doable now. Jan 15 04:41:42 android doesn't have every single class available in the java runtime Jan 15 04:41:59 groxx, for lasik, there's rarely ever anyone complaining anymore Jan 15 04:42:01 I chose prk, though Jan 15 04:42:08 TacticalJoke: the user class at com.github.jreddit.user.User Jan 15 04:43:02 * groxx googles prk Jan 15 04:43:03 it also mentions something about the DexPathList but i dont entirely understand it... Jan 15 04:43:06 aah. that one. Jan 15 04:43:15 cheaper, I'd guess? Jan 15 04:43:25 different procedure Jan 15 04:44:03 I like prk because it has no flap, and the potential for hyper-correction Jan 15 04:44:05 It looks like it's in subpackage 'entity', not 'user': https://github.com/karan/jReddit/blob/master/src/main/java/com/github/jreddit/entity/User.java Jan 15 04:44:16 prk allows possibly hitting 20/10 or 20/15 vision after it's completely healed Jan 15 04:44:50 LASIK doesn't? Jan 15 04:44:52 I'm still seeing about 20/30 in my right eye, waiting for it to stabilize Jan 15 04:45:10 lasik rarely exceeds 20/20 correction Jan 15 04:45:34 because of the technique, it isn't really possible Jan 15 04:45:54 DadFoundMy: Are you using the latest version of that library? Jan 15 04:46:20 TacticalJoke: i tried the same exact code segment that i am using in the android code in a normal java project and it worked Jan 15 04:46:24 TacticalJoke: yes Jan 15 04:47:05 TacticalJoke: it is bassicly this message example https://github.com/karan/jReddit#examples Jan 15 04:47:32 ah. i read a bit more, makes some sense anyway Jan 15 04:48:14 t2mkn use 1.0.1 not 1.0.0-rc2 Jan 15 04:48:16 Just wondering -- which import statment are you using for User? Jan 15 04:48:21 statement* Jan 15 04:48:34 That page shows "import com.github.jreddit.user.User;", which doesn't seem current. Jan 15 04:48:36 but yeah, the positives of prk outweigh the negatives for me, so I'll go with that Jan 15 04:49:04 DadFoundMy: If you're using user.User, could you try changing it to entity.User and see what happens? Jan 15 04:49:07 i am using the one shown Jan 15 04:49:22 well, using user.User worked, otherwise he wouldn't have been able to compile Jan 15 04:49:30 more likely, a library was not included when creating the package Jan 15 04:49:38 i tried that before and it showed .entity not even existing Jan 15 04:49:56 plus these are run time error, i dont even think it owuld let me compile if i was importing wrong Jan 15 04:50:31 Right. Was just curious of whether some weird stuff was going on (where the library creator had packaged both or something). Jan 15 04:50:54 Then again, that wouldn't lead to the problem, as pfn said. Jan 15 04:51:20 im going to comment out some lines and get some more info Jan 15 04:52:47 DadFoundMy: Did you see this page? https://github.com/reddit/reddit/wiki/API-Wrappers Jan 15 04:53:02 Though I would say that, if you're writing something serious, you might as well just write the API wrapper yourself. Jan 15 04:53:40 you think i should try a different one? Jan 15 04:53:55 its not that serious so im not going to do that :D Jan 15 04:53:57 Not sure; I never really looked into them. But I guess you do have choices. Jan 15 04:54:04 i wouldnt even know how to :D Jan 15 04:55:10 im going to try one of the others ones tomorow and hope it was just a wierd glitch :D Jan 15 04:55:55 Maybe depending on a different version of that library will fix it? Not sure. Jan 15 04:56:06 raw4j advertises as being android compatible so I am going to try that Jan 15 04:56:16 is it possible that the wrapper isnt android compatible? Jan 15 04:58:29 I think that's possible, but I'd be surprised if that were the cause here. Jan 15 05:07:40 g00s: using 1.0.0 Jan 15 05:26:20 Hmm, Executors.newSingleThreadExecutor wraps the return value in a FinalizableDelegatedExecutorService, but Exectuors.newFixedThreadPool doesn't. I wonder why that is. Jan 15 05:27:17 I guess I don't need to worry, in any case, because my thread pool is shutting down only when Android kills my process (seems I have no say in the matter). Jan 15 05:31:16 hey all I have a logo that obstructs a text input when the keyboard is visible so I'm wondering how I make the image view shrink so that nothing is obstructed? Jan 15 05:33:23 Is there a way to get Android Studio to not build everytime you want to run your code, something that causes it to only build when the gradle script is updated or dependencies change. I work inside a locked down network and it is really problematic with this. Jan 15 05:44:41 wordToDaBird: gradle has an offline mode, if that helps Jan 15 05:45:45 In Eclipse when you create a new class if asks superclass one wants to use. How do you do that in AS? I want to create a subclass and set java.lang.Object as its superclass. Jan 15 05:45:58 I hate how the builder pattern breaks if you need to use a single if-statement. Jan 15 05:46:17 TacticalJoke: dreaming of .tap? Jan 15 05:46:24 groxx: Yeah. :) Jan 15 05:46:31 donniezazen: java.lang.Object is the default. Jan 15 05:46:40 Default superclass, I mean. Jan 15 05:47:18 TacticalJoke: ah and in other classes I can just do subclass extends superclass right in the editor. Is that correct? Jan 15 05:47:37 TacticalJoke: I just wish java let you define extensions to existing classes. even objective-c, a fairly backwards language, allows that. you could fix builders! Jan 15 05:47:54 Yeah, you can just type "extends ClassName". Not sure whether AS has the ability to auto-add this. Haven't used it in a while. Jan 15 05:48:06 Yeah, that'd be awesome, groxx. Jan 15 05:48:18 TacticalJoke: I suppose you could subclass the builder... Jan 15 05:48:49 not quite as convenient tho. and final classes suck. Jan 15 05:59:17 "PLEASE SOMEONE HELP ME WITH THIS AND ANSWER THIS QUESTION" Jan 15 05:59:18 haha Jan 15 06:01:29 hi guys Jan 15 06:01:46 Im utterly clueless about a problem Jan 15 06:01:49 can anybody help? Jan 15 06:04:27 theonerichy: The cards reveal that your helper's username will begin with R. Jan 15 06:04:30 Or perhaps S. Jan 15 06:04:51 sigh Jan 15 06:04:57 anyyybodayyy Jan 15 06:05:35 * g00s yawns Jan 15 06:05:37 * TacticalJoke throws the cards in the trash. Jan 15 06:06:11 * g00s lights trash on fire Jan 15 06:06:19 phew, I'm off the hook Jan 15 06:06:21 fire, fire, fire ! (beavis voice) Jan 15 06:06:38 * groxx roasts marshmallows Jan 15 06:06:38 I feel like JesusFreke will be able to help theonerichy. :D Jan 15 06:06:41 theonerichy: you might try asking your actual question :) Jan 15 06:06:52 oh boy Jan 15 06:06:57 A SAVIOR HAS COME Jan 15 06:07:02 no, wait, I have the answer! Jan 15 06:07:02 otherwise we'll just keep toasting marshmelons Jan 15 06:07:17 uh, it's... Jan 15 06:07:20 FlipBill: IT'S ALL SO CLEAR NOW Jan 15 06:07:20 uh... Jan 15 06:07:37 oh, wait. I forgot the question. Jan 15 06:07:53 was the answer 42? Jan 15 06:07:55 uh crap Jan 15 06:08:00 just a sec Jan 15 06:08:05 i gotta do something Jan 15 06:08:06 JesusFreke, HOW DID YOU KNOW??? Jan 15 06:08:08 but Jan 15 06:08:09 eh Jan 15 06:08:10 I'm leaning towards the answer being 'yes'. But it could be 'no'. Jan 15 06:08:11 it can wait Jan 15 06:08:16 he cheated! Jan 15 06:08:23 theonerichy you've used up all your nwlines for one evening anyhow Jan 15 06:08:25 maybe you should ask again later Jan 15 06:08:26 *newlines Jan 15 06:08:32 outlook cloudy Jan 15 06:08:38 oh Jan 15 06:08:52 I still want to make a magic eight ball site, with linkable questions + random answer. Jan 15 06:09:08 That's also an idea for an Android app. ;o Jan 15 06:09:15 Though I guess it's been done a zillion times. Jan 15 06:09:19 and a CORBA IRC interface Jan 15 06:09:24 JesusFreke: Hm. I know how to do that. would a neocities work? Jan 15 06:09:37 the key is linkable though Jan 15 06:09:54 groxx: neocities? Jan 15 06:10:00 sounds like.. new geocities? Jan 15 06:10:05 * JesusFreke runs away screaming Jan 15 06:10:20 yeah. so eightball.neocities.org/what_should_I_eat_for_supper or something Jan 15 06:10:24 Some people just can't let go of the past. Jan 15 06:10:28 JesusFreke: basically :) Jan 15 06:10:30 you can't put the question in the link though Jan 15 06:10:33 that just ruins it :) Jan 15 06:10:36 "Designed as a 21st century reincarnation of GeoCities, Neocities lets you make your own site for free. And it just might spark a renaissance of creativity online." Jan 15 06:10:38 ArrayAdapter.inser() method is not working on my API-17 device and working fine on API-18 device! Strange! Jan 15 06:10:39 Anyone came across this issue? Jan 15 06:10:53 but the answer needs to be static per question Jan 15 06:10:54 JesusFreke: base64 encoded work? Jan 15 06:11:01 so you can have a linkable instance Jan 15 06:11:34 so if you visit the same link, it always shows the same answer. but if you ask the same question again, it will be a different "instance", with a different answer. Jan 15 06:11:48 napster: Does using List.insert with notifyDataSetChanged() work? Jan 15 06:11:55 On the problematic device. Jan 15 06:12:01 I have the source code for a Java library and I want to add it and reference it in Android studio. For the purposes of this, I cannot package it into a jar and add as library, I need to add the source to the project. ANY help on this matter would be extremely appreciated, as everything I have tried so far results in just a broken project. Jan 15 06:12:11 TacticalJoke Let me give it a try. Jan 15 06:12:54 theonerichy, u can't just drop the source code into the project directories? Jan 15 06:12:57 napster: The (latest) code for ArrayAdapter.insert is really simple. I'd be surprised if it had a bug. Jan 15 06:13:06 https://android.googlesource.com/platform/frameworks/base/+/refs/heads/master/core/java/android/widget/ArrayAdapter.java#223 Jan 15 06:13:28 * napster is reading. Jan 15 06:13:44 theonerichy: yeah, either drop the source in the main source dir for the project, or I think you should be able to just create a new module, and dump the source in that module, and make sure your main project has a compile time dependency on the other module. Jan 15 06:14:32 also, take my advice with a grain of salt - I haven't actually played with android studio, and the android gradle stuff much. although I'm quite familiar with the base intellij IDEA, and with gradle in a non-android context. Jan 15 06:15:11 I use AS, but I'm still in a fog about it. Jan 15 06:15:38 * FlipBill stubs toe Jan 15 06:16:38 I stubbed a method once, it never grew back Jan 15 06:17:08 If you stub it just right, two grow back Jan 15 06:17:14 by dump it into the src, what exactly do I do? It has a directory structure because its a package, do i just drag drop /com/ into /src/? Jan 15 06:17:22 yeah, basically Jan 15 06:17:41 so you should end up with src/com/whatever Jan 15 06:18:11 * capella-s3 stubs his crotch with great ambition Jan 15 06:18:12 TacticalJoke Hmm, I don't keep a data list aside in the adapter. I just extend the arrayAdapter. So can't try List.insert() with notify. Jan 15 06:18:34 TacticalJoke insert() works fine on API-21 emulator as well. Jan 15 06:18:39 better to use BaseAdapter, ArrayAdapter is meh Jan 15 06:18:50 it is just this one device on API-17 which is problematic. Jan 15 06:18:59 motioneventhandler Jan 15 06:19:04 napster: I wonder whether you're doing something wrong. Jan 15 06:19:04 g00s Base adapter needs more work. meh Jan 15 06:19:07 :) Jan 15 06:19:17 It's not much more work, really. Jan 15 06:19:20 yeah like, 10 lines of code Jan 15 06:19:28 TacticalJoke probably! :) Analysing. Jan 15 06:19:30 And in any non-trivial case you're gonna want that extra work anyway. Jan 15 06:19:31 you typed more than 10 lines in IRC Jan 15 06:19:36 :) Jan 15 06:19:54 Processing... Jan 15 06:20:33 lol, thats gold ^^ Jan 15 06:20:35 thanks, ill give that a try Jan 15 06:21:09 napster: If you can't figure it out, post the code. :) Jan 15 06:21:14 I'm actually curious of what could be going wrong here. Jan 15 06:23:38 TacticalJoke It is actually nothing complex : https://gist.github.com/anonymous/f03ce32ddf8a9157a57b Jan 15 06:23:55 and a normal adapter.insert(object, index) call Jan 15 06:24:05 JesusFreke: e.g. https://groxx.neocities.org/8ball.html?eyJxIjoid3RmIGlzIHRoaXMgZXZlbiIsImEiOiJPdXRsb29rIGNsb3VkeSwgdHJ5IGFnYWluIGxhdGVyIn0= Jan 15 06:24:09 and it works on all devices except for just one. Jan 15 06:24:53 That code doesn't seem relevant to this problem (e.g., there's no "insert" at all). Jan 15 06:25:05 JesusFreke: alternatively https://groxx.neocities.org/8ball.html?eyJxIjoib3Igc29tZXRoaW5nIGVsc2UiLCJhIjoiYW5kIGRpZmYgcmVzcG9uc2UifQ== Jan 15 06:25:15 now to fancify it. Jan 15 06:25:27 Did you just create that subdomain, groxx? Jan 15 06:25:38 I nabbed that a while ago :) Jan 15 06:25:48 It's kinda neat. lol Jan 15 06:25:57 I do have https://vuvuzela.neocities.org though. you can probably guess what that'll be eventually. Jan 15 06:26:09 lol Jan 15 06:26:32 I should make my 9iner.com into a magic 9 ball. Jan 15 06:28:09 napster: Could you post the entire adapter? Jan 15 06:28:34 TacticalJoke Here's the insert() part https://gist.github.com/anonymous/05598009f00bd9957e34 Jan 15 06:28:39 yep, one sec Jan 15 06:29:19 Are you sure that ArrayAdapter.insert is even being called on the problematic device? Jan 15 06:30:14 If you're not sure, try using Log.d or something. Jan 15 06:30:42 yes, it is called. I have debugged that part. Jan 15 06:31:07 TacticalJoke Here is the full adapter : https://gist.github.com/anonymous/6d5de5023daa3cb4ee7e Jan 15 06:32:52 oh it worked! Now I have even more bugs! Thanks guys! I really appreciate it Jan 15 07:05:58 Mavrik around ? Jan 15 07:13:40 How do you call the screens that show you how to do something in the app with an overlay and stuff? Jan 15 07:20:50 Click66: One term is "coach marks". I'm not sure whether that'll give you the most Google results, though. Jan 15 07:21:00 I guess "help overlay" sounds good enough. Jan 15 07:21:35 "Facebook recently noted that 66 percent of the Android devices using its software have hardware specifications comparable to (or worse than) an iPhone 4 from 2011." Jan 15 07:21:42 holy shit Jan 15 07:24:15 TacticalJoke: thanks. Found a library https://github.com/amlcurran/ShowcaseView Jan 15 07:25:10 g00s: there's a mistake... Jan 15 07:25:44 should say ""Facebook recently noted that 66 percent of the Android devices using its software perform comparably to (or worse than) an iPhone 4 from 2011." Jan 15 07:27:34 yeah, here is the blog https://code.facebook.com/posts/307478339448736/year-class-a-classification-system-for-android/ Jan 15 07:32:49 this is fucked up http://www.forbes.com/sites/ewanspence/2015/01/11/nobody-is-using-android-lollipop/?commentId=comment_blogAndPostId/blog/comment/1742-16772-5197 Jan 15 07:33:25 i purchased my n7 at best buy - noticing that its weeks / over amonth before i get the new goodies mention in phandroid or whatever Jan 15 07:33:44 by the time i'm getting an update, the next update was announced heh Jan 15 07:34:06 heh. and here i'm wondering when i'm getting 5.0.2 on my non-nexus. ;) Jan 15 07:34:27 same here with my galaxy s5 active Jan 15 07:34:31 "since I didn’t purchase from Google directly I would have to wait longer." i guess its best to get from play store then Jan 15 07:36:08 I want to navigate to a new activity in a protected method but I get a cannot resolve constructor error Jan 15 07:36:41 g00s: afaik, it doesn't matter who you buy it from Jan 15 07:36:50 well, sorta Jan 15 07:37:00 the 3g models of the tablets take longer, because #carriers Jan 15 07:39:09 n^izzo: What are you trying? Jan 15 07:41:36 Has anyone else had this issue with Google Play dev console? The message "You translated the APK into Greek and Turkish but not the store listing" appears under Optimisation Tips, but I never translated anything, certainly not into Greek or Turkish Jan 15 08:02:07 Let's say that I have two kinds of background tasks. For each task, I want a single thread-pool of one thread. Jan 15 08:02:34 So, if one of those tasks starts piling up the requests, the requests are queued in *that* thread-pool only (leaving the other thread-pool free). Jan 15 08:02:47 Would it be sensible to have two distinct thread-pools? Jan 15 08:03:04 (As opposed to a single thread-pool of size N.) Jan 15 08:03:08 N = 2 in this case, I guess. Jan 15 08:03:18 sure. I would probably just use 2 looper threads Jan 15 08:04:48 Using the Looper class? (I've not used that before; googling right now.) Jan 15 08:06:12 LooperThread Jan 15 08:06:16 or maybe it's HandlerThread Jan 15 08:06:20 I can never remember Jan 15 08:06:48 but yeah, you start up a thread that's running a looper (which is what LooperThread/HandlerThread does for you), and then you create a Handler associated with that Looper Jan 15 08:07:12 and then you can send messages or post runnable to the handler, which will run them on the associated looper thread Jan 15 08:07:26 e.g. your application's main thread is a looper thread Jan 15 08:08:24 Sounds powerful. Though I wonder whether calling Executors.newSingleThreadExecutor twice in this case would be simpler. Hmm. Jan 15 08:13:24 HandlerThread Jan 15 08:13:47 its useful if you wany synchronoized message quue backing the 'thread pool execution" Jan 15 08:14:21 but in this case two executors is good enough Jan 15 08:14:28 also useful for delayed work, or scheduling work at a specific time Jan 15 08:14:32 handler thread is overkill, more useful if you want extra use case of run on ui etc Jan 15 08:14:50 err use of handler in conjuction with the execution, if you dont need there's no reason Jan 15 08:16:38 Thanks. Jan 15 08:23:31 Hi, I'm sending sms in my app and in some cases android ask user "X app is sending many SMS, do you allow it or not" or something like that. Is there a way to detect when user decline send sms? Jan 15 08:25:50 TacticalJoke: whats the bg tasks? Jan 15 08:26:13 dudi you could start activity for result and see if the return code is cancelled maybe? Jan 15 08:26:25 Right now, it's reading from or writing to a file. Jan 15 08:26:39 Though this is a temporary measure. (Eventually it'll be reading from and writing to a database.) Jan 15 08:26:59 I wish I could just block the UI thread. My life would be so much easier. :D Jan 15 08:27:08 But my app would also slowly become as horrible as 90% of apps out there. Jan 15 08:27:15 Ok but, how finishing activity have to do with android.telephony.SmsManager ? Jan 15 08:27:42 do you need ui callback tactical? Jan 15 08:27:49 I could probably get away with blocking the main thread here (since this stuff is happening on start-up only, basically), but it's a bad idea. Jan 15 08:27:55 lasserix: In the case of reading I do. Jan 15 08:28:05 Writing is fire-and-forget, because it's not a huge deal if writing fails. Jan 15 08:28:16 The worst-case scenario is a re-download or something. Jan 15 08:28:20 of* Jan 15 08:28:25 lasserix I assumed SmsManager have some method or something which is called whedn user don't allow to send another sms right? Jan 15 08:29:26 TacticalJoke: so you can use async task and then set up it to use a pool Jan 15 08:29:55 Hmm, I could, but I'm not a huge fan of AsyncTask. Jan 15 08:30:09 It's so... particular. Jan 15 08:32:42 but for reading it is essentially want you want Jan 15 08:32:44 do in back read Jan 15 08:32:48 when done notify the ui Jan 15 08:32:49 ;p Jan 15 08:32:59 you can initialize it so it uses a pool of some size Jan 15 08:33:14 the only diff with executor is that you have to pass a handler or context to the runnable Jan 15 08:33:22 so you can callback appropiatly Jan 15 08:33:52 TacticalJoke: another thing you can think about is using one executor, but managing your own queues on top of that, depending on type Jan 15 08:34:01 and feed the queue of the executor as you need Jan 15 08:34:10 Yeah, I have this global Handler (Globals.mainThreadHandler). Kinda handy. :) Jan 15 08:34:42 It feels dirty to have a Globals class (with public static fields), but this seems to be the lesser evil on Android in some cases. Jan 15 08:36:18 just dont leak it in a runaway thread and no problem Jan 15 08:36:31 The Handler? Jan 15 08:36:44 any context ref in the globals Jan 15 08:36:48 TacticalJoke: new Handler(context.getMainLooper()) :) Jan 15 08:37:01 as long as you have a context, you can access the main thread easily Jan 15 08:37:05 well specifically activity contexts Jan 15 08:37:09 Is there any risk of that, lasserix? It's one field per process. Jan 15 08:37:20 you could leak an activity context that way Jan 15 08:37:31 ie if a runnable doesn't die and holds a strong ref to an activity context Jan 15 08:37:40 JesusFreke: Right now I have this in Globals.java: public static Handler mainThreadHandler = new Handler(); Jan 15 08:37:42 Isn't that simpler? Jan 15 08:37:50 Note that various classes need a main-thread handler. Jan 15 08:37:58 the getMainLooper gaurantees the handler will be on the main thread Jan 15 08:37:58 (And they're all classes I am not gonna unit test.) Jan 15 08:38:18 (Because they are classes that are not even remotely open to unit-testing in a sane way. :D) Jan 15 08:38:18 since you dont need whether you'll initialize globals on the main thread Jan 15 08:39:23 lasserix: Isn't it impossible for them to initialize on another thread? Jan 15 08:39:32 no Jan 15 08:39:34 Given that this is just an app without services or whatever. Jan 15 08:39:44 you can initialize a handler on any thread with a looper Jan 15 08:40:05 I mean my static fields. :) Jan 15 08:40:21 I don't see how "public static Handler mainThreadHandler = new Handler();" could run on any thread other than the main one in my case. Jan 15 08:40:42 it will get initialized on whatever thread you first access the class on Jan 15 08:42:43 but my point is that you likely have access to a context in most cases where you would need to access that global handler. And if so, you could get rid of the global. Jan 15 08:42:45 i have a few executors for task types, which i use with rxjava schedulers. TacticalJoke should bite the bullet and learn rxjava ;) Jan 15 08:43:04 Mornin puny mortals. Jan 15 08:43:29 hey Mavrik Jan 15 08:43:31 g00s how long would you think it'd take to get comfortably into rx? Jan 15 08:43:38 JesusFreke: I forgot about that thread business with regard to static initializers. ;o Jan 15 08:43:54 Though my app is safe because the first access to that class is on the main thread. But, yeah, I should make that explicit in code. Jan 15 08:44:18 JesusFreke: getMainLooper is static call ;p Jan 15 08:44:28 lasserix: oh? hah Jan 15 08:44:39 even better then :) Jan 15 08:44:41 lasserix hm, when i first looked at it in early 2014 there wasn't much info - but now there is a lot of good resources Jan 15 08:44:45 g00s: I've been meaning to look into that. Jan 15 08:45:30 anyway, I've got to get to bed. I've got a flight at too-early o'clock. Jan 15 08:45:30 Mavrik i was wondering if you could take a look at some rx code i wrote to wrap the BLE apis as cold observables. actually, its very short. i'm asking you to poke holes in it Jan 15 08:45:38 gnight JesusFreke Jan 15 08:45:46 Laters. Jan 15 08:45:48 g00s, lemme just get my morning coffee :P Jan 15 08:48:05 christ, apparently chrome / AS can't work together by clipboard Jan 15 08:50:00 heh - too-early o'clock .... but later it'll be wine-thirty Jan 15 08:51:04 Mavrik here is the pastebin http://pastebin.com/tdXtrLuy Jan 15 08:51:44 you'll have to know how SynchronousQueue works :) Jan 15 08:53:53 the subscribeOn(this) ... some explanation, a custom Scheduler which serializes the pending BLE operations. but not too relevant Jan 15 09:01:17 * g00s puts this on list of books to read http://www.slate.com/articles/technology/bitwise/2015/01/black_box_society_by_frank_pasquale_a_chilling_vision_of_how_big_data_has.html Jan 15 09:01:57 g00s, I don't see anything wrong per se Jan 15 09:03:11 hmm, well there is one problem. if the timeout expires, and the producer stops offering to the channel - but a response does come in after the timeout, things get screwed up Jan 15 09:03:25 not sure how to work around that one Jan 15 09:04:59 in other words: req1 , timeout, req2, response1 gets matched with req2 Jan 15 09:05:33 not really sure how possible that scenario is Jan 15 09:05:43 *probable / possible Jan 15 09:08:21 yeah, they made this a pain in the ass :| Jan 15 09:14:08 JakeWharton: I'm using spoon for testing and got most of everything working except the that gradle is disallowing me to depend on my application module from my test module Jan 15 09:14:25 JakeWharton: any idea how to remedy this? Jan 15 09:26:47 anyone got experience with facebook sdk? I want to hide progressbar when opening session Jan 15 09:27:15 facebook? is that a thing :p Jan 15 09:27:38 Love deleting code. Jan 15 09:28:06 streamlining is the best :D Jan 15 09:29:23 ok, no answer ;) Jan 15 09:32:05 gordon_, because it's a strange question Jan 15 09:32:24 there's no progress bar when you open a session O.o Jan 15 09:32:57 when you ask for permissions? Jan 15 09:33:10 Mavrik i think i fixed that problem, had the rendezvous going in the wrong direction. instead of putting a subscriber on it and having the listener poke it with the result, the listener puts the result on the channel Jan 15 09:34:47 this is slick and should be bombproof. hopefully :D Jan 15 09:47:44 cool... http://motherboard.vice.com/read/single-photon-quantum-computer-chips-are-scaling-up Jan 15 10:19:30 These people who post on reddit "zomg i'm laughing so hard i can't breathe". Jan 15 10:19:38 I don't get these people. Jan 15 10:20:06 TacticalJoke: kill them! Jan 15 10:20:13 ROFL!!! Jan 15 10:20:17 LOLLLLLL Jan 15 10:20:23 LMFAO!!!! Jan 15 10:20:26 etc. Jan 15 10:21:00 omg my sides Jan 15 10:21:24 TacticalJoke: help me, I'm in a six hour meeting Jan 15 10:21:32 with product Jan 15 10:21:36 Are you on your phone? Jan 15 10:21:58 Six hours is pretty intense. Jan 15 10:22:19 have my laptop with me Jan 15 10:22:22 and yeah Jan 15 10:22:30 setting up 5 sprints Jan 15 10:24:22 I'm taking a break and reading /r/UnexpectedThugLife, but it's so lame. Jan 15 10:24:33 it has some good things Jan 15 10:24:42 but you should be reading r/shittyProgramming Jan 15 10:24:53 Oh, I used to read that. lol Jan 15 10:25:13 Okay, this was kinda funny(ish): http://youtu.be/b-XcEqiP9pk Jan 15 10:26:23 Actually, this is better (same source video): http://youtu.be/aZwmBe6HFog Jan 15 10:36:32 hey guys, sup? Jan 15 10:37:48 zepplins? Jan 15 10:40:23 I faced issue method SmsManager.divideMessage(String) casue NullPointerException Jan 15 10:43:46 Wonder why they didn't call it NullReferenceException. Jan 15 10:45:20 Hmm, the JLS says that references are pointers: Jan 15 10:45:24 "The reference values (often just references) are pointers to these objects, and a special null reference, which refers to no object." Jan 15 10:46:43 Dudi: Obvsly you're not giving enough info for anyone to give an answer. Jan 15 10:47:44 TacticalJoke my bad then... but I manage to solve it :) Jan 15 11:08:56 God, some of the Android guides are bad. Jan 15 11:09:28 Some have little snippets of code that are hard to piece together and that contain stuff not even related to the current topic. Jan 15 11:17:17 Does anyone know if picasso has a built in disc cache limit? or does it take as much as there is available? Jan 15 11:19:32 it does have a limit Jan 15 11:20:12 Should I be using "Process.setThreadPriority(Process.THREAD_PRIORITY_BACKGROUND);" for my ExecutorService threads? Jan 15 11:20:31 it's between 5mb-50mb depending on the space available Jan 15 11:20:32 f2prateek_, are you sure? I know it has a memory limit, but cant see the point in limit disc cache since android handles to delete that Jan 15 11:20:47 https://github.com/square/picasso/blob/master/picasso/src/main/java/com/squareup/picasso/Utils.java#L56 Jan 15 11:21:02 f2prateek_, thanks :) Jan 15 11:21:09 https://github.com/square/picasso/blob/master/picasso/src/main/java/com/squareup/picasso/Utils.java#L255 Jan 15 11:21:10 well. 50megs should work Jan 15 11:21:17 Hi all Jan 15 11:21:25 hi Jan 15 11:21:36 Does someone ever worked with the google maps API ? Jan 15 11:21:55 How do i get LngLay from an address ? Jan 15 11:22:02 LngLat* Jan 15 11:24:06 arent there javadocs? Jan 15 11:24:15 fLM http://developer.android.com/reference/android/location/Geocoder.html Jan 15 11:33:07 after a reformat (mac), i can find my source and gradle files for my app, but not a project file… doesn’t android studio store the project file with those other files? Jan 15 11:41:37 doesnt AS use .iml files? Jan 15 11:42:35 ultra-, just reimport the project Jan 15 11:44:13 ok, i found the .iml files… there’s two for some reason Jan 15 11:44:20 i get “cannot import anything from…” Jan 15 11:44:24 i’ll google that one, though Jan 15 11:52:47 what is the best wy making a layout which is resizeable like here http://www.autoitscript.com/forum/uploads/monthly_07_2013/post-58311-0-83576200-1372745188.png ? Like having a LinearLayout which contains 2 GridLayouts and the user may want to resize the left layout while the right layout gets bigger (Wrap_content)? Jan 15 11:53:28 hey all Jan 15 11:54:56 Has anyone use the service call apkudo for test all devices on android? Jan 15 11:55:49 misterli: sounds like a desktop paradigm applied to mobile Jan 15 11:56:55 ^ Jan 15 11:58:15 I just want to to know if anyone use apkudo fir testing. Jan 15 11:59:21 never used apkudo but sounds like its pretty much the same as appthwack Jan 15 11:59:56 beside that they dont have pricing on their homepage which instantly make me leave the page Jan 15 12:00:57 danijoo,they told me it was free. Jan 15 12:01:18 mh. that sounds strange for me. Jan 15 12:01:26 but also interessting Jan 15 12:02:12 But you have to use your gogle developer acc for it. Jan 15 12:02:36 Maybe good for me becuase i just have a phone for testing that it. Jan 15 12:02:59 danijoo,I wish they had video on apkudo. Jan 15 12:03:03 what do you mean with I have to use my google account for that? Jan 15 12:03:30 perlsyntax, yeah, not much information on their homepage.. :/ Jan 15 12:03:35 you have to sign into your google acc for it. Jan 15 12:03:48 i show you the link i found. Jan 15 12:04:05 misterli: sounds like a desktop paradigm applied to mobile Jan 15 12:04:18 i pm you it if ok Jan 15 12:04:19 No. Why? 10 Inch Tables. 12 Inch Tables. Smart TVS. Today it's not only a paradigm Jan 15 12:04:38 And why should the user not decide which "fragment" should be resized? Jan 15 12:04:59 danijoo,I found out there more to android programming then i thought. Jan 15 12:05:11 misterli: it might work for you. it depends on what the app should do i guess Jan 15 12:05:31 ts k Jan 15 12:05:36 maybe another way of doing it might be more appropriate Jan 15 12:06:20 misterli, usually you know the size of the device (at least to some degree). You should design your gui to give the best userexperience for that size. Jan 15 12:06:36 danijoo,What you think? Jan 15 12:06:39 danijoo_. Sure. But in some cases users may decide which part of the layout is more important Jan 15 12:08:04 hello, can someone help me Jan 15 12:08:06 createButtons() (http://paste.ubuntu.com/9755379/) method programmatically create all buttons. After buttons are created startHome method is called. Where I try to move first button. Why I get this error? http://paste.ubuntu.com/9755391/ Jan 15 12:08:37 the only way which may working is a designed "Slider" where the layout is recalculated everytime when the user moves it, right? Jan 15 12:09:05 misterli, give them a button to change view then. resizing like you would do on a desktop will suck (my opinion) because you can accidently do this when you actually want to swipe/scroll or sth like that Jan 15 12:18:00 my alarm keeps getting cancelled when my app is ideal for a while... is there a way to make it persist.... its kind of a pointless alarm/notification if it doesnt notify the user on time Jan 15 12:18:37 idle* Jan 15 12:18:46 Makalak, alarmmanager? Jan 15 12:18:49 Hi all. I have a chinese no-name tablet based on a rk3026 chipset. It has v4.2 on it. Jan 15 12:19:04 danijoo_: thats what im using Jan 15 12:19:18 this shouldnt get canceled. mh Jan 15 12:19:34 There are no mods for that chip, so no easy way to update, but according to several pages, such as http://www.arctablet.com/blog/forum/cube-u30gt2/android-4-4-kit-kat-in-our-tablets-very-soon/ Rockchip has released an update for kitkat at least Jan 15 12:20:02 ummm... Jan 15 12:20:10 Assuming I can find the download, is it safe to install said update. The brand name on the tablet is Silver Line Jan 15 12:20:22 samgoody, read the topic Jan 15 12:22:32 oops. Sorry, I have both tabs open, and posted in the wrong one Jan 15 12:22:41 Sorry Jan 15 12:23:51 Is this actually what google envisioned when designing their play store icon? https://d13yacurqjgara.cloudfront.net/users/279765/screenshots/1883181/googleplayicon_rebound.png Jan 15 12:24:01 or is the icon just very very clever by the designer? Jan 15 12:24:44 Must be what google intended with the design, the lines are just too perfect to be a coinsidence no? Jan 15 12:25:28 I guess thats what the psd of the icon looks like Bantalon :p Jan 15 12:25:40 ah i had no clue Jan 15 12:35:40 How do you tell which version of Gradle one has installed? Jan 15 12:36:33 gradle.properties Jan 15 12:39:27 danijoo_: Gradle Scripts>gradle.properties has some stub and no useful info Jan 15 12:40:09 hey guys Jan 15 12:40:17 anyone work with yaml? Jan 15 12:41:06 sorry i mean gradle -> wrapper -> gradle-wrapper.properties Jan 15 12:44:51 danijoo_: Thanks. It shows "distributionUrl=https\://services.gradle.org/distributions/gradle-2.2.1-all.zip" Is Gradle updated automatically through AS? Jan 15 12:45:03 so its 2.2.1 :) Jan 15 12:45:27 not using AS. no idea Jan 15 12:46:23 okay thanks. Jan 15 12:48:25 AndroidStudio does not create a libs folder for me Jan 15 12:48:29 how do i add volley to my project lol Jan 15 12:49:48 create it Jan 15 12:49:52 by hand Jan 15 12:50:28 Then, copy bin/volley.jar into your libs/ folder and off you go! Jan 15 12:50:34 no, don't do that Jan 15 12:50:43 add it as a maven dependency Jan 15 12:50:51 how do you do that DreamTeam Jan 15 12:51:20 compile 'com.mcxiaoke.volley:library:1.0.+' Jan 15 12:51:31 in dependencies Jan 15 12:51:33 in your build.gradle Jan 15 12:51:41 or in android studio, open the module settings, go to the dependencies tab Jan 15 12:51:45 and search for volley there Jan 15 12:53:06 Dream_Team, should i make the jar and do import module Jan 15 12:53:12 no Jan 15 12:53:27 You should learn about how gradle integrates with maven central Jan 15 12:54:21 You should use jars less and less with AndroidStudio Jan 15 13:11:31 Dream_Team: There are 2 build.gradle files Jan 15 13:11:46 and under one build.gradle file there are 2 dependency params Jan 15 13:11:46 http://puu.sh/ey4U1/f9ba5c6d3e.png Jan 15 13:14:21 DragonPunch Jan 15 13:14:27 You need to add it at the bottom dependencies Jan 15 13:14:29 and then sync Jan 15 13:14:52 http://puu.sh/ey5lv/7efe137e6e.png Jan 15 13:14:57 which gradle file in that list Jan 15 13:15:11 DragonPunch, the one for the module. Jan 15 13:15:36 http://puu.sh/ey5pD/91e3d36a3f.png Jan 15 13:15:39 the second or first one Jan 15 13:15:44 for dependencies Jan 15 13:15:56 Second Jan 15 13:16:04 Hi guys, are there any costs to deploy and sell an app on the playstore beside the 25$ account registration fee? Jan 15 13:16:04 do i use a , Jan 15 13:16:05 the bottom Dependencies Jan 15 13:16:07 or no? ?? Jan 15 13:16:11 right under the compile support-v4 Jan 15 13:16:21 Silmarilion, nope. only the one time fee Jan 15 13:16:21 Silmarilion: if you sell an app, google will take 30% Jan 15 13:16:27 but that's it Jan 15 13:16:28 No comma Jan 15 13:16:31 aha Jan 15 13:16:32 tbx Jan 15 13:16:46 careful about taxes and stuff Jan 15 13:16:47 basically google takes 30% of your soul for everything Jan 15 13:16:59 :( Jan 15 13:17:19 do i add ',' Jan 15 13:17:23 between the compile Jan 15 13:17:27 When I bought a nexus, I'm pretty sure I gave them more than 30% of my soul Jan 15 13:17:28 DragonPunch Jan 15 13:17:29 No Jan 15 13:17:33 http://puu.sh/ey5CB/1fc67ae26f.png Jan 15 13:17:34 DragonPunch, why dont you try it.. Jan 15 13:17:38 No Comma :) Jan 15 13:17:39 i did Jan 15 13:17:44 it grays it out Jan 15 13:17:54 this looks like json Jan 15 13:17:56 but its not Jan 15 13:18:22 it's somewhat java Jan 15 13:18:27 I insist on the "somewhat" Jan 15 13:18:31 lol Jan 15 13:19:11 and I insit of "not at all" Jan 15 13:19:31 gradle is based on Groovy Jan 15 13:19:40 oh right Jan 15 13:19:42 my bad Jan 15 13:19:56 and yes. i know groovy bases on java :pp Jan 15 13:20:18 but i think it looks a lot different Jan 15 13:20:32 DragonPunch, http://i57.tinypic.com/5nusk5.png Jan 15 13:20:47 here is my example of dependencies Jan 15 13:21:03 got it Jan 15 13:21:04 it works now Jan 15 13:21:07 alright Jan 15 13:21:08 (y) Jan 15 13:21:24 Dutch people inside here ? Jan 15 13:21:47 you need all of play services? Jan 15 13:22:16 shekibobo, i need it for my google maps V2 :) Jan 15 13:22:32 https://developer.android.com/google/play-services/setup.html#table1 Jan 15 13:23:16 shekibobo, this one is maybe better ? Jan 15 13:23:17 com.google.android.gms:play-services-maps:6.5.87 Jan 15 13:23:23 in my case Jan 15 13:23:34 yeah, if that's all you need Jan 15 13:23:42 Showing a google maps with markers Jan 15 13:23:47 they broke it down into smaller libs last month, I think Jan 15 13:23:47 that's all i need to do Jan 15 13:23:47 what do you use to make requests on a timed basis Jan 15 13:24:03 i want to make requests every second. Jan 15 13:24:03 check system time Jan 15 13:24:13 a runnable ? Jan 15 13:24:21 maybe a sync adapter Jan 15 13:27:10 DragonPunch, while the app is running or when it's in the background? Jan 15 13:27:21 both Jan 15 13:27:39 i want to make network calls every second Jan 15 13:27:46 While its running you could use a runnable with a handler insite ? Jan 15 13:27:47 inside* Jan 15 13:27:59 i guess Jan 15 13:45:44 k Jan 15 13:45:46 k Jan 15 13:45:47 k Jan 15 13:45:49 k Jan 15 13:51:17 Intent intent = new Intent(Dismiss_Alarm.BROADCAST);sendBroadcast(intent); LocalBroadcastManager.getInstance(this).sendBroadcast(intent); Jan 15 13:51:33 how come the sendBroadcast works.. but not the localbroadcastmanager? Jan 15 13:55:23 Makalak: what isn't working? Jan 15 13:55:26 hi !!! Jan 15 13:55:38 waht's the difference between recyclerview and listview ? Jan 15 13:55:54 appel1: the broadcast is not being called if i use localbroadcastmanager Jan 15 13:56:12 Makalak: have you registered the receiver with the LocalBroadcastManager? Jan 15 13:57:17 appel1: for a localbroadcast... thats stupid... back to the drawing board, Thanks Jan 15 13:58:45 Makalak: what's stupid? the entire pooint of LocalBroadcastManager is that the sender and receiver are local to your application. Jan 15 13:58:47 Anyone knows how to do floation action bar Jan 15 13:58:50 at the bototm Jan 15 13:59:56 appel1: since i also use that same broadcast for a global broadcast... there is little point of using localbroadcast Jan 15 14:00:11 Makalak: got it Jan 15 14:13:45 I have a list and custom adapter. I have it set so the user can select items. How can I notify the main activity that the user has selected something short of setting up a receiver, or is this the only way? Jan 15 14:15:09 Basically want to launch custom menu if they choose something. Jan 15 14:15:42 you have to use fragments Jan 15 14:16:13 to communicate from adapter to activity? Jan 15 14:18:04 Going to ask a funny question. If I run this code if(Build.VERSION.SDK_INT >= Build.VERSION_CODES.KITKAT) {/* do soemthing*/} on an Android ICS device, won't it just crash? :) Jan 15 14:18:14 would a message handler work? Jan 15 14:18:30 I mean, how on earth would that device understand what VERSION_CODES.KITKAT is? Jan 15 14:18:31 :D Jan 15 14:19:52 napster: I think that constant is defined in the SDK, not on a device. Jan 15 14:20:37 what's the difference? Jan 15 14:21:14 The SDK is on your computer. Jan 15 14:21:58 the constant is defined in the sdks Build class. Jan 15 14:22:29 hmm, I see Jan 15 14:22:52 napster: http://grepcode.com/file/repository.grepcode.com/java/ext/com.google.android/android/5.0.0_r1/android/os/Build.java#Build.VERSION_CODES Jan 15 14:23:07 * napster checking Jan 15 14:23:45 You actually tell the compiler where its at when you add: import android.os.Build; Jan 15 14:24:39 This is crazy. I research, like, three topics and end up with 200 Google Chrome tabs. Jan 15 14:24:48 (On top of an existing 100.) Jan 15 14:24:50 lol Jan 15 14:25:04 No matter what I do, it happens over and over. lol Jan 15 14:25:04 pop ups? Jan 15 14:25:13 qkzoo1978 thepoosh TacticalJoke thanks guys. Jan 15 14:25:20 no probs Jan 15 14:25:22 They're all Android-related. Jan 15 14:25:45 Glad I could help being an ameature myself Jan 15 14:25:52 :) Jan 15 14:26:24 Tac you on windows? Jan 15 14:26:27 Yeah. Jan 15 14:26:44 Got some spamware installed? Jan 15 14:26:50 The irony is that I installed OneTab to solve this problem and OneTab takes a huge amount of RAM (because it's holding so many tabs). Jan 15 14:26:53 Nah. Jan 15 14:27:04 I just have a crazy number of tabs. Jan 15 14:27:08 I have around 1,000 in OneTab. lol Jan 15 14:27:17 yikes Jan 15 14:27:36 There's too much to learn. ;| Jan 15 14:27:51 I think Android programming is a mammoth task. Jan 15 14:28:03 lol do you open new links in new tabs? that can add up quick! Jan 15 14:28:15 Yeah. Jan 15 14:30:29 I wish we could just pour knowledge into our brains. Jan 15 14:30:39 The current processes are inefficient. Jan 15 14:30:41 The Matrix Jan 15 14:30:53 Just plugin Jan 15 14:32:53 TacticalJoke: the only way to overcome it is be stubborn patient and see all obstacles as a part of the challenge to get to your goal Jan 15 14:33:01 TacticalJoke Infact pouring knowledge to the brian is soon going to be a reality. Jan 15 14:33:11 shmooz: Yah. Jan 15 14:33:14 napster: Is it? Jan 15 14:33:24 Yep, someone succeeded in erasing and replacing memory already! Jan 15 14:34:52 Neuroscience is really exciting. Figuring out the brain could mean curing suffering, etc. :) Jan 15 14:35:30 exciting indeed. Jan 15 14:36:18 We just gone OFFTOPIC here. :) Jan 15 14:37:10 napster: the older versions would ignore what they don't recognize as version code and the do something would not be executed Jan 15 14:37:27 soon (TM) Jan 15 14:37:37 ok Jan 15 14:38:56 Don't those constants just boil down to integers? Jan 15 14:39:08 Isn't it just "if (foo == 5)" or something in bytecode. Jan 15 14:39:59 I'll compile it. One sec. Jan 15 14:41:43 yes Jan 15 14:42:11 ok Jan 15 14:42:39 ok then the older system would see it as int, but not be able to extract a name from it Jan 15 14:43:28 afterall, that was not a very funny question. :) Jan 15 14:47:59 Sorry, was AFK. In case anyone is interested: http://pastebin.com/dL0GWjMP Jan 15 14:48:15 android.os.Build.VERSION_CODES.KITKAT is 19, of course. Jan 15 14:48:50 JakeWharton: Does OkHttp give the threads it uses (for async stuff) a background priority? Jan 15 14:48:53 Cool. Jan 15 14:48:57 I looked in the code and couldn't see anything suggesting that it does. Jan 15 14:49:05 TacticalJoke: probably not then Jan 15 14:49:26 JakeWharton: okHTTP!!! Jan 15 14:50:11 I'm not sure whether to be giving threads I use (e.g., for file writing) background priorities. Hmm. Jan 15 14:51:28 TacticalJoke, you usually dont need to Jan 15 14:53:25 See, I would've thought that, but then this post from Alex Lockwood says that we should: http://www.androiddesignpatterns.com/2014/01/thread-scheduling-in-android.html Jan 15 14:53:57 "Threads and ExecutorServices that are instantiated on the main UI thread, for example, will inherit a default, foreground priority, making lag more likely and possibly hurting the application's performance. In these cases, you should always remember to set the thread's priority by calling Process.setThreadPriority(Process.THREAD_PRIORITY_BACKGROUND) before the Thread is run." Jan 15 14:54:36 I was surprised to read that. Jan 15 14:55:16 TacticalJoke, and what about async tasks ? :) what proproity do they have Jan 15 14:55:23 They do it by themselves. Jan 15 14:55:55 well im save then :) Jan 15 14:57:23 This is where they do it: https://android.googlesource.com/platform/frameworks/base/+/4f868ed/core/java/android/os/AsyncTask.java#281 Jan 15 14:57:28 I try to use in app billing and I send APK for alpha tests. Do I also need to publish alpha version ? Jan 15 14:57:30 I think that gets called for every new task. Jan 15 14:57:43 Anyone have been using intellij with android dev? I've been having probelms recently with it. Jan 15 14:58:04 Oops, that isn't master. Jan 15 14:58:18 Furai, whats the prob? Jan 15 14:58:46 I've just started the gradle default app Jan 15 14:59:10 Anyone know how to stub a static method with PowerMockito? I keep getting an UnfinishedVerificationException Jan 15 14:59:40 And when I compile it I get error: failed to find com.android.support:appcompat Jan 15 15:00:06 Omg, I'm so retarded... Jan 15 15:00:16 I could just click the solution. Jan 15 15:00:19 Sorry guys. Jan 15 15:00:27 ^^ Jan 15 15:01:07 danijoo_, u say u are a student but u seem to be pretty dam knowledgeable about this shit Jan 15 15:01:16 TacticalJoke, interesting. But so im save since I only use async tasks :) Jan 15 15:01:30 bynarie, and Im not even an IT student! :p Jan 15 15:01:34 just a huge nerd Jan 15 15:01:35 Why not? Some students code instead of playing LoL or WoW. :d Jan 15 15:01:36 ohhhh Jan 15 15:01:37 nice Jan 15 15:01:46 yea im g33k too Jan 15 15:01:51 comp g33k Jan 15 15:01:56 Furai, funny fact. Im playing lol and my biggest app is a lol ap :D Jan 15 15:02:04 :D Jan 15 15:02:13 I'm working for game designing company. Jan 15 15:02:19 danijoo_, i still appreciate the student link man.. i been playin with phpstorm and clion Jan 15 15:02:27 bynarie, :) Jan 15 15:02:36 thats good stuff Jan 15 15:03:06 danijoo_, did u know about the dreamspark program? Jan 15 15:03:26 yep. My windows is from that :) Jan 15 15:03:33 ah ha! awesome Jan 15 15:03:47 im surprised u run windows and not *nix Jan 15 15:04:13 switched from osX about a month ago. Jan 15 15:04:17 gotcha Jan 15 15:04:40 Anyone here is using in app billing/ Jan 15 15:04:41 ? Jan 15 15:04:42 how was osx.. is it a true unix OS? Jan 15 15:04:45 but im running a vm for the geeky things I need to do for my degree Jan 15 15:04:57 yea good call Jan 15 15:05:01 bynarie, its a fancy ui with a unix shell in the background :) Jan 15 15:05:06 ok Jan 15 15:05:27 I kinda miss it but I wanted my new PC to be hardware upgradable Jan 15 15:05:34 Hey guys, the default android icon associated with a new app. If I was to modify that, am I suppose to change each and every dpi, or is there some way within Android Studio to create a one-size-fits-all icon??? Jan 15 15:05:34 and u cant do that with osx Jan 15 15:06:04 not that anyone cares anymore, but I believe at one point it was actually UNIX[TM] certified Jan 15 15:06:14 mantas322, if you delete all but one, its kinda a "one-size-(tries-to)-fit-all" Jan 15 15:06:18 Leeds, still is as far as i know Jan 15 15:06:33 yeah I think it still is Jan 15 15:06:36 which do you suggest I keep danijoo_? Jan 15 15:06:55 mantas322, all. And change them all Jan 15 15:07:04 its considered a single unix specification, except lion Jan 15 15:07:21 well its a unix registered OS Jan 15 15:07:48 mantas322: You're expected to provide various images. This can help: http://romannurik.github.io/AndroidAssetStudio/icons-launcher.html Jan 15 15:08:30 oh wow thanks, I knew something like that would exists. ty tacticalJoke Jan 15 15:08:34 I haven't used that in a while; I guess it still works. :) Jan 15 15:08:47 Another Question: (I've been out of the android game for 3-4 years) what is the most popular api to target these days to insure most versatility? Jan 15 15:08:59 before fragmentation was kind of an issue Jan 15 15:09:02 15 or 16 at least. Jan 15 15:09:04 probably still is. Jan 15 15:09:06 ty Jan 15 15:09:24 mantas322, ICS Jan 15 15:09:28 ty Jan 15 15:09:40 so 14 Jan 15 15:09:47 Hello, i have android 5.0 relatee issue. I have dialog-like activity with windowIsTranslucent windowIsTranslucent windowIsTranslucent windowIsTranslucent. So, when i open this activity, press home btn, and return back to app from recents - ui is truncated (top ~10dp). When i change orientation - it recovers issue. Jan 15 15:10:00 Hmm, is 14 worth targetting at all? Isn't 14 basically invalidated by 15? Jan 15 15:10:10 Reproduced only on android 5.0+ Jan 15 15:10:20 im not sure sorry... lol.. i was just thinking android 4.0 and up Jan 15 15:10:28 14 is nonexistant Jan 15 15:10:55 api 14 no longer exists at all? Jan 15 15:11:02 bynarie, https://developer.android.com/about/dashboards/index.html Jan 15 15:11:28 ah i see.. no 4.0 Jan 15 15:11:56 everything thats not shown is below 0.1%. So its not really worth to. its most often 2.3.3 or 4.0.3 you chose Jan 15 15:12:03 i wonder if lollipop has even hit 1% yet Jan 15 15:12:23 i think last time I read about it it was 1.x % Jan 15 15:12:46 mantas322: The picture is probably way better now than it was years ago. Jan 15 15:12:54 But it's still Android, so don't expect miracles. :) Jan 15 15:13:09 well. the graph is from jan 2015. so lollipop seems to not be 0.1% yet :D Jan 15 15:13:30 Is it me, or has the default font on Android's site changed lately? Jan 15 15:13:33 Looks way neater. Jan 15 15:13:51 It may be the latest Chrome update. Jan 15 15:14:50 I know Jan 15 15:14:56 I'm just happy I get to make an app Jan 15 15:14:58 :) Jan 15 15:15:07 instead of dashboards... Jan 15 15:15:15 dashboards... everywhere...... Jan 15 15:19:18 What dashboards? Jan 15 15:19:47 how would i go about creating some sort of open file dialog? would this have to be created manually? Jan 15 15:20:40 for different websites and whatnot. mainly multiple google charts on various report pages. Jan 15 15:23:03 is there a good way to fake no internet connection (from the connectivitymanager) in robolectric? Jan 15 15:25:53 bynarie: There are a few libraries that allow you to implement a file picker. Otherwise you could do some sort of intent but it depends on if they have a file manager installed. Here are some on android arsenal. https://android-arsenal.com/tag/35 Jan 15 15:26:06 ty Jan 15 15:28:42 ahah! Jan 15 15:29:05 in case anyone was wondering: http://stackoverflow.com/a/25954341/447934 Jan 15 15:30:27 does google have an API for google play market to retrieve apps info? Jan 15 15:30:53 or perhaps some fingerprint? Jan 15 15:36:31 Alina-malina, dont think so Jan 15 15:36:38 hmm Jan 15 15:36:43 it only has launch intents :/ Jan 15 15:36:50 what is that? Jan 15 15:37:12 an intent to launch the playstore and show a specific apps page Jan 15 15:38:07 hmmm, no i mean like all launched apps there Jan 15 15:38:10 already Jan 15 15:38:42 Alina-malina, what information do you want to get? Jan 15 15:39:27 amount of all apps currently on android play market and their lists if it is possible Jan 15 15:40:42 a list of all apps on the play store? you must be kidding Jan 15 15:41:09 why not Jan 15 15:41:12 that would be huge Jan 15 15:41:13 it is just a list Jan 15 15:41:17 i know Jan 15 15:41:18 got an iab problem. signed in with my test account but getting “Error - Authentication is required. You need to sign into your Google Account” - any ideas what the problem is? Jan 15 15:41:20 also there are a lot of apps that arent available everywhere Jan 15 15:41:34 but whatever. there is no such list imho Jan 15 15:41:51 well, i am only interested in list of all android market apps, not "third parties" Jan 15 15:42:10 what is third parties? Jan 15 15:42:31 You could iterate over a list of all possible package combinations and check for existence. There would only be like 50^1000 possible combinations Jan 15 15:42:54 there are no 50^1000 apps on google android market:) Jan 15 15:43:08 i mean those that are officially appdoved and stored on google play daniele_athome Jan 15 15:43:12 danijoo_, Jan 15 15:43:24 yiati, a better approach would be have some seed apps (a few thousands of different categories), and then crawl over "users also like" and stuff like that Jan 15 15:43:50 I way making a joke, but okay... Jan 15 15:43:56 was* making Jan 15 15:43:57 i dont :p Jan 15 15:44:12 this is a non-joking place lolz Jan 15 15:44:20 I am still able to "System.out.println" int omy logcat Jan 15 15:44:24 sorry for noobie quesitons Jan 15 15:44:28 yeah. jokes cost fee here Jan 15 15:44:28 yes you are Jan 15 15:44:53 mantas322, android remaps System.out.println to Log.d(), but you should not rely on that Jan 15 15:45:00 so only browsing? no browsing API? or osmehting like that danijoo_ ? Jan 15 15:45:14 yep Jan 15 15:45:23 hmmm ok will have to write some crawler then Jan 15 15:45:28 fyi for anyone who saw my question yesterday about the std::__throw_out_of_range_fmt problem with ndk-build. The problem was building my library with the GCC 4.9 toolchain. If I use 4.8 instead, things are fine. Jan 15 15:45:33 it is not possible to browse all manually Jan 15 15:45:45 http://www.onepf.org/appstores/ didnt expect google play store to be that small Jan 15 15:46:08 hmmm Jan 15 15:46:18 only 800k apps 2013 Jan 15 15:46:45 not a big amount hmmm Jan 15 15:47:18 danijoo_, are you familiar with cordova? Jan 15 15:47:26 the question is: where is this data from and is it accurate :) Jan 15 15:47:31 no Jan 15 15:47:31 heh right Jan 15 15:47:39 alright thanks for your time Jan 15 15:50:36 my listview scrolling is incredibly slow. I've tried all the tips and tricks given online... I've narrowed down the issue to when convertview != null.. I set the tag for my viewholder and use that... if I ONLY inflate views when it is null the scrolling is super fast.. only when it is not null. Pppppplease help me Jan 15 15:51:13 It can't be my layout either, which is rather large because even when I remove everything from it it is still slow Jan 15 15:51:36 MartialLaw, code of your adapter would be nice Jan 15 15:51:52 I've split up my layout in to 3 different layouts and used getItemViewType() etc. still the same slow Listview Jan 15 15:53:03 http://imgur.com/jacoj Jan 15 15:54:33 MartialLaw: Post adapter. Jan 15 15:55:01 is there any library for "styling" textbox ? (want to display some in-app notification in a funny / design way) Jan 15 15:55:10 here is my getView() which is really the problem http://pastebin.com/mkQfFpJF Jan 15 15:55:11 s/textbox/textview Jan 15 15:55:18 i don't really know how else to do it Jan 15 15:55:56 setVisibility might be slow. Jan 15 15:56:10 Instead of doing all that visibility stuff, you should probably return a new view type. Jan 15 15:56:32 yep Jan 15 15:56:38 a new layout? Jan 15 15:56:46 or at least do INVISIBLE instead of GONE Jan 15 15:57:07 so set 3 different layouts Jan 15 15:57:11 PendingIntent.getActivity(context, 0, new Intent(context, BusAlarm.class).putExtra("Die", true), PendingIntent.FLAG_UPDATE_CURRENT).send(). whats wring with this? Jan 15 15:57:12 if you have that many if/elses in one getView, this is a good indicator that you need more viewtypes. Jan 15 15:57:27 ok ill try it again Jan 15 15:57:33 very cool. Jan 15 15:57:41 I still remmeber hwo to do this :D Jan 15 15:57:48 Toasts. Jan 15 15:57:54 that should call BusAlarm onNewIntent right? Jan 15 15:58:15 maybe it "Die"ed Jan 15 15:58:44 danijoo: but i will have that many if elses in my getViewType anyway does that really make a difference? Jan 15 15:59:35 MartialLaw, no but with more viewtypes you dont need to have so many if(..) setVisibilityStuff, else(..)setVisibilityStuff Jan 15 15:59:44 because the visibility is already set in the new viewtype Jan 15 16:00:15 everytime you do a View.GONE, it has to recalculate the dimensions of the views. Jan 15 16:00:28 grrr... i think its the flags Jan 15 16:00:39 hmm ok Jan 15 16:00:55 MartialLaw: It's part of the reason to recycle views. Jan 15 16:00:59 i did already try this but ill try again because im lost right now. nothing seems to work Jan 15 16:01:01 So that stuff is *already* the right size. Jan 15 16:01:03 MartialLaw, you could also try INVISIBLE instead of GONE if this doesnt break your layout Jan 15 16:01:12 for invisible, it doesnt do that recalculation Jan 15 16:01:39 so theoretically if I use INVISIBLE it should have the performance as using 3 view types? Jan 15 16:01:47 i mean the whole things here is the recalculation Jan 15 16:01:49 no. but a better one ;) Jan 15 16:02:07 lets try that first. it will probably screw up my layout. i think Jan 15 16:02:16 invisible/visible is less expensive, but it would still be better to have different types Jan 15 16:02:39 youll get the best performance if all you have to do is set texts/images in getView, nothing else Jan 15 16:03:02 I have issue with material theme. I have 2 activities A(root with device default(material) theme) and i can navigate to B(fullscreen with holo theme). So when i return from B back to A - navigation bar overlaps A screen layout. Jan 15 16:04:50 what are your guys's thoughts on videos within applications? Jan 15 16:05:05 acceptable formats, or is this a total No-No Jan 15 16:05:20 video ads ? Jan 15 16:05:24 not ads Jan 15 16:05:28 like informaitonal videos Jan 15 16:05:36 or should they be OUTSIDE of the applicaiton? Jan 15 16:05:46 whats outside? Jan 15 16:05:53 performance with INVISIBLE is just as shitty Jan 15 16:05:55 moving on Jan 15 16:06:26 outside just means a button leaves the applicaiton and opens up a web browser to youtube or somehting Jan 15 16:06:48 let me rephrase Jan 15 16:06:49 totally depends on the app if you ask me Jan 15 16:06:55 is it possible to add in a video easily Jan 15 16:06:58 like a 1 minute mp4? Jan 15 16:07:56 mantas322, for mp4 you can use videoView Jan 15 16:08:18 okay thanks, I will try that Jan 15 16:08:23 I have another quick quesiton Jan 15 16:08:24 for youtube theres a youtubeViedoView thing from google api that totally sucks but works if you spend 2 days on it Jan 15 16:08:27 I have some PDFs Jan 15 16:08:47 nevermind.. Jan 15 16:09:22 VideoView is pretty easy Jan 15 16:09:31 yep Jan 15 16:09:50 Haven't tried the Youtube api but yeah I agree google apis/docs are very difficult to parse Jan 15 16:10:23 I wouldn't mind trying it out though, couldn't imagine youtube video in an android app would under perform Jan 15 16:10:23 do you guise have any tool to generate a panel of color giving some intials colors ? Jan 15 16:10:40 why did this work PendingIntent.getActivity(context, 0, new Intent(context, BusAlarm.class).putExtra("Die", true).setAction("Dismiss"), PendingIntent.FLAG_UPDATE_CURRENT);.. when the same line without setAction didnt... Jan 15 16:10:40 not both call BusAlarm, but SetAction calls onNewIntent which is what i want. Jan 15 16:10:49 blusky: http://www.materialpalette.com/red/light-blue Jan 15 16:10:57 for simple material palletes Jan 15 16:11:12 blusky, like http://paletton.com/ ? Jan 15 16:11:30 nice ! Jan 15 16:11:34 thx both of you :)= Jan 15 16:11:45 MartialLaw: Why are you setting typeface each time? Jan 15 16:12:16 ty danijoo_ and yiati Jan 15 16:14:46 MartialLaw: No offence, but that's obviously bad code. Look at all the duplication. Jan 15 16:15:03 Something is going wrong there. Jan 15 16:17:19 Okay another question: So GooglePlay has always been known for accepting all the apps no matter how simple. If a user wanted to, they could theoretically just have an app that just ads 2+2 together or something and be able to upload it to the marketplace Jan 15 16:17:22 is this still true Jan 15 16:17:41 ofcourse the app would get no downloads and poor reviews, but it was perfectly acceptable to do so neverthe less Jan 15 16:17:45 unlike the app store Jan 15 16:17:46 mantas322, yes. even if the app pretends that 2+2 is 5 Jan 15 16:17:51 has anything changed in the last 4 years? Jan 15 16:17:52 yes, still true Jan 15 16:17:52 brbr Jan 15 16:18:02 google only filters on content policy Jan 15 16:18:04 "brb uploading" :D Jan 15 16:18:10 do not violate content policy Jan 15 16:18:12 and you are ok Jan 15 16:18:16 true, except... Jan 15 16:18:37 they don't filter for bad apps... they do filter for malware Jan 15 16:18:41 I remember someone in here linking to his 200 (or something) apps. Jan 15 16:18:47 And they were all the same boring app. Jan 15 16:18:49 Leeds, content policy includes no malware :p Jan 15 16:19:21 pfn: do they filter for things like copyright infringement? Jan 15 16:19:34 Leeds, yes Jan 15 16:19:34 Leeds, yes, also part of content policy Jan 15 16:19:34 obvious things like using the same name/icon as an existing app, say Jan 15 16:19:45 existing app, not necessarily Jan 15 16:19:59 mostly for copyright complaints, as I understand it Jan 15 16:20:26 and the filter totally sucks. You might get banned because you say "this product is not endors with *company*" Jan 15 16:20:29 If an app is so good you upload it 200 times, it'd better hold the cure to suffering or something. Jan 15 16:20:44 danijoo_, I don't think google blanket does that unless "company" asks them to Jan 15 16:21:02 typically that would be identical code with different data - say scraping some cityguide site and making an app for each city Jan 15 16:21:09 you guys know s4bb, right? Jan 15 16:22:25 http://crackberry.com/s4bb-submits-additional-138792-apps-blackberry-world Jan 15 16:22:39 wow Jan 15 16:22:58 so. there are 138795 apps at BlackBerry world now? Jan 15 16:25:36 by some definition :) to be honest, I think they've largely given up on that sort of thing Jan 15 16:28:19 Is there a way to set view height to wrap_content, 30% (the smaller from them)? Jan 15 16:29:03 wrap_content is wrap_content. 30% smaller is not wrap_content anymore Jan 15 16:29:29 you can wrap_content, calculate the size of it and set height to that new size Jan 15 16:30:30 yes, but I'm looking for an xml easy way ;) Jan 15 16:30:44 though if I will not find, then I'll do that. Jan 15 16:30:56 you could use weights Jan 15 16:31:07 http://stackoverflow.com/questions/13663153/make-view-width-wrap-content-but-no-more-than-0-5-weight Jan 15 16:31:20 looks like a nice idea Jan 15 16:31:43 thanks danijoo_ and pfn Jan 15 16:31:56 hey, "pfn" I remmeber you from 4 years ago :P Jan 15 16:32:11 good to know that googleplay is still inclusive. Jan 15 16:32:14 lots of people were here 4 years ago Jan 15 16:33:39 danijoo: i now use 3 different view types..THANK YOU.. very very very much improved Jan 15 16:33:44 I didn't I was born yesterday, at least that's what everyone keeps telling me Jan 15 16:34:03 MartialLaw: Only three? Jan 15 16:34:07 Looks like you could've used loads. Jan 15 16:35:12 TacticalJoke: yeah it works as it should tho. Jan 15 16:37:00 ahhh the performance sucks if I try to change the font tho... wtf? Jan 15 16:37:14 how do i get around that? Jan 15 16:37:43 Why are you changing font? Jan 15 16:37:46 Again, use more view types. Jan 15 16:38:01 You had way more than three in that code, IIRC. Jan 15 16:38:31 im just trying to change the font of the text in the row.. having a whole new layout won't do anything Jan 15 16:38:45 It doesn't have to be a new layout. Jan 15 16:39:22 well where do i set the typeface then? i have to do it at some point Jan 15 16:39:39 Set it once for that view type. Then you get recycled views with the font already set. Jan 15 16:40:48 agh Jan 15 16:42:39 TacticalJoke: still slow performance Jan 15 16:42:49 wait Jan 15 16:42:55 perhaps not Jan 15 16:46:55 MartialLaw: Remember to do as little work as possible in getView. Jan 15 16:49:00 MartialLaw: Even TextView.setText should be avoided if possible. Jan 15 16:49:17 but having another view type how can i possibly set the typeface for an already inflated view? Jan 15 16:49:53 Isn't your code already doing that? Jan 15 16:50:41 well if i set the typeface for say viewtype == RIGHT. I set the text and then set the typeface... the performance is shit.. if i only set the text the performance is great Jan 15 16:52:19 In that case, you might get good performance by returning a new view type for each TextView that needs its own font. Jan 15 16:52:36 Then, when convertView is null for that view type, set the font. When convertView is not null, the font will have already been set./ Jan 15 16:53:25 (Or define multiple layouts with the font already set. I don't know whether that'd be faster than inflating and then setting the font.) Jan 15 16:53:40 Probably not, but who knows. Jan 15 16:53:48 Okay, some of you may have seen me asking about this recently. I am getting a black flicker when transitioning between Activities with transitions turned off (windowAnimationStyle set to @null in styles.xml). I took two of my Activites, stripped everything out except a button with an onClickListener, and I can still reproduce this. I know for sure it never happened until after Lollipop appcompat updates. I can't be the only one seei Jan 15 16:53:48 ng this. Jan 15 16:54:02 hey, can anyone tell me if this is a documentation bug? http://developer.android.com/training/basics/firstapp/building-ui.html on that page it refers to res/layout/activity_my.xml however from the instructions, the only file in there is main.xml Jan 15 16:54:21 TacticalJoke: I don't believe there is a way to set a custom font in your layout in Android Jan 15 16:54:46 perrfect... you were right set the font when it's null Jan 15 16:54:51 Ah, okay. Jan 15 16:54:54 How to tell the difference between onResume() from the operating system and opResume() because another activity was finished? Jan 15 16:54:56 well, it's either a documentation bug or I've followed the instructions wrong. Jan 15 16:54:57 theblang: Didn't you find an open ticket in b.android.com describing your bug Jan 15 16:55:16 yiati I didn't, I would to Jan 15 16:55:51 serviscopeMinor: Where is main.xml? I don't see that. Jan 15 16:56:24 TacticalJoke: er, when I create the source tree from the instructions, the tree contains main.xml, not the activity_my.xml referred to in the docs. Jan 15 16:56:34 Oh, I see. Jan 15 16:56:44 On a difficulty scale of 1-10, how difficult would it be for a beginner to implement PDF documents into an android application? Jan 15 16:57:03 seen this https://code.google.com/p/apv/ Jan 15 16:57:34 I'm assuming it's just a doc bug because it looks more or less how it should. Jan 15 16:58:04 yiati everything I find about a flicker involves a predictable / repeatable flicker. this one is just random and I have no idea why, lol. I feel like I'm going nuts Jan 15 16:58:06 serviscopeMinor: On the first page () it talks about activity_my.xml. Jan 15 16:58:15 (Which is a horrible name, BTW. Jan 15 16:58:16 ) Jan 15 16:58:58 TacticalJoke: er yes true. Good point, the documentation bug is earlier. Jan 15 16:59:32 I've never seen "activity_my.xml" being auto-generated. Not sure what's going on there. Jan 15 17:00:03 I think it's because the activity is supposed to be called MyFirstActivity or something and it gets it from ("activity_" + tolower("MyFirstActivity")).substr(something) Jan 15 17:00:06 fair enough Jan 15 17:00:10 just wondering really. Jan 15 17:00:18 I have the relevant XML, I believe. Jan 15 17:04:15 There are inconsistencies (and even instances of pure weirdness) in those guides. I wouldn't worry too much. From what I've seen, the reference documentation is better. Jan 15 17:05:14 It's not ideal, though -- someone coming to Android for the first time wants a friendly introduction. Jan 15 17:09:16 activity_my.xml seems like the obvious choice if the class is called MyActivity. At least I follow that convention for almost all activities/fragments/views Jan 15 17:11:47 Thorbear: What is the advantage of that style? (I guess it's just ordering of /res/layout/.) Jan 15 17:11:59 yup Jan 15 17:12:02 If my application has an error, how can I alose the app but leave behind a small error box with some information, instead of just closing with no error indication? Jan 15 17:13:22 TacticalJoke: Also, any convention that is easy to follow is infinitely better than no convention and people just following a new style for each layout file. Jan 15 17:13:28 Pinkamena_D: What information do you want to show them? By default, they should get "Foo has closed [OK] [Report]" or something. Jan 15 17:14:51 well, this is on a google glass actually, but I was just asking first to see if a more general way existed. Jan 15 17:15:30 a part of the app connects with credentials which are stored in preferences, but it is not possible for the end user to change the dredentials themselves Jan 15 17:16:00 if the server has some issue and the credentials are wrong I just want them to let someone know that the cerdentials need to be updated on the server. Jan 15 17:18:28 Pinkamena_D: Then parse the expected response from the server incase of non-updated credentials Jan 15 17:25:00 is there any tool to build a fast and design icon for the app ? Jan 15 17:25:55 no Jan 15 17:25:58 draw it yourself Jan 15 17:26:21 doing graphics is always the part I hate most Jan 15 17:26:24 i'm no designer, but i'll try if no tools are provided :) Jan 15 17:26:32 there are no tools Jan 15 17:26:34 use whatever you like Jan 15 17:26:40 I use inkscape and do everything in vector Jan 15 17:26:49 my icons are all ugly Jan 15 17:28:00 is it okay to just @override overridePendingTransition Jan 15 17:28:24 nm, I guess you couldn't do that Jan 15 17:28:43 Oh wait, yeah you could Jan 15 17:33:09 You can do anything if you believe Jan 15 17:33:29 Besides not implement all methods in an interface Jan 15 17:34:13 <_Auron_> heh Jan 15 17:37:39 You can do anything at Zombo com. Jan 15 17:37:42 yiati lol! Jan 15 17:37:46 TacticalJoke: oh man, yes! Jan 15 17:37:52 TacticalJoke: that takes me back Jan 15 17:38:00 TacticalJoke: The unatainable is unknown at zombo com Jan 15 17:41:16 heh wat O.o Jan 15 17:42:51 what Jan 15 17:42:53 the Jan 15 17:42:53 fuck Jan 15 17:43:04 i just checked that site for the first time Jan 15 17:43:16 1.0.1 android gradle plugin released Jan 15 17:44:16 TacticalJoke, danijoo: *in a sexy voice* yessssss, anything is possible Jan 15 17:44:42 TacticalJoke: sorry for delayed response. Yeah. I've not been finding the documentation all that clear. Nonetheless I plough on. Do you know if it's worth submitting some sort of bug report? Or does that sort of hting vanish into the void? Jan 15 17:45:20 to start an broadcast intent... I'd imagine it would it be faster to sendBroadcast over creating a pendingintent and sending it? Jan 15 17:47:18 gdrc it was out a few days ago Jan 15 17:47:42 g00s: when? Jan 15 17:47:53 i'm wondering when they are going to refresh the gradle plugin docs Jan 15 17:48:00 serviscopeMinor: Oh, it'd be a waste of your time. Their bug tracker doesn't seem to get much attention. Jan 15 17:48:06 like maybe put them on d.android.com , fill in missing stuff, etc Jan 15 17:48:12 They also marked countless bugs Obsolete recently at whim. Jan 15 17:48:41 TacticalJoke: OK fair enough. I won't bother then :) Jan 15 17:48:47 yeah, i stopped filing bugs unless its for tools. those seem to get triaged Jan 15 17:49:06 most other stuff seems to go into a black hole Jan 15 17:49:53 :( Jan 15 17:49:58 such is life. Jan 15 17:50:22 well that's OK, because they seem to like making APIs obsolete too, so the bug is "fixed" by virtue of being deprecated... Jan 15 17:51:12 TacticalJoke, 5.0 obsoleted most bugs without being addressed directly Jan 15 17:51:14 so not on a whim Jan 15 17:51:34 bugs with few stars also got obsoleted if they weren't be followed up Jan 15 17:53:27 cool, this tmo prepaid plan is good stuff $40 / month for unlimited data, talk and text + up to 1GB of 4G LTE Jan 15 17:53:46 it used to be 500mb 4G, rest 3G or something Jan 15 17:54:06 serviscopeMinor: Are you brand new to Android? Did you have any particular app in mind? Just curious. Jan 15 17:54:28 very few APIs have been made obsolete in android Jan 15 17:54:55 as for not getting attention, legitimate bugs have always been fixed Jan 15 17:55:04 many bugs I've filed have been fixed over time Jan 15 17:55:28 I've seen legitimate bugs being ignored for years. Jan 15 17:55:35 legitimate but low priority Jan 15 17:55:39 Not always. Jan 15 17:55:55 priority for google != priority for users Jan 15 17:56:09 I haven't seen any high priority bug ignored for years Jan 15 17:56:14 hey guys, im forgetting a core concept here. Lets say I have a home screen with a list view. For example two items one opens up a calculate to ad two numebrs one opens up a calculator to subtract two numbers. When either of the add or subtract list Items are clicked I want the listview to disappear, and the appropriate calculator to appear Jan 15 17:56:30 am I to create two new views hidden to house the controls of each calculator Jan 15 17:56:36 i can send sms messages with SMSManager, but they don't show up in my text message history. How can i add the sent messages to the history? Jan 15 17:56:59 TacticalJoke: eh. not 100% new, but mostly. I've got BLE to interface with unity on android by making a JAR file plugin for unity before. I think that's far enough from android development to count in any meaningful manner. Jan 15 17:57:21 The app in question needs to present a GUI to scan for BLE devices of a particular type, connect then do stuff. Jan 15 17:57:40 the BLE stuff I'm happy with. I'm trying to figure out how to do the GUI now in a meaningful manner. Jan 15 17:57:49 You could write in Visual BASIC? Jan 15 17:57:49 I guess I'm asking for general direction as to how to have a "home" screen and have "sub screens" open. Jan 15 17:57:53 the Correct way. Jan 15 17:57:55 (Sorry; couldn't resist. :D) Jan 15 17:58:03 serviscopeMinor if you are talking about startLeScan, its deprecated but won't go away for a while Jan 15 17:58:08 Basically it will start off with a "scan button" and display a list of matching devices plus a throbber while the scan continues. Jan 15 17:58:09 i'm still using it Jan 15 17:58:18 g00s: yeah. I'm keeping it since I'm targeting 4.3 Jan 15 17:58:37 4.3 being the earliest version with proper BLE support. Jan 15 17:58:39 serviscopeMinor you are aware of a terrific bug in filtering 128-bituuids presumably Jan 15 17:58:47 oh god. No? Jan 15 17:58:55 this has so far not bitten me Jan 15 17:59:01 er what's the bug? Jan 15 17:59:08 http://stackoverflow.com/questions/18019161/startlescan-with-128-bit-uuids-doesnt-work-on-native-android-ble-implementation Jan 15 17:59:24 this won't be fixed, they just added newer apis that actually worked Jan 15 17:59:30 (in 5.0) Jan 15 17:59:35 huh. My custom UUIDs were working... Jan 15 17:59:45 on some devices, possibly Jan 15 17:59:50 Activity Jan 15 17:59:51 Nexus 4 Jan 15 17:59:56 is what im looking for I think./ Jan 15 17:59:59 but, no fix??? Jan 15 18:00:01 what the hell. Jan 15 18:00:09 welcome to android, you gotta do it yourself ! Jan 15 18:00:25 well, one version of my firmware *might* be using a 16 bit UUID for totally legit things Jan 15 18:00:27 <_< Jan 15 18:00:31 bluetooth stuff is horrible Jan 15 18:00:43 good I touched it in android 2.3 :D Jan 15 18:00:44 gordon_: in general or android? IMO the android API is awful. Jan 15 18:00:58 gordon_: oh this is BLE, specifically. Jan 15 18:01:08 it's not that bad Jan 15 18:01:15 I've seen worse apis ;) Jan 15 18:01:37 never used ios Jan 15 18:01:37 g00s: that's an interesting post, thanks! Jan 15 18:01:52 when I look at obj-c I get sick Jan 15 18:02:21 It's hard to imagine a language uglier than Objective-C. Jan 15 18:02:25 g00s: though I frequently was getting unlisted error codes for which the accepted solution was either to turn bluetooth off and on again and failing that reboot. Jan 15 18:02:39 serviscopeMinor you can (1) copy the code in that snippet - i tried it, seems to work or (2) go to android 5.0 sources and rip out Scanrecord, BluetoothUuid, and BloottoothLeUtils and copy them into your project - that has the corrected behavior Jan 15 18:02:54 g00s: I'll copy that code for now, I think. Jan 15 18:03:05 I wonder why I wasn't seeing a problem before though Jan 15 18:03:17 oh that's why Jan 15 18:03:21 I wasn't filtering for UUIDs Jan 15 18:03:23 lol Jan 15 18:03:27 :D Jan 15 18:03:32 I was promiscuously scanning for everything! Jan 15 18:04:39 ive found scans to be pretty flaky in general though, sometimes i get a device, sometimes not Jan 15 18:07:59 g00s: the scan was fine, it was getting strange errors at later points. Either connecting or some sort of readbytype call. Jan 15 18:08:16 it sounds like BLE is flakey as all hell on android. Jan 15 18:08:24 serviscopeMinor don't forget you can't have multiple operations in flight at the same time Jan 15 18:08:31 g00s: uh...? Jan 15 18:08:38 not in BLE surely Jan 15 18:08:40 well Jan 15 18:08:41 yeah, its not like iOS Jan 15 18:08:41 oh Jan 15 18:08:47 depends on what you mean by in flight Jan 15 18:09:07 you can just push a bunch of ops to core bt and it will queue them Jan 15 18:09:13 oh Jan 15 18:09:15 I see. Jan 15 18:09:16 but on android, you have to manage that queue yourself Jan 15 18:09:18 yeah BLE doesn't do that. Jan 15 18:09:22 yeah Jan 15 18:09:28 so it must be android doing it for you Jan 15 18:09:32 to make life "simple" Jan 15 18:09:38 i.e. not. Jan 15 18:10:14 the BLE apis have a critical design flaw, they have to stop having these kids design shit Jan 15 18:10:21 BLE is quite strict. But since everything is in 23 byte chunks and it's more or less stateless, android could I suppose fetch several things pseudo simultaneously by interleaving 23 byte reads. Jan 15 18:11:19 yeah, BLE API is utter crap Jan 15 18:11:29 so you can do two things at once by time slicing them just fine in BLE. But I can't see any reason to do that ever. Jan 15 18:11:49 hey, does anyone know if you can simply open a raw BLE socket from the NDK. You can on plain Linux. Jan 15 18:12:00 then we could plug in a different ATT/GATT engine. Jan 15 18:12:16 and life would be nice with unicorns and rainbows etc. Jan 15 18:12:34 what they should have done, is when you call BluetoothDevice.connectGatt( callbacks ) - those callbacks should have only been connection lifecycle events. then for each operation, you should have passed in a continuation / callback for completeion of that operation Jan 15 18:13:41 but no, they make you associate request / responses yourself too. this information is known at l2cap because of packet reordering, retransmission. the lower levels know what goes to what Jan 15 18:13:41 yeah. Jan 15 18:14:36 or the operations would have taken a context object or token Jan 15 18:14:47 which gets returned in the callback Jan 15 18:15:04 or at least opaque pointer like C APIs do ;) Jan 15 18:15:20 serviscopeMinor also, you know the callbacks happen on arbitrary threads hopefully :D Jan 15 18:15:27 also not documented Jan 15 18:15:30 u wot m8? Jan 15 18:15:41 you are not kidding are you. Jan 15 18:15:46 the horror. Jan 15 18:15:47 no Jan 15 18:15:48 the horror. Jan 15 18:15:55 who designed this??? Jan 15 18:16:11 serviscopeMinor i would recommend looking at the Bluetooth Sig Android starter thing, just to look at the code and see what they do defensively Jan 15 18:16:37 i dont use any of that code, but it was 'interesting' Jan 15 18:16:42 didn't even realist that existed. I've come from the other end: I made the hardware, and have an interface on Linux. Jan 15 18:18:03 g00s: so er any therad which enters a wait stare somewhere inside android might reawaken with a BLE callback then. Jan 15 18:18:40 I wonder what that's doing to my unity app. Jan 15 18:18:48 I shudder to think. Oh well. Jan 15 18:19:24 HEY GUYS Jan 15 18:19:35 How does one import all missing 'imports' into clas Jan 15 18:19:38 android studio Jan 15 18:21:49 alt-enter Jan 15 18:21:49 anyone remember that UI library kit that lets you float a window over whatever is happening ? Jan 15 18:23:54 AlertDialog? Jan 15 18:24:28 or android.app.Dialog Jan 15 18:25:00 yiati nah, its a product that pops up over any app Jan 15 18:25:05 even launcher Jan 15 18:25:53 shit, somebody linked last week now i can't find it Jan 15 18:25:57 oh wells Jan 15 18:26:09 sounds like that would cause permissions issues. Did it require root? Jan 15 18:26:14 g00s: what are you looking for? Jan 15 18:26:17 i have logs Jan 15 18:26:40 Is it android built in or third party? Jan 15 18:26:55 android Jan 15 18:27:00 thepoosh were you around this week, somebody posted a project / website (maybe it was paid product) for a library that allowed your app to sit ontop of whatever was running on the phone Jan 15 18:27:16 you could pull out the navdrawer over the launcher, for example Jan 15 18:27:20 sounds like whatsapp Jan 15 18:27:31 or facebook messenger chat heads Jan 15 18:27:51 g00s: https://github.com/marshallino16/FloatingView Jan 15 18:28:13 thepoosh hm, it had a dedicated website, videos, etc Jan 15 18:28:19 hmmm Jan 15 18:29:23 http://cases.azoft.com/android-tutorial-floating-activity/ Jan 15 18:29:24 ? Jan 15 18:29:43 google glass is dead, long live the fapplewatch Jan 15 18:29:51 http://www.wsj.com/articles/google-makes-changes-to-its-glass-project-1421343901 Jan 15 18:30:35 i thought they are working on glass 2 Jan 15 18:30:39 wat? how would a watch replace glass. Jan 15 18:31:01 I always thought glass was dead. Android wear is pretty cool though Jan 15 18:31:03 thepoosh no - it had a completely unremarkable / forgettable name, i think its lost on me Jan 15 18:31:28 yiati: i have a kickstarter for a head mounted apple watch mount Jan 15 18:32:41 mikedg__ does the face say 'punch me here' ? Jan 15 18:32:58 mikedg__: anything for the non-subsribed ones? Jan 15 18:33:17 thepoosh: do a google search for the title of the article and click through via google news Jan 15 18:33:18 :/ Jan 15 18:33:23 i think they let you through the paywall Jan 15 18:33:38 mikedg__: like an iwatch that you strap to your face? Jan 15 18:33:45 yiati: yeah Jan 15 18:33:55 sounds great Jan 15 18:34:01 i know Jan 15 18:34:24 http://www.marketwatch.com/story/google-makes-changes-to-its-glass-project-2015-01-15-131031526?link=MW_latest_news Jan 15 18:34:26 my plan is to have facebook buy my company Jan 15 18:34:39 it would make a great compliment to oculus Jan 15 18:34:45 mikedg__ don't forget the hipster version , strap watch to ankle Jan 15 18:35:06 then it can be a pedometer too Jan 15 18:35:47 what happens when i put a larger image in the image view Jan 15 18:35:51 when i set it to a specific size Jan 15 18:35:54 does it auto resize Jan 15 18:35:55 or what Jan 15 18:36:14 DragonPunch: Depends on your scaleType Jan 15 18:36:25 depends Jan 15 18:36:29 well it resized Jan 15 18:36:31 i just ran it Jan 15 18:36:36 http://etcodehome.blogspot.com/2011/05/android-imageview-scaletype-samples.html Jan 15 18:37:01 woot Jan 15 18:37:07 finish 2 custom lists Jan 15 18:37:10 3 more to go Jan 15 18:37:15 yay Jan 15 18:37:18 gona finish this shit 2day Jan 15 18:38:18 how do you set margin Jan 15 18:38:20 on image view Jan 15 18:38:22 DragonPunch: what are you building? Jan 15 18:38:25 my auto fill stopped working Jan 15 18:38:28 im building an app Jan 15 18:38:45 thats top secret. Jan 15 18:38:56 lol Jan 15 18:38:58 uh, margin or padding? Jan 15 18:39:02 margins are set like any other view Jan 15 18:39:05 i need margin Jan 15 18:39:10 well i need the exact syntax Jan 15 18:39:15 my autofill isnt working for some reaosn ha Jan 15 18:39:41 What autofill are you talking about Jan 15 18:39:59 probably autocomplete in his IDE Jan 15 18:40:04 nvm Jan 15 18:40:11 it doesnt work in Jan 15 18:40:13 one of my layouts Jan 15 18:40:16 so fail Jan 15 18:41:44 it's Jan 15 18:41:51 android:layout_margin="xyzDP" Jan 15 18:42:00 its official https://plus.google.com/u/0/111626127367496192147/posts/9uiwXY42tvc Jan 15 18:43:02 glass sucks. Jan 15 18:43:32 makes you look like a nark. more annoying than useful. Jan 15 18:43:59 "we’re continuing to build for the future, and you’ll start to see future versions of Glass when they’re ready" Jan 15 18:44:24 i honestly dont think you will ever see a group of people walking around wearing glass Jan 15 18:44:25 lmao Jan 15 18:46:44 DragonPunch: you could say that for the first generation of any tech. Jan 15 18:46:55 people thought 80s literal brick phones looked stupid too Jan 15 18:47:38 phones are cool. you can put them in your pocket essentially 'hide' them. Jan 15 18:47:42 google glass sits on your face. Jan 15 18:47:49 can anyone tell me why AS isn’t showing me the parameters of the method in the variables view on the first line of the method in debug mode? Jan 15 18:47:49 you put it in a pocket, im sure it's fragile and will break Jan 15 18:47:56 you can't really hide it Jan 15 18:48:05 DragonPunch: you can do that with current phones Jan 15 18:48:07 not these: http://www.eventprophire.com/_images/products/large/20080515173202_s_mobile_phone_prop_01.jpg Jan 15 18:48:20 omegavesko even if they looked stupid, they didn't potentially violate everyone's privacy in the near vicinity :) Jan 15 18:48:33 g00s: well, that's a different issue :) Jan 15 18:48:34 yeah. that's exactly will google glass is. Jan 15 18:48:41 well, thats the whole issue Jan 15 18:48:43 tbh I think putting a camera on it was a bit of a silly idea Jan 15 18:48:45 hence why you wont see people with it Jan 15 18:48:54 tbh Jan 15 18:48:57 my point honestly Jan 15 18:49:01 is contact lens Jan 15 18:49:04 when those goes out Jan 15 18:49:04 im sorry Jan 15 18:49:07 but there wont be google glass Jan 15 18:49:21 DragonPunch: uh, what Jan 15 18:49:41 contact lens. that overlays your eye. Jan 15 18:49:54 well that sort of tech is the end goal obviously Jan 15 18:50:00 <_Auron_> I think google has a patent for that already Jan 15 18:50:00 but Glass is the stepping stone to that Jan 15 18:50:14 lol, well im we are making exactly that already Jan 15 18:50:16 in the same way, we wouldn't have modern phones without 80s brick phones Jan 15 18:50:17 at my current startup Jan 15 18:50:23 and funny part is, google is funding us Jan 15 18:50:26 baby steps :) Jan 15 18:50:59 huh, I didn't know Google invested in startups Jan 15 18:51:03 (outside of buying them obviously) Jan 15 18:51:21 google ventrues Jan 15 18:51:45 TIL Jan 15 18:51:52 TIL? Jan 15 18:51:58 today I learned Jan 15 18:52:08 lol Jan 15 18:52:28 Today DragonPunch learned TIL Jan 15 18:52:34 huh, it's existed since 2009 and I hadn't heard of it until now Jan 15 18:52:51 well imma go finish another custom list view afk. Jan 15 18:53:02 if you follow them on G+, they’ll occasionally post jobs that the companies they’ve invested in are offering Jan 15 18:56:16 what's a good way to monitor for active connectivity? Say, I have an API call that fails because I'm not connected, I want to show a snackbar, but I'd like to make it go away immediately when the network reconnects instead of forcing a retry of some kind Jan 15 19:03:03 shekibobo: http://developer.android.com/training/monitoring-device-state/connectivity-monitoring.html Jan 15 19:03:35 is there a 'shortcut command' to switch from Design to Text in Android Studio Jan 15 19:03:45 i hate using clicks. Jan 15 19:04:40 DragonPunch: yeah that annoys me too, I always do shift+tab by reflex and end up in a different file Jan 15 19:04:50 uh, ctrl+tab I mean Jan 15 19:07:51 why can’t android studio’s debugger find method parameters on the first line of the method? Jan 15 19:08:15 also, is anyone else's AS autocomplete really finicky in XML files? Jan 15 19:08:31 like 75% of the time it just decides to stop working and you have to restart it Jan 15 19:08:33 yep Jan 15 19:08:40 I don't restart it Jan 15 19:08:56 I just give up on immediately Jan 15 19:09:01 and keep typing Jan 15 19:09:26 well I don't know all of the attributes by heart :P Jan 15 19:09:30 even less so for third-party views Jan 15 19:11:01 i am baffled at this. Why on earth would a debugger not be able to see something on the first line of a method? Jan 15 19:11:54 Android debugger has issues with ternaries Jan 15 19:12:03 it goes bat hat Jan 15 19:12:13 possibly other stuff but that's the one I run into most Jan 15 19:12:18 lol what Jan 15 19:12:29 that's not even an obscure feature or anything Jan 15 19:12:40 the debugger is pretty incompetent Jan 15 19:13:32 For the most part it's pretty great Jan 15 19:13:48 I like the feature they added in to be able to actually view bitmaps in the debugger Jan 15 19:14:17 as long as it's non rgb565 then it won't show anything Jan 15 19:14:32 or is it ARGB_888 Jan 15 19:14:38 one way or the other, can't remember Jan 15 19:14:44 I've an ImageView inside a ScrollView. what width and height should I put to the ImageView so that it has the same size as the screen? it's always too big, I already tried with MATCH_PARENT Jan 15 19:14:46 I've had issues with that Jan 15 19:15:25 Mattx, is it the imageview that's too large, or the image itself? Jan 15 19:15:34 enable view bounds in debug settings and verify. Jan 15 19:15:36 Mattx: It's more than just the width and height, it's about scaleTypes as well Jan 15 19:15:38 http://etcodehome.blogspot.com/2011/05/android-imageview-scaletype-samples.html Jan 15 19:15:41 After that you'll have your solution ;) Jan 15 19:18:54 Mavrik, how do you tell? I assumed the imageview was too big so the image itself was too big too Jan 15 19:19:13 enable view bounds in debug settings and verify. Jan 15 19:19:14 ok, I'll try that, one sec Jan 15 19:19:21 it helps for such cases Jan 15 19:19:25 hiearchy viewer is the other option Jan 15 19:19:41 in you're case it's almost certanly just the image that's too large, not the view itself Jan 15 19:21:13 alt shift left/right Jan 15 19:21:35 DragonPunch, Jan 15 19:21:38 what's a good way to keep a nexus 6 safe without lots of bulk Jan 15 19:21:48 pfn: is this mac Jan 15 19:21:52 pfn: leme try Jan 15 19:21:55 no Jan 15 19:21:59 mac is different Jan 15 19:22:11 Mac is dumb Jan 15 19:22:13 hate it Jan 15 19:22:36 pfn: is that linux than Jan 15 19:22:49 it works in Linux Jan 15 19:22:49 pfn: i dont use windows. laptop = mac desktop = linux Jan 15 19:22:55 pfn: okay sweet. Jan 15 19:23:01 Linux and Windows share the same mappings Jan 15 19:23:24 ish Jan 15 19:25:42 If I install the apk that is signed with the correct certificates, and then go to the APK's entry in the Play Store, then it tells me if I can update the app, or if it the same version, then it will just say Open. Jan 15 19:26:21 Once the app has been Updated directly by the Play store, it will also auto-update any further updates. Jan 15 19:26:29 Mavrik, yiati, it seems it's the ImageView that is too late. I'm pasting the code now, because I already have .scaleType(CENTER_INSIDE) and .setAdjustViewBounds(true) Jan 15 19:26:35 s/late/big/ Jan 15 19:26:45 But only (it seems) if I manually hit the Update button through the play store. Jan 15 19:27:47 I have seen many pre-installed apps on a new phone update automatically through the Play store after a new user has logged in with a Google Account. Jan 15 19:28:04 Is there an app setting or a store setting that makes this possible? Jan 15 19:28:05 https://gist.github.com/driom/337101e456d751d89d05 Jan 15 19:28:17 Mavrik, yiati, there it is. any help is appreciated :) Jan 15 19:28:31 Mattx: An image can be too big for the heap, otherwise too big doesn't really apply here Jan 15 19:28:34 Jonathan_Eyre, it depends if 1.) User has auto-update enabled in play store 2.) If the app hasn't changed permissions. Jan 15 19:28:59 guys, im trying to use a ton of image buttons here. Jan 15 19:29:01 what I'm trying to say with "too big" is that you have to scroll to see the whole image Jan 15 19:29:05 anyone know a free image button site. Jan 15 19:29:13 yiati, don't adjust view bounds for the image Jan 15 19:29:15 well where it has png format icons Jan 15 19:29:24 yiati, you don't want that because you don't want your imageview to be resized right? Jan 15 19:29:24 but I'm expecting it to be as big as the screen size, not the scrollview Jan 15 19:30:34 eh Jan 15 19:30:37 I meant Mattx. Jan 15 19:30:38 :) Jan 15 19:31:11 * Mattx is trying without adjust view bounds Jan 15 19:31:21 icons8.com Jan 15 19:32:12 Hey guys! How's everyone doing? Jan 15 19:32:18 GOOD Jan 15 19:32:21 Mattx: Did you fitting the image with a scaleType of fitCenter/fitStart/etc Jan 15 19:32:27 Did you try* Jan 15 19:33:14 without adjustViewBounds I have the same problem, now trying with other scale types, but I already tried with all of them I believe Jan 15 19:33:35 Yay for adjustable font sizes Jan 15 19:33:38 ugh. Jan 15 19:33:54 need 20sp font in order to see ok Jan 15 19:34:21 DragonPunch: If you are looking for all the icons Google has them all on there github. https://github.com/google/material-design-icons Jan 15 19:34:31 yeah i see. Jan 15 19:34:33 that's lovely. Jan 15 19:34:38 very lovely Jan 15 19:34:51 also thenounproject.com Jan 15 19:34:55 ah, wait a sec. now without adjustViewBounds the image is smaller but the ImageView is the same height as before. there is a huge blank space above and below the image Jan 15 19:34:56 http://thenounproject.com Jan 15 19:35:04 how do i add this, to my android studio Jan 15 19:35:12 copy them... Jan 15 19:35:24 ok Jan 15 19:35:27 and put them where Jan 15 19:36:55 k under my drawable falder. Jan 15 19:37:01 much wow Jan 15 19:37:03 DragonPunch: It's best not to add them all, just add the ones you need. Jan 15 19:37:13 why Jan 15 19:37:27 what about the styles/themes that go along with them Radther ? Jan 15 19:37:48 Mattx: yeah if you want to fit the image within the imageView and the image does not have the same aspect ratio as the imageview that is going to happen Jan 15 19:38:22 I understand that but the ImageView is way bigger than the screen size. that shouldn't be happening Jan 15 19:38:25 In my MainActivity I want to check if a user is logged in and present them with a different activity if they are not. How would I go about doing this? Using an Intent if they are not authenticated or is there a better way to switch the Activity from MainActivity -> LoginActivity? Jan 15 19:38:25 <_Auron_> Anyone have some ideas why android:ellipsize="marquee" doesn't work? Jan 15 19:39:08 Not sure what you mean by styles and themes that go with them but the reason for only adding the ones you are using is so that the app is smaller. Jan 15 19:39:57 DragonPunch assets take up a lot of space. When you distribute your app it will be huge for a bunch of images you don't even use Jan 15 19:40:15 theblang: aww pooey, well ill refactor later. Jan 15 19:40:42 Mattx: Are you sure the ImageView is bigger than the screen and not the image Jan 15 19:42:16 Something about running tests in Google Cloud: https://android-review.googlesource.com/#/c/109292/ Jan 15 19:42:56 I'm still (pleasantly) shocked that they're caring about testing at all. Jan 15 19:43:13 Does anybody else dislike the default activity transition animation? Jan 15 19:43:29 I got an onInterceptTouchEvent handled to move some stuff. I check if the action is "DOWN" to create a state of moving while next actions are "MOVE". And when the action is "UP", I release everything. But if the user move it too quickly, I lose the "touch event", without any "UP" action, any idea how to prevent it ? Jan 15 19:43:32 I'm not huge on the Holo one (is there a Holo one?). Jan 15 19:43:50 TacticalJoke: its the same for Holo and Lollipop isn't it? Jan 15 19:44:10 TacticalJoke: the slide in slide out animation Jan 15 19:44:14 Oh. I've never used 5.0. Jan 15 19:44:39 TacticalJoke: I switch Activities in my Nav drawer and I just hate the default one. But I'm getting a random flicker if I disable. Jan 15 19:44:52 TacticalJoke: Maybe I can make it slide up or down based on where in the nav drawer they are going, haha, that'd be cool Jan 15 19:46:05 you cant change the color of png right Jan 15 19:46:09 theblang: They changed it in lollipop. Jan 15 19:46:14 TacticalJoke: I read that as "maybe we can rent testing time against their uber-device-matrix, eventually, in the future, when things settle down"? that would be handy. Jan 15 19:46:15 you can only change the color of vector image icons right Jan 15 19:46:38 :) Jan 15 19:46:39 Radther ahh, I bet the app has to be true Lollipop and not appcompat Jan 15 19:46:41 <_Auron_> nevermind, apparently doing anything to a textview with code destroys any XML definitions about marquee and has to be manually coded in. sometimes I wonder why I even bother having xml layouts anymore. Jan 15 19:47:28 theblang: Pushbullet has the new transition and that is most likely using appcompat Jan 15 19:47:41 TIL TextView supports marquees. Jan 15 19:47:43 yiati, Mavrik, this is how it looks: http://i.imgur.com/axpLbCw.png Jan 15 19:47:50 Just a quick sanity check... with EventBus (greenrobot) I don't need to be registered for messages in order to send them, do I? Jan 15 19:47:52 i just add a folder under my drawable folder.... um... its not showing Jan 15 19:47:55 how do i get it to show Jan 15 19:47:56 Radther hmmm, well I am running my app in a Lollipop emulator Jan 15 19:47:57 android studio Jan 15 19:48:05 I think if the app uses the "default" it will just do it based on the app. Jan 15 19:48:17 theblang: Oh... I don't know then. Jan 15 19:48:23 doesn't seem like it, but I think with otto you had to be registered even just for sending... but it's been a while Jan 15 19:48:37 Sort a follow up to the auto-update question earlier... Is there a way I can force the auto-update service to run at any given point, to test whether or not my app will update or not? Jan 15 19:48:53 Is it like HTML marquees? Jan 15 19:49:10 Manually running an automatic task.... What have I become? Jan 15 19:49:45 DragonPunch: The best way to add an icon to your drawables is to right-click the drawable folder and click new->image asset Jan 15 19:49:55 Mattx: Okay I wouldn't say from that picture that the ImageView is bigger than the screen Jan 15 19:50:10 Radther: what about a folder Jan 15 19:50:25 DragonPunch: For asset type choose "Action Bar and Tab icons". Jan 15 19:50:37 DragonPunch: Do you mean import a whole folder at once? Jan 15 19:50:45 yea Jan 15 19:50:55 i tried doing it from command line Jan 15 19:50:56 no bueno Jan 15 19:50:57 Mattx: Where do you want to position the ImageView? Jan 15 19:51:14 DragonPunch: That's not a the best idea because the app will get HUGE! Jan 15 19:51:25 i know Jan 15 19:51:28 im not releasing it right now Jan 15 19:51:31 i will filter out stuff i dont use Jan 15 19:51:34 later Jan 15 19:52:02 DragonPunch: Theres also the fact that in the folders there are different sizes for the same icon for the different DPIs. Jan 15 19:52:09 Mattx: You may want the android:fillViewport="true" property on your ScrollView set Jan 15 19:52:20 yiati, maybe in the drawing it's not that bigger but it is, believe me :P Jan 15 19:52:32 Mattx: http://www.curious-creature.com/2010/08/15/scrollviews-handy-trick/comment-page-1/ Jan 15 19:52:35 Like HDPI, mDPI, XHDPI and so forth. Jan 15 19:52:40 I want the ImageView and Image to fit in the screen size so you don't have to scroll to see the whole picture Jan 15 19:53:12 I suppose I only have to make the ImageView fit in the screen, and with a scaleType CENTER_INSIDE the image itself will fit Jan 15 19:53:20 but I couldn't achieve that Jan 15 19:53:29 Radther: anyways, i added the icons but its not shwoing up under drawables Jan 15 19:54:06 DragonPunch: How did you add them, drag and drop? Jan 15 19:54:15 kind of Jan 15 19:54:20 i did it via command line Jan 15 19:54:26 it shows up Jan 15 19:54:55 starlord-2:drawable-hdpi macbook$ ls Jan 15 19:54:55 ic_launcher.png icons tile.9.png Jan 15 19:54:56 see Jan 15 19:54:59 icons folder Jan 15 19:55:05 it says its threre Jan 15 19:55:10 but its not showing up on editor Jan 15 19:55:13 piece of shit android studio Jan 15 19:55:16 such a waste of my time Jan 15 19:55:23 Whoa, TheDailyWTF have updated their website. Jan 15 19:56:17 TacticalJoke: The colors at the top remind me of Pocket. Jan 15 19:56:32 in fact, if i'm moving to quickly, I got a gesture without "action_up", any idea why ? Jan 15 19:56:36 DragonPunch: I can't seem to find a way to import all the icons at once. Jan 15 19:57:05 hi....i have a pretty basic question/problem..... I have a subclass of ViewGroup, which is the full screen size. Im adding a View to it with the following Layoutparams .... but it appears at the top of the screen, not the bottom, any ideas? Jan 15 19:57:07 final LayoutParams layoutParams = new FrameLayout.LayoutParams(LayoutParams.MATCH_PARENT, Jan 15 19:57:09 LayoutParams.WRAP_CONTENT, Gravity.BOTTOM | Gravity.CENTER_HORIZONTAL); Jan 15 19:57:34 Mattx: Let me know if Romain Guy's article helps Jan 15 19:58:03 after googlign around for a bit Jan 15 19:58:12 who here know how to open a pdf inside an app? Jan 15 19:58:30 <_Auron_> I. hate. layouts. Jan 15 19:58:40 <_Auron_> I've spent over an hour trying to get marquee and scrollview to work. Jan 15 19:59:18 mantas322: Any reason you don't want to use an intent to open it in another app as that will probably be easier? Jan 15 19:59:44 the reason is im a noobie Jan 15 20:00:05 the thing is, most stock web browsers dont support pdfs either Jan 15 20:00:41 use PFDBox Jan 15 20:00:43 parse that pdf Jan 15 20:00:47 PDF Jan 15 20:00:54 your app will be a bit large though Jan 15 20:01:00 +10MB I think Jan 15 20:01:19 okay, Jan 15 20:01:21 thanks Jan 15 20:01:31 eh, lots have PDF readers though. google docs will, adobe of course has a horrible one that technically works, and there are a million others Jan 15 20:01:32 aah Jan 15 20:01:40 you could always start an intent to open the pdf in another app Jan 15 20:01:40 mantas322: There is an android library that does it. https://github.com/JoanZapata/android-pdfview Jan 15 20:01:50 nide Radther Jan 15 20:01:53 nice* Jan 15 20:01:59 now I can take my Android phone list to Android Jan 15 20:02:14 oh wait.. that’s just a viewer.. Jan 15 20:02:17 I need a parser :/ Jan 15 20:02:42 tricknology_: parser for what? Jan 15 20:02:50 pdf files Jan 15 20:02:54 mattblang? Jan 15 20:03:04 tricknology_: hey man! haha, yeah. Jan 15 20:03:10 aah nice :) Jan 15 20:03:11 tricknology_: mattblang is my more professional name Jan 15 20:03:22 I need to stop using an alias Jan 15 20:03:45 I don’t think Tricknology will make it far in the professional programmign worls lol Jan 15 20:04:06 doesnt have a “trustable” ring to it Jan 15 20:04:12 I prefer people to not know who I am Jan 15 20:04:18 so I can make snide comments without consequence Jan 15 20:04:25 lol Jan 15 20:04:29 what about social responsibility? Jan 15 20:04:45 oh people will know Jan 15 20:05:22 I don't do it much here, but in the Unity dev chat, people say "Can anyone point me to a tutorial on how to start making an MMO? I have no programming experience but I'm willing to learn! Thx!" Jan 15 20:05:30 So..I mean...you know... Jan 15 20:05:32 I like to keep my name ambiguous... Jan 15 20:05:44 hi can anyone point me in the direction of a android theme source code so I can play around with it please Jan 15 20:06:02 I'm just getting started doing dev for the android platform, learned the syntax and functions today Jan 15 20:06:10 lol Jan 15 20:06:27 c-c-c-combo breaker Jan 15 20:06:36 yeah not trolling Jan 15 20:06:54 got the SDK installed with eclipse etc on my arch linux box here Jan 15 20:07:14 And you just learned the syntax and all the functions Jan 15 20:07:15 Must have taken 3 months to set up. Jan 15 20:07:16 perfect Jan 15 20:07:18 running CM11 on my S4 Jan 15 20:07:27 lol gman23.. oh I know Jan 15 20:07:29 Hi can you point me in the right direction for Making an MMO where the main character opens different types of pdfs. Jan 15 20:07:39 lmao Jan 15 20:07:42 hahahaha Jan 15 20:07:43 lol Jan 15 20:07:56 I'm pretty sure you can do that in Second Life Jan 15 20:07:57 I'd like to get source for some theme so I can learn from it by example Jan 15 20:08:02 heh Jan 15 20:08:07 lol mantas322 Jan 15 20:08:07 pure gold Jan 15 20:08:24 so just a bunch of asshat trolls itc amirite? Jan 15 20:08:25 such a downhill slide Jan 15 20:09:25 you’re in a safe place.. at least this isn’t ##Java Jan 15 20:09:29 so serious Jan 15 20:09:51 ##java is ridiculous Jan 15 20:10:04 well tricknology_ can you give me a resource where there is apk java source for a theme so I can study it Jan 15 20:10:06 RegulusBlack: By source for themes what do you mean? Jan 15 20:10:07 someone was saying something about kim jong cheeser Jan 15 20:10:08 Or "which engine should I use: Unity or Unreal. Unreal costs more ($20/mo, yuck!) but it looks decent. I've never made a game but I wanna make sure I start it properly by picking the best engine." Jan 15 20:10:28 gman23 does the game stop working if you stop paying $20/month? how does it check? Jan 15 20:10:30 apk java source? Jan 15 20:10:36 Radther: I imagine there is some source code for a theme already made you know that calls all the images etc Jan 15 20:10:47 HevvyMetal: You can pay once and not pay again. Jan 15 20:10:50 wait what? Jan 15 20:10:51 You just don't get updates. Jan 15 20:10:53 HevvyMetal, Only need to pay 20/mo if you want updates. Jan 15 20:10:56 you want to learn themeing? Jan 15 20:10:58 Yup Jan 15 20:10:59 ncie Jan 15 20:11:01 with drawables? Jan 15 20:11:01 nice Jan 15 20:11:26 tricknology_: no I'll make my own images just need the source code so I can start making it Jan 15 20:11:33 for $20, Unreal is practically a steal Jan 15 20:11:39 yet some people still think it's too expensive Jan 15 20:12:04 what kind of game did yu omake gman23? Jan 15 20:12:30 I used to work at SkyVu Entertainment. Made a few Battle Bears games. Now I'm working on my own project Jan 15 20:12:36 I started as a web programmer, the moved onto some java and C++ years ago. now getting into android java Jan 15 20:12:39 gman23: It's a matter of perspective. If you just decided one day that you wanted to make a game and then find out it costs money you get a bit turned off. If you are realistic then it is a great price. Jan 15 20:12:41 I was also the voice of Wil Jan 15 20:12:57 but I guess the android-dev irc is not going to help thanks anyway Jan 15 20:13:03 there's lots of free icon sites DragonPunch just google Jan 15 20:13:05 Radther: I understand that Jan 15 20:13:43 RegulusBlack: I am going to recommend what I also recommend. http://www.bignerdranch.com/we-write/android-programming.html Jan 15 20:13:43 It's more of how big of a tell that is that someone is new Jan 15 20:14:07 k thanks Radther Jan 15 20:14:07 RegulusBlack: It is by far the best simple introduction to how android is structured. Jan 15 20:14:10 and that they want "the best engine" Jan 15 20:14:30 I'll check it out, thanks Jan 15 20:14:33 gman23: Yeah, the "best engine" is very subjective. Jan 15 20:14:35 dukebuild Jan 15 20:14:49 and some docs RegulusBlack Jan 15 20:14:50 http://developer.android.com/guide/topics/ui/themes.html Jan 15 20:14:54 yeah i hate getting asked questions "would you use X or Y" without any background Jan 15 20:15:01 it depends... Jan 15 20:15:09 and a tutorial.. Jan 15 20:15:10 http://www.vogella.com/tutorials/AndroidStylesThemes/article.html Jan 15 20:15:21 Vogella is generally decent. Limited examples btu they will get the ball rolling Jan 15 20:15:26 It's like people who ask for computer recommendations without any context as to what they will be doing with it. Jan 15 20:15:34 tricknology_: I had gone over that actually and it wasn't very helpful for what I'm trying to do Jan 15 20:15:40 right but thse guys did that 20 times in an interview earlier this week tricknology_ Jan 15 20:15:42 that's when I tell them to buy Alienware Jan 15 20:15:44 Vogella or docs? Jan 15 20:15:49 "would you paint it white or yellow???" Jan 15 20:15:55 or well it depends right? both can work Jan 15 20:16:03 so tired of it Jan 15 20:16:09 wow was that link to the big nerd ranch yet another troll? I'm not paying for shit Jan 15 20:16:19 anything you have to pay for is going to be a bunch of bullshit Jan 15 20:16:25 paying for what RegulusBlack ? Jan 15 20:16:32 lol a book Jan 15 20:16:37 It is recommended, really Jan 15 20:16:46 keep it civil this isn't the typical irc asshole channel ok RegulusBlack Jan 15 20:16:49 HevvyMetal: tricknology_ suggested that I look over http://developer.android.com/guide/topics/ui/themes.html Jan 15 20:16:58 and? Jan 15 20:17:00 but that guy wants money Jan 15 20:17:03 waht no Jan 15 20:17:08 thats google’s official docs Jan 15 20:17:11 dude's trying to get me to buy crap Jan 15 20:17:15 oops Jan 15 20:17:17 wrong url Jan 15 20:17:21 this guy wants money: http://www.bignerdranch.com/we-write/android-programming.html Jan 15 20:17:24 this one http://www.bignerdranch.com/we-write/android-programming.html Jan 15 20:17:32 yeah that ^ Jan 15 20:17:42 really it wil help you Jan 15 20:17:48 but if you don’t want to buy anythign you don’t have to Jan 15 20:17:53 tricknology_: sorry, had to step away from desk. haha, I lol'd at your comment "it doesn't have a trustable ring to it" Jan 15 20:18:00 tricknology_: the problem is, managing two profiles becomes a super headache Jan 15 20:18:01 there is a lot of free material out there Jan 15 20:18:02 lolol Jan 15 20:18:05 I'm not buying shit, I'm more of a Free and open source kind of guy Jan 15 20:18:08 yeah Jan 15 20:18:11 and my git is already tricknology Jan 15 20:18:14 if it's not free I'll pirate it Jan 15 20:18:18 tricknology_: so now I just have a mattblang email only, and just forward it Jan 15 20:18:23 dude dont worry RegulusBlack Jan 15 20:18:25 so if that book is good then I'll just torrent that Jan 15 20:18:32 shouldn't you be on #android-root RegulusBlack ? Jan 15 20:18:33 Do whatever you feel is necessary Jan 15 20:18:35 tricknology_: though, Chrome has profiles now,w hich would make it a whole lot easier Jan 15 20:18:53 no HevvyMetal because now I'm a developer Jan 15 20:19:01 * HevvyMetal should know better than to respond to a nick like RegulusBlack Jan 15 20:19:03 RegulusBlack, use Vogella Jan 15 20:19:04 it’s free Jan 15 20:19:08 has working examples Jan 15 20:19:16 http://www.vogella.com/tutorials/AndroidStylesThemes/article.html Jan 15 20:19:17 done Jan 15 20:19:20 thank you Jan 15 20:19:21 what apps do you have on the store RegulusBlack ? Jan 15 20:19:28 I work with code though not bullshit Jan 15 20:19:35 (i hate that question at interviews) Jan 15 20:19:37 uh huh perl code? Jan 15 20:19:39 HevvyMetal: none yet I just started today Jan 15 20:19:43 what question tricknology_ Jan 15 20:19:51 RegulusBlack: IntelliJ changed my attitude on that a litle Jan 15 20:19:51 what apps do you have on the app store Jan 15 20:19:55 so go back to #android-root RegulusBlack Jan 15 20:20:02 I have one that won a national competition but I can;t release it :( Jan 15 20:20:06 why HevvyMetal ? Jan 15 20:20:15 why do you hate that quetions tricknology_ ? You do't have any? Jan 15 20:20:22 RegulusBlack: Why would you pay a developer to teach you how to develop right! That's silly! Jan 15 20:20:24 I have a couple Jan 15 20:20:27 don't you hate the guess the technology quesitons worse?' Jan 15 20:20:31 so why do you hate the question tricknology_ ? Jan 15 20:20:42 because I can’t show them my best two Jan 15 20:20:42 because free and open source world is better yiati Jan 15 20:20:51 why not tricknology_ ? Jan 15 20:20:57 are they porn apps? why can't you show them? Jan 15 20:21:05 one is password protected. so when I leave the company I wont be able to access it Jan 15 20:21:06 mantas322 can you launch another app to view the PDF? Jan 15 20:21:25 RegulusBlack: Pirated books are not free/open source Jan 15 20:21:28 another I don’t have permission to release yet Jan 15 20:21:38 I did a sweet prototype that isnt released :( Jan 15 20:21:42 well you can now and the other one tricknology? you dont have to be able to access it it just has to be ON the play store send them screen shots tricknology_ Jan 15 20:21:53 oh well that’s legit then Jan 15 20:22:06 HevvyMetal, tricknology_ what are yall talking about? Jan 15 20:22:16 RegulusBlack: Can you give me the links you find please, when you're done? Jan 15 20:22:18 “What apps do you have on the app store” interview question Jan 15 20:22:22 yiati: true, so if it's not free then pirate it. I'll acquire the information I need one way or another and never pay a cent Jan 15 20:22:27 I want to know about theme stuff too Jan 15 20:22:29 thx Jan 15 20:22:32 g4u RegulusBlack Jan 15 20:23:02 http://www.vogella.com/tutorials/AndroidStylesThemes/article.html Jan 15 20:23:10 Themes are legit Jan 15 20:23:14 tricknology "I have the famous 'Scotch App' .... Am I Hired yet?" Jan 15 20:23:22 tricknology_: someone mentioned a porn app. what if it was a really, really awesome porn app. like badass animations, zero bugs, all the stops. What would you do if interviewing for a full time Android position Jan 15 20:23:28 I'm thinking they generate a lot of money too Jan 15 20:23:51 I would warn them that the content is explicit but it’s badass Jan 15 20:24:01 and doesnt necessarily reflect my views but I do like $$ Jan 15 20:24:09 tricknology_: haha Jan 15 20:24:23 I checked out Grindr Jan 15 20:24:29 it seemed interesting Jan 15 20:24:38 tricknology_: haha, heard so much about it Jan 15 20:24:42 "With my porn app, you can watch porn AND set it to vibrate in different patterns! Then you can watch and play at the same time!" Jan 15 20:24:48 RegulusBlack: For certain things free/open source things are better. If the paid option is the best then your previous arguement about free/open source being better is invalid Jan 15 20:24:56 my coworker made an iOS app that all it does if play music and vibrate Jan 15 20:24:59 is* Jan 15 20:25:05 Apple store rejected it once Jan 15 20:25:09 gman23 lol!! Jan 15 20:25:27 My idea. You all saw it. I have logs. Jan 15 20:25:30 No one copy me Jan 15 20:25:37 I have better ideas. Jan 15 20:25:39 R C TM Jan 15 20:25:41 Google has logs Jan 15 20:25:43 but i wont share them Jan 15 20:25:48 stumbled across them once Jan 15 20:25:48 you just have to trust me. Jan 15 20:25:58 I hate that this is all logged. Jan 15 20:26:05 makes me halt my satire a bit Jan 15 20:26:13 mantas322: Is this the time where you ask for funding? lol Jan 15 20:26:13 can't go FULL satire.. Jan 15 20:26:34 susre you can, just spoof your IP and make a smurf account Jan 15 20:26:35 I don't need funding, I write apps for love. Jan 15 20:26:36 yiati, I was creating a simpler example where the image is not added to the layout programmatically. then I tried what you mentioned about fillViewport but the result is the same. Jan 15 20:26:36 "I have great ideas, but I won't share them. You just have to trust me. Please fund me at my kickstarter, indiegogo, and others" Jan 15 20:26:49 here is what I have and what I want: http://i.imgur.com/dwi29Ib.png and the layout I'm using https://gist.github.com/anonymous/cfe40a49bd54db515b1e Jan 15 20:27:03 “And I want you to program it but you have to work for equity" Jan 15 20:27:13 lol Jan 15 20:27:36 lol Jan 15 20:27:37 “And sign this NDA and non-competition agreement" Jan 15 20:27:38 Rev. Share is the best thing to ever come about Jan 15 20:28:01 “OK so it’s an app to check your e-mail and texts IN ONE!" Jan 15 20:28:10 holy shit... Jan 15 20:28:15 how do I sign? Jan 15 20:28:35 you jsut did.. the logs.. Jan 15 20:28:48 Best innovation in mobile technology since calling... Jan 15 20:28:51 lol so the themes are just a XML file that calls all the images a built in functions lmao Jan 15 20:28:53 ok ive got to get back to the task at hand Jan 15 20:28:57 good times yall Jan 15 20:29:06 see ya Jan 15 20:29:12 Have fun! Jan 15 20:29:13 tricknology_: see ya, good luck with your porn app Jan 15 20:29:18 ^ Jan 15 20:29:30 You can't make it vibrate while you watch though. That idea is mine. Jan 15 20:29:37 But I'll sell it to you for rev share Jan 15 20:29:37 I’m goign to make a porn app just because Jan 15 20:29:40 lol Jan 15 20:29:47 60% Jan 15 20:29:49 sell ti to fleshlight Jan 15 20:29:51 gman23 how much have you made on re share? Jan 15 20:29:55 Hello, my app was removed from the google play store and I still don't know why.. Could you check out the post here please? https://productforums.google.com/forum/?utm_medium=email&utm_source=footer#!category-topic/play/p-jwgV5HY0M Jan 15 20:29:56 the fleshlight will be a case Jan 15 20:30:01 i'm so tired of this work for equity stuff too Jan 15 20:30:12 HevvyMetal: I don't work for rev shares, lol Jan 15 20:30:21 me either Jan 15 20:30:34 i love the people who say they have a $1mln idea and want to rev share 50%:50% Jan 15 20:30:43 well shit why dont tehy sell shares to investor for 50%? duh? Jan 15 20:30:45 what about 30%? duh Jan 15 20:30:48 these people are clueless Jan 15 20:30:54 and i'm so tired of the NDA stuff Jan 15 20:31:09 go sign this 10 page NDA (which is unenforcable anyway) so I can tell you about my twitter clone Jan 15 20:31:15 but with social netowrking and lolcats! Jan 15 20:31:25 LOL Jan 15 20:31:29 now I just sign them because they are meaningless since no consideration was paid Jan 15 20:31:40 but i'd really like to tell them all to take a flying fuck and probably should Jan 15 20:31:42 Someone forgot their NDA and recorded it on their iphone once Jan 15 20:31:45 orkun1675: The app screen shots have album pictures in them which gets flagged by googles checker thing. Jan 15 20:31:47 it was a trip Jan 15 20:31:54 dude your app got remoced because of the screenshots Jan 15 20:31:58 ^ Jan 15 20:32:10 andhat was there super cool app idea? was it even NDA able tricknology_ ? Jan 15 20:32:21 lol people are retarded HevvyMetal ... just make an app that has lolcats and dick and fart jokes that you can press on the cats and they say olong johnson and charge $1 for the DL Jan 15 20:32:31 man this Dell XPS 13 2015 model looks better than anything else Jan 15 20:32:31 I can’t say, NDA and im still workign on it Jan 15 20:32:35 Radther: Really? But they are downloaded via the last.fm API and I already have their logo and stuff Jan 15 20:32:41 It’s legit but not the way they want it Jan 15 20:32:48 I suggested something that would REALLY make it legit Jan 15 20:32:53 but they were like meh Jan 15 20:33:01 what are yall thinking about the back button behavior these days Jan 15 20:33:03 I was gonna get a macbook air, but now I want this XPS 13 , the screen has almost no bezel Jan 15 20:33:06 im noticing Google apps go back in hiearchy Jan 15 20:33:14 instead of back to last thing, as historically its been Jan 15 20:33:16 soooo.. I have the option I think, to pursue that Jan 15 20:33:28 Radther: what should I do about these album pictures so they don't get flagged? Jan 15 20:33:33 orkun1675: It doesn't matter if they were "legit" or not. The computer sees them and marks it as a problem. Jan 15 20:33:41 orkun1675: Remove them completely. Jan 15 20:33:59 Mavrik, I still have the same problem. if you have a minute can you check this simplified version please? http://i.imgur.com/dwi29Ib.png https://gist.github.com/anonymous/cfe40a49bd54db515b1e Jan 15 20:34:07 RegulusBlack, sadly that would probably sell Jan 15 20:34:38 tricknology_: fuck yeah it would.. thank God for Google because with them we can all profit big $$$ Jan 15 20:34:44 orkun1675 I think its the lastfm logo in SS4 Jan 15 20:34:44 Radther: but is it possible to re-enable my app, I don't want to loose the stats for a automated system false possitive Jan 15 20:35:10 How come Android Studio only allows me to rename the last part of my package Jan 15 20:35:17 Any way I can edit the middle part? Jan 15 20:35:21 do you DL it from the site to get it there? Jan 15 20:35:25 lots of people using android now adays you can target lots of people to make money Jan 15 20:35:32 or is it in you /res/drawable/ folder? Jan 15 20:35:50 orkun1675^ Jan 15 20:36:01 tricknology_: whats wrong with the logo? Jan 15 20:36:54 They probably saw it and knew it wasn’t yours Jan 15 20:37:08 but you’re using it in your app Jan 15 20:37:16 although the API says it should be displayed Jan 15 20:37:19 Mattx: The TextView has margin bottom which is probably the reason for the image being slightly lower then you want. Jan 15 20:37:32 but last.fm requires me to but it there because I am using their API Jan 15 20:37:50 Can you contact Google and get a little more explanation on the exact item? Jan 15 20:37:58 it’s eithet the album art.. or the logo Jan 15 20:38:01 I wanna say its the logo Jan 15 20:38:07 remove that screenshot Jan 15 20:38:19 so why I am punished here? all my appeals are also sent automated responses Jan 15 20:38:29 also maybe download it from their site if it’s available somewhere, and not keep it in your /res/ folder Jan 15 20:38:42 there are so many apps on the store, it’s hard to respond to al Jan 15 20:39:04 but the letter says that you used intellectual property in one of your screenshots Jan 15 20:39:20 and im betting it’s the lastfm logo.. and Google has no way of telling if the API requires it or not Jan 15 20:39:21 What should I say in my appeal exactly. Would be very delightful if you could help me with this part Jan 15 20:39:54 I’ve never had to appeal btu I would ask for clarification on what screnshot was flagged - and go through your screenshots and list where the content is coming from Jan 15 20:40:03 with specific passages from the API terms Jan 15 20:40:14 Radther, the ImageView being lower than what I want is not the problem. the problem is that the ImageView is bigger than the screen Jan 15 20:40:23 citing that you have permission per the terms and conditions of lastfm Jan 15 20:40:36 I don't think it's the last.fm logo that's causing the problem, I think it's the album art. Jan 15 20:40:38 The email from google came when I uploaded the 1.2 version which didn't have the lastfm logo yet, so probably that's not it. Though maybe their bot may be mad at 2 things now. Jan 15 20:40:42 any idea guys? I've spent the last two days with this problem :| http://i.imgur.com/dwi29Ib.png https://gist.github.com/anonymous/cfe40a49bd54db515b1e Jan 15 20:40:47 do you have permission to use tha lmub art? Jan 15 20:40:52 that art is so small though.. Jan 15 20:41:01 but it is google.... Jan 15 20:41:07 "Micromax accused of remotely installing unwanted apps, showing ads in notification bar" with friends like these :D Jan 15 20:41:20 Mattx: You could set the layout_height to a set size like "250dp" Jan 15 20:41:24 Have you checked this? “Your app icon and promotional screenshots must not contain images that appear confusingly similar to existing products.” Jan 15 20:41:51 Check it how? Jan 15 20:41:53 no way, I don't want to hardcode the height, the app is intended to be used in many different screen sizes Jan 15 20:42:03 idk.. reverse image search it Jan 15 20:42:09 maybe there is already an app using that stock logo Jan 15 20:42:12 tricknology_: Even if he had permission to use the album art it would still get flagged because of googles silly system. Jan 15 20:42:26 yeah I understand, that’s why he should cite and explain in his appeal Jan 15 20:42:30 Mattx: You could set the size programmatically based on the screens size when it is run. Jan 15 20:42:45 that it came from the API and he has permission as per the TOS Jan 15 20:42:55 for the art and the logo Jan 15 20:43:02 specifically citing the exact wordage Jan 15 20:43:09 Do I have permission to use album covers that the TOS grants me? I am not sure of that part.. Jan 15 20:43:14 it's not the way to go Radther, the scrollview should be taking care of the sizes of its content Jan 15 20:43:17 you should get sure Jan 15 20:43:17 tricknology_: Ahh ok. Getting an appeal of some sort is definitely the way to go. Jan 15 20:43:23 oh heck yeah Jan 15 20:43:30 i mean you could fix one thing and republish it Jan 15 20:43:32 yeah i was wondering are fart apps the hello world for iOS programmers? Jan 15 20:43:43 btu something else is wrong and you get you app axed completely Jan 15 20:43:45 something like that right Jan 15 20:43:59 and then the next thing to write is some lolcats flickr feed Jan 15 20:44:16 So are you sure that the Album art and the LastFM, YouTube logo's are the only problems here? Jan 15 20:44:24 no Jan 15 20:44:25 lol Jan 15 20:44:26 Please tell me if you see anything else. Jan 15 20:44:30 that’s why you have to figure that out Jan 15 20:44:49 dont forget your app’s logo Jan 15 20:44:51 Mattx: The ScrollView lets it's children be as big as they want to be, you need to set the height of it's child views if you want them to be smaller. Jan 15 20:45:07 I know you can't be sure, just asking :) I spent hours going through and didn't see the album covers.. Jan 15 20:45:32 can i send (easily) send an email from background service using owner's email? Jan 15 20:45:38 album covers, your MUPA logo, and the last.fm logo Jan 15 20:45:52 thats all the potentially infringing material in your app Jan 15 20:45:52 not the youtube logo on SS 6 ? Jan 15 20:45:53 or get email credentials and the smtp server as well Jan 15 20:46:23 I don’t see it.. Jan 15 20:46:29 Radther, you mean there is no other way to put an ImageView of the height on the screen other than programmatically? :| Jan 15 20:46:34 lower left? Jan 15 20:46:41 weird, I really thought the ScrollView would take care of it Jan 15 20:46:59 Mattx: In this case not that I can think of. Jan 15 20:47:08 Sorry I just recently added the logo, thinking it was meant to be there. So I will also include YouTube TOS. Jan 15 20:47:26 oh Jan 15 20:47:28 can’t hurt Jan 15 20:47:30 The Dropbox link is a bit outdated. Jan 15 20:47:43 jsut be thorough and make it seem like you really are trying to resolve this Jan 15 20:47:44 Mattx: The scroll view is doing what it thinks is correct which is allowing you to scroll it's children if they go off the screen. Jan 15 20:49:20 tricknology_: can you please tell me why eclipse is doing this when I bash it now ... says it needs java 1.6 ... WTF http://i.imgur.com/jFu9Zc0.png Jan 15 20:50:01 because you do Jan 15 20:50:03 for eclipse Jan 15 20:50:15 One more question: the last fm api doesn't actually grant me the right to use album cover pictures in my app (not included in tos anywhere). Am I guilty for this because I used 30pixel album covers under the last fm link? Jan 15 20:50:17 so what then? just pacman -S jdk1.6 ? Jan 15 20:50:22 apt-get java1.6? Jan 15 20:50:29 sure Jan 15 20:50:36 maybe you want jre tho Jan 15 20:50:37 arch doesn't have apt it uses pacman Jan 15 20:51:57 If I am guilty, can I state that I wasn't aware of this and was not given specific information, and get my app re enabled without loosing the stats? Jan 15 20:52:16 If I am not guilty, how can I prove it? Jan 15 20:52:23 holy crap, Android Studio just appended my Windows USers name into a class i made Jan 15 20:52:28 intrusive... Jan 15 20:52:57 prob has to do with your java path? Jan 15 20:53:36 can't eclipse be used with java jdk 8? Jan 15 20:53:42 mantas322: what was that? MstrCheef2005? Jan 15 20:53:48 JDK = development kit Jan 15 20:53:52 you need runtime environment Jan 15 20:53:56 no. Jan 15 20:54:05 it was AlcoholicSemenThrower420 Jan 15 20:54:10 nasty Jan 15 20:54:11 lol Jan 15 20:54:22 that sounds like a good package name Jan 15 20:54:23 go with that Jan 15 20:54:39 man Jan 15 20:54:46 the Play store is shafting me part of a star Jan 15 20:54:50 that aint no .3 of a star Jan 15 20:55:02 so many people come here to bitch and moan about the play store Jan 15 20:55:08 im just kidding tho Jan 15 20:55:10 lol Jan 15 20:55:14 we should make a channel for #bitterplaystorepeople Jan 15 20:55:33 compared to the apple alternative, the playstore is like some sort of valhallah Jan 15 20:55:34 seriously this is 1 part tech support channal and 1 part sobbing in their cups about their unfair treatment on play Jan 15 20:55:44 in what way mantas322 ? Jan 15 20:55:54 lots of reasons I wont discuss Jan 15 20:56:17 I ment that as a positive Jan 15 20:56:27 valhallah is the swedish heaven right? Jan 15 20:56:29 Please tell me: is it legal to use very small album cover photos downloaded from Last.FM in my app? Jan 15 20:56:40 better ask #law Jan 15 20:56:53 orkun1675: it doesn't matter if its legal Jan 15 20:57:01 their is channel for that? Jan 15 20:57:20 what does matter? Jan 15 20:57:28 yeah but they mainly talk about "freeman of the land" and "filming the police" things in there. Jan 15 20:57:41 and from time to time, they make fun of british lawyers and their silly wigs Jan 15 20:57:43 it matters what google's stupid algorithm cares about Jan 15 20:57:44 so willy Jan 15 20:57:55 hm. has anyone encountered this before? http://stackoverflow.com/questions/27346359/android-relativelayout-view-order Jan 15 20:57:56 silly* Jan 15 20:58:08 my relativelayout views are getting reordered at runtime, though I'm not doing anything in code Jan 15 20:58:23 (as far as I can tell. regrettably this is a very complex area of this app :( ) Jan 15 20:58:43 take it out of your app and put it in a sample app Jan 15 20:58:49 mikedg_: but if it is legal can't I place an appeal for it? Jan 15 20:59:03 no Jan 15 20:59:15 it's legal to put my wang as the app icon for my app Jan 15 20:59:26 google isn't going to allow that through an appea Jan 15 20:59:28 l Jan 15 20:59:55 soemwhere there's a joke in there^ Jan 15 20:59:55 So there is no way to re enable my removed app ? Jan 15 21:00:00 "they probably wont even see it" Jan 15 21:00:10 heuhuehue Jan 15 21:00:34 There are Mp3 download apps in the top 50 and google comes bans mine !! Jan 15 21:01:25 I will upload a version without Album Cover Photos wright away if they would enable it again Jan 15 21:01:33 Will they do that? Jan 15 21:01:56 hey mikedg, another name i rmemeber from 4 years ago Jan 15 21:01:59 thats TWO people Jan 15 21:02:26 they might Jan 15 21:02:32 they dont make it clear why they removed your app Jan 15 21:02:40 they might have just removed it because they dont like you Jan 15 21:03:04 are there alternative android app stores? Jan 15 21:03:11 Hi. I'm looking to pinpoint the exact location in a horizontal plane of the device w.r.t. a central point using accelerometers and gyroscope. A method recommends using the double integral of the gyroscope values to get an approximate idea, but still it is very erroneous and not fit for what I'm trying to make. Any suggestions? Jan 15 21:03:11 the amazon store Jan 15 21:03:12 or maybe just move to iOS.. Jan 15 21:03:25 isnt it true that once ONE of your apps violates the rules, googleplay freezes all of them>? Jan 15 21:03:37 mtyamantau: that's not all the feasible Jan 15 21:03:42 but if you solve it, please publish Jan 15 21:03:56 mantas322: no Jan 15 21:04:00 i have 3 suspended apps Jan 15 21:04:08 cause of the penis thing? Jan 15 21:04:29 just curious Jan 15 21:04:46 I read somewher before that they would do that... but alot has changed in the last 4 years Jan 15 21:04:52 there's a Android Studio now Jan 15 21:04:55 Ice Cream Jan 15 21:05:01 and design view for xml layouts Jan 15 21:05:04 shit is CRAZY! Jan 15 21:05:30 orkun1675, u dont know any other appstores other than g play? Jan 15 21:05:32 theres a ton Jan 15 21:05:43 theres amazon Jan 15 21:05:56 not really. Jan 15 21:06:12 blackmart Jan 15 21:06:19 which i dont know its legit really Jan 15 21:07:31 What should I tell google so they are sorry for me and give me one more chance so I can remove this album cover stuff guys? Jan 15 21:07:43 anyone using thunderbird? it seems to ignore ics half the time Jan 15 21:08:02 thunderbird for android? only using it for lin Jan 15 21:08:35 orkun1675 tell them, that you have no regrets, and that THEY are the problem. Jan 15 21:08:42 why isnt google doing something about people who buy an app, copy the APK and do a refund and reinstall Jan 15 21:08:43 i will also use amazon and blackmart then Jan 15 21:08:51 orkun1675: tell them your lawyer will be contacting them Jan 15 21:08:57 bynarie Amazon's app was actually removed not long ago for them integrating their store into the Play version. was kind of funny, I caught the re-released one when it was still only at 1000 downloads Jan 15 21:09:01 i unpublished my apps from the play store Jan 15 21:09:39 good I will Jan 15 21:09:45 hm Jan 15 21:10:27 orkun1675, i dont think they give a damn if you have a lawyer or not... google has billions. they got more lawyers than lines of code in your app Jan 15 21:10:37 mikedg__ out of curiousity, why did three of your apps get froze??? copywright ?? Jan 15 21:10:40 copyright* Jan 15 21:11:30 1 was because it interefered with other systems or something, another i got no feedback (presumably it was because it was a rooting app), the 3rd was for impersonation of google's open source authetnciator app Jan 15 21:11:57 hmm Jan 15 21:12:05 too advanced for me Jan 15 21:13:28 Hi , I am working with a DrawerLayout , when i click on the outside Area of Drawer layout the drawer closes itself , I do not want it to close that way Jan 15 21:13:44 please help ? I tried google but no good resource Jan 15 21:13:57 hm Jan 15 21:14:45 maybe something like getParent().requestDisallowInterceptTouchEvent(true); Jan 15 21:15:16 ah wait that would work within drawerlayout Jan 15 21:15:54 I am building an app that will sometimes launch an activity from the background (a bit like receiving a phone call). Obviously I don't want to do this when the user is currently in a phone call, or doing a video Hangout/Skype call. Jan 15 21:15:57 chinu: do more googling Jan 15 21:16:02 setDrawerLockMode(int) Jan 15 21:16:03 Is there a good way of detecting these different states? Jan 15 21:16:27 ejcweb: thats horrible, i hope you have the best reason for it ever Jan 15 21:16:42 mikedg__, been a while Jan 15 21:16:47 mikedg__: It's a good reason. Jan 15 21:16:58 canadiancow: i was in north korea for 7 months Jan 15 21:17:09 ejcweb: what's your reason? Jan 15 21:17:10 TelephonyManager can tell me the call state, but I don't know if there's a generic way that will catch things like Hangouts calls. Jan 15 21:17:49 ejcweb: the closest thing you can do is blacklisting certain package names if its activity is in the foreground Jan 15 21:18:39 mikedg__: It's a custom phone call style app of sorts. Hard to explain - but coming to the foreground is an expected behaviour. Jan 15 21:18:57 why dont you use an overlay? Jan 15 21:19:05 if you are going to do something really stupid, at least do the overlay Jan 15 21:19:14 canadiancow: where have you been Jan 15 21:19:23 here Jan 15 21:19:28 around Jan 15 21:19:29 everywhere Jan 15 21:19:50 mikedg__: What's an overlay? Jan 15 21:20:11 like facebook's chatheads Jan 15 21:20:17 or toasts Jan 15 21:20:23 mikedg___ : Thanks :) Jan 15 21:20:33 It worked for me Jan 15 21:20:57 mikedg__: I see. I don't think that'll quite work, but will have a think. Jan 15 21:23:12 * mikedg__ spears ejcweb Jan 15 21:24:44 Does anyone know how to add a custom view programmatically in android without knowing what the ViewGroup is? Jan 15 21:26:24 do you know what any viewgroup is? Jan 15 21:26:37 how do you intend to add it if you dont know how to specify size or location? Jan 15 21:26:38 if I wanted to add a robolectric config "properties file on your classpath", where exactly should that go in a typical gradle project? Jan 15 21:27:19 mikedg__: The custom view has a size and location. I am trying to make the view and then add it to the viewgroup to be drawn. Jan 15 21:27:29 I may have just found the answer though. Jan 15 21:27:38 how does it have a size and location? Jan 15 21:27:52 what is the answer Jan 15 21:28:04 From another View. It's a bit difficult to explain. Jan 15 21:28:50 I got it working! Jan 15 21:30:42 in particular, I'm looking for a specific explanation on the Robolectric Config File: http://robolectric.org/configuring/ Jan 15 21:50:19 I'm not entirely sure I understand what happens in the GCM registering process, but what happens if my app registers to GCM, later uninstalls/reinstalls, and has lost their registration ID (since the reg ID was in SharedPreferences)? Jan 15 21:51:21 Let's say I'm using a 3rd party server like Azure to handle push notifications. How do I stop from a device having multiple registrations? Jan 15 21:58:37 anyone have recommendations for good books to read as an overview/introduction-to-everything of android? Jan 15 21:58:52 I've been doing dev for six months now and I'm still learning *major* new things just by exploring Jan 15 21:59:04 it'd be cool to have a more explainey explanation of what's going on with everything :p Jan 15 21:59:29 has anyone done much playing with Palette? it seems to me like the built in swatches are pretty limiting Jan 15 21:59:38 lahwran: This is the one I used. http://www.bignerdranch.com/we-write/android-programming.html Jan 15 22:00:15 drinfernoo: I haven't had a chance to use it yet. In what ways is it limiting? Jan 15 22:00:33 Radther_: how old is the content? Jan 15 22:00:59 lahwran: Not too old. Most of the basics of android are unchanged, Jan 15 22:01:04 that's what I figured Jan 15 22:01:09 cool, thanks :D Jan 15 22:01:17 anyone else have suggestions? Jan 15 22:01:31 I found it to do a really good job of explaining everything in a simple manor. Jan 15 22:01:42 on an unrelated note, you wouldn't happen to know how to add a margin between a drawableLeft and the text in a TextView, would you? Jan 15 22:02:40 lahwran: Layout_marginLeft on the textview maybe Jan 15 22:03:03 that shifts the icon over too, doesn't it? Jan 15 22:03:15 Also I see this book recommended quite a bit in /r/androiddev http://commonsware.com/Android/ Jan 15 22:03:59 lahwran: Yeah, misread the question. Jan 15 22:04:21 Radther_, it just seems like it doesn't pick colors very well idk Jan 15 22:04:23 lol Jan 15 22:04:59 http://stackoverflow.com/questions/3337371/androiddrawableleft-margin-and-or-padding Jan 15 22:05:00 lahwran: In the text view add drawablePadding Jan 15 22:05:04 tada! Jan 15 22:05:12 I see we found it at the same time :) Jan 15 22:05:21 lahwran: That's literally the same page I found. Jan 15 22:10:48 Radther_: :D Jan 15 22:11:00 I was searching too specifically before, including "listview textview" Jan 15 22:11:28 Learning the correct terms to google can be a bit difficult some times. Jan 15 22:11:38 Anyway, night everyone! Jan 15 22:17:21 is there a way to reference the padding of a build-in View? Jan 15 22:17:40 for example, EditText has a little padding, so when I have a TextView label for a spinner it looks stupid since it is slightly misaligned Jan 15 22:21:52 I feel like putting EditTexts and spinners in line with each other would be a common scenario, maybe I am wrong. How do yall do dropdowns in a registration form? Jan 15 22:28:08 is there a way to tell FasterXML databind reader to deserialize all integer-like numbers into long vs int? Jan 15 22:28:39 i see I can deserialize into BigInteger, but that's too big Jan 15 22:41:10 http://www.reddit.com/r/androiddev/comments/2skckg/a_real_email_from_google_regarding_a_policy/ **** BEGIN LOGGING AT Thu Jan 15 22:43:37 2015 Jan 15 22:44:54 is JakeWharton around? Jan 15 22:45:04 no Jan 15 22:45:14 OK cool Jan 15 22:45:18 I'll be on my way lol **** BEGIN LOGGING AT Thu Jan 15 23:02:31 2015 Jan 15 23:14:17 hey guys, is there any alternative tool to design UI layouts ? Jan 15 23:21:59 so is "Standard Engagement Policies" or "Standard Engagement Terms" a better name ? Jan 15 23:22:07 to ship out to customerz Jan 15 23:27:26 Standard Termination Terms Jan 15 23:27:38 Standard Search & Destroy Terms Jan 15 23:28:55 well Jan 15 23:29:00 i have a novel business model Jan 15 23:29:10 its not that novel really but some ppl think it is Jan 15 23:29:23 but for short term projects i bill in advance (eg, retained services/hotel model) Jan 15 23:29:31 what do you think of that Agamemnus ? Jan 15 23:29:43 whew ok its a netsplit (ban list reset) I thought MY connection was screwed Jan 15 23:29:48 that way i can do short term projects but not get hung out to dry but be able to quote fair pricing Jan 15 23:30:01 ddd they shut you off for browsing too much pron Jan 15 23:30:06 there was no netsplit Jan 15 23:30:26 HevvyMetal, thats perfectly fine. asking for 1/2 up front is normal and shows commitment on both sides Jan 15 23:30:29 I think nothing because I don't know what your idea is Jan 15 23:30:35 oh Jan 15 23:30:39 you mean your freelancing Jan 15 23:30:48 Yes I don't bill half though Jan 15 23:30:50 well i did ask for more retainer up front ddd on longer term projects Jan 15 23:30:57 there was or something happened. the server reset the bans. usually happens when the servers desync, notice, and resync the channel across the server pool Jan 15 23:31:00 but if you don't pay me all the way I get to keep the copyright Jan 15 23:31:02 standard terms Jan 15 23:31:10 like house repossession Jan 15 23:31:11 for long projects i ask for 2 weeks upfront Jan 15 23:31:20 even if you don't pay a $1 Jan 15 23:31:23 it's all mine Jan 15 23:31:31 yeah terms is better than policies Jan 15 23:31:36 policies sounds too arbitrary Jan 15 23:31:42 terms is take it or shove it Jan 15 23:31:45 but that doesn't mean they can't use it then sue for contract violation (allege just to get you to give it over since they would think you couldn't last money wise on a suit) Jan 15 23:31:46 right Jan 15 23:31:51 i just wanted to know which sounds more polite? Jan 15 23:31:58 so asking for half up front on short terms is definitely good Jan 15 23:32:06 i do the same on short term rails contracts Jan 15 23:32:09 yah but do they go for it ddd? some do and some dont Jan 15 23:32:13 thing is if i have a 10 hour project Jan 15 23:32:18 and i spend 2 hours collecting on it Jan 15 23:32:20 yep, if they want it done they do Jan 15 23:32:22 my rate went down 20% Jan 15 23:32:25 the terms would make them understand that I would sue them with every penny I have. Jan 15 23:32:33 so for short term i make them pay up frotn like hotel Jan 15 23:32:38 if they're being tepid about it it shows lack of commitment on their side Jan 15 23:32:40 suing is worthless Agamemnus Jan 15 23:32:44 right ddd Jan 15 23:32:51 It's not the suing that counts Jan 15 23:32:51 sec phone Jan 15 23:32:56 it's the implicit threat Jan 15 23:32:58 fuck suing Jan 15 23:33:00 the point of the upfront is to ensure commitment Jan 15 23:33:01 they dont care about it Jan 15 23:33:04 thats why i ask Jan 15 23:33:11 right other wise they could odesk it to hell and back Jan 15 23:33:12 they care about the possibility Jan 15 23:33:14 well i require, not ask Jan 15 23:33:17 right Jan 15 23:33:17 esp if they want source i need cash in advance Jan 15 23:33:19 sec phone Jan 15 23:33:24 but keep typing i'll read soon Jan 15 23:33:27 but I do use Elance 99% of the time anyway Jan 15 23:33:29 curious how you folks andle it Jan 15 23:33:33 So the money is in escrow Jan 15 23:33:34 yeah if they want any of the source they MUST pay 50% Jan 15 23:34:04 HevvyMetal, all i had. i'm trying to fix my wife's site's CI bbiaf Jan 15 23:34:30 but as a final, asking for 50% on short term and 20-25% for long term is perfectly reasonable Jan 15 23:40:36 Is it exptected that heads-up notifications on L cause onPause to be called on the foreground activity? Jan 15 23:41:45 It's onPause followed by onResume in very quick succession. Jan 15 23:48:26 never noticed Jan 15 23:49:00 how much do you get on elance Agamemnus ? $12/hr? how does escrow work? what about video surveillance? i'd like it to work but i see it as mostly offshore way cheap ratez? but tell me the upside :) Jan 15 23:49:24 your wife does continuous integration? ddd? o.O Jan 15 23:49:31 there is no upside to elance Jan 15 23:49:32 75 dollars an hour Jan 15 23:49:49 i just talked to a millionaire I met on elance Jan 15 23:49:49 $75 rupees an hour maybe Jan 15 23:50:24 no joke Jan 15 23:50:27 75 dollars rupees an hour. Jan 15 23:50:58 yeah which Jan 15 23:51:06 odesk adn elenance seem like ass Jan 15 23:51:11 even guru Jan 15 23:51:24 i think they should shut off the $12/hr shit and just focus on $50/hr+ Jan 15 23:51:30 they'd make more moneh Jan 15 23:51:42 I made a bid yesterday on a Flash->HTML5 conversion Jan 15 23:51:56 few hour job for some quick cash Jan 15 23:52:06 300-500 depending on how they want it done Jan 15 23:52:11 someone bidding $54 won Jan 15 23:52:16 see Jan 15 23:52:22 git gud, Agamemnus Jan 15 23:52:30 it doesn't matter Jan 15 23:52:38 odesk and elance are loserville Jan 15 23:52:40 I got a handful of good contacts from it. Jan 15 23:52:43 i'd like to find a winnerville Jan 15 23:52:56 part of gitting gud is abbrev.ing ur typng Jan 15 23:52:59 you can set your rate whatever you want on those sites, you'll be dominated by 2nd and 3rd worlders Jan 15 23:52:59 Elance focused a lot on the low end the past few years Jan 15 23:53:00 such as Agamemnus ? and did you meet on elance/odesk but do business outside it? :) Jan 15 23:53:06 who will always undersell you Jan 15 23:53:07 of course pfn Jan 15 23:53:13 and it hurts odesk and elance itself Jan 15 23:53:23 do they want 10% of $10/hr or 10% of $50/hr? duh? Jan 15 23:53:26 which do they go for Jan 15 23:53:29 they are idiutz Jan 15 23:53:33 really Jan 15 23:53:43 Elance started focusing on the high end just a few days ago Jan 15 23:53:44 well, $12/hr is a perfectly livable wage in 3rd worlds Jan 15 23:53:49 there was an ad out Jan 15 23:53:54 Even $5. Jan 15 23:54:05 they keep vibrating on that Agamemnus they own odesk too Jan 15 23:54:08 And there isn't that much high-end work really Jan 15 23:54:15 guru.com is still low wage shills Jan 15 23:54:20 oh i need a guru for $5/hr Jan 15 23:54:23 meh Jan 15 23:54:31 dice.com used to be great Jan 15 23:54:35 it was my cash machine Jan 15 23:54:38 One guy, I met on Elance and I contract for the company he works for. Jan 15 23:54:48 end users would bid out lots of dollars ($80+) Jan 15 23:54:48 It's totally legit Jan 15 23:54:55 which was good for the 90s Jan 15 23:55:06 He got a job at that company and gave me some work Jan 15 23:55:08 but i'm interested in hearing whats working now :) Jan 15 23:57:37 yeah early 2000s I was raking in the $ with just tech support and computer repairs Jan 15 23:57:59 I was making $5,000+ / month Jan 15 23:58:10 hard cash and tax free baby Jan 15 23:58:26 tax free? do tell RegulusBlack Jan 15 23:58:29 wasn't even 18 yet Jan 15 23:58:31 were you in the moldives? Jan 15 23:58:40 I wasn't 18 yet it was all under the table Jan 15 23:58:41 oh underage tax free werkers :) Jan 15 23:58:49 nah man it was my own business Jan 15 23:58:54 what else did you do under the table RegulusBlack ? Jan 15 23:59:01 that was tax free? Jan 15 23:59:27 lots Jan 15 23:59:31 i bet Jan 15 23:59:59 been a software programmmer since 15 Jan 16 00:00:12 kewlio Jan 16 00:00:15 all that tech support and repairs was a side job too lmao Jan 16 00:00:28 how old are you now RegulusBlack ? Jan 16 00:00:43 26 Jan 16 00:01:08 super Jan 16 00:01:36 but now I'm getting into android dev so I'll be here quite a lot Jan 16 00:01:42 in this irc chan Jan 16 00:02:08 time to make some big money Jan 16 00:02:21 I have some great ideas and can't wait to get it all made Jan 16 00:04:36 let me ask you all something though, as far as getting paid goes, because I haven't even looked into it yet, but I'm assuming you just register to put your software up on google play store and if you charge for it then the money goes into your paypal->bank account and google keeps transaction fees or something like that right Jan 16 00:04:52 and you probably have to submit your source to google right Jan 16 00:05:28 HevvyMetal: ^ Jan 16 00:06:58 https://www.youtube.com/watch?v=OeaHeXVx3CE Jan 16 00:07:04 it's like this Jan 16 00:07:04 woops wrong chan Jan 16 00:07:14 you don't submit the source Jan 16 00:07:17 you submit the APK Jan 16 00:07:29 As far as getting paid, it's real simple Jan 16 00:07:34 you set up a merchant account Jan 16 00:07:39 link it with Google Play Jan 16 00:07:48 Wait for people to purchase things from you Jan 16 00:07:51 give up Jan 16 00:07:54 delete it all Jan 16 00:08:00 throw your computer out the window Jan 16 00:08:05 enjoy life as a wal-mart greeter Jan 16 00:08:20 right but once it's compiled it can't be decompiled right? I mean yeah you can decompile java, but from the compiled apks? heh probably I guess right. but google will want your source so they know it's not malicious crap right Jan 16 00:08:32 no Jan 16 00:08:40 APK is a zip file Jan 16 00:08:50 google does not want the source nor can it have it Jan 16 00:09:05 no wonder there's so much malicious crap on there then Jan 16 00:10:52 Agamemnus: moar like make a sweet app that is desireable and generate money on the side and continue working as a $80,000 programmer anyway Jan 16 00:11:05 and do tech repairs on the side for end-users Jan 16 00:11:10 like I'm doing now Jan 16 00:12:04 never even had an android until now.. always heard it was an insecure piece of shit Jan 16 00:12:17 so time to figure it all out and make some money on it Jan 16 00:12:48 installed the highly praised cyanogenmod on a S4, I like it. Jan 16 00:13:44 is using BigInteger considered a bad practice? Jan 16 00:14:08 regreddit: depends on what you're doing with it Jan 16 00:14:27 I have to deserialize json into a linked hashMap, and I dont know the data types ahead of time, so FasterXML converts integer-ish numbers into their smallest form Jan 16 00:14:42 which means its unpredictable what I may get Jan 16 00:14:55 hm, android studio 1.1 preview :) Jan 16 00:14:58 You can try Jan 16 00:15:12 BUT it has a deserializaion feature called "USE_BIG_INTEGER_FOR_INTS" Jan 16 00:15:27 which casts all integers into BigIntegers Jan 16 00:15:35 regreddit: could lead to integer bof Jan 16 00:15:47 bof? Jan 16 00:15:56 buffers Jan 16 00:15:58 overflow? Jan 16 00:16:01 yea Jan 16 00:16:03 ah Jan 16 00:16:22 i knwo that the size of the data will always be long or < Jan 16 00:16:35 In the JSONObject class getString method asks for a "name" Jan 16 00:16:47 is that asking for the array key? Jan 16 00:17:08 but i dont want to have to test every thing I get and cast it myself, so I was thinking about using the BigInteger conversion that FasterXML offers Jan 16 00:18:21 try it regreddit Jan 16 00:19:49 ejcweb: really? I wouldn't have expected that :\ Jan 16 00:20:12 honestly I don't like using APIs and IDEs and all that extra bullshit fucking emacs and shit. It's pico/notepad++ for me and just code. android SDK is pretty fucking sloppy Jan 16 00:21:44 ++ Jan 16 00:23:52 or I should say it seems pretty sloppy so far Jan 16 00:25:39 RegulusBlack instantly lost all creditibility Jan 16 00:26:01 and you generally don't want to use biginteger for everything, it's fucking slow Jan 16 00:26:50 private static final byte DEFAULT_BOTTOM_BORDER_COLOR_ALPHA = 0x26; Jan 16 00:26:58 what color Jan 16 00:26:58 is that Jan 16 00:27:16 some shade of blue, transparent Jan 16 00:27:29 how Jan 16 00:27:34 do u check Jan 16 00:27:41 colors are 0xaarrggbb Jan 16 00:27:49 since you got no a, r or g, it is some blue Jan 16 00:28:20 and since your a = 0, it's transparent Jan 16 00:28:50 k Jan 16 00:28:51 ty Jan 16 00:29:00 plug it into any color thing you want, and you'll see Jan 16 00:29:05 RegulusBlack: if you are using notepad++ to do android projects no wonder you think its sloppy Jan 16 00:29:08 use an html page, a website, etc. Jan 16 00:29:19 well, the pico/notepad++ comment is pure troll Jan 16 00:29:21 clearly Jan 16 00:29:26 how do i change CDEBFF hex Jan 16 00:29:30 into that kind of color Jan 16 00:29:37 anyone in their right minds who uses a text editor wouldn't use those editors Jan 16 00:29:57 use the google Jan 16 00:30:01 i use notepad++ but just as a better version of notepad Jan 16 00:30:31 DragonPunch: this will convert int into hex code: private String getHTMLColorCode(int color) { return String.format("#%08X", (0xFFFFFFFF & color)); } Jan 16 00:30:55 notepad++ is not that bad Jan 16 00:31:34 notepadd+ is nice for quickly reviewing files Jan 16 00:31:50 ie need to open random xml file to copy some stuff, notepad++ is perfect Jan 16 00:32:07 (of course if i were better at shell, i'd just grep it up) Jan 16 00:32:45 I can have two methods with the same name right? Jan 16 00:33:04 lasserix: i need hexcode to int function if you have lol Jan 16 00:33:39 whoa this is nuts! http://digg.com/video/fibonacci-sculptures-that-animate-under-a-strobe-light Jan 16 00:33:52 DragonPunch: yeah its called Color.parse Jan 16 00:34:01 make sure to wrap in IllegalArguementException tho Jan 16 00:34:43 g00s wow thank you!! Jan 16 00:34:59 :D i think jesusfreke would dig it too but he's not here Jan 16 00:35:04 nice way tto think abotu textra dimensions Jan 16 00:35:16 lasserix: it takes in a string as a hex? Jan 16 00:35:22 yeah Jan 16 00:35:30 specifically #FFffFF Jan 16 00:35:35 or #FF00ff00 Jan 16 00:35:40 make sure to include the # Jan 16 00:36:48 g00s: stoners gotta love that Jan 16 00:37:16 heh Jan 16 00:39:44 well its a cool visualization for extradimensional space Jan 16 00:40:06 or just a cool visualization of 3d space :P Jan 16 00:40:07 lasserix: yo Jan 16 00:40:07 private static final byte DEFAULT_BOTTOM_BORDER_COLOR_ALPHA = Color.parseColor("#232408"); Jan 16 00:40:11 it doesnt work on this guy Jan 16 00:40:20 it worked on the one with public static final int Jan 16 00:40:24 how do i change the colors for byte Jan 16 00:40:42 ? Jan 16 00:41:07 just look at the static methods for Color Jan 16 00:41:08 they have one Jan 16 00:41:14 Color.rgb(r, g, b) Jan 16 00:41:17 0-255 Jan 16 00:41:19 each the byte Jan 16 00:41:40 private static final byte DEFAULT_BOTTOM_BORDER_COLOR_ALPHA = 0x26; Jan 16 00:41:55 is that the alpha channel? Jan 16 00:42:11 idk if they are big or little endian i always forget Jan 16 00:43:03 wait what.. Jan 16 00:43:27 why is it so hard to get the keyboard to show a send action instead of return :/ Jan 16 00:43:43 OmegaVesko: imeAction? Jan 16 00:43:45 I've done setImeOptions(EditorInfo.IME_ACTION_SEND), that ought to be enough Jan 16 00:43:58 you can put i on the edittext too Jan 16 00:44:17 lasserix: that is on the EditText Jan 16 00:44:23 should I also be putting it somewhere else? Jan 16 00:44:29 no Jan 16 00:44:34 are you using standard keyboard? Jan 16 00:44:39 if not it could be ignoring it Jan 16 00:44:44 tried both google keyboard and swiftkey Jan 16 00:45:34 also have android:imeOptions="actionSend" in the XML Jan 16 00:46:18 private static final byte DEFAULT_BOTTOM_BORDER_COLOR_ALPHA = Color.parseColor("362842"); lasserix Jan 16 00:46:21 thats returning a int Jan 16 00:46:22 not a byte Jan 16 00:46:24 it needs a byte Jan 16 00:46:34 OmegaVesko: does the edit text have focus? Jan 16 00:46:47 oh Jan 16 00:47:04 (byte) Color.blue(Color.parse(blah)) Jan 16 00:47:09 lasserix: do I need to explicitly declare that? Jan 16 00:47:10 dunno which channel tho Jan 16 00:47:14 I thought tapping it would be enough Jan 16 00:47:19 either it is alpha or blue depending on endianness Jan 16 00:47:33 OmegaVesko: it should Jan 16 00:48:01 Greetings Jan 16 00:48:17 hey hesperaux Jan 16 00:48:29 hm, I know I managed to get this working at some point in the past Jan 16 00:48:36 time to rummage through my repos I suppose Jan 16 00:48:43 OmegaVesko: is the edittext singleLine? Jan 16 00:49:03 Is there a way to put extra data into a autocompletetextview suggestion? Same question for listview elements. If yes, do I need to make a custom adapter for this, or can I still use SimpleCursorAdapter? Jan 16 00:49:41 lasserix: I didn't declare android:singleLine, if that's what you mean Jan 16 00:49:48 try adding that Jan 16 00:50:47 I'm trying to store the row ID of a human-readable element so that when I read the user's selection from the UI, I don't have to look up the UID from the text they have chosen. Jan 16 00:51:04 oh it works now, thanks lasserix Jan 16 00:52:05 OmegaVesko: was it the singleline thing? Jan 16 00:52:14 lasserix: yeah Jan 16 00:52:31 OmegaVesko: the reason is if its multiline then the ime action is carraige return which overrides it i guess Jan 16 00:52:47 yeah, that makes sense Jan 16 00:53:14 So far the only idea I have is to put a hidden textview into the listview/autocomplete View and get its value when needed. That seems kind of cheesy though. Since the View returned is an object, I should be able to store whatever I want in there right? Jan 16 00:53:46 hes you are using listview as substite to autocomplete? Jan 16 00:54:15 no, I intend to use both types of components for different purposes, so I'm asking for both Jan 16 00:54:35 have you implemented a base adapter before? Jan 16 00:54:42 that will let you customize hwatever you want about hte listview Jan 16 00:54:55 as far as autocomplete customization: https://thinkandroid.wordpress.com/2010/02/08/writing-your-own-autocompletetextview/ did you try googleing it? Jan 16 00:55:07 I might have like a year ago. I've forgotten. So far I just made a custom CursorAdapter Jan 16 00:55:31 is the listview databacked by a cursor? Jan 16 00:55:47 I have googled it. Not very well I think. Wasn't sure of the verbiage to use. most sites talk about using arrays instead of databases Jan 16 00:56:03 Yeah, it will be a sqlite cursor Jan 16 00:56:16 ahh so you need to research custom cursor adapter Jan 16 00:56:18 instead of base adapter Jan 16 00:56:28 Yeah, I wrote one of those (very basic for now) Jan 16 00:56:43 http://stackoverflow.com/questions/8479833/cursoradapter-with-different-row-layouts Jan 16 00:56:48 how to do with different row types Jan 16 00:57:07 I guess what you're saying is that to store extra data in a view, I'll need to use a custom adapter. there's no built-in ability to store Bundles or anything in the SimpleCursorAdapter? Jan 16 00:57:56 ah, the Tag. That's what I want. I remember this now Jan 16 00:58:42 If the color class is not static, how come I can use it without instantiating a new instance of it Jan 16 00:59:00 it has static fields Jan 16 00:59:18 hesperaux: ahhyeah use tag Jan 16 00:59:27 ahhh, ok thanks hesperaux Jan 16 00:59:28 an d remember you can do R.id.my_tag_id, extra object Jan 16 00:59:34 to pack in all kinds stuff Jan 16 00:59:40 R.id. must be defined in ids Jan 16 01:00:05 but you can do like view.setTag(R.id.value1, value1); view.setTag(R.id.valeu2, otherObjectthingy) etc Jan 16 01:00:29 lasserix, I don't recall how to create those value ids... Where would I define them and what type would they be? Jan 16 01:00:39 just add something in resources Jan 16 01:00:51 Jan 16 01:01:01 then you reference it as R.id.the_name Jan 16 01:01:26 How do you guys deal with people uplaoding your free application on those google play mirrors/ Jan 16 01:01:33 huh, that's a nice trick... so that just gives me a random ID i can reference uniquely? Jan 16 01:01:45 hire Liam Nelson with his set of particular skills Jan 16 01:01:57 lol Jan 16 01:02:02 hesperaux: random but guaranteed unique Jan 16 01:02:24 neat. didn't know that was possible Jan 16 01:02:26 AndreYonadam: the only way to do it is have you app talk to a server and authenticate Jan 16 01:02:57 i guess you can try and take i tup with the mirror hosters Jan 16 01:03:51 i guess Jan 16 01:04:02 Its just that I don't want my app all over the internet Jan 16 01:04:11 just curious, why not? lol Jan 16 01:04:33 hesperaux: Why should I? lol. I mean its just like spam Jan 16 01:04:40 Plus I rather people go to Google to get my app Jan 16 01:05:17 well, my thought is that if people are getting a free app elsewhere, it's not your responsibility, and your app still gets used, which is generally a good thing... Does it have any other ramifications? Jan 16 01:05:35 where is my string.xml Jan 16 01:05:40 are you worried about old versions lying around? Jan 16 01:05:41 i m trying to add #FFFFFF Jan 16 01:05:57 DragonPunch, res/values/strings.xml Jan 16 01:06:24 i dont ahve that folder Jan 16 01:06:25 http://puu.sh/ezIKz/c802d5e87e.png Jan 16 01:06:27 i have this Jan 16 01:06:32 i tried putting in them Jan 16 01:06:39 but color keeps showing up as red when i try and us eit Jan 16 01:07:52 I wouldn't redefine the color white, but I see your point Jan 16 01:08:24 Yeah Jan 16 01:08:35 hesperaux? is white there by default Jan 16 01:09:03 DragonPunch, read apidocs Jan 16 01:09:05 i'm sure. in code, Color.WHITE works. In xml, it's probably in android: somewhere Jan 16 01:09:09 R.color is well-defined Jan 16 01:09:09 you can use Color.WHITE Jan 16 01:09:11 as is Color Jan 16 01:09:55 only need to bother with if you're making custom colors Jan 16 01:10:32 android:background="@color/white" Jan 16 01:10:36 is not resolving Jan 16 01:10:52 http://puu.sh/ezJlF/673132d858.png Jan 16 01:10:56 it's not in your namespace Jan 16 01:11:01 http://puu.sh/ezJn1/1bc1dd7744.png Jan 16 01:11:06 can you tell me how to add it Jan 16 01:11:19 clean? Jan 16 01:12:00 DragonPunch, try @android:color/white Jan 16 01:12:30 #B6B6B6 Jan 16 01:12:59 @color/divider should work Jan 16 01:13:05 try cleaning your project Jan 16 01:13:12 or use the android namespace Jan 16 01:13:38 android namesapce Jan 16 01:13:39 yay Jan 16 01:14:10 @android:color/white isn't right is it? Jan 16 01:14:35 Its working for me at least Jan 16 01:15:04 Not sure if its the best way to do it though Jan 16 01:15:33 yeah, you're right HunterNL. I was trying it in the wrong type of element Jan 16 01:25:32 What doe sit mean if I see ALOT of red in my logcat but the app works just fine Jan 16 01:25:33 lol Jan 16 01:25:52 DragonPunch: depends :) is it coming from your app? Jan 16 01:26:00 its set as verbose Jan 16 01:26:04 i cant tell Jan 16 01:27:00 DragonPunch: yeah, my EditText is causing SpannableStringBuilder to print a lot of errors but functionally it works fine Jan 16 01:27:09 unsure if that's something I ought to be fixing Jan 16 01:27:17 i've seen a lot of those spannable errors too Jan 16 01:27:28 it's bugging me Jan 16 01:28:27 hm, a quick google suggests it happens if you use a third party keyboard Jan 16 01:28:37 how do i set bakground null Jan 16 01:28:46 android:background="null" ?? Jan 16 01:28:47 interesting Jan 16 01:29:04 null? you mean transparent? Jan 16 01:29:09 DragonPunch: "@null" is the correct syntax I think Jan 16 01:29:12 why null though? Jan 16 01:29:22 i dont like the background to edit text Jan 16 01:29:23 ugly as fuck Jan 16 01:29:50 uh, better to make it transparent then Jan 16 01:30:11 less likely to cause breakage Jan 16 01:33:34 DragonPunch what are you making? Jan 16 01:33:52 top secret. Jan 16 01:34:11 It's like Pop Secret Jan 16 01:35:09 Are you new to android dev DragonPunch Jan 16 01:35:43 id say, about 1.5 month Jan 16 01:35:48 1.5month - 2 month Jan 16 01:36:14 Oh, same here. Is it your first language? Jan 16 01:36:17 Java Jan 16 01:37:23 wow, AS 1.1 has a ton of bugfixes Jan 16 01:38:02 drose379: no not my first lang. i dont even know java ( been years practically forgot the little crap i knew ) Jan 16 01:38:20 drose379: ive been picking it all up through android w/o going through any java docs/tutorial Jan 16 01:38:29 g00s, I was going to ask if I should update...thoughts? Jan 16 01:38:53 Oh ok cool. Making a cool app? Jan 16 01:39:04 hesperaux seems OK so far Jan 16 01:39:10 k Jan 16 01:39:11 only been using it for about an hour though ;) Jan 16 01:39:19 * hesperaux updstes it because g00s said so Jan 16 01:39:20 drose379: yup yup yup, the next big thing. Jan 16 01:39:47 haha Id like to hear about it if you wanna PM me, if not, thats ok too Jan 16 01:40:03 I always wonder how many people in here have apps on Play Jan 16 01:40:09 nobody ever talks about their apps Jan 16 01:40:16 u talk abotu ur apps Jan 16 01:40:19 in #android Jan 16 01:40:26 yeah? Jan 16 01:40:30 lol im jk Jan 16 01:40:34 u can talk about whatever u want haha Jan 16 01:41:12 drose379: sorry, its secret. i am not recruiting random people. Jan 16 01:41:15 oh g00s, you didn't tell me i'd have to re-expand my project tree in the project browser...tut tut Jan 16 01:41:29 DragonPunch no problem Jan 16 01:41:35 honestly, it feels like no one wants to be part of a team Jan 16 01:41:41 everyone wants to do their 'solo' job Jan 16 01:41:49 how do you find people who are legit motivated and want to kick ass Jan 16 01:41:56 Im down Jan 16 01:42:07 DragonPunch, you post in classifieds and interview people lol Jan 16 01:42:09 and then you pay them :D Jan 16 01:42:21 well ofc i dont want my teammates to be poor bums Jan 16 01:42:24 DragonPunch: nah, its just that most poeplare just talk Jan 16 01:42:29 ^^ Jan 16 01:42:33 i sooo agree Jan 16 01:42:34 with lasserix Jan 16 01:42:52 if i had a legit team member even 3 or 4 Jan 16 01:42:55 hmm wonder where HevvyMetal is, this is totally his off topic creme du creme Jan 16 01:43:02 as for this channel, it's filled with people on the internet - also, you're not supposed to solicit here anyway Jan 16 01:43:05 id let them live at my place for free Jan 16 01:43:08 and eat for free Jan 16 01:43:29 but idk Jan 16 01:43:32 no one seems down for like Jan 16 01:43:37 the team thing Jan 16 01:43:48 hard to find good ppl Jan 16 01:43:51 I am - but you have to trust people to start a team Jan 16 01:43:56 ^ Jan 16 01:44:04 hesperaux, I always talk about my apps, no one gives a shit, so people typically are the same :p Jan 16 01:44:16 pfn, aww :( Jan 16 01:44:30 pfn lets hear it Jan 16 01:44:35 what apps do you got? Jan 16 01:44:35 DragonPunch building a team is selling a vision for the project; maybe you aren't a good salesman or have a good idea :) Jan 16 01:44:39 and some people are just paranoid about talking about their apps Jan 16 01:44:50 i'm a little bit paranoid Jan 16 01:44:57 why? Jan 16 01:44:58 https://play.google.com/store/apps/developer?id=Perry+Nguyen Jan 16 01:45:00 * pfn shrugs Jan 16 01:45:04 g00s: i used to sell sell phone cases in the mall and have a track record of doing the most sales consecutively for 6 months Jan 16 01:45:05 all my crap Jan 16 01:45:23 cuz i'm very slow. much slower than a lot of devs in here that could make my app faster if they thought it was a good idea. can't deny the competition :D Jan 16 01:45:25 DragonPunch selling things != selling ideas probably Jan 16 01:45:35 selling ideas to developers == herding cats Jan 16 01:45:48 pfn, you have lots of things! Jan 16 01:45:48 g00s: dude, i can tell a person my amazing idea and it's going to be the next big thing Jan 16 01:46:24 g00s: it has potential and what not but people seem so half hearted Jan 16 01:46:28 hesperaux, indeed Jan 16 01:46:34 hesperaux, and it's all on github, even Jan 16 01:46:36 g00s: its like they can't decide. Jan 16 01:46:43 hey it's a password manager Jan 16 01:46:50 Id like to hear about it DragonPunch , maybe not become part of the team full time Jan 16 01:47:01 But id like to brainstorm with you, sounds like your really into your idea Jan 16 01:47:55 drose379: yeah ive been executing. i did like 3 custom list views today and going to do 2 more before i go to bed. Jan 16 01:48:03 pfn, you sell apps that are open-source? How does that work? (serious question) Jan 16 01:48:26 DragonPunch is it a social networking app? Whats it all about? Jan 16 01:48:34 let me pm you a gist of it Jan 16 01:49:19 btw, i want a paranoia-level-secure app for password management like this that draws its data over a TLS-style connection to a self-run home server. Jan 16 01:49:48 hesperaux, simple, just sell it, if people want to build it on their own, more power to them Jan 16 01:50:09 it's not like I'm getting rich off apps I'm selling in any case Jan 16 01:50:12 are there licensing problems with that? Do you use GPL or something? Jan 16 01:50:31 sometimes I'll say stuff is GPL, sometimes I don't care and MIT/BSD Jan 16 01:50:51 besides, all my code is garbage or something, no one wants to use it Jan 16 01:51:57 Isn't everyone's code garbage? :P Jan 16 01:52:13 pfn: man your top repos have 70-80 forks, that's not no-one :D Jan 16 01:52:20 my most popular repo has 30 I think Jan 16 01:52:56 and that's the one that got featured on lifehacker Jan 16 01:53:36 pfn, i like the look of the UI on your TVM calc Jan 16 01:53:50 hesperaux, yeah, I like it, too Jan 16 01:53:57 too bad no one wants to pay money for a tvm calc Jan 16 01:53:58 heh Jan 16 01:54:00 I used to think my code was garbage Jan 16 01:54:31 Then I did an internship where they were really happy with my code Jan 16 01:54:41 So yea, everybody's code is garbage Jan 16 01:54:43 HunterNL, hehe, yeah I've had that happen Jan 16 01:55:00 and when I say my code is garbage, I don't mean it, I write beautiful stuff Jan 16 01:55:13 lol Jan 16 01:55:21 How do you know if your code is garbage or not (serious) Jan 16 01:55:42 if it is hard to maintain over time, or exhibits a lot of bugs - it's bad Jan 16 01:56:02 drose379: if it's clean, fast and bug-free then it's good code Jan 16 01:56:09 drose379, experience Jan 16 01:56:35 of course, you may not have a good idea of what 'clean' is, especially in a language like Java Jan 16 01:56:46 Right Jan 16 01:57:25 OmegaVesko, notice that all my repos are practically non-java Jan 16 01:57:29 including all android apps :p Jan 16 01:58:32 pfn: I know you use scala :P Jan 16 01:58:36 CursorAdapter.FLAG_AUTO_REQUERY has been deprecated. Ok... The only other option is to use a contentobserver. If I'm using loaders instead for the CursorAdapter, does this matter? Jan 16 01:59:07 indeed, I recall you seemed surprised by my neglect to use gradle Jan 16 01:59:35 pfn: yeah, then I noticed you wrote the damn sbt plugin :P Jan 16 02:01:14 Is there some neat way to show a direction/compass arrow to a Location? Jan 16 02:01:51 take any arbitrary arrow icon and rotate it to your location? Jan 16 02:01:59 there should be a bearing, rotate it as necessary Jan 16 02:02:14 I remember old google maps having a little element like that, but I can't find anything like it Jan 16 02:02:40 pfn, dude, i'm trying your IRC app. irc widgets? must try this Jan 16 02:03:06 Rotating an image would be my fallback, but its always nice when there's a build-in way, gotta be a lazy dev Jan 16 02:03:15 hesperaux, most innovative irc client out there :-) Jan 16 02:03:26 yeah, I don't think anyone else has widgets, notification chats, etc. Jan 16 02:04:09 do they drain the battery much? Jan 16 02:04:21 same as any other irc client Jan 16 02:04:25 the drain is caused by network IO Jan 16 02:04:34 widgets/notifications are low-cost by comparison Jan 16 02:04:49 s/low-cost/no-cost/ Jan 16 02:06:08 lol - nice auto-run hint Jan 16 02:06:28 pfn: yeah my jaw dropped when I saw the qicr widget Jan 16 02:06:38 I'd be using it now if I wasn't using irccloud :p Jan 16 02:07:02 all final enum variables are generated at compile time? Jan 16 02:07:55 ? Jan 16 02:08:23 i have a enum of configuration types, i use these to parse files, also when building configuration activity, also in other places Jan 16 02:08:30 since i use it all over Jan 16 02:08:40 i was thinking of dumping as much "final" stuff as i could into the enum Jan 16 02:08:49 ie, like the title and subtitle of the configuration activity adapter Jan 16 02:08:58 well, literals are literals... Jan 16 02:09:03 constant-values are constant-values... Jan 16 02:09:05 the file write literals Jan 16 02:09:14 the parser objects that take care of each Jan 16 02:09:14 etc etc Jan 16 02:09:23 so this enum is basically acting a singleton resource Jan 16 02:09:38 my concern is if this is maybe too much overhead Jan 16 02:09:44 and no, enums are instantiated at runtime Jan 16 02:09:52 but static, and singleton, of course Jan 16 02:10:14 so the only overhead is at runtime Jan 16 02:10:15 okay Jan 16 02:10:38 and the alternative is only initializing what i need when it is actually used Jan 16 02:10:58 but i am going to guess its not that much overhead so since this keeps the code a thousand times cleaner it is worth it Jan 16 02:11:10 if not i can also encaspulate all off later Jan 16 02:11:28 statics get initialized upon reference Jan 16 02:11:41 so it's basically lazy until you use it... Jan 16 02:11:55 ahh ok Jan 16 02:12:45 ugh, google's so picky... they want this niche tab interface to be swipable... Jan 16 02:12:56 something that I swear no one ever looks at Jan 16 02:14:16 swipable? Jan 16 02:21:23 alright guy Jan 16 02:21:28 ill show u what i have so far Jan 16 02:21:30 http://puu.sh/ezRlp/b2e978d682.png Jan 16 02:21:33 tab 2 3 are finished Jan 16 02:21:35 doing 4 and 5 now Jan 16 02:21:54 OmegaVesko, as in a viewpager Jan 16 02:22:25 pfn: huh, I'm already doing viewpager + tabs for my app's main interface Jan 16 02:22:57 OmegaVesko, yeah, I'm saying in a niche area of the app that no one ever goes to, it's not a viewpager now, they want something like it Jan 16 02:23:15 ah, I see Jan 16 02:23:19 pfn: im using a view pager Jan 16 02:23:20 http://puu.sh/ezRlp/b2e978d682.png Jan 16 02:23:36 I'm using a tab library that just hooks into the viewpager so I never even considered doing anything else Jan 16 02:23:51 i need to change 1 2 3 4 5 Jan 16 02:23:53 into icons Jan 16 02:23:55 ive already done it before Jan 16 02:23:58 i just ned fucking icons Jan 16 02:24:03 I just ignored viewpager altogether because it was simple to just change content when a tab was tapped Jan 16 02:24:27 DragonPunch: uh, use the official material icons? Jan 16 02:24:33 or is it something not covered by those Jan 16 02:24:52 no im not really caring for the design atm, need to finish 2 more custom adapters Jan 16 02:24:58 ill do design at the end, after its functioning. Jan 16 02:25:07 ill waste so many hours if i do design right now Jan 16 02:25:11 I've got a service in a watch app extending WearableListenerService, and I use it to receive messages from the phone app. I'm slightly confused about whether I could/should use it as a regular service as well, like to do some location tracking I need, or whether a separate service would be more appropriate. Any advice? Jan 16 02:25:16 oh yeah, that's what I'm doing too Jan 16 02:25:23 yeah keep it up Jan 16 02:25:29 ill keep you motivated. Jan 16 02:25:39 execution is the only thing you will need Jan 16 02:25:41 to get your app done Jan 16 02:25:43 do design later. Jan 16 02:25:47 get it working. Jan 16 02:26:05 premature design is like premature optimization, little sense to do it before you've got everything working like it should be Jan 16 02:26:18 yeah. i used to be like that though. Jan 16 02:26:23 and it was very very very bad. Jan 16 02:26:33 its hard though, design is soo tempting/distracting Jan 16 02:28:01 yeah, definitely Jan 16 02:40:43 JavaDog: do a service inside the phone and just push the watch Jan 16 02:46:22 Well I'm trying to move my program logic out of the activity and into a service, so that the app will be running until the user exits it, accessible through a persistent notification Jan 16 02:46:23 Guys, for my list view, I want my items to be white Jan 16 02:46:32 background to be say, gray Jan 16 02:46:45 how do i get a white box inside a listview where the background is gray Jan 16 02:47:16 Are you trying to make a ghetto card layout? Jan 16 02:48:09 http://puu.sh/ezWwf/afd598e121.png Jan 16 02:48:19 JavaDog: yeah a ghetto card layout Jan 16 02:48:24 i dont want a card laytout though Jan 16 02:48:36 pfn, :-) Jan 16 02:48:36 ...why Jan 16 02:50:05 pfn, this is nice man. good job. Jan 16 02:50:27 DragonPunch huh, that font rendering looks awful, what platform / jvm are you using ? Jan 16 02:51:10 1.8 Jan 16 02:51:21 loving the widgets/popups Jan 16 02:51:28 DragonPunch platform ? Jan 16 02:51:39 oracle Jan 16 02:51:47 ughm your OS Jan 16 02:51:51 osx Jan 16 02:52:06 ah yeah. thats why i'm still running AS with java 6 Jan 16 02:52:22 >.> Jan 16 02:52:43 is apple still controlling java releases on osx? Jan 16 02:53:01 no - but oracle's jvm doesn't do subpixel font AA Jan 16 02:53:07 for swing anyhow Jan 16 02:53:16 AS is swing? Jan 16 02:53:18 greyscale AA looks like craaaap Jan 16 02:53:22 yeah Jan 16 02:53:25 Damn Jan 16 02:54:28 Anyone know the proper way to do a fitness tracker-style persistent notification on android wear, which launches an activity when tapped? Jan 16 02:55:01 No location stuff is calculated on the watch, it's sent from the phone, but I need a service running to keep track of it until the user says stop Jan 16 02:55:47 well Jan 16 02:55:58 is it okay to do Jan 16 02:56:01 nested RelativeLayout Jan 16 02:56:34 or a LinearLayout w/ a RelativeLayout inside of it. Jan 16 02:56:38 which is better Jan 16 02:56:46 Sure, if you need another relativelayout. Use something like FrameLayout if you're just holding one child, though Jan 16 02:57:14 I think, anyway. I'm not a designer **** ENDING LOGGING AT Fri Jan 16 02:59:58 2015