**** BEGIN LOGGING AT Sat Aug 10 02:59:58 2013 Aug 10 05:42:28 Hello Aug 10 07:28:26 hey people. I'm thinking of making a pretty front-end to mathematical expressions. Is there any library I can start with or do I actually have to code the entire design from scratch? If it's the latter, how do I even begin to do that? Aug 10 07:32:31 doomrobo: You should at least see if there are any TeX libraries supporting android, and alternatively how well supported MathML is on the browsers on the devices you're targeting. Aug 10 07:36:12 kjeldahl the thing is that I'm not just displaying, I want users to be able to interact with individual expressions in the displayed math Aug 10 07:40:45 doomrobo, like editing? Aug 10 07:41:12 or what Aug 10 07:41:48 mniip editing, saving, transforming, etc. Aug 10 07:56:22 doomrobo: Sounds like you have a lot of work ahead of you. What you're asking for is very complex, and even more so on touch devices. There's a reason most math prettyprinters use a separate formatting language (which is normally also easier to write than the fancy "math editors"). Aug 10 08:00:08 hi all, does anyone know how I can find keystores on my system? There was a corruption of one of my ecipse workspace project files, and when I set up the workspace again the keystone isn't being remembered by ADT Aug 10 08:00:22 is there a way to find all the keystore files on disk and try them all? Aug 10 08:01:32 keystore will be in default location Aug 10 08:01:36 depending on OS Aug 10 08:01:48 ~\.android Aug 10 08:01:55 probably Aug 10 08:02:48 StingRay_, >tilde >backslash Aug 10 08:03:07 you mean .keystore.debug? Aug 10 08:03:15 well whatever Aug 10 08:03:16 or rather debug.keystore? Aug 10 08:03:26 I tried that, unfortunately the signature in that differs :( Aug 10 08:03:41 well I dont know where you save your stuff or what you call it :) Aug 10 08:05:44 emilevictor: Good thing you have backups or can go back to your SCM tool and retrieve them then! Aug 10 08:07:55 I do actually, didn't know whether it would actually fix things though Aug 10 08:07:59 I'll give that a go in another folder Aug 10 08:09:29 Default location - if you're using the defaults - depends on the tool you are using (Eclipse or AS probably, and AFAIK both default to ~/.android/debug.keystore for the debug key, not sure about release). Should be easy enough to figure out using Google. Aug 10 08:09:52 Anyway, defaults are outside of the workspace I believe, so the keys shouldn't have been affected. Aug 10 08:10:32 Of course there are plenty of good reasons not to use the defaults, or if you do, make sure to back it up (if it lives outside your source tree; I usually keep mine in so I do not have to worry about it). Aug 10 08:34:30 it would be strange is the release key was checked into scm , no ? Aug 10 08:35:15 g00s: In a private repo, how so? Aug 10 08:35:47 hm Aug 10 08:37:23 kjeldahl Just read your response. Thanks. I was afraid someone would say that :( Aug 10 08:40:56 doomrobo: Yeah, wish you would have asked before it happened! "An ounce of prevention is worth a pound of cure..." Aug 10 08:45:46 Any idea if ICS runs on armeabi devices (i.e., pre ARMv7)? Aug 10 08:46:56 kjeldahl Since you say I'd be doing this all from scratch anyway, would I need to implement all my drawing from the ground up or is there something *anything* I can use? Aug 10 08:55:29 I doubt it, considering it's a mix of a text and layout editor (i.e less regularity than normal editors). Aug 10 09:03:09 alright. Thanks kjeldahl Aug 10 09:16:26 Hey guys, do you know of a way to get the package name of the notification bar on a phone? Aug 10 09:33:09 I hope it always is com.android.systemui Aug 10 09:51:22 anyone used actionbar pull to refresh Aug 10 10:03:32 Ash__, what pull to refresh have to do with actionbar? Aug 10 10:04:10 https://github.com/chrisbanes/ActionBar-PullToRefresh Aug 10 10:04:16 you know the one used in gmail app... Aug 10 10:04:40 works with the stock actionbar Aug 10 10:59:50 Ash__, aaah I see :) Aug 10 11:32:35 Hey guys, I'm using setTheme() to set the application theme, but it's only applying to my Main Activity from where I call it but not on the other activities? Why is this? :( Aug 10 11:36:09 pretty quiet today Aug 10 11:39:07 Hello, I have a (rooted) Nexus 7. Ever since I upgraded to 4.3, ADB stopped seeing my device. The android "bar" says "USB Debugging connected", and the device does show up as "Google NExus 7 ADB Interface" in the device manager, but "adb devices" returns an empty list Aug 10 11:46:29 CocoStorm: you should set your theme in AndroidManifest.xml. It will be applied then to all your activities. Aug 10 11:47:08 wouterP: Yes but I want to do it programatically because I have a preference screen which will allow users to set light or dark theme Aug 10 11:47:41 Everything works at the moment but the only activity that the theme is being applied to is the main activity Aug 10 11:48:53 CocoStorm: oh, okay Aug 10 11:49:08 CocoStorm: try this http://cl.ly/Qk8E Aug 10 11:49:59 wouterP: Thanks, will have a look Aug 10 11:58:16 wouterP: ahh doesn't work Aug 10 11:59:14 You're banned from asking any further questions without accompanying code, CocoStorm Aug 10 12:00:48 * CocoStorm is now making a pastebin Aug 10 12:00:56 SimonVT: sure, one sec :D Aug 10 12:05:52 http://pastebin.com/wDXT5QJQ Aug 10 12:10:46 Are you showing us the one that works? Aug 10 12:12:38 it's my MainActivity class which works but only for that particular activity Aug 10 12:13:15 I assume setTheme sets the applications theme so it should work on all activities so there is no code in the preference activity to do with setting themes Aug 10 12:23:29 Am I doing it wrong SimonVT ? Aug 10 12:27:05 CocoStorm: can you link the code that doesn't work with an activity as superclass for your activities? (from that tuto) Aug 10 12:27:11 No, setTheme sets the theme for that context Aug 10 12:27:29 public void setTheme (int resid) Aug 10 12:27:29 Added in API level 1 Aug 10 12:27:29 Set the base theme for this context. Aug 10 12:27:38 is if (Build.VERSION.SDK_INT >= 16) {...} sufficient to distinguish API specific code? Aug 10 12:27:44 yep Aug 10 12:27:56 SimonVT: ah balls. I thought it sets the application theme Aug 10 12:28:02 Use the Build.VERSION_CODES constants tho Aug 10 12:28:15 so I do need code in that preference activity to set that theme simultaneously Aug 10 12:28:17 hm Aug 10 12:29:11 hi hello all Aug 10 12:29:29 i am working with CalendarContract Aug 10 12:29:32 I want to kill however designed how works Aug 10 12:29:34 how do i parse this: Aug 10 12:29:35 FREQ=MONTHLY;BYDAY=MO,TU,WE,TH,FR;BYSETPOS=-1 Aug 10 12:29:36 ? Aug 10 12:29:46 is this a known data format? Aug 10 13:02:44 hi Aug 10 13:03:13 anybody here Aug 10 13:08:22 ThanhND: just ask a question and someone will maybe answer it Aug 10 13:51:01 I can't get my app to be a launcher. I added an intent filter for HOME DEFAULT and MAIN. I thought that was all that was necessary. Aug 10 13:58:29 Hey guys, I have a preference activity which has an option to change the theme of the app. It only works when you click back from the ActionBar but if you click back from device's back button, it doesn't apply. The setTHeme() is called before the onCreate() so I'm guessing clicking back on the ActionBar recreates the activity and kills the preference screen but doesn't with the back button of th Aug 10 13:58:30 e device? Aug 10 13:58:56 when I mean before the onCreate() I meant, before the call to inflate the layout Aug 10 13:59:02 within onCreate() Aug 10 13:59:04 my bad Aug 10 13:59:35 So I was wondering what would be the best option here? Aug 10 14:03:08 CocoStorm: onCreate is not called when clicking the hardware back button, but onResume does. Try calling setTheme in onResume Aug 10 14:04:39 wouterP, I see will try that out. So, when clicking the hardware back button, onResume is called because the previous activity has not been killed Aug 10 14:05:35 wouterP, so that means when clicking the up button on the action bar, the previous activity is killed? Aug 10 14:09:04 CocoStorm: euh, I'm not sure about that. But if you take a look at http://cl.ly/Ql10, you can see that returning with the back button calls directly onResume. Aug 10 14:10:11 wouterP, hmm that's strange i've called setTHeme from onResume and it didn't work Aug 10 14:11:45 wouterP, where does it mention the back button in that activity lifecycle Aug 10 14:29:23 anyone? Aug 10 14:29:41 updating the theme in onResume doesn't work Aug 10 14:30:22 You're right. Aug 10 14:32:43 SimonVT, why :( Aug 10 14:33:56 Because the decor view is installed as soon as you touch the content view when the Activity is created (on ICS+, during super.onCreate SimonVT, but I even added setcontentview() ? Aug 10 14:36:54 That just puts your content in the decor view Aug 10 14:36:54 SimonVT, what should I do instead? I've added recreate() and it goes into a loop Aug 10 14:37:02 The decor view is what contains the action bar, etc Aug 10 14:37:04 And your content Aug 10 14:37:14 I see Aug 10 14:37:24 So yeah, you have to recreate the activity Aug 10 14:38:51 SimonVT, using recreate(); ? Aug 10 14:38:57 I added that in onresume and all hell broke loose Aug 10 14:39:18 Kinda stupid to call it every onResume Aug 10 14:40:53 SimonVT, where else could I call it? Aug 10 14:41:23 You can call it in onResume if you want Aug 10 14:41:26 Just not EVERY onREsume Aug 10 14:41:36 Don't you see why that would fail? Aug 10 14:41:49 You could also use onActivityResult Aug 10 14:42:24 Or start the main activity, clear top, put something in the intent you can parse in onNewIntent Aug 10 14:42:26 how do i call it in one onresume Aug 10 14:42:31 ah will try onactivityresult Aug 10 14:44:31 You're seriously missing some really basic stuff here.. Like the fast that onResume is called after the activity is created Aug 10 14:44:37 s/fast/fact/ Aug 10 14:45:10 OnActivityResult didn't work Aug 10 14:47:05 SimonVT, I'm very confused, how can I prevent calling it in every onResume()? Aug 10 14:47:17 It gets called everytime the activity is created Aug 10 14:55:30 With an if statement Aug 10 15:00:03 pfn: ping? Aug 10 15:04:47 SimonVT, I'm a bit confused about the logic that would be in the if statement Aug 10 15:05:26 SimonVT, how can you check whether the back button has been pressed Aug 10 15:05:45 public void onResume() { if (backButtonPressed) { recreate(); } } Aug 10 15:06:02 Check if the theme has changed Aug 10 15:06:08 The settings activity can tell you that Aug 10 15:08:08 SimonVT, there is a method for it? Aug 10 15:08:50 onActivityResult.. Aug 10 15:17:28 SimonVT, ah, got it. I've added recreate() in activityForResult the problem was I didn't have startActivityForResult Aug 10 15:17:33 cheers lol Aug 10 15:18:19 SimonVT, doesn't recreating all the time make the app a little less efficient? Aug 10 15:18:43 Hopefully you're only recreating when the theme has actually changed Aug 10 15:19:12 Lol, ermm.. Aug 10 15:19:51 I only have startActivityForResult(i,1); and in onActivityResult I just have recreate(); Aug 10 15:20:00 I'm not really sure how to check whether the thing has changed Aug 10 15:20:41 Time to start reading Aug 10 15:20:56 SimonVT, Nnnnnnnooooooooo Aug 10 15:20:57 I'd start in the docs for Activity Aug 10 15:23:09 SimonVT, so it has something to do with using the startActivityForResult? Aug 10 15:31:40 using com.w3c.dom, is there a way to get a given node's children as a string representation of the tree? Aug 10 15:32:25 NM this appears to be what I'm looking for: http://stackoverflow.com/questions/1219596/how-to-i-output-org-w3c-dom-element-to-string-format-in-java Aug 10 15:33:00 does SurfaceFlinger still use OpenGL ES 1.x? Aug 10 15:38:37 SimonVT, I'm using preference manager to check whether any preference has been changed.. good enough right? :) Aug 10 16:08:40 Is it possible to have a contact list view like in the native app so when I add a contact it would also add to my listview? Aug 10 16:20:28 Hi. I shifted to playing my videos inside my android app using the youtube API. I have two exact copies of the same app as different eclipse projects. one is working fine and the other is saying "connection to server is lost" and i cannot find any reason for that. my connection is working fine Aug 10 16:20:45 so what would be the problem? Aug 10 16:30:22 I have a list view that sometimes fail to load content Aug 10 16:31:28 in an AsyncTask, I have a query to the content provider to get the number of items in the database Aug 10 16:31:49 and sometimes, that query does not appear to finish Aug 10 16:33:06 actually, strike that, it appears to be getContentResolver() that never returns anything Aug 10 16:50:53 I am working on an App where i want to open a mail client and allow user to enter mail ids to send mail.Once User clicks on send button mail should be sent and return back to the my app with all the mail ids i have sent mail to. I have done everything but i dont know how i can get the callback with all the mail ids user has sent mail to.Please if anyone knows anything i can do to get the mail ids would be a great help. Aug 10 16:54:42 Android03: I'm working on something similar.. Stuff the ID's up an SQL database on hte device and retrieve them from there. Aug 10 16:55:59 @Bleeptech : great ...can u elaborate on this more how i can do it Aug 10 16:56:00 ? Aug 10 17:00:26 hi. I want an android app to conduct a quiz competition. I was planning that the questions will be displayed on screen to all the users. the android users will be connected through wifi on lan. the users will simply tap the appropriate answer buttons. The response should be recorded on the server. and the time. is there any similar app for this or how can it be made? I have 20 days till the competition. Aug 10 17:37:58 Hi. I shifted to playing my videos inside my android app using the youtube API. I have two exact copies of the same app as different eclipse projects. one is working fine and the other is saying "connection to server is lost" and i cannot find any reason for that. my connection is working fine Aug 10 17:38:00 so what would be the problem? Aug 10 17:44:17 Hi there :D Aug 10 17:49:44 can anyone toss me a bone and let me know if I can flash Nexus Experience roms onto an AT&T S4 Aug 10 17:56:34 so when I start my activity the first time, it loads content into a list Aug 10 17:57:29 but when I start the app again after pressing the back button to exit it, no content is loaded on any subsequent restarts of the app Aug 10 17:57:37 what on earth am I doing wrong here Aug 10 18:03:49 Maestro: keep in mind i know absolutely nothing about android programming whatsoever, but are you mis-handling the saved application state somehow? Aug 10 18:04:19 should I be handling it at all? Aug 10 18:04:24 I have no idea either Aug 10 18:04:43 I just don't see how the same code being run twice produces different results, at least not yet Aug 10 18:04:49 let me look, i remember seeing something Aug 10 18:04:57 i've also never really used an android device :P Aug 10 18:05:04 lol Aug 10 18:05:29 onCreate gives you a Bundle as its parameter in your main activity, you need to do super.onCreate and pass that in Aug 10 18:05:51 yes, if I didn't it would throw exceptions at me Aug 10 18:06:09 okay that's the extent of my knowledge Aug 10 18:06:22 i do know some general java, do you have source code? Aug 10 18:06:45 does it work if you kill the app? Aug 10 18:08:02 I'm going to begin with restarting my phone for good measure Aug 10 18:08:24 and because I couldn't get the kill app menu up for some reason Aug 10 18:08:36 * tpw_rules remembers why he likes his iPhone Aug 10 18:09:09 * Maestro remembers why he doesn't like Apple Aug 10 18:09:23 why, out of pure curiosity? Aug 10 18:09:44 tpw_rules: Do not look under that rock Aug 10 18:10:01 hehe :3 i probably should avoid touching it Aug 10 18:10:15 I can develop apps for an android phone on my linux-based laptop, and on my windows-based desktop, and I assume you can also develop for android on a Mac, because I see no reason why you shouldn't be able to Aug 10 18:10:17 tpw_rules, if you're looking to the iphone for good programming design patterns, you're more of a masochist than I Aug 10 18:10:27 the application/activity lifecycle is well-documented Aug 10 18:10:46 i wasn't talking about programming, but general usability Aug 10 18:10:52 however, I cannot develop for iOS on either windows or linux, only on osx, which is a horrible decision imo Aug 10 18:11:16 that's one of the reasons I don't like Apple Aug 10 18:11:47 so since the time is different, has anybody ever done scala programming with android and can help me get started? Aug 10 18:12:21 i have heard of one person who might know, but he's not here now Aug 10 18:13:34 where should I start looking if I want to create a custom transition animation between two activities programatically? Aug 10 18:19:03 I don't really see what I should be saving, since my app doesn't really have state Aug 10 18:19:15 at least in that sense Aug 10 18:19:32 i think it does it all automatically Aug 10 18:19:35 do you have source code we can see? Aug 10 18:21:10 http://pastebin.com/amFHna8k Aug 10 18:21:20 it's a horrible mess as of right now Aug 10 18:22:13 augh you shouldn't use a jpeg as a background Aug 10 18:22:26 but other than that, i have no idea what to tell you, sorry Aug 10 18:22:50 lol... Aug 10 18:23:28 the comment even tells to disregard that part, as I actually just wrote that snippet to help out someone else Aug 10 18:23:32 but seriously, use a png Aug 10 18:23:38 well you should go and tell him to use a png instead Aug 10 18:23:49 well that's up to him to decide Aug 10 18:24:09 if it's not a photo, jpeg will look like crap and be larger than a png Aug 10 18:24:11 I just used a jpeg since the first decent image I found to use as an example happened to be a jpeg Aug 10 18:24:19 I don't care tbh Aug 10 18:24:30 i'm going to think your app looks ugly Aug 10 18:24:35 dude Aug 10 18:24:42 my app doesn't even have a background Aug 10 18:25:00 except for whatever background android gives it by default Aug 10 18:25:08 it will never have a background Aug 10 18:27:29 didn't paste this to be bothered with 10 lines of code that is _commented out_ and totally and completely irrelevant for the app I'm actually making Aug 10 18:29:57 and by your own logic, android will have to look ugly as well Aug 10 18:39:59 hiya i enabled usb debugging on my HTC Sense (2.3.3 android) but my adb says '???? no permissions' when i say adb devices Aug 10 18:40:48 i know on my android 4 i can approve on my phone that i want the connection but somehow on 2.3.3 that doest work? Aug 10 18:42:17 Younos, run adb kill-server and then start adb (by doing some thing "adb devices") as root Aug 10 18:44:47 ah, ok. thanks, that worked Aug 10 18:45:00 This is unrelated to the new authorization process, and more so with your USB device permissions as the user you're using Aug 10 18:47:10 Hola Aug 10 18:47:43 has anyone here tried to build for an unsupported device using a 4.3 repo? Aug 10 18:48:37 trying to build for the Find5 and run into an error that has me stumped...just curious if any others have seen the same error while adding an unsupported device Aug 10 18:53:35 m Aug 10 18:53:41 grrr Aug 10 18:53:42 lol Aug 10 18:53:59 just typed the error...and it disappeared Aug 10 19:01:17 anyone seen this? /home/nun/cm43/kernel/oppo/find5/fs/cifs/transport.c: In function 'SendReceive2': /home/nun/cm43/kernel/oppo/find5/fs/cifs/transport.c:653:5: warning: 'midQ' may be used uninitialized in this function [-Wmaybe-uninitialized] Aug 10 19:02:06 i tried adding -Wmaybe-uninitialized the the CFLAG Kernel in the mk file... Aug 10 19:02:10 error continues Aug 10 19:04:48 NunHugger see topic Aug 10 19:05:35 understood Aug 10 19:05:50 sorryy...was told to give a shot here...apologies Aug 10 19:06:15 will head to root Aug 10 19:06:16 Do you know of a good resource for getting familiar with when to use what View type? I am having trouble with a Relative Layout with one child aligned to the left, one other below it and one on the right. The one that is supposed to be below is overlapping. Aug 10 19:06:17 ;) Aug 10 19:07:08 marrrk relative layout can be tricky; Aug 10 19:07:18 make sure you have no cycles in your dependency graph Aug 10 19:07:27 I really don't right now. Aug 10 19:07:38 i often find it does what i dont expect :P Aug 10 19:07:51 cool vim 7.4 is out Aug 10 19:08:08 netrw is so much better these days Aug 10 19:08:10 I was on Linear before but then I concluded that it's not possible to have one child that aligns left and another that aligns on the right. Aug 10 19:08:19 Should I have a look at FrameLayout? Aug 10 19:08:31 relative should be right ... Aug 10 19:09:32 The only bad part is that it doesn't work (i.e. overlaps). Aug 10 19:10:25 Maybe because I have a linebreak. Aug 10 19:11:24 Ah I can probably solve it by putting a lot more linear layouts. Aug 10 19:13:46 Or maybe table layout? Does that have as a bad a reputation as in html? Aug 10 19:14:48 there is also GridLayout . i imagine what you want to do could be done with a RelativeLayout though or maybe even a LinearLayout with different gravity's or layout_gravity's for the children Aug 10 19:15:49 It probably can. Aug 10 19:20:36 This is what I'm trying to do: http://oi40.tinypic.com/ezl7c0.jpg Aug 10 19:22:06 marrrk the alignment inside is gravity, not layout_gravity. maybe play with that Aug 10 19:22:26 but otherwise, relative layout should be ok for that Aug 10 19:22:36 I don't use any gravity Aug 10 19:22:55 Only below Aug 10 19:23:11 Im thinking of putting the two left things inside a linear layout now Aug 10 19:23:19 i think the issue you'll have doing that with a relative layout is that you don't know which of the two left aligned views will be bigger Aug 10 19:23:43 and you can only set the right aligned one to be right of one of them, not the bigger one of them Aug 10 19:24:01 So kevinb, what kind of view would you suggest for this? Aug 10 19:24:15 i think two linear layouts Aug 10 19:24:39 and then play with the gravity? Aug 10 19:24:42 first one horizontal, then an inner one that is vertical and wrap_content, then put the two left aligned text views in there, also wrap_content Aug 10 19:25:16 oh wait, i looked at it wrong Aug 10 19:25:19 What if the text is too short and it does not push the right aligned view all the way to the right? Aug 10 19:25:20 right aligned is fixed width Aug 10 19:25:35 (you could use layout_weight to force one side to grow and not the other) Aug 10 19:25:43 since right aligned is fixed width a relative layout should work Aug 10 19:26:13 Should I align the left ones to the right of the right one and align their left with the parent? Aug 10 19:26:45 But I mean they are placed alright, it's just that when I set the containing linear layout to wrap content that they overlap vertically Aug 10 19:26:50 the lower one is too high Aug 10 19:27:54 https://gist.github.com/teslacoil/8f03c56ea02897d6ee80 Aug 10 19:28:35 (you could also set layout:gravity="right" on textRight if you want Aug 10 19:30:53 http://oi42.tinypic.com/rwv4o0.jpg Aug 10 19:31:47 i think you need the "Your phone is silent" part to be layout_below the Do not disturb Aug 10 19:32:46 That's what I have Aug 10 19:32:50 I am trying your version now. Aug 10 19:33:07 The difference is that you are first placing the fixed width part and then going from there. Aug 10 19:34:09 Still the same issue. I will show you my file. Aug 10 19:34:43 https://gist.github.com/i-am-the-slime/29fa345ec9d754775eef Aug 10 19:36:16 try removing the layout_centerVertical from the title Aug 10 19:36:36 Man, I'm stupid. Aug 10 19:37:01 Hmm but still the other one does not have it set. Aug 10 19:38:05 Still no luck without it. Aug 10 19:38:20 curious Aug 10 19:38:51 what about setting layout_alignParentTop="true" on the title? Aug 10 19:39:18 Haha it actually did help Aug 10 19:39:27 I was just still looking at my screenshot. Aug 10 19:39:31 haha Aug 10 19:39:41 But the title is now right aligned. Aug 10 19:40:12 layout_centerHorizontal Aug 10 19:40:59 I would like it to be left aligned so layout_alignLeft? Aug 10 19:41:23 layout_alignParentLeft="true" Aug 10 19:41:56 the names of the parameters for RelativeLayout are a little confusing, but make sense once you get used to it Aug 10 19:42:08 I somehow thought that this would conflict with to left of Aug 10 19:42:21 Actually I'm not any more used to the linear layout ones, so that's fine Aug 10 19:42:34 Ahhh thank you. Now it looks very much to my liking! Aug 10 19:42:44 if you use alignParentLeft along with toLeftOf it's basically fixing the width of the view Aug 10 19:43:53 Can I add the same for the small caption (the one below)? Otherwise I'm worried that on different screens it might overlap with the button since it is only defined to be below the heading. Aug 10 19:44:20 yeah. generally define as much as you can that won't conflict Aug 10 19:44:32 so in this case, you can say you want it below the title, aligned to the parent left and to the left of the toggle Aug 10 19:44:32 Okay, I will add that. Aug 10 19:44:40 Exactly Aug 10 19:54:52 hi guys Aug 10 20:32:27 nobody knows anything about scala and android development? Aug 10 20:38:18 no, not a single person in the world knows anything about it, sadly Aug 10 20:39:19 looks like you get to be a pioneer Aug 10 20:43:25 hmm, groovy is pretty easy Aug 10 20:43:36 mostly just syntactic sugar + some niceties Aug 10 20:44:07 glad i wont have to master much to do my gradle plugin Aug 10 20:44:15 yeah Aug 10 20:44:36 what the hell... i've replaced a fragment with another fragment and added it to the backstack. now when I press back, the previous fragment is emtpy... Aug 10 20:47:35 huh Aug 10 20:47:57 if u set a tile mode of an imageview on 1 axis, it sets the other axis to clamp :/ Aug 10 20:48:55 so im working on trying to make a custom transition from one activity to another.. it's working fine (my simple test just makes the first activity slide down off the screen).. only I can't see the 2nd activity until the animation is completely finished Aug 10 20:49:06 is there a trick to getting the 2nd activity to show behind the first as it's animating away? Aug 10 20:49:46 tnzr: add a translate anim that translates from 0% to 0% Aug 10 20:50:06 alexfu: on the 2nd activity? Aug 10 20:50:06 and make the duration like 1 second or something long Aug 10 20:50:37 tnzr: on which ever activity you're calling overridePendingTransition on Aug 10 20:50:51 alexfu: im not actually using overridePendingTransition Aug 10 20:51:18 ahh wait Aug 10 20:51:19 I just realized Aug 10 20:51:32 im using an AnimationListener to start the 2nd activity when the animation is done Aug 10 20:51:58 which makes sense Aug 10 20:52:03 err that I wouldn't see it until it's finished Aug 10 20:52:46 I think I see where part of my problem is Aug 10 20:58:50 alexfu: what if you extend Animation with your own class, how would you go about using overridePendingTransition without a resource id? Aug 10 21:00:02 tnzr: that wouldn't really work... what kind of animation are you trying to do? usually using overridePendingTransition is enough to do activity transition animations Aug 10 21:00:15 or is it legal to do like: startActivity(intent); container.startAnimation(animation); to achieve the same effect? Aug 10 21:00:19 Hello guys Aug 10 21:00:56 alexfu: well I have an idea for a custom transition and i'm trying to get to the point where it's actually transitioning properly in code. Right now it simply translates off the bottom of the screen Aug 10 21:01:20 tnzr: what kind of transition Aug 10 21:01:49 alexfu: eventually one with a Bitmap in front of the 2nd activity that moves out of the way in a novel manner Aug 10 21:02:59 i figure there's got to be a way that the normal transition can place the 2nd activity behind the first as its moving out of the way..without using ViewOverlay (since that's so new, they must not have been using that before) Aug 10 21:03:13 if I do startActivity() followed by container.startAnimation(), it kinda works Aug 10 21:03:17 looks a little janky Aug 10 21:04:02 tnzr: i still dont understand why you cant accomplish this with overridePendingTransition Aug 10 21:04:06 I have a activity list with some items, when one is clicked starts new activity where there is the up button. When this is clicked, I have to go back to activity. This works and onCreate() of activityList is invoked. The issue is that I want, when I go back, the same items immediatly. I tried using onSaveInstanceState()/onRestoreInstanceState() but the second one is never called. Some help please? Aug 10 21:04:18 https://gist.github.com/anonymous/6202123 Aug 10 21:04:24 line 41: Howcome it moves onto the next .then when i didn't return a promise by commenting out line 41 Aug 10 21:04:30 alexfu: because the transition will involve some programmatic steps to achieve the effect I want Aug 10 21:04:40 its not a matter of simply translating out of the way Aug 10 21:08:45 tnzr: you want the 1st activity to translate off the screen while the 2nd activity stays static so it appears as if the 2nd is underneath the first? Aug 10 21:09:04 yeah, kinda like a normal sliding/translating animation Aug 10 21:09:20 but I'd like to do it programmatically so that from there I can make the actual animation more interesting Aug 10 21:12:51 I don't really think that's possible with activities Aug 10 21:13:00 The window of the second is on top of the first Aug 10 21:14:05 yeah hmm Aug 10 21:14:26 is there any way to start an activity in the background before actually switching to it? Aug 10 21:14:44 oO no Aug 10 21:15:10 maybe I could inflate the layout of the 2nd activity Aug 10 21:15:20 Just use fragments Aug 10 21:15:38 Add the second fragment behind the first fragment, translate the first off the screen Aug 10 21:18:11 someone help? shorted question: there is way to let the up button not call parent onCreate() ? Aug 10 21:19:14 under: if you're returning to an existing activity, onCreate() will not be called. Aug 10 21:21:57 yes, onCreate() is called, in the manifest, in I have android:parentActivityName="com.me.apptest.MainActivity" that is the class where onCreate() is invoked after pressing up button Aug 10 21:22:36 SimonVT: i guess the problem is that I don't know how to get a resource id for an Animation that is defined programmatically Aug 10 21:22:53 If it's defined programmatically it doesn't have a resource id Aug 10 21:23:07 Resources have resource id's Aug 10 21:23:23 right, which is why I can't call Fragment.setCustomAnimations() or overridePendingTransition() Aug 10 21:24:14 You can create an animation in xml that moves it off screen Aug 10 21:24:43 right but I don't really want it to move off screen.. that was just a starting point for me when doing it programatically. once I got that working I was going to make the animation more interesting Aug 10 21:25:25 i wonder if I could use a GLSurfaceView to do it Aug 10 21:26:23 SimonVT: Not to jump in mid-discussion, but programmatically defined resources can have resource ids (but do not by default), set using setId, but I'm sure you know that already. Aug 10 21:26:31 ooh Aug 10 21:26:39 So animate it off screen and remove the fragment once it's done Aug 10 21:27:16 kjeldahl: You mean views? Aug 10 21:27:46 I wouldn't define those as resources. A layout that define a view hierarchy is a resource Aug 10 21:27:47 Yeah, my bad. I thought that was what you were talking about. Aug 10 21:27:53 * kjeldahl lurks back into his cave. Aug 10 21:28:41 kjeldahl any tips on using emacs to browse large sets of files? kinda like sublime tree view; even vims latest netrw is approaching nerdTree; dired seems pretty basic Aug 10 21:29:23 Nope, but the recentf package may help you out (will show you the last X files used from a menu). Aug 10 21:29:35 k, thx Aug 10 21:29:45 s3 mini, s advance, s2 plus. which one will be the best? Aug 10 21:29:56 best for what? Aug 10 21:30:03 development? doorstop? Aug 10 21:30:24 You want a large phone for a door stop Aug 10 21:30:26 i thought i was on #android-dev, not on #doorstep Aug 10 21:32:04 dunno, s2 plus seems like a good doorstop Aug 10 21:32:33 the regular s3 is a horrible doorstop, fyi Aug 10 21:32:41 note 2 would be even better, but that's over my budget Aug 10 21:33:54 g00s: You've tried this one? http://stackoverflow.com/questions/3538064/nerdtree-for-emacs Aug 10 21:34:40 kjeldahl looks nice , thanks Aug 10 21:35:45 wow, this Mou.app is a nice markdown editor Aug 10 21:35:57 Lost connection. alexfu: did you reply my question? Aug 10 21:35:58 for stuff like README.md, BUILD.md, etc Aug 10 21:37:26 under: sorry, no. Aug 10 21:49:29 ok, any idea why onCreate is called? Aug 10 21:52:40 under, what is "the up button"/ Aug 10 21:52:54 under, http://developer.android.com/images/activity_lifecycle.png Aug 10 21:53:52 poutine, http://developer.android.com/guide/topics/ui/actionbar.html#Home Aug 10 21:54:34 Ah excuse me, was ignorant of nomenclature with regards to action bar navigation Aug 10 21:55:09 under, If you look at that lifecycle chart, it can call onCreate() after it kills an activity to free up memory Aug 10 21:55:15 what's the problem with it calling onCreate? Aug 10 21:56:37 when I click on up button, it should starts his parent activity not invoking onCreate() but... is invoked Aug 10 22:00:59 under, http://developer.android.com/training/basics/activity-lifecycle/recreating.html Aug 10 22:01:02 Is there a trick for getting a localized Human readable date ? Aug 10 22:02:32 wait what? it destroys the activity when you rotate the view? no wonder that was always so slow Aug 10 22:03:08 poutine, I figured out: in I set up : android:launchMode="singleTop" Aug 10 22:04:15 tpw_rules, android:configChanges="orientation|keyboardHidden|screenSize" Aug 10 22:04:32 under: ? Aug 10 22:05:18 is that also when it destroys your activity? Aug 10 22:05:30 or is that how to prevent that from happening? Aug 10 22:06:16 launchMode : Default. The system always creates a new instance of the activity in the target task and routes the intent to it. Aug 10 22:49:03 bye Aug 10 23:14:30 any ideas on the 2sec freezes on jss15/r2.1? Aug 10 23:32:15 pfn: my project broke again simply from copying a bit of code into a file and removing it. I swear this is an Android Studio issue... Aug 11 00:11:44 hello? Aug 11 00:12:09 hi Aug 11 00:12:54 you might want to try asking a more specific question ;) Aug 11 00:13:11 is there anybody in there? Aug 11 00:13:23 out there* Aug 11 00:14:32 Anyways, I'm extremely new to development and pretty much Google searching and learning what I need to know as I move forward in my first project. Aug 11 00:15:34 What I'm trying to do is the user taps a chip denomination (casino game) and then taps an area of the playing board (like roulette) and a chip appears there. What do I need to look up? Aug 11 00:16:22 I heard someone saying something about a canvas? Aug 11 00:23:34 anyone know how to fix "No resource identifier found for attribute 'fontFamily' in package 'android'" when apktool building? Aug 11 00:23:45 my android manifest file doesn't specify a build target Aug 11 00:24:27 http://stackoverflow.com/questions/14650732/no-resource-identifier-found-for-attribute-fontfamily-in-package-android Aug 11 00:25:09 Sik3Ward: saw that. it says that the guy has his build target to something older, but I have not set one Aug 11 00:25:18 This is an app development channel, not app decompiling Aug 11 00:25:48 SimonVT: can you point me to the correct channel? Aug 11 00:26:58 Not really, I have no idea if apktool has a channel Aug 11 00:27:19 ah it seems there is one Aug 11 01:15:08 what's the difference in doing onPause() { super.onPause(); } and onPause() { super(); } Aug 11 01:17:06 super(); calls the ctor and super.onPause() calls the super classes' on pause Aug 11 01:17:08 BullShark: i believe the second calls the constructor of the super Aug 11 01:17:11 so the first is right, the second is very wrong Aug 11 01:17:22 the second really shouldn't even compile Aug 11 01:25:20 Hi. I shifted to playing my videos inside my android app using the youtube API. I have two exact copies of the same app as different eclipse projects. one is working fine and the other is saying "connection to server is lost" and i cannot find any reason for that. my connection is working fine Aug 11 01:25:22 so what would be the problem? Aug 11 01:33:29 DEV WARNING: MeasureSpec.makeMeasureSpec() simply adds the parameters together for some reason sdk-int 18 if these parameters are backwards then the mode is not applied! Aug 11 01:35:01 if they are backwards the result is 0 Aug 11 01:38:04 how can i force eclipse to recompile/rebuild an apk? Aug 11 01:38:47 Napalm: Read the docs for makeMeasureSpec, there's an explanation Aug 11 01:39:03 And 2, don't pass values to the wrong parameter Aug 11 01:39:53 SimonVT: not my code Aug 11 01:39:58 Oh Aug 11 01:40:00 and yea, i see they revised it Aug 11 01:42:58 Tell them it doesn't simply add them together anymore :p Aug 11 02:08:57 Leeds i've been playing with the newer vim; this blew me away (although i think it works on older ones too) let g:netrw_liststyle=3 Aug 11 02:09:31 this should be called netrw_liststyle=bacon Aug 11 02:11:04 Linkandzelda, doing it wrong is not the IDE's fault Aug 11 02:14:53 g00s: and... what does that do? :) Aug 11 02:15:03 trees! Aug 11 02:16:43 its close enough i don't feel like installing nerd tree anyhow Aug 11 02:16:55 hey, how about that - trees! Aug 11 02:18:28 I mostly use nfs :P Aug 11 02:40:30 Is there a way to check if an NFC tag is in range? Aug 11 02:41:10 I need my app to be able to know when the tag is no longer in range Aug 11 02:43:13 oh hey Forkk Aug 11 02:43:18 oh hi Aug 11 02:43:50 (i know you as the dev of multimc) Aug 11 02:44:18 since i am clueless but like to pretend i'm helpful, can you not just scan for nfc tags every x time units and then know when one goes out of range? or does that not work like i think it would? Aug 11 02:44:46 I don't even see a way to check if one's there Aug 11 02:45:07 well there goes my idea! Aug 11 02:45:14 heh Aug 11 02:45:52 without knowing much about NFC... seems like it might be an instantaneous-ish 'scan' event, rather than an ongoing connection Aug 11 02:46:09 yeah Aug 11 02:46:10 I didnt think you even needed or could scan Aug 11 02:46:17 You don't Aug 11 02:46:18 nfc is two-way Aug 11 02:46:18 I thought it was just a listener Aug 11 02:46:24 It just passes you the intent Aug 11 02:46:42 well i don't know about android, but nfc can be two-way unlike rfid Aug 11 02:46:43 I don't even think there's a way to have it check if the tag is still there] Aug 11 02:47:08 are you talking about tags or nfc devices like those cash registers Aug 11 02:47:55 tags Aug 11 02:48:01 ahh Aug 11 02:48:06 do you guys use the beta alpha stuff on play ? Just opened my app to VERY early beta and I'm impressed (170 free testers) and all sorts of problems found and fixed in a few days… that the experience of everyone ? Aug 11 02:49:07 i did public betas (opt-in, but self download from within the app) before Play allowed it. hugely valuable. the play implementation is nice to have, but not being able to include a change log is a bit weird Aug 11 02:49:31 and people in the beta community get confused about if 2.2beta1 is newer than 2.2 (and when the beta test is over) Aug 11 02:50:01 I don't have enough testers to say yet :P Aug 11 02:50:45 well out of 170 joined in 2 days, maybe 8 are power feedback users Aug 11 02:51:12 Forkk: i remember reading that NFC tag removal was intentionally hidden from apps, i don't know why. then some people hacked the Nfc APK to allow it. http://forum.xda-developers.com/showthread.php?t=2122019 Aug 11 02:51:13 but more than 20 or so suggest things, and I have had 5 report problems that I just would not have found Aug 11 02:51:31 so as it stands, very impressed with it all (as a first experience) Aug 11 02:51:40 kevinb, yeah, but would that be practical to implement? Aug 11 02:51:53 Forkk: definitely not. i think you are out of luck. Aug 11 02:51:57 D: Aug 11 02:52:13 I'll just have separate activate, deactivate, and toggle tags. Aug 11 02:52:22 what is this for? some sort of installation? Aug 11 02:52:42 tpw_rules, what, me using NFC tags? Aug 11 02:52:57 yeah Aug 11 02:53:02 Automation Aug 11 02:53:09 ooh, cool Aug 11 02:54:27 can you share more? Aug 11 02:54:54 tpw_rules, http://screencloud.net/v/jVW2 Aug 11 02:55:24 what role would nfc tags play? Aug 11 02:55:31 geofencing is cool though Aug 11 02:55:58 NFC tags would work as normal rules Aug 11 02:56:41 for example, one thing I'm looking forward to is putting an NFC tag down where I usually put my device while I'm USB debugging and having that tag keep the device from locking Aug 11 02:57:01 so I don't have to constantly unlock it while I'm debugging Aug 11 02:58:15 it'd be cool to use the accelerometers to know when you remove the phone from that station. could be difficult though Aug 11 02:58:38 An accelerometer rule would be strange... lol **** ENDING LOGGING AT Sun Aug 11 02:59:58 2013