**** BEGIN LOGGING AT Tue Sep 30 02:59:58 2014 Sep 30 03:01:32 g00s pfn that has not been my experience.. adb install , play immediately told me i have an upgrade (this was about a year ago tho) Sep 30 03:02:07 that hasn't been my experience since 2.x Sep 30 03:02:27 hmm Sep 30 03:02:44 well, i don't have any release apks sitting around to test with so i'll defer to more recent experience Sep 30 03:04:16 google should have added promo codes or something by now, apple has had this for a long time Sep 30 03:04:34 they need to bag abunch of leadership over there Sep 30 03:05:46 does anyone know if you can switch between the menu drawer bar (hamberger button) and the up arrow on the same activity? Sep 30 03:06:08 why would you want that? Sep 30 03:06:46 I'm using the flow and mortar libs from square Sep 30 03:07:01 so I only have one activity Sep 30 03:07:38 pieces029 there is a helper class somewhere, if you look at the AS template for nav drawer Sep 30 03:07:57 something like HamburgerToggleHelperAbstractfactory Sep 30 03:08:14 bah, one sec Sep 30 03:08:42 yeah you can Sep 30 03:08:42 what? Sep 30 03:08:43 if you are using DrawerLayout Sep 30 03:08:55 you can do Sep 30 03:08:56 HambugerHelperToggleAbsractFactory? haha Sep 30 03:09:05 ActionBarDrawerToggle Sep 30 03:09:11 I am using DrawerLayot, any idea what method? Sep 30 03:09:11 ActionBarDrawerToggle#setDrawerIndicatorEnabled() Sep 30 03:09:28 Oh nice thanks. I was looking for something on the drawer layout. Sep 30 03:09:29 Ty Sep 30 03:09:35 word Sep 30 03:13:28 g00s: heh, speaking of funny names, have you seen this one? http://developer.android.com/reference/android/widget/AdapterViewFlipper.html#fyiWillBeAdvancedByHostKThx%28%29 Sep 30 03:13:44 ^lol Sep 30 03:14:19 haha nice Sep 30 03:14:52 JesusFreke never saw that ! :) Sep 30 03:15:35 that's fantastic Sep 30 03:18:55 i'm having a lot of trouble with content provider permissions. if i have a CP that defines the authority com.sarbs.stuff that requires a permission and has grantUriPermission=true, and i start an external service with FLAG_GRANT_READ_URI_PERMISSION and set the data of the intent to content://com.sarbs.stuff/mystuff/things, then that service should also be able to read content://com.sarbs.stuff/mystuff/things/thisthing and Sep 30 03:18:55 /mystuff/things/thatthing... right? Sep 30 03:19:32 the permission grant seems to be applying to only literally the uri i pass, even though the docs for CP seem to indicate that "child" uris of the given one should be granted access as well. Sep 30 03:25:04 shit Sep 30 03:25:04 g00s: you can't leave us hangin' like that Sep 30 03:25:49 well, the oem that designed this BLE device fucked up in 2 major ways Sep 30 03:26:01 (1) they designed it for iOS first, so they are using features not available on android Sep 30 03:26:41 (2) they put critical information in the scan response but i can't even figure out how to get that on android **** BEGIN LOGGING AT Tue Sep 30 03:37:25 2014 **** BEGIN LOGGING AT Tue Sep 30 03:52:43 2014 Sep 30 03:53:16 bankai_cn http://www.peachpit.com/store/pet-photography-from-snapshots-to-great-shots-9780133953626 Sep 30 03:53:19 hehe Sep 30 03:53:41 Alan Hess is pretty good, even for intro stuff i'd read it Sep 30 03:55:01 a lot of trojans are less than 2953 bytes :P Sep 30 03:55:17 yeah you can do a lot with bash these days Sep 30 03:56:12 snap **** BEGIN LOGGING AT Tue Sep 30 04:01:58 2014 Sep 30 04:10:00 ladies! Sep 30 04:10:40 ron_frown whats up Sep 30 04:11:05 does webview send it's own referrer? What's the best way for my web app to detect if the user is coming from an android app? Sep 30 04:14:09 spent two days actually building apps for glass Sep 30 04:14:11 meh Sep 30 04:14:13 meh Sep 30 04:14:14 meh Sep 30 04:14:56 ron_frown do you know how to do a BLE scan request in android ? Sep 30 04:15:06 what do you mean Sep 30 04:15:18 scan request, scan response Sep 30 04:15:45 there is startLeScan but thats just grabbing ADV_IND it seems Sep 30 04:15:56 mBluetoothAdapter.startLeScan(mLeScanCallback); Sep 30 04:15:59 oh Sep 30 04:16:19 the packets from the device are actually ADV_SCAN_IND Sep 30 04:16:39 I see Sep 30 04:16:43 I dont do anything that low level Sep 30 04:17:01 I have something that does basic communications via ble Sep 30 04:17:05 but very very simplistic Sep 30 04:17:19 yeah if you use gatt ... Sep 30 04:19:10 pretty cool stuff ! http://www.npr.org/blogs/alltechconsidered/2014/09/29/352476454/how-hong-kong-protesters-are-connecting-without-cell-or-wi-fi-networks Sep 30 04:19:27 so firechat is using mesh networking Sep 30 04:19:58 so i love this shit, because tech is helping democracy Sep 30 04:20:54 i bet under the hood, this is using the iOS multipeer connectivity framework Sep 30 04:21:01 which kicks ass Sep 30 04:23:22 yup, indeed http://www.cultofmac.com/271225/appreciated-ios-7-feature-will-change-world/ Sep 30 04:26:14 OTOH it would be pretty cool if google project ARA had a Software Defined Radio block Sep 30 04:39:38 how do you debug javascript with android browser Sep 30 04:40:15 had to build software for a job application Sep 30 04:40:40 they say they want a writeup on "design approach" Sep 30 04:40:47 what do you anticipate it means Sep 30 04:40:53 design thinking ? Sep 30 04:40:53 how I went about desinging what I built? Sep 30 04:41:24 so not, first I did this, then I realized I need this other thing Sep 30 04:41:26 so I built that Sep 30 04:41:31 I just explained architecture Sep 30 04:42:02 they want to know the model view document or whatever paradigm Sep 30 04:42:13 ron_frown did they mean http://www.amazon.com/Solving-Problems-Design-Thinking-Publishing/dp/0231163568 Sep 30 04:42:30 or just "your mental process" Sep 30 04:42:42 ? Sep 30 04:43:29 maybe they wanted to see if you knew TRIZ :D Sep 30 04:44:00 no, that is not the design approach Sep 30 04:44:37 the design approach is how you would approach designing the program Sep 30 04:44:50 it's not what you actually do when you do it Sep 30 04:45:02 I dont get waht that means Sep 30 04:45:07 I already buitl the shit Sep 30 04:45:09 and then some Sep 30 04:45:12 panda81: use Chrome. adb debug Sep 30 04:45:18 I wrote it up Sep 30 04:45:23 architecture Sep 30 04:45:31 ron_frown: in that case you can also discuss what happened after you made it. Sep 30 04:45:38 I need simple example this is what I would put for the design approach Sep 30 04:45:46 Normally you would have a design approach before you code anything Sep 30 04:46:13 unless you don't, and that is bad Sep 30 04:46:54 Agamemnus: Is there no way for the native browser? Chrome has its own probs Sep 30 04:47:08 panda81: none Sep 30 04:47:20 only adb logcat Sep 30 04:47:31 which is too difficult. Sep 30 04:47:38 my design approach was, slap together the n-tier architecture, connect to their webservices, suck in data, push it out to page Sep 30 04:47:44 build rich web app Sep 30 04:47:52 Ok look Sep 30 04:48:00 I've done some freelancing work Sep 30 04:48:06 I dont think about it too much Sep 30 04:48:08 So that's not what I would say Sep 30 04:48:20 not what I meant =) Sep 30 04:48:25 I mean it kinda comes as second nature Sep 30 04:48:36 Agamemnus: this page doesn't help right http://developer.android.com/guide/webapps/debugging.html Sep 30 04:48:51 I'd try to stay away from jargon and increase the level of detail Sep 30 04:49:04 But then again, I've never been hired for a 9-5 job Sep 30 04:49:11 so maybe jargon works Sep 30 04:49:15 ffs Sep 30 04:49:17 maybe bamboozling works Sep 30 04:49:21 I just want an example Sep 30 04:49:27 not even your example Sep 30 04:49:35 ust this is the kinda thing you might put Sep 30 04:49:39 I've built design docs Sep 30 04:49:42 I've built functional specs Sep 30 04:50:04 The design doc shouldn't be detailed to the function you are going to do Sep 30 04:50:13 for the customer that is, or anyone Sep 30 04:50:16 if you explain how you use OOP concepts and why you used them that's good IMHO Sep 30 04:50:28 I wouldn't do that at all Sep 30 04:51:15 panda81, stop messing around, just use chromium Sep 30 04:51:19 :x Sep 30 04:51:39 let me dig something up Sep 30 04:52:30 If he were a product person I'd then write up a design doc Sep 30 04:53:02 You'd make a 1 page design doc for anyone really Sep 30 04:53:18 http://en.wikipedia.org/wiki/Software_development_process Sep 30 04:53:32 you shouldn't have to justify specific implementation decisions Sep 30 04:53:34 that seems to talk about diff approaches Sep 30 04:54:01 https://en.wikipedia.org/wiki/File:Mariam_and_Uche,_a_statistician_and_a_software_developer_in_Lagos_%288102029130%29.jpg interesting Sep 30 04:54:14 "Design? What's that? I just threw some code together until it worked!" Sep 30 04:54:31 hahha Sep 30 04:55:27 ok, Sep 30 04:55:41 inquire the position's duties, whether if you act as programmer+designer+producer, or just programmer. Sep 30 04:55:43 you can definitely mention the method out of those 3 that you would take, i suppose Sep 30 04:56:26 although sometimes it is hard to pin down Sep 30 04:57:22 Although I lean closer to the prototyping approach Sep 30 04:58:31 so the design approach here was a mix of lightweigh waterfall and prototyping for the stuff I consider to be wildcard functionality. Sep 30 04:59:46 Unless you're in a very large team, you have to do incremental prototyping Sep 30 04:59:49 or you will go mad Sep 30 05:00:08 MAD Sep 30 05:00:14 Agamemnus what about the person in that picture ? Sep 30 05:00:20 Well, for individual code at least. Sep 30 05:00:35 g00s: it's weird. Sep 30 05:00:56 It's not a very typical situation. Sep 30 05:02:16 An African female programmer and (for some reason) a "statistician". Sep 30 05:02:49 Besides the fact that the race and gender isn't representative, I had no idea that programmers worked so often with statisticians Sep 30 05:02:56 i noticed it was on the kanban article http://en.wikipedia.org/wiki/Kanban_%28development%29 Sep 30 05:03:04 i mean it is fine, but it isn't representative Sep 30 05:03:28 i see Sep 30 05:04:10 i took statistics courses and I know statistics well, but I have never worked with a "statistician", or been one. Sep 30 05:04:32 ron_frown if you are a single developer, i don't see any real "Process" (capital P) you would use Sep 30 05:04:51 kanban is nuts Sep 30 05:04:58 we build shit for that at work Sep 30 05:05:21 In the context of web development and inflated self-esteem building titles, a statistician might be someone who ... eh I dunno Sep 30 05:06:35 ron_frown: build what shit Sep 30 05:06:46 basically kanban scheduling shit Sep 30 05:06:55 ahh Sep 30 05:08:15 Hmm Sep 30 05:08:47 If you're going to use time overruns to measure effectiveness, I don't see that kind of system working well in a team environment. Sep 30 05:09:19 It will turn into a tragedy of the commons type situation where serious bugs are hidden Sep 30 05:09:38 Because otherwise they would be fired for working on them Sep 30 05:10:19 ron_frown it would not hurt to read a little about scrum, and the philosophy behind that Sep 30 05:10:26 yeah Sep 30 05:10:28 I know all about that Sep 30 05:10:29 which is all super easy Sep 30 05:10:33 they are an agile shop Sep 30 05:10:47 but I've never actually practiced that because I work for nuts workplaces Sep 30 05:12:39 when they ask you what process you used, they may just be wondering how you minimized risk by eliminating epistemological unknowns Sep 30 05:13:06 this is typically done by prototyping the architecture Sep 30 05:13:29 the architecture deffine how you will handle the competing forces of the problem Sep 30 05:13:43 if there is a performance , reliability, security requirement Sep 30 05:14:10 so if they say 'we need a service that can to 1M tps' then you need to prototype that architecture Sep 30 05:14:29 1m TPS with no more than 10ms latency Sep 30 05:14:42 thats going to be a specific architecture, or a few choices Sep 30 05:14:55 once that had bee validated, its hanging meat on the bones Sep 30 05:15:43 so part of validating the architecture usually means some kind of load testing, etc Sep 30 05:15:55 for performance anyhow Sep 30 05:16:17 if they give you a requirement for modularity you have other things to think about Sep 30 05:16:37 maybe you need an OSGi thing or whatever, and that architecture needs to be validated Sep 30 05:16:55 you did decide n-tier, you have to explain why Sep 30 05:19:42 maybe you recognized some architectural patterns that resolved the forces of the requirements Sep 30 05:20:13 sometimes there will be a few patterns that could work ; each pattern has its + / - so narrowing it down requires some reasoning Sep 30 05:20:41 there are an infinite # of architectures, a good architect does an efficient search through the possible space to arrive at a few ;) Sep 30 05:24:08 surely the architecture for a crud app would be much different than CEP ;) Sep 30 05:28:41 ron_frown still there O.o Sep 30 05:28:45 :) Sep 30 05:28:55 yeah Sep 30 05:29:02 just writing this shit up Sep 30 05:29:09 Hi I have been using intent.extra to pass some data from one activity to another. Today I tried using Bundle to pass the set of arguments from one activity to another and get the response and put it in edittext Sep 30 05:29:10 I hope like fuck I land this job Sep 30 05:29:13 here is my code Sep 30 05:29:15 http://pastebin.com/iNXckt6W Sep 30 05:29:19 But I get error Sep 30 05:30:35 The error is pasted here Sep 30 05:30:35 http://pastebin.com/iUPMcM77 Sep 30 05:30:51 I tried debugging but still problem persists Sep 30 05:31:54 my initial string value is String value="10"; Sep 30 05:32:11 g00s: any help? Sep 30 05:35:48 would any of you guys like a oneplus one invite? Sep 30 05:38:03 Hi , I am including appcompat-v7 in my android project then its all good , but when i am including the latest facebook SDK , all the appcompat-v7 classes are showing error ? Please help someone ? Sep 30 05:40:42 what happens if you remove the fb sdk Sep 30 05:43:03 then all the errors are removed Sep 30 05:43:05 lasslolwut http://i.imgur.com/jMrJI4x.jpg Sep 30 05:43:14 oops, lasserix wasn't here Sep 30 05:44:43 chinu: Screenshot the IDE with the errors? Sep 30 05:44:45 cbot` : All the errors are removed if i remove the fb sdk , only login class for fb shows error , If i include fb sdk there is error in almost each class which extends ActionBarActivity , ShareActionProvider class Sep 30 05:45:03 http://stackoverflow.com/questions/22346680/jar-mismatch-fix-your-dependencies-when-using-appcompat-v7-and-facebook-sdk does this have anything to do with your issue Sep 30 05:46:42 cbot` : Thanks , I will try this Sep 30 05:53:01 cbot` : I included al v4 and v7 jar in lib folder of my project but still it has error , now on admob interstitial ads , it is not including googleplayservice project as library Sep 30 05:54:10 How do I change the color of the checkbox in checkbox view element? Sep 30 06:00:26 Sophomore: you should use separate drawable for that Sep 30 06:00:33 https://stackoverflow.com/questions/20542693/how-to-change-check-box-tick-color-in-android Sep 30 06:07:56 Activity A lunchs Activity B (B’s parent activity is A). I want B lunch A and when user close A, B will remain in stack. Is it possible? Sep 30 06:09:37 FLAG_ACTIVITY_REORDER_TO_FRONT Sep 30 06:13:45 anybody worked with setPendingIntentTemplate and setOnClickFillInIntent with a RemoteViewsFactory? Sep 30 06:15:09 Ashiren: tq! Sep 30 06:15:39 hey Sep 30 06:15:45 while using bitmapfactory Sep 30 06:15:55 im getting exception Sep 30 06:16:01 nullpointer exception Sep 30 06:16:03 and unable to start activity componentinfo Sep 30 06:16:27 how to solve this? I was trying some solutions from net without success Sep 30 06:16:36 and function was working before on images Sep 30 06:16:56 stefkos: any code please Sep 30 06:17:39 ok Sep 30 06:18:12 http://pastebin.com/NAWXw0tD Sep 30 06:18:25 nothing special, I can even paste whole activity Sep 30 06:18:28 or fullcode Sep 30 06:18:44 and picture is there Sep 30 06:26:48 Im using this function in postcreate Sep 30 06:29:23 bit bitmap is null Sep 30 06:29:37 that means it it couldnt decode file Sep 30 06:30:11 or.. where do you exactly get null pointer exception Sep 30 06:35:58 well Sep 30 06:36:15 Bitmap bitmap = BitmapFactory.decodeFile( lname ); Sep 30 06:36:16 here Sep 30 06:36:28 I dont get it when Im using options.inJustDecodeBounds = true; Sep 30 06:36:39 then bitmap is null Sep 30 06:36:52 but I have same problem even with some small jpeg files Sep 30 06:39:08 Thanks Ashiren . Sep 30 06:40:21 http://stefkos.amigazeux.net/problem.png Sep 30 06:47:55 stefkos: are you user the file path is correct and readable (with proper permission)? Sep 30 06:48:24 I can display this image by using ES explorator Sep 30 06:48:35 even tryed simple image from camera Sep 30 06:48:59 I mean the path Sep 30 06:49:26 can you check the file path with adb shell Sep 30 06:49:48 fck... fixed... Sep 30 06:49:57 had 2 classes to display images Sep 30 06:50:09 and initialised only one Sep 30 06:50:14 but used second Sep 30 06:50:18 thx mate Sep 30 06:51:38 anyone used RoboBinding? Sep 30 06:57:38 nope Sep 30 06:57:40 thx cya Sep 30 06:57:46 FennyFatal: are you there? Sep 30 06:58:02 hi all, I'm having a problem with my Android.mk file since I tried adding an external jar (robotium) - http://pastebin.com/tGF9rYkq - what am I missing? The LOCAL_MODULE_SUFFIX isn't defined in my Android.mk... Sep 30 06:58:03 yo bros Sep 30 06:58:09 FennyFatal: !!! What's up my man? Sep 30 06:58:18 I just got a raise. Sep 30 06:58:26 Significant? Sep 30 06:58:31 10% ;D Sep 30 06:58:40 What are you going to do with the "continued windfall"? :) Sep 30 06:59:30 I am going to either A. GET wated, or B. Build a new house. Sep 30 06:59:37 *wasted Sep 30 06:59:45 Let's weigh these options out... Sep 30 06:59:50 Have you considered a BMW M5? :P Sep 30 06:59:51 http://pastebin.com/FZ7c6ZP3 Sep 30 07:00:00 hahaha Sep 30 07:00:15 I have a WRX, I am okay with it. Sep 30 07:00:24 What year? Sep 30 07:00:30 meital what's the BUILD_MULTI_PREBUILT for? i'm fairly certain you don't need that for prebuilt static libraries Sep 30 07:00:35 2008 Sep 30 07:01:38 sarbs: I'm not sure but it was in the example that I found...I'll try to remove it Sep 30 07:03:09 oh, looks like maybe you do. but, that seems to be a separate section. Sep 30 07:03:42 define your dependency on robotium, build the java library, then clear vars, define the LOCAL_PREBUILT_STATIC_JAVA_LIBRARIES and then include BUILD_MULTI_PREBUILT Sep 30 07:03:43 sarbs: without this line i'm getting the following error: "No rule to make target `out/target/common/obj/JAVA_LIBRARIES/robotium_intermediates/javalib.jar', needed by `out/target/common/obj/APPS/SecureSettingsTest_intermediates/classes-full-debug.jar'." Sep 30 07:04:00 FennyFatal: how the hell can I unobfuscate this code? Sep 30 07:04:11 meital example https://gist.github.com/tophyr/8dc00bebb1a12a000859 Sep 30 07:05:02 note how they are separate sections.. you can think of them as separate tasks Sep 30 07:05:17 sarbs: ok, thanks! Sep 30 07:06:41 how to insert a value in edittext field.The value is coming from its child activity. Though I am able to display the value using putExtra and getExtra on the same screen Sep 30 07:06:47 I thought about it, bros, it sounds like you have an encryptoon setup that uses, a salt, an initial set of registers, and a secure password. Sep 30 07:07:06 FennyFatal: Not in this paste. We broke that a long time ago! Sep 30 07:07:26 I am getting error as NullPointerException at JSONTokener...... Sep 30 07:07:41 unless you're talking about this paste Sep 30 07:11:06 here is my code http://pastebin.com/8xpX506v Sep 30 07:11:56 good god Sep 30 07:12:08 niru, indent that properly, and maybe you'll find someone willing to look at it Sep 30 07:13:29 sarbs: :) sure Sep 30 07:15:49 sarbs: I pasted it from Notepad so may be its not properly indented Sep 30 07:16:05 well. 2nd question, why are you using notepad? Sep 30 07:16:16 http://pastebin.com/71hJAkvy Sep 30 07:16:31 android studio, intellij, eclipse, hell even sublime text, are all free Sep 30 07:17:01 sarbs: I already have huge code in the eclipse and just wanted to show a small part of the code to you Sep 30 07:17:18 sarbs: oh thats Notepad++ Sep 30 07:17:27 ok. just making sure you're not doing actual development, in notepad. Sep 30 07:17:35 sarbs: no way Sep 30 07:17:51 I pasted it Sep 30 07:17:58 i'm sure someone will chime in saying how they can do it, all l33t style, but.. that's.. eck Sep 30 07:18:28 baby jesus invented running water and toilets so i don't have to shit in the woods, and eclipse and intellij so i don't have to code with notepad Sep 30 07:18:36 Sep 30 07:19:24 ok now what's the problem? Sep 30 07:19:41 there is no jsontokenizer in the code you pasted niru Sep 30 07:19:53 oh, i see the problem Sep 30 07:20:01 well, aside from that, too lol Sep 30 07:20:01 yes even I am not understanding Sep 30 07:20:28 it looks like in Activity1 you're starting Activity2, and then right on the next line trying to get a value out of the intent Sep 30 07:20:36 that what you want? Sep 30 07:20:54 *trying to get a value FROM Activity2 out of the intent Sep 30 07:22:47 'morning! Sep 30 07:26:43 good morning Sep 30 07:27:03 I'm looking for information regarding the following situation. When I complete an in-app transcription procedure on googleplay in my app, I obtain a receipt. Then I need to verify that receipt on my server-side. But what happens if just before that, I lose my network connection. I need to save that (or those) receipts and process them later. Is there an efficient way or work flow I should use to handle this situation Sep 30 07:27:03 ? Sep 30 07:27:25 sarbs Activity1 has an editext.Clicking on the edittext passes a value to the next activity2. And after checking the value with something the activity2 returns a new value to the edittext present in activity1 Sep 30 07:27:37 right, ok. Sep 30 07:27:57 you're looking at intents, activities and startActivity() like they're control flow methods - they're not Sep 30 07:28:06 so I just want to display a value returned by activity2 in edittext of activity1 Sep 30 07:28:15 when you startActivity(), nothing happens to the code at the point you just made the call Sep 30 07:28:24 it keeps going along immediately, without waiting for anything Sep 30 07:28:51 if you want to do something that depends on a response from an activity you just started, you need to use a callback called onActivityResult() Sep 30 07:29:23 startActivityResult? Sep 30 07:29:38 ah ok...I am getting it now sarbs Sep 30 07:29:42 Anyone here used otto eventbus? Sep 30 07:29:47 I have Sep 30 07:30:11 If I want to destroy all previous references do I just create a new Bus instance on my current Bus variable? Sep 30 07:31:04 Activity1 startActivityForResult()'s Activity2, and then finishes whatever function it's running, right there. *sometime in the future* (android makes very few guarantees about timing), Activity2 will start up and do some stuff, and then eventually it will call setResult(RESULT_OK, result_intent) and finish(). then, *sometime in the future again*, the system will call onActivityResult in Activity1, with the result_intent that Sep 30 07:31:04 Activity2 created. Sep 30 07:32:45 niru make a little more sense? Sep 30 07:33:12 yes Sep 30 07:33:46 I am trying to implement it right now Sep 30 07:37:51 Mrdarknezz: i don't understand what "destroy all previous references" means Sep 30 07:41:26 Object o = "test"; o =null; there i just destroyed the reference to o Sep 30 07:41:52 thanks sarbs that is making sense.Even though I saw StartActivityForResult while googling I could not understand what exactly it was doing as the other part was missing onActivityResult Sep 30 07:42:05 "the story of O" :) Sep 30 07:42:06 Now it makes sense Sep 30 07:42:13 niru glad i could help :) Sep 30 07:42:17 but you really only need to make the parent class elegible for gc, you don't have to do that internally in every class Sep 30 07:42:30 so if Parent has no references everything in it gets gced Sep 30 07:42:47 asfdd: ok... Sep 30 07:42:59 unless something in it has an reference outside of its parent ofc Sep 30 07:43:33 typically you will only have to worry when you use static stuff, or register stuff with something that has a lifecycle of its own Sep 30 07:43:45 like a listener Sep 30 07:44:41 hmm... Sep 30 07:44:57 JakeWharton: I figured it out Sep 30 07:45:14 excellent Sep 30 07:45:35 JakeWharton: I'm having a logout function and I need to remove any object still listening Sep 30 07:45:46 I'm working on* Sep 30 07:46:20 Morning All Sep 30 07:49:51 niru just google java memory leak example or something if my explanaiton isn't good enough (it probably isn't) =) Sep 30 07:51:15 basically anything which has a reference to anything else that is "alive" such as a running thread (and its classloaders etc) will stay in memory, if it isn't referenced from anything it is free to be dumped, when it is dumped you won't know, it depends on when memory is needed again Sep 30 07:54:03 niru http://pastie.org/9606442 Sep 30 07:55:11 JakeWharton: it is regarding u2020. However to refresh GalleryView? Sep 30 07:55:45 through GalleryAdapter? Sep 30 07:55:52 add a method to the GalleryDatabase or whatever it's called and trigger the network request Sep 30 07:56:00 that code would run on about 200 meg of memory yet it over its lifespan has used 1 000 100 megs but will resuse the same space over and over because it is no longer alive Sep 30 07:56:00 if the UI is still subscribed it'll get notified automatically Sep 30 07:57:02 JakeWharton: :) nice! Tq for your answer! Sep 30 07:59:00 asfdd: ah so you meant that was a memory leak issue? Sep 30 08:04:55 owh sorry niru it wasn't you who asked it was JakeWharton =) Sep 30 08:13:31 hi all. I found a confusion bug-like issue in EditText. let's say I have : `EditText myET = (EditText)findViewById(R.id.myet); myEt.setText(50);` and you meant to use and display `50` on myET, then this will lead to make Java think you want the resource whose integer value is 50 . Therefore you will be using the myET.setText() which uses the @string/ values. so you better put it like myET.setText(""+50); Sep 30 08:13:53 that's not a bug Sep 30 08:14:03 or even bug-like Sep 30 08:14:26 it's just a confusion it made me. Sep 30 08:14:43 you're supposed to be in charge of your own data, if you pass an int, you're supposed to know what that means ;) Sep 30 08:14:58 I said I was ok before building.. and then I got an Exception Sep 30 08:15:09 yeah Sep 30 08:15:38 String.valueOf(50) would also work btw, and is probably more efficient Sep 30 08:15:57 I am good in everything generally ravilov . but you know.. this made a confusion and wasted sometime on me. Sep 30 08:16:32 Java 101 : Sep 30 08:16:44 There is no spoon Sep 30 08:17:53 I'm really concerned now, how many other individuals think java language features are bugs? Sep 30 08:18:02 This anti-microsoft mentality is toxic Sep 30 08:23:08 asfdd: :) Sep 30 08:24:26 Darklust, this better be addressed before it's too late Sep 30 08:25:58 Indeed, nevermind disregard of overloaded constructor parameters, but ""+50? O_O Sep 30 08:26:30 Can we still have nice things? Sep 30 08:28:44 s/constructor/method Sep 30 08:29:16 Regardless, I have a feeling they'd choke on that as well Sep 30 08:29:39 yes please don't use ""+50 Sep 30 08:30:20 it ends up calling String.valueOf which is what you really want but also allocating a bunch of extra crap Sep 30 08:30:29 does anyone know when can I find the signature key of the apk? Sep 30 08:32:41 meital: Wherever you generated your keystore Sep 30 08:32:53 Probably in your user directory Sep 30 08:44:36 Darklust: I'm not sure that I understand...btw, I didn't write the application's code, but I have it. I also have its Android.mk file, but I didn't see anything related to the location of the keystore Sep 30 08:45:31 If you have the sourcecode, it's likely the keystore isn't included. That's something unique to the developer and you'll have to sign it with your own key Sep 30 08:45:56 * danijoo smeels reverse engineerer Sep 30 08:46:44 lol, no reverse engineering...I'm an automation developer, and the ones who wrote the code are sitting next to me ;) they're just not sure were the keystore is located Sep 30 08:47:11 meital: Have them pull up their IDE and check the keystore location then Sep 30 08:47:13 :) Sep 30 08:47:23 they signed the app with some "magic", they aren't sure what actually happened there ;) Sep 30 08:47:28 its not related to the code so it could be saved anywhere in your infrastructure :P Sep 30 08:47:56 they are using gedit...not a real ide (can't understand that, but oh well...) Sep 30 08:48:04 ....What Sep 30 08:48:10 Seriously? Sep 30 08:48:29 they claim that all they did was to add a line to Android.mk - "LOCAL_CERTIFICATE := platform" Sep 30 08:49:04 are you sure it actually is signed? is it released to google play? Sep 30 08:50:01 it's not released yet, but I'm sure that it's signed since I'm getting a permission denial error while trying to start an instrumentation with it Sep 30 08:50:16 so maybe its just signed with debug certificate.. Sep 30 08:50:23 very likely Sep 30 08:50:26 "does not have a signature matching the target" Sep 30 08:50:48 ok, so where can I find this debug cert in order to sign my test? Sep 30 08:50:49 sounds like you are dealing with people that don't know what they're doing, lol Sep 30 08:51:01 just make a cert with keytool Sep 30 08:51:12 meital: everything gets signed with the debug cert if you dont provide another one Sep 30 08:51:26 http://developer.android.com/tools/publishing/app-signing.html Sep 30 08:51:59 but when I'm writing my own app and writing a test for it, I don't get any permission denial error... Sep 30 08:52:03 I found something in ~/.android/debug.keystore, says it's a "Java KeyStore" Sep 30 08:52:25 yep thats the autogenerated debug key ravilov Sep 30 08:52:32 meital, that's because you're using an IDE which does everything for you... apparently to the point where you're not even aware what all is happening behind your back Sep 30 08:52:59 "derp, dunno, it just works" :p Sep 30 08:53:44 isn't there like a default location for the keystore when you compile it from the command line? Sep 30 08:53:53 doesnt building from command line autosigns with debug too? I never tried it.. Sep 30 08:54:06 it does unless you tell it otherwise Sep 30 08:54:13 meital: ravilov just told you. its ~/.android/ Sep 30 08:54:37 * ravilov is waiting for meital to now say he's using windows... Sep 30 08:54:42 :) Sep 30 08:54:53 but if I'm running the test from eclipse, shouldn't it use the key from there automatically? Sep 30 08:54:53 dont drop the w-bomb please :( Sep 30 08:55:03 why is using windows a problem? Sep 30 08:55:11 ravilov: meital is using linux for the last 10 years, and meital is actually a female ;) Sep 30 08:55:12 asfdd, why is it not? Sep 30 08:55:21 meital, oh I see Sep 30 08:55:24 because its the most supported and most used tool in the world Sep 30 08:55:40 if you pick a developer at random chances are best he will be using windows Sep 30 08:55:40 meital, on the interwebs, everybody's a guy until proven otherwise! Sep 30 08:55:41 :p Sep 30 08:55:46 asfdd: i just have no idea where it stores its files Sep 30 08:56:02 ravilov: that's ok, I forgive you ;) Sep 30 08:56:06 asfdd, windows is not a tool... but you might be :p Sep 30 08:56:17 and thats just not true. linux is by far more used then windows Sep 30 08:56:21 of course windows is a tool Sep 30 08:56:26 if you count every device :) Sep 30 08:56:48 an OS is a tool much like a toolbox is a tool Sep 30 08:56:53 i said what the developer uses not what runs on your coffee maker Sep 30 08:57:09 a os is a tool that lets you operate a computer Sep 30 08:57:17 asfdd, apparently you'd be very much surprised at how many people use linux here Sep 30 08:57:27 also your logic is flawed Sep 30 08:57:34 and I don't feel like arguing Sep 30 08:57:42 let the debate on principles begin! Sep 30 08:57:58 asfdd ravilov also, if the main use was development both linux and osx would be above windows in everything other than console game dev Sep 30 08:58:26 danijoo, so I hear google is going to request you to enter a physical address if you want to sell stuff on the play store, how do you feel about that? Sep 30 08:58:35 * ravilov hides Sep 30 08:58:37 what? really?? Sep 30 08:58:44 yeah go figure! Sep 30 08:59:00 but they arent allowed! The cant even cancel my account if I dont because. you know.. UCC Sep 30 08:59:06 lol Sep 30 08:59:09 I've already installed bear traps in the lawn for just this occassion Sep 30 08:59:14 Let 'em come Sep 30 08:59:15 lol Sep 30 08:59:18 Groundhog day right there Sep 30 08:59:19 thats not true though StingRay_ =) Sep 30 08:59:24 don't they already know where all of us live? ;) Sep 30 08:59:26 http://redmonk.com/sogrady/2010/10/27/developer-os-preferences/ Sep 30 08:59:59 meital: Not the end users, generally Sep 30 09:00:21 I'm sure that google knows everything! Sep 30 09:00:30 Google is everything Sep 30 09:00:31 asfdd windows is the choice cause those devs want to play games Sep 30 09:00:39 a mob of one star raters in front of every developers doors.. Sep 30 09:00:42 oh oh Sep 30 09:00:44 asfdd besides that there is no advantage other than DX stuff Sep 30 09:00:47 i am sure it is, all i stated was windows is the most used platform Sep 30 09:00:52 i didn't make any claims on it being superior Sep 30 09:00:56 Darklust, well then I support this effort! how else are my devoted users know where to send gratious gifts for my out-of-this-world awesome apps? Sep 30 09:01:17 s/are/will/ Sep 30 09:01:18 s/gratious gifts/anthrax Sep 30 09:01:23 Welp Sep 30 09:01:24 funny fact: its 30.september and my adress still isnt released Sep 30 09:01:35 didnt they say 30.9? Sep 30 09:01:49 danijoo, "30.september"? that's a funny way to write floats :p Sep 30 09:01:56 asfdd in professional fields outside of things like console dev, and obviously home user/ end user gamers… windows aint that much used Sep 30 09:02:02 ravilov: what apps did you write? :) Sep 30 09:02:25 meital, none, and I have no presence on the play store, so I can afford to poke fun at the rest of y'all :p Sep 30 09:02:53 i have worked with java for 8 years now and seen how at least 10 development shops in oslo operate, and every one of them uses windows =) anecdotal evidence aside i don't see anyone aside from people working alone or actually on free software use linux Sep 30 09:02:58 but that is of course just anecdotal Sep 30 09:03:22 i have seen some use mac though i will admit Sep 30 09:03:32 eh, that is your own personal observation limited to your own surroundings, don't base any global estimations on that Sep 30 09:03:40 ravilov: I just wanted to check your out-of-this-world awesome apps... ;) Sep 30 09:03:43 Should write an app that shows ppl an interactive map with developers living near them.. Sep 30 09:03:52 as i said it is just anecdotal, i posted a global survey to back that up Sep 30 09:03:56 so they can go bother them? Sep 30 09:04:04 meital, you can't, they are all out of this world... Sep 30 09:04:04 and that even excludes windows only platform from the survey Sep 30 09:04:15 asfdd: Here's an existensial question, what is the difference between an app developed on windows and an app developed on mac? Sep 30 09:04:20 none at all Sep 30 09:04:23 :D Sep 30 09:04:25 asfdd windows may still be the choice for some IT managers due to AD/Domain stuff, but like I say, all the big production houses for things like design, film editing, visual effects etc… nobody uses windows Sep 30 09:04:51 as i said i have nothing against linux, just don't make it out to sound like you are superior for running a different os than others Sep 30 09:04:54 asfdd, for every survey and research out there you can always find at least one equal but opposite one Sep 30 09:05:20 especially since that one does not have any numbers :) Sep 30 09:05:22 Like that Flat Earth Society, they have some good points Sep 30 09:05:43 asfdd, also, regardless of stats and surveys, linux is by far superior at least when it comes to android development, trust me I tried doing it on windows, it's just beyond painful Sep 30 09:06:01 Darklust, like points of a square? Sep 30 09:06:26 yes rightlcikcing - > clean and build is painfull :P Sep 30 09:06:30 That would be relevant Sep 30 09:06:44 Aside, I prefer Android for Android development ;) Sep 30 09:06:44 Opinions are like assholes Sep 30 09:07:07 all of them stink? Sep 30 09:07:57 meital, back to the point, why don't you try importing this into some decent IDE and then compiling? it should get auto-signed then Sep 30 09:08:02 is there a good emulator on linux that is faster than the one on windows? the emulator is prettymuch my only gripe with android development on windows Sep 30 09:08:08 unless you've already done that and it works and we're all past that Sep 30 09:08:15 http://funny-pictures-blog.com/wp-content/uploads/2011/05/choose_your_weapon-468x375.jpg Sep 30 09:08:34 asfdd: genymotion Sep 30 09:08:38 its for every OS Sep 30 09:08:43 beh genymotion Sep 30 09:08:50 and like 100 times faster then default emulator Sep 30 09:08:56 asfdd https://software.intel.com/en-us/blogs/2012/03/12/how-to-start-intel-hardware-assisted-virtualization-hypervisor-on-linux-to-speed-up-intel-android-x86-gingerbread-emulator Sep 30 09:09:09 sarbs: beh HAX Sep 30 09:09:12 asfdd, where linux needs special (HAXM) support, linux has it all built-in; the emulator I run on my box (which is just the default from SDK) is actually very comfortably fast Sep 30 09:09:18 standard x86 qemu emulator + linux kvm = native speed Sep 30 09:09:36 sarbs: great. you just said what genymotion is. Sep 30 09:09:53 yeah spill it all out why don't you Sep 30 09:09:54 danijoo yeah.. the difference being you don't have to pay for the qemu version :P Sep 30 09:10:17 use a nexus 5 to test yer apps! Sep 30 09:10:22 it's fastar! Sep 30 09:10:22 hi Sep 30 09:10:27 for emulator, I use Android-x86.org . it's ok to use it. and makes also play store available. Sep 30 09:10:28 i am on nexus 4 Sep 30 09:10:29 for me the downside of genymotion is you need an account to be able to do pretty much anything, and it doesn't bring anything interesting to me to even consider it Sep 30 09:10:29 is it good ? Sep 30 09:10:35 Don't test your apps, it's faster Sep 30 09:10:50 ^ Sep 30 09:10:51 and you install it on VirtualBox Sep 30 09:10:55 helicopter88, did you just say you'll buy a N5 for every dev in here? thank you! for you I'll even publish my address on the play store! Sep 30 09:10:59 helicopter88 i have to test apps for alot of different stuff, we mostly use android 2.1 on some outdated pieace of hardware that has to be able to operate on -40 degrees celsius etc =( Sep 30 09:11:19 hi guys Sep 30 09:11:23 ravilov: have you ever tried to test a game on native emulator? then you see the need of either a vm/genymotion or use a real devices Sep 30 09:11:26 shmoon, hi Sep 30 09:11:33 danijoo, I don't do games :p Sep 30 09:11:38 asfdd there's not much in the way of fast 2.1 emulators, sadly. i think there are only ARM images available for that, genymotion or qemu wars aside Sep 30 09:11:41 is there anything special about http://developer.android.com/reference/android/view/GestureDetector.SimpleOnGestureListener.html or is it just an amaglamation of OnGestureListener and OnDoubleTapListener Sep 30 09:11:43 either make them or run them Sep 30 09:11:54 ARM image = slow emulator, no matter what Sep 30 09:12:08 who here as an app with more than 20k downloads and what is it and how long has it been up ? Starting to think about my rollout strategy Sep 30 09:12:34 war-of-opinions-day today, mh? Sep 30 09:12:36 i'm just blown away by the number of people that think genymotion is the only available solution, because they're not aware of the one that google itself espouses Sep 30 09:12:36 ^^ Sep 30 09:12:48 umm I have an app on XDA (as an attachment to a forum post), sadly they don't provide download count Sep 30 09:13:01 danijoo, isn't every day like it? Sep 30 09:13:01 ravilov they do Sep 30 09:13:11 ravilov: yeah but today seems to be worse Sep 30 09:13:25 especially since its early morning (for me) Sep 30 09:13:35 =( Sep 30 09:13:39 ravilov if it's an attachment sure they do Sep 30 09:13:50 StingRay_ rollout strategy like what? i was the lead on https://play.google.com/store/apps/details?id=com.docusign.ink til july Sep 30 09:13:56 StingRay_, yeah? where? Sep 30 09:14:02 I only see number of "views" Sep 30 09:14:04 hm I guess that's it Sep 30 09:14:07 yes Sep 30 09:14:11 view == open Sep 30 09:14:14 in that case I have 13k Sep 30 09:14:16 but Sep 30 09:14:18 shmoon: SimpleOnGestureListener is an implementation of GestureListener.. Sep 30 09:14:18 well, view == click Sep 30 09:14:21 that's inconclusive Sep 30 09:14:28 Like CursorAdapter and SimpleCursorAdapter Sep 30 09:14:30 since my app is also a part of some ROMs ;) Sep 30 09:14:52 danijoo: and also DoubleTapListener, so thats all it is ? combination of both, nothing special right ? Sep 30 09:14:53 and has also been copied outside of XDA Sep 30 09:14:55 ravilov what app? Sep 30 09:15:13 depends on your definition of "special" but yeah Sep 30 09:15:20 alright friend Sep 30 09:15:56 sarbs I mean I wanted to talk about promotion based on the specific demographics and how much things like ad words worked etc Sep 30 09:16:02 as for how long, hm... well the first version came out about 2 years ago, I released the last version in January last year... yeah I don't have time to support it anymore Sep 30 09:16:19 sarbs, just some utility app specific to my phone Sep 30 09:16:26 Too busy giving your opinion on Windows users eh ravilov Sep 30 09:16:32 yes Sep 30 09:16:37 sarbs I have 15k downloads from randoms that come across it and people in my beta group… but the randoms are not really the target demographic Sep 30 09:16:37 Tough life Sep 30 09:16:39 also no interest in it anymore Sep 30 09:16:51 StingRay_ ahh. we actually didn't do much promotion aside from on our own site, and via b2b relationships with Google in order to get featured Sep 30 09:16:56 I have a half-finished next version that I don't feel like finishing Sep 30 09:17:29 ravilov i'm curious if we include it :) i work on cyanogen Sep 30 09:17:56 ah cool, but I doubt you'll want it, it's really specific to my phone Sep 30 09:17:57 http://forum.xda-developers.com/showthread.php?t=1832470 Sep 30 09:18:35 oh, if we don't already include it then i doubt it'll get rolled in, i'm not in charge of anything like that Sep 30 09:18:41 ah cool Sep 30 09:18:53 wtf have they done to xda :( Sep 30 09:18:59 yeah... Sep 30 09:19:03 StingRay_: just thought the same.. Sep 30 09:19:05 they still have the "2013" theme though Sep 30 09:19:12 it's….well….. metrosexual :( Sep 30 09:19:15 * ravilov switched to it of course Sep 30 09:19:28 ravilov: Judging by your app description, the phone sounds like a pos Sep 30 09:19:33 lol Sep 30 09:19:38 huh? Sep 30 09:19:57 Won't charge beyond a specific percentage? Sep 30 09:20:09 what's a pos? Sep 30 09:20:14 PieceOfShit Sep 30 09:20:18 ha Sep 30 09:20:31 it's actually extremely awesome and was way ahead of its time Sep 30 09:20:55 I can see that, it paved the way for our phones that now charge to 100% :] Sep 30 09:21:06 smartass Sep 30 09:21:25 Darklust as far as i understand how it works (i'm not authoritative in this remotely) all devices actually have a "charge limit" that they won't go beyond Sep 30 09:21:33 it actually *does* charge to 100%, it's just bad at showing that :p Sep 30 09:21:35 which rarely is truly full for the battery Sep 30 09:21:54 and sometimes the drivers that sync up batt voltage with % charge left, get out of whack Sep 30 09:22:14 thus requiring ravilov's fix of deleting the batt data and starting fresh Sep 30 09:22:17 Darklust, just fyi, this "bug" only ever happens on custom ROMs, the battery always shows 100% when fully charged on stock ROM Sep 30 09:22:26 :/ Sep 30 09:22:43 Yeah I remember reading that Sep 30 09:22:51 i had that happen to me on a Galaxy Nexus Sep 30 09:22:52 and it's nothing but a visual nuisance, it does not affect usage or longevity or anything Sep 30 09:23:13 show it 100% or 90% or 2%, it will still last just as long Sep 30 09:23:52 so I made the app specifically for those people whose day just gets ruined if they don't see 100% after they take it off the charger :p Sep 30 09:24:07 yeah. it stems from the fact that it's very difficult to estimate charge remaining in a battery because voltage dropoff on Li+ batts is very cliff-y Sep 30 09:24:32 Jesus. xda is advert hell. Sep 30 09:24:35 4.8v until very near exhaustion, then very sharp dropoff Sep 30 09:25:07 yeah, plus this specific battery has some issues with its firmware, it only reports in steps of 10% so you are forced to "guess" whatever is inbetween Sep 30 09:25:18 oh fun Sep 30 09:25:46 Tbh I had the opposite happen on my HTC One X+, it was going from 100% down to 80% ish after 4 days being off the charger and I was thinking to myself, wow, what the fuck did I do this is great, then a day after it just shut off at 76% or so, turn it back on battery was at 2% Sep 30 09:25:50 the stock ROM deals with that by actually only ever using the 10% steps, plus never showing the actual percentage anywhere, just the little battery icons :) Sep 30 09:26:33 VnM, that can happen here too, for example if you overuse my app and mess the stats too much ;) Sep 30 09:26:46 like, if you force it to 100% when it's actually at 20% or something Sep 30 09:27:05 Is there a way to hide your app from the Share Via list? Sep 30 09:27:20 yes, deploy filters Sep 30 09:27:53 When you've created a link in Shark Share, I'd rather you not accidentally pass that link back to Shark Share again :p Sep 30 09:28:41 oh yeah... that's a bit difficult Sep 30 09:29:04 theoretically you can customize the dialog that pops up, however I tried it and it didn't work Sep 30 09:29:06 Ankhwatcher i solved that by manually building the list of intents to pass to the chooser (via queryIntentActivities) and filtering it Sep 30 09:29:12 i don't know if there's a more elegant solution Sep 30 09:29:26 that's exactly what I tried but for me it didn't work Sep 30 09:30:00 You can filter a list and hardcode it by packagename but it's not really great practice Sep 30 09:30:03 so I just gave up on it, in my case it didn't matter too much if my app gets listed again or even if it gets selected Sep 30 09:30:35 kind of a pain in the ass. you have to take the first item in your filtered array and pass that as the EXTRA_INTENT, and then pass the remainder of the array as EXTRA_INITIAL_INTENTS Sep 30 09:30:47 ravilov: your first answer might have been right the right one, if I could filter incoming intents for tinysong links then I wouldn't appear Sep 30 09:31:09 well you can filter by URL Sep 30 09:31:13 so there Sep 30 09:31:25 s/URL/any part of URL/ Sep 30 09:31:37 can you only filter *for* a url or can you *exclude* a url too? Sep 30 09:31:50 no, you can't Sep 30 09:31:54 just checked Sep 30 09:31:57 sarbs, really? I just used the EXTRA_INITIAL_INTENTS, maybe that's why it didn't work for me Sep 30 09:32:04 intentfilter doesn't allow negative filtering Sep 30 09:32:18 ravilov yeah the EXTRA_INTENT is required, and will show up as the first one in the dialog Sep 30 09:32:26 that's kind of dumb :/ Sep 30 09:32:31 but oh well Sep 30 09:32:33 heeella dumb Sep 30 09:32:34 will try that next time Sep 30 09:33:00 might as well have a EXTRA_INTENT_4 that will be designated as the fourth intent in the list Sep 30 09:33:04 it's just random :) Sep 30 09:33:04 hahaha Sep 30 09:33:45 what i ended up doing was chooserIntent.putExtra(EXTRA_INTENT, mList.pop()).putExtra(EXTRA_INITIAL_INTENTS, mList.toArray(new Intent[0])); Sep 30 09:34:11 ugly :p Sep 30 09:34:15 that'll fill in both sanely and succinctly Sep 30 09:34:33 eh, it's better than all the alternatives i tried heh Sep 30 09:36:34 Yeah had used something similar before Sep 30 09:37:04 9jst Sep 30 09:37:08 Woops Sep 30 09:37:52 you too Sep 30 09:37:52 :p Sep 30 09:38:03 7psj! Sep 30 09:38:16 sarbs: you there? Sep 30 09:38:30 si Sep 30 09:38:37 sarbs: I was able to do that Sep 30 09:38:53 good! that's a really common paradigm in android Sep 30 09:38:55 sarbs: But I see null as getting stored in edittext Sep 30 09:39:13 paste up what you've got Sep 30 09:50:15 hello, is there a page that details the split between ndk32 and ndk64 packages? Sep 30 09:50:38 I need to compile my project (a set of .so libraries) for all architectures: arm, x86, x86_64 Sep 30 09:50:39 sarbs: here http://pastebin.com/CUiT3RRR Sep 30 09:51:25 how can I put the scrollbar edge to the left? it comes to the right with me Sep 30 09:51:26 I noticed both ndk32 and ndk64 packages extract to android-ndk-r10b folder. And their content overlaps. Are we supposed to download both packages and extract both into android-ndk-r10b when buildling for all archs? Sep 30 09:51:36 it's kinda confusing Sep 30 09:51:52 niru You're just trying to pass 1 String to the next Activity? Sep 30 09:52:04 sarbs: debugger is not entering the loop Sep 30 09:52:24 yes VnM Sep 30 09:52:50 niru there's no loop in that Sep 30 09:52:59 but, on line 11, you're referencing getIntent() Sep 30 09:53:06 getIntent() gets you the intent that originally started your activity Sep 30 09:53:19 the intent you want to be referencing is 'data', the parameter on line 7 Sep 30 09:53:25 ouch Sep 30 09:53:40 that's the intent2 you create in Activity2 and set via setResult Sep 30 09:53:48 also, I would transform the if/else to switch/case Sep 30 09:54:00 (for resultCode) Sep 30 09:54:35 additionally, you don't need to set the component on intent2 (where you do new Intent(Activity2.this, Activity1.class) ) - it's ignored. it's not hurting anything, but it may confuse you later Sep 30 09:54:35 lol, another one that converts to strings with ""+whatever Sep 30 09:55:06 this reeks of other languages' influence Sep 30 09:55:09 ravilov thankyou javascript/php i imagine Sep 30 09:55:31 perl too, dunno about python (I don't use it) Sep 30 09:55:41 basically any loosely typed language Sep 30 09:56:06 anyway niru that should getcha where you need to go. i'm gonna hit the sack, 3am and i got shit ta do tomorrow, shoulda been asleep hrs ago Sep 30 09:56:29 Hi guys. So when changing orientation, the OnRestoreInstanceState method is called, right? Sep 30 09:56:41 sarbs: sure bye good night Sep 30 09:57:31 what do the docs say? Sep 30 09:58:06 what does the fox say?* Sep 30 09:59:09 hatee hatee hatee ho Sep 30 10:01:06 sarbs: if you there thanks again it worked Sep 30 10:01:16 :) Sep 30 10:01:28 it usually works when you do it right ;) Sep 30 10:02:17 thanks ravilov yes...;) Sep 30 10:02:45 :p Sep 30 10:26:45 What pattern should I use when I want to display notifications only when the app is backgrounded? Sep 30 10:26:56 checker pattern Sep 30 10:27:30 oh you mean notification type, erm… that would depend on context of the info :) Sep 30 10:32:06 I removed the ~/.android dir and recompiled the app, and it wasn't generated again => the keystore isn't there... Sep 30 10:32:10 or what logic to detect if the activity has been backgrounded Sep 30 10:34:20 for instance Activity.onUserLeaveHint() seems nice Sep 30 10:36:19 What are you trying to achieve meital ? Sep 30 10:37:14 VnM: find the storekey of the app in order to sign the test app with the same cert Sep 30 10:37:46 meital you mean the release key ? Sep 30 10:37:59 StingRay_: I guess so Sep 30 10:38:00 platzhirsch onPause() Sep 30 10:38:03 I'm not sure if thats even possible, as far as I know if you don't have the production keystore you're fucked Sep 30 10:38:09 StingRay_: you think that's better? Sep 30 10:38:24 platzhirsch app is backgrounded Sep 30 10:38:44 StingRay_: well, I would need to turn it off with onResume() anyway, so I guess both are a good pair Sep 30 10:48:18 for in app purchases, am i supposed to upload a separate .apk? Sep 30 10:48:26 i’m confused by the tutorials i’m finding Sep 30 10:49:12 ultra- no Sep 30 10:49:37 ok, so just add the billing permission and add the code to my existing app Sep 30 10:49:52 if thats what you want Sep 30 10:50:01 yeah, i’m going from paid to freemium Sep 30 11:03:23 I am using AsyncHttpClient as a WebSocket library, it seems I am not receiving anything when my activity is backgrounded, ideas on that one? Sep 30 11:03:53 it's instantiated in the application as a static variable, so I wouldn't assume that to happen Sep 30 11:04:57 ah nevermind, my fauly Sep 30 11:34:11 <_3mpty> My app is collecting logs while app is working and provides text files that contains those logs for upload. The question is: where and how should I start service that will proces those files and upload those? I was thinking about AlarmManager every 10mins or about checking log count when appending new ones and trigger it from there. What approach would be most battery friendly? Sep 30 11:34:42 <_3mpty> And elegant ofc. Sep 30 11:35:26 well I would bypass use of alarms Sep 30 11:35:32 <_3mpty> (Logs collecting is easy - just broadcast receiver, with custom action provided to manifest) Sep 30 11:35:50 and when user exits the app, check for x amount and fire intentService Sep 30 11:36:19 <_3mpty> I need to be done more often Sep 30 11:36:34 <_3mpty> I don't have exact value but there is a lot logs Sep 30 11:36:46 <_3mpty> so i don't want to push too much data at once Sep 30 11:37:02 what are you logging ? Sep 30 11:37:10 cause this is sounding more like data mining Sep 30 11:38:00 also using a users data connection for this is not a good move really Sep 30 11:38:03 <_3mpty> some ui events, ui flow, what i'm retrieving from server (don't ask me why) and a lot of other stuff Sep 30 11:38:14 <_3mpty> not my idea Sep 30 11:38:28 I think you would have to state that you will be using lots of data for these logs Sep 30 11:38:31 to the user I mean Sep 30 11:38:38 <_3mpty> yup, i know Sep 30 11:38:42 cause it sounds significant Sep 30 11:39:19 <_3mpty> I have no power here to kill this idea, so i'm trying to save what i can in this case: battery Sep 30 11:39:44 so do it only while app is active Sep 30 11:40:13 start a service that observes x, and based on y does uploads Sep 30 11:40:39 when the app is closed it does a final check and ends itself Sep 30 11:40:52 <_3mpty> sounds resonable Sep 30 11:42:11 <_3mpty> I was thinking about time constraint - i think that it would be more efficient to post 10 request every 10mins Sep 30 11:42:34 <_3mpty> than every req. when i have more than 50 logs Sep 30 11:43:01 is that not attempting to base use a constant to measure a variable ? Sep 30 11:43:30 sounds a bit odd to me…but each to his/her own :) Sep 30 11:44:07 <_3mpty> :D Sep 30 11:45:22 <_3mpty> I will go easiest path: new event arrives -> if 10 or more mins passed -> upload bundle Sep 30 11:45:28 <_3mpty> without alarms and stuff Sep 30 11:46:25 I would personally use log amounts and define chuck sizes Sep 30 11:46:31 cause time != n logs Sep 30 11:47:17 but really if it's not data mining and you want usage stats etc, you should use GA Sep 30 11:47:25 then you dont have to worry at all Sep 30 11:47:37 when using in app billing, is it usual to just store a preference once the purchase is verified so the app doesn’t check every time? Sep 30 11:48:20 ultra- no that is not normal Sep 30 11:48:37 it's not secure at all Sep 30 11:49:37 <_3mpty> StingRay_: In my opinion it would be ok if for limit 50 average user would generate those in five or more mins but here he can do it faster if he jumps a lot, but still app have data cached so using radio only for logs would battery killer, I need to calculate some mixed constraint (time and amount) Sep 30 11:50:02 <_3mpty> and GA is not option here, custom backend with kind of data mining stuff Sep 30 11:50:20 Hello, u guys know if we can push folders into device with eclipse DDMS ? It found only for files but not for folders :'( Sep 30 11:50:25 _3mpty not going to help you data mine from users :) sorry Sep 30 11:50:25 so it’s normal to check every time? and the user can’t use all the features if they’re not online? Sep 30 11:50:41 <_3mpty> StingRay_: ok Sep 30 11:50:44 ultra- playStore caches purchases Sep 30 11:50:53 man I've set up Flurry just like this page says http://support.flurry.com/index.php?title=Analytics/GettingStarted/Android with calls to onStart onEnd and custom events, everything is as it should, yet 1.5 months into it, only 1 user reported Sep 30 11:50:59 you ask play services, you do not ask the internet Sep 30 11:51:06 oh i see, thanks Sep 30 11:51:16 there are at least 500 users using that app Sep 30 11:52:17 <_3mpty> Sicp: I'm using this and it contains a lot of reports from 3-5 dev devices Sep 30 11:52:26 ultra- be aware though, I think there are massive bugs with iap and no fixes…. or thats what I found Sep 30 11:52:35 it should at least report stuff from my own testing Sep 30 11:52:40 <_3mpty> yup Sep 30 11:52:56 isn’t there millions of apps using IAP? Sep 30 11:53:01 strange, everything is setup there Sep 30 11:53:28 ultra- consumables yes, but far less using managed Sep 30 11:54:49 http://stackoverflow.com/questions/8801593/flurry-analytics-not-reporting-any-updates-on-android Sep 30 11:54:54 I don't see the stuff in his log cat Sep 30 11:55:02 well, i’ll try it and see what i end up with… i need to get this going one way or another Sep 30 11:55:02 <_3mpty> Sicp: if i remember correctly it just need to configure onStartSerssion and setUseHttps Sep 30 11:55:17 I never came across setUseHttps Sep 30 11:56:21 this is what makes it dump more logs into log cat Sep 30 11:56:22 http://stackoverflow.com/questions/14190535/flurry-does-not-log-anything-in-android Sep 30 12:00:35 so google is publicly listing my address now? Sep 30 12:00:49 nice Sep 30 12:01:53 ultra- yeah, so people can take legal action against you …for things like data mining and stealing info :) Sep 30 12:02:19 or coming to my house to ask how to set up the network MIDI connection from my app Sep 30 12:02:36 “sure come on in, i’ll show you" Sep 30 12:03:24 if the app were big enough so that people around you would be close enough to come over and ask, you would be in a much better house with some big gates Sep 30 12:03:39 haha that is true Sep 30 12:03:40 so it's relative Sep 30 12:03:47 I just wanna know where danijoo lives so I can go hug him Sep 30 12:04:42 Hello, u guys know if we can push folders into device with eclipse DDMS ? It found only for files but not for folders :'( Sep 30 12:05:05 mtr_ ask google Sep 30 12:05:11 as in the search engine Sep 30 12:05:56 StingRay_: if u dont know u could say u dont know Sep 30 12:06:43 mtr_ thanks for clearing that up Sep 30 12:06:58 I was rather attempting to help you find an answer Sep 30 12:07:00 :) Sep 30 12:07:12 StingRay_: if im asking here its i didnt found somewhere else Sep 30 12:07:23 ah right then is that then not an answer ? or at least info from which you can reasonably conclude ? Sep 30 12:07:36 as in if there is no info to do so… then maybe it just cant be done Sep 30 12:07:54 StingRay_: maybe, or maybe not.. thats why i ask Sep 30 12:08:02 rekt Sep 30 12:08:06 google search VS memebers of this channel for that question … I'd go with the search answer Sep 30 12:08:18 no offence to us, but it's pretty good :) Sep 30 12:08:48 so u just saying this chan is useless Sep 30 12:08:55 i do not agree i learn many things here Sep 30 12:09:00 not from u apparently Sep 30 12:09:18 nope, but for absolutes that are that search worthy then yes… compared that is Sep 30 12:16:51 once i’ve added packages from the sdk manager, shouldn’t i just be able to do the imports? Sep 30 12:17:15 VnM: You live in germany? Sep 30 12:17:26 No :( Sep 30 12:17:37 uh nevermind Sep 30 12:17:46 gonna be an expensive hug then :) Sep 30 12:23:49 is the update to the play store agreement from the 25. the one with the address thingy? Sep 30 12:24:18 I thought the changes were upcomming, not already there Sep 30 12:30:59 Syzygy_: its not in the agreement but the note in the dev center said it will take place at 30.9.2014 Sep 30 12:31:10 ah Sep 30 12:31:35 But it doesnt seem to be visible yet. Although I provided a companies address in settings, i cant see it in the market Sep 30 12:32:00 we haven't even accepted that agreement yet. Sep 30 12:32:35 I dont think this has anything to do with the agreement because the agreement doesnt mention addresses and their showing Sep 30 12:32:43 guess I was the first to log in since it changed and I'm fairly sure I'm not supposed to accept it :> Sep 30 12:32:45 i think these were just two changes comming side-a-side Sep 30 12:33:35 but isn't the address thing mandatory? how are they going to enforce that if it's not in the agreement? Sep 30 12:34:11 dont know. They just said "put it in or you may get terminated" Sep 30 12:34:14 :) Sep 30 12:34:33 ah well. Sep 30 12:34:50 I kind of don't want to put on pants and go to work today :( Sep 30 12:34:57 im no lawyer so im not sure if they have to put it into an agreement at all Sep 30 12:35:58 I think they do or they can't just terminate your account, but there was to much of "I'm no lawyer but it's definitely like that" yesterday, so let's just drop this topic. Sep 30 12:37:02 can one use an in xml using a CustomView Sep 30 12:37:04 ? Sep 30 12:37:19 the agreement says they can terminate you without any reason so ... ;) Sep 30 12:37:39 but you are right. lets drop this before hell breaks loose here again Sep 30 12:37:48 ad_dev: yes Sep 30 12:38:04 the tag asks for a layout Sep 30 12:38:30 oh you want to just add a custom view? Sep 30 12:38:31 so, I just provide the layout my fcustom view uses? Sep 30 12:38:34 then you dont need include Sep 30 12:38:49 well, the reason I ask Sep 30 12:38:56 I have a viewpager Sep 30 12:38:59 just do Sep 30 12:39:19 and I want to include custom views as child views to that pager Sep 30 12:39:55 I want to use a ViewPager to flip between custom views instead of fragments Sep 30 12:39:59 viewpager cant have child views Sep 30 12:40:06 Anyone got a suggestion on how to capture car signs with an android device? I tried a simple take a photo of it and run it through an ocr engine but the results where pretty bad Sep 30 12:40:14 you have to write an adapter that servers fragments in that pager Sep 30 12:40:46 I believe a FragmentPagerAdapter Sep 30 12:40:49 is for fragments Sep 30 12:40:50 asfdd: write your own ocr specialized for car signs might be the only solution Sep 30 12:40:52 and I can use PAgerAdapter Sep 30 12:41:01 and instantiateItem to get child views Sep 30 12:41:11 yes Sep 30 12:41:14 instantiateItem() method Sep 30 12:41:17 but you cant include that views via xml Sep 30 12:41:28 you have to inflate them in the adapter etc Sep 30 12:41:31 oh.. Sep 30 12:41:37 and add them to the container Sep 30 12:41:47 its the same procedure as for listviews Sep 30 12:41:51 I see Sep 30 12:42:24 Alright thank you danijoo that helped a lot! Sep 30 12:56:51 how do i make push notification scroll down from the top, like FB apps, on tablet Sep 30 13:32:14 is it possible to have a dialogfragment with, lets call it, content A. Then when I click on a button, that content slides to the left and a new content, content B slides in from the right? Sep 30 13:32:50 is that not just a pager ? Sep 30 13:33:00 viewPager ? or fragmentViewPager Sep 30 13:33:04 hey StingRay_, err well Sep 30 13:33:27 the problem with a viewPager is that it slides through all the pages Sep 30 13:33:39 so if for instance the first page is my main menu (content A) Sep 30 13:33:57 and I click on an item that needs to open page... 3 for instance Sep 30 13:34:03 wait I know what you mean yes… but sure you can do what you want how you want Sep 30 13:34:09 it will go through page 2 and then 3 Sep 30 13:34:23 you could transition a view on from the right Sep 30 13:34:39 any view you want Sep 30 13:34:47 containing whatever you put in it Sep 30 13:34:50 into the dialogfragment? Sep 30 13:35:24 into a fragment this is in the dialogFragment yes Sep 30 13:35:48 dialogFragment is just a fragment wrapped in a dialog window Sep 30 13:36:04 so if you can do it somewhere else, you can kinda do it there too Sep 30 13:36:12 nested fragments that is Sep 30 13:36:36 ah! nested fragments... isnt that only for api 17? Sep 30 13:36:49 i got api 15 as minsdk Sep 30 13:37:13 ad_dev im doing nested fragments with api 10, you just have to use support library Sep 30 13:37:29 ohh alright it works with the support Sep 30 13:37:36 alright Sep 30 13:37:38 ad_dev yeah, I nest fragments a lot Sep 30 13:38:05 so in essnce, my dialogfragment will show a main menu fragment (nested fragment) Sep 30 13:38:15 and when I click on one of the items Sep 30 13:38:47 I animate it out and animate in anither fragment Sep 30 13:38:57 ? Sep 30 13:39:05 depends Sep 30 13:39:17 sometimes better just to use 1 fragment and "views" Sep 30 13:39:27 not use fragments for the sake of it Sep 30 13:39:49 custom views in case I have logic in each clicked item Sep 30 13:43:38 Ok, so one more question, to clearify, when an item is clicked, Sep 30 13:43:53 in the "main menu" Sep 30 13:44:03 I need to produce a view and slide it in Sep 30 13:44:22 while sliding the menu view out Sep 30 13:44:25 all those different views Sep 30 13:44:43 where would they be located? Sep 30 13:45:57 each view will be a custom view, so at which point do I instantiate the view and prepare it to transition into the dialogfragment Sep 30 13:45:59 why is this private? http://www.reddit.com/r/redditandroidapps/ Sep 30 13:46:00 ;( Sep 30 13:46:47 ad_dev when you need it Sep 30 13:46:49 :) Sep 30 13:47:03 hey Sep 30 13:47:49 is there a way to receive a call when a view is off screen? Sep 30 13:49:04 c03 suppose that depends on what you mean, off screen Sep 30 13:49:14 no longer visible Sep 30 13:49:43 you could use a layout listener and check Sep 30 13:50:41 how so? Sep 30 13:51:07 hi! I have a problem with writing to the external storage, I've created a dir and a file and it appears on DDMS but I'm not able to see it on the mounted device on my desktop computer Sep 30 13:51:56 c03 onGlobalLayoutListener Sep 30 13:57:22 will this trigger if an activity/fragment containing the view is detached? Sep 30 14:01:27 hmm.. no this dialogfragment with animation thing is not gonna work... :( Sep 30 14:01:43 guess I can use this http://developer.android.com/reference/android/view/View.html#isAttachedToWindow() Sep 30 14:01:44 I think I'll just have another dialogfragment Sep 30 14:01:49 popup when an item is clicked Sep 30 14:02:03 although it will look ugly Sep 30 14:02:12 popup upon another popup Sep 30 14:02:24 what is the android guide line in this situation? Sep 30 14:08:41 ad_dev why would it not work Sep 30 14:15:32 well the main issue is that its not "android" enough.. its more of an ios thing to animate views in instead of popups.. (when items are clicked) Sep 30 14:16:00 well this reason is more of a design issue Sep 30 14:16:25 the other issue is a complex implementation for such a feature Sep 30 14:16:34 and we are out of time :( Sep 30 14:18:01 any help?? Sep 30 14:18:20 ad_dev time… the ultimate killer Sep 30 14:18:41 yup... :( Sep 30 14:19:29 so... we are left here with a dialogfragment which is basically a popup... and when an item is clicked, another popup will appear on top... Sep 30 14:19:41 very ugly Sep 30 14:21:08 ad_dev yeah sounds like you would be better with a pager in it Sep 30 14:21:10 hi Sep 30 14:21:19 I used the for emoji overlay Sep 30 14:21:54 yeah a pager would have worked perfect, problem is the transition between pages... Sep 30 14:23:08 but like ANY other thing in android development... nothing works for you. Only against you. Sep 30 14:24:06 Seriously I haven't had a single feature that was not fought against the entire time Sep 30 14:24:22 welcome Sep 30 14:24:57 ad_dev maybe bad design then Sep 30 14:25:07 cause most of the time I feel it's pretty solid to do something Sep 30 14:25:49 gain... Sep 30 14:25:49 ad_dev: you are right on the money, it's piss starting out and most of the problems you will face are to do with not knowing the API Sep 30 14:25:58 lost internet yet again Sep 30 14:27:18 once you stray just a tad from android guide lines, the apis you have a worthless. You have to hack them to pieces to get the needed behaviour.. Sep 30 14:27:47 ad_dev not true Sep 30 14:27:57 I dont even read the silly design guides Sep 30 14:28:05 ad_dev: absolutely true Sep 30 14:28:05 and I do things that are best for my users Sep 30 14:28:08 hehe :) Sep 30 14:28:16 and get along fine so far Sep 30 14:28:47 Well it does depend on the app complexity Sep 30 14:29:18 yeah, I think mine is very complex Sep 30 14:29:30 but lets not go far, even this feature that I asked about here Sep 30 14:29:48 have a dialogfragment which is a menu Sep 30 14:30:22 and once an item is clicked, animate its view in and the menu animate out Sep 30 14:30:25 its possible Sep 30 14:30:33 definitely Sep 30 14:30:45 easily yes Sep 30 14:30:48 but waaaaay to complex for such a minor request Sep 30 14:30:54 yup Sep 30 14:30:59 not its not easy Sep 30 14:31:06 not complex at all Sep 30 14:31:11 and it WILL introduce a lot of bugs afterwards Sep 30 14:31:24 well if you write them in yes Sep 30 14:31:29 hehe come on :) Sep 30 14:32:06 I'm sure you took apis and added some hacks to them which introduced bugs Sep 30 14:32:17 before. Sep 30 14:32:18 why would I have to hack them ? Sep 30 14:32:19 yes you can fix them Sep 30 14:32:27 dont have to hack anything Sep 30 14:32:27 alright Sep 30 14:32:35 navigation drawer Sep 30 14:32:44 place it ontop of the action bar Sep 30 14:32:50 I do Sep 30 14:32:52 when it opens Sep 30 14:32:58 and be honest, was that easy? Sep 30 14:33:12 I dont have an actionbar or a navigaion drawer… not android ones Sep 30 14:33:16 they are silly Sep 30 14:33:19 I have views Sep 30 14:33:27 lol Sep 30 14:33:31 well Sep 30 14:33:42 and good SimonVT ' drawer …but thats just a host view/controller Sep 30 14:33:44 navigation drawer knows how to handle its states Sep 30 14:33:56 and handle rotations Sep 30 14:33:58 as do I know how to handle states Sep 30 14:34:15 I'm sure you do, but you are not supposed to Sep 30 14:34:21 thats why theres an api Sep 30 14:34:23 for you Sep 30 14:34:29 oh seriously ? this is 101 android stuff…but neways… point is what you want is not only doable but easy too Sep 30 14:34:29 that is supposed to do that for you Sep 30 14:34:46 little is done for you… it's more a case of being open to do what you want Sep 30 14:35:13 if you choose to do it X way from some docs then you are working to some other designers design Sep 30 14:35:26 you have constraints and sure you will not be happy with some of the decisions Sep 30 14:35:33 but you can do it your own way too Sep 30 14:36:22 I have maybe a bias view due to Android being the only thing I know Sep 30 14:36:28 yes, and by designing your own, you intoduce bugs, hacks and what not to acheive somethjing that could have been done better by google engineers who know their system Sep 30 14:36:33 so I dont/cant compare to anything and think…well this is wrong Sep 30 14:36:42 its not worng Sep 30 14:36:52 you are correct in working this way Sep 30 14:37:02 ad_dev neways, yes you always have bugs, but who cares, fix them Sep 30 14:37:07 it's simple enough Sep 30 14:38:00 ad_dev: yup, you end end up reinventing the wheel along with all the other android devs, it's cozy! Sep 30 14:38:04 so we got back to square one... I introduce bugs that need to be worked out which consumes more time Sep 30 14:38:15 google most of the time from my point of view introduce complexity for convenience Sep 30 14:39:07 c03: excatlly, reinventing the wheel just because you want a wheel that has those.. fluffy triangles added to the spikes Sep 30 14:39:10 and much of the time the OS is designed by technicians not by designers … Sep 30 14:39:29 but seriously ad_dev …you are not doing anything complex so what is it you have a prob with ? Sep 30 14:39:59 ad_dev: yup. custom stuff in android sucks bollocks. Sep 30 14:40:48 ad_dev and I would just add fluff to the wheel btw, no need to re-invent it Sep 30 14:40:52 StingRay_: well the entire design. How to effeciently get those custom views into view in animation Sep 30 14:40:58 heheh Sep 30 14:41:10 by playAnimation Sep 30 14:41:34 still not sure what your problem is, hold them in a list ? adapter ? have some kind of controller ? Sep 30 14:41:35 so i'll have a dialg fragment that has a views at the sides? Sep 30 14:41:47 I need to physiclly position them at the side? Sep 30 14:41:51 no Sep 30 14:41:58 you play and that is the start point Sep 30 14:42:03 this is 101 animation Sep 30 14:42:08 in the docs too Sep 30 14:42:46 maybe I need more coffee cause I still fail to see the problem Sep 30 14:42:49 :) Sep 30 14:43:00 are you new to android dev ? Sep 30 14:43:26 i learn something new each day Sep 30 14:43:33 but yeah quite new Sep 30 14:43:47 yeah maybe you should just look at the anim turotials Sep 30 14:43:52 ooops, tutorials Sep 30 14:44:12 or even fragment transitions if that fit better Sep 30 14:44:18 anything you want really Sep 30 14:44:30 StingRay_: dont exaggerate :) Sep 30 14:45:09 yeah, need coffee cause not even sure what that was in reference to :) Sep 30 14:46:52 there isnt a real problem here.. its just too time consuming which was my point all along Sep 30 14:47:03 and taht was in reference to sending me read a tutorial :) Sep 30 14:47:17 you go read a tutorial! :D Sep 30 14:47:17 Well.. spend less time talking and more time coding! Sep 30 14:47:35 its 3 am Sep 30 14:47:53 i never code at 3 am Sep 30 14:48:04 nah, it's 16:47 ;) Sep 30 14:49:45 ad_dev but you were asking how animation worked Sep 30 14:50:05 or rather asking how to do something where the answer was, read how animation works/triggered/plays Sep 30 14:50:19 totally optional though ;) Sep 30 14:55:00 StingRay_: i know how animation works. What I dont know is how to implement that in my specific situation. Sep 30 14:55:08 funny you didnt see that Sep 30 14:56:51 in a dialogFragemnet ? Sep 30 14:57:06 Does anyone know if there’s a way to implement draggable Google map markers without requiring a long press? Sep 30 14:57:24 basically yes, in a dialogfragment. I undersatnd it like a fragment Sep 30 14:57:31 same as in an activity Sep 30 14:57:34 but still I fail to understand how to transition those Sep 30 14:57:40 views Sep 30 14:57:54 but if you think its easy I'll give it another try Sep 30 14:58:06 well could you do it in a single screen activity ? Sep 30 14:58:33 forget fragments and dialogs for the moment Sep 30 14:58:38 Is there any good practice for sending a large image from one activity to another? something faster than saving and loading it from disk? Sep 30 14:58:47 what I did before when trying to animate a view into screen Sep 30 14:58:58 was position it outside, and animate its values into screen Sep 30 14:59:10 without using animation xmls that is Sep 30 14:59:17 ObjectAnimator Sep 30 14:59:24 or view.animate() etc.. Sep 30 14:59:36 but first the view was positioned out side the screen Sep 30 14:59:41 is that wrong? Sep 30 15:00:42 wait the text here got confused, I mean I did not use any xml for the animations. I only used ObjectAnimator or view.animate() calls Sep 30 15:00:45 not sure you can really say anything is wrong… if it works it works… but yeah all I would do is have a method that takes the click, builds the views, attaches them and plays anim, when finished removes the obscured viewss Sep 30 15:01:12 alright and when you build that view Sep 30 15:01:18 do you supply it with a position? Sep 30 15:02:07 for instance you have a view that needs to animate it from bottom of screen into screen... when you build that view, you position it out side? for instance screen.getbottom + view height... (just as an example) Sep 30 15:04:53 so basically that is what I would do... I'm not sure its the correct way Sep 30 15:05:24 I'd poisition the view at the bottom + its height and then I would animate it it... Sep 30 15:05:30 well I would build it, add it and play anim Sep 30 15:05:31 it does work.. Sep 30 15:05:37 not position really Sep 30 15:05:40 anim would do that Sep 30 15:06:13 Usually I'd position it where it's supposed to end up Sep 30 15:06:14 thinking further I would still probably use viewPager for this :) Sep 30 15:06:35 viewPager doesn't have to be swipeable Sep 30 15:06:35 ah! so this is the point I fail to understand... you have to position it first... Sep 30 15:06:52 yea but the issue with the view pager Sep 30 15:07:01 forget teh swipe I can disable that Sep 30 15:07:03 the issue Sep 30 15:07:23 is that if I setits current item position to 4, it will animate through the rest of the items Sep 30 15:07:33 I think you are thinking about it wrong Sep 30 15:07:42 think of pages a menu levels Sep 30 15:07:57 level 2 is different depending on what you clicked on level 1 Sep 30 15:08:12 they would not be absolutes in this case Sep 30 15:08:34 hmm. Sep 30 15:08:39 i see! Sep 30 15:08:43 level 2 would be blank until I clicked on menu item c, then level 2 would get menu c Sep 30 15:08:46 then transition to it Sep 30 15:08:58 so tis the way you are thinking that is wrong, not android ;) Sep 30 15:09:01 so I add page 2 dynamicly Sep 30 15:09:11 yup :) thats the real bug Sep 30 15:09:16 no, you add contents of page 2 dyn Sep 30 15:09:22 yeah I meant that Sep 30 15:09:29 page 2 is there as the default cache is 2 pages I think Sep 30 15:09:31 :) Sep 30 15:09:57 in view pager yeah 2 pages are cached Sep 30 15:09:58 alright Sep 30 15:10:07 this changes stuff Sep 30 15:10:21 the only thing I would get sorted 1st in this case is the height transition stuff Sep 30 15:10:42 what do you mean by that? Sep 30 15:10:47 level 1 has 5 items, menu c had more or less but not the same Sep 30 15:10:53 how is that presented Sep 30 15:11:03 oh. Sep 30 15:11:11 cause blank space and scrollable is not a good design choice :) Sep 30 15:11:12 err well each menu item... is Sep 30 15:11:34 is basically a list Sep 30 15:11:50 that populates in time... Sep 30 15:11:56 but i see what you mean Sep 30 15:12:07 but worst case I'll have an empty list Sep 30 15:12:46 but this is just one option…android gives you plenty Sep 30 15:12:49 ill add dividers to have something there instead of blank stuff Sep 30 15:12:54 you dont even need a dialogFragment for this Sep 30 15:12:58 just a view Sep 30 15:13:01 :) Sep 30 15:13:12 that is also true. Sep 30 15:13:24 look I wont argue that I lack tons of knowledge and experience Sep 30 15:13:39 I'm just comparing stuff to ios Sep 30 15:14:11 I can only compare from a design stand, not really a dev one Sep 30 15:14:21 i only recently transitioned to android and it all looks kinda... Sep 30 15:14:25 messy Sep 30 15:14:56 alright.. so I'll try it the way you suggested Sep 30 15:15:45 ad_dev: Everything is sorta messy until you get the hang of it Sep 30 15:17:59 Mrdarknezz: yea... but its annoying as hell.. give me a matrix plug and load up AndroidDev program... :) Sep 30 15:21:10 hello.. i'm trying to use sipdroid on a friends voip server, which has a custom CA, as the ca cert is not included by default in android, so if i try to connect with tls it fails (i know i can add any ca to the local store being root.. but i need it to work on non rooted phones or without using the password), so there's any way to add a custom ca inside the sipdroid app? Sep 30 15:21:22 i'm not an android dev not a programmer really, seraching i've seen it can be done trough the truststore Sep 30 15:21:47 i have the source code opened on andoridstudio but i can't find anything related with tls Sep 30 15:29:34 ad_dev: Yeah I know that feel, I read this blog http://www.therealjoshua.com/ Sep 30 15:29:40 ad_dev: Got it from someonme on the channel Sep 30 15:29:54 ad_dev: This is also pretty useful https://android-arsenal.com/ Sep 30 15:30:46 Zedax: you can add the certificate to user store, but you'll have to setup lockscreen pin/pass/pattern Sep 30 15:30:59 ad_dev: I found that using a Activity/View/Model worked pretty nifty Sep 30 15:31:51 Hello guys Sep 30 15:32:32 p_l: i know, on my phone i do that, but others don' want to use the password , i saw this http://nelenkov.blogspot.com.es/2011/12/using-custom-certificate-trust-store-on.html in regards to adding your own keystore to the app, but i don't knwo how to do it Sep 30 15:34:05 Mrdarknezz: ahhh excellent reads.. thank you! Sep 30 15:34:47 ad_dev: Also having seperate controllers for data stored in the application class, that way you can access it across any activity Sep 30 15:34:53 Zedax: you'd need to compile your own build of SIPdroid. Don't recall details Sep 30 15:40:14 how do you guys create the documenation for your apps? Sep 30 15:40:37 Does anyone know if there’s a way to implement draggable Google map markers without requiring a long press? Sep 30 15:40:48 In eclipse? Sep 30 15:41:12 Is there a better way to perhaps create something in automatic by just commenting your code? Sep 30 15:43:13 peska, are you talking about java docs? Sep 30 15:44:31 jab416171: I was wondering how the developers here documentate their code. Sep 30 15:45:10 Being new to android, I just finished my app and I currently lack this part. Although I have put single line comments but nothing standard Sep 30 15:45:12 anyone worked with MediaCodec api? :) Sep 30 15:45:30 peska, look into javadocs Sep 30 15:46:51 jab416171: Ok, thanks. If there are other better alternatives which android developers use I would appreciate some insight into it Sep 30 15:46:54 ok, nvmd, found my question answered elsewhere :) Sep 30 16:13:13 peska javadocs Sep 30 16:13:50 peska go make a method, give it a return, some parameters, then above it type /** and hit enter. you will see some auto generated docs Sep 30 16:27:18 Hey guys, how would I wait for a TextView to be changed before running a tread that hangs the UI? Sep 30 16:27:23 UI thread hang is unavoidable in this situation Sep 30 16:27:51 ui thread hang is never unavoidable Sep 30 16:28:00 but the textview I mean to change to notify the user doesnt get changed.. or it does before the UI hangs so fast that it doesnt seem like it is changed Sep 30 16:28:24 in this case it is.. I have a peripheral that when i call close() before it timesout naturally it hands the UI Sep 30 16:28:33 it’s built into their SDK Sep 30 16:28:53 sure I can call close() inside a thread.. Sep 30 16:28:58 if you modify a textview and then in the same execution sequence halt the ui thread, it won't update - the system never gets a chance to call invalidate() Sep 30 16:29:03 but if i switch back and forth then it’s still stuck closing Sep 30 16:29:20 close it in a thread and then delay further operations until that's finished Sep 30 16:30:12 what should I use to do this? synchronized? countdown latch? Sep 30 16:31:01 i'm not sure on your overall execution so i'll just say go read the concurrency tutorials.. threading requires some decent understanding to get right Sep 30 16:31:29 I want to wait for the thread to finish closing the peripheral then call super.onPause() Sep 30 16:31:34 this is all happening onPause() Sep 30 16:31:37 at the simplest, however, you could probably just pop the close() into an AsyncTask in doInBackground, and then do anything that needs to be done afterward in onPostExecute Sep 30 16:31:55 ah nice one Sep 30 16:31:58 mm.. that won't work Sep 30 16:32:13 because super.onPause(); Sep 30 16:32:35 i'm gonna venture a guess that you probably need to open and close the resource outside of the activity lifecycle, instead Sep 30 16:32:45 s/outside/independent/ Sep 30 16:33:20 = reqrite this 2k line class :( Sep 30 16:33:37 I already am.. but I want to send out a quick patch before I do that. Sep 30 16:33:54 well, as it is currently there's no way to avoid your bug Sep 30 16:34:10 you have to make that close() independent of onPause() Sep 30 16:36:32 can I have a thread.wait() inside a while(thread.isalive()) loop? Sep 30 16:38:00 you can.. but it'd be pointless Sep 30 16:38:24 you need to go read concurrency primers in order to fix this, there's no way around it sorry Sep 30 16:38:40 if you block during onPause, you will freeze ui thread and prevent ui updates. period. Sep 30 16:39:10 ok,. thanks sarbs Sep 30 16:39:18 if it's not absolutely necessary to wait to do super.onPause() until after close() finishes, then you can just fire off an asynctask and forget it for now Sep 30 16:39:30 though i'd still highly recommend the concurrency learnin Sep 30 16:40:43 what if I start that asynctask can call pause() after it finishes? Sep 30 16:42:06 you're welcome to try; it may even be beneficial to do so.. you'll gain some valuable understanding and first-hand experience in why i'm telling you concurrency will be required to fix this ;) Sep 30 16:43:10 lol ok thanks Sep 30 16:51:09 is there a way to provide 3rd-party apps access to a service? Sep 30 16:53:20 say, to send a continuous stream of data Sep 30 16:53:20 like sensor data Sep 30 16:53:31 yeah Sep 30 16:53:35 Services Sep 30 16:53:36 ;) Sep 30 16:55:37 hm, looks interesting http://realm.io/news/realm-for-android/ Sep 30 16:58:18 neat. Sep 30 16:58:19 ok sarbs, i fixed it Sep 30 16:58:34 2 places where the user can exit.. exit button and back Sep 30 16:58:44 i have a flag called done, boolean Sep 30 16:58:46 my first thought was "sqlite replacement? why?" but appears they get pretty good performance Sep 30 16:58:49 set to false initially.. Sep 30 16:59:10 Is Realm not free for Android? Sep 30 16:59:17 if (!done) wait_task.execute Sep 30 16:59:23 else super.whatever Sep 30 16:59:27 AKK9 is it not? Sep 30 16:59:43 then in onPostExecute… done = true; finish(); Sep 30 16:59:43 sarbs, I don't know. On the pricing page is says Free for iOS. Sep 30 16:59:50 oh weird Sep 30 16:59:50 but doesn't mention Android Sep 30 16:59:59 well the fact that they have a pricing page at all, is a turn-off for me Sep 30 17:00:02 lol sarbs any links? Is the other app going to get the instance of the service or what? Sep 30 17:00:09 sqlite + greendao looks like it does pretty much what this does Sep 30 17:00:47 Afzal http://bit.ly/1vscrmr Sep 30 17:01:24 sarbs I don't know if you're new here or something but I know what to do before asking questions over here Sep 30 17:01:36 I have already googled Sep 30 17:01:38 ... do ya.. cuz.. services are a pretty core concept Sep 30 17:01:54 yeah, I know how to use services Sep 30 17:01:54 perhaps we're just not understanding each other well on what you're actually asking for Sep 30 17:02:06 I need to expose the service to third party apps Sep 30 17:02:34 tricknology sounds pretty close, make sure in your onPause impl you don't ever skip calling super tho (it looks like you might in the !done case) Sep 30 17:02:55 Afzal look up the "exported" attribute Sep 30 17:03:13 and provide the AIDL Sep 30 17:03:18 okay sarbs, thanks for your help. I have already looked at that stuff Sep 30 17:03:34 sarbs, I'm making my first app and I can already feel how SQLite is boring and painful to use. Should I jump straigt onto something like greenDAO or is it worth me doing it the SQLite way for experience? Sep 30 17:03:43 I suppose that question is for anyone really. Sep 30 17:04:08 well, i'm genuinely not trying to be a dick with this response, but if that's the case then you either need to re-read the docs more carefully, or rephrase your question to clarify perhaps what type of service and what type of third-party app Sep 30 17:04:37 because Services, Activities and Broadcast Receivers as defined in the manifest are the android-y ways of inter-app communication Sep 30 17:05:02 sarbs, actually I think you're right about exported service. Guess I didn't see how to use it Sep 30 17:05:06 I apologize Sep 30 17:05:15 no sweat :) Sep 30 17:05:38 AKK9 given a choice i wouldn't ever use direct sql Sep 30 17:05:48 GreenDAO has excellent performance Sep 30 17:06:16 raw sql can get better performance for specialized queries, but GreenDAO is definitely my weapon of choice Sep 30 17:06:49 *that said*.. it is VERY well worth your time to learn how it all works underneath Sep 30 17:07:30 once you know what it's doing under the covers, *then* use the wrapper frameworks. otherwise you'll likely use them in very inefficient patterns. Sep 30 17:08:32 Yeah my app is bascially somethign to save notes in (yes it is an original and unique snowflake) so the database will be tiny. And greenDAO looks so nice to use! Sep 30 17:08:39 the terms for realm on Android are the same for iOS Sep 30 17:08:46 Yeah I've implemented SQLite it to the point where I am using different queries to get data from the database and also storing new data/amending existing data. Sep 30 17:08:47 i guess they have to update the page Sep 30 17:09:01 So I think that it enough to know generally what is going on under the hood. Sep 30 17:10:15 AKK9 probably. as long as you're comfortable with designing/using a relational db then you're probably experienced enough to use greenDAO efficiently Sep 30 17:10:52 the best thing about these ORMs (or at least those which have this feature) is migrations Sep 30 17:11:10 and, to your earlier question and g00s's comments, it looks like Realm makes money off enterprise-level support and by creating integrations, seems that Realm itself is apache license Sep 30 17:11:13 which is quite cool Sep 30 17:12:21 a while back there was db4o from versant, but i'm not sure what happened to them Sep 30 17:13:38 Yeah maybe I need to do some reading about relational databases. I get the concept of them and used them but not really designed them. Maybe I need to do some reading. Sep 30 17:14:08 "If you have a backgroud thread adding data to a Realm, your UI or other threads can get notified of changes in a realm by adding a listener" thats neat Sep 30 17:15:11 now i have to decide whether to put my physical address up :( Sep 30 17:15:15 today is the day Sep 30 17:15:57 g00s, do you need to do that even for free apps? Sep 30 17:16:04 no Sep 30 17:16:40 g00s: put up a PO box? Sep 30 17:16:59 PO boxes are expensive Sep 30 17:17:01 p_l yeah i will, now i need a PO box Sep 30 17:17:17 I don't think they allow PO box though Sep 30 17:17:31 I'm sure I read that somewhere, not sure where. Sep 30 17:18:07 each time i wanted to get the cheaptest size PO box there was a waiting period because others wanted those over the more expensive obes Sep 30 17:18:11 *ones Sep 30 17:18:34 AKK9: if it's based on EU law, then what it expects is "company official address". There are companies renting that here, no idea about states Sep 30 17:19:18 Ah okay Sep 30 17:19:41 in most european countries you need to run a business anyway to sell apps (or taxman gets interested), and you can register a hired place as your business address Sep 30 17:20:41 Yeah someone mentioned this also, I was reading a discussion thread or something Sep 30 17:20:50 http://www.regus.com/products/virtual-offices/business-address.aspx <--- example in USA Sep 30 17:22:26 I'm in the UK, would I have to become a trader to sell an app? Sep 30 17:22:32 AKK9: yes Sep 30 17:22:41 LLC might be advisable, though Sep 30 17:22:51 LTD, rather Sep 30 17:22:56 iOS might be advisable too Sep 30 17:22:58 ... or whatever it was Sep 30 17:23:01 and that means I gotta do my own tax aswell right? Sep 30 17:23:09 Can't we just write a university address? Sep 30 17:23:09 AKK9: or hire someone to do it for you Sep 30 17:23:19 Or a previous address? Sep 30 17:23:38 Afzal: university might take offense with you Sep 30 17:23:55 p_l doubt that, university gets huge amounts of mail daily Sep 30 17:24:24 come to Africa Land of Do the Fuck what You Want Sep 30 17:24:25 and I'm sure some of my mail still goes to my university mail address anyway ;) Sep 30 17:24:25 Afzal: doesn't mean they won't act Sep 30 17:24:34 especially with business Sep 30 17:24:38 So I can't really stick an app on the store to get the odd 60p sale every now and then? Sep 30 17:24:45 I have to go all in, or not do it Sep 30 17:24:49 p_l oh I meant like a university residence addr Sep 30 17:25:08 AKK9: well, sole trader + doing your own tax should work Sep 30 17:25:13 just remember to do the tax Sep 30 17:25:25 Afzal: check university rules on that Sep 30 17:25:32 you've always had to do taxes on app sales Sep 30 17:25:38 that's not changing Sep 30 17:25:38 p_l hmm, oh well, it's just a thought. Sep 30 17:25:42 Yeah I suppose that would be fine Sep 30 17:26:00 sarbs, yeah it's not changing I was just asking about how it all works Sep 30 17:26:01 tax man wants his cut of your hard work, that's forever and always Sep 30 17:26:06 I'm curious though, what address will be on the receipt now. The wallet address or the google play address Sep 30 17:26:17 Afzal: probably the latter Sep 30 17:26:35 that's good since it was the former before this Sep 30 17:26:39 ah, gotcha. it's not really that complicated; and the end of the year Google sends you some paperwork reporting how much you made, and you fill out a couple extra boxes on your tax sheets Sep 30 17:26:39 job done Sep 30 17:27:13 s/and the/at the/ Sep 30 17:27:37 ah okay Sep 30 17:29:30 maybe ill be able to get tax relief on some new gadgets :) Sep 30 17:29:43 test devices Sep 30 17:30:01 they should put the address behind a captcha Sep 30 17:30:01 AKK9 incorporate before you purchase them and absolutely, yeah Sep 30 17:30:12 i don't know exactly how it works in the UK but in the US that's exactly the smart thing to do Sep 30 17:31:14 yeah i might look into it in a couple of years when i can actually make an app haha Sep 30 17:31:32 or at least when i have a decent idea Sep 30 17:31:58 g00s: Im already thinking about that Sep 30 17:31:58 also, there is no way to make a paid app free right? so you have to go through BS to delist your own app, probably change the package, re-upload or whatever Sep 30 17:32:16 g00s correct. once paid, always paid Sep 30 17:32:20 putting a link to a capcha page there. Sep 30 17:32:23 can lower the price to the minimum but can't make it free Sep 30 17:32:32 i have no respect for google any more and hope to avoid using them at any future corssroads Sep 30 17:32:51 g00s: that is pretty lame that they still don't allow a free promotion Sep 30 17:33:18 there is a lot of basic shit Play still doesn't have, like promo codes Sep 30 17:33:23 Have they even added any new features since "replying to reviews" for devs? Sep 30 17:33:23 that dept is run by idiots too Sep 30 17:33:26 I am not very happy with a particular Google employee today Sep 30 17:33:42 on the play team Sep 30 17:34:00 birbeck, what did they do? Sep 30 17:34:16 he hasn't responded in 12 days, didn't return voicemail and was m.i.a at our bi-weekly conference Sep 30 17:34:33 even after escalating, no response in 1 week Sep 30 17:34:52 today he finally emails and says, if you are stuck on a implementation detail for 12 days, just call Sep 30 17:35:02 i want to go to mountain view and slap him Sep 30 17:35:38 13 days for him to flip a switch, avoiding calls and emails, and then says just call Sep 30 17:36:26 maybe he went on vacay or somethin? Sep 30 17:36:45 no, his vacation is in 2 weeks, i thought maybe he got sick Sep 30 17:36:59 lol, so he's definitely not gonna reply in 2 weeks Sep 30 17:37:05 but there was no explanation, just "it should be resolved now, next time just call" Sep 30 17:37:27 start calling at 2:30am Sep 30 17:37:28 well, I will be on vacation at the same time, so I won't be emailing or calling him Sep 30 17:37:29 lulz Sep 30 17:37:53 oh lol, whoever has to deal with this during your vacation will have fun Sep 30 17:38:23 it will be on hold while we are both gone Sep 30 17:45:21 Hi all. Any suggestions how I can make my listview item bg look like Cards? http://www.google.com/design/spec/components/cards.html Sep 30 17:45:33 developing for < Android L Sep 30 17:45:49 Android L has nothing to do with that Sep 30 17:46:05 unless you plan to animate z height, that would be easier with L Sep 30 17:46:27 FrancescoV what exactly do you have a problem with ? Sep 30 17:47:12 StingRay_ no animation needed. I need the rounden bg with little shadow Sep 30 17:47:18 in android L there is http://developer.android.com/preview/material/ui-widgets.html#cardview Sep 30 17:47:46 but haven't looked at it yet. I know I can create a background xml as drawable but don't know how to create that shadow effect Sep 30 17:47:53 https://plus.google.com/110558071969009568835/posts/fQh9pLw7Hj7 Sep 30 17:48:45 g00s scary Sep 30 17:48:47 :) Sep 30 17:49:04 oreilly has all iOS 8 books off 50% today :) Sep 30 17:49:05 FrancescoV shadow can be custom drawable or bitmap Sep 30 17:49:24 g00s is ios no yearly dev fee though ? Sep 30 17:49:50 yes of course, but you are silly to assume Android dev is cheaper overall Sep 30 17:49:59 once you obtain all the devices necessary for testing ;) Sep 30 17:50:03 did you just call me silly :) Sep 30 17:50:12 D: Sep 30 17:50:43 so when I have $2000 to start with I should be fine :) Sep 30 17:51:24 hello everyone Sep 30 17:51:30 eh, Simulator is fine for 99% of testing Sep 30 17:51:34 just like Emulator is Sep 30 17:52:05 well I have lots of iDevices floating around Sep 30 17:52:14 but yeah suppose it would be Sep 30 17:53:36 how can i get notifications to drop-down and show text? i only hear the sound and see icon it in the top bar (on tablet at least) Sep 30 17:55:01 mylord you can't, android notifications don't drop the status bar on their own Sep 30 17:55:28 ok, how does FB do iit? when i get a notifiation there, i see the message scroll down Sep 30 17:55:38 i have two buttons which allow the user to enter date and time in my app. So i used normal date and time picker dialog as suggested at http://developer.android.com/guide/topics/ui/controls/pickers.html Sep 30 17:56:37 but i want to use the radial selector for slecting the time Sep 30 17:56:47 mylord oh, do you mean kind of the "roll over inside status bar" effect, where it shows multiple lines one after another? Sep 30 17:57:05 at least that, ya Sep 30 17:57:10 if fb is doing something other than that, i haven't seen it Sep 30 17:57:26 and dialog used by the google calendar app that for selecting date Sep 30 17:57:29 that should be just setting the text of the notification to something that's longer than fits Sep 30 17:57:32 how can i do that? Sep 30 17:57:32 right now i get nothing.. all i see is the icon appears at the top Sep 30 17:57:50 sabs: that’s longer that fits? Sep 30 17:57:58 I’m sending “message” I think Sep 30 17:58:12 is there a special tag for that which I should send?? Sep 30 17:58:40 try sending "message that is really long and probably won't fit in a normal status bar but let's go even longer just to make sure" Sep 30 17:59:08 now i’m sending this: https://gist.github.com/adaptivedev/b94aa74b796f75790820 Sep 30 17:59:35 sarbs: but shouldn’t i at least see some message in the status bar now? Sep 30 18:00:29 wait what.. is that Sep 30 18:00:35 : D wtf Sep 30 18:00:38 i was assuming you were using NotificationBuilder Sep 30 18:01:07 GCM is not like APNS, it does not show a notification for you Sep 30 18:01:26 your app is the only thing that receives the GCM message, it's then up to your app to post a notification to the status bar Sep 30 18:01:41 if it doesn't do that, nothing happens. it's not like APNS where if your app's not running it posts the msg for you Sep 30 18:01:46 Like a Ceramic Bowl!! Sep 30 18:01:51 oops. mischan Sep 30 18:02:14 * JesusFreke ponders what that conversation could have been about Sep 30 18:03:51 can anybody help me? Sep 30 18:04:18 harryparry: don't ask for help, ask your actual question :) Sep 30 18:04:27 if someone can help, they will Sep 30 18:05:13 unless it's just a more vague cry for help in general Sep 30 18:05:20 which, in that case, no, likely you will not find help here Sep 30 18:06:35 how can i use datepicker dialog as used in the calendar app on android and timepicker dialog as used in the alarm app on android? Sep 30 18:07:44 as shown in this image http://i.stack.imgur.com/6RC1a.jpg Sep 30 18:13:25 wow, the twitter app has a dozen devs Sep 30 18:14:13 In the past nine months, the Twitter for Android team has grown rapidly from a staff of twelve to dozens, with 12-15 independent product groups including the frameworks team, the UI team, and the performance and stability team. - See more at: http://sdtimes.com/scaling-android-development-evolution-twitter-app/#sthash.wijt3IyW.dpuf Sep 30 18:15:09 harryparry you'll likely have to build those yourself. Sep 30 18:15:24 i could be wrong, but i very much doubt those are system dialogs. Sep 30 18:15:27 g00s: that is an insane amount of devs for a single app Sep 30 18:15:42 sarbs harryparry there is an existing lib for that Sep 30 18:15:56 * sarbs stands corrected Sep 30 18:16:10 unless they have separate app teams for phone, tablet, tv, etc Sep 30 18:16:21 harryparry "betterpickers" Sep 30 18:16:36 https://github.com/derekbrameyer/android-betterpickers Sep 30 18:17:04 pay no attention to the image there, that is 1 mode of many Sep 30 18:17:18 it does have radial ones like the image you posted harryparry Sep 30 18:17:59 g00s birbeck i'm guessing that "dozens" translates to 20-30 instead of the "dozen dozen" my head immediately jumped to Sep 30 18:18:03 @StingRay_ what about the datepicker fragment? Sep 30 18:18:29 even a team of 40-50 wouldn't be unimaginable for something like twitter Sep 30 18:18:43 harryparry huh ? Sep 30 18:19:23 At its core though, twitter should be a simple app Sep 30 18:19:29 stingray_ i mean what about the datepicker dialog? Sep 30 18:19:40 But when Twitter app first came out, I don't think we even had ABS, did we Sep 30 18:19:41 ? Sep 30 18:19:43 does the library have that too? Sep 30 18:19:47 no Sep 30 18:19:52 harryparry what ? Sep 30 18:19:53 there are several twitter clones made by a single engineer that work better than the official app Sep 30 18:20:06 harryparry not sure I am following you, please look at the lib and read Sep 30 18:20:11 it is what you want Sep 30 18:20:12 lol mention anything by jake and he always pops up Sep 30 18:20:47 stingray_ thanks for help. I will check it now. Sep 30 18:26:31 birbeck, you could say the same for facebook too Sep 30 18:26:44 But I think the official fb app is just developed by half a human Sep 30 18:26:53 and half crazy person Sep 30 18:26:59 crazy fish maybe Sep 30 18:27:17 I remember FB begging for Android devs and people to test the app internally because their employees only used iPhones Sep 30 18:27:26 I think the situation has improved now though Sep 30 18:28:54 It has happened more than once that a company will assign a sole engineer to the task of Android dev just because they are the only or one of a few engineers at the company with an Android phone. Regardless of whether that person has had any experience or interest in mobile application design and development. Sep 30 18:29:17 You have Android? You know Java? OK, write the app! Sep 30 18:30:10 i had the opposite experience (although i can totally imagine your scenario playing out too) Sep 30 18:30:40 "you've spent the last five years doing c# and php? here's a mac, you're writing an iphone app." Sep 30 18:30:53 heh, I had that happen to me as well :) Sep 30 18:30:58 "but... i don't even know how to use a mac.. i haven't used one of these in 15 years..." Sep 30 18:31:05 "well ya better learn, your job depends on it." Sep 30 18:31:24 I had to buy a Mac Mini off Craigslist with my own cash. Sep 30 18:31:37 I had to buy my own Obj-C books Sep 30 18:31:52 *thats* bogus.. they'll hire you but won't provide supplies? Sep 30 18:32:59 Well, I wasn't a mobile developer as my job title. I was a web developer. But since I had recently started dabbling in Android apps, iOS was forced on me to keep my job after they already sold a companion app to go with their website. Sep 30 18:33:08 it could be worse like, write this app for android and make sure it works on all the phones Sep 30 18:33:41 if you are doing freelancing , thats when its time to use a testing service Sep 30 18:33:47 hmm, well when I started the only phone was the G1 :-) Sep 30 18:37:21 http://www.trustedreviews.com/news/windows-9-release-date-beta-preview-start-menu-screenshots Sep 30 18:37:25 they skipped 9? Sep 30 18:48:12 osx will be at version 11 soon. the have to catch up :D Sep 30 18:50:28 skipped 9? Sep 30 18:50:45 sarbs, just quit... Sep 30 18:50:47 easy enough answer Sep 30 18:52:54 pfn yeah but at that point i'd been doing industrial construction for 6mo after burning out + quitting the aforementioned php gig.. i was ready to get back into software Sep 30 18:53:14 indeed Sep 30 18:53:23 or, i should say, i was ready to get back to making software money Sep 30 18:53:25 if you like ios, nothing wrong with that Sep 30 18:53:33 industrial construction is kickass in every other way Sep 30 18:53:33 * pfn has no interest Sep 30 18:53:37 well, robovm is interesting Sep 30 18:53:44 I might want to try working on ios just because of robovm Sep 30 18:53:53 but the osx requirement turns me off Sep 30 18:55:17 i've actually never understood stuff like robovm, mono, etc Sep 30 18:55:47 each platform's proponent has invested an *enormous* amount of time and resources into developing polished and featured languages, frameworks and IDEs for their platform Sep 30 18:56:17 while it's neat to create shell layers that allow you to use other tools/languages on those platforms, to me it's just More Bugs for Same Functionality Sep 30 18:56:53 the bar for iOS apps is very high, whatever tech you use - it better look beautiful Sep 30 18:56:57 learning ObjC and Cocoa well enough to start answering questions in #iphonedev took me all of about 2wk Sep 30 18:57:11 yeah, but that's got zilch to do with the code, to be honest Sep 30 18:57:20 that's 100% whatever graphic designer you're using Sep 30 18:57:48 (thank god it wasn't me) Sep 30 18:58:02 i mean using native ui tookit, etc Sep 30 18:58:44 oh, yeah, that's a must not just for look reasons but for performance reasons.. i don't think any of those things i listed reinvent the UI do they? Sep 30 19:00:00 not sure how robovm would do it Sep 30 19:00:29 sarbs: how about making the status scroll down clickable to open the app? what can i use for that? Sep 30 19:00:47 is it ok to run a sensor on the main thread? Sep 30 19:00:54 even at high rates? Sep 30 19:00:57 120Hz Sep 30 19:01:21 troned still on that eh Sep 30 19:01:42 g00s i'm imagining its API is just a wrapper to the Cocoa frameworks Sep 30 19:02:28 g00s, well I understand the example, if I dont use a Handler and run on manin thread I can get rid of GC because of the object pool, however there will be just as much locking under the hood in the ArrayBlockingQueue Sep 30 19:02:52 mylord it's possible you're talking about UX paradigms i haven't seen, but barring that i'm not very sure you really understand some of the core concepts of Notifications and the Status Bar Sep 30 19:03:40 troned i'm not sure how running somthing on a different thread will affect GC Sep 30 19:03:44 sarbs: “What’s App” message notifications are clickable on android phones? to open what’s app? Sep 30 19:03:55 mylord yeah, that's a core feature of Notifications Sep 30 19:03:56 but, i get you’re saying its not the push that’s doing that Sep 30 19:04:15 https://developer.android.com/reference/android/app/Notification.html Sep 30 19:04:32 https://developer.android.com/google/gcm/notifications.html Sep 30 19:05:33 sarbs: it wont it self but then i dont need a handler Sep 30 19:05:57 ah, that you post runnables to? Sep 30 19:05:58 sarbs: so, does the gcm notificaiton allow me to display text in some message box, that’s clickable? or do i need to android.app.Notificaion for that? It’s a different class? Sep 30 19:06:15 mylord those links i pasted should answer your q's Sep 30 20:01:42 andy is the same color as Didymo Sep 30 20:02:07 maybe ... thats what he's made of Sep 30 20:16:39 seems like win 10 fixes the things people were upset about Sep 30 20:16:54 "Windows 10 will also be the next major release for Windows Phone as Microsoft moves to a single OS for PCs, phones and tablets." Sep 30 20:17:06 thats just silly Sep 30 20:17:07 i still think this is pretty killer; same strategy as ubuntu touch Sep 30 20:17:27 g00s: most people tend to be truly upset about their crappy app no longer working... Sep 30 20:17:27 StingRay_ you aren't even a dev :P Sep 30 20:17:35 otoh, I don't do Windows much these days Sep 30 20:17:42 no but from a design pov Sep 30 20:17:57 it's very silly really if you think about it Sep 30 20:18:04 no its sounds great to me Sep 30 20:18:24 not like we're going to be using photoshop smooshed on a 4" screen Sep 30 20:18:56 but sharing all the core libraries, kernel, runtime across all versions of windows is great Sep 30 20:19:17 for small things yes Sep 30 20:19:37 StingRay_ nobody ever said you had to make one app run on all form factors Sep 30 20:19:46 but I wager you that the majority use of windows not small things Sep 30 20:19:59 you can share huge pieces of runtime and code between apps that run on all form factors Sep 30 20:20:09 not seeing the advantage of that ... i don't know what to say Sep 30 20:21:09 from an economics standpoint, developers are realizing that the desktop is a good way to go - to extend beyond strictly mobile Sep 30 20:21:19 whether its 2 apps tied by cloud or whatever Sep 30 20:23:26 http://www.visionmobile.com/product/developer-economics-q3-2014/ Sep 30 20:23:40 "Windows Phone continues to gain developer mindshare steadily at 28%." probably because its not a shitpile Sep 30 20:23:49 just needs more users Sep 30 20:24:32 * ravilov is just waiting for windows to go open source :p Sep 30 20:25:27 Windows Phone can go DIAF. Sep 30 20:25:32 * jfpoole is not bitter at all. Sep 30 20:25:59 when setting up a layout animator for a ViewStub. Does the LayoutTransition need to be applied to the inflated view, or the viewstub itself? Sep 30 20:26:38 jfpoole did you have a bad experience ? Sep 30 20:29:05 Yeah, I kinda wanna hear your story jfpoole Sep 30 20:29:27 jfpoole even if you don't like the platform, it doesn't do anyone good that there is an Android / iOS duopoly Sep 30 20:29:32 g00s: We’ve got a large existing code base that works on Android, Windows, etc. Porting to Windows Phone was a huge PITA given how much of the Win32 API that was removed. Sep 30 20:29:42 just gives apple and google more latitude to fuck everyone over Sep 30 20:30:54 yeah like porting that to android was easier than porting to wp ? ugh Sep 30 20:31:06 We’d like to be on Windows Phone but it’s a surprisingly large engineering effort relative to other platforms. Sep 30 20:31:35 g00s: It took us less than a week to get things working on Android thanks to the NDK. Sep 30 20:32:18 There was certainly a lot of work after that first week but we had a prototype up and running quickly. Sep 30 20:33:11 how do i overlap one image over the other by 8 pixels on the bottom/top border? Sep 30 20:33:41 g00s, come think of it.. tons of OSs... what for Sep 30 20:34:02 tricknology use a frameLayout Sep 30 20:34:17 tricknology framelayout Sep 30 20:34:18 what if one of those image is animated? Sep 30 20:34:25 say, the top image Sep 30 20:34:44 of a hat goign onto a guy’s head, let’s say Sep 30 20:35:04 must be a fedora app Sep 30 20:35:08 depends how big is the hat. Sep 30 20:35:32 I tried to make one animation-list with a big png.. but I got OOM.. so I’m cutting down to just the part that’s animated.. her “hat" Sep 30 20:36:01 It’s ehough to fit 100 duck dized horses.. or 1 horse-sized duck Sep 30 20:36:28 hats? horses? ducks? Sep 30 20:36:34 it’s a party Sep 30 20:36:35 * ravilov checks if he's in the right channel Sep 30 20:36:52 horse-sized hats for ducks? Sep 30 20:37:02 lol Sep 30 20:37:02 ravilov, you are :) lol Sep 30 20:40:20 g00s still wanna hear ur replu Sep 30 20:40:21 reply* Sep 30 20:45:11 ravilov: forgot to mention windows phone Sep 30 20:46:14 TonySoprano9099 sorry i didn't understand your question Sep 30 20:48:00 Are there good resources for the transition from "a guy who wrote an app" to "developer"? The new public address listing policy has me somewhat annoyed as I'm finally getting close to wanting to market my app, but it's also all the other things that I don't know I don't know (tax issues, do I need a domain/website? Do I need an LLC/How do I avoid being sued in the worst case?) Sep 30 20:49:23 yeah, seems like being indie now ... gotta step up your game a little bit. i'm not sure about becoming an LLC either Sep 30 20:49:25 http://commonsware.com/blog/2014/09/29/predictions-play-store-fallout.html Sep 30 20:49:46 incorporate in delaware? heh Sep 30 20:50:29 "Formation of developer cooperatives" this would be interesting Sep 30 20:51:16 Hi, when changing orientation of my app, is onRestoreInstanceState the thing that gets called? Sep 30 20:51:19 when would I have to use GC? Sep 30 20:51:46 garbage collection? Sep 30 20:51:48 System.gc() Sep 30 20:51:51 yes Sep 30 20:51:52 You don't Sep 30 20:52:02 Nindustries onSaveInstanceState() Sep 30 20:52:03 no odd instances of when I would? Sep 30 20:52:17 sarbs: but to show a popup on gcm, when app is in background, i need some special permissions, like system.draw? Sep 30 20:52:19 I know java is “special” Sep 30 20:52:19 hmm Sep 30 20:53:03 “he reason everyone always says to avoid System.gc() is that it is a pretty good indicator of fundamentally broken code. Any code that depends on it for correctness is certainly broken; any that rely on it for performance are most likely broken." Sep 30 20:53:06 got it… Sep 30 20:53:19 tricknology, only when you're trying to fix a problem by introducing more problems :p Sep 30 20:53:27 mylord no Sep 30 20:53:45 For some reason, my layout gets reset to the main one. Even when I check it using onRestoreInstanceState. Suggestions? http://pastie.org/9608517 Sep 30 20:54:18 any reason to use android:largeHeap="true”? Sep 30 20:54:26 or reasons why not Sep 30 20:55:27 are you just now learning about random bits of android and are therefore full of random questions? Sep 30 20:55:34 if so, go google :p Sep 30 20:56:41 hahahahahahahahahaaha Sep 30 20:56:48 sometimes Sep 30 20:57:13 for the most part I do Google, but you guys help with theoretical questions Sep 30 20:57:48 sometimes the google resylts aren’t exactly what I’m lookign for Sep 30 20:59:52 on the + side, I cuz my heap usage by 20% by chopping up my animation into static and animated parts Sep 30 21:00:14 on the - side, i’m not sure if that’s the best practice for solving such a problem Sep 30 21:00:22 maybe i should use a sprite. Sep 30 21:00:22 I have a question about building an app that depends on multiple native libraries each of which is dependent on libgnustl_shared.so Sep 30 21:00:30 anyone uses markdown ? Sep 30 21:13:22 StingRay_ how can I make a clickable message from gcm when app is in background? on my tablet, I see FB message just scroll in the status bar, but its not clickable. Sep 30 21:13:57 gcm is a transport not a ui component Sep 30 21:14:11 this http://android-developers.blogspot.com/2013/06/google-play-developer-8-step-checkup.html says "Next, many developers first set up their Google Play account with their personal gmail account, but it’s actually a good idea to transfer your apps to a separate account." <-- what advantages does this have ? Sep 30 21:14:21 mylord but you have notifications, dialogs and activities to play with for that Sep 30 21:15:05 StingRay_: but if app isn’t in foreground, is it allowed to just give dialog? I thought no. Sep 30 21:16:15 what permission is needed for that? — for shoing a clickable dialog or simple UI component for message, if app is in background? Sep 30 21:17:26 and do I need a service of some sort? and.. on this project i’m using cordova, so trying to find terms for the concept that might help me find ready-made plugins for this Sep 30 21:18:11 g00s - so you don’t have people banging on your door or flooding your personal inbox Sep 30 21:18:39 but before today, how would anyone bang on your door - this recommendation is from a while ago Sep 30 21:19:15 inbox full of hate mail i guess lol Sep 30 21:19:33 g00d, about the address thing.. that’s only if you accept GW payments right? Sep 30 21:19:42 piad / iap Sep 30 21:19:54 ok sweet Sep 30 21:20:09 I have an app that uses a 3rd party gateway Sep 30 21:22:32 g00s: there are many reasons for having a publishing account that is not tied to your personal gmail account Sep 30 21:22:55 birbeck could you mention a few? i'm totally ignorant about this Sep 30 21:22:56 g00s: primary reason is if Google shuts down your publisher account, cause then you would lose your personal account too Sep 30 21:23:04 sure, makes sense Sep 30 21:23:13 it has happened numerous times Sep 30 21:24:31 I have had apps removed twice for copyright infringement, once only in the US and I didn't give a shit, the other time I emailed Google and said they were retarded, they checked my case and reinstated my app. Either time, my personal gmail account could have been at risk Sep 30 21:26:58 i've got 10 minutes to finish this unit test, later Sep 30 21:27:25 birbeck thx, later Sep 30 21:28:29 hi guys, i'm looking for resources regarding to mobile app pentesting Sep 30 21:34:11 hmm, from this screenshot only city is showing http://phandroid.com/2014/09/30/google-play-is-now-showing-android-developers-addresses-and-pricing-for-in-app-purchases/ Sep 30 21:46:17 why do android phones have so much ram ? Sep 30 21:46:42 they do ? Sep 30 21:46:47 has anyone here written an app dependent on multiple native libraries depending on stl? Sep 30 21:46:51 yeah compaired to iphone lol Sep 30 21:47:01 and compaired to iphone ram usage Sep 30 21:47:09 good for iphone Sep 30 21:47:42 yeah guess so, i dont know much about it Sep 30 21:47:46 snielsen iOS is typically more efficient with resources, not just ram but battery as well because apple tightly tunes the entire stack Sep 30 21:48:25 coz they don't let you do anything :P Sep 30 21:48:27 yeah but that much more ? Sep 30 21:48:44 bankai_cn:lmafo i agree Sep 30 21:48:57 for example, the iphone 6 has two gyroscopes one from InvenSense and another from Bosch; this was an optimization Sep 30 21:49:08 for power usage Sep 30 21:49:22 oh i never knew that Sep 30 21:51:05 i thought maybe android specs were higher because they anticipate more deep copies for multithreading (but i ahve no experience with that, so i ask you guy’s :P ) Sep 30 21:51:29 if the OS doesn't require that much ram or power, they can put less ram and lower capacity batteries in there - saving costs, and in the case of battery making the phone thinner, etc Sep 30 21:51:50 yeah and less ram means less power usage i guess Sep 30 21:52:04 i just wondered who really needs 3 gb and why, ever Sep 30 21:52:19 it wasn't until android 4.4 google got more serious about tuning things. thats why Gingerbread stuck around so long Sep 30 21:53:51 ah Sep 30 21:54:56 Didn't they technically start with 4.1 with the GUI prioritization? Sep 30 21:55:15 project butter was around there, yeah Sep 30 21:55:44 they should have done ART and L animation threading stuff back then Sep 30 21:56:30 and --- chrome is a hog on android too, so lots of memory just for that Sep 30 21:57:52 wierd, it’s not bad on ios Sep 30 21:58:22 on ioS, think chrome is just using the native UIwebview or whatever Sep 30 21:58:33 oh Sep 30 21:59:57 so all that ram is more of an optimization issue rather than a multithreading (multicore) issue right ? Sep 30 22:03:22 probably has a little to do with android complexity and "do whatever you want" mentality Sep 30 22:04:57 yeah but i didnt see higher ram usage on jailbroken iphone other than 2 cases that was probably bug Sep 30 22:08:52 What's an exemplary open source android app that I can take a look at? The more complicated the better, rather than trivial apps that do very little. Sep 30 22:09:19 vozz: have a look at the AOSP apps Sep 30 22:10:21 which ones are still up to date things? The newer versions of android seem to have most of them phased out in favour of google's own proprietary apps Sep 30 22:12:49 also worth checking out are the apps on https://f-droid.org/ Sep 30 22:14:33 Is it not possible to poll the accelerometer rather than accelerometer giving you results? Sep 30 22:15:03 don't think so Sep 30 22:17:19 snielsen tuning the memory hierarchy is a complex thing. typically the more apps you run, the more ram but ... for multicore architecture, there are many other considerations like the speed and types of L1, L2, and possibly L3 caches Sep 30 22:17:42 I have icon.png in res/drawable but it’s not in android.R.drawable. Any ideas? Sep 30 22:17:50 typically each core gets an L1 cache, and there could be shared L2/L3 caches on chip Sep 30 22:18:30 snielsen: GC works better if it has room Sep 30 22:18:53 also, Android is crazily multitasked at times Sep 30 22:19:08 yeah i get GC, but that’s maybe 200mb at it’s worst right ? Sep 30 22:19:12 hey dudes, are there built in animators for view height now or do you still need to make an interpolator that changes the layout params? Sep 30 22:19:40 snielsen: more like "it's good to have twice the amount of space than you're actually using" Sep 30 22:20:12 plsu various transient buffers, assets, drawing surfaces, etc. etc. etc. Sep 30 22:20:30 mylord, because android.R isnt your resources Sep 30 22:20:34 g00s: so because of multicore strategy it needs more ram to offset smaller L1-3 cache/core ? Sep 30 22:20:56 whatitis: how can I access my res/drawable/icon.png? Sep 30 22:21:10 oh, damn lol that sounds expensive Sep 30 22:21:16 R.drawable.icon Sep 30 22:22:02 R.drawable doesn’t have it either Sep 30 22:22:44 mylord you know you should go though the tutorials before attempting to make an app right ? Sep 30 22:22:53 Then you broke it :) clean your project if you just added the image Sep 30 22:27:55 there's been some good research on learning in the context of programming Sep 30 22:28:09 from what i rmemeber, students that studies good examples first did best Sep 30 22:28:35 lots of studying of the right way to do things Sep 30 22:30:54 "did best" g00s now thats just a hard thing to work out Sep 30 22:31:32 I can say from experience the same is not true in 3d graphics/vfx … or rather in the long term it isn't Sep 30 22:31:49 StingRay_ i said "did best" but they tested each group. the research was done to inform CS corriculum Sep 30 22:32:07 at universities Sep 30 22:32:22 yeah, just most education is imho deeply flawed Sep 30 22:32:32 well, in my area anyways Sep 30 22:38:08 how so ? Sep 30 22:46:50 goos is super smart though Sep 30 22:57:32 ok, so i'm getting back into development with android sdk and I've got a simple app using Google Map in a fragment. I've added a marker to the map using addMarker but I would like to count how many markers are on the map and I'm having difficulty finding out how to do this. Anybody wanna point me in the right direction? Sep 30 23:12:59 Hi, is there any linux user who uses android studio? I think font rendering is terrible. Sep 30 23:19:46 Hi all. I'm having some googling problems / complete brainfart. How would I round numbers to whole's and halfs? Sep 30 23:21:38 ThomQ: probably multiply it by two, round it to a whole number, then divide by two Sep 30 23:21:46 i hate you Sep 30 23:21:48 :D Sep 30 23:21:50 :D Sep 30 23:21:51 thanks!! <3 Sep 30 23:21:59 see, so it was a brainfart Sep 30 23:22:04 i hate you too. was just about to hit enter on my message. Sep 30 23:22:10 hahaha Sep 30 23:22:50 Just to make this a little bit less emberrasing: I've been coding for 12 hours straight, and its 01:20 at night where I'm at Sep 30 23:22:53 just to be clear :P Sep 30 23:23:26 question: with the android L developer preview, can I dev apps with it and try them out if my phone isnt running android L? Like can I just target the new api version? Sep 30 23:24:01 I wouldn't think so. Then again, I wouldnt know how to round to halves and wholes, so don't listen to me Sep 30 23:24:44 ThomQ: I was in the same situation last night, had a simple null pointer exception that i couldnt solve for like half an hour, even though the compiler error pointed me right to the very line. it was a function taking an argument that was defined on the line afterwards ha. Sep 30 23:26:10 all the api version stuff confuses me... if there's all this fancy new animation stuff, does that mean i cant use it in apps that i want people on older versions of android to be able to use? Do I have to wait for it to be ported to a support library or something? Sep 30 23:36:13 is it a bad idea to have a for-ever running Async task ? with a while(true){ } loop inside it? Sep 30 23:36:31 vozz: more or less, or test for android version and react appropriately Sep 30 23:36:42 sylon: yes Sep 30 23:37:15 what is the best way to have a every 2 second polling of the local sql database and run a background function (Only when app is running) Sep 30 23:37:42 i was under the impression that alarm manager stays on forever and i didn't want the complexitiy of a service Sep 30 23:38:05 you can setup a content manager and a content change listener, perhaps this would be more appropriate Sep 30 23:38:43 bankai_cn: yes but i also want it to keep trying when the app is on, not just on content change, in case user was offline Sep 30 23:38:47 as it makes a remote api call Sep 30 23:41:19 i don't really understand what you're trying to achieve, but you should probably just implement a service, it's not overly complex Sep 30 23:42:34 sylon: if it's every 2 seconds and only when the app is shown, I think Handler is better Sep 30 23:42:56 karex: thanks i was just reading the exact same thing http://stackoverflow.com/questions/20785332/execute-method-every-second Sep 30 23:44:15 sylon: but I want to warn you not to drain user's battery and data :) Sep 30 23:46:34 karex: are handlers taxing on battery? even if it does nothing? Sep 30 23:49:02 sylon: I don't know. I meant reduce a polling task except it is needed, you can use such a change listener (if it is from content provider) or push notification (if it is from the server). Sep 30 23:50:14 karex: is there a way to manually kick off the handler? Say if the polling frequency is very low but when i know it needs to run i can kick off manually Sep 30 23:53:19 sylon: Handler is a "handler" for a Looper, Looper loops in a thread. Maybe what you mean is starting and stopping the thread. Sep 30 23:53:32 anybody, correct me if I was wrong Oct 01 00:15:01 i'll put Earth for my physical address Oct 01 00:15:06 \o/ Oct 01 00:18:14 "Kim Jong Un hospitalized with two broken ankles, reportedly from wearing heels and being overweight" Oct 01 00:18:18 you can't make this stuf up Oct 01 00:18:29 they'll have to put him down Oct 01 00:26:48 hey Oct 01 00:27:02 what is everyone's ratio of current installs to total Oct 01 00:27:27 Seems that I'm getting about a 70% current to total install ratio on the first day (these are installs from ads) Oct 01 00:27:44 2.2/2.8 Oct 01 00:27:53 78% Oct 01 00:27:56 although that is an approximation Oct 01 00:28:09 since i can't track installs granularly Oct 01 00:28:12 I see Oct 01 00:28:23 Over how many days/weeks/months is that? Oct 01 00:28:32 since march Oct 01 00:28:41 My friend with the radio app has a really bad ratio at 33% Oct 01 00:29:16 its all about whether or not your app provides value Oct 01 00:29:21 if not, it will get deleted Oct 01 00:29:24 is it an app or a game Oct 01 00:29:34 ? Oct 01 00:29:46 app Oct 01 00:32:07 ok question for y'all - with ripple effects, how can you have a button with a ripple effect that leads to an activity/fragment transition? Oct 01 00:32:25 i don't want to impose a fake delay Oct 01 01:29:46 can I use a ViewPager on a wearable? Oct 01 01:44:57 mattblang_ i don't see why not Oct 01 02:33:05 Hey! I'm looking for a hsl-based color picker for my app, does anyone know one? Oct 01 02:33:51 Most things I can find are either old or ugly (or both) Oct 01 02:35:55 how can I monitor the SSL traffic on an app? Oct 01 02:38:56 my friend sent me a project just in a tar format. But there is no gradle file or anything. and he got it from eclipse. I want to use this code in android studio. how can I import a folder as a project? Oct 01 02:39:07 do you have to use a physical device to pair the wear emulator to? Oct 01 02:40:12 mattblang, I assume this is not for my question Oct 01 02:42:12 bilb_ono haha, no Oct 01 02:52:11 does proImage ring a bell for anyone as a module or package or anything? I am seeing it all over this code I am looking at but I cannot find it on google Oct 01 02:58:10 bilb_ono: you can import a directory that is an eclipse project into android studio directly Oct 01 02:58:14 there are some bugs with it tho... Oct 01 02:58:26 are there a lot of dependencies? **** ENDING LOGGING AT Wed Oct 01 03:00:00 2014