**** BEGIN LOGGING AT Mon Mar 02 02:59:58 2015 Mar 02 03:00:43 Ok how come when I am implementing a interface, and AS says I need to Override a method, and I do it Mar 02 03:00:51 It still says I need to override the method Mar 02 03:01:34 wrong signature ? Mar 02 03:01:40 Did you save? AS sometimes gets confused on me when I haven't saved. Mar 02 03:01:55 (Even though I'm told that I shouldn't have to manually save.) Mar 02 03:02:01 I did not, but the signature is correct, I let AS create the method for me Mar 02 03:02:11 well, on the bright side (??) I put the code in the correct place and it still doesn't work. Mar 02 03:03:27 Do y'all use JUnitParams? Mar 02 03:04:19 Whats that Mar 02 03:05:00 A simple way to parameterize unit tests. Mar 02 03:05:38 TacticalJoke: You call that simple? Look up TestNG's @DataProvider :) Mar 02 03:13:41 Hey TacticalJoke you rbusy? Mar 02 03:13:44 busy* Mar 02 03:14:56 of course TacticalJoke is busy, he's working on releasing the world'd best reddit client withing the next few months Mar 02 03:15:10 That is true Mar 02 03:15:11 :D Mar 02 03:15:32 is there a way to know when a grid layout is done being created? Mar 02 03:16:47 lol Mar 02 03:16:52 Such a humble goal, right? :D Mar 02 03:16:56 I'm kinda here, drose379. Mar 02 03:17:24 haha, well I think I just implemented the tabs I was telling you about Mar 02 03:17:44 I was thinking about making like a 5 second screen demo to see what you/others think of the look/feel Mar 02 03:17:59 Yeah, sure. Mar 02 03:18:18 Cool, itll be up shortly. Thanks :) Mar 02 03:23:38 https://www.youtube.com/watch?v=GZx-LJH5J_I Mar 02 03:23:48 Windows 95 on Android Wear Mar 02 03:23:54 \o/ Mar 02 03:29:04 TacticalJoke I guess vid.me changeed around their nav bar and it covers the top of the video so you really cant see it unless you go full screen Mar 02 03:29:15 But here it is, make sure to watch in full screen https://vid.me/HpdD Mar 02 03:31:43 Nice. What did you use to get those visible tabs? Mar 02 03:32:12 SlidingTabStrip.java Mar 02 03:32:20 Licenced by Google Mar 02 03:33:03 The black looks a little unusual. Hmm. Should it be white or colorPrimary? Mar 02 03:33:17 I tried white, and I thought it was _too much_ white Mar 02 03:33:18 I mean colorAccent. Mar 02 03:33:30 I could try another shade of blue, yeah Mar 02 03:34:16 Yeah, that would prob look better Mar 02 03:39:04 Oh TacticalJoke another thing, the "My Subjects" Tab is for all of the subjects that the user has created them self, no matter public or private Mar 02 03:46:08 Im out for now, talk to you guys later Mar 02 04:26:01 anyone got any opinions on the best library to use to add sharing to things like facebook etc? Mar 02 04:26:53 Gaz` i'd imagine you would have to take each integration case by case if you weren't using the basic intent Action.share stuff Mar 02 04:28:08 yeh, i used to do it all manually, but theres a ton of libs out there now, im using "SocialAuth" right now but the menu it pops up is ugly so I started thinking maybe people a preference in here :) Mar 02 04:28:36 people have a preference* Mar 02 04:36:57 is it legal to use a real persons face/pic in an android app/game without consent? Mar 02 04:37:05 assuming that person is a celebrity/politician? Mar 02 04:37:24 Not in most countries. Mar 02 04:37:40 supay: In america that's legal Mar 02 04:37:53 yiati: oh, wow. okay Mar 02 04:39:40 I have a VectorDrawable (API 21+) and a PNG. I want to get the vector drawable if on Lollipop and the PNG if on pre-L. Can I do this with a reference somehow or do I need to actually type out if (Build.VERSION.SDK_INT >= 21) // use vector else // use PNG? Mar 02 04:51:12 yiati are you sure? i thought you could not use someone's likeness without consent Mar 02 04:53:25 g00s: They said celebrity/politician. In the States, once you are a well known figure you cannot expect privacy in most reasonable cases Mar 02 04:53:40 such as using images in games Mar 02 04:58:27 supay, g00s: Hmm I may have been thinking about news/tv/magazine and being reported on. As far as commercial rights go there are limitations Mar 02 04:58:42 ""an individual’s identity could be considered their personal “mark”, the misappropriation of which is sufficient to constitute infringement" Mar 02 04:58:47 http://en.wikipedia.org/wiki/Personality_rights#United_States Mar 02 04:58:55 aw :( Mar 02 05:00:39 wow, my app crashed - and then it made play store crash right away too :) Mar 02 05:01:36 the entire play store? wow, quite a feat Mar 02 05:02:11 Play store app :D Mar 02 05:03:31 I get pretty bad pixellation when exporting from InkScape. Mar 02 05:03:43 pixelation* Inkscape* Mar 02 05:05:13 Even basic shapes. Hmm. Mar 02 05:06:35 TacticalJoke: b..but doesn't inkscape make vector graphics? Mar 02 05:06:38 TacticalJoke #inkscape is pretty helpful Mar 02 05:06:48 su-v expecially Mar 02 05:07:38 supay: Yeah, but I'm exporting as a bitmap. Mar 02 05:07:41 (A PNG.) Mar 02 05:07:53 ah Mar 02 05:29:00 why PagerAdapter is super general...! I need it for most of the cases. fragments are heavy at times. Mar 02 06:01:59 do you guys ever notice - when your app crashes, the last app used appears breafly and then dissapears ? Mar 02 06:02:43 and then it dumps you to the home screen? yeah Mar 02 06:03:05 yeah Mar 02 06:03:35 that annoys the hell out of me. I'm constantly clearing the app switcher out Mar 02 06:09:37 hey Groxx Mar 02 06:10:35 hiyo Mar 02 06:10:51 mostly just hopping online temporarily :) Mar 02 06:12:23 I hate when I just can't write anything. My brain is too dead. Mar 02 06:12:35 Well, I can, but I hate everything I write. Mar 02 06:12:40 heh. i hate when i can't decide what to work on next Mar 02 06:14:29 its OK to use native fragments with support ActionBarActivity, i hope ? Mar 02 06:14:45 or do they expect you to use support fragments Mar 02 06:15:46 ABA subclasses FragmentActivity. I think they expect support Fragments, but I've never tried anything else. Mar 02 06:16:03 i think the native vs support fragments, being parallel hierarchies, is one of the bigger eff-ups of the android team. they should have just left the stuff out of the platform. oh well, we've said this a bunch of times ... but how can these guys have been so short sighted ? Mar 02 06:16:30 seems like a major lack of judgement Mar 02 06:16:33 It's weird -- they did it again with Toolbar. support.Toolbar and Toolbar. Why do they keep making the same mistake? Mar 02 06:16:49 i think they have too many inexperienced developers Mar 02 06:18:48 also, perhaps a culture where developers don't pay the consequences for their mistakes. if i screwed up documentation of tool I wrote, I got phone calls at my desk Mar 02 06:20:21 so i made sure my api docs were good ;) Mar 02 06:20:33 Yeah, it'd be cool if someone came along and kinda took over. Really opinionated -- "We're doing things this way". Mar 02 06:20:45 Even if they make mistakes, at least those mistakes are consistent. :D Mar 02 06:21:20 i'd like to see josh bloch go in there and really sweep up Mar 02 06:21:56 but, not realistic Mar 02 06:22:58 you have people like dianne H who are architects of the framework - and after reading her google groups / SO stuff for years - comes across as "meh, yeah its like that, and we're not fixing it. and we're not documenting it either. deal with it" Mar 02 06:23:29 people in her position probably set the tone for how the whole team operates Mar 02 06:23:33 Ya. :/ Mar 02 06:23:44 and she's not the only one, i won't name names Mar 02 06:24:22 g00s: Making changes in massively popular software is very, very complicated Mar 02 06:24:54 And sometimes communication with the open source community has to be a bit too direct because the internal reasons can't easily be explained Mar 02 06:25:16 i see Mar 02 06:25:21 (actually replace "sometimes" with "often") Mar 02 06:25:46 I'm not trying to give my former colleagues a pass but I've been on both sides of that fence Mar 02 06:31:44 and it's a lot of work. yeah. but it would be nice to get some of the acknowledged-incorrect-documentation to actually get fixed (I forget some of them, but one's been sitting incorrect and misleading and the resolution is "delete the comment" and it just never happens) Mar 02 06:32:08 there's a level of "that's somewhat understandable", but it's still bad. Mar 02 06:36:36 I hate italics in code. I like Darcula but I need to find a colour for static members so that I can stop using italics. Mar 02 06:40:04 hey thepoosh Mar 02 06:40:28 g00s: sup dude? Mar 02 06:41:46 oh not much. pondering on whether i should make a special FragmentPagerAdapter because i have a mix of native (PreferenceFragment) and support fragments Mar 02 06:42:28 kinda wondering if thats going to lead to hell on some devices even if it works (using support fragmentmanager & transactions vs native fragmentManager & transactions) Mar 02 06:43:27 testing out mvstore for r*tree indexing against spatial data, about it Mar 02 06:44:46 MapFragment also uses native fragments, so i either need to make this stupid adapter or just convert the support frags over to native and treat them all as native Mar 02 06:45:57 thepoosh a new week, a new sprint ?! Mar 02 06:46:34 nah Mar 02 06:46:41 there were 2 sprints Mar 02 06:47:04 that ended up being very good for growth and engagement Mar 02 06:47:39 thepoosh every time i want to tell somebody about your company;s app, i can't remember the name. i know i'm an idiot, but maybe thats a problem Mar 02 06:47:49 glide Mar 02 06:48:41 yeah -- i know, but it seems to non-meaningful and non-memorable Mar 02 06:48:59 g00s: https://drive.google.com/file/d/0B-GUumHFOft_bEJvNXQ3S0dIR00/view?usp=sharing Mar 02 06:49:13 idk, not in charge of names Mar 02 06:49:29 thepoosh excellent, what happened there with that dip ? Mar 02 06:49:36 end of feb Mar 02 06:49:42 the first weekly sprint release Mar 02 06:49:46 it sucked Mar 02 06:49:52 bad product decisions Mar 02 06:50:00 which were made better a week later Mar 02 06:50:10 looks like they recovered and everything is going well now Mar 02 06:50:15 yes Mar 02 06:50:24 there was a very big spike Mar 02 06:50:32 with usage metrics going up as well Mar 02 06:50:38 thepoosh what crash & analytics do you guys use ? Mar 02 06:50:44 internal Mar 02 06:50:47 crash Mar 02 06:51:00 and Kinesis for analytics Mar 02 06:51:05 AWS Kinesis Mar 02 06:51:43 interesting, never heard of the aws product Mar 02 06:51:50 it's new Mar 02 06:52:01 basically, it's a storage unit Mar 02 06:52:12 that passes everything to redshift Mar 02 06:54:24 we have some appboy, flurry and appsflyer as well Mar 02 06:54:32 for different reasons Mar 02 06:54:56 iOS team uses critersisem Mar 02 06:55:32 oh i didn't know there was an iOS team. how would you comapare iOS to android installs ? Mar 02 06:55:49 i think it's about 75/25 for android Mar 02 06:56:06 75% ios, 25% android ? Mar 02 06:56:54 other way around Mar 02 06:57:00 do you guys iterate with android quicker to test ideas .. the whole apple taking a bit to approve updates thing ? Mar 02 06:57:18 nope, just more people have android phones, so our market is larger Mar 02 06:57:26 also our user base is not rich Mar 02 06:58:09 also android users (not me) tend to do piracy stuff Mar 02 06:58:17 and more adblock stuff Mar 02 06:58:23 wat? Mar 02 06:58:29 how is that connected to anything?! Mar 02 06:58:43 i thought you were talking about making $$$ Mar 02 06:58:48 nah Mar 02 06:58:51 number of users Mar 02 06:59:30 what about the, whats his name... Mar 02 06:59:35 ah! what about the windows phone? Mar 02 06:59:54 I'm starting an Activity from a notification. When that Activity is about to finish, I call finish(). However, the Activity still remains in the history, that is the user can still press square button and the just-closed Activity is selectable. Mar 02 07:00:02 Ashiren: we just outsourced that to someone Mar 02 07:00:07 but nobody uses that Mar 02 07:00:21 The problem is that the state of the Activity is in a bad shape; it's operating on invalid data now. Mar 02 07:00:28 g00s: heh. I'm halfway tempted to write a little ragel plugin now :p Mar 02 07:00:41 (for gradle) Mar 02 07:00:48 So how do I kill it for good? I assume there's some flag that prevents it from showing up in the history. Mar 02 07:00:59 JesusFreke yeah i was thinking about that too ... not sure what more there is about it than exec task, but yeah Mar 02 07:01:12 Zta1: seems like you are not starting the activity correctly Mar 02 07:01:18 JesusFreke let me know what you come up with :D Mar 02 07:01:55 thepoosh: I'm starting it with a PendingIntent from a Notification. Mar 02 07:02:13 g00s: well, ideally you would generate the java into build/generated-src dynamically Mar 02 07:02:22 thing is - with gradle - once my build stuff works ans i step away from it for a while, i forget groovy and gradle and have to spend a long time just knowing whatto do again Mar 02 07:02:34 heh, yeah. pretty much Mar 02 07:02:50 Zta: try to add to intent Mar 02 07:02:51 intent.setAction(Intent.ACTION_MAIN); intent.addCategory(Intent.CATEGORY_LAUNCHER); Mar 02 07:03:01 https://github.com/JesusFreke/smali/commits/master - that way my afternoon :p Mar 02 07:03:07 that was* Mar 02 07:03:08 g00s: That's my assessment as well. A lot of the customizations I make to my build.gradle is stacoverflow oriented programming Mar 02 07:03:33 SO oriented programming XD Mar 02 07:03:44 haha, yeah Mar 02 07:04:39 Ashiren: Hm, that seems weird. I'll have a look at those flags. Thanks =) Mar 02 07:05:49 I simple need to remove the intent form the history stack. Mar 02 07:05:51 you could try to add SINGLE_ON_TOP as well Mar 02 07:05:58 *activity Mar 02 07:06:11 but finish() should close activity and clear from history Mar 02 07:06:45 Ashiren: not necessarily clear from memory Mar 02 07:06:49 Maybe FLAG_ACTIVITY_NO_HISTORY.. Mar 02 07:07:10 What is an awesome editor theme for Android Studio? Mar 02 07:07:15 thepoosh: from history, so it should be accesible? Mar 02 07:07:16 I've tried so many and can't find the perfect one. Mar 02 07:07:38 hmmmm Mar 02 07:07:47 TacticalJoke: i'm sure there is a list somewhere Mar 02 07:07:47 TacticalJoke: I use darkula along with a dark solarized editor theme Mar 02 07:08:27 TacticalJoke: If only it would integrate perfectly with Gnome like Eclipse does. My eyes bleed whenever I look at Android Studio. Mar 02 07:08:34 https://github.com/jkaving/intellij-colors-solarized that one, iirc Mar 02 07:08:36 Doh! Mar 02 07:08:55 Ah, yeah, I think I tried that Solarized one. Not bad. Mar 02 07:09:32 i wish mac had some theme engine for all apps; i go from darcula to chrome and its like taking your glacier glasses off in the snow Mar 02 07:09:55 I use a light theme for the IDE with Darcula for the editor for that reason. Mar 02 07:17:06 Dawg, my dawgs, what up this Android? What's Mozilla's obsession with pushing HTML5? I don't....like HTML, CSS, or usually JS either. Mar 02 07:17:51 It be what it do. Mar 02 07:18:06 mozilla like JS. maybe too much :( Mar 02 07:18:17 But srsly when is Mozilla pushing HTML5 now? Mar 02 07:18:36 God, JavaScript is awful. Mar 02 07:18:44 It almost put me off programming for life one time. Mar 02 07:20:29 I hadn't touched any code in a long time, and for some reason I was tasked with maintaining a website. I then had to learn JavaScript and got really sad. Mar 02 07:20:47 Like "No way was programming ever this bad before... right?". Mar 02 07:22:28 I don't get Firefox OS Mar 02 07:23:28 The new crop of rendering engines might reduce DOM latency...but...I'd be happy with a new kind of document Mar 02 07:23:35 and a program that reads them Mar 02 07:23:37 and is portable Mar 02 07:23:46 and is a reference implementation that every other vendor can follow Mar 02 07:24:07 kind of like how html started...:-/ Mar 02 07:27:42 what do you guys think of android studio Mar 02 07:27:46 Zta: eclipse doesnt integrate with gnome nicely I think Mar 02 07:28:05 well, still better than swing Mar 02 07:30:11 where should i implement onLowMemory()? is there a difference whether i implement it on Activity A or Activity B or my Application-subclass? Mar 02 07:31:45 gordon_: I think Eclipse looks like a normal gnome app in Ubuntu; same font, same colours, everything looks normal. Mar 02 07:31:55 Valduare: Why do you ask? Mar 02 07:32:07 gordon_ even on mac its got font rendering issues. oracle isn't going to enable subpixel font AA for swing. it works for JavaFX. i wonder about that - seems a liability to have so much invested in swing when oracle has essentially abandoned it Mar 02 07:32:45 im going through that project sunshine thing Mar 02 07:32:48 well... there are qt bindings ;) Mar 02 07:32:54 going to attempt to make my first app heh Mar 02 07:33:42 its having me install android studio atm Mar 02 07:33:44 Android Studio is better now. Mar 02 07:33:59 The Eclipse Android plugin isn't being maintained anymore. Mar 02 07:34:15 intellij is good IDE Mar 02 07:34:17 Valduare, I started using AS randomly. Advantage over notepad is probably 1000% productivity at least. Mar 02 07:34:18 but well... swing Mar 02 07:34:27 knapper_tech: lol Mar 02 07:35:18 Nano fares only slighty better, but remember that time I was learning C++ and using nano? Man that was awesome. Mar 02 07:35:44 Nano didn't even have syntax highlighting at that time, nor did I know the shortcuts. Mar 02 07:36:16 lol Mar 02 07:36:37 dark history ? Mar 02 07:37:28 project sunsihne isnt materialzed :P Mar 02 07:37:48 dark ages Mar 02 07:37:52 mid 2000's Mar 02 07:37:57 oh Mar 02 07:38:02 quake 3 times Mar 02 07:38:04 Linux still had acne Mar 02 07:38:59 Has Linux's acne cleared? Mar 02 07:39:47 TacticalJoke, yes, but it's a long time before Linux is able to carry on a conversation with women without rage-quitting in fits of nerd-meglomania Mar 02 08:17:19 If an app is uninstalled its associated background services are killed, right, even if they're sticky? Mar 02 08:18:07 pretty sure yes Mar 02 08:18:27 ty Mar 02 08:21:27 I am trying to make a draggable overlay.. Listener: http://pastebin.com/AktnP1MX WorkingCode: http://pastebin.com/PscHJ00E nonWorkingCode:http://pastebin.com/3Y5CYa8h anybody any ideas what i am doing wrong? Mar 02 08:22:52 what is the #1 android app creator in terms of building the UI? Mar 02 08:24:23 like premade stuff you can just toss together Mar 02 08:24:42 i am not sure there is something like that Mar 02 08:24:49 well not what i am aware of Mar 02 08:26:14 blarp just a quick google shows a few RAD tools for android Mar 02 08:26:21 i dont know which is best though cause i dont use RAD tools Mar 02 08:27:15 bet Radther does Mar 02 08:27:31 hi g00s Mar 02 08:27:33 What's this? Mar 02 08:27:42 hey lemonxah :) Mar 02 08:27:58 Radther oh just joking , your nick starts with rad Mar 02 08:28:06 talking about RAD tools Mar 02 08:28:10 Oh ok... Mar 02 08:28:49 What are RAD tools? Mar 02 08:28:53 i dont really like RAD tools but i see the appeal for someone that doesn't know how to develop Mar 02 08:28:59 rapid aplication development tools Mar 02 08:29:14 Ohhh, any examples? Mar 02 08:29:17 drag and drop components onto a screen and .. viola Mar 02 08:29:17 i guess App Inventor would be rad ? Mar 02 08:29:26 yeah RAD Studio Mar 02 08:29:45 http://www.embarcadero.com/products/rad-studio/create-android-apps Mar 02 08:29:51 not saying use it :) Mar 02 08:29:58 just saying this is one Mar 02 08:30:10 ya i have a motion graphics pal that wants to make an android app and she has no idea what to do Mar 02 08:30:16 Yeah, I think I'll stick to Android Studio. Mar 02 08:30:18 so want to refer a RAD tool Mar 02 08:30:27 so i dont have to hold her hand 24/7 Mar 02 08:30:29 nawmean Mar 02 08:32:13 thanks for help pals Mar 02 08:32:50 sry blarp i dont know any of those tools to use Mar 02 08:34:30 hm so i'm wondering if I can use the Preference framework to not persist stuff in SharedPreferences, but change state of Bluetooth device. so persist=false for sure ; but the updating of the state on the device is async yet onPreferenceChangeListener bust be synchronous Mar 02 08:35:58 Greetings humans. Mar 02 08:36:03 :) Mar 02 08:36:44 who says i am human? Mar 02 08:36:58 he's a lemon :) Mar 02 08:39:09 I have an application under dev which is killed ( stops ) and i'm trying to see the logcat in ecliplse but it zoomz past to fast and then clears by itself. Mar 02 08:39:32 set filter :| Mar 02 08:39:39 Unknown0BC, set a filter Mar 02 08:39:51 but i dont know how to do that in eclipse since i haven't used that in years Mar 02 08:40:15 lemon is nice. Mar 02 08:41:02 its cause i am not human Mar 02 08:42:22 Humans likes to talk nonsense. Mar 02 08:42:36 ;) Mar 02 08:44:52 Unknown0BC: adb logcat > crash.log Mar 02 08:45:31 Jesus Mar 02 08:45:49 let me try that Mar 02 08:49:28 ah JesusFreke saved me Mar 02 08:50:12 How can I put a filter to that ? Mar 02 08:50:21 adb logcat -s MyApp:* Mar 02 08:50:21 for error ouput only. Mar 02 08:50:33 adb logcat -s *:E Mar 02 08:52:47 cool Mar 02 09:51:03 gosh... why doesnt acra expose the caught exception to the custom report sender? Mar 02 10:02:39 thana: why would it? Mar 02 10:02:57 what use is there to a regular user with the exception Mar 02 10:03:33 thepoosh: e.g. i could easily exteact the exception message. or modify the report based on the exception Mar 02 10:03:52 that has no use to a normal user Mar 02 10:04:16 O.o Mar 02 10:04:22 what is a "normal user"? Mar 02 10:04:39 a non-programmer dumbass Mar 02 10:05:41 thana, isn't STACK_TRACE part of CrashReportData field? Mar 02 10:05:54 thepoosh, please don't insult other people. Mar 02 10:05:56 thepoosh: how does a "normal user" affect my reportsender implementation?! Mar 02 10:06:08 Mavrik: I think he was insulting users :) Mar 02 10:06:24 hmmm Mar 02 10:06:25 yes Mar 02 10:06:34 I might have misunderstood thana Mar 02 10:07:07 reading this over i definitely misunderstood Mar 02 10:07:46 Mavrik: yes but then i have to parse it. extract all lines until something that looks like the first line of the stack trace and, if i want to modify the behavior based on the exception i'd have to parse the exception message itself and hipe i can find the exception class in it ;) Mar 02 10:07:59 ugh. Mar 02 10:08:13 I just use crashlytics :/ Mar 02 10:08:21 * Mavrik sends everything into clouds. Mar 02 10:08:24 https://domain.com/index.php?arga=12.3&argb=16.9&argc=3 <-- can you tell me the most secure way to match argb? Mar 02 10:09:19 Montyr, Uri.parse(url).getQueryParameter("argb") Mar 02 10:09:41 ui nice Mar 02 10:09:44 thank you Mar 02 10:10:52 I'm liking the Parse Push Notification service, though their website documentation could be organized better Mar 02 10:11:07 Especially the fact that it's essentially free Mar 02 10:12:25 thana: you can get it from the report data: https://github.com/ACRA/acra/blob/master/src/main/java/org/acra/ReportField.java Mar 02 10:13:06 thepoosh: jepp. using the STACK_TRACE but thats far from optimal Mar 02 10:13:19 why? it's the first line of it Mar 02 10:13:38 you can also write your own exceptionHandler Mar 02 10:14:14 thepoosh: its possibly more then the first line and (as outlined befor) finding out which exception it is (in order to modify the report based on the exception) is complicated Mar 02 10:15:56 thana: you can create a custom config: ACRAConfiguration Mar 02 10:16:00 https://github.com/ACRA/acra/blob/master/src/main/java/org/acra/ACRAConfiguration.java Mar 02 10:17:07 Hello! how to specify concrete BUILD VARIANT in build gradle dependencies? I know that it is possible debugCompile or flavorCompile, but how to specify flavorDebugCompile? Mar 02 10:19:15 xgearx, gradle.projectsEvaluated { mytask.dependsOn tasks.flavorDebugCompile } Mar 02 10:19:26 thepoosh: thanks, i'll have a look Mar 02 10:19:28 xgearx, or inside your task dependsOn "flavorDebugCompile" Mar 02 10:19:38 see ./gradlew tasks --all for list of all tasks Mar 02 10:20:35 looks like hack Mar 02 10:20:53 O.o Mar 02 10:20:59 how should it look like in your opninon? Mar 02 10:21:56 you can also iterate over variants and set dependencies if you have to Mar 02 10:23:21 i have dependencies closure in which i specify all dependencies. i can specify concrete build type or concrete flavor but not concrete build variant (flavor + build type) Mar 02 10:24:27 flavor + build types are called variants Mar 02 10:24:48 and your description is too vague for us to be able to help you Mar 02 10:30:41 Mavrik: my description is "how to specify dependency for concrete build variant in dependency closure (block) of build.gradle file of android application" Mar 02 10:31:05 and you suggest to write hooks on tasks Mar 02 10:31:22 or use a string as taskname Mar 02 10:31:34 since tasks aren't generated at compiletime to be referenced statically. Mar 02 11:23:16 Android: The platform of gypsies, tramps and thieves Mar 02 11:42:40 is it possible to have a recycle view nested in another recylce view? Mar 02 11:44:02 sure, but why Mar 02 11:44:17 ((Activity)context).startActivityForResult Mar 02 11:44:20 scrollviews inside scrollviews don't perform well Mar 02 11:44:21 I assume this is bad practice? Mar 02 11:45:56 maybe i need to ask a different question Mar 02 11:46:10 if i have a list of questions and within i want a list of answers Mar 02 11:46:43 what types of views if your main recyclerview displaying? Mar 02 11:47:16 i have a card view and inside i have a relative layout Mar 02 11:47:45 I'd recommend inflating the child views inside your cardview manually Mar 02 11:47:55 otherwise you'll run into layout issues Mar 02 11:48:26 also for the answers ? Mar 02 11:48:35 yes Mar 02 11:49:12 in your onBind just clear the layout and inflate the child views manually. otherwise it's a clusterfuck Mar 02 11:49:45 ok, so it will be one long list of questions and answers Mar 02 11:49:57 just put the answers in a vertical linearlayout Mar 02 11:51:28 cardview is just a framelayout, so you may not need the enclosing relativelayout Mar 02 11:51:43 the problem is i want each answer to be a cardview as well Mar 02 11:52:48 so if i understand the layout will be cardview(question) relativelayout and after that a linearlayout with multiple cardviews? Mar 02 11:53:19 each cardview represends a questions that lists answers? Mar 02 11:53:42 yea it's a cardview question following a list of cardview answers Mar 02 11:55:45 I don't know, you may need to simplify that design Mar 02 11:56:07 i'll show what i mean in a picture Mar 02 11:58:33 http://tinypic.com/r/9aoj2g/8 Mar 02 11:59:18 so clicking a question cardviiew reveals one or more answer cardviews? Mar 02 11:59:49 no, everything is displayed Mar 02 12:00:16 then they should probably all be provided by the same adapter, with difference view types Mar 02 12:00:35 nested cardviews won't work Mar 02 12:02:22 adding a linear layout of cardviews to the quesiton view will work? Mar 02 12:02:30 question Mar 02 12:03:16 hi there! i am installed android-sdk (2.0.1-1kali0) Mar 02 12:03:32 but adb still dont work Mar 02 12:03:50 since each CardView is singular, I'd recommend just making it a flat list of cardviews managed by a single recyclerview Mar 02 12:04:33 http://pastebin.com/raw.php?i=xWL7xUeQ Mar 02 12:04:48 nested layouts should be avoided. just make it a list of cards managed by a recycler Mar 02 12:05:01 ok i'll try that, thanks for your help Mar 02 12:09:44 good luck Mar 02 12:10:59 general principle: if it's easy for the developer to understand, it's easy for the user to understand Mar 02 12:11:15 users make a mental model of your application, the simpler the model, the easier it is to use Mar 02 12:13:05 thanks for the tip Mar 02 12:22:03 well I'm full of stupid this week Mar 02 12:22:50 Stupid is as stupid does Mar 02 12:23:06 say I have a databaseName.db file that I've backed up from a previous app to use again elsewhere, I know how to open the file but I don't know how I can reference it from the open() function if that file is inside the root of my project Mar 02 12:23:22 I cannot find the right query for google to answer me this question Mar 02 12:23:58 isn't it "file://databaseName.db" Mar 02 12:24:26 if I just place it in res I think I can get it from the assetmanager? Mar 02 12:25:07 ah no I just place it in assets Mar 02 12:41:04 hai! If I have a Uri to a contact, can I get the Contact ID from it directly, for example through fromParts()? Mar 02 12:45:52 hi everyone. in Android Studio, when i run & debug an app on a USB-connected device, should i be able to see the app icon in the launcher? Mar 02 12:45:54 the solution is to push the database file onto the device and place it somewhere on sdcard, grab it from code, easy Mar 02 12:47:28 done Mar 02 12:50:48 now I just gotta copy the content from that db into my own db Mar 02 12:51:18 I'm trying to save an image from my app to a folder in /sdcard/thepoosh/Images/img.jpg but the files are always not readable Mar 02 12:51:34 even if i try running file.setReadable(true, true) Mar 02 12:51:42 :) Mar 02 12:51:44 :( Mar 02 12:55:47 hi all, I want to get the call logs from the device programmatically. I wrote an activity that has a function that retrieves this information, but I want to call him from a native java class. The problem is that I need to pass it the context, which I don't have. Any idea how to do something like this? Mar 02 12:56:14 *call it Mar 02 12:57:52 meital: can you not call adb commands from cpp? Mar 02 12:58:02 I am trying to make a draggable overlay.. Listener: http://pastebin.com/AktnP1MX WorkingCode: http://pastebin.com/PscHJ00E nonWorkingCode:http://pastebin.com/3Y5CYa8h anybody any ideas what i am doing wrong? Mar 02 12:58:22 thepoosh: I can call adb commands Mar 02 12:58:31 so why not call adb logcat Mar 02 12:58:32 ? Mar 02 13:00:58 thepoosh: how will it help me? Mar 02 13:01:14 oh, sorry Mar 02 13:01:16 i read logs Mar 02 13:01:19 and that was it Mar 02 13:01:21 :S Mar 02 13:15:18 Is the gradle supplied with Android Studio only meant to be used by Android Studio? File permissions seems to indicate that Mar 02 13:19:15 donniezazen: the plugin is, but the system is for anything Mar 02 13:20:03 yeah looks like gradle binary could be used by anyone. Saves me from maintaining my own considering Google will keep it updated. Mar 02 13:21:11 thepoosh: permission is read-only and not executable which I ofcourse could change very easily. Mar 02 13:22:56 well, try https://gradle.org/ Mar 02 13:32:29 I should not have any problems running my Android dev setup on top of JDK 8 as system default. Should I? Mar 02 13:36:48 I was forced to install jdk 8 in order for the new build tools to work on eclipse Mar 02 13:38:04 I use Fedora. They dropped JDK 7 and built everything with JDK 8 which makes it hard to keep using JDK 7. Mar 02 13:38:24 And it goes EOL anyways in a few months. Mar 02 13:40:00 Where can I find the android L drawables for components, for example the dropdown spinner drawables? Mar 02 13:42:26 Levite, it worked Mar 02 13:56:03 how is taking here Udacity Mobile Development? please reply or I will,,, Mar 02 13:56:26 *who Mar 02 14:02:07 I am trying to make a draggable overlay.. Listener: http://pastebin.com/AktnP1MX WorkingCode: http://pastebin.com/PscHJ00E nonWorkingCode:http://pastebin.com/3Y5CYa8h anybody any ideas what i am doing wrong? Mar 02 14:03:50 I have a requirement where I have two Layout. Layout One and Layout two. The Layout One has a sub layout (footer) inside it, and on a button click, layout one needs to slide out left, the footer towards bottom and the new layout (layout two) needs to slide in, all simultaneously. Mar 02 14:03:50 The important thing is that the footer should just move downwards and not left while the layout one slide towards left. How would I do this. Mar 02 14:27:33 hi there Mar 02 14:57:01 I have a requirement where I have two Layout. Layout One and Layout two. The Layout One has a sub layout (footer) inside it, and on a button click, layout one needs to slide out left, the footer towards bottom and the new layout (layout two) needs to slide in, all simultaneously. Mar 02 14:57:01 The important thing is that the footer should just move downwards and not left while the layout one slide towards left. How would I do this. Mar 02 14:58:16 cetchmoh: @ Mar 02 15:03:32 cant' I copy a database to my created database by querying the old and inserting into the new? Mar 02 15:04:06 the code to do this is written and it runs, I just remove the reading from old and put it back to read from now, nothing was inserted Mar 02 15:05:37 like here http://pastie.org/9993732 Mar 02 15:08:26 https://a.pomf.se/kxhftz.mp4 debunking the blue dress with an android emulator :D Mar 02 16:10:36 One day, if I really really believe, I will create a DialogFragment AND call show() Mar 02 16:30:04 what do you guys think of these dragon tablets Mar 02 16:47:07 fapdragonz rule Mar 02 16:47:40 So, stupid question from a new user: Why does the Windows installer for Android Studio categorically refuse to see my Java install? Even when pointed directly to the directory it's in? Even after setting the requisite Environmental Vars pointing to the Java install, and reinstalling Java several times? Mar 02 16:47:56 I mean, I just wound up using the zip package, but is this a known issue or...? Mar 02 16:48:43 if I'm getting that my install is blocked, does this mean that somehow I managed to get out an APK that is not signed? Mar 02 16:49:09 because I'm pretty sure I signed the APK as I do every day, Unknown Sources is disabled on this device Mar 02 16:49:17 and this is the APK I usually give to Google Mar 02 16:54:44 is gradle is the build tool for development ? Mar 02 16:58:20 shafox: One of many, I would recommend it for a new project for sure. Mar 02 17:09:49 uuhimhere: you like the dragon tablets? Mar 02 17:17:14 I'm having a weird problem with my application. When I try to debug my app, it immediately force closes and I dont get any output in my logcat-field in Android Studio. If I run the application without debugging, everything is fine (except, that I cannot debug :( ) Mar 02 17:17:22 Has anyone an idea why this could be happening? Mar 02 17:20:22 Anyone know how to enable developer options in pre 4.2 devices? Mar 02 17:20:51 mattblang: hitting the version item in the about phone list doesnt do the trick? Mar 02 17:21:02 cetchmoh it looks like that was added in 4.2 Mar 02 17:22:08 mattblang: http://www.droidviews.com/how-to-enable-developer-optionsusb-debugging-mode-on-devices-with-android-4-2-jelly-bean/ Mar 02 17:22:37 mattblang: the article says its enabled by default on pre 4.2 versions Mar 02 17:23:00 cetchmoh: try using Debug.waitForDebugger() Mar 02 17:24:05 mattblang: in 4.1 and before, its just a checkbox to enable in the settings Mar 02 17:24:34 quinnjn: well, the app starts with the message "Waiting for debugger", but a few seconds after it quits "Unfortunately, FooBar has stopped" Mar 02 17:24:45 cetchmoh, ananth123: oh, okay! thanks! Mar 02 17:37:38 well this hasn't been a good day Mar 02 17:37:41 dang Mar 02 17:38:10 ? Mar 02 17:38:36 well I was thinking of how to preserve the data in an app that I find myself using while still developing it Mar 02 17:39:06 so I started to think that maybe the stuff all needs to be synced with Parse or some other storage, then other bigger decisions came in, then trying to copy db's in a script.. Mar 02 17:39:13 and nothing 100% done in the end Mar 02 17:39:14 isnt there a shared preferences thing? Mar 02 17:39:19 cool story or no? Mar 02 17:39:58 Parse is a cool story Mar 02 17:40:09 hehe Mar 02 17:40:21 gonna delay the whole thing now and just work on features Mar 02 17:40:44 fwiw ive heard bad things about parse Mar 02 17:40:59 yea people love to hate shit Mar 02 17:41:07 I have had bad experiences with parse. Mar 02 17:41:20 I was an early adopter though Mar 02 17:41:23 I liked it Mar 02 17:41:42 but it misses some primitive stupid functionality Mar 02 17:41:57 such as Mar 02 17:41:59 like you cannot get an object by its id Mar 02 17:42:01 lol Mar 02 17:42:14 err.. I think you can Mar 02 17:42:21 cause the ID's are generated by parse and you can only get an object by its Parse ID (the one they generate for every record) Mar 02 17:42:32 oh yes Mar 02 17:42:32 so you have to get the ID, to get the ID Mar 02 17:42:40 and to get the ID, you have to get the ID Mar 02 17:42:43 and to get the ...... Mar 02 17:42:45 hi, is there a Xcode storyboard like tool for android dev? Mar 02 17:42:56 no trisme Mar 02 17:43:03 we are all waiting for it though Mar 02 17:43:11 yeah we are all Mar 02 17:43:18 waiting for Android to become iOS Mar 02 17:43:28 wew, Gapple Mar 02 17:43:34 Goopple Mar 02 17:43:38 i saw something like that in android studio last year but can recall the name Mar 02 17:43:44 Goopple sounds better Mar 02 17:43:55 just the design tab of the Layout file, that ain't no storyboard Mar 02 17:44:19 Im sure it can be done though as a standalone software Mar 02 17:44:43 it may generate a lot of boilerplate Mar 02 17:44:51 yea it would Mar 02 17:45:54 man its hard to make an app from scratch Mar 02 17:46:04 so many times i go back on things because I thought about the design wrong Mar 02 17:46:10 it aint my job brah! Mar 02 17:46:52 when you rewrite apps, boilerplates helps. Mar 02 17:47:12 oh I wasn't discussing that, what I said was a new topic Mar 02 17:47:14 at some times, it takes more time to clean up boilerplate just to get what you need. Mar 02 17:47:58 you should have put something like [FLAG_TOPIC_CHANGE] or something. Mar 02 17:49:02 we should get a channel bot Mar 02 17:49:15 oh yeah Mar 02 17:49:25 what for Mar 02 17:49:38 a lot of things Mar 02 17:49:39 many things Mar 02 17:49:42 and fun lol Mar 02 17:49:43 haha Mar 02 17:49:45 like what Mar 02 17:49:56 you're only going to need template answers Mar 02 17:50:04 tell user !google Mar 02 17:50:10 user, please google before asking Mar 02 17:50:25 takes the fun out of being mean to noobs Mar 02 17:50:42 When you put s/ corrections in some channels, a bot comes up and explains the correction for you. Mar 02 17:51:27 yea could use a bot Mar 02 17:51:42 had many over the years Mar 02 17:51:48 takes a lot of work to customise Mar 02 17:58:08 Anyone used the material design icons? Curious how you did your attribution Mar 02 18:05:39 mattblang may be this will help http://romannurik.github.io/AndroidAssetStudio/index.html Mar 02 18:05:55 oh never mind Mar 02 18:08:04 Hi ! Is there an android function/class to convert a measure string (ie : 20dp, 3pt, 2px) to pixel units ? Mar 02 18:09:40 2px is already in pixels Mar 02 18:11:22 Yes, I want it generic : Not only parsing but if needed, convert ! Mar 02 18:11:56 In short : The same that the one that reads activity XML Mar 02 18:19:31 hi again Mar 02 18:19:49 I tempt you with this video and incredible music Mar 02 18:19:53 https://www.youtube.com/watch?v=R2sE5a9D78s Mar 02 18:20:08 to answer me this question. Can I pick a theme for my activity at runtime? Mar 02 18:20:29 in fact, why would I want to do that. I want to change the color of the actionbar at runtime, that's it Mar 02 18:22:43 yes, just set the appropriate property on the action bar Mar 02 18:23:20 yes already done Mar 02 18:23:29 I did that with drawable, but what about the bar that's above it Mar 02 18:23:37 usually I set these props in the theme Mar 02 18:23:48 let me see Mar 02 18:24:13 colorPrimaryDark, it's called Mar 02 18:24:41 Window#setStatusBarColor Mar 02 18:25:29 zebu1er: No, there's no method for that Mar 02 18:28:00 http://i.imgur.com/Tjhjm3q.png gah Mar 02 18:29:13 You could write much better, Moter. Mar 02 18:29:15 That's a pretty horrible way to let the user know their input is invalid Mar 02 18:29:33 Moter8: why not figure out the error constant in an if-then and make a single builder call after? Mar 02 18:29:54 Why even let the user click submit, or whatever, if the input is invalid? Mar 02 18:30:06 ehhh Mar 02 18:30:21 myke, if then? i dont know of that Mar 02 18:31:27 TacticalJoke, myke got a single-line one working with the normal alertDialog but not with this lib Mar 02 18:31:34 ill look it up later... for now it works Mar 02 18:32:15 SimonVT If the user is not notified specifically why the button is clickable, it is bad ux too right? Mar 02 18:32:23 s/is/is not Mar 02 18:32:49 show error message in line Mar 02 18:32:55 don't require a click Mar 02 18:33:04 EditText has error messages Mar 02 18:33:10 unless it must be submitted for remote processing to detect validity Mar 02 18:33:18 yes, right. a textwatcher + edittext error message Mar 02 18:33:27 You don't need the user to click a button to let them know their input is not (yet) valid Mar 02 18:33:40 agreed, never mind my comment Mar 02 18:34:24 though text watchers are gonna clutter the code even more Mar 02 18:36:35 napster did you see https://github.com/thyrlian/AwesomeValidation Mar 02 18:37:30 SimonVT: Maybe around ResourceHelper.parseUnit ... Mar 02 18:37:37 looks pretty cool, thanks g00s Mar 02 18:38:50 https://a.pomf.se/wkhilp.mp4 current WIP of the signup thing Mar 02 18:39:28 zebu1er: Sure, there are methods for this in aosp.. But not part of the public api Mar 02 18:39:57 Moter8: you're already doing an if-then Mar 02 18:40:09 instead of doing the same call set errorcode = R... Mar 02 18:40:10 Moter8: if the username is moter, the password should be fucker Mar 02 18:40:16 and then use errorcode in a single call to the builder Mar 02 18:40:35 gdrc shouldn't it be moter-head ? Mar 02 18:40:38 :D Mar 02 18:41:30 lol Mar 02 18:43:20 g00s: I didn't get it ;( Mar 02 18:43:35 nm XD Mar 02 18:43:48 don't know how to put umlauts on the o Mar 02 18:44:24 yea that was what I was looking for, thanks Simon Mar 02 18:44:25 awesomevalidation looks cool Mar 02 18:44:32 that's the kind of stuff we should have Mar 02 18:44:51 whats that Mar 02 18:45:04 transparent drop-in libraries to add/change functionality Mar 02 18:45:19 whose functionality Mar 02 18:45:25 well not quite drop-in Mar 02 18:45:28 the core sdk Mar 02 18:45:34 square do that Mar 02 18:45:57 ok? Mar 02 18:46:16 SimonVT: That's not possible to import them (Android Studio) ? Mar 02 18:46:27 yes, you meant to say ok Mar 02 18:46:28 say it Mar 02 18:46:58 Hey guys one question what you think how should i do invoice priting alligment (just using left and right spaces) or any better approach? Mar 02 18:47:12 Odaym: what's the validation lib square provides? Mar 02 18:47:18 zebu1er: You can only import classes that are part of the public API, as seen on d.android.com Mar 02 18:47:37 va..lidationium? Mar 02 18:47:51 yea, sounds legit Mar 02 18:48:26 does square have a validation lib too, or you guys just joking ? Mar 02 18:48:34 SimonVT: Ah ok ! Mar 02 18:48:39 nah Im joking Mar 02 18:48:43 SimonVT: Thanks ! Mar 02 18:48:44 Odaym is a troll Mar 02 18:48:50 but he was talking about libraries that are so easy to use and change the way you work Mar 02 18:48:56 and I havent seen anyone do that better than Square Mar 02 18:49:03 I havent seen anyone do that. rather Mar 02 18:49:19 Ive used TONS of libraries because of my laziness Mar 02 18:49:35 i love fanboyism Mar 02 18:51:52 Odaym yeah, android is intoleable unless you throw enough square libraries at it :D Mar 02 18:51:57 *i tolerable Mar 02 18:52:00 yeah Mar 02 18:52:20 think i need a new keyboard and mouse :( Mar 02 18:53:04 g00s heh seriousily Mar 02 18:53:07 :) Mar 02 18:53:18 so i copied / pasted the PagerSlidingTabStrip from iosched into my app's toolbar - and it just doesn't look right. are you guys using a library for Tabs ? Mar 02 18:53:34 i found this one https://github.com/jpardogo/PagerSlidingTabStrip Mar 02 18:53:49 I use SlidingTabStrinp from samples Mar 02 18:54:17 hm, ok. the underline selector looks really weird, like too thin. maybe 1px high Mar 02 18:54:29 you can customize it Mar 02 18:54:56 its just two files SlidingTabLayout + SlidingTabStrip Mar 02 18:55:10 need a screenshot of mine? Mar 02 18:55:30 sure napster , thanks Mar 02 18:56:39 its nice when people who know what they're talking about pop in here out of nowhere, and stick around Mar 02 18:56:51 more easy answers for us newbs Mar 02 18:56:55 huhu Mar 02 18:58:01 g00s http://a.pomf.se/cqhwsi.png Mar 02 18:58:31 hey napster, what'd you do for the fab button backwards compatibility? Mar 02 18:58:34 the ripple, primarily Mar 02 18:58:45 myke, ooh yeah Mar 02 18:58:48 we forget ripple ;) Mar 02 18:58:53 if then is just a branch Mar 02 18:58:55 thanks napster Mar 02 18:58:55 * Moter8 facepalms Mar 02 18:58:58 same Mar 02 18:59:06 and elevation if SDK is 5 Mar 02 18:59:07 otherwise no Mar 02 18:59:45 g00s, I'm using materialTabs Mar 02 18:59:54 cause I saw Trello do this, so I just followed suite Mar 02 19:00:10 g00s, https://a.pomf.se/svqeza.mp4 Mar 02 19:00:35 looks nice Mar 02 19:00:47 ripple on <21 too Mar 02 19:00:48 its bad that Android limited material to just a couple of widgets only Mar 02 19:00:59 yeah Mar 02 19:01:30 Im amazed they pulled it off smoothly, you dont see anyone suffering from trying to make it work Mar 02 19:06:41 did you see that video about how that guy made Falcon Pro? Mar 02 19:11:24 well, you should Mar 02 19:12:26 link? Mar 02 19:14:18 http://realm.io/news/joaquim-verges-making-falcon-pro-3/ Mar 02 19:14:30 yep thats it Mar 02 19:14:37 guy is a little cocky, but the info is good Mar 02 19:15:10 yeah the “Guess how long it took me to make this update?” was cringe worthy Mar 02 19:15:27 yea definitely Mar 02 19:18:30 interesting, oems are shipping 5.0 devices without encryption enabled by default Mar 02 19:18:47 probably performance problems Mar 02 19:18:59 "asked for provacy, sent away with a lollipop" lol Mar 02 19:19:58 hm, so i guess devices started using F2FS ... i thought that was only samsung Mar 02 19:20:00 g00s: from what i'm reading about http2/spdy, that's going to be a big problem Mar 02 19:20:35 :( Mar 02 19:25:38 new version of SDK Tools , 24.1.2 O.o Mar 02 19:26:04 thats weird, my version is 24.0.2 - so i guess they skipped a few Mar 02 19:26:09 Hey has anyone ever run into a case where the button you’re pressing isn’t firing the right even? Mar 02 19:26:29 no Mar 02 19:26:43 fire the right even! Mar 02 19:26:55 event :( Mar 02 19:26:57 prepare thyselves for the right even is to be fired! Mar 02 19:27:02 oh :) Mar 02 19:27:04 what do you mean event? Mar 02 19:27:07 oh yes, but a long time ago with ADT - seemed like resourced IDs would get messed up and get assigned to the wrong widgets Mar 02 19:27:19 you explicitly tell it what to fire by setting a clickListener on it, dont do the onClick thing in XML Mar 02 19:27:26 what code to run* not what to fire Mar 02 19:27:53 I have a numpad that triggers an onclick listener. the listener has a switch/case in onclick. When I hit “1” “2” is registered. all the other buttons are normal Mar 02 19:28:12 onyl thingk I can think of is R.id.btn1 == R.id.btn2.. Mar 02 19:28:30 there are values for NUMPAD keys Mar 02 19:28:48 no that's DPAD i was thinking Mar 02 19:28:53 I made my own numpad Mar 02 19:29:08 with blackjack and hookers? Mar 02 19:29:16 but without blackjack Mar 02 19:29:27 jackpad Mar 02 19:29:55 http://pastebin.com/D5NeenV7 Mar 02 19:30:00 http://developer.android.com/reference/android/view/KeyEvent.html Mar 02 19:30:02 <_genuser_> so apparently it takes longe rot install win10 than it does other OSes. Mar 02 19:30:05 what you're pressing must fall in that list Mar 02 19:30:25 win10 is out? Mar 02 19:30:34 bro..... Mar 02 19:30:40 there's no break in the first case Mar 02 19:30:47 so 1 and 2 fall in the same case Mar 02 19:30:48 that would be it.. Mar 02 19:31:21 I must have accidentally deleted it.. hah. Thanks, I feel like it’s Monday or something. Mar 02 19:31:21 been looking at code too long Mar 02 19:31:27 it is Mar 02 19:31:40 Mondane Mar 02 19:31:45 Not enough yet maybe? Mar 02 19:31:45 cause its Monday and its Mundane Mar 02 19:31:57 new meta Mar 02 19:32:36 anyone know how to insert a cursor into an textview? I’m seeing that it’s not very possible Mar 02 19:32:47 Im getting crash reports of a NPE on ((Fragment3) frag3).showTheJokes(); here: http://pastebin.com/0TSQh95U . Why is frag3 null? Background Activity crashing before trying to update the lists? Mar 02 19:32:56 what's a cursor? the thing returned from DB? Mar 02 19:32:58 I could use editText btu I don’t want the keyboard to popup and I haven’t found a reliable way to hide the keyboard from a fragment Mar 02 19:33:25 sorry, like selection position Mar 02 19:33:34 you can do requestFocus on an element like that Mar 02 19:33:40 it puts the cursor on that element Mar 02 19:33:50 on a TextView? Mar 02 19:34:00 ah no, sorry thought you meant edittext Mar 02 19:34:04 dont know Mar 02 19:34:30 Odaym: a cursor is like a pointer into a database Mar 02 19:34:44 he meant the other cursor Mar 02 19:34:50 carat Mar 02 19:35:06 blinky line Mar 02 19:35:08 | Mar 02 19:35:32 I wish Android would make it easier to hide the keybaord Mar 02 19:35:55 Keyboard.hide(view) Mar 02 19:35:57 its 2 lines I think Mar 02 19:36:02 which is way too much Mar 02 19:36:03 it doesnt always work Mar 02 19:36:17 from a fragment it doesnt work, has to be called from the activity Mar 02 19:36:22 cant even pass the activity Mar 02 19:36:37 you pass (Activity (context)) Mar 02 19:36:42 that is your activity Mar 02 19:36:44 yeah I have Mar 02 19:37:51 Odaym I’m going to gues that findFragmentByTag() is returning null Mar 02 19:38:05 err Quacked Mar 02 19:38:19 a fragment by that tag cannot be found Mar 02 19:38:25 so returns null Mar 02 19:38:26 yeah Mar 02 19:38:39 Quaym Mar 02 19:39:08 tricknology, but why? hehe.. Mar 02 19:39:24 you would have to look into what findFragmentById() does Mar 02 19:39:28 err byTag() Mar 02 19:39:49 http://grepcode.com/file/repository.grepcode.com/java/ext/com.google.android/android/4.0.1_r1/android/support/v4/app/FragmentManager.java Mar 02 19:39:59 thats for support Mar 02 19:40:16 Finds a fragment that was identified by the given tag either when inflated from XML or as supplied when added in a transaction. This first searches through fragments that are currently added to the manager's activity; if no such fragment is found, then all fragments currently on the back stack are searched. Mar 02 19:40:45 So make sure that your tag exists as outlined there ^ Mar 02 19:41:03 You're supposed to let the OS handle the keyboard cause you know? It's smarter than you. Mar 02 19:41:26 not when you have your own custom keyboard displayed on the screen :/ Mar 02 19:41:28 tricknology: what you can do is delay it by 200 ms and sometimes that will fix it Mar 02 19:41:33 I use private static String makeFragmentName(int viewId, int index) { return "android:switcher:" + viewId + ":" + index; } Mar 02 19:41:41 delay what? hiding the keyboard? Mar 02 19:41:45 … no way.. Mar 02 19:41:46 or showing it yeah Mar 02 19:41:49 why? Mar 02 19:42:04 depends, but if you are using edittext as token for one of the params Mar 02 19:42:13 you may not have had it laid out yet hence the token is invalid Mar 02 19:43:14 tricknology, iirc that was a pretty dirty hack to get the tag Mar 02 19:44:04 meh. lasserix_: input.setInputType(InputType.TYPE_NULL); will make sure the keyboard never pops out but an EditText will lose its functionality and basically turn into a TextView Mar 02 19:45:14 yeah I haven’t seen that little trick before, Quacked. Why not set the name in ZML? Mar 02 19:45:15 XML Mar 02 19:46:04 I dont recall :D Mar 02 19:46:28 tricknology: yeah Mar 02 19:47:13 well i can't find it now but there is another method to use Mar 02 19:47:19 Quacked, did you try to use FragmentTransaction's add(int containerViewId, Fragment fragment, String tag) method? Mar 02 19:47:20 that doesn't fuck up the native functionality Mar 02 19:47:38 Kyeboard.hide() end of story (should be) Mar 02 19:47:51 Keyboard, evem Mar 02 19:48:10 http://pastebin.com/QK3bipnt Mar 02 19:48:14 works most of the time Mar 02 19:48:48 tricknology, dunno.. I havent touched this code for 1,5 years Mar 02 19:49:12 hahah, I know how that goes Mar 02 19:50:11 ah but you need the Fragment to use that method.. and you’re tryign to find it... Mar 02 19:50:22 memorion: this is a terrifying quote: "Q: How thread safe is Realm? Mar 02 19:50:22 Joaquim: It is so thread safe, you wouldn’t believe it ..." Mar 02 19:50:53 realm.io? Mar 02 19:50:57 Have you used it? Mar 02 19:51:27 on a small side project. their documentation leaves much to be desired. Mar 02 19:52:23 weird java constructs, documentation around threading == "objects only work on a single thread, and they're magically updated on each event loop! wow!" <- seriously frightening when they won't say any more than that. Mar 02 19:53:04 but it does appear to work, it's pretty simple, and fast enough to just yolo it on the main thread if you're into yoloing. Mar 02 19:53:23 multithreading sucks Mar 02 19:53:38 multithreading is also a fact of life :) but sure Mar 02 19:53:44 there is stil timesharing happening. Mar 02 19:53:56 if you’re on the same core Mar 02 19:54:06 which is a reasonably big if Mar 02 19:54:41 not if you spawn a gan of threads Mar 02 19:54:44 gang* Mar 02 19:55:19 also, multithreading + timesharing is fine, as long as the lower-priority ones yield more than the higher ones. that's all that's necessary to keep a UI speedy. Mar 02 19:55:54 hmm good to know Mar 02 19:56:29 :| run some network activity on the main thread, watch the jank, move it off, watch it smooth. timesharing works. CPUs sit idle the vast majority of the time anyway. Mar 02 19:57:44 hes a mad man Mar 02 19:58:44 by default you can't even run networking activity on the main thread anymore Mar 02 19:58:53 which is good :) Mar 02 19:58:58 yes Mar 02 19:59:06 tho iirc the spring social sample does :( Mar 02 19:59:23 anyone else used the twitter login button in an android app with a fragment? Mar 02 19:59:26 I sorta wish they'd kill disk access too, but a good portion of the time it doesn't really matter. Mar 02 19:59:40 i just spent the weekend going over retrospect and volley and decided to just stick with my own asynctasks + otto Mar 02 19:59:50 wow Mar 02 19:59:53 retrofit is awesome Mar 02 19:59:55 retrofit, or retrospect? Mar 02 20:00:03 hard to see how async tasks could trump it Mar 02 20:00:06 sorry retrofit Mar 02 20:00:28 retrospect - the retrofit lazy url image loader sublibrary ;p Mar 02 20:00:35 lasserix_: retrofit is better but i'm at "simplest thing that could possibly work" stage, and that retrofit is not Mar 02 20:00:56 are you sure? far easier to implement than async task Mar 02 20:01:16 one interface with minor annotation, and you just implement anonymous callback and voila that's it Mar 02 20:01:20 lasserix_: you still need to juggle things onto the main thread with retrofit right? Mar 02 20:01:22 myke, lasserix I am very surprised you decided to keep async tasks. Retrofit is ridiculously simple Mar 02 20:01:25 no Mar 02 20:01:34 if you provide a callback it'll handle the threading for you Mar 02 20:01:41 ah yes Mar 02 20:01:55 mattblang: no i was saying the same, no async task here. retrofit is amazing in its simplicity for networking Mar 02 20:02:02 meh, getting stuff back to an activity is a pain anyway, what with all the lifecycle madness Mar 02 20:02:06 and it's particularly cool that is android agnostic (java) Mar 02 20:02:10 lasserix_ yeah, sorry, was only referencing you since you were in the conversation too Mar 02 20:02:48 lasserix_: yeah, agreed Mar 02 20:03:32 samskiter yeah, I use the callback signature which handles the threading for me. I use Otto to post an event when the callback runs in order to do any UI changes Mar 02 20:04:34 mattblang: yea, that’s where i’ve gone too. if my activity get’s backgrounded i have to cancel off any requests and ignore anything that comes in that’s not-quite cancelled Mar 02 20:04:38 i'll probably switch to retrofit later, i already have the asynctask version working Mar 02 20:04:44 with otto Mar 02 20:05:14 working > nonexistent, yeah Mar 02 20:05:14 so post an api request and subscribe the callback to the event generated by the api asynctask Mar 02 20:05:37 Oh my God how much i hate designing an UI. Mar 02 20:05:45 Nightwalkerkg: lol, yeah Mar 02 20:05:50 plus this way i can munge more state into the api object, which might get icky with retrofit's model Mar 02 20:05:57 mattblang: i haven’t yet integrated otto, but im doing something similar with more explicit ‘addlistener’ ‘removelistener’ calls Mar 02 20:06:04 nightwalkerkg: lol Mar 02 20:06:35 samskiter: with Otto, I never worry about my activity / fragment being backgrounded because if it is backgrounded the event I post from the Retrofit callback won't be heard, so no UI NPE problems Mar 02 20:06:48 I think i would rather rewrite my app 20 times fro scratch then do this. Mar 02 20:07:11 I have 20 logos i need to display and no matter how i do they look like crap. Mar 02 20:07:14 mattblang: that’s not the problem, it’s that the background activity might have some visual state like “loading” and it’ll miss it’s call to leave that Mar 02 20:07:35 mattblang: so i have to make sure i cancel things as i go background Mar 02 20:07:37 yeah, event busses hardly solve all state management problems. Mar 02 20:07:46 samskiter oh, got ya. Mar 02 20:08:11 I do _definitely_ like being able to say .register(this), .unregister(this) in my base class though. convenience++ Mar 02 20:08:52 groxx: ahhh, and it uses the reflection stuff to work out what you want? Mar 02 20:09:01 how does eventbus not solve that Mar 02 20:09:04 yeah, reads the annotations. Mar 02 20:09:10 imagine the pain of BR's where they dont even belong! Mar 02 20:09:13 winner of the chicken dinner variety :0 Mar 02 20:09:25 samskiter: since it's a one-time cost per class, it's cheap enough that it really doesn't matter. Mar 02 20:09:35 yea i don’t worry too much about stuff like that Mar 02 20:10:54 Odaym: BR = Broadcast Receivers? you're nuts if you're using those as an event bus type thing. Mar 02 20:10:57 groxx: i actually had a look at ‘loaders’ as an alternative as i read they are more ‘lifecycle aware’. when you get an ‘loadfinished’ callback, you can’t make any changed to the UI, so you end up making another runnable back onto the UI, that may then miss hitting the right instance. so i backed away from that idea :P Mar 02 20:11:03 I was, yes Mar 02 20:11:18 then I got introduced to the event bus and solved all my problems Mar 02 20:11:25 samskiter: there are other reasons to avoid Loader, but the basic idea is attractive, yeah Mar 02 20:11:46 otto seems a better solution than the native android solutions like broadcasts and loaders Mar 02 20:12:05 loaders are actually a no go. you can’t do anything UI related in onloadfinished. so what’s the point Mar 02 20:12:16 largely because broadcasts != event bus. they're primarily for communicating with other apps, not yours, and they have _massive_ overhead if you're just doing in-app events. Mar 02 20:12:23 balls, just tested wrong app on the analytics id Mar 02 20:12:52 wtf, the twitter login button needs you to override the “getActivity’ method. why? Mar 02 20:13:07 “TwitterLoginButton requires an activity. Override getActivity to provide the activity for this button.” lolwut Mar 02 20:13:15 Is there any way to simplify UI design ? Mar 02 20:13:19 there really should be a way to delete events from google analytics :/ Mar 02 20:14:05 Nightwalkerkg: simplify at all? probably. simplify good UI design? probably not :| Mar 02 20:14:08 Nightwalkerkg: let me know if you find anything good Mar 02 20:14:33 i assume it's the same awful chore as making web-bassed UIs Mar 02 20:15:25 pretty much, though fixed bottom footers are easier :) Mar 02 20:16:49 myke, to me it's much easier to develop website UI then this. Mar 02 20:17:03 samskiter: re onLoadCompleted: it's called on the main thread, were you put off by the fragment transaction warning? Mar 02 20:17:17 groxx: yes Mar 02 20:17:28 ‘onloadfinished’ Mar 02 20:18:08 samskiter: that's true for pretty much anything that you do outside of onPause :| which is annoying, but tbh I'd just say .commitAllowingStateLoss() - if they see it, the app is still running. if not, they never saw it, so losing the transaction is fine. Mar 02 20:19:26 yea, i know you can’t make fragment transactions after onsaveinstancestate. still, it would be nice if it didn’t explode if you know what you are doing. Mar 02 20:21:46 that's pretty much how I feel about fragments in general :[ Mar 02 20:22:30 think is, the generally accepted solution for how to fix onLoadFinished is wrong. (ie to post a runnable) Mar 02 20:22:35 and actually makes things worse Mar 02 20:22:42 that's the generally accepted fix? wut Mar 02 20:23:03 I mean, i see code like that in the wild + in the docs at times, but it's still horrible Mar 02 20:23:07 http://stackoverflow.com/questions/7746140/android-problems-using-fragmentactivity-loader-to-update-fragmentstatepagera Mar 02 20:24:03 ow Mar 02 20:24:12 here's another fun one https://code.google.com/p/android/issues/detail?id=29472#c20 Mar 02 20:24:26 just looking at that , wondering if its still needed Mar 02 20:24:34 https://groups.google.com/d/msg/android-developers/dXZZjhRjkMk/GocD2HCf4V8J Mar 02 20:24:47 so your loader goes to the trouble of making sure it calls onloadfinished on the right activity. then you go and post a runnable referencing the current activity, that might be run after a config change. Mar 02 20:26:08 “Just understand that if the activity's fragment state has already been saved, your code will need to correctly update it if it is later restarted from the state.” translation: “yea, we couldn’t reallllly work out how to help the developers out properly” Mar 02 20:26:35 hence - pausehandler! Mar 02 20:26:39 Hi, I'm trying to set up an android dev environment on a Linux machine, only have 2gb of RAM. I'm currently trying to install android-studio, but from what I've seen, there are slim chances it will work. Any alternatives? Mar 02 20:27:07 samskiter: well, that gives me more fuel for the "lets burn Loader to the ground" fire. thanks :) Mar 02 20:27:18 I have a KitKat phone I could use to test the code, if it helps Mar 02 20:27:22 the gradle daemon itself will easily take 800mb imv Mar 02 20:27:57 dang, 2gb. well, you could probably do more with some other IDE and just use gradle for build / test / etc. Mar 02 20:28:07 android studio is a bit of a hog too though Mar 02 20:29:19 what's toolbar default text size anyone know? Mar 02 20:29:29 what would you recommend as alternatives? Mar 02 20:29:57 I could somewhat streamline testing with some scripts, if using an IDE that doesn't emulate an Android device Mar 02 20:30:12 groxx: lol. wonder if there are any google engineers lurking… maybe i’ll post a better solution on that SO… not that it’ll ever get upvoted… :( Mar 02 20:31:05 samskiter: well, one of the answers _is_ "don't use loaders" :) Mar 02 20:32:15 groxx: well the solution that still involved using loaders would be to resort to commitAllowingStateLoss and also store some flag when you get an onSaveInstance()+isChangingConfiguration==false Mar 02 20:32:37 then use the flag to do the intelligence that android isn’t Mar 02 20:32:56 goddamnit, the more i know the more paranoid i become Mar 02 20:33:11 dfhgdf Mar 02 20:33:14 oops Mar 02 20:33:40 puts an interesting twist on "The more you know..." :) Mar 02 20:33:41 there are lots of weird corner cases like this in android. yeah i'm paranoid and do things the straight way. dont assume anythng about timing Mar 02 20:34:17 but in my experience, that's true for everything. learn too much, and you have very good reasons to be paranoid. Mar 02 20:34:20 im building a little set of rules for this stuff. mainly involves making sure i hit callbacks on the main thread, and always read my listeners on the main thread. Mar 02 20:35:11 imv: all command line Mar 02 20:35:13 basically stems from the fact that during a config change, the whole lifecycle is done sequentially Mar 02 20:35:28 so you just gotta make sure you’re either side of that Mar 02 20:35:34 imv: build with gradle or maven, use adb logcat to see device log Mar 02 20:35:59 and pidcat if you want an easy way to just see your app Mar 02 20:36:04 app's logs* Mar 02 20:36:05 imv: as a bonus you can use adb's tcp server mode to run your cli build on a faster remote server and install it to your locally attached dev device Mar 02 20:37:45 myke, thanks, I'll look into those Mar 02 20:39:06 if you're gonna go purely cli, sbt is a great option Mar 02 20:39:37 and even if not, it's still good Mar 02 20:39:54 maven and gradle both don't match the feature set Mar 02 20:40:45 I don't mind cli, not at all. Just want something that works. I cat borrow roommate's machine for more stuff that needs more memory, but I still have to do most of the things on mine Mar 02 20:40:59 pfn, I'll look into sbt too, thanks! Mar 02 20:41:30 cli builds all take a pretty big bit of memory Mar 02 20:43:46 begging + beer = a proper android development environment. Can do Mar 02 20:45:29 pfn, does sbt work without any major incompatibilities between Linux and Windows? I have a small team, some running Windows, and I'd like the process to be fairly uniform Mar 02 20:46:35 thats different - a team of devs with 2GB memory ? Mar 02 20:46:45 basically a team that doesn't have tools to do anything Mar 02 20:47:35 no, not all with 2gigs of memory, some have proper machines, they shouldn't have problems running the IDE from upstream Mar 02 20:47:45 android studio * Mar 02 20:48:11 ideally minimum for AS is 8G. i run it in 4G but its painful Mar 02 20:48:22 but just in case anyone else has problems with building Mar 02 20:48:25 leaves almost nothing left for browser, docs Mar 02 20:48:53 and the minimum requirement is actually 2gigs, 4 recommended Mar 02 20:48:58 development always requires beefy hardware. using a remote server may be the cheapest option is money is an issue. Mar 02 20:49:50 imv yeah i see "2 GB RAM minimum, 4 GB RAM recommended" but thats BS Mar 02 20:49:50 imv, works fine Mar 02 20:50:06 also eclipse is lighter than AS, tho on 2G it's all gonna be painful Mar 02 20:50:59 myke, tried eclipse on my first java course. In less than two hours I was on vim, javac and build scripts Mar 02 20:51:06 pfn, thanks! Mar 02 20:51:26 maybe grab an intel nuc or something Mar 02 20:52:53 imv: then you won't need AS either Mar 02 20:52:55 I can use the roommate's machine as a build server, and if anyone encounters any issues, I'll see what I can work out with one of the team members, to set up a build server for everyone on his machine (16gigs of memory, and a proper CPU, IIRC) Mar 02 20:53:27 imv: if you run adb locally, you can ssh -R whateverport whateverip to pull your adb port from the build machine back to local Mar 02 20:53:30 works great for me Mar 02 20:53:43 the build machine will see your device as local Mar 02 20:53:52 at my new job, they're setting me up with an i7 16GB Mar 02 20:53:59 so you can just run all your package install from there Mar 02 20:54:01 gonna run 5 Android Studios together Mar 02 20:54:20 come here, ask you guys questions, get paid Mar 02 20:54:21 ez life Mar 02 20:54:49 Odaym: lol. Mar 02 20:54:56 :P Mar 02 20:55:07 hi Mar 02 20:55:11 Odaym: what kind of machine Mar 02 20:55:16 just a windows desktop Mar 02 20:55:23 tried to gamble for a mac, didnt work Mar 02 20:55:28 uh, sbt for android? Seriously? It’ s already controversial for Scala, which it was built for, can’t imagine why one would use it on android Mar 02 20:55:28 gamble? Mar 02 20:55:29 but at least I dont have to take my own mac anymore Mar 02 20:55:43 yea, to tell them that I'd like a mac Mar 02 20:55:54 yea, why didnt they give you what you wanted? Mar 02 20:56:01 well, Im not good enough Mar 02 20:56:16 when you are good enough to tell people what to do, they will listen Mar 02 20:56:24 if you arent, they tell you what to do Mar 02 20:56:33 life.wrapInNutshell() Mar 02 20:56:34 meh, tech is cheap compared to people. we gave a new starter a new macbook pro i7 Mar 02 20:56:49 well, Im glad they didnt Mar 02 20:56:52 ah, correction i5 Mar 02 20:57:01 because if I had a laptop, Id kind of be tempted to take it home and work there Mar 02 20:57:08 and they dont allow that Mar 02 20:57:08 yea, that’s half the point :D Mar 02 20:57:21 haha no they dont want us working outside the job Mar 02 20:57:34 the old company I did that, on my own mac too, but that was a startup Mar 02 20:57:39 Im in the big leagues now Mar 02 20:57:52 yea buddy Mar 02 20:57:57 light weight Mar 02 20:58:00 for an Activity with viewpager and 3 fragments, what is the correct way of reporting the screennames? I was thinking 3 ifs in Onresume, something like if (mViewPager.getCurrentItem() = 0 { t.setScreenName("Fragment1"; tracker.send(new HitBuilders.AppViewBuilder().build();) Mar 02 20:58:12 oh right, I'm talking about Google Analytics :P Mar 02 21:00:36 hello androiders Mar 02 21:00:48 hi exister Mar 02 21:00:58 * hesperaux does not actually exist Mar 02 21:01:10 a quiet exister Mar 02 21:01:14 :D Mar 02 21:01:14 that's a change Mar 02 21:02:06 I'm glad that this new job is pseudo-aware of programmer needs though Mar 02 21:02:16 they are aware that you can go into lapses with the headphones on Mar 02 21:02:30 and give you your own high end machine, but no private offices for example Mar 02 21:02:50 something that Spolsky-started-companies is still unique in Mar 02 21:02:52 * hesperaux does much better work with phones Mar 02 21:03:05 joeltest Mar 02 21:03:13 headphones I mean Mar 02 21:03:13 yea they fulfil like 1.5 points Mar 02 21:03:15 that's it Mar 02 21:03:22 no one out there does the whole thing anyways, except him Mar 02 21:03:25 oh man thats rough Mar 02 21:03:37 no ultra-high comfort chairs either Mar 02 21:03:40 no double screen Mar 02 21:04:04 but I still believe that if you are good enough, you get that. if you are not getting it than you are not good enough. No one is really under appreciated I believe Mar 02 21:04:05 im on 3 screens atm in an aero chair thing. and we get free lunch :) Mar 02 21:04:24 you can be over appreciated, though :) Mar 02 21:05:27 there's a reason we're not all at google, and we've all applied Mar 02 21:05:29 :P Mar 02 21:05:34 * hesperaux has not applied Mar 02 21:05:41 apply, you'll get rejected Mar 02 21:05:43 I wouldn't want to work there - I'd get fired for being tood umb Mar 02 21:05:48 anyone using jack & jill for day to day work? wondering if the new sdk tools has updates in that area Mar 02 21:05:53 well yeah, but even if I wasn't, I'd fail Mar 02 21:06:03 besides, i'm not even a CS guy Mar 02 21:06:14 g00s, man you are always online :P Mar 02 21:06:18 it isnt about you, its about the real worth of every one of us Mar 02 21:06:41 dont think acceptance into a company decides a person's worth though, yea probably wrong theory Mar 02 21:07:00 a person's worth? no. occasionally, maybe their skill level in some area Mar 02 21:07:10 #philosophy Mar 02 21:07:17 meh, fuck Google Mar 02 21:07:22 that shit gets to your head Mar 02 21:07:41 Odaym: i knew i was accepted here when my boss put a longboard rack on the wall for my chosen commut option ;) Mar 02 21:08:00 lol.. Mar 02 21:08:04 i got a question, in my app, the data from the database is loaded onces a 1/3, how can i solve this problem? Mar 02 21:08:09 dont understand what longboard rack is Mar 02 21:08:20 rack for longboard? Mar 02 21:08:21 john67, dont' understand Mar 02 21:08:29 let me see what longboard is Mar 02 21:08:29 a longboard is a skateboard that's long Mar 02 21:08:37 john67: 1/3? like on thirf of the time? Mar 02 21:08:41 I got almost-hit by them tens of times a day in college Mar 02 21:08:50 ok, why would he pplace that on a wall Mar 02 21:08:55 to honor it's longness Mar 02 21:08:56 and why are the commute options on a wall Mar 02 21:08:59 samskiter: not every time Mar 02 21:09:09 Odaym, because you can't put cars on the wall Mar 02 21:09:10 I dont understand America Mar 02 21:09:21 ah ok, so its like a pin Mar 02 21:09:25 hesperaux: the data isnt selected every thing, as its suppose to be Mar 02 21:09:26 only a board Mar 02 21:09:27 Odaym: im in the uk Mar 02 21:09:32 oh Mar 02 21:09:56 john67: struggling to follow… your data isnt always there? are you saving it correctly? Mar 02 21:09:58 show us? Mar 02 21:10:05 what's 1/3 Mar 02 21:10:12 john67, check the query? are you skipping too many rows when you iterate your cursor? too many calls to moveToNext()? Mar 02 21:10:12 you've assigned a random number to the loading? :P Mar 02 21:10:43 to keep things interesting, sometimes the data loads..and sometimes it doesnt Mar 02 21:10:50 As a new to android dev my feeling for Android Dev would be something like this : Let's download the whole source code for AOSP and build it on our PC's, hell yeah! Let's make cool apps with tons of libraryes, docs and a solid community to fix problems, hell yeah! Let's make a nice UI that works with all screen sizes HELL NO! Mar 02 21:10:50 like a box of chocolate, you never know what you gonna get Mar 02 21:10:55 lol Mar 02 21:11:12 Nightwalkerkg, it's no to all of what you said Mar 02 21:11:19 lol I agree Mar 02 21:11:19 xD Mar 02 21:11:25 just start hello world Mar 02 21:11:37 i got this from the logcat http://pastebin.com/2QZ9GmHC Mar 02 21:12:00 you trying to open a db from a file you have? Mar 02 21:12:01 john67, are you trying to get multiple writeable databases? Mar 02 21:12:02 i dont get why i have this error and then it does load the data when wanted Mar 02 21:12:13 hesperaux: no, i have 1 database Mar 02 21:12:18 getWriteable/readable calls Mar 02 21:12:28 I'm talking about what Odaym just said Mar 02 21:12:37 accessing it from multiple places/threads Mar 02 21:12:37 yea those are probably called wrong Mar 02 21:13:14 maybe there's a locked table Mar 02 21:13:23 Odaym: is for me? Mar 02 21:13:43 yea Mar 02 21:13:49 hesperaux: i have 1 table Mar 02 21:14:12 do ctrl + F and look for this.getReadableDatabase() Mar 02 21:14:15 :P Mar 02 21:14:18 you will have several Mar 02 21:14:47 maybe without the "this." Mar 02 21:15:06 I"ve never checked to see if it gets mad at you for opening multiple times in a row Mar 02 21:15:15 I would assume it does, especially if you open it writeable Mar 02 21:15:35 although actually, doing that errors with database open called recursively Mar 02 21:15:37 not locked Mar 02 21:15:40 or could not open Mar 02 21:15:58 yeah, I would have expected a specific exception too Mar 02 21:16:07 Odaym: i have this with it Mar 02 21:16:19 john67, are you trying to open the database from another package? Mar 02 21:16:36 through some reference to your database's parent's context? Mar 02 21:16:59 Can I somehow open these automagically created issues on AS? eg http://i.imgur.com/6DCGTCy.png Mar 02 21:17:00 hesperaux: no, im trying to have access to the data base from an assert database Mar 02 21:17:49 http://pastebin.com/hwTtXs2L Mar 02 21:17:54 this is the class Mar 02 21:21:43 context.getAssets().open(DB_NAME) <--wouldn't this point to the same path as DB_PATH+DB_NAME? Mar 02 21:22:05 it looks like yo'ure reading the same file you're writing Mar 02 21:22:19 told you you were trying to read from a database in a file Mar 02 21:22:39 So I've got a function that is called when I click a button Mar 02 21:22:45 you're doing that code to copy the database, from this link http://stackoverflow.com/questions/21878924/how-to-copy-existing-database-after-app-installed-in-android Mar 02 21:22:48 It has a parameter (View view) Mar 02 21:23:05 I was doing this today, your solution is not to hardcode /data/data Mar 02 21:23:07 But I also need to call it on the press of android.R.id.home Mar 02 21:23:39 What would I pass into the function to represent the view I'm getting on a Button's onClick? Mar 02 21:23:42 Odaym: thnkx i will do as u said Mar 02 21:23:44 do Context.getFilesDir().getPath() instead Mar 02 21:24:22 this got the database open for me, after it was in the correct path of course. but the whole solution I abandoned it because I didnt know how to continue after it, didnt know where my database would be after all of that code ran Mar 02 21:24:41 TechGeek01, you can use view.getId() == R.my.id Mar 02 21:24:44 you need to rename the PKeys of your tables to _id before you do that code Mar 02 21:25:10 this is the original solution http://www.reigndesign.com/blog/using-your-own-sqlite-database-in-android-applications/ Mar 02 21:26:18 hespereaux: Pass view.getId() into the function, then? Mar 02 21:26:32 TechGeek01, if you want, you can also use someView.setTag("Tagname", Object) to distinguish UI elements from another and then use getTag() within an onCilck() Mar 02 21:26:55 TechGeek01, you don't pass it into the function. it's already there. The View object has a getId() which can be compared with your resources class (R.id.whatever) Mar 02 21:26:56 Wait, what? Mar 02 21:27:07 Odaym: i used this tuto , and its using the context.getAssets().open(DB_NAME); Mar 02 21:27:35 TechGeek01, let me make sure I understand your question. You want to have multiple buttons call a generic onClick() method in your activity? Mar 02 21:27:37 Right, but I have that View passed into the function so that I can call it from Button's android:onClick Mar 02 21:27:53 and its correct john67 Mar 02 21:28:06 I have a Button with an android:onClick set to, in this case, "cancelScout" Mar 02 21:28:16 but the data/data filepath is wrong, it should be Context.getFilesDir().getPath() for DB_PATH Mar 02 21:28:17 do you have a reference to the activity in the class that you set the onClick methods to your buttons? Mar 02 21:28:20 then concatenate DB_NAME to it Mar 02 21:28:28 wihtout .db extension Mar 02 21:28:58 So I'm wondering, if that attribute needs cancelScout(View view), what do I pass in from my .java file to run that function manually? Mar 02 21:29:49 TechGeek01, I'm somewhat confused by your verbiage and have a feeling you may be doing something in a more complicated way than necessary Mar 02 21:30:18 I have a