**** BEGIN LOGGING AT Sat May 02 02:59:58 2015 May 02 03:20:30 Guys im trying to create a method insdie a DialogFragment that will return an instance of the fragment May 02 03:20:42 public static methodName() {} May 02 03:20:59 hi May 02 03:21:03 but when I have return this; insdie the method body, it cannot return this from static May 02 03:21:52 can someone give me an idea on how to this, remaining in the standard design: i need to put a back arrow and also the hamburger menu icon on the toolbar May 02 03:22:00 they are both left aligned icons May 02 03:22:07 what to do in this case? May 02 03:23:04 i only saw that android apps usually have 1 icon on the left of the title May 02 03:23:09 any idea? May 02 03:23:55 Sal: Why do you need both the hamburger and back arrow in the toolbaR? May 02 03:24:36 that isn't in the standard design May 02 03:24:45 you don't have both hamburger and up May 02 03:25:00 one, or the other. May 02 03:25:05 custom view if you must insist May 02 03:26:02 because when i'm in a view, and click on the indest FAB, a right sliding panel comes in with the form. I also need that the user can go to the menu to open another view May 02 03:26:40 its a windows MDI app, ported to tablet May 02 03:26:47 i'm doind the MDI using tabs May 02 03:27:11 so, then the user is in a form, he still could need to go in another view May 02 03:27:20 so i always need the menu available May 02 03:28:11 and also, the back button to return button, to leave the form and return to the main list view of the table May 02 03:29:08 do you guys have another solution? May 02 03:30:24 i don't know why they didn't think about this May 02 03:30:49 i mean, the user could be in a filling a long form, and receive a call, so he needs to check some other data May 02 03:30:57 what to do? May 02 03:31:19 save the partial form and return to the main view to finally get the menu icon? May 02 03:31:22 sux May 02 03:31:25 rethink your design May 02 03:31:37 pfnQ, any idea? May 02 03:31:56 don't use the up icon when you want to show the drawer still May 02 03:32:27 what up arrow? May 02 03:34:26 what if i put the back arrow on the right side of the toolbar? maybe the leftmost of the right side May 02 03:34:33 Sal: The "<--" 'back' arrow is technically referred to as the 'up' arrow, as it navigates your 'Up' your view backstack. May 02 03:34:33 did anyone see something like that ? May 02 03:34:48 or just your activities, etc. May 02 03:34:51 ok, sorry, didn't know that May 02 03:35:28 Sal: You need a serious UX/UI redesign as pfnQ said. A hamburger and up arrow in the same toolbar at once breaks all conventions and indicates a poorly though out design, or atleast one that would be confusing to use. May 02 03:36:37 but i can't find a better way May 02 03:36:49 it's called an up arrow May 02 03:36:58 don't think about an app that does only 1 thing May 02 03:37:16 like, gmail, keep, calendar May 02 03:37:26 mine is an ERP May 02 03:37:41 the user need to be able to do many things at the same time May 02 03:38:41 i mean, he can insert a customer payment on an order, and at the same time, check products in stock May 02 03:38:46 "because when i'm in a view, and click on the indest FAB, a right sliding panel comes in with the form" A FAB shouldnt cause a panel slide imo. May 02 03:38:57 you should just slide, to get the panel May 02 03:39:17 its the ( + ) fab May 02 03:39:24 it open a form May 02 03:39:30 yeah, bad design May 02 03:39:41 why? May 02 03:39:47 all google apps do that May 02 03:40:01 Show me a google app with a FAB that causes a right sliding menu to slide. May 02 03:40:03 gmail, hangouts, inbox, keep May 02 03:40:19 A sliding menu is called a sliding menu because instead of clicking a button, you swipe left from the right edge to drag it out. May 02 03:40:30 oh, you're talking about the sliding panel May 02 03:40:31 akin to the navigation drawer - you dont click a FAB to open it, you swipe right from the left edge May 02 03:40:34 yes May 02 03:41:08 no, sorry, you're right May 02 03:41:21 the only thing that slides is the nav left menu May 02 03:41:47 when i click on the ( + ) fab, it just replaves the view with another one May 02 03:41:50 sorry May 02 03:41:52 oh. May 02 03:42:14 what i do is this (i'll try to be clear): May 02 03:42:51 from the menu, you open a list view of the table you choose (customers, orders, products, etc etc) May 02 03:43:26 from the list, clicking on an item, i go and edit the item record May 02 03:43:39 or, i can click on the ( + ) gab to insert a new record May 02 03:44:11 once, you're in the insert or update form, you have a check at the top right toolbar May 02 03:44:21 and an "up" at the top left toolbar May 02 03:44:26 thats it May 02 03:45:06 so why do you need the hamburger May 02 03:45:13 but if i don0t give the user a way to reach the main nav menu, he'll be stuck on a form until he finishes May 02 03:45:30 you include some sort of 'Save Draft' toolbar icon or equivalent May 02 03:45:52 but that means go up and down, or in an out of views May 02 03:46:04 that will drive him crazy May 02 03:46:06 thats how apps work? May 02 03:46:12 Logically and sensibly. May 02 03:46:22 i'm using the tab bar to keep many tables open at the same time May 02 03:46:37 one can be in the list view, another in insert and another in update May 02 03:46:57 Perhaps each table should be part of a toolbar spinner rather than the navigation bar May 02 03:47:09 nav drawer* May 02 03:47:22 desmin88, as i said, its an ERP May 02 03:47:33 that means many but many menu items May 02 03:47:43 impossible on a toolbar May 02 03:47:56 i'm using a multi level menu May 02 03:48:06 with sliding layerd panels May 02 03:48:10 You have a multi level menu in the nav drawer? May 02 03:48:18 yep May 02 03:48:25 thats terrible design May 02 03:48:31 only way man May 02 03:48:34 no/ May 02 03:48:38 i tried them all May 02 03:48:47 what other way then? May 02 03:48:50 you might need to consult an actual ux/ui designer for this if you cant come up with an elegant solution on your own May 02 03:48:54 a menu-view? May 02 03:49:20 look at how other apps do it May 02 03:49:22 and imitate May 02 03:49:33 apps work all on 1 thing May 02 03:49:36 i told ya May 02 03:49:57 i mean, if i'm on gmail, i can only work on emails May 02 03:50:01 im saying May 02 03:50:08 look at other 'erp' apps and see how they do it May 02 03:50:38 some use the bootstrap-like drop down big menu that takes the entire screen May 02 03:50:41 hate that May 02 03:51:01 scrolling down to find what you need May 02 03:51:02 dont know what to say May 02 03:51:10 other than dont have a multi level menu in a nav drawer May 02 03:51:54 http://multi-level-push-menu.make.rs/demo/basichtml/basichtml.html May 02 03:52:00 i'm using something like that May 02 03:52:26 ew May 02 03:52:41 mire likethis one May 02 03:52:41 http://multi-level-push-menu.make.rs/demo/covermode/covermode.html May 02 03:53:00 it covers completely May 02 03:53:33 its the only way to handle more that 100 items May 02 03:53:43 i tried collapse stuff May 02 03:53:58 but the user wont know whats under until he expands it May 02 03:54:21 Hah. Just made a wicked pun. In talking about Jefferson Davis and the confederacy of southern states in which he barely held the states together, I said "Davis' 'Confederacy of states, loosely stated..." May 02 03:54:22 seems a treasure hunting May 02 03:55:03 :) May 02 03:55:23 just saw Lincoln film 2 hours ago May 02 03:56:36 Don't know what to say Sal, perhaps consult a professional designer May 02 03:57:10 difficult to find one that knows material design May 02 03:57:19 anyway, thanks May 02 03:57:25 need to sleep now May 02 03:57:36 its 5:57 am here May 02 03:57:47 thanks May 02 03:57:51 ciao May 02 04:51:33 did you guys notice ... a large (view source) thing now on Javadocs ? May 02 04:51:36 http://developer.android.com/reference/android/widget/SeekBar.html May 02 04:51:45 Seekbar - View source :) May 02 05:00:09 I'm.. not seeing it May 02 05:00:59 weird May 02 05:01:00 g00s: did you install a plugin or something, perhaps? May 02 05:01:35 oh i hve 'android sdk search' May 02 05:02:03 https://chrome.google.com/webstore/detail/android-sdk-search/hgcbffeicehlpmgmnhnkjbjoldkfhoin May 02 05:02:07 ahh, hehe May 02 05:02:19 :) May 02 05:08:44 so far i've only used the omnibox part :D May 02 05:10:24 I usually just ctrl+q in IDEA May 02 05:11:11 heh , ctrl-q quit AS May 02 05:11:33 nah. shows the javadoc May 02 05:11:41 "quick doc", I guess May 02 05:46:39 hi guys, when the user clicks ok on a dialog, should i create a async task that will insert into the database using the content resolver or should i insert it right there on the spot? May 02 06:13:55 groxx still there ? May 02 06:15:51 not really :) after 11 here May 02 06:17:08 groxx ah ok, by any chance - did you ever find a better way to hide the toolbar on scrolling ? May 02 06:20:23 at this point I'd probably do it by hand. but generally it feels like the technique is too give the list top padding = toolbar/ header height, clipToPadding=false, and adjust stuff on scroll May 02 06:21:29 groxx hm, ok. was anything added to appcompat 21 to make this easier? i was looking at this, but not even sure what its for https://developer.android.com/reference/android/support/v4/widget/NestedScrollView.html May 02 06:22:07 I saw that too, haven't read it yet though May 02 06:22:28 I'm guessing that's e.g. for scrollable content in a card in a list of cards May 02 06:22:42 ah, so something else May 02 06:23:37 that's how I read it anyway. there are also NestedScrollParent/ChildHelper (or similarly named) classes May 02 06:24:22 so then this chris banes post is still pretty much up to date then https://plus.google.com/+ChrisBanes/posts/J9Fwbc15BHN May 02 06:25:32 yeah, I think that's the first one where it really clicked for me. seems simple enough, and I've just finished battling with an unrelated-but-almost-related animation, so I'd feel comfortable redoing it from scratch if needed May 02 06:25:52 it's mostly abstract-able though, so if you can find something, it may be worth it May 02 06:26:57 ok, thanks May 02 06:27:57 there was another useful file(s?) in someone's full project... hunting through history for that at the moment. not too hopeful though :) May 02 06:28:55 groxx so do you just collapse the actionbar, or completely hide it on scroll ? May 02 06:29:42 I'd just setTranslationY until it's off-screen. might be a better option though. May 02 06:30:22 I haven't hunted enough to figure out truly good performance techniques :) the basics usually work and don't skip frames, so I've just kinda stopped there for now. May 02 06:33:53 g00s: ah, it was from the same thing. here's Chris Banes' gist in context: https://github.com/chrisbanes/philm/blob/master/app/src/main/java/app/philm/in/view/CollapsingTitleLayout.java May 02 06:34:15 groxx ah ok, thanks for looking into it ... May 02 06:34:37 for some reason i thought a class was added to appcompt/support to help but i guess not May 02 06:36:26 nothing I can remember, but I don't use appcompat (and it would _probably_ be in appcompat?) May 02 06:36:43 and I should o/ for the night. cyas! May 02 06:37:01 Anyone here use aide? May 02 06:37:37 gnight groxx May 02 07:06:04 Hello, I ran into an issue with lollipop - I need to convert my implicit events into explicit events May 02 07:06:32 I am using intent filters with my implicit intents May 02 07:06:41 but I am unsure how to easily convert it into explicit intents May 02 07:06:47 also I mean intents** not events haha May 02 07:26:50 Can anyone help me with a GUI? May 02 07:27:18 It's slightly different, because it's on Google Glass, but it still uses a lot of the basic Android implementations May 02 07:29:25 hello, where do I declare the public enum part of this plugin? https://github.com/rdelrosario/xamarin-plugins/tree/master/PushNotification May 02 07:36:17 <_genuser_> hey coders May 02 07:45:09 Is it possible to run adb on a device as shell or without another device or rooted device May 02 07:54:55 ronkrt: I'm not sure I understand your question. Are you asking if you can run the adb binary on an android device's shell to debug another device? May 02 07:55:54 No adb in one device to debug same device May 02 07:56:43 ahh, interesting. I've not seen it been done but I guess theoretically it might be possible. May 02 07:57:42 Barbs do you use aide May 02 07:58:26 I don't, but I was just thinking about that :). is that open-source? May 02 07:58:49 no free paid versions May 02 07:59:07 I'm having a major problem with code trying to use May 02 07:59:33 http://imgur.com/a/vZcfE if you think you can me this May 02 08:00:13 $20 to anyone who helps me get this to compile install and run May 02 08:02:29 hi May 02 08:05:49 Hi May 02 08:19:48 how do I open the adb command line console? May 02 08:20:05 on android studio May 02 08:22:07 have you tried the terminal panel? May 02 08:24:10 barbs, yeah I tried writing "$ adb logcat" for example but it doesn't recognize that May 02 08:24:55 Do it in a shell, you'll have much more power May 02 08:25:08 what does it say? does it not recognise the adb command? because it sounds like you'd need to add the tools directory to your $PATH May 02 08:25:23 have you tried using adb from a regular shell? May 02 08:25:44 No, how do I do that? May 02 08:26:06 and it says '$' is not recognized as an internal or external command, operable program or batch file. May 02 08:26:33 Why did you type $ then? :) May 02 08:26:58 what OS are you running? May 02 08:27:18 I'm just following a tutorial. even without $ it's not recognizing it. im using w7 64bit May 02 08:28:24 hmm, I've only really done Android dev on Linux and Mac OS X, so I'm not sure of the equivalent process on Windows May 02 08:28:33 The tutorial probably assumes that you've seen a linux shell, where $ is mostly the same as > in the windows CMD. You're not meant to type it. May 02 08:29:07 just quickly googling, this is probably what you'd want: https://stackoverflow.com/questions/20564514/adb-is-not-recognized-as-an-internal-or-external-command-operable-program-or May 02 08:29:22 barbs: If you're not sure about things such as whether you need to type a prompt, I think you might be a bit in over your head with Android development May 02 08:29:46 just an advice. I need to develop an app to insert many data by using forms. Many forms for many types/categories of data. All data have to be saved in an unique objcet (first in local then to remote db calling a service). Wich is the best way to do this? Single main activity that manages fragments or an activity for each insert category? May 02 08:29:55 CedricBeust: was that aimed at reflection? May 02 08:30:01 thank you barbs ill read that May 02 08:30:12 yeah sorry May 02 08:30:28 heh, all good :) May 02 08:30:55 hehe well im going to give this a go nevertheless May 02 08:32:07 reflection: learning the command-prompt is useful for just about any software development, but it's not strictly necessary May 02 08:32:27 also, if all you want to do is look at the logcat, there's a panel dedicated to that in Android studio May 02 08:32:50 if you look at the Android panel, there should be a logcat tab May 02 08:37:07 thanks barbs May 02 09:19:16 <_genuser_> can the logcat window be fullscreen'd like in eclipse? May 02 09:19:55 What can cause apk to application not installed after doing the install process May 02 09:20:26 _genuser_, there's a preferences icon (wheel) on its title bar, check that out May 02 09:20:40 timeout or installation error May 02 09:21:09 How do i find out the problem May 02 09:21:28 How did you install it? What was the output? May 02 09:22:32 I ran the apk May 02 09:22:51 Went threw the install and it said not installed May 02 09:23:06 It must have said something else May 02 09:23:51 I'm trying to converting to AS from Eclipse but now I get these errors: AnalyticsService not registered in the app manifest. Hits might not be delivered reliably. See http://goo.gl/8Rd3yj for instructions. May 02 09:24:31 And I have this in the manifest: May 02 09:24:42 Nope it didn't May 02 09:25:10 <_genuser_> saapas: I see you can float it. but I kinda like how in eclipse you can just hit ctrl-m and maximize it and again ctrl-m and restore it. May 02 09:25:18 I also get: AnalyticsReceiver is not registered or is disabled. Register the receiver for reliable dispatching on non-Google Play devices. May 02 09:25:24 <_genuser_> saapas: I do'nt something like under the wheel menu. May 02 09:25:35 _genuser_: Agreed, Eclipse's window management is superior to Android Studio's May 02 09:25:35 _genuser_, there's also resize in the menu May 02 09:26:32 what am I missing? May 02 09:26:34 <_genuser_> hmmm, maybe I can set it to float and float it at fullsize and then unfloat it to dock at the bottom. May 02 09:26:53 <_genuser_> CedricBeust: kinda got used to seeing the entire stacktrace and all and now it's hard without fullscreen. May 02 09:27:07 See here May 02 09:27:10 http://imgur.com/a/9Zptr May 02 09:27:32 <_genuser_> ok, that kinda works. float it and set it fullscreen. and then unfloat it. May 02 09:28:24 weird part is that I cant find any hits on google on those errors May 02 09:28:25 ronkrt: Look at the logcat during the install May 02 09:28:29 anyone set up UI/unit testing using espresso? May 02 09:28:35 ronkrt, show us some log May 02 09:28:42 but I suspect this is not a development question May 02 09:28:44 How? May 02 09:29:00 It is i built the apk May 02 09:29:31 how can you built the apk without knowing where are the log and how to show them May 02 09:29:35 mysteryyyy May 02 09:31:24 I use aide May 02 09:31:39 I don't dev on a pc May 02 09:32:26 http://developer.android.com/tools/help/logcat.html I don't know aide ronkrt, but you need to bring some log (maybe aide has an option for that somewhere) May 02 09:33:16 dev on android :v May 02 09:33:37 and does this mean theres a bug in the Google Play Services library? Could not find method android.content.pm.PackageManager.getPackageInstaller, referenced from method com.google.android.gms.common.GooglePlayServicesUtil.zzh May 02 09:39:26 anyone knows how to enable logcat from custom rom phone? I'm getting "Unable to open log device '/dev/log/main': No such file or directory" error. May 02 09:40:15 reflection, seems like a rom issue May 02 09:41:07 will it be smart to keep testing my project on the phone w/o logcat? May 02 09:41:15 no May 02 09:41:31 dunno about now but on my old phone it depended on kernel May 02 09:41:47 without logcat was tiny slightly faster but meh for development May 02 09:41:54 you wont get any stacktraces or error. you cant debug w/o logcat May 02 09:42:15 what a nightmare May 02 09:43:26 get a working rom :P May 02 09:43:41 or just kernel May 02 09:44:18 can i use odin to replace the kernal only? May 02 09:48:03 you should ask that in #android-root May 02 10:03:14 I wish in Project View I could hide the projects that I have not opened in AS. May 02 10:09:29 can i run logcat w/o an android phone? May 02 10:11:50 Hi guys and gals. Will you treat me nicely if I ask a stupid question? :S May 02 10:25:49 Alright, I'll ask the dumb question anyway. I created a custom layout (Grid) for the ActionBar. Now I've hit a roadblock: how do I add functioning buttons to it, can I somehow still use the inflater to do it? (image related: http://i.imgur.com/tREyPyA.png) May 02 10:29:47 tramvai_, are you using toolbar from appcompat or the old actionbar? May 02 10:30:05 This is the old actionbar. May 02 10:30:35 and I guess with "functioning buttons" yo mean menu items (onCreateOptionsMenu) ? May 02 10:30:49 Yes. May 02 10:30:54 then no. May 02 10:31:07 the old actionbar can only hold a custom layout or menus May 02 10:31:11 (afaik) May 02 10:31:16 switch to the new toolbar. May 02 10:31:43 What's the lowest level API for that? May 02 10:31:52 7 i think May 02 10:32:10 because its support library v7 May 02 10:33:04 Is it difficult to convert it? :) May 02 10:33:40 http://android-developers.blogspot.de/2014/10/appcompat-v21-material-design-for-pre.html May 02 10:33:46 see the part under Action Bar May 02 10:34:31 Alright, thanks a lot. May 02 10:34:39 yw May 02 10:36:15 here are the analytics warnings I get when using Android Studio instead of Eclipse, as well as the build.gradle and manifest: http://pastebin.com/KuYzxmiT How to fix? :S May 02 10:36:38 tramvai_, with a custom ActionBar layout you can define the buttons in your layout xml file, inflate it and then set onClickListeners. I've done this not so long ago May 02 10:37:32 Define the buttons AND inflate it? May 02 10:37:33 Quacked|, thats a new feature in analytics v7.3 May 02 10:37:48 tramvai_, the inflation is done in java code, of course :) May 02 10:38:34 danijoo, wth? why does it say analyticsservice is not registered? May 02 10:39:36 has anyone set up UI/unit testing using espresso? May 02 10:39:40 because you didnt set it in your manifest Quacked| :P May 02 10:40:15 saapas: How would I define the buttons correctly? May 02 10:41:07 danijoo, hehe. what is this? I cant find docs on it May 02 10:41:08 tramvai_, the same way you would define any button in xml. or haven't you ever done that? May 02 10:41:09 Quacked|, google analytics can operate in 3 "modes". When google play services are installed on the device, it will use that to dispatch the analytics data. If not, you can either declare the service mentioned in the warning for background dispatching or it will fall back to mode #3 which is local dispatching May 02 10:43:04 I'm sorry, I started learning Android a few days ago. I've yet to wrap my head around everything. May 02 10:43:20 danijoo, aha.. is local dispatching a problem? May 02 10:43:39 What I don't understand is: do you want me to define the buttons manually in the actionbar layout file? May 02 10:44:48 tramvai_, that's ok. I think you started with something difficult :) it's only my recommendation to define the buttons in xml. here's something: http://stackoverflow.com/questions/15518414/how-can-i-implement-custom-action-bar-with-custom-buttons-in-android May 02 10:45:48 Ohhh, I see. Kiitos kiitos. :D May 02 10:45:48 tramvai_, your grid is a gridview or a gridlayout? May 02 10:45:52 tramvai_, ole hyvä May 02 10:46:01 It's GridLayout. May 02 10:46:05 Quacked|, im not 100% sure but I think there is a "deadline" for analytics events. Analytics usually sends events to their server every 30 minutes and stores them on the phone until that. If the devices has a bad connection and cant send the data until next day, they are dismissed May 02 10:46:40 and with local dispatching the app only tries to send data while its running, while it tries even when closed if periodic dispatching is working May 02 10:47:14 so you might lose some analytics data with local dispatching May 02 10:47:43 tramvai_, can't see anything bad using a gridlayout in that. I'm using linearlayout. but yeah, just write those Button elements inside your GridLayout element. May 02 10:48:06 danijoo, making sense now, thanks a bunch May 02 10:48:46 Quacked|, if you only publish through google play store just ignore the warning May 02 10:48:54 yeah May 02 10:48:57 I will :D May 02 10:49:07 google play store requires google play services so they will always be available May 02 10:49:24 Hello May 02 10:49:28 and for that small percentage of custom roms it doesnt matter May 02 10:49:37 Thanks a lot saapas. :) May 02 10:49:55 tramvai_, np May 02 10:50:12 I've created an appwidget adding some .xml files to the project, when I install my .apk, I can't see widget into the homescreen. i've taken a look at logcat, but it seems not much useful May 02 10:50:28 then, if I launch the app from drawer, it crashes, and logcat not seems much useful, again May 02 10:50:39 yeah, I was afraid it was related to me converting from eclipse to AS May 02 10:50:43 about the first issue, what have I to look for getting more info? May 02 10:50:54 logcat doesn't show Error messages, but only Warnings May 02 10:50:55 since I hadnt seen the warning before May 02 10:51:12 Any ideas? May 02 10:52:27 Quacked|, I guess this is because you also updated the version of appcompat you are using May 02 10:52:43 because its a new feature in version 7 May 02 10:52:53 s/appcompat/gps May 02 10:52:54 yeah, I figured that now :) May 02 10:53:44 first project transferred to AS successfully. now for the rest.. May 02 10:54:06 hope I will like AS, hehe May 02 11:02:09 good luck :p May 02 11:02:21 Quacked|: I haven't met a single person who didn't love AS compared to Eclipse :p May 02 11:02:29 sounds good :) May 02 11:03:27 gradle alone is a great advantage May 02 11:04:14 Yeah, most libraries these days don't even offer a JAR package May 02 11:04:41 you just get the package name to add as a dependency May 02 11:16:30 phew. a test suite that actually works! only took me 2 days. May 02 11:17:19 saapas: Hey... I return to you with another stupid question. Do I have to bind a function to each of the buttons, or can they have a common callback on press? May 02 11:19:38 tramvai_, 1) you don't have to bind an onClickListener to any Button, 2) yes they can have a common listener, in which case you could define it as a class variable, e.g. private OnClickListener sharedListener = new OnClickListener() ... May 02 11:30:26 saapas: ... My mind still doesn't load it. :( How do I make the buttons function without binding a listener to them? May 02 11:31:34 tramvai_, if you don't bind any function to a Button, nothing will happen of course :) May 02 11:31:45 tramvai_, you can also bind them via xml :) May 02 11:31:51 that too May 02 11:32:00 tramvai_, what I meant there will be no problem if you don't bind a function May 02 11:32:06 irc has been closed May 02 11:32:13 has anyone answered to me? May 02 11:32:54 cristian_c, change your logcat settings to show all messages, not only the ones for your app May 02 11:32:58 maybe youll get the error then May 02 11:33:30 danijoo, I've tried a full logcat May 02 11:33:50 logcat -f /dst/path *:V May 02 11:34:04 instrad, -d option cuts off many messages May 02 11:34:13 so, I shut it down with Ctrl+C May 02 11:34:20 *instead May 02 11:34:43 anyway, before launching logcat, I always type logcat -c May 02 11:35:12 cristian_c, you dont use an ide? May 02 11:36:00 danijoo, I start logcat in command line May 02 11:36:06 *android terminal emulator May 02 11:36:10 on the device May 02 11:36:26 but I develop from pc May 02 11:36:47 any why dont you use the ide logcat (where you have filters and stuff)? May 02 11:37:35 i can use logcat where I installed application May 02 11:37:53 android side May 02 11:38:02 I think via adb too May 02 11:38:18 why dont you use the one inside android studio? May 02 11:38:30 i don't know how to use it May 02 11:38:47 if you are not experienced, thats the way to go because it gives you easy methods to filter and highlight your errors May 02 11:38:58 it opens automatically if you click "run" May 02 11:39:14 danijoo, but I've not filtered the log, and I don't see error messages (E: ) in the log, anyway May 02 11:39:36 so, I would not see different messages than now :( May 02 11:39:50 if it crashes, there are error messages May 02 11:40:04 danijoo, these are two different issues May 02 11:40:33 1) widget doesn't appear in homescreen/launcher <--- no error messages in logcat during app installation May 02 11:40:52 oh well. logcat never gives errors during installtion May 02 11:40:57 only while app is running May 02 11:41:04 2) app crashes when I launch it from drawer <-- error messages exist but they are not useful May 02 11:41:10 maybe you just didnt declare your widget correctly. May 02 11:41:14 damnit. is there no version of uiautomator for sdk v17? May 02 11:41:14 because I've not touched the code from last time May 02 11:41:39 danijoo, I've added several .xml files May 02 11:41:50 and changed the manifest May 02 11:41:50 cristian_c, "message exists but not very useful" - have you seen the picture in the topic of this channel :p May 02 11:42:04 http://imgur.com/jacoj May 02 11:42:23 daI've made many search about error in the logcat, but gogling was not useful May 02 11:42:24 can I use logcat on a VM device? (android studio's AVD for ex.) May 02 11:43:01 reflection, yes May 02 11:43:02 reflection, the logs from an android emulator ? yes. May 02 11:43:06 *searches May 02 11:43:12 alright thank you May 02 11:44:51 danijoo, 'Caused by: java.lang.NullPointerException' does not help, because I've not touched the .java code May 02 11:45:03 danijoo, I've only added some .xml files and changed manifest May 02 11:45:12 cristian_c, it does. it tells me you have an error in your code or xml May 02 11:45:25 and it gives you the line of that error May 02 11:45:26 so web searches don't return good results May 02 11:45:29 so fix it May 02 11:46:24 danijoo, i get error for actvity file, in particular adding onclicklistener related to a button May 02 11:46:39 but activity is never opened May 02 11:47:21 so, error message is very strange, since I can't click on a button, if activity is not opened May 02 11:48:05 and previously I didn't get any errors about this May 02 11:48:07 :O May 02 11:48:48 cristian_c, one last time: nobody can help you if you dont post code and full stacktraces. May 02 11:49:37 no fortunetellers in here ;) May 02 11:49:49 danijoo, http://pastebin.com/KBKvjbKW May 02 11:50:01 danijoo, I don't know what .xml file have I to paste May 02 11:50:08 *files May 02 11:50:41 hi, i have used systrace.py for tracing cpu sched however if i open html file,i'll see a blank page and i have this is issue in chrome's javascript console: "Uncaught TypeError: Cannot set property 'focusElement' of undefined". How can i solve this problem? May 02 11:50:57 I've google very much about both issues May 02 11:51:06 *googled May 02 11:51:41 cristian_c, still you didnt post any file May 02 11:51:59 danijoo, line 25: unmountButton.setOnClickListener(new OnClickListener() { May 02 11:52:06 and I must go soon so you should hurry May 02 11:52:11 this error message doesn't make sense May 02 11:52:26 danijoo, what xml file? May 02 11:52:34 danijoo, I don't know what .xml file have I to paste May 02 11:53:35 The java class that causes the error obviously May 02 11:53:40 UnmountUsbAppActivity May 02 11:54:27 danijoo, it contains line i've pasted: http://pastebin.com/geNLWRht May 02 11:54:29 and the corresponding xml that you set as contentview for that actibity May 02 11:54:57 main.xml May 02 11:55:54 danijoo, http://pastebin.com/imhxKhtb May 02 11:56:22 danijoo, this is main.xml, I've added widget.xml to /res/layout May 02 11:57:10 do you know any up-to-date android device image repositories? May 02 11:57:22 before adding further .xml files (and changing manifest) no crash happened May 02 11:57:27 *crashes May 02 11:57:41 have you checked if line 21 results in null? ie if the button is not found and the variable is null instead of a button instance? May 02 11:58:06 this one: Button unmountButton = (Button) findViewById(R.id.button); ? May 02 11:58:30 yes May 02 11:58:36 have you checked that? May 02 11:59:10 I could send the value to logcat May 02 11:59:17 with Log.e May 02 11:59:30 you could just attach a debugger and look at the variable at runtime May 02 11:59:33 to see what value it assumes May 02 11:59:53 danijoo, I've tried in past for other reasons May 02 11:59:57 *jdb May 02 12:00:26 sometimes it timeouts May 02 12:00:31 have to go. next time post your files together with the question in fist place. This would have saved us a lot of time for your debugging. May 02 12:00:47 anyway, I can check if the button value is null May 02 12:00:48 good luck May 02 12:01:04 danijoo, I'll post pastes at first May 02 12:01:34 no you didnt. you just said "logcat not useful" May 02 12:01:35 ;) May 02 12:01:39 goodbye May 02 12:01:54 will post May 02 12:01:59 not I've posted May 02 12:05:27 is there an android.R.* layout for a list item with an icon and a line of text, or do I have to create my own? May 02 12:20:04 [Newbie Problem] Hi,I am trying to create a dialog when user clicks a button, i am using onClick eventhandler here is my code http://paste.ubuntu.com/10969712/ May 02 12:26:19 boodllebat: So what's the problem? It isn't showing up? May 02 12:27:18 OmegaVesko: yes its not showing i think it cause i created this in other method lemme show you full code May 02 12:28:38 OmegaVesko: here it is http://paste.ubuntu.com/10969758/ May 02 12:29:55 Ah, I see what your problem is. Your activity need to implement OnClickListener for that method to get called. May 02 12:30:33 how does the location service come up with the bearing/heading value? May 02 12:30:37 So just add 'implements OnClickListener' after 'extends Activity'. May 02 12:31:11 OmegaVesko: but in my previous application it just worked fine onClick() only thing was there that i was adding nothing new to Activity screen May 02 12:32:23 boodllebat, where did you tell the Button to use the activity as the onClickListener? May 02 12:32:48 boodllebat: You do need that interface for Android to know you want it to get called. Since you already have the method, just add the interface and set the button's click listener to 'this'. May 02 12:33:00 It's like two lines of code. May 02 12:33:24 fancy42: no where i created a method onClick(View v) and i compare v.getid to check if its my button :) May 02 12:34:50 boodllebat, but the button doesn't know then that it should call the Bullshit-Activity when it's clicked May 02 12:36:09 fancy42: oh ! my bad i'm new to java and android May 02 12:36:15 Does android studio not take into account the minsdkversion? May 02 12:36:29 It keeps telling me loads of stuff is deprecated, but I need it to support API 15 May 02 12:36:42 Would be nice if it stopped bugging me about this May 02 12:37:20 boodllebat, no worries, we've all been there May 02 12:38:20 AKK9: Can't you just tell it to ignore that? Pretty sure you can ignore any type of warning in IntelliJ. May 02 12:39:07 OmegaVesko, there is a way to turn it off, but I'd want it to tell if I was using something that was deprecated in API 15 and later. May 02 12:45:17 listSeparatorTextViewStyle is there alternative in appcompat? May 02 12:48:57 http://stackoverflow.com/questions/30002471/how-to-programmatically-trigger-click-on-a-menuitem-in-android May 02 12:49:02 anyone please May 02 12:49:03 help May 02 12:49:03 ! May 02 12:51:57 anyone May 02 12:56:40 Duvdevan: Answered. Not sure how much I helped though. May 02 12:58:35 Basically just try calling onOptionsItemSelected() manually. May 02 12:59:44 Duvdevan: why do you want to do it? May 02 13:07:37 #@! AS put my computer on "its knees" after few minutes of xml edition (not even using the layout editor, just changing the text by hands and looking the visual)... May 02 13:07:45 _few minutes_ <<< !!! May 02 13:08:17 adq: hm, it can be a bit laggy for me but it's never that bad.. May 02 13:08:28 but then I have an SSD and 8GB of RAM May 02 13:08:59 i've got an ssd and 8GB of ram.. May 02 13:09:15 heh, no idea then May 02 13:09:38 I'm not looking for idea but thx :) May 02 13:09:41 AS is built in Java so every thing is fine if you have lots of RAM, if you don't however it can get sluggish. May 02 13:10:11 adq, what OS are you sueing? May 02 13:10:22 AS is incredibly fast compared to Eclipse -b May 02 13:10:49 DLSteve, windows and linux but anyway, the OS is not the issue May 02 13:11:36 adq, Sometimes it is just slow. May 02 13:12:07 unacceptable "philosophy" May 02 13:19:08 The UI editor has always been horrendously slow if you have the visual and xml editor up at the same time. I usually just have the xml full screen and swap to the editor mode to look at the layout, May 02 13:39:04 adq, YMMV, in my case Eclipse is infinitely faster than AS in so many ways May 02 14:02:45 does anyone know of a plugin/tool that can scan a resource file and extract any duplicate values? May 02 14:03:10 e.g. if R.color.id1 and R.color.id2 had the same value, it would generate R.color.id3 and reference that May 02 14:15:20 anyone experience on espresso ? May 02 14:18:24 oh my god. how cool it is to have your own test click a button on an activity and thus launching another activity :) May 02 14:20:24 hi! I use Android Studio. Sometimes Project Structure (Ctrl+Alt+Shift+S) opens only with 2 options: SDK Location and Project. And some times with more options: Facets, Modules, etc... Why does it appear different? I can't figure it out. I want to rename module and only option I found - Shift+F6 May 02 14:21:23 shift+f6 is the default shortcut for renaming, but for anything else you described I don't have a direct answer May 02 14:22:31 alximych, I actually have never seen there anything else but SDK Location, Project and then the modules of my app .. so perhaps you have at those times just selected a different project May 02 14:24:38 this is stunning me. Sometimes it opens like this: http://screencast.com/t/kwrPsVBA8 and sometimes like this: http://screencast.com/t/aP2zwG2VSHIL May 02 14:25:50 seems that if gradle sync doesn't work it will show more options... May 02 14:26:20 no, not the sync, I am having an error about Facets so now more options are showing May 02 14:26:39 alximych, are you sure you have at both times selected the same row in the project view ? May 02 14:26:59 saapas, yes May 02 14:27:14 well, then .. I'm sorry I'm clueless too May 02 14:28:27 alximych: I've never seen the second one. May 02 14:29:21 I think the second one is IntelliJ's project-structure dialog. May 02 14:30:23 ctrl+alt+shift.... wtf how many fingers should I have for that May 02 14:31:29 :-) May 02 14:33:09 I guess I found the answer... The window with more options appear for non-Gradle projects, or (I guess) when Gradle configuration crashes (like in my case renaming module crashes build) May 02 14:33:15 http://stackoverflow.com/questions/20616486/missing-settings-after-project-creation-in-android-studio May 02 14:41:13 is there a tool for android where you give it an image and it resizes it to the 4 dimensions that go in the drawable folders May 02 14:41:20 could someone check on their side - does renaming module in Android Studio crashes project build? May 02 14:41:59 aspire: if you use Android Studio: http://screencast.com/t/UJZNGoHj0Z6 May 02 14:42:15 wow really May 02 14:42:23 and it automatically puts it in the drawable folders? May 02 14:42:36 just right-click on res folder and go to new Image Asset May 02 14:42:40 yep May 02 14:43:01 wow no way May 02 14:43:09 ive been manually resizing images on my own fuck May 02 14:43:53 nice -b May 02 14:51:29 I wanted to play with Kotlin so I wrote a library to check how many texts/minutes/etc. I have left on my mobile plan.. May 02 14:51:32 I have too much free time. May 02 14:52:40 Kotlin is so good Google should make a commitment to it. May 02 14:52:43 Google should put a ring on it. May 02 14:52:53 OmegaVesko: consider starting playing World of Warcraft :-) May 02 14:53:10 heh, I'm too broke for subscription-based MMOs :p May 02 14:53:16 if I wasn't I'd probably be playing EVE May 02 14:53:41 Guild wars 2 is free-sub May 02 14:54:16 im using appcompat to write an android app and i know you can change the action bar and notification bar in styles.xml but May 02 14:54:23 how do you change the color programmatically? May 02 14:54:27 I also need to upgrade my PC if I want to run anything released this side of 2010.. May 02 14:58:17 aspire: try this getSupportActionBar().setBackgroundDrawable(new ColorDrawable(Color.parseColor("#0000ff"))); May 02 14:58:36 oh mhmm and for the notification bar? May 02 14:58:41 if it is supported May 02 14:58:44 and thanks i will try that out May 02 15:00:53 aspire: this doc https://developer.android.com/training/material/theme.html says Window.setStatusBarColor() , but I never tried smth like that May 02 15:01:03 hm ok thanks May 02 15:06:41 I am trying to find out why my saving to Parse is taking too long - and I decided to run a trace. I just ran a traceview on it but I'm not sure what to look for to identify culprit - should I be looking at the "Real Time/Call"? May 02 15:09:25 aspire: If you use Toolbar, you can just say "toolbar.setBackgroundColor(whatever);". May 02 15:09:41 I don't see a reason to use ActionBar these days. May 02 15:13:45 Well, unless someone is going for a Holo look. May 02 15:21:19 This is nice in Kotlin: val text = StringBuilder { append("one"); append("two"); if (foo) { append("three") } } May 02 15:30:39 TacticalJoke: Interesting, here's the source http://pastebin.com/4AU1Mvb8 May 02 15:30:45 Again, super concise and very clever May 02 15:31:10 They're adding the closure as an extension function on StringBuilder and run it on the newly object May 02 15:31:37 Yeah, I discovered it from readin the source. :) May 02 15:31:40 reading* May 02 15:32:09 It's fascinating reading the standard-library source. It's like a collection of really smart ideas. May 02 15:32:28 yup May 02 15:32:51 That article about using Dart on Android... ugh. May 02 15:33:02 Kotlin is way more desirable. May 02 15:33:10 Yeah not even close May 02 15:33:22 it's in a proof of concept stage though May 02 15:33:47 depends on what you want I reckon...that said I haven't properly checked out either of them May 02 15:42:14 "Add types to your code to help people and tools. Or don’t. Dart is truly dynamic." May 02 15:42:17 Do not want. May 02 15:46:34 I will be so disappointed if they go with this instead of Kotlin. May 02 15:46:46 which article are you referring to specifically? May 02 15:46:50 http://arstechnica.com/gadgets/2015/05/01/googles-dart-language-on-android-aims-for-java-free-120-fps-apps/ May 02 15:49:15 It might just be the product of bored nerds experimenting. May 02 15:49:42 don't understand from that code https://github.com/JetBrains/kotlin/blob/2963aea6b96621f3228f9e6015e33eae8adc66cf/libraries/stdlib/src/kotlin/text/StringBuilder.kt TacticalJoke how does StringBuilder allows appending other classes besides String and CharSequence ? May 02 15:50:12 yeah I think it's just an experiment at this stage May 02 15:50:26 I do like the focus on performance though May 02 15:50:32 TacticalJoke: dynamic/static and typed/untyped are two different axes, please do not mix them... May 02 15:50:36 It simply calls 'body' on the created StringBuilder. Then, within body, all StringBuilder methods are available (with either "this.foo()" or "foo()"). May 02 15:51:02 'body' is an extension function there; that's why it works. May 02 15:51:22 p_l: That was a quote from the Dart homepage. :p May 02 15:51:28 https://www.dartlang.org/ May 02 15:51:46 heh May 02 15:51:51 TacticalJoke: I mean I don't see method there for Boolean or Integer but that works too May 02 15:52:04 your reaction however suggested interpretation where dynamic = untyped ;P May 02 15:52:10 But actually I don't see how they're different. It's dynamic typing versus static typing, so it's all about types. May 02 15:52:16 Not untyped, no. May 02 15:52:18 Optionally typed. May 02 15:52:39 icedp: It's just the normal StringBuilder methods. May 02 15:52:53 icedp: Ignore those "append" methods; they aren't used here. May 02 15:53:00 TacticalJoke: "optionally typed" is orthogonal to dynamic May 02 15:54:09 you can have a fully dynamic but strictly typed language (Common Lisp), and fully static and untyped (afaik Bliss, C is close too) May 02 15:55:57 p_l: What do you mean by "static" and "dynamic"? May 02 15:57:12 TacticalJoke: static and dynamic refer to whether (and how) easy it is to modify at runtime types etc. May 02 15:57:46 (assembly code that doesn't do any runtime tricks will be static untyped, btw :D) May 02 15:58:06 (well, other than types of the ISA involved) May 02 15:58:32 python is dynamic and typed May 02 15:58:52 javascript is dynamic and untyped May 02 15:59:37 TacticalJoke: Pretty sure the Android team has zero interest in supporting anything besides Java (and the NDK) May 02 15:59:47 Like you say, it's just the work of a few Google engineers May 02 16:00:58 icedp: body is an extension method so it becomes a method on StringBuilder itself, which is why "sb.body()" works. May 02 16:01:09 pfnQ: though python typing is pretty weak ;) May 02 16:01:17 What I wonder if whether the extension method outlives the constructor scope May 02 16:01:17 javascript is also weakly typed, but still May 02 16:01:49 p_l, it's not very weakly typed, with the exception of duck typing May 02 16:02:09 p_l: I guess you're objecting to their use of the word "add" in "add types". I just took it to mean "define at compile time", though I guess it is badly written. May 02 16:02:37 Or "determine at compile type". May 02 16:03:40 Answer to my question: no, body() doesn't escape the scope http://try.kotlinlang.org/#/UserProjects/1088402537507484592711365595477/108840253750748459271224274229 May 02 16:12:00 Hey. I'd like some clarity on something that works, but in my eyes, shouldn't. :) May 02 16:12:41 *android* May 02 16:12:42 Only my main activity has a function "handleMenuButtonPress". I have also set that function as the onClick action for all the ActionBar buttons. May 02 16:13:23 How come the function is recognized, even when I'm on other activity views? May 02 16:13:55 Hi all, please can somebody point me in the right direction for a good tutorial to using tokens? May 02 16:14:03 I want to connect to my website via my app May 02 16:15:14 tramvai: I don't understand your question. What do you mean by "on other activity views", for example? May 02 16:15:57 CedricBeust: Interesting query. :) I notice that if I define locally (val body: StringBuilder.() -> Unit = { append("foo") }) then (as expected) there's no error. May 02 16:16:03 define body locally* May 02 16:16:56 TacticalJoke: If I change the content view (the layout), isn't the respective activity java code loaded as well? May 02 16:17:12 To be clear, I mean this: http://pastebin.com/pfyQmtSv May 02 16:17:14 TacticalJoke: Yes, that's what I was hoping for, it would be a sham if an extension method defined like this leaked in the external scope. Glad it doesn't May 02 16:17:22 Yeah. May 02 16:19:10 tramvai: So you've set onClick="whatever" in menu.xml and these click handlers are working despite call setContentView(somethingDifferent), and you're surprised by this? (Just making sure I understand.) May 02 16:19:33 Yes. May 02 16:22:26 As far as I know, the action bar and the "content view" are separate, so I'm not surprised by this. :) May 02 16:23:15 Apparently, I had the false impression that the activity is changed along with the content. I'm sorry. :S May 02 16:23:57 anyone here know anything about compiling cyanogenmod? the cm channels are dead and I can't get an answer from anyone there. May 02 16:24:40 john_emc2: which cm channels? That's your best bet,, or the mailing list May 02 16:25:41 I'm in both.. cyanogenmod and cyanogenmod-dev May 02 16:27:52 Is there any reason why using tokens is better than cookies on android? May 02 16:30:52 tramvai: Hmm, actually, looking at the source, what you said doesn't appear far from the truth -- Activity.setContentView appears to recreate the ActionBar. May 02 16:31:25 anyone know how Calendar expands its toolbar (upon pressing the month) to show the minimonth view ? lookng through calendar aosp - i dont even see toolbar at all :| May 02 16:31:28 tramvai: I can't check right now, but it might be worth seeing whether onCreateOptionsMenu gets called again (with Log.d(whatever, whatever);). May 02 16:31:40 If so, you could change what you do in onCreateOptionsMenu to get a new menu, I think. May 02 16:31:57 g00s: The AOSP calendar is way behind, no? They only update Google Calendar now. May 02 16:32:04 You could try decompiling it. May 02 16:32:09 OmegaVesko oh really ? May 02 16:32:22 lol May 02 16:32:49 AOSP apps are funny, they are still used right? May 02 16:33:13 Yeah, they stopped updating all (or most) of the AOSP apps that have Google equivalents a while ago. May 02 16:33:15 Yeah, I used to have both the AOSP Calendar and the other one on my phone. The AOSP one looked ancient. May 02 16:33:43 Music was last updated in 2.3, Calendar was dropped somewhere around 4.0-4.1 May 02 16:33:48 ahh. so i giess the one with the changing seasons graphics in toolbar is the Google Calendar one then ? May 02 16:33:53 Yeah. May 02 16:34:31 haha i spent 2 hours looking for the toolbar, found layouts that kinda maybe could have done something but it just wasn't right May 02 16:34:47 :D I've done that before with stuff. May 02 16:35:11 when i started in 2010 i used to read through all of the aosp apps; beside core frameowrk i always had those repos on my machine to study May 02 16:35:25 kinda shame, so few industrial size apps to study now from google May 02 16:35:36 I was reading through the source of "reddit is fun" once wondering how it was possible that the app does X and the source shows Y. Totally baffling. May 02 16:35:43 Then I realised he hadn't updated the online source for years. May 02 16:36:50 :( May 02 16:40:30 icedp: Did you understand that thing? It's kinda tricky at first, but it's easier when you realise it's just extension functions. May 02 16:47:29 TacticalJoke: yeah, I was confused on how it calls java's StringBuilder May 02 16:50:30 hmm https://stackoverflow.com/questions/17493819/is-android-layout-really-exponentially-hard May 02 16:50:55 called 2^depth eh May 02 17:16:59 This is interesting: val text = "something jaden smith would say".replaceAll("\\b\\w") {it.group().toUpperCase()} May 02 17:17:10 https://github.com/JetBrains/kotlin/blob/master/libraries/stdlib/src/kotlin/text/StringsJVM.kt#L481 May 02 17:25:13 TacticalJoke what are you up to today ? May 02 17:26:13 Not much for the rest of the day. Got back from London a few hours ago. May 02 17:29:03 Should've gone to Buckingham Palace to see all the crazy people getting emotional about the royal birth. May 02 17:29:23 g00s: ! May 02 17:29:49 hey thepoosh :D May 02 17:30:09 we have until Wednesday to publish 100% May 02 17:30:23 How about you, g00s? What does a g00s do on a Saturday? May 02 17:30:31 thepoosh great, because you will publish 120% ! May 02 17:30:40 F-yeah May 02 17:31:08 TacticalJoke oh the usual existential crisis, wondering if i designed my whole UI wrong, etc May 02 17:31:17 :D May 02 17:31:34 takes so long for me to get things looking the way i want, when i decide maybe its not right at all and should be scrapped its very sad May 02 17:32:19 i'd like to replicate google calendar toolbar expansion for some slide out controls of the connected bluetooth device. that should be pretty cool May 02 17:32:32 but not sure how to do it ... May 02 17:33:09 Can you use animation and increase the height? I did something like that once with Toolbar. May 02 17:33:19 Though I don't recall the details. May 02 17:33:58 i could probably do it w/o any connection to the recyclerview underneath, but the way these work is when toolbar expands, it seems to push the listview down too May 02 17:34:42 so i'm not sure if toolbar is a header view of recyclerview ... May 02 17:36:22 but then scrolling the listview upwards, it appears toolbar is part of it hmm May 02 17:37:52 tbh I think it's always faked. that way you can do it without layout changes, just scroll / translation offsets. May 02 17:38:44 groxx do you think calendar is doing something like the criss banes post? May 02 17:38:55 lemme check the calendar May 02 17:40:46 bleh. nothing that has enough data to scroll. anyway, yeah, mostly I think so May 02 17:41:55 overlay an expandable view, resize it on scroll. probably a transparent toolbar over that, since faking it could be messy. May 02 17:42:07 groxx when you go into Calendar, from the nav drawer select 'Schedule' May 02 17:42:15 mine is empty, just endless days ... May 02 17:43:29 g00s: schedule, hm. maybe you're referring to something else? the month dividers? May 02 17:43:34 can somone tell me can i trun GPS on off i dont want to waste battery life all time? i googled and some sey yes like normal some sey no, some sey yes but must rooted , so whats up with thet i have kitkat May 02 17:44:01 Gnjurac: just turn it off in settings May 02 17:44:04 i want turn on gps, get location, turno off May 02 17:44:23 ye but i want program to do it May 02 17:44:39 not evry 20 mins turning on off manual May 02 17:44:41 that's how it works normally, it's just that multiple apps do that through the day May 02 17:44:42 groxx in schedule mode, pres the month in toolbar like 'April 2015' May 02 17:45:07 g00s: oooh May 02 17:45:21 and from there you can swipe left or right, its like a viewpager May 02 17:45:26 Gnjurac: oh, just grab a single location and then disconnect from the gps May 02 17:45:26 minimonth view May 02 17:45:48 JesusFreke: dude i want to get my location evry half hour May 02 17:46:27 so example getGPSlock sleep 30min May 02 17:46:46 Gnjurac: so grab a location, and then disconnect from the gps, every 30 minutes May 02 17:47:08 turnONgps getGPSlock turnOFFgps sleep 30min May 02 17:47:17 you don't need to turn it on or off May 02 17:47:23 if it's not being used, it doesn't use any battery May 02 17:47:29 g00s: do mine eyes deceive me, or does the shadow double up when the months are displayed? May 02 17:47:46 oh dident know thet May 02 17:47:58 but anywey can i turn it off? May 02 17:48:05 not that I'm aware of May 02 17:48:21 the user controls the overall enabled/disabled state of the gps May 02 17:48:39 groxx hmm, not sure. now if we go into month view, and swipe left/right we see between each view some of the wallpaper May 02 17:48:43 you can't override that May 02 17:49:02 g00s: I'm not sure how to efficiently resize a layout like that, but I assume there's something fairly simple. beyond that, it just looks like it's tracking scroll and adjusting. not too hard. May 02 17:49:17 otherwise, the user could turned off gps, but it wouldn't mean anything, because a program could just turn it back on. May 02 17:49:41 g00s: not sure what you're seeing May 02 17:49:50 groxx lol, me neither :D May 02 17:49:59 wonder what the view hierarchy could be May 02 17:50:24 paging looks flawless to me fwiw. is there a flicker or a gap or something? May 02 17:50:24 oh May 02 17:50:35 ok May 02 17:50:36 i dont see anything. i'm on 4.4.4 tho May 02 17:50:41 dident know thet May 02 17:50:47 The wallpaper seems separate from the fragment/view for the month. May 02 17:51:05 though you can get some weird behavior if you half-close it and page back and forth :) May 02 17:51:18 g00s: ah, could be relevant. I'm on 5.1.0 May 02 17:51:22 Calendar looks kinda neat, but I dislike how laggy it is on my devices. Makes it feel poorly made to me. May 02 17:52:30 I have: locationManager.requestLocationUpdates(LocationManager.GPS_PROVIDER, 0, 0, locationListener);. When I use Genymotion, locationListener.onLocationChanged() gets called every second. When I try on my real device, though, nothing happens. It doesn't get called at all. May 02 17:52:33 hm yeah, Schedule view is very laggy scrolling - but i dont have anything like that May 02 17:52:36 just poked at a 4.4.4, not seeing any difference. May 02 17:52:41 locationManager.isProviderEnabled(LocationManager.GPS_PROVIDER) is true. May 02 17:52:56 Any ideas why? Or how to debug it? Not sure how to get around this. May 02 17:53:21 schedule view is laggy? May 02 17:53:32 * groxx has never seen it slow May 02 17:54:05 are you running an accessibility thing maybe? I turned that off for performance reasons. May 02 17:54:12 nope May 02 17:56:36 well, n6 and n4 work well with it for me. but they're reasonably performant devices. what's yours? May 02 17:57:03 2013 n7 May 02 17:57:27 n97 May 02 17:57:57 groxx could this be what those NestedScrollingHelpers are ? for example May 02 17:58:16 how do i connect a javascript library? May 02 17:59:11 g00s: doubt it. they seem for same-axis scrolling, not perpendicular. there aren't any problems with perpendicular May 02 17:59:33 i have a link to a .js file, and in a tutorial, it says connect library with the tag May 02 17:59:48 but that's still just doubt, I don't actually know for sure May 02 18:00:29 right ... so you would have root as scrollview, and 2 children: viewpager for minimonth and recyclerview for all the other scrolling stuff. but the 2 views together scroll in the same axis as RV (up/down) May 02 18:01:03 they scroll vertically? May 02 18:01:24 the mini calendar only pages horizontally for new May 02 18:01:25 stupid qsn, nevermind.. May 02 18:01:27 groxx, yeah, I'm surprised the accessibility toggle makes shit so slow May 02 18:01:28 i think this is too hard to describe over irc, oh well May 02 18:01:37 groxx, it kill chrome performance May 02 18:01:57 pfnQ: yeah, it's complete bullshit. accessibility is obviously an afterthought. May 02 18:01:57 RishabhTatiraju: Are you talking about calling Android code from JavaScript code hosted in a WebView? May 02 18:01:58 groxx, even when the accessibility services it calls don't even do anything May 02 18:02:11 RishabhTatiraju: Oh, you said "never mind". Just saw. May 02 18:02:19 yeah :P May 02 18:02:27 OWM tuts are really bad May 02 18:02:33 groxx, like I have my accessibilityservice disabled when in chrome May 02 18:02:52 groxx, yet chrome still feels like it's running through mud May 02 18:02:53 So many Android tutorials are bad. I can barely remember a good one. May 02 18:03:09 until i completely turn off accessibility May 02 18:03:43 i'm curious about this thing but it has no examples https://developer.android.com/reference/android/support/v4/widget/NestedScrollView.html May 02 18:04:19 they could have put a video or something demostrating wth they mean May 02 18:04:34 sounds clear May 02 18:04:35 but this is .. google, you're on your own May 02 18:04:42 Videos don't fit in Javadoc. :D May 02 18:04:44 scroll view inside scroll view May 02 18:05:55 what if you have recyclerview inside scrollview May 02 18:06:10 does RV need to be extended to implement NestedScrollingChild ? May 02 18:06:39 yeah, lets not pretend this is clear May 02 18:08:22 this is great. when i search for nestedscrollview, i get https://developer.apple.com/library/ios/documentation/WindowsViews/Conceptual/UIScrollView_pg/NestedScrollViews/NestedScrollViews.html May 02 18:08:37 see, apple knows how to do it, why can't google ? May 02 18:09:24 can i somohow bock other ups from using Location if i enable it? May 02 18:09:37 because google said apple has the docs for it and it does the same thing, lets not bother May 02 18:09:52 i wish they did that with the whole platform :D May 02 18:10:54 ok screw it, i'll just keep lookout for a blog on these / SO post. gotta get work done May 02 18:13:21 g00s: recycler inside scroll is probably what the helpers are for. not sure how to use them though May 02 18:13:41 source of nested scroll view might use the helpers though? that would be convenient May 02 18:15:33 Hi all, I am hooking up an android app with Azure mobile services and hit a basic issue - would be great if someone can help May 02 18:15:51 the return from the Azure service is a JSON and I am parsing it using GSON libraries May 02 18:16:13 now the field name is starting with underscore - like _groupname May 02 18:16:19 @com.google.gson.annotations.SerializedName("_groupname") private String _groupname; May 02 18:16:29 how do I write a getter setter for this? May 02 18:17:46 anyone there? \o May 02 18:17:55 you can have get_Field() or _field(), I assume? does gson require a naming convention? May 02 18:18:27 geekru2: and irc response times are sometimes measured in hours. no immediate reply implies nothing. May 02 18:20:01 Thanks groxx : is there a getter setter convention? should the first char be caps? and what if it is _? gson does not require a naming convention May 02 18:20:10 its a getter setter doubt. May 02 18:21:42 geekru2, I'm not sure what you're asking May 02 18:22:03 starting field names is not a recommended style for Java and you should avoid it anyway May 02 18:22:15 hence there's also no real recommendation for it, since it should be getField() anyway :) May 02 18:23:18 Mavrik: but would a get-_field() work? I understand I should be changing it. May 02 18:23:27 get_field() I meant. May 02 18:23:36 why do you think it wouldn't? May 02 18:25:30 if field needs a setter as setField() was wondering why such a convention then? how do we caps underscore :) May 02 18:25:57 geekru2, getters and setters in Java are just a convention May 02 18:26:06 there's nothing that would NEED "setField" May 02 18:26:16 GSON will resolve internal field via the annotation May 02 18:26:37 but you WILL get slapped by your supervisor if you'll name shit like get_field() May 02 18:38:57 Thanks Mavrik - it worked. and now I am fixing all the stuff according to conventions. May 02 18:48:50 TacticalJoke still around ? May 02 18:55:13 Yeah. May 02 19:00:33 TacticalJoke i got the impression you put Spinners in your toolbar ? May 02 19:00:50 Yeah, just one. May 02 19:01:16 ok, so it was a child of Toolbar proper , not a separate area colored to look like toolbar ? May 02 19:01:33 Right. May 02 19:01:52 TacticalJoke was the toolbat extended height or normal ? May 02 19:02:14 I use android:layout_height="?attr/actionBarSize". May 02 19:02:20 טקד! May 02 19:02:23 yes! May 02 19:02:26 use that May 02 19:02:33 lol hey thepoosh May 02 19:02:35 but it's 60dp May 02 19:02:37 TacticalJoke and what theme did you use for it ? May 02 19:02:39 hi AlmogBaku May 02 19:02:48 טקד May 02 19:03:01 TacticalJoke or - do we not have to worry about that if we use android:theme on Toolbar May 02 19:03:02 I'm using ThemeOverlay.AppCompat.ActionBar. May 02 19:03:19 ok but did you set that on Spinner also ? May 02 19:03:28 Oh, no. I think it is inherited. May 02 19:03:33 does anybody here eve an experience \w AndroidAnnotations / ButterKinfe? May 02 19:03:40 TacticalJoke ok thanks May 02 19:04:03 I can tell that it's inherited by simply removing it and seeing that my spinner now shows the wrong text colours, etc. May 02 19:04:06 TacticalJoke oh also, did you have a title ? or was the spinner replacing that area ? May 02 19:04:11 Or by setting it also on the Spinner and seeing no difference. May 02 19:04:18 Nah, my spinner replaces that. May 02 19:04:49 AlmogBaku: I think several people do; might as well just ask. May 02 19:05:39 TacticalJoke, what do you recommend? ButterKnife+Dagger VS AA ? May 02 19:06:02 i dont hear much about AA, and its concurrency annotations seems kinda lame May 02 19:06:18 concurrenct annot? May 02 19:06:22 concurrency annot? May 02 19:06:53 yeah this garbage https://code.google.com/p/androidannotations/wiki/WorkingWithThreads May 02 19:07:03 AA is nice since it's type safe and requires less wiring than Dagger + ButterKnife May 02 19:07:08 so i guess then, go Dagger, ButterKnife, RxJava :) May 02 19:07:10 it also doesn't break proguard as readily May 02 19:07:13 lol May 02 19:07:31 On the other side some parts of it are not really all that great :) May 02 19:08:03 like the concurrency stuff ;) May 02 19:08:10 Even though still better than AsyncTask :P May 02 19:08:22 poor asynctask can't get a break May 02 19:08:44 haha May 02 19:09:12 haha May 02 19:10:14 I less care about "weiring" stuff.. or specific issues.. I more care about design, scale, and learning curve for my team May 02 19:11:01 groxx i'm having a problem with animations in recyclerview - doing it the way we talked about the other day. i shrink the view, and the RV items below fill in the space right away, but that happens /before/ the view to be shrinked, astually has time to shrink ... so there is a slight overlap May 02 19:11:41 so, the view that is shrinking - its animation is happening after the recyclerviews have moved into the blank space May 02 19:12:44 AlmogBaku, AA "just works", the others hide less from you and may be easier to persuade to do more fancy stuff May 02 19:13:16 this is with android:animateLayoutChanges="true" hmm, i guess the simple way isn't good enough May 02 19:13:21 I'm just not sure if AA is maintained much, I went with Dagger2/BK on newer projects May 02 19:13:46 g00s, fillAfter? May 02 19:15:11 Mavrik thanks. reading "The undocumented behaviour of fillAfter" May 02 19:15:25 http://cogitolearning.co.uk/?p=1203 :D May 02 19:15:37 thanks May 02 19:16:01 AA last commit is from 2 days ago May 02 19:20:00 AA's latest commit: "Consume just one more vodka (no more today, seriously this time)" May 02 19:23:32 but aren't it all different things? AA injects views, fragments, services but doesn't allow (or does it?) injecting your pojos which dagger excels at May 02 19:23:45 also can you inject views in adapter for example with AA? in BK you can May 02 19:46:37 How much libraries do you have guys? I have like 8MB worthy of libs in one app lol http://paste.ofcode.org/NaUpxTYNjZ5WXNi6Bc8VnU May 02 19:49:47 im having a lot of trouble making this layout http://imgur.com/Zs2VIsN . Would you guys recomend i bunch of horizontal linear layouts? or some vertical ones with the grid as a gridview? May 02 19:51:24 or maybe a few vertical linear layouts? May 02 19:52:14 which part of the layout? May 02 19:52:20 the rounds list? May 02 19:54:01 hi! I have a layout, that can display a lot of text details and a few buttons at the bottom. I want the text details to be squeezed if it's too large and the buttons to be displayed at all times. At the moment the ScrollView scrolls, but it takes so much space anyway that the buttons are somewhere beneath the display. How do I squeeze the text details? This is an example of layout: http://pastebin.com/5Zk0RtdY May 02 19:57:14 eprime: im having issues with the whole thing tbh May 02 19:59:33 well, i don't know a lot of details about your layout and logic, but for the scores list you coudl actually use a listview May 02 20:10:17 I have an activity that when you press a button, it takes you to the camera. After you have taken a picture, I want to check if the image is blurry (intensive process, done via opencv library), then based on the results of imageIsBlurry, I will either direct the user to a new activity or restart the camera for them to take another picture. I'm having issues with the flow of this - for example I want May 02 20:10:18 to throw a progress dialog while still in the camera but instead am being taken to the original activity. https://gist.github.com/anonymous/ece6a789d62eaf242279 May 02 20:11:24 This is cool: File("foo.txt").forEachLine {println(it)} May 02 20:13:03 TacticalJoke: language? May 02 20:13:03 Would it be secure to use a local key to decrypt JSON files? May 02 20:13:09 kotlin? May 02 20:13:11 Yeah. May 02 20:13:15 @gdrc May 02 20:15:15 TacticalJoke: that's nice. at the moment I'm playing with Objc May 02 20:39:06 Anyone using Facebook SDK? Why does it have ugly Froyo-style progress dialogs? May 02 20:39:33 froyo is pretty ;) May 02 20:40:51 ravilov: ... May 02 20:41:27 dimitrovskif ravilov still uses gingerbread :) May 02 20:41:43 me too May 02 20:41:57 lol shmooz i had no idea May 02 20:42:28 alximych: May 02 20:42:43 my phone is gingerbread htc panache, and I have no reason to replace it May 02 20:43:11 shmooz well beside all the security bugs that were never fixed :P May 02 20:43:49 blah May 02 20:44:00 shmooz: You won't be able to run my app. ;o May 02 20:44:07 shmooz does it have replaceable battery ? May 02 20:44:17 I'll run it on my tablet May 02 20:44:52 g00s: yes it does, the default was 1400 mAh and I found 2500mAh on ebay once May 02 20:45:19 with the same thickness, so I don't need a thick backcover, it was nice, but I can't find those 2500's anymore :( May 02 20:45:46 well i have my droid-1 sitting here :D May 02 20:45:58 but both batteries have kinda had it May 02 20:46:23 now i'm more worried about the thing catching on fire so i leave it off :D May 02 20:46:26 g00s: you can buy batteries for any old device on amazon or ebay May 02 20:46:41 for like $5 or $10 May 02 20:47:06 the droid-1 is built tough but its terrible. everything is so janky May 02 20:47:15 you can press something and nothing happens for like 2 secs May 02 20:47:18 Does anyone know how to display a Toast within a Camera Preview? May 02 20:49:31 Just like you usually do? O.o May 02 20:56:29 mendozao: By displaying it like you do when there is no camera preview lol May 02 20:57:26 mendozao: Assuming Camera Preview is some View that captures the camera May 02 21:07:41 dimitrovskif: i guess what I'm asking is, if I'm firing an intent to open up the camera, what context would I pass into the Toast? May 02 21:08:42 mendozao, you should probably display toast first, then start the activity and count on the fact that Android won't dismiss it May 02 21:08:46 that's about the best you can do May 02 21:09:00 of course, if camera preview is a SurfaceView on top you might be out of luck May 02 21:10:06 mendozao: You can't do that. May 02 21:10:46 dimitrovskif: why not? May 02 21:10:58 mendozao: Because that would open a camera app, not your app. May 02 21:11:16 dimitrovskif: ah May 02 21:11:25 hi May 02 21:11:30 Gnjurac: zdravo May 02 21:11:36 dimitrovskif: so if I implemented a custom camera, then it would be possible May 02 21:11:37 ee May 02 21:11:54 mendozao: Yep, definitely. Keep in eye though, it's not a simple taks. May 02 21:11:56 *task May 02 21:12:08 dimitrovskif: okay I figured May 02 21:12:40 *mind May 02 21:13:16 dimitrovskif: so Mavrik's suggestion to display the Toast first would not work, right ? May 02 21:13:33 so is it possible to make app thet runs comand on pc unlock, ACTION_USER_PRESENT but to fillter it to not run if its ACTION_USER_PRESENT if call income? May 02 21:14:41 second question is it possible to add some button thet you can click to run some command when you recive call so if you unlcok phone to recive call you can press thet button to stop executing myapp May 02 21:14:57 dimitrovskif, mendozao, Toasts stay on screen even after the activity dismisses May 02 21:15:11 igonr my last i posted it wrong May 02 21:16:35 anyone know of a good vid/tut on drag-n-drop recyclerview? May 02 21:16:56 there was a listview one but i think its kinda outdated (from google) May 02 21:17:15 mendozao: It might not work May 02 21:18:19 mendozao: Toasts can be visible a few secs after you pause your activity, but you don't know what the camera app will do. It might have a View that blocks toasts for example May 02 21:18:35 mendozao: Why do you need to show that toast? May 02 21:18:48 can you add some button on screen when reciving call ? May 02 21:18:50 mendozao: You can show your toast and load camera after it gets hidden, for exaple. May 02 21:19:17 Gnjurac: I think you can May 02 21:19:28 Hello, please how to check if CreatePlatformEndpointAsync went ok???? I'm wanting to register an Android endpoint after getting the token from GCM using AWS Mobile SDK for Xamarin, could anyone help please? May 02 21:19:29 or some bacground service so if you do something it will run my app May 02 21:19:41 dimitrovskif: whitout root? May 02 21:20:14 Gnjurac: I am not completely sure, but there is a PhoneCallListener, and there is also a way to overlay UI so if you combine those two it should be possible I think May 02 21:21:06 ye i didnet figure the word to explan overlay UI hahaahah May 02 21:25:33 i think this will do the job May 02 21:25:33 SYSTEM_ALERT_WINDOW" May 02 21:27:26 or not duno if i can ineract with thet window May 02 21:33:56 dimitrovskif: After a user takes a picture, I need to check if the image that was taken is blurry or not (which takes about 3-4 seconds to compute), so if the image is blurry, i want to return the user to the camera and show them a toast that says "Take another picture, yours was too blurry", otherwise, proceed to next activity May 02 21:35:15 mendozao: Well fire the intent a few secs later May 02 21:37:34 mendozao: Show toast and schedule the intent for 1s. It will be visible on your app and on the camera app (if it doesn't draw on top) for the remaining time May 02 21:38:20 mendozao: Since toast length is 3.5 seconds, 1s guaranteed + 2.5s probable on the camera app May 02 21:38:53 dimitrovskif: makes sense. What do you think about the computation of if image is blurry - should it be done on the main thread or in an async task? May 02 21:39:04 mendozao: Async task definitely. May 02 21:52:22 "We’re going to take a bitmap snapshot of the list item being dragged and set the image of the ImageView which can then be moved within the FrameLayout as the user drags with his / her finger." oh man, i thought this was obsolete with recyclerview May 02 21:52:30 such crappy api May 02 22:09:06 Hello there! May 02 22:12:51 Facebook SDK is using an old theme "android.R.style.Theme_Translucent_NoTitleBar" can I somehow override it from my app (i don't want to recompile their SDK) May 02 22:12:53 Lol. In the /r/programming thread about Dart on Android: "I see nothing wrong with C++". May 02 22:13:12 I think the guy needs glasses. May 02 22:13:12 There is no way to change it, it's a private static final... May 02 22:14:31 TacticalJoke lol, i'm just reading that May 02 22:14:33 "CONGRATS, RATHER THAN BRINGING ANDROID DEVELOPMENT TO THE CURRENT DECADE, YOU REINVENTED PHONEGAP." May 02 22:14:52 :D May 02 22:15:09 i like this comment "What sucks is that development using the traditional Android SDK really sucks, but most Android developers haven't experienced much outside of Android, so they don't really know what they're missing." May 02 22:15:24 i get that feeling ... May 02 22:15:57 I have a question May 02 22:16:25 is there any library or technique to make a searchbar like when you enter to google in the webbrowser and start a search? May 02 22:17:51 reddit has a new mobile site: http://m.reddit.com/ May 02 22:18:04 or like the youtube app, where you press the search button and you enter in a new activity only to search May 02 22:18:13 i cant find any library to do it May 02 22:20:03 tksko: This kinda thing? http://developer.android.com/reference/android/widget/AutoCompleteTextView.html May 02 22:20:09 I've not used ACTV, though, so I dunno how good it is. May 02 22:21:41 TacticalJoke lol that thread is comedy May 02 22:21:49 the Dart one on /r/programming May 02 22:22:07 "I imagine because they took an OS designed for keypad bricks and repurposed it to chase after the iPhone, while not understanding the design principles and the technological choices motivated by them until years later when it's too late to change." May 02 22:23:37 nope May 02 22:23:55 i want a search functionality like the new google play store, or latestes youtube app May 02 22:24:05 where you enter in a "white search mode" May 02 22:24:24 with suggestions or not, but its like a widget or something May 02 22:24:52 well I have zero experience on non-Android mobile OSs. I though a report from a developer on building tasks app for iOS and Android - both took roughly the same time and there were no clear winners according to him May 02 22:25:41 a tasks app is bullshit, its like helloworld icedp May 02 22:26:23 I see that guy s73v3r in almost programming thread. :D May 02 22:26:31 hehe May 02 22:26:44 He's being either upvoted a lot or downvoted a lot. May 02 22:27:20 that great, he's controversial :D i like that May 02 22:28:54 g00s: well maybe. nevertheless it had dbs, syncing, search and stuff. so pretty common app actually. my point is -- I'd like to see an example of a suckless mobile API May 02 22:29:27 I bet Square could make one. :) May 02 22:29:29 SquareOS. May 02 22:30:10 The native language would be Kotlin. May 02 22:30:31 nah, screw the jvm on mobile May 02 22:30:34 rust ! May 02 22:30:36 I don't think it'd be too hard, really. The hard stuff has to be the nitty-gritty details under the hood. May 02 22:31:04 But the that's exposed... that's just a question of neat API design. May 02 22:31:08 the stuff* May 02 22:31:11 Yeah, Rust would be nice. :) May 02 22:31:41 I'd definitely take the extra complexity for the awesome performance May 02 22:31:51 But only because it seems to be a neat language. May 02 22:33:13 g00s: Kotlin compiles to JS... May 02 22:39:28 Are you folks gonna be rooting for the Pac Man tonight? May 02 22:39:40 To me he seems the lesser of two evils. May 02 22:39:47 Actually, he seems like a kinda nice guy. May 02 22:41:08 TacticalJoke: the Pac Man? May 02 22:41:29 http://www.theguardian.com/sport/live/2015/may/02/floyd-mayweather-v-manny-pacquiao-undercard-and-fight-build-up-live May 02 22:41:30 Manny Pacquiao ... i'm definitely rooting for him! May 02 22:41:35 ah May 02 22:42:27 yay shmooz! high five May 02 22:42:59 g00s, you keep going on and on about all these "secutity flaws", as if that really affects everybody and everybody should tremble in fear because of them :p May 02 22:43:09 (re: GB) May 02 22:44:55 ravilov well google did fix them, just in the next version of android :P May 02 22:45:30 that just the point... it doesn't actually matter to everyone May 02 22:46:26 personally, I couldn't care less about them because I know for a fact they don't affect me. I don't expect you to understand or believe me ;) May 02 22:57:14 There seem to be a lot of different ways to make MediaRecorder use the front-facing camera, but they all seem to depend on Camera (which is deprecated). What is the *right* answer? May 02 22:58:03 what does this mean? // Your package name MUST NOT start with an uppercase letter. but the sample of gcm client is "Sample", could anyone explain? May 02 22:58:33 livtyler: It means your package name must not start with an uppercase letter May 02 22:59:00 kba: but "Sample" starts with uppercase right? May 02 22:59:05 Yes May 02 22:59:27 kba: and Sample works May 02 23:04:27 so I'm learning RxJava now.. don't beat me hard, guys. https://gist.github.com/mlatu/688e8cb26dd5d83aea73 That works until I rotate the screen just after the search begins. getActivity() returns null then. How do I handle this? May 02 23:23:16 You can't do anything while you don't have an activity but that activity will return as soon as the rotation is finished May 02 23:24:46 I've never tried that but I wonder if combineLatest() would work with one being your result and the other being activity. Your observer will only get called once you have both values May 02 23:26:17 i remember there was an android class like Timer ... i think it gave you ticks at intervals before time up May 02 23:26:49 Time should have nothing to do in the solution to this problem May 02 23:27:03 activity becomes null for a short period of time, make sure your code doesn't get called during that time May 02 23:27:08 oh i was just wondering what this was, i forgot it May 02 23:27:14 aha CountDownTimer May 02 23:28:09 I was wondering why this code looked very familiar (https://gist.github.com/mlatu/688e8cb26dd5d83aea73) and I just realized it seems to be because it was picked directly from my blog post :) May 02 23:32:17 CedricBeust: I've typed it :) but I indeed looking at your examples CedricBeust thanks :) May 02 23:32:49 icedp: Glad you found it useful. I'll look into implementing my suggestion to handle orientation changes, I wonder if it works May 02 23:50:06 Whenever I try to launch an x86 AVD it can never reach the boot logo. What could it be wrong? May 02 23:52:12 ExeciN try genymotion May 02 23:52:17 make sure you have vt-x May 02 23:53:55 g00s: can I debug my apps like on the arm AVDs? May 02 23:54:19 yeah - just one problem, geny doesn't have play services May 02 23:54:29 you can finagle that , but its an extra step May 02 23:55:19 its ok I don't care for play services for the moment May 03 00:04:09 CedricBeust: to my greatest surprise it worked the first launch. Very unusual for Android =) https://gist.github.com/mlatu/055ad3e101f8632ef9ed May 03 00:04:26 my htc one mini is stuck in fastboot May 03 00:08:03 icedp: Oh you already implemented it, nice May 03 00:08:11 mices #android-root May 03 00:08:12 mices: http://forum.xda-developers.com/showthread.php?t=1658084 May 03 00:08:25 CedricBeust: only it leaks activities May 03 00:08:39 icedp: Actually it's not quite what I had in mind May 03 00:08:44 icedp sounds like it works normally then :D May 03 00:09:45 icedp: Just make every activity destroy itself on launch. solves your leak May 03 00:09:52 :P May 03 00:10:08 g00s: lol May 03 00:29:45 Hello, could anyone point to some working sample on how to register an endpoint to Amazon SNS with the token provided by GCM? I'm using AWS Mobile SDK for Xamarin, help please May 03 00:31:23 Does anyone know how to disable the git change indicators next to the scrollbar? I find the changes shown next to the line numbers more than enough: https://i.imgur.com/aFBESE3.png May 03 00:51:32 CedricBeust: what have you had in mind?) May 03 00:52:31 :( my toolbar is schizo, is it owner by activity? by the fragment? its got stuff from both May 03 00:52:50 icedp: An observable that emits an activity or null based on the lifecycle of the app. Then you combineLatest this with your result and only observe if both are non null May 03 00:53:00 This way your code is never entered if the activity is null and it's all handled by Rx May 03 00:53:15 Does anyone know how to get custom dictionaries working in AS? I added a Dutch one (.dic) and it just doesn't do anything with it, I did restart it. May 03 00:57:35 hmm yeah i agree with dave smith https://plus.google.com/+DaveSmithDev/posts/PRGTCBxU3En May 03 00:58:26 g00s, I like it :) May 03 00:58:40 I actually only tried RecyclerView because I needed a horizontal listview May 03 01:01:38 i dont know how, but i came across that trying to find a resource for icedp :P May 03 01:02:50 aha ! icedp http://blog.bradcampbell.nz/rxjava-handling-configuration-changes-with-request-observables/ May 03 01:03:21 i saw that a week ago, not sure if its good though - looked decent May 03 01:17:33 g00s: ah so he argues to store either observable or values in a singleton so they survive orientation changes May 03 01:17:58 g00s: thanks, will try that May 03 01:18:17 ;) May 03 01:30:09 Hey all. With gabrielemariotti's cardslib - Does a shadow show up by default, and is there padding by default? May 03 01:30:20 Because right now it's just taking up the whole space and looks like a square May 03 01:30:28 Er, rectangle. May 03 01:47:08 groxx i'm starting to suspect that the Calendar view is using some nested scrolling feature? A Scrollview with 2 children: minimonth, and listview for events May 03 01:47:20 http://stackoverflow.com/questions/25136481/what-are-the-new-nested-scrolling-apis-for-android-l May 03 01:54:17 ah, it's InputMethodManager that leaks http://t.sql01.com/sc/fac08eff_1430617974.png nothing to do with a rx stream containing activities (strangely) g00s CedricBeust_ May 03 01:54:54 icedp: How does that happen? Are you looking up an input method manager? May 03 01:58:29 CedricBeust_: that problem I had before. just using a searchview, doing nothing fancy with the input manager. There are reports (some are old) with the similar problem. https://code.google.com/p/android/issues/detail?id=34731 http://stackoverflow.com/questions/5038158/main-activity-is-not-garbage-collected-after-destruction-because-it-is-reference/23889598#23889598 May 03 01:59:55 Which language between scala and clojure is better on android? May 03 02:00:02 I want to make an android app. May 03 02:00:17 well, its not clojure for sure May 03 02:00:25 use brainfuck May 03 02:00:27 which leaves you ... scala and kotlin May 03 02:00:44 g00s, clojure on android has been there for a while May 03 02:00:53 It's just not mature yet. May 03 02:00:53 and hasn't worked well for just as long May 03 02:01:06 g00s, What was the last time you used clojure on android? May 03 02:01:18 i just read about it again last week May 03 02:01:34 g00s, sounded good enough May 03 02:02:30 http://blog.ndk.io/2015/04/23/state-of-coa.html May 03 02:02:30 crocket: Neither Scala nor Clojure. Kotlin is your best bet. May 03 02:03:20 Clojure will always be dog slow on Android for the simple fact that it's dynamically typed. It will never be fast. May 03 02:03:53 Scala's runtime alone is 50,000 methods. Add this to the fact that Typesafe is moving to Java 8 soon and you realize Scala is not realistic on Android either May 03 02:04:02 CedricBeust_, Clojure has slow startup time (3-4 seconds) May 03 02:04:05 Which leaves... Java and Kotlin May 03 02:04:08 Clojure is not slow after being launched. May 03 02:04:15 crocket you can read some comments https://news.ycombinator.com/item?id=9437525 May 03 02:04:20 crocket: It is very slow, even after startup May 03 02:04:42 It's just not optimized for Android and even if it were, the fact that it's dynamically typed puts a limit to how fast it can be May 03 02:05:01 Clojure is reasonably fast on JVM. May 03 02:05:10 And unless you get a commitment from Hickey that Android is a top priority for the Clojure team, why take the risk? May 03 02:05:19 crocket: Android doesn't run on a JVM May 03 02:05:32 ok May 03 02:05:36 What about scala? May 03 02:05:44 I thought scala was mature on android. May 03 02:05:45 Read what I wrote about Scala above May 03 02:05:58 Yes, scala is migrating toward java 8 May 03 02:06:05 What does that have anything to do with android? May 03 02:06:20 crocket: You'll be stuck with older versions of Scala May 03 02:06:25 there were some improvements lately http://clojure-android.info/skummet/ (notice the table) but of course what CedricBeust_ said holds true May 03 02:06:28 and ones that only leave 15k methods for your apps and its dependencies May 03 02:06:50 so basically, just toy apps May 03 02:07:25 crocket: Read this https://docs.google.com/document/d/1ReS3ep-hjxWA8kZi0YqDbEhCqTt29hG8P44aA9W0DM8/edit?hl=en&forcehl=1 May 03 02:08:55 hmm.... May 03 02:09:13 So, May 03 02:09:16 Is kotlin good on android? May 03 02:09:49 crocket have you done any android development yet ? May 03 02:09:55 not yet May 03 02:10:03 That's why I'm here to ask. May 03 02:10:26 well, then just start with java .. and migrate later. i don't think its good to come to this not knowing the APIs , with another language :) May 03 02:11:29 crocket http://www.reddit.com/r/androiddev/comments/33nzf2/should_i_learn_kotlin/ May 03 02:11:49 g00s, I already know java 7 well May 03 02:12:12 crocket: Kotlin works very well on Android, read the link I gave you May 03 02:13:07 but yes I agree with goos, if you're just beginning on Android, stick with Java for a little while to learn the APIs without anything else to distract you May 03 02:14:10 CedricBeust_, ok May 03 02:14:19 CedricBeust_, However, isn't kotlin still changing? May 03 02:14:28 kotlin hasn't stabilized yet, I heard. May 03 02:14:31 crocket: Yes it is, but rapidly converging (close to 1.0) May 03 02:14:34 ugh broken links in 2015 , seriously goofle https://developer.android.com/training/material/lists-cards.jd#RecyclerView May 03 02:15:01 CedricBeust_, I still don't understand why scala is worse than kotlin on android. May 03 02:15:08 crocket: No argument it's a bleeding edge thing but even though it's not 1.0, it's still the best non-Java language we have on Android today May 03 02:15:39 crocket: 1) too many methods in the runtime 2) Scala moving to Java 8 (not supported on Android and 3) Typesafe having no interest in supporting Android. There are more reasons but these are the main ones. May 03 02:16:15 CedricBeust_, Does kotlin people have any interest in supporting android? May 03 02:16:27 Does -> Do May 03 02:16:33 crocket never mind Scala 3, which will probably break backwards compat with ealrier versions May 03 02:16:41 crocket: Kotlin is made by JetBrains, the creators of IDEA. And yes, there is official and committed support for Android in it (starting with Android Studio) May 03 02:16:58 ok May 03 02:16:59 official from jetbrains, not google May 03 02:17:06 I'll probably write a mobile app in android. May 03 02:17:07 *details May 03 02:17:12 I have another question May 03 02:17:25 Can I make 500 US dollars per month with mobile app? May 03 02:17:51 crocket: Here is one of the latest posts on their blog: http://blog.jetbrains.com/kotlin/2015/04/announcing-anko-for-android/ May 03 02:17:58 crocket: That question is not relevant in this channel May 03 02:18:01 Depends on the app May 03 02:18:50 It is possible but is it plausible? Thats the more accurate question. + what CedricBeust_ said May 03 02:19:09 karlsve, Can you join #startups to talk further about it? May 03 02:20:59 Its not really my field of interest. You should look for someone that actually published an app on play store May 03 02:21:51 ok May 03 02:29:42 crocket you are better off working for someone who will assume the risks, and give you steady pay :D May 03 02:30:48 g00s, Except that I'm not getting an offer May 03 02:30:54 It's been two months. May 03 02:31:19 put together a portfolio of android apps May 03 02:31:26 you aren't going to get hired without a few on play May 03 02:33:34 g00s, Except I'm a web developer already. May 03 02:33:45 I worked as a web dev for 18 months May 03 02:34:13 good luck May 03 02:44:19 aha, support RV support nested scrolling May 03 02:44:26 * g00s put son googles, stirs up the chemicals May 03 02:45:39 is there an easy way to let the user perform a google image search and choose an image, passing that image back to my app? May 03 02:45:50 like facebook messenger's web search May 03 02:47:57 nice singed eyebrows there g00s May 03 02:48:44 JesusFreke yeah, i have no idea what i'm doing ! May 03 02:48:54 * g00s puts sodium in water May 03 02:50:46 JesusFreke i think i need that blue laser to light up my piece of magnisium tape May 03 02:50:53 *magnesium May 03 02:50:56 gah May 03 02:57:26 duncannz: i think the api to do that is deprecated May 03 02:57:41 and it seems there was no follow up for that but im not sure about that May 03 02:58:05 you could alternatively use tineye.com i guess May 03 02:58:33 but its expensive May 03 02:58:56 karlsve: reverse image search? I just want the user to search for an image and then get that image's URL back to my app May 03 02:59:11 I could theoretically just open images.google.com in a webview but that wouldn't be very userfriendly **** ENDING LOGGING AT Sun May 03 03:00:00 2015