**** BEGIN LOGGING AT Sat Apr 04 02:59:58 2015 Apr 04 03:01:04 Whose heard of Postgres Apr 04 03:01:14 never heard of it Apr 04 03:01:16 :P Apr 04 03:01:18 Or PostgreSQL Apr 04 03:01:25 Dude, I just met the guy who created it Apr 04 03:02:01 momjian ? Apr 04 03:02:16 Stonebraker Apr 04 03:02:31 next time, ask why Postgres can't do `select count(*), some_other_column from table`, when MySQL can. Postgres people _love_ that. Apr 04 03:02:55 I will do that Apr 04 03:03:24 * groxx prepares nuclear winter bunker Apr 04 03:03:46 How come onSwipeTouchListener does not fire unless OnClickListener onClick method is overridden Apr 04 03:04:28 weird. dunno. magic? alcohol? Apr 04 03:04:45 Not a clue Apr 04 03:05:09 So who wrote the code to OnSwipeTouchListener? Apr 04 03:05:11 Google devs? Apr 04 03:05:21 <_genuser_> hey d00dz Apr 04 03:05:31 _genuser_ how you doing Apr 04 03:05:38 <_genuser_> fine, how's stuff? Apr 04 03:05:57 Not bad, you? Apr 04 03:06:34 hi Apr 04 03:06:38 <_genuser_> just working on a music track. trying to finish a drawing I started, trying to finish the cache component of my app.... Apr 04 03:06:44 <_genuser_> so basically... distracted. Apr 04 03:07:02 What app you working on again? I think we talked about this a while back but im not remembering it right now Apr 04 03:07:29 _genuser_: have some more distractions: https://archive.org/details/softwarelibrary_msdos_games Apr 04 03:07:42 <_genuser_> drose379: this one's just caching images from multiple sources. some from over the internet, some from local dbs, some pulled out of binary files containing possible expense reports, etc.. Apr 04 03:07:51 i' m using new toolbar. how can i show toolbar inside fragments? Apr 04 03:08:00 <_genuser_> groxx: somebody said games? I'm checking it out!!! Apr 04 03:08:20 devuser have the xml layout for the fragment include the toolbar Apr 04 03:08:33 drose379, of course Apr 04 03:08:42 Is that not working? Apr 04 03:09:16 <_genuser_> groxx: so you have to install this emdosbox thingie then? Apr 04 03:09:42 <_genuser_> groxx: altho.... wlfenstein 3d!!! Apr 04 03:09:48 _genuser_: nope. "em" for "emscripten" => runs in your browser Apr 04 03:10:22 <_genuser_> groxx: just read that part. an in-browser emulator. how cool is that! Apr 04 03:10:43 there are some blog posts about the project. interesting stuff. also distracting :) Apr 04 03:11:11 <_genuser_> alright nobody distract me. wolfenstein 3d!!!! Apr 04 03:12:18 drose379, it works Apr 04 03:12:34 Good devuser Apr 04 03:12:39 devuser Apr 04 03:12:43 oops Apr 04 03:14:31 <_genuser_> groxx: were graphics really this bad in early 90s? Apr 04 03:14:43 nostalgia adds polygons Apr 04 03:15:11 * groxx thinks Descent 2 is beautiful still Apr 04 03:15:34 <_genuser_> man, I think maximizing it to 1920x1080 is also gonna make it even more pixelated. vs. the old resolutions. Apr 04 03:15:44 <_genuser_> groxx: I remember descent. it was pretty cool. Apr 04 03:16:27 one of these days I'll get a decent joystick that isn't too small for my apparently-freakishly-large-(or-something)-hands Apr 04 03:16:41 and I'll just disappear from the internet for like a week, and beat all descent / freespace games. Apr 04 03:17:01 <_genuser_> groxx: I have extreme 3d pro by logitech. it was 30-40 bucks and plays pretty nice. it's a nice fullsize oystick. Apr 04 03:17:58 _genuser_: one of my friends has this. I don't think I can go back. http://www.thrustmaster.com/products/hotas-warthog/ Apr 04 03:19:56 <_genuser_> groxx: is that for a light sim? Apr 04 03:19:59 <_genuser_> *flight Apr 04 03:20:29 by design, I think so, yeah. but it's also just a really really nice joystick + throttle Apr 04 03:20:30 <_genuser_> but the price is insane. but it looks like it would be tons of fun. Apr 04 03:24:26 <_genuser_> dang, those pixelated screens look soo good. Apr 04 03:35:08 distraction: success :D Apr 04 03:37:24 groxx, _genuser_: you saw the kickstarter for a new descent? :D Apr 04 03:39:56 I'm drooling over the thought of descent in VR Apr 04 03:40:01 Descent the 3D game of old? Apr 04 03:40:19 yep Apr 04 03:40:27 Sweet Apr 04 03:40:36 I have great puke memories from the original Descent Apr 04 03:40:56 descent + vr = 10x puke Apr 04 03:41:06 it'll be great! :p Apr 04 03:42:13 JesusFreke CedricBeust_ you will be glad to know http://www.pcworld.com/article/2894744/another-classic-pc-game-rebooted-descent-sequel-appears-on-kickstarter.html Apr 04 03:42:35 ... like I just said :p Apr 04 03:42:44 oh heh Apr 04 03:42:49 srry Apr 04 03:42:56 have to read more :D Apr 04 03:42:59 haha Apr 04 03:46:35 groxx this is really tricky; it looks like if you tracker.setScreen(X) in some activity, ... and then in some other place in your app, like a service, send an event, it will have the screen because its just a bug huge bag of mutable state Apr 04 03:46:48 this is like the worst design evar Apr 04 03:48:12 can I have two providers with same authority string?? Apr 04 03:48:25 no Apr 04 03:49:19 there can be only 1. fight! Apr 04 03:54:01 jaja :) Apr 04 03:58:28 JesusFreke: I did not see that one... checking it out now :) Apr 04 03:59:46 g00s: that does sound pretty awful :/ Apr 04 04:29:23 huh, it almost sounds like you need a separate tracker for events outside the UI Apr 04 04:29:30 fuckkk i realized i released my app at an aawful time :/ Apr 04 04:29:38 "GA thinks that events are caused after a screen view and so it pushes the GA event with a screen name "(not set)". Since services ran in the background a lot of times, it ended up corrupting the various stats." Apr 04 04:30:01 it's an agenda book really only used by high school students. i released it on a thursday, which is spring break, and most people have off friday for good friday Apr 04 04:30:15 so at best people will begin to use it monday, but i fear by then they will have forgot about it Apr 04 04:30:38 DadFoundMy how many downloads so far ? Apr 04 04:30:45 ~125 Apr 04 04:31:05 Hey guys im trying to create a backstack for my app and im following this code from Android dev website Apr 04 04:31:05 http://pastie.org/10072985 Apr 04 04:31:16 But I dont understand line 9 Apr 04 04:31:24 No where in the example is "upIntent" defined Apr 04 04:31:48 im honestly really happy with the 125 downloads since its my first app, but i fear i will not hold the users since i released it in a time without school Apr 04 04:32:07 DadFoundMy whats your app called? Apr 04 04:32:13 AutoAgend Apr 04 04:32:18 whats it do Apr 04 04:32:43 its a student homework planner with a couple extra cool features Apr 04 04:32:52 like it will automaticly sort an assignment intot he correct class Apr 04 04:33:28 Looks nice Apr 04 04:33:31 DadFoundMy: I saw your post in /r/androiddev and checked out your app - looks pretty useful! Apr 04 04:33:42 If I weren't nearly done with school I'd use it Apr 04 04:34:00 t0astt did you see the code I posted above? Apr 04 04:34:17 DadFoundMy says 1 - 5, not 125 lol Apr 04 04:34:18 drose379 - no. Would you like me to take a look? Apr 04 04:34:25 haha thanks. I was shooting for like 30 downloads and 3-4 reviews so im happy with it Apr 04 04:34:36 Well I was saying that im trying to add a backstack to my app, so the user can go to the previous activity Apr 04 04:34:43 g00s: it also should say 17 downloads, the play store listing just hasnt updated Apr 04 04:34:45 ah Apr 04 04:34:47 And im following android dev website example code here http://pastie.org/10072985 Apr 04 04:34:47 sure Apr 04 04:34:55 But I dont understand line 9 Apr 04 04:35:00 g00s: 17 reviews Apr 04 04:35:44 Toast do I have to get the parent activity, create an intent for it, and then add it on line 9? Apr 04 04:36:02 hey Apr 04 04:36:12 why does WebView use AbsoluteLayout still?? Apr 04 04:36:23 deprecated in API 3 Apr 04 04:36:49 any thoughts on that? Apr 04 04:36:55 drose379: I'm not exactly sure - I haven't worked with this before. I can make a guess, though. I think it may be allowing the following activity to add the previously encapsulating activity (DetailsActivity) to the backstack Apr 04 04:37:13 Right yeah I agree with that, but I dont know what to put in there? Apr 04 04:37:18 An intent for the parent activity? Apr 04 04:37:20 groxx may know, if he's here (are you groxx?). He helped me out with backstack stuff awhile back Apr 04 04:37:28 Ah, on line 6? Apr 04 04:37:30 or 9 Apr 04 04:37:37 pendingintents? Apr 04 04:37:40 yeah 9 Apr 04 04:37:42 really with notifications Apr 04 04:38:00 ayyyy yay yayyyy... aight im out Apr 04 04:38:01 MartialLaw I just wanna create a feature when a user can swipe to the right on the screen and go back Apr 04 04:38:09 to the previous activity Apr 04 04:38:10 drose379: Hmm ok. I would assume whatever would be "up" in the backstack? Apr 04 04:38:18 Maybe an intent to the current activity? Apr 04 04:38:22 hm let me think Apr 04 04:38:48 isn't that pretty straightforward? Apr 04 04:39:00 Would detailsActivity go into line 9? Apr 04 04:39:22 so you have an activity... ok i swipe right.. you want to to go to the previous activity? Apr 04 04:39:40 is that what you are saying? Apr 04 04:39:41 Yes Apr 04 04:39:43 Yes Apr 04 04:40:15 isn't that pretty straightforward? Apr 04 04:40:27 what have you tried? Apr 04 04:40:43 Im trying to start this activity where I need to go back with a backstack Apr 04 04:40:53 then calling the parent intent when the user swipes right Apr 04 04:41:00 Am I doing it the correct way? Apr 04 04:41:23 well.. the backstack Apr 04 04:42:03 I just need to be able to call the parent from the activity Apr 04 04:42:03 do activities stay on the backstack? Apr 04 04:42:09 No Apr 04 04:42:12 the parent of what? Apr 04 04:42:21 The parent of the activity I am calling Apr 04 04:42:39 i think you are confusing yourself here Apr 04 04:42:49 are you using fragments? Apr 04 04:43:20 figure when a user swipes right... then make an intent Apr 04 04:43:25 activities don't have parents Apr 04 04:43:39 Why do I have to declare a parent in the manifest? Apr 04 04:43:54 show me your code Apr 04 04:44:00 what are you trying? Apr 04 04:44:24 I havent tried anything yet, do you think I should keep it as simple as just creating an intent for the activity I want to go to? Apr 04 04:44:31 ok so you have an activity.... you go to another activity via an intent, obv. then you want the user to swipe right to go back to the previous activity Apr 04 04:44:39 yeah? Apr 04 04:44:43 I was reading up on this: http://developer.android.com/training/implementing-navigation/temporal.html Apr 04 04:46:03 yeah what you should do in your case... if your starting a new activity and want to go back to the "previous" activity... is just create a new intent. otherwise you will bog yourself down in stuff that is overly complex and in the end accomplishes the same thing Apr 04 04:46:33 providing proper "up navigation" describes what i just said.. no stacks Apr 04 04:46:34 Do you think the backstack is a good thing to learn? Apr 04 04:46:59 Ok Apr 04 04:47:17 i think everything is good to learn if you want to be a developer so yes the backstack is crucial but not in the case your talking about Apr 04 04:47:29 Ok, thanksfor the help Apr 04 04:47:54 use the savedinstancestate function and bundles to pass data if needed but your overthinking your problem..... that is if i am understanding your problem correctly Apr 04 04:48:15 Yeah you are, I was overthinking it Apr 04 04:48:41 anyway i have to go... someone else here can probably give you a more overly complex but to-the-same-end solution but KISS.. lol really.. Apr 04 04:48:59 Sounds good to me Apr 04 04:49:02 Thanks again! Apr 04 04:49:06 alright man best of luck maybe we'll talk again soon. take it easy Apr 04 04:49:26 np... keep on developing duude. goodnight. late here on the East Coast Apr 04 04:51:06 bah - it's not even 1am yet Apr 04 04:51:26 hahah Apr 04 04:51:32 12:51 for you? Apr 04 04:51:44 heh - yah :) Apr 04 04:51:56 im an east coast guy on vacation in colardo so its only 11 here :D Apr 04 04:52:12 so DadFoundMy that was your first app? Apr 04 04:55:05 drose379: yup Apr 04 04:55:34 Very cool, when did you start android dev Apr 04 04:56:01 ive tried a couple times in the past but this was the only time i succeeded, i started this attempt about 2 months ago Apr 04 04:56:12 Interesting Apr 04 04:56:18 Why did you fail the past few times? Apr 04 04:56:56 well the first time was in my intro to computer science class. The teaceher tried teaching us the android sdk without teaching objects, interfaces, nothing like that Apr 04 04:57:17 he just old us what to do, not really how to do it. not a single person learned the sdk lol Apr 04 04:57:19 So you tried program android without knowing java? Apr 04 04:57:50 drose379: well we knew basic java, but not nearly enough to fully understand java Apr 04 04:58:03 Shit haha that can be an issue, yeah Apr 04 04:58:45 the same teacher is teaching a mobile app course next year with zero prerequisite. most kids going in will have never programmed ever lol. its going to fail hardd Apr 04 04:59:13 the next i tried was after i fully taught myself java. i tried with some tutorials and videos but it never really "clicked" Apr 04 04:59:25 Yeah, thats happend to me before Apr 04 04:59:28 It has to click Apr 04 04:59:37 Or else it just doesnt work Apr 04 05:00:10 then i started the coursera, but never finished. and finally i read the first few chapters of the the Big Nerd Ranch book and understood the basics. From there i just started coding and when i encoutnered something i wanted just searched for the best way to do it Apr 04 05:00:26 Right, cool Apr 04 05:00:27 now everything is "clicked" and i understand android fairly well Apr 04 05:00:33 Are you a college student? Apr 04 05:00:37 high school Apr 04 05:00:39 Do you have the code for that app on github? Apr 04 05:00:54 Oh your HS has a comp sci course? Apr 04 05:01:00 drose379: https://github.com/DylanRedfield/AutoAgend Apr 04 05:01:07 drose379: yeah but the teacher is kinda meh Apr 04 05:01:21 Kinda cool still Apr 04 05:01:26 Youre from the east coast you said? Apr 04 05:01:29 im in AP right now, but everything ive learned is from books Apr 04 05:01:34 yeah new jersey Apr 04 05:01:53 Sweet, what year are you Apr 04 05:02:00 a junior Apr 04 05:02:20 Cool, im actually a senior hahah Apr 04 05:02:31 nice, you american? Apr 04 05:02:46 Yes Apr 04 05:02:53 what state? Apr 04 05:03:15 NH Apr 04 05:03:29 ah nice Apr 04 05:03:43 Well congrats on the app Apr 04 05:03:53 Looks really nice, you got anything new in mind? Apr 04 05:03:56 thanks, have you finished/started working on anything? Apr 04 05:04:07 drose379: yeah me and a friend are about to start a game Apr 04 05:04:24 dont want to delve too far into the details, but i actually think it could be something Apr 04 05:04:34 Sweet, yeah im working on a project now Apr 04 05:05:03 nice. how long have you been coding for/ Apr 04 05:05:03 ? Apr 04 05:05:15 Umm a little over a year Apr 04 05:09:57 capella does FF use google analytics, or some kind of analytics ? Apr 04 05:10:23 crashalytics ... or, something ... haven't worked with it Apr 04 05:10:39 ok for crashes but - what about events, flow, etc Apr 04 05:11:05 ooh - probably their own via telemetry Apr 04 05:11:21 Yah, "Soccorro" Apr 04 05:11:24 iirc Apr 04 05:11:56 gah, so frustrated ! tried tracking events in a service, and the state get all effed up Apr 04 05:12:01 oh, that's the crash stuff https://wiki.mozilla.org/Socorro Apr 04 05:12:03 because GA confuses the session i think Apr 04 05:12:22 GA seems like a web product just bolted onto android, its simply awful Apr 04 05:13:09 so i guess i will need one tracker for the UI, and another one for the service omg Apr 04 05:14:04 ah, https://wiki.mozilla.org/Telemetry/FAQ Apr 04 05:15:29 capella about:telemetry is cool Apr 04 05:17:00 I just found about:permissions :D Apr 04 05:17:39 i keep trying googling versions of "google analytics android service tracker" but come up empty handed Apr 04 05:17:57 keep pulling up stuff about Play *Services* Apr 04 05:18:18 amazing how bad organic search is in 2015, thought we would be using the semabtic web by now Apr 04 05:23:00 JakeWharton do you have any recommendations for analytics ... heeeellllppppp Apr 04 05:23:07 no Apr 04 05:23:28 oh man, i'm doomed now Apr 04 05:23:50 Not a lot of options are there... Google Play, Flurry, Crashlytics... anything else? Apr 04 05:24:14 isn't Crashylytics just for Crashes ? Apr 04 05:24:51 Yeah sounds like it, never used them Apr 04 05:25:17 g00s: why dont you just make apps that dont crash? /s Apr 04 05:25:19 Mixpanel Apr 04 05:25:36 Yeah I used Mixpanel, and Datadogs too Apr 04 05:26:27 JakeWharton ah thanks. i was looking at that and apselar also, i think if you are experienced in this field (analytics), and you know what you want - like cohort analysis - its easier to pick them apart. i'm just getting beaten to a bloody pulp on GAv4 though Apr 04 05:27:35 GAV4 doesn't really seems to jive well with the lifecycles of android components - screen views are like page views, but what is a page view in a app with multiple fragments, services, background operation, etc Apr 04 05:28:18 * g00s mosies on to mixpanel website Apr 04 05:32:40 <_genuser_> groxx: I blamez U!!! Apr 04 05:33:26 CedricBeust did you use datadogs for mobile analytics? it seems like server stats Apr 04 05:34:01 Yes it was server, we used mixpanel for some client side stuff that can't be tracked on the server (GUI clicks, ...) Apr 04 05:34:27 <_genuser_> oooh datadogs. who let's the dogs out.... Apr 04 05:34:42 <_genuser_> CedricBeust: do you have a preferred lib or do you go with client's needs , etc. etc. Apr 04 05:35:02 No preferences Apr 04 05:36:31 <_genuser_> so what's the main lib you use for tracking runtime crashes, etc? Apr 04 05:36:55 <_genuser_> my brother's work place used to use flurry and they moved to crashlytics recently and he said it has much more detailed analysis. that's all I know on teh subject. Apr 04 05:37:04 <_genuser_> always eager to learn more interesting good stuff. Apr 04 05:45:43 Hey guys I have a somewhat interesting bug... I am using SwipeRefreshLayout and I am finding that on a "yet-to-be-determined-condition" the layout will refresh on a tap, not a swipe. This means any tap on the layout will invoke a refresh. Any ideas what could be causing this? I've even tried setting an adapter beforehand and no luck. It seems like it only works correctly when there is actual data present. Apr 04 05:50:06 thats weird, there should be a threshold the user must drag to actually trigger Apr 04 05:50:13 yeah Apr 04 05:50:16 It's got my perplexed Apr 04 05:52:13 I really don't want to try a different library/layout as my app is due on the 9th Apr 04 05:52:16 end of this contest Apr 04 05:52:24 I'd rather fix the bug... but idk if that's going to be possible Apr 04 06:01:36 g00s: figured it out Apr 04 06:01:46 ah nice Apr 04 06:02:03 what was it ? Apr 04 06:02:06 So by default I had my recyclerview set to a visibility of "gone" UNTIL the results that got populated into it had a size > 0 Apr 04 06:02:20 so I changed the visibility flags up a bit Apr 04 06:02:28 same appearance as before but no bugs :) Apr 04 06:03:16 hmmmm Apr 04 06:03:41 is there a way to remove an element from an ArrayAdapter but not from the array? Apr 04 06:06:09 no Apr 04 06:06:22 that would defeat the point a bit Apr 04 06:07:39 JakeWharton: well I have an arraylist holding a custom object. One of the instance variables of the object is a boolean, and if the boolean is set to false i dont want it to be shown in the listview. is the only way to accomplish this by creating a second arraylist? Apr 04 06:08:16 maybe i can set convertView vissiblity in the getView Apr 04 06:09:10 that is not wise Apr 04 06:09:18 hm, how would you do it? Apr 04 06:10:23 looks like ArrayAdapter has some kind of filter mechanism Apr 04 06:10:29 i haven't used an ArrayAdapter in many years Apr 04 06:11:05 i see why you say that isnt wise. i tried implmenting it, and it just shows the view as blank but it is still there :/ Apr 04 06:11:07 doesn't look helpful Apr 04 06:11:18 people use arrayadapter? Apr 04 06:11:36 how else do you make lists? Apr 04 06:11:44 BaseAdapter Apr 04 06:12:03 hmm ill look into it, whats the main difference? Apr 04 06:12:14 you implement things yourself Apr 04 06:12:24 it's like 4 methods though Apr 04 06:12:27 also, listviews are so 2009 :) Apr 04 06:13:18 JakeWharton: seems like baseadapter would totally fix my problem, i wonder how long it would take to convert my program Apr 04 06:13:36 i would like to push this update by monday but i dont think thats going to happen Apr 04 06:18:05 go-mtpfs seems to be working pretty well Apr 04 06:18:13 the older mtpfs implementation was seriously bugged for me Apr 04 06:20:46 DadFoundMy BaseAdapter is actually easier :| Apr 04 06:20:56 look in ApiDemos, there has to be 10 examples Apr 04 06:21:05 oh no Apr 04 06:21:32 if i change my database all my users will lose there current data right? Apr 04 06:21:44 fuck Apr 04 06:21:57 not if you implement SqliteDatabaseHelper.onUpgradle or whatever Apr 04 06:21:57 well there goes my solution :/ Apr 04 06:22:10 oh maybe i can try that Apr 04 06:22:19 look at iosched's for an example Apr 04 06:22:35 Most db schema changes should be backward compatible so upgrade should be trivial to implement Apr 04 06:22:40 i hate that too :| i hate messing with the schema Apr 04 06:22:57 i haaaattteee working with my db just because i barely understands how it works lol Apr 04 06:23:02 CedricBeust yeah but sqlite alter table is very wimpy Apr 04 06:23:24 Hasn't been my experience Apr 04 06:24:12 basicly i have a arraylist of objects. If one of the values in the object is false i dont want it to show in the main listview, but i want to instead show it in a second one Apr 04 06:24:19 "Only the RENAME TABLE and ADD COLUMN variants of the ALTER TABLE command are supported." Apr 04 06:24:19 sounds like baseadapter would be great for this Apr 04 06:24:31 plan ahead :( Apr 04 06:24:49 yeah i didnt do that very well with this app apparently :/ Apr 04 06:25:20 i know one solution could to be just use 2 arraylists in each of the acitivties, but i think it is a sloppy solution, and it has it's issues Apr 04 06:25:47 <_genuser_> how could using tons of arraylists be bad? Apr 04 06:25:49 <_genuser_> it's java... Apr 04 06:26:05 <_genuser_> if you're using java, you're already saying goodbye to good programming. Apr 04 06:26:19 _genuser_: What does that even mean? Apr 04 06:26:28 lol Apr 04 06:26:29 _genuser_: well it has its issues, like if i want to set that boolean for list to list it will have different spot Apr 04 06:26:41 <_genuser_> CedricBeust: trying to sound snooty here. Apr 04 06:26:48 _genuser_: it worked :D Apr 04 06:26:52 _genuser that's something I'd expect someone to say about PHP lol Apr 04 06:26:53 <_genuser_> before someone else jumps in c++ is superior!! Apr 04 06:27:05 Yeah... no. Apr 04 06:27:10 TI-BASIC MASTERRACEEEEE Apr 04 06:27:20 <_genuser_> t0astt: I recently found that out about PHP while doing research on efficienty, etc. Apr 04 06:27:35 Can you make the view item GONE if that boolean is not set? Apr 04 06:27:53 CedricBeust: then it leaves a blank spot in the listview Apr 04 06:27:55 _genuser: My opinion is that PHP gets that bad rap because the barrier to entry is low as hell Apr 04 06:28:21 DadFoundMy: Yeah I was afraid of that Apr 04 06:28:25 oh i thought it got a bad rap because it was bad Apr 04 06:28:31 Maintain two lists then Apr 04 06:28:33 <_genuser_> t0astt: I read that it's actually is slow performance wise, and saw some benchmarks. "studies" showing you should use jsp or something like that. Apr 04 06:28:43 Absolutely do not use JSP Apr 04 06:28:48 CedricBeust: i think im actually going to have to use 3 lists :D Apr 04 06:28:49 JSP is disgusting Apr 04 06:29:08 _genuser: How recent were those benchmarks? Any comparison to hack/hhvm? Apr 04 06:29:09 <_genuser_> t0astt: my bro's last company used PHP and they did not seem to have many issues. but I think they using node.js and mix of other crap. Apr 04 06:29:34 i use braiinfuck for all my web development needs Apr 04 06:29:39 <_genuser_> t0astt: naw, I research that last year when deciding if I should write the back end of my app myself or hire "web develoeprs". Apr 04 06:29:49 _genuser: ah, gotcha Apr 04 06:29:57 DadFoundMy: Oh yeah? I USE WHEELCHAIR. Apr 04 06:29:59 <_genuser_> CedricBeust: you have issue with JSP scaling, etc? Apr 04 06:30:11 t0astt: yes on my WHITESPACE level Apr 04 06:30:12 Nothing to do with scaling, JSP is a mess Apr 04 06:30:19 <_genuser_> t0astt: wheelchair is a js lib or something. Apr 04 06:30:23 http://azac.pl/cobol-on-wheelchair/ Apr 04 06:30:30 _genuser: COBOL :D :D :D Apr 04 06:31:00 <_genuser_> CedricBeust: my friend is releasing his app waitergator and his web dev team decided that JSP was teh back choice for web work. and they seemed happy with it in terms of scaling and it's abilities. Apr 04 06:31:18 <_genuser_> CedricBeust: but then again, devs will be comfortable with what they work with a lot (especially for work). Apr 04 06:31:27 t0astt: both cobol on wheelchair and cobol on cogs are terrible examples of the language, fwiw. :P Apr 04 06:31:32 So much wrong with JSP, mixing logic with presentation, the format of the file itself, which can contain 4+ languages depending on where you are, etc... Apr 04 06:31:33 wasn't JSP replaced with Java ServerFaces or something Apr 04 06:31:41 I liked JSP Apr 04 06:31:43 <_genuser_> t0astt: yeah, I see names popup quite often. wheelchair, handlebar, moustache, etc. Apr 04 06:31:53 I'd pick a server delivering JSON and client side templating. A year ago, I'd hav picked Angular, these days, React Apr 04 06:31:58 it was like type-safe PHP Apr 04 06:32:37 <_genuser_> problem with all these things is there's too many libs and scripting languages now. everybody and their dog has a new something. Apr 04 06:32:38 That's not setting the bar very high Apr 04 06:32:45 that's what i liked though Apr 04 06:32:49 it was like, eh, do what you want Apr 04 06:32:55 _genuser_: It's a good thing. The good technologies rise to the top Apr 04 06:32:56 <_genuser_> and they get a few followers, a few forks, and the project is legit. it brings in more idjits Apr 04 06:33:18 CedricBeust MS-DOS :) Apr 04 06:33:20 my interview question used to be implement a JSP compiler (i.e., parse it and write out the java file) Apr 04 06:33:26 <_genuser_> CedricBeust: can't argue against free and open source movement. they do a lot for the community. Apr 04 06:33:29 JakeWharton: Now that's cruel Apr 04 06:33:51 <_genuser_> CedricBeust: just that everyone sharing their stuff, and a new comer like me picking which of the web platforms to use to build a website... well it's confusing. Apr 04 06:33:53 JakeWharton: i didnt know your last name was hitler Apr 04 06:33:55 haha. why? i could have just as easily made up a syntax Apr 04 06:34:11 <_genuser_> CedricBeust: on the other hand, I do'nt want to sit down and write the whole thing myself in php, asp.net or anything like that. Apr 04 06:34:12 the question has nothing to do with JSP Apr 04 06:34:39 <_genuser_> wait, so Wharton is part of your first name and you have a different last name? Apr 04 06:34:43 <_genuser_> world spinning. Apr 04 06:35:25 <_genuser_> lol, that's an interview question where I'd just get up and walk away. Apr 04 06:35:33 _genuser: JakeWharton is quite googlable... you can find him on LinkedIn Apr 04 06:35:40 _genuser_: well then you're dumb Apr 04 06:35:45 <_genuser_> t0astt: yep. I know. Apr 04 06:35:59 <_genuser_> JakeWharton: no, honestly, I just do'nt have a clue how to write a compiler. I'd be sitting there pointless writing code. Apr 04 06:36:06 it's easy Apr 04 06:36:13 there's only 3 rules Apr 04 06:36:21 iterate character by character and keep some kind of state Apr 04 06:36:35 <_genuser_> easy it subjective. once you've read about it and done it, it's easy. but to someone who never reserached the topic it's a blackbox area Apr 04 06:36:39 You don't need compiler knowledge to answer that question, just an eye for details and corner cases (assuming you want to be strict with JSP) Apr 04 06:37:17 i had never done it when a similar question was given to me Apr 04 06:37:27 that's the point. break it down, figure it out. Apr 04 06:37:42 no smart interviewer cares about if you get the perfect solution Apr 04 06:37:43 <_genuser_> so what's the other 2 rules? assuming what you listed was one rule? Apr 04 06:37:59 no, JSP itself has 3 rules is what I meant Apr 04 06:38:13 <_genuser_> yeah, I think I'd work best in a write pseudo code environment. Apr 04 06:38:32 <%-- foo %> is a comment, <%= var %> is a println of 'var', <% statement %> is a raw Java statement Apr 04 06:38:33 <_genuser_> real specifics... I think I haven't bothered to remember anything since google. Apr 04 06:39:22

<%= name %>

    <% for (String name : names) { %}
  • <%= name %>
  • <% } %>
Apr 04 06:39:38 <_genuser_> oh, I see. JSP itself is then just a salad or java / text (what that might actually be, html, another scripting language) Apr 04 06:39:49 <_genuser_> *salad of java/text Apr 04 06:40:01 all you have to do is look for <%--, <%=, or <% and then treat everything between that and the corresponding closing tag specially Apr 04 06:40:06 everything else is a string, for all intents and purposes Apr 04 06:40:32 <_genuser_> so essentially you're pulling out java code, putting it in a .java file and then compiling with javac Apr 04 06:41:10 yes. i promise you could have done it if i had explained it properly in person. Apr 04 06:41:14 <_genuser_> I believe this conversation was my intro to jsp. Apr 04 06:41:21 but then we get to fun corner cases as CedricBeust alluded :) Apr 04 06:41:55 My favorite game is to click randomly in the JSP file and guess what language I'm expected to type there Apr 04 06:41:56 <_genuser_> before android, I avoided anything that said java. and now I only do java for android. and I'm trying to follow java standards otherwise, no other java dev would be able to grok my code Apr 04 06:42:33 Does anyone know the name of the library that adds the "first run help" functionality that Google has in some of their apps? Where you run the app for the first time and the screen darkens but highlights certain areas? Apr 04 06:42:46 <_genuser_> I have done tons of ASP 3.0. which was also <% asp_code %> littered all over an HTML file. Apr 04 06:43:42 yep. asp is the same thing. Apr 04 06:44:12 _genuser_: yeah but java culture is so bad people are fleeing to languages like kotlin Apr 04 06:44:20 <_genuser_> well, thanks for teaching me JSP quickly. I actually didn't know how it works. Apr 04 06:45:29 <_genuser_> myke: right, but on android you gotta use java. and it helps to stay consistent with community if you someday want to move to android coding. Apr 04 06:45:52 That's a sound position Apr 04 06:46:06 i'm consistent with standards on a per-project basis Apr 04 06:46:10 my own projects have my own Apr 04 06:46:29 <_genuser_> I did that for long time. but now I try to go with the language specifics. Apr 04 06:47:11 <_genuser_> after delphi, all my objects were TObject and all windows devs were like is this a "type"? Why isn't it CObject, etc. etc. Apr 04 06:48:21 oh yeah, i remember "C" ... may you down in an ocean of C things ! Apr 04 06:48:27 CThis Cthat Apr 04 06:48:47 <_genuser_> who the C++ devs? Apr 04 06:49:21 Oh, JakeWharton you wrote Scalpel for Xposed, right? Apr 04 06:49:27 no Apr 04 06:49:40 no in MFC , all the classes started with C Apr 04 06:49:43 i wouldn't touch xposed Apr 04 06:49:59 https://raw.githubusercontent.com/JakeWharton/scalpel/master/images/sample.gif Apr 04 06:50:24 I wrote Scalpel, yes. Apr 04 06:50:40 <_genuser_> g00s: I break some java norms. but mostly, I just use java norms for my android projects. Apr 04 06:50:46 hmm ok. yeah I found it as an xposed module http://repo.xposed.info/module/pl.com.android.scalpel.inject Apr 04 06:51:39 anyway, it's a pretty sweep library/app Apr 04 06:51:39 _genuser_: myVariable vs mVariable Apr 04 06:51:47 why is that an android standard anyway? Apr 04 06:52:03 it isn't Apr 04 06:52:16 it's in the AOSP style guide and it has infected non-AOSP code Apr 04 06:52:16 it isnt? Apr 04 06:52:21 <_genuser_> DadFoundMy: I just stick with mVar. for public vars, VariableToHoldsSh|t Apr 04 06:52:46 JakeWharton: so you use myVar? Apr 04 06:52:52 no Apr 04 06:53:01 <_genuser_> otherwise, I'd be sitting there writting getters and setters. a huge waste of time. Apr 04 06:53:27 JakeWharton: now im confused lol Apr 04 06:53:33 just call it 'var' Apr 04 06:53:50 ah interesting Apr 04 06:54:13 <_genuser_> interestingly, I am moving towards var a little bit lately. Apr 04 06:54:16 this is what everyone else in the world, including Google, does Apr 04 06:54:37 <_genuser_> mVar, the m is from my Delphi days to indicate private var Apr 04 06:54:37 https://google-styleguide.googlecode.com/svn/trunk/javaguide.html#s5.1-identifier-names Apr 04 06:54:39 really? isn't it java standard to call it myVar? Apr 04 06:54:44 no Apr 04 06:54:55 is my whole life a lie right now? Apr 04 06:55:01 <_genuser_> lol. Apr 04 06:55:07 DadFoundMy myVar, ourVar, and yourVar Apr 04 06:55:38 <_genuser_> after using VB6 for almost a decade it was HARD to move to using the Shift key. Apr 04 06:55:39 DadFoundMy you are going to have to rewrite your app now Apr 04 06:55:53 g00s: yeah change all the variables lol Apr 04 06:56:15 personally in my code i use the m prefix for any insance variable and just simply var for any other variable Apr 04 06:56:22 is prefix for booleans Apr 04 06:56:26 <_genuser_> well, you just right-click, refactor, rename in eclipse. you're done mostly. Apr 04 06:56:27 stuff like that that Apr 04 06:56:44 _genuser_: shift + f6 Apr 04 06:56:50 atleast in AS Apr 04 06:57:18 <_genuser_> DadFoundMy: in AS? in eclipse clt-alt-r, I think. Apr 04 06:57:30 android studio Apr 04 06:57:48 i use snake case, pretty sure that's grounds for lynching in java Apr 04 06:58:15 JakeWharton: now im really confused. you said AOSP uses mPrefix, but doesnt google still make aosp??? Apr 04 06:58:23 that whole mMember thing was before IDEs could tag it for you Apr 04 06:58:29 DadFoundMy: they bought Android Apr 04 06:58:31 <_genuser_> my AS installation is up and running. I just haven't started any new projects yet. Altho, I might move my test project to use conceal (by facebook) to AS. Apr 04 06:58:33 but i'm sure people still use hungarian notation Apr 04 06:58:43 JakeWharton: i assumed they bought it pretty early on though Apr 04 06:59:02 changing a convention on a code base of that size is a highly disruptive and non-trivial operation Apr 04 06:59:05 and they still write aosp code Apr 04 06:59:12 because consistency is more important Apr 04 06:59:13 <_genuser_> myke: yeah, once I realized, I could just mouse over stuff in IDEs, I figured prefixes were pointless. Apr 04 06:59:31 like jake said, consistency within a project is the most important Apr 04 07:00:33 well time to pass out, im used to it being 3am but its only 1am local Apr 04 07:03:12 <_genuser_> sorry to digress form the regular naming convnetion snobbery but, captain janeway is hot! Apr 04 07:04:09 haha Apr 04 07:05:39 Hello, Im reading this in order to have an app with distinct fragments Apr 04 07:05:39 https://developer.android.com/training/basics/fragments/creating.html Apr 04 07:06:06 it mentions I should extend the fragment class in case Im using old API Apr 04 07:06:50 as I am not (my min sdk version is 16) and compiling with android 5 Apr 04 07:06:57 how should I create fragments? Apr 04 07:07:52 android 5 ? Apr 04 07:08:29 Eclair ? Apr 04 07:08:43 oh nm heh Apr 04 07:09:15 uh? Apr 04 07:09:36 i thought you meant API 5 Apr 04 07:10:02 compile version is api 22 Apr 04 07:10:06 min sdk is api 16 Apr 04 07:11:10 diegoaguilar is your question whether to use native fragments or support lib fragments ? Apr 04 07:11:59 my question is, how should I declare and use native fragments Apr 04 07:12:50 like the link you posted says O.o Apr 04 07:14:17 Im asking because it says " Just be aware that this lesson is focused on using the APIs from the Support Library, which use a specific package signature and sometimes slightly different API names than the versions included in the platform." Apr 04 07:16:13 diegoaguilar of you go to d.android.com, and type Fragment in search, you will pull up native and support version. they have the same name, just in different packages Apr 04 07:16:44 i'd just use the support version honestly Apr 04 07:17:02 why? Apr 04 07:17:35 theoretically it should behave the same across all versions of andoird. the native ones had bugs. also recursive fragments wasn't until 4.2 etc Apr 04 07:17:59 well , they all have bugs, its just that the support version is consistent with its bugs :) Apr 04 07:19:53 well, this is really gonna be used only in a 4.2+ devices Apr 04 08:59:07 I need halp Apr 04 08:59:32 I'm using this library https://github.com/PaNaVTEC/DrawableView and I've submitted an issue about it that just got fixed by the author Apr 04 09:00:13 he says that it's on a branch with the name of the issue and asks me to test it. Usually I just include that gradle line and I've got the library. How do I now test this other branch? Apr 04 09:15:59 hi Apr 04 09:16:20 I would like to connect two text box to a json, one for input and one for output Apr 04 09:36:58 <_zoom_> Hi Apr 04 09:37:30 <_zoom_> best way of keep temp data, e.g. sharing data between activity and service Apr 04 09:38:34 depends on your data Apr 04 09:39:43 <_zoom_> only few texts Apr 04 09:39:48 intent.putExtras(..) ....??? Apr 04 09:40:24 <_zoom_> service will be responsible of sending data over to a server Apr 04 09:41:11 <_zoom_> and activity shall only update these data, even if there no internet connection established Apr 04 09:41:23 well I tried to clone the repo and switch to that branch and run the app with the library included, it worked Apr 04 09:41:38 <_zoom_> i'm confused between sharedpreferences and contentprovider Apr 04 09:41:40 <_zoom_> ? Apr 04 09:41:52 I dont think the guy is expecting me to get the branch and magically turn it into that maven library that it is on master, he's just expecting me to literally test it as its own independent project Apr 04 09:41:57 and that's what I did! Apr 04 09:42:46 Odaym, yeah Apr 04 09:43:17 he'll merge it back to master and update the dependency on maven I guess Apr 04 09:44:15 well you could have forked fix it, issue a pull request etc Apr 04 09:44:26 oh no he was supposed to fix it Apr 04 09:44:47 not that involved in open source yet :P Apr 04 09:44:57 for now I ask for things to be done Apr 04 09:44:58 :P Apr 04 09:45:20 cause seriously, I mean it's part of what his lib advertises..it's not like a feature that I'd like to see Apr 04 09:45:26 set height of canvas, doesn't get set.. Apr 04 09:45:27 oh Apr 04 09:45:33 that's on him Apr 04 09:45:39 yeah i guess it's on him Apr 04 09:51:19 <_genuser_> writing a convoluted cache system sucks. Apr 04 09:51:43 <_genuser_> but I'm learning quite a bit in implementing a "smart" thinking pattern Apr 04 09:53:51 Hi, can someone help me with this question http://stackoverflow.com/questions/29440155/viewgroup-inflate-items-based-on-list-size Apr 04 09:53:58 Thanks in advance Apr 04 10:00:35 hey all i want to ask how can i create an android app to post products to sell and chat with seller ? thanks for help if there is any resources would be more appreciated Apr 04 10:01:43 question too general Apr 04 10:01:59 how can i remove an alarm from alarm manager i am using pendingintent.cancel() to do so but i cause null pointer exception Apr 04 10:02:02 you can create an app like that by beginning to write the code for it Apr 04 10:02:08 that's a good answer for that question Apr 04 10:02:42 i meant what do i need Apr 04 10:02:42 ? Apr 04 10:02:48 to know Android Apr 04 10:02:49 where to save data Apr 04 10:02:50 s9iper1, AlarmManager.cancel(pendingintent) Apr 04 10:03:00 on a server Apr 04 10:03:03 ok Apr 04 10:03:06 Mavrik thanks Apr 04 10:03:09 s9iper1, it's right there in the doc of a class you've used and has 5 methods ffs Apr 04 10:06:01 is there a way to save images and related texts and retrieve them to android app note the number of images are not static Apr 04 10:08:12 Hi, I'm trying to add users that can create websites... is it really going to cost 5 dollars per registered user with Google Work? I feel like there's a part of the pie I'm missing... Apr 04 10:08:42 what does google work have to do with creating websites? Apr 04 10:08:44 and android? Apr 04 10:08:59 Well, sir, I'm making an unofficial Google Sites app for creating sites using the API Apr 04 10:11:53 Is this the proper place to ask questions about kernel development? Apr 04 10:13:37 well, you can try, but I doubt there's many people that can answer Apr 04 10:13:44 you should also try on #android-root Apr 04 10:14:31 If I want users to create Google Sites with my subdomain do I have to pay google $5 per user or is there another way Apr 04 10:15:32 xyz87, you can use Picasso to load any number of images you want Apr 04 10:15:53 but the layout will change ? Apr 04 10:15:54 to get those images, they have to be sitting somewhere, try Parse.com as they offer storage space for things like this Apr 04 10:16:03 change how? Apr 04 10:16:11 it's up to you to write the layout Apr 04 10:16:17 if im using grid layout Apr 04 10:16:25 can i use dynamic images ? Apr 04 10:16:32 what's a dynamic image? Apr 04 10:16:39 it means Apr 04 10:16:45 when i add image to server Apr 04 10:16:58 use Imgur actually, not Parse Apr 04 10:16:59 it will be added to the android app Apr 04 10:17:23 Mavrik, thanks :) Apr 04 10:17:54 does it support text in addition to the image as each image i have a text for it Apr 04 10:18:26 you have to have a field called image_text or something to add the associated text Apr 04 10:18:37 so each row has image, image text, image path, date added, etc... Apr 04 10:53:41 Can anyone help me with this issue? http://stackoverflow.com/questions/29440155/viewgroup-inflate-items-based-on-list-size Apr 04 10:54:39 Or how can i inflate multiple times the same layout with interacting with the layout, so i can change text Apr 04 11:09:07 hi Apr 04 11:12:15 i have Fragment no support Fragment a viewpager and i'd like show with PageAdapter Apr 04 11:12:46 i don't use any support class.. so Apr 04 11:13:17 what can i use ? FragmentPagerAdapter wants Fragment Support Apr 04 11:13:36 FragmentStatePagerAdapter wants Fragment Support Apr 04 11:14:21 is there some adapter to show Fragment no support Apr 04 11:17:19 FragmentPagerAdapter v13 :D Apr 04 11:24:14 hi Apr 04 11:26:53 i want to make a notification system after the phone is booted . The content of the notification query from the database . this is how i proceded . A service with notification inside , start service inside A receiver , and send data from database to the activity. The database will be accessed in the receiver and a data send to the service to filled the content of the notification. but nothing happen Apr 04 11:29:20 iprime: Apr 04 11:33:25 john67, Apr 04 11:33:26 :) Apr 04 11:33:38 what do you need the service for, you can fire a notification from your BR Apr 04 11:34:09 to query the data Apr 04 11:34:38 i should do all in the BR? Apr 04 11:35:53 iprime: if i want to do the same thing with an alarm, i shouldnt i use a service? Apr 04 11:36:24 you can do it in the BR as long as you return quick Apr 04 11:36:37 as in you do it async Apr 04 11:37:12 but if you have everything set already.. Apr 04 11:38:22 i return quick? u mean i send the intent to the activity? Apr 04 11:40:32 I mean you don't do a lot of work in the broadcast receiver Apr 04 11:41:03 so your onReceive method should return quickly (not blocking too much) Apr 04 11:41:53 let me test this Apr 04 12:26:39 iprime: it changes nothing , it doesnt send to the activity Apr 04 12:27:34 iprime: should i send u the code? Apr 04 13:02:04 i want to make a notification system after the phone is booted . The content of the notification query from the database . this is how i proceded . A service with notification inside , start service inside A receiver , and send data from database to the activity. The database will be accessed in the receiver and a data send to the service to filled the content of the notification. but nothing happen Apr 04 13:21:55 In Studio, Log.d() output does not show inside the test runner tab, what should I use to print some debug strings from an InstrumentationTestCase ? Apr 04 13:28:45 p_d: those Log.d() go to the logcat Apr 04 13:34:05 arielch: correct, so is there a way to print in the test runner tab? Apr 04 13:45:55 Hey quick question, so I want to use a few method calls that require api 21, but I'd like to let the app itself work on lower versions as well, is there a good way to only make those calls if it's the appropriate api version? Apr 04 13:46:23 i want to make a notification system after the phone is booted . The content of the notification query from the database . this is how i proceded . A service with notification inside , start service inside A receiver , and send data from database to the activity. The database will be accessed in the receiver and a data send to the service to filled the content of the notification. but the app crashes when rebooted Apr 04 13:46:30 KaylieG, you check for version and then call them :) Apr 04 13:46:37 KaylieG, no trick there :) Apr 04 13:46:50 Build.VERSION.SDK_INT > Build.VERSION_CODES.JELLYBEAN Apr 04 13:46:52 etc. Apr 04 13:47:24 won't it still display as an error in the IDE? should i disable the lint check after doing this? Apr 04 13:47:38 KaylieG, you don't disable lint check Apr 04 13:47:44 you mark the method with @TargetApi Apr 04 13:47:55 to tell linter that you expected that method to be only called on certain API levels Apr 04 13:48:06 thanks! Apr 04 13:53:45 Hello folks! Apr 04 13:54:32 Hallo. Apr 04 13:54:33 I am trying to male a AutoCompleteTextView out to a ArrayList and I am getting this error : https://gist.github.com/anonymous/0ae07eddb2b314e90a58 Apr 04 13:54:52 Could someone help me figure what could be going wrong here please? Apr 04 13:55:25 ircfox, uhm, what's unclear about the error message? Apr 04 13:55:26 04-04 10:50:11.242: E/AndroidRuntime(3811): Caused by: java.lang.ClassCastException: android.widget.LinearLayout cannot be cast to android.widget.TextView Apr 04 13:55:31 04-04 10:50:11.242: E/AndroidRuntime(3811): java.lang.IllegalStateException: ArrayAdapter requires the resource ID to be a TextView Apr 04 13:57:32 I don't understand where I am trying to cast a LinearLayout to a TextView. Apr 04 13:58:46 it says that what you're passing to an ArrayAdapter is not an id of a TextView Apr 04 13:58:50 but of a LinearLayout. Apr 04 14:03:57 hi all!! Apr 04 14:04:22 i have a webview, there is an , how can i open the href in default browser? Apr 04 14:05:48 i want to make a notification system after the phone is booted . The content of the notification query from the database . this is how i proceded . A service with notification inside , start service inside A receiver , and send data from database to the activity. The database will be accessed in the service and the service start an activity. but the app crashes when rebooted. this is my code http://pastebin.com/LHJnKhnG thnks Apr 04 14:06:23 u3d: IIRC, the solution is to override WebViewClient.shouldOverrideUrlLoading. Apr 04 14:06:30 And then send an implicit intent for the URL. Apr 04 14:08:53 Actually, doesn't it do this by default? Apr 04 14:09:46 actually it gets opened in same webview Apr 04 14:12:32 Mavrik: Ok, I got it now. I was passing a layout I had on my project while I should be using something as a simple_dropdown_item_1line layout. Apr 04 14:13:06 You could use a custom layout with a TextView root element. Apr 04 14:13:39 TacticalJoke: is it ok? Apr 04 14:13:40 myWebView.setWebViewClient(new WebViewClient(){ Apr 04 14:13:40 @Override Apr 04 14:13:40 public boolean shouldOverrideUrlLoading(WebView view, String url) { Apr 04 14:13:40 Intent browserIntent = new Intent(Intent.ACTION_VIEW, Uri.parse(url)); Apr 04 14:13:40 startActivity(browserIntent); Apr 04 14:13:40 return true; Apr 04 14:13:41 } Apr 04 14:13:41 }); Apr 04 14:13:46 oops sorry.. Apr 04 14:14:46 it says.. android.content.ActivityNotFoundException: No Activity found to handle Intent Apr 04 14:17:19 What is the value of 'url'? (Maybe try Log.d to find out.) Apr 04 14:17:36 ok 1 min! Apr 04 14:21:00 TacticalJoke: the url is: Apr 04 14:21:03 and the error: Apr 04 14:21:11 No Activity found to handle Intent { act=android.intent.action.VIEW dat=www.youtube.com/embed/RPuaHP9ohhc } Apr 04 14:21:14 :S:S:S:S:S:S Apr 04 14:21:47 OH! Apr 04 14:21:53 with http:// it works!! :D :D :D Apr 04 14:22:02 TacticalJoke: thank you so much!!! :D Apr 04 15:19:47 hui Apr 04 15:32:20 Hello i got a error here after setting a class which extends Application as application android:name, the error is Caused by: java.lang.IllegalStateException: You need to use a Theme.AppCompat theme (or descendant) with this activity., it happens on the launcher activity class oncreate : super.onCreate(savedInstanceState); Apr 04 15:32:30 Is this a common mistake or is more code needed to help ? Apr 04 15:33:48 Omg never mind i think i found it ... Apr 04 15:33:49 !games Apr 04 15:36:11 Is there a faster version of BlurMaskFilter? Apr 04 15:36:21 It brings my draw times from 14ms to 26ms Apr 04 15:37:29 I have an activity that has a MediaPlayer instantiated onCreate, and then has a onPreparedListener set so that the mediaPlayer plays its sound whenever it is prepared. However, now it plays the sound right away when I instantiate it, when I only want it to play when I call prepare later on. Is there a way to make the create() method not prepare the mediaplayer right away? Apr 04 15:40:20 HenriettaSalt: if you comment out your listener does it still play? Apr 04 15:40:57 No, because I moved the player.start() method into the listener so that the only way to get it to play is to call prepare() or prepareAsync() Apr 04 15:42:34 ollien: Maybe my onListener solution isn't the right idea. I just want the player to play the sound when a button is clicked three times. Then, after three more clicks, I want the sound to stop playing if it's playing and start over. Without the listener, the sound doesn't always play when I want it to Apr 04 15:43:01 *onPrepared, not onListener Apr 04 15:43:03 Could someone look at this code: http://pastebin.com/Wtm0v86J , i'm getting 2 nullpointers yet both the objects work before i try to pass them Apr 04 15:44:38 Actually, I tweaked the code a bit, and it works! Apr 04 16:00:11 I'm starting to feel like I should probably not triple nest classes Apr 04 16:01:53 Darkwater why such dark thoughts? Apr 04 16:02:15 well, I'm hitting a compiler error I don't understand at all Apr 04 16:06:38 aaand I solved it by making a class static Apr 04 16:06:39 yay Apr 04 16:18:26 what is this? o_O gradle: string types not allowed at 'android:background' with value '' Apr 04 16:18:44 Hey, im doing a slide tutorial for my app with ViewPager following this example (http://developer.android.com/training/animation/screen-slide.html) i want to set a background image, i do it with ImageView and when i slide to next screen the performance its really low. Im testing on a real device with 4.4.4 some help? :p Apr 04 16:18:55 saapas: looks like an empty background attribute Apr 04 16:19:25 Darkwater, yeap but it's not empty. the value refers to a file I just created and I see nothing wrong with it Apr 04 16:19:52 weird Apr 04 16:20:57 saapas: they never have.. Apr 04 16:21:05 ;) Apr 04 16:21:07 saapas: only references Apr 04 16:21:13 ? Apr 04 16:21:21 @drawable/ Apr 04 16:21:26 @ == reference Apr 04 16:21:50 umm.. ok the erroneous element is @drawable/activity_button Apr 04 16:22:17 clean build Apr 04 16:22:31 do you override the style anywhere? Apr 04 16:22:32 did that, and restarted android studio. Apr 04 16:23:00 for the record, activity_button was just 'button' earlier. I needed to create another button style, named action_button Apr 04 16:23:03 did you update the plugin version in your gradle script to the latest version and the gradle wrapper itself? Apr 04 16:23:33 Could someone look at this code: http://pastebin.com/Wtm0v86J , i'm getting 2 nullpointers yet both the objects work before i try to pass them Apr 04 16:23:47 Napalm, no I didn't update anything Apr 04 16:23:51 I can't seem to use GLSurfaceView Apr 04 16:24:01 saapas: change to the project view rather than the android view in the left panel and verify the files are all in the correct places Apr 04 16:24:08 saapas: i am suggesting you should Apr 04 16:24:17 paulo_: and? Apr 04 16:24:21 codekK: whats up Apr 04 16:24:26 "cannot find symbol class GLSurfaceView" Apr 04 16:24:37 codekK: fixed your ViewPager/ImageView problem? Apr 04 16:24:43 I'm targeting ICS and above Apr 04 16:24:45 No :( Apr 04 16:25:03 paulo_: looks like you have plenty more issues than that Apr 04 16:25:18 paulo_: check your imports. other than that.. clean build. Apr 04 16:25:32 codekK: well describe again what you are doing Apr 04 16:25:39 Sec i will paste some code Apr 04 16:25:42 codekK: more details.. or paste some codes Apr 04 16:25:57 Napalm, yeap all the time I've had the project view Apr 04 16:26:35 Hyrixo: well Myapp could be null Apr 04 16:27:11 Hyrixo: how do you define it? Apr 04 16:29:21 Napalm, ok i have a ViewPager slide following the developers guide (http://developer.android.com/training/animation/screen-slide.html). And now, i want to set a background image for one of this slides. I do it with an ImageView like this code: http://paste.ideaslabs.com/show/05BTU5UROZ . But now, my transactions when i move right its too slow, only happen in pages that have a background image. If i set color it works fine. Apr 04 16:29:39 I try too using the default transicition effect (im using depth atm) and same problem :S Apr 04 16:31:32 codekK, cache your bitmaps and reuse them Apr 04 16:31:37 I dont know if is cause by the image. I have a one image for the background placed on drawable directory, the dimensions of image are 1600x2128 and size 1mb. Apr 04 16:32:58 iprime, its necessary to use cache when i only have a one background image ? Apr 04 16:34:11 do you use it multiple times in yoru view pager? Apr 04 16:34:51 nop Apr 04 16:34:56 Just in first slide Apr 04 16:35:47 maybe your image indeed is too large, try putting it in a density aware folder instead Apr 04 16:35:57 and/or load it asynchronously Apr 04 16:39:54 iprime, Ok. For put the image into different density folders i need to scale it yes? or its necessary another thing? I can just resize it like: ldpi = 240x320, mdpi = 1280x800, hdpi = 480x800, xhdpi = 768x1280 ? Apr 04 16:40:23 assuming that i want it only in phones and tablets (no tv or others) Apr 04 16:40:48 why is mdpi larger than hdpi Apr 04 16:40:50 codekK: switch on overdraw in the developer options Apr 04 16:40:59 Because im so confusing about mutiple scren support Apr 04 16:40:59 codekK: red is bad ;) Apr 04 16:41:38 codekK, you can put it in xxhdpi or something Apr 04 16:42:02 codekK: wtf? your background_login is 1MB? Apr 04 16:42:10 yes Apr 04 16:42:13 jesus Apr 04 16:42:25 codekK: is it a png? Apr 04 16:42:39 nope jpg Apr 04 16:42:42 fuck me Apr 04 16:42:51 chill out Napalm Apr 04 16:43:06 :S Apr 04 16:43:10 you need to compress that sucker a little and put it in the drawable-nodpi folder and see how it performs Apr 04 16:43:15 also.. you have a lot of overdraw Apr 04 16:44:20 window background -> viewpager background -> page view background -> login background Apr 04 16:44:26 Sorry but I am new to android and my experience as a designer is not much Apr 04 16:44:51 remove the color/primary background from your viewpager and your page view background Apr 04 16:45:18 Napalm, ok. Done Apr 04 16:45:26 Then what size its recommend use for images ? Apr 04 16:45:45 I can resize it with gimp Apr 04 16:45:58 And maybe export it to png? Apr 04 16:46:05 codekK, how about a screenshot of your login 'screen' Apr 04 16:46:34 you can keep it the same size and it should be jpg just add a little bit of compression to it and put it in your res/drawable-nodpi directory Apr 04 16:47:02 Im trying to do a login screen like Polaris Office login screen Apr 04 16:49:09 i'm not familiar with polaris office Apr 04 16:51:00 iprime, its just a slide that have a background photo Apr 04 16:52:40 and have you tried what I and Napalm suggested Apr 04 16:52:51 load it asynchronously, put it in a better folder Apr 04 16:52:57 hello Apr 04 16:53:35 iprime, i compress the image now the size is 100kb Apr 04 16:53:39 I'm trying to make an application send a string to php and receive and returned string with json Apr 04 16:53:44 anyone with experience in that? Apr 04 16:53:49 lol xpheres Apr 04 16:53:58 hi iprime Apr 04 16:54:02 hi there Apr 04 16:54:47 is your question about the android part or server part? Apr 04 16:54:50 or btoh :) Apr 04 16:55:05 the server is already working Apr 04 16:55:08 please have a look Apr 04 16:55:17 http://lingoworld.eu/lingoworld/translator/translator.html Apr 04 16:55:54 so you're effectively asking how to make a request to some server? Apr 04 16:56:01 from android Apr 04 16:56:31 iprime, Napalm, thanks now its work better but not perfect :P Its a 100kb a good size? or i should compress it more? I will read about load image async. Apr 04 16:57:12 Napalm: yes u were right , stupid me app = (MyApplication)getApplication(); was missing Apr 04 16:57:27 yes iprime Apr 04 16:57:31 codekK: there is no magic size it depends on the content of an image.. if you send it over I can give it a go for you Apr 04 16:57:36 I made a json request with sucess on javascript Apr 04 16:57:39 codekK, where does it reside now? Apr 04 16:57:42 but I have no experience with java Apr 04 16:58:10 iprime, it reside on drawable-nodpi Apr 04 16:58:12 xpheres, I suggest you try some networking lib Apr 04 16:58:13 codekK: if these images are coming from drawbles there should be no great lag time. Apr 04 16:58:19 Im reading about drawable-nodpi vs drawable Apr 04 16:58:19 right... Apr 04 16:58:25 codekK: async is not really needed Apr 04 16:58:48 mm second Apr 04 16:58:51 if it's in a density qualified folder it might load even faster, depending on the image Apr 04 17:00:03 Napalm, android won't rescale/resample from nodpi Apr 04 17:00:17 resampling can make it load much faster Apr 04 17:00:20 Here its the image http://oi61.tinypic.com/35m0biv.jpg Apr 04 17:00:54 codekK, in terms of file size you can reduce it if you blur it a little bit more (if you save as JPEG) Apr 04 17:01:21 With gimp i can reduce the quality easyly and reduce the size of file Apr 04 17:01:25 Like i do before Apr 04 17:01:25 Napalm, the issue "resolved" by reverting to the previous version of styles.xml. Apr 04 17:02:25 codekK: that should compress really well.. also you can make is smaller since its out of focus and let the platform resize it up Apr 04 17:02:35 if you really care Apr 04 17:02:45 i wouldnt bother resizing it since its current size is ok Apr 04 17:03:02 there should be no lag in loading that Apr 04 17:03:33 if you are still having problems log your creation of the view for your page and see if its being recreated all the time Apr 04 17:03:53 you might be calling notifyDataSetChanged too often and causing GC thrasing Apr 04 17:06:16 Napalm, ok thank you Apr 04 17:11:44 for the guy having trouble with tb its the last thing in the menu >>>> update.zip Apr 04 17:13:33 iprime like this? http://developer.android.com/training/volley/index.html Apr 04 17:14:29 xpheres, that would do perfectly in your case Apr 04 17:14:39 yes, that's what I was thinking Apr 04 17:15:23 could you help me explaining me how to include this lib in my application? Apr 04 17:15:37 I don't know how to include libraries in java yet Apr 04 17:17:46 what are you building your code with? Apr 04 17:19:28 with android studio Apr 04 17:21:47 you can clone the google project and include as a library Apr 04 17:21:47 http://stackoverflow.com/questions/16659620/volley-android-networking-library Apr 04 17:21:53 I found the instructions there Apr 04 17:22:00 but for you a much faster way would be to use one of those forks that are on maven Apr 04 17:22:02 I'm gonna try Apr 04 17:22:12 maven? Apr 04 17:23:14 if you like headaches Apr 04 17:23:40 I see there I just have to copy volley.jar to libs folder and add it Apr 04 17:23:41 oh really? jcenter mitigates it :) Apr 04 17:23:58 xpheres, that or find it on jcenter and include it in your depenencies Apr 04 17:24:09 jcenter... Apr 04 17:24:34 what is that Apr 04 17:24:49 from a very limited perspective maven is a server that can store projects and/or libraries Apr 04 17:24:56 ok Apr 04 17:25:00 software that can talk to maven can download and include them in your project Apr 04 17:25:01 and jcenter? Apr 04 17:25:04 right Apr 04 17:25:28 so they're repositories really Apr 04 17:25:30 What is Google? Apr 04 17:25:39 https://bintray.com/bintray/jcenter Apr 04 17:27:25 jcenter is based on maven, i'm not sure why google switched to it Apr 04 17:27:38 ok Apr 04 17:28:07 so the way is to download volley.jar from jcenter and copy it to android studio Apr 04 17:28:12 no Apr 04 17:28:19 you don't have to download it Apr 04 17:28:34 how do I link android studio to jcenter? Apr 04 17:29:27 I want to use this chance to make another question, android studio is not very fast sometimes and I have a warning that says that I better download jdr/jdk from oracle Apr 04 17:29:32 is the openjdk that bad? Apr 04 17:30:11 in your app's build.gradle, there's a "dependencies" section Apr 04 17:30:18 right Apr 04 17:30:57 app/build/generated/... Apr 04 17:32:02 I'm lost Apr 04 17:32:08 it is so easy in javascript Apr 04 17:32:08 check this: Apr 04 17:32:10 https://github.com/mcxiaoke/android-volley Apr 04 17:32:20 you can use it I guess Apr 04 17:32:26 right Apr 04 17:32:33 so you add a line to your gradle build script Apr 04 17:33:08 I don't find the word gradle anywhere Apr 04 17:33:09 Hello everyone, anyone using the NDK? Apr 04 17:33:28 ah I found it Apr 04 17:33:38 hi! Apr 04 17:33:43 helo there Apr 04 17:34:18 can someone tell me if there is any bug or problem with clicks on viewholders in recycler views? Apr 04 17:34:29 ehlo Apr 04 17:36:49 Do the logging macros in the NDK work on all threads? Because I have a class with three pure virtual methods. I override the three of them and log something to logcat in each one, but one of the three never produces any output - nor can mutate external variables Apr 04 17:37:21 That one that never logges back is running OpenGL code, so I don't know if it's in another thread or not Apr 04 17:37:38 i am trying to use a library for "parallax" effect Apr 04 17:37:49 but i think i am doing something wrong... i cant make clicks to work Apr 04 17:38:33 tksko, could be a lot of things Apr 04 17:39:10 i allways had problems with clicks on viewholders Apr 04 17:39:40 I am trying to use this library: https://github.com/kanytu/android-parallax-recyclerview Apr 04 17:39:44 its quite simple but effective Apr 04 17:41:26 * UberLambda hates pure virtual functions now Apr 04 17:43:10 I am getting mad Apr 04 17:43:15 i cant make it to work :( Apr 04 17:43:26 tksko, what exactly isn't working? Apr 04 17:44:25 or rather.. how isn't it working? Apr 04 17:44:40 i click on adapter items and nothing happends.. Apr 04 17:45:02 onBindViewHolder i did viewHolder.itemView.setOnClickListener(new View.OnClickListener() { Apr 04 17:45:03 @Override Apr 04 17:45:03 public void onClick(View v) { Apr 04 17:45:22 a simple toast.. and nothing.. Apr 04 17:47:05 maybe something is stealing the touch events, do you have any other click/touch listeners set? Apr 04 17:48:18 i dont think so Apr 04 17:48:26 my layout is a simple recycler view Apr 04 17:49:57 erm.. since you mentioned toast... do you .show() it? Apr 04 17:51:31 my app is 58th in top new free for productivity lol Apr 04 17:52:00 i think the problem is this parallax library i am using Apr 04 17:52:06 http://i.imgur.com/QKY0Rar.png Apr 04 17:52:07 which library can i use for parallax effect? Apr 04 17:52:23 i need a recyclerview with a header.. and i need the header to "scroll out" Apr 04 17:53:00 DadFoundMy, what is your app? Apr 04 17:54:10 iprime: https://play.google.com/store/apps/details?id=com.dylanredfield.agendaapp2 Apr 04 17:54:47 5.0 rating. ;o Apr 04 17:55:55 looks pretty neat Apr 04 17:56:21 TacticalJoke: it's cuz im perfect in every way and its the bestest app ever and no on ewill ever make anything better Apr 04 17:57:38 is there a method to strike through text iin a text view? Apr 04 18:01:10 i think you can use Apr 04 18:01:57 maybe there's also a spannable for this Apr 04 18:02:13 i found a way but its slightly annoying. i have to use paint Apr 04 18:02:17 Google has a few answers. Apr 04 18:02:33 TacticalJoke: yeah, i should get into the habit of googling before asking irc :D Apr 04 18:03:19 I think it's setPaintFlags or a StrikethroughSpan. Apr 04 18:03:29 im using "someTextView.setPaintFlags(someTextView.getPaintFlags() | Paint.STRIKE_THRU_TEXT_FLAG);" Apr 04 18:03:49 whats the | do in that statement? Apr 04 18:04:43 It's the bitwise OR operator. Apr 04 18:04:57 http://en.wikipedia.org/wiki/Bitwise_operation#OR Apr 04 18:06:03 The effect here is that the flag is added if it's absent. Apr 04 18:06:04 so in context of that line whats it do? do either one or the other? Apr 04 18:06:08 ohh Apr 04 18:06:25 hmm does getPaintFlags return a boolean? Apr 04 18:06:36 Any idea about what could be wrong in the `update()` pure virtual method here? http://pastebin.com/GLezzS4y Apr 04 18:06:45 It returns an int. Apr 04 18:07:45 TacticalJoke: hmm im confused lol Apr 04 18:08:11 This looks nice and concise: http://www.tutorialspoint.com/java/java_bitwise_operators_examples.htm Apr 04 18:08:46 ohh i think i get it, so if the getPaintFlags() doesnt return the same int as Paint.String_THRU_TEXT_FLAG, it sets it to that int? Apr 04 18:09:56 It adds the strikethrough flag if it's absent. 0000 | 0001 = 0001. Note that it's also the case that 0001 | 0001 = 0001. Apr 04 18:10:11 The strikethrough flag is like "0001" there. Apr 04 18:10:25 that makes sense Apr 04 18:10:46 im surprised ive never seen those operators before Apr 04 18:10:55 It's just like saying paintFlags.enableStrikethroughBit(). Apr 04 18:11:09 obviouslly ive seen || in if statments but never like that Apr 04 18:13:25 DadFoundMy, those are bitwise operators: https://en.wikipedia.org/wiki/Bitwise_operation#Bitwise_operators Apr 04 18:13:54 http://www.vipan.com/htdocs/bitwisehelp.html Apr 04 18:14:16 What is the best tablet to get right now for testing Android applications that are also optimised for tablets? Apr 04 18:15:15 either Nexus 7 2013 or Nexus 9 Apr 04 18:15:27 so you'll have decently new OS to test features on Apr 04 18:15:35 other OEMs just never update tablets Apr 04 18:15:43 I was thinking the Nexus 7, a friend is selling his (2nd gen) Apr 04 18:17:30 N7 is ok, you'll have to use emulator to test 9-12" layouts tho Apr 04 18:19:28 I need to get around to getting a Nexus 9 Apr 04 18:19:43 ive heard the nexus 9 is pretty bad Apr 04 18:20:00 Mavrik, is it really that big of a difference? Apr 04 18:20:02 I seldom use my Android tablet. Apr 04 18:20:10 Phone or laptop only. Apr 04 18:20:13 doh. Apr 04 18:20:16 TacticalJoke: yeah i dont see how i would ever use a tablet Apr 04 18:20:27 DadFoundMy, Nexus 9 is the best tablet I've owned to date Apr 04 18:20:37 TacticalJoke, I never intended to get a tablet. I never need it, but if I can get a used N7 2nd gen sure. I'll barely use it though. Apr 04 18:20:42 stop reading reddit for purchase optinions -_- Apr 04 18:20:50 Muchoz, let me put it that way Apr 04 18:20:56 Muchoz, if you haven't designed for tablet Apr 04 18:21:06 your app is probably extremely unpleasant to use on a one Apr 04 18:21:41 the 7" - 9"+ tablet difference isn't that big, but 7" stuff usually needs phone-like portrait mode Apr 04 18:21:43 Mavrik: mine runs on a nexus 7, probably sucks to use though :D Apr 04 18:21:45 i used tablet a lot in 2 scenarios, when i had nothing but bike and didn't want to whip out asus t100 Apr 04 18:22:05 and truck driver bc i use it as gps and surf from the drivers seat Apr 04 18:22:17 I know, but is there a need to specifically design a 9"? My app would already use that extra space on the 7". Currently landscape is disabled anyway. Apr 04 18:22:26 but it is useful to read books guess Apr 04 18:22:37 i just added a feature to my app where if the assignment is completed but not hidden it will strike through the listing in the list view :D Apr 04 18:22:40 Muchoz, I said you need to test Apr 04 18:22:41 It would just be more spacious on 7"+ Apr 04 18:23:03 Im wrong if i test my app with emulator for 5.1 with 64 MB Heap? With 32MB Heap my app crashes out of memory in a imageview -.-' Apr 04 18:23:08 What would be a good price for a used Nexus 7 2nd gen? Apr 04 18:23:11 Muchoz, I strongly suggest you get a tablet and use it for a week Apr 04 18:23:17 so you'll see what I'm talking about when I say Apr 04 18:23:29 that most phone design apps are extremely hard to use on a tablet Apr 04 18:23:44 codekK, it'll crash on all devices that have 32MB default heaps Apr 04 18:23:44 What if an app is designed for phones only? I'm not sure I buy this idea that every Android app should be designed for tablets. Apr 04 18:23:57 codekK, which are probably most of low-ends Apr 04 18:24:19 Mavrik, and its cause only by one image? :S Apr 04 18:24:24 TacticalJoke, you can always optimise it a bit without much change and it can be a huge improvement. Apr 04 18:24:29 TacticalJoke, noone said every app should be built for a tablet Apr 04 18:24:37 TacticalJoke, just people on tablets will use something else Apr 04 18:24:46 some things just don't make sense on tablets either Apr 04 18:24:55 codekK, of course Apr 04 18:25:09 codekK, you are aware that bitmaps aren't compressed when loaded Apr 04 18:25:11 The image size its 89,81Kb and resolution 1024x927 .png Apr 04 18:25:22 codekK, that's compressed size. Apr 04 18:25:38 codekK, loaded image ready for display uses 4 bytes per pixel Apr 04 18:25:48 that's 4MB in RAM Apr 04 18:25:57 just how many times did you load that image to run out of 32MB heap? Apr 04 18:25:58 then i should get it smaller? Apr 04 18:25:59 do you have a leak? Apr 04 18:26:05 no, you should fix your memory leak :P Apr 04 18:26:09 i liked the fact that i could get tablet more powerful than a phone of twice the price or more guess, have to whip out that big tablet tho, not that i minded, but looks funny Apr 04 18:26:16 I use this image 4 times in differente slide Apr 04 18:26:36 Melvinov, different use cases I gues Apr 04 18:26:47 Melvinov, I kinda stopped using the phone alltogether since I got my first ipad Apr 04 18:26:49 Melvinov, it isn't as hard for a manufacturer to design a tablet as it is to designa phone. Apr 04 18:27:13 most people opt for phablets latelty though Apr 04 18:27:19 i get cheap phones, almost went for note 3 but they usually $300- too much Apr 04 18:27:40 I recently switched to the iPhone 6. My first iPhone and imo it's the perfect size. Apr 04 18:27:47 meh Apr 04 18:27:51 still too big Apr 04 18:27:52 :) Apr 04 18:28:03 A problem I have with a large-screen phone is that I can't browse reddit one-handed as I walk down the street. :D Apr 04 18:28:07 I think 4.7" is the sweetspot. Apr 04 18:28:21 I like smallish screens because it's not painful operating with a single hand. Apr 04 18:28:30 I just like them because I can put them in my pocket Apr 04 18:28:34 4.7" isn't painful for me. Apr 04 18:28:34 and carry them everywhere Apr 04 18:28:46 You can easily put even a 5" in your pocket Apr 04 18:28:52 but then again, I don't commute for 45 hours on an underground everydat Apr 04 18:29:04 Muchoz, I don't do rapper clothing Apr 04 18:29:31 I wear tight fit pants every day, fit perfectly Apr 04 18:29:46 Resizable screens are what we need. Apr 04 18:29:57 the Nvidia shield tablet is better than Nexus 9 Apr 04 18:30:03 what percentage of your users normally update, if no extra permsisions are needed? Apr 04 18:30:03 shmooz, nop Apr 04 18:30:16 DadFoundMy, almost all since autoupdate is default Apr 04 18:30:33 TacticalJoke, that's why I'm interested in Project Ara... being able to get 4" chasis with non-shitty hardware Apr 04 18:30:39 dunno which is better shield or tab s- almost bought one when i thought shield was broken Apr 04 18:30:52 shmooz, would be better if it would have a 4:3 screen Apr 04 18:30:54 Mavrik: it can run stock lollipop, and has better performance Apr 04 18:31:12 performance doesn't matter if you can't read shit due to narrow screen Apr 04 18:31:17 it has the same 16:10 screen as Nexus 7 2013 Apr 04 18:31:21 yes. Apr 04 18:31:38 it's nice if all you do is watch movies Apr 04 18:31:51 most apps and text based stuff is significantly easier to read on the 4:3 screen of ipad / N9 Apr 04 18:32:05 I prefer a wide screen though Apr 04 18:32:12 also less wasted space all around, on N10's 16:10 screen there was bunch of wasted space in apps Apr 04 18:32:26 I dislike 4:3 Apr 04 18:32:40 widescreen is dumb for content Apr 04 18:32:42 yeah 4:3 is good for text stuff Apr 04 18:32:48 4:3 ratio? Why not 4:4!? Apr 04 18:32:49 good for movies and games Apr 04 18:32:52 I prefer 16:10 for reading too Apr 04 18:33:05 Muchoz, maybe you should actually try a 4:3 tablet :P Apr 04 18:33:12 Hi, how can I run and application in background since is installed without executing it? Apr 04 18:33:15 Isn't the iPad 4:3? Apr 04 18:33:20 yep Apr 04 18:33:20 ramirog89: you can't Apr 04 18:33:23 Then I have tried one Apr 04 18:33:29 Muchoz, ah, then you're just wrong. Apr 04 18:33:32 JesusFreke: mmm ok! Apr 04 18:33:33 ramirog89: when the application is installed, it's initially in the stopped state Apr 04 18:33:38 ramirog89, need to run it at least one Apr 04 18:33:40 *once Apr 04 18:33:42 the user has to specifically run it first Apr 04 18:33:47 Opinions you know Apr 04 18:33:47 if my Nexus 7 was 4:3 I couldn't hold it in one hand Apr 04 18:33:52 ^ Apr 04 18:34:01 I like the portrait usage more Apr 04 18:34:12 yeah, and 4:3 is infinitely more useful in portrait Apr 04 18:34:18 since you can get a normal line of text Apr 04 18:34:32 JesusFreke: and Can I run the application handling the lockScreen with the PowerManager when the "isInteractive" is true ? Apr 04 18:34:40 Maybe I like it a little tighter? Apr 04 18:34:45 again, wrong. Apr 04 18:35:03 Wow people can have opinions you know Apr 04 18:35:06 I think BlackBerry has a 4:4 device Apr 04 18:35:31 I'm fine with opninions as long as they're the same as mine Apr 04 18:36:17 ramirog89: not sure I follow Apr 04 18:36:24 I guess we'll never agree, which I'm fine with Apr 04 18:36:38 16:9 best though Apr 04 18:37:18 I prefer 23:17 Apr 04 18:37:20 ok, enough trolling you guys Apr 04 18:37:25 where's g00s to take ower Apr 04 18:37:29 *over Apr 04 18:37:36 g'nite :) Apr 04 18:38:04 Eastside is da best! Apr 04 18:38:33 Nobody ever represents the Northside. Apr 04 18:38:44 I kinda like the south-southwest side Apr 04 18:39:16 TacticalJoke: did you finish your app ? Apr 04 18:39:39 DadFoundMy: congratulations, now how can you make money from your famous app ? Apr 04 18:39:48 Not yet. Apr 04 18:39:59 shmooz: "famous" "150 downloads" :D Apr 04 18:40:10 shmooz: and it's open source and free soooo i dont think any profits will come in Apr 04 18:40:12 yeah but it's in the top 100 Apr 04 18:40:28 shmooz: top 100 of Top Free New in Productivity Apr 04 18:40:37 shmooz: How 'bout you? Apr 04 18:41:01 TacticalJoke: nothing stopping me but lazyness Apr 04 18:41:11 I already finished it many times in my mind Apr 04 18:41:12 JesusFreke: Sry, I'm just want to know if I can start my App when the user push the locker. Or running an application while the locker is activated Apr 04 18:41:37 like show text shile the app is locked Apr 04 18:42:13 ramirog89: you need a lockscreen widget? Apr 04 18:42:22 I've done a lot of things in my mind. :D Apr 04 18:42:55 Fought battles, won wars, been crowned a hero. Apr 04 18:43:35 TacticalJoke: after I crush the last few crucial bugs, I'll send you another copy of it Apr 04 18:44:11 They shall be crushed... nay, annihilated! Apr 04 18:44:18 it would have been finished if I hadn't added audio functionality to it Apr 04 18:44:50 So is the wasteland known as G+ still required for running alpha/beta tests for apps in the Play Store? :-) Apr 04 18:44:53 I'm currently being annoyed by the fact that Spinners want to call the "item selected" thing after instantiation and also after Spinner.setSelection calls. Apr 04 18:44:59 ramirog89: you could experiment with http://developer.android.com/reference/android/view/WindowManager.LayoutParams.html#FLAG_SHOW_WHEN_LOCKED, and/or http://developer.android.com/reference/android/app/KeyguardManager.KeyguardLock.html#disableKeyguard() Apr 04 18:45:00 It'd be so cool if neither of those fired the callback. Apr 04 18:46:24 ramirog89: or on.. kitkat? lollipop? (I can't recall which), you could create a notification which gets displayed on the lockscreen Apr 04 18:46:32 DadFoundMy, open source apps make money still Apr 04 18:47:15 TacticalJoke: why is that a problem ? Apr 04 18:47:20 pfn: how? I dont really want to add ad's either Apr 04 18:47:21 I wish we could just use the "on click" thing. For actual clicks. Apr 04 18:47:30 truth be told i dont really care about the money at this point Apr 04 18:47:33 all my stuff on github that I sell on play makes some money, not a lot, but some Apr 04 18:47:34 mine never has directly. although it was a significant factor in getting a couple of jobs, so I guess in some sense it has made me quite a bit of money :) Apr 04 18:47:34 oh I see! I'm looking at! Apr 04 18:47:42 pfn: do they have ads? Apr 04 18:47:56 shmooz: In one scenario in my app, the spinner's data is being loaded (asynchronously) from a file. The "data loaded" callback might fire before or after the spinner calls the "on item selected" thing. Apr 04 18:47:59 It's really obnoxious. Apr 04 18:48:08 DadFoundMy, no Apr 04 18:48:16 So I just have to disable the first "item selected" event and do stuff manually, to avoid the data race. Apr 04 18:48:39 since this is my first app and im still in high school, i thought it would be a good idea to make it as user friendly as possible (no ads, open source, doesnt take your data, ect) in attempt to make a name for my self of some sort. Is this dumb? Apr 04 18:48:43 pfn: how then? Apr 04 18:49:10 TacticalJoke: I think I used post runnable to stop the spinner from acting up on instantiation Apr 04 18:49:14 DadFoundMy: Ads and taking data are bad always. Apr 04 18:49:33 shmooz: I want to put a view when the screen is lock.. (where the display says.. move the button to Unlock) and put an image and a Text Apr 04 18:49:37 Please don't become famous and sell out. :D Apr 04 18:49:38 TacticalJoke: well i know taking data, but why ads? Apr 04 18:49:56 IMO, always-on-screen ads are bad basically always. Apr 04 18:49:57 DadFoundMy: sounds like a good idea to me. If you have an actual successful app on the market, and can point to a well designed code base.. :) Apr 04 18:50:19 my plan for my future apps are to have ads, but have them removable for free Apr 04 18:50:58 DadFoundMy, what do you mean, set a non zero price Apr 04 18:51:11 ohh i assumed it was free Apr 04 18:57:00 is it possible to control the date a version goes live in the playstore or is at googles discretion? Apr 04 18:58:20 it goes live when you publish Apr 04 18:58:38 doesnt it have to go through the review process Apr 04 18:59:32 im about to implement some setting for my app. do i need to save the settings in my database? Apr 04 18:59:54 What are the settings? Apr 04 18:59:57 TacticalJoke: my problem was when I put the device in sleep and wake it up again , the spinner wasn't keeping it's selected position Apr 04 19:00:07 JesusFreke: I'm just wondering If I could add an Image just to the lockScreen, like overriding the behaviour to put different view to the lockScreen? Apr 04 19:00:10 until I did that post runnable thing Apr 04 19:00:36 I see the loolipop notificationManager but that's not what I'm looking Apr 04 19:00:37 Don't you have to store the position (e.g., in onSaveInstanceState)? That's what I'm having to do. Apr 04 19:01:48 modeSpinner.post(new Runnable() { public void run() { modeSpinner.setSelection(1,true); } }); fixed it Apr 04 19:05:20 TacticalJoke: lets say i want th4 user to be able to enable or disable notifications Apr 04 19:06:04 Sounds like a SharedPreferences thing. Apr 04 19:07:32 jug6ernaut, review process is like 2hrs Apr 04 19:08:15 pfn k, thanks. Apr 04 19:12:48 DadFoundMy: does your app have a Settings section ? Apr 04 19:12:55 shmooz: not yet Apr 04 19:13:03 im working on it for the next update Apr 04 19:13:35 theres just a couple changes i want to change like enable notifcations, set the time of the notification, change app color. stuff like that Apr 04 19:14:08 DadFoundMy: Do you have a public GitHub page for it? Just wondeirng. Apr 04 19:14:10 wondering* Apr 04 19:14:18 yes notifications is important for an app like that Apr 04 19:14:40 TacticalJoke: https://github.com/DylanRedfield/AutoAgend Apr 04 19:15:12 TacticalJoke: just dont look at the list of commits kthx Apr 04 19:16:26 i merged the project with another one of my prjects on accident sooo my history looks really dumb Apr 04 19:17:32 Friends, im getting this error since one hour and i cant solve it :S. At logcat: "E/dalvikvm﹕ Could not find class 'android.support.v4.app.FragmentTransitionCompat21$3', referenced from method android.support.v4.app.FragmentTransitionCompat21.setSharedElementEpicenter" here its my build.gradle http://paste.ofcode.org/Eask8pY3jxxNGvDq9A9ccj Apr 04 19:17:47 I should make an app that asks others to do your homework for you ;) Apr 04 19:18:01 like a homework trade center Apr 04 19:18:20 shmooz: "Ill trade you one math homework for 2 historys!" Apr 04 19:18:37 DadFoundMy, rebase the ugly history out Apr 04 19:19:03 pfn: i didnt even know that was possible :D Apr 04 19:19:23 DadFoundMy: that was a big money maker before the days of mobile Apr 04 19:20:02 DadFoundMy, and don't check in the apk Apr 04 19:20:14 pfn: what do you mean? Apr 04 19:20:36 oh shit my apks are in the /app/ Apr 04 19:25:56 Friends, im getting this error since one hour and i cant solve it :S. At logcat: "E/dalvikvm﹕ Could not find class 'android.support.v4.app.FragmentTransitionCompat21$3', referenced from method android.support.v4.app.FragmentTransitionCompat21.setSharedElementEpicenter" here its my build.gradle http://paste.ofcode.org/Eask8pY3jxxNGvDq9A9ccj Apr 04 19:31:53 i'm using android studio with openjdk -- is there a big performance difference between openjdk and oracle jre/jdk? Apr 04 19:37:04 no Apr 04 19:37:18 for 8 maybe Apr 04 19:37:38 there is a warning when i start android studio. should i just ignore it? Apr 04 19:37:48 yes Apr 04 19:37:57 k, thanks Apr 04 19:38:24 You'd think that would depend on the warning.. Apr 04 19:38:46 brb. i'm installing kvm bc android studio is so slow on my comp. i'm trying to optimize it Apr 04 19:39:32 ... because putting things in a virtual machine is a great way to speed them up Apr 04 19:39:48 SimonVT: "Open JDK shows intermitted performance and UI issues. We recommend using the Oracle JRE/JDK." Apr 04 19:40:19 JesusFreke, i think it's supposed to improve the performance of the emulator Apr 04 19:40:36 i'm just starting out. just learning... Apr 04 19:40:53 any other suggestions? i have 6gb of ram Apr 04 19:41:20 If you want to use open jdk, it sounds like you'll have to ignore it Apr 04 19:41:35 SimonVT: im using openjdk Apr 04 19:41:50 im coding on linux Apr 04 19:43:06 I have a custom camera using camera.open() but when the screen rotates because I rotate the device the camera stops working, how can I fix this? Apr 04 19:45:58 where does one submit a bug for google play services ? Apr 04 19:47:07 g00s you can send it directly to the C.I.A. Apr 04 19:47:40 this is only play games https://code.google.com/p/play-games-platform/issues/list Apr 04 19:49:10 this is amazing Apr 04 19:49:16 http://android.stackexchange.com/questions/53354/where-should-issues-with-google-play-services-e-g-fused-location-provider-be Apr 04 19:50:08 Play Services docs are so freaking bad, their examples use methods that don't even exist Apr 04 19:50:18 thought i would submit a bug for that anyhow Apr 04 19:52:16 https://plus.google.com/u/0/+ElliottHughes/posts/F4kZF1EAwpp cc g00s forwarded from someone i will not name Apr 04 19:52:21 :'] Apr 04 19:53:47 one comment there - terrible signal to noise ratio in AOSP tracker is true Apr 04 19:54:10 but i blame google for that, setting up a good schema for collecting data is not rocket science. Apr 04 19:54:44 exhibit a : atlassian bug tracker. you simply can't fill that out wrong Apr 04 19:54:56 (for their own products like sourcetree) Apr 04 19:55:07 like I said somewhere else, I would expect less bug... Apr 04 19:59:06 adq i dont. this is what i expect from google these days. worst software quality in the industry Apr 04 19:59:34 at least among companies their size Apr 04 20:00:35 pro & con, i cannot balance properly to rank google among other big comps Apr 04 20:01:25 i've seen worst and better :p and my code is not immune of bug to avoid any humility crisis Apr 04 20:01:45 Play Services has lots of things in it - now it makes me nervous using other parts of it, if there is no way to research bugs in a defect tracker. or communicate bugs Apr 04 20:04:28 ah http://developer.android.com/support.html -> https://code.google.com/p/android/issues/entry?template=Developer%20Documentation Apr 04 20:04:44 adq thats for AOSP Apr 04 20:04:47 since there is no specific place for play services, it probably falls into b.android.com Apr 04 20:05:06 code-level support, send feedback Apr 04 20:05:14 i did not read anything specific to AOSP Apr 04 20:05:28 "Android Open Source Project - Issue Tracker" lol Apr 04 20:05:31 but i can see device & plaform Apr 04 20:05:41 damn son, i'm tired Apr 04 20:05:43 oops my bad :) Apr 04 20:06:19 * adq puts himself as obsolete Apr 04 20:13:23 hey, anybody here with knowledge of xmpp and google maps api knowledge that would like to partner with me for a startup idea? Apr 04 20:58:08 hi, can someone suggest a good book for me on getting up to speed with Android? I'm looking for something rather low-level to understand what Android did with Linux... not something introductory to programming, Linux, or something Apr 04 21:07:01 done. Droidcon reservations made! Apr 04 21:23:43 Hydrant, no Apr 04 21:23:55 what's to understand Apr 04 21:24:06 Hydrant, it's pretty much computer basics Apr 04 21:24:55 pfn: hi, I'm looking for something to describe in some detail the motivation for ion, how memory allocation and management might be different, and so forth Apr 04 21:25:59 "/reload style" Apr 04 21:26:07 Sorry Apr 04 21:27:30 Hydrant, the motivation is likely in the commit logs Apr 04 21:28:46 pfn: okay Apr 04 21:28:58 Hydrant, while pfn is being an ass again Apr 04 21:29:05 Hydrant, this page has alot of that kind of info: https://source.android.com/devices/tech/index.html Apr 04 21:29:25 Hydrant, but honestly you will need at least a basic understanding of Java to get what they're talking about Apr 04 21:29:33 Android is mostly written in Java Apr 04 21:29:43 and inherites its concepts Apr 04 21:29:47 Mavrik: I'm much more interested in the low-level kernel details for high-performance stuff Apr 04 21:30:16 You can't do high performance stuff without understanding how a basic app works. Apr 04 21:31:12 Mavrik: in what sense? Apr 04 21:31:55 Hydrant: If you want high perf stuff, why are you looking at Android (Java)? Apr 04 21:32:37 Android is more about good enough performance at low wattage on memory constrained (cheap) devices. Apr 04 21:33:14 perhaps this is an issue of definitions Apr 04 21:33:25 my understanding is that Android is a series of patches on Linux Apr 04 21:33:38 and that although there are Java bindings there is still C / C++ under the hood for all of the heavy lifting Apr 04 21:35:04 Hydrant, no, it's not Apr 04 21:35:07 Patches to make it work for the Android use-case yes, not for making linux "better" in a general sense. Apr 04 21:35:26 Hydrant, Android is a Java operating system that calls some C/C++ implementations when it needs them Apr 04 21:35:39 Hey all Apr 04 21:35:55 and it's built on top of a modified Linux kernel and has pretty much nothing else in common with what most people call "Linux distribution" Apr 04 21:36:20 Hydrant, as opposed to pretty much all other OSes out there, Android does not have a C/C++ core API or any C/C++ core Apr 04 21:36:27 it's basically boot-to-JVM Apr 04 21:36:38 perlsyntax, evenin :) Apr 04 21:36:53 Hey there Mavrilk Apr 04 21:36:58 :) Apr 04 21:39:22 Mavrik: and the game developers write everyting in Java? I thought most of that was still done in C++ with the NDK? Apr 04 21:39:51 * regan loves the NDK now Apr 04 21:39:59 modern game developers write everything in C# :P Apr 04 21:40:06 using unity Apr 04 21:40:13 but yes, games usually opt for C++ for their engine Apr 04 21:40:33 but most OS interaction calls back to Java VM and the JVM is the one that loads .so file containing C++ code Apr 04 21:40:34 indeed... Vulkan is a C / C++ API Apr 04 21:40:38 unity3d is a populatr eninge Apr 04 21:41:04 Game engines varies a lot. Libgdx for instance is java based, with a few optimized C/C++ libs for some rastering stuff which OpenGL isn't already taking care of. Apr 04 21:41:04 OpenGL, OpenSL and some input are the APIs that are available for C/C++ code Apr 04 21:41:09 and pretty much nothing else Apr 04 21:41:25 kjeldahl, Unity has such a huge market share it's not even funny Apr 04 21:41:32 it's like 85%+ Apr 04 21:41:33 Java is good for prototyping and then move to the NDK Apr 04 21:41:49 Mavrik: Yeah, agree. Too artsy for us devs. :-) Apr 04 21:42:02 have to figure it out on vs Apr 04 21:42:12 so I mean, my main intention to come to the channel is to get some ideas for where to start... I've been doing high-performance Linux stuff on GPUs, CPUs, etc. for years, I just don't know much about Android / mobile dev atm Apr 04 21:42:49 Hydrant, yeah, basically, Android is very different from most Linux distros Apr 04 21:42:54 Hydrant, so you start with a hello world app Apr 04 21:42:57 Most Android jobs are Java Apr 04 21:43:04 yep Apr 04 21:43:08 Hydrant, so you see just how Android treats stuff Apr 04 21:43:20 Hydrant, and please, forget EVERYTHING about Linux when working with it Apr 04 21:43:35 Mavrik: heh, not very likely :-) Apr 04 21:43:45 any preconceptions you brought from desktop Linux distros are probably worng and WILL cause you to do stupid stuff Apr 04 21:44:00 fork() it… I’m off for a surf Apr 04 21:44:01 after you write a hello world, you need to figure out JNI Apr 04 21:44:14 and that's pretty much it, afterwards it's plain C/C++ Apr 04 21:44:26 okay Apr 04 21:44:42 so you definitely have a top-down approach whereas I'm more bottom-up type Apr 04 21:45:05 JNI isn't that hard (for the limited things it can be used for). You just need the proper java wrapper classes and you can call straight into your elf so files. Apr 04 21:45:40 But your "main" usually lives in Java, which turns everything around... Apr 04 21:45:44 yeah, the thing with JNI is just that is was created by a madman Apr 04 21:46:09 True. Apr 04 21:46:50 I'm much more on the lower-end Apr 04 21:47:03 where I'm looking at zero-copy stuff from the camera to OpenCL implementations on the GPU to do processing and so on Apr 04 21:47:10 maybe that will have some Java API at the other end Apr 04 21:47:20 Ah, RenderScript. More mad-man stuff. Apr 04 21:47:26 which is why I'm looking at things like ION and so on to move data around the device Apr 04 21:47:28 OpenCL Apr 04 21:47:34 huh Apr 04 21:47:37 http://developer.android.com/guide/topics/renderscript/compute.html Apr 04 21:47:44 Hydrant, I very much doubt the devices will let you do that Apr 04 21:47:48 RenderScript is extremely limited Apr 04 21:48:07 I'm not sure on the various policies and so on, but OpenCL is indeed available on most handsets and exposed Apr 04 21:48:07 especially without using the Java MediaCodec and new Camera2 APIs Apr 04 21:48:28 Hydrant: Point is, Android was made for extremely limited devices, which all the APIs carries with them. Apr 04 21:49:18 well, I see a lot of discussion about concurrency performance and so on Apr 04 21:49:26 I mean, a GPU will use a fraction of the energy and be faster than the mobile CPU Apr 04 21:50:27 But both GPU and CPU on mobile devices are made to be on for a few minutes at a time. There are more than a few devices that go pop from overheating if you use them for longer periods... Apr 04 21:50:57 (I'm generalizing a lot, but this is based on experience with using old phones as surveilance cams etc) Apr 04 21:51:14 Hydrant, yes, Android does prefer RenderScript instead of OpenCL tho Apr 04 21:51:40 Mavrik: any idea as to the motivation for that? Apr 04 21:51:53 * Hydrant is more a fan of OpenCL Apr 04 21:52:06 hmm, not really Apr 04 21:52:13 I think it was just not available for mobile at that time Apr 04 21:52:19 and mobile GPUs weren't compatible Apr 04 21:52:32 http://stackoverflow.com/questions/14385843/why-did-google-choose-renderscript-instead-of-opencl Apr 04 21:52:42 pretty much every mobile device I know of has OpenCL available Apr 04 21:53:50 kjeldahl: yah, the arguments are rather weak Apr 04 21:54:18 it looks for what I want to do I want to really play with the NDK and put a UI in Java or something Apr 04 21:54:52 Hydrant: Yeah, I'm just the messenger here. No idea myself. Apr 04 21:55:01 kjeldahl: yah understood Apr 04 21:55:10 you know a lot more about Android than I do at the moment I'm sure! Apr 04 21:55:51 There are other channels where the fight is more even! ;-) Apr 04 21:57:03 there are a couple books on the NDK and intro android dev Apr 04 21:57:09 I think I'll just buy 2 - 3 and try to get started :-) Apr 04 21:57:23 in the mean time, I'll continue my normal life on #opencl :-) Apr 04 21:57:57 You'd probably crush us all in that channel, we're staying here! Apr 04 21:58:10 :-) Apr 04 21:58:36 :-) Apr 04 21:58:43 thx for the help, trying to learn something new Apr 04 21:59:12 thug life, man Apr 04 22:15:36 what. on. earth. I have an OnLongClickListener that initiates a View selection mode, and at the same time - for some reason - two buttons on my ActionBar are colorized to blue. Apr 04 22:17:02 saapas, probably a resource missmatch, clean/build Apr 04 22:26:50 What's the main argument against using Groovy for Android development? I'm guessing it's performance. Apr 04 22:26:52 Just curious. Apr 04 22:27:10 Google doesn't say much. Apr 04 22:40:26 darken, yeap that it is thanks. Apr 04 22:45:05 done Apr 04 22:45:06 ezzz Apr 04 22:45:10 2ez4me Apr 04 22:50:32 Odaym: hi Apr 04 22:50:38 hi jan Apr 04 22:57:43 what's up john67? Apr 04 22:57:56 nothing new same project Apr 04 22:57:58 and u? Apr 04 22:58:02 almost done soon Apr 04 22:58:37 same Apr 04 23:03:45 you gonna make millions? Apr 04 23:03:47 or just thousands Apr 04 23:03:52 what're you planning? Apr 04 23:04:15 lol, im not interested in cash Apr 04 23:04:16 lol Apr 04 23:04:22 OH! Apr 04 23:04:24 excuse me! Apr 04 23:04:25 haha Apr 04 23:04:36 is 67 your age? Apr 04 23:04:48 wow, if you are born in 67, you would also be 67 right now Apr 04 23:04:58 im less than 30 Apr 04 23:05:13 no that's wrong math, you wouldn't also be 67 if you were born in 1967 Apr 04 23:05:29 you'd be 48 Apr 04 23:05:43 I'm less than 30 too, by 3 years Apr 04 23:07:56 losers your less than 30? damn youngins! Apr 04 23:08:31 I dont want 30 to roll around while Im still this stupid Apr 04 23:08:36 realllly trying to catch up to my age Apr 04 23:08:37 haha Apr 04 23:09:12 i want to create a notification with an alarm , i have created a service for the alarm which is started inside a Receiver(the notification) , and the receiver has to send it the activity , but it doesnt work. this is my code http://pastebin.com/abRVYKzq Apr 04 23:09:17 thnx for help Apr 04 23:09:37 Odaym: we have the same age Apr 04 23:09:42 what about it doesn't work Apr 04 23:10:05 is it a manifest service? Apr 04 23:10:31 there are services that you register in the manifest Apr 04 23:10:47 yeah Apr 04 23:10:48 that's all I know about that, maybe you didnt register Apr 04 23:10:51 i have them Apr 04 23:11:05 still, tell whats not working so that they can know what to look at Apr 04 23:11:11 million things could be the cause Apr 04 23:11:15 gn for me though! Apr 04 23:11:17 Apr 04 23:11:59 the receiver doesnt set to the activity Apr 04 23:27:43 so i want to make a notication every day at 7pm. I am going to use this code "http://stackoverflow.com/a/13121797", but should i put it in the main activity Apr 04 23:28:09 did my message above come through? Just after it it said connection timed out so I'm not sure if it got sent Apr 04 23:30:02 duncannz: No. Apr 04 23:30:07 ok here it is Apr 04 23:30:09 My app has a red action bar but it shows up as black in the Lollipop recent screens thing. How do I change this? Apr 04 23:34:39 Have you set colorPrimary to red? Apr 04 23:35:28 duncannz: yeah you need to set it in your theme Apr 04 23:36:54 ah it's as easy as that. thank you Apr 04 23:37:34 duncannz: i had the same issue for a pretty long time. I still kinda think im doing it wrong Apr 04 23:37:36 One other thing, I'm getting the warning "android:colorPrimary requires API level 21 (current min is 15)" but can I safely ignore this since the setting only applies to API 21 devices anyway? Apr 04 23:37:45 i have my app's theme set, but i still set it programaticly also Apr 04 23:37:53 i.e. will non-lollipop devices just ignore the setting safely Apr 04 23:38:01 duncannz: yeah i believe so Apr 04 23:38:07 great thanks Apr 04 23:38:56 duncannz, no, they might crash Apr 04 23:39:10 pfn: what should I do then? Apr 04 23:39:17 duncannz: Are you using AppCompat? If so, just set 'colorPrimary'. Apr 04 23:39:21 pfn: really? I have the same error but my app is working on all versions of andorid Apr 04 23:39:26 That should be effective on all versions (AFAIR). Apr 04 23:39:27 you should put it in values-v21 Apr 04 23:39:45 some attributes will be ignored, some will cause crashes Apr 04 23:39:50 pfn: would TacticalJoke's thing work? Apr 04 23:39:53 I am using AppCompat Apr 04 23:39:59 depends on the constant value and how it's accessed Apr 04 23:40:06 I don't know what TacticalJoke thing is Apr 04 23:40:23 setting android:colorPrimary and colorPrimary Apr 04 23:40:29 No. Apr 04 23:40:40 just colorPrimary? Apr 04 23:40:42 My Android Studio is stuck on Gradle: Executing Tasks [:app:assembleDebug]. Anyone ever had this happen to them? Apr 04 23:41:46 pfn: this is my styles.xml that seems to work on all versions: https://gist.github.com/DylanRedfield/968e38f20efceb1e005d Apr 04 23:44:59 TacticalJoke: if you would just set colorPrimary rather than android:colorPrimary and colorPrimary, would you also just set actionBarStyle rather than android:actionBarStyle and actionBarStyle? Apr 04 23:45:12 obviously I haven't really got the hang of AppCompat yet Apr 04 23:47:51 if you're using appcompat, you don't use the android: attributes Apr 04 23:48:10 you can, but some things won't take effect Apr 04 23:49:17 so just actionBarStyle not both Apr 04 23:50:35 so i have an update ready to push, but i also paln on adding a new feature in a day or two. Is it bad to push 2 updates 2 days in a row? Apr 04 23:50:48 or should i just wait till im done with the second feature? Apr 04 23:51:47 DadFoundMy: probably better to wait, constant updates annoy users Apr 04 23:52:07 duncannz: it doent change any permisions though so shouldnt it be automatic? Apr 04 23:52:30 DadFoundMy: when you first open google play you get asked "do you want to enable automatic updates". Not everyone presses yes Apr 04 23:52:51 i didnt even think that was an option Apr 04 23:52:57 i guess i should wait then Apr 04 23:52:57 Here's some stats for my app: http://i.imgur.com/0NBdODn.png Apr 04 23:53:20 whats that represent? Apr 04 23:53:30 App version Apr 04 23:53:44 oh, did any of those require new permisions? Apr 04 23:53:44 only about 80% of my users have auto updates I'm guessing Apr 04 23:53:46 nope Apr 04 23:53:54 haven't changed permissions since v1 Apr 04 23:53:55 hmm your deffinetly right then i should wait Apr 04 23:54:13 the last thing i need to add is a notification once a day Apr 04 23:54:28 should be simple-ish Apr 04 23:56:13 is anyone here having issues with maven dependencies? Apr 05 00:25:19 I have an activity Home with a ViewPager of FragmentOne and FragmentTwo. After the user fills out a form in FragmentTwo it goes to FragmentTwoSubmitted. When the user presses the back button from FragmentTwoSubmitted, I want it to be showing the FragmentOne tab. I tried ButterKnife.findById(getParent(), R.id.view_pager).setCurrentItem(0) from FragmentTwoSubmitted but it crashes because getParent() returns null. What should I do? Apr 05 00:28:34 nvm I have to go Apr 05 00:36:06 hi!, how to correctly use setEmptyView() in a ListView? seems that view parameter in the method must be a View that replace space of current ListView, i'm right? I mean... must be defined inside xml too, so system can swap ListView space with the new View passed as parameter, Is correct what I'm saying? Apr 05 00:38:35 It's a View that's shown when the ListView is empty. The View could be defined anywhere (including in Java code), but I guess it's common for it to be defined in the same XML file as the ListView is defined in. Apr 05 00:43:05 ok, widget ListView works like this: when empty data from cursor itself "auto-hide" to do space for the View defined in setEmptyView param? Apr 05 00:43:36 something like: hide when no data, show list when have data Apr 05 00:43:37 ¿¿?? Apr 05 00:44:08 every example of ListView setEmptyView I see do the same thing Apr 05 00:46:34 Yes, that's how it works. Apr 05 00:46:50 Is there a reason you're asking this stuff? Apr 05 00:47:52 just to know, for me is confusing Apr 05 00:48:14 feathersanddown: This is the implementation: https://android.googlesource.com/platform/frameworks/base/+/master/core/java/android/widget/AdapterView.java#734 Apr 05 00:48:29 It simply shows and hides stuff. Apr 05 00:50:24 ooooh I see it Apr 05 00:50:29 thanks TacticalJoke :) Apr 05 00:51:30 Always check the source if you're unsure. You can google "android googlesource Foo.java" or whatever. Apr 05 01:01:17 is it alright to lean on an event bus for passing data between activities? I'm not a big fan of using parcelable Apr 05 01:01:48 but I don't know if an event bus can remove the need to use .a bundle Apr 05 01:02:34 this android class on coursera is amazing Apr 05 01:04:23 TacticalJoke: aaah good tip Apr 05 01:47:22 when extends from ListView there is no need to have setContentView(R.layout.activity_listview); ?? Apr 05 01:54:25 uhm.... seems there is no need to have an xml neither Apr 05 01:56:21 mrfu, bundles are only absolutely required for ipc Apr 05 02:24:30 pfn: But in general I can use event busses to avoid ipc right? Apr 05 02:25:47 no, only itc Apr 05 02:27:01 interesting never heard the term inter-thread com. Looks like I have some reading to do Apr 05 02:27:14 thanks Apr 05 02:27:21 yes you do mrfu , yes you do ;) Apr 05 02:28:19 i just made it up but it follows logically from ipc Apr 05 02:28:28 and you knew what i meant, so... Apr 05 02:29:00 generally you don't have to do true ipc on android; usually your services are just threads and you're single-process. it's *possible* to be multiprocess, or if you need to pass something to another app or a service in another app Apr 05 02:29:23 I've only had to do true multiproc once or twice, and usually for absolutely absurd reasons due to the nonsense i was forcing the system to do **** ENDING LOGGING AT Sun Apr 05 02:59:58 2015