**** BEGIN LOGGING AT Sun Oct 26 02:59:59 2014 Oct 26 03:00:33 is it okay to get data from a service in onResume of an Activity? Oct 26 03:07:23 mattblang: Why wouldn't it be? Oct 26 03:07:58 Darklust now that I'm looking at it more, I should have asked how can I. I just need to grab updated data from the service in onResume or something Oct 26 03:22:05 God, programming for hours is tiring. Oct 26 03:22:22 Hello. I'm having trouble with custom actionbar layout. When I setCustomView(...) my custom layout, it also show the native/default actionbar. (screenshot: http://i.imgur.com/a44WlIC.png) Oct 26 03:24:05 TacticalJoke: Don't code while inebriated Oct 26 03:24:21 It makes sense at the time but the result is helish Oct 26 03:24:32 lol Oct 26 03:24:35 Never tried that. Oct 26 03:24:46 Hey everyone. Can anyone recommend a good book that covers the use of Android Studio? Oct 26 03:25:17 Are there any books on Android Studio? I'd be surprised. Oct 26 03:25:41 And, if there were, they'd be out of date so quickly. Oct 26 03:25:44 Android Studio is changing all the time. Oct 26 03:25:48 All the books I have assume eclipse Oct 26 03:26:26 How would you suggest learning how to use Android Studio while simultaneously learning Android development? Or rather, how would you recommend learning Android development and what book(s) would you recommend? Oct 26 03:26:31 Assuming the developer already knows Java. Oct 26 03:27:49 Android Studio is pretty straightforward IMO, I love love love Professional Android 4 Development by Wrox Oct 26 03:27:56 I guess I'd recommend this: http://developer.android.com/training/index.html Not sure, though. Oct 26 03:28:10 I've not read the book Darklust mentions. Oct 26 03:28:31 TacticalJoke: That link is the boilerplate response :p Oct 26 03:28:52 poisonarms: Android Studio is basically the Android part of IntelliJ. Oct 26 03:28:56 That's a big book. Oct 26 03:29:05 The IntelliJ documentation covers most of Android Studio, I think. Oct 26 03:29:13 But the Wrox book isn't a tutorial by any means, it supplements the android docs Oct 26 03:29:24 Hello. I'm having trouble with custom actionbar layout. When I setCustomView(...) my custom layout, it also show the native/default actionbar. (screenshot: http://i.imgur.com/a44WlIC.png) Oct 26 03:29:52 Damn, time went back one hour. Oct 26 03:30:15 God, I've been doing this stuff tonight for an hour longer than I'd realised. Oct 26 03:30:48 TacticalJoke: What are you smoking and how can I get it? Oct 26 03:31:25 Lol. The clocks went back here in England. Oct 26 03:31:39 Thanks to modern technology, I've not had to manually put a clock back in years. Oct 26 03:31:56 My opinion of you is forever changed Oct 26 03:32:06 I honestly thought you were American Oct 26 03:32:17 I'm good at typing like an American. Oct 26 03:32:30 So all the UI stuff is done in fragment_main.xml? Oct 26 03:32:35 From what I can gather. Oct 26 03:32:57 poisonarms: It really depends on whether you're using fragments. Oct 26 03:33:07 You could just use an activity called, for example, MainActivity. Oct 26 03:34:01 Oh dear Oct 26 03:34:21 poisonarms doesn't know how to Android yet and he's going to get confused Oct 26 03:34:34 Venison for dinner again. Oh deer. Oct 26 03:34:42 Harhar Oct 26 03:34:44 I see what you did there. Oct 26 03:35:07 I was expecting Android Studio to add some boiler plate, but... Oct 26 03:35:10 It seems to have not? Oct 26 03:35:23 I think Eclipse is easier, personally. Oct 26 03:35:27 There's no actual source files Oct 26 03:35:33 Though I don't know whether it adds more boilerplate. Oct 26 03:35:36 Just a bunch of .pngs and .xmls Oct 26 03:36:01 What did you select in the wizard? Oct 26 03:37:26 Well, I selected add no activity not knowing what kind of activity to add. Is Blank Activity what I want for bare bones boiler plate? Oct 26 03:37:41 My entire body aches when I spend hours trying to figure out some tedious part of the Android API. Oct 26 03:37:51 poisonarms: Yes. Oct 26 03:39:16 An activity is basically a screen in your app. It's kinda analogous to a window in a desktop OS. Oct 26 03:39:42 Ah. So a Form in Windows or a View in OSX. Oct 26 03:39:47 Roger that, thanks. Oct 26 03:40:14 D: I'm having ptsd flashbacks to VB6 Oct 26 03:40:20 Nononono Oct 26 03:40:26 lol Oct 26 03:40:28 I was, too. Oct 26 03:40:36 On Error Resume Next Oct 26 03:40:45 God, I hated those capitals. Oct 26 03:40:54 If Something Then .. End If Oct 26 03:41:14 It's like those people who Type Like This And Annoy Everyone Reading. Oct 26 03:41:29 Camel case for everything Oct 26 03:41:49 bEtTeR tHaN tYpInG lIkE tHiS Oct 26 03:41:52 lol Oct 26 03:41:56 There should be a case sensitive programming like that. Oct 26 03:41:57 I would die Oct 26 03:42:13 y34h. bu7 7h15 15 w0r53. Oct 26 03:42:18 There's probably an esoteric coding language like that Oct 26 03:42:35 Brainfuck derivitive Oct 26 03:42:45 We should all communicate in ROT 13. Oct 26 03:42:51 ROT13* Oct 26 03:43:02 I prefer ROT26 thanks Oct 26 03:43:05 :D Oct 26 03:43:08 ~* iM bI dOnT lIkE iT tOo BaD *~ ~* i LoVe My ChIcAs *~ Oct 26 03:43:13 I communicate in it often Oct 26 03:43:26 I'm bipedal. Oct 26 03:43:48 I'm bilingual Oct 26 03:43:55 ~* No DrAmA *~ Oct 26 03:44:09 "teh pengin of d0000m" Oct 26 03:44:15 >has 3 kids from 3 different dads Oct 26 03:44:17 What are we doing Oct 26 03:44:29 When I was a young teen, I would frequent Yahoo! Chat. God, the people there talked like that all the time. Oct 26 03:44:50 It seriously takes me longer to type like that than to just type like a literate person. Oct 26 03:44:53 And they had usernames like x0x0x0x_k4713_x0x0x0x. Oct 26 03:44:56 Why do they do it? Oct 26 03:45:10 I guess it's "cool". Oct 26 03:45:16 Tribalism. Oct 26 03:45:29 Yep, or constantly repeat "im wet", and at the time I had no idea why they thought that was relevant Oct 26 03:45:33 lol Oct 26 03:45:47 Ah...ah geeze...I'm wet. Oct 26 03:45:49 brb Oct 26 03:46:39 Teens these days make fools of themselves on Facebook and such. Oct 26 03:46:46 By posting their every thought and action. Oct 26 03:46:52 Gotta smoke them daps, yo Oct 26 03:46:55 When I was a kid, that stuff was undocumented. Oct 26 03:46:55 Or whatever it's called Oct 26 03:47:05 Now it might stay around for years. Oct 26 03:47:15 I feel bad for kids of today. Oct 26 03:47:18 Or is it dabs Oct 26 03:47:18 Roy Smith is taking a shit #yolo Oct 26 03:47:22 ^ lol'd Oct 26 03:47:23 They will humiliate themselves in ways they don't even realise yet. Oct 26 03:47:37 I non ironically started a Twitter to post pictures of dumps I took. Oct 26 03:47:44 ;o Oct 26 03:47:45 #yolo Oct 26 03:47:53 why Oct 26 03:48:01 Why not? Oct 26 03:48:08 Is that even allowed on Twitter? Oct 26 03:48:09 many, many reasons Oct 26 03:48:15 Agamemnus: lol Oct 26 03:48:18 lol Oct 26 03:48:24 What isn't allowed on Twitter? Oct 26 03:48:32 The Twitter character-limit thing is annoying. Oct 26 03:48:37 Twitter doesn't moderate shit. Oct 26 03:48:38 It all started with SMS limitations Oct 26 03:48:38 . Oct 26 03:48:39 Eh? Eh? Oct 26 03:48:42 See what I did there? Oct 26 03:48:49 poisonarms: Are you male or female? I'm guessing male, but just checking. Oct 26 03:49:06 I'm a post microwaved trans baked potato. Oct 26 03:49:24 Not that it makes any difference. I'm just metaphorically connecting a jigsaw puzzle. Oct 26 03:49:31 Okay. lol Oct 26 03:49:44 There are no females on IRC Oct 26 03:49:48 Jigsaw solved Oct 26 03:49:51 So, check your French fry eating privilege, buddy. Oct 26 03:50:07 hello Oct 26 03:50:30 hi Oct 26 03:51:59 I went out today, and I have come to the conclusion that leaving the house is overrated. Oct 26 03:52:27 Psh yeah, who needs sunlight and air? Oct 26 03:53:00 I'm content with breathing in farts and eating poptarts excessively Oct 26 03:53:37 That's a nice image. Oct 26 03:53:49 Is there a way to make a list of items with check boxes next to them Oct 26 03:53:52 2 checkboxes Oct 26 03:54:17 Darklust: https://www.youtube.com/watch?v=TMTkedIUX8U Oct 26 03:54:19 like Oct 26 03:54:23 Sounds like you need an Adapter Oct 26 03:54:28 __________________ Oct 26 03:54:47 Items Option 1 Option 2 Oct 26 03:54:50 It's quite easy to do with one checkbox. With two checkboxes, you might have to specify a custom view (not sure). Oct 26 03:54:57 Item 1 O O Oct 26 03:55:04 Ahh southpark Oct 26 03:55:14 TacticalJoke: can u explain a bit further Oct 26 03:55:33 TacticalJoke: or any other design trick to achieve something that will provide each item on the list 2 option states Oct 26 03:55:41 ajoul: Have you ever used ListView or Android adapters or both? Oct 26 03:55:52 TacticalJoke: listview yes Oct 26 03:55:58 TacticalJoke: i am not sure I used adapters Oct 26 03:55:59 Did you use ArrayAdapter? Oct 26 03:56:11 listView.setAdapter(fooAdapter); Oct 26 03:57:25 TacticalJoke: can u provide a good reference that can be a good starting point for this Oct 26 03:57:40 TacticalJoke: most of the links I found don't seem to try to achieve what I am Oct 26 03:58:25 Well, I think you have to create a custom view for each row. Perhaps subclassing BaseAdapter is best? Oct 26 03:58:33 You could subclass ArrayAdapter, but I think it's less "clean". Oct 26 03:59:09 ajoul: Have you googled something like "listview custom view android"? Oct 26 04:01:11 ajoul: Basically, you override Adapter.getView and return a custom view. This method is called whenever the ListView needs to display a row. Oct 26 04:01:49 And, if you're good, you do this in the most efficient way possible. Oct 26 04:02:27 On a side note, I actually kinda hate ArrayAdapter. It's so arbitrary. Oct 26 04:02:34 Why not remove method? Or setItem? Oct 26 04:03:20 It feels half-done. Oct 26 04:04:33 because its a piece of crap convenience class Oct 26 04:04:40 is it bad to just keep a static List in my service that I can access onResume from my Activity (Darklust, this is what I should have asked earlier) Oct 26 04:04:58 array adapter should have only ever been an example and not included in framework Oct 26 04:05:02 Yeah. Oct 26 04:05:07 mattblang: Yes don't do that Oct 26 04:05:21 Darklus, TacticalJoke this is on a Wear app. so it is very simple. Oct 26 04:05:24 Darklust Oct 26 04:05:43 Darklust I know it is bad in a full scale Mobile app, but would I run into any actual problems doing this Oct 26 04:06:09 If the service was killed, yeah Oct 26 04:06:29 if the app is killed Oct 26 04:06:36 services get stopped Oct 26 04:06:37 That too Oct 26 04:06:47 static stick around even if stopped Oct 26 04:07:02 Darklust, TacticalJoke, pfn so what would an alternative be I wonder. I don't want to do broadcasts, because the App isn't showing when the WearableService gets the data Oct 26 04:08:11 I haven't touched the wearable stuff so, couldn't give you a definite answer on that Oct 26 04:08:56 Darklust yeah, that does't matter though. Say you have a Service, and an Activity. That Service gets data when the Activity isn't "resumed" (thus not registered for a Broadcast). how should you get your service's data when the Activity does "resume" Oct 26 04:12:20 by polling the service... Oct 26 04:12:21 mattblang: I'm pretty drunk at the moment but I think you should take a look a IBinder in the doca Oct 26 04:12:37 Darklust haha! thanks man Oct 26 04:12:41 do not use binders unless you're doing ipc Oct 26 04:12:49 pfn how can I poll the service is I think what I am not sure about Oct 26 04:12:55 binders are overkill Oct 26 04:13:04 pfn I wouldn't need to do it constantly, just when the app is resumed Oct 26 04:13:09 use broadcasts... use an eventbus Oct 26 04:13:21 use any method you want Oct 26 04:13:52 a service is a singleton, treat it like one and make its instance accessible to your activity Oct 26 04:14:05 these are all really basic programming patterns Oct 26 04:14:52 That's good, it's a singleton so getInstance that, make sure it's not dead and get data Oct 26 04:15:36 mattblang: They're basic but I get it beause android is a crazy beast Oct 26 04:16:23 You're asking good questions Oct 26 04:16:59 pfn, Darklust was thinking that broadcasts, and eventbus (which I do use otto at my job) wouldn't work since Activity would be in background Oct 26 04:19:06 so why can't the activity send a broadcast or event when it resumes Oct 26 04:19:16 its just loose coupling Oct 26 04:19:35 so for menu xml files, which attributes am I supposed to use 'not android' prefix ? Oct 26 04:19:42 when using appcompat ? Oct 26 04:20:21 is showAsAction the only one ? Oct 26 04:21:19 actually, as suggests app:showAsAction - is app arbitrary though ? as long as its res-auto right ? Oct 26 04:23:44 TacticalJoke: http://img0.joyreactor.com/pics/post/funny-pictures-auto-522831.jpeg Oct 26 04:24:10 pfn ahh, yeah. so can otto register with a service? im essentially creating a request response, which should work Oct 26 04:25:15 g00s: yes (re: arbitrary) Oct 26 04:25:19 g00s: no (re: only one) Oct 26 04:26:09 JakeWharton ok thanks Oct 26 04:32:54 poisonarms: Not sure if understand. Oct 26 04:33:05 The potato thing I said earlier. Nevermind. Oct 26 04:34:12 I actually just finished eating potatoes, so this has some relevance to my day. Oct 26 04:34:54 Itmwas entertaining I've heard the meme before Oct 26 04:39:39 IRC is like multiplayer notepad Oct 26 04:39:46 We need voice chat Oct 26 04:40:02 Ugh. I used to go on Paltalk. Do not want (voice chat). Oct 26 04:40:13 It means the most arrogant ones hog the microphone and take over the room. Oct 26 04:40:58 Yeah and none are amdroid dev oriented Oct 26 04:41:45 I wanna hear people talking about it, like i look on youtube for hour long monologues about it Oct 26 04:42:26 I went through every podcast already, it just entertains me to hear about it Oct 26 04:44:22 God, Dr. Phil is terrible. Oct 26 04:44:39 Someone linked to a video on /r/cringe. Oct 26 04:48:40 is there a way to produce a low memory state on my testing phone? Oct 26 04:48:57 i suspect weird thing happen when the GC is called Oct 26 04:49:53 cliffreich_ http://developer.android.com/reference/java/lang/System.html#gc() Oct 26 04:50:00 its a hint though Oct 26 04:50:04 ty Oct 26 04:51:57 just allocate bitmaps Oct 26 04:54:29 JakeWharton is it acceptable for me to register a Service and Activity with otto, and in the Activity onResume post an event for updated info, which is caught in the service, which posts an event with the updated info? Oct 26 04:54:49 sounds like you want @Produce instaed Oct 26 04:55:37 it creates an event for the current state whenever someone subscribes Oct 26 04:57:25 JakeWharton oh! so if I do a Produce in my Service, when the Activity resumes and registers it will get the event automatically? Oct 26 04:57:33 yes Oct 26 04:57:40 for each register the producer is called Oct 26 04:57:48 JakeWharton perfect. thanks so much! Oct 26 04:58:03 pfn, Darklust yeah, so I was being silly earlier. otto will work perfectly for my problem Oct 26 04:59:09 Great! Oct 26 05:28:46 "Mesa firefighters rescue horse from swimming pool" Oct 26 05:28:52 yeah, thats AZ Oct 26 05:42:38 hi everyone Oct 26 05:42:46 California firefighters rescue woman from chimney Oct 26 05:52:26 old news Oct 26 06:05:45 g00s, XML namespaces... Oct 26 06:06:00 of course the prefix is completely irrelevant Oct 26 06:08:03 pfn i couldn't get my PreferenceFragment looking decent with Theme.AppCompat.Light even, maybe i Should stil to Holo for that one. Dunno, why all the text is muted grey Oct 26 06:08:53 s/stil/stick Oct 26 06:09:57 probably a bug in the styling Oct 26 06:10:21 I would stick to dark for prefs Oct 26 06:10:52 How long does it take to learn android development if you are a seasoned web developer? Oct 26 06:11:28 oh yeah, I used dark too, sorry - thats what i meant. its just all ... grey Oct 26 06:11:29 forever Oct 26 06:11:47 dark looks fine for me Oct 26 06:12:03 pfn can you post a screenshot ? Oct 26 06:12:33 damnit Oct 26 06:12:58 especially if you are odd Oct 26 06:13:59 http://imgur.com/ls7BwOl Oct 26 06:14:51 ah, ok thats what mine looked like. maybe i just expected the title to be brighter than the summary Oct 26 06:15:16 you worry too much Oct 26 06:15:25 :) Oct 26 06:15:44 i didn't find it very visually appealing ;) Oct 26 06:16:49 looks good to me Oct 26 06:17:24 pfn are the checkboxes aqua because we haven't supplied the theme with a tinting color ? Oct 26 06:17:37 sure Oct 26 06:17:58 once again, default looks fine, so I don't care Oct 26 06:21:14 maybe this is one of my font color issues; "textColorSecondaryInverse" -> "Secondary inverse text color, useful for inverted backgrounds." Oct 26 06:21:20 what is inverted, light or dark ? Oct 26 06:25:23 ok, inverse is for light themes Oct 26 06:31:07 this is annoying; textColorSecondaryInverse is white; it should be 40% grey Oct 26 06:31:15 AppCompat theme fucks it up Oct 26 06:32:34 so i wind up with white text on white bg Oct 26 06:44:36 is there an alternative to widgets based on RemoteView. I feel this is a really pain Oct 26 06:44:42 i want to layout them freely in code Oct 26 06:44:43 how can i make fake call to a device, where i am testing an app. Oct 26 06:49:50 ktwo, no Oct 26 06:50:11 t2mkn, to a device? probably no way. that's why you use the emulator Oct 26 06:51:11 ravilov: if possible in emulator why not with a connected device! Oct 26 07:07:15 is there any pro in jdb ? Oct 26 07:08:00 I attached to device Oct 26 07:08:17 but seems like Im having troubles to run and break app Oct 26 07:08:35 I set thread to main Oct 26 07:08:48 then do `stop in org.my.class.onCreate` Oct 26 07:09:12 hello guys Oct 26 07:09:15 break sets correctly. Oct 26 07:09:18 is there a way to check my entire device filesystem in AFT or a similar software ? Oct 26 07:09:21 then I do `run` Oct 26 07:09:24 and nothing happens Oct 26 07:10:03 what Im doing wrong ? Oct 26 07:14:48 not many people seem onlin Oct 26 07:27:01 a while ago there was DevBytes: ListView Expanding Cells Animation. Does RecyclerView make this technique obsolete ? Oct 26 07:27:08 http://www.youtube.com/watch?v=mwE61B56pVQ Oct 26 07:32:26 apparently andoid apk system supports piracy Oct 26 07:32:38 s/andoid/android/ Oct 26 07:51:02 i guess without rooting not possible to see root folders contents Oct 26 08:31:48 I have a Text View, but now I want to display multiple lines - as a String is now String[] - what is the best thing to use - I want one line per entry in the String[] variable? Oct 26 08:33:31 Nivag: you can join the String[] with a \n delimiter Oct 26 08:34:50 thepoosh: that sounds lioke cheating! However, it looks like a good solution for me in this case! Oct 26 08:35:00 Nivag: http://developer.android.com/reference/android/text/TextUtils.html#join(java.lang.CharSequence, java.lang.Object[]) Oct 26 08:41:49 How do I add a button to the top right part of a toolbar? Oct 26 09:17:57 Anyone could help me? It's 15 days I'm stuck. http://goo.gl/TcW95D Oct 26 09:19:23 hey , i used ACtionBar actionBar = getActionBar();getActionBar().setDisplayOptions(ActionBar.DISPLAY_SHOW_CUSTOM); with (import android.app.ActionBar;) but now i am using android.support.v7.app.ActionBarActivity; what should be the above 2 statements equivalent in support library Oct 26 09:22:35 guys Oct 26 09:22:47 how do i remove app from google play after i publish it Oct 26 09:22:50 i want to totaly remove it Oct 26 09:24:26 is anyone here interested in google cardboard? Oct 26 09:38:48 I set the drawer action toggle but this doesn't work the same http://goo.gl/TcW95D Oct 26 09:44:30 I press f11 to run app in emulator but how cani select which emulator to run on pressing f11 Oct 26 09:57:47 is there a way to load a bitmap directly ontop of another bitmapo Oct 26 10:08:34 http://www.engadget.com/2014/08/06/android-smartphones-are-about-to-get-multi-user-support/ Oct 26 10:08:45 why would anyone want multi user feature in phones? Oct 26 10:11:04 for my second life Oct 26 10:11:57 doesn't make sense tbh Oct 26 10:12:14 no idea Oct 26 10:12:17 zero sense Oct 26 10:12:31 how much video memory does an app have available to it? Oct 26 10:17:24 7 Oct 26 10:25:01 hehe Oct 26 10:25:10 399! Oct 26 10:25:30 "compile project(':wearable')" is not working for me. Message: Project with path ':wearable' could not be found in project ':app' I've been on this for the last 2 days. Someone please help me :( Oct 26 10:38:04 dudes Oct 26 10:38:15 i got a logical question about fragments Oct 26 10:38:56 so this book i'm reading says you shouldn't use the intent with which the parent activity was started with from the fragment Oct 26 10:39:09 cuz you're coupling the fragment to an activity Oct 26 10:39:59 then the next paragraph it says you should make a static factory method to build the fragment and use that Oct 26 10:40:09 but then you couple the activity to the fragment Oct 26 10:40:26 so whats the point Oct 26 10:40:35 you still get coupling either wa Oct 26 10:40:38 +y Oct 26 10:52:31 speaking about fragment and menu i cannot open the drawer tapping on action bar. qhy? http://goo.gl/TcW95D Oct 26 11:59:49 q: is jdb popular for debug android apps ? Oct 26 12:01:36 RusAlex, I've no idea. Personally I just use Eclipse's debugger Oct 26 12:04:59 jooles_: lots of people use eclipse debugger, but it is not command line toool Oct 26 12:05:33 This is true Oct 26 12:29:01 is it possible to create custom ui elements? Oct 26 12:29:07 if so, how do we define how they work? Oct 26 12:29:53 http://developer.android.com/training/custom-views/index.html Oct 26 12:30:56 ah, thanks Leeds <3 Oct 26 12:32:48 enjoy :) Oct 26 12:35:31 i thought only geniouses worked at google, why in the hell you cant justify text Oct 26 12:41:39 hii guys, anyone one of u think can solve this issue? Oct 26 12:41:40 http://stackoverflow.com/questions/26568551/how-to-get-all-the-differences-of-node-and-value-given-2-identical-xml-format Oct 26 12:52:59 hulio: how is this an android question?! Oct 26 12:53:28 thepoosh, it is not, but it can be related to android too Oct 26 12:53:37 that is a general one Oct 26 12:53:37 hmmmm Oct 26 12:54:13 hulio a bunch of ways Oct 26 12:54:18 have fun: http://www.ibm.com/developerworks/library/x-android/ Oct 26 12:54:25 most dull way is to create models for the xml Oct 26 12:54:29 load both and compare em Oct 26 12:54:39 other way would be using LINQ and again comparing Oct 26 12:54:39 i got the model..but how to compare Oct 26 12:54:45 that is the hard part man Oct 26 12:56:07 Ravenheart, ,i can deserial and put back into the object Oct 26 12:56:25 compare the objects then Oct 26 12:56:31 dont know how Oct 26 12:56:39 compare line by line? Oct 26 12:56:49 i meant field by field? Oct 26 12:56:53 no Oct 26 12:57:12 yes Oct 26 12:57:16 load both objects Oct 26 12:57:18 and compare Oct 26 12:57:18 if it is, i would have 100+ fields Oct 26 12:57:32 i dont know how man Oct 26 12:57:36 sudo code? Oct 26 13:02:19 Ravenheart, ? Oct 26 13:02:53 override GetHashCode Oct 26 13:03:09 thats the easiest way Oct 26 13:03:20 then just compare objects to objects Oct 26 13:04:31 is it one of the solution in here : http://forums.asp.net/t/1913906.aspx?How+to+check+for+all+fields+and+attributes+in+a+object+using+linq+ Oct 26 13:04:35 Ravenheart, http://forums.asp.net/t/1913906.aspx?How+to+check+for+all+fields+and+attributes+in+a+object+using+linq+ Oct 26 13:05:47 looks right Oct 26 13:06:26 well if that is the case, i might as well pass 2 objects and compare field by field and add to a new list of different then. same shlt Oct 26 13:06:28 look Oct 26 13:06:28 //Check whether the peoples FirstName properties are equal. (You can add more here) Oct 26 13:06:28 return x.FirstName == y.FirstName; Oct 26 13:07:23 if i have to do that , i rather do if obj1.firstname <> obj2.firstname then i rather add to ListDiff() Oct 26 13:07:29 Ravenheart, you got the point? Oct 26 13:08:18 cause the code on the link still have to put more fields to compare....what is the point. might rather compare them directly line by line Oct 26 13:08:28 at some point you will have to compare the fields Oct 26 13:08:34 be it in a massive list of ifs Oct 26 13:08:38 or some other way Oct 26 13:08:45 the way i've done this in the past Oct 26 13:08:54 is override the GetHashCode() method Oct 26 13:09:09 and the Equals (plus operator) Oct 26 13:09:33 but you WILL have to write down all the fields you wanna check Oct 26 13:09:45 its easier to do this in GetHashCode() Oct 26 13:10:02 bcuz you'll just do field1.GetHashCode() + field2.GetHashCode() and so on Oct 26 13:10:29 but from there all you gotta do is object1 == object2 Oct 26 13:10:46 which is heaps better than ten thousand ifs Oct 26 13:11:28 but i just want the return the difference like the one i ask in stackoverflow Oct 26 13:12:06 what you said is just the compare if it is different in 2 objects. Oct 26 13:12:28 if you want a string comparer then all of this is wasted time Oct 26 13:12:34 read both files line by line and compare Oct 26 13:12:53 no, i deserialize to object man Oct 26 13:13:39 obj1 = xmldeserialize(xml string),obj2 = xmldeserialize(xml string) Oct 26 13:13:43 then wtf Oct 26 13:13:47 stop trolling Oct 26 13:13:55 ok Oct 26 13:36:20 Has anyone worked with Swedbank API here by any chance? Oct 26 13:47:57 guys, as pulseaudio as got a sink on alsa where alsa apps can play through pulse; there is a sink on alsa for audioflinger? Oct 26 13:49:03 *is there Oct 26 13:49:24 I need that a native c app could play sounds Oct 26 13:53:24 whats the native class that ViewPager is providing support of Oct 26 13:53:38 i'm reading a book and they are using hte support lib for pre ICS androids Oct 26 13:53:59 i'm not supporting pre-ICS so i put my min sdk to ics Oct 26 13:54:03 but am not using the support lib Oct 26 13:54:09 ViewPager is only available in support-v4 Oct 26 13:54:22 so how do you do paged views on newer versions? Oct 26 13:54:31 Add support-v4 as a dependency Oct 26 13:55:43 ok i see v4 and v13 Oct 26 13:55:47 isn't 13 better Oct 26 13:55:56 v13 depends on v4 Oct 26 13:56:29 But sure, it has pageradapters for native fragments if you need that Oct 26 13:57:29 No reason not to use support fragments if you already have support-v4 as a dependency tho Oct 26 13:58:19 why use support fragment if you can use platform fragments (if being minSDK = 14) ? Oct 26 14:00:30 You get access to new fragment methods on older platform versions Oct 26 14:01:03 And bugfixes Oct 26 14:01:07 some fragments methods only available on API > 14, you mean ? Oct 26 14:01:08 bugfixes ? Oct 26 14:01:20 yes Oct 26 14:01:20 support fragments fix platform frgament bugs ? Oct 26 14:01:29 Support fragments doesn't use platform fragments Oct 26 14:01:29 I would have though the reverse Oct 26 14:02:22 any example of bug that they fix ? Oct 26 14:02:29 Nope Oct 26 14:03:05 nested fragments onCreate calling Oct 26 14:03:05 using platform fragments here and from what I do with them, they work fine Oct 26 14:03:05 apparently thats fixed Oct 26 14:03:05 But lets say google broke some fragment api on api v17, that wouldn't affect support fragments Oct 26 14:03:18 You might have other bugs, but at least it'd be consistent Oct 26 14:04:33 yes you'd have support fragment bugs insteads Oct 26 14:04:33 a bit messy all of this Oct 26 14:04:33 If you already have support-v4 as a dependency, you gain nothing by using native fragments Oct 26 14:04:33 But you do lose out on stuff Oct 26 14:04:33 http://forums.bignerdranch.com/viewtopic.php?f=408&t=6252&start=10 Oct 26 14:04:50 I didn't need any of the API 14+ specific fragment API Oct 26 14:07:31 You still gain nothing Oct 26 14:07:31 In the long run you might lose out on something Oct 26 14:07:31 yes I understand that better now Oct 26 14:07:31 I was pzersuaded support fragments were backed by real fragments on API13+ Oct 26 14:10:27 so that is was an unneeded layer Oct 26 14:10:34 you have to wonder why fragments were put in the platform in the first place and not exposed as a library... Oct 26 14:10:39 Yeah, they should put less things in the framework Oct 26 14:10:40 that's what they do now Oct 26 14:10:40 learning from past mistakes Oct 26 14:10:40 Eh, kinda Oct 26 14:10:47 Not convinced Toolbar should have been added to the framework Oct 26 14:11:07 Okay Oct 26 14:11:09 yes, could have gone in support only Oct 26 14:11:18 How do you add an icon to that toolbar? Oct 26 14:11:26 A button more like. Oct 26 14:11:30 can the att moto g 4g be rooted? Oct 26 14:11:40 raspberrypifan: #android-root Oct 26 14:11:41 but at least Toolbar is a lot siplier than the super complicated ActionBar that try to do everything and the kichen sink Oct 26 14:12:12 action bar's addition made life a lot of easier for a lot of ppl bubbleguuum Oct 26 14:12:31 And also is there any point in using a viewpager if I don't want the fragments to slide and also disallow the user from swiping? Probably should just use a regular view that I change via the fragment manager. Oct 26 14:12:58 sure, yet it is a super complex API that try to be everything to every one and that is deprecated for using the simplier and much more general Toolbar Oct 26 14:13:15 is there a different calling finish() before and after startActivity()? Oct 26 14:13:20 marrrk: You could probably use ViewSwitcher Oct 26 14:13:33 That sounds interesting. Oct 26 14:13:34 yoavst what do u mean ? Oct 26 14:14:10 Oh but that's only for two views Oct 26 14:15:10 TonySoprano9099: I mean, is there a different between calling finish before startActivity and after startActivity Oct 26 14:15:25 It's for animating between two views Oct 26 14:15:35 You can swap those out between animations I'd imagine Oct 26 14:15:36 u mean a difference or a different way ? Oct 26 14:15:48 TonySoprano9099: difference Oct 26 14:15:55 sorry Oct 26 14:16:18 i might be wrong, but yes. Oct 26 14:16:28 why & how? Oct 26 14:16:39 why & what the difference?* Oct 26 14:17:11 http://pastebin.com/RAVvQZqE Oct 26 14:17:15 The method that called finish() will run to completion. The finish() operation will not even begin until you return control to Android. Oct 26 14:17:36 so apparently there is no difference\ Oct 26 14:17:56 so there is no difference? Oct 26 14:17:58 im having problems compiling with aide Oct 26 14:18:43 yoavst it really depends Oct 26 14:18:49 check this Oct 26 14:18:50 http://stackoverflow.com/questions/2590947/about-finish-in-android Oct 26 14:19:32 I got a problem that video inside webview continue to make sound after finish() Oct 26 14:19:44 so I thought maybe the order matter Oct 26 14:20:01 call ondestroy literally somewhere to test Oct 26 14:21:37 Whatever method called finish() will run all the way through before the finish() method actually starts. So, to answer your question, after the calling method finishes then your activity will run its finish method. If you don't want the method to continue then you can add a return statement after finish Oct 26 14:22:22 TonySoprano9099: I fixed it by setting an empty url to the webview Oct 26 14:22:50 thats a workaround Oct 26 14:22:56 which version of android u are on ? Oct 26 14:23:05 and are u testing on device or emu ? Oct 26 14:23:47 device 4.4 Note 3 Oct 26 14:23:54 Maybe it is samsung crap Oct 26 14:24:16 most likely Oct 26 14:24:19 but my boss told me that it happens to him on iCrap too Oct 26 14:24:31 so it is probably what should happen Oct 26 14:24:37 maybe u should change career :P Oct 26 14:25:12 TonySoprano9099: as a 16 years old, I don't even need to change career ;) Oct 26 14:27:41 yoavst, in that case, focus on growing up. Oct 26 14:45:22 is there any way/app/plugin/service that can analyze my app from eclipse ? Oct 26 14:45:44 that is, tell me what i might enhance programmatically, or even tell me which activities are using which layouts etc Oct 26 14:55:24 TonySoprano9099: what do you mean with "enhance"? something like code coverage? Oct 26 14:58:19 i dont know what is it called Oct 26 14:58:25 but i want an alaysis of my code Oct 26 14:58:37 the package is so huge, and i dont catch what is where and which is which Oct 26 14:58:43 its like a jungle in there Oct 26 14:58:50 tons of no needed variables Oct 26 15:01:24 navigation drawer as fragment shouldn't be difficult instead...http://goo.gl/TcW95D Oct 26 15:01:32 please upvote my question at least Oct 26 15:11:03 Hey, I'm trying to send data through the Wear MessageApi in a byte[] array Oct 26 15:11:46 I have two strings and and int to send so I can bundle or parcel or make a serializable object but I'm having trouble making any approach work Oct 26 15:12:12 if I load all three values into a parcel how do I convert that parcel to a byte array? Oct 26 15:14:18 Parcel#marshall Oct 26 15:15:11 goddamnit Oct 26 15:15:16 it's been there all along Oct 26 15:15:21 thanks SimonVT Oct 26 15:15:25 I was losing my mind Oct 26 15:15:49 Parcel#createByteArray threw me off Oct 26 15:16:51 ^_^ Oct 26 15:17:34 Hi, can anyone help me? I have a GridLayout (written in code, not XML), and I want to create a new row. How do I do it? Oct 26 15:20:19 ? Oct 26 15:21:44 in many cases in the developers docs, they called interfaces as classes. like SHaredPreferences class when its an interface. I wonder why? Oct 26 15:22:19 shmoon_ good point Oct 26 15:22:29 technically interfaces are classes tho, no ? Oct 26 15:23:10 gridlayout api is aweful, try to use tablelayout if you can :) Oct 26 15:23:13 are they, I didn't know. I thought they are 2 separate things or entities Oct 26 15:23:54 and how do i do that there? Oct 26 15:24:04 shmoon_ they do different things Oct 26 15:24:20 shmoon_ , who cares tho, just make ur work, work. Oct 26 15:24:36 Galz: have you red the docs on both? Oct 26 15:24:54 no, i haven't heard of tablelayout Oct 26 15:25:01 and about gridlayout Oct 26 15:25:32 TonySoprano9099: awesome :D Oct 26 15:25:33 i looked up for it on forums such as stackoverflow Oct 26 15:25:50 and couldnt find anything about it Oct 26 15:25:54 Galz, not enuff. go read official docs. Oct 26 15:26:11 Galz: http://lmgtfy.com/?q=tablelayout+android&l=1 Oct 26 15:26:11 and make it worth for google paying his documenting engineers. Oct 26 15:27:24 They shouldnt be payed until releasing proper documentation on material design though :p Oct 26 15:27:55 i hate offcial docs. they are just details about the class structure. Oct 26 15:28:01 not really useful. Oct 26 15:28:23 sharedpreferences are linked with user sessions, what are they supposed to mean? Oct 26 15:28:34 user sessions in the application or in android - I'm a little confused Oct 26 15:28:42 Galz: you need to learn to read them then Oct 26 15:28:45 I guess if there are multiple users then they'll have their own set of sharedpreferences data Oct 26 15:28:49 nobody here will feed you.. Oct 26 15:29:22 I love the nick dani joo Oct 26 15:29:24 are there any good tutorial/howtos on how to build the android emulator on an arm host? Oct 26 15:29:26 is there anything specific about the floating action button that would justify the amount of libraries? Oct 26 15:29:35 shmoon_: my nick? Oct 26 15:29:39 ya Oct 26 15:29:41 why? Oct 26 15:30:07 probably because a good friend of mine was named dani and joo is cute Oct 26 15:30:12 shmoon_, consider them as the settings u set for an app... and a small cave to hold some data about ur app Oct 26 15:30:35 TableLayout.LayoutParams? is that related to row spanning? Oct 26 15:31:15 TonySoprano9099: ya true, but I was wondering when there are multiple users in android (which probably already exists in tablets and about to come in mobiles) different users will have their own set of sharedpreferences for the same apps right ? Oct 26 15:31:25 oh okay :) for me its just an alteration of banjoo from banjoo kazooie. more characters where added when this name wasnt up for registration on a website ^^ Oct 26 15:32:09 shmoon_: I think so. The idea of users wouldnt make sense if not.. Oct 26 15:32:38 TableLayout does not support row spans, only column spans. GridLayout supports both row and column spans. (http://stackoverflow.com/questions/16126243/how-to-apply-row-span-in-tablelayout) Oct 26 15:32:39 =/ Oct 26 15:32:45 shmoon_, havent tried it like that,, with more than single user.. good point tho.. Oct 26 15:32:54 but i think its per app and not users.. Oct 26 15:33:15 multiuser has own app/data mounts I think…well pretty sure Oct 26 15:33:24 so no just prefs but "the app" too Oct 26 15:33:44 ok so different set of apps hence different prefs Oct 26 15:33:53 I was just confused by this line in the docs "This data will persist across user sessions (even if your application is killed)." Oct 26 15:34:04 the user sessions especially Oct 26 15:34:16 user sessions = when the user closes the app and opens it Oct 26 15:34:16 not user's Oct 26 15:34:30 or his grandfather, whoever Oct 26 15:34:30 or users' Oct 26 15:34:33 if its not per user you could fetch the username from system Oct 26 15:34:36 they mean the data will persist and not go Oct 26 15:34:45 and change prefences file name according to that. Oct 26 15:34:45 quick question (more java than android), MyObject.equals(OtherObject) or MyObject == OtherObject Oct 26 15:34:53 Ravenheart: equals Oct 26 15:35:03 when is == appropriate to use Oct 26 15:35:10 the second compare pointers Oct 26 15:35:25 == is only for primitives Oct 26 15:35:35 wut, i though equals was for reference types Oct 26 15:35:41 like integer, boolean.. but NOT STRINGs Oct 26 15:35:45 does java even have pointers Oct 26 15:35:47 MyObject == OtherObject only if both are infact the same location in memory Oct 26 15:35:54 no == is reference, equals is object itself Oct 26 15:35:55 refernces Oct 26 15:35:56 Ravenheart ofcourse it has Oct 26 15:35:59 right cuz String is a reference type danijoo Oct 26 15:36:01 cool thanks guys :) Oct 26 15:36:11 string is somewhere in between Oct 26 15:36:12 TonySoprano9099: thats wrong. == does not compare memory location Oct 26 15:36:24 it compares location of the pointer variable Oct 26 15:36:33 danijoo, true. Oct 26 15:36:43 couldnt express myself correctly, but thats what i meant. Oct 26 15:36:46 I found this: TableRow.LayoutParams params = (TableRow.LayoutParams) theChild.getLayoutParams(); but the layout's varible name isn't mentioned. How does it work? Oct 26 15:36:50 is it okay if you use .equals with primitive types as well Oct 26 15:37:14 Ravenheart it is, but its like going to the market to buy water to water ur plants. Oct 26 15:37:20 ie, doable, but no one does it. Oct 26 15:37:40 i come from C# lands btw, we can use either one and its fine there Oct 26 15:37:42 It's just another one of these things that Java got wrong. Oct 26 15:38:04 okay so rule of thumb, if its a primitive type use ==, anything else use equals Oct 26 15:38:06 im pretty sure there is some kind of reason nobody does 1.equals(2) Oct 26 15:38:25 Ravenheart: yes. but be careful with strings, they are built in, but no primitives :) Oct 26 15:38:35 so for strings you have to use equals Oct 26 15:38:42 yea i count them towards reference types Oct 26 15:38:49 thank you channel :) Oct 26 15:38:49 marrrk, java got wrong ? lol Oct 26 15:38:54 marrrk: true. Oct 26 15:40:19 Ravenheart, come again Oct 26 15:40:40 Is there really a difference between String and any other class you write yourself? Oct 26 15:40:45 i most probably will Oct 26 15:40:55 Except that it has a convenient constructor, maybe. Oct 26 15:40:56 marrrk: i think no, beside that its built in Oct 26 15:41:00 marrrk, of course. String probably has no bugs :P Oct 26 15:41:04 *less Oct 26 15:41:05 and that constructor thing. Oct 26 15:41:12 jooles_: fewer? Oct 26 15:41:15 that one Oct 26 15:41:44 marrrk: and a weird definition of hashCode(). that might be a difference too Oct 26 15:41:57 so now that I have your attention: is anybody using one of the many floating action bar button libraries? If so which and why? Oct 26 15:42:52 marrrk, nops. Oct 26 15:43:16 marklite i started doing android/java yesterday, so no Oct 26 15:43:32 Ravenheart, did u save the date :p ? Oct 26 15:44:00 no i want to forget it already Oct 26 15:44:07 sooooo many gotchas Oct 26 15:44:11 hehehehe Oct 26 15:44:15 its that bad ? Oct 26 15:44:16 and weird logical flows Oct 26 15:44:17 lol Oct 26 15:44:34 marrrk, I'm not using any of those yet Oct 26 15:44:35 i think with each new version of android (and new APIs) they make it harder to do simple stuff Oct 26 15:44:41 Ravenheart, come onn Oct 26 15:44:44 Ravenheart, they do Oct 26 15:44:46 instead of simplifying things Oct 26 15:44:50 its an android thing, not java Oct 26 15:44:58 i guess its bcoz opensource Oct 26 15:45:12 Ravenheart: they just give you more possibilities which makes it harder to understand those simple things Oct 26 15:45:24 but you can still use the android 1.6 apis :) Oct 26 15:45:44 Yeah, exactly, usually you can't really use the new apis except on one phone model :) Oct 26 15:45:46 trying to wrap my beginner brain around the way the device monitor works. If I understand, a perspective is just a predefined collection and layout of views. There are several, called DDMS, debug, hierarchy. They are available form the little popup. next to the buttons. The buttons are just short cuts to the same perspectives. Here's the question. The perspectives appear to be completely changeable (can add and delete views Oct 26 15:45:46 and rearrange them), and you can reset the perspective to default, but you cannot make up your own new, named perspective? Did I miss something, can you make a new perspective ? Oct 26 15:45:49 i don't mean to complain or anything, but some stuff that should be simple is actually horrible boilerplate codeing Oct 26 15:45:58 true. Oct 26 15:46:10 just forget about fragments at the beginning Oct 26 15:46:25 its horrible to get your head arround their lifecycle mess Oct 26 15:46:41 the book i bought has them in every chapter after the first tutorial app Oct 26 15:46:56 well i got it around already Oct 26 15:47:02 they pretty much emulate an activity Oct 26 15:47:12 thats what you think.. :p Oct 26 15:47:12 but are managed by the activity's fragment manager Oct 26 15:47:14 and not the OS Oct 26 15:47:32 i don't know how nested fragments would work though Oct 26 15:48:02 fragments are like theory of relativity Oct 26 15:48:07 danijoo you got any nice articles on software patterns for android Oct 26 15:48:10 nobody understands it Oct 26 15:48:27 danijoo, good words there... i personally apply those Oct 26 15:48:29 like how do you actually organize a real application that will connect to the internet Oct 26 15:48:31 Ravenheart: not really. just follow the google docs :/ Oct 26 15:48:34 and have some cloud backend Oct 26 15:48:44 currently writing a relatively 'big' with just basics... activity/intent/lists Oct 26 15:49:00 at work we got certain design patterns, three layered architecture Oct 26 15:49:04 once i publish... ill try to modernize it by moving to fragments etc... else, as u said.. just too much Oct 26 15:49:11 models, validators, views, managers and repositories Oct 26 15:49:17 in android i dunno if that will work Oct 26 15:49:26 Hi everybody. I would like to display a row of buttons (e.g. in a LinearLayout) somewhere in my layout. I want those buttons who don't fit to go into some overflow menu, similar to the actionbar behaviour. Is there some library to do that? Oct 26 16:02:08 when developing for android do you have to be very cautious about memory allocation? Oct 26 16:02:43 ChrisUK no. system takes care of it. Oct 26 16:02:44 well i wouldn't allocate a gig Oct 26 16:02:53 but be cautious Oct 26 16:02:54 You should not be wasteful with allocations. Just be aware what happens when you allocate memory... Oct 26 16:04:27 Hi Oct 26 16:04:42 Im doing a toturial abour RSS feed and I dont understand how these files are related Oct 26 16:04:51 which files ? Oct 26 16:05:02 I have four classes. Oct 26 16:05:15 glad they are not 5. move on. Oct 26 16:05:24 I mean why do you need so many classes. Oct 26 16:05:30 the explanation is soo bad Oct 26 16:05:42 peyam, sometimes you do. Oct 26 16:05:46 it is what it is. Oct 26 16:05:53 one is for RSShandler. it will analise the XML Oct 26 16:05:58 do you have any concrete question ? Oct 26 16:06:08 no. becouse i dont get it at all Oct 26 16:06:22 i dont know what is going one. I just write and dont get any thing Oct 26 16:06:36 peyam, did u get this from an online example ? Oct 26 16:06:47 * peyam ans I just got a Bells palsy. it makes me even more sad Oct 26 16:06:56 yes. my course in Android Oct 26 16:07:23 what ? Oct 26 16:07:29 wait Oct 26 16:07:32 peyam, i do not understand gwamiese. Oct 26 16:08:26 wait Oct 26 16:09:40 http://www.vogella.com/tutorials/RSSFeed/article.html TonySoprano9099 Oct 26 16:10:24 I dont understans what the first class does and what the second does Oct 26 16:11:06 How can I see different between two file? because navigation drawer as fragment shouldn't be difficult instead...http://goo.gl/TcW95D Oct 26 16:11:33 well I am dealing with large bitmaps in my app Oct 26 16:11:37 which can take upto 64mb Oct 26 16:11:43 so I have to be careful it seems :) Oct 26 16:12:02 mcmaur FeedPage and Feed? Oct 26 16:13:05 peyam sorry* Oct 26 16:13:27 Ravenheart, RSS feed yes Oct 26 16:13:38 mcmaur: you should reduce your code for questions like that Oct 26 16:13:39 64mb ? dudee lol Oct 26 16:13:45 and remove the not related stuff Oct 26 16:13:48 FeedPage is one article, Feed is like a channel that has many articles Oct 26 16:14:31 What Ravenheart? Oct 26 16:14:45 nothing, i meant to highlight peyam Oct 26 16:14:58 tony: these are large images for a VR photosphere app I am making for google cardboard Oct 26 16:15:24 most phones can support 4096*4096 textures Oct 26 16:15:49 oh right daijno u are right but I don't have a problem in particular part of the code. The tap on action bar is not controlled by me but from android framework and so I don't know where the code could possible be? What do u think? Oct 26 16:16:20 no time to dig into it. sorry Oct 26 16:16:31 its too much with all those unrelated things Oct 26 16:17:22 Would it harm performance much to instantiate a (simple) object in a BaseAdapter.getView override? Oct 26 16:17:30 Every time. Oct 26 16:17:36 I understand. Do u have idea how to reduce the code? Oct 26 16:17:53 I'm guessing it could add a serious GC overhead. Not sure. Oct 26 16:18:00 s/add/entail/ Oct 26 16:18:18 TacticalJoke what object use/type? Oct 26 16:18:19 by removing all the lines that are not neccessary to describe your problem. like the options/saveInstanceState things Oct 26 16:18:39 ok danijoo I'm gonna do it Oct 26 16:18:40 StingRay_: Something very much like a typical ViewHolder. Something with, maybe, two fields. Oct 26 16:19:07 should be fine, if that bothered and not needed when view is gone, consider weak/soft Oct 26 16:19:11 TacticalJoke: you should recycle them if possible Oct 26 16:19:34 Yeah. Oct 26 16:20:19 I'm trying to use Extract Class to simplify the code, but it'll probably entail some performance hit. Oct 26 16:20:53 if you have used a canvas to draw to a bitmap do you have to explicitly deselect the bitmap before you destroy the canvas? Oct 26 16:22:02 done danijoo. Thank you. Oct 26 16:22:04 ChrisUK, VR photosphere app,, woooohooo Oct 26 16:22:08 This is how simple I've made it so far, but I feel that it could be simpler: http://pastebin.com/FbKeQdzQ Oct 26 16:23:54 I hate the name of the parameter convertView. Is it bad practice to rename a paramenter in an override? :D Oct 26 16:24:16 danijoo do u think is it a good idea the Attempt Section? Oct 26 16:24:19 Something like "cachedView" seems nicer. Oct 26 16:24:36 recycledView Oct 26 16:25:04 Now it's very focused but still no idea how to resolve : http://goo.gl/TcW95D Oct 26 16:25:13 Yeah. Oct 26 16:26:17 Delete your code and switch to RecyclerView Oct 26 16:27:18 That's my ultimate plan. Oct 26 16:27:34 I don't trust RecyclerView/Toolbar/etc. yet. Oct 26 16:29:53 Perhaps I have trust issues. Oct 26 16:35:32 tactical, you are checking convertView ==null 3 times, id say ya you can make it simpler Oct 26 16:35:43 Why is that not simple? Oct 26 16:35:50 The alternative code is way harder to read, IMO. Oct 26 16:36:11 because you can check once Oct 26 16:36:18 ...which is less simple. Oct 26 16:36:26 oh goodness Oct 26 16:36:42 3 is better than 1 Oct 26 16:37:49 does totalMemory return bytes or K? Oct 26 16:38:07 what does the doc say? Oct 26 16:38:50 doesnt specify Oct 26 16:39:14 using Runtime? if so yea it does Oct 26 16:40:02 ok thanks Oct 26 16:40:32 using AS, click method press ctrl q Oct 26 16:41:17 I am using eclipse Oct 26 16:42:00 it may have a different key combo, but its incredibly handy, brings up the docs on whatever you have selected Oct 26 16:44:09 The Eclipse equivalent, I guess, is just "hover the mouse over the name" or "press F2". Oct 26 16:44:33 thanks Oct 26 16:44:40 anybody use RoboBInding Oct 26 16:44:45 I am very new to android dev :) Oct 26 16:45:00 so if your app goes above Runtime.MaxMem it will be shut down? Oct 26 16:47:13 chrisuk, if you exceed the heap size allowed by the device, youll likely get oom exceptions Oct 26 16:48:23 is runtime maxMemory the best indicator of that? Oct 26 16:48:57 ChrisUK: Just being nosy -- why are you worried about running out of memory? Oct 26 16:49:17 tactical: I have to try to manipulate very large bitmaps Oct 26 16:49:40 basically these are large textures for a Virtual Reality Photosphere app I am doing for good cardboard Oct 26 16:49:42 ChrisUK: You should scale them down before loading them into memory Oct 26 16:49:51 yes I have been Oct 26 16:50:07 good cardboard Oct 26 16:50:15 but I am trying to get better image quality Oct 26 16:50:27 for higher resolution phones Oct 26 16:50:47 good cardboard = google cardboard lol Oct 26 16:50:51 autocomplete :) Oct 26 16:50:58 1:1 texel quality still is maybe only 2 x screen res Oct 26 16:51:25 I was gonna say... what kinda cardboard are we talking here. Oct 26 16:51:25 well the phone sphere can be 6x screen res Oct 26 16:51:34 not at once :) Oct 26 16:51:36 google cardboard VR headset for android Oct 26 16:52:02 stingray: it would cause too much lag with the head tracking Oct 26 16:52:18 I have to load the whole texture at once Oct 26 16:53:14 well, no, same principal as google maps right ? Oct 26 16:53:15 it is going ok but I just have to be aware of the memory limits on some phones like the S3 Oct 26 16:53:38 you know how it works? Oct 26 16:53:55 what adaptive steaming and loading along with mipmaps ? Oct 26 16:54:08 well it basically does head tracking Oct 26 16:54:33 with your accelerometer to emulate something like the Occulus Rift but on an android Oct 26 16:54:35 ChrisUK: S3 as in Galaxy S 3? Oct 26 16:54:40 but people can just look behind them Oct 26 16:54:43 physical stuff is rather irrelevant Oct 26 16:54:45 yes Galaxy S3 Oct 26 16:55:00 ChrisUK: I’d worry that the CPU and the GPU in the Galaxy S 3 are both too slow to do any sort of VR. Oct 26 16:55:02 point is camera, view frustum and texel consideration Oct 26 16:55:03 well it means I cant dynamically load the texture from a JPG in my opinion Oct 26 16:55:15 jfpoole: works find on it :) Oct 26 16:55:16 but many apps do this Oct 26 16:55:23 this app runs fine on s3: Oct 26 16:55:25 ChrisUK: Really? Huh! Oct 26 16:55:31 That is not what I would’ve expected. Oct 26 16:55:45 https://play.google.com/store/apps/details?id=com.divegames.divecitycoaster&hl=en_GB Oct 26 16:56:05 ChrisUK: This is your app? Oct 26 16:56:22 no Oct 26 16:56:30 my app is for photosphere but in VR Oct 26 16:56:36 stereoscopic 3d Oct 26 16:57:01 takes photospheres and views them in 3d with head tracking Oct 26 16:57:10 so you feel like you are inside the photosphere Oct 26 16:57:28 like google photosphere Oct 26 16:57:43 well it is different Oct 26 16:57:48 how so ? Oct 26 16:57:50 in that it is stereoscopic Oct 26 16:58:04 so thats the difference ? 2 cameras ? Oct 26 16:58:06 and has head tracking and is degisned to be used on google cardboard or durovis dive Oct 26 16:58:28 2 cameras to take it or 2 virtual cameras? Oct 26 16:58:49 well I would not really see the point of either Oct 26 16:59:04 since inside of sphere, nature of it is no convergence Oct 26 16:59:13 hence no real depth to stereo Oct 26 16:59:21 it has a 3d effect Oct 26 16:59:32 it is a bit like a 3d dome cinema effect Oct 26 16:59:48 thats what google sphere photo is Oct 26 16:59:56 photos, on a sphere Oct 26 16:59:58 i wonder if i can find a cheap Evo3D Oct 26 17:00:02 which app are you talking about? Oct 26 17:00:05 can you link Oct 26 17:00:07 the camera app Oct 26 17:00:09 :) Oct 26 17:00:15 ok google camera? Oct 26 17:00:21 photophere images Oct 26 17:00:22 yeah Oct 26 17:00:31 yes but the viewers are not stereoscopic Oct 26 17:00:51 only cause there would be no convergence hence no real point as no depth Oct 26 17:00:52 it is basically something google are developing themselves Oct 26 17:01:07 the camera have a depth effect Oct 26 17:01:12 If someone has a Google Inbox invite that's will be cool. I want to see if I can make my app dialog with it and if APIs are available. Oct 26 17:01:14 similar to a curved screen Oct 26 17:01:35 ChrisUK erm, surface tangent is not depth Oct 26 17:01:44 if someone has an inbox invite, would be nice to send me an invite too :p Oct 26 17:01:44 perception of depth is z difference Oct 26 17:01:53 there is a z difference Oct 26 17:02:00 because your eyes see different images Oct 26 17:02:13 due to the 2 virtual cameras have a gap Oct 26 17:02:19 you have seen the google cardboard app? Oct 26 17:02:23 from google? Oct 26 17:02:30 I have not no Oct 26 17:02:36 ok well tell google they are wrong Oct 26 17:02:37 lol Oct 26 17:02:41 they are doing it alot in that Oct 26 17:02:44 same trick Oct 26 17:02:56 and in their VR google earth thing coming it they use it alot Oct 26 17:03:06 you have to see it Oct 26 17:03:13 it does create a 3d effect Oct 26 17:03:17 no my point is for stereo you consider convergence from 2 points Oct 26 17:03:27 there is convergence Oct 26 17:03:35 so 2 images then ? Oct 26 17:04:05 left right eye ? Oct 26 17:04:32 yes Oct 26 17:04:40 you ever seen one of those planatariums Oct 26 17:04:55 where the screen is half a sphere Oct 26 17:05:26 it looks 3d Oct 26 17:06:32 it is a virtual version of this : http://en.wikipedia.org/wiki/Fulldome Oct 26 17:07:03 anyhow if you havent checked out google cardboard I suggest you buy one on ebay for $5 Oct 26 17:07:11 oh tahts like googles photosphere stuff Oct 26 17:07:21 or any photoshpere things Oct 26 17:07:26 yes Oct 26 17:07:27 but Oct 26 17:07:35 you going to make something like that but with 2 sets of images left right eye ? Oct 26 17:07:36 this is a VR version of it Oct 26 17:07:40 yes Oct 26 17:07:46 you are inside a virtual sphere Oct 26 17:07:49 you know that wont work right ? Oct 26 17:07:56 err it does work Oct 26 17:07:58 convergence is static in those images Oct 26 17:08:09 not if cameras are not at the same point Oct 26 17:08:20 I am basing this entirely on what google have done Oct 26 17:08:23 :) Oct 26 17:08:31 they do static images Oct 26 17:08:37 in that cardboard thing ? Oct 26 17:08:40 buy a google cardboard, download the app Oct 26 17:08:49 try it and tell me it dont work then :) Oct 26 17:09:03 if it's static images yes…it does Oct 26 17:09:13 if it's static videos (left right) it does Oct 26 17:09:23 I know that, I have worked on 3d films Oct 26 17:10:06 ok Oct 26 17:10:25 well you can also understand that your 2 eyes will have a different perspective on the same picture Oct 26 17:10:37 they are not the same Oct 26 17:10:40 * monsti is inside of a holodeck Oct 26 17:10:47 they are from 2 different cameras and angles Oct 26 17:10:55 yes Oct 26 17:11:07 2 totally diff images with convergence giving you a perception of depth Oct 26 17:11:14 it is basically the same effect you get if you plaster a picture onto a sphere all about you Oct 26 17:11:18 it will look kind of 3d Oct 26 17:11:23 it will not Oct 26 17:11:31 but dont matter…up to you :) Oct 26 17:11:39 well I would suggest you try it Oct 26 17:11:48 alot of people are doing stuff with this like Kolor and google Oct 26 17:12:40 panoramas yeah, got some wicked apps on ipad for vr photoshpere stuff Oct 26 17:13:04 how do you view them on the ipad? Oct 26 17:13:09 that is too large for VR Oct 26 17:13:44 well ok not VR, just pan an look around with orientation etc Oct 26 17:13:57 well you have to have it on a headset Oct 26 17:14:02 seriously you should check it out Oct 26 17:14:19 especially if you are a developer Oct 26 17:14:21 will still look like I'm looking at a sphere Oct 26 17:14:38 you have to check it out and see Oct 26 17:14:46 there is no real 3d there except for the fact it's a sphere… Oct 26 17:14:54 yes Oct 26 17:15:02 but it seems to fool the brain slightly Oct 26 17:15:07 into thinking it is a 3d image Oct 26 17:15:11 you need to check it out Oct 26 17:15:24 which ? that cardboard thing ? Oct 26 17:15:38 google cardboard and VR photospheres Oct 26 17:15:42 that will just take 2 images right ? Oct 26 17:15:43 or VR apps in general Oct 26 17:15:53 ok ill send you my app and you can see ok Oct 26 17:16:02 do you have photospheres on your phone? Oct 26 17:16:18 well I can make one pretty quick :) Oct 26 17:16:23 ok Oct 26 17:16:28 download one of these Oct 26 17:16:46 https://plus.google.com/photos/+HugoBarra/albums/5808606988734372865 Oct 26 17:17:44 umm Oct 26 17:17:57 this is another more java than android question but Oct 26 17:18:06 ? Oct 26 17:18:11 Date, i'm seeing that getYear() is obsolete Oct 26 17:18:20 how do you get the Year, Month, Day from a Date? Oct 26 17:18:26 whats the correct way rather Oct 26 17:18:56 what does the javadoc for getYear() suggest as an alternative? Oct 26 17:18:57 the documentation answers that Oct 26 17:19:41 http://speedy.sh/CFAmg/PSViewerBeta2.apk Oct 26 17:19:48 that is my vr photosphere app Oct 26 17:20:09 Calendar Oct 26 17:21:06 wonder if i should use that other datetime lib Oct 26 17:21:10 Joda time or something Oct 26 17:21:18 depends on your needs Oct 26 17:21:39 I've never had any problems with Calendar Oct 26 17:21:48 i want a sane DateTime type Oct 26 17:36:10 Dammit. Oct 26 17:36:24 Trying to measure battery life and I accidently tapped “Cancel” halfway through the test. Oct 26 17:37:11 tap resume Oct 26 17:38:37 whatitis: There is no “resume” in this test. Oct 26 17:55:10 Is there a way to listen for a URL fragment id change on a WebView (e.g. index.html -> index.html#fragment)? Oct 26 17:55:40 hy all Oct 26 17:57:41 is there a good audio engine for Android? I want to be able to generate sine wave or other wave (or play a song's first few miliseconds) and to change the volume of the two speaker (connect by jack plug) differently. Oct 26 17:57:43 Thanks Oct 26 18:04:38 hmm. Is it correct and safe to do a return from the try section in a try, catch, finally construct? will the finally section always be called ? Oct 26 18:04:59 Yeah, finally is always called Oct 26 18:05:05 thanks Oct 26 18:06:41 somebody? Oct 26 18:18:07 anybody? Oct 26 18:18:21 if anybody would know, he would answer Oct 26 18:24:11 danijoo: okay Oct 26 18:24:24 danijoo: that's why I will ask that in every single hour Oct 26 18:25:35 i bet there are faster ways to find a lib. like googling :) Oct 26 18:25:36 that will definitely get you hated, gregtom6 Oct 26 18:25:47 maybe also kicked Oct 26 18:26:04 ravilov: I don't think anyone wants me to go to elsewhere Oct 26 18:27:09 yeah they do, they are just silent for the moment. but if you keep pushing... Oct 26 18:28:46 ravilov can i bug you again, i saw someplace, i think an appcompat widget app:theme="" instead of android:theme="" - i still don't understand the significance of this. whatsthe difference ? Oct 26 18:29:02 (between the namespaces) Oct 26 18:29:09 lol Oct 26 18:29:18 still on that thing, g00s? :) Oct 26 18:29:22 g00s: android:abc is for attributes defined in andorid Oct 26 18:29:26 i mean, why couldn't they have just said android:theme ? Oct 26 18:29:35 anythingelse:abc is for your own attributes Oct 26 18:29:40 right theme is defined in android Oct 26 18:29:45 g00s, it just means the theme in question is defined within some user code (lib or app or whatever) and not in android core Oct 26 18:29:53 everything within appcompat is part of your probject so not in android: namespace Oct 26 18:30:28 g00s, all the resources designated with "android:" are a part of the official API and well defined and documented, anything beyond that has to be in another namespace Oct 26 18:30:53 appcompat is not a part of the official API, so... Oct 26 18:31:01 but like i thought, android:theme is already there; so why would they use another namespace for the attribute ? Oct 26 18:31:11 i don't say app:layout_width Oct 26 18:31:38 ravilov: I just want to get quick answers Oct 26 18:32:04 not sure but I think android:theme assumes a bunch of other attributes which the appcompat has no access to Oct 26 18:32:17 gregtom6, then use google and quit bugging people Oct 26 18:32:26 it's pretty clear you're getting nowhere in here Oct 26 18:32:43 ravilov: then tell me how to find that with google, because I don't know Oct 26 18:33:00 gregtom6, you are on your own, this channel's purpose is not to serve you Oct 26 18:33:00 the main.xml file doesn't have a "", but additional menu resource files that you define, appears to need it according to the guide. Why is that ? Oct 26 18:33:26 g00s, also, you don't say app:layout_width because that particular attribute is indeed handled within the core and not the appcompat lib Oct 26 18:33:37 it's a part of the standard View attribute set Oct 26 18:33:48 ravilov: please tell me, what is wrong with you? Oct 26 18:33:55 gregtom6, you are Oct 26 18:33:58 I just asked a simple question Oct 26 18:34:03 no Oct 26 18:34:07 yes Oct 26 18:34:12 you asked a simple question over and over again Oct 26 18:34:22 that is called being selfish and inconsiderate Oct 26 18:34:25 ravilov: how many times did I asked that? 2 times? Oct 26 18:34:34 enough to establish a pattern Oct 26 18:34:46 plus you said you'll keep doing it until you get an answer Oct 26 18:34:50 ravilov: I have asked that only TWO times Oct 26 18:34:54 ^ Oct 26 18:35:01 and then said you'd do it every hour Oct 26 18:35:13 ravilov: but I didn't do that yet... Oct 26 18:35:23 -.- Oct 26 18:35:26 what difference does that make? Oct 26 18:35:37 gregtom6, trust me, you will get no help in here, you are already not liked and people just don't want to help Oct 26 18:35:50 I am only saying what many others are thinking Oct 26 18:36:03 ravilov: people never liked me in real life too....but I don't understand people...I was just kidding... Oct 26 18:36:26 why so serious? Oct 26 18:36:34 well that's something to think about then, isn't it? why are you so not liked? is it because your "kidding" is not funny at all? Oct 26 18:36:54 is it because you are too self-centered and only worry about solving your own issue? Oct 26 18:37:02 #android-dev at its finest.... ^^ Oct 26 18:37:13 Intellij vs AS vs eclipse anyone? Oct 26 18:37:22 ravilov and gregtom6, stop it. Now. Oct 26 18:37:33 ravilov: because I need always to do hard things, always need to make researches again and again and it consumes a lot of time Oct 26 18:38:19 ravilov: and I hate doing researches for now...I don't really have time to rest, always need to do things for people Oct 26 18:38:29 gregtom6: Feel free to ask your question every once in a while. Do not follow it up with "somebody?" or "anybody?". Just ask your question. Oct 26 18:38:32 Man, I wish we had reified generics. :[ Oct 26 18:39:14 just sign to me if you know how to use audio engines in an android app. Oct 26 18:39:15 another peculiarity that I don't understand is that in the main.xml the app: namespace is permitted (as in app:showAsAction) but in menu xml files that I define that has to be android:showAsAction. If anyone has a simple explanation of that I'm all ears.. Oct 26 18:39:17 that's all Oct 26 18:41:09 kinch, you can use the app: namespace if you define it with xmlns:app Oct 26 18:41:55 gregtom6: So you expect other people to do your work for you? Oct 26 18:42:21 jfpoole: why would I ask that? -.- Oct 26 18:42:31 ok. I may understand what you just said at some point in the future :-) Oct 26 18:43:06 hm, i'm readin here in SO , somebody says RecyclerView isn't well suited for situations where the set is backed by a cursor Oct 26 18:43:06 jfpoole: why are you people always try to directly misunderstood me? Oct 26 18:43:07 kinch, g00s, and anyone else: the "prefix:" notation is not actually a namespace, it is a namespace *shortcut*, you still have to define what that shortcut actually means by using xmlns:whatever="...". that goes for the "android:" shortcut too. Oct 26 18:43:25 ravilov yeah sure, i get the shortcut :) Oct 26 18:43:42 it wouldn't even be valid xml without the xmlns decl Oct 26 18:44:17 what i think we're confused on, is now out of the blue, some of these attributes like showAsAction suddenly have a different namespace requiremen Oct 26 18:44:23 g00s recycler ? cursor ? SO ? Somebody ? link ? Oct 26 18:44:40 it sounds a bit odd that statement :) Oct 26 18:44:51 g00s, this is because it's an appcompat lib, it is supposed to run on android versions that don't have the attribute defined within the core Oct 26 18:45:11 just as well as on the ones that do have it Oct 26 18:45:27 i thougght if you used an attribute the platform didn't define, it was just ignored Oct 26 18:45:40 is there a good audio engine for Android? I want to be able to generate sine wave or other wave (or play a song's first few miliseconds) and to change the volume of the two speaker (connected by jack plug) differently. Thanks Oct 26 18:45:45 nope, because it gets translated and compiled at compile time Oct 26 18:45:55 and the older version compiler doesn't know what to do with it Oct 26 18:47:06 also, when you define an XML namespace, you essentially say "the definitions of all the attributes I am going to use are in this namespace" Oct 26 18:47:17 ok thanks ravilov maybe another piece fell into place Oct 26 18:47:37 so there's a list of all the valid attributes within the framework core, and you can't just invent new things that aren't there ;) Oct 26 18:47:48 g00s: There are issues with trying to read xml attributes on platforms where they do not exist Oct 26 18:48:25 ahh, so they must exist somewhere ... since that namespace ? Oct 26 18:48:34 yes that's what I just said ;) Oct 26 18:48:38 ok Oct 26 18:49:22 well, i'll try to dig up the app:theme="" thing, that still doesn't make sense to me because :theme has been available since ... beginning Oct 26 18:50:17 yeah I'm not sure why you have to use app:theme, a specific example might help. my best guess is so as to avoid android from processing it and have it processed within the appcompat lib only Oct 26 18:50:52 its right here, i think this takes us full circle ravilov :) http://android-developers.blogspot.com/2014/10/appcompat-v21-material-design-for-pre.html Oct 26 18:51:17 app:theme="@style/ThemeOverlay.AppCompat.ActionBar" /> Oct 26 18:51:27 well Oct 26 18:51:29 "The app:theme declaration will make sure that your text and items are using solid colors (i.e 100% opacity white)." Oct 26 18:51:41 why not android:theme="" though ? Oct 26 18:51:57 how and why? not sure, but probably has something to do with not letting android core do any kind of processing, like I said Oct 26 18:52:09 Having a mix or android: and non-android: attributes just causes confusion Oct 26 18:52:46 SimonVT ok, so is it more a style thing, where if you have a theme that has non-android attributes, you just use "app:theme" instead ? Oct 26 18:52:53 It's not possible to make this any more generic, right? (AKA "I can't haz reification?!") http://pastebin.com/4wUnUYyE Oct 26 18:52:54 or whatever namespace Oct 26 18:52:56 SimonVT, true but I think there's more to it than that Oct 26 18:53:29 For example, it seems that I can't accept a Collection there. Oct 26 18:53:47 yes you can Oct 26 18:54:07 TacticalJoke, http://pastebin.com/At4jELgf Oct 26 18:54:09 ravilov: I doubt it really Oct 26 18:54:27 ravilov: That won't compile. Oct 26 18:54:54 "Cannot create a generic array of T" Oct 26 18:55:14 hmmm Oct 26 18:55:28 I think Java arrays have to be typed at compile time. Oct 26 18:56:00 Though maybe there's a hack or something. Oct 26 18:56:23 just an idea, completely untested: http://pastebin.com/index/At4jELgf Oct 26 18:56:46 wait, hold on Oct 26 18:56:48 wrong link Oct 26 18:56:57 Maybe just pass null Oct 26 18:56:58 is there a good audio engine for Android? I want to be able to generate sine wave or other wave (or play a song's first few miliseconds) and to change the volume of the two speaker (connected by jack plug) differently. Thanks Oct 26 18:57:29 TacticalJoke, http://pastebin.com/CzW7BmcQ Oct 26 18:58:04 it does issue a type safety check warning Oct 26 18:58:15 gregtom6: music / midi apps use openal Oct 26 18:58:28 and yes, it is quite a hackish solution Oct 26 18:58:32 That seems to work. Oct 26 18:58:33 but its a 80% solution, because some devices don't work with openal Oct 26 18:58:38 :) Oct 26 18:59:13 monsti: and what can you do with openal? for example balancing a sound? Oct 26 18:59:34 monsti: and what can be a better solution? Oct 26 18:59:40 I guess it can be simplified to [ return (T[]) collection.toArray(); ]. Oct 26 18:59:51 Or wait. Oct 26 19:00:23 hello Oct 26 19:00:25 gregtom6: i have no idea - i just told you what realtime / midi and time critical apps are using Oct 26 19:00:33 I get an exception when I run that code. Doh! Oct 26 19:00:48 Says it can't cast from Object[] to String[]. Oct 26 19:00:58 monsti: and can it balance a sound? Oct 26 19:01:00 your code or mine? Oct 26 19:01:04 Yours. Oct 26 19:01:06 And mine. :D Oct 26 19:01:08 hmm Oct 26 19:01:18 well nevermind then, I guess it can't be done then Oct 26 19:01:36 gregtom6: it's 3D sound Oct 26 19:02:05 monsti: okay, thx Oct 26 19:02:22 similar to opengl - position, up vector, position of the sounds Oct 26 19:02:53 monsti: never used opengl, but I believe you Oct 26 19:03:17 monsti: do you know any good example project for this? Oct 26 19:04:09 i created a task by extending AsyncTask and in that i do an httpclient.execute. the problem is that when i start this task on o'clock on a button, it seems like the http request is sent 4 times. any ideas ?! Oct 26 19:04:38 People on SO are talking about having to use Array.newInstance. Oct 26 19:04:45 e.g.: http://stackoverflow.com/questions/18581002/how-to-create-a-generic-array Oct 26 19:05:01 f Oct 26 19:06:06 Though it's hacky because you have to pass the class type. (Thanks to type erasure.) Oct 26 19:11:08 gregtom6: sorry no idea - i am no expert for openal ;) i just told you that a lot of sound apps i installed use openal Oct 26 19:23:13 is there any convention for package names tthat begin with a digit since you can't use an underscore as java docs suggest (com.example._123name) Oct 26 19:28:37 jrdnull: Could you reword? I don't understand what you're asking. :) Oct 26 19:29:41 no convention Oct 26 19:29:53 Hi everybody Oct 26 19:31:04 for package name, my domain starts with a digit so i cant use com.123foo.bar, java doc suggests start with underscore e.g com._123foo.bar but android doesn't allow an underscore as leading char Oct 26 19:31:15 hello wathek Oct 26 19:31:26 I'm adding Rows to my TableLayout but I cannot find a way to fix the width of the columns in % I mean I want the first column to be 50% and the others to be 10% Oct 26 19:32:03 jrdnull don't forget, there is java package, and manifest package Oct 26 19:32:24 two different things, but if they are the same you can use the ".foo" shorthand for component names Oct 26 19:32:29 any one can guide me please ? Oct 26 19:38:23 found how to fix my problem Oct 26 19:39:42 any opinions on lucasr/twoway-view ? Oct 26 19:43:02 It'd be awesome if the almost every Android API class had example code (showing the class's basic use). Oct 26 19:43:15 I think the .NET MSDN site had this. Oct 26 19:45:41 TacticalJoke i've come to the conclusion that docs for people readin the code, and for people using the code, should be different - and javadoc merges them Oct 26 19:46:05 probably some way to use doclets or whatever to do things differently Oct 26 19:46:12 I agree. Conflating the two is an absolute pain. Oct 26 19:46:55 I guess we could call it "internal documentation versus external documentation". Oct 26 19:47:12 i think there are enough android developers, and enough wasted time per developer, that the product of the 2 per month equals many man-lives of lost productivity Oct 26 19:49:10 In theory, there could be a community effort. Someone could make an independent website that documents everything with nice, simple examples. Oct 26 19:49:15 But it's a tall order. Oct 26 19:53:07 capella firefox OS on rpi :) Oct 26 19:53:24 see , google should have done this, and kept doing this with beagle or something Oct 26 19:53:38 :D Oct 26 19:53:46 at least in the days of jpq there was a maintained beagle/panda android branch Oct 26 19:54:11 i guess it doesn't do much for their monopoly market share though Oct 26 19:55:58 g00s: I see your scrollback ... lucasr is a Moz Mobile team guy ... :) Oct 26 19:56:13 He's reviewed some of my patchs Oct 26 20:01:48 capella :) yeah i notied he worked for moz Oct 26 20:08:58 hye kjeldahl how are you ? still using emacs for android dev? Oct 26 20:28:10 hi im trying to write a fps game i am trying to figure out how to translate a 3d target in relation to the 2d touch screen, any ideas? Oct 26 20:32:59 read up on matrix math Oct 26 20:34:22 Hi, Im trying to make an intent work to transfer a String array to another activity. could someone take a look at what im doing wrong? The variable im putting in isnt NULL, but it is when I pull it out of the Intent.. http://pastie.org/9677415 Oct 26 20:38:52 Nindustries: Is Intent.getStringArrayExtra("words") returning null? Oct 26 20:38:57 yes Oct 26 20:39:07 I noticed when debugging Oct 26 20:39:14 Took me quite some time to find :p Oct 26 20:39:20 I think it's because List.toArray is returning an Object. Oct 26 20:39:26 You need the other toArray overload. Oct 26 20:39:51 http://developer.android.com/reference/java/util/List.html#toArray(T[]) Oct 26 20:40:00 It's returning an Object[], rather. Oct 26 20:40:42 hmmm Oct 26 20:41:18 I see. I don't think I quite get what the other toArray does tough Oct 26 20:41:28 What should I use as an argument and why? Oct 26 20:41:37 Nindustries: You need to give it an array of the right type. lol Oct 26 20:41:43 ooh Oct 26 20:41:48 It's because Java generics use type erasure. At compile type, the runtime can't determine the type. Oct 26 20:41:55 This is a hack around that. Oct 26 20:42:35 s/compile time/runtime/ Oct 26 20:42:44 Whatever. My brain is fried. Oct 26 20:43:35 If you google "java list toarray" you'll get loads of info about this. Oct 26 20:43:36 So something like words.toArray(new GuessWord[1]) should do the trick I presume Oct 26 20:43:53 As the "new GUessWord[1]" is only used to determine the type Oct 26 20:44:26 http://stackoverflow.com/questions/9572795/convert-list-to-array-in-java Oct 26 20:45:19 You shouldn't be calling onRestoreInstance state manually, BTW. Oct 26 20:46:20 oh Oct 26 20:46:46 I wasn't sure Oct 26 20:47:20 Are you handling your activity being killed on screen rotation? Oct 26 20:47:50 Perhaps you don't need to in this case. Oct 26 20:48:22 It's my first app and there might be some quirks in it Oct 26 20:48:26 so there might* Oct 26 20:49:17 I tought the onRestoreInstanceState stuff was for when you app is pauzed or something Oct 26 20:50:30 It's a callback. I'm not sure you should ever be calling it. Oct 26 20:52:34 Nindustries: When your activity was killed and is being recreated, the runtime calls onCreate(Bundle) and onRestoreInstanceState(Bundle). Oct 26 20:53:16 Ah, I see Oct 26 20:53:32 And this happens on orientation change and pauzing? Oct 26 20:54:03 It happens on orientation change by default, and it can happen if your app is running in the background and the OS is low on memory. Oct 26 20:55:11 hey! Where is a good place to store a text file which I want android to read from? Oct 26 20:55:29 g00s: Absolutely, although I'm not doing a lot of native stuff right now; Cordova believe it or not... Oct 26 20:55:34 I have a JSON file and I want to read from it when my app starts up but I don’t know the proper filepath Oct 26 20:56:27 AlexAbraham: http://developer.android.com/training/basics/data-storage/files.html Oct 26 20:57:29 That is for reading and writing to internal/external storage Oct 26 20:57:36 what if I already have a text file Oct 26 20:58:41 Ok, thanks TacticalJoke Oct 26 20:59:04 AlexAbraham, assets? Oct 26 20:59:17 right that sounds about right Oct 26 20:59:28 how do I access a file from assets folder/how do i create assets folder Oct 26 20:59:38 Quite easy, google it Oct 26 20:59:39 Nindustries: Is getStringArrayExtra working now? Oct 26 20:59:45 Yes, thank you! Oct 26 20:59:50 You can even google pretty much the exact query. Oct 26 20:59:54 e.g., http://stackoverflow.com/questions/7109372/include-local-json-file-in-eclipse-android-project Oct 26 20:59:59 Okay, good. :) Oct 26 21:01:17 kjeldahl are you enjoying Cordova ? Oct 26 21:02:44 Nindustries: I wrote a helper method for that toArray thing just today: http://pastebin.com/LVpaH4JA Oct 26 21:03:10 Just to avoid the lack of neatness we otherwise get. Oct 26 21:03:26 hehe, yeah Oct 26 21:03:27 Though there needs to be one method per type. Oct 26 21:03:36 Because, again, of type erasure in Java generics. Oct 26 21:03:56 is there a way for a class which does not extend activity to read from a file? Oct 26 21:04:53 g00s: Thing is, when I need to do GUI programming, _everything_ sucks, including Android native and libgdx (scene2d...). Modern browsers, with React and using CSS flexbox, is pretty good, IF cross device "recognition" is more important that native look. Oct 26 21:04:53 yes, but you should ask your real question with detail Oct 26 21:04:54 hey Oct 26 21:05:09 anyone here succeed to install Google Play on the Android Emulator? Oct 26 21:05:12 is there seriously no better way to pass objects (references) between fragments other than setTargetFragment() and calling onActivityResult() ? Oct 26 21:05:28 elichai2 I did it using genymotion Oct 26 21:05:49 elichai2 https://stackoverflow.com/questions/20121883/how-to-install-google-play-services-in-a-genymotion-vm-with-no-drag-and-drop-su Oct 26 21:05:51 AlexAbraham, genymotion supports adb and telnet? Oct 26 21:05:59 yes Oct 26 21:06:04 good :) Oct 26 21:06:17 and it is wayyyyy faster than the default android emulator Oct 26 21:06:39 g00s: And regarding native UIs, don't even get me started describing the feeling with iOS... Oh the suckiness. Oct 26 21:06:45 wait I don’t know about telnet Oct 26 21:06:52 AlexAbraham, you don't accidentally got some pentesting tools, right? Oct 26 21:07:07 the intel atom x86 image is super fast here Oct 26 21:07:31 with haxm Oct 26 21:07:34 Ravenheart: A lot faster here, too, though still not amazing. Oct 26 21:07:44 its buttery smooth Oct 26 21:07:52 hmmm TacticalJoke , it's null after all.. ; intent.putExtra("words", words.toArray(new GuessWord[words.size()])); Oct 26 21:07:54 feels faster than my actual lg g2 Oct 26 21:08:51 Hmm. You're calling getStringArrayExtra, right? Oct 26 21:09:22 But you're putting in a GuessWord[]. Oct 26 21:09:33 oh Oct 26 21:09:33 lol Oct 26 21:10:18 hmm no Oct 26 21:12:12 NULL :/ Oct 26 21:13:18 Nindustries: Are you putting in a GuessWord[] and trying to get a String[] (calling Intent.getStringArrayExtra)? Oct 26 21:13:55 Yeah, I just figured that out Oct 26 21:14:04 What is a GuessWord? Oct 26 21:14:55 IT WORKS ^^ Oct 26 21:15:00 What a stupid mistake.. :P Oct 26 21:15:04 Making a Hangman game Oct 26 21:15:19 and every word to be guessed is a GuessWord Oct 26 21:16:35 TacticalJoke++ Oct 26 21:17:14 How did you get it working? I was worried things were about to become more complex (having to implement Parcelable, for example). Oct 26 21:18:00 Just curious. :) Oct 26 21:18:37 is guessword just a class that has a string? Oct 26 21:20:30 Kind of Oct 26 21:20:52 TacticalJoke, In the end I added a simple loop to put all Guesswords in a string array Oct 26 21:20:56 using their respective toStirng Oct 26 21:21:14 Okay... Oct 26 21:21:58 One thing I would point out is that, if this list of GuessWords is something that should be global to your app (e.g., several activities need to access it), there is an argument for making it a global (a static field of some class). Oct 26 21:22:18 In most programming, that's a serious no-no, but in Android I think it's sometimes forgivable. Oct 26 21:22:33 hey, what's a decently fast way to test APKs on windows that'll allow me to use mock locations? Oct 26 21:22:46 Aha Oct 26 21:23:00 I'll use Intents for now Oct 26 21:23:03 Thanks anyway Oct 26 21:23:36 by "test", i suppose i just mean run; it'd be complicated to write an integration test for what i have to test about them Oct 26 21:23:44 (mostly because i'm not very familiar with testing) Oct 26 21:41:43 JakeWharton do you know the meaning of app:theme (instead of android:theme) here http://stackoverflow.com/questions/26485676/no-r-attr-textprimarycolor-in-appcompat-v7-r21 and http://android-developers.blogspot.com/2014/10/appcompat-v21-material-design-for-pre.html Oct 26 21:42:11 seems very deliberate Oct 26 21:42:14 It's just a reference to a style Oct 26 21:42:23 And then they pass that to a ContextThemeWrapper Oct 26 21:42:50 how come its not android:theme though ? Oct 26 21:43:13 Does that attribute even exist? Oct 26 21:44:18 and then to make it more interesting, somebody did that here http://stackoverflow.com/questions/26490126/appcompat-style-background-propagated-to-the-image-within-the-toolbar Oct 26 21:44:29 and Chris said, "no don't do that" :D Oct 26 21:44:40 * g00s headdesk Oct 26 21:45:10 g00s: I see you as a soldier fighting a good battle. Oct 26 21:45:32 That's how ContextThemeWrapper works. No surprises there. Oct 26 21:47:30 minor gradle question: why is it that gradle projects typically seem to include a gradlew/gradlew.bat file? Oct 26 21:47:38 am i supposed to use that versus a system-wide gradle install? Oct 26 21:48:01 Yes Oct 26 21:48:04 Absolutely Oct 26 21:48:14 Don't even bother installing Gradle system wide Oct 26 21:48:16 Certanly. Oct 26 21:48:19 apologies, i'm very new to gradle... Oct 26 21:48:54 i've only used it inside of IDEs, where it usually makes that choice for me. i don't think i even have a system-wide gradle install, just vaguely recalled that it was an option Oct 26 21:50:23 ok, so this is my problem: i have the source code for around twenty assignments that have been submitted to me to grade, most of which have been written using gradle (thankfully, since i'm hoping to automate creating APKs) Oct 26 21:50:44 if you're using android studio/intellij, does it tend to embed a lot of machine-local paths in your project? Oct 26 21:50:59 if so, i have a feeling i'm not going to be able to compile these things without a lot of pain Oct 26 21:51:13 Probably. But you shouldn't be putting those in source control or in the build.gradle Oct 26 21:51:38 Btw, do we have a decent solution for storing signing information outside build.gradle? Oct 26 21:51:41 well, they're students; they just submitted their project directories to me Oct 26 21:52:14 i'm guessing i'm going to have a long night of manually importing projects into intellij, fixing paths, etc. Oct 26 21:52:35 Hello, I switched my theme to Theme.AppCompat and I get Material, but when I try to set a "android:colorPrimary" i get an error that I need API level 21, how do I make these color settings work with AppComap? Oct 26 21:52:38 diphtherial: rm -rf .idea && find . -name '*.iml' -exec rm {} \; Oct 26 21:52:47 Hi, I was wondering if it were possible to cancel a sync via nfc? Oct 26 21:52:59 AppCompat* Oct 26 21:53:02 All you should really have to do is open the root build.gradle and select delete existing project if it prompts Oct 26 21:53:07 hmm, even though IDEA tends to bake SDK path into local.properties or whatis Oct 26 21:53:09 JakeWharton: that'll be helpful for stripping out the project metadata, thanks Oct 26 21:53:14 and then grab SDK path from ANDROID_HOME Oct 26 21:53:21 Like if two devices were to sync between each other but give the user the option to click cancel sync Oct 26 21:53:31 while the sync is occuring Oct 26 21:54:07 Nohus just use "colorPrimary" without "android:" Oct 26 21:55:04 yeah, it seems that it's using whatever's in the project metadata to locate the SDK, unfortunately: https://dpaste.de/co63 Oct 26 21:55:38 diphtherial, did you look at the local.properties file in the project dir? does it exist? Oct 26 21:55:41 Memorion: Works! Thanks! Oct 26 21:56:05 Mavrik: it does, although i thought it wouldn't be relevant if i was using gradle from the command line versus using IDEA Oct 26 21:56:18 and it contains, predictably, the incorrect SDK path Oct 26 21:56:29 :) Oct 26 21:56:38 (IIRC, just deleting it should work if you have ANDROID_HOME env set) Oct 26 21:56:46 ah, great :D thanks! Oct 26 22:03:08 which is better style?: Oct 26 22:03:10 Tablet: Oct 26 22:03:11 Tablet: Oct 26 22:03:13 Tablet: Oct 26 22:04:25 I prefer the first. :/ Oct 26 22:07:20 flan3002: Curious as to why you prefer the first, that is the style I've seen in examples, but the 2nd seems more natural to me. Trying to understand the pros &cons... Oct 26 22:07:51 No pros and cons. Just the usual snake vs Camel vs Pascal argument. Oct 26 22:09:52 I've managed to avoid writing in Pascal, when I was first at university we used FORTRAN, then universities here stated using Pascal, and later Modula-2, went back to University when C was the vogue... Oct 26 22:10:10 Uhm... Oct 26 22:10:25 * Nivag is ancient Oct 26 22:13:34 the first style is necessary when names are not case sensitive, Like in tables names in PostgreSQL, but Java is case sensitive Oct 26 22:14:43 anyone have strong feelings/preferences for snake vs camel names? Oct 26 22:16:35 the book i've been following recommends the first style Oct 26 22:16:45 java preffers camelCase Oct 26 22:17:08 and i've rarely seen PascalCase other than class names Oct 26 22:17:09 For Classes it's PascalCase. Oct 26 22:22:30 the 2nd 2 have shorter names - which attract me Oct 26 22:24:04 2nd 2? Oct 26 22:24:11 It's not about shortness, it's about readability. Oct 26 22:24:49 year I remember arguing with team mates in my first Java job about differentiating class names from class instance variables by virtue of the capitalization of the first letter in 1998 Oct 26 22:25:11 Tablet: Oct 26 22:25:12 Tablet: Oct 26 22:25:14 Tablet: Oct 26 22:25:41 those arent anything you just said Oct 26 22:25:48 I think the latter 2 are more readable as well, shortness is an added bonus Oct 26 22:26:13 whatitis: ? Oct 26 22:26:33 those are neither classes or instance variables Oct 26 22:26:42 true Oct 26 22:27:09 those should all be lowercase with _ separating Oct 26 22:27:17 why? Oct 26 22:27:31 its resources Oct 26 22:28:15 and should have maybe appropriate prefix etc Oct 26 22:28:24 I know, but why if it is a resource, then using underscores is preferred? Oct 26 22:28:32 or actual contextual names Oct 26 22:29:00 cause thats how it works? Oct 26 22:31:02 I am trying to do the proper things in: http://paste.fedoraproject.org/145395/43625611 to replace the hard coded android:text literal Oct 26 22:31:16 just remember there are multifacet ways to make things, each has their own standards Oct 26 22:31:50 whatitis: which is why I'm trying to understand the pros & cons! Oct 26 22:32:27 your ids I wouldnt go with camelCase Oct 26 22:32:50 I'm used to many standards in different places Oct 26 22:32:51 id stick all lower, prefix and _ seperators Oct 26 22:33:35 thats cool, but with android, keep it as android as ya can Oct 26 22:33:46 label.tablet_text ? Oct 26 22:34:39 helps with reading and understanding what you read if you ignore all&try to follow with what you are working with Oct 26 22:34:51 as an id? Oct 26 22:35:19 I'm doing my first Android app for a university contract, so as far as is practicable in my situation, I want to conform to the Android norms Oct 26 22:36:16 so I can set my own standards, to some exten Oct 26 22:36:23 extent Oct 26 22:38:03 whatitis: so what is your advice for a string name for line 20 in my pasted file? Oct 26 22:38:11 Nivag: But, honestly, you should be spending your time on other things, than discussing naming conventions. Even more so, now that whatitis and me have told you that snake_case is more common/preferred. Oct 26 22:38:21 I have just implemented the android SDK into my app, and am using the share dialog, but it is taking 20-50 seconds for it to open each time. Has anyone else experienced this? Oct 26 22:38:25 okay Oct 26 22:38:29 I found one related question about it on SO Oct 26 22:40:05 flan3002: I will adopt snake style, now just checking on the prefix business Oct 26 22:41:20 prefix business is just to expand readability, activity_, fragment_ etc, make em as readable as you can to specify there scope Oct 26 22:41:40 their Oct 26 22:43:33 Nivag: resouce files should contain only a-z0-9_ and you access them in the same way e.g. R.drawable.my_image but you can do R.string.myString. So if you want to use two different conventions for the same thing nobody can stop you Oct 26 22:43:48 whatitis: yeah, I get the namespace concept Oct 26 22:44:07 not namespace as much as scope of use Oct 26 22:44:37 icedp: that is an extremely compelling argument, obvious in retrospect! thanks! Oct 26 22:46:40 thanks all! Oct 26 22:48:13 Nivag you can look at iosched 2014 source code for some conventions Oct 26 22:50:59 or as flan3002 said before I saw it, just the normal snake vs camel vs pascal. all three are used. just remember those all 3 work in android for their respective cases Oct 26 22:52:38 g00s: thanks, have looked at it briefly, will go back and look at it more later... (trying to finish the GUI for the prototype in the next few days, to show my user, who will probably wan changes...) Oct 26 22:53:07 users always want change :) Oct 26 23:02:27 is there a way to specify where the debug APK ends up when running assembleDebug? Oct 26 23:03:08 it'd be great to automate the testing that i'm doing too, but i'm not sure if it's feasible Oct 26 23:04:01 basically, i have to run the APK in an emulator, interact with the app to enter text in a field and potentially press a button, then supply the emulator a mock location and hit a REST API with which the app is supposed to communicate to see if it's registered itself Oct 26 23:04:29 i'll have to eventually supply another mock location and see if it's unregistered itself (it's a presence app, so it notifies the server when it's on campus, sends updates as long as it is, then removes itself when the user leaves) Oct 26 23:08:04 whats the exact question? how to supply mock locations to emulator? bet thered b quite a few examples if its feasible Oct 26 23:09:00 that's true, and yeah...well, the question is more about how to do integration tests that involve REST APIs Oct 26 23:09:10 starting with figuring out how to supply mock locations to the emulator is a good idea, though Oct 26 23:11:21 start with mock locations emulator, check it out&come back Oct 26 23:26:04 sounds reasonable Oct 26 23:26:52 on a side note, is there a relatively easy way to create a gradle workspace using just source code to start? Oct 26 23:27:15 some of these students just turned in a zip with AndroidManifest.xml in the root, then res and src as subdirs Oct 26 23:30:20 that question is...turning in a zip could be a compiled apk, but with src and such sounds like just their workspace of that project zipped. gradle worspace isnt what your question is Oct 26 23:30:35 Is there a way to determine what app is currently playing audio? Oct 26 23:30:52 the one playing audio? Oct 26 23:32:02 ank, you should dial in more Oct 26 23:32:15 wait never mind, I don't care anymore: audioManager.dispatchMediaKeyEvent(); Oct 26 23:32:20 this will do the job for me Oct 26 23:32:32 yes as that relates Oct 27 00:36:21 I hate all these "editText.getText().toString()" calls. Verbose. Oct 27 00:36:37 Makes me wanna extract a method every time, but it'd feel like overkill. Oct 27 00:52:41 Anyone override drawChild in a listview? I am trying to rotate each child based on the distance from the center of the listview (to make it look like a rolodex or something) but can't get the camera/translatio/rotation to work Oct 27 00:54:36 here;s the code http://pastebin.com/fMWmxirH Oct 27 00:59:27 Using retrofit, I make API calls right in the onCreate method, then store the result in an instance variable, am I doing it wrong? Oct 27 01:17:09 is there a way to make a gradle android project from existing source code without having to use an IDE? Oct 27 01:17:42 i just have the manifest and the src and res directories Oct 27 01:31:54 create a build.gradle Oct 27 01:33:10 In http://paste.fedoraproject.org/145411/43734341 the use of android:elegantTextHeight generates an error. What is the best way to prevent the top of the 'd' from being cut of in the display? Oct 27 01:33:17 also download the gradle wrapper Oct 27 01:33:56 the password hint is 'enter password' Oct 27 01:35:38 or you can just install gradle locally Oct 27 01:36:04 I don't quite get the point of shipping gradle with every android project Oct 27 01:40:12 pfn: i was informed very emphatically that that's how it should be Oct 27 01:40:15 i don't get it either Oct 27 01:42:52 probably because gradle doesn't have a way of specifying gradle version Oct 27 01:43:10 so it demands to be shipped with the project for repeatability Oct 27 01:43:44 ah, fair enough Oct 27 01:43:54 rubbish... Oct 27 01:44:12 to give some idea of why i'm asking, i'm dealing with a large number of assignments that i have to somehow compile Oct 27 01:44:19 * pfn just won't use gradle Oct 27 01:44:26 * loke never used gradle Oct 27 01:44:28 some were built using gradle, others apparently using eclipse. some just include the manifest, source, and assets directories Oct 27 01:44:36 I barely know what it is (It's a build tool like ant, yes?) Oct 27 01:44:42 gradle seems like it'd be easier if i want to automate this somehow Oct 27 01:44:48 loke: that's correct Oct 27 01:44:50 diphtherial, I recommend my sbt plugin Oct 27 01:45:06 I just build using IDEA natively Oct 27 01:45:38 pfn: interesting; i'm taking a look at it and sbt currently Oct 27 01:45:48 easiest posaible way to just build arbitrary android projects Oct 27 01:47:14 loke, production builds should never be generated by ide Oct 27 01:47:56 pfn: It's a valid argument. Oct 27 01:48:07 pfn: For one-man projects, it's generally OK though Oct 27 01:48:22 pfn: As soon as you have a second developer, you are correct. Oct 27 01:48:29 You should always produce builds in an automated fasion even for one-man projects. Oct 27 01:48:33 nah, its just about never ok Oct 27 01:48:40 Otherwise you’re asking for trouble. Oct 27 01:48:48 jfpoole: : IDEA can do that though Oct 27 01:48:57 I just use ant for it Oct 27 01:49:13 (if I need to, which I don't right now :-) ) Oct 27 01:50:19 how do i declare a viewpager inside a relativelayout? Oct 27 01:50:27 this won't display anything Oct 27 01:50:35 pfn: Do you use Android Studio? Just wondering. Oct 27 01:50:44 no Oct 27 01:50:57 IntelliJ Oct 27 01:51:05 K. Oct 27 01:51:29 Speaking of Android Studio... Last I looked, AS was a stipped-down version of IDEA. Have they added any features to AS which is not in IDEA? Oct 27 01:52:33 no Oct 27 01:52:47 pfn: Do you use Maven? Oct 27 01:52:48 everything in android studio will make it into intellij Oct 27 01:52:51 no Oct 27 01:52:59 well, I kinda do Oct 27 01:53:19 one of my projects uses maven for the officia Oct 27 01:53:23 builds Oct 27 01:57:17 using android:includeFontPadding="true" doesn't generate an error, bur also makes no difference Oct 27 01:58:50 my AS keeps disconnecting with logcat. even if i restart logging (from AS - circly icon) or adb kill-server. but logcat from the command line is fine; wasn't this stuff fixed like a year ago ? Oct 27 02:02:28 i have those errors with AS but i just kill the adb process and re lauch Oct 27 02:03:26 (re-run the app) Oct 27 02:09:28 nifty, seems that sbt installed for windows will run under cygwin, albeit not without some complaining Oct 27 02:09:52 people still use cygwin? wow... Oct 27 02:10:12 i'm surprised that you're not more amazed that i use wind0ze Oct 27 02:10:27 l0l h4x0rz Oct 27 02:10:31 oh, I know that people mistakenly use windows for development Oct 27 02:10:31 I just tried to revert a file (reload it from disk) in IntelliJ. That feature doesn't seem to exist. StackOverflow confirmed. Wut. Oct 27 02:11:20 Leeds: i have some software that i'd prefer to use on windows when i'm at home, which i currently am Oct 27 02:12:41 but yeah, i'm using cygwin because it's easier to write scripts in bash than it is in a DOS batch script... Oct 27 02:14:31 TacticalJoke: IDEA basically saves all the time automatically. Reverting from disk doesn't make sense Oct 27 02:14:44 TacticalJoke: You have local history, which is probably what you're looking for Oct 27 02:15:24 I see. Oct 27 02:29:03 pfn: i'm a little confused about how to install your sbt plugin Oct 27 02:29:13 do i have to build it using sbt first? Oct 27 02:35:04 no Oct 27 02:35:49 addSbtPlugin in your ~/.sbt/0.13/plugins/too.sbt Oct 27 02:37:52 foo Oct 27 02:56:12 when using appcompat, android:textColor="?android:attr/textColorPrimaryInverse" is giving me white, it should be dark. anyone else see that : Oct 27 02:58:35 i think what i should do is leave this stuff alone for a while, maybe come back to it in a month or so when its less hassle Oct 27 02:58:46 hopefully Oct 27 02:58:51 g00s, you define those in your styles.xml file... Oct 27 02:59:40 chaosagent shouldn't textColorPrimary be defined ? Oct 27 02:59:56 you have to do all of them if you want custom colors **** ENDING LOGGING AT Mon Oct 27 03:00:00 2014