**** BEGIN LOGGING AT Mon Oct 06 03:00:00 2014 Oct 06 03:03:50 ok I will make boolean for now Oct 06 03:04:01 if that wont be enough I will make cancel thingy Oct 06 03:05:58 In which directory are apps stored it Oct 06 03:06:11 the / directory or the Sdcard? Oct 06 03:10:48 Hello.. can someone help me? Should I always use the latest version of the android SDK available if I am developing a new app? Oct 06 03:10:57 I have a 4.4.2 device Oct 06 03:11:34 its api level 19... I want my app to run on as many devices as possibe... its super simple and doesn't really use anything device specific.. Oct 06 03:11:45 does it matter what version of the sdk or tools I use? Oct 06 03:13:33 and why does the emulator not work in osx? Oct 06 03:14:01 Hello.. can someone help me? Should I always use the latest version of the android SDK available if I am developing a new app? Oct 06 03:14:09 does it matter what version of the sdk or tools I use? Oct 06 03:16:30 after_r 19 is fine Oct 06 03:16:52 if you use 20, at least for a short while longer, you won't be able to upload to Play Oct 06 03:17:04 really? Oct 06 03:17:13 I was just using 20 :p Oct 06 03:17:18 * Peetz0r goes back to 19 now Oct 06 03:17:20 yeah targetSdk=20 can't be uploaded to Play Oct 06 03:17:31 temporaroly right Oct 06 03:17:37 that will change as soon as L is not preview ;) Oct 06 03:20:21 20 is "KitKat with wearable extensions", L previes is "20+" Oct 06 03:20:25 L preview* Oct 06 03:24:13 Peetz0r hmm ... 20 is the wearable part for the watch only i think Oct 06 03:24:38 so if your app has a wearable component, make that component 20 Oct 06 03:25:27 mine doesn't Oct 06 03:25:34 mope, just a 'classical' phone app :p Oct 06 03:25:45 GB compatible and everything :p Oct 06 03:40:32 i think amazon has really f'd up now that they have both ratings and reviews. ratings is BS imho Oct 06 03:40:47 4 star all the things Oct 06 03:54:42 Hey - is there a way to get GSON to use rx.Observables instead of Integers/Strings/etc.? Oct 06 04:02:57 so that way it would just have BehaviorSubjects instead of pojos. Oct 06 04:17:18 Anyone got a xml for a ball shape? Oct 06 04:17:31 like 3dish ball shape / looks like a ping pong ball Oct 06 04:18:50 ping pong ball is just a white thing right ? Oct 06 04:19:16 as in radial gradient pure white to pure white - a tiny bit :) Oct 06 04:19:24 yeah Oct 06 04:19:34 i have to believe someone has done that before Oct 06 04:20:03 well it's just that thought right ? radial gradient drawable ? maybe with a stroke ? Oct 06 04:20:32 yeah i have that already, but don't really want to tweak it till its right ;p Oct 06 04:20:33 think you can have the center offset a little too for (lighting direction) kinda Oct 06 04:24:20 g00s: Ratings are handy for summaries. :) Oct 06 04:24:38 yeah but they can be astroturfed easier Oct 06 04:24:46 if you write a shitty review, it can be downvoted Oct 06 04:28:37 True. Oct 06 04:29:25 is there any way to block certain pages from being accessed by the back button? I want my back button to go all the way back to the home screen and not the last open page Oct 06 04:34:14 adb tcpip keeps disconnecting my device erg Oct 06 04:35:03 band switching ? Oct 06 04:35:21 idk Oct 06 04:35:23 low battery maybe? Oct 06 04:35:26 to rule it out, turn it off ;) Oct 06 04:35:41 as in wireless > advanced… turn of auto Oct 06 04:35:45 off* Oct 06 04:38:24 yeah i did that Oct 06 04:39:20 hey I have a question Oct 06 04:39:23 If anyone knows.... Oct 06 04:39:40 Do some phones not have non-power-of-2 video memory control? Oct 06 04:40:02 it seems that my Samsung S3 can't run my game's Hard difficulty level in webgl, but I'm sure it has enoug hmemory. Oct 06 04:40:09 memory* Oct 06 04:40:16 anyone know anything about this? Oct 06 04:40:32 (it crashes with a not enough memory error) Oct 06 04:42:37 Agamemnus: 17 Oct 06 04:42:48 17? Oct 06 04:51:53 StingRay_: possible to do gradiant in code? am using a custom view to do the ball right now Oct 06 04:52:05 yeah Oct 06 04:52:12 gradientDrawable Oct 06 04:52:16 many controls too Oct 06 04:52:51 Napalm|afk is there any use for listview now that recyclerview is (almost) here? Oct 06 04:53:15 i was about go through some major pain to write a sectioned listview adapter and wondered if i can wait :) Oct 06 04:54:20 hm, adapter looks the same Oct 06 04:56:22 i wonder if somebody said, fuck i can't understand teh listview code any more, lets just start from scratch :D Oct 06 04:59:55 Agamemnus Oct 06 05:01:41 what is it? Oct 06 05:01:58 17 what? Oct 06 05:04:42 Agamemnus: I meant that yes you can Oct 06 05:16:08 If I'm doing stuff in the background with an AsyncTask, and that stuff might finish immediately or might take seconds, is it a good idea to show a ProgressDialog every time? Oct 06 05:16:17 Or will it flicker and be annoying with the short tasks? Oct 06 05:18:34 TacticalJoke your choice Oct 06 05:21:01 TacticalJoke usually annoying. i don't see any modern apps showing progressdialog Oct 06 05:21:12 was wanting to buy a pc game have not gotten one in a while any recommendations? Oct 06 05:21:20 Okay. Oct 06 05:21:32 I guess I could just disallow the use of certain menu items momentarily. Oct 06 05:21:51 Perhaps with a "Task is already running" kinda Toast or something. Oct 06 05:22:21 noLimitz: No idea. Everyone is talking about Minecraft, though. Oct 06 05:28:51 Guys, for example i have Alarm Clock app, in main activity i see listView with a list of several alarms. Every alarm have personal value "time" associated with it, and how can i store this values separately with SharedPreferences? Or i need to use db instead of SharedPreferences in this case? Oct 06 05:29:33 olologin use sqlite, or maybe try realm.io Oct 06 05:30:33 If I'm saving an ArrayList to a SQLite database, is it better to use serialization (e.g., JSON) or a table with a foreign key? Oct 06 05:30:57 TacticalJoke: are you using the FK for some reason? Oct 06 05:31:15 Not yet. I'd implement it just so associate the record with the ArrayList. Oct 06 05:31:27 well using sqlite db is very easy Oct 06 05:31:39 plus if you have need to do denormalized db structure, then the fk is very helpful Oct 06 05:32:08 So it's best to use two tables for this, right? (Rather than one table with JSON "lists" in it.) Oct 06 05:32:18 two tables? Oct 06 05:33:01 I'll have a record like "class Person { String name; int age; ArrayList petNames; }". Oct 06 05:33:12 And I'm thinking of having one table for name and age; another for petNames. Oct 06 05:33:34 to do cross referencing? Oct 06 05:33:39 (That's names of previous and current pets, not affectionate nicknames.) Oct 06 05:33:40 so you can have one table with pk, name Oct 06 05:33:43 Yeah. Oct 06 05:33:49 Is that the best solution? Oct 06 05:33:56 then one table with age name_pk Oct 06 05:34:00 Right. Oct 06 05:34:05 then another table with petnames name_pk Oct 06 05:34:19 well you probably one need the two Oct 06 05:34:20 Oh. I was thinking only two tables. Oct 06 05:34:22 sorry cat was in my face Oct 06 05:34:23 Okay. Oct 06 05:34:26 lol Oct 06 05:34:29 yeah pk name age Oct 06 05:34:32 lasserix lol Oct 06 05:34:47 and then pk fk->pk_name petname Oct 06 05:34:48 petNames.add(lasserix.getCatName()); Oct 06 05:34:54 hopfully he didn't put his tail up and his ass in your face Oct 06 05:35:02 then do select where pk_name to get all pet names Oct 06 05:35:15 Right. Oct 06 05:35:16 no i took him out and when he plays hide and go fuck yourself (hide and seek) Oct 06 05:35:23 lol Oct 06 05:35:27 i discipline him with pda Oct 06 05:36:17 So you'd prefer two tables to one table with JSON? Oct 06 05:36:32 depends on a lot of things Oct 06 05:36:35 one table with json O.o Oct 06 05:36:39 size being the largest Oct 06 05:36:41 ;o Oct 06 05:36:43 but if you want to do things like Oct 06 05:36:46 The lists will be small. Oct 06 05:36:48 find all people with same pet names Oct 06 05:36:56 the two table approach would workbest Oct 06 05:37:07 I'll never really need to do that. Just querying each person in turn. Oct 06 05:37:13 but for small sets it probably doesn't matter, whatever you are more comfortable working with Oct 06 05:37:19 Okay. Oct 06 05:39:00 argh this person wants me to develop this fairly simple app Oct 06 05:39:07 but gave me no design spec whatsover Oct 06 05:39:12 Does it make sense to put license headers on XML files or just java classes? Oct 06 05:39:17 am thinking i might drop it cause i hate doing design for people unless they are paying me for it Oct 06 05:39:26 lasserix make him the product owner and scrum it Oct 06 05:39:33 ? Oct 06 05:39:40 oh he's not paying ? Oct 06 05:39:47 yeah life is too short :) Oct 06 05:39:51 not sure Oct 06 05:39:59 yeah it is like 3 screens Oct 06 05:40:06 but i am guessing i could only get like 200 out of it Oct 06 05:40:20 but without proper design spec its really a pain in the ass quite quickly Oct 06 05:40:27 and not worth 200 at that point Oct 06 05:40:51 How do you folks pronounce "SQLite"? Oct 06 05:41:01 seaquallite Oct 06 05:41:02 In my head, I seem to be saying "ess-queue-ell lite". Oct 06 05:41:06 Ess Kyoo Ell Light Oct 06 05:41:12 lol Oct 06 05:41:20 errr sea quill light Oct 06 05:41:28 lasserix is a hipster Oct 06 05:41:33 tacticaljoke see qwol light Oct 06 05:41:37 same as lasserix Oct 06 05:41:42 2v2. Oct 06 05:41:45 no def not a hipster Oct 06 05:41:47 hipsters by the dozen here Oct 06 05:41:54 squil-ligt Oct 06 05:41:58 :x Oct 06 05:42:05 s/ligt/light Oct 06 05:42:06 ess queue ell is too many syllables Oct 06 05:42:10 darklust you tried Oct 06 05:42:25 too many syllables Oct 06 05:42:30 even in your head? Oct 06 05:42:52 S Q L Lite vs SQL Lite Oct 06 05:43:09 actually it's just one more Oct 06 05:43:11 hmm Oct 06 05:43:29 The creator of SQLite seems to say "S-Q-L-ite": http://youtu.be/jN_YdMdjVpU?t=1m14s Oct 06 05:43:43 It's such an awkward name, really. Oct 06 05:43:45 tacticaljoke I guess it's just a matter of how to pronounce SQL Oct 06 05:43:45 mai-sea-quil Oct 06 05:43:50 MySQL Oct 06 05:43:52 like gif vs jif Oct 06 05:44:29 GIF = Jeef Oct 06 05:44:49 definatly a sunday night Oct 06 05:45:19 PNG = ping Oct 06 05:45:32 The Spice must flow Oct 06 05:45:35 agamemnus nooooo Oct 06 05:45:42 hmm, i figured people just said "maria dee-bee" Oct 06 05:45:44 guh ihh fff Oct 06 05:45:47 You don't like Jeef? Oct 06 05:45:49 I pronounce "GUI" gee-you-eye. Oct 06 05:45:51 I hate "gooey". Oct 06 05:45:54 tacticaljoke same Oct 06 05:45:55 zinx: I see what you did thar :p Oct 06 05:46:04 Everything as letters except GIF Oct 06 05:46:12 I'd never pronounce CLI any other way than see-ell-eye, for example. Oct 06 05:46:12 For me. Oct 06 05:46:23 Yeah, letters FTW. Oct 06 05:46:35 WYSIWYG = whi-see-whig Oct 06 05:46:39 lol Oct 06 05:46:41 hahaha Oct 06 05:46:52 Apart from "NATO". Oct 06 05:46:54 That's too tempting. Oct 06 05:46:58 WYSIWYG = what you see is what you get Oct 06 05:47:02 enn-aye-tee-oh would be tedious. Oct 06 05:47:02 I just say the whole thing Oct 06 05:47:06 Everybody, how to fix "ugly" font in Android Studio (Ubuntu, Oracle JDK) Oct 06 05:47:16 anyone remember when GIMP was an acronym Oct 06 05:47:32 zinx: Isn't it? Oct 06 05:47:36 Gnu Image Manipulation Program Oct 06 05:47:39 nope Oct 06 05:47:41 karex: what's that? (sorry I don't use it) Oct 06 05:48:13 or maybe they just changed from the gimp to gimp or vice versa, i don't remember :P Oct 06 05:48:21 Is it typical to put license headers (e.g. for MPL or Apache) on layout XML files? Oct 06 05:48:25 :/ the issue being GNU is also an acronym Oct 06 05:48:31 :P Oct 06 05:48:35 I hate recursive acronyms. Oct 06 05:48:49 Darklust: for Gimp's Not Unix, clearly Oct 06 05:48:51 It's a fork bomb! Like WINE Oct 06 05:49:00 BTW, what is it about computing terms being so awful? Oct 06 05:49:09 Bit, nibble, byte, megabyte, etc. Oct 06 05:49:10 Horrible. Oct 06 05:49:15 zinx: So... PNW = Photoshop's Not Windows? Oct 06 05:49:15 Darklust: "wine is not effective"? Oct 06 05:49:21 anybody? license headers on XML files? Oct 06 05:49:40 WINE Is Not Efficient Oct 06 05:49:47 I hate licence headers in code, personally. Oct 06 05:49:48 PHP Oct 06 05:49:53 For the same reason as I hate comments in general. Oct 06 05:49:58 It just gets in the way. Oct 06 05:50:00 PHP Hates PHP Oct 06 05:50:12 tacticaljoke but.. but.. Mozilla says so :( Oct 06 05:50:17 Dough! Oct 06 05:50:18 FreeNow: there's no need to put them in layout XML Oct 06 05:50:23 zinx ty Oct 06 05:50:34 I'd like to create a licen[s|c].txt, if I could. Oct 06 05:50:36 +e Oct 06 05:50:45 * FreeNow has been listening to dawkins and hitchens in the background all day Oct 06 05:50:46 But I guess that's not doable here. Oct 06 05:51:09 FreeNow: Ready to accept FSM as your lord and savior yet? Oct 06 05:51:17 Fussem. Oct 06 05:51:18 darklust lol Oct 06 05:51:39 FreeNow i was almost going to pick up E O Wilson's new book Oct 06 05:51:42 I wonder whether there's a strong correlation between programming and atheism Oct 06 05:51:43 . Oct 06 05:52:00 TacticalJoke: Honestly I wouldn't be surprised Oct 06 05:52:02 * FreeNow googles EO Wilson Oct 06 05:52:05 * FreeNow is an ex-theist Oct 06 05:52:27 FreeNow http://www.amazon.com/Meaning-Human-Existence-Edward-Wilson/dp/0871401002 Oct 06 05:52:43 g00s that's a rather bold title Oct 06 05:52:45 lol Oct 06 05:53:05 Darklust: Both require thinking. :D Oct 06 05:53:12 you know dawkins but not wilson ? Oct 06 05:53:33 I knew Dawkins but not Wilson. ;o Oct 06 05:53:34 g00s apparently dawkins is more prevalent on youtube Oct 06 05:53:37 :P Oct 06 05:53:38 I heard that an upcoming Java revision will evaluate God as a false boolean primitive Oct 06 05:53:45 In fact, I'm hugely into the biology/atheism thing. Never heard of Wilson before now. Oct 06 05:53:48 dawkins is more militant Oct 06 05:53:59 g00s what do you think of hitchens Oct 06 05:54:16 i haven't read any of his sthings Oct 06 05:54:26 I was kinda sad when Hitchens died. Oct 06 05:54:31 Though not as sad as when Robin Williams died. Oct 06 05:54:34 g00s youtube Oct 06 05:54:51 just curious, what tools are people using for Android C/C++ dev? has anyone made the switch to AndroidStudio with ndk? if so, what do you use to debug? Oct 06 05:54:54 Some people shouldn't be allowed to die. Oct 06 05:55:06 Robin Williams' death was on par with losing a family member, or a testicle Oct 06 05:55:11 Ya. ;| Oct 06 05:55:25 I wanna watch One Hour Photo again, but it'd be extra-creepy now. Oct 06 05:55:33 darklust equating the loss of a testicle with the loss of a family member is rather odd Oct 06 05:55:53 The loss of a testicle can entail the loss of several (potential future) family members. Oct 06 05:56:01 tacticaljoke true Oct 06 05:56:02 :/ Oct 06 05:56:12 tacticaljoke but only if it's your second one, right? Oct 06 05:56:16 second loss, that is Oct 06 05:56:22 assuming both are functional Oct 06 05:56:27 lol Oct 06 05:56:29 I was just googling that. Oct 06 05:56:38 googling what? Oct 06 05:56:48 I hope your safe search was on :x Oct 06 05:56:55 Whether it's possible to be fertile with one testicle. Oct 06 05:57:05 tacticaljoke i think so? idk Oct 06 05:57:16 Interestingly, the remaining testicle will swell in size to compensate :] Oct 06 05:57:18 Science :] Oct 06 05:57:25 According to this there's no real difference: http://www.babymed.com/blogs/richard-banks/does-having-one-testicle-reduce-fertility Oct 06 05:57:26 Not sure, though. Oct 06 05:57:32 * FreeNow subject change pls Oct 06 05:57:43 Yeah, I went into Incognito Mode. Oct 06 05:58:00 Even though I live alone and nobody else uses this computer. Weird, right. Oct 06 05:58:08 I kinda like feeling like my browsing history is 'clean'. Oct 06 05:58:24 It's the NSA that knows what you did maaaaan Oct 06 05:58:54 maaaaaaaaaan Oct 06 05:59:01 *or womaaaaaaaaan Oct 06 05:59:03 yeah if TacticalJoke ever does something important that makes the govt or corp look stupid, the NSA will discredit him with his testicle search Oct 06 05:59:11 * FreeNow gotta be gender neutral here Oct 06 05:59:23 g00s LOL Oct 06 05:59:49 lol Oct 06 05:59:54 I'm male, BTW. Oct 06 06:00:09 * FreeNow ten four Oct 06 06:00:17 Y'all can stop PMing me now. Oct 06 06:00:20 (Just kidding.) Oct 06 06:00:29 I once tested that, years ago. Oct 06 06:00:31 On Yahoo! Chat. Oct 06 06:00:44 tacticaljoke you told everyone you wuz a wimmen? Oct 06 06:00:49 Pretended to be a 15-year-old girl to see how many people would PM me. Oct 06 06:00:51 I got like 20 PMs. Oct 06 06:00:52 No joke. Oct 06 06:00:56 * FreeNow vomits Oct 06 06:01:00 There were maybe 50 people in the room. Oct 06 06:01:12 * FreeNow doesn't understand how yahoo chat works Oct 06 06:01:14 I remember when Yahoo Chat! had the fight-club voice chat rooms Oct 06 06:01:20 The scary thing is that the number raised as the age was lowered to around 13. Oct 06 06:01:23 I'd go in there with the booter programs and hit em while they were keying up the mic Oct 06 06:01:23 * FreeNow never used yahoo chat Oct 06 06:01:25 It reduced as the 20s hit. Oct 06 06:01:28 can I check json which comes from retrofit ? Oct 06 06:01:29 haha Oct 06 06:01:32 Yeah, I'd do the booter thing. Oct 06 06:01:33 As a teen. Oct 06 06:01:36 Just to hear them swear up a storm before d/cing Oct 06 06:01:40 :/ Oct 06 06:01:44 Yeah, those fight rooms were hilariuos. Oct 06 06:01:47 hilarious* Oct 06 06:01:54 People would spend their LIVES in there. Oct 06 06:02:03 :\ Oct 06 06:02:03 And that was their entire life: swearing at people online. Oct 06 06:02:12 o.O Oct 06 06:02:18 They had reputations and everything. "I'm the best of all the Fight Rooms." Oct 06 06:02:19 It's true Oct 06 06:03:09 Do you remember the user rooms? God, some of those were crazy. Oct 06 06:03:34 Hmm, not those specifically, but I remember the Whipped Cream chat rooms ;) Oct 06 06:03:39 Muhahahaa..... Oct 06 06:03:54 There used to be this awesome prank-calls room. Oct 06 06:04:09 One time, I saw a room titled "Self-Harmers". Omg. I actually saw someone self-harming on cam. Oct 06 06:04:30 What killed my experience is when Yahoo implemented the Captchas and would ban your IP address if you registered too many usernames Oct 06 06:04:31 It's amazing just how bad some people have it. Chat rooms bring that to the fore. Oct 06 06:04:38 http://youtu.be/wb3AFMe2OQY?t=1m53s Oct 06 06:04:42 Yeah, the CAPTCHAs were a pain. Oct 06 06:05:07 I used to do programming related to Yahoo. Made a (nice) bot and a chat client. Oct 06 06:05:18 TacticalJoke: You did it in VB didn't you Oct 06 06:05:19 The bot had minimal AI and could do stuff like invite people from other rooms. Oct 06 06:05:22 Nah, Delphi. lol Oct 06 06:05:26 so now you all came here to troll because yahoo forces captchas Oct 06 06:05:27 Everyone used VB6, though. Oct 06 06:05:28 Heh, hipster Oct 06 06:05:34 * FreeNow feels left out Oct 06 06:05:38 I had a thing about Delphi once upon a time. Oct 06 06:05:41 * FreeNow missed the Y! bandwagon Oct 06 06:06:20 Writing for Yahoo was annoying. They kept changing the protocol to try to kick off bots. Oct 06 06:06:30 But it was a plain-text protocol (apart from the login handshake). Oct 06 06:07:00 I think the most convoluted one was the AIM TOC protocol Oct 06 06:07:11 That was nightmare-inducing Oct 06 06:07:22 It was the most dumb protocol ever. If the "here is the list of users in the room" protocol message was too long, it'd overflow into a new message. But this new message didn't have a header. Your client had to simply *guess* it was a continuation message. Oct 06 06:07:44 Ah, I never used that. Oct 06 06:08:24 Eh, I covered a number of chat programs in my booting endeavors Oct 06 06:08:28 lol Oct 06 06:08:31 Did you write booters? Oct 06 06:08:31 MSN Messenger *shudders* Oct 06 06:08:39 Just for AIM Oct 06 06:09:19 I used to use a Yahoo client called YahELite. Some guy wrote it in C/Win32. Oct 06 06:09:21 Insane. Oct 06 06:09:31 I believe that was the one I used Oct 06 06:09:44 Was it the one that would say "Booter detected, enabling maximum security" Oct 06 06:09:52 Or "you are the weakest link, goodbye!" Oct 06 06:09:52 I think so. Oct 06 06:10:03 It was really ugly and minimal. Oct 06 06:10:07 Looked like a Windows 3.1 program. Oct 06 06:10:18 the video on android says BORKED instead of youtube video, why is that? Oct 06 06:10:36 Which video? Oct 06 06:10:47 youtube video Oct 06 06:11:17 BORKED this is how the html code on that website Oct 06 06:11:24 what does it mean? Oct 06 06:11:29 Which website? Oct 06 06:11:49 why? Oct 06 06:11:49 some crappy forum Oct 06 06:11:51 on computer it plays Oct 06 06:11:52 I believe BORKED is on-par with FUBAR Oct 06 06:12:02 on mobile devices no Oct 06 06:12:18 Okay. I asked because you said "that website", which suggests a mentioned referent. Just curious. :D Oct 06 06:12:52 nah the website has nothing to do with that, so what is the problem with this BORKED and no there is no FUBAR Oct 06 06:14:13 the tables turn and TacticalJoke gets trolled by Alina-malina Oct 06 06:14:52 so what is this BORKED? why it shows BORKED instead of youtube video on mobile devices? Oct 06 06:14:56 Computer Brokeeen! Oct 06 06:15:10 What Button? Oct 06 06:15:11 I think broken English is my weakness. Oct 06 06:15:19 My brain is so obsessed with language that I might actually be trollable in this way. Oct 06 06:15:28 Or just nonsense text. Oct 06 06:15:32 damn movie4k.to gets updated fast Oct 06 06:15:39 Alina-malina: Probably the mobile version of the forum doesn't want to show an embedded video for fear of incompatibility? Ask them Oct 06 06:15:42 Sites like that are way better than Netflix. lol Oct 06 06:15:50 Agamemnus: https://developer.android.com/sdk/installing/studio.html sorry for late response Oct 06 06:15:54 Like Janet said, the best things in life are free. Oct 06 06:16:17 tacticaljoke is love free? Oct 06 06:16:47 free with a handful of crabs Oct 06 06:16:54 if you're lucky Oct 06 06:16:57 and if you're not... Oct 06 06:17:08 lasserix is that love? Oct 06 06:17:33 can you tell if it isn't? Oct 06 06:17:39 I think love is very expensive if you're male. Oct 06 06:17:46 Hmm, love is not something that is quantifiable. Crabs can be shared, some say love is shared... I see a correlation Oct 06 06:17:56 What is love? Oct 06 06:18:02 Baby don't hurt me Oct 06 06:18:09 baby don't hu. ..damn beat me to it Oct 06 06:18:14 :D Oct 06 06:18:18 Nobody can resist that. Oct 06 06:18:20 but seriously though Oct 06 06:18:22 At least *thinking* it. Oct 06 06:18:22 what is love? Oct 06 06:18:29 *bass line plays* Oct 06 06:18:31 lasserix apparently equates love with lust? Oct 06 06:18:47 start the gino head bopping Oct 06 06:18:56 dun dun dun dun Oct 06 06:18:58 :D Oct 06 06:18:59 di dun dun dun dun Oct 06 06:18:59 http://www.jkrishnamurti.org/krishnamurti-teachings/view-text.php?tid=405&chid=4724 Oct 06 06:19:03 di dun dun dun dun Oct 06 06:19:03 no Oct 06 06:19:06 i dont know Oct 06 06:19:06 duh dih dih dih dih Oct 06 06:19:19 but i am guessing you can't tell the difference if the person says i love you Oct 06 06:19:24 and doesn't mean it Oct 06 06:19:39 * i am guessing no one could discern the deception Oct 06 06:19:44 lasserix but can't love be one way? Oct 06 06:19:46 hence, can you tell if it isin't? Oct 06 06:19:52 no Oct 06 06:20:07 lasserix if "i love you" is false, can't the other person still be in love with the "false lover" Oct 06 06:20:21 love, if you want to get into the deep philosophical notion, goes beyond the self and hence beyond the one Oct 06 06:20:39 lasserix true, but what's your point overall? Oct 06 06:20:50 My compiler doesn't recognize "love", says it's not defined or instantiated Oct 06 06:20:50 lasserix why use the single example of someone falsely declaring love? Oct 06 06:20:57 The compiler never lies Oct 06 06:20:58 You know someone loves you if they won't do any of the following: (a) give you up (b) let you down (c) run around (d) ? Oct 06 06:21:07 darklust try: Object love; Oct 06 06:21:13 *private Object love; Oct 06 06:21:37 hello there I got a question : http://stackoverflow.com/questions/26208566/how-to-stream-and-download-a-media-from-local-storage-using-androids-videoview Oct 06 06:21:40 In that case, it won't evaluate true or false, just null Oct 06 06:21:41 TacticalJoke: stop trying to Rick Troll us Oct 06 06:21:41 tacticaljoke e -> all of the above Oct 06 06:21:42 Love is null Oct 06 06:21:44 :D Oct 06 06:21:46 anyone care to answer? Oct 06 06:22:02 my point overall is that whatever we tell ourselves above love and if we're in love and etc etc is actually complete bs because you can't tell whether its valid or not Oct 06 06:22:19 in fact i can go further and make the zizek arguement that love is evil Oct 06 06:22:20 Isn't it just a bunch of feelings and attitudes? Oct 06 06:22:44 Let's say that you have a dog. You feel X, Y, and Z. You have attitudes A, B, and C. Therefore, you love (or don't love) your dog. Oct 06 06:22:57 And you may be able to tell. Oct 06 06:22:58 lasserix ummm can't someone prove their love by their actions? Oct 06 06:23:00 I love you more than life itself--life being the fact that by random chance billions of years ago the universe was formed in only this one way and after billions of years we become this and you love me more than all that? see? very evil, selfish concept. ;p Oct 06 06:23:26 FreeNow again you miss the point, whether or not they prove it doesn't mean they are actually it, just means they've convinced themselves they have, not that they really have Oct 06 06:23:46 hello anyone can help me? Oct 06 06:23:47 lasserix how do we validate it to ourselves? Oct 06 06:23:48 * StingRay_ comes back and looks around Oct 06 06:23:51 warvick2014 ask away Oct 06 06:23:52 wtf is this ? Oct 06 06:23:55 hehehe Oct 06 06:24:02 stingray_ hello, thanks for your help earlier btw Oct 06 06:24:13 stingray_ I had been stuck on that one for a while Oct 06 06:24:21 FreeNow np Oct 06 06:24:22 this is my question : http://stackoverflow.com/questions/26208566/how-to-stream-and-download-a-media-from-local-storage-using-androids-videoview Oct 06 06:24:33 FreeNow: http://www.jkrishnamurti.org/krishnamurti-teachings/view-text.php?tid=405&chid=4724 Oct 06 06:24:37 * FreeNow is watching bill o'reilly yelling at different people on youtube Oct 06 06:24:42 Nowadays, I wonder how I used to program at all when SO didn't exist. Oct 06 06:24:43 * FreeNow it relaxes me Oct 06 06:24:44 hmm Oct 06 06:24:50 Relaxes? ;o Oct 06 06:24:51 lasserix url looks fishy Oct 06 06:24:53 I would like to know something like that myself Oct 06 06:24:54 Oh god politics Oct 06 06:24:55 shall I copy past all here? Oct 06 06:24:58 localStorage as a content URI Oct 06 06:25:05 FreeNow google krishtanmurti what is love Oct 06 06:25:09 tacticaljoke yes, his irrationality is self-reassuring Oct 06 06:25:15 I know what you mean. Oct 06 06:25:16 if you really want a good discussion of that quesiton Oct 06 06:25:19 darklust no he's debating atheists Oct 06 06:25:23 I sometimes watch Deal or No Deal for that reason. Oct 06 06:25:41 I suppose Bill O'Reilly actually helps people realize they aren't THAT stupid :D Oct 06 06:25:44 Those people are all idiots. I'm only a minor idiot. Therefore, I can feel awesome. Oct 06 06:25:46 warvick2014 no use pastebin Oct 06 06:25:54 ok w8 Oct 06 06:26:16 It's amazing how irrational those people are. "I've got a good feeling about box 22." Really? Oct 06 06:26:22 My random-number generator says you're full of it. Oct 06 06:26:26 also watching dawkins/hitchens use the same arguments over and over never gets ol Oct 06 06:26:27 old Oct 06 06:26:38 it's like watching people play the scary maze game Oct 06 06:26:43 this is the code : http://pastebin.com/RSGwG2Sa Oct 06 06:26:46 I like watching Dawkins and co destroy crazy theists. Oct 06 06:27:04 question is : I want ot stream and download video with videoview in android Oct 06 06:27:20 NO Oct 06 06:27:24 IT'S THE UNITED ATHEIST ALLIANCE Oct 06 06:27:27 but the videoview doesn't response to my server sequentially. Oct 06 06:27:27 IT'S THE ONLY NAME THAT MAKES SENSE Oct 06 06:27:54 it asks for range but not sequentially Oct 06 06:28:08 sometimes it hops from 300k to 600k without any good reason Oct 06 06:29:28 FreeNow did u see the code? Oct 06 06:30:06 warvick2014 I'm fairly noobish but someone else may be able to help you Oct 06 06:30:32 anyone experienced here? please I really need help Oct 06 06:30:49 I can write java but I've just been improvising with Android Dev Oct 06 06:30:54 it's been fairly successful Oct 06 06:39:50 anyone have xml code for a circular ball (ping pong looking thingy or 3d button) ? Oct 06 06:40:49 A trackball? Oct 06 06:40:56 that would work Oct 06 06:43:28 warvick2014, might be able to help in a couple hours... browsing the code on this phone and not being able to test isn't exactly helping me help you Oct 06 06:44:21 Zharf I would appreciated if you just let me know what is wrong with my code or with videoView? Oct 06 06:45:31 I don't know without investigating and I can't do that very well on this phone Oct 06 06:56:40 Is it possible to do two animations at the same time Oct 06 06:56:45 i want to rotate and translate? Oct 06 06:57:09 view animation ? Oct 06 06:57:13 with xml ? Oct 06 06:57:18 well i am doing it in code Oct 06 06:57:21 but yeah Oct 06 06:57:27 just using rotate and translate atm Oct 06 06:57:59 well yeah, you can do pretty much anything really Oct 06 06:58:23 personally the one thing I do use xml for is anim pre-sets :) Oct 06 06:58:42 well, for view animation anyways Oct 06 06:59:47 warvick2014: maybe you can use MediaRecorder to do the same thing ? Oct 06 07:00:15 does Mediarecorder record the gaps and pause? Oct 06 07:00:24 if so it doesn't help me shmooz Oct 06 07:04:01 quick question Oct 06 07:04:06 before i go to sleep Oct 06 07:04:13 admob requests and impressions Oct 06 07:04:35 is there more than one request per vanilla admob ad? Oct 06 07:04:45 really need to start tracking this myself Oct 06 07:06:11 hi! Oct 06 07:06:36 is there a way to tell android to stop charging the battery while connected via usb? Oct 06 07:07:37 warvick2014: if you use it, you wouldn't need the proxy which is probably causing the problems Oct 06 07:10:04 hi guys, is there native english speaker around? Oct 06 07:13:43 Que? Oct 06 07:14:07 i think there are several native english speakers here Oct 06 07:15:06 who is the most English though eh ? :) Oct 06 07:15:31 * StingRay_ is ingrish Oct 06 07:15:51 en-US? en-UK? Oct 06 07:16:50 English/England Oct 06 07:16:52 :) Oct 06 07:17:55 en-GB I think I meant Oct 06 07:20:41 LOL judge judy soundboards on black ops Oct 06 07:21:14 warvick2014: or you can try buffering (downloading) more chunks before playing them Oct 06 07:26:32 bye Oct 06 07:29:05 I was wondering if anyone know of an app to clean the memory of a tablet (like CCleaner for windows) Oct 06 07:29:31 shmooz I'm doing the exact thing that you suggest Oct 06 07:29:51 I explained my problem here : http://stackoverflow.com/questions/26208566/how-to-stream-and-download-a-media-from-local-storage-using-androids-videoview [10:23] it has full detail Oct 06 07:30:48 the buffer more suggestion ? yeah I saw that link Oct 06 07:31:48 I guess with MediaRecorder you wouldn't have the whole file offline if you skipped around with the controls Oct 06 07:33:17 and it wouldn't be the same file, it would be the newly encoded file which you can choose the format of Oct 06 07:38:00 shmooz yeah agree Oct 06 07:38:07 MediaRecorder is not good choice Oct 06 07:44:30 How do I centre the text in this layout? http://ur1.ca/iavrn Oct 06 07:45:09 I've tried various approaches, but none work, so I must be missing the obvious... Oct 06 07:47:43 using android:gravity & android:layout_gravity Oct 06 07:48:02 Nivag set the width of the TextView to 'match_parent' Oct 06 07:48:58 I was wondering if anyone know of an app to clean the memory of a tablet (like CCleaner for windows) Oct 06 07:49:24 you said that Oct 06 07:50:21 bellow https://play.google.com/store/apps/details?id=com.cleanmaster.mguard Oct 06 07:50:59 now he'll never figure out google :/ Oct 06 07:51:07 :) Oct 06 07:51:09 Or the play store Oct 06 07:51:18 the_fog: fine EXCEPT I'm add 2 or more fragments, & I want the text to be centered just for this layout the includes the radio group... Oct 06 07:51:36 I tried that Oct 06 07:51:38 did not work Oct 06 07:51:50 bellow: I use SD Maid Oct 06 07:52:09 I do not need the sd card cleaned Oct 06 07:52:14 Doesn't matter Oct 06 07:52:19 It does the whole system Oct 06 07:52:50 Hello, anyone here using SystemBarTint in their apps? Oct 06 07:52:54 Is there any ready to use platform to store oauth tokens like the secure key one? That costs $500 USD/yr Oct 06 07:53:52 I need a way to know if a user is using the device in Immersive mode or Expanded desktop mode Oct 06 07:54:03 I do not want it to do thh whole thing Oct 06 07:54:04 Nivag: okay you can do it programmatically so, just get a reference to the textview(id) and set it in code Oct 06 07:54:19 the width that is.. Oct 06 07:54:22 bellow: Download it and use it and stop complaining Oct 06 07:54:35 Will not download Oct 06 07:54:53 sad Oct 06 07:55:18 SystemBarTint library anyone? Oct 06 07:55:22 the_fog:thanks, gotta go, I might be able to try it in an hour or 2 - you likely be around then? Oct 06 07:55:38 should be... Oct 06 07:57:17 Tried a lot but couldn't find a way to detect full screen or immersive mode on Android Oct 06 07:59:07 getWindow().getAttributes().flags didn't help Oct 06 08:02:17 can anyone help me with this? Detecting full screen or immersive mode in app Oct 06 08:12:52 How to detect full-screen or immersive mode in an app Oct 06 08:14:31 Why would you need to detect? You're the one telling the framework that you want full screen/immersive Oct 06 08:15:26 If you can set those flags, you can probably read them with similarly named methods Oct 06 08:15:55 simonVT, to make the app behave differently if the user is using expanded desktop or etc Oct 06 08:16:31 for example, I use SystemBarTint library Oct 06 08:16:53 which says, you shouldn't apply tint if the app is full-screen Oct 06 08:17:22 So, we detect if the user is using expanded desktop, if yes, we don't apply the tint. Oct 06 08:20:30 I tried getWindow().getAttributes().flags and do a bitwise-and with WindowManager.LayoutParams.FLAG_FULLSCREEN Oct 06 08:20:48 but it always returns false Oct 06 08:21:01 there is no flag for immersive mode yet Oct 06 08:21:23 tried it on Kitkat Oct 06 08:22:15 So you're asking how to detect specific rom modifications Oct 06 08:22:30 You should probably ask #android-root, or whoever made those modifications Oct 06 08:23:08 cool, will try Oct 06 08:29:31 can someone please tell me how to consume the test purchases i’ve made using android.test.purchased? Oct 06 08:30:13 How do I get the keyboard to automatically show? Oct 06 08:30:32 I tried using requestFocus on the Edittext obj Oct 06 08:30:35 but nothing happens Oct 06 08:31:03 does setAnimation cause an animation to start? Oct 06 08:31:19 i have three animations in a row, on three seperate views, when view one finishes, starts second Oct 06 08:31:21 etc Oct 06 08:31:31 but they all start when it loadds, even tho i am calling start on just the first one Oct 06 08:32:02 <_CalLightman_> Hi, I am loosing focus from edittext in the expandable list when keyboard pos up. Need guidance with the issue and ontouch listeners. Oct 06 08:36:49 Can someone recommend translation services for Android apps besides the one offered in the Google Developer Console? Oct 06 08:39:12 how do i get the purchase info for my app? i’m going from paid to freemium, and i want to give the in app purchase features to those who already bought the paid app Oct 06 08:39:43 hmm, is it possible to change only one gridview item? I got ImageView and style with state set to it. When I do holder.image.setActivated(true) and then call notifyDatasetChanged() it's working but when I do item.invalidate() it's not. What is the best way to do that ? Oct 06 08:41:46 platzhirsch, I contacted people directly Oct 06 08:41:56 Ologn: :D what do you mean? Oct 06 08:42:03 <_CalLightman_> Hi, I am loosing focus from edittext in the expandable list when keyboard pops up. Need guidance with the issue and ontouch listeners. Oct 06 08:42:12 platzhirsch, I looked for translators for languages not listed and had them translate stuff Oct 06 08:42:23 The swedish translator was very good...some are good, some not... Oct 06 08:44:26 I'm trying to develop an app which takes some attributes like email and name etc from the user , on submission ( on button click ) I want the data to be stored online , I don't want to store it in a databaase , I just want to store in a file like a Excel file or a create a JSON object and store it in a file online , I have no clue about the storing part , how would I do it in android , the uploading of data and also the web scra Oct 06 08:44:32 Does anyone know does calling setAnimation is supposed to cause an animation to start? Oct 06 08:47:19 lasserix, no it doesn't Oct 06 08:47:37 startAnimation(Animation anim) will start the animation. Oct 06 08:47:49 hmm Oct 06 08:47:54 well setAnimation is starting my animation Oct 06 08:47:54 also, rtfm :) Oct 06 08:47:58 i did foo Oct 06 08:48:01 dont tell me to rtfm Oct 06 08:48:07 that's why i was asking here Oct 06 08:48:25 setAnimation(Animation anim) sets the next animation for the view Oct 06 08:48:36 i have animation1,2,3 on 3 different views, where 1 and 2 have animation listeners where onAnimationEnd starts the next one, Oct 06 08:48:53 when i setAnimation it starts all the animations simaltaneousily Oct 06 08:48:59 even if i only do start for animation 1 Oct 06 08:49:54 ahh even more odd, i had commented out startAnimation onAnimationEnd and it still starts the other two Oct 06 08:49:55 why not use startAnimation() then? Oct 06 08:50:33 ahh Oct 06 08:50:41 startAnimation != animation.start() ? Oct 06 08:51:17 nah that doesn't work either Oct 06 08:51:40 Just don't set the animation until it's supposed to start? Oct 06 08:52:04 http://pastebin.com/Cj0VwwcW Oct 06 08:52:08 ahh Oct 06 08:52:11 that would work Oct 06 08:52:14 i was just confused Oct 06 08:52:20 why setAnimation is causing it to start Oct 06 08:52:23 anyways there's the code Oct 06 08:52:58 Also, Animator > Animation Oct 06 08:53:40 Can anyone help me please :/ Oct 06 08:53:57 neetz you spent like hours here the other day and got no answer Oct 06 08:54:00 your question is too vague Oct 06 08:54:35 neetz: your quesiton should be " can I push data from the app to google docs or some other online webstorage" Oct 06 08:54:49 SimonVT: thanks that worked Oct 06 08:55:36 lasserix: well , I tried with google docs , it's too rigid , I mean firstly there's no proper tutorials for it , and secondly I don't need google docs i think , because there is API key invloved and all those authentication shit , i don't need that part , i just want to dump data to a excel or a csv file online Oct 06 08:55:51 neetz yeah so put up a server Oct 06 08:56:09 lasserix: I'm not allowed to do so :/ Oct 06 08:56:19 lasserix: is there any other service Oct 06 08:56:27 what do you mean you are not allowed to do so? Oct 06 08:56:27 lasserix: apart from docs :/ Oct 06 08:56:44 lasserix: I mean it's a course project , we're not allowed to buy aserver Oct 06 08:56:49 that's not an android specific question and doesn't belong in this chatroom ... Oct 06 08:57:10 lasserix: dude , there should be some other service right Oct 06 08:57:14 idk Oct 06 08:57:21 lasserix: I mean like online free storage Oct 06 08:57:31 ah, homework... Oct 06 08:57:33 lasserix: without the use of any authentication Oct 06 08:57:36 neetz: idk and that's not really an android-dev question Oct 06 08:57:53 If it's for homework can't you just host a local server Oct 06 08:57:54 Leeds: not homework man , I ain't asking for code dude , i just need resources Oct 06 08:58:05 So you want a completely open server that anyone can upload any data they want to Oct 06 08:58:30 SimonVT: exactly , i don't care about security in my app , coz it's universal data Oct 06 08:58:44 SimonVT: or i would say , i'm not caring as of now , i just want to dump data Oct 06 08:59:19 i recomend you all not enable him, he'sjust going to troll you Oct 06 08:59:24 lasserix: well :/ , google docs for android there's not much tutorials man , i saw in SO , people were complaining , Oct 06 08:59:54 lasserix: what ? why ? :| Oct 06 09:00:29 lasserix: I've got a life too man , i just want this right service ;/ ah man , this sucks ! you judged me baselessly Oct 06 09:00:53 damn, you've got a life? wish I did... Oct 06 09:00:55 neetz you spent like 4 hours asking the same question wasting a lot of peoples time yesterday or the day before Oct 06 09:01:06 youre question is not android development specific Oct 06 09:01:22 do only in app purchases have an SKU? or should there be an SKU for the purchase of the app itself? Oct 06 09:01:25 lasserix: only yesterday :/ , so which category this falls then ? Oct 06 09:01:32 you must have a friend who can set up a local server at the college you can push data too Oct 06 09:01:44 i have no idea but im sure you can google and figure it out Oct 06 09:02:09 lasserix: tried very hard since yesterday :/ couldnt find any sources man :( Oct 06 09:02:32 neetz: Hopefully you can see why that is a bad idea, and why noone who knows what they're doing would offer such a thing Oct 06 09:02:35 Just host your own Oct 06 09:02:37 Google how to Oct 06 09:03:01 ultra-: You can't convert app purchases to in app purchases Oct 06 09:03:27 i’m just trying to check if the app was bought before i went from paid to freemium Oct 06 09:03:33 SimonVT: I know that's a bad idea , but the app doesn't have any sensitive data , i tried with pastebin too :/ Oct 06 09:03:33 hello guys Oct 06 09:03:38 neetz hey look first result http://www.serversfree.com/ Oct 06 09:04:29 quick question .. rolling my own adapter view and i have a bunch of "cards" stacked ontop of each other in a very disordered way and i calculate the rotation of a card based on a random number Oct 06 09:04:31 SimonVT: so basically that means i’m trying to do what you said i’m doing, but someone in here told me i can just check the purchase date or something like that Oct 06 09:04:37 lasserix: the point is we should not use servers , free servers are not reliable , if i opt for paid ones it's not allowed Oct 06 09:04:39 any good channels other than #android-dev and #android-root Oct 06 09:05:00 I have a spinner and set android:enabled = "false" in the xml. The spinner is still shown active and I can select items from the dropdown. How can I deactivate the spinner from xml? Oct 06 09:05:09 neetz: so your homework is that badly defined? "put it on a server somewhere, not a free one or a paid one"? Oct 06 09:05:23 Leeds: yeah ! :( Oct 06 09:05:32 Leeds: seriously man , that sucks :/ Oct 06 09:05:40 but when i add more data to the backing data of my adapterview and it calls notifyDataset changed all the cards that are currently visible( i only show 5 at a time) get relayout'ed re laid out and they have new orientaions (rotation) so you see a jump on the screen Oct 06 09:05:43 do you not see the logical weakness involved? Oct 06 09:05:56 is there a way i could make them not jump around? Oct 06 09:06:28 Leeds: I know man , can't complain , He is my teacher , ! I'm okay using docs , but there's no proper documentation Oct 06 09:06:50 then it's time for you to learn one of the very very important skills of software development Oct 06 09:06:58 Leeds: and i guess docs has been buiilt for many features like file transfer and all , which i don't require Oct 06 09:07:21 vbn4, what was it you wanted to do again? Oct 06 09:07:30 Leeds: well , let's see ! can we use any other tool ? Oct 06 09:07:41 Leeds: like similar to docs :/ Oct 06 09:07:57 neetz: the skill is... dealing with documentation which isn't as complete or clear as you want. Learn to deal with it Oct 06 09:08:03 vbn4, I wanted to detect if user has Expanded desktop on Oct 06 09:08:21 VnM, either Xposed or Custom ROM implemented Oct 06 09:08:51 Leeds: :( , you know any other services aprt from docs ? Oct 06 09:09:21 VnM, I tried this with getWindows().getAttributes().flags, but it always returns false for the full screen flag Oct 06 09:09:26 neetz: there are many services... another skill you will learn quite soon is using a site called "Google" to search for stuff... /me done Oct 06 09:11:14 Leeds: I've googled enough man ! if you can't help , say no ! please don't mock and abuse me , so yeah mind your words Oct 06 09:11:29 Yay internet derping hard Oct 06 09:11:30 I'm helping and mocking in equal share - it's what I do Oct 06 09:11:43 frankly, straight up helping is very boring Oct 06 09:11:50 Leeds: you said you're done right lol Oct 06 09:12:28 lemonxah: you could grab the bitmap cache, post that while the notify data set happens, then remove it once it's done Oct 06 09:13:09 so, any popular android dev focused channels other than #android-dev and #android-root? Oct 06 09:13:10 but it will still relayout the elements inside my adapterview which will cause the random orientation to change the stack Oct 06 09:13:37 lemonxah: if they have the same placement after it, then it doesn't matter, just hide it when you add new ones, displaying the bitmap cache Oct 06 09:13:40 vbn4: don't repeat the question Oct 06 09:13:41 then remove the bitmap cache Oct 06 09:13:56 they dont have the same placement afterwards that is the problem Oct 06 09:13:58 lemonxah: otherwise you'll have to implement some animation to smoothly move them to their new location Oct 06 09:14:12 neetz: alright Oct 06 09:14:26 "is there a way i could make them not jump around" --> this makes it sound like they don't move Oct 06 09:15:03 vbn4, if you're using KitKat though the flag might be SYSTEM_UI_FLAG_IMMERSIVE Oct 06 09:15:11 https://developer.android.com/training/system-ui/immersive.html Oct 06 09:16:13 neetz: http://pastebin.com/api Oct 06 09:16:39 lasserix: tried it too , there's no CSV or excel sheet Oct 06 09:16:40 dont ask me anything else about it, but there's a semi-server basis for dumping simple json data too if you wanted Oct 06 09:16:57 you want someone to spoon feed you huh? Oct 06 09:16:58 lasserix: http://stackoverflow.com/questions/26206423/android-storing-data-in-a-file-which-is-on-the-web?noredirect=1#comment41107652_26206423 Oct 06 09:17:03 write the cvs encoder yourself Oct 06 09:17:25 lasserix: *sighs* Oct 06 09:17:40 VnM, I'll give that a try Oct 06 09:17:43 you rreally want someone lse do to your homework for you Oct 06 09:19:04 lasserix: nah , but why would i write an API , i think there should be someone who has written it , i just gotta use it , but not finding any guy who's written it Oct 06 09:20:01 pastebin has an api, you want someone to basically write the code for you to put into an excell sheet which i am guessing is your homework assignment because that's the only thing that makes since why your teacher would assign "push to some place that's not a server requiring registration" Oct 06 09:21:05 i'm happy to do your hw for you but like everyone else you got to pay me 50$/hr Oct 06 09:21:10 :) Oct 06 09:21:35 anyone ever try to purchase your own app? mine won’t let me Oct 06 09:21:40 I'd say I'll do it for $40... but no Oct 06 09:21:43 lasserix: 50 $ ? that's really cheap ! Oct 06 09:35:11 is there any good free game development tool? I can google it but I am looking voice of exprienced devlprs Oct 06 09:51:02 is there anywhere i can create a REST api Oct 06 09:51:03 online Oct 06 09:51:04 for free? Oct 06 09:51:13 quick and easily? Oct 06 09:52:10 deploy a rails/play/django/whatever app to heroku Oct 06 09:53:15 Does anyone know of a website that lets you list the movies(dvd) that you own and has on app that you can use on an adroid. On the android both online and offline. And not IMDB. Syncable do not want to download it everytime I add to it to update all them Oct 06 09:54:20 mymovies Oct 06 09:54:37 "my movies" actually Oct 06 09:54:38 Tried it Oct 06 09:54:43 Did not work Oct 06 09:55:34 works fine for me Oct 06 09:55:44 Pid for it Oct 06 09:55:51 I cannot afford to pay for it Oct 06 09:55:54 bellow, try #android, this channel is for app dev Oct 06 09:56:29 how do you afford an android device then Oct 06 09:59:33 It was a gift Oct 06 09:59:33 7 Oct 06 09:59:39 I cannot send to android Oct 06 10:00:59 That's not our concern, this channel isn't for getting app recommentations :) Oct 06 10:01:14 Whatever Oct 06 10:06:07 hello to everyone. I use the android volley library in my project. I set the timeout to 5000ms but the query is being executed having finish time 12651ms. How can this happen? Oct 06 10:10:27 resu01: its not timing out Oct 06 10:10:41 "The timeout" isn't very specific. So you probably just haven't checked what it is you're setting to 5000ms Oct 06 10:10:44 i know but it should Oct 06 10:11:14 s but the query is being executed --> what is your result code? Oct 06 10:12:03 i take the json result whereas i should take a timeoutError Oct 06 10:12:42 what is the http response code you are getting? Oct 06 10:12:54 oh does volley give you that info? Oct 06 10:12:57 one moment to check it Oct 06 10:14:17 Protip, usually there's both connect timeout and read timeout.. Oct 06 10:14:36 Also, 5000 ms isn't very long on a mobile device Oct 06 10:15:29 wow, the play store does not accept a screenshot made on the Wildfire Oct 06 10:15:49 minimum size on each dimension is 320px, but the Wildfire is 320x240 Oct 06 10:16:01 so, eh, it asks me to upscale the image? okay :p Oct 06 10:16:21 SimonVT: the default is 2500 Oct 06 10:16:24 Just don't use screenshots with shitty resolution Oct 06 10:16:53 yeah, but I want to demonstrate that my app works (and how it looks) on Gingerbread Oct 06 10:17:04 and the only Gb device that I have is that crappy Oct 06 10:17:10 Use the emulator Oct 06 10:17:21 yeah, nope. It's a Bluetooth app Oct 06 10:17:33 screens that size are a tiny tiny tiny fraction of the market Oct 06 10:18:00 remember the scool project I told you about yesterday? Oct 06 10:18:04 same app, same reasoning Oct 06 10:18:45 and I found a super-low-tech GB device of my own, so I can test it on both the absolute minimum and a very recent phone now :) Oct 06 10:19:54 lasserix: i get request.finish: 11452ms .... NORMAL 15 Oct 06 10:20:05 this is the volley logcat message Oct 06 10:24:17 how can i set the timeout for the request from the time i press the execution till i get the result? Oct 06 10:25:47 no idea Oct 06 10:25:48 use okhttp Oct 06 10:25:50 :) Oct 06 10:26:17 the_fog: I think I understand, I'll try it tomorrow 11:25pm here in NZ... Oct 06 10:27:26 so, for what reason setretrypolicy defaultsockettimeout is used for? Oct 06 10:31:46 can someone please run this on an app that you’ve been developing for longer than today? it checks to see the original install time: http://pastebin.com/RYz5PiEq Oct 06 10:31:59 i just want to make sure that even after a new compile, it’s giving you an old date Oct 06 10:33:05 you should use an emulator (or something similar) ultra- Oct 06 10:33:17 so you can test yourself, how could you rely on strangers for test? Oct 06 10:33:41 it's a developer channel, we might give a hand but it's not a tester channel Oct 06 10:33:49 hi, pls someone can help me with canvas and bitmap? tnx Oct 06 10:33:50 i’m testing this against a hardware device… but i did an uninstall this morning… i want to see what this code does on another device Oct 06 10:35:20 So it only give you the day the app was installed, since an uninstall this morning means you can't test it? Oct 06 10:35:44 Nivag: okay. set the width to 'match_parent' in xml for all fragments, but set the gravity programmatically depending on which fragment is using it Oct 06 10:35:54 is there a way to apply a style to a button during runtime? ie in xml file it would say style="@style/cameraButton" i assumed i could put that in the ctor of Button when calling new, but that didn't give the result i wanted Oct 06 10:36:04 im trying to load a Bitmap to Canvas, than draw on it with path, and after this save the whole as one bitmap but i get error mesage. pls help me Oct 06 10:36:48 Rintano, pastebin code and error Oct 06 10:42:03 http://pastebin.com/fUn2bRQz - where the lot of ???? i save the canvas back to bitmap, but it save just what i changed, but not together with the original part Oct 06 10:46:22 this because i make a new bitmap, but if i dont make a new one i get an error Oct 06 10:50:06 someone any idee? Oct 06 10:50:44 mm Oct 06 10:52:00 so you're drawing to a view and then drawing the contents of that view into a bitmap to save? Oct 06 10:53:35 yes Oct 06 10:53:44 i try to capture a signature Oct 06 10:53:57 and the end result is what? Oct 06 10:54:19 the endresult would be saved in a byte[] Oct 06 10:54:38 I mean what are you getting in the image now? Oct 06 10:55:08 the image is saved as byte[] in myApp.getFreiHandschrift() Oct 06 10:56:48 than i i click a button again, the image would from this byte[] loaded to the mBitmap, and this drawed to the canvas with canvas.drawBitmap(mBitmap, 0, 0, paint); Oct 06 10:58:04 after loaded to the canvas i make different draws with canvas.drawPath(path, paint); Oct 06 10:59:30 http://pastebin.com/SBtPcpkw here is where i save it back to the byte[] Oct 06 11:03:17 most bitmaps are actually readonly, that's why you get an error if you try to draw to one gotten from BitmapFactory.decode* methods Oct 06 11:08:31 and can i somehow load the bitmap to the view or canvas, make changes and save the whole to a new bitmap? Oct 06 11:08:54 * Zharf is still wondering if he should just let google remove his apps from the store or can he still have them there without his street address Oct 06 11:09:32 Rintano, yes, load the bitmap, draw to the canvas, draw the canvas on a new bitmap and save Oct 06 11:11:48 ok, i try. tnx Oct 06 11:15:42 SimonVT: ahh i figured it out startAnimation was called on the view not on the child view didn't realize Oct 06 11:27:24 how would you get information from an activity? Oct 06 11:27:27 i mean fragment Oct 06 11:27:57 the carrot or the stick Oct 06 11:28:13 you can take it out dinner, get some good wine, fine chocolate, woo it a little Oct 06 11:28:31 or plunge its head into a box of fear and interrogate it Oct 06 11:28:53 depends on what you are trying to get Oct 06 11:28:55 interfaces Oct 06 11:28:59 or singletons Oct 06 11:29:08 there is also some message passing api i believe for fragments Oct 06 11:29:55 there is an accept / decline button on the fragment that when pressed should pop that fragment off the stack go back to the previous fragment and then call the accept/decline method on that fragment Oct 06 11:32:07 yeah so android dev guide Oct 06 11:32:11 uses an interface Oct 06 11:32:17 with the host activity being the controller Oct 06 11:32:27 and you can attach it as the context passed in onAttach Oct 06 11:32:33 err assign it Oct 06 11:33:30 With launchMode="singleTop", onCreate() of the new instance is executed before onDestroy() of the old instance Oct 06 11:34:33 ah nevermind Oct 06 11:34:44 this leads to a very very messy activity after a while :/ Oct 06 11:37:03 just make a controller class Oct 06 11:37:21 that handles all your interfragment jaz Oct 06 11:48:23 hey guys, i have a problem with using fragments i hope someone can understand it Oct 06 11:49:58 i use async http calls for a login system. everything works well except when the activity gets reloaded (by rotating device) it fails Oct 06 11:50:23 Because can not preform this action after onSaveInstanceState Oct 06 11:51:09 imagine that in my onSuccess callback it loads the "home" fragment (or error) Oct 06 11:51:32 this works well on the first onCreate but not after instance save Oct 06 11:57:58 so basically i need to change the fragments after saved instance aswell Oct 06 11:59:14 You're probably trying to do fragment transactions on the old activity instance Oct 06 11:59:55 Hi Oct 06 11:59:57 How can I have a Spinner without a default selection? I just want the Spinner to be empty before clicking on it. Oct 06 12:02:58 SimonVT is there a workaround? Oct 06 12:03:59 Make sure your callback calls the right Activity instance Oct 06 12:05:33 guys I just starting with android and I am kinda stuck. I wanna execute some methods of a class that extends FragmentActivity inside a class that extends Fragment. Is this possible somehow? Oct 06 12:05:39 started* Oct 06 12:06:08 that happened because i wanna run the default google maps code inside a more complicated activity class (not the google maps activity) Oct 06 12:07:50 cnap: What does FragmentActivity extend? Oct 06 12:09:00 SimonVT i pass the activity in onCreate, that should be ok? Oct 06 12:10:04 barq: just give me a momen plz Oct 06 12:13:16 also is it possible to get the current running activity inside a class ? Oct 06 12:14:18 BulleTime: getApplication()? Oct 06 12:15:17 getApplication() is undefined Oct 06 12:16:23 ok barq: I'll try to explain better now Oct 06 12:16:24 BulleTime: What type of class? Oct 06 12:16:33 onCreate should be fine.. And no, you can't get the "running activity" Oct 06 12:16:38 so I wanna use a drawer navigation activity which produces its own classes with google maps Oct 06 12:16:59 so I ended up having a class "public class MapsActivity2 extends FragmentActivity" which is for google maps Oct 06 12:17:10 and this "public class MyActivity extends Activity Oct 06 12:17:10 implements NavigationDrawerFragment.NavigationDrawerCallbacks" Oct 06 12:17:28 which is produced by default when u create new Drawer Nav Activity project Oct 06 12:17:29 im passing the activity to a class that has the login callbacks Oct 06 12:17:36 cnap: Do you need the support lib? Oct 06 12:18:01 barq:which support lib do u mean? sry i am very very new to this Oct 06 12:18:14 and didn't study much, im just curiouys how this could be done Oct 06 12:18:29 FragmentActivity is part of the support lib. Why not just use Fragment or Activity if you don't. Oct 06 12:18:39 ok Oct 06 12:19:04 because what I tried to do is to "marry" the default code produced from a Google maps activity project WITH one Drawer Nav activity project Oct 06 12:19:05 SimonVT what else can i do :S ? Oct 06 12:19:16 do u understand the issue ? Oct 06 12:19:16 because through out their combination I am getting a nice UI + maps working Oct 06 12:20:03 cnap: Show code. Oct 06 12:20:32 As long as your callback class isn't keeping a reference to an activity after it has been destroyed you're fine Oct 06 12:21:26 SimonVT : also if the login was called in onCreate ? Oct 06 12:21:43 Ok barq: This is MapsActivity class code: https://bpaste.net/show/1894aa16b9f3 and this is my main activity's default produced code https://bpaste.net/show/29387b1e5f43 Oct 06 12:22:28 I don't see how it matters where the login was called Oct 06 12:22:44 If you're keeping references to the activity after it has been destroyed, you're doing it wrong Oct 06 12:23:25 hhm well but the first thing i do in onCreate is creating the class and passing the activity Oct 06 12:23:30 Orientation changes create a new activity instance. If you rely on a reference to the activity for your callbacks, you need to swap that out Oct 06 12:24:14 I'd punt the interaction into service running in separate thread, probably Oct 06 12:26:53 Or just use an event bus for the callback Oct 06 12:27:21 http://pastebin.com/GuVYLQJA - how should i chgange the code if i want to save the picture in original mBitmapOld and new drawed in the canvas too. tnx Oct 06 12:27:42 an event bus for the callback ? Oct 06 12:29:11 so anyhow, am i right that onSaveInstanceState is called on every user interaction e.g. fragment replacement ? Oct 06 12:29:31 No Oct 06 12:29:55 when is onSaveInstanceState called ? Oct 06 12:30:58 whenever it feels like it Oct 06 12:32:12 Before the activity instance is destroyed, if necessary Oct 06 12:32:27 Should be documented Oct 06 12:33:03 g00s: it hadda happen : http://www.wired.com/2014/10/code-published-for-unfixable-usb-attack/ Oct 06 12:33:11 Hi! I published an app 4 hours ago, and it does show up on it's own page now, and also in the search results when you type the apps name, but it does not show up when someone clicks my name. Only my older apps show up on that page Oct 06 12:33:27 Is it normal that the 'developer' page takes longer than others? Oct 06 12:33:43 The app: https://play.google.com/store/apps/details?id=nl.haas_en_berg.bluelamp Oct 06 12:33:46 It's just caching, keep waiting Oct 06 12:33:47 The page: https://play.google.com/store/apps/developer?id=Peter+Hazenberg Oct 06 12:34:13 meh... g00s sleeping :/ Oct 06 12:34:20 SimonVT: way too much caching... a youtube video is done in 5 minutes (I've seen less), why can't google do the same here? Oct 06 12:34:23 oh well Oct 06 12:35:29 Ok so why would a fragment replacement work well if commited from user interaction, and not initially from onCreate ? Oct 06 12:37:39 Fragment transactions work fine in onCreate Oct 06 12:38:25 i think not is there was a saved instance state Oct 06 12:38:34 if * Oct 06 12:39:44 They work fine Oct 06 12:40:26 okay then im just doing it wrong by using a class i suppose Oct 06 12:41:12 Not sure what you mean Oct 06 12:41:23 Your callbacks are async.. They don't happen in onCreate Oct 06 12:41:35 Or rather, your login thing is async Oct 06 12:41:54 While you might start whatever task you're running in onCreate, your callbacks happen later Oct 06 12:41:58 yes i call the async login in onCreate Oct 06 12:42:17 Right, so you're not doing the fragment transactions in onCreate Oct 06 12:42:34 no not directly Oct 06 12:43:00 but i still dont understand why the callback cant replace fragments Oct 06 12:43:38 Do you understand that orientation changes destroys the activity instance and creates a new? Oct 06 12:44:08 And if you do not let your async login class thing know about the new activity instance, it'll try to do fragment transactions on the old, destroyed one ? Oct 06 12:50:49 SimonVT yeah i think its exactly like that, testing now Oct 06 12:56:21 hhm im still getting the same error "Can not perform this action after onSaveInstanceState" Oct 06 12:56:35 i moved the callbacks to my main activity Oct 06 12:57:05 so it has to be using the new activity right SimonVT Oct 06 12:58:03 How do you pass the new activity to the already running task? Oct 06 13:02:34 is there any way to store the ParseUser offline for login offline later ? Oct 06 13:05:33 SimonVT i dont Oct 06 13:05:49 i moved the callbacks to my activity Oct 06 13:06:25 and from there i commit fragments. i dont need to pass the activity Oct 06 13:08:13 i suppose that when the activity gets destroyed, the async tasks would also destroy, or would the error be from an old task ? Oct 06 13:25:36 SimonVT : this page describes my issue : Oct 06 13:25:37 http://www.androiddesignpatterns.com/2013/08/fragment-transaction-commit-state-loss.html Oct 06 13:25:58 hi Oct 06 13:26:10 anybody around with a kingzone k1? Oct 06 13:26:19 its because i commit fragments inside asynchronous methods from onCreate Oct 06 13:28:31 so how could i archive a http request that can commit fragments ? Oct 06 13:29:10 i do loading stuff with an AsyncTask Oct 06 13:29:40 you can also use a service Oct 06 13:30:52 i use this library: Oct 06 13:30:52 http://loopj.com/android-async-http/ Oct 06 13:31:11 i'd like to stay on that if its possible Oct 06 13:31:31 thats ok Oct 06 13:31:36 so what's the question? Oct 06 13:31:58 you get an "ok here's the text from the http call" or "heres the error" Oct 06 13:32:09 now you have to run on the ui thread an update... Oct 06 13:32:37 well, when the activity gets reloaded, the savedInstance is present and then i cant commit fragments inside the callback Oct 06 13:32:49 giving the "Can not perform this action after onSaveInstanceState" error Oct 06 13:33:03 however the very first onCreate works well Oct 06 13:33:32 refactor the code Oct 06 13:33:44 yes the the problem is within committing fragments from async callback Oct 06 13:33:59 you have to do that on the UI thread Oct 06 13:34:50 i am trying to set a divider in an ExpandableListView its style is http://pastie.org/9624828 and when using this it results in the stacktrace attached, if i change the divider to @null no problems occur, what could be wrong? Oct 06 13:35:13 monsti is that the only workaround? a runnable ? Oct 06 13:35:17 activity.runOnUiThread(new Runnable() { public void run() { ... } Oct 06 13:35:19 }); Oct 06 13:35:26 yes Oct 06 13:35:44 because you can't run any network code in the ui thread Oct 06 13:39:33 Guys, Im making an app with a gridview. I want to change the number of cols based on the device size. For instance a 3 inch device, even having mdpi, is too small. Then I would like to have 2 items. But a 5inch device, even having mdpi could have 4 items. Oct 06 13:39:41 monsti committing the fragment on UiThread aint gonna solve that Oct 06 13:39:57 Where should I store the number of items to achieve that? Oct 06 13:40:50 BulleTime: maybe you can create the fragment and just change the content from the asynctask? Oct 06 13:41:47 monsti i thought about that, but basically i have two different fragments for onSuccess and onFailure Oct 06 13:42:42 SidFerreira: You can use the resources folders to handle that. Oct 06 13:43:25 pieces029: that's what I had in mind, but, what's the name pattern for device size? Oct 06 13:43:27 I would save the value to use in res/values/dimens.xml Oct 06 13:43:45 If you are using Android Stuido when you create new folders it will show you all the options Oct 06 13:44:09 Otherwise you can look here http://developer.android.com/guide/topics/resources/available-resources.html Oct 06 13:44:12 Hi I have a question Oct 06 13:44:23 about ViewPager and PagerAdapter Oct 06 13:44:31 Eowyn27 ask Oct 06 13:44:32 Is anyone familiar with those concepts? Oct 06 13:44:37 noone. Oct 06 13:44:47 and yes i'm the viewpager/pageradapter master Oct 06 13:45:06 lies. Oct 06 13:45:16 pieces029: Ok... I'll try to find out where do I specify screen size :) Oct 06 13:45:18 I keep getting different but slightly similar answers from people but I'm so confused and I think none of them solve it Oct 06 13:45:20 SidFerreira: Sorry wrong doc http://developer.android.com/guide/topics/resources/providing-resources.html Oct 06 13:45:31 Here's a post on Stack Overflow detaling my problem Oct 06 13:45:34 http://stackoverflow.com/questions/26182290/keeping-one-fragment-with-multiple-views-using-viewpager Oct 06 13:45:42 i saw this question Oct 06 13:45:44 i dont like your diagram Oct 06 13:45:47 why? Oct 06 13:45:51 pieces029: Oh, :D Oct 06 13:45:59 it doesnt illustrate your problem Oct 06 13:46:03 so something like dimen-w720dp or whatevere you want Oct 06 13:46:03 Some people tell me don't use fragments Oct 06 13:46:09 some people tell me to use fragments Oct 06 13:46:15 I'm very confused if I should use fragments or not Oct 06 13:46:20 I just want a dynamic layout Oct 06 13:46:27 I can mock up a better diagram if you want Oct 06 13:46:29 i don't get why this is different than any other use case for pager adapters? Oct 06 13:46:46 The way I have it set up now is Oct 06 13:46:47 20 fragments is not too many Oct 06 13:46:51 i have a sample app with 1000 fragments Oct 06 13:47:02 just use a fragmentstatepageradapter Oct 06 13:47:07 so I have to have fragmentA, B, C, D, E,F Oct 06 13:47:12 The os only keeps 3 in memeory so it doesn't matter how many you have. Oct 06 13:47:12 That's not clean code Oct 06 13:47:20 well framework not os Oct 06 13:47:30 Actually that's a bad diagram Oct 06 13:47:35 because the number of fragments vary Oct 06 13:47:40 depending on a number in the database Oct 06 13:47:47 damnit, asurion still has a stock of Galaxy s3 Oct 06 13:47:51 what do you mean dynamic fragment layout anyway Oct 06 13:47:54 your questions is bad :( Oct 06 13:48:00 at different times of the day, a user can be prompted with 4 fragments or 20 fragments Oct 06 13:48:00 question* Oct 06 13:48:07 one after the other Oct 06 13:48:11 I'm sorry Oct 06 13:48:21 I will draw up a better mock up Oct 06 13:48:25 so that you understand what I mean Oct 06 13:49:53 Eowyn27: What is you actual question? Oct 06 13:52:17 hi, I've got a couple audio file I'd like to put into an application of mine, those are WAV now. Considering I know nearly nothing about codecs and that I'd like to shrink their size a bit (I don't mind losing a bit of quality) what media format would you suggest? Oct 06 13:52:23 I'm looking at http://developer.android.com/guide/appendix/media-formats.html Oct 06 13:53:31 I was thinking an AAC of some kind, this really is acronym-land "AAC LC" "AAC ELD" "HE-AACv1" and v2 Oct 06 13:53:41 so I'm a bit lost, I'd appreciate an advice about that Oct 06 13:55:31 Here's a better mockup (hopefully) Oct 06 13:55:32 http://imgur.com/z3Dq7lW Oct 06 13:55:36 My question is Oct 06 13:55:46 The text and images vary from fragment to fragment Oct 06 13:56:08 The easiest way (Not the best way) is just create a fragment for each new view I need Oct 06 13:56:15 so then I'll have n fragment and n views Oct 06 13:56:20 however that is a terrible idea Oct 06 13:56:28 That's an easy hardcoded solution Oct 06 13:56:36 I'm looking to implement a dynamic layout Oct 06 13:56:50 so when the user swipes or navigates forward, they land on a new view Oct 06 13:56:56 but not a new fragment Oct 06 13:57:06 Just that the current fragment or view refreshes Oct 06 13:57:10 like a single page dynamic app Oct 06 13:57:13 How do I do that? Oct 06 13:58:01 anddam, turning them into MP3 files will be just fine, depending on what you're gonna use in your app, MediaPlayer/SoundPool/AudioTrack the files will be converted for you Oct 06 13:58:44 VnM: I thought about AAC because IIRC it provides better quality per same bitrate Oct 06 13:59:11 so I'll just convert to any mono/24kHz/16bit codec on the page Oct 06 13:59:17 thanks Oct 06 14:05:29 anddam, you could most likely use AAC as well, I believe file size of AAC is comparable to MP3, I'm not sure about quality between the two, but it's probably neglectable on a mobile device Oct 06 14:06:28 yea, most likely noone will notice Oct 06 14:08:58 And I know SoundPool will convert your files anyway to a raw PCM format, I don't think MediaPlayer does any converting and AudioTrack I found rather meh Oct 06 14:09:05 So I guess still unclear ? Oct 06 14:10:39 Eowyn27: Can you not just create custom views? Oct 06 14:11:42 Maybe... How would that solve the issue? Oct 06 14:11:49 I would need to swipe (hence viewpager) Oct 06 14:12:01 Or wait, just looked at your diagra, why can't you just use the same framgnet, and pass different data to them? Oct 06 14:12:11 diagram* Oct 06 14:12:28 yeah I was thinking that is possible but I would have to show and hide the different data? Oct 06 14:12:33 That's the part I'm confused about Oct 06 14:15:06 I don't know what you mean by show and hide the different data. Oct 06 14:15:52 oh the joy of low bitrate profiles Oct 06 14:16:01 2MB of wav to 72kB of AAC Oct 06 14:16:07 :D Oct 06 14:16:13 like i would have different images and text for each view Oct 06 14:16:29 Just change the src of the image Eowyn27 Oct 06 14:16:43 src of the image dynamically? Oct 06 14:17:41 Yeah and the text of the TextView, should be fine, just make a method to replace both on a swipe to the desired new src/text Oct 06 14:18:04 hi guys, i want to implement a horisontal listview (ie, show one item, the user can swipe left/right to see the next one), is this best done via a viewpager or horizontalscrollview or something else? Oct 06 14:18:26 if you're only showing one at a time, viewpager would be best Oct 06 14:18:35 JacobTabak, thanks Oct 06 14:19:31 asperon also keep in mind you don't need to use fragment in a viewpgaer, you can make your own pager adapter Oct 06 14:19:36 in case that's relevant to you Oct 06 14:19:55 yeah, its just gonna be textviews so ill keep it simple with an adapter Oct 06 14:20:25 Eowyn27: You should just use the adapter, it will create new fragments and provide data to those, then you don't need to worry about any of that stuff. Oct 06 14:20:36 I wish I had an example I could show you but I don't have one.j Oct 06 14:20:49 thanks, bye Oct 06 14:24:29 yeah an example would be nice Oct 06 14:24:33 I'm still a little confused Oct 06 14:25:25 for example I Oct 06 14:25:32 tried to use just pageadapter Oct 06 14:25:41 but I get a nullreferenceexception Oct 06 14:25:45 when I inflate my view Oct 06 14:34:21 how hard is it to strip annotations with pro guard? anyone done that? Oct 06 14:39:21 hi all Oct 06 14:39:49 I have a question that's been really bugging me (pun intended) Oct 06 14:40:30 I'm trying to write a game, but when I test it, the achievements and leaderboards don't show up on the device...is there something I'm doing wrong? Oct 06 14:43:13 probably different signing key? Oct 06 14:45:32 Well, at least that's something I can try Oct 06 14:45:34 Thank you Oct 06 14:46:06 hhm anyone knows how i can commit fragments inside async callbacks without running into troubles ? Oct 06 14:46:32 i cant figure out how to properly use fragments, is this not possible ? Oct 06 14:46:58 im having issues as described here: Oct 06 14:46:58 http://www.androiddesignpatterns.com/2013/08/fragment-transaction-commit-state-loss.html Oct 06 14:47:20 gettk Oct 06 14:47:26 getting the "Can not perform this action after onSaveInstanceState" error Oct 06 14:48:17 where should I pute some code in a fragment inside a viewpager so that it's executed when the user goes to the next page in that pager? Oct 06 14:53:02 Mattx you attach a page changed listener to the viewpager Oct 06 14:53:34 Hi all. I have a function which sets the font family for a TextView. I pass the textview as parameter. Now I want to know if it's possible to make the function also work for a EditText and Button. Possible /how or not possible in one function? Oct 06 14:54:52 JacobTabak, I thought about that but I only want to run that code if the scrollview inside that fragment has content that is not visible Oct 06 14:55:02 err, I mean, if the content is all visible Oct 06 14:55:20 you see, I'm trying to guess when the user read the whole fragment (which is mostly plain text) Oct 06 14:56:05 so when the whole content is visible on the screen I'm going to run a delayed async task and check if the fragment is still visible, let's say 60 sec Oct 06 14:56:10 your question did not indicate that Oct 06 14:56:31 you could wait until they've scrolled to the bottom of the scrollview if the content is always long Oct 06 14:56:42 yeah, I know.. it doesn't matter much what I'm doing, the point here is that I need to run a .getHeight or something on the fragment and check that Oct 06 14:56:56 JacobTabak, right, that part is already done Oct 06 14:57:15 now I'm coding the case in which the content is all visible so the user doesn't have to scroll Oct 06 14:57:44 are you asking how to determine if a scrollview is too short to need to be scrolled? Oct 06 14:58:42 no, I done that too. onCreateView I set a delayed async task using Hander().post(runnable, 60000) Oct 06 14:59:01 the problem is that this task should be removed if the fragment is not visible Oct 06 14:59:15 i'm sure i have the answer to your question but you need to figure out what the question is Oct 06 14:59:16 brb Oct 06 14:59:28 and I'm looking for a method called every time the fragment disappears, something like onPause Oct 06 15:00:02 and I know about the flow in fragments, first onPause, then onStop and so on... Oct 06 15:00:12 http://pastebin.com/YEKTY0Bg How can I make my function work for TextView/ EditText and Button? Oct 06 15:00:47 but since this fragment is inside a ViewPager, these methods are not called when I want to! the user has to change the page twice in order for the first fragment's onPause (page 1) gets called Oct 06 15:00:50 is that clear now? Oct 06 15:01:19 don't use onpause Oct 06 15:01:25 what should I use then? Oct 06 15:01:26 use the viewpager to pass the message to the fragment Oct 06 15:01:50 FrancescoV, just add a new constructor with EditText/Button instead of TextView and make the obvious changes Oct 06 15:02:12 yuizy, you mean I can attach a listener on the page change, and call a method on the fragment? somethihng like noLongerVisible()? Oct 06 15:02:15 I suppose that should work Oct 06 15:02:54 Mattx yes, or you can override setUserVisibleHint if you're feeling brave Oct 06 15:03:01 it works most of the time Oct 06 15:03:05 http://developer.android.com/reference/android/support/v4/view/ViewPager.OnPageChangeListener.html Oct 06 15:03:13 android doesn't give me the fragment being replaced :( Oct 06 15:03:39 mattx there are lots of ways to approach this Oct 06 15:03:49 you can register the fragment to observe the activity in onpause/onresume or something Oct 06 15:03:54 Mattx: but you should know it already Oct 06 15:04:03 you are the one who created the fragmentsz Oct 06 15:04:07 -z Oct 06 15:04:18 yuizy you're suggesting he should hang on to reference for every fragment Oct 06 15:04:22 I don't, an adapter is creating the fragments for me, which is another whole different class Oct 06 15:04:31 mattx, it's really just an issue of architecture Oct 06 15:04:43 your adapter has a refernce to your activity Oct 06 15:04:47 yeah, I see what you're saying JacobTabak Oct 06 15:05:01 Mattx you can just override setUserVisibleHint Oct 06 15:05:04 and see how far it gets you Oct 06 15:05:27 it gets called by viewpager when the fragment toggles visibility Oct 06 15:05:34 there are a few edge cases you need to handle but itw orks for the most part Oct 06 15:05:42 (that's a method in fragment) Oct 06 15:06:07 VnM: I know but I wonder if it's possible with one method or not Oct 06 15:09:07 * Mattx is overriding setUserVisibleHint Oct 06 15:14:04 hmn, it's not that easy because setUserVisibleHint is called for fragments that were precreated by the pager buy never shown, it's hard to tell which one is what... Oct 06 15:14:23 but I'll use the listener on the pager to call a method on the fragment or something, I liked that workaround Oct 06 15:14:30 thanks guys! Oct 06 15:22:19 My app shows up on some tablets, and not on others. Google says it doesn't show up on the Samsung Galaxy Tab 4 because of the density of 2.13. I have ldp,hdpi, and mdpi icons. Do I just need to add xdpi icons? I'm not restricting screen size Oct 06 15:33:53 I see in proguard there is a -keepattributes option, but is there something for remove attributes? Oct 06 15:44:12 Has anyone seen this issues with the android gradle plugin 0.13 "Overlay manifest:package attribute declared at AndroidManifest.xml" Just updated and have never seen that issues before. Oct 06 15:46:46 hmm, will ProGuard strip unused annotations by default? Oct 06 15:49:26 mattblang: I believe it does. Oct 06 15:51:14 pieces029 if that ist he case, I'm probably making it mkore complicated by trying to find a way to explicity remove them (reusing a server side models package) Oct 06 15:52:03 Hi Oct 06 15:52:12 I have a small question Oct 06 15:52:17 I realize I might be doing something wrong here Oct 06 15:52:20 in this snippet Oct 06 15:52:37 http://pastebin.com/fvK6HR0T Oct 06 15:52:41 My view is always returning null Oct 06 15:52:50 and I think it's because I set View view = null Oct 06 15:53:00 but how do I initialize it without it being null? Oct 06 15:54:03 That is, does this code make sense or not? Oct 06 15:54:11 http://pastebin.com/FKf9Lpyf Oct 06 15:54:35 Eowyn27 actually your try/catch block is unnecessary Oct 06 15:54:35 remove it Oct 06 15:54:48 hm ok Oct 06 15:54:58 Thanks Jacob Oct 06 15:55:04 I will try it Oct 06 15:55:07 http://pastebin.com/4AGrgpWP Oct 06 15:55:12 never catch Exception Oct 06 15:55:18 it shows you don't understand your own code Oct 06 15:55:24 ^ Oct 06 15:55:26 Exceptions happen for a reason Oct 06 15:55:39 so what about L and the several bugs inside it? do I change the code for things to work? is this how they release something and break everything without letting anybody know? Oct 06 15:55:53 Sicp i've got a strong urge to slap you Oct 06 15:56:01 it's a developer preview Oct 06 15:56:04 I want to catch my exceptions though so my app doesn't crash Oct 06 15:56:05 just stop Oct 06 15:56:12 well at work they insist that these bugs that exist will persist when the release is out Oct 06 15:56:15 Eowyn27 ask yourself: what exception could happen? Oct 06 15:56:19 so..I am forced to do this, I cannot argue Oct 06 15:56:28 given that, what do you suggest? Oct 06 15:56:34 Sicp what are you even talking about? who has suggested any bug will persist Oct 06 15:56:35 Eowyn27, catching exceptions is fine, the question is what you do then Oct 06 15:56:49 EPG it's not fine if there's no possible exception your code could throw Oct 06 15:57:03 or you don't know whether or not it could throw an exception Oct 06 15:57:36 Sicp how about you wait for the real release if you're going to moan about a developer release being buggy? Oct 06 15:58:31 well Im not moaning Oct 06 15:58:48 they are moaning about how this is going to be the final release, I am moaning about how they won't agree that this is crazy talk Oct 06 15:58:51 Sicp, bugs are being fixed until the final release Oct 06 15:58:57 what are you even talking about? as I asked before Oct 06 15:59:13 I asked you who told you that theyr'e not fixing bugs Oct 06 15:59:15 you're just talking garbage Oct 06 15:59:57 Jacob, I have a question, what could cause a null reference exception in the example I showed you Oct 06 16:00:09 it's say there's a problem with inflating my view (null reference exception). Oct 06 16:00:50 Eowyn27 you have an issue with this line: Oct 06 16:00:55 view = Inflater.inflate(R.layout.collection, parent, false); Oct 06 16:01:07 i'm assuming "Inflater" is a variable or field, it's not named correctly for one Oct 06 16:01:11 it should start wiht a lower case letter Oct 06 16:01:35 you probably haven't initalized that variable Oct 06 16:01:40 I have Oct 06 16:01:57 try LayoutInflater.from(parent.getContext().inflate(R.layout.collection, parent, false) Oct 06 16:02:04 Eowyn27, can you post your complete class/code? Oct 06 16:02:06 I initialized like LayoutInflater Inflater; Oct 06 16:02:15 well that's not in what you pasted Oct 06 16:02:17 that's not initialized Oct 06 16:02:22 oh how? Oct 06 16:02:28 I will post up my code give me a sec Oct 06 16:02:28 do what I said Oct 06 16:02:31 .. Oct 06 16:02:38 I tried what you said Oct 06 16:02:42 but I can't getContext() Oct 06 16:02:45 Eowyn27, you have to call getLayoutInflater Oct 06 16:02:46 ... you can Oct 06 16:02:58 Okay one sec I will post my code soon and try it too Oct 06 16:03:12 Eowyn27 don't start your variables and fields with capital letters Oct 06 16:03:17 and use/save the returned Inflater Oct 06 16:05:09 Eowyn27 just to rehash what we said before, your try/catch block was actually masking your problem Oct 06 16:05:34 http://pastebin.com/PKMJg4ny Oct 06 16:05:55 Eowyn27 we already told you what your problem is and how to fix it Oct 06 16:05:55 Here's my full class right now with the Pager and PagerAdapter Oct 06 16:06:03 search your code for Inflater = Oct 06 16:06:08 it doesnt exist, you never assign the field Oct 06 16:06:11 hm Oct 06 16:06:46 hi. how can I go back to an activity while keeping its EditText contents as is? Oct 06 16:07:05 haha, NYC phone booths have Titan-Gimbal beacons in them? that must be crashing android phones like there's no tomorrow Oct 06 16:07:31 Is there an example for material design style TABLE? Oct 06 16:07:42 superlinux-hp edittexts save their state automatically Oct 06 16:08:29 It says can't resolve inflate Oct 06 16:08:48 How am I supposed to initialize inflate? Oct 06 16:09:41 Eowyn27 you're irritating me Oct 06 16:09:44 i told you the code you needed Oct 06 16:09:57 ohh Oct 06 16:10:02 and i told you to change the casing of your 'Inflater' variable... you can see its wrong because it highlights as blue in your pastebin Oct 06 16:10:08 like LayoutInflater inflater = getLayoutInflater(); Oct 06 16:10:20 I changed it just now Oct 06 16:10:24 Not in the pastebin Oct 06 16:11:00 JacobTabak, because I have an Activity that sends a database select query to another activity. at that time, I saw the results. so I want to go back to my query to re-edit it again. I don't want to type all of it all over again Oct 06 16:11:19 I'm sorry but inflate still can't be resolved Oct 06 16:11:34 I did Oct 06 16:12:02 View view = LayoutInflater.from(parent.getContext().inflate(R.layout.collection, parent, false)); Oct 06 16:12:15 thats what you need Oct 06 16:12:22 you're missing a parenthesis Oct 06 16:12:26 where LayoutInflater inflater = getLayoutInflater(); Oct 06 16:12:30 my bad for typing it wrong Oct 06 16:12:45 from(parent.getContext()).inflate Oct 06 16:13:08 ok thank you! It seems ok so far Oct 06 16:13:10 I will run it Oct 06 16:13:45 Eowyn27 what IDE are you using? Oct 06 16:13:59 your IDE should tel you right away if you're missing a parenthesis Oct 06 16:15:09 IntelliJ IDEA Oct 06 16:15:16 It told me I was missing one at the end Oct 06 16:15:24 instead of where I was really missing one Oct 06 16:15:38 ah yea you'll get the hang of it Oct 06 16:15:42 Okay so there's a problem Oct 06 16:15:47 where LayoutInflater inflater = getLayoutInflater(); Oct 06 16:15:57 delete that Oct 06 16:15:58 Null reference there I believe Oct 06 16:16:05 It says unable to instantiate activcate Oct 06 16:16:07 *activity Oct 06 16:16:14 you don't need that line Oct 06 16:16:20 paste what you have Oct 06 16:16:46 ok one sec, let me try again Oct 06 16:17:19 lol lots of tiny bugs Oct 06 16:17:24 okay so apparently this line is wrong Oct 06 16:17:40 imageView.setImageResource(R.drawable.apple); Oct 06 16:17:52 I think I need to getResources right first? Oct 06 16:20:36 actually no that's weird Oct 06 16:21:05 but I am getting a nullpointerexception on that line Oct 06 16:21:28 pay attention to the first Error not the rest Oct 06 16:21:44 That's the first error Oct 06 16:22:07 I reran my app and I removed the layoutinflater line and it says nullpointer for that setImageResource line Oct 06 16:23:45 and re-paste your new code Oct 06 16:23:45 ohhh wait I think I know why Oct 06 16:23:57 Just a question though!!! Oct 06 16:24:05 where should I put my viewpager xml code? Oct 06 16:24:12 Inside my main layout with relativelayout Oct 06 16:24:19 or a separate viewpager xml ? Oct 06 16:24:21 hey. I'm trying to use strings to convert a file's contents to B64. what am i doing wrong? http://pastebin.com/KnByLkbx (10 lines) Oct 06 16:24:26 s/strings/streams/ Oct 06 16:24:35 wayne can you use commons? Oct 06 16:24:43 yes Oct 06 16:25:02 i would just use commons and not write this custom code Oct 06 16:25:22 JacobTabak: i thought that's what i did? Oct 06 16:27:03 yeah I think it's a problem with the way I'm setting up my xml but not sure Oct 06 16:27:15 right now I have the viewpager in separate xml Oct 06 16:27:22 and the view I want to show in another Oct 06 16:27:24 is that bad? Oct 06 16:27:36 so when the page loads it's only showing a blank screen? Oct 06 16:27:40 I'm not sure Oct 06 16:27:43 wayne Base64.encode(FileUtils.readFileToByteArray(file)); ? Oct 06 16:28:07 been a while - sorry if that's not helpful Oct 06 16:28:30 Eowyn27 you should probably download a viewpager sample Oct 06 16:28:35 this is a bit basic to be discussing here Oct 06 16:28:56 it's alright, thanks for the suggestion. I considered that, but it seemed like using more memory use than I needed: first load the whole file into memory and then make a new b64 buffer Oct 06 16:29:12 if i could get away with streams then i could cut the memory into half that + constant buffer size Oct 06 16:30:11 yea seems like a good idea, i'm sure you'll figure it out Oct 06 16:30:16 that stuff always takes some trial and error Oct 06 16:30:23 which is why i prefer not to write my own code :D Oct 06 16:30:24 Here's my newest code: http://pastebin.com/KTWrP8Fr Oct 06 16:30:26 :/ yeah thanks haha Oct 06 16:30:49 in Pro Guard, is removing unused functions considered an optimization? Oct 06 16:31:11 mattblang yes, cuts down apk size and also lowers your method count (65k method limit is a real issue) Oct 06 16:31:33 JacobTabak I mean, is it considered that in the case of using -dontoptimize Oct 06 16:31:47 oh i thought you were asking like a very high lvl question ha Oct 06 16:31:59 JacobTabak haha, yeah sorry, my wording was bad Oct 06 16:32:16 Jacob, the problem is when I followed an example Oct 06 16:32:26 I get an error when I put the viewpager inside my root layout Oct 06 16:32:27 my guess is that -dontshrink would prevent method removal Oct 06 16:32:45 Specifies not to shrink the input class files. By default, shrinking is applied; all classes and class members are removed, except for the ones listed by the various -keep options, and the ones on which they depend, directly or indirectly. A shrinking step is also applied after each optimization step, since some optimizations may open the possibility to remove more classes and class members. Oct 06 16:32:48 JacobTabak well actually, I want the removal. I just dont want obfuscation or optimization of any type Oct 06 16:32:57 hey ppl im still looking for a way to use fragments with my async login system. my problem is exactly as here: Oct 06 16:32:57 http://www.androiddesignpatterns.com/2013/08/fragment-transaction-commit-state-loss.html Oct 06 16:33:04 JacobTabak I'm trying to remove some unused annotations on one particular package Oct 06 16:33:13 mattblang based on the documentation optimizaiton has nothing to do with method removal Oct 06 16:33:22 -dontoptimize: "Specifies not to optimize the input class files. By default, optimization is enabled; all methods are optimized at a bytecode level." Oct 06 16:33:23 JacobTabak sweet, turning it off and trying again Oct 06 16:33:31 what is the best workaround? i think a service is not what i want Oct 06 16:34:21 Eowyn27 i meant downoad a working example and look at it Oct 06 16:34:27 not follow a tutorial by some clown Oct 06 16:34:37 from the android official samples Oct 06 16:34:54 I just followed the android developers docs Oct 06 16:35:15 and I get this error: android.widget.RelativeLayout cannot be cast to android.support.v4.view.ViewPager Oct 06 16:35:46 your findViewById is casting the view to the wrong type Oct 06 16:35:50 very simple Oct 06 16:36:05 you should work through these issues on your own, they're not appropriate for irc Oct 06 16:36:52 I want a listener on edit text widget that tells me after a user has finished inputing and has moved onto something else (i.e. the edit text no longer has focus) Oct 06 16:37:10 why is it wrong? Oct 06 16:39:08 SimonVT still around? what workaround would you advice? i found that i really cant go without committing fragments from a async callback Oct 06 16:39:14 JacobTabak: if you expect people to have a certain level understanding before asking stuff, you're gonna be frustrated Oct 06 16:41:31 if you "expect" anything you are setting yourself up for disappointment :) Oct 06 16:42:16 shmooz i helped him a lot, even told him exactly what was wrong with his code, i'm just saying he's asking babysitting and he needs to figure this out on his own now Oct 06 16:44:39 I'm sorry but I did follow the docs Oct 06 16:44:54 I can post up what the docs say and what I did Oct 06 16:45:00 and they're pretty identical Oct 06 16:45:47 Eowyn27 my suggestion is open up the viewpager sample from the sdk samples Oct 06 16:45:53 and compare it to whatever you're wroking on Oct 06 16:46:26 I did that Oct 06 16:46:29 Maybe I will try this Oct 06 16:46:30 http://stackoverflow.com/questions/19649874/android-widget-framelayout-cannot-be-cast-to-android-support-v4-widget-drawerlay Oct 06 16:46:36 seems like it could be an issue with IDE Oct 06 16:46:37 ??? Oct 06 16:48:41 In edit text, is there an opposite icon of setError? something like a green tick mark icon that can be set in case of no error? Oct 06 16:51:10 Hello Oct 06 16:51:25 vedu setting the error just sets drawableRight Oct 06 16:51:40 just use setCompoundDrawables[withIntrinsicBounds] to set the right drawable Oct 06 16:52:21 has anyone else noticed that their test suite takes about 14 years to start, using Mockito? Oct 06 16:53:02 For RxJava, how do you guys handle unsubscribing? I use a scheduler that notes when a subscription is added and unsubscribes them on change but it feels very hackish. Is there a better way to associate subscription lifecycles with the view that consumes them? Oct 06 16:53:22 JacobTabak: right. and which drawable should I use? Oct 06 16:53:29 create your own Oct 06 16:53:54 look at the theme resources to find out which error one is used, then create one with similar size/style Oct 06 16:56:10 JacobTabak shouldn't this prevent proguard from running on anything except for the okra packages? -keep class !edu.msstate.nsparc.okra.* Oct 06 16:56:11 ok I figured it out Oct 06 16:56:15 the only problem now is Oct 06 16:56:20 parent.addView(view); Oct 06 16:56:26 nullpointer exception Oct 06 16:56:38 Eowyn27 either parent or view is null Oct 06 16:56:42 figure out which one and figure out why Oct 06 16:56:53 probably parent Oct 06 16:56:55 if it's on that line Oct 06 16:57:22 mattblang don't know, i've always done inclusions rather than exclusions Oct 06 16:57:28 er Oct 06 16:57:29 wait Oct 06 16:57:31 what is the !? Oct 06 16:57:33 JacobTabak yeah, every example seems to be includes Oct 06 16:57:35 (exclamation point) Oct 06 16:57:43 JacobTabak I only want to run progaurd on one specific package Oct 06 16:57:52 yea not sure Oct 06 16:57:52 guys i'm about to store tokens locally but i better ask first... there is any cloud/library to securely store oauth tokens in a server/cloud? securekey offers this service but for 500/year Oct 06 16:58:06 JacobTabak it is running on OrmLite and crashing my app. I literaly only want to run it on one package, but I can't figure it out. frustrating as heck Oct 06 16:58:23 why not just keep the things you need and run it on everything else? Oct 06 16:58:25 thats what everyone does i thought Oct 06 17:00:05 i can setup a cloud server for oauth but i dont feel like storing all tokens by myself plus being worried about encryption Oct 06 17:01:50 What should parent be though? Why is it important to pass ViewGroup parent? stupid question but curious Oct 06 17:02:44 JacobTabak cause I'm getting error after error. based my proguard-rules on the one in the Android SDK. keeping adding stuff to fix the errors, then have another one. thought maybe I could try to just run it on the one package Oct 06 17:03:13 mattblang i feel your pain, but its a one time process Oct 06 17:03:59 mattblang: I dealt with the same thing. It sucks at first, but like JacobTabak said, it's essentially a one time process. Oct 06 17:04:23 until you add the next library :) Oct 06 17:04:32 and proguard busts that one too Oct 06 17:04:38 lol, g00s, one step at a time! Oct 06 17:04:56 lol yeah g00s but if you add 1 library you add 1 line to your proguard file Oct 06 17:04:59 rather than playing whackamole Oct 06 17:05:04 anyway we avoid dingleberries around here Oct 06 17:05:20 less dingleberries, less hassles for everything Oct 06 17:05:24 *from Oct 06 17:05:29 I feel like a dingleberry asking, but what are dingleberries? Oct 06 17:05:41 "You". Okay, thanks Oct 06 17:06:25 well, here is my definition: a mostly useless library that offers some convenience, but either provides 0-sum or additional complexity for what its offering -- making things more brittle, and adding risk to future maintenance Oct 06 17:06:46 little pieces of shit attached to your project, basically Oct 06 17:06:52 Got it Oct 06 17:06:57 and gross Oct 06 17:07:00 i persnoally love dingleberries Oct 06 17:07:08 i use every lib that offers the slightest bit of convenience Oct 06 17:07:14 hehe Oct 06 17:07:25 Hello] Oct 06 17:07:25 Does anyone know of a website that lets you list the movie titles(DVD) that you own and has on app that you can use on an android. On the android both online and offline. And not IMDB. Syncable do not want to download it every time I add to it to update all them Oct 06 17:07:34 import android.* Oct 06 17:09:03 oh man, waaat .. startLeScan doesn't work with 128-it UIDs? Oct 06 17:09:20 i wonder if they should just remove BLE support - its so fucking terrible Oct 06 17:09:36 oh look, the guy who leads the team is nolonger at google. i wonder if they fired him Oct 06 17:10:28 reported aug 2013, still busted in 4.4.4 ? Oct 06 17:10:36 more likely he left and there's noone that knows anything about bluetooth at android anymore :P Oct 06 17:10:53 Mavrik this is insane :) https://code.google.com/p/android/issues/detail?id=59490 Oct 06 17:11:55 hm i would have thought whitelist processing would have been done in the link layer, put the list pushed down from the controller Oct 06 17:12:08 weird they are doing this in GattService Oct 06 17:12:33 hello Oct 06 17:12:33 Does anyone know of a website that lets you list the movie titles(DVD) that you own and has on app that you can use on an android. On the android both online and offline. And not IMDB. Syncable do not want to download it every time I add to it to update all them Oct 06 17:15:49 bellow: Didn't we discuss this earlier? Please use #android if you want app recommendations Oct 06 17:16:58 I CANNOT SEND THERE Oct 06 17:19:16 That doesn't make it ok to look for app recommendations here Oct 06 17:19:24 So, please stop doing it :) Oct 06 17:21:28 Does anyone know of a website that lets you list the movie titles(DVD) that you own and has on app that you can use on an android. On the android both online and offline. And not IMDB. Syncable do not want to download it every time I add to it to update all the Oct 06 17:21:44 :) Oct 06 17:21:45 +1 Oct 06 17:24:30 hey SimonVT i found that its not possible at all to commit fragments inside callbacks is there any better way ? Its a serious lagg Oct 06 17:25:32 Sure it's possible Oct 06 17:25:44 Just don't do it on an Activity that's destroyed, as you did earlier Oct 06 17:26:41 well that did not solve my issue at all Oct 06 17:27:48 according this page : Oct 06 17:27:48 http://www.androiddesignpatterns.com/2013/08/fragment-transaction-commit-state-loss.html Oct 06 17:28:15 "In general, the best way to avoid the exception in these cases is to simply avoid committing transactions in asynchronous callback methods all together. " Oct 06 17:28:42 is it possoble to have a list view (vertical) or list views (horizontal)? Oct 06 17:28:44 And you read that as "it's not possible, under any circumstances, to perform fragment transactions in a callback"? Oct 06 17:29:05 well Oct 06 17:31:25 Your question was about orientation changes, so I think it's safe to assume that the activity is in the foreground Oct 06 17:31:26 i made a test with a button that calls http and then commits a fragment onSuccess Oct 06 17:31:49 In which case, it's perfectly fine to perform fragment transactions in the callback Oct 06 17:32:14 Q: If my app uses BT and a device without BT tried to DL the app, wil the be able to? Oct 06 17:32:28 And in your test app, how did you pass the callback a reference to the new Activity instance? Oct 06 17:34:15 SimonVT i do not pass a reference to the activity. . Oct 06 17:34:26 why should i? Oct 06 17:35:45 Because the issue is that you're doing fragment transactions on an activity instance that's destroyed? Oct 06 17:35:50 I thought we covered this hours ago Oct 06 17:36:29 tricknology put uses-feature (true | false) in the manifest Oct 06 17:37:56 Okay so how can i be sure it uses the newest activity instance, but im not sure that would work Oct 06 17:40:07 g00s, it’s tehre btu I have a problem with a device getting “device not compatible with the version running" Oct 06 17:40:15 If the activity is just a field, you can make it reference the new isntance Oct 06 17:40:23 i have uses-permission in the manifest Oct 06 17:40:27 You can also use an event bus so there's no strong coupling Oct 06 17:40:47 Or do it in a Service and bind to that from whatever Activity is created Oct 06 17:41:12 so g00s, change to uses-feature and set required to false? Oct 06 17:41:54 aah, bluetooth is a permission that implies uses-feature | true Oct 06 17:41:58 thanks, g00s Oct 06 17:48:00 that sounds like option 1 or 2, i think i dont need a service for my app Oct 06 17:48:15 but i do not understand 1 and 2 lol :D Oct 06 17:52:33 So question… what happens to all those methods that need the BTservice? will I get NPE or crash the app? should I create conditions that check? Oct 06 17:52:39 @g00s Oct 06 17:53:18 @tricknology this isn't twitter :) Oct 06 17:53:44 lolol Oct 06 17:53:54 if BT is optional, then you have to check if BT exists at runtime Oct 06 17:55:05 it would have been nice if they had some kind of predicates, like so you could say uses BT-classic , uses BLE Oct 06 17:55:30 in my case, one of the two is required, but i can't figure a way to inform Play of that Oct 06 17:57:35 it needs a turing complete language to specify which features it needs. :) Oct 06 17:58:50 tricknology where did you see permission Bluetooth implying uses-feature? i think i saw that too but now looking at http://developer.android.com/reference/android/Manifest.permission.html#BLUETOOTH i can't remember Oct 06 18:01:02 ah http://developer.android.com/guide/topics/manifest/uses-feature-element.html#permissions-features Oct 06 18:01:06 g00s http://developer.android.com/guide/topics/manifest/uses-feature-element.html#permissions Oct 06 18:01:16 Hi guys, i'm having some issues on a projet i just joined. Its an old project with many modules. When I compile, the android sdk gives me some errors, that do not show in intellij… Is there a reason why android sdk runs into errors that are not seen by my IDE ? Oct 06 18:01:18 heh yeah Oct 06 18:02:05 so.. as far as testing goes.. I don;t have a device without BT. can I deactivate BT and expect the same behavior as a device w/o BT? My first thought is no. Oct 06 18:02:13 maybe I can emulate… mmyyees Oct 06 18:02:42 If my app is not displaying in the store because the screen density is too high (2.13 for Galaxy Tab 4), how can I make my app be available for such devices? I target 2.3 and up and do not designate screen sizes in the Manifest. I have ldpi,mdpi,hdpi icons. Oct 06 18:03:43 they fucked this up for bt, because BLUETOOTH permission implies android.hardware.bluetooth, but there is also android.hardware.bluetooth_le Oct 06 18:04:30 tricknology for bt-classic, no bt -> adapter == null Oct 06 18:05:07 for disabled, its just isEnabled() Oct 06 18:05:16 submit a bug to Google? lol Oct 06 18:05:27 "please rewrite your crappy OS" Oct 06 18:05:41 ah so I just check if adapter is null? Oct 06 18:05:42 lol Oct 06 18:05:51 for bt-classic, yeah Oct 06 18:05:56 “but not too much - feature creep kills” Oct 06 18:06:07 it’s this stupid HP tablet Oct 06 18:06:13 g00s: it hadda happen : http://www.wired.com/2014/10/code-published-for-unfixable-usb-attack/ !! Oct 06 18:06:13 http://h10025.www1.hp.com/ewfrf/wc/document?docname=c04216144&cc=us&dlc=en&lc=en Oct 06 18:06:28 capella yeah i saw that! get a condom Oct 06 18:06:37 * capella thinks this could get ugly :/ Oct 06 18:06:51 capella you know what i'm talking about right :) Oct 06 18:07:04 there are a few products out there Oct 06 18:07:07 damn… to GitHub? that’s dirty Oct 06 18:07:34 "USB condom"? Prevents flashing - kinda thing? Oct 06 18:07:42 just for power Oct 06 18:07:57 JacobTabak, Ironthighs just got back from lunch. Thanks for your words of encouragement! Oct 06 18:08:19 Not sure that'll help ... aiui Oct 06 18:08:36 Hey, everyone I pretty much figured everything out Oct 06 18:08:47 one problem I'm not sure if this is a problem in android or not Oct 06 18:08:57 but when I move from one view to another there is a "ghosting" efffect Oct 06 18:09:07 Is it because my xml elements are hardcoded? Oct 06 18:09:30 So like if I move from one view to another, I can see the buttons moving along with the view but also, the buttons are fixed on the view Oct 06 18:09:55 What could cause that? Oct 06 18:13:28 Why does the marker reference change when it's dragged on a map to another location? Oct 06 18:14:24 I'm talking about the object reference btw Oct 06 18:16:31 Eowyn27: what do you mean by ghosting? Oct 06 18:17:14 Anyone know if there is a way to force Retrofits observables to operate synchronously? Oct 06 18:17:58 Its an observable so just specify the same thread as a schedulor Oct 06 18:18:53 So for example in Android just AndroidSchedulers.mainthread for both observeOn and subscribeOn? Oct 06 18:19:18 Yup, but not main thread since you can't do networking on it Oct 06 18:20:09 Oh right, yeah I'm already on a background thread. So I need to implement a scheduler to get use the current thread I'm on. That dosn't already exist does it? Oct 06 18:20:26 Schedulers.immediate Oct 06 18:20:26 I was trying Schedulers.immediate() Oct 06 18:20:33 Ok Oct 06 18:20:46 I though that just returned immediatly, I was having some werd issues with that before. Oct 06 18:21:04 So, it seems like the view I currently have is stuck in the background Oct 06 18:21:06 There's also blocking observable Oct 06 18:21:21 and the same view is overlapping ontop of it but that one moves just fine Oct 06 18:21:25 f2prateek: oh good call I'll just do toblocking. Oct 06 18:21:29 So it seems to be two views Oct 06 18:21:32 one stuck in background Oct 06 18:21:35 one that moves Oct 06 18:21:39 I found a fix for it Oct 06 18:21:50 but I'm not sure if it makes sense because I did the opposite of the docs Oct 06 18:22:07 The docs say you put the android viewpager xml element inside the root element of the view Oct 06 18:22:19 but that caused ghosting or two views on top of each other for some reason Oct 06 18:22:35 so I took the android viewpager element outside into a separate xml file and setContentView on that. Oct 06 18:22:37 and it seems to work Oct 06 18:22:50 Eowyn27: are you using in your xml? Oct 06 18:22:57 no Oct 06 18:43:28 Hey guys, what do you use for camera/cropping? I've noticed the defaults are a bit complex/lacking. Oct 06 18:43:44 Libraries I mean. Oct 06 18:46:28 JacobTabak so here is my current pro guard file. http://pastebin.com/iHTwuBYu The logic seems super straight forward, but I still get Unable to resolve annotation class messages when running the app. so, either I am mistaken on this pro guard file, or pro guard isn't taking away the annotations. Oct 06 18:46:56 why don't you just define the annotations in your project? Oct 06 18:46:57 how many are there? Oct 06 18:47:13 JacobTabak a bunch. lot of server side stuff Oct 06 18:47:23 u know my opinion on this already Oct 06 18:47:24 lol Oct 06 18:47:26 JacobTabak I think we might have talked about this , yeah Oct 06 18:47:27 make your own models! Oct 06 18:47:37 JacobTabak I disagree though. Why maintain two model packages? Oct 06 18:47:49 so you can have your own annotations, accessors etc Oct 06 18:48:11 and what if the models change Oct 06 18:48:16 you're gonna update your dependency and everything breaks anyway Oct 06 18:48:43 JacobTabak well, not if a version is explicity defined. but, you are right on my own annotations. I won't be able to use my ORM to persist them Oct 06 18:49:27 JacobTabak so this is all for not anyway, lol! but hey, I'm glad I messed around with pro guard none the less. been hearing about it a lot Oct 06 18:50:40 yea you definitely want to use it for any app that gets released to the public Oct 06 18:53:42 JacobTabak I could put in my annotations and the server could just define dependencies but not do anything with them... lol, there are so many models, and generics, etc, etc. that is why im being so stubborn about trying to use the same one Oct 06 18:54:24 can you get the ppl who maintain the server one to make you a jar? Oct 06 18:54:27 without the annotations Oct 06 18:54:47 and in the format you need Oct 06 18:55:15 JacobTabak sure I could. I have the project checked out myself, so I can just copy it all. I think im about to just do that Oct 06 19:06:41 why is a bad idea to block orientation changes Oct 06 19:06:50 because you can't provide alternate layouts Oct 06 19:06:52 or resources Oct 06 19:07:05 i mean, you can, but you lose so much automatic stuff Oct 06 19:07:21 but i only want my application in portrait mode Oct 06 19:07:31 then it's not a bad idea Oct 06 19:07:40 it still is...depends Oct 06 19:07:55 what app is it ? whats the demographic ? Oct 06 19:08:18 i guess its general population Oct 06 19:08:26 then very bad idea to do that Oct 06 19:08:44 forcing a user who may or maynot have expectations on how to use…not great Oct 06 19:08:51 what would be the reason to force orientation ? Oct 06 19:08:54 well forcing one layout takes out half of the problems Oct 06 19:09:09 most games have only 1 orientation Oct 06 19:09:21 games != apps Oct 06 19:09:46 because is a listview that would look awful otherwise Oct 06 19:09:52 cliffreich if you want to block landscape, thats your choice Oct 06 19:10:01 ok Oct 06 19:10:02 people on phones don't use landscape much Oct 06 19:10:04 only tablets Oct 06 19:11:01 yeah, i think landscape on phones was more popular with HW keybaords Oct 06 19:11:17 cliffreich you know you have diff layouts for landscape right ? or the option to Oct 06 19:11:37 but with phones like nexus 6, you could probably do something with landscape like master detail possibly Oct 06 19:11:45 i'm a strong believer in not wasting time on a 5% feature Oct 06 19:11:54 if the app is successful and there's demand, do it then Oct 06 19:12:14 but on the other hand, i always design my alyouts to work in any orientation Oct 06 19:12:15 it will be my first app so lets try it Oct 06 19:12:25 except for things like intro screens with large graphics Oct 06 19:12:28 2% effort for a 5% feature… worth it ;) Oct 06 19:12:38 maintaining 2 layouts is a huge source of bugs Oct 06 19:12:49 if it is you are doing it wrong Oct 06 19:12:54 what bugs ? Oct 06 19:13:08 assuming views are children of other views for example Oct 06 19:13:21 if you move stuf around in one view Oct 06 19:13:27 and forget to do it in the other Oct 06 19:13:47 hey JacobTabak ! Oct 06 19:13:49 it's not a problem that i have - Oct 06 19:13:59 but for a beginner, it would consume a lot of time and cause a lot of issues Oct 06 19:14:01 hello BulleTime Oct 06 19:14:10 well thats why you design with and have consideration for such levels of layout constraints Oct 06 19:14:26 that's not a 2% effort for someone who doesn't have a high level concept of how to do it Oct 06 19:14:31 they need to focus on more important things Oct 06 19:14:42 hey guys i was thinking, i use sherlock actionbar and stuff like that so i have to use fragments Oct 06 19:14:51 dont use sherlock anymore Oct 06 19:14:56 min api >= 14 Oct 06 19:15:06 @JacobTabak as long as id’s match up you should be fine Oct 06 19:15:29 so is it able to switch layout for portrait - landscape ? Oct 06 19:15:33 And it sounds like you have issues if you’re making assumptions about childviews Oct 06 19:15:37 that’s not the point of a view Oct 06 19:15:52 if you need to assume things about children it should be its own compound view Oct 06 19:16:37 BulleTime yes by default new layouts will be used automatically if you have them in a -land layout dir Oct 06 19:17:39 a layout-land directory ? Oct 06 19:17:43 yes Oct 06 19:17:55 hhm ill try that Oct 06 19:18:33 dcow again you're missing my point which is if you only want your app to be portrait, then it's not a crime to lock it to portrait Oct 06 19:18:46 that’s fine. didn’t read all the comments Oct 06 19:19:07 but I disagree that multiple layouts should be an issue Oct 06 19:19:26 it should be expected that your app works on whatever screen sizes you allow it to do Oct 06 19:19:34 if you only have time/resources for portrait that’s fin Oct 06 19:19:35 nobody is arguing that Oct 06 19:19:42 sounds like you were Oct 06 19:19:51 but that’s besides the point, apparently Oct 06 19:19:58 sry not pointing fingers Oct 06 19:20:01 just commenting Oct 06 19:20:05 don’t take offense Oct 06 19:20:13 i was responding to StingRay_ comment that it's so easy to provide multiple layouts that you should always do it even if you're a beginner and don't know how to use or design things in a reusable way Oct 06 19:20:46 original question was [14:06:43] why is a bad idea to block orientation changes Oct 06 19:22:17 sure, multiple layouts can be a clusterfuck. but I disagree with the argument that “it’s hard so don’t do it" Oct 06 19:22:26 anyyyyyyway Oct 06 19:48:31 Guys, i have this https://gist.github.com/olologin/cf46d547ed80890328b5 xml preference file for my PreferenceActivity, for each of these preferences i specified defaultValue, but in onResume method in my SharedPreferences (obtained by PreferenceManager.getDefaultSharedPreferences(this) ) i only see 2 values for checkboxes. I tried to use PreferenceManager.setDefaultValues, but problem remains. Oct 06 20:04:25 olologin: Can you provide the PreferenceFragment? Oct 06 20:04:45 PreferenceActivity Oct 06 20:05:41 pereferenceActivity is so last week Oct 06 20:05:46 https://gist.github.com/olologin/9f57bbd9414deadf31bf Oct 06 20:06:07 Ashiren yeah but its so easy :) Oct 06 20:07:25 Ok, that didn't help, maybe i don't understand what your problem is. Oct 06 20:07:41 Is large screen==tablet? Oct 06 20:07:57 A friend of mine has a 5.4" and it was normal Oct 06 20:08:03 Phablet\ Oct 06 20:10:37 yeah they need layout-phablet :) Oct 06 20:13:12 Hi. In order to open navigation drawer with a tap on the action bar is it correct set actionBar.setHomeButtonEnabled(true)? Oct 06 20:13:15 pieces029: Look, i want to use defaultValue from XML until user didn't specified custom value. But when i obtain sharedPreferences instance first time after installing app i only see 2 values in it: "isAlarmEnabled" and "isIconHidden". But i expected to see values for rest preferences (For example "sound_volume" and "time") as well. Oct 06 20:15:03 Hi. In order to open navigation drawer with a tap on the action bar is it correct set actionBar.setHomeButtonEnabled(true)? Oct 06 20:18:47 mcmaur: yes Oct 06 20:20:07 olologin: the system doesn't know what a com.example.olologin.qudah.SeekBarDialogPreference is. You have to load those manually. Oct 06 20:21:28 so I can't see why my code doesn't work. Oct 06 20:21:29 https://github.com/mcmaur/UnturnedGuideExpress/tree/develop Oct 06 20:21:37 Hmm, but why system can't initialize sharedPreferences with default value without knowing this class? It knows key and value for map Oct 06 20:21:59 map here - container inside sharedPreferences Oct 06 20:22:32 Types Oct 06 20:22:58 As u can see here https://github.com/mcmaur/UnturnedGuideExpress/blob/develop/app/src/main/java/it/cerbai/mauro/unturnedguideexpress/NavigationDrawerFragment.java#L106 I set both properties but tapping on the action bar doesn't open the navigation drawer Oct 06 20:23:13 pieces029: You mean something like validation of value? Oct 06 20:23:30 looks like i understand Oct 06 20:24:13 No like shared preferences is just an xml file, how is it suppose to know if it's a Boolean or a String or an Integer that you want? Oct 06 20:24:43 mcmaur: looks correct. Oct 06 20:25:41 pieces029: makes sense, thanks Oct 06 20:26:25 np, I was looking for an example, but can't seem to find any good ones Oct 06 20:28:22 pieces029 I can assure u that it's not working, Using debug I can also be sure that that piece of code is done. I cannot find an error. This things is driving me crazy :) Oct 06 20:29:40 olologin: I apparently get lazy and never create my own ways to display preferences, for that exact reason. Oct 06 20:31:35 mcmaur: I'm not sure without actually setting it all up on my machine here. I normally do all the setup work on the MainActivity though like the example. http://developer.android.com/training/implementing-navigation/nav-drawer.html Oct 06 20:33:30 you can swipe open the drawer right? Oct 06 20:43:28 anyone get travis working with an L-preview emulator? Oct 06 20:52:53 Does anyone have an x86 tablet/phone for a quick test plz? Oct 06 20:54:54 yes pieces029 the swipe works Oct 06 20:56:01 I found something interesting. the part that doesn't work is line 159 because it return null Oct 06 20:56:17 I have a newbie question Oct 06 20:56:19 but it is the same as example inside android studio Oct 06 20:56:27 if I want to apply on onClickListener to an image, Oct 06 20:56:34 do I cast to ImageView or Button? Oct 06 20:56:38 ImageView right? Oct 06 20:58:02 Eowyn27 no Oct 06 20:58:14 I want to apply an onclicklistener to an image Oct 06 20:58:18 is it possible? Oct 06 20:58:19 yes Oct 06 20:58:31 how? Oct 06 20:58:41 anyViewClass.setOnClickListener (someClickListener) Oct 06 20:58:50 I imagine it's the same as button but instead it's ImageView instead Oct 06 20:59:16 view class? Oct 06 20:59:29 like ImageView Oct 06 20:59:41 like anything the extends View Oct 06 20:59:49 serious though, Is large screen==tablet? Oct 06 20:59:51 let me shwo you something Oct 06 20:59:53 *show Oct 06 21:00:16 Eowyn27 the answer is yes, just the same as anything that extends view Oct 06 21:00:25 I set my app to normal and large but somehow someone with tablet has downloaded it. i was never 100% sure how big LARGE is Oct 06 21:01:55 troned LARGE is deprecated Oct 06 21:01:55 http://pastebin.com/Z1NQ3Gsr Oct 06 21:01:59 This is what I did Oct 06 21:02:09 JacobTabak, not deprecated. Oct 06 21:02:23 still used for google play appstore Oct 06 21:02:25 @g00s: https://developer.android.com/guide/topics/connectivity/bluetooth-le.html Oct 06 21:02:40 troned it's not an opinion Oct 06 21:02:48 its officially documented as deprecated Oct 06 21:03:00 A set of four generalized sizes: small, normal, large, and xlarge. Note: Beginning with Android 3.2 (API level 13), these size groups are deprecated in favor of a new technique for managing screen sizes based on the available screen width. If you're developing for Android 3.2 and greater, see Declaring Tablet Layouts for Android 3.2 for more information. Oct 06 21:03:08 http://developer.android.com/guide/practices/screens_support.html#range Oct 06 21:07:31 Eowyn27 well done then why are you asking ? Oct 06 21:07:48 dont ask if you can do something when you have already done it :) Oct 06 21:07:57 seem a bit…well….odd and wasteful Oct 06 21:09:04 tryin to set up travis - anyone know what this means http://cl.ly/image/1n3L1q2D0w3B Oct 06 21:09:30 Caution: The Android system does not pay attention to this attribute, so it does not affect how your application behaves at runtime. Instead, it is used to enable filtering for your application on services such as Google Play. However, Google Play currently does not support this attribute for filtering (on Android 3.2), so you should continue using the other size attributes if your application does not support small screens. Oct 06 21:09:35 I asked because I'm error a null pointer exception again Oct 06 21:09:36 lol Oct 06 21:09:51 so I wanted to be sure it makes sense Oct 06 21:10:11 troned thats interesting? that's takling about "large"? Oct 06 21:10:13 it's fine Oct 06 21:10:26 no i read wrong Oct 06 21:10:39 Eowyn27 so yeah, all good ;) Oct 06 21:11:02 last time i read that stuff I understood it as though it was still the normal/large/x-large that was sued on google play Oct 06 21:11:19 Thanks.. now I need to figure out where that null pointer is coming from Oct 06 21:11:42 it points to the back_button.setOnClickListener(new View.OnClickListener() ... line Oct 06 21:11:53 so there you go Oct 06 21:11:57 job done Oct 06 21:12:13 so it's a view that's null? Oct 06 21:12:17 yes Oct 06 21:12:53 if by view you mean back_button then yes Oct 06 21:13:20 ok so it's not the view but the button ??? Oct 06 21:13:22 hm Oct 06 21:13:31 the button is the View Oct 06 21:13:41 there is no other view on that line Oct 06 21:15:56 the button seems fine Oct 06 21:16:11 JacobTabak are you using the gradle daemon Oct 06 21:16:18 not yet Oct 06 21:16:24 could it be null because it's the first page? Oct 06 21:16:37 crashes on the first page? Oct 06 21:16:39 dcow i'm actually having an issue locally, so i'll figure that out first Oct 06 21:16:45 com.android.builder.testing.api.DeviceException: com.android.ddmlib.InstallException Oct 06 21:17:50 so Oct 06 21:17:53 this is very odd Oct 06 21:18:02 Eowyn27 not really Oct 06 21:18:07 telling you the line Oct 06 21:18:08 why not? Oct 06 21:19:13 but what's it telling me? It's odd because if I change the layout in SetContentView to my activity layout vs. android viewpager layout, the buttons are not null and they work Oct 06 21:21:42 hi Oct 06 21:22:21 hmm. i'm going to try to use custom Preference classes to store stuff not in shared prefs, but on the bluetooth device. wonder how well this is going to pan out Oct 06 21:22:37 Eowyn27: all of your views have to be defined in whatever xml layout you're setting in the Activity/Fragment or else they will be null when you set them Oct 06 21:22:49 g00s i have my preferences implement an interface Oct 06 21:22:58 get, set, delete, isset Oct 06 21:23:11 can implement them however i choose and inject different implementations for tests etc Oct 06 21:23:32 unlike the sharedPrefs all my stuff will be async over network , wonder if this will cause problems Oct 06 21:23:33 +1 ^ Oct 06 21:23:39 (for interface) Oct 06 21:24:01 in View's setMeasure, what are those ints? Are they dp? px? Oct 06 21:24:06 yacek19 px Oct 06 21:24:12 SixthSigma, when I put the android viewpager xml element inside my root activity, two views appears on top of each other for some reason Oct 06 21:24:13 er Oct 06 21:24:17 could be a MeasureSpec Oct 06 21:24:20 creating a ghosting affect Oct 06 21:24:56 JacobTabak: so how should I specify sizes between mdphi hdpi... ? Oct 06 21:25:49 yacek if you're hard coding dimensions in measure() your'e gonna have a bad time Oct 06 21:25:52 thats not what its meant for Oct 06 21:25:58 use setLayoutParams() Oct 06 21:27:04 setLayoutParams(preferred width in PX, preferred height in PX), i recommend you set the dimensions in dimension resources, then get them with context.getResources().getDimensionPixel...(...) Oct 06 21:27:23 paraphrasing of course but that's the idea Oct 06 21:27:42 you can only request layout params, each views measurements are constrained by it's parents measurespec mode (AT_MOST, EXACLTY, or UNSPECIFIED) Oct 06 21:28:18 actually might have figured out the problem, thank you SixSigma Oct 06 21:28:52 JacobTabak: so what should I code in onMeasure?? Oct 06 21:29:01 yacek19 what are you extending? Oct 06 21:29:07 View Oct 06 21:29:43 what do you want to do in measure? Oct 06 21:30:25 what is your custom view doing? Oct 06 21:30:57 I am drawing just a circle, but I would like this to be small like 16dp Oct 06 21:31:12 you should use an XML drawable if you're just drawing a circle Oct 06 21:31:19 for my image click listener, should I put "android:onClick="OnClick"" in my xml Oct 06 21:31:45 yacek19 - but if you insist - don't override onMeasure at all, just use setLayoutParams() Oct 06 21:31:47 I tried and it said, could not find a method onClick(view) in the activity Oct 06 21:31:51 JacobTabak: of course it was shortcut, it's not ordinary circle, but circle indicating progress Oct 06 21:32:12 you can also create a drawable with an animation yacek19 Oct 06 21:32:39 no,it's just static drawable but drawn in specific way Oct 06 21:33:37 JacobTabak: thanks for help and explanation Oct 06 21:34:03 yacek19 np, i think what you're looking for is just setLayoutParams() Oct 06 21:34:25 and get the width and height from a resource value so the DP is automatically converted to PX at runtime Oct 06 21:39:16 JacobTabak: I have one more question Oct 06 21:39:29 im ready... waiting for travis builds all day Oct 06 21:39:55 as I know I should avoid creating objects in onDraw, but how to define RadialGradient outside onDraw Oct 06 21:40:05 How can I rename my onClick method to something else? Oct 06 21:40:19 gradient should know width and height Oct 06 21:40:41 yacek19 use a layout changed listener Oct 06 21:40:48 i mean, do it onLayout Oct 06 21:40:51 without me getting the error that class anomymous class derived from onclicklistener must bedeclared abstract or implement abstract method onClick(view) in onclicklistener Oct 06 21:41:02 very nice, thanks Oct 06 21:41:19 Eowyn27 you really need to just google this stuff Oct 06 21:41:42 ok sorry Oct 06 21:41:58 I am googling while asking for help Oct 06 21:41:58 look at 'inline' section http://martin.cubeactive.com/android-onclicklitener-tutorial/ Oct 06 21:47:07 well actually I'm looking for something like the last example on that page Oct 06 21:47:29 however the author doesn't explain how he was able to write a custom onclick method name without an error throwing at them Oct 06 21:48:19 don't ever set onClick in xml Oct 06 21:48:20 Eowyn27, don't define click listeners in XML Oct 06 21:48:31 (anyone else want to echo that) Oct 06 21:48:45 pfn are you going to explain why or should i lol Oct 06 21:49:16 well I didn't at first but I run my app and when I click on my image, nothing happens Oct 06 21:50:09 what happens when an app is swiped away from the recent apps list? Oct 06 21:50:35 d0de a lot of things, are you wondering about services or something? Oct 06 21:50:42 because they're not killed by default Oct 06 21:51:13 my app consists of a background service and an activity. When my app is swiped away from the list, I get 2 "unfortunately, myapp has stopped" messages - i presume one for the activity and one for the service Oct 06 21:51:23 I'm wondering how I can stop that from happening Oct 06 21:52:22 d0de you just need to look at the stack trace and see why its crashing and fix that first Oct 06 21:52:28 app shouldnt crash even once when you swipe it from recents Oct 06 21:55:24 how can you define your compileSdkVersion in one place for all projects? in gradle Oct 06 21:55:33 i'm trying to set it in gradle.properties but im doing something wrong Oct 06 21:57:13 cmon this is basic :P Oct 06 22:00:19 nope, that's gradle. basic is an entirely different language :) Oct 06 22:01:26 ha ha Oct 06 22:01:39 do you know JesusFreke ? im looking at xaviers answer here but it doesnt seem to work http://stackoverflow.com/questions/20404476/how-to-define-common-android-properties-for-all-modules-using-gradle Oct 06 22:01:46 maybe its outdated Oct 06 22:04:21 Hrm, I'm getting a NPE in the onStartCommand of my service Oct 06 22:06:19 JacobTabak: the second answer (the one that uses subprojects) was my first thought Oct 06 22:06:48 but apparently doesn't work, so *shrug* :) Oct 06 22:07:41 should swiping an app from recent have any effect on stuff stored in SharedPreferences? Oct 06 22:07:55 i dont think that works JesusFreke because you need to apply the android plugin before you can use that Oct 06 22:08:02 d0de no Oct 06 22:08:14 does it crash every time d0de Oct 06 22:08:41 something weird is going on then Oct 06 22:08:56 I suspect you have a null reference ;) Oct 06 22:08:56 JacobTabak, no, I followed your advice and followed the stack trace Oct 06 22:09:10 pastebin i Oct 06 22:09:11 it Oct 06 22:09:21 fixed the NPE in onStartCommand by returning early if intent == null Oct 06 22:09:42 so it doesn't crash anymore Oct 06 22:10:04 but for some reason I can't fathom my stuff in SharedPreferences is getting wiped when I swipe the task from recent apps Oct 06 22:10:12 but not under other circumstances Oct 06 22:12:54 btw JesusFreke xavier's answer works, just got warnings that scared me Oct 06 22:15:48 JacobTabak: use the ext block, that's what it's there for Oct 06 22:15:59 i am, just getting warnings Oct 06 22:16:08 http://cl.ly/image/422H1g1O3X3b Oct 06 22:16:21 and http://cl.ly/image/092s1f382L3k Oct 06 22:16:25 remove "project." Oct 06 22:16:35 and just ignore the latter Oct 06 22:16:41 groovy type inference is pretty shit Oct 06 22:16:48 because the language is shit (but fun) Oct 06 22:17:15 thanks, first one worked - no way to fix the second? Oct 06 22:17:16 ha Oct 06 22:17:26 i can't cast or tell it the type? Oct 06 22:17:40 (my groovy is abysmal) Oct 06 22:17:42 you can append 'as String" Oct 06 22:17:53 perfect Oct 06 22:18:07 just don't want to confuse other devs with warnings Oct 06 22:18:33 (in the dream world where i'm not the only android dev) Oct 06 22:23:50 is there some simpler way of dealing with message passing in android? Oct 06 22:24:03 seems like a ton of code to just go from one thread to another Oct 06 22:24:40 also do I need to serialize my more complex data structures to pass them in Message? Oct 06 22:26:19 bfrog you can use an event bus or rxjava Oct 06 22:26:45 No, handlers and messages are all for in-process communication. You don't have to serialize/deselialize anything Oct 06 22:27:04 you can use Message.obj to hold your custom object. Oct 06 22:28:12 Depending on what you're doing, you might consider using the post* methods with an anonymous Runnable class Oct 06 22:28:37 I need to pass an array of objects from a service to my activity Oct 06 22:28:46 but he did say inter-thread, not IPC Oct 06 22:28:46 oh Oct 06 22:28:46 nm misread you Oct 06 22:29:09 I think its inter-thread, my understanding of android is very very limited, learning as I go :-) Oct 06 22:29:25 is your service (or activity?) running a background thread? Oct 06 22:29:43 I'm using a library for the service, so I'm not entirely sure Oct 06 22:29:49 http://altbeacon.github.io/android-beacon-library/documentation.html Oct 06 22:30:24 bfrog services always run in main thread usually Oct 06 22:30:24 unless its an intentservice Oct 06 22:30:24 or you pass off work to another thread Oct 06 22:30:33 what's the proper way to change the layout for the currently active activity? Oct 06 22:31:02 setContentView(R.layout.activity_my_new_layout) ? Oct 06 22:31:19 d0de: I'm not a UI expert by any means, but I suspect the way to go would be to start a new activity that replaces the top activity, not try to change the layout of an existing activity. Oct 06 22:31:58 yes d0de, you can use setcontentview, but as JesusFreke its risky because your existing view references will still be around Oct 06 22:32:21 but i know some people (cough) that do that exclusively Oct 06 22:32:32 ie, use 1 activity, no fragments, and just add/remove views Oct 06 22:34:25 yeah I've been having a bit of bother trying to clean up references after doing things that way Oct 06 22:34:44 what's a clean way to start a new activity that replaces the current one? Oct 06 22:35:05 I'm pretty sure there's a startActivity flag for that Oct 06 22:35:20 if I had to guess, I would say REPLACE_TOP. but that's purely a guess :) Oct 06 22:36:21 what’s wrong with the 1 activity, n views, 0 fragments philosophy, JacobTabak ? Oct 06 22:36:37 you only need one application controller. Oct 06 22:36:46 views are just views. Oct 06 22:36:59 dcow i didnt' say anything was wrong with it Oct 06 22:37:24 but if you're going to abandon all of the tools that the platform gives you, you better know what you're doing Oct 06 22:37:25 I’m curious to try it Oct 06 22:37:33 and have a good reason Oct 06 22:37:38 we’re doing n activities, n views Oct 06 22:37:45 where n == n Oct 06 22:37:58 what do you mean? Oct 06 22:38:04 as in one view per activity Oct 06 22:38:14 thats the same as using n activities with n layouts, isn't it? Oct 06 22:38:18 because a layout gets inflated to a view Oct 06 22:38:32 sure, I shoudl have said layouts Oct 06 22:38:41 that's what most people do, isn't it? Oct 06 22:38:47 0 fragments Oct 06 22:38:59 ah, what about viewpagers? Oct 06 22:39:04 and no some poeple like to dynamically swap out views Oct 06 22:39:11 on a per-activity basis Oct 06 22:39:20 the “one activity” philosophy simplifies that Oct 06 22:39:33 ah i don't know many people who swap out a main content view on an activity Oct 06 22:39:48 i know some, but i didn't think it was common Oct 06 22:39:49 well it doesn’t have to be the contentview Oct 06 22:40:07 but children of it are effectively the same thing Oct 06 22:40:16 s/but/because Oct 06 22:43:25 so there's no real definitive way to do what I want then? or is Messenger the right way? Oct 06 22:44:31 bfrog: I have no idea what you're trying to do :) Oct 06 22:44:55 you said you're using a library, but I have no idea what you're actually trying to do with it. is there a particular api you're trying to use? Oct 06 22:45:10 yeah I'm using the RangeNotifier Oct 06 22:45:45 so I create a BeaconManager like they have in their samples, then when I get a list of Beacons using the RangeNotifier interface (callbacks?) I want to update a list view with a list of beacons Oct 06 22:45:57 they just log the beacons they find in their samples Oct 06 22:46:53 so I have a ListActivity and everything setup, when I tried doing it in the implemented RangerNotifier by doing activity.setListAdapter(...) I got the error about modifying the ui from a non-ui thread Oct 06 22:47:15 bfrog its easy to run code on the ui thread Oct 06 22:47:22 well I don't want to do that Oct 06 22:47:47 the UI thread would start getting all f-ed up then I'd assume Oct 06 22:47:51 no.. Oct 06 22:47:59 you do all the work on a different thread and just update the UI on the main thread Oct 06 22:48:21 Yeah, just post a Runnable to the main thread that does the actual UI changes. Oct 06 22:48:30 activity.runOnUiThread(new Runnable() {}) Oct 06 22:49:48 What is the best approach to create a menu like this one? http://picpaste.com/Screen_Shot_2014-10-06_at_7.47.32_PM-T0RliYAL.png Oct 06 22:50:04 I have the buttons in png. Oct 06 22:51:24 I tried that before but it was complaining about something else Oct 06 22:51:27 let me try that again Oct 06 22:51:51 does android development ever become second nature or are you guys always looking at the docs? Oct 06 22:52:23 feel like its a pretty large API Oct 06 22:52:30 Birk_ you may want to use an ontouchlistener and calculate whether or not the touch up gesture was in one of the segments, probably will involve some math Oct 06 22:53:42 hey guys, is there a way to test iab without a real credit card? I've tried setting up a google wallet sandbox account but it seems it's not related to the google play because the dummy credit card doesn't appears there Oct 06 22:54:24 JacobTabak: But how can I arrange the button in the screen. Using ImageViews? Oct 06 22:55:14 assuming they have touch states Oct 06 22:55:17 right? Oct 06 22:55:23 ok I figured it out Oct 06 22:55:28 yes Oct 06 22:55:37 I was modifying an ArrayAdapter in the other thread, then only doing setListAdapter in the Runnable Oct 06 22:55:40 I guess thats not allowed Oct 06 22:55:47 confusing Oct 06 22:56:07 thought the ArrayAdapter was only the data accessor, not actually modifying the view Oct 06 22:56:24 Birk_ if you're sensitive about the precision of touches around the areas where htey intersect Oct 06 22:56:37 it will be hard Oct 06 22:56:43 i'm trying to have iap in google play for a week... nothing works properly and nothing makes sense... i'm gonna stop supporting android asap... i hate apple but at least the guys there have a brain Oct 06 22:56:53 Nine_9: name your iap item the test id. I think it's something like android.test.purchased Oct 06 22:56:54 if not, you can just use transparency and overlap rectangle views Oct 06 22:56:57 bankai_au are you here? Oct 06 22:57:00 si Oct 06 22:57:27 sixthsigma: i'm using test purchases, but even though google wants a credit card Oct 06 22:57:33 so why is it that when I modify an ArrayAdapter my view doesn't actually update, but when I do setListAdapter(arrayAdapter) it does Oct 06 22:57:47 and why does modifying the arrayAdapter from another thread matter if thats the case Oct 06 22:58:48 the runnable thing is nice Oct 06 22:59:42 JacobTabak: There is a way to draw the buttons with the right shape? I need to animate them with open and close effects when the user clicks the ball. Oct 06 22:59:45 remember we talked about polyline performance issues? Oct 06 22:59:50 Nine_9: naming your item the test id shouldn't require a credit card. purchasing your item using a test account does require a credit card but it doesn't charge it. Oct 06 23:00:05 ShapaTank: yep how'd your testing go ? Oct 06 23:00:07 JacobTabak: But ill try use rectangular shapes Oct 06 23:00:31 how can googe maps display so many traffic polylines with no problem? thats exactly how i wanna display them Oct 06 23:01:02 i didnt change code yet because i was learning about bounding boxes and such Oct 06 23:02:50 where's it do that? i don't use google maps that often Oct 06 23:02:59 how just turn on traffic layer Oct 06 23:03:05 oh* Oct 06 23:03:39 the little menu button on the bottom left Oct 06 23:04:10 or even bike layer wow Oct 06 23:04:18 on my phone it looks like it's only generating polylines for what's in the current view Oct 06 23:04:50 ok zoom out Oct 06 23:04:56 and ull get so many more Oct 06 23:05:02 and no performance issue at all Oct 06 23:05:34 where are your polylines coming from ? Oct 06 23:05:46 json Oct 06 23:05:57 is that the speed problem, rather than the map rendering ? Oct 06 23:05:58 i parse the json and plot them one by one Oct 06 23:06:29 hmm i would say both but i can prob fix the parsing. its more of the polyline rendering Oct 06 23:06:29 on another thread? Oct 06 23:06:39 i cut it down to 5 and theres no problem Oct 06 23:07:01 hmm you mean i should make the plotting async? Oct 06 23:07:13 is there something that gets called in my app when it's swiped off the recent apps list? Oct 06 23:08:04 ShapaTank: i'd do all the json fetching, parsing and polyline generation on one thread, then post it to the map --rxjava will help with all the threading fun Oct 06 23:08:49 ok i was going to try that, but i dont know how to gather the polylines to then plot them, would you point me in the right direction for that? Oct 06 23:10:39 i wanted to save the polylines to a list, but i understand how to save the polylines with their options Oct 06 23:11:33 Birk_ you can only create square views - in L you can clip them, but I don't think that affects touch regions Oct 06 23:11:48 could be wrong though Oct 06 23:12:10 JacobTabak: Ok. Thanks for you time :) Oct 06 23:12:18 ShapaTank: map.addPolyLine will hold a reference Oct 06 23:16:04 oh really? without plotting it? ..so itll be List polyList.add(map.addPolyLine(PolylineOptions)); (i know its not the right santax but the idea) Oct 06 23:17:30 not quite, the polyline returned by map.addPolyLine will be a reference to the line on the map. The idea, like with markers, is to enable devs to easily hide, colour, shade, remove, edit etc the polyline Oct 06 23:17:54 ohh Oct 06 23:19:39 so from Json you've got a list of lat/lng, right ? Oct 06 23:20:04 yes Oct 06 23:21:17 oh wait im such an idiot... save a list of the polyline options then add them when necessary right? lol Oct 06 23:24:54 anyone get travis running tests on an emulator? Oct 06 23:26:23 ShapaTank: yes, but you'll probably want to hold a reference to the polylines (on the map) as well Oct 06 23:28:01 i think i was because i couldnt figure out a way to add a custom uuid to them.. is this what you mean Oct 06 23:28:08 Polyline line = mMap.addPolyline(polyO); Oct 06 23:28:08 polyUUIDref.put(line.getId(),polyUUID); Oct 06 23:28:47 I think the reason why the OnClickListener doesn't work Oct 06 23:28:49 well im saving their ids but i guess i could just save the line ref instead? Oct 06 23:28:51 is because I'm using a ViewPager Oct 06 23:29:11 ShapaTank: yep, save the result of mMap.addPolyline(blah); Oct 06 23:29:12 Is the touch detection of the viewpager interfering with the onclicklistener of the image Oct 06 23:29:57 ok awesome im going to try it out right now and see how it goes! Oct 06 23:30:02 thank you! Oct 06 23:30:09 Eowyn27 : no Oct 06 23:32:01 oh quich thing... im saving it in hashmap (i duno why) would i make it HashMap(); (string being my own custom uuid) Oct 06 23:32:09 quick* Oct 06 23:34:58 and new thread for plotting means i make a line like new task? Oct 06 23:35:14 look at rxjava it'll make the whole process easier Oct 06 23:35:28 whats that? >.< Oct 06 23:35:54 a channel? Oct 06 23:36:02 why not Jacob? Oct 06 23:36:02 https://github.com/ReactiveX/RxJava Oct 06 23:36:07 oh thanks Oct 06 23:36:19 I'm on google and I'm reading up about the viewpager is messing up people's onclicklisteners Oct 06 23:36:27 *on stack overflow Oct 06 23:37:08 it's never been an issue for me Oct 06 23:37:45 well did you set an onclick listener on the whole viewpager? Oct 06 23:37:52 that might screw things up Oct 06 23:38:33 I set it up in my Activity Oct 06 23:38:44 I have two images that I want to use as buttons Oct 06 23:38:51 for navigationg forward and back Oct 06 23:39:19 I set the images in my layout xml and then use a onclicklistener on the imageview Oct 06 23:40:42 how bout a little paste bin. doesnt sound like anything odd Oct 06 23:40:47 im sorry bankai_au, what am i supposed to do with rxjava, review it to learn the threading or incorporate it? Oct 06 23:41:58 incorporate it :) Oct 06 23:42:21 or just use asynctaskloaders ... end result is more or less the same Oct 06 23:43:18 haha i see. i see theres a wiki which ill read over. im usually lost when i have to incorporate other projects lol Oct 06 23:46:22 ok I will pastebin one sec dco Oct 06 23:46:24 *dcow Oct 06 23:47:28 when the system has low memory and the android system desrtroys an activitiy that exists within an android.app.Application context does that application object also get cleaned up if it has nothing else to do? or does the application define its' own behaviour based on the onLowMemory impls? Oct 06 23:49:14 I think you might be conflating dalvik/art's garbage collection with the system's reaping of processes due to memory pressure Oct 06 23:50:47 JesusFreke: basicaly i have some fields in the application instance that define behvaiours in some of the child contexts. i was wondering if i needed to persist them or if the lifecycle of the application object would be long enough such that wouldnt be necessary Oct 06 23:51:35 gradle 0.13.3 Oct 06 23:51:39 afaik, the Application object will be kept around as long as the process is alive Oct 06 23:52:00 JesusFreke: the process being the activity...?? Oct 06 23:52:01 but, if your process is killed, it's obviously going bye-bye as well Oct 06 23:52:05 no, the process Oct 06 23:52:08 ok Oct 06 23:52:27 i think that should be all good then Oct 06 23:52:29 dcow, http://pastebin.com/hKFgRmJf Oct 06 23:52:34 Processes are killed by the system when it needs more memory Oct 06 23:53:09 teasp00n application gets wiped when your process is killed. don’t depend on static application fields without proper code to handle the possibility that they may be null Oct 06 23:53:18 and are chosen based on what components are active in that process. If there are no active components (activities, services, receivers, etc.), then that process will be high up on the list of processes to get reaped Oct 06 23:53:39 but a process that's hosting a foreground component will be very very low on the list of processes to reap Oct 06 23:54:18 ok, thanks guys i think im sorted Oct 06 23:55:10 are you sorted in ascending or descending order ? Oct 06 23:56:00 need help i've erased my os on my developer unlocked m8 Oct 06 23:56:20 nothing i've tried works Oct 06 23:56:36 VannahG: head to #android-root Oct 06 23:56:44 thanks Oct 06 23:57:04 dcow, I'm pretty sure my onclicklisteners are fine. Oct 06 23:57:10 I think it might be something else Oct 06 23:57:31 Eowyn27 you've been struggling all day Oct 06 23:58:11 ... Oct 06 23:58:15 >< yeah Oct 06 23:58:28 almost got it working Oct 06 23:58:37 only thing left is the onclick action Oct 06 23:58:48 whats the standard android UX - for filtering a list? like where would you add filters? action bar drop down? Oct 06 23:59:21 sylon one way you could so it, is iosched 2014 Oct 06 23:59:28 they have a bunch of filtering doohickies Oct 06 23:59:46 whats a doohickie Oct 06 23:59:53 thingy Oct 07 00:00:03 like a doobry Oct 07 00:00:21 a thing-a-mabobber Oct 07 00:00:29 a whatsit Oct 07 00:01:19 frobnicator Oct 07 00:01:28 g00s: TMI Oct 07 00:01:40 http://www.catb.org/jargon/html/F/frobnicate.html Oct 07 00:02:04 sounds like you're fornicating with a frog or something :p Oct 07 00:02:17 i have at least one programming book that has that term in code Oct 07 00:02:27 foo, bar, baf, frobnicate, etc Oct 07 00:02:30 *baz Oct 07 00:02:42 I think referring to the jargon file nowadays qualifies you for automatic old-skool status Oct 07 00:02:51 Eowyn27 sanity checks imo Oct 07 00:02:55 oh man Oct 07 00:02:57 try without the seekbar Oct 07 00:03:00 just two image views Oct 07 00:03:32 sanity checks? Oct 07 00:03:45 ok I will try Oct 07 00:04:32 here's a funny title for a serious book "Orgies of Feeling: Melodrama and the Politics of Freedom" Oct 07 00:04:40 hehe Oct 07 00:05:10 should I comment out the code for the seekbar in the xml as well? Oct 07 00:05:24 otherwise, it's still not working Oct 07 00:05:31 Eowyn27 i think you should do some studying Oct 07 00:05:40 instead of hitting your head on every damn thing all day Oct 07 00:05:57 please suggest study topics Oct 07 00:06:04 start at d.android.com Oct 07 00:06:11 read all the things Oct 07 00:06:15 Hi... can somone tell me the best way to rapidly develop using TDD on Android? Is the "Robolectric" framework the only way? Oct 07 00:06:37 tdd = test driven development Oct 07 00:06:49 * g00s hates TDD Oct 07 00:07:29 I like Oct 07 00:08:12 anyway, with Grunt/Karma web development, it can run a headless browser and anytime I change my source file, it re-runs all the tests Oct 07 00:08:13 the android docs need work Oct 07 00:08:31 ... in real time, any time I save a file, it monitors the files, can I do something like that with andoid? Oct 07 00:08:38 android studio * Oct 07 00:09:07 and I'm not the only one who complains, there's someone who's been developing on Android for 3 years and still thinks the docs suck, they have gotten better Oct 07 00:09:09 Eowyn27 what type of debugging have you done. How many pages does your adapter have. You won’t switch pages if there aren’t multiple things in the adapter. Oct 07 00:09:19 These type of questions should all be asked first. Oct 07 00:09:34 I have 10 pages Oct 07 00:09:44 Have you tried putting log statements in the callbacks? Oct 07 00:09:46 I can swipe between pages just fine Oct 07 00:09:52 seems like Robolectric is the way to go for me then... Oct 07 00:10:10 only the onclicklisteners don't work... I think they get called but nothing happens (no errors on the logcat) Oct 07 00:10:29 please confirm that they get called Oct 07 00:11:25 ok Oct 07 00:11:26 one sec Oct 07 00:11:42 because setCurrentItem should work as advertised Oct 07 00:12:04 ok not called Oct 07 00:12:18 onClick method does not get called Oct 07 00:12:30 when I push on the arrow image Oct 07 00:12:35 Who is the moderator at https://groups.google.com/forum/#!forum/android-developers ??? I posted a message and it never appeared Oct 07 00:12:43 and it was a long message Oct 07 00:12:46 I want it back Oct 07 00:12:54 i'm about to give up on android iaps... thinking about displaying something like "buy an apple device if you want the premium features, cause google's too dumb to make anything usable" Oct 07 00:12:55 and back button deleted all the text Oct 07 00:13:30 Nine_9: go ahead, seems like everyone else does just fine :) Oct 07 00:14:11 anyone? Oct 07 00:14:16 Nine_9 i was going to switch to IAP but i keep hearing (anecdotally) people having problems with it Oct 07 00:14:27 seems like g00s's "I hate TDD" was the only response I got Oct 07 00:14:42 I'm writing in english Oct 07 00:14:47 after_r I have never had my messages go through to that group Oct 07 00:15:01 try the android-platform group instead maybe if you have an issue with the system. Oct 07 00:15:08 after_r also, the moderated stuff can take 24-48 hours Oct 07 00:15:12 how do I get my message back? Oct 07 00:15:13 if its your first post Oct 07 00:15:15 but your frustrations are valid, there is no official developer support forum Oct 07 00:15:17 I don't want to re-write it Oct 07 00:15:20 save for this room Oct 07 00:15:30 after_r it will show up Oct 07 00:15:34 the google groups groups are official Oct 07 00:15:45 g00s I have never had my messages pass moderation Oct 07 00:15:46 not going to say they are active, but they are official Oct 07 00:15:58 dcow only the first one you post Oct 07 00:16:03 I’ve replied ot people and posted new questions Oct 07 00:16:08 g00s: no, never Oct 07 00:16:27 I’ve posted numerous times. Nothing goes through. Either someone has just missed mine, or no one is looking Oct 07 00:16:49 last time I brought it up in here someone said android-developers is not moderated by google Oct 07 00:16:58 only the groups listed on the website are. Oct 07 00:17:03 and android-developers is not Oct 07 00:17:07 https://groups.google.com/forum/#!forum/android-developers is listed Oct 07 00:17:28 http://developer.android.com/support.html Oct 07 00:17:50 android-developers support forumasdasd Oct 07 00:18:25 hmm that’s a different page. interesting Oct 07 00:18:42 well whatever.. never had any action on that group Oct 07 00:18:47 don’t get your hopes up Oct 07 00:18:51 maybe 24-48 hours is the standard at google for support turn around Oct 07 00:18:57 I’ve waited months Oct 07 00:19:18 thanks Google, for swallowing my post Oct 07 00:19:37 and your awesome HTML skills Oct 07 00:19:47 deleted the text on the "back" button Oct 07 00:20:10 that's my favorite thing when that happens Oct 07 00:20:28 I <3 u Google Oct 07 00:20:59 Oh wait, I forgot I was supposed to use Chrome to make that post. Oct 07 00:21:09 @dcow my posts have disappeared too, not sure what's up Oct 07 00:21:23 android:layout_width="14dp" Oct 07 00:21:28 it probably works only if you use chrome Oct 07 00:21:29 oops Oct 07 00:21:31 :) Oct 07 00:21:50 google gone full retard... i'm surely dropping android support asap... gonna release my stuff only for ios, windoze and tizen in the near future Oct 07 00:22:14 tizen ... mmmmm Oct 07 00:22:41 samsung is ramping up on tizen, but last i heard was that they were going to use it for internal / foundation of their smart appliances Oct 07 00:22:50 i had a look at tizen the other day. didn't know there were already devices out there Oct 07 00:22:56 at companies like Microsoft, they have entirely teams dedicated to developer community support. Not saying you necessarily need all that, but at least the give two fucks... Oct 07 00:23:11 g00s: the 'wear' stuff uses tizen Oct 07 00:23:12 google has reto :) Oct 07 00:23:29 he popped in here once ot twice over the years, not in a long time though Oct 07 00:23:58 after dan morrill left the channel, i think google disowned #android-dev Oct 07 00:24:19 although it’s still listed?? Oct 07 00:24:22 MainActivity.java: http://paste.fedoraproject.org/139746/40926141 Oct 07 00:24:23 activity_main.xml: http://paste.fedoraproject.org/139747/26409891 Oct 07 00:24:25 TestResponse.java: http://fpaste.org/139745/41264085 Oct 07 00:24:26 fragment_main.xml: http://paste.fedoraproject.org/139744/14126408 Oct 07 00:24:28 Question #1: What should I be doing to properly replace the text in the TextView? Oct 07 00:24:29 Question #2: How do I get the text centred, & with a field equal in size to the radio buttons? Oct 07 00:24:35 if they’ve disowned it then they need to get it off the damn “Developer support resources” page Oct 07 00:24:49 it’s probably the only reason people are in here Oct 07 00:24:51 well that's how I found it Oct 07 00:25:23 the platform has enough momentum, i bet google feels it doesn't need to invest in these things any more Oct 07 00:25:24 the topic was also updated for android L Oct 07 00:25:25 It's hard to find resources for Android Oct 07 00:25:29 that are not 2 years old Oct 07 00:25:31 so I assumed someone was still doing something Oct 07 00:25:42 there are a few googlers here (i see one) Oct 07 00:25:55 no doubt people sit in this room Oct 07 00:26:23 Nivag: create a method in TestResponse to change the text Oct 07 00:26:52 Why is OnClickListener not called? Oct 07 00:28:02 Nivag: #2: add android:gravity="center_horizontal", set the radiobutton layout_height as the same fixed value as the textview's layout_height Oct 07 00:28:50 Eowyn27: you might have another onClickListener inside it that is conflicting ? Oct 07 00:28:50 i dont think i've ever use a platform before, where more developers voiced frustrations Oct 07 00:29:12 otoh, there are tons of android devs Oct 07 00:29:24 Eowyn27 you can post your layout file Oct 07 00:29:27 no I don't think so Oct 07 00:29:30 maybe you’ve done something crazy in there Oct 07 00:29:30 I will post my layout file Oct 07 00:29:31 one sec Oct 07 00:29:31 Eowyn27: or your view is not "clickable" Oct 07 00:29:49 setting an onClickListener should make it clickable, right? Oct 07 00:30:24 it should Oct 07 00:30:34 oh, that's right Oct 07 00:32:32 yuizy: created a method, but no change in behaviour, so I guess I missed the 'obvious'! http://fpaste.org/139748/41264180 Oct 07 00:34:25 uhm Oct 07 00:34:53 i thought you meant you want to update it Oct 07 00:35:48 no need for a method there then Oct 07 00:35:55 is it not updating the text? Oct 07 00:35:56 http://pastebin.com/tyq8FNAE Oct 07 00:36:07 Here's the layout Oct 07 00:36:29 I tried to run the app with making the relative layout clickable = true and just removing that line Oct 07 00:36:36 but doesn't make a difference Oct 07 00:37:29 yeah it shouldnt Oct 07 00:37:47 you seem to have a bunch of buttons and a viewpager inside your clickable view Oct 07 00:38:06 which means that if you click one of those, the clickable view is not receiving the click event Oct 07 00:38:23 why not Oct 07 00:38:44 I need to have buttons in my viewpager Oct 07 00:38:50 clickable images Oct 07 00:39:04 how can I get around it? Oct 07 00:39:28 you're going about it all the wrong way (still), it's not an issue, just take a step back and try something different Oct 07 00:40:23 yuizy:: without the programmatic update, I get a field above the top radio button - now I get the text superimposed in the top left of the radio button field Oct 07 00:45:38 what else should I try? Oct 07 00:46:02 Eowyn27 what are you doing ? Oct 07 00:46:57 wth! Eclipse just told me my workspace folder is not available, I checked it on the filesystem, it's still there Oct 07 00:48:35 must be a random glitch Oct 07 00:48:42 restart eclipse? Oct 07 00:48:58 yeah it worked the second time I restarted, no complaints Oct 07 00:49:08 StingRay, onclicklisteners are not being called. Oct 07 00:49:15 I'm sure the code is right. Oct 07 00:49:18 Nivag: you're changing the textView id Oct 07 00:49:22 maybe the view/layout isn't? Oct 07 00:49:39 Nivag: you also use the id in your relativelayout placement with layout_below Oct 07 00:49:43 Or it could be because I'm setting onclicklisters on an image in a viewpager Oct 07 00:49:44 you break that with the new id Oct 07 00:51:44 Eowyn27 well easy to track down Oct 07 00:51:48 Eowyn27: it's because when you click something that is clickable, the view's parents are not going to receive the onclick Oct 07 00:51:54 we already told you this Oct 07 00:52:31 if I set the images to Oct 07 00:52:38 android:clickable=false Oct 07 00:52:41 it still doesn't work Oct 07 00:54:32 yuizy: AAAAAARRGGGGHHHH!!!!!!!!!! yeah, not resetting the id solved Q1, thanks Oct 07 00:54:41 tricky one :) Oct 07 00:56:15 * Nivag I didn't know it was a loaded foot gun!!! :-( Oct 07 00:57:05 * Nivag runs into far more PEBKACs than he'd like to admit! Oct 07 01:00:22 yuizy, any advice? Oct 07 01:04:53 Eowyn27 have you looked for tutorials regarding what you are doing ? whatever that is ? Oct 07 01:05:53 yes Oct 07 01:06:06 turns out everyone like the google built in tabs Oct 07 01:06:09 for swipe views Oct 07 01:06:15 and no one uses view arrows Oct 07 01:06:20 for navigation Oct 07 01:06:28 anyway I looked into the issue on SO Oct 07 01:06:38 and it turns out there's a problem with a viewpager and onclicklisteners Oct 07 01:06:47 most of the SO answers are useless Oct 07 01:06:50 I tried some solutions Oct 07 01:06:52 all failed Oct 07 01:06:52 you know there's no word limit on IRC, right? you can write more than half a sentence per line Oct 07 01:07:04 there is no real problem with onClick inside viewPages Oct 07 01:07:07 Eowyn27 I’ve done the exact thing you are doing. Worked for me. Oct 07 01:07:08 Eowyn27 i tried to tell you so many times you're going about it the wrong way, you need to take a step back and try something else Oct 07 01:07:12 I have 10's set soemtimes Oct 07 01:07:38 i too have done onClick inside viewpager, there is no problem doing that Oct 07 01:08:11 ok so basically my code sucks Oct 07 01:08:35 Eowyn27 dunno, probably ….but it maybe more the way you are thinking about it Oct 07 01:08:37 :) Oct 07 01:08:37 no, but you should be able to debug it Oct 07 01:08:46 we can’t run your stuff in a debugger Oct 07 01:12:02 ok apparently breakpoints in intellij idea are a little strange Oct 07 01:12:17 I set breakpoints but I don't think they ever get hit. I am probably doing it wrong? Oct 07 01:12:54 oh dear. they work for me Oct 07 01:13:08 are you debugging? Oct 07 01:13:09 or just running Oct 07 01:13:21 and why are you using intellij, you should use android studio Oct 07 01:13:28 it will give you so many more inspections that would be helpful for a newb Oct 07 01:13:53 thanks Jacob for that pointer Oct 07 01:15:23 nothing wrong with intellij Oct 07 01:15:30 I use it interchangeably Oct 07 01:15:38 yup, breakpoints are now hit *d'oh* Oct 07 01:15:46 in fact, if you really want to have some fun, build android studio using intellij Oct 07 01:15:51 editor inception Oct 07 01:17:05 (ofc it’s less noob friendly, so use AS) Oct 07 01:17:20 dcow: do you use intellij for older style android projects? Oct 07 01:17:31 have not tried that Oct 07 01:17:33 i.e. the ones that use ANT and not gradle? Oct 07 01:17:36 or just gradle projects? Oct 07 01:18:17 stupid question but how do I proceed with going to the nextline? what's the short line for debugging to remove breakpoint and debug again? Oct 07 01:18:37 oh run to cursor Oct 07 01:19:05 if you ever start the sentence with "stupid question but" probably best to use google to search ;) Oct 07 01:19:19 yuizy: Now solved Q2, with what you said and some additional exploring of numerous dead ends - thanks! Oct 07 01:19:20 i use intellij for open source libs with maven rather than gradle Oct 07 01:19:27 Eowyn27 the thing that has two dots with an arrow from the top to the bottom one will run just the line you are on and break at the next one Oct 07 01:19:39 I am using Eclipse 4.4.1 Oct 07 01:21:45 thhanks dcow Oct 07 01:22:06 so I'm definitely not a fan of the android debugger, rather ugly :( But I have to get used to it :/ Oct 07 01:26:04 it’s actually the vanilla jdb Oct 07 01:26:12 with whatever ui intellij puts on it Oct 07 01:27:11 best ide I used was visual studio Oct 07 01:27:22 so sleak and debugging was easy to use for a noob Oct 07 01:27:35 say that after you've used intellij for the same amount of itme you've used visual studio Oct 07 01:27:43 (intellij/android studio) Oct 07 01:29:02 ok I hope so Oct 07 01:29:14 because right now my debugging is taking me to the actual source code o.O Oct 07 01:29:20 lol Oct 07 01:29:33 Need to find a good book on this Oct 07 01:29:46 or maybe a video series on debugging in intellij Oct 07 01:30:18 [cmd]+[shift]+[a] then enter eval then press enter Oct 07 01:30:32 and you can do whatever you need Oct 07 01:32:59 thanks for the shortcut, I need to memorize this shortcuts Oct 07 01:37:14 you actually don’t, because cmd shift a is the “omni key" Oct 07 01:39:57 :O Wow, such power to be bestowed upon Oct 07 01:40:04 bankai_au, i think there might be somthing wrong with the project. i put it in a different task and i still have issues. even if i have them as not visible Oct 07 01:40:43 im going to try and create a new clean project with correct tasks and see how it goes Oct 07 01:40:45 btw, actually not only are the onclick listeners not working, the seekbar text isn't showing lol Oct 07 01:40:59 I will be up all night XD Oct 07 01:44:01 You’re not doing something funky with your Theme are you? Oct 07 01:48:29 Eowyn27 you don't need no stiinkin debugger, just lolcat and rubber ducky Oct 07 01:49:51 actually I was thinking, can I put the imageview sets and seekbar stuff inside my adapter? Oct 07 01:50:02 Inside my adapter, I am inflating the view Oct 07 01:50:12 so I think it makes more sense to put it inside the adapter? Oct 07 01:51:59 Eowyn27 have you dont the listView tutorials from d.android.com ? Oct 07 01:52:28 they will give you a good basis and allow you to decide whats good Oct 07 01:52:41 Eowyn27 you don't put anything in an adapter. an adapter creates views, you can put stuff in the views Oct 07 01:53:01 i mean, you put things in an adapter, but not ui widgets Oct 07 01:53:08 you dont' see an adapter on the screen Oct 07 01:55:42 oh travis why do you make my life so hard Oct 07 01:57:06 ah gotcha thanks Oct 07 01:57:18 StingRay, I'm not really working with a listView though. Would they still help? Oct 07 01:58:16 actually I think it's because Oct 07 01:58:34 I should rename my onClick methods to something more specific to each image? Oct 07 01:58:43 like OnBackClick or OnForwardClick Oct 07 01:58:48 ? Oct 07 01:58:53 Eowyn27 well is seems like you are falling often Oct 07 01:59:10 listView/GridView/viewPager etc… all the same concept Oct 07 01:59:23 adapter driven complex views Oct 07 01:59:43 but you should really start with the basics, or the constant falls will get annoying :) Oct 07 01:59:58 never try and build an app from the start…. try to learn ;) Oct 07 02:00:06 anyone know why when I run 'connectedCheck' it like... runs my test in release configuration ? Oct 07 02:00:41 ilke i get signing errors Oct 07 02:06:47 QUESTION: I have setContentView(R.layout.activity_main); in onCreate(), I need to obtain a View then to cast it to a LinearLayout... How do I get the view? Oct 07 02:07:25 findViewById but have you done the getting started guides ? Oct 07 02:07:57 * StingRay_ is puzzled, does everyone just start building an app these days ? and miss the tutorials out ? Oct 07 02:08:01 StingRay_: Duh! Obvious... Thanks Oct 07 02:08:40 i paid him to come troll you StingRay_ Oct 07 02:09:10 StingRay_: I have worked through the tutorials & other examples - so I should have known better! Oct 07 02:09:35 Nivag no no dont get me wrong, it's ok to learn, kind forget and ask Oct 07 02:09:45 * Nivag I still haven't seen your payment in my bank account yet! Oct 07 02:09:47 just seems of late more and more just …well… miss the learning bit Oct 07 02:09:51 :) Oct 07 02:10:21 back in the day, if you asked a question here that was in the docs, you got basted Oct 07 02:10:25 *blasted Oct 07 02:10:25 StingRay_: no worries, annoyed at myself, not by you! :-) Oct 07 02:11:38 lets bring it back Oct 07 02:12:02 evanc and jasta would let you know :) Oct 07 02:13:50 well, there is something more dangerous I see here … a kind of design by committee thing …people ask should they do x and whats the best way to do y.. and think opinions are 100% relevant to them Oct 07 02:14:00 as a designer I would get shot for doing such things Oct 07 02:14:17 but cant really comment as to if it's a done thing somehow in programming Oct 07 02:14:39 StingRay, is there something in ListView adapter tutorials that I am doing wrong? Oct 07 02:14:50 I've followed it Oct 07 02:15:19 Eowyn27 does it all work…the tutorial ? Oct 07 02:15:25 as expected Oct 07 02:16:16 you mean if I ran teh tutorial samples? Oct 07 02:16:31 Eowyn27 well if you followed them, do you understand it all ? Oct 07 02:16:37 I've been programming for over 40 years, started with FORTRAN, then COBOL - it is frustrating to get into new areas, but also fun (depending on which way the wind blows, and the supply of willing virgins (for sacrificial purposes only))! Oct 07 02:16:54 * JacobTabak awkward Oct 07 02:16:59 most of it Oct 07 02:17:00 yes Oct 07 02:17:30 so whats an adapter ? Oct 07 02:19:07 whats a view ? whats an interface ? whats ….. point is after being able to answer all of that.. do something simple to know you understand it…then roate your phone… then learn some more… then get to what you are attempting now :) Oct 07 02:19:34 but jumping ahead will only ever waste time or cause you pain :) Oct 07 02:19:54 or thats my experience with teaching/learning in almost everything Oct 07 02:20:01 can't see this as any different tbh Oct 07 02:24:35 I know Oct 07 02:24:45 I know what a view is in teh simplest sense Oct 07 02:24:50 that it contains all the UI elements Oct 07 02:25:07 An adapter takes an object and converts it into a view accessble object Oct 07 02:26:23 an interface kind of has a base class Oct 07 02:26:28 that you can interact with it Oct 07 02:26:33 to get speciic methods from Oct 07 02:26:42 and you can override those methods Oct 07 02:28:08 like AwesomeCar implements Car Oct 07 02:28:48 Ayo Oct 07 02:29:24 if you don't mind you logger being slow and only want to run at DEBUG check this - https://github.com/znwabudike/ALog/ Oct 07 02:30:05 wondering if I should get rid of the "------------".. Oct 07 02:30:11 in the output Oct 07 02:36:13 btw guys it turns out Oct 07 02:36:17 it was a viewpager issue Oct 07 02:36:29 all I had to do was back_button.bringToFront() Oct 07 02:36:30 and it works Oct 07 02:36:42 Hi people:) Oct 07 02:36:47 ... you were putting a button behind a viewpager with nothing in it? Oct 07 02:36:50 allowing the images to be clicked Oct 07 02:36:58 nothing in it? huh? Oct 07 02:37:07 What are channels rules? Oct 07 02:37:07 if the viewpager had content, you wouldn't be able to see the button Oct 07 02:37:26 CPH_DK read the topic + no piracy + root questions go in the other channel Oct 07 02:37:30 http://stackoverflow.com/questions/12287095/imageview-not-detecting-clicks-when-used-with-viewpager Oct 07 02:37:35 That solved my problem Oct 07 02:38:02 ALmost identical question surprisingly! Oct 07 02:38:04 why would you ever have something behind a viewpager? Oct 07 02:38:05 tricknology that thing is lame Oct 07 02:38:07 JacobTabak Thanks....I could use a bit of help with my android game....I am porting from C++ win32/64 Oct 07 02:38:10 a dingleberry for sure Oct 07 02:38:52 I'm not sure why they would go behind a viewpager Oct 07 02:38:55 but that's what happened Oct 07 02:39:09 you still don't understand it Eowyn27 :( Oct 07 02:39:20 what do you mean? Oct 07 02:39:27 I would like to understand Oct 07 02:39:33 Is it possible to write Java apps using C++? Oct 07 02:39:37 android apps Oct 07 02:39:39 CPH_DK you can use NDK, google it Oct 07 02:39:39 not java Oct 07 02:39:46 you need to bootstrap it with java tho Oct 07 02:40:16 Eowyn27 post a screenshot of your app Oct 07 02:40:19 ok. I will do java for now Oct 07 02:40:35 JacobTabak I am using the surfaceview class to draw 2d stuff. Oct 07 02:41:02 JacobTabak But the code for making it update and not just draw once looks horrid. Oct 07 02:41:37 CPH_DK i don't understand? lots of games use surfaceviews without any issue, no? Oct 07 02:41:48 JacobTabak Something with a lot of exception handling and starting and stopping of threads,,,,can't it really not be done simple? Oct 07 02:42:11 sorry i'm no game dev :) Oct 07 02:42:12 JacobTabak I was just wondering if there was a simpler way Oct 07 02:42:14 ok Oct 07 02:42:16 :) Oct 07 02:42:38 JacobTabak Wanna see a pic of the game:)? Oct 07 02:42:49 sure! Oct 07 02:42:55 ok, 2sec. Oct 07 02:43:04 http://imgur.com/0UslH6R Oct 07 02:43:55 cool Oct 07 02:44:03 thanks. Oct 07 02:44:05 very simple Oct 07 02:44:14 is it tetris? Oct 07 02:44:17 Yes :) Oct 07 02:44:23 you can't publihs that to google play you know Oct 07 02:44:29 i mean you can but it will be taken down Oct 07 02:44:30 It's as I would show you though in a mockup Oct 07 02:44:36 two arrows left and right on the top Oct 07 02:44:41 two buttons on the bottom Oct 07 02:44:42 Eowyn27 cant you screenshot the app? Oct 07 02:44:55 I'm trying to run the emulator now Oct 07 02:44:56 it's slow Oct 07 02:45:12 I could call it CloneTris and change the rules a bit Oct 07 02:45:20 I had previously just ported to phone Oct 07 02:45:21 CPH_DK it wont last Oct 07 02:45:33 http://games.slashdot.org/story/10/05/28/079200/tetris-clones-pulled-from-android-market Oct 07 02:45:37 JacobTabak I have seen several tetris clones on google play Oct 07 02:45:38 what would the screenshot indicate? Oct 07 02:45:50 CPH_DK ok, but there is precedent for it being taken down, just warning you Oct 07 02:45:53 Eowyn27 dno't bother. Oct 07 02:45:54 JacobTabak one from a big companyy even Oct 07 02:45:56 what about tetrinet Oct 07 02:46:13 just saying- if you dont want to get screwed, come up with somethign else Oct 07 02:46:16 their lawyers are on it Oct 07 02:46:20 JacobTabak iF I really CHANGE IT UP? not even use any of the "pieces" from the old game? Oct 07 02:46:30 what legal claim do they have on tetris anyway Oct 07 02:46:31 if you use 'tris' i think you're screwed Oct 07 02:46:42 zinx precedence and indie developers can't afford lawyers Oct 07 02:46:45 Ok. "Block Wars" Oct 07 02:46:52 ohhh hm Oct 07 02:46:58 precedence on what? the trademark, or the gameplay? Oct 07 02:46:58 ok I will take a screenshot Oct 07 02:47:01 I think I know why Oct 07 02:47:03 I really did not intend to publish it Oct 07 02:47:10 zinx precedence on they've done tons of DMCAs and google takes the apps down Oct 07 02:47:21 ie, if they've done it before they can do it again without going thru the same trouble Oct 07 02:47:31 could be cool tho Oct 07 02:47:40 im not saying they have any legal right im just warning you Oct 07 02:47:44 read all tehse articles Oct 07 02:47:52 but i mean, what legal reasoning are they using? copyright clearly isn't the issue, since they're reimplementations Oct 07 02:47:54 google 'tetris clone google play' Oct 07 02:48:01 Jacob, are you saying if I take a screenshot, some of the images will not show? Oct 07 02:48:06 I will call it something obscure and use completely different gaming pieces and add extra rules like exploding pieces. Oct 07 02:48:15 because I took a screenshot on the phone now and it's identical to the app Oct 07 02:48:19 Eowyn27 i want you to show me a screenshot so i can tell you what you're doing wrong Oct 07 02:48:21 i want to see it Oct 07 02:48:24 CPH_DK: ever played tetrinet? Oct 07 02:48:28 ok Oct 07 02:48:32 zinx no? Any good? Oct 07 02:48:38 CPH_DK: it's great fun Oct 07 02:48:41 anyone good good ideas for new rules for tetris? Oct 07 02:48:41 I will have to change an ignore though Oct 07 02:48:46 *change an image Oct 07 02:48:50 zinx Got any ideas? Oct 07 02:48:51 CPH_DK: and has special blocks of various types Oct 07 02:49:07 Eowyn27 i promise you nobody cares Oct 07 02:49:08 zinx I thought about adding exploding pieces. Oct 07 02:49:14 CPH_DK you should study the claims the tetris guys are making, and probably not ask this channel for legal advice ;) Oct 07 02:49:24 g00s Oct 07 02:49:32 g00s :) Oct 07 02:49:50 Than can't cpopyright "falling blocks", can they :D? Oct 07 02:49:56 they Oct 07 02:50:16 zinx What special blocks? Oct 07 02:50:45 can anyone give me some good short intro to touch event handling? I have never programmed touch screens before Oct 07 02:51:00 CPH_DK it really doesn't matter what they can copyright, some big co goes to google for dmca / copyright, and peon dev loses Oct 07 02:51:03 look at source code for gesture detector Oct 07 02:51:34 JacobTabak I am looking under Surfaceview in the API doc. Oct 07 02:51:50 CPH_DK: it's multiplayer competitive, there are blocks you get and can use later that do things like randomize other players' lines, clear lines, remove blocks surrounding a certain block, swap fields, etc Oct 07 02:52:03 CPH_DK: it would be easier for you to just f'n google it :P Oct 07 02:52:24 Very easy Oct 07 02:52:34 just override OnToucjEvent Oct 07 02:52:41 zinx I did :D Oct 07 02:52:55 wow, that is simple, neat Oct 07 02:53:24 cph and you should look at gesture detector Oct 07 02:53:26 zinx I will come up with some cool rules too and mail you a copy Oct 07 02:53:34 JacobTabak Do I need that? Oct 07 02:53:37 no Oct 07 02:53:39 'its convenience Oct 07 02:53:59 JacobTabak I would just detect touch and lift and then set booleans Oct 07 02:54:29 http://imgur.com/VO4s7nx Oct 07 02:54:31 ok screenshot Oct 07 02:54:37 what's wrong? Oct 07 02:54:51 you should have your viewpager starting below the arrows Oct 07 02:55:00 rather than being fullscreen Oct 07 02:55:14 JacobTabak but my game screen if dullscreen? Oct 07 02:55:16 i think we should charge $1 /question over 200 questions per day Oct 07 02:55:24 CPH_DK im talking to eowyn Oct 07 02:55:38 Eowyn27 does the slider move you between viewpager screens? Oct 07 02:55:44 yeowza! http://www.bbc.com/news/business-29516806 Oct 07 02:55:48 g00s I have done C++ for 17 years now, so I think I am good...just trying to have a convo Oct 07 02:55:51 g00s: do you think that's enough? should we ask more? do you think it'll help? (hehehe) Oct 07 02:55:52 no it's suppose to give a score range Oct 07 02:55:57 but the text doesn't show Oct 07 02:55:58 :S Oct 07 02:55:59 does it change from page to page? Oct 07 02:56:01 That's a another bug Oct 07 02:56:10 It remains the same Oct 07 02:56:11 CPH_DK i'm thinking Eowyn27 has asked over 200 questions today Oct 07 02:56:12 for each page Oct 07 02:56:24 Only the arrows allow navigate from page to page Oct 07 02:56:26 JacobTabak I did something nifty with my Rotate method, wanna see? Oct 07 02:56:28 and swiping left or right Oct 07 02:56:36 g00s Is he like a beginner? Oct 07 02:56:36 Eowyn27... you have all this in a framelayout Oct 07 02:56:44 right? Oct 07 02:56:48 no a relativelayout Oct 07 02:56:50 ok Oct 07 02:56:55 I say the less xml in the project the better :D Oct 07 02:56:58 the Z-order is dependent on the position in the layout file Oct 07 02:57:08 put the buttons and everything you want on top AFTER the viewpager in the layout Oct 07 02:57:21 CPH_DK its ok to be a beginner. as long as JacobTabak keeps answering its all ok Oct 07 02:57:33 g00s i honestly looked for the ignore button Oct 07 02:57:37 for Eowyn27 earlier Oct 07 02:57:39 but i couldn't find it Oct 07 02:57:42 and didn't have the heart to type /ignore Oct 07 02:57:46 g00s I am sort of a beginner in Java, but not really, tho I had to learn the Adnroid api from scratch Oct 07 02:58:19 g00s I did C/C++ with insleine 20868 assembly for a long time Oct 07 02:58:21 sorry Oct 07 02:58:22 thats ok; this channel is mostly for beginners. but due dilegence in study is nice Oct 07 02:58:24 inline Oct 07 02:58:36 80286 you mean Oct 07 02:58:39 yes Oct 07 02:58:41 typpo Oct 07 02:58:43 typo Oct 07 02:58:43 i did Z80 ! Oct 07 02:58:50 cool. Oct 07 02:58:51 y'all are old Oct 07 02:58:53 I looked at that Oct 07 02:59:02 because my ti calcs use a Z80 Oct 07 02:59:08 z80 is still around :) Oct 07 02:59:11 I am not old. Oct 07 02:59:20 g00s Yes, they use it in embedded stuff Oct 07 02:59:37 well for a dev, over 25 is old Oct 07 02:59:40 MainActivity.java: http://paste.fedoraproject.org/139762/41265028 Oct 07 02:59:41 activity_main.xml: http://paste.fedoraproject.org/139763/41265033 Oct 07 02:59:43 TestResponse.java: http://paste.fedoraproject.org/139764/50400141 Oct 07 02:59:44 fragment_main.xml: http://paste.fedoraproject.org/139765/26504651 Oct 07 02:59:46 When I comment out rootView.setLayoutParams(layoutParams); I get the radio button group showing up, but not otherwise. I am trying to centre the group of responses. I got this working in a different example, so I'm sure I'm overlooking the 'obvious'! Oct 07 02:59:47 QUESTION: What do I do to make this work? Oct 07 02:59:56 Java is sort of cheating isn't it? With managed code, memory management and so on? **** ENDING LOGGING AT Tue Oct 07 03:00:00 2014