**** BEGIN LOGGING AT Thu Feb 12 02:59:58 2015 Feb 12 03:01:59 groxx, so how would you approach, for example, a ViewPager holding GridViews that launch a detail view on click? Feb 12 03:02:57 "abandon hope, all ye who enter here" comes to mind. Feb 12 03:03:18 detail view may very well make more sense as an activity? Feb 12 03:03:18 hi Feb 12 03:03:52 and that's a relatively simple solution isn't it? Feb 12 03:03:54 lol Feb 12 03:05:07 activity transitions don't work pre-L do they? Feb 12 03:05:26 drinfernoo: there's a trick to faking it, but basically no. Feb 12 03:05:28 one of the main reasons I've been sticking with fragments is to get the nice transitions Feb 12 03:10:02 is anyone doing the view thing like square is doing? Feb 12 03:12:42 Alright, so I'm transitioning my app over from using fragments to mainly activities. I have a navigation drawer that is tied to a toolbar. Is it possible to persist that navigation drawer and toolbar across my different activities that would be launched from that navigation drawer? Would it be as simple as just copying the code for the toolbar and navigation drawer into each activity that should display it? Feb 12 03:15:40 I copied this pretty much directly from the docs tutorial for getting last current location and am confused: https://bpaste.net/show/575e510dbdba . The important lines are on 19 and 61. I am trying to create that mLastLocation variable so that it can be used in onCreate . I declare it up before using it as you can see but something else is wrong. Any advice? Feb 12 03:15:45 drinfernoo: everyone is using views Feb 12 03:16:27 JakeWharton, I'm so confused by switching. I'd like to, seems like it has lots of good ideas Feb 12 03:16:28 ohh is it because its protected and not public? Feb 12 03:18:21 no that didn't help :( Feb 12 03:18:59 they really put a lot of effort making these phones Feb 12 03:19:07 java is working its ass off Feb 12 03:20:54 JakeWharton, I think my biggest problem is figuring out how to refactot what I have, or write fresh code Feb 12 03:28:30 drinfernoo, you can get transitions without fragments... Feb 12 03:28:41 I just like fragments because it has boilerplate like menus and stuff taken care of Feb 12 03:29:07 otherwise, meh Feb 12 03:35:41 pfn, so are you using all views? Feb 12 03:36:53 Im so confused. If I call an intent to an activity, when I hit the back button onResume() on the parent activity will be called right? Feb 12 03:37:49 DadFoundMy: Not sure off hand, but if you want to test it, throw some Log.i(TAG, "Test string") in your on methods in your activities and see what gets called Feb 12 03:38:43 t0astt: it is, i think i realize my problem now. instance variables that were instaniated onCreate() will not be instantiated onResume() right? Feb 12 03:38:48 so I need to add them to a bundle? Feb 12 03:38:58 Ah Feb 12 03:39:14 No, I don't believe they will be Feb 12 03:39:29 ahh that explains it Feb 12 03:39:32 But then again I'm still a noob at this, so don't quote me Feb 12 03:39:49 im fairly certain your right. Feb 12 03:39:51 But no, I the on methods are indepndent of each other Feb 12 03:40:02 You could check with the debugger though, I'd be curious to see for sure Feb 12 03:40:24 yeah i checked Feb 12 03:40:27 you were right Feb 12 03:40:31 Sweet :) Feb 12 03:40:54 so lets say i have some ArrayAdapters that i want to update onResume(), should i add those to a bundle? Feb 12 03:40:57 So yeah I'd pass them with a bundle then, or recreate those instance variables in your onResume Feb 12 03:41:09 cool thanks Feb 12 03:41:10 I'm not sure if a bundle would be appropriate Feb 12 03:41:21 From my understanding they're strictly to be used for passing data between activities Feb 12 03:41:43 I'd probably use the memory monitor to view memory using bundles and then recreating them Feb 12 03:41:47 i remeber a chapter in the book i read mentioned saving data between states through a bundle Feb 12 03:41:50 see which one uses less memory and go for it :D Feb 12 03:41:59 what book? Feb 12 03:42:15 big nerd ranch Feb 12 03:42:53 just for a quick solution i recreated the instances and it worked Feb 12 03:43:02 ill add a todo to see if a bundle is better Feb 12 03:43:30 When you find out, let me know Feb 12 03:43:33 I'm genuinely curious Feb 12 03:44:28 now once i manage to add an ArrayList into sqlite my app will be fully functional! Feb 12 03:44:40 nice :D Feb 12 03:44:55 i just presented my app idea tonight for a mobile app development contest at school Feb 12 03:45:04 nice. you in universtiy or what? Feb 12 03:45:08 fairly certain my idea will move to the next round where I'll be able to actually create it Feb 12 03:45:15 Yep, I'm a senior in my university Feb 12 03:45:26 cool Feb 12 03:45:34 You? Feb 12 03:45:42 junior in high school Feb 12 03:45:46 Ah nice Feb 12 03:46:01 Oh the joys of high school haha Feb 12 03:46:10 Take advantage of it while you can Feb 12 03:46:13 haha the joys... and the not so joys :D Feb 12 03:46:15 It gets serious in college haha Feb 12 03:46:24 where do you go? Feb 12 03:46:30 Illinois State Feb 12 03:46:51 ahh nice, i actually think im applying there Feb 12 03:46:59 you a cs student? Feb 12 03:47:05 Nope, IS Feb 12 03:47:09 specializing in telecommunications Feb 12 03:47:21 ahh nice Feb 12 03:47:23 Although I would have totally done CS if I didn't have to take all the math/science classes Feb 12 03:47:30 At the time when I applied, I didn't like programming at all Feb 12 03:47:35 But I'm obsessed with it now Feb 12 03:47:39 It's my favorite hobby xD Feb 12 03:47:52 What major were you thinking? Feb 12 03:47:54 CS/IT? Feb 12 03:48:01 im scared of the opposite. i love programming now, but dont know if i will be in 3 years, or even like 10-15 Feb 12 03:48:08 Ah Feb 12 03:48:17 right now im leaning towards cs, but deffiinetly something with tech Feb 12 03:48:30 at the very least a cs minor Feb 12 03:48:37 but probably my major Feb 12 03:49:03 If you do go to Illinois State, they make it extremely easy to find an internship if you're CS/IT Feb 12 03:49:12 I've had two already and have a job lined up for when I graduate because of it Feb 12 03:49:20 So it's really nice in that regard Feb 12 03:49:46 Do you live in Illinois? Feb 12 03:49:48 yeah that sounds pretty good Feb 12 03:49:59 nahh New Jersey :D. i just always have like chicago Feb 12 03:50:01 can someone explain why my mLastLocation variable in this example: https://bpaste.net/show/c077af26f4db logs correctly in onConnected but null in onCreate ? Feb 12 03:50:10 Ahhh haha that's a bit of a hike! Feb 12 03:50:19 is it because onConnected is called after onCreate? Feb 12 03:50:30 yeah, most of the schools im applying to are pretty far Feb 12 03:51:15 bilb_ono: Why don’t you find out by logging and seeing in which order they get called? Feb 12 03:51:30 bilb_ono: Can onConnected() be called before onCreate(). if so thats probably your reason Feb 12 03:52:41 DadFoundMy, um i don't know. sounds like you are saying no it can't, and thats why I can't do what Im trying to do Feb 12 03:53:01 bilb_ono: im not saying that. im proabbly the biggest android noob in the chan! Feb 12 03:53:46 just saying that if it cant be called that would make the most sense as to why it doesnt work Feb 12 03:53:47 not while im around Feb 12 03:53:52 anyone running andriod in a vm ? Feb 12 03:53:55 bilb_ono: http://developer.android.com/images/activity_lifecycle.png Feb 12 03:53:57 andriod x86 Feb 12 03:54:23 cyclonis: i can boot mine up if you want me to :D Feb 12 03:54:42 t0astt, I have seen that thing actually. unfortunately onConnected isn't in there. I will assume its called after onCreate though, seeing as its so early in the cycle Feb 12 03:54:47 and try it with the logs Feb 12 03:54:47 bilb_ono this one is a little better https://raw.githubusercontent.com/xxv/android-lifecycle/master/complete_android_fragment_lifecycle.png Feb 12 03:55:07 Holy crap, that's an wesome diagram g00s. Bookmarked! Feb 12 03:55:20 lol Feb 12 03:55:27 hey DadFoundMy Feb 12 03:55:42 when trying to install mine its not detecting my virtual drive Feb 12 03:55:53 im running vmwar esxi 5.5 Feb 12 03:55:56 you using vmware or virtual box? Feb 12 03:56:00 nvm haha Feb 12 03:56:16 vmware Feb 12 03:56:20 I use vmware, and not had issues like that, worked pretty esaily Feb 12 03:56:47 *and didn't have issues like that Feb 12 03:56:55 when i click on modify or create partition Feb 12 03:57:52 im getting the following error ok there is no hard drive to edit partitions Feb 12 03:58:46 yeah im not sure, that sounds like more of a gerneal vmware issue rather than a android issue though Feb 12 03:59:02 some sysadmin would probably know the answer somewhere Feb 12 03:59:52 ok Feb 12 04:02:51 yeah onConnected is after onCreate :( Feb 12 04:03:14 bilb_ono onConnected .. what ? Feb 12 04:04:10 Of course it’s after, you set the listener in onCreate() Feb 12 04:04:38 deuteros: thats what i was thinking Feb 12 04:05:49 also, line 64, you want to display mLatitude, not mLastLocation Feb 12 04:06:10 Quick question: What's the deal with certain variables being prefixed with "m"? Feb 12 04:06:28 member Feb 12 04:06:30 t0astt: It’s an Android convention Feb 12 04:06:40 Any good references you could shoot by me? Feb 12 04:07:00 t0astt: For the style guide? I’m sure a google of android style guide would help Feb 12 04:07:49 bilb_ono: The reason your code doesn’t work is that when onCreate() runs, your activity hasn’t bound to the service location yet Feb 12 04:10:08 bilb_ono: Here is one way to fix it: http://pastebin.com/npjjCdX9 Feb 12 04:11:08 t0astt: think like myVariable for java instance variables Feb 12 04:11:31 so all instance variables should be prefixed with my? Feb 12 04:11:38 No, not on Android Feb 12 04:11:42 no Feb 12 04:11:43 that’s more like Perl I believe Feb 12 04:11:52 most should be with m Feb 12 04:11:55 http://en.m.wikipedia.org/wiki/Member_variable Feb 12 04:11:56 Field are mFoo, local variables don’t have a prefi Feb 12 04:11:57 x Feb 12 04:12:14 statics normally have s, and there are some others i believe Feb 12 04:12:20 hmm Feb 12 04:12:30 so there's no variable naming convention reference for android? Feb 12 04:12:34 now that i think of it is a static variable a instance variable? Feb 12 04:12:37 i guess not Feb 12 04:13:26 t0astt: Yes there is, i guess you were too lazy to google so I did it for you: https://source.android.com/source/code-style.html#follow-field-naming-conventions Feb 12 04:13:57 Sorry deuteros. I'm just doing math homework and keeping up with the conversation on here at the same time. Feb 12 04:14:59 I find that page funny. my cs teacehr marks me off when I use brackets like that Feb 12 04:15:07 i continue to do so regardless of the points off Feb 12 04:15:30 DadFoundMy: Silly on your teacher’s part, he should know better Feb 12 04:15:44 although I understand that if you grade tens of papers, having a somewhat uniform style helps Feb 12 04:15:46 I thought that's how bracketing was supposed to be done? Although if I'm writing a heavily bracketed/nested segment of code I'll start brackets on new lines, at least until the code has been written. Feb 12 04:15:47 yeah really should. not a bad teacher, not a great one either Feb 12 04:16:07 thats funny; my teachers had like -10 for each global, etc Feb 12 04:16:18 where is a good guideline for android naming conventions? Feb 12 04:16:23 We see both styles: { on the same line or on a line of its own, just follow whatever convention was picked Feb 12 04:16:24 deuteros: yeah, thats his thought process which kinda makes sense, but at the same time it takes up sooo much more paper (handwritten) Feb 12 04:16:31 drinfernoo: I just gave a link to it Feb 12 04:16:46 haha whoops Feb 12 04:16:57 g00s: Now that’s more sensible as a grading scale Feb 12 04:17:10 I would definitely take away points for using globals :) Feb 12 04:17:15 this is the same teacher who tried to teach the android sdk in an intro to android class b4 teaching classes, objects, interfaces, ect Feb 12 04:17:20 never had i been more confused in my li9fe Feb 12 04:17:26 oh god Feb 12 04:17:31 Harsh Feb 12 04:17:39 now that im fairly fluent in java its sooo much easier Feb 12 04:18:04 wait, before i meant to say intro to java course Feb 12 04:18:14 not intro to android, that would make sense Feb 12 04:18:17 my only regret is that my java classes didn't go deeper into the language. It was pretty much "teach students the basics and then have them apply them with different projects" Feb 12 04:18:24 ugghg Feb 12 04:18:29 still getting the same error Feb 12 04:18:32 im getting the following error ok there is no hard drive to edit partitions Feb 12 04:18:54 t0astt: i actaully kind of like that, because it gives students the abilty to then learn what they want on their own through books and such Feb 12 04:19:22 once my teacher taught the basics of the langague, i just read a book to understand it way better Feb 12 04:19:40 I suppose so, but when you start piling more homework from different classes on it starts to restrict the time to do that. For instance, I still have no idea what interfaces and protected variables are lol Feb 12 04:19:46 Even though I've been using them Feb 12 04:19:54 oh god Feb 12 04:20:29 the best way it was described to me was instance variables are the variables that could be used to described a class in words Feb 12 04:20:51 interfaces, not instance variables. I understand instance variables perfectly :) Feb 12 04:21:11 and protected doesnt really matter, i believe it just means that any class in the package, and inherited classes can use the variables Feb 12 04:21:24 t0astt: my suberb reading skills strike again Feb 12 04:21:28 I think it's hilarious how long it took me to fully grasp OOP though, because now I think it's hard to imagine NOT understanding OOP Feb 12 04:21:37 xD Feb 12 04:21:41 Have a cookie xD Feb 12 04:22:05 i believe interfaces just define a set of methods a class needs to implement Feb 12 04:22:23 so like onClickListener needs to implemt onClick() Feb 12 04:22:34 but i believe listeners are more complex than that Feb 12 04:23:49 Listeners can be interfaces or classes Feb 12 04:48:28 is there a list anywhere of the theme attributes that work only if set directly on the or elements in AndroidManifest ? Feb 12 05:06:16 does anyone see Android Studio 1.1 RC 1 available through updates? for some reason i don't Feb 12 05:06:41 oh canary Feb 12 05:07:23 beta only, same for the gradle plugin Feb 12 05:09:33 on the topic of andorid studio, what does it do so much better than eclipse to make it worth a switch? Feb 12 05:10:18 everything Feb 12 05:10:35 ...like? Feb 12 05:10:37 the only attraction for me was using the google android-gradle plugin, which you can't use in eclipse Feb 12 05:11:33 bankai_: Disagree Feb 12 05:11:42 There are a few things quite irritating about Android Studio compared to Eclipse Feb 12 05:11:58 you're holding it wrong Feb 12 05:12:01 No incremental compilation, need to build manually, logcat view is super slow Feb 12 05:12:26 incremental compilation in eclipse is great... when it works, but it also means you have to do that stupid 'clean' crap Feb 12 05:12:28 Refactoring have more friction too Feb 12 05:12:49 You don't need to clean for incremental compilation to work (never had to) Feb 12 05:13:07 AS/IDEA is a great IDE, no question, but it's not a slam dunk compared to Eclipse Feb 12 05:13:17 oh also traceview and other tools are not integrated at all, as opposed to Eclipse Feb 12 05:13:28 I could go on Feb 12 05:15:47 noob question: is there a way to make a folder in android project that "becomes" internal storage? like "assets" Feb 12 05:20:28 huh? Feb 12 05:20:47 I am using NDK with no ecclipse Feb 12 05:20:56 and i want in my project some files Feb 12 05:21:02 like config.cfg Feb 12 05:21:09 and level00.map Feb 12 05:21:35 for easy I/O Feb 12 05:21:47 then store it in assets and read from assets Feb 12 05:21:58 i did it ^_^ Feb 12 05:22:03 then what's the problem Feb 12 05:22:10 i want to write it too Feb 12 05:22:25 like change config/edit level on device Feb 12 05:22:38 is there an easy way to handle internal storage dir Feb 12 05:22:49 or app must generate internal storage? Feb 12 05:23:44 I managed to read files through /asset directory Feb 12 05:23:45 "generate internal storage"!? Feb 12 05:24:00 for example Feb 12 05:24:06 game have map00.map Feb 12 05:24:19 i want to havethis file not-readonly Feb 12 05:25:08 Ah, you'll have to create a file in storage for that, e.g. /sdcard. Or database Feb 12 05:25:37 NDK-way? Feb 12 05:25:53 so /myadroidapp/sdcard ? Feb 12 05:28:34 deuteros__ read any good books lately ? Feb 12 05:28:58 g00s: technical? I have severely slowed down in that area, sadly, so, no Feb 12 05:29:09 :( Feb 12 05:29:36 I read a lot of technical stuff online on a daily basis though, kinda makes up for it Feb 12 05:29:39 any good docs how to NDK the internal storage? Feb 12 05:35:11 by calling jni into java apis Feb 12 05:35:44 i read that Feb 12 05:36:19 but there is example of what needed - -- Feb 12 05:36:32 I have map00.map file (binary) on my PC Feb 12 05:36:44 I want to integrate it in my android project Feb 12 05:37:18 where to place it in android project directory so I could not just (asset) read it but also and write to it (internal storage) Feb 12 05:37:32 or i need manually move from asset to internal storage at 1st run? Feb 12 05:37:41 anything you put in your project is read-only Feb 12 05:37:45 must copy it on first-run Feb 12 05:37:47 if you want it r/w Feb 12 05:40:11 =( Feb 12 05:43:47 is there a theme attribute for WindowManager.LayoutParams.width/height ? Feb 12 05:44:48 hm, windowFixedWidthMajor and Minor ... Feb 12 05:45:07 pfn, ty for answer Feb 12 06:16:33 how to dog? Feb 12 06:16:50 I mean, I have a view that will be 100% obscured and I don't want it to be drawn when it is Feb 12 06:17:02 because that would be slow and silly Feb 12 06:17:31 according to my understanding of overdraw so far, Android frameworks usually draw everythign regardless of how deep the view hierarchy gets Feb 12 06:17:48 At least that's what my cargo cult says Feb 12 06:44:30 so if I'm going to try and get away from fragments, is there anything in particular I should keep in mind? Feb 12 06:48:10 why would you like to do that ? Feb 12 06:55:11 hi guys quick question how do you integrate with contacts? like put your own messenger app or voip app in there? Feb 12 07:01:35 Hi , I am creating a app , I need to capture images when the device is locked (sleeping) , I am using services but is it possible to capture image using services ? I am getting takePicture Failed error Feb 12 07:03:24 knapper_tech, nope, overdraw only occurs with alpha Feb 12 07:04:16 knapper_tech, for opaque draw, clipping is handled Feb 12 07:04:56 Is possible to capture images using background services ? I can detect shake and other hardware from background , but in camera i am getting take Picture failed Feb 12 07:09:56 ? Feb 12 07:14:33 maybe "camera" not alive? Feb 12 07:15:47 quasist : camera is alive Feb 12 07:16:46 quasist : In the background , in a service i am trying to capture an Image , but only takePicture faled error showing, the Android version is 5.0.2 (lolipop) does this have to do with something ? Feb 12 07:38:32 Hello there! Does anyone know an app for testing different colors on default material layout? For ex I want to know how green action bar will look like with pink accent. Feb 12 07:41:06 sounds pretty easy to test Feb 12 07:46:38 Yes, but I wanna do it on my phone just entering colors of elements in hex. Nobody made it yet? Feb 12 07:48:32 you might be the first one Feb 12 07:50:20 we still have monochrome displays... Feb 12 08:26:45 hm, looks very interesting http://realm.io/news/andy-matuschak-controlling-complexity/ Feb 12 08:56:55 bindFragment and bindActivity don't seem to exist in the RxJava I'm gradling in. Feb 12 08:57:22 rxjava 1.0.0, rxandroid 0.0.24 Feb 12 08:57:31 rxjava 1.0.0, rxandroid 0.24.0 Feb 12 08:57:45 wonder if i'm doing sirrry things Feb 12 09:34:38 does all android 4+ have that horrible audio lag? Feb 12 09:38:00 where was session on google i/o how to deal with audio Feb 12 09:38:35 or I dont know what do you mean by that 'lag' Feb 12 09:38:37 will it help me with old lil russian clone of YDPLIS G19.... Feb 12 09:38:57 i mean then before every played sound there is a slight delay Feb 12 09:39:05 if I'd know what that is Feb 12 09:39:13 gaming console Feb 12 09:39:24 https://www.youtube.com/watch?v=d3kfEeMZ65c Feb 12 09:40:11 or it was that.. https://www.youtube.com/watch?v=92fgcUNCHic Feb 12 09:40:19 ty for link Feb 12 09:40:22 but it was rather the first one Feb 12 09:41:08 and a quick question... Feb 12 09:41:27 like in SDL_mixer there channels for mixing Feb 12 09:41:51 do I need to create few players in OpenSL to play few wavs at same time? Feb 12 09:56:10 *sigh* Feb 12 09:56:27 anyone figured out why NDK/Clang3.5 calls out to wrong ld on OS X? Feb 12 09:57:54 <|\|19htVV0|F> is it possible to bulid an Android from the source and put in in a tablet (changing the OS) ? Feb 12 10:00:02 Yes. It's not easy or fast. Feb 12 10:08:41 |\|19htVV0|F: #android-root Feb 12 10:08:55 i tried once, and failed.. Feb 12 10:10:35 hi, my employer seems to be convinced that I can find out what google searches led to our app's page in the play store though I can't seem to find out how to do it. is it? if so where should I look at? Feb 12 10:11:04 there was even video tutorial on xda how to do this Feb 12 10:11:11 I mean build android from sources Feb 12 10:11:50 gordon_: thanks for clarifying, I'd be looking at xda now for that video otherwise :p Feb 12 10:12:19 hope you have 8 hours Feb 12 10:12:22 good luck anyway ! Feb 12 10:12:40 and *alot* of ram :) Feb 12 10:13:05 I'd take some server power off google cloud to do it Feb 12 10:13:22 or amazon Feb 12 10:13:30 nb-ben: look into INSTALL_REFERRER Feb 12 10:14:14 gordon_ was talking about building aosp Feb 12 10:14:30 SimonVT: will that include google search information i f the user arrived at the playstore from google? Feb 12 10:15:57 No idea Feb 12 10:15:58 Try it Feb 12 10:15:59 nb-ben: no, you will have to get gapps and flash them later Feb 12 10:16:22 aosp doesnt have any google app Feb 12 10:17:02 gordon_, that has nothing to do with nb-ben's questions Feb 12 10:17:40 agreed Feb 12 10:17:55 SimonVT: I though he want to build android and put it on tablet? If I'm wrong - sorry Feb 12 10:18:05 That was another guy Feb 12 10:18:58 SimonVT: I haven't a clue as to how to test it without uploading to play store Feb 12 10:21:36 I've never used it, I just know about it. But uploading a dummy app for testing would seem like an obvious way to do it Feb 12 10:23:07 and this way play store has millions of apps :v Feb 12 10:23:16 Pass referrer headers to play store somehow Feb 12 10:23:28 yeah I see Feb 12 10:23:30 You can unpublish apps Feb 12 10:23:45 And if there's no other way to test it, not much to do Feb 12 10:23:55 * nb-ben is mentally preparing for a long day for something stupid and tiny Feb 12 10:24:13 Could also create alpha/beta groups and add it Feb 12 10:24:21 Test it that way Feb 12 10:24:34 yeah I know. it's gonna be like testing inappbilling lol Feb 12 10:24:52 Or just throw it in production, it appears to completely separate from the rest of the app Feb 12 10:24:54 no, worse actually Feb 12 10:25:25 yeah I just need to write a broadcast receiver Feb 12 10:25:33 and then I can move it around to the actual app Feb 12 10:26:06 alo Feb 12 11:10:27 why isn't there a simple way to get the current application version, like you can just use Build.VERSION to get the android version? Feb 12 11:11:25 isn't it defined on build (by AndroidManifest.xml) anyway? Feb 12 11:11:32 or is it dynamic somehow Feb 12 11:12:21 you specify the version in the androidmanifest.xml yes Feb 12 11:12:26 do you want it programmatically ? Feb 12 11:17:05 bankai_: yes Feb 12 11:17:10 in a static context Feb 12 11:17:18 more specifically, in an object (scala) Feb 12 11:27:00 It's in BuildConfig Feb 12 11:31:42 SimonVT: what's that? I can't find it on the reference Feb 12 11:32:49 Darkwater, what do you want exactly Feb 12 11:33:06 do you want the current android sdk version of the device your app is running on? Feb 12 11:33:12 It's a class that's generated at build time that has, among other things, app version Feb 12 11:33:13 or do you want your application's version Feb 12 11:33:29 oh yes that is Build.(wahtever) Feb 12 11:33:38 you can put more properties in there using gradle Feb 12 11:33:57 SimonVT: keep in mind I'm using sbt, not ant Feb 12 11:34:06 lemonxah: I want the versionname of the application Feb 12 11:34:13 as specified in AndroidManifest.xml Feb 12 11:34:14 Darkwater, i use scala with gradle Feb 12 11:34:42 build time is a few seconds longer but my company only agreed on me using scala if i could do it with gradle Feb 12 11:35:00 If your build tool doesn't generate it, find another build tool.. Or parse your manifest at runtime Feb 12 11:35:12 I know this build environment is bad (it's worse than just sbt) but I don't want to switch to another build tool Feb 12 11:35:13 Or generate your own class at compile time Feb 12 11:35:19 I'd rather build the entire thing from the ground up Feb 12 11:36:32 are you using pfn 's android sbt plugin? Feb 12 11:36:49 I think so Feb 12 11:37:48 https://github.com/pfn/android-sdk-plugin Feb 12 11:37:49 ? Feb 12 11:38:01 yeah Feb 12 11:39:06 then the best person to speak to would be pfn himself to find out how to get stuff into the Build class Feb 12 11:39:24 dont know if pfn is awake or here (dont know the timezone he is in) Feb 12 11:47:07 what header i must include in NDK project to have AttachCurrentThread ? Feb 12 11:54:29 quasist, jni.h Feb 12 11:54:57 afaik its the only file that need to be included Feb 12 12:00:28 strange... did not worked for me... Feb 12 12:00:30 Help! i have a popup that ask user for several inputs. in those input some are populated by default values and are very unlikely to be modified. what would be the best approach to hide them in order to make feel less complex? my question is: 1: is their any View that compress them and when user click "More" it expanded. 2: instead of going to 1st approch, shall i just hide them when user is adding (but are not hidden while editin Feb 12 12:00:30 g?) Feb 12 12:01:09 * but are shown while editing? Feb 12 12:01:55 (note: user experience as well as technical query) Feb 12 12:03:28 i have read google ui guide and it says that populate defaults to make user less work. Feb 12 12:04:51 i have minimum required: 3 (and total of 6 input) any recommendation? Feb 12 12:12:27 hi guys, i need a way to capture the logs from my device and send it to me say every day, to try to solve a random issue with my app, any ideas on how to best do this? Feb 12 12:14:14 asperon, use crashlytics Feb 12 12:15:37 lemonxah, i am using acra today, but its not a crash per ce, but a strange behaviour that i need to debug, but it happens so seldom that i need to do it from the logs Feb 12 12:16:12 creash per ce? Feb 12 12:16:16 oh per ce Feb 12 12:16:17 nvm Feb 12 12:16:18 lol Feb 12 12:16:21 :) Feb 12 12:17:45 ill just wrap log util and write it to a text file Feb 12 12:18:19 yes cause if you pull the logs it will have EVERYTHING in it Feb 12 12:18:21 of all apps Feb 12 12:18:24 not just yours Feb 12 12:19:01 https://code.google.com/p/android-log-collector/ Feb 12 12:19:09 you can take a look at something like that Feb 12 12:19:39 had that before, stopped working in 4.0 or 4.1 or something Feb 12 12:19:51 its open source you can fix it ? Feb 12 12:20:16 its a change in android, cant use READ_LOGS as of that version forward Feb 12 12:20:19 could be 4.2 Feb 12 12:21:05 oh sorry never used it before? Feb 12 12:21:08 oh sorry never used it before** Feb 12 12:23:17 asperon: since it is your device you can grant the read logs permission to your app using adb. Feb 12 12:23:22 I think Feb 12 12:23:43 appel1, aha, that could be an option, or can i just dump yesterdays log to file somehow? Feb 12 12:24:11 asperon: using adb pm grant android.permission.READ_LOGS Feb 12 12:24:29 asperon: if you connect your device with usb you can just use adb logcat to get the currently available log Feb 12 12:24:42 older logs are not kept anywhere Feb 12 12:25:33 thats to short, i just added a log to file function to the app, ill remove it when i find the issue Feb 12 12:26:13 Leeds: are you still awake? Feb 12 12:34:07 * NotSoSerious hi all ;) Feb 12 12:34:41 hi Feb 12 12:35:01 sup? Feb 12 12:44:22 no Feb 12 12:46:20 hi can i get date of a contact when added ? Feb 12 12:50:04 doesn't seem possible Feb 12 12:50:50 ty Feb 12 12:52:18 ios has it and android not, im suprised Feb 12 12:55:21 sci-fi: there are bound to be differences :v Feb 12 12:56:18 RC1 represent. Feb 12 12:56:31 ios doesn't have mime-based app pickers Feb 12 12:57:55 :D Feb 12 13:07:39 thepoosh: ping? Feb 12 13:10:56 Leeds: pong! Feb 12 13:10:59 sup? Feb 12 13:11:12 Right. So I'm going crazy. This code is inside an AsyncTask.doInBackground method. The second "if" is taken. http://pastebin.com/i1ZwntQQ Feb 12 13:11:17 immigration stuff mostly, this week Feb 12 13:11:29 (So, the else clause ;) ) Feb 12 13:11:58 immigration? Feb 12 13:14:28 It's just a few lines of code (string comparison). How can it be that the ELSE clause is taken according to eclipe ? Feb 12 13:14:46 Looking for how to let a webview give applications a chance to open specific URL's. Feb 12 13:15:16 the same way that they get a shot at specially crafted URL schemes etc because of their manifest Feb 12 13:15:58 I'm still on a non-permanent visa here in HK - needs to be renewed every 1-2 years... need to prove to the government that I'm living here (tenancy agreement), working (letter from my employer/client), paying tax (tax return/receipt), etc. (bank statements and more) Feb 12 13:16:47 knapper_tech: you mean you have a webview, and you want links to - say - youtube.com to launch the youtube app? Feb 12 13:16:54 JeroenDL: Have you used Log.i to verify that the 'else' path is taken? Feb 12 13:17:03 Debuggers aren't always accurate. Feb 12 13:17:29 Leeds, exactly Feb 12 13:17:44 Leeds, how about Seoul? Feb 12 13:18:12 thepoosh: and bad timing... my renewal always comes up just before Chinese New Year, which means before big annual holiday, so it can be a rush to get the right papers together before - this year - going to Australia Feb 12 13:18:17 knapper_tech: what about Seoul? Feb 12 13:18:55 JeroenDL, is this when you are debugging it goes into the else? or what do you mean Feb 12 13:18:59 Leeds, my company will be expanding soon and could use another Android dev competant at IRC since we use slack internally. Feb 12 13:19:15 lemonxah: yeah, when I'm debugging Feb 12 13:19:30 what happens when you are loggin with log.i ? Feb 12 13:19:33 It looks like it's indeed taking the if and not the else (according to logcat). Feb 12 13:19:36 insde the if Feb 12 13:19:37 How can I fix that? Feb 12 13:19:51 I've already restarted device, adb and eclipse Feb 12 13:19:53 best way JeroenDL is to use android studio :) Feb 12 13:20:03 i dislike eclipse soooo much Feb 12 13:20:12 knapper_tech: happy to visit Seoul - going in May... don't think I want to live there Feb 12 13:20:17 IntelliJ's debugger makes similar mistakes, though. Feb 12 13:20:28 yeah but might not be the exact same one Feb 12 13:20:36 and also the other thing that might be happening is Feb 12 13:20:47 Leeds, send me an email at knappador@gmail.com for a tour ;-D Feb 12 13:20:50 IMO, IntelliJ and Eclipse are both not amazing. It's just these problems versus those problems. Feb 12 13:20:54 if the code in the debugger and the process the debugger is attached to is not the same Feb 12 13:20:56 The Gradle integration is nice, I guess. Feb 12 13:21:14 It probably has something to do with the AsyncTask as well Feb 12 13:21:32 IntelliJ does't crash as much as eclipse .. i mean my intelliJ has been running for over 2 months without having to restart it or it crashing Feb 12 13:21:35 Leeds, still working on how to give other apps a shot at intercepting the URL. seems like I need to try sending an intent, but I don't want the default browser to just always take over. Feb 12 13:21:39 eclipse crashed tiwce a day Feb 12 13:21:45 Not recent versions of Eclipse. Feb 12 13:21:53 I've not seen a recent Eclipse crash ever, I think. Feb 12 13:22:03 which recent eclipse? Feb 12 13:22:07 Luna. Feb 12 13:22:07 in the last year? Feb 12 13:22:16 cause i switched 1.5 years ago Feb 12 13:22:30 also gradle integration makes it moar!?! easy Feb 12 13:22:33 knapper_tech: it's a while since I've looked at that sort of thing... you should be able to get a list of the apps which can handle each URL, so you can decide whether or not to pass it on, but I'm not sure off the top of my head how you'd exclude browsers Feb 12 13:22:58 Leeds, sounds like a start. Feb 12 13:23:21 also the tooling in intelliJ vs tooling in eclipse .. there is no comparisson Feb 12 13:23:35 but in the end it all boils down to personal preference i guess Feb 12 13:24:28 Leeds: i'm looking for an invite for a OnePlus Feb 12 13:24:30 you someone? Feb 12 13:24:37 *you know someone Feb 12 13:24:39 Yeah. I probably prefer IntelliJ overall, but I don't buy this common idea that it's way better than Eclipse. Feb 12 13:25:10 IntelliJ gets so many things wrong. An example is close buttons on tool windows. They appear on the left in arbitrary (and changing) locations. Feb 12 13:25:14 Sometimes they appear in the overflow. Feb 12 13:25:21 thepoosh: I've turned down a bunch... aren't they saying it's open sales every tuesday now? Feb 12 13:25:21 It's a small thing but it's a constant pain for me. Feb 12 13:25:56 the tooling makes it better for me Feb 12 13:26:08 refactoring code Feb 12 13:26:15 Another thing is not being able to press Alt+Enter anywhere on the line. I have to move the caret to the problematic identifier and press Alt+Enter. Didn't have to do that in Eclipse, and it was much better. Feb 12 13:26:16 refactoring a class name and it does it all over the place Feb 12 13:26:32 you can press alt enter on the line Feb 12 13:26:35 its a setting Feb 12 13:26:51 Auto-popup of intellisense is way too slow. Slows down my typing. I have to wait before pressing Alt+Enter in order to auto-import, which again slows me down. And so on. Feb 12 13:27:05 lemonxah: Hmm, must've missed that. Let me see. Feb 12 13:27:21 also the slowness of intellisense does not bug me at all Feb 12 13:27:30 you cant code fast if you only autocomplete anyway Feb 12 13:27:49 but i guess that could get to people Feb 12 13:28:05 TacticalJoke, its either a setting a plugin i have, but i think its a setting Feb 12 13:28:21 I can't seem to find it. Feb 12 13:28:42 The slow autocomplete is really tedious for me. Eclipse was way faster. Feb 12 13:28:53 Another thing Eclipse does better is super-fast incremental building (although not having Gradle wasn't as nice). Feb 12 13:29:07 i dont mind the slow building Feb 12 13:29:18 this building is still faster than building something in the 80s Feb 12 13:29:44 also i use scala so my build time takes longer also Feb 12 13:34:07 Leeds: they do, but I wrecked my phone today Feb 12 13:34:14 and don't want to wait until tuesday Feb 12 13:34:41 thepoosh: probably can't help you then, sorry :( Feb 12 13:34:52 TacticalJoke: you can set AS to have Eclipse shortcuts Feb 12 13:35:04 doesn't everyone have at least one spare phone lying around? :) Feb 12 13:35:23 we have a few in qa but they're complaining that i'm steaking devices Feb 12 13:35:26 *stealing Feb 12 13:35:36 thepoosh: That doesn't address the stuff I'm talking about. Feb 12 13:36:23 I've got a spare one that I use as a travel phone/mifi Feb 12 13:36:38 can I have it? Feb 12 13:36:44 how fast can you ship it to Israel Feb 12 13:36:46 :P Feb 12 13:37:33 well, no - I'll need it in Australia next week! Feb 12 13:39:12 and I'll be busy trying to get all the paperwork into Immigration before I go, so I'll have a visa when I get back... Feb 12 13:43:46 thepoosh, how did you wreck your phone? Feb 12 13:47:49 My muPDFReader is crashing with lseek Errors. Does anyone else experience this problem? I haven't found anything searching for the error. Feb 12 13:51:48 lemonxah: dropped it while going trhough a metal detector Feb 12 13:59:44 and no case, presumably Feb 12 14:03:08 Darkwater, easiest approach is to use sbt-buildinfo Feb 12 14:03:29 nah I've already solved it in an ugly way Feb 12 14:04:02 lemonxah, yuck Feb 12 14:05:16 What Intent FLAG can I use to make sure only one instance of the Activity is open at once? Feb 12 14:08:15 single instance... Feb 12 14:08:37 gj reading documentation Feb 12 14:14:06 pfn: There is not single istance flag. Feb 12 14:15:35 there is. Feb 12 14:16:28 does anyone happen to know of a guide for moving from robolectric to espresso? Feb 12 14:17:16 uh Feb 12 14:17:22 that's not really compatible O.o Feb 12 14:17:23 pfn: You mean FLAG_ACTIVITY_NEW_TASK? Feb 12 14:18:00 what do you mean not compatible? Feb 12 14:18:26 no, what's wrong with googling for single instance, barq Feb 12 14:26:08 shekibobo: You realise that you're talking about going from JVM testing to Android testing, right? Feb 12 14:26:59 How do i open another activity when i click a button ? Feb 12 14:27:52 Nightwalkerkg: Google is more knowledgeable than anybody in here. Feb 12 14:28:20 The people in here are good at answer specific questions, however. :) Feb 12 14:28:23 answering* Feb 12 14:29:17 TacticalJoke: I'm really just trying to wrap my head around how google expects people to test. Right now I'm using robolectric to unit-test fragments and activities. I think I'd like to find an alternative to using robolectric, but at this point, I'm not even sure if that's really what my problem is Feb 12 14:29:42 Why did you switch to Robolectric? Feb 12 14:29:43 Stop wondering what Google expects Feb 12 14:29:49 And start doing whatever works for you ;) Feb 12 14:29:49 inherited it Feb 12 14:30:13 The idea behind Robolectric was (as far as I know) testing that is fast and that doesn't need devices attached. Feb 12 14:30:24 right, and that's been pretty great Feb 12 14:30:35 But of course there are limitations: the tests aren't running on Android. Feb 12 14:31:27 except when I switched to using AppCompat + Robolectric 3 (which seems to support it just fine) my tests are *painfully* slow now Feb 12 14:31:54 You could switch from Robolectric to Mockito, but it would mean writing some mocking stuff manually. Feb 12 14:32:10 Or you could switch to Espresso, but it'd mean no more fast-and-deviceless JVM unit tests. Feb 12 14:32:13 Or you could switch to both. Feb 12 14:32:45 I'm gonna be using both, personally. In fact, three thing: normal unit tests, normal unit tests with Mockito, and Android unit tests with Espresso. Feb 12 14:33:11 right, which is what I mean by "migrating from robolectric to espresso" Feb 12 14:34:08 I've got regular unit tests, robolectric tests (which I guess some will just be able to use android if I switch to their built-in unit testing?), and espresso for the fragment and activity tests Feb 12 14:34:46 What do you mean by "will just be able to use android"? Feb 12 14:34:48 or at least, that's what I think it should be, but I'm open to suggestion Feb 12 14:35:44 did they change how they stub their testing android library? or is it still the same old empty thing that will throw a Stub! when you try to use it? Feb 12 14:36:06 There is now an option to disable the "Stub!" exception. Feb 12 14:36:18 And I think methods that return values now return default values (e.g., 0, null, etc.). Feb 12 14:36:24 if I have stuff that uses android apis incidentally, but doesn't rely on the activity lifecycles or anything, will those fail? or I just stub that stuff out now Feb 12 14:36:48 Check out the bottom of this: http://tools.android.com/tech-docs/unit-testing-support Feb 12 14:37:39 yeah, okay Feb 12 14:38:38 and anything that explicitly depends on lifecycle (activity/fragment behavior, gcm, notifications) or a context (or can you mock a context?) would end up in espresso tests, right? Feb 12 14:38:54 I think the idea behing using the JVM for unit testing is to test individual units of code that don't care about Android-specific stuff (even if they somewhat interact with Android-specific stuff). Feb 12 14:39:10 shekibobo: I think so, yeah. Feb 12 14:40:29 I think the general idea is this: if Android's behaviour is important, use Android tests (with, e.g., Espresso); if not, you can use JVM tests instead if you like (which are faster and which don't require devices connected). Feb 12 14:40:33 so while robolectric allows me to fake all the activities and test out behavior, I'm wondering if there are any guides that might help an aspiring espresso tester to change their test suite to follow that pattern Feb 12 14:41:14 I suspect that the only guide will be the Espresso documentation. Feb 12 14:41:23 But I haven't googled. Feb 12 14:42:14 does espresso have ways of faking network calls/responses? Feb 12 15:14:43 espresso is for ui testing... Feb 12 15:22:32 pfn: Is there a way to do singleInstance by setting flags, because I am not able to modify the manifest. Feb 12 15:37:30 to use a mathod added in API 19 i have to set compileSdkVersion, minSdkVersion and/or targetSdkVersion to 19? these values are currently 13,13,17 Feb 12 15:39:16 Hi guys , I have plenty of questions to ask , so I hope is here someone who can help me Feb 12 15:42:12 p0wonTnx: so, two hints: firstly, you can just ask - you don't need to announce that you're going to ask... secondly, please don't ask dumb questions :) Feb 12 15:43:37 Firstly , I wanna know if using embed NoSQL databases is more efficient than SQLite , if yes I'm wondering to give if there are any limitations , and thanks Feb 12 15:43:52 Leeds, p0wonTnx I wouldn't say so much don't ask dumb questions, but more, don't ask questions that are quickly answered with a stackoverflow search Feb 12 15:44:39 theblang: I was trying to find a way to say "please check the docs first", then I thought, bugger it "don't be dumb" Feb 12 15:45:12 Leeds: haha, yeah Feb 12 15:45:27 also, by the way, don't be vague Feb 12 15:46:06 p0wonTnx: NoSQL is more convenience, less efficiency, typically. Android has a lot of SQLite convenience built in, so unless you have some requirement to use NoSQL, I'd just use SQLIte Feb 12 15:46:45 p0wonTnx: With small data sets it probably won't really matter, but again, I've always used SQLite due to it being supported officially Feb 12 15:47:05 luist: you targer always newest sdk, currently 21 Feb 12 15:47:22 to use methods introduced in 19 you should do minSdk=19 Feb 12 15:47:37 but that limits your app to 19+ devices Feb 12 15:47:52 How can I add a custom action to the back stack and remove it etc? Need to push handlers into Activity's onBackButton method? Feb 12 15:48:43 Ashiren, luist Which is probably not something you want to do unless you are targetting a specific device for a customer. Set min to as far back as the audience you want to reach, set target to the latest, and make use of the support libraries to hopefully do what you need on older API levels Feb 12 15:50:15 theblang: i was using min 13 because i didnt need anything after that API version… now i need to use remote debugging which requires API 19 to use setWebContentsDebuggingEnabled() Feb 12 15:50:38 theblang: i just want to setup the versions correctly for this, but i’ll be probably setting back to 13,13,17 later Feb 12 15:50:46 Is it possible to get the time when user exited the video when using YouTubeStandalonePlayer, please help guys Feb 12 15:51:18 Something makes me wnat to use RxJava as an event bus for back actions to poll fragments... Feb 12 15:54:33 theblang : First to be clear why I'm using NoSQL : I'm creating an app which track location updates , and according to these locations I make a search in a list of locations saved by the user and depends on which location the user is at , a specific action will be applied . So , because the location will be updated frequently I don't want each time to search in all the list of locations saved by the user but I want some kind of Feb 12 15:55:24 So I found that graph databases make this possible and more performant Feb 12 15:55:49 theblang : what do you think ? Feb 12 15:58:48 how to move whatsapp and others to sdcard on xperia M? Feb 12 16:03:20 p0wonTnx: have you found graph database library that works out of the box? Feb 12 16:03:51 (for android) Feb 12 16:13:03 p0wonTnx: what's the location model like Feb 12 16:20:25 hi Feb 12 16:20:44 anybody frm EU :)? Feb 12 16:21:23 nope Feb 12 16:22:38 hmm Feb 12 16:23:48 well anybody from EU Feb 12 16:23:51 who can code Feb 12 16:23:58 pls msg me fi you wnat to help me Feb 12 16:23:59 guys how i can make drag animation like status bar to one of my views? to be honest i am not sure how to do google it Feb 12 16:24:03 dev18 ? Feb 12 16:24:05 What's a good scheme to use RxJava to build an event bus? I need to handle a back button from a view in an unrelated area and would like to pipe it through a lightweight controller on app. I figure a PublishSubject is a good way to get the event out. If I immediately subscribe to a reply in another PublishSubject, as long as it's all synchronously scheduled on MainThread, I should know if anything replied. Feb 12 16:24:11 why is my chrome://inspect not displaying the WebView? it only displays the device :( Feb 12 16:24:14 dev18: seriously? you're just asking for anyone in Europe to offer to help you? Feb 12 16:24:36 its like racism for countries :D countrycism Feb 12 16:24:38 LOL Feb 12 16:24:45 well it's the same time-zone right Feb 12 16:24:51 no Feb 12 16:24:54 almost Feb 12 16:24:55 well it's irc Feb 12 16:25:07 Might be TZ-ism...but usually if you need longer term collaboration, you need to hire someone for skrill Feb 12 16:25:14 and not only from EU... guy from EU who wants to help Feb 12 16:25:19 :D Feb 12 16:25:24 :$ Feb 12 16:25:29 or whatever they use there. is it even money? Feb 12 16:25:30 just ask man Feb 12 16:25:53 okay well in general, somebody who wants to help me, pleas pm me :) Feb 12 16:26:00 apologies for the EU stuff bfo Feb 12 16:26:01 knapper_tech: krill, maybe? Feb 12 16:26:06 dev18: help with *what*? Feb 12 16:26:38 I just read the news about Ukraine. That's west of Spain, right? Seems like the whole continent is overrun by communists these days. =P Feb 12 16:26:39 any rich girls from anywhere in the world who wants to help me financially just pm me as well Feb 12 16:26:46 knapper_tech wtf Feb 12 16:26:53 hahaha pentarex Feb 12 16:26:53 dev18, it does not work like that, this is not a help recruitement chan lol Feb 12 16:27:20 you explain your issue correctly, you wait and if someone wants to help he will Feb 12 16:27:42 LOOOOOOOOOOOOOOOOOOOOOOOOL @ pentarex Feb 12 16:27:43 like i am waiting someone to help me Feb 12 16:27:53 ok fair enough Feb 12 16:27:58 which i hope someone read what ive wrote Feb 12 16:28:06 looking to get help with my android application Feb 12 16:28:10 Ukraine is a Western province of Mother Russia. Tsar Putin said so. Feb 12 16:28:15 dev18, mroe specific? Feb 12 16:28:23 well i wish to make an application Feb 12 16:28:27 good Feb 12 16:28:31 next point? Feb 12 16:28:34 dev18, use Android studio, make new project. press play. Feb 12 16:28:39 which allows people to post work Feb 12 16:29:07 and other people to Feb 12 16:29:14 wait wait wait you are trying to get someone working for you from an application and you ask from him to make an application to hire other people... Feb 12 16:29:24 cool Feb 12 16:29:28 lol Feb 12 16:29:30 it's like... helpception! Feb 12 16:29:33 :D Feb 12 16:30:01 haha well Feb 12 16:30:03 fair enough guys Feb 12 16:30:03 but seriously though does anyone has an answer to my question? Feb 12 16:30:10 dev18, software doesn't "allow" people to do anything. you can enable people via a streamlined, essentially digitized model of a problem, but "allow" is a misleading word born from the culture when Windows was dominant Feb 12 16:30:24 you are way to smart Feb 12 16:30:29 pentarex: yes, no! Feb 12 16:30:39 so you need dumb people for your project? Feb 12 16:30:42 and software sucked so bad that no users were "allowed" to do anything Feb 12 16:30:43 LOL Feb 12 16:30:45 i dont understand Feb 12 16:30:45 jeesh no Feb 12 16:31:13 pentarex, you need to make a dating at called cubby. Feb 12 16:31:25 s/at/app/g Feb 12 16:31:27 any one of you guys ever worked in an incubator project? Feb 12 16:31:37 dev18: just start making your app by cloning an example that would be easy to modify to become your app Feb 12 16:31:55 dev18, um....you need to at least make a mockup, which requires starting Feb 12 16:31:58 dev18 you have an idea? ok good just go to some website f6s and search for someone Feb 12 16:32:20 some website like f6s Feb 12 16:32:28 you are in an incubator because you didn't start on your own and gave someone stock for them to say, "okay, go" Feb 12 16:32:32 f6s? Feb 12 16:32:43 dev18 yeah Feb 12 16:32:47 knapper_tech what? :D Feb 12 16:32:49 let me google it Feb 12 16:32:59 that's harsh and condescending, but just throwing darts into the high probability region Feb 12 16:33:05 or you can ask someone from EU to make that for you Feb 12 16:33:09 idk Feb 12 16:33:12 ok Feb 12 16:33:13 found it Feb 12 16:33:16 you mean like startup incubator, right? dev18 Feb 12 16:33:20 yeahh but i can't ask it here right Feb 12 16:33:55 yes Feb 12 16:34:07 dev18 its in the description Feb 12 16:34:12 of the channel Feb 12 16:34:41 does anyone of you guys knows how i can make my view to have an animation (drag) like this in the status bar Feb 12 16:34:57 yes ok Feb 12 16:35:03 so where is a good place Feb 12 16:35:06 besides f6s Feb 12 16:35:09 dev18: what programming have you done before? have you done any android or java ? Feb 12 16:35:15 pentarex, this? Feb 12 16:35:27 knapper_tech, which? Feb 12 16:35:33 that Feb 12 16:35:34 well very little java yes Feb 12 16:35:43 ok that helps Feb 12 16:35:46 pentarex, "...like this in the status bar" Feb 12 16:36:04 well you know when you drag your status bar down... its animated Feb 12 16:36:15 i dont know how to explain it otherwise i will google it Feb 12 16:36:20 dev18, start with the most basic thing you don't know how to do and go get some SO or Android Studio getting started docs. Feb 12 16:36:35 pentarex, the action bar or the status bar? Feb 12 16:36:46 dev18 just go to youtube man and look for thenewboston bucky has really nice tutorials Feb 12 16:37:03 knapper_tech this from up to down Feb 12 16:37:18 where the wirelless on/off button is and so on Feb 12 16:37:58 pentarex, I've used intents to get access to specific parts of settings before, launches settigns activity Feb 12 16:38:35 knapper_tech ? i dont want any settings man. I want to make an animation like that one Feb 12 16:39:25 pentarex, oh, you can start with a value animator Feb 12 16:39:40 pentarex, and then use some layoutparams in a listener to that animator Feb 12 16:40:11 if you need it to show up over/near the status bar, you need some different tricks Feb 12 16:40:35 knapper_tech no no not some hacks... just regular drag this view to remove it or to show it Feb 12 16:40:39 nothing special Feb 12 16:40:43 i will check value animator Feb 12 16:40:44 thanks Feb 12 16:41:16 and guys you happy with android studio 1? Feb 12 16:41:27 pentarex, if you need touch-drag threshold stuff, you can either listen for flicks or more likely use some RxJava style stuff to process the stream of touchmove events Feb 12 16:41:47 knapper_tech i have it i am listening. its ok its working... i need the animation only Feb 12 16:41:48 pentarex, http://choruscode.blogspot.kr/2014/07/rxjava-for-ui-events-on-android-example.html Feb 12 16:42:28 Anyone have a samsung galaxy core GT-I8260 or I8262? im looking to upgrade versions from its default 4.1.2 Feb 12 16:42:48 pentarex: Look into ViewDragHelper Feb 12 16:42:49 AS kicks ass for the task at hand. The amount of crap it saves me from is pretty gargantuan. Feb 12 16:42:53 Tor_: Try #android-root Feb 12 16:43:22 SimonVT i will look into that thanks Feb 12 16:43:33 It's what e.g. DrawerLayout uses Feb 12 16:43:47 anyone uses/have used the facebook sdk for android? Feb 12 16:43:56 SimonVT you are like a brother to me... like my soulmate... you understand me perfectly! :D Feb 12 16:44:32 hello Feb 12 16:45:46 I was reading its policies, I couldn't get an answer to a simple question of whether I'm allowed to store the profile picture in the internal storage Feb 12 16:46:18 and I wanna do that just so that I don't need to download it everytime Feb 12 16:46:50 Where can I ask such questions? Feb 12 16:49:42 theblang: sorry I disconnected , can you tell me if there are another instead of using NoSQL ? Feb 12 17:07:24 I can't believe what a convoluted mess dialog fragments are Feb 12 17:07:58 I'm trying to show a small webpage in a WebView that lives on a fragment. I would like to load the webpage in background before showing the Fragment. Any ideas on how to accomplish this? Feb 12 17:08:02 Android can turn a skeptic into a believer. Feb 12 17:09:33 I've seen a lot of stack overflow questions related to downloading images (or individual files in general), but none that considers downloading the whole pages (all css, all images, etc.) Feb 12 17:10:11 you can just stick it in a viewpager and let it load in there Feb 12 17:11:01 Generally speaking, is it sensible for Toolbars to have a height of "wrap_content"? Feb 12 17:11:09 If we're using the Toolbar as an ActionBar replacement. Feb 12 17:11:27 yeah Feb 12 17:11:35 I think there's a bug where you have to add android:minHeight="?attr/actionBarSize" Feb 12 17:12:30 Ooh. I wondered about why that was suggested in Banes's blog post. Feb 12 17:12:54 I encountered it on jelly bean but I forgot the specifics Feb 12 17:12:57 K. Thanks. Feb 12 17:13:56 Could you elaborate a bit on the viewpager thing? How would that work? Feb 12 17:14:45 you can have a viewpager with two fragments and let the webview load in the offscreen one then show it whenever you need to Feb 12 17:16:24 or you can just put it in a framelayout and set its visibility to GONE Feb 12 17:17:29 I'm trying the GONE framelayout right now, Let me see if I can make it work Feb 12 17:21:56 is there a way to hide all the "someone left" "someone joined" messages? They make it almost impossible to have a conversation here Feb 12 17:23:02 It depends on your client. Feb 12 17:25:06 TacticalJoke: found it, thanks Feb 12 17:26:50 hi i am trying to signup for android developer account at https://play.google.com/apps/publish it gives me error We are sorry, but you do not have access to this service. Please log in to your Admin Console to enable this service Feb 12 17:27:13 can anyone let me know what services is it looking for? Feb 12 17:27:37 i can login into https://console.developers.google.com/project Feb 12 17:29:22 i can visit https://play.google.com/apps but not https://play.google.com/apps/publish Feb 12 17:29:24 when did location services change on android? Feb 12 17:29:49 neither it allows me to signup for the given service Feb 12 17:29:54 any suggestions Feb 12 17:29:54 I think on 4.1.2, one had use wireless networks, use gps satellites, and location and google search Feb 12 17:29:57 but I don't know about 4.2.2 Feb 12 17:34:53 it didn't change Feb 12 17:34:59 you have play services' location services Feb 12 17:35:00 which is separate Feb 12 17:43:02 Hi Feb 12 17:44:19 so I have an ActionBarActivity subclass that checks state restoration in robolectric by calling activity.reload() Feb 12 17:44:50 I do this in several other places where they all share the same superclass Feb 12 17:45:30 but in this particular one, on reload it complains that the theme needs to be Theme.AppCompat or inherit from it Feb 12 17:46:01 my application (in the manifest) uses android:theme="Theme.AppCompat" Feb 12 17:46:10 and the activity works fine in the first place Feb 12 17:46:18 but for some reason the reload kills it Feb 12 17:49:18 not s/reload/recreate Feb 12 17:49:27 s/not/ Feb 12 17:56:54 shekibobo: I'm having a hard time understanding your question. Are you saying that Robolectric is the thing that produces the error message? Feb 12 17:58:16 well, it gets caught on ShadowActivity when it tries to invoke `onCreate` on my activity, and I can see the stack trace from MyActivity -> MyParentActivity -> ActionBarActivity where it then says it needs the Theme.AppCompat Feb 12 17:59:27 Robolectric wraps it in a RTE Feb 12 18:01:13 I just wonder why this one is consistently failing while my other ones are not. I'm not setting the theme programmatically, and even if I set the theme on that activity in the manifest it doesn't help... Feb 12 18:01:19 lemme try setting it programmatically... Feb 12 18:03:30 huh Feb 12 18:03:33 that works Feb 12 18:04:29 *sigh* so I wonder where to file that bug report Feb 12 18:05:39 I don't think JVM unit tests can see the manifest. Feb 12 18:06:05 ahh, but setting it in the activity's onCreate breaks the whole thing on the emulator....wtf Feb 12 18:06:52 I now there are certain things they can't see in the manifest, but the weird thing is that other activities work just fine with the same configuration Feb 12 18:07:35 good afternoon all Feb 12 18:08:37 Whoa, this is weird. I just realised that textColorPrimary was added in API 1. ;o Feb 12 18:08:40 I thought it was a 21 thing. Feb 12 18:09:33 By setting android:textColorPrimary, we can change the colour of the overflow-menu-button text in <21. Feb 12 18:09:38 And back arrow and so on. Feb 12 18:09:59 nice Feb 12 18:10:36 TacticalJoke: does it actually work that way, or is it a documentation error? Feb 12 18:11:08 It seems to work. Feb 12 18:11:31 On both the 5.0 emulator and my 4.1 phone. Feb 12 18:11:44 nifty Feb 12 18:13:23 So, colorPrimary was added in 21 but textColorPrimary was added in 1. Feb 12 18:17:08 Which one of you all is spamming b.android.com? Feb 12 18:17:28 I deny everything, and make counter-accusations! Feb 12 18:18:34 damm you! Feb 12 18:19:49 hey, just so I’m clear, when using Otto, you cannot register on the bus in a superclass, and expect your child class to receive the notifications, and for unregistering to work Feb 12 18:20:17 android:textColorPrimary sets the color of the stuff in the toolbars, but I also found it changed the color of the text in my EditTexts Feb 12 18:20:18 so that's all white for some reason Feb 12 18:20:18 have you seen the same? Feb 12 18:20:18 hm, I'm not seeing that Feb 12 18:20:18 you're using a dark color? Feb 12 18:20:18 hmm Feb 12 18:20:18 I thought the default text color depended on the theme Feb 12 18:20:18 I haven't tried setting the EditText theme to inherit from AppCompat yet, though Feb 12 18:21:16 Yeah, it changes the colour of the text in EditTexts here. Feb 12 18:21:54 s73v3r: hm. seems like it might be the other way around, from the site? Feb 12 18:23:18 s73v3r, you can register in a superclass just fine Feb 12 18:23:27 but otto does not look up inheritance tree to find @Subscribe listeners Feb 12 18:23:33 it does not look up or down the tree Feb 12 18:23:44 it only looks on the class you use to subscribe Feb 12 18:24:15 so I can have a base Activity or Fragment that registers and unregisters, but I have to have my actual concrete class contain the subscribers Feb 12 18:25:09 no Feb 12 18:25:15 it doesn't look up or down the inheritance tree Feb 12 18:25:29 pfn: but you're still passing 'this' each time, which is the subclass... Feb 12 18:25:34 well, I guess yeah Feb 12 18:25:36 it doesn't look up Feb 12 18:25:37 my bad Feb 12 18:25:46 it just looks at the current implementation class Feb 12 18:26:04 Lets say I have BaseActivity, and ActualActivity, which inherits from it. Feb 12 18:26:26 I do my register and unregister in BaseActivity, but my @Subscribe annotated method is in ActualActivity. Feb 12 18:27:15 only listeners in actual will be found Feb 12 18:27:16 s73v3r: that's the way I read it, and it makes sense in my head. I haven't used otto yet though. Feb 12 18:31:39 I know that Android apps can be built and run with Java 8, but is there any good reason to? Maybe to push usage statistics to get support sooner? I can think of many reasons. Feb 12 18:32:14 yiati: i don't think java 8 is supported by android Feb 12 18:32:17 and dalvik Feb 12 18:32:27 yiati: they can be built with a java 8 compiler, but it still has to target java 6/7 Feb 12 18:32:38 thepoosh: Java 8 language features are not supported, but yes you can build with java 8 Feb 12 18:34:18 yeah, but that's kinda like saying "emscripten compiles C to javascript. so C programmers are actually writing Javascript code." Feb 12 18:36:28 ish, it's still using nothing but jdk 8 to do it though, which also happens to be a superset of jdk 7 Feb 12 18:38:11 yeah, but it can't compile to invokedynamic calls, nor use the new annotation stuff, nor lambdas. it's just that java 8 compilers can also compile older java code. Feb 12 18:38:43 Does anyone understand the nav drawer behind the status bar thing? This only works on v21 or does it work for v14+ given you use app compat? Feb 12 18:38:45 right Feb 12 18:38:57 but yeah, ish. I tried to find a better comparison, failed even worse than with that one :) Feb 12 18:48:29 Do theme style work such that v21 is totally independent of v < 21, so any particulars of v < 21 i should also add to v21 or will it add the diff? Feb 12 18:52:47 Is implementing one abstract activity to handle navigation drawer a bad idea? Ie the subclasses would just supply main content view, but the super would handle moving between them / all the nav stuff Feb 12 18:53:59 generally you want the activity to handle the drawer, and the content view to be provided by fragments Feb 12 18:55:55 yeah i get that but the idea of splitting it like so Feb 12 18:56:19 well i had stopped using fragments but yeah that is how it works ;p Feb 12 18:57:42 I am trying to add a minetype so that my app launch when it reads my nfc tag as shown here https://github.com/chariotsolutions/phonegap-nfc/tree/5ef7bd2c380d8e30b115ff4b6e63ec841751fcd9#launching-your-android-application-when-scanning-a-tag but what type of mineType do i need because the example dont seem to work and i have set my nfc tag to text/pg Feb 12 18:57:55 s73v3r: the difference is i want to use seperate activity, sometimes they use fragments, Feb 12 18:58:04 not just wrap each activity as a fragment Feb 12 18:58:39 it’s possible; I’ve done it, but it is such a huge pain in the ass that I hesitate to recommend it Feb 12 18:59:49 now every time you click something in your drawer, you’re now switching activities. Feb 12 19:00:07 yeah that's no problem Feb 12 19:00:17 just hide the animation transition Feb 12 19:00:31 it’s not just the animation transition that you’ve now got to worry about Feb 12 19:00:45 please Feb 12 19:00:48 what is it that i'd have to worry about? Feb 12 19:01:00 I've been reading up on the different application patterns people have been following, and MVVC and MVP seem to pop up a lot, however, I don't fully understand the need for these patterns as I feel Fragments and Views with EventBus already satisfy the decoupling of data from the UI layer Feb 12 19:01:43 herriojr: that's android its really a hybridization of mvc/mvvc/mvp the idea is if you feel its uncoupled enough and works that's all you need Feb 12 19:02:11 for one, any state that the drawer is going to need has to be transferred every single time Feb 12 19:02:11 If I set app:theme="@style/ThemeOverlay.AppCompat.ActionBar" on my Toolbar, everything shows as bright white except the Spinner arrow. Why is that? Feb 12 19:02:12 fragments/views are really view-controllers eventbus is model-controller etc etc Feb 12 19:02:13 It shows as grey. Feb 12 19:02:43 It seems that I have to set 'colorControlNormal' to colour my spinner arrow. Feb 12 19:02:45 TacticalJoke: sounds like it's using some default themeing Feb 12 19:02:46 But I don't like hacky stuff. Feb 12 19:02:53 Yeah. Feb 12 19:02:59 define a theme for your toolbar/action and reference it? Feb 12 19:03:14 $140 worth of Android apps available free from Amazon http://www.amazon.com/b/ref=amb_link_429987462_2?ie=UTF8&node=10076151011&pf_rd_m=ATVPDKIKX0DER&pf_rd_s=merchandised-search-top-1&pf_rd_r=0GVB87EW6W5BCC3RNZD1&pf_rd_t=101&pf_rd_p=2037882422&pf_rd_i=2350149011&tag=b0c55-20 Feb 12 19:03:29 s73v3r: in this case its static content, if it wasn't i'd just use a singleton layer in the application class or something, no biggie. Feb 12 19:03:42 woot woot! free apps! free apps! Feb 12 19:03:50 Hello, I am looking for floating action button like pushbullet's one. I looked out several good libraries but they don't open menus like pushbullet does. Feb 12 19:03:51 I've never actually installed an app from Amazon Feb 12 19:03:57 I assume they don't get updated through the Play Store? Feb 12 19:04:00 i abhor singletons Feb 12 19:04:26 s73v3r: i kinda figure there will be some ... but thanks for letting me know it can be done even with a little pain ;p Feb 12 19:04:35 lasserix: What do you mean by "define a theme for your toolbar and reference it"? Feb 12 19:04:38 lasserix: I just always find it interesting that people tout these things as the only way to do it, but then, after looking at the core android apps in the android src, they still, for the most part, follow the same old patterns that have been in place forever Feb 12 19:04:45 I'd have to set colorControlNormal globally, wouldn't I? Feb 12 19:04:58 which obviously part of it is that most of the core apps are in maintenance mode Feb 12 19:05:21 I am trying to add a minetype so that my app launch when it reads my nfc tag as shown here https://github.com/chariotsolutions/phonegap-nfc/tree/5ef7bd2c380d8e30b115ff4b6e63ec841751fcd9#launching-your-android-application-when-scanning-a-tag but what type of mineType do i need because the example dont seem to work and i have set my nfc tag to text/pg Feb 12 19:05:25 s73v3r: well then just set up a intent bus, since its all extendin ghte same nav-activity you can easily hide reconstituing the nav drawer in the super class Feb 12 19:06:06 herriojr: it always comes down to what works, then what works in such a way you can reuse to make your life as simple as possible. there was a really good article Feb 12 19:06:28 herriojr: -- http://fernandocejas.com/2014/09/03/architecting-android-the-clean-way/ Feb 12 19:06:41 lasserix: that's one of the ones I was reading Feb 12 19:07:59 Architecture is About Intent, not Frameworks Feb 12 19:08:08 lasserix: I guess part of the problem is I already conceptually think of a Fragment as the Presenter or Controller Feb 12 19:08:32 herriojr: i think he is going a little deeper, the individual views are not as important, those fall in the presentation layer for instance Feb 12 19:09:32 so thinking in terms of mvc / mvvp is also a matter at how deep / what level you are seeing the project, the deeper you go the harder it becomes but the longer lasting improvements will pop out... for instance if you knew how to make the ideal fragment that you can always reuse, or for instance.. https://github.com/pakerfeldt/android-viewflow Feb 12 19:09:42 that seems like a great framework you'd be happy working with Feb 12 19:10:07 or you might take a look and see how he was able to decouple model/presentation etc Feb 12 19:11:10 I'm inflating a Spinner into my Toolbar. If I give the adapter "toolbar.getContext()", it gets the themed context correctly. If I give it "spinner.getContext()", it doesn't, even though 'spinner' is a child of 'toolbar'. Shouldn't this work? Feb 12 19:11:48 TacticalJoke: spinner.getContext before it's inflated? circular null dependency? Feb 12 19:11:55 Sorry, after it's inflated. Feb 12 19:11:59 is there a tools attribute for specifying what layout a merge is going to be in Feb 12 19:12:04 Before inflating the spinner's items. Feb 12 19:12:26 My code would just be more readable if I could use the spinner's context. :D Feb 12 19:12:33 One fewer field. Feb 12 19:12:37 Or paramter. Feb 12 19:12:39 parameter* Feb 12 19:14:21 lasserix: yeah, I'll read into the code a bit further — thanks Feb 12 19:15:06 I am trying to add a minetype so that my app launch when it reads my nfc tag as shown here https://github.com/chariotsolutions/phonegap-nfc/tree/5ef7bd2c380d8e30b115ff4b6e63ec841751fcd9#launching-your-android-application-when-scanning-a-tag but what type of mineType do i need because the example dont seem to work and i have set my nfc tag to text/pg Feb 12 19:15:25 Is there any FAB library that has buttons when clicked like pushbullet's one? Feb 12 19:15:56 When user select I want to select him what kind of post he want to share. Note, Video, Alert etc. Feb 12 19:19:28 TacticalJoke: I had a hell of a time trying to style spinners with AppCompat. Really, nothing seemed to work, but mine also wasn't in the toolbar Feb 12 19:21:49 Ah. As far as I can tell, setting "colorControlNormal" works, but whether that'll cause my issues elsewhere is something I don't know. Feb 12 19:22:18 Programming for Android is very much like life in general. Nobody has a clue what they're doing and everyone just hopes they're on the right track. Feb 12 19:25:24 yeah, that sounds about right Feb 12 19:25:52 did you happen to figure out how to change the EditText colors? Feb 12 19:26:17 how do I get the style of picker that's shown in this link? I only see the clunky silver version in the palette thing. http://developer.android.com/design/building-blocks/pickers.html Feb 12 19:26:45 ah, that does it Feb 12 19:27:18 parent="Widget.AppCompat.EditText" and then textColor=whatever Feb 12 19:27:33 doesn't work though, unless you inherit the right widget... Feb 12 19:31:05 TacticalJoke: have you tried non-toolbar spinners yet? Feb 12 19:32:29 TacticalJoke you there? Feb 12 19:33:48 shekibobo: Not yet. Feb 12 19:33:50 drose379: Yeah. Feb 12 19:34:10 Hey, Ive only got a min but Ive though of a different idea, instead of sorting lessons by priority Feb 12 19:34:21 Is it possible to get transparent status bar with navigation drawer behind it in 4.x or is this only 5.0 / or is it 4.4 + ? anyone know? Feb 12 19:34:39 Im thinking I could let the user create their own tags, and when the user is creating the new lesson, allow them to attach the lesson to a tag, instead of the priority Feb 12 19:34:48 you can get it with android-v7 support library Feb 12 19:34:50 And then in the LessonList, show a tab view of each different tag Feb 12 19:34:54 Yeah. Multiple tags per lesson would be nice, too. Feb 12 19:35:06 buraktamturk: how? i've tried various ones and nothing seems to work Feb 12 19:35:08 you have to define you actionbar with Toolbar Feb 12 19:35:13 But I was reading google deisgn guideline, and it said only 6 tabs per page Feb 12 19:35:28 So does that mean I should only allow the user 6 total tags Feb 12 19:35:30 status bar Feb 12 19:35:32 sorry Feb 12 19:35:37 I misunderstant what you say Feb 12 19:35:40 buraktamturk: do you code source i can look at? Feb 12 19:35:47 What about a spinner for tags? Feb 12 19:36:02 not a bad idea, but what would I show by default? Feb 12 19:36:03 TacticalJoke: there can be _A LOT_ of tags tho Feb 12 19:36:24 drose379: The default could be "all tags" or something. Feb 12 19:36:31 Or just the lack of a tag selection. Feb 12 19:36:38 Just "All". Feb 12 19:36:48 And then when they open the spinner it shows Tag1, Tag2, etc. Feb 12 19:37:22 Hmm, yeah Feb 12 19:37:26 Allow unlimited tags? Feb 12 19:37:44 Yeah, I'd say so. Feb 12 19:38:12 I really want to encourage the use of tags though, Im affraid if I just use a spinner, the user wont be able to find it Feb 12 19:38:19 I guess when reading the tags you could have some sane limit just in case things get crazy, but apart from that I don't see the need to limit anything. Feb 12 19:38:24 And will end up just using the unorganized "all tags' Feb 12 19:39:23 I gotta go now though, be back in a lil bit Feb 12 19:40:37 dragorn http://phandroid.com/2015/02/12/google-plaso-wireless-payments/ .. good idea from security perspective? Feb 12 19:40:43 is there a way to set which item in a spinner will be displayed by default? so if I have a spinner for choosing the week of the year, can I default it to select the current week? Feb 12 19:41:59 newbQ: I think just Spinner.setSelection. Feb 12 19:42:54 TacticalJoke: thanks Feb 12 19:43:26 hey Feb 12 19:43:41 how can I use adb to the same apk from two different laptops Feb 12 19:43:41 ? Feb 12 19:44:39 ? Feb 12 19:44:47 you are missing an action there i think Feb 12 19:45:15 you need to script if you want to do "multiple pushes" Feb 12 19:45:52 nikio_, are you getting an error about incosistent certificates? Feb 12 19:46:14 oh, nvm Feb 12 19:46:34 not sure what you're asking, really Feb 12 19:49:19 g00s: seems fine from a security perspective, as long as they take reasonable steps (totally possible, and google tends to do fine there) Feb 12 19:50:12 g00s: privacy wise: pretty dubious :) most likely it'll contact google whenever you're in reach, which means you're trackable just walking down the road past stores that support this. Feb 12 19:50:28 not that they don't already with the wifi location stuff, of course. but it adds another wrinkle. Feb 12 19:51:24 imagining that the same secure proto is being used on bt or nfc, i think bt can only weaker your security but increases your confort Feb 12 19:51:49 because nfc is very close compared to the range of bt, even if it can be amplified with antenna (directionnal) Feb 12 19:52:12 groxx yeah, i think i remember reading date & location of 4 purchases can uniquely identify anyone with 90%. its too much info to give to google :) Feb 12 19:52:20 bluetooth is more democratized than nfc, increasing also the confort Feb 12 19:52:29 and what you actually buy says much more. Feb 12 19:52:34 I'd hope they establish a secure channel orthogonal to nfc / bt, really. pinned ssl certificates would work great and be simple. Feb 12 19:52:36 (than click on, ads, etc) Feb 12 19:52:48 crypto is slow for fast paiement Feb 12 19:52:54 can take few seconds to establish the signature Feb 12 19:52:59 (cf smartcard) Feb 12 19:53:01 Asking again because more are here now: The arrow on Toolbar's Spinner isn't showing as pure white in the dark theme. Everything else is. Is this an AppCompat bug, and is there a neat workaround? Feb 12 19:53:22 adq: smartcards are stupendously low power, a phone is an entirely different beast Feb 12 19:53:31 so true Feb 12 19:53:37 groxx http://www.sciencedaily.com/releases/2015/01/150129160856.htm Feb 12 19:53:42 It's basically always slightly grey. Feb 12 19:54:02 (Which goes against the material recommendations.) Feb 12 19:54:46 g00s: seems likely. 4 is probably playing it safe, since e.g. a lot of people buy just a plain coffee Feb 12 19:55:24 g00s: meanwhile, a single trip to a clothes / department store could generate a unique order for quite a large time span. Feb 12 19:55:48 God damn. reddit is down so much today. Feb 12 19:56:44 It doesn't help that a recent (but temporary) change to my app makes it crash every time reddit is down. :D Feb 12 19:56:52 g00s: one thing to note though is that this is essentially a fingerprinting technique, not a "given receipts, we know where you live" Feb 12 19:57:01 g00s: note this line, for instance: "For each identification number -- each customer in the data set -- the researchers selected purchases at random, then determined how many other customers' purchase histories contained the same data points." Feb 12 19:57:22 sure Feb 12 19:57:32 but then add some other piece of data, and whalla ! Feb 12 19:57:39 http://www.theverge.com/2015/2/12/8024861/top-10-app-store-manipulation-photo Feb 12 19:57:41 omg Feb 12 19:57:57 yeah, fingerprint + a database dump = you :) Feb 12 19:58:25 do the smaller time pickers always need to be in a fragment? Feb 12 19:58:54 g00s: I thought everyone knew that was happening? Feb 12 19:59:17 groxx first time i saw a picture of this haha, employee looks confused Feb 12 19:59:32 upvote or downvote hmm Feb 12 19:59:34 ah, yeah, first picture I've seen too :) Feb 12 20:00:40 good morning all ;) Feb 12 20:02:22 g00s: Dunno off the top of my head. If they're smart, it should eb fine Feb 12 20:02:41 g00s: the stupid way to do it would be to send the transaction over bt. but I don't think they're stupid. Feb 12 20:02:58 good afternoon cyclonis Feb 12 20:03:12 Hey all, having a super frustrating problem opening an Android studio project. Despite me selecting the root folder of the project, studio seems to be opening a project with the gradle folder as the src folder Feb 12 20:03:30 I’m pretty stumped as to why this is happened as I’ve successfully opened the project beofre :( Feb 12 20:04:06 g00s: A smarter way would be something like oauth - the store has an id, you have an id, the transaction has an id... The store tells google "transaction 1234 is for $40 to store Foo", you query google and it tells you that, and all you're saying is "I let store X perform this transaction". You send the store the auth token over BT, the store talks to the google servers w/ that transaction id, and it happens. Or something like that. Feb 12 20:04:18 g00s: there's intelligent ways to do it anyhow if you assume both ends of the transaction can talk to google Feb 12 20:04:21 which i assume they can Feb 12 20:05:10 zambo: do you have a .idea folder in your gradle dir? Feb 12 20:06:08 no, there is one in the root dir Feb 12 20:06:20 gradle dir contains gradle.iml, local.properties, and wrapper folder Feb 12 20:09:07 dragorn: yeah, something where they basically use the bt terminal as a proxy to the store's network, so they can contact google's servers directly, seems like the "best for google" approach. flexible, gives them all the info, cheap end-points. Feb 12 20:09:47 groxx: right. I doubt it's sending your CC info over the BT link, which makes the whole BT link security thing much less of an issue. When you own all the endpoints you can do smarter stuff. Feb 12 20:10:19 vs. NFC payment, where google DOESN'T own all the endpoints, and needs to emulate a payment card Feb 12 20:10:55 which also requires a "secure element" aka "sim card", which is stupid Feb 12 20:13:55 http://rustedreality.com/images/gallery/IT/camelCase.jpg Feb 12 20:14:19 How come when I update SDK I keep on getting URL not found: C:\Program Files\Android\android-sdk\temp\android-21_r02.zip (Access is denied) Feb 12 20:15:14 ah, Windows. theres there's yer problem Feb 12 20:15:40 restart? Feb 12 20:15:54 administrator mode? Feb 12 20:15:54 AS keeps giving me a weird this where it will continue to tell tell me there was an exception in the code even after I fix it, until I restart AS Feb 12 20:16:12 panda81: Looks like access is denied Feb 12 20:16:17 gradle plugin 1.1.0-rc3 is out Feb 12 20:16:34 Levite: thanks that worked Feb 12 20:17:38 I actually have to blame Microsoft. Visual studio doesn't let you choose where to install android sdk. I'd preferred D:\ instead of my tiny SSD Feb 12 20:19:04 * jnsjunior is gone.. autoaway after 15 min ..[cyp(l/on.p/on)] Feb 12 20:19:19 Now. Under Android 5.0.1, 'SDK Platform' is the only thing I need or must I install the ARM EABI v7a System Image and etc. Feb 12 20:20:20 panda81: sdk platform is probably all you need, unless you intend to run emulators (and if you do, use the x86 ones) Feb 12 20:20:35 rc3? ok, time to update my code again Feb 12 20:21:04 panda81: sources-for-sdk can be handy because (ideally, dunno about VS) it'll let you view-source for the sdk Feb 12 20:21:10 * pfn runs his tests again Feb 12 20:22:41 of course, public api change again... Feb 12 20:22:43 * pfn grumbles Feb 12 20:26:13 minor though, not bad Feb 12 20:26:42 * pfn really hasn't seen anything noteworthy in the 1.1.0-rc releases Feb 12 20:28:11 g00s: Where did you see the update? Feb 12 20:28:22 aside from the large number of them? are they just crowdsourcing bug discovery or something? Feb 12 20:29:12 yiati maven central Feb 12 20:30:33 Not sure whether to file the "spinner drop-down arrows don't get the overlay colour < 21" thing as a bug. Feb 12 20:31:14 what's the difference between an Editable, a CharSequence, and a String, and why should I care Feb 12 20:31:29 I think I'll just use spinners as time pickers. I cant seem to figure out the time picker Feb 12 20:31:45 CharSequence is an interface. String and Editable implement this interface. Feb 12 20:32:28 As does StringBuilder and so on. Feb 12 20:32:44 huh, i get this warning: Warning : new cruncher can only be used with build tools 22 and above Feb 12 20:32:59 that was a rhetorical question, but thanks! Feb 12 20:34:53 g00s: time to get crunching and use build tools 22 and above Feb 12 20:35:20 the code monkey answer was "who cares, use toString()" Feb 12 20:35:26 Sigh. I can't use colorControlNormal to work around this apparent bug because then scroll bars change colour. Feb 12 20:35:35 yiati i only see build tools 21.+ Feb 12 20:35:43 I think Android uses CharSequence so much because of Spannable. Feb 12 20:36:11 (Scroll bars change colour on 5.0.) Feb 12 20:36:25 g00s: I now see 24.0.2 in the SDK manager Feb 12 20:37:01 Wouldn't it be nice if all Android users were running 5.0. Feb 12 20:37:15 We'd be able to just make stuff work. Feb 12 20:37:20 I finally broke the 10% barrier a week ago Feb 12 20:37:23 I would like to get the update already on my 2013 Moto X :( Feb 12 20:37:53 I am gonna report these as bugs. Feb 12 20:38:02 In fact, I'm gonna report it all. Feb 12 20:38:03 If I want a few horizontal elements in an overall Vertical LinearLayout, I just put them in a TableRow, right? Feb 12 20:38:28 newbQ: Possibly just a ListView Feb 12 20:38:32 depends Feb 12 20:39:24 yiati i think its referring to build-tools Feb 12 20:39:53 g00s: Ah yeah you're right, hmm yeah I don't see 22+ Feb 12 20:42:03 Levite: I forget the diff between charsequence and editable, but charsequence is a high-level abstraction over "string which could contain metadata". e.g. spannables. Feb 12 20:42:17 I can use android:dropDownVerticalOffset with a negative value to get spinner dropdowns on top of spinners <21, but then they look bad on 21. Feb 12 20:42:32 Having two different app versions isn't fun, so I won't even bother. Feb 12 20:43:07 Oops. I forgot that Editable was an interface too. Feb 12 20:43:09 Levite: ah. so Editable is a mutable CharSequence, basically. Feb 12 20:43:14 But it does implement CharSequence. Feb 12 20:43:38 ah, makes sense Feb 12 20:43:39 Is there a way to use Material design on pre-L devices ? Feb 12 20:43:57 to a limited extent by using the support libraries Feb 12 20:44:12 you won't get fancy ripples or dynamic shadows Feb 12 20:44:36 Levite: http://icetea09.com/blog/2014/12/09/android-apply-material-design-pre-lollipop-devices-using-appcompat-v21/ I tried using this tut, but i am stuck with the colors, because i still get the message that i need a min. API of 21. Feb 12 20:44:46 I wonder if CharSequence is primarily to give you a string-thing that can be extended? String is a final class, so you can't just accept one of those... Feb 12 20:45:16 groxx: StringBuilder and String implement CharSequence. Feb 12 20:45:18 It's a Java thing. Feb 12 20:45:24 CharSequence is just a general sequence of chars. Feb 12 20:45:35 Might be mutable; might not. Feb 12 20:45:50 yeah, I'm doing a bit more poking too :) Feb 12 20:46:18 It's handy to use the interface when creating some kind of utility method that can accept *any* String-like thing. Feb 12 20:46:52 Nightwalkerkg what attribute is giving the error? Feb 12 20:47:03 tl;dr Levite: accept charsequence for anything that handles displayed text, since if you make the methods String-y, you may be forced to .toString() them, possibly losing data. Feb 12 20:47:45 Levite: ColorPrimary, colorPrimaryDark and ColorAccent Feb 12 20:47:47 CharSequence isn't very powerful, though. It doesn't have any real 'equals' method, 'indexOf', or anything relating to code points. Feb 12 20:48:21 I don't think you can use the accent one Feb 12 20:48:32 You can use colorAccent. Feb 12 20:48:36 Levite: Also, one more question, i am missing the values-v21 folder but i have values-w820dp. Do i need to make the v21 or is w82dp similar ? Feb 12 20:48:58 I dunno but this SO post looks relevant http://stackoverflow.com/questions/26947276/material-design-backward-compatibility-androidcoloraccent-requires-api-level-21 Feb 12 20:49:18 no you can ignore that 820dp folder Feb 12 20:49:18 Nightwalkerkg: I'm guessing you're saying "android:colorAccent" instead of "colorAccent"? If so, remove the 'android:'. Feb 12 20:49:28 Yes, with android : Feb 12 20:49:49 Some of those 'android:' attributes are restricted to API 21. Feb 12 20:49:50 Ah, ok. No more errors. Feb 12 20:50:00 awesome Feb 12 20:50:26 what does colorAccent do? I'm just using colorHighlight Feb 12 20:50:30 What about the values-w820 and v21 ? Do i need to make a -v21 or is w820 thesame. Feb 12 20:50:37 controlhighlight Feb 12 20:51:02 I think it shows on EditTexts, on Spinner arrows when they're clicked, on ProgressBars (on 21), and some other stuff. Feb 12 20:51:06 Levite: To be honest, i have no clue. This is my first android app. :D Feb 12 20:51:31 Levite: colorAccent gives your colors a Swahili accent Feb 12 20:51:51 it's very earthy Feb 12 20:51:52 TacticalJoke: if you're filing a bug, might want to mention you can't override textColor on spinners either, it'll only use textColorPrimary Feb 12 20:52:01 also, link me and I'll star it Feb 12 20:52:10 i think 820dp is just for enormous tablets Feb 12 20:52:44 you can ignore it Feb 12 20:52:55 what's the easiest way to do a rounded button material style these days? Feb 12 20:53:42 shekibobo: I can do that by setting android:textColor on my adapter view. Feb 12 20:53:51 In the layout inflated by my spinner's adapter. Feb 12 20:53:57 Levite: Ok that, do you happen to know if the Card UI is supporthed by this library ? Feb 12 20:54:10 that changes the color of the selected item in the spinner? not talking about the list item colors Feb 12 20:54:13 it's in the v7 support library Feb 12 20:54:22 Yeah, changes the colour of every item. Feb 12 20:54:25 huh Feb 12 20:54:34 Selected and dropdown. Feb 12 20:54:41 I'm using the same layout for both. Feb 12 20:54:49 hey anyone can help with this Feb 12 20:54:49 http://stackoverflow.com/questions/28417275/google-cloud-messaging-is-not-giving-me-a-registration-id?noredirect=1#comment45171386_28417275 Feb 12 20:54:55 I cannot get GCM to work Feb 12 20:55:34 Lonesoldier728: https://blog.pushbullet.com/2014/02/12/keeping-google-cloud-messaging-for-android-working-reliably-techincal-post/ may be relevant. checking the SO post though. Feb 12 20:55:57 shekibobo: Have you tried? Feb 12 20:56:20 no, didn't try that approach Feb 12 20:59:49 Lonesoldier728: for starters, print the whole error message. `ex.printStackTrace()` is usually what you want if you're not throwing the exception further up. Feb 12 21:01:06 TacticalJoke: hmm, also setting android:editTextColor seemed to work... Feb 12 21:02:22 groxx where do i put that Feb 12 21:02:42 Is there a way to set 'colorControlNormal' on a single Spinner only? Everything I'm trying isn't working. Feb 12 21:02:56 nvm should it log it tho without log Feb 12 21:03:24 Does anyone know how to get the "com.android.application" plugin for gradle to build a project manually using the shell? Feb 12 21:03:28 groxx do you notice the problem though? Feb 12 21:03:56 Lonesoldier728: not sure. is the problem the main_thread error (which seems like you've fixed, by using asynctask), or is it something else? Feb 12 21:04:34 the whole thing is the registration id is not getting pulled out Feb 12 21:04:40 it shows as empty Feb 12 21:05:43 I'm watching one of these "ghost hunters" shows. It's such bullshit. This guy claims to be a "professional demonologist". Feb 12 21:06:09 Can I be a professional Superman expert? Feb 12 21:06:32 if you're charismatic, sure Feb 12 21:06:35 so. I'm working on an app for api 15 and I'm using native fragments. getChildFragmentManager is api 17.. am I forced to use v4 support fragments if I want to use it? Feb 12 21:06:35 :D Feb 12 21:06:43 I feel a little screwed Feb 12 21:07:31 Lonesoldier728: your code isn't complete though - where are you pulling it out, with which method, and when? Feb 12 21:07:33 actually I think that show already exists Feb 12 21:07:38 anyone had to deal with this before? Feb 12 21:07:41 fmontano: I'm not sure, but can I ask why you don't want to use v4? Feb 12 21:08:35 register in bckground Feb 12 21:08:43 my manager is against using v4 support library Feb 12 21:08:44 yeah you have to use the v4 fragments Feb 12 21:08:52 hmmm.. Feb 12 21:08:55 okok Feb 12 21:08:59 it still works though Feb 12 21:09:00 fmontano: Some people in the know *always* use v4 Fragments. Feb 12 21:09:03 calling it in the oncreateview Feb 12 21:09:11 Then you get consistent behaviour on different Android versions. Feb 12 21:09:22 His being against using v4 is kinda dumb. Feb 12 21:09:30 thing is that we are not supporting any 2.x devices.. api 15 and above Feb 12 21:10:12 http://youtu.be/au0zM3I_p3w?t=2m17s Feb 12 21:10:14 Even so, a strong argument can be made in favour of always using v4. Feb 12 21:10:26 Even with minSdkVersion=21. Feb 12 21:10:31 (IMO.) Feb 12 21:10:40 consistent behavior FTW Feb 12 21:10:53 thanks for you valuable input guys :) Feb 12 21:10:53 You could also argue that non-v4 Fragments shouldn't exist. Feb 12 21:11:01 Especially due to appcompat only really working with v4 fragments Feb 12 21:11:03 I'll try to make a solid argument Feb 12 21:11:04 Though that's a different argument. Feb 12 21:11:17 I'd argue in favor of that though :) Feb 12 21:11:40 In favour of non-v4 Fragments not existing? Just curious. :) Feb 12 21:11:50 it's probably very similar code under the hood Feb 12 21:12:29 surprisingly, not so much. and the v4 fragments have their own issues. but they're 100% consistent, since they're compiled into your app - fix a bug once, you fix it for every version. Feb 12 21:12:33 all my problems wouldn't exist if that one method was implemented in api 15 instead of 17 hehe Feb 12 21:13:05 google wanted their open source cake and eat it too Feb 12 21:13:11 are v4 fragments going to be supported forever and ever? Feb 12 21:13:16 Perhaps all of Android should be broken up into (small) libraries. Feb 12 21:13:16 basically Feb 12 21:13:20 Or everything that can be. Feb 12 21:13:22 maybe not in a decade's time Feb 12 21:13:43 support-v4 fragments are the only way to fly Feb 12 21:13:52 but by then we might not even be carrying phones Feb 12 21:13:52 framework fragments are garbage and should never have been included in framework Feb 12 21:13:53 why is that? Feb 12 21:14:06 why pfn? Feb 12 21:14:09 old news Feb 12 21:14:11 google it Feb 12 21:14:18 since i am about to start using fragments again, i should only use v4 support fragments? Feb 12 21:14:32 lasserix: I would say so. Then you get consistent behaviour regardless of Android version. Feb 12 21:15:00 pfn google what ? Feb 12 21:15:07 or maybe it's the fragment managers I'm thinking of Feb 12 21:15:07 you ask why Feb 12 21:15:27 i dunno, 82% of my user base is on 19 or above Feb 12 21:15:31 ahh i found it Feb 12 21:16:33 http://stackoverflow.com/questions/13066118/always-use-v4-fragments-instead-of-the-build-in-android-app-fragment seems outdated tho? Feb 12 21:18:01 :\ the only really interesting bit in there seems to be someone pointing out that the support lib gets updates, where phones don't. Feb 12 21:18:28 Levite: dang, that's quite the modern userbase Feb 12 21:18:33 YES! Finally got the Material to work. :3 Levite thanks a lot. Feb 12 21:18:34 Why can't I set 'colorControlNormal' on a particular View? Surely it should be possible. Feb 12 21:18:42 probably because it's mostly US users Feb 12 21:18:55 who are on contract Feb 12 21:18:57 that does help, yeah Feb 12 21:19:02 Actually, I don't think it should be possible. Feb 12 21:19:22 groxx that's a good point.. Feb 12 21:20:33 http://blog.jetbrains.com/idea/2015/02/interview-with-tor-norbye-the-present-and-the-future-of-developer-tools-for-android/ Feb 12 21:20:38 IMO, subtly-inconsistent-behavior between OS versions is probably the biggest source of crashes-after-shipping and non-crashing visual glitches. the more that can be put in your code, the better. Feb 12 21:20:45 g00s: ;o Feb 12 21:20:48 Does he mention Kotlin? Feb 12 21:20:55 I'm about to watch. Feb 12 21:20:59 Or read. Feb 12 21:21:08 Okay, no 'kotlin'. Feb 12 21:21:37 The only comment you’ll get about Kotlin from Google is probably “We have no plans to add support for Kotlin" Feb 12 21:21:43 no kotlin, (╯°□°)╯︵ ʍǝıʌɹǝʇuı Feb 12 21:22:01 does myTextView.setText(0) clear the text? Feb 12 21:22:06 jaana_: lol Feb 12 21:22:06 or does it crash the app :P Feb 12 21:22:44 explodes: That's the resource-ID overload. Feb 12 21:22:51 It sure is Feb 12 21:22:52 I suspect it'll crash with "Resource 0 not found" or something. Feb 12 21:22:56 Ok Feb 12 21:23:00 Try it! Feb 12 21:23:12 jaana_ Dianne Hackborn did come out and say Java is "the" language for Android Feb 12 21:23:27 Did she put 'the' in quotes? :D Feb 12 21:24:10 I loved that blog: The Blog of Unnecessary Quotation Marks (or whatever it was called). Feb 12 21:24:28 http://www.unnecessaryquotes.com/ Feb 12 21:24:37 ". The APIs are very clean (though they could use more documentation on some of the APIs, hint, hint… :-)." thats funny Feb 12 21:24:41 TacticalJoke, I can't find the exact quote right now, but that was the gist of it yeah Feb 12 21:25:13 "Code completion usually finds just what I need, and quickly" -- much more slowly than Eclipse for me. :/ Feb 12 21:25:19 It slows down my typing big time. Feb 12 21:25:44 Delays before I can press Alt+Enter also slow me down. Feb 12 21:26:28 the second-level hinting is nice though. so you can type a couple chars of the variable (it can still be ambiguous), dot, a couple chars of the method. hit enter to autocomplete the whole chain. Feb 12 21:29:20 "but in Android Studio, since we only support building with Gradle, we’re currently not able to immediately offer a global set of errors, since build plugins have a lot of freedom in how they can affect compilation" Glad he mentions that. It's a major drawback. Feb 12 21:29:29 TacticalJoke, http://www.reddit.com/r/Android/comments/2b2jy2/android_programming_languages_of_the_future/cj1d61u Feb 12 21:30:26 Hmm, I wonder whether she knows much about Kotlin. Feb 12 21:32:08 hi Feb 12 21:32:10 hows all going here Feb 12 21:32:11 That interview seems like a waste to me. Feb 12 21:32:15 No real questions asked. Feb 12 21:33:17 it is kinda supposed to be one of those interviews that is just like, “Hey, don’t you think our products are awesome?” Feb 12 21:33:21 It's interesting from a "Who is Tor Norbye?" point of view but not so much from a "What will Android developer tools look like in future?" kind. Feb 12 21:33:43 Yeah, it's definitely mutual back scratching. Feb 12 21:33:48 I imagine this close to IO, they’ll want to keep the lid on anything mind blowing Feb 12 21:34:01 if there is anything mind blowing Feb 12 21:35:16 mind blowing hahaha Feb 12 21:35:28 it's easier to blow people's minds than open their wallets Feb 12 21:36:14 do I have to repeat elements in v21 if i have it in v? Feb 12 21:36:19 like colorPrimary and etc Feb 12 21:36:50 They will blow my mind if they keep the keynote under 12 hours Feb 12 21:37:58 Can't go as bad as the streaming of the Apple wwdc did Feb 12 21:38:01 @lasserix you do not have to Feb 12 21:38:02 the problem with IO is that it's just a bunch of valedictorians with microphones Feb 12 21:38:10 hmm any android ppl from EU/ Feb 12 21:38:19 valedictorians? Feb 12 21:38:33 dev18: Possibly Leeds, guessing by the name Feb 12 21:38:53 haha true Feb 12 21:38:55 oh i thought you meant valedicataorians Feb 12 21:39:14 uck, it seems that any attempt at a circular ViewPager I've seen seems to miss some detail Feb 12 21:39:25 I guess I'll have to do a custom RecyclerView for it Feb 12 21:39:32 use infinity Feb 12 21:39:35 it's helpful Feb 12 21:39:53 I'm making a migration from DEfaultHTTPClient to OKHttp. Everything but file uploads works fine... Can someone help me ? (my code: http://pastebin.com/5rD1qqmC) Feb 12 21:39:57 the code's compiling Feb 12 21:40:03 but I got an error server side Feb 12 21:40:12 (AttributeError: 'unicode' object has no attribute 'chunks') Feb 12 21:40:38 yiati: were you talking to me? Feb 12 21:43:15 Does anyone know why AS doesn't run my app thinking I made no changes? Feb 12 21:43:24 Unless I change some shit again and then it works Feb 12 21:44:28 It refuses to run your app because it thinks you made no changes? AS runs mine whether it thinks I made changes or not. Feb 12 21:45:06 stupid Eclipse does the same thing. Except only when you haven't made any actual changes Feb 12 21:45:34 Maybe it has something to do with the run configs Feb 12 21:46:18 herriojr, is this nick an alias for Leeds? Feb 12 21:46:36 Oh nvm you're talking about viewpager Feb 12 21:46:38 yes I was Feb 12 21:46:48 no, I'm not Leeds Feb 12 21:48:31 yiati: I'm guessing you're talking about the method of using a very large number for the count Feb 12 21:49:26 I vaguely remember the name Leeds — has he been around here for a very long time? Feb 12 21:52:35 Is there a method in the standard Android library for me to get a String representation of an HTTP response code? Feb 12 21:53:10 yiati: I'm pretty sure that's what Leeds would say if they were hiding. obviously herriojr == Leeds. Feb 12 21:53:25 you mean like an integer to a string? Feb 12 21:53:38 nah, I used to hang around here a lot before I stopped doing Android — back when all the google guys were on here Feb 12 21:53:43 sublimate: an http response code is usually an integer - Integer.toString(code), or "" + code. Feb 12 21:54:08 groxx: I mean like convert 404 to "404 - Not Found" Feb 12 21:54:21 is facading dependencies a better thing to do than just using dependencies? Feb 12 21:54:22 the HTTP/2 spec supports floating point response codes Feb 12 21:54:27 actually I just made that up Feb 12 21:54:33 sublimate: aaah. well, there are a handful of standard ones, but codes can technically be anything Feb 12 21:54:39 I'm just getting back into android after not doing it for almost 2 1/2 years Feb 12 21:54:45 sublimate: http://en.wikipedia.org/wiki/List_of_HTTP_status_codes Feb 12 21:54:52 groxx: Ahh. Was hoping there was a standard function to do it :\ Feb 12 21:55:03 http://developer.android.com/reference/org/apache/http/HttpStatus.html A la this docuentation Feb 12 21:55:12 not that would be a localized message anyway Feb 12 21:55:34 sublimate: possibly. not sure where it would be though, sorry Feb 12 21:55:37 Levite: 404.999999999 - Status code not found? Feb 12 21:56:20 heh Feb 12 21:56:25 groxx: Thank you for your help - I didn't know they weren't standardize.d. Feb 12 21:56:48 sublimate, Levite, 403.9999 - Status code almost not found Feb 12 21:58:06 Lol xD Feb 12 21:58:14 gotta wonder what code NaN would imply Feb 12 21:58:44 "The server has just plain given up" Feb 12 21:58:55 can I call dibs on -0? Feb 12 21:59:45 I love the new | thing for catches in Java Feb 12 21:59:55 Is that even new or did I just not know it existed Feb 12 22:00:09 it's a 7 thing, I think? Feb 12 22:00:46 Yeah, Java 7. Feb 12 22:00:54 try-with-resources is probably my favorite of 7. Feb 12 22:01:24 Do you get to use it? Feb 12 22:01:30 nope! Feb 12 22:02:30 try catches always feel so wrong Feb 12 22:02:36 Why? Feb 12 22:02:55 catch (Exception e) { //Talk dirty to me e.printStackTrace(); } Feb 12 22:03:03 I just hope that java 8 will bring about a new realm of joy and RAII in JavaTopia Feb 12 22:03:21 groxx I want lambdas now Feb 12 22:03:34 Is 8 supported on Android yet? Feb 12 22:03:38 sublimate: nope Feb 12 22:03:40 nope Feb 12 22:03:43 IIRC I can build Cyanogen w it Feb 12 22:03:47 Or maybe I was imagining things Feb 12 22:03:49 Don't expect it any time soon. Feb 12 22:03:58 ^ /gets tissue Feb 12 22:04:05 sublimate: The fact that you are excplicitly allowing yourself to run code that has a potential to not function as expected Feb 12 22:04:08 theblang: How about Kotlin for lambdas? Feb 12 22:04:12 you can retrolambda on android Feb 12 22:04:14 and it works well Feb 12 22:04:16 Hey, anyone know a tutorial i can use to make a splash screen that will dissapear after pressing the button, and not show the second time the app is started ? Feb 12 22:04:27 pfn yeah, just haven't taken the time to try Feb 12 22:04:31 Nightwalkerkg: That's kinda specific thing :p Feb 12 22:04:35 theblang, it's not the least b it difficult Feb 12 22:04:44 yeah, retrolambda has been very nice. and it produces better code than I would take the time to write (e.g. static instance) Feb 12 22:04:50 Probably save the fact that it's been opened before in a database or in prefs Feb 12 22:05:00 TacticalJoke: yeah, I've been meanign to check out Kotlin Feb 12 22:05:17 theblang, pretty easy to add the gradle, maven or sbt plugins to handle retrolambda Feb 12 22:05:25 all of them make retrolambda transparent on android Feb 12 22:05:28 Nightwalkerkg: store a boolean in SharedPreferences, check it at launch. Feb 12 22:06:02 pfn that's cool. I definitely need to check it out. I didn't have to use RxJava since Interceptors were added to OkHttp, so I probably will check it out if I do need RxJava later Feb 12 22:06:10 Hmm. So I've finally switched my app to AppCompat and I feel like AppCompat doesn't let me do a whole lot I couldn't do before. Feb 12 22:06:17 It seems to be somewhat minor, change-wise. Feb 12 22:06:27 I mean the actual theme (not so much Toolbar or RecyclerView). Feb 12 22:06:57 I like Toolbar. Way nicer than the lame old ActionBar API. Feb 12 22:07:24 Oh, one more. Is the transparent ActionBar or Toolbar supported with the AppCompat v21 ? Feb 12 22:07:33 me too. actionbar is ugly Feb 12 22:08:02 theblang, retrolambda is pretty simple and can be used without any knowledge of rxjava Feb 12 22:08:07 toolbar should not be transparent Feb 12 22:08:15 retrolambda just adds lambda Feb 12 22:08:16 I've heard various people saying that RetroLambda is bad. Feb 12 22:08:32 pfn, yiati yeah I know, but when would I use lambdas if not using something like RxJava Feb 12 22:08:39 Levite: I need it to be only on the first activity. Feb 12 22:08:46 any time you have single-anonymous-method classes Feb 12 22:08:55 onClick is a lambda Feb 12 22:09:01 v -> { do shit } Feb 12 22:09:03 what do you mean transparent? invisible? Feb 12 22:09:08 it's bytecode-manipulation, so it's definitely non-standard + a little shady. but it's a relatively simple one, leaves you with sane stack-traces, and is pretty well battle-tested. Feb 12 22:09:28 I see. Feb 12 22:09:42 theblang, you can use them all over Feb 12 22:09:48 with no rxjava Feb 12 22:09:52 Nightwalkerkg: I do a help overlay by adding a fragment to android.R.id.content, then you could but a dismiss onClick of the fragment's container, and for just opening once do a shared preference that gets set after first opening Feb 12 22:09:54 Levite: http://40.media.tumblr.com/e338d087cdd7e26b4ceda7129ae33987/tumblr_njh29zUfwA1r2wjwko6_1280.png Like in here. Feb 12 22:10:28 yiati: yeah I know it has nothing to do with RxJava, that was just the only thing I could think of that would make me actually want lambdas enough to go get a dependency Feb 12 22:10:58 TacticalJoke: I think one of the biggest downsides is that your code no longer matches what's running. it's a legitimate concern. Feb 12 22:11:21 theblang, onClickListener, pretty much anything anonymous Feb 12 22:11:22 runtime exception Feb 12 22:11:23 "primary color should be opaque" Feb 12 22:11:24 tons of stuff Feb 12 22:11:31 so not natively, I suppose Feb 12 22:11:37 but personally I see it as less bad than reflection, which is both hard to read _and_ gives nasty stack traces. Feb 12 22:12:04 er. when it fails + if you don't log a ton of stuff by hand. when it's working it's mostly invisible. Feb 12 22:12:45 whether or not a transparent toolbar is prudent depends on the content you;re presenting, I suppose Feb 12 22:12:56 for maps I suppose it makes sense Feb 12 22:13:43 has anyone ever encountered the error: Failed to find provider info for com.sec.orca.easysignup.public ???? Feb 12 22:13:49 groxx, it's not that hard to make retrolambda emit the correct line numbers for debugging Feb 12 22:13:54 Is there a limit on the length of a Log message? Feb 12 22:14:03 Yes, sublimate. Feb 12 22:14:06 It's really annoying. Feb 12 22:14:08 pfn: it does so by default for me Feb 12 22:14:09 if I'd use retrolambda more, I'd consider writing a PR, but I don't use it at all Feb 12 22:14:20 groxx, I've heard many times that it doesn't Feb 12 22:14:21 You can break up the message into multiple messages. Feb 12 22:14:21 TacticalJoke: Any idea on how to get a super long string off my device? Feb 12 22:14:25 Nightwalkerkg looks like you can do it by setting an alpha on the toolbar Feb 12 22:14:25 I know I've done this before :\ Feb 12 22:14:31 Finally found out why SQliteOpenHelper doesn't increase the version number. When I pass a lower version number the version gets downgraded. Feb 12 22:14:35 Is there a constant for the length? Feb 12 22:14:37 Or I guess you could write it to a file. Feb 12 22:14:39 yiati, not anything anonymous, only SAM classes Feb 12 22:14:41 I forget; it's googleable though. Feb 12 22:14:48 Some people have posted solutions on SO. Feb 12 22:14:56 happens when i attempt to send an email through ACTION_SEND and ACTION_SEND_MULTIPLE ... i believe gmail is the icon i always hit. Feb 12 22:14:57 Okie thanks TacticalJoke :) Feb 12 22:14:58 pfn: hm. I mean, the stack trace has the lambda in it, but it eventually gives you a reference that points to the line of code in your files that caused the problem. maybe I should double check that though. Feb 12 22:15:09 groxx, oh, that's not a big deal then Feb 12 22:15:23 groxx, not pointing to the right line number is a big deal Feb 12 22:15:30 pfn: yep Feb 12 22:15:50 pfn: yeah, especially without ART. NPE on line ¯\_(ツ)_/¯ doing ¯\_(ツ)_/¯ Feb 12 22:16:12 groxx, that wasn't really terrible, only painful if you're chaining method calls Feb 12 22:17:04 pfn: it has bugged me pretty much forever that debuggers and stack traces only refer to row, not column. Feb 12 22:18:47 pfn: yeah, I get enough info for my purposes: http://cl.ly/image/410V371h3w2d <- that's a 'throw' on its own line, exact line match. Feb 12 22:19:43 Hmm, v7 seems to include all of v4. Feb 12 22:20:03 At least when pulled via Gradle. Feb 12 22:20:17 Sorry this is a basic question Feb 12 22:20:34 But is there like a Java equivalent of istringstream Feb 12 22:21:05 I think StringReader? I forget. Feb 12 22:21:27 Thanks TacticalJoke. My Google-fu is weak today :(:( Feb 12 22:22:08 heh. that might be one of the harder parts of Java - "I need a thing. wtf implements thing? -> 500 options -> only 1 is reasonable, but have fun!" Feb 12 22:22:23 haha Feb 12 22:22:38 and they all take injected dependencies at least 3 levels deep, so you have to repeat that process several times just to say "hello world" Feb 12 22:22:41 I feel that way about Stack. From what I read, it should just not be used. We should use ArrayDeque. Feb 12 22:22:57 Or Deque in general. Feb 12 22:23:01 *types the word 'String'. Autocomplete gives like 10000000 versions of streams* Feb 12 22:23:09 xD Feb 12 22:23:37 I recently wrote a static helper method for getting a BufferedReader/BufferedWriter for a FileInputStream/FileOutputStream. Seemed weird that I had to do this. Feb 12 22:24:00 This kinda thing: return new BufferedWriter(new OutputStreamWriter(new FileOutputStream(path))); Feb 12 22:24:13 Wait, there isn’t an actual Stack class? Feb 12 22:24:25 There is, but my understanding is that it shouldn't be used. Feb 12 22:24:51 Jon Skeet answer: http://stackoverflow.com/questions/12524826/why-should-i-use-deque-over-stack Feb 12 22:24:55 Though that's for Java itself. Feb 12 22:25:36 it's probably just not very android-friendly. and I don't usually need an unbounded stack - an array or a little bit of recursion works just fine. Feb 12 22:25:40 [00:23.58] This kinda thing: return new BufferedWriter(new OutputStreamWriter(new FileOutputStream(path))); Feb 12 22:25:46 this is the funnest part of java Feb 12 22:26:01 oh also I've recently began to torture java with my haskelly ways Feb 12 22:26:19 BufferedWriter could easily have a File-parameter overload. Or they could've given us BufferedWriters.create(File). Feb 12 22:26:25 Either a = new Left(T); Feb 12 22:26:38 if (a instanceof Left) { bam it's a T! } else { bam it's a U! } Feb 12 22:26:50 I almost created an Either lately. :D Feb 12 22:27:03 TacticalJoke: I'm way more spoiled than that, coming from Ruby too Feb 12 22:27:05 like Feb 12 22:27:05 But I stopped myself because there was a domain-specific way of describing the situation. Feb 12 22:27:11 I love that tap thing in Ruby. Feb 12 22:27:15 I think groxx introduced me to it. Feb 12 22:27:18 File.open "a" do |f| … end Feb 12 22:27:29 Yeah, that's way nicer. Feb 12 22:27:42 the joys of open classes. Feb 12 22:28:04 ya want File.open to handle X? def File.open(x). Feb 12 22:28:14 only time I've used Either is with AsyncTask aka what I saw was the most logical thing to use when doing HTTP Feb 12 22:28:17 Java can be fairly clean if you write around 1,000 static helper classes. Feb 12 22:28:27 boxmein: if you’re using instanceof, your Haskell ways leave a lot to be desired :) Feb 12 22:28:29 Each containing at least two public static methods. Feb 12 22:28:42 jaana: I would use pattern matching but hey java doesn't really have one Feb 12 22:28:52 jaana: ..unless I call a method with it afterwards Feb 12 22:29:02 jaana: which actually now doesn't really sound that bad an idea Feb 12 22:29:06 groxx: natively supported in Kotlin, obviously Feb 12 22:29:19 It'd be so nice to have extension methods in Java. Little things like that make Kotlin really nice. Feb 12 22:29:19 jaana: would it work? defining void a(T x) {} and void b (U x) {} and passing them the Either? Feb 12 22:29:34 yeah, kotlin's approach of "fake open classes w/ static methods that do it for you" is probably the right one for Java. Feb 12 22:29:35 boxmein: I was talking about extension methods Feb 12 22:29:56 I love how you can fake Iterable and operator overloading with that. It's almost ingenious. Feb 12 22:30:14 jaana: I'm confued Feb 12 22:30:32 and apparently MSDN made me login to read the C# equivalent article Feb 12 22:31:39 uh Feb 12 22:31:43 extension methods are weird Feb 12 22:32:24 They can be misused, but they can make code a quadrillion times easier to read. Feb 12 22:32:45 the concept is strange Feb 12 22:32:46 yeah. how many WhateverUtils classes do you have? Feb 12 22:32:53 imagine if they could be part of Whatever instead. Feb 12 22:32:55 so you define a class somewhere far away with some static method Feb 12 22:33:07 I get a little depressed every time I create yet another utils class. Feb 12 22:33:13 heh Feb 12 22:33:18 that magically applies to the class you use as a "this T asdf" argument? Feb 12 22:33:20 boxmein: It's just syntactic sugar. Feb 12 22:33:23 hrm Feb 12 22:33:25 "so you define a class somewhere far away with some static method" aka "so you program in java..." Feb 12 22:33:30 that sounds like a horrible maintenance issue Feb 12 22:33:45 methods magically appearing on your classes Feb 12 22:33:49 It’s no different than reading “a.foo()” and wonder which foo gets invoked Feb 12 22:33:49 ^ Feb 12 22:34:07 coming from the ruby realm: it's totally possible to shoot yourself in the foot with it, in rather spectacular ways Feb 12 22:34:09 it sounds like chasing down some class based on an using Feb 12 22:34:14 groxx: class << self <3 Feb 12 22:34:14 but it also lets you shoot your target WAY easier Feb 12 22:34:49 What's the maintenance issue? Saying "someString.doCoolStuff();" isn't really different, maintenance-wise, from saying "StringUtils.doCoolStuff(someString);". Feb 12 22:35:06 how do the extension methods behave in terms of visibility/acess? Feb 12 22:35:33 because if I were to see someString.doCoolStuff() I'd go chasing it in the String class files Feb 12 22:35:52 only to later discover an import (which are all collapsed because IDEs) that defines it in some off class Feb 12 22:35:56 well, that's because you're in Java. in Kotlin you'd probably just go-to-definition on doCoolStuff. Feb 12 22:36:10 let's not expect any IDE features Feb 12 22:36:10 I'm not sure about Kotlin, but I suspect it's the case that anyone importing that StringUtils class will have the opportunity to use it as an extension method. Feb 12 22:36:11 hm, so now you need another tool Feb 12 22:36:25 that can parse your code to help you understand what's goin on? Feb 12 22:36:38 let's say you got good old vi sans configuration and a terminal and nothing else at your disposal Feb 12 22:36:39 boxmein: sure. then it's harder. you might have to use documentation D: D: D: Feb 12 22:36:39 If you have an IDE, you’re more productive. Been the case for a couple of decades. Feb 12 22:36:45 groxx: what if there is none? Feb 12 22:36:57 boxmein: then you abandon the language forever and move on with your life Feb 12 22:37:00 so I can't make expectations about code without documentation? lol Feb 12 22:37:07 It can be abused, but is "StringUtils.doAllKindsOfStuff(string);" really better? Feb 12 22:37:16 I'd take extension methods over that noise. Feb 12 22:37:18 sure, why not. rdoc is easy. javadoc is easy. LOTS of things support it. Feb 12 22:37:34 Those "utils" classes get *really* hard to read over time. Feb 12 22:37:46 Hey TacticalJoke Feb 12 22:37:49 TacticalJoke: well, is it FooUtil? Or FooUtils? Or Foos? Or FooHelper? With extension methods you never wonder! Feb 12 22:37:51 Hai. Feb 12 22:37:54 TacticalJoke, yes, it's better Feb 12 22:37:56 jaana: haha Feb 12 22:37:56 because it's clear Feb 12 22:38:00 noise or not, I'm saying it's a bother to find the method definition without any sort of attachments Feb 12 22:38:08 is it in this class? Feb 12 22:38:14 I've created a project which uses In App Billing (Using IaBHelper); it's working great. I've decided to completely rewrite my project (using the same namespace and google play id's), however I'm running into In App Billing errors. (response: 3:Billing Unavailable) I'm using the exact same base64EncodedPublicKey and signing with the same key. Am I missing something? Feb 12 22:38:16 or is it in the five different files I have for extension methods? Feb 12 22:38:27 What is the harm in incorrectly thinking that String has a doCrazyStuff() method? Feb 12 22:38:30 boxmein: I'd imagine imports would handle that. you can statically import methods in java too. Feb 12 22:38:31 Yes, I do have the correct com.android.vending.BILLING permission. Feb 12 22:38:50 I think that's only *slightly* harmful at most. Feb 12 22:38:51 groxx: oh yea, more weird features :P Feb 12 22:38:55 And it's very easy to correct such a misconception. Feb 12 22:39:14 groxx: I don't grok java fully but extension methods sound like more pain than gain Feb 12 22:39:22 well Feb 12 22:39:28 guys, noob question... in NDK and OpenSL to play multiple wav files I need multiple players/bufferqueues? like 1 of each per "playback channel" (in SDL_mixer terms) Feb 12 22:39:30 there was this language that solved this in a quaint way Feb 12 22:39:38 groxx, yes, there's a reason vast majority of style guides strongly advise you not to use static imports. Feb 12 22:39:44 :) Feb 12 22:39:46 Ive been thinking about the tags idea, I think when the user first clicks on the Lesson List button, it brings them to a view with a TextView saying select a tag, and a spinner will be displayed by default, just so the user knows that the spinner is there Feb 12 22:39:46 Note that your code could just never use extension methods. Feb 12 22:39:52 You could use them as static methods (the old way). Feb 12 22:40:11 Then once the user chooses a tag, the spinner will be displayed as the user pleases Feb 12 22:40:28 quasist, apparently yes, you need multiple audioplayers. Feb 12 22:40:30 oh Feb 12 22:40:34 can't find the language Feb 12 22:40:35 but basically Feb 12 22:40:48 Mavrik, ty Feb 12 22:41:04 the feature was, that if you call A.blah() it's the same as calling blah(A) iff the method blah wasn't already attached to the class A Feb 12 22:41:19 which is kinda extension methods Feb 12 22:41:21 boxmein: I was thinking of that same thing too. can't remember the term :| Feb 12 22:41:23 except its assumptions are a bit better Feb 12 22:41:52 hey guys :) anybody alive? Feb 12 22:41:57 nope Feb 12 22:42:00 me alive Feb 12 22:42:00 nop. Feb 12 22:42:02 in that there's a concrete syntactical rule that people remember for the fact that you can call random methods on objects and it'll be the first argument Feb 12 22:42:04 /daed Feb 12 22:42:04 nah, not alive Feb 12 22:42:05 sorry Feb 12 22:42:06 /dead* Feb 12 22:42:07 no-op Feb 12 22:42:07 aw men Feb 12 22:42:13 better call the cops? Feb 12 22:42:17 yes Feb 12 22:42:20 it's a mass murder here Feb 12 22:42:20 cyber ones? Feb 12 22:42:21 we would, but we're dead Feb 12 22:42:22 boxmein, might be python :) Feb 12 22:42:24 the internet police Feb 12 22:42:26 drose379: So they don't see the lesson list till they click a button? Feb 12 22:42:32 Mavrik: Python does something similar, but not exactly Feb 12 22:42:34 :'/ Feb 12 22:42:35 boxmein, or C++ Feb 12 22:42:42 since it has implicit parameter as well Feb 12 22:42:43 Mavrik: not that good at Python, so don't ask me :D Feb 12 22:42:56 Yes, I want that just so I am 110% sure that the user will know where to go when they want to view different tagds Feb 12 22:42:57 tags* Feb 12 22:43:02 well, it was the first language I studied but I have no idea how the specifics of crap like methods work Feb 12 22:43:05 The great thing about extension methods in Kotlin is that you can make anything iterable. You can also add operator overloading to anything. Feb 12 22:43:13 implicit parameters are neat I suppose Feb 12 22:43:16 aaah, there we go. Uniform Function Call Syntax: http://en.wikipedia.org/wiki/Uniform_Function_Call_Syntax Feb 12 22:43:28 and you may have been thinking of D Feb 12 22:43:30 yes Feb 12 22:43:31 D Feb 12 22:43:33 that's it Feb 12 22:43:44 yeah. I've been thinking that that should be a thing in every language. Feb 12 22:43:57 lets you write readable code. Feb 12 22:43:58 meet, uh, ruby? Feb 12 22:44:09 you can define method_missing that could search for the method itself Feb 12 22:44:10 I don’t believe Ruby support UFC Feb 12 22:44:16 nah it doesn't Feb 12 22:44:20 ruby is very nice to program in. but tooling sucks, as does performance :) Feb 12 22:44:22 TacticalJoke does that make sense? Feb 12 22:44:22 you could write a method_missing shim, technically Feb 12 22:44:31 drose379: I'm not sure I totally follow. Feb 12 22:44:31 groxx: my thoughts exactly Feb 12 22:44:37 depends on the application, I usually don't care about performance too bad Feb 12 22:44:44 agreed. I do care about tooling though Feb 12 22:44:47 for stuff like HTTP requests the fact that my code runs in 8ms instead of 2 Feb 12 22:44:47 Ok, what part confuses? Feb 12 22:44:50 ..is the least of my worries Feb 12 22:44:51 Note that C#'s Linq was achieved via extension methods. Feb 12 22:44:54 hey guys i'm trying to customize an MultiAutoCompleteTextView. The problem on the custom class is that i wanna pass the id from a string-array resource to being used on a "context.getString()" on the build. My question is how can i convert the "@array/array_name" on the validate ID to the getString function? Feb 12 22:44:58 and I would care about performance if I were writing an android app in ruby. Feb 12 22:45:06 every language has its purpose Feb 12 22:45:08 android app in ruby is not good Feb 12 22:45:10 ruby's is replacing perl Feb 12 22:45:10 drose379: You were saying about having a TextView showing that the spinner contained tags? Feb 12 22:45:12 perl Feb 12 22:45:13 it's slow Feb 12 22:45:23 nobody replaces perl Feb 12 22:45:26 what a same Feb 12 22:45:28 perl's is being a reliable replacement for shell scripts Feb 12 22:45:29 word Feb 12 22:45:31 but yes, perl Feb 12 22:45:32 shame* Feb 12 22:45:38 perl 6 might actually see a release this year or next, lel Feb 12 22:45:43 and go is replacing ruby Feb 12 22:45:51 ugh Feb 12 22:45:52 kkkkk Feb 12 22:46:01 I don't wanna touch go because it's compiled lol Feb 12 22:46:10 nothing wrong with compiled Feb 12 22:46:11 and because it's googlescript Feb 12 22:46:13 boxmein: That’s a terribad reason Feb 12 22:46:13 I know Feb 12 22:46:14 you only know scripting languages huh Feb 12 22:46:17 lol Feb 12 22:46:21 not really Feb 12 22:46:29 sounds like it Feb 12 22:46:29 first language I learned was python, I'll give you that Feb 12 22:46:41 boxmein: First of all because you compile go faster than ruby (or any other language for that matter) Feb 12 22:46:43 I hate dynamic typing. :/ Feb 12 22:46:46 Ok TacticalJoke, so the user clicks the "My Lessons" button, that brings them to an activity with a textview that says "Please choose a tag", a spinner containing all of the tags will be showing. Once a user picks a tag, the spinner is retracted back into a button in the toolbar. This will ensure that the user knows how to change tags later, and th Feb 12 22:46:46 at they are only seeing what they want Feb 12 22:46:49 I thought python was replacing perl... Feb 12 22:46:50 i'm with boxmein. If i need to use compiled language, btter use C Feb 12 22:46:55 I knooooow Feb 12 22:46:58 go Feb 12 22:47:00 ...god* Feb 12 22:47:03 I'm not that inept Feb 12 22:47:29 however, I do prefer interpreted languages most of the time because they're usually higher-level Feb 12 22:47:45 boxmein: That’s no longer true (hasn’t been in a while actually) Feb 12 22:47:55 I wouldn't care compiled vs interpreted _if_ tooling were the same. but tooling tends to suck for interpreted languages, because static analysis tends to suck for interpreted languages. static analysis is an amazing thing. Feb 12 22:47:57 drose379: Okay. That sounds like normal Spinner behaviour. Feb 12 22:47:58 hey everyone Feb 12 22:48:03 leaving me less worrying about the lower details like setting up a socket, rather than just firing a HTTP request Feb 12 22:48:08 barbs: python is not replacing anything. python was created to teach was what's the meaning of "high-level language" Feb 12 22:48:23 boxmein: this has nothing to do with languages, it’s a library concern Feb 12 22:48:28 and the only compiled languages I've used are rust, haskell, C, C++ and uh Java/C#/Python if you consider JIT compilation Feb 12 22:48:37 TacticalJoke ok, you think I should go for the custom tags idea over the pre-defined priorities? Feb 12 22:48:58 jaana: the standard library to be precise Feb 12 22:49:06 Hmm. What would the pre-defined priorities be? Feb 12 22:49:12 jaana: which, among syntax, is the second most important thing in a language personally Feb 12 22:49:21 ruby syntax is pretty terrible Feb 12 22:49:22 No argument there, syntax is very important Feb 12 22:49:25 everybody talking about python, perl, ruby. no java/android today? :( Feb 12 22:49:34 you can do ruby and python on android Feb 12 22:49:39 jython and jruby are completely functional Feb 12 22:49:46 and you can write complete apps with them, somewhat slow though Feb 12 22:49:48 TacticalJoke sorry to keep pinging you, just alot of people talking. The predefined priorities would be High, Neutral, Low Feb 12 22:49:52 Quick question : in AS, when looking at layout previews, there are like 7-8 different devices. That's great. Is there a way to know the size of those devices? I.e. which drawable/layout folder they are using to display the UI? Feb 12 22:49:52 and if the standard library in C requires you to set up sockaddr_in structs etc etc just to make a listen socket, I find it's easier to skip that and write the following in Ruby: Feb 12 22:49:54 It's okay. Feb 12 22:50:08 pfn the problem is that we not have complete access to the api :/ Feb 12 22:50:13 And would tags be stuff such as "photoshop", "android", "biology", etc.? Feb 12 22:50:22 abara, jython and jruby are jvm languages, they have complete access to the api Feb 12 22:50:41 see, now I'll have to say something apocryphal. I like Javascript in part _because_ its standard library is nearly non-existent. it means you can pull in whatever works best _now_, rather than when the language was being created. Feb 12 22:50:55 pfn: i dont think so. because they need to be rewrited on dalviq Feb 12 22:50:59 ... Feb 12 22:51:03 abara, you really don't understand do you Feb 12 22:51:05 ....I'll not bother Feb 12 22:51:06 groxx: That’s an odd way to reason Feb 12 22:51:17 but yeah, point remains Feb 12 22:51:19 and javascript is quite terrible, core library lacking or not Feb 12 22:51:34 lol, get on the NaCl level Feb 12 22:51:44 TacticalJoke, those would be the subjects. The tags would be in place of the priorities. So they would be things like: immediate, important,simple,challenges Feb 12 22:51:46 jaana: orly? in java you get stuck with new BufferedReader(new FileInputReader(new File(""))) because everyone does it because it's part of the standard framework. Feb 12 22:51:50 groxx: I sorta agree, comparing it to C Feb 12 22:51:57 Things like that, just a way to organize the lessons of a subjevt Feb 12 22:51:59 subject Feb 12 22:51:59 pfn: last time i research about that was 3 years. sorry :/ Feb 12 22:52:04 groxx: Plenty of wrappers around that, and their implementation is just fine Feb 12 22:52:13 the standard library has a _massive_ influence on the community that uses it though. Feb 12 22:52:14 Ahh, okay. Feb 12 22:52:22 groxx: it serves its purpose well, and with 'use strict' it's not too much of a nightmare Feb 12 22:52:26 And the user can determine the subjects? Feb 12 22:52:31 pfn on that time we only get a few toasts on python, perl o js over android .-. Feb 12 22:52:39 groxx: while C still sits with a rand() that has a limit of 32767 numbers Feb 12 22:52:45 javascript is pretty light and unopinionated, you can tweak it into a lot of things. it has some significant flaws, but the flexibility is pretty fantastic. Feb 12 22:52:57 User creates their own subjects, lessons, tags, etc... Feb 12 22:53:05 groxx: another cool thing in javascript right now are transpilers Feb 12 22:53:12 <3 transpiling. Feb 12 22:53:19 typescript is an excellent thing Feb 12 22:53:31 Hmm. It's hard to say. I am tempted to say that the subjects themselves could be tags. Feb 12 22:53:33 hey, wanna use the next big thing in javascript without fucking support for anything below chrome 41? here's a program! Feb 12 22:53:44 Though I don't know as much about your app as you do. Feb 12 22:53:45 hey, wanna write with whitespace instead of brackets? here's coffeescript! Feb 12 22:54:02 hey, wanna do compile-type type analysis! here's typescript, dart and atscript! Feb 12 22:54:13 Thats actually something to think about TacticalJoke Feb 12 22:54:20 Maybe the subjects could be the tags Feb 12 22:54:31 anyway Feb 12 22:54:38 interesting chat, but I gotta doze off Feb 12 22:54:46 gotta wake up extra early tomorrow Feb 12 22:54:55 Idk though, dont want someones lessons from two completeley different subjects to get mixed up Feb 12 22:55:09 Let's say that I'm learning science and I have two lessons: evolution and abiogenesis. It'd be cool if I could tag both 'science'. Feb 12 22:55:27 And it'd be cool if I could tag the first 'biology' and 'science' and the second 'chemistry' and 'science'. Feb 12 22:55:34 e.g., multiple tags per item and multiple items per tag. Feb 12 22:55:36 ^ Feb 12 22:55:36 Yes it would, that would be a higher level tag Feb 12 22:55:43 categorization at its best Feb 12 22:55:49 tell the computer literally how to categorize Feb 12 22:56:01 s/e.g.,/i.e.,/ Feb 12 22:56:02 Maybe I could do tags for subjects and tags for lessons Feb 12 22:56:09 Yeah, you could. Feb 12 22:56:14 don't over-engineer it lol Feb 12 22:56:20 let both subjects and lessons have "tags" Feb 12 22:56:25 and let users define their own "tags" Feb 12 22:56:27 Pre-defined tags/categories for lessons might be easier for the user, though. But I'm not sure. Feb 12 22:56:31 and sort / order / group by them Feb 12 22:56:43 you can deliver a set of localized tags for ideas Feb 12 22:56:55 like sciences, basic subjects, categories such as literature/etc Feb 12 22:57:04 You could have predefined and changeable tags for lessons. Feb 12 22:57:05 but in the end the world is a diverse place Feb 12 22:57:30 Yeah, people could be using this app for a lot of different things, would pre-defined tags for lessons work? Feb 12 22:57:38 Or would I be better off leaving it all up to the user Feb 12 22:57:46 Maybe a few pre-defined tags would be nice Feb 12 22:57:47 and for example I had a course called "Human Geography" which isn't sociology nor geography so it doesn't really fit Feb 12 22:57:58 it's sorta both and in the end it was mostly statistics Feb 12 22:58:00 So lesson tags are just about importance, right? Feb 12 22:58:04 Just for sorting, I guess. Feb 12 22:58:11 Or time-sensitivity or something. Feb 12 22:58:16 Sorting/grouping sounds like what tags are good at Feb 12 22:58:28 if you wanna attach importance/etc it should be its own variable Feb 12 22:58:36 also if you're making a lot of stuff have tags Feb 12 22:58:43 a mass-lesson-editor is something to think of Feb 12 22:58:52 so you could select 150 lessons and add/remove tags on them Feb 12 22:59:02 anyway Feb 12 22:59:03 box off Feb 12 22:59:10 o/ Feb 12 22:59:12 Thanks for the help ^ Feb 12 22:59:14 Yeah, mass editing would be powerful. Feb 12 22:59:21 Though hard to design on Android, maybe. Feb 12 22:59:43 TacticalJoke, so maybe I should just keep the priority for lessons, and add custom tags to the subjects? Feb 12 22:59:44 Hello. I want to know when picasso has already loaded 3 images into some views; It is possible to use Target as a callback, but I am hoping there is a cleaner way. Feb 12 22:59:51 drose379: fwiw I'll vote: tags are great and people seem to understand them. _hierarchical_ tags are undeniably useful for some people, but I'm unconvinced about their general use. Feb 12 23:00:17 drose379: I think I'd do that, but I'm not certain (because I haven't used the app and stuff). Feb 12 23:00:20 explodes: just use the normal callback Feb 12 23:00:28 Hmm Feb 12 23:00:30 The normal one? Feb 12 23:00:41 Well how about I start by adding a custom tag feature for the lessons Feb 12 23:00:53 drose379: What is the purpose of lesson tags? Feb 12 23:01:06 Is it just "priority"? Feb 12 23:01:19 Organization really. They _could_ be used for importance or priority, if thats the way the user creates them Feb 12 23:01:34 JakeWharton: Picasso.Builder(context).listener(new Picasso.Listener() { ... } // create Picasso under application context in a dagger module Feb 12 23:01:39 But the user could create totally different tags, its up to them really Feb 12 23:01:44 If I build it that way Feb 12 23:01:46 I wonder what else they could create. Hmm. Feb 12 23:01:57 explodes: into takes a Callback Feb 12 23:01:59 Hmmm Feb 12 23:02:01 Oh Feb 12 23:02:02 My Feb 12 23:02:06 thanks. Feb 12 23:02:20 As far as I can think, it's only "priority". Feb 12 23:02:28 If that's right, then it might be more sensible to force a set of categories on them. Feb 12 23:02:42 So you think keep priority for lessons, and custom tags for lessons? Feb 12 23:02:44 If not, then I guess tags make sense. Feb 12 23:02:48 I mean for subjects Feb 12 23:02:53 Yeah, from what you've described. Feb 12 23:03:13 Having only so much info, and only offering my views, I could be totally wrong. Feb 12 23:03:29 But for me, that wouldnt really be useful, because how many things is someone going to be teaching themselves at once? Feb 12 23:03:43 I know I as of now would just use this app to help learn Android and java Feb 12 23:04:10 So my subject would probably just be called "Android", and I would probably never even use the custom tagging system for the lessons Feb 12 23:04:10 JakeWharton: have I thanked you lately for pidcat? saves me loads of pain when the IDE refuses to connect :( Feb 12 23:04:31 groxx: let me ask you, do you miss having timestamps? Feb 12 23:04:37 everyone wants timestamps but i've never missed them Feb 12 23:04:55 I love timestamps Feb 12 23:05:00 JakeWharton: only rarely. when I want timestamps, I usually resort to an elapsed-time helper anyway. Feb 12 23:05:17 JakeWharton: main desire is probably resizable window - the text is still wrapped to the original width :| Feb 12 23:05:23 I use them to see how long certain operations are taking Feb 12 23:05:33 drose379: You know, if it were a general-purpose to-do-list app it'd have so many uses. Feb 12 23:05:37 i don't think i can fix that unless i switch to ncurses Feb 12 23:05:41 But maybe you don't want to go down that road, which I'd understand. Feb 12 23:05:48 JakeWharton: yeah, and that comes with its own pains. Feb 12 23:06:00 many pains Feb 12 23:06:02 Yeah, too many to-do lists out there, and thats not even really what im looking for Feb 12 23:06:04 I do like your lesson idea. Feb 12 23:06:09 how do i reference a theme in a gradle dependency? Feb 12 23:06:14 Thank you TacticalJoke Feb 12 23:06:30 So I think Im gonna go for custom tags on each lesson, within a subject Feb 12 23:07:38 And on the Subject Dashboard, Ill add a "Tag Editor" where the user can see their tags, create tags, and see which lessons are attached to which tags Feb 12 23:07:41 JakeWharton: not sure what's involved in it, but personally I'd probably prefer if it just printed the text and let the console wrap it. I would guess that would solve the resize issue, and I don't mind broken left-edge-tag-lines when it wraps. Feb 12 23:07:46 Cool. Feb 12 23:08:01 Hows the reddit client? Feb 12 23:08:04 Whatever you do, force the user to use the app however you want it to be used. Make it a dictatorship. Feb 12 23:08:14 You being serious? Feb 12 23:08:18 It's all right; just switched to AppCompat. It's been stressful. Feb 12 23:08:26 I think I'm over that hill now, though. Feb 12 23:08:30 Mainly serious, yeah. Feb 12 23:08:30 Good Feb 12 23:08:53 My app looks way nicer now. Feb 12 23:09:05 Doesnt it feel good when your app looks nice :) Feb 12 23:09:11 Screen demo? Feb 12 23:10:26 Yeah, make a screen demo! Feb 12 23:10:36 does anyone here have experience with using Matrix to tweak bitmap display, and inverting it to draw back to the source image? I'm trying to do a thing, but it refuses to be done. Feb 12 23:10:51 Hmm, I could make videos. I used to have a YouTube channel. Though my app is too boring to talk about so far. Feb 12 23:11:07 Can I show you a screenshot in a couple of days? I haven't done proper theming yet; it'd be disappointing to see it now. Feb 12 23:11:20 It's mainly black. It just no longer looks like Holo. Feb 12 23:11:36 Yeah, show me a screenshot whenever, Id love to check it out Feb 12 23:12:56 Is status bar supposed to change color for any > 5.0 ? Feb 12 23:13:03 err 5.0 < ? Feb 12 23:13:29 That is, can I have a translucent status bar on 4.x if using app compat library or whichever? Feb 12 23:13:52 appcompat might make e.g. actionbar handle it for you, but otherwise you can do it by hand with a few levels of behavior. Feb 12 23:14:44 I forget the versions, but it's something like 4.x = you can draw behind the status bar (thus tinting it), 4.3/4 = you can tint it directly or draw behind it, 5.0 = I forget. Feb 12 23:15:44 drawing behind the status bar means your views go under it though, not sure what appcompat could do to simplify it since it implies non-trivial layout changes. Feb 12 23:15:48 Im out for a bit, thanks for the help TacticalJoke Feb 12 23:16:28 And thanks for the advice a few mins ago groxx Feb 12 23:17:01 o/ good luck drose379 Feb 12 23:17:26 Thank you Feb 12 23:18:02 groxx yeah i tried using scrimframelayout but couldn't get it to work, tried also using a library no luck on this device Feb 12 23:18:37 lasserix: similar to my (brief, probably misguided) attempts, yeah. Feb 12 23:18:44 I gave up and just tint on 4.4+. Feb 12 23:19:02 that at least is really easy Feb 12 23:29:42 groxx, `only 4.4+ can draw behind the status bar Feb 12 23:30:17 in retrospect that ordering makes more sense. so tint on older, under-draw on 4.4+? Feb 12 23:36:28 i like this guys method just setting it to translucent, then using padding of toolbar Feb 12 23:36:34 for 19+ Feb 12 23:36:58 Hey guys, I have a strange question maybe.. Feb 12 23:38:10 what is this nonsense of dragging applications into applications folder on mac? like i download an app, unpack it and then manually have to drag to app folder? can't the unpacking which seems to install it do that? Feb 12 23:38:15 tricknology: whats up Feb 12 23:38:41 I might have a case where a library I’m building will reference another library that some 3rd party dev might or might not have. However, that library, in a specific instance, won’t be needed. Is there any way to pack everything up without encountering NoClassDefError? Feb 12 23:39:12 you can have gradle not include some dependency in another dependency Feb 12 23:39:23 not using gradle :/ Feb 12 23:39:29 eclipse/ ant Feb 12 23:39:38 lasserix: What if you want to put it somewhere that’s not /Applications? Feb 12 23:40:31 s73v3r: i have not used mac since maybe like 5th grade? Feb 12 23:40:36 i guess Feb 12 23:40:59 just seems creating a spaceship but finishing the entier operation by using ducttape to secure a window shut or something Feb 12 23:41:09 the point is that you can “ Feb 12 23:41:19 the point is that you can “install” it to wherever you want Feb 12 23:45:40 lasserix: yeah, I'm confused that they still haven't cleared that part up. conceptually you're not "unpacking" it, you just "plugged in the usb drive that it came on". it's not "on your computer" yet. Feb 12 23:50:49 groxx wow that totally worked Feb 12 23:51:10 so if you use translucent statusbar, plus fitssystemwindws=false in drawerlayout, for 19+ you can get it behind Feb 12 23:51:17 a translucent Feb 12 23:53:32 get what? Feb 12 23:53:37 the nav drawer? Feb 12 23:54:17 You guys should talk to Napalm, he’s got a pretty sweet nav drawer Feb 13 00:00:06 JakeWharton: Is WebSocket officially supported in okhttp or is it still kinda hidden? Feb 13 00:00:13 still kinda hidden Feb 13 00:00:28 Why? Not stable enough? Feb 13 00:01:27 API hasn't really been beaten into what's best Feb 13 00:01:33 they should work fine Feb 13 00:01:52 Ok, good to know. Surprised to hear about the API, seems like a pretty straightforward callback model, no? Feb 13 00:03:44 groxx, I don't recall pre-4.4 being tintable Feb 13 00:03:55 groxx, 4.4 is when tinting became possible Feb 13 00:06:01 pfn: hm. maybe I'm off by a version. is tinting (without having to play around with scrim layouts / top padding / etc, just changing color) only Lollipop? and 4.4 only lets you draw behind, so you have to fight with the layout? Feb 13 00:06:12 groxx, that's right Feb 13 00:06:42 does look that way from the docs at least. thanks, my brain must be draining or something :) Feb 13 00:07:37 I do massive layout fighting to get qicr to look right on kitkat Feb 13 00:07:37 heh Feb 13 00:07:57 Hi, when i try to add a toolbar following this tut : http://antonioleiva.com/material-design-everywhere/ i get this : http://prntscr.com/64eim8 Feb 13 00:08:18 https://github.com/pfn/qicr/blob/master/common/src/com/hanhuy/android/irc/MainActivity.scala#L100 Feb 13 00:08:19 ;-) Feb 13 00:09:02 oh dear Feb 13 00:12:39 Ah, wrong import. Feb 13 00:12:44 It's working now. Feb 13 00:18:09 pfn: you make qirc? Feb 13 00:18:20 qicr* :) Feb 13 00:19:12 ive been using it for about a year and just realized its qicr :D Feb 13 00:19:19 I am getting this : Do not request Window.FEATURE_ACTION_BAR and set windowActionBar to false in your theme to use a Toolbar instead. I have set the windowActionBar to false but i can't find the FEATURE_ACTION_BAR. Anyone know where is located ? Feb 13 00:19:24 heh, yeah Feb 13 00:19:47 pfn: if you are the dev of that app you have saved me soooo much money Feb 13 00:20:37 how does qicr save you money? Feb 13 00:21:03 I think the correct question is "can have I some of that saved money?" :) Feb 13 00:21:23 not much anymore, but I used to trade bitcoin pretty seriously. when I was at school the only way to get a lot of info, and trade was through irc Feb 13 00:21:43 only good client i could find was qicr Feb 13 00:24:46 I need my RelativeLayout to have rounded corners on the bottom left and right, the top left and right should be perfectly 90 degress (squared) why does this not produce that result? http://pastebin.com/nsS2m4Zv Feb 13 00:26:30 MartialLaw: what is it producing? Feb 13 00:26:54 a perfect rectangle... no rounding whatsoever Feb 13 00:28:00 MartialLaw, how are you applying that shape to the layout? Feb 13 00:28:12 background Feb 13 00:28:38 maybe it's this bug? http://stackoverflow.com/a/2785435/16295 Feb 13 00:28:47 hello I set up a .keystore file using some commands with openssl and keytool but now I need to use that .keystore file for my updated android app and the password isn't working Feb 13 00:28:53 I didn't know when I set up the password but I have those commands which I executed to make the .keystore file, please let me know how to get the password back ? Feb 13 00:29:52 groxx nah that doesnt work either' Feb 13 00:30:17 I used these commands suggested by Sam Shute on this page: http://stackoverflow.com/questions/22212869/how-can-i-generate-an-android-keystore-from-a-key-pk8-and-certificate-pem Feb 13 00:30:37 this is typical problem of android... so goddamn typical of android Feb 13 00:30:57 shoddy and sloppy Feb 13 00:32:26 I think the way the xml looks is shoddy and sloppy, so many characters for.. one thing... but don't mind me i'm a hater. Feb 13 00:35:54 true... use binary Feb 13 00:37:01 I am getting this error when i try to run my app : http://pastebin.com/a3R8aac0 Any ideas ? Feb 13 00:37:15 I'm not a fan of XML. Feb 13 00:38:18 NullPointerException at ivke.app.careerdaysapp.NavigationDrawerFragment.onCreateView(NavigationDrawerFragment.java:101). Feb 13 00:39:07 Yeah, i see that, but i am new to android apps and i don't really understand it. :P Feb 13 00:39:41 at that line, you have "nothing" and you're telling it to do something. Feb 13 00:43:45 how to get toolbar text color to change? i am using theme light.noactionbar Feb 13 00:44:24 I found earlier that you can set android:textColorPrimary on any version of Android. Feb 13 00:44:33 does not work :P Feb 13 00:44:47 It works but you have to use app:theme="[...]ActionBar". Feb 13 00:44:54 I forget and don't have Android Studio open. Feb 13 00:45:08 Couldn't you use android:textColor on Toolbar anyway? Or doesn't that work? Feb 13 00:45:30 no that doesn't work Feb 13 00:48:56 If you use [app:theme="@style/ThemeOverlay.AppCompat.ActionBar"] on the Toolbar and [#ff0000] in your theme, it should work. But it sets the text colour of various things. Feb 13 00:51:51 Did that work, lasserix? Feb 13 00:52:51 Anyone know how to make a new SQLiteOpenHelper without resetting the database version, In other words what can I use to pass as the DabaseVersion? Feb 13 00:53:01 I think we discussed this yesterday Feb 13 00:54:36 AndreYonadam: by default it doesn't reset the database. and it defines onUpgrade, which you have to override - in there, do any db changes / data migrations that you need to go from [old version] to [new version] Feb 13 00:55:35 groxx: The problem is that sure I can access it but it will decrease the version as soon as I create it. Feb 13 00:56:19 AndreYonadam: it won't do that unless you have code somewhere that does that. or, if you throw an exception from onUpgrade, it'll roll back the changes so you can try again later. Feb 13 00:57:13 SQLiteOpenHelper does very little beyond lazily initializing the database + making sure upgrades happen safely and before they're needed. Feb 13 00:59:37 groxx: I have an onUpgrade code which handles the new data and an onDowngrade which is empty. The problem is that when I create the variable to use in my main activity I don't know what the most recent version is so I pass (context, DATABASE_NAME, null, version) and version is 1 because I don't know what the most recent one is since the table is updated from another class that requests new information from a JOSN file along with Feb 13 00:59:37 the current version name. Feb 13 01:00:16 DadFoundMy, I see Feb 13 01:00:36 The version, "1" that I pass is always going to be less than the version of the JSON file which is newer Feb 13 01:00:40 pfn: you never answered, are you the dev? :D Feb 13 01:00:42 Therefore its going to downgrade Feb 13 01:00:49 unless if you'd rather not say Feb 13 01:00:49 DadFoundMy, it isn't obvious? Feb 13 01:01:13 well, not totally, but i'd assume so Feb 13 01:01:28 Its going to downgrade when I create the SqliteHelper when I want to access the database, and then it will come back when I upgrade but will go back down to 1 when I create the Sqlitehelper again to access the database Feb 13 01:01:31 AndreYonadam: that would imply you're using it wrong - you should essentially never downgrade. Feb 13 01:01:40 is it Yesterday again? Feb 13 01:01:55 tricknology: Just some more advancements made Feb 13 01:01:59 the versions are meant to only ever increase Feb 13 01:02:02 aah I see Feb 13 01:02:13 did you ever figure out your issue? then ran into another one? Feb 13 01:02:50 This sounds like a mess lol Feb 13 01:02:58 upgrade, downgrade upgrade Feb 13 01:03:36 You better keep track of your downgrades and upgrades and not try to insert something from the upgraded table into the downgraded table Feb 13 01:03:44 the core of the problem seems to be that you're using the database-version as a "db has / needs data" flag, which is not what it's meant for. it's a thing to manage changing the _structure_ of the database, not (generally) what data is in it. Feb 13 01:03:45 groxx: It does only increase when I upgrade. That is correct. But when I want to access the variable I have to construct an sqlitehelper in which I have to pass a version number. The problem is that I can't access it without create the sqlitehelper in the first place so I don't know what the current version is, Unless I log the current version number In something like a sharedprerence and use that. Feb 13 01:03:51 I see race conditions which could lead to SQLiteExceptions Feb 13 01:04:07 ^^ Feb 13 01:04:19 well said groxx Feb 13 01:04:28 I know how to change the ActionBar color, but how do i change the color of listView on the Drawer ? :D Feb 13 01:04:38 you should create a method AndreYonadam, like notifyDataSetChanded() Feb 13 01:05:07 ..idk how that would help though Feb 13 01:05:13 Nightwalkerkg, by setting the color on it? Feb 13 01:05:15 I’m still confused as to what you’re trying to achieve Feb 13 01:05:18 that seems pretty obvious Feb 13 01:05:43 pfn: How ? Feb 13 01:05:53 by setting the color like you do any other view? Feb 13 01:07:25 Let me simplify what I'm trying to do. Fetch Json file... use that version number to construct a SQliteHelper. Works great, upgrades great! But, when I want to access the database I construct a SQLiteHelper with version number 1 because there is no other way to know the current version. Feb 13 01:08:26 so, why are you using a version number from the json file in the first place? Feb 13 01:09:05 groxx: So if it is newer than current local db one, it will update. Feb 13 01:09:11 the version number is usually the "current" database structure that you code against. your code should only ever care about the current version. onUpgrade is run before your other code can interact with the DB, so it ensures it's what you expect. Feb 13 01:09:12 Which it does, it runs onUpgrade Feb 13 01:09:19 no, but what is newer. data, or structure? Feb 13 01:09:33 data Feb 13 01:09:35 Dude Feb 13 01:09:45 Andre, the current version should be hardcoded Feb 13 01:09:54 then you should not be using version code. Feb 13 01:09:55 or are you building the table FROM the JSON data Feb 13 01:09:56 Whats the best way to save an arrayList into sqlite, about of hour of googling is giving me a couple ways Feb 13 01:10:20 you want another table in your database that has a 'data version' number that you query and compare against the json file, or you want to store it somewhere else, e.g. in SharedPreferences Feb 13 01:10:31 tricknology: That's the problem. I can update my code, but then when I use the Hardcoded version its going to always be lower because the data is older. Feb 13 01:10:53 then make a setter Feb 13 01:11:08 groxx: I was thinking about sharedpereferences. Feb 13 01:11:14 DadFoundMy: start a transaction, loop, db.insert(etc), end the transaction? Feb 13 01:11:18 tricknology: setter? Feb 13 01:11:24 one sec looking into Feb 13 01:11:34 to set your version Feb 13 01:11:46 What you should really do… Feb 13 01:11:51 groxx: no like in my class I have an ArrayList instance variable that I would like to save as a key in my db Feb 13 01:11:53 is just put your whole table somewhere Feb 13 01:12:14 then if your db version doesn’t match, delete your DB and DL the new one Feb 13 01:12:19 unless you really only care abotu the table Feb 13 01:12:22 DadFoundMy: sql doesn't really have "keys". what are you trying to do, exactly? Feb 13 01:12:45 groxx: save an ArrayList instance variable into the db Feb 13 01:13:02 then get the table data in JSON, with the new version, drop the current table, increment version in SharedPrefs Feb 13 01:13:16 then get the DB version from shared prefs every time Feb 13 01:13:21 DadFoundMy: that's extremely non-specific :) literally anything could be in there. Feb 13 01:13:33 Hi guys. Why dynamically created and added View and its subclasses objects aren't saved and restored on configuration change? Feb 13 01:13:45 Becayse you aren’t saving them Feb 13 01:13:47 AlexBerdnikov: they need a unique ID Feb 13 01:13:56 I have unique ID for them Feb 13 01:14:05 tricknology: That's a good idea Feb 13 01:14:09 I create and add ID explicitly Feb 13 01:14:20 R.id.something Feb 13 01:14:29 groxx: So it is an agenda book app. I save my class data in the database. One of the instance variables of the class is ArrayList with Assignment being a class I made Feb 13 01:14:47 so Assignment has a few properties on it, right? Feb 13 01:14:50 I have a layout/drawable problem. Unless it's just AS screwing with my brain. I made a Google doc to show the problem : https://docs.google.com/document/d/1Sp8DpRA9wRnRuYfRafIlm6jWeZCw9YfN0dDyBLddr7o/edit?usp=sharing Feb 13 01:14:53 groxx: yes Feb 13 01:15:05 tricknology: I was also thinking about saving the newVersion int in a sharedperefecnce instead of hardcoding it Feb 13 01:15:07 groxx: it holds 2 Date objects, and 2 strings Feb 13 01:15:22 So, ummm... no ideas about that, guys? Feb 13 01:15:24 tricknology: I know there might be better ways of doing it but not sure Feb 13 01:15:39 then you want a table with a column for each of those properties, and use db.insert() with a ContentValues object with ("column name", value). loop & insert. Feb 13 01:16:21 damn I cant just add it to my existing table? Feb 13 01:16:32 AndreYonadam, SharedPrefs would be fine.. if the user clears data then what? Feb 13 01:16:32 DadFoundMy: ah, you have an existing one? Feb 13 01:16:38 your dbs are gone too Feb 13 01:16:50 yeah Feb 13 01:16:55 groxx: yes, right now my table holds the other class data (2 strings, and a int) Feb 13 01:16:56 So I guess it won't be a problem Feb 13 01:17:07 I mean the dbs would be gone regardless Feb 13 01:17:21 Shared prefs it, then ahve a method that gets from SharedPrefs, and use a setter to set your DATABASE_VERSION to whatever you got from sharedPrefs Feb 13 01:17:23 DadFoundMy: yeah, if they're different kinds of data (e.g. "class" and "assignment"), typically you would have two tables. Feb 13 01:17:25 groxx: i was thinking about using this solution, does it seem reasonable? (http://stackoverflow.com/questions/5703330/saving-arraylists-in-sqlite-databases) Feb 13 01:17:30 before it looks for it being updated Feb 13 01:17:48 groxx: well the class has an assignment list Feb 13 01:17:55 tricknology: The best way I can do it is to find a way to access the same database I'm managing with the SQLITEHelper without it. Feb 13 01:18:07 I don't know if that is possible though Feb 13 01:18:22 You make your own? Feb 13 01:18:30 Hmm Feb 13 01:18:33 Good idea Feb 13 01:18:34 DadFoundMy: then typically you'd have a table for classes, with an "id" column. and a table for assignments, with a "class_id" column. fill the class_id with the proper class's ID. then to find assignments for a class, you query where class_id=X. Feb 13 01:18:51 or override the onUpgrade method Feb 13 01:19:03 idk, the world is yours really Feb 13 01:19:07 lol Feb 13 01:19:14 yeah I'll see what the best option is Feb 13 01:19:22 There are a million ways, just pick the one that is the least pain in the ass Feb 13 01:19:22 I'll message back to inform on what I did Feb 13 01:19:25 DadFoundMy: saving a blob of text would work too, though. it might come back to bite you (it's not structured, so you may have trouble changing the format in the future), but you can definitely put that in a db row. Feb 13 01:19:28 Cool Feb 13 01:19:30 was anyone able to take a look at my drawing problem? Feb 13 01:19:45 Neg, not sure if I’ll be able to comprehend but link? Feb 13 01:19:54 https://docs.google.com/document/d/1Sp8DpRA9wRnRuYfRafIlm6jWeZCw9YfN0dDyBLddr7o/edit?usp=sharing Feb 13 01:20:04 groxx: ok, thanks Feb 13 01:20:25 DadFoundMy: and if you haven't done much with databases (e.g. no joins), and _all_ you need is classes + assignments, then you can probably just add an assignments-column to your existing table and JSON-serialize it. Feb 13 01:20:35 I really don't get it... and honestly, I'm not sure it's really a problem, and not just AS flaking out on me Feb 13 01:20:45 DadFoundMy: it might be closer to what you're used to doing, which has its benefits :) Feb 13 01:20:51 MikeWallaceDev, did you try this on an Emulator? Feb 13 01:20:55 or a device? Feb 13 01:21:23 groxx: do you mean add a coloumn holding single assignments, or arraylists full of them? Feb 13 01:21:29 It works on my device, but then again my device type is also working in the preview Feb 13 01:21:53 huh,,, Feb 13 01:22:04 I didn't create an AVD yet, I wanted to pass it by you guys first, to see if it's just not something dumb that I'm doing Feb 13 01:22:07 DadFoundMy: if you want to add them to the table with classes, and each class has its own list, you would have to have a single column for the arraylist-as-JSON. Feb 13 01:22:37 how is your margintop dimen? Feb 13 01:22:38 DadFoundMy: think of it like a spreadsheet. rows are classes, columns are the data for the class. and you can't have gaps in rows. Feb 13 01:23:06 im going to try something like that, thanks for all the help Feb 13 01:23:11 DadFoundMy: "gaps between rows" might be a better way to phrase that. columns can be empty, rows cannot. Feb 13 01:23:19 conceptually Feb 13 01:23:28 it's like 20dp, but I tried that, removed it and it does as expected, the whole wrongly sized image raise about 16dp... Feb 13 01:23:34 oops, I mean 20 Feb 13 01:23:59 the image is wrongly sized or distorted? Feb 13 01:24:22 I.E. you’re loading a hdpi resource into a ldpi? Feb 13 01:24:25 it's not distorted. It's not stretched. It's.... modified! Feb 13 01:24:39 no, xhdpi, into xhdpi Feb 13 01:24:47 you can see the original image in the doc Feb 13 01:24:51 I'm in ur imagez, changin ur pixelz Feb 13 01:24:59 EXACTLY! Feb 13 01:25:10 those rectangles? Feb 13 01:25:14 yes Feb 13 01:25:28 I assumed you did that for some reason Feb 13 01:25:30 the original image is underneath Feb 13 01:26:24 as you can see in the original, there is but a little transparency, but on the device there is much more Feb 13 01:27:34 It makes no sense, it must be an AS bug Feb 13 01:28:02 If the image was stretched, I'd say I did something wrong. It's not. Feb 13 01:28:18 There are added pixelzzzzzzz! Feb 13 01:28:39 Gotta be an AS bug. Feb 13 01:29:58 MikeWallaceDev: Try it in AS? Feb 13 01:30:09 sorry? Feb 13 01:30:24 try what? Feb 13 01:31:05 fuck me. I created an AVD, it does the same thing. WTH?? Feb 13 01:32:23 what device is that anyway? Feb 13 01:32:29 Nexus 1? Feb 13 01:32:47 Galaxy Nexus Feb 13 01:34:17 When the user clicks on an editText, does that give the editText _focus_? Feb 13 01:34:30 if it’s focusable Feb 13 01:35:05 MikeWallaceDev, I meant try it in Eclipse Feb 13 01:35:16 but the AVD is showing, that’s weird Feb 13 01:36:08 Are you sure nothing is happening to your drawable Feb 13 01:36:09 Totally weird. I'm looking into dimens now. But I don't see how that can be, there are no dimens (padding/margin) in the ImageView's layout... Feb 13 01:36:13 Ok I want to emulate the effect of a user actually clicking on an EditText, but when they click on a button Feb 13 01:36:50 Is there a method for that? Feb 13 01:37:03 uuh what do you mean Feb 13 01:37:06 simulate the effect Feb 13 01:37:18 tricknology, I'm taking a deeper look now. It has to be something in the code because it does it in the AVD too... Feb 13 01:37:23 I'll be back. Feb 13 01:37:29 yeah that’s what I would assume from that Feb 13 01:37:43 tricknology I mean when the user clicks a button, a new EditText appears Feb 13 01:37:44 I assumed you were doing that on purpose because of where the boundaries are Feb 13 01:37:48 oh.. Feb 13 01:37:52 But they have to click on it in order to type in it Feb 13 01:37:53 where do you want it to appear Feb 13 01:38:02 I want to enable them to type in it as soon as it appears Feb 13 01:38:04 has it always been there and just changing visibility? Feb 13 01:38:25 No Feb 13 01:38:27 There are a few ways to do that.. Feb 13 01:38:29 Its being added to the view Feb 13 01:38:35 Ok, best way? Feb 13 01:38:36 and you know how to add to view? Feb 13 01:38:50 and you know how things orient with eachother? Feb 13 01:38:52 Yes, the view is already added Feb 13 01:38:53 very simply.. Feb 13 01:38:56 wait waht? Feb 13 01:39:03 what? Feb 13 01:39:05 lol Feb 13 01:39:09 the view is already added? Feb 13 01:39:18 let me start over.. Feb 13 01:39:22 Yes, the view is being added when a user clicks a button Feb 13 01:39:22 Ok Feb 13 01:39:24 you can do it two ways that I can think of Feb 13 01:39:35 Ok Feb 13 01:39:43 1 is that the view is already there (like in an xml) and you are changing visibility.. Feb 13 01:39:50 the other way is to dynamically add it to a view Feb 13 01:40:06 view.addView(yourView) Feb 13 01:40:11 I am dynamically adding it, I just want to give it focus Feb 13 01:40:31 The editText line is just appearing, I want to be able to type in it without clicking on it Feb 13 01:40:49 ooh Feb 13 01:40:54 so you want the keyboard to come out? Feb 13 01:41:01 Yes Feb 13 01:41:06 ok gotcha Feb 13 01:41:18 Any method for that? Feb 13 01:41:39 Hi, Please I need help. I am trying to make my android app open automatically. I have try the solution http://stackoverflow.com/questions/11180377/open-my-app-when-an-nfc-tag-of-a-custom-format-is-discovered and also with this plugin which shows the same step https://github.com/chariotsolutions/phonegap-nfc#launching-your-android-application-when-scanning-a-tag but no luck. my phone reads my nfc tag and says new tag collected But doesnt launch the app Feb 13 01:41:40 if(myEditText.requestFocus()) {getWindow().setSoftInputMode(WindowManager.LayoutParams.SOFT_INPUT_STATE_ALWAYS_VISIBLE);} Feb 13 01:41:45 any clue please? Feb 13 01:42:03 baako I can help a lot with NFC Feb 13 01:42:11 but you need to open it with an intent Feb 13 01:42:40 I don;t knwo in cordova though Feb 13 01:42:55 But whatever activity you wnat to open needs an intent filter Feb 13 01:43:00 tricknology: thank you. After the manifest tag I added http://kopy.io/KrvxT Feb 13 01:43:20 the tag of your activity right? Feb 13 01:43:29 not just the application manifest Feb 13 01:44:04 activity? also cordova is a tool used to build apps on all plugins android, ios, etc using html, css and js :D Feb 13 01:44:22 see.. Feb 13 01:44:24 *platform not plugin Feb 13 01:44:29 tricknology if I just did myEditText.requestFocus() would that give the focus to the EditText and just not inflate the KB? Feb 13 01:44:44 you forgot the rest bud Feb 13 01:45:00 taht onyl returns true if focus has been achieved Feb 13 01:45:06 I know, if I just did that first part would it give focus? Feb 13 01:45:10 now you need to open the keyboard, which is within that if part Feb 13 01:45:13 no Feb 13 01:45:15 Oh ok Feb 13 01:45:17 tricknology: what activity tag should i put the intent-filter in? Feb 13 01:45:24 it would tell Android that that object might have focus Feb 13 01:45:35 whatever activity you want to open, baako Feb 13 01:45:42 MainActivity Feb 13 01:45:51 or ScanResultsActivity Feb 13 01:45:57 so requestFocus returns a boolean Feb 13 01:45:59 will any activity do? or does it have to be specify one Feb 13 01:46:01 wherver you intend to take that data in Feb 13 01:46:05 yes drose379 Feb 13 01:46:19 so if (editText.requestFocus()) Feb 13 01:46:30 checks if the editText requests the focus? Feb 13 01:46:49 so I need to actually request the focus from the editText Feb 13 01:46:56 http://developer.android.com/reference/android/view/View.html#requestFocus() Feb 13 01:47:00 check this drose379 Feb 13 01:47:05 it will explain better than I can Feb 13 01:47:23 Yeah Im looking at that, but doesnt the editText need to actually ask for focus before requestFocus() returns true? Feb 13 01:47:24 you need to setFocusable() Feb 13 01:47:36 tricknology: this are my current activity tags http://kopy.io/i7C09 Feb 13 01:47:41 Ah, ok, so if I setFocusable() then requestFocus() will return true Feb 13 01:47:55 lol baako Feb 13 01:48:03 tricknology: i missed Feb 13 01:50:53 Feb 13 01:51:12 then when Android receives android.nfc.action.NDEF_DISCOVERED, that intent filter is set in your manifest Feb 13 01:51:16 <_genuser_> ugh, coding coding coding. sometimes get bored of coding the same app. Feb 13 01:51:17 and Android knows to open that activity Feb 13 01:51:50 _genuser_ what you making Feb 13 01:52:05 so i shoudl create an MainActivity activity? Feb 13 01:52:52 <_genuser_> drose379: combination of things. one personal app just replicating the camera. also have a friend who's asking me to coding assistance all the time. I'm not too hot on those projects. he pays but only when he remembers and then 25/hr. Feb 13 01:53:27 <_genuser_> also have a some projects involving image retrieval from db, over the interwebs, and some from local all dislpayed in the same gridview. Feb 13 01:53:38 hello Feb 13 01:53:46 hmm, last one sounds cool Feb 13 01:53:58 Whats your friend trying to make? The one who needs your help Feb 13 01:54:13 is there any way to get url history of other web apps in my app? Feb 13 01:54:28 <_genuser_> drose379: mostly using picasso for the gridview/images. had to write custom RequestHandler and now trying to look into caching images. db dips and over the web stuff is expensive. Feb 13 01:54:49 tricknology: wb Feb 13 01:54:56 Good luck _genuser_ Feb 13 01:54:59 <_genuser_> drose379: my friend mostly works as a contractor. so whatever project he can get. android, c#, php, perl, whatever... Feb 13 01:55:02 <_genuser_> thanks. Feb 13 01:55:22 Any successful android apps? Feb 13 01:55:28 sry had to pee Feb 13 01:55:41 I work professionally for a software company Feb 13 01:55:55 are you asking if anyone in here has had any successful apps? Feb 13 01:55:57 tricknology_ I set focusable() and requestFocus() before adding the EditText to view right? Feb 13 01:56:00 <_genuser_> drose379: for me, I had one deployed but stopped supporting it. my friend is actually working on a really big android app. Feb 13 01:56:04 Oh no, I was talking to _genuser_ Feb 13 01:56:08 aah you can do it anytime Feb 13 01:56:11 as long as it’s not null Feb 13 01:56:12 But anyone can answer :) Feb 13 01:56:23 Really big? Feb 13 01:56:33 I am working on version 2 of our app Feb 13 01:56:36 from the ground up Feb 13 01:56:48 _genuser_ what you mean really big? Feb 13 01:56:53 tricknology_: like this? http://kopy.io/XlJPE but i just search my files and i dont have the MainActivty class that will cause error Feb 13 01:57:11 <_genuser_> drose379: http://www.waitergator.com/ he's got lot of months into it. him and his financial partner have spent 10s of thousands of dollars so far. Feb 13 01:57:17 I think so, I don’t open my app on EMV tag so I forget Feb 13 01:57:22 I don’t think you need the name Feb 13 01:57:41 I just haven’t an android manifest without one Feb 13 01:58:03 _genuser_ are they developing it? Or hired a developer? Feb 13 01:58:04 .MainActivity == MainActivity.java Feb 13 01:58:16 _genuser_, QR codes. aaaaah, my eyes Feb 13 01:58:36 <_genuser_> drose379: as I mentioned he works as a contractor so he subcontracts to others also (like he gets me to do work). which means he's got a big network of contractors he knows. Feb 13 01:59:04 <_genuser_> drose379: some are working for a share of the final profits. some have been paid from the 10s of thousands of those dollars him and his partner spent on it already. Feb 13 01:59:33 Nice Feb 13 01:59:33 <_genuser_> Sculptor: personally, I don't care much for scanning crap all over just to sit down and have a server talk and bring food. Feb 13 01:59:50 is the food delivered by qadcopters Feb 13 02:00:00 <_genuser_> I'm not that hot on it. but you know the phone generation. they'll scan anything and blah blah. Feb 13 02:00:11 like http://www.gizmag.com/yo-sushi-itray-quadcopter/27910/ Feb 13 02:00:12 <_genuser_> it does have the benefit of getting in line before getting there. Feb 13 02:00:46 <_genuser_> Sculptor: nah, you just check in on a table and then hit "request server" for "appetizers", "main course", "drinks". and they'll dispatch the appropriate server. Feb 13 02:00:54 <_genuser_> which would be the same person in most places. Feb 13 02:00:59 tricknology_: okay will let me test it out. tricknology_ have you use GoTOTags before? Feb 13 02:01:05 <_genuser_> you can't check out using this either. Feb 13 02:01:11 lol in QBasic baako Feb 13 02:01:34 if a not b GOTO 15 Feb 13 02:01:38 am using their device to write the nfc Feb 13 02:01:42 ooh Feb 13 02:01:46 anyways still dont work Feb 13 02:01:53 10 ? Hello GOTO 10 Feb 13 02:01:59 why not just go native? Feb 13 02:02:04 IDK anything about cordova Feb 13 02:02:08 but it should just work Feb 13 02:02:57 oh Feb 13 02:03:02 you might need some other things in ther Feb 13 02:03:03 filters Feb 13 02:03:09 Feb 13 02:03:14 Feb 13 02:03:19 Feb 13 02:03:20 so tricknology_ what is a window? Feb 13 02:03:22 and a tag list Feb 13 02:03:24 tricknology_: http://postimg.org/image/c74g4xrl7/ Feb 13 02:03:32 in what context? Feb 13 02:03:35 drose379 Feb 13 02:03:38 getWindow() Feb 13 02:03:38 use http://kopy.io/ Feb 13 02:03:59 waht is this baako? Feb 13 02:04:06 I don’t use 3rd party lbs to write tags Feb 13 02:04:17 the image shows how I am writing the mimetype Feb 13 02:04:33 unfortunately it means nothign to me :( Feb 13 02:04:39 i aint a pro yet :D Feb 13 02:05:20 tricknology_: can you pastebin the code on here the koi link please Feb 13 02:05:55 tricknology_, : android:adjustViewBounds="true" Feb 13 02:06:04 tricknology_ is a window just bascially an inflated activity Feb 13 02:06:06 But I don't know why. Feb 13 02:06:19 Here drose379 Feb 13 02:06:19 http://kopy.io/J5p9v Feb 13 02:06:40 lol MikeWallaceDev Feb 13 02:06:45 (Also, AS should show me the difference between the view and my drawable. Feb 13 02:06:47 ) Feb 13 02:07:08 hi is a service in android similar to a daemon in linux Feb 13 02:07:31 android:adjustViewBounds is only used when scaling, I don't know why it's..... got it. Feb 13 02:07:44 It's a screen size thing, not a dpi thing. Feb 13 02:07:52 that;s weird Feb 13 02:08:00 Where was that hiding? Feb 13 02:08:19 no, wait, I don't got it. I still don't see why it scaled it. Feb 13 02:08:30 drose379 sorry didn’t see your response Feb 13 02:08:52 no prob Feb 13 02:09:02 this is a window: http://developer.android.com/reference/android/view/Window.html Feb 13 02:09:17 Not really an activity Feb 13 02:09:26 think of it as a Windows window Feb 13 02:09:38 Ok so ghe code you showed me works.. Im trying to figure out why Feb 13 02:09:55 getWindow() returns the activity window Feb 13 02:10:07 It holds views Feb 13 02:10:08 setSoftInputMode() ...thats where I get lost Feb 13 02:10:12 or it draws its interfaces in a window Feb 13 02:10:29 what is setSoftInputMode() Feb 13 02:10:31 that;s for the soft keyboard Feb 13 02:10:40 you should be careful there Feb 13 02:10:45 why? Feb 13 02:10:48 because some devices still have a hard keyboard Feb 13 02:10:56 no sense in popping out a soft keyboard on those Feb 13 02:11:02 think blackberry or sidekick Feb 13 02:11:07 or Google Nexus 1 Feb 13 02:11:19 Yeah, this does not popout a keyboard Feb 13 02:11:24 is you whould have a condition around that that checks if there is a hard keyboard Feb 13 02:11:33 yours might not.. but someone who DL’s your app might Feb 13 02:11:43 and then it would be redundant Feb 13 02:11:57 _I_ would wtf Feb 13 02:11:59 Well this is a situation where they need the KB, want a screen recording? Feb 13 02:12:13 nah it’s ok I trust you, just want you to be awayre Feb 13 02:12:21 Got this new app that takes screen recordings and I love using it Feb 13 02:12:39 ugh I didn’t even ask my own question lol Feb 13 02:12:44 haha Feb 13 02:13:00 The specified child already has a parent. You must call removeView() on the child's parent first. Feb 13 02:13:02 tricknology_: we are getting somewhere in that kopi i took out meta-data because cordova couldnt compile the app but anyways i took it out compile it scan the tags and got unfortunately my_app has stopped Feb 13 02:13:07 <_genuser_> drose379: what do you use it for? watching snapchat images and you can't screen grab? Feb 13 02:13:12 this is heppening in onCreate(createView()) Feb 13 02:13:24 createView() is a custom method that returns a LinearLayout Feb 13 02:13:45 oh that’s good. can you see the stack trace? Feb 13 02:13:48 _genuser_ so far I have used it to demo my app to people, to show a new feature and stuff Feb 13 02:14:35 tricknology_: if you are talking to me please can you say my name makes it easy for the pc to run to me Feb 13 02:14:52 baako yeah I was talkign to you abotu the stack trace Feb 13 02:15:00 <_genuser_> drose379: nice. what are you working on? anything that's in playstore? Feb 13 02:15:15 Its a self education app Feb 13 02:15:20 yes tricknology_ so i know its trying to open the app Feb 13 02:15:33 waht does the stack trace say Feb 13 02:15:36 where is the error? Feb 13 02:15:57 NullPointerException? Feb 13 02:15:58 Unfortunately my_app has stopped tricknology_ Feb 13 02:16:03 _genuser_ Basically it tries to help people who are learning something on their own, organize everything into small chunks Feb 13 02:16:05 no baako, this would be in your IDE Feb 13 02:16:12 I don’t know cordova so.. I can’t help there Feb 13 02:16:31 a stack trace looks like this: http://stackoverflow.com/questions/7841232/java-android-how-to-print-out-a-full-stack-trace Feb 13 02:16:42 <_genuser_> drose379: like anything? piano, guitar, coding, foreign language? Feb 13 02:16:42 tricknology_: okay will what is that meta tag for anyways? Feb 13 02:16:50 it should be in LogCat if you have a LogCat Feb 13 02:16:55 Yes, anything _genuser) Feb 13 02:16:58 _genuser_ Feb 13 02:17:20 I could tell you some of the basic idea if you want Feb 13 02:17:33 that compares the tech to a tech list XML, baako Feb 13 02:17:39 if the tech is in that list then it proceeds Feb 13 02:17:53 you are probably getting an error because you have no @xml/tech_list Feb 13 02:17:56 so i need it to open the app? Feb 13 02:17:57 take that out and try again? Feb 13 02:18:02 no Feb 13 02:18:17 Sorry man, I’m not goign to have time to walk you through this Feb 13 02:18:24 <_genuser_> drose379: right, I thought it would be interesting. I'm always learning new stuff. and managing that becomes a hassle sometimes. Feb 13 02:18:28 I have a hot date in 30 mins Feb 13 02:18:28 lol Feb 13 02:18:43 tricknology_: guess what? Feb 13 02:18:55 _genuser_ you are just the person I want to talk to about this then :D Feb 13 02:19:00 whats up? Feb 13 02:19:14 Could I message you _genuser_? Feb 13 02:19:25 baako, here is a tech_list.xml Feb 13 02:19:26 http://kopy.io/ctRTb Feb 13 02:19:29 tricknology_: its working :D thanks. In android you guys use MainActivity but in cordova/phonegap we use CordovaApp Feb 13 02:19:29 <_genuser_> drose379: right, :) message away Feb 13 02:19:44 You can use whatever you want but I’m glad it’s working :D Feb 13 02:19:45 so i had to change the android:name to CordovaApp Feb 13 02:19:49 lol Feb 13 02:19:54 I’m glad you caught that Feb 13 02:20:09 if you use that tech list then it will only open tags from that list Feb 13 02:20:23 I guess I only wanted to open IsoDep tags Feb 13 02:20:37 anyway, GL, HF Feb 13 02:20:55 drose379, you good? Feb 13 02:21:02 tricknology_: thanks again. In terms of security how do you secure your nfc? do you secure it from the tag or from the reader(phone) Feb 13 02:21:08 tricknology_ im good man, thanks for all the help Feb 13 02:21:29 haha depends baako, on what you’re doing Feb 13 02:21:39 there is usually always a way around Feb 13 02:21:55 if you can program your own tags, then you can put something in there that only you would expect Feb 13 02:22:05 and deny connections from tags not having that value Feb 13 02:22:13 tricknology_: basically when user use the tags it opens the app and send some data which is only in that nfc tag to the database Feb 13 02:22:28 yeah, don’t be promiscuous I guess Feb 13 02:22:30 i have some security checked to make sure the data is what it should be Feb 13 02:22:41 in php Feb 13 02:22:42 or make your user confirm some action first Feb 13 02:23:06 don’t let it jsut arbitrarily wake up and insert data Feb 13 02:23:28 If you have another device use it to test Feb 13 02:24:19 doesnt insert but just checked. I have build almost finish the app but now am just doing security checks also have you done facebbok login? **** ENDING LOGGING AT Fri Feb 13 02:59:58 2015