**** BEGIN LOGGING AT Sat Feb 28 02:59:59 2015 Feb 28 03:00:01 Note that there are two calls to findViewById that need to be fixed. Feb 28 03:00:07 I am getting the same error on the line 7 of that pastepin Feb 28 03:00:34 Yeah, titleTextView should be null with the code you pasted. Feb 28 03:01:07 here is the new code that still doesn't work http://pastebin.com/aFJjmuW1 Feb 28 03:01:57 hmm new theory the arrayList may be null let me check Feb 28 03:02:15 Just let LogCat guide you. You're searching in the dark without reading the exception stack trace. Feb 28 03:02:28 TacticalJoke: logcat isn't telling me anything :/ Feb 28 03:02:36 its just telling me the line that there is an error on Feb 28 03:03:12 Try setting the filter to "No filters" at the top right and the log level to "Error". Feb 28 03:05:25 so i have narrowed down that titleTextView == null by the time I try to call setText() Feb 28 03:06:09 but how does that make sense, wouldnt i get a castExecption when casting null to a (TextView) on the previous line?? Feb 28 03:07:11 im a fucking idiot Feb 28 03:07:17 i was inflating the wrong layout Feb 28 03:07:24 * DadFoundMy facepalms Feb 28 03:14:55 Everyone is so hard on themselves tonight. :) Feb 28 03:15:29 catch (WrongLayoutException e) { doNotInsultSelf(); fixProblem(); } Feb 28 03:16:02 :D Feb 28 03:21:45 catch (WrongLayoutException e) { doNotInsultSelf(); fixProblem(); } I keep this one in stock lol good one Feb 28 03:49:37 hey TacticalJoke Feb 28 03:49:43 Hay. Feb 28 03:49:46 http://www.materialup.com/posts/materian-design-menu-animations Feb 28 03:49:52 just saw this and started implementing it Feb 28 03:50:09 i have a few ideas how it might be achieved Feb 28 03:50:26 i knew it http://techcrunch.com/2015/02/27/uber-database-breach-exposed-information-of-50000-drivers-company-confirms/ Feb 28 03:50:39 Hello i'm a web developer , i am noob at android app development i'm curious to know how do they develop UI like this http://www.cssauthor.com/wp-content/uploads/2013/08/Mobile-UI-Free-PSD1.jpg in android do use webviewport and open a webpage in iframe or do they create UI itslef in java if yes then how ? thanks :) Feb 28 03:50:40 everyone things i'm paranoid :) Feb 28 03:50:49 Neat. First time I've seen this. Feb 28 03:51:13 hey Napalm Feb 28 03:51:16 hey g00s Feb 28 03:51:18 check the link Feb 28 03:51:26 https://www.youtube.com/watch?v=5Rqj59pRN7s Feb 28 03:51:29 just implemented this Feb 28 03:52:07 hey , psychadelic man Feb 28 03:52:27 well hopefully it will look like this http://www.materialup.com/posts/materian-design-menu-animations Feb 28 03:52:27 Are you using a SurfaceView or something (I'm clueless about graphics)? Feb 28 03:52:45 TacticalJoke: just a view here Feb 28 03:54:11 working on the algo.. hopefully i can push it into an Outline as a path.. and then.. oh yea.. awesomeness Feb 28 03:54:43 Napalm: seems like you can answer my question above , can you please take a look at that question ? Feb 28 03:55:53 boodllebat: im not sure I follow Feb 28 03:56:02 boodllebat: its just a webpage Feb 28 03:56:21 Napalm: so all great ui are developed in webpage for android ? Feb 28 03:56:24 boodllebat: or its a android native all Feb 28 03:56:36 boodllebat: no all the best are native apps Feb 28 03:57:11 I have a CustomRelativeLayout and now I need to add a view programmatically - how do I reference to the layoutparams of the custom viewgroup ? Feb 28 03:57:30 Napalm: how do they develop do they use Images,svg for UI ? or its simply code ? Feb 28 03:57:50 csst0111: did you make your own LayoutParams in your CustomRelativeLayout. and override all the LayoutParam callbacks? Feb 28 03:58:01 Napalm, nope Feb 28 03:58:26 csst0111: then you can just use RelativeLayout.LayoutParams Feb 28 03:58:38 ah ok!! thank you :) Feb 28 03:58:53 boodllebat: erm. yea? Feb 28 03:58:57 DadFoundMy: BTW, you should say "layoutInflater.inflate(id, parent, false);". I just remembered. Feb 28 03:59:08 So that it gets the parent's LayoutParams. Feb 28 03:59:17 Napalm: cool thanks :) Feb 28 04:00:06 boodllebat: just like a webpage you can make a custom TTF font with your vector graphics and simply ask android to show the custom font characters Feb 28 04:00:25 boodllebat: or just use png images Feb 28 04:00:42 Napalm: oh ! so they use images fonts and all that ! cause they dont have CSS there ! Feb 28 04:01:11 boodllebat: you probably want to read this http://developer.android.com/guide/topics/ui/index.html Feb 28 04:01:43 boodllebat: Android has its own "CSS" type thing. Called Styles. Feb 28 04:01:49 TacticalJoke: i had that in one of my many attempts, but changed it thinking that was the issue, ill try changing it back Feb 28 04:02:12 boodllebat: http://developer.android.com/guide/topics/ui/themes.html Feb 28 04:02:23 Napalm: i have tried a hello world app but still think it is not as flexible as CSS Feb 28 04:02:37 its more flexible Feb 28 04:02:47 boodllebat: you can define your own attributes to do whatever you want Feb 28 04:03:41 I think I found CSS more flexible in general. You can apply more than one style to elements, for example. Feb 28 04:04:32 Napalm: can you create these in android just with code ? without using images ? http://www.blazrobar.com/wp/wp-content/uploads/Flat_UI.jpg Feb 28 04:05:17 boodllebat: yes if you want Feb 28 04:05:45 boodllebat: for the more complex path's I'd use a font.. so for all the glyph's on the buttons Feb 28 04:06:05 boodllebat: but apart from that.. the rest i'd do in code Feb 28 04:06:20 Napalm: like can you give button radius ? Feb 28 04:07:16 boodllebat: erm? yes Feb 28 04:07:23 boodllebat: you can do whatever you weant Feb 28 04:07:26 lol Feb 28 04:08:08 Napalm: :) thanks Feb 28 04:08:27 huh thats interesting, i didn't know google was snatching up gTLDs like .dev Feb 28 04:08:37 boodllebat: should put you in the right direction > http://developer.android.com/guide/topics/resources/drawable-resource.html#Shape Feb 28 04:08:42 I just learned about .app. Feb 28 04:09:13 Napalm: but why not use webpage in webview port ? any specific con for that ? Feb 28 04:09:40 Napalm: But how easy is it to create a custom radio button that looks good (in < 5 and >= 5)? That kinda stuff I find really fiddly. Feb 28 04:09:57 boodllebat: thats a long story.. lots of cons and and pro's.. but most believe I as do that the cons are worse Feb 28 04:10:17 boodllebat: surfing webpages is a "heavy" operation for the cpu to "do".. Feb 28 04:10:33 boodllebat: and it ends up using more battery Feb 28 04:10:49 boodllebat: have you ever noticed surfing websites on your phone/tablet uses more battrey Feb 28 04:10:52 TacticalJoke anyhing new and juice in android land today ? Feb 28 04:10:56 *juicy Feb 28 04:11:31 I was tempted to post about this IRC channel here: http://www.reddit.com/r/androiddev/comments/2xcmsl/how_to_keep_up_with_android_development/ Feb 28 04:11:35 But the thought scared me. :D Feb 28 04:11:37 g00s: the gTLD news is oldddd news Feb 28 04:12:00 I think this place has to be one of the best for keeping up to date. Feb 28 04:12:17 Napalm: like i have to do a post request to my server and also i have to redistribute its code , so it'll create an app for that the code'll be more clumsy and heavy to handle but if i do it like , create a responsive webpage at my server and give webview port to it ! simply one liner :) Feb 28 04:13:46 boodllebat: and most of your users will hate you for taking the quick route Feb 28 04:13:50 oreilly released this free ebook http://www.oreilly.com/programming/free/software-architecture-patterns.csp Feb 28 04:14:21 boodllebat: i agree its simpler for you.. but why do you think apps exist if we could use websites for everything Feb 28 04:14:35 boodllebat: even then.. the overhead of websites is its downfall Feb 28 04:15:07 boodllebat: im not getting into a discussion about this. do whatever you want. Feb 28 04:15:46 Napalm: i guess its an endless debate i just found this http://www.html5rocks.com/en/mobile/nativedebate/ Feb 28 04:16:09 webapps suck compared to native Feb 28 04:16:19 TacticalJoke yeah maybe i should use twitter as rss feed Feb 28 04:16:20 :) Feb 28 04:16:28 g00s: heh, probably not super useful for day-to-day android dev, but my friend's se android book was recently released :D Feb 28 04:16:31 plenty of examples, trello is one Feb 28 04:16:33 http://www.amazon.com/Exploring-SE-Android-William-Confer/dp/1784390593/ref=sr_1_1?ie=UTF8&qid=1425096942&sr=8-1&keywords=Exploring+SE+for+Android Feb 28 04:16:54 myke: does trello uses webviewport ? Feb 28 04:17:06 JesusFreke nice ! Feb 28 04:17:19 no idea, doesn't matter, the native app handles dragging much better Feb 28 04:18:45 JesusFreke "He is one of the engineers who founded the Samsung KNOX product" interesting Feb 28 04:19:07 myke: in my case i only have to make a simple form and post its data to my webserver what'll be good for it ? Feb 28 04:19:13 myke: just reading the html5rocks page he linked.. "Actually, web apps are easier to discover" .. have you ever wanted to type a URL in on your phone Feb 28 04:19:14 lol Feb 28 04:20:17 myke: i do like hybrid apps.. they have their uses Feb 28 04:20:19 g00s: heh, yeah Feb 28 04:20:21 The thought of using JavaScript to write a web app fills me with horror. Feb 28 04:21:06 Napalm: in my case i only have to make a simple form and post its data to my webserver what'll be good for it ? Feb 28 04:21:36 boodllebat: hybrid will probably do you better. so you have a responsive website for your content. but then you create a wrapper app that uses a WebView and has a JavaScript interface to speak to the "wrapper" app. You can have a nav menu you expose and the items are populated by Javascript in the page.. all sorts of things Feb 28 04:22:15 boodllebat: well sounds like its a single webpage.. so there is no "app" Feb 28 04:23:18 Guys Im trying to find the method I use to add a extra bundle to a DialogFragment when I .show() it Feb 28 04:23:28 But I cant seem to find it in the docs Feb 28 04:24:10 .setArguments? Feb 28 04:24:28 drose379: groxx has it.. wins by a mile! Feb 28 04:24:35 drose379: BTW, I saw your messages yesterday -- a DialogFragment wraps a Dialog. I don't think it makes sense to talk of a DialogFragment wrapping a DialogFragment. Feb 28 04:24:38 * Napalm listens to the crowd go wild Feb 28 04:24:40 Napalm: suppose i have this i have huge app ! i do this create one form page in webviewport i integreate this feedback form there, user clicks feedback button and my page open in webviewport when users fills that webpage and submits the feedback successsfully to my webpage , IT"LL RETURN BACK TO MY ORIGINAL APPLICATION ? Feb 28 04:24:49 Yes, thank you! Feb 28 04:24:58 TacticalJoke: it does Feb 28 04:25:02 Ok I got it TacticalJoke Feb 28 04:25:30 * groxx listens to trains honk their horns. in celebration of my win, obviously Feb 28 04:25:54 Napalm: It does make sense for a DialogFragment to wrap a DialogFragment? Feb 28 04:26:02 Would I getArguments() inside onAttach()? Feb 28 04:26:08 drose379: onCreate is probably best. Feb 28 04:26:08 TacticalJoke: it depends on your application.. DialogFragment is not just a Dialog.. it has a mode controlled by setShowsDialog. So you can take your dialog and use it like any normal fragment Feb 28 04:26:28 Thanks Feb 28 04:26:32 drose379: Using onCreate is analogous to using a Java constructor (and getting parameters passed in). Feb 28 04:26:39 TacticalJoke: I've used this before on a "wizard" type interface where on a phone its fullscreen and paged.. and on a tablet its several dialogs. Feb 28 04:26:50 drose379: Or you could just use onCreateDialog and get it there. Feb 28 04:27:09 Napalm: Yeah, but it still wraps a Dialog, right? Feb 28 04:27:09 It can be called anywhere? Could I also create a method inside my fragment and just call that Feb 28 04:27:14 I am only passing a boolean Feb 28 04:27:20 Called anywhere from onCreate onwards, I think. Feb 28 04:27:25 Before onDestroy, I guess. Feb 28 04:27:30 myke: suppose i have this i have huge app ! i do this create one form page in webviewport i integreate this feedback form there, user clicks feedback button and my page open in webviewport when users fills that webpage and submits the feedback successsfully to my webpage , IT"LL RETURN BACK TO MY ORIGINAL APPLICATION ? Feb 28 04:27:35 boodllebat: yes it'll return to your app. thats the whole point of Intent's Feb 28 04:27:40 Could I create my own method? Or would it be better to use .setArugments Feb 28 04:27:50 It wouldn't work to create your own method. Feb 28 04:27:57 Because then you'd lose your arguments on screen rotation and stuff. Feb 28 04:28:03 boodllebat: take my web-wrapper and start with that. https://github.com/slightfoot/android-web-wrapper/ Feb 28 04:28:11 The bundle set as an argument is persisted across activity destruction. Feb 28 04:28:24 TacticalJoke: wrong Feb 28 04:28:25 s/destruction/destruction and recreation/ Feb 28 04:28:33 TacticalJoke: you can set it and save it in the state bundle Feb 28 04:28:39 Napalm: That's not what he meant. Feb 28 04:28:45 ah Feb 28 04:28:50 im not paying attention :D Feb 28 04:29:11 Well, maybe I misread, but I took his text to mean creating his own "setCustomArguments" kinda method. Feb 28 04:29:24 But then he'd lose the arguments on screen rotation if he just set some fields. Feb 28 04:29:42 All fields get reset on screen rotation? Feb 28 04:29:48 Yeah. Feb 28 04:29:53 yes.. but those fields can be read in onSaveInstanceState Feb 28 04:30:01 drose379: thats the whole point.. you get a NEW object Feb 28 04:30:04 Napalm: JUST gave you a STAR :) Feb 28 04:30:05 drose379: This is why setArguments is a good thing. Feb 28 04:30:10 Those arguments *won't* be lost. Feb 28 04:30:21 Ohh, and thats what Bundle savedInstanceState is? Feb 28 04:30:36 * Napalm sticks it on his collar and grins Feb 28 04:31:00 drose379: yes.. its what you choose to save Feb 28 04:31:17 drose379: but savedInstanceState is not the same as your Arguments Feb 28 04:31:24 Napalm: in return would you like to give me start in some of my repo here is my github http://github.com/argunner Feb 28 04:31:28 drose379: All you need to do is set arguments. Feb 28 04:31:38 And get them. Feb 28 04:32:54 The rest, as zey say, is majikk. Feb 28 04:33:03 boodllebat: huh? Feb 28 04:33:05 start? Feb 28 04:33:12 Napalm: sorry STAR Feb 28 04:33:17 TacticalJoke Im just thinking of other situations when my activity relies on fields Feb 28 04:33:24 Would they be lost on screen rotation? Feb 28 04:33:28 Yeah. Feb 28 04:33:33 Then you'd need onSaveInstanceState. Feb 28 04:33:36 TacticalJoke: best phrase evar "automagically" Feb 28 04:33:38 Well, it depends. Feb 28 04:33:52 If you're rereading from a file, for example, you don't need that on-save-instance-state thing. Feb 28 04:34:05 Hmmm Feb 28 04:34:09 Basically, onCreate will run again. Feb 28 04:34:15 Ok Feb 28 04:34:19 So if you say "someField = 5;" in onCreate, it'll reset to 5. Feb 28 04:34:24 But what gets saved in the Bundle savedInstanceState Feb 28 04:34:30 I am fond of automagical things Feb 28 04:34:36 oh, everything assigned in oncreate Feb 28 04:34:40 You can save stuff like "the selected position in a spinner". Feb 28 04:34:41 drose379: by default your view-hierarchy state Feb 28 04:35:09 Ok Feb 28 04:35:21 dragorn: no.. everything assigned in oncreate is not in your savedInstanceState Feb 28 04:35:24 hi all Feb 28 04:35:25 *drose379 Feb 28 04:35:27 The contents of your ListView will disappear by default on screen rotation. Feb 28 04:35:45 But I guess in your case it'll re-download from the server. Feb 28 04:35:50 TacticalJoke: ok stop here. direct him to the guide pages on configuration Feb 28 04:35:50 lol Feb 28 04:35:52 why my laptop makes sound like monstor ? Feb 28 04:36:06 boodllebat: because you do web-dev Feb 28 04:36:07 :D Feb 28 04:36:12 * Napalm giggles Feb 28 04:36:21 boodllebat: it's the daemons running in the background. ya can't leave them free to roam. Feb 28 04:36:29 haha Feb 28 04:36:35 they'll nom all ur bits Feb 28 04:36:40 he's fan goes like "WHOOOOM" "WHOOOOOM" " WHOOOOOM" its scary Feb 28 04:36:47 om nom nom nom Feb 28 04:37:05 uh oh. the fan's in Jurassic Park mode. if you don't move, it might not eat you! Feb 28 04:37:07 When my CPU fan is going crazy I check the process list. Feb 28 04:37:16 lol Feb 28 04:37:16 Chess engines are one of the worst for CPU cycles. Feb 28 04:37:18 Yeah TacticalJoke just let him spend some time reading and experimenting Feb 28 04:37:26 We'll never see the end of this otherwise Feb 28 04:37:36 Napalm: i'm not a web developer i usually code in C , yeah but i'm good at web development ! Feb 28 04:37:44 * Napalm high fives CedricBeust Feb 28 04:38:07 * CedricBeust highfives Napalm back Feb 28 04:38:12 Napalm: here is my one repo in pure c https://github.com/argunner/StickFace Feb 28 04:39:03 Napalm: and i have re written stable version in python https://github.com/argunner/StickFace2 Feb 28 04:39:17 boodllebat: i dont think anyone cares.. sorry. Feb 28 04:39:56 * Napalm hides from the rage of boodllebat Feb 28 04:40:06 Napalm: :( you had a option to say like that " great work fella " Feb 28 04:40:27 boodllebat: i looked and saw bad intent's in code.. then i closed the source Feb 28 04:40:36 i have standards Feb 28 04:40:38 sorry Feb 28 04:40:52 Napalm: what about this https://github.com/argunner/StickFace2 Feb 28 04:41:05 Napalm: but do you have RFCs? Feb 28 04:41:40 groxx: Request For Comments? !? Feb 28 04:42:49 Napalm: you can even watch working video here https://vid.me/QhyM Feb 28 04:44:11 Napalm: indeed! prior to them becoming your standards, of course. Feb 28 04:44:26 boodllebat: hey look.. i got one too. https://github.com/slightfoot/android-note-widget Feb 28 04:44:30 :| Feb 28 04:45:01 Napalm: is their any working DEMO ? or video or screenshot i wanna see how does it look Feb 28 04:45:08 groxx: actually yes. all things are considered. Feb 28 04:45:33 Napalm: GAVE YOU A START ! Feb 28 04:45:39 Napalm: SORRY STAR Feb 28 04:46:02 I've come to the conclusion that I hate the 'Util' or 'Utils' naming style. I'd rather see Text.isNullOrEmpty than TextUtils.isNullOrEmpty. Feb 28 04:46:42 DANGIT NAPALM, DIDNT YOU JNOW STARS REQUIRE UPKEEP? Feb 28 04:46:52 (And, for specific types, the plural of the type name is nice; e.g., "Collections"). Feb 28 04:47:14 already slacking :( Feb 28 04:48:11 One thing that drives me crazy a little is stuff like this: String username; Username isn't really a general String: it's a very specific String. It should be "Username username;", but then we can end up giving the GC way too much work. ;| Feb 28 04:48:30 boodllebat: here you go https://github.com/slightfoot/android-note-widget/releases/tag/v0.2.1 Feb 28 04:49:22 groxx: hey.. whats your githubbys i want to give you some STARTS Feb 28 04:50:22 Napalm: i have this phone with me how do i install it here http://cdn2.gsmarena.com/vv/bigpic/no1100.gif Feb 28 04:50:43 TacticalJoke: i have to disagree. Util is synonymous with static helper methods. where as a class called Text is expected to be just that.. Text. Feb 28 04:51:05 Yeah, that's the convention, but 'Util' or 'Utils' harms readability a lot, IMO. Feb 28 04:51:06 kotlin extension methods ftw! Feb 28 04:51:50 boodllebat: throw it in the bin and get a http://i241.photobucket.com/albums/ff16/mafihotz/altele/altele2/windows-future-phone-1.jpg Feb 28 04:51:50 Even global functions would be helpful here, maybe. :) Feb 28 04:52:17 But, yeah, an String extension method for TextUtils.isNullOrEmpty would be awesome! Feb 28 04:52:26 Napalm: hahaah ! Feb 28 04:52:27 g00s: isnt that the same as using Proxy objects in Java Feb 28 04:52:42 s/an/a/ Feb 28 04:52:59 maybe ... except you dont wite the proxy :P Feb 28 04:53:10 *write Feb 28 04:53:15 ok bye i must go ! all the best fellas ! android rocks ! ios sucks ! windows sucks ! grub rocks ! linux rocks ! nokia sucks ! Feb 28 04:53:46 actually ios > android > berkely Sockets Feb 28 04:53:51 bai Feb 28 04:54:00 bye al Happy new year ! to all Feb 28 04:54:17 ah, chinese new year Feb 28 04:54:20 ;) Feb 28 04:56:29 morning everyone Feb 28 04:57:05 morning Feb 28 04:58:32 Anybody have any idea where the text color is set in this sample? https://developer.android.com/samples/SlidingTabsBasic/src/com.example.android.common/view/SlidingTabLayout.html Feb 28 04:58:36 * napster is super lazy this morning to read all the code to find out :P Feb 28 04:59:00 Actually, does it make sense to make isNullOrEmpty an extension method? Feb 28 04:59:10 I mean, it seems to work: fun String?.isNullOrEmpty() = this == null || this.isEmpty() Feb 28 04:59:13 But it's weird calling it. lol Feb 28 04:59:47 napster: its your textColorPrimary in your theme Feb 28 05:00:07 much obliged explosive Feb 28 05:00:33 TacticalJoke: you know you can import do static imports on methods right? Feb 28 05:00:51 True. I'm not a huge fan in general, though. Feb 28 05:02:08 On a side note, Kotlin's shorthand function definitions are so nice. Feb 28 05:04:11 Something like this is delectable: fun sum(a: Int, b: Int) = a + b Feb 28 05:07:39 Napalm: oh no. I ain't falling for that. I already got more starts than finishes, I don't need more mouths to feed! Feb 28 05:10:44 Napalm: besides, my github is getting kinda crusty. I must hide my shame. Feb 28 05:11:00 * Napalm nod's Feb 28 05:16:24 hardware dev in here? Feb 28 05:16:57 Im looking at android tv for game development Feb 28 05:17:16 This kinda thing is really nice: fun String.isJpegName() = this.endsWith(".jpg") || this.endsWith(".jpeg") Then it's just println("test.jpg".isJpegName()). Some people might hate that, but readability is way higher. Feb 28 05:17:16 Storyteller: what about it? Feb 28 05:17:29 might just buy a $75 box from malaysia, more thinking amazon fire tv with a gamepad Feb 28 05:17:57 Storyteller: you could always try the "Google Nexus Player" http://www.google.com/nexus/player Feb 28 05:17:59 I think Id rather just go for android tv,I think amazoon fire console is too closed Feb 28 05:18:40 TacticalJoke: Yes, extension methods are very powerful Feb 28 05:20:14 Do you think Kotlin will take off on Android, CedricBeust? Feb 28 05:20:32 TacticalJoke: Hard to tell Feb 28 05:21:05 TacticalJoke: JetBrains is certainly doing a lot of things right, although I think they should ship a 1.0 soon, the window is rapidly closing Feb 28 05:21:09 i think if xav's team doesn't have anything i want to hear at i/o 2015 i'll run with it Feb 28 05:21:12 Yeah, it's taking a while. Feb 28 05:21:33 g00s: What are you hoping to hear from Xavier? Feb 28 05:21:45 something. anything. java 8 related Feb 28 05:21:55 which ... we know won't happen :) Feb 28 05:22:13 but hey maybe they surprise us with jack & jill & some java 8 who knows Feb 28 05:22:27 nexus player has less ram than fire tv (1gb vs 2gb) Feb 28 05:22:35 still, not bad Feb 28 05:22:55 maybe they'll just say "retrolambda" Feb 28 05:23:04 I think in time, most if not all tvs will have hardware to run games and apps Feb 28 05:23:16 and the phone can be used as a remote Feb 28 05:23:27 or game pad rather Feb 28 05:24:10 Storyteller: I sure hope not D: I hate having all that tied to the TV, since I can't bring it with me when I travel or change devices Feb 28 05:24:11 you go over to someones house, you pull up your account, you (the group) load your avatars and the game you want and your phones turn into controllers and youjust play Feb 28 05:24:38 well, maybe not for every game Feb 28 05:24:46 ah. cloud. but I doubt they'll play nicely and port between OEMs Feb 28 05:24:57 but I see a large market for it, most phones have accelerometers Feb 28 05:24:58 CedricBeust maybe they could even say something like "we're working with the kotlin guys to make sure things work well" Feb 28 05:25:11 so, most phones can doubles as 'wiimotes' Feb 28 05:25:37 g00s: That would be nice to hear although so far, JetBrains has been doing very wll in that respect (not sure if they are working with Google about that, I doubt it) Feb 28 05:25:39 quality of phone, compatibility, etc will all be issues, but Im thinking.. 10 years from now Feb 28 05:25:40 I do hope they add multiple constructors to Kotlin, though. There seems to be at least one case where it's justified. Feb 28 05:26:10 TacticalJoke: are there no multiple constructors at all? Feb 28 05:26:28 Yeah, no multiple constructors, but there are default parameters. Feb 28 05:26:34 it means, when you go to grandmas house, rather your kids, they can play the games they like in the den, and at the hotel, and at bobby's house et Feb 28 05:26:38 weird Feb 28 05:27:09 your gameplay stops being tied to devices, its tied to your account Feb 28 05:27:10 default params are not the same thing at all, though they're nice Feb 28 05:27:26 I think a lot of constructor overloads could instead use default parameters. Feb 28 05:27:32 lots, yes Feb 28 05:28:06 Storyteller cool story :) Feb 28 05:28:13 anybody know what the state of wifi-direct is on Android? last i looked into this (1 year ago), opengarden guys said it was very buggy .. but i sure could use it Feb 28 05:28:43 am I wrong about my predictions? am I looking in the wrong direction? Feb 28 05:28:45 g00s: I haven't seen anything so it well, if that counts Feb 28 05:28:52 or is this where we are moving? Feb 28 05:28:52 Here is one case where I think multiple constructors are important: with (static) factory methods. Sometimes, the factory method wants to be able to use a nullary constructor and manually assign fields (instead of juggling various variables and then calling a constructor with arguments). Feb 28 05:29:07 ugh. so -> do. autocorrect is seriously failing me suddenly Feb 28 05:29:50 Another (maybe good) example is constructors that initialize from totally different sources (e.g., Strings versus a single Reader). Feb 28 05:29:54 Though some might say that's a bad pattern. Feb 28 05:30:09 But then you have the factory-method problem above. Feb 28 05:31:50 Also, with Android View subclasses it seems annoying not having multiple constructors. Feb 28 05:32:04 TacticalJoke: and if you do the factory "everything provided" option, you then expose those params externally Feb 28 05:32:46 I could be misremembering, but I *think* that's not the case in Kotlin. I think the functions in the same file can be the only "friends" who can access those fields. Feb 28 05:32:58 I confuse myself because I keep learning about new languages. :) Feb 28 05:33:17 and I remain blissfully ignorant yet opinionated :) Feb 28 05:33:18 CedricBeust why do you think their window of opportunity is closing ? Feb 28 05:33:50 (for 1.0) Feb 28 05:33:52 g00s I think there is a time and a place for a language to become successful, regardless of the qualities of said language Feb 28 05:34:14 I'm pretty sure Java would never have been as successful as it is today if it had come on year earlier or later Feb 28 05:34:14 the time is certainly ripe right now, yeah Feb 28 05:34:24 I feel we're approaching that window Feb 28 05:34:26 for Kotlin Feb 28 05:34:36 nothing to back this up than an intuition, though Feb 28 05:35:04 if it becomes very popular among android devs, that could be an inflection point for the language Feb 28 05:35:06 so, other than games, what kind of tv-centric apps are there? would you use? Feb 28 05:35:19 g00s: Yes, Android might Kotlin's ticket to success Feb 28 05:35:52 Storyteller perhaps information dashboard type things Feb 28 05:38:37 hmm, ok Feb 28 05:38:51 dont really hear much about android tv Feb 28 05:38:51 weathere, news, stocks, security cameras Feb 28 05:38:52 ? Feb 28 05:39:02 Im a home body Feb 28 05:39:13 droid tv is my niche I think Feb 28 05:39:35 studying game dev for years Feb 28 05:39:48 everything I want to make uses a gamepad... Feb 28 05:41:21 * groxx hopes steamos does reasonably well, but wouldn't announce it out loud here, oh no. definitely not. Feb 28 05:41:25 um, you guys will know this, but in terms of 'playstation' what are the current chips 'equal' too, i use quotes because I know these arent equatale things Feb 28 05:43:08 say a rockchip quad core arm9 in the amazonfire, a 1.8ghz atom in the nexus, Feb 28 05:43:23 is this, ps2.. ps3? barely better than a ps1? Feb 28 05:44:01 CedricBeust perhaps 'the stars are aligning for kotlin ... if it doesn't take off now it never will' perhaps Feb 28 05:44:44 Storyteller: dunno. though I will point out that chips (and surrounding architectures) are not often directly comparable. X does Y better, but that only matters if you do Y. Feb 28 05:45:00 Storyteller: at this point though, probably ps2. Feb 28 05:45:47 yeah, I get that, hardware across purposes isnt the same Feb 28 05:46:05 you cant really compare the old apple risc stuff to x86 pc Feb 28 05:46:31 but, they did compare motorola 68K to the 65816 (genesis vs snes) Feb 28 05:46:48 so a 'eh its about the same as such n such' is all im after Feb 28 05:48:32 I can basically get a ps3 or an android tv. I love to play games, but I havent played anything modern in 10 years Feb 28 05:48:49 Im an rpg/tactics/fighter fan Feb 28 05:49:06 I dont play shooters or first person games in general Feb 28 05:49:39 so, i guess Im basically deciding if I want to play games, or make them. hard to dev for ps3, has no future Feb 28 06:14:46 Watching a Kotlin demo. As he opens the project, IntelliJ experiences an internal IDE error. :D Feb 28 06:16:45 Storyteller: personally, for dev, I'd say go with the android. at least then you can also dev for other android devices without much of a shift. Feb 28 06:18:58 not sure developing games on android is much of a future either, unless you get lucky and know how to market Feb 28 06:19:12 i'd be more interested in stuff like oculus Feb 28 06:20:22 things are pretty saturated by now Feb 28 06:20:55 you say this, yet we're having trouble hiring anyone decent with android skills, plus the bay area seems to be _finally_ realizing that android is a thing. Feb 28 06:21:29 ah, well getting hired to do this is another thing Feb 28 06:21:45 sounded like Storyteller was just deciding on what to do for himself Feb 28 06:23:30 groxx are you in the bay area ? Feb 28 06:24:05 g00s: yup Feb 28 06:24:25 the company is having a hard time finding android talent in the bay area O.o ? Feb 28 06:24:30 my boss-man has been chatting with investors recently, sounds like general android interest has finally started to strike the investors Feb 28 06:25:06 we're shopping around further too, but in general it seems the decent people already have jobs :) supply of decent programmer + decent at android = extremely low Feb 28 06:25:24 um ,yeah, I thin there is a market for android tv games Feb 28 06:25:36 is there a market for android tvs ? Feb 28 06:25:39 the consoles out there sold out well. Feb 28 06:25:59 amazon fire tv stick sold out in like 4 days or something stupid Feb 28 06:26:15 5 or 6 companies are making android micro consoles Feb 28 06:26:26 micro consoles are kinda interesting Feb 28 06:26:35 Im not into ouya, but a lot of companies are building machines for it Feb 28 06:26:59 so to me, android tv, is just a common foundation for micro consoles, most of them runit Feb 28 06:39:18 hello Feb 28 06:45:13 yo Feb 28 06:59:12 hey can anyone answer a question for me about adding dependecies to build.gradle? Feb 28 07:00:44 I don't know. Can they? Feb 28 07:00:59 I'm sure someone can... not me, but someone else Feb 28 07:01:39 so i added a repo in my project build.gradle (maven{ url "..."} , and the dependency in the module build ( compile "com.github...." ) Feb 28 07:02:03 but im getting "Failed to resolve : com.github.... as an error Feb 28 07:02:20 new to android btw Feb 28 07:05:06 Not a Gradle expert, but as far as I know you can't depend on GitHub projects (not without a special Gradle plugin, anyway). Feb 28 07:05:40 hy Leeds whats is up. haven't seen you in a while Feb 28 07:06:10 g00s: pretty good... been on holiday down under for a couple of weeks Feb 28 07:06:25 oh yeah - you back from that ? how did it go? Feb 28 07:07:54 good trip... except for some stress with my co-travelers. Feb 28 07:08:51 I was the only one in a group of four who could drive... or (by their admission) read a map... or (apparently) plan or research anything Feb 28 07:09:56 sounds like a bunch of software engineers :D Feb 28 07:13:20 HK people... most people here don't drive, when I asked about reading a map I was told "we just get the bus, we don't need to know how to get places", and they're used to going on planned group trips with a paid tour guide, so they naturally assumed I'd do all the planning and tell them where to go when Feb 28 07:14:02 meh, it's done, and won't be going away with them again :) it was okay in the end, even if I made one of them cry on our first day... Feb 28 07:14:14 haha Feb 28 07:45:31 hm, i'd like to try here maps on my N7. works great on my numia - but the permissions are crazy. why does a maps app need to read my contacts? access to SMS ? Feb 28 07:45:41 android permissions are so busted Feb 28 07:52:06 maps app should have no real place in sms... gpd tracking the sender..not happening.. Feb 28 07:53:30 option 1) its trying to get your stuff, 2) its thinking about inter-operations with friend location and sms stuff. ;) Feb 28 07:54:08 I really doubt its doing it for your own good, I have been noticing some insane permissions too Feb 28 07:55:27 I admit it would be interesting to have map support for sms sending, so you can see someones location, if they want you too, when they text you. Feb 28 07:57:13 yea if they do want it happening, im sure more than one app does this sht.. but is sneaky Feb 28 07:59:58 ah this is interesting - those launchpad apps google took down ... Feb 28 08:00:11 i didn't realize the trademark was filed THIS JANUARY Feb 28 08:00:20 and those apps have been in the store for years Feb 28 08:00:48 what is this? link? Feb 28 08:01:05 are you talking about the Amazon apps? Feb 28 08:01:07 http://torrentfreak.com/google-removes-launchpad-apps-after-trademark-complaint-150225/ Feb 28 08:02:24 That is almost dream logic Feb 28 08:02:36 why would the world launchpad generate so many downloads Feb 28 08:02:38 is it possible to view whole logcat on stock device from within app without root? Feb 28 08:03:28 shouldnthave gotten the trademark Feb 28 08:05:32 ya, anymore one has to think that way, someday perhaps we will have to pay a license fee for each word, common words like the or it might be considered public domain I guess. Feb 28 08:07:28 * Carbonflux trademarks the word: Homunculus. Feb 28 08:10:43 07:02pm35 is it possible to view whole logcat on stock device from within app without root? Feb 28 08:10:47 i think u need root. Feb 28 08:11:11 root is part of logcat, when u are root, you check a box and off you go. much better in root to. Feb 28 08:13:06 that's what i figured, but think found me a hack to allow viewing whole logcat on device, but before you have to hook up to a computer and issue a command, then you can disconnect and view it, and it's good til a reboot, then have to issue the command again Feb 28 08:13:17 you wont find a hack for that Feb 28 08:13:21 you need a proper root i think Feb 28 08:13:23 but gl Feb 28 08:13:37 no i have the hack working :) Feb 28 08:13:38 ah til reboot Feb 28 08:13:39 ok ye Feb 28 08:13:44 it is temp rooting you Feb 28 08:13:53 you like tht Feb 28 08:13:55 ;) Feb 28 08:13:57 lol Feb 28 08:14:01 no, just elevating alittle higher but not as high as root Feb 28 08:14:07 yea i gues Feb 28 08:14:19 if your happy with it, then its good. Feb 28 08:14:28 it also allows screen recording without root, but think in android 5.0 you can do it native Feb 28 08:14:56 hrm i should take my ota and update to the darn L Feb 28 08:15:10 it pushes me every 4hours , but i dont like change. Feb 28 08:16:06 i have 5 on my galaxy nexus which is old as crap, but i like 5. Think read should get it native to my galaxy tab 4(sprint) in march or so Feb 28 08:16:38 everyone is saying 5 is great Feb 28 08:16:53 it's going in the right direction Feb 28 08:17:02 if it doesnt wipe my stuff, il maybe take the ota Feb 28 08:17:31 what device do you have? Feb 28 08:17:41 i have htc one x and htc one m7 Feb 28 08:17:51 the m7 is asking me to takeit Feb 28 08:18:15 one x was not allowed thx to nvidia Feb 28 08:18:32 they killed L on many device before it got rls Feb 28 08:18:43 that's no good, is there a community for the one x that has gotten 5 made? Feb 28 08:18:59 no i need for m7... i just dont want to reinstall.. the one x can sit there ; Feb 28 08:19:08 does v5 wipe you out? Feb 28 08:19:14 like reinstall of system? Feb 28 08:19:46 it'll most likely wipe all but user data Feb 28 08:20:16 such as sdcard, or internal storage Feb 28 08:20:20 ok thats what annoys me Feb 28 08:20:24 yea i hear ya Feb 28 08:20:31 i guess i should still take tho Feb 28 08:21:11 just backup whatever you need that isn't on sdcard before you do it Feb 28 08:21:31 yea, i have only got free backup apps, so never have had a great backup system Feb 28 08:21:47 i could buy one, if i knew wih was best hands down i guess Feb 28 08:22:51 depends on what you are wanting backed up, and what access and means you have for yourself Feb 28 08:23:10 well, just app data would help Feb 28 08:23:30 most free apps to backup do not allow it Feb 28 08:23:41 then write to them :) Feb 28 08:23:54 i will buy one if i know wich is best hands down Feb 28 08:24:03 i mean write to the App creators of the apps you are wanting to save Feb 28 08:24:05 titaanium seems good.. ut is it best? Feb 28 08:24:13 without root you are pretty limited Feb 28 08:24:18 i have root Feb 28 08:24:19 but if you have root, then you can just do it yourself Feb 28 08:24:25 wich app? Feb 28 08:24:31 can use adb Feb 28 08:24:38 thats a good way.. ok Feb 28 08:24:40 that sounds good Feb 28 08:25:11 il install titanium backup and see if it will help me Feb 28 08:25:49 just mainly gotta be careful of what you restore, cause it can break updated apps Feb 28 08:26:42 hrm so avoiding some more sensitive apps wont hurt Feb 28 08:26:52 i will get on i now Feb 28 08:26:53 it Feb 28 08:29:39 the data you are wanting to save, you should see if there are options from within the apps of the data to export/import stuff. If not and you think it's something that'd be useful, you could contact the developers also, that way shouldn't need hacky ways to save stuff that is important to you Feb 28 08:30:43 some seem to allow backups to dropbox wich is very handy Feb 28 08:31:22 yep, cloud is helpful :) Feb 28 08:31:30 the main ones, i got backed up, i hope reinstall ok.. the cloud is awesome. Feb 28 08:31:35 should always be some option, if not let em know Feb 28 08:31:51 you'll like L Feb 28 08:31:54 you think email some of devs ? Feb 28 08:32:24 i guess that wont hurt for some apps i have paid for Feb 28 08:33:36 oh yeah, they may have overlooked something in their testing. So for sure contact em, otherwise why are they putting out a product where they don't care bout their users Feb 28 08:34:39 am emailing one dev right now.. hehe. hope this works Feb 28 08:34:56 Can't make anything worse Feb 28 08:35:28 ive backed up 90% of my apps onto dropbox.. this is not so bad Feb 28 08:35:37 * whatitis crossing fingers hoping he i don't get an email from d4rkstorm :) Feb 28 08:35:45 the other few didnt have options so il email Feb 28 08:35:54 dropbox IS part of android now isnt it ? Feb 28 08:36:09 or linked to it Feb 28 08:36:33 Not sure, but seems dropbox maybe accepts certain Intents that are broadcast and responds accordingly Feb 28 08:36:42 Don't know if google owns them Feb 28 08:36:56 but they can integrate, just like anyone into the flow of the system Feb 28 08:37:05 i thought that something happened with one of these cloud services and android but i maybe wrong Feb 28 08:37:24 like google bought one? Feb 28 08:37:31 dropbox i thought Feb 28 08:37:32 yea Feb 28 08:37:43 they may have, i'm just not up to date Feb 28 08:37:59 so, what is the bare minimum to develop games for android (tv)? Feb 28 08:38:13 obviously I need a tv and an android box Feb 28 08:38:15 android stuido and sdk Feb 28 08:38:24 studio* Feb 28 08:38:40 brb.. gonna go inst things.. see this v5 Feb 28 08:38:41 bare minimum what? clothing? guess atleast something to cushion the contact of legs to chair Feb 28 08:38:43 ok, and what do I need to run those? just the requirements on the d/l page? Feb 28 08:38:46 #EclipseMasterRace :P Feb 28 08:38:55 I found java requires newer than winXP Feb 28 08:39:02 Whut? Feb 28 08:39:12 Who even uses windows xp anymore Feb 28 08:39:16 JDK needs win vista or 7 Feb 28 08:39:20 I do Feb 28 08:39:24 not really you can use win xp Feb 28 08:39:30 its platform independent Feb 28 08:39:43 it threw an error on instal Feb 28 08:39:52 what was the error Feb 28 08:40:12 you cant instal on xp Feb 28 08:40:28 haha, pretty much to the point Feb 28 08:40:32 I couldve gone back a java version though Feb 28 08:40:45 but, no point in that Feb 28 08:41:07 I rather should buy a new computer, at least a simple desktop or laptop Feb 28 08:41:09 Storyteller, get you a Virtual Machine running with a version of Linux, and install on that Feb 28 08:41:39 I dont care for running linux on a desktop, but yeah I might have to Feb 28 08:41:58 No i'm saying like VirtualBox or VMWare etc Feb 28 08:41:59 this machine isold. it serves me well a long time, almost 10 years, but I need a new one Feb 28 08:42:09 what are the specs of your XP machine? Feb 28 08:42:21 dual xeon, 2gb ram, IBM Feb 28 08:42:31 but p4 xeon Feb 28 08:42:38 and the java jdk is failing to install? Feb 28 08:43:02 probably just OOM errors Feb 28 08:43:35 if the jdk is failing, are you trying version 8,7,6? Feb 28 08:44:19 jdk 8 can be installed on windows XP, I'm pretty sure about that http://www.google.co.in/url?sa=t&rct=j&q=&esrc=s&source=web&cd=4&cad=rja&uact=8&ved=0CDEQtwIwAw&url=http%3A%2F%2Fwww.youtube.com%2Fwatch%3Fv%3DCfnv41O4voY&ei=2H_xVKeoEYKxuQSg1YGIDw&usg=AFQjCNFSFZ87ocv3bD4HUvLIoEyGZcmZeA&bvm=bv.87269000,d.c2E Feb 28 08:44:29 oops, https://www.youtube.com/watch?v=Cfnv41O4voY Feb 28 08:44:39 mmk Feb 28 08:52:44 thinking of getting a simple i3 laptpop Feb 28 08:52:58 just 'something' modern enough to run everything I use Feb 28 08:53:19 like a browser Feb 28 08:53:21 asus desktop is compareable in price, MUCH more powerful hardware Feb 28 08:53:42 I run like 50 tabs on this machine daily Feb 28 08:54:00 Im watching netflix bnow, writing a paper, shopping on amazon and talking in here Feb 28 08:54:10 its a good machine, just gettig old Feb 28 08:54:38 it will get converted to a pure 3d modeling station for cad/cam after this Feb 28 08:54:53 in my mechanical fabrication room Feb 28 08:55:14 3d printer, rotocaster, presses, plotters etc Feb 28 08:55:39 it may end up being the brain of a large format cnc mill Feb 28 08:55:56 * JesusFreke is jealous Feb 28 08:56:50 anyway, I 'want' a $1500 dual xeon hexacore with 16 gb ram Feb 28 08:57:04 ...and a small quadro Feb 28 08:57:16 but its out of my price range until august Feb 28 08:57:24 ***YOLO Feb 28 08:57:35 need a roof. Feb 28 08:57:58 front half of my house is gutted, going from 650 sq ft to 2400 sq ft Feb 28 08:59:03 I guess I could just get a tv-droid and and playgames on it for a few months Feb 28 09:32:55 you should read this https://medium.com/@retomeier/enabling-the-next-50-million-developers-94438cf84676 Feb 28 09:48:26 hi gang Feb 28 09:49:03 I would like a login screen on my android app to authenticate via a restful api, any util classes to do help me with that? Feb 28 09:49:42 or anything built into the support library? Feb 28 09:55:48 Hello Feb 28 09:55:52 hi ChunkzZ Feb 28 09:55:57 cristian_c: it is Feb 28 09:56:16 How can I use ant with external libraries Feb 28 09:56:18 ? Feb 28 09:56:38 error: package ... does not exist Feb 28 09:56:58 where can I find documentation about this? Feb 28 09:58:16 Any ideas? Feb 28 09:58:28 ummm just add it Feb 28 09:58:48 right click, add Feb 28 10:02:39 phix, with android sdk manager? Feb 28 10:09:48 no, in your IDE Feb 28 10:10:45 phix, I'm using command line Feb 28 10:11:58 so edit your build.xml or pom.xml or gradel.build Feb 28 10:15:19 phix, ok Feb 28 10:20:12 http://www.bhphotovideo.com/c/product/866741-REG/Lenovo_4480B9U_ThinkCentre_M91p_Small_Form.html Feb 28 10:20:32 is this acceptable as a reasonable machine for developing android tv games? Feb 28 10:20:46 will it continue to be so for at least 2 years? Feb 28 10:21:09 it maxes at 16gb ram. it will take a low profile quadro k600 Feb 28 10:23:30 hi hi Feb 28 10:24:47 hi Feb 28 10:26:04 Storyteller engage brain and init common sense ;) Feb 28 10:30:07 well, common sense says it will be fine Feb 28 10:30:16 my computer now is 9 years old Feb 28 10:30:40 and runs fine, it is using an os that isnt supported anymore and cannot updateto software I need Feb 28 10:31:03 the one I linked seems slightly more powerful than this and more upgradeable Feb 28 10:31:22 so, 'I' think its good, Im asking you Feb 28 10:32:45 probably better to ask about pc advice in a pc advice channel Feb 28 10:32:52 though not sure what ones exist Feb 28 10:32:59 but sure there are a few Feb 28 10:33:06 Im asking about hardware to support android development Feb 28 10:33:23 oh, any linux/mac/windows machine Feb 28 10:33:25 if I can run the jdk/android sdk/studio Feb 28 10:33:35 read the dev site...it tells you Feb 28 10:33:37 well, not my win xp machine, its too old Feb 28 10:33:54 yeah, well it will say...windows 7 I think Feb 28 10:34:11 but it's on the getting started/what you need bits of the android site Feb 28 10:34:30 ok, so that machine should work. It just needs to last until I build a new workstation Feb 28 10:35:54 i have create a list view programmatically its showing data from db but when the data is updates from DB its adding new listview and not updating the previous one how can i update the previous listviews ? Feb 28 10:36:40 data is updated"" Feb 28 10:36:47 s9iper1 by telling the adapter the driving data has changed Feb 28 10:36:56 notifyDatasetChanged() etc Feb 28 10:37:36 that will cause getView/getItem to be called on visible items and if the driving cursor is updated, then it should just work Feb 28 10:37:43 but all depends on how you are doing it Feb 28 10:39:10 StingRay_ here is the short code guide me http://paste.ubuntu.com/10466081/ Feb 28 10:39:26 erm.. what dont you get ? Feb 28 10:39:43 this is not a 1 on 1 tutorial / tutoring / mentoring thing Feb 28 10:39:53 this is a quick help / right direction type of place Feb 28 10:40:08 well, unless anyone has lots of time to spend, but I dont sorry Feb 28 10:40:35 o Feb 28 10:40:39 ok Feb 28 10:41:55 kinda sounds like you are looking for a listView+adapter+data tutorial Feb 28 10:41:59 and there are loads online Feb 28 10:55:11 phix, I'm looking for a method to compile the library from github, but I don't find info about this Feb 28 11:07:01 <_genuser_> hey d00ds Feb 28 11:11:24 Hey everyone - when I create a new project Blank Activity with Fragment in Android Studio, Android Studio doesn't auto generate a MainActivity.java for me. Any idea why or how to fix this? A little googling suggested it was a problem with non-english characters in the path but that is not the case here Feb 28 11:13:32 does it generate one and AS just not pick it up? ie. can you see it in the fs (outside AS) ? Feb 28 11:13:42 bankai, let me look Feb 28 11:14:43 bankai_: src/main... is empty Feb 28 11:17:34 any errors in the event log ? Feb 28 11:21:18 bankai_, none that I can see now Feb 28 11:21:27 should I try making a new project? Feb 28 11:23:25 no errors in the event log on project creation either, but the layout has an error: Failed to find style 'textViewStyle' in current theme Feb 28 11:25:29 so you've got the res directory, but no java files? Feb 28 11:26:48 yeah Feb 28 11:27:03 I'm reinstalling android studio as we speak, maybe that will fix it Feb 28 11:32:20 bankai_: reinstall did not help. If it helps, I'm making a blank activity with fragment Feb 28 11:39:28 you running windows? Feb 28 11:40:20 bankai_: linux Feb 28 11:46:29 anything stopping you making these files manually? Feb 28 11:47:35 bankai_: no, of course not, but I don't want to do that for every project Feb 28 11:49:23 <_genuser_> give in to windows!!! and your codez vill werk. Feb 28 11:49:29 so any ideas? Feb 28 11:51:45 _genuser_: I was on windows for a while, but the random blue screens drove me away again lol Feb 28 11:52:01 I wish I could install OSX but I don't think my hardware is supported Feb 28 11:52:14 <_genuser_> bmuk: heh, I have a m-audio recording interface and sometimes restarting just blue-screens the kernel. Feb 28 11:52:49 bmuk: AS and IJ have their own logs. there's a link under help to show you where it is, don't remember the wording Feb 28 11:53:28 bankai_: I'll look, thanks. Feb 28 11:53:37 I'm looking into cli scaffolding as well Feb 28 11:53:55 phix, any ideas? Feb 28 12:18:00 q: can I do a persistent `adb logcat` ? Feb 28 12:18:47 ah sorry Feb 28 12:19:01 It works. I thought it disconnects , but it does not Feb 28 12:20:46 <_genuser_> does anyone here go all out and register a separate gmail/twitter/etc. etc. for a new app they release? Feb 28 12:26:29 admob ads no longer show in emulator? I've tried with and without new AdRequest.Builder().addTestDevice(AdRequest.DEVICE_ID_EMULATOR) . Feb 28 12:29:08 is it because of the lack of play services? Feb 28 12:37:55 _genuser_ yes I do. Feb 28 12:38:31 oh I just remembered I have a check if app is purchased before adding ads Feb 28 12:38:38 and that doesnt work with the emulator :) Feb 28 12:39:19 you can check if play service available through code anyway. Feb 28 12:40:43 <_genuser_> napster: thanks for responding. does it get time consuming tracking all the separate accounts you have for various projects? Feb 28 12:41:08 you can just set up email aliases Feb 28 12:41:16 im using zoho email with my own domain Feb 28 12:41:22 for mail accounts, I use IMAP virtual mail box aliases Feb 28 12:41:30 really easy to use, I have android@domain and one for each app Feb 28 12:41:32 oh Moter8 already made the point Feb 28 12:41:40 <_genuser_> as in your create moter8@moter8.com and then create an alias that goes to fratboy007@gmail.com ? Feb 28 12:41:47 yep Feb 28 12:41:50 yes Feb 28 12:41:56 android@moter8.pw to moter8@gmail.com forward Feb 28 12:42:08 which gets... kinda cluttered Feb 28 12:42:12 I wouldnt recommend it Feb 28 12:42:44 <_genuser_> well, I register a domain as the-domain.com then have the-domain@the-domain.com and then foward it to _a_ gmail account. Feb 28 12:42:50 <_genuser_> so I assume we're on teh same page. Feb 28 12:42:52 basically, get all emails coming to your app to get in one inbox and managed in a specific folder. Feb 28 12:43:08 <_genuser_> yep, a filter to put the email into it's own folder and done. Feb 28 12:43:08 s/app/apps Feb 28 12:43:29 <_genuser_> but then... what about twitter, youtube, facebook, accounts for these? Feb 28 12:43:36 about twitter, different accounts Feb 28 12:43:45 he who solves this will make millions Feb 28 12:43:55 <_genuser_> Odaym: multiple twitters? Feb 28 12:44:03 all your shit, one place. Feb 28 12:44:25 for facebook, generate Facebook Pages with facebook apps (if your app is linked to facebook) on developer.facebook.com Feb 28 12:44:26 <_genuser_> Odaym: you can't. people just don't like to get in one place. Feb 28 12:44:27 that's what the future company's tagline should be too Feb 28 12:44:49 youtube, I don' know I didn't do it before. Feb 28 12:45:16 <_genuser_> napster: youtube accounts are linked to gmail account. all google services are linked to a single googel account. Feb 28 12:45:19 Odaym is right, it is pretty much complicated. Feb 28 12:45:34 <_genuser_> which means to create a separate youtube channel not associated with your fratboy007@gmail.com, you have to create a new account. Feb 28 12:46:05 <_genuser_> I have musical projects, so I have a gmail account, separate domain, sound cloud account, youtube account just for the musical project. Feb 28 12:46:19 <_genuser_> then I have one published app, so all those for that. (relevants ones). Feb 28 12:46:49 <_genuser_> etc. etc. one gmail for resumes. one for main use, but then it had bank stuff going to it, and I didn't want to link it to my phone. Feb 28 12:47:00 <_genuser_> so another one for phone use (which became the main account) Feb 28 12:47:42 <_genuser_> Joey Tribbiani has slept with less women than I have email accounts! Feb 28 12:50:13 so much friends addicts these days. irc is ruined. Feb 28 12:50:40 <_genuser_> I see you don't care for friends. I used to watch it a lot. haven't watched much lately. Feb 28 12:50:52 <_genuser_> last few years it's just new sci-fi shows Feb 28 12:51:49 cool Feb 28 12:52:21 <_genuser_> now, I'm just trying to write a few android apps and see if something sounds like it would get some downloads. Feb 28 12:52:45 <_genuser_> altho, if you're really gonna make money probably better to just write iOS apps. anything will get your .99c Feb 28 12:53:04 try developing a game that gives the player infinite life. Feb 28 12:53:10 :) Feb 28 12:53:32 <_genuser_> is this something _you_ want? :p Feb 28 12:53:58 :) Feb 28 12:54:15 <_genuser_> I'm playign naughty kitties and they kinda do let you continue after your ship is destroyed. You can use a fish (which you earn in game) or watch a free video. Feb 28 12:54:29 making money Feb 28 12:54:30 lel Feb 28 12:54:33 funny Feb 28 12:55:01 <_genuser_> the online blogs that make the most money are.... the ones talking about how to make money online. Feb 28 12:55:17 lol Feb 28 12:55:22 <_genuser_> so maybe we can pool together and write an app that shows people how to make money writing apps. Feb 28 12:55:22 it's *really* hard to make money Feb 28 12:55:39 <_genuser_> which is why I think the make money blogs do well. Feb 28 12:55:47 unless you are a stripper Feb 28 12:56:01 you have to be born hot too Feb 28 12:56:05 not any stripper makes money Feb 28 12:56:06 <_genuser_> you can't really make it work that easily but you gotta keep motivated and learning whatever else someone is doing. Feb 28 12:56:10 she has to look good Feb 28 12:56:12 <_genuser_> so you visit those blogs and subscribe, etc. Feb 28 12:56:22 true Feb 28 12:56:25 <_genuser_> Odaym: that's not true. Feb 28 12:56:39 I think he is Feb 28 12:56:49 <_genuser_> https://www.youtube.com/watch?v=cy30HHyOxKs Feb 28 12:56:49 she would not be making more money than the one that looks better Feb 28 12:56:51 is what I meant Feb 28 12:56:57 <_genuser_> apparently midget strippers are quite the rage. Feb 28 12:57:06 <_genuser_> yeah, true on the last part. Feb 28 12:57:08 she has something special Feb 28 12:57:25 she has brand identity bro Feb 28 12:57:28 * napster is going afk for 5 minues.... Feb 28 12:57:53 <_genuser_> Odaym: true, it's got a novelty aspect to it too. I've seen qutie a few other midget strippers in teh news. Feb 28 12:58:10 <_genuser_> there was one in yahoo news about this itty bitty girl marrying a 6' soldier. Feb 28 12:58:24 the issue is value Feb 28 12:58:39 what do these morons that number in the billions really want Feb 28 12:58:54 <_genuser_> are you talking about app users, or strip club visitors? Feb 28 12:58:56 what do these morons that number in the billions really want that you can provide Feb 28 12:58:58 <_genuser_> or general population Feb 28 12:58:59 human beings Feb 28 12:59:11 he who can figure out what they want gets money Feb 28 12:59:20 <_genuser_> honestly, my analysis says, entertainment will trump most things. Feb 28 12:59:28 what entertainment Feb 28 12:59:36 what kind of entertainment? what kind of game? Feb 28 12:59:40 something that solves their day to day problem - as heard from some shit conference Feb 28 12:59:42 what exactly is it Feb 28 12:59:46 <_genuser_> any entertainment that will let people waste time. Feb 28 12:59:58 <_genuser_> examples.... Feb 28 13:00:14 <_genuser_> snapchat, facebook, youtube, twitter, instagram. Feb 28 13:00:24 anyone here use libGdx ? Feb 28 13:00:25 <_genuser_> mostly attention seeking platforms. But also time wasting platforms. Feb 28 13:00:52 <_genuser_> Odaym: but I don't pretend to say that I'm right and that's it. just my analysis. Feb 28 13:00:56 camscanner, mapquest, expedia... Feb 28 13:01:11 also makes $$ Feb 28 13:01:24 <_genuser_> sure, but then look at snapchat. Feb 28 13:01:56 <_genuser_> it sold for like 10 billion. whatsapp has a 16B valuation. Feb 28 13:02:00 http://i.imgur.com/IMcoEbU.png Uhh.... Feb 28 13:02:21 <_genuser_> none of these solve anything that wasn't solved before. (except snapchat let's women think their b00b selfies will expire in 10seconds so share). Feb 28 13:02:51 there are millions of entertainment apps that don't get much traction though Feb 28 13:03:19 <_genuser_> true that. Feb 28 13:03:39 band wagon effect comes to play there Feb 28 13:03:41 Anybody know why LoginActivity is inside Signupactivity now? Feb 28 13:03:55 <_genuser_> but I just see that if you can get people addicted to it so they don't solve anything, don't contribute anything, but stay mentally satisfied, you'll have happy users. Feb 28 13:04:05 I tried to refactor "SingupActivity.this" to LoginActivity.this and AS made some mess Feb 28 13:04:06 may be because it is inside signupactivity Moter8 ? Feb 28 13:04:35 <_genuser_> making messes is AS features. it should on the front page of download. Feb 28 13:04:37 http://i.imgur.com/ZvqQFoQ.png Feb 28 13:04:59 cut both and try pasting them back again? Moter8 Feb 28 13:05:02 ill try restarting as... Feb 28 13:05:28 "How to get users addicted" is the real question. Feb 28 13:05:34 sorry, back Feb 28 13:05:44 Oh, it renamed the SignupActivity class to LoginActivity Feb 28 13:05:45 * Moter8 facepalms Feb 28 13:06:02 <_genuser_> so both are not named LoginActivity? Feb 28 13:06:17 man I love gradle Feb 28 13:06:24 wat Feb 28 13:06:24 <_genuser_> this will break the refactoring engine when renaming the original one back. Feb 28 13:06:31 it's fixed now :D Feb 28 13:06:33 when I grow up and start writing libraries, Im going to learn how to offer them in one line for users Feb 28 13:06:51 This might be a dumb question Feb 28 13:06:56 <_genuser_> napster: yeah, how to get users addicated is certainly important. Feb 28 13:06:58 but I have a list of stuff in one activity, say notes. Feb 28 13:07:10 You can tap the note to edit in a new activity Feb 28 13:07:25 When the users comes back after editing what is the best way to update that note in the list>/ Feb 28 13:07:26 ? Feb 28 13:07:30 <_genuser_> napster: so did you release an app? Feb 28 13:07:38 a couple of em Feb 28 13:07:49 <_genuser_> mind if I ask what they are so I go look them up? Feb 28 13:08:00 some personally, some for my clients Feb 28 13:08:06 <_genuser_> not to mention I"m sure another few downloads wouldn't piss you off a lot Feb 28 13:08:22 <_genuser_> oh, I see. nothing in play store for general users. Feb 28 13:08:28 honestly, none of them are usable worldwide. Feb 28 13:08:34 some are industrial specific apps Feb 28 13:08:38 some are local apps Feb 28 13:08:41 Hi, is there any known bugs on the latest Android Studio which makes the Logcat not work? Feb 28 13:08:41 <_genuser_> oh I see. Feb 28 13:09:03 the most downloads I got is ~150 Feb 28 13:09:05 :) Feb 28 13:09:09 <_genuser_> mine was fairly useful (to me anyway) but I didn't push it hard enough on the community. I just left it at 50-100 downloads. Feb 28 13:09:16 Should I query the db again?? Feb 28 13:09:31 general purpose app? Feb 28 13:09:34 <_genuser_> now it just sits there in the play store. I wonder if it's still working with the back end systems. Feb 28 13:09:48 <_genuser_> napster: yeah stats mining monitor for your virtual currency miners. Feb 28 13:09:56 AKK9 May be get back the result from the editing activity? Feb 28 13:10:13 bitcoin related? Feb 28 13:10:19 <_genuser_> as long as the pool you're mining with uses MPOS as web front, and the operator enabled the APIs, you could use this. Feb 28 13:10:34 <_genuser_> bitcoin, litecoin, and all alt-coins that have a MPOS enabled front end. Feb 28 13:10:39 don't know much about bitcoins Feb 28 13:10:50 napster, I tried this but sometimes the old activity I think it gets killed or something and then it crashes Feb 28 13:11:03 <_genuser_> you basically mine in pools and get a share worth the % work you contribute in solving the current block. Feb 28 13:11:11 If you open the note, leave the phone for hours, and then go back to the note, and Back to the main activity Feb 28 13:11:14 it crashes Feb 28 13:11:15 <_genuser_> the MPOS front end if the most heavily used for pool site/portal. Feb 28 13:11:16 AKK9 what is the launchmode of the parent activity? Feb 28 13:11:45 napster, singleTop Feb 28 13:12:12 AKK9 generally it should work, but it is safe to use an ORM Feb 28 13:12:13 <_genuser_> AKK9: do you have reference to other activities in any activity. I think when they get re-created, they might have null references. Feb 28 13:13:12 I think an ORM would do for this purpose. Update the objects realtime while editing. Feb 28 13:13:59 I have no references to other activties. Feb 28 13:14:03 yeah I was considering Realm Feb 28 13:14:09 hi everyone. i've created a small app in eclipse + ADT. app just has a simple activity with webview. recently i switched to Android Studio, because i could not re-install ADT on eclipse (ADT seems to became dysfunctional). however, i was able to build APK in Android Studio and now wanted to add a qr code scanner activity like explained here: http://code.tutsplus.com/tutorials/android-sdk-create-a-barcode-reader--mobile-17162 Feb 28 13:14:44 after adding com.google.zxing i'm getting a weird error message at make, the same as described here: http://stackoverflow.com/questions/10157213/error-importing-jar-to-android-project Feb 28 13:14:57 I think for now I'll just requery my SQL db to update that note Feb 28 13:15:05 <_genuser_> anix: if you upgrade to API level higher than 18, the eclipse/ADT bundle will not work. And it's not supported anymore, so AS is the way to go. Feb 28 13:15:07 i have no idea about this error. i don't use anything transaction related Feb 28 13:15:11 And I'll just store a lastOpenedId in my main activity Feb 28 13:15:16 and use that in the query Feb 28 13:15:27 Thank Feb 28 13:15:29 s Feb 28 13:15:45 _genuser_: thanks. yes, i've read the recommendation, so i thought i can switch to AS right away Feb 28 13:16:07 and i actually like it, although it's all new to me Feb 28 13:16:26 <_genuser_> yeah, it's different but you'll get used to ti. Feb 28 13:17:30 however, the tutorial explained adding "com.google.zxing.integration.android" in eclipse+ADT, maybe i did something wrong in AS and this is the reason for that weird "trouble processing "javax/transaction/HeuristicCommitException.class" error Feb 28 13:17:49 i do not use anything related to transactions Feb 28 13:18:11 <_genuser_> did you download the zxing lib as a jar file and add it to your project? Feb 28 13:18:47 yes, the first time i did download the zxing lib, but then i've read i should not download. i removed it and tried again. same effect Feb 28 13:18:55 <_genuser_> or did you just to the part where it says the barcode scanner by zxing will be required outside of your app. Feb 28 13:19:43 <_genuser_> anix: your exception might be somethign else. http://stackoverflow.com/questions/19774223/android-dex-issue-trouble-processing-javax-transaction-heuristiccommitexcepti Feb 28 13:20:24 in "project structures > libraries", i added two libs: com.google.zxing:android-core:3.2.0 and com.google.zxing:android-integration:3.2.0 Feb 28 13:21:36 _genuser: yes, i found this one too, and checked my src folder contains only the two java files (one for my webview activity, the second for the scan activity from the tutorial) Feb 28 13:21:55 In your opinion, what is really the best dev environment for Android? I was advised to use IntelliJ rather than Android Studio and to avoid Gradle because it is complex. Feb 28 13:22:18 but i also noticed that somehow there where more files added, a lib folder etc. outside of my actual android directory Feb 28 13:24:56 StriderZ I think AS with gradle is just fine. Although I have faced issues that took hours to figure out. Feb 28 13:25:13 <_genuser_> anix: I don't remember doing any of that com.google.zxing. blah. I just downloaded the two classes they provide and used them as they say to use them. Feb 28 13:25:32 hm Feb 28 13:25:50 thank you _genuser_ i'll just try that then Feb 28 13:26:30 I ask because it seems like gradle just lets you type in what deps you need, whereas I am having a hard time figuring out how dependencies work in IntelliJ. I spend more time trying to make stuff build than actually coding. :) Feb 28 13:27:01 <_genuser_> anix: https://github.com/zxing/zxing/wiki/Scanning-Via-Intent that's the main page. it tells you which two classes to download at the very bottom. Feb 28 13:27:54 <_genuser_> anix: I downloaded the two classes, my them in my app source folder under it's own package (just to clean it organized). and then used the code provide on link above Feb 28 13:28:24 <_genuser_> anix: two lines to launch teh scanner. then implement onActivityResult() to get the scanned result. if you do this, it should be 10min to get it going. Feb 28 13:28:46 <_genuser_> *keep it oganized. Feb 28 13:29:02 ah ok, so better follow the github link you gave me rather than the tutorial i mentioned? Feb 28 13:29:03 hello guys! I'm building an app that based on REST API calls. So i wonder if there is a way to call/execute an function every time the user return to application? Because i need to check the state of the user on the server before render any data. Something like an annotation/decorator. I can think about hardcode the call on every activity's onResume or something, but it will be Feb 28 13:29:04 hard to maintain. So there is a smartway? Feb 28 13:30:06 <_genuser_> anix: tutorials have their place. but in this case the authors themselves are saying 2 files, and 2 lines of code is all you need. and they give you the file, and the code. so go with that. Feb 28 13:31:23 <_genuser_> anix: the new package it's making you add in eclipse - that's just the (keep it organized) bit I mentioned above. then it's having you create the classes and then copy in teh code. Feb 28 13:31:38 <_genuser_> anix: save yourself the hassle. just download teh .java files and paste them in the src folder and you're done. Feb 28 13:32:49 _genuser_ : yes, looks like these two classes also have been in the download of the tutorial, but i didn't understand how to insert them into my app "src" directory Feb 28 13:33:53 <_genuser_> anix: you download the files? Feb 28 13:33:59 yes Feb 28 13:34:09 <_genuser_> they're saved in your desktop or downlaod folder or some such? Feb 28 13:35:10 <_genuser_> anix: you see them? Feb 28 13:35:28 yes, in downloads. my app in src has a package "com.companyname.appname", do i add another package parallel to my package? Feb 28 13:35:48 <_genuser_> anix: in windows explorer, drag the file onto Eclipse src folder. Feb 28 13:35:55 i'm on AS Feb 28 13:35:57 <_genuser_> it will ask you whether you want to copy it, say yes. Feb 28 13:36:14 <_genuser_> oh, I'm sure AS will let you drag and drop on the src folder too. Feb 28 13:36:20 <_genuser_> or java folder whatever it is. Feb 28 13:37:05 <_genuser_> in AS, are you in Android profile? Feb 28 13:37:50 in AS, i was in the "project" view and dropped both files into the "src" folder. it shows me now these two classes in parallel to my "com.company.app" package Feb 28 13:37:57 i.e. as siblings Feb 28 13:38:51 should i undo and try again within Android view and dropping into the java folder? Feb 28 13:38:53 <_genuser_> anix, so there you go. Feb 28 13:39:15 <_genuser_> they're in src folder. if you double click on them, you should see the code just like you do for any other file, no? Feb 28 13:39:57 exactly. looks good so foar Feb 28 13:40:14 no import errors or anything Feb 28 13:40:22 <_genuser_> your main should be com.companyname.appname package. and these new ones should be com.googe.zxing, blah blah. Feb 28 13:40:45 <_genuser_> com.google.zxing.client.android Feb 28 13:41:27 ok, so i add a new package "com.google.zxing.client.android" to "src" and move these two classes into it? Feb 28 13:43:28 <_genuser_> anix: yeah, I see AS doesn't automagically create the package name. just create the package name for that and move the files under it. Feb 28 13:43:40 done Feb 28 13:43:57 i had an import error, just adjusted it to this package name Feb 28 13:44:37 <_genuser_> when you expand the new namespace, you'll see Intents Feb 28 13:45:38 <_genuser_> now, in your mainactivity, where you want to launch teh scanner, just do the two lines of code the github page says to use. Feb 28 13:45:49 <_genuser_> IntentIntegrator integrator = new IntentIntegrator(yourActivity); Feb 28 13:45:51 _genuser_: done Feb 28 13:45:57 <_genuser_> integrator.initiateScan(); Feb 28 13:46:12 <_genuser_> you should be able to run your proj and click the button which would launch teh QR code scanner. Feb 28 13:46:24 <_genuser_> if you don't have it installed, it should go to the play store and download the app. Feb 28 13:51:57 _genuser_: i added also the onActivityResult() sample, but gives me an Incompatibility Error, saying: required: com.google.zxing.client.android.IntentResult, found: com.google.zxing.integration.android.IntentResult Feb 28 13:53:08 <_genuser_> I suppose your package is named com.google.zxing.integration.android ? Feb 28 13:53:34 <_genuser_> rename it to com.google.zxing.client.android Feb 28 13:54:24 _genuser_: it was in one of my older attempts with the other tutorial... here it is "client" Feb 28 13:54:48 <_genuser_> I see. just rename it to what it says is required. copy/paste. Feb 28 13:57:01 _genuser_: ok, the "integration" reference was in the copied java classes :) Feb 28 13:57:58 _genuser_: app compiles again. many thanks! i will now re-add my own stuff Feb 28 13:59:30 <_genuser_> anix: were you able to at least see the scanner launch? Feb 28 14:04:52 <_genuser_> brb Feb 28 14:12:40 _genuser_: i was able to launch it on my device, then installed the scanner. now i'm adding some more stuff for the UI and scan result output Feb 28 14:15:58 _genuser_: it's scanning! many thanks! that was awesome! Feb 28 14:24:23 <_genuser_> anix: sure man. good luck. Feb 28 14:26:52 _genuser_: i love this, so many nice features getting into an app with so little efforts (and java skill as in my case). thanks again, you awesome Feb 28 14:26:58 ^^ Feb 28 14:27:52 <_genuser_> no worries. we all stand on the shoulders of others and try to make our contributions. :) Feb 28 14:30:02 q: why Google Cloud Messaging is completely free ? Feb 28 14:38:53 RusAlex: maybe because it makes a good show-case for their cloud? is play services a requirement for GCM? Feb 28 14:39:39 _genuser_: full ack :) Feb 28 14:42:27 Hi, any recent bugs causing Logcat not displaying? Mine isnt displaying anything Feb 28 14:44:38 Hey guys one question what should i do if our api system is not realy consistent and sometimes it reply with status and error and then data and sometimes with just data, should i just write different TypeAdapterFactorys? Feb 28 14:49:56 Don't think many are awake Feb 28 14:50:04 some are Feb 28 14:50:18 U n me Feb 28 14:52:29 I'm looking for an Android device which has inbuilt barcode reader. Feb 28 14:52:41 not as top notch as motorola TC55 Feb 28 14:53:00 something around 300-400 dollars Feb 28 14:53:47 couldn't find one yet Feb 28 14:55:33 inbuilt barcode reader? Feb 28 14:55:44 yep Feb 28 14:57:02 many suggested this one : http://www.ruggedpcreview.com/images3/motorola_tc55_all_410.jpg Feb 28 14:57:28 That accessories prolly pricey Feb 28 14:57:49 yep tc55 is at $1300 Feb 28 14:58:18 can't use this one in my case. The client needs this to be cost effective. Something around $400 will do Feb 28 14:58:27 Lol way out of my wallet Feb 28 14:58:53 the chinese cluttered this market Feb 28 14:58:57 Even at 400.00 Feb 28 14:59:08 Yup Feb 28 14:59:30 They did at that Feb 28 14:59:32 there are thousands of devices runs android with custom hardware, rfid/barcode what not Feb 28 14:59:48 none are properly documented Feb 28 15:00:15 or even when you try to find the vendor, you get nowhere. Alibaba has a lot of listing. Feb 28 15:00:46 Yeah the Chinese are masters at miniaturizing stuff Feb 28 15:01:40 There are some others too not as popular as alibaba Feb 28 15:02:01 anyway less number of devs care about stuff like these, so I will probably need to find out one myself. Feb 28 15:03:44 I'm holding a blue phone now with no radio blue studio c mini no ime all created out anything to do with the radio Feb 28 15:04:38 Created = greyed Feb 28 15:05:23 Hey I keep getting this error: The specified child already has a parent. You must call removeView() on the child's parent first. http://pastebin.com/R1SVcH4y My code is there anyone have a clue? Feb 28 15:05:32 I am building a dialog with a gridview in it Feb 28 15:06:21 Lonesoldier728 what is at line # 24 and 25 Feb 28 15:06:49 You're trying to add a View that already has a parent to a ViewGroup Feb 28 15:07:17 I read up people saying set it to null first without that line it still errors Feb 28 15:08:03 simonVt Feb 28 15:08:06 can you explain Feb 28 15:08:30 I realize that but not sure what it refers to Feb 28 15:08:33 If a View has been added to a ViewGroup, that ViewGroup is its parent Feb 28 15:08:41 A View that has a parent can not be added to another ViewGroup Feb 28 15:08:56 That is, you can not add a View to multiple ViewGroups Feb 28 15:09:10 That's what the exception is telling you that you're trying to do Feb 28 15:09:11 Lonesoldier728 probably gridView has a parent. Why don't post the full code? Feb 28 15:09:31 Ok will do Feb 28 15:10:30 Pastebin ya got a love it Feb 28 15:11:26 Me and typing are not friends Feb 28 15:11:53 rm -rf pastebin Feb 28 15:12:49 rm rf *.* Feb 28 15:13:23 http://pastebin.com/66rNSjmF Feb 28 15:13:40 napster and simonvt that is including the xml Feb 28 15:15:58 Looks like you're putting your GridView inside a RelativeLayout Feb 28 15:16:08 that's 1 parent Feb 28 15:16:16 Then you're trying to add it to a dialog Feb 28 15:16:18 That's 1 more parent Feb 28 15:16:44 Awe ha Feb 28 15:17:03 hm ok Feb 28 15:18:48 http://www.bbc.com/news/health-31069173 Feb 28 15:19:50 results in designer babies :) Feb 28 15:20:09 Bad idea I'm thinking Feb 28 15:20:49 who cares, we are programmers, we typically don't have a life :/ Feb 28 15:21:04 Correct Feb 28 15:21:19 Off topic too Feb 28 15:22:28 In my Activity im Calling supportRequestWindowFeature(Window.FEATURE_INDETERMINATE_PROGRESS); and later setSupportProgressBarIndeterminateVisibility(true); but ii's never visible Feb 28 15:22:49 The code after *does* get executed Feb 28 15:24:46 Programmers ∆∆∆ Feb 28 15:24:46 show us the code may be? Feb 28 15:28:32 Is it possible to open a website with external browser by clicking on a Section inside a navigation drawer. Feb 28 15:28:34 * ? Feb 28 15:28:44 yes Feb 28 15:28:46 https://gist.github.com/Moter8/4a5438516cf660ec3d58 napster Feb 28 15:28:52 it really is just that Feb 28 15:29:38 Someone fix my blue studio c mini with greyed out radio stuff please I have the orig imei #s Feb 28 15:30:14 No cell stuff at all Feb 28 15:30:53 why is nexus 5 API emulator not booting? i'm stuck on "android" animation, i just downloaded android studio bundle Feb 28 15:31:02 win 7 64bits Feb 28 15:31:43 Runs android 4.1.2 I believe Feb 28 15:32:18 huh? Feb 28 15:32:44 Since upgraded the is to 4.4.4 Feb 28 15:32:48 Thanks SimonVT inflated from outside Feb 28 15:33:23 I'm asking for help ovrflw0x Feb 28 15:33:51 alien64, what are you developing on? linux or windows? Feb 28 15:33:58 pfn, do you have any example i can take a look at ? Feb 28 15:35:25 Linux system Kali installed atm Feb 28 15:36:04 action view Feb 28 15:38:31 Moter8 what is your target sdk? Feb 28 15:39:17 compile:21 buildtools:21.1.2 targetSDK:21 Feb 28 15:39:54 ok Feb 28 15:41:58 pfn, http://pastebin.com/KpeNpbx1 This is what am i using and the error i am getting. Feb 28 15:42:47 sorry, I don't do basics Feb 28 15:43:21 Moter8 I'm not able to show one with appcompat themes either. :( Feb 28 15:43:37 Ah, fixed it. Feb 28 15:43:50 Forgot to add : super.onCreate(savedInstanceState); Feb 28 15:45:11 why is this emulator not booting? it is stuck at android animation! Feb 28 15:45:25 why is this emulator not booting? it is stuck at android animation! windows 7 64bits Nexus 5 API Feb 28 15:46:01 i downloaded android studio bundle and running sample project... why is this emulator not booting? it is stuck at android animation! windows 7 64bits Nexus 5 API Feb 28 15:47:10 anyone!? Feb 28 15:47:29 Just get bluestack or something. :D Feb 28 15:47:40 right Feb 28 15:53:02 do button/touch listeners work on their own thread or something? so you dont have to manually check for these events if your program repeats in a loop Feb 28 15:54:39 No, touch events happen on the main thread Feb 28 15:56:13 so when it detects an input event somehow it will temporarily interrupt whatever loop you are in until it runs your stuff in your listener method Feb 28 15:56:35 No.. Feb 28 15:56:46 When a input event happen it is posted to the message queue Feb 28 15:57:13 Hello! I just published my first application. Is there anyway who knows if there is a way to determine why my application results incompatible with a device? For instance I see that Samsung S5 kwifi is not compatible. Can I determine why? Feb 28 15:57:38 When messages in front of it are done, it iwll deliver the touch event Feb 28 15:57:49 If you block the main thread, nothing will ever happen Feb 28 16:00:25 ok. i will make a new thread. or pause it Feb 28 16:06:25 maybe i was confused because i was using swing before which has the edt Feb 28 16:18:19 Must required AS feature. Automatically recreate build scripts when importing modules for compatible target versions and buildtoolsversion Feb 28 16:21:05 Guys, how come whenever I create things inside an xml layout in my project everything has a default color, but if I create the items programatically they are all black Feb 28 16:21:25 And how can I adjust that default color that the xml gives Feb 28 16:22:00 njcomsec: Swing works exactly the same way. Most graphical toolkits I know do: they are all single threaded Feb 28 16:22:50 "When you use the Swing API, you automatically get an additional thread for your UI called the event dispatch thread. Your callbacks are executed on this thread, not the main thread" Feb 28 16:23:08 this was on stackoverflow. maybe it is wrong. or i misunderstand Feb 28 16:23:21 njcomsec: Yes you misunderstand, look up invokeLateron Swing. Feb 28 16:23:35 The bottom line is that any operation that updates your UI (Android or Swing) must be done on the edt Feb 28 16:54:00 Hi, i'm new to developing GUI apps. I'm trying to find a good tutorial that might explain how do you go from a mock-up of an app screen to its good layout implementation. Anyone knows where i can find more on this? Feb 28 16:58:46 Hi, anyone had problems with logcat not displaying? Feb 28 16:59:36 I think one of the problem in not being an early adopter is that, you will find it hard to get started with something that has evolved a lot lot. Feb 28 17:09:44 bratner I would suggest this : https://developer.android.com/training/index.html Feb 28 17:12:18 logcat shutsdown for me too sometimes, restarting it or reconnecting my phone seems to fix it Feb 28 17:13:38 hi Feb 28 17:14:16 does anyone know what the problem is : http://paste.ubuntu.com/10471553/ Feb 28 17:14:31 it says R.drawable.ic_drawer has to be a toolbar.widget something Feb 28 17:17:33 CedricBeust, just about all UI toolkits are same in that regard Feb 28 17:17:42 ActionBarDrawerToggle(Activity activity, DrawerLayout drawerLayout, Toolbar toolbar, int openDrawerContentDescRes, int closeDrawerContentDescRes) Feb 28 17:17:55 win32, qt, gtk, cocoa, etc Feb 28 17:18:15 peyam, 3rd param is a Toolbar not an int. Feb 28 17:18:44 bratner, but i do exactly as the tutorial say Feb 28 17:18:48 what shoould I do? Feb 28 17:19:24 CedricBeust, one difference however us that there is an edt per window Feb 28 17:21:49 peyam, try using the other constructor. The one with 4 parameters Feb 28 17:22:11 peyam, just delete the 3rd param from your original call. Feb 28 17:22:11 which one? Feb 28 17:22:25 but the icon disapear? Feb 28 17:24:30 my android studio can find appcompv4 but not appcompatv7\ Feb 28 17:25:04 I think it is bugged. I have compile "com.android.support:appcompat-v7:21.0.0" in my gradle and have tried compile "com.android.support:appcompat-v7:21.0.+" and 21.0.3 Feb 28 17:25:08 Anyone have any idea what might be wrong Feb 28 17:26:26 napster, learning curve is something that was expected. I did under-estimate the hardship of thinking about UI element layout, margins, weights and multiple device compatability. Feb 28 17:27:19 import android.support.v7.widget.LinearLayoutManager; import android.support.v7.widget.RecyclerView; are what I am trying to get Feb 28 17:28:10 there is no appcompv4 Feb 28 17:28:31 does gradle get those from maven central? Or do they have to be installed locally via the "android" tool from the android sdk? Feb 28 17:28:41 locally Feb 28 17:28:48 yeah, that's what I was thinking Feb 28 17:28:56 do you have them installed? :) Feb 28 17:29:41 there's only one local repo, if you have current support-v4 should have appcompat Feb 28 17:30:15 hey, pfn, thanks for the tip last night, I was AFK Feb 28 17:30:17 unless you're using support-v4 from central Feb 28 17:31:02 so since appcompatv4 works Feb 28 17:31:09 errr Feb 28 17:31:22 import android.support.v4.app.Fragment; imports correctly Feb 28 17:31:31 immediately above it, same project Feb 28 17:31:46 run gradle, or sync your project Feb 28 17:31:47 How can I suppress the "variable can be local" lint check? I'm in the settings, I can see the lint check in "Class structure" but I don't see which string I have to put in @SuppressWarning("") Feb 28 17:32:53 I just synced with grade Feb 28 17:32:55 gradle Feb 28 17:33:00 suppress lint, not warninf Feb 28 17:33:13 import android.support.v7.widget. is found, but LinearLayoutManager and RecyclerView aren't present in there Feb 28 17:33:14 yeah, but it's the string that I need... Feb 28 17:34:03 is recycler view in its own library I forget Feb 28 17:34:55 the answer is yes Feb 28 17:35:23 weird because the project im importing Feb 28 17:35:27 lists it as something else Feb 28 17:43:23 guys, does transparent text cause ovedraw or performance issues? Feb 28 17:55:03 huh, looks like the orientation sensor in my phone is busted Feb 28 18:01:59 it only sees change in the y axis, x axis is permanently pinned to the right of the device Feb 28 18:14:57 guess I need to contact moto for a replacement Feb 28 18:17:59 BOOM! : $lint --list Feb 28 18:18:41 <_genuser_> anybody try doing android:screenOrientation="Landscape|reverseLandscape" ? Feb 28 18:19:41 <_genuser_> hmm, that sucks. Feb 28 18:32:50 Hi ! I want to popup a list (on a button click), what is the simplest way to do that ? Feb 28 18:33:31 fragmentDialog ? Feb 28 18:33:40 The list is one string per line, and I just need an on click event to hide it / memorize the coice Feb 28 18:33:43 choice Feb 28 18:33:50 ListPopupWindow ? Feb 28 18:34:49 g00s: Ah seems cool, I try ! Feb 28 18:36:26 <_genuser_> g00s: what are you doing on irc on a saturday. :p Feb 28 18:36:35 <_genuser_> go party.. Feb 28 18:36:57 :D Feb 28 18:39:01 StingRay_ how are things? app out of beta ? Feb 28 18:39:16 yeah Feb 28 18:39:29 also employed now...so not a lot of time Feb 28 18:39:37 still done no advertising of it :) Feb 28 18:40:09 <_genuser_> whoa hey ho, whatchu writin'? Feb 28 18:40:41 g00s playing with libgdx atm, but seriously thinking of going unity Feb 28 18:40:43 How come bundle has no .putString method? Feb 28 18:41:44 Nevermind :P Feb 28 18:41:49 cause a string is a char seq Feb 28 18:42:02 It has both putChar and putString Feb 28 18:47:43 g00s: Works fine, thanks ! Feb 28 18:50:36 hi Feb 28 18:55:17 g00s you updated your app ? Feb 28 18:57:07 Hi guys! Feb 28 18:57:43 hi Feb 28 18:59:03 If I am using a serializer like xmlpullparser I should be using the values between the appropriate xml tags to toss into an object constructor for a different class, right? Feb 28 18:59:38 toss into an object constructor = use as parameters for an object defined in a different class Feb 28 19:03:46 I'm sorry for asking such basic questions, my textbook was written while there was only one android phone on the market doesn't really offer any practical advice on this subject. Feb 28 19:06:34 Mittendeep: probably. or another common pattern is to create an empty object when you enter a tag, and set fields as you find sub-tags / attributes Feb 28 19:06:45 depends on the object / personal taste Feb 28 19:08:51 I have an append function and write function, I am just trying to figure out where I should store the function to populate the array that will be accessed. I will probably just read the xml file and populate the array on the applications start. The onStart() method would be a good place for that, right? Feb 28 19:16:11 Hi again ! In a RelativeLayout, can a Button set to a fixed width, for example 20dp ? Cause mine doesn't obey ! (android studio) Feb 28 19:16:19 be set Feb 28 19:19:07 sure it can Feb 28 19:19:28 in any layout it can... the layoutParameters have a width Feb 28 19:19:51 anyone any good with GL ES shaders ? Feb 28 19:21:15 Ah yes you're right, layout_width works while not width ! Feb 28 19:21:34 width is a view property Feb 28 19:21:50 I'm trying to write text onto a bitmap in a canvas. I'm having an issue scaling the text relative to the size of the image. I'm getting the image from the camera so the image size could be different depending on the device. Whats the best way I can handle this? Feb 28 19:22:23 oh how I hate the bugs in the IabHelper class by google Feb 28 19:27:42 here is my implementation: http://pastebin.com/wvxfZYtF . I get NullPointerException (@IabHelper:queryPurchases:845) {Thread-13} the most. Feb 28 19:28:15 over and over again Feb 28 19:29:03 the line it says it fails on actually seems to be: logDebug("Package name: " + mContext.getPackageName()); Feb 28 19:29:37 so what does that tell you ? Feb 28 19:30:17 since your log function is fairly sound, there is only one other object referenced Feb 28 19:40:04 Can anyone spot an obvious reason this initTreasure() method isn't working? http://pastebin.com/z1UjF9Gv Feb 28 19:40:36 StingRay_, given that the line number reported is correct, I assume its having problems finding the context Feb 28 19:41:28 but Im not sure why and what I should do to fix it Feb 28 19:41:49 get a not null reference to the current context Feb 28 19:42:25 how? its not supposed to be null the way it is now Feb 28 19:42:25 hehe Feb 28 19:45:05 well whatever created IabHelper() and passed the context Feb 28 19:45:19 it just isn't valid no more Feb 28 19:45:29 yeah Feb 28 19:45:48 and I cant figure out why that is since I cant reproduce the error Feb 28 19:45:49 You're nulling the Context in your dispose method.. You're probably calling that Feb 28 19:47:31 Google also does that in their example: https://code.google.com/p/marketbilling/source/browse/v3/src/com/example/android/trivialdrivesample/util/IabHelper.java?r=15946261ec9ae5f7c664d720f392f7787e3ee6c7 Feb 28 19:47:43 so do onItemClickListeners() not work if the item in the list has something like a checkbox? Feb 28 19:48:02 Sure, that's not an error Feb 28 19:48:06 Using the class after disposing it is Feb 28 19:48:18 (presumably, I've never used it) Feb 28 19:48:37 DadFoundMy: you should set focusable=false then Feb 28 19:51:06 https://github.com/rengwuxian/MaterialEditText/issues/80 one of the more dumb bugs Feb 28 19:51:13 2 libs breaking eachother Feb 28 19:52:36 Ashiren: what do i call that on, the listview? Feb 28 19:53:29 DadFoundMy: the checkbox Feb 28 19:53:39 and other clickable/choosable elements Feb 28 19:53:50 because they steal the click event Feb 28 19:55:01 Ashiren: thanks that worked Feb 28 19:56:22 SimonVT, thanks Feb 28 20:18:21 Uh, I guess compiling a lib isnt the easiest thing out there? Seems way too complicated Feb 28 20:25:19 anyone know of an efficient way to hide items in a RecyclerView? I'm currently using setLayoutParams to a LayoutParams(0,0) object but when I scroll over the invisible rows, I get a lot of lag Feb 28 20:25:52 with ListView I just returned an empty View from getView() but there's no obvious way to do that with RecyclerView I think.. Feb 28 20:30:51 What is the proper way to use high res png images as (very) small icons while keeping their appearance as close to original as possible (i.e. no bad borders or generally bad downscaling)? Feb 28 20:36:48 Downscale in a way that isn't generally bad Feb 28 20:39:48 Right now I have imageview with layout_width and height set to e.g. 25dp and the high res png image as source, and the scale type is fitCenter but it doesn't look very good. Is there some other property that I should look at or should I downscale them myself manually? Feb 28 20:40:46 You should generally scale bitmaps when you load them Feb 28 20:41:20 Maybe there are better ways to scale down bitmaps Feb 28 20:41:30 and if they're static objects? Feb 28 20:41:50 for reference here's what I'm working on: http://i.imgur.com/HkorgYm.png see the min/max temp indicators and the umbrella Feb 28 20:42:29 I see them Feb 28 20:45:21 https://developer.android.com/training/displaying-bitmaps/load-bitmap.html Feb 28 20:47:25 Thanks Ashiren, I saw that but was thinking that since they're basically static images there should be a better way than loading and downscaling them on every run "manually". Feb 28 20:47:52 Bundle the bitmaps in your app in the sizes you need them Feb 28 20:48:06 Scaling down decreases quality Feb 28 20:48:13 If that's not acceptable, don't scale Feb 28 20:48:42 no Feb 28 20:48:57 this method shows how to load them scaled down, but still bigger than desired size Feb 28 20:49:06 so they wont take much memory Feb 28 20:49:23 also maybe you should think about https://developer.android.com/reference/android/util/LruCache.html Feb 28 20:50:21 Is there a reason for not using images at correct scale? Feb 28 20:50:43 If, as you say, they wll be VERY small, you probably will need to retouch them by hand Feb 28 20:51:08 Not really familiar with android, figured as long as I give it high res source it'll be downscaled properly upon execution Feb 28 20:51:26 Which, apparently, isn't the case. Feb 28 20:51:29 that has nothing to do with Android really... Feb 28 20:51:36 that's just imagery. Feb 28 20:51:49 Anytime that you scale you lose precision Feb 28 20:52:39 Does android support svg as imageview sources and would that fix the issue? Feb 28 20:53:04 I didn't look into the new stuff, but it appears that yes Feb 28 20:53:25 I mean, there are svg libs, but now Android does it natively. Feb 28 20:54:11 svg is very scalable Feb 28 20:54:34 Yeah that one should scale without any issues Feb 28 20:54:43 Okay, well thank you all - I'll look into all the suggestions and see what works best. Feb 28 20:58:11 MikeWallaceDev: they're so scalable, they should have put that term in the name ;) Feb 28 20:58:36 HAHAHA point taken. :D Feb 28 20:59:05 As far as Vector Graphics go, they are Scalable... Feb 28 20:59:07 :D Feb 28 20:59:41 haha Feb 28 21:00:23 But seriously though, I said "very" because wub_wub is downscalling. So there aren't totally scalable... Feb 28 21:00:48 you can upscale forever, but downscaling can become problamatic Feb 28 21:00:57 /a/e/ Feb 28 21:01:26 inb4 /ama/ame/ ;) Feb 28 21:07:18 http://i.imgur.com/7OHMPzr.png TIL android doesnt color Feb 28 21:07:26 I dont get what im doing wrong D: Feb 28 21:07:55 I dont have a single green in my files Feb 28 21:10:10 hi Feb 28 21:10:16 good evening Feb 28 21:10:35 hello Feb 28 21:10:38 22:57 octo8: hello, little question : i made an app for a client, they added me to their google developer console as a dev and i accepted their invitation and uploaded their app from my computer, now if they made a mistake and got blocked due to a violation, will my google developer console be blocked too, this makes me really afraid ! Feb 28 21:10:43 is there a #google dev in freenode Feb 28 21:10:57 freddy57: i don't think so Feb 28 21:11:20 Moter8: what are colorAccent and colorPrimary? I'm guessing one of them is probably used for that green bar Feb 28 21:11:36 Both blues Feb 28 21:12:22 any transparency anywhere? Maybe it's getting blended with the white background? Feb 28 21:14:31 I don't think so... im testing out stuff now Feb 28 21:14:42 setting it in java works Feb 28 21:14:50 http://i.imgur.com/T297TEO.png Feb 28 21:14:54 https://github.com/neokree/MaterialTabs/blob/master/MaterialTabsModule/src/main/java/it/neokree/materialtabs/MaterialTabHost.java#L77 Feb 28 21:14:56 Use the right attribute Feb 28 21:15:10 MaterialTabHost_materialTabsPrimaryColor Feb 28 21:15:56 Oh right! Feb 28 21:16:13 Yeah, the dev merged that but didnt update the docs yet :/ Feb 28 21:16:17 thanks SimonVT Feb 28 21:16:30 app:materialTabsPrimaryColor="@color/colorPrimary" fixed it Feb 28 21:19:24 Crashlytics being more reliable than logcat... is hilarious Feb 28 21:25:47 JakeWharton, is spoon still in active use at square? the project hasn't seen much attention in a while and i'm curious about square's plans for it. i've recently started using it in a prod environment and i'd be interested in contributing some features, but want to make sure i dont do anything that's already in the pipeline or that is against the direction of the project. Feb 28 21:27:50 some examples: full screen screenshots, separate instrumentation runs per test class, "pm clear" between runs, and possibly an additional overview page that highlights failures Feb 28 21:28:54 Not for 2 years Feb 28 21:29:38 what do you use instead? Feb 28 21:30:09 spork! Feb 28 21:33:05 haha. well AFAIK there's no other open source solutions like spoon Feb 28 21:39:28 hi Feb 28 21:39:38 gles20 all java calls? Feb 28 21:39:43 not ndk? Feb 28 21:39:47 why is this Feb 28 21:40:37 JakeWharton is that not something you can comment on? re: "what do you use instead?". as a dev using spoon it kinda sucks to hear that it's no longer in use at its founding company. Feb 28 21:41:50 People moved around. No one maintained the infrastructure, Maven for Android died. Feb 28 21:42:20 (and there was much rejoicing) Feb 28 21:42:29 but certainly you're still running integration tests Feb 28 21:42:46 is that going to be my answer? Feb 28 21:43:25 linuxuz3r: entitlement much? Feb 28 21:43:40 nope im shy actually Feb 28 21:43:54 Just a while [ true ] loop in bash. The test runner on device reports failures to a Slack channel Feb 28 21:44:02 but i want to know the why gles20 are all java calls Feb 28 21:44:09 its not ndk anymore? Feb 28 21:45:00 hm interesting. no use for screenshot rollups anymore? Feb 28 21:45:17 linuxuz3r: https://developer.android.com/tools/sdk/ndk/index.html Feb 28 21:45:31 maybe it's out of date, but I don't see anything saying that opengl es 2 isn't supported in the ndk Feb 28 21:45:45 "OpenGL ES 1.1 and OpenGL ES 2.0 (3D graphics libraries) headers" Feb 28 21:46:33 in general, it'd be super swell to get access to the testrunner/tools described at GTAC 2014 for android, but i feel like that's always been around the corner Feb 28 21:47:09 i'm hesitant to roll my own given that whatever google rolls out will pretty much instantly become de-facto Feb 28 21:52:47 linuxuz3r: it even has the "hello-gl2" sample, which uses opengl es 2 Feb 28 22:00:02 yes Feb 28 22:00:27 where can i find the directory structure of android Feb 28 22:00:39 im on windows Feb 28 22:00:45 my dev environ Feb 28 22:01:02 adb shell ls / Feb 28 22:11:42 have they ever thought about making su part of official android release Feb 28 22:12:38 nvm i prefer security Feb 28 22:17:10 so, android tv gamepads.. most anything will work right? Feb 28 22:18:08 almost all will have a d-pad, 2x analog sticks, 4 main buttons, 4 triggers, 'start' select/back and a 'home' button ? or similar that can be mapped to those functions? Feb 28 22:18:38 I have a checkbox in a custom view inside of a listview. When I call onCheckedChanged(), how can I get the postition in the listview i am in? Feb 28 22:18:53 for games i general, I need to support 'home' to exit the game, and using 'back' would be a nice touch? like backing out of menus Feb 28 22:19:09 the onCheckChange() is inside the getView() in the customadapter Feb 28 22:19:59 does nfc use wifi or bluetooth? Feb 28 22:22:37 linuxuz3r: neither Feb 28 22:22:42 it's its own thing Feb 28 22:23:03 http://developer.android.com/training/game-controllers/controller-input.html#button Feb 28 22:25:12 looking at buying controllers Feb 28 22:25:52 for development, still deciding between amazon fire tv, or general off shelf generic from some random manufacturer Feb 28 22:26:24 AmznFireTV is going to be well supported and will have good support. its a closed market Feb 28 22:26:44 hard to enter, but likely to have good sales once in Feb 28 22:27:21 I wonder, if going more generic, will get me running across more devices, if poeople are more likely to buy an off brand android tv box Feb 28 22:27:39 maybe Ishould get the nexus player or a madcatz or something Feb 28 22:31:39 anyway, tv will be here soon, new mini-computer will be here soon, next is a basic android tv box and a controller. thenI can start developing :-) Feb 28 22:36:48 I have a stupid question Feb 28 22:37:29 if I extend ActionBarActivity and I am using material theme in values-21, the app runs and shows the actionbar fine on a android 5 device Feb 28 22:37:58 I mean no, it doesn't, I get that I need to use a theme that is or extends AppCompat Feb 28 22:38:30 I don't even know what the fucking question is, nevermind Feb 28 22:39:11 I just can't use Theme.Material even in my values 21 theme Feb 28 22:39:39 if I do that I have to say that the activity is ActionBarActivity Feb 28 22:39:54 and if I set it to be that, I get that the theme must be or extend AppCompat theme Feb 28 22:40:13 so in the end I end up with an ugly actionbar but one that works for both old and new SDK Feb 28 22:42:50 which does not respond to colorPrimary and other attrs, completely disregards them Feb 28 22:43:19 maybe cause I specifically said Light, Ill try just Theme.AppCompat Feb 28 22:43:29 nope, you end up with the default dark Feb 28 22:43:51 Don't android: prefix the attributes Feb 28 22:44:45 in the pre 21 they are not prefixed Feb 28 22:44:49 and still showing up dark Feb 28 22:45:34 well it worked for the 21 Feb 28 22:47:22 these values are only for 21 .. Feb 28 22:47:29 the rest follows this https://developer.android.com/training/basics/actionbar/styling.html Feb 28 22:49:21 They are never prefixed with appcompat.. It's the same Toolbar whether you run on api10 or 21. Feb 28 22:51:03 Besides, the AppCompat theme already extends Theme.Material on api21+ Feb 28 22:52:50 now it's working, I had for some reason defined a style with the name of the theme and then another style with the name of the theme.Base Feb 28 22:54:28 with supportActionbar.setUpAsHomeEnabled don't I just need to set that to true and that functionality will be available? Feb 28 22:54:56 I remember reading this once, you don't need to filter for android.R.id.home and do super.backPressed() Feb 28 22:56:07 Try it Feb 28 22:56:31 I have, commenting out the filter doesn't let you go back Feb 28 22:56:36 cause no Parent activity specified Feb 28 22:56:41 Then I guess that's not enough Feb 28 23:02:34 SimonVT, if interested, there is a patch for the nullpointers in the IabHelper submitted in an answer here: http://stackoverflow.com/questions/15456434/billing-api-v3-iabhelper-nullpointerexception . It hasnt been implemented in the code and its been almost 2 years since submission Feb 28 23:02:58 the answer points out the problem with iabhelper and using async operations, which I happen to be using Feb 28 23:16:10 <[tyrant]> link to root galaxy tab 4 and install Lollipop? Feb 28 23:16:20 <[tyrant]> android newb Feb 28 23:19:22 [tyrant]: This channel is for app dev, try #android-root Feb 28 23:19:58 <[tyrant]> Thanks Feb 28 23:20:16 <[tyrant]> Does this chan include extensions ? Feb 28 23:22:03 It includes creating an android app using the android sdk Feb 28 23:22:24 <[tyrant]> k Feb 28 23:22:45 <[tyrant]> im front end Feb 28 23:25:57 android apps are all front end... Feb 28 23:26:22 <[tyrant]> yea no idea about it Feb 28 23:31:43 so.... I turned on all lint checks... http://tinyurl.com/o85pey9 Feb 28 23:33:31 What are the biggest violations there? Feb 28 23:33:47 Couldn't tell you yet Feb 28 23:34:15 I'm going to try turning them all on, then disabling whatever I don't like. Feb 28 23:35:41 for example... Hard coded string warning, when the string is public static final. That's kinda dumb. Feb 28 23:36:33 Hmm. Feb 28 23:36:56 ah! But I can edit the lint setting. It no longer complains for constant strings. Feb 28 23:37:18 I get that it's an i18n thing... Feb 28 23:37:47 but it's much more likely to be a constant rather than an i18n error Feb 28 23:38:23 is svg for ui supported in android Feb 28 23:38:37 so, by editing the lint check, now it will find occurrences that are more likely to be errors. Feb 28 23:39:07 is today SVG day and nobody told me? Feb 28 23:39:08 :D Feb 28 23:39:24 svg is supported, and then are libs Feb 28 23:44:54 i wish these were around when i was a kid http://www.gizmag.com/gila-board-off-road-skateboard/36319/ Mar 01 00:09:04 If I'm in the middle of a project, should I update Android Studio to 1.1? Mar 01 00:09:11 Ie. am I at risk of breaking my project? Mar 01 00:09:16 From which version of Android Studio? Mar 01 00:09:26 1.1 RC 1 Mar 01 00:09:34 Oh, there's probably about zero risk. Mar 01 00:09:42 ok Mar 01 00:09:43 updating Mar 01 00:09:44 :D Mar 01 00:09:54 [blame TacticalJoke] Mar 01 00:10:12 uhm Mar 01 00:10:16 my app just turned into an ios Mar 01 00:10:17 app Mar 01 00:10:21 thx a lot tacticaljoke Mar 01 00:10:34 Sue!! Mar 01 00:10:51 Disclaimer: The IRC user holds no responsibility for any damage arising from advice given herein. Mar 01 00:10:56 Hope that's not too late. Mar 01 00:11:04 hahaha Mar 01 00:11:26 http://www.legalcheek.com/wp-content/uploads/2014/06/Lawyercat3copy.jpg Mar 01 00:11:33 Advice given may cause loss of time, stress, or even death. Mar 01 00:12:03 I don't have advice could ki................... argh Mar 01 00:12:14 I will be consulting my lawyer on how to proceed with these matters, Mr. TacticalJoke Mar 01 00:12:20 My lawyer: http://dogfort.wdfiles.com/local--files/lawyer-cat/lawyer-cat5.jpg Mar 01 00:13:07 how many tunas is he charging ? Mar 01 00:13:35 20/hour Mar 01 00:13:50 My attorney's pretty good: http://cdn.lotoflaughters.com/wp-content/uploads/2013/10/11041.jpg Mar 01 00:13:52 Sometimes he's picky and only accepts payment in the form of BitShrimp Mar 01 00:14:39 BitShrimp :D Mar 01 00:15:05 awww cute dog. Mar 01 00:15:16 Ok, I'm a sap when it comes to dogs Mar 01 00:15:30 what breed in particular Mar 01 00:15:38 the doge breed? Mar 01 00:15:51 I had a lab and a mixed collie Mar 01 00:16:19 black lab? Mar 01 00:16:30 golden Mar 01 00:16:42 ah Mar 01 00:16:47 i have a black lab back at home Mar 01 00:16:52 wish I had him at school Mar 01 00:17:42 that looks like some kind of Corgi Mar 01 00:17:46 https://scontent-ord.xx.fbcdn.net/hphotos-prn2/t31.0-8/622459_2465710519317_1622749175_o.jpg Mar 01 00:17:54 Yeah. Mar 01 00:18:22 DEVIL DOG!!! Mar 01 00:18:29 on a devil social site!!! Mar 01 00:18:34 xD Mar 01 00:18:35 I love labs :) Mar 01 00:19:02 better pic: https://fbcdn-sphotos-f-a.akamaihd.net/hphotos-ak-xpf1/t31.0-8/1522954_10205384000105768_2628479199674431463_o.jpg Mar 01 00:19:13 Marley & Me is one of the saddest films I've seen. Mar 01 00:19:18 I refuse to watch that movie Mar 01 00:19:24 http://tinyurl.com/lbkxejy Mar 01 00:19:27 The other is La Vita è Bella. Mar 01 00:19:36 two great movies Mar 01 00:19:36 d'awwww Mar 01 00:19:42 t0astt: Dem ears. Mar 01 00:20:03 the ears are so soft Mar 01 00:20:09 Is that you with your dog, MikeWallaceDev? Mar 01 00:20:13 probably the softest thing known to mankind Mar 01 00:20:15 and dogking Mar 01 00:20:17 dogkind* Mar 01 00:20:25 yeah :) Mar 01 00:20:31 Aww. lol Mar 01 00:20:41 My dog refuses to get on my bed when I'm on there Mar 01 00:20:49 Although he has no objections to getting on my parents bed Mar 01 00:20:49 here's the bookend (sorry for the nipple :-/) : http://tinyurl.com/ot57g9s Mar 01 00:20:49 What breed is that? Mar 01 00:21:21 damnit now I want to go home and hangout with my dog :'( Mar 01 00:21:22 so get this Mar 01 00:21:34 I need to save pictures taken with an app, on the sdcard Mar 01 00:21:34 get(this); Mar 01 00:21:38 great, easy, wonderful Mar 01 00:21:38 lol Mar 01 00:21:49 my dogs were extremely well trained. No coming on the bed without asking. Left side of the bed means only front paws, right side means jump up :) Mar 01 00:22:01 on Galaxy S3, getExternalStoragePublicDirectory maps to something different Mar 01 00:22:02 t0astt, mine are gone :( Mar 01 00:22:08 :'( Mar 01 00:22:12 while the pictures are being saved in a completely different place Mar 01 00:22:13 need moar doge Mar 01 00:22:14 Can you get another dog? Mar 01 00:22:15 DCIM and shit like that Mar 01 00:22:32 0daym you're in the wrong channel, this is the #dogz channel :D Mar 01 00:22:37 xD Mar 01 00:23:09 (apparently, I don't dev, I just sleep with my dogs :D ) Mar 01 00:24:14 ohhh Mar 01 00:28:08 MikeWallaceDev: Take a look at this one haha https://scontent-ord.xx.fbcdn.net/hphotos-xpf1/v/t1.0-9/10257856_10203685944935450_7236705539000125692_n.jpg?oh=eb0d424f7040d0c1b06b8ede53c7cfe8&oe=5583B3E1 Mar 01 00:28:44 AmazoDog! Mar 01 00:28:51 :) Mar 01 00:29:08 does that collar tie on like a seatbelt? Mar 01 00:29:14 yep! Mar 01 00:29:15 haha Mar 01 00:29:51 nice! Mar 01 00:29:58 very nice collar. Mar 01 00:32:51 http://www.androidapptopic.com/blog/mad-catz-l-y-n-x-is-the-most-expensive-game-controller-for-android-yet/ Mar 01 00:33:02 o.O Mar 01 00:53:08 is it just me or does ART have some *really* messed-up performance characteristics? like interning a string before checking it against three fixed strings with == being faster than using three times .equals()? Mar 01 00:53:40 well, ART and android's implementation of the java standard libs Mar 01 00:57:49 MikeWallaceDev: You literally got me looking through all my pics on facebook. Found another good pic: https://fbcdn-sphotos-d-a.akamaihd.net/hphotos-ak-ash2/t31.0-8/1074035_10201527045764320_960184891_o.jpg Mar 01 00:58:44 I had to show much restraint not to do the same... Mar 01 00:58:56 hehe cutie :) Mar 01 00:59:54 TheJH: I'm having a hard time parsing your description. Mar 01 01:03:48 Ugh another one: https://scontent-ord.xx.fbcdn.net/hphotos-prn2/t31.0-8/965198_10201301718291274_763480129_o.jpg Mar 01 01:04:09 aaand anotheer https://scontent-ord.xx.fbcdn.net/hphotos-xap1/t31.0-8/1015583_10201295345131949_1466645168_o.jpg Mar 01 01:04:20 haha oh my god, this one too https://fbcdn-sphotos-h-a.akamaihd.net/hphotos-ak-prn2/t31.0-8/1015629_10201295344491933_1388079435_o.jpg Mar 01 01:05:20 STAHP!!! Mar 01 01:05:21 :D Mar 01 01:05:31 You're killing me, I'm trying to code here!!! Mar 01 01:06:21 I was going to code about 2 hours ago. Instead I've just been looking at pictures lol Mar 01 01:06:33 http://tinyurl.com/ns5lam9 Mar 01 01:06:35 :D Mar 01 01:07:06 OMG YES Mar 01 01:07:18 I need one of those for my dog Mar 01 01:07:56 TacticalJoke: old code: 'if (str.equals("foo")) { ... } else if (str.equals("bar")) { ... } else if (str.equals("baz")) { ... }', new code: 'str = str.intern(); if (str == "foo") { ... } else if (str == "bar") { ... } else if (str == "baz") { ... }' Mar 01 01:08:10 http://tinyurl.com/ld9ox9a Mar 01 01:08:57 hahaha http://tinyurl.com/mz9gln9 Mar 01 01:09:04 Hey guys, someone know whats the problem with this oval shape http://pastebin.com/6PBR5q8i ? It's supposed to be an oval gradiente but it's rendering as a rectangle on the device. Mar 01 01:09:38 one of my favorites : http://tinyurl.com/m6r2d6a Mar 01 01:09:56 TacticalJoke: new code seems to be faster if I'm not doing something wrong with the profiler Mar 01 01:10:09 TheJH, you can switch on strings... Mar 01 01:10:15 Why are you surprised that it's faster? Mar 01 01:10:32 For a start, using == is surely gonna be significantly faster than using String.equals. Mar 01 01:10:54 Actually, maybe not. I just remembered some implementation details. Mar 01 01:11:16 not 100% sure abara, but maybe this has something to do with it : android:shape="rectangle" Mar 01 01:11:52 feel free to face palm whenever you are ready. Mar 01 01:11:59 MikeWallaceDev: my bad, i've tested with "oval" too Mar 01 01:12:00 TacticalJoke: yes, sure. but I would expect the cost of interning to be quite high Mar 01 01:12:07 abara, :D Mar 01 01:12:09 MikeWallaceDev: same result Mar 01 01:12:23 MikeWallaceDev: square, square Mar 01 01:12:40 abara code or GTFO Mar 01 01:12:51 MikeWallaceDev: doesn't switching on strings actually cause javac to emit code that uses the if-elseif pattern with .equals()? Mar 01 01:12:54 TheJH, ^^^ you can switch on strings... Mar 01 01:13:08 TheJH: yes Mar 01 01:13:37 http://pastebin.com/T299i8hH Mar 01 01:14:08 oval gradient on back (shadows) and the middle is just a solid color Mar 01 01:14:15 oval too Mar 01 01:14:39 but the last item is a bitmap... rectangle. Mar 01 01:15:01 still, I would have expected it to draw an oval over your bitmap Mar 01 01:15:33 or.. under it? Not sure what the order is off hand Mar 01 01:16:38 bottom-top visibility Mar 01 01:17:01 if change the first shape for a solid color you will see it oval Mar 01 01:17:54 try it without the bitmap just to see what it does Mar 01 01:18:13 I don't see anything particularly off Mar 01 01:19:22 TheJH: So have you tried a closer comparison (e.g., using String.intern in both cases or using String.equals in both cases)? Mar 01 01:19:23 just tried it without the bitmap, it's round... Mar 01 01:19:45 Or using == in both cases. Mar 01 01:20:16 just tried it with a bitmap... still works. Mar 01 01:21:04 but no, it's bottom to top... Mar 01 01:21:20 so your bitmap is hiding your oval Mar 01 01:21:37 TacticalJoke: what do you mean, String.intern in both cases? Mar 01 01:22:03 abara, http://tinyurl.com/oa4s389 Mar 01 01:22:31 TacticalJoke: as long as all the strings I compare with are fixed string literals (in other words, already interned), I just need a single call to .intern() for all cases together Mar 01 01:22:55 MikeWallaceDev: lol, this is not happing here Mar 01 01:23:08 LIES!!!!!!!!!!!!! Mar 01 01:23:40 Don't know what to say mate, your top to bottom didn't sound right, and it's not. Mar 01 01:23:53 TheJH: Not sure what you’re trying to do but in my experience, there is pretty much never a good reason to call intern() or even worry about it Mar 01 01:27:01 MikeWallaceDev: http://uppix.com/f-Untitled54f26acc00186ee7.png Mar 01 01:28:36 Dude. You broke Android. I hope you're happy. Mar 01 01:29:08 MikeWallaceDev: here is already broken. This API is already a mess Mar 01 01:29:27 MikeWallaceDev: not happy at all, would like to go back to python. :`/ Mar 01 01:30:27 well... go.... Mar 01 01:30:31 python <3 Mar 01 01:30:50 abara: you use jython on android? Mar 01 01:31:01 MikeWallaceDev: can't, have a job to finnish. Mar 01 01:31:36 phix: no. i need performance. which is crazy to said that on the intent to mean "i need use pure java" Mar 01 01:31:38 Not English? Mar 01 01:32:06 regardless of the order, isn't it doing what you want? Mar 01 01:32:17 abara: sounds like you need to use JNI Mar 01 01:32:43 xfce 4.12 was released , man thats been a long time in the works Mar 01 01:32:45 I don't know why it's doing that... Mar 01 01:32:52 performance is...variable. Mar 01 01:33:02 JNI can provide decent performance...if you don't do lots of JNI calls. Mar 01 01:33:07 JNI transitions can kill perf Mar 01 01:33:23 so for games, it's fine -- you're rarely calling into Java Mar 01 01:33:27 MikeWallaceDev: not really. the result i want is to make the bottom layer be a gradient and make the shape behaves like a DIV with a shadow on html Mar 01 01:33:33 but in other contexts...pure Java may be better. Mar 01 01:34:07 we can alway jump to swift Mar 01 01:34:17 hahahaa, kidding man... just kidding Mar 01 01:34:26 i don't see how that would help or change anything Mar 01 01:34:34 JNI is a costly operation on Dalvik and ART Mar 01 01:34:39 (and the JVM, for that matter) Mar 01 01:35:27 i'm curious how JNI 2 will pan out Mar 01 01:35:38 abara, http://tinyurl.com/nbnfqkw Mar 01 01:35:47 i'd be curious, if i thought there was any hope of Google supporting it... Mar 01 01:35:58 JDK7 is barely supported. JDK8? forgetaboutit, afaict. Mar 01 01:36:01 jonp: stop that conversation man. it's a loop that ends/begin on the phrase "better not use java" Mar 01 01:36:31 if only Java were a better language... ;-) Mar 01 01:36:41 MikeWallaceDev: almost there man, but without the strokes, and the radial effect Mar 01 01:36:44 jonp: better than PHP Mar 01 01:36:58 jonp: so it isn't the worst :) Mar 01 01:37:00 from #000000 to #ff000000 Mar 01 01:37:08 There’s always Kotlin Mar 01 01:37:09 MikeWallaceDev: understand now? Mar 01 01:37:25 as for JNI, better make sure that the time you spend transitioning through JNI is offset by the speed gain in native Mar 01 01:37:26 MikeWallaceDev: i'm trying to implementa material rules over the fucking button Mar 01 01:48:19 so this radial gradient is buggy Mar 01 01:48:20 https://code.google.com/p/android/issues/detail?id=77862 Mar 01 01:48:39 there is a workaround on the link .-. goddammit google. Mar 01 01:50:52 someday, someone will write "Android: The Good Parts" Mar 01 01:52:43 g00s: Hopefully it won’t look like this http://www.michaelthelin.se/wp-content/uploads/2014/02/book.jpg Mar 01 01:53:11 CedricBeust_ :D Mar 01 01:59:51 Hello all Mar 01 02:00:20 Anyone know the name of the swipeout menus like in the Play Store, or Inbox? The ones Google uses? Mar 01 02:00:29 I can't think of the name of them for some reason Mar 01 02:00:44 Navigation drawers? Mar 01 02:02:49 Probably Mar 01 02:03:13 Yup Mar 01 02:04:17 Also, if I have an activity that is called from two places, rather than have the action bar's up button go to the hierarchical parent, is there any way I can have it go back to whatever activity I came from? Mar 01 02:04:41 So if I came from the main page, make the up button go there, but if I came from another page, go back there instead? Mar 01 02:06:12 TechGeek01, that would be in the manifest, there's meta data in the activity Mar 01 02:06:34 just remove it and it should do what you want. Mar 01 02:07:21 So then get rid of its parent activity for that activity, and the up button will go back to where it came from? Mar 01 02:07:42 TechGeek01: If you want the Up arrow to function like the Back key, just call "finish();" when they click the Up arrow. Mar 01 02:09:14 MikeWallaceDev: When I remove the parent data in the manifest, it removes the up arrow Mar 01 02:09:33 TacticalJoke: How would I go about doing that? Mar 01 02:10:17 my bad man, I don't use that hierarchy stuff... :-/ Mar 01 02:11:20 Lol. Not a problem Mar 01 02:11:31 MikeWallaceDev: http://pastebin.com/GEbwNMf3 Mar 01 02:11:34 TechGeek01: setDisplayHomeAsUpEnabled(true) (or homeAsUp in actionBarStyle) and check for android.R.id.home in onOptionsItemSelected. Mar 01 02:11:39 Or something. Going off memory. Mar 01 02:11:55 It's easier with Toolbar, FWIW. Mar 01 02:12:04 MikeWallaceDev: but when i set as a background the padding on the shape is gone .-. Mar 01 02:13:09 I don't know what to say, works perfectly for me :-/ Mar 01 02:13:38 TechGeek01: Also removing parentActivityName (or the support version) from the manifest. Mar 01 02:13:44 MikeWallaceDev: it's show a pink circle with a dark shadow? Mar 01 02:13:58 MikeWallaceDev: when you set as background of a widget? Mar 01 02:14:06 TacticalJoke: Testing Mar 01 02:14:10 hehe, sorry, I meant my code works for me (with gradients, and padding) Mar 01 02:14:31 MikeWallaceDev: oh Mar 01 02:16:23 TacticalJoke: And looking for the context that we came from was getContext(), correct? Mar 01 02:16:41 TechGeek01: You can also define specifically which activity starts, but that's less simple than just saying "finish();". Mar 01 02:17:01 Or wait Mar 01 02:17:13 So when I press the up button, do I just call finish(); Mar 01 02:17:27 Or do I have to check and do things based on the activity we came from? Mar 01 02:17:41 If you want it to function the same as Back, calling "finish();" will do that. Mar 01 02:18:21 Hmm Mar 01 02:18:25 I see no up button Mar 01 02:18:50 getSupportActionBar().setDefaultDisplayHomeAsUpEnabled(true); in my onCreate Mar 01 02:19:29 s/Default// Mar 01 02:19:40 Huh? Mar 01 02:20:07 What is "setDefaultDisplayHomeAsUpEnabled"? Mar 01 02:20:28 Ah, I see Mar 01 02:20:41 Your suggesttion wasn't "Default" Mar 01 02:21:34 Hmm Mar 01 02:21:46 int id = item.getItemId(); Mar 01 02:22:00 if (id == R.id.home), correct? Mar 01 02:22:06 android.R.id.home Mar 01 02:22:58 Perfect Mar 01 02:28:40 TechGeek01: FWIW, I think an alternative solution here is to call startActivity with an Intent using FLAG_ACTIVITY_CLEAR_TOP and then call finish on ourselves. Mar 01 02:28:43 Though I haven't tried it. Mar 01 02:29:10 Your original suggestion seems to have worked Mar 01 02:31:11 Yeah, that should work fine, although to be really pedantic it might make sense to use launchMode="singleTop" for this activity. This avoids problems if the activity ever gets started more than once (when the Up button wouldn't go back to the "last activity" -- it'd go to the other instance of the current activity). Mar 01 02:31:46 And where can I define thaT? Mar 01 02:31:51 In the manifest file. Mar 01 02:32:42 It's probably not a big deal either way; just mentioning it to be thorough. :) Mar 01 02:34:34 Well, might as well cover all the bases, right? Mar 01 02:34:36 One potential issue with startActivity is that, since it's asynchronous, it's possible for multiple clicks to cause multiple startActivity calls before the activity has actually been started. launchMode="singleTop" avoids this problem completely. Mar 01 02:35:40 Is there any way to default launchMode="singleTop" for all activities, without having to manually define it for every new activity I creatE? Mar 01 02:36:16 As far as I know, there isn't. Mar 01 02:37:50 Another way around this problem is something like this: if (!waitingForActivityToStart) { waitingForActivityToStart = true; startActivity(...); } But that's no fun. :) Mar 01 02:38:26 Would there be any problems if I set launchMode="singleTop" for all activities? Mar 01 02:40:22 I had the same question once. I read all the documentation and concluded that this is safe. But standard legal disclaimers apply. Mar 01 02:41:55 FWIW, the documentation groups "standard" (the default) and "singleTop" under "Normal launches for most activities". It puts "singleTask" and "singleInstance" under "Specialized launches (not recommended for general use)". Mar 01 02:42:13 http://developer.android.com/guide/topics/manifest/activity-element.html#lmode Mar 01 02:43:15 Hmm. Alright Mar 01 02:43:21 So, opinion time Mar 01 02:43:36 I have two "main" pages. One as a home page, and the other is a list of things. Mar 01 02:43:54 I'm on a FIRST FTC team, if you're familiar, and so this app is for scouting Mar 01 02:44:06 CedricBeust a general question, wondered what your thoughts were : if you were storing large amounts of sensor data (arrives as scaled integers) - would you store it that way or convert it to floating point for storage? Mar 01 02:44:14 I have a main activity, and a match list activity, which are my main pages Mar 01 02:44:30 And then things like pages for scouting matches as side activities Mar 01 02:45:42 What would look better? Having a tabbed layout (and swiping between the tabs) for the two main pages, and having a settings page in the "more" area of the action bar, or having all 3 pages in a navigation drawer? Mar 01 02:46:23 the first one Mar 01 02:46:44 flatter is better Mar 01 02:47:32 unless the two main pages were nearly mutually exclusive Mar 01 02:49:19 So would a tabbed layout mean that I could make the two activities into one? Mar 01 02:49:34 yeah Mar 01 02:52:07 the two activities would become fragments **** ENDING LOGGING AT Sun Mar 01 02:59:59 2015