**** BEGIN LOGGING AT Thu Jun 04 02:59:59 2015 Jun 04 03:03:03 those capitalists can't have you running around with a few unspent dollars :) Jun 04 03:03:38 america: predator nation Jun 04 03:05:30 <_genuser_> hey don't hate on america for human nature. Jun 04 03:05:46 <_genuser_> humans are greedy everywhere. given the chance they'll take whatever they can without giving back. Jun 04 03:06:19 <_genuser_> but american also gives rise to people like Gates, or Buffet who contribute billions from their personal coffers to third world countries and to local causes Jun 04 03:07:35 Gates is an interesting story. He got luck, right time right place - but people overlook when billionaires fuck the world over as long as they donate back Jun 04 03:09:04 <_genuser_> I don't Gates can be said to have f'd the world over in any way. if anything, IBM ceo years ago said, "there's demand for maybe 5 computers in the world". Jun 04 03:09:17 <_genuser_> Gates' vision changed that. he may not have coded DOS, etc. etc. Jun 04 03:09:30 <_genuser_> but so many of the people are right place right time stories. Jun 04 03:10:13 <_genuser_> but google, apple all contributed to making it easier to access tech. Jun 04 03:10:24 <_genuser_> my point was America doesn't have monoply on bad people. that's just a human problem. Jun 04 03:11:43 anyone a bit familiar with parse ? Jun 04 03:15:19 g00s: Yes I believe we already discussed that link, I said I was curious to hear that talk Jun 04 03:15:35 america is so cool Jun 04 03:15:46 computers, video games, a large verity of pizzas Jun 04 03:16:05 variety Jun 04 03:16:40 CedricBeust i'm betting it will be expanded version of the last paragraph here http://blog.paralleluniverse.co/2014/08/12/noasync/ Jun 04 03:17:13 CedricBeust since you were curious, i found that a little later Jun 04 03:18:16 Haven't read that one yet, looks interesting. pron is usually a pretty interesting guy Jun 04 03:20:28 CedricBeust Quasar is coming to Android soon, i wonder if its marketing :D Jun 04 03:26:09 is it just me or did I just find it not interesting Jun 04 03:26:54 quasar, that is Jun 04 03:27:36 <_genuser_> all I know about quasars is that captain Janeway occassionally says the word, "quasar". Jun 04 03:29:29 g00s, are you seriously arguing that gates fucked over the world through a dos and Windows monopoly? Jun 04 03:30:22 I have a tremendous amount of respect for Gates Jun 04 03:31:21 <_genuser_> oh, supporters of America, rise!! Jun 04 03:36:32 what's with this Twitter and Fabric ;\ Jun 04 03:37:55 just need to login to Twitter and do basic posting... Jun 04 04:02:39 Anyone in here use AFWall? I'm trying to troubleshoot an open-source DNS-related program and there's some conflict with AFWall I can't figure out Jun 04 04:09:25 how do I make a map "string" : R.drawable ? Jun 04 04:09:36 hashmap Jun 04 04:13:51 uh? Jun 04 04:20:14 Is there a reason that filenames in raw can't have numbers in them? I'm trying to find some information about it but can't find anything Jun 04 04:20:28 or can they and I'm just doing something wrong? Jun 04 04:21:20 context.getResources().openRawResource(R.raw.file) Jun 04 04:21:21 what's my go-to tool to run tests or not run tests? I obviously don't want them in production APK's or in every debug build. Flavored builds? Jun 04 04:24:19 squ: So it's because files in raw are automatically assigned a res id? makes sense. thanks. Jun 04 04:25:15 liuwenhao: yes all ‘R.keke.qwe’ are ints Jun 04 04:25:26 is there any "real" performance gain to having a media file in raw rather than assets? or is it negligible Jun 04 04:26:02 liuwenhao: if you find an answer, paste it here please :) Jun 04 04:26:09 * squ is curious too Jun 04 04:26:16 I was reading on stackoverflow but I didn't find anything concrete Jun 04 04:26:36 so i'm assuming it's 'no' Jun 04 04:40:01 squ: what are you trying to do? Jun 04 04:45:28 squ: http://stackoverflow.com/a/9563467/3618202. He says 'much slower' but I doubt it's noticable with how powerful modern smartphones are. Could be wrong though, interesting read anyways Jun 04 04:45:47 I still have so much to learn about Android -.- Jun 04 04:46:02 Every day I just learn how much I still have to learn Jun 04 04:46:49 liuwenhao: this is disadvantage of android and java Jun 04 04:47:32 can't tell definition of a word which describes a ‘large set of specific use-cases’ Jun 04 04:48:10 undocumented behavior :) Jun 04 05:02:10 lol, google phtoshopped Windows Phone onto a device in the smart lock page Jun 04 05:02:18 by mistake of course :D Jun 04 05:03:34 g00s: show screenshot? Jun 04 05:03:59 squ http://phandroid.com/2015/06/03/google-nexus-6-windows-phone-smart-lock/ Jun 04 05:04:36 I don't get it sorry :) Jun 04 05:26:29 can someone look at this question for me thanks, http://stackoverflow.com/questions/30635534/issue-making-http-post-request-with-json Jun 04 05:36:25 DadFoundMy: use Retrofit to save you some trouble http://square.github.io/retrofit/ Jun 04 05:46:07 liuwenhao, of course res can have numbers in them, they can't start with a number though Jun 04 05:46:42 liuwenhao, and there is no performance difference Jun 04 05:54:29 Can someone link me to a guide that explains the simplest way to use okhttp? All I need to do in my app is send a POST request. I don't need fancy error handling and all that right now. Jun 04 06:04:44 ah, thanks for the clarification pfn Jun 04 06:37:14 hi guys, i am new to android programming.. i have an app idea and here to check whether my idea sounds crazy or doable ... is it possible to install an application into a container like in android ? so that when i switch containers the apps installed in that container alone is visible Jun 04 06:37:15 ? Jun 04 06:39:36 * solofight reads http://developer.android.com/guide/components/fundamentals.html Jun 04 06:43:58 "Aguadrone shows you where the fish are, then flies your lure out there" ... for the lazy fishers Jun 04 06:48:14 solofight: vmware has some solution like that, and android for work does something similar too Jun 04 06:59:24 how to ask placepicker to only show place of specific type? Jun 04 07:03:10 Hello guys Jun 04 07:03:15 I am facing the same issue http://stackoverflow.com/questions/29566302/using-retrofit-with-rails-api Jun 04 07:03:18 any ideas ? Jun 04 07:05:43 deebo: thanks for replying, the only apps that i am able to find in playstore is their VMwareInc, Vspehere and Vmware Horizon client which seem related Jun 04 07:06:31 deebo: so this vmware app is supposed to run another android os inside it which enables us to install apps on top of it ? Jun 04 07:08:31 solofight: its some sort of work/personal environment thingamajick Jun 04 07:12:23 deebo: thanks for the time and inputs Jun 04 07:14:14 Can Doze Mode in MNC be enabled / disabled / Jun 04 07:16:11 <_rm> tagrudev: could be that i'm misremembering things, but don't you need to specify @SerializedName on your fields if their names don't match 1:1 with the json field names? Jun 04 07:16:53 _rm, that's not my thread Jun 04 07:16:57 I've tried that Jun 04 07:16:58 though Jun 04 07:17:13 I think something is wrong with the way rails returns the response Jun 04 07:17:35 <_rm> well, then you should verify what the response is first Jun 04 07:52:51 Windows 1.0 had a hamburger menu :P Jun 04 08:01:55 Google custom search API spits out completely crap URL's when minify is enabled. What would cause this? Jun 04 08:02:35 It's as if some strings are overwritten.. Jun 04 08:03:52 Can 2 MediaController have PlaybackState = PlaybackState.STATE_PLAYING? Jun 04 08:08:16 what's a proper moment to have an activity subscribe/unsubscribe to backstack changes? Jun 04 08:08:23 onCreate/onDestroy ? Jun 04 08:08:33 osxorgate, onPause/onResume Jun 04 08:09:11 or onStart/onStop depending on what you are doing Jun 04 08:09:48 well i just got a screen that displays master/detail Jun 04 08:10:08 on tablet side by side, on phone i replace the list with the details, when clicked Jun 04 08:10:43 onPause/onresume then Jun 04 08:10:49 there wont be any click if activity is paused Jun 04 08:10:59 true Jun 04 08:11:02 ok thanks Jun 04 08:17:11 first time use android-studio/gradle. why does gradle take so long to sync and configure project? hours passed still unfinished. something wrong? Jun 04 08:18:39 lol Jun 04 08:19:33 hours?!?! Jun 04 08:19:47 hours? slow network? Jun 04 08:19:53 yes. something seems wrong. or you're compiling the whole universe Jun 04 08:20:14 F. A library seems to have its constants messed up when minify is run. Jun 04 08:20:44 compile the universe Jun 04 08:20:44 URL is generated with a bunch of random letters as query paremeter names instead of the right parameters Jun 04 08:21:09 cx -> c, start -> e etc Jun 04 08:22:54 rrr what gradle version? Jun 04 08:24:05 how to check gradle version? Jun 04 08:24:47 module settings, Project, gradle version Jun 04 08:26:47 is there any way to delay .sh script? like on boot i want to run init.d script after 120 secs? what should i use after #!/system/bin/sh? something like timer 120? Jun 04 08:27:30 gotnut, not android related but just put "sleep 120" as first line of your script Jun 04 08:27:53 ah, sleep! Jun 04 08:28:01 thanks danijoo! Jun 04 08:28:28 np Jun 04 08:29:24 regarding fragments, what exactly is a 'stack entry' ? Jun 04 08:31:07 danijoo: sorry where is module settings? Jun 04 08:31:37 rrr, rightclick the root of a project :) Jun 04 08:32:02 osxorgate, its the "history" of opened fragments Jun 04 08:32:35 each fragment is one entry Jun 04 08:34:06 danijoo: 2.2.1 Jun 04 08:35:42 rrr, if you want to optimize build speed change it to 2.4. You can also experiment with parallel execution feature and if you have a bad connection enable offline mode Jun 04 08:36:25 Hi guys - I'm building a flyout container using the offsetLeftAndRight method to open/close the menu. I'm wondering which attributes of the view get changed when calling e.g. offsetLeftAndRight(200). Neather left/right nor padding get changed. Can you give me a hint? Jun 04 08:36:57 danijoo: where to see details what gradle is doing? Jun 04 08:37:23 rrr, run gradlew assempleDebug in terminal then you will see them Jun 04 08:39:56 danijoo: "> Configuring > 0/3 projects > root project" from gradlew Jun 04 08:40:15 danijoo: what does that mean? Jun 04 08:40:37 rrr, im not that much into gradle sry :) Jun 04 08:40:45 configuring something i guess :p Jun 04 08:41:17 danijoo: ok bad connection, maybe I need to enable offline mode Jun 04 08:41:33 danijoo: how to enable offline mode? Jun 04 08:41:36 rrr, you need to do a full sync before that touch Jun 04 08:41:40 tough * Jun 04 08:41:50 its in the settings Jun 04 08:41:54 just search for offline mode Jun 04 08:43:41 danijoo: i don't understand why it takes so long. full sync? Jun 04 08:44:03 rrr, gradle has to download the dependencies first Jun 04 08:44:26 if its the very first run, the script even has to download gradle which happens to be a few megabytes Jun 04 08:44:29 it is a small project Jun 04 08:45:18 it will still be slower thene eclipse though. Theres no incremental build in gradle Jun 04 08:45:22 (yet) Jun 04 08:45:50 Is anybody successfully using Heap Snapshots in Android Studio like this guy https://youtu.be/f7ihSQ44WO0?t=31m9s ? Unlike me http://snag.gy/Swz5t.jpg - he has ability to group by Method (guess he has more of these filtres in dropdown..). How about you? Jun 04 08:46:37 bolovanos, did you get the latest snapshot of android studio? Jun 04 08:46:54 what he is using is a preview version and not part of android studio stable Jun 04 08:47:02 Ok the moment I send it, I have realised that snapshot is for allocation, I am unable to open Heap snapshot at all Jun 04 08:47:33 danijoo, Android Studio 1.2.1.1 Jun 04 08:48:01 bolovanos, you need the preview version Jun 04 08:48:05 from canary Jun 04 08:48:18 hey. I see this strange behavior on one of my phones when playing music in my game: While one file is being played, if the another one starts, the first one stops. I just stop hearing the first song. Jun 04 08:48:39 danijoo: how do you know i should use gradlew? Jun 04 08:48:41 it's only with that phone though. It's not the speakers, because the same happens with earphones. Jun 04 08:48:42 danijoo, ok, rather wait for stable, thx Jun 04 08:48:50 any idea what might be happening? Jun 04 08:49:27 oranjuice, wrong channel i think. This is app development :) Jun 04 08:49:48 rrr thats the filename of the gradle build script. Jun 04 08:50:08 danijoo: oh sorry. but I think games subset of apps :) Jun 04 08:50:43 oranjuice, yes but this is not customer support. its about writing the code for apps :) Jun 04 08:50:44 danijoo: i just realized i am using the latest android studio preview version(wrong download). is that possible reason? Jun 04 08:51:22 rrr, didnt try it yet so I cant tell Jun 04 08:51:31 danijoo: oh I'm not asking what's wrong with my phone :) I'm wondering if it's Android software related. Jun 04 08:53:31 danijoo, btw - he is talking about 1.0.3 previou shame that this functionality did not make it to 1.2... Jun 04 08:53:53 preview Jun 04 08:54:15 bolovanos, i think he is talking about 1.3, not 1.0.3 Jun 04 08:54:33 the title says its about google.io 2015 which was one week ago Jun 04 08:54:37 danijoo: also the cpu fan runs crazy with gradle sync. Jun 04 08:55:06 danijoo, u right I have heard 0 :) Jun 04 08:55:47 rrr, so its at least doing "something" :P Jun 04 08:56:38 are you having good build performance with gradle 2.4 + AS 1.3 beta? Jun 04 08:59:12 i have okish performance with gradle 2.4 on AS 1.2 stable Jun 04 09:01:47 I have switched from 2.2.1. to 2.4 on 1.2. hour ago... it seems to be faster, but its short time to say somehting more Jun 04 09:04:45 danijoo: no turns out it is "emulator" running cpu. gradle just sits there. Jun 04 09:05:49 try verbose mode or sth to debug it Jun 04 09:10:34 Hello Android Jun 04 09:10:55 I need some help ListActivity Jun 04 09:12:27 I have a rails api for backend. In one of my activites I fetch list of json objects and populate list with object_names Jun 04 09:13:05 Next On_click of list item I need to make a request to server to fetch me the details of object and need to pass the object identifier Jun 04 09:13:19 But my list only has Object_name Jun 04 09:13:27 How do i pass Object_id Jun 04 09:13:58 PS Object id were included in the original json I had requested from server in first request Jun 04 09:16:11 spidergears: I use setTag/getTag for that Jun 04 09:16:57 Is there any place where i can find a good tutorial for it Jun 04 09:17:09 Confirming to current android standards Jun 04 09:17:39 danijoo: in debug mode, gradle is running...but slowly Jun 04 09:17:55 it's not complicated... I setTag on the layout in the adapter, then getTag in the onClick Jun 04 09:21:29 hey, i have this problem when my app crash it just hangs instead of printing the stacktrace, anyone else have/had this issue? Jun 04 09:28:17 joroci, what dev env? Jun 04 09:29:50 how can i easily ask an observable how many subscribers it has? Jun 04 09:29:55 (rxjava) Jun 04 09:31:56 android studio Jun 04 09:34:38 it's working sometimes Jun 04 09:36:07 joroci, sometimes logcat has some latency, if you click on modal window on your dev device, that your app crashed, before it shows data in logcat, than logcat erase. Jun 04 09:38:03 yea i know, the problem is the app is just stuck Jun 04 09:38:12 instead of showing the modal Jun 04 09:39:21 then investigate :) https://developer.android.com/tools/debugging/debugging-studio.html Jun 04 09:43:42 how can I catch keyboard's show/hide events so that I can hide views (or is there option for views to hide behind keyboard)? Jun 04 09:56:19 Hey I am using ListView to show data from my api. But there is more data in api response than I am showing in list View. How do I make a successive request to api_server on item_click and passing some data attributes htat are not being displayed in Listview ? Jun 04 09:56:37 Do I need a custom adapter or anything? Jun 04 10:09:24 spidergears: if you mean that the listitem should determine the content/url of the next network call, then it's probably a good idea to store this info in a custom object Jun 04 10:09:43 and maybe your adapter does not visualize this data in the listview, that's no problem Jun 04 10:09:52 basically my rule is: always make a custom adapter Jun 04 10:22:32 Hi. Is this possible that runnable will be called before we leave onCreate? http://pastebin.com/vshNBkLM Jun 04 10:23:59 is it possible to 'split up' a cardview? or steal the background.. I have data that consists of 1 header + n contentrows, but an 'item' should be inside a cardview Jun 04 10:24:02 if that makes sense ;0 Jun 04 10:25:43 before i have to stash it all in a ScrollView Jun 04 10:33:58 for example looking at this: http://material-design.storage.googleapis.com/publish/material_v_4/material_ext_publish/0B6Okdz75tqQsZWNWWDZVek41S1U/components_cards_content2.png Jun 04 10:34:29 take that top right cards, there's no way for me to do something like that in a scrollview where i have like 6 items, instead of 1 huge card? Jun 04 10:42:31 Is it okay to make a Toast from a thread that is not the Main UI thread? Jun 04 10:45:53 txtsd, i don't think it's ok, try and watch your logcat you will see Jun 04 10:46:02 (i assume by make you meant "show" in fact) Jun 04 10:48:03 adq: should I use Activity.runOnUiThread then? Jun 04 10:48:58 anything you like http://developer.android.com/guide/components/processes-and-threads.html#WorkerThreads Jun 04 10:50:55 more importantly, you should search and read prior to ask what you could have answered yourself more quickly, same goes for testing a one line toast outside and inside a ui thread, etc Jun 04 10:53:10 also, and finally, your question about toast on ui thread reveal that you haven't yet (it's ok) understand the threads in Android (worker/ui versus background) and what distinguish them Jun 04 10:53:54 you need to be on the UI thread when you "touch" the UI, you should not be on the UI thread when you do blocking operation (like network but not only, could be reading a file, etc) Jun 04 10:54:03 read about it, you will save time to you and other Jun 04 10:59:44 I'm trudging though it slowly Jun 04 11:01:07 I've been using AsyncTask like a moron for 8 hours trying to figure out why I can't do more than 5 requests, and all google results keep talking about AsyncTask instead of saying to use new Thread(new Runnable() etc Jun 04 11:01:44 documentation isn't exactly easy to understand Jun 04 11:02:27 Hey guys, Jun 04 11:02:53 Is it possible to customize the ui and language of the android text selection icons. http://www.droid-life.com/2012/08/13/tip-copy-cut-paste-icons-in-jelly-bean-and-ice-cream-sandwich-beginners-guide/ Jun 04 11:16:19 anyone uses genymotion/ Jun 04 11:16:21 ? Jun 04 11:22:05 hi devs, is there any table of commonly default trusted ssl CAs accross Android versions? We're choosing new SSL certificate on Android app backend, and we would like to have best overall android compatibility (default, not with hard-coded trustmanager/keystore). thanks Jun 04 11:26:20 i assume that GeoTrust/RapidSSL(Equifax)/Verisign(Symantec) should be generally OK, however I'd like to know some more numbers to do a decision... Jun 04 11:29:16 foaas.com <- just gonna leave this here hahaha Jun 04 11:43:54 is it possible to allow download of my app only in specific states of the US? Jun 04 11:44:00 nope Jun 04 11:45:37 :( Jun 04 11:47:32 you could hide usb sticks with your app in only those states Jun 04 11:48:07 kindly ask for their state Jun 04 11:48:23 and finish() for wrong selection xD Jun 04 11:49:06 <_rm> ugh that sounds like the worst geographic restriction ever :) Jun 04 11:49:27 <_rm> (and as someone who's not in the U.S., i'm not a fan of any of them) Jun 04 11:50:39 Can someone please help me out here? I see my profilepicture for a secend before it disapperas.. http://stackoverflow.com/questions/30639336/name-and-profile-picture-from-facebook-into-android-app Jun 04 12:13:30 Does $30 for a game icon sound fair? Jun 04 12:13:37 It seems kind of expensive to me but I wouldn’t know Jun 04 12:13:46 Thinking about hiring someone to do it for my game Jun 04 12:15:13 it sounds cheap Jun 04 12:15:37 especially if it's a paid game Jun 04 12:15:38 just quantify the time spend on the icon, let's say it's more than an hour Jun 04 12:15:48 add to that the fact it's a very important asset to your product Jun 04 12:15:50 etc Jun 04 12:16:32 yeah, if you're going to pay, that seems pretty reasonable Jun 04 12:16:33 adq: Thanks thas a really good way to think about it Jun 04 12:17:04 <_rm> yeah $30 is super cheap Jun 04 12:17:31 darken: It will be a free game Jun 04 12:17:33 lee Jun 04 12:17:35 d Jun 04 12:17:39 s Jun 04 12:18:08 Leeds: Sorry lol, yeah it was a referral from a friend so I wasn’t sure how good it was :) Jun 04 12:18:39 only way you'd get it cheaper is something like fiverr Jun 04 12:20:09 i can do it for 5$ Jun 04 12:20:18 1 color, 1 outline, filled in Jun 04 12:20:41 hehe I think I’m going to try this guy out but thanks :) Jun 04 12:20:51 I’m happy to go with the price just wasn’t sure if was a good deal or not but everyone seems to agree:) Jun 04 12:21:12 Its my first big project so just trying to get it as ‘right’ as possible Jun 04 12:22:30 is anyone having success using espresso-contrib to test recyclerview? I'm seeing what might be a bug: https://stackoverflow.com/questions/30578243/why-would-adding-espresso-contrib-cause-an-inflateexception Jun 04 12:23:29 for a really good design you can easily pay 100-200$ samB__ Jun 04 12:24:39 I've been looking at some libraries for ORM currently my favourite seems to be DBFlow. I've also looked at ActiveDroid (but seems inactive), Sugar ORM (seems to do everything for you and doesn't allow for custom primary keys etc and SquiDB which is somewhat like Sugar ORM. DBFlow seems to be giving me control but can also handle most of the stuff on its own if it has to which looks very nice. Has anyone worked with DBFlow or others and can Jun 04 12:24:39 provide some insights? Jun 04 12:25:34 Muchoz, im using ORMlite in all my apps Jun 04 12:26:00 i want to make setting for simple keyboard like the other keyboard in setting here is the image http://ibin.co/244fAvPohH4L how can i do that ? Jun 04 12:26:15 oh I never realised an icon could cost so much - is that justifiable danijoo ? Jun 04 12:26:50 Dexing happens after proguard right?' Jun 04 12:26:57 samB__, it pretty much depends on what quality you want and if you only want to get it done or also want the designer to come up with a design Jun 04 12:27:02 knapper_tech, yes Jun 04 12:27:27 So minify is reducing method count prior to potentially blowing the 64k limit? Jun 04 12:27:49 minify == shrink, it will remove some unused resources for example Jun 04 12:27:50 danijoo: I see that does make sense, I didn’t consider they would have to also spend time working on a design Jun 04 12:27:52 "my app does this and that, i need a cool bluish icon" will cost more than if you have a sketched design ready Jun 04 12:28:01 it's not hardcore as proguard is, despite proguard enabled is required with minify Jun 04 12:28:08 heh true danijoo Jun 04 12:28:38 isnt minify just proguard + extras? Jun 04 12:28:44 I always saw it like that Jun 04 12:28:59 never knew Jun 04 12:29:27 knapper_tech, yes, im using proguard/minify to make an app shrink below 64k that is above it Jun 04 12:29:53 danijoo, seems to be a strong going library too. Do you really need to be providing the name of the databasefield every time? Jun 04 12:30:20 Muchoz, no. if you just annotate with @Databasefield it will use the variable name as field name Jun 04 12:31:27 Dev through in some roboelectric and suddenly we were blowing up 64k. Jun 04 12:31:48 not a problem these days :) just use proguard or multidex Jun 04 12:31:53 danijoo, I don't see some sort of @PrimaryKey annotation anywhere in the examples. Setting generatedId to true is like having your own primary key that's always an int? Jun 04 12:32:19 Oh no, that's optional and auto incremented.. Jun 04 12:32:22 http://vpaste.net/RbCQG Jun 04 12:32:26 Muchoz, if you dont add a primary key, they will add one for you Jun 04 12:32:30 int field with name _id Jun 04 12:32:31 compare java to objc ^ Jun 04 12:32:35 danijoo, that's what I don't like. Jun 04 12:32:35 I need some more ideas on testing strategy that will make sense long term and incrementally. We're breaking up a lot of ops in the data layer into pure functions where possible to start with. Jun 04 12:32:38 Hi guys! Did anybody work with ViewPagerIndicator library? I faced a bug (I'm using CirlcePagerIndicator implementation) when it adds extra circle when I'm scrolling to the last page and continue to move the finger further. Jun 04 12:32:57 danijoo, I'm getting it from my own database via an API and would like to make my own primary keys. Jun 04 12:33:33 DBFlow seems to be my go to for now Jun 04 12:33:52 Muchoz, i usually add this to my database classes to have control over the id field: @DatabaseField(generatedId = true, allowGeneratedIdInsert = true, columnName = "_id") int id; Jun 04 12:33:59 danijoo, any help Jun 04 12:34:31 this will make it a native id column that will auto increment but you can still add your custom ids Jun 04 12:35:06 s9iper1, with what Jun 04 12:35:09 danijoo, I'm really doubting. But I feel like DBFlow is easier to work with. Jun 04 12:35:20 Muchoz, go ahead then :) Jun 04 12:35:23 didnt hear of that yet Jun 04 12:35:33 danijoo, https://github.com/Raizlabs/DBFlow Jun 04 12:35:47 do they provide cursoradapters and loaders and stuff? Jun 04 12:37:00 thats pretty important and some ORMs dont have it. You usually want to have cursors for lists and dont have to get List objects and modify them Jun 04 12:37:07 i want to make setting for simple keyboard like the other keyboard in setting here is the image http://ibin.co/244fAvPohH4L how can i do that ? danijoo Jun 04 12:37:18 s9iper1, no help from me with that sorry Jun 04 12:37:38 ahh any body else Jun 04 12:37:39 ? Jun 04 12:37:57 danijoo, I think it has, I quote: "In this library, we enable easy list and adapter-based operations using FlowCursorList and FlowQueryList. Both of these correspond (in order) to BaseAdapter and List." Jun 04 12:38:10 ah ok :) Jun 04 12:38:23 danijoo, "A FlowQueryList is java List implementation of managing a database table. All modifications affect the table in real-time. All modifications, by default, are immediate." Jun 04 12:39:31 I think I'll use that. Jun 04 12:39:39 Seems to be a solid library. Jun 04 12:39:54 yeah looks good from a quick glance over it Jun 04 12:41:05 Muchoz: I've used sprinkles in the past and been pretty happy with it, but not sure if it's being actively maintained Jun 04 12:50:56 joshkovach, May 31 2014 last commit :/ Jun 04 12:51:04 ahh, bummer Jun 04 12:52:03 There probably was a talk on Google IO about the new permissions system and how to implement it, right? Does anyone have a link for a talk about that or an article? I can't seem to find non-chinese articles. Jun 04 12:53:03 Muchoz, you can pretty much summarize it with that: you have to make if-clausues to check if you have the permission Jun 04 12:53:32 and provide alternative paths in your code or it will crash with the typical No permission exception Jun 04 12:53:54 danijoo, I see the checkPermission(), but does it automatically ask for the permission then? Jun 04 12:54:03 yep Jun 04 12:54:09 Ah, convenient. Jun 04 12:54:27 this means you will have to edit all applications to check for permissions or they will crash :) Jun 04 12:54:35 Where are the constants of the permissions? Jun 04 12:54:49 Muchoz, same constants the system now uses Jun 04 12:55:13 oh. and the new permission system will only be enabled for your app if you set the new apk level Jun 04 12:55:21 sdk level * Jun 04 12:55:30 Which is? :p Yes I'm just testing on MNC and some testers run on MNC. Jun 04 12:55:51 its MNC :p Jun 04 12:56:22 I got designs from my designer and they include specific fonts. What to do? Do apps really use specific fonts like that? Any go to libs? Jun 04 12:56:36 the news about that were kinda distributed above 2 talks, so you would have to look the keynote and the "whats news in dev tools" talk for all news about the permissions Jun 04 12:56:46 danijoo, what? What class? :p Jun 04 12:58:11 Hey so I'm creating an application in which my phone gets an alert when something gets triggered on a local network system Jun 04 12:58:28 Muchoz, what? Jun 04 12:58:29 currently i'm thinking of creating a service that has a serversocket listening for any socket connections Jun 04 12:58:45 is there a better way to go about it? Jun 04 12:59:39 danijoo, https://www.youtube.com/watch?t=692&v=f17qe9vZ8RM checkSelfPermission requires a String, where do I find a list of the possibilities without giving in a literal String? Jun 04 13:00:09 Oh... Android Studio added it for me! Jun 04 13:04:58 So this is question i've asked before maybe you can pitch it. Why does google refuse to implement a DHCPv6 client on Android? Jun 04 13:06:09 danijoo, if I replace the checkSelfPermissions for location stuff with a function because I have to use it multiple times it just doesn't get it *sigh* https://i.imgur.com/WC1cKEU.png Jun 04 13:10:27 Hey. So I'm updating an app to use the material design. At this point I'm trying to get buttons to work, but I'm kind of stumped on how to get the elevation/shadow working. Jun 04 13:11:59 Been looking around, but guides and blogs have been sort of inconsistent. From what I understand, it is available in the latest support libraries, but very little info on how to use it in xml Jun 04 13:13:17 Does anyone have any info on that? Jun 04 13:15:51 I got designs from my designer and they include specific fonts. What to do? Do apps really use specific fonts like that? Any go to libs? Jun 04 13:17:31 Unless there is a very specific reason not to use the default font I'd say use the default one. Jun 04 13:17:59 Ewoud_, Widget.AppCompat.Button seems to add the shadowing automatically. I have a Button style with a textColor and background that's raised automatically. Then I have a flatButton style not inheriting anything with just a textColor and transparent background. Jun 04 13:20:20 pclover, have you heard of router advertisment daemon (radvd per example)? Jun 04 13:20:32 SLAAC yes Jun 04 13:20:53 but SLAAC sucks if you ask me Jun 04 13:20:55 you don't need any dhcpv6 in this case, but Jun 04 13:20:56 I see. I understand from somewhere that the appcompat button gets applied automatically whenever a regular button is used in a layout. Is this true, and is there anything I have to do to enable/ensure this? Jun 04 13:21:02 that does not explain why they would refuse to implement it though Jun 04 13:21:10 also i have no idea where you have the proof "they refuse" Jun 04 13:21:30 adq, https://code.google.com/p/android/issues/detail?id=32621 Jun 04 13:21:36 Status: Declined Jun 04 13:21:57 ok i see #53 Jun 04 13:21:59 Ewould_ any reason why? Jun 04 13:22:16 you asked why, it looks like they gave some reasons Jun 04 13:23:05 i don't know more pclover, tbh Jun 04 13:23:14 adq, it's just bad imo. iOS has it Jun 04 13:23:28 Adq were you talking to me? Jun 04 13:23:37 nop Eghdk, was talking to pclover Jun 04 13:23:48 Okay. Haha Jun 04 13:23:51 sorry for the confusion :p Jun 04 13:23:55 it makes a mess for IT people Jun 04 13:24:07 not having it Jun 04 13:24:15 "Marking as declined until there is a compelling use case." Jun 04 13:36:37 Hi, I've got a simple question (I suppose) ... How can I change the color of the App Toolbar when it is in the stack of the opened apps (when you press the multitask button on the phone) ? Jun 04 13:36:54 If it's not clear I'm gonna be clearer Jun 04 13:37:57 Am i the only person here that hates writing a regex? Jun 04 13:38:23 I like writing simple regexes. Jun 04 13:38:51 I'm not a programmer but i need to use them from time to time Jun 04 13:40:21 I'm not very fond of regexes either. But that's probably because I don't use them enough to properly get used to them. Jun 04 13:42:29 I see that buttons are automatically replaced in layouts, which is nice. But then I don't see how that doesn't work on my end. Jun 04 13:44:16 Plz Jun 04 13:45:23 I must be missing something very basic... Jun 04 13:46:55 If the user denies me a certain permission that my app absolutely requires, do I just handle that myself by showing an AlertDialog or can I ask Android to handle that? Jun 04 13:47:05 In Android M. Jun 04 13:59:31 in RxJava, what is a good way to do something always before and after my async operations? Jun 04 14:03:05 hey guys Jun 04 14:04:15 someone can give me a hand with the webview behaviors on Samsung devices with Lollipop? Jun 04 14:05:24 meta-questions generally get you nowhere Jun 04 14:06:08 how I get some help? Jun 04 14:13:51 guys? help? Jun 04 14:14:14 how would i put a 3D object (like one i made in google sketch up lets say) onto google maps for android? Jun 04 14:18:59 how do I send a message to my service from ServiceTestCase ? Jun 04 14:20:37 is anyone even here ? Jun 04 14:20:49 yeap, I'm here Jun 04 14:20:58 but idk about your question Jun 04 14:21:45 oh well... Jun 04 14:21:52 how do you test your services then ? Jun 04 14:22:07 gastonmz: The only way to get help is to ask a question. Jun 04 14:22:16 you don't test the service, you test the methods within Jun 04 14:22:25 indeed Jun 04 14:22:37 that depends on the state Jun 04 14:22:44 so I won't be testing single methods Jun 04 14:23:05 anyone have problems with webview on Samsung devices using Lollipop? like the touch event works weird? Jun 04 14:23:06 I never said testing a method can't involve other methods Jun 04 14:23:41 you didn't, but well, for integration testing, I'd rather provide input data than exercise a bunch of methods and call it a day Jun 04 14:24:17 you should test simple methods individually, then more complex methods are free to depend on the simple ones Jun 04 14:24:44 ok, wakelock Jun 04 14:25:10 can I even instantiate the service so I can then execute the methods with a 'live' object ? Jun 04 14:25:47 why not? Jun 04 14:25:49 Hi guys Jun 04 14:26:10 hey Sepho Jun 04 14:27:31 [Newbie Question] where should i paste this "" ? Jun 04 14:27:47 I've an activity with a large listView so I decided to declase as Searchable Activity and show a search dialog. The problem is that when I write some text on search bar, it launches my listView activity again to show the results. My idea was to use the search bar to filter my listview. Is it possible? I mean, filter my listview items instead to launch the searchable activity again Jun 04 14:27:53 in your AndroidManifest.xml Jun 04 14:28:01 boodllebat Jun 04 14:28:06 emilsp: between which tag ? Jun 04 14:28:28 boodllebat, in the manifest Jun 04 14:28:41 wakelock: anywhere in manifest ? Jun 04 14:28:48 of course not... Jun 04 14:29:08 inside Jun 04 14:29:10 along with your other permissions Jun 04 14:29:18 emilsp: oh maifest tag ? Jun 04 14:29:23 ... Jun 04 14:29:23 yes Jun 04 14:29:30 dude, this is trivial and easily googlable Jun 04 14:30:07 it doesn't help if you preface it with "newbie" or "dumb" or whatever, you're still going to be sent to google Jun 04 14:31:43 android was written with google in mind Jun 04 14:31:59 wakelock: i have already done in my manifest but seems like i'm doing something wrong cause i'm not getting permission to open simple SOCKET Jun 04 14:33:09 wakelock: here is my xml i've already pasted between my intent tag but i'm unable to open socket http://pastebin.com/fZQLaD3x Jun 04 14:33:29 I just had an interesting idea for android. Jun 04 14:33:33 that is completely wrong, boodllebat Jun 04 14:33:39 like I said... trivial and googlable Jun 04 14:33:50 wakelock: my xml is wrong ? Jun 04 14:34:04 your is wrong Jun 04 14:34:13 I don't know why you'd think it has to be a part of the intent-filter Jun 04 14:34:27 just go use google Jun 04 14:35:37 boodllebat http://pastebin.com/96EFnbFE Jun 04 14:36:15 emilsp: oh ! i was confused due to some permission already between intent Jun 04 14:36:22 emilsp, that won't teach him how to help himself Jun 04 14:36:52 serving things on a platter is ultimately the wrong strategy Jun 04 14:38:21 wakelock, it makes him go away... Jun 04 14:38:55 still a short-sighted solution Jun 04 14:39:31 boodllebat, you don't specify permissions per app or serivce, since the user will only get asked about the permissions only once and for the whole package. Jun 04 14:40:25 emilsp: i passed that error but now i'm getting new exception "android.os.NetworkOnMainThreadException" Jun 04 14:40:36 yes, you can't do newtorking on the main thread Jun 04 14:40:41 emilsp: i guess ive to create antoger thread Jun 04 14:40:47 emilsp: another* Jun 04 14:40:51 well, don't deal with threads manually Jun 04 14:40:56 google up AsyncTask Jun 04 14:41:15 indeed, did you start googling finally? Jun 04 14:41:36 emilsp: ok do i have to change my code i mean the JSON parsing and http request to use AsyncTask ? Jun 04 14:41:48 these questions are not only trivial but are covered in detail in the official docs Jun 04 14:42:14 wakelock: ok i'll read first and after that if'll get doubt i'll come here Jun 04 14:42:34 finally Jun 04 14:43:43 emilsp, see, this is exactly what I knew will happen, you start serving them solutions on a platter and they only come back for more Jun 04 14:44:07 hence shortsighted and not a good strategy Jun 04 14:44:21 wakelock, yes, but I wasn't harsh on him because I was baffled about why my unit tests passed but I never got any logcat output from my service Jun 04 14:44:21 however our purpose here is not to just make them go away either Jun 04 14:44:51 and the reason was that I screwed aroudn with the manifest and hadn't specified the permission, 6 hours of work down the drain Jun 04 14:44:51 sometimes you have to be harsh, sorry if your service distracted you from doing the right thing :p Jun 04 14:45:09 nah, it's fine, I clearly understand where you're coming from Jun 04 14:45:34 anyway, is this a US centric channel ? Because it always seems to be dead when I want to talk to android devs Jun 04 14:45:59 i think so. i always come with questions at 9 or 10 AM EST and it seems everyone is still asleep Jun 04 14:46:26 it is not location centric at all; that said, a lot of the residents do seem to come from the US Jun 04 14:47:03 oh well... Jun 04 14:50:21 yup, pretty much that. It's whoever is awake at that time. It seems like most people here are awake on a somewhat US time schedule. Jun 04 14:50:58 well, most of my eastern european friends do follow the 'us' timezone when coding for android :( Jun 04 14:52:03 could be worse Jun 04 14:52:08 could be japan :p Jun 04 14:52:51 actually, one of my friends just came back from Japan after beign a zen budhist monk for quite some time, he still managed to do an interview over skype with an office in the uk Jun 04 14:53:38 they do say monks develop extraordinary capabilities Jun 04 14:54:10 I don't think he passed the coding test unfortunately. Jun 04 14:54:32 he only achieved a 3x speed optimization, and as soon as he turned it in, achieved 7x Jun 04 14:54:48 the power of traversing arrays Jun 04 14:55:29 he should've been like, "wait, wait! I wasn't done!" Jun 04 14:57:51 hey guys, I have an issue with an ExpandableListView, In on group I have 5 MaterialEditTexts (custom edit text). The issue is that when I try to focus by clicking on the first edittext, the focus goes to the last edittext item Jun 04 14:58:59 Oh, that happens when the input keyword shows up taking up space Jun 04 15:10:57 I am trying to write a very simple recent activity switcher. When I try to start activities from their class name, I get a "class not found exception" My code only works for activities that are in my application's package. What am I doing wrong? Is it impossible to start activities from arbitrary packages / applications? Jun 04 15:11:09 hey, with Futures module being accessible, is AsyncTask useful ? Jun 04 15:11:29 would be so much nicer if it were possible to use promises to do async stuff Jun 04 15:11:50 I don't think I've ever use AsyncTask, personally, regardless of Future. Jun 04 15:12:04 It doesn't really give us much on top of a thread pool, Handler.post, etc. Jun 04 15:12:18 Oops, `Future`. Jun 04 15:13:08 TacticalJoke, Threads are nice, but rather 'brutal' Jun 04 15:13:47 emilsp: AsyncTask uses Threads under the hood (via ThreadPoolExecutor). Jun 04 15:15:12 TacticalJoke, yes, but it also gives you a standardized way to perform asynchronous tasks whilst still giving 'easy' callbacks so taht the user can be notified Jun 04 15:15:23 Running android studio on Ubuntu is faster than running on Windows? Jun 04 15:15:25 everything in Android is 'main thread centric' Jun 04 15:15:54 cofo, running android studio is certainly suckier on Ubuntu than on Windows, they rely on your jdk's font rendering, which is incredibly sucky Jun 04 15:16:31 And your answer is ? Jun 04 15:16:34 cofo, don't know about the speed though, and adb stuff is definitely easier with a proper unix/posix terminal Jun 04 15:16:48 in my experience, it's super slow when compared to vim Jun 04 15:17:53 I will hope I will get better answer Jun 04 15:18:15 I don't understand, what kind of an answer are you looking for ? Jun 04 15:18:48 Not this Jun 04 15:19:14 I know people work with ubuntu and windows Jun 04 15:19:15 android studio is running in a jvm, the performance mostly depends on your disk i/o and the jvm implementation, which are fairly standardized across platforms, the performance should be exactly the same if you don't take into acount certain system overheads (such as Ubuntu's Unity window manager) Jun 04 15:19:37 Okay Jun 04 15:19:38 disk i/o should be better on linux because the caching and filesystem performance is generally better there Jun 04 15:20:17 anyway, if it runs well on windows, it will run well on linux Jun 04 15:20:23 and it will suck everywhere regardless Jun 04 15:23:41 I figured it out, I have to use ActivityManager.moveTaskToFront() Jun 04 15:23:52 (in case anyone was on the edge of their seat :P) Jun 04 15:24:25 cofo, obviously you're trying to figure out which one to use, why don't you just try them both? Jun 04 15:24:42 What would be the most optimal solution for performance: pass a Parcelable object to another activity or pass the id (long) of that Parcelable object to the other activity where the object is retrieved from the SQLite database? Jun 04 15:25:26 Muchoz, impossible to have a generalized answer, it depends heavily on a lot of things Jun 04 15:25:36 best to benchmark both Jun 04 15:26:39 wakelock, you're right. I'll stick with passing the object for now. Jun 04 15:26:45 Benchmark it later. Jun 04 15:27:48 Hello Jun 04 15:28:06 I want to send a JSON object over HTTP POST Jun 04 15:28:44 I used library org.apache.commons.httpclient version 3.1 Jun 04 15:29:56 But whenever I reach this line, android issues android.os.NetworkOnMainThreadException Jun 04 15:30:10 mHttpStatusCode = mClient.executeMethod(mPost); Jun 04 15:30:49 here is my class: http://dpaste.com/1NJPQM6 Jun 04 15:31:46 ok? Jun 04 15:31:55 the error is pretty clear Jun 04 15:32:40 momken, http://bfy.tw/Ai1 Jun 04 15:33:14 indeed Jun 04 15:34:25 But I didn't run the run() method of that class in the main thread Jun 04 15:34:43 If you get that exception, yes you did Jun 04 15:34:47 I created a service and made that service to run the run() method Jun 04 15:35:04 Service lifecycle methods are called on the main thread Jun 04 15:35:08 services have a main thread too... Jun 04 15:35:46 SimonVT, Oh! really?! Jun 04 15:36:05 wakelock, How could I run a main thread of a service? Jun 04 15:36:08 Everything is, unless stated otherwise Jun 04 15:37:02 ^ I always think that Jun 04 15:37:09 SimonVT, I always thought Service lifecycle methods run on a separate thread. Because of "Service" name Jun 04 15:37:27 There's no Thread in Service Jun 04 15:38:09 amazing how people want to make stuff for a google-providede OS, yet seem to never want to use the google-provided web search Jun 04 15:38:53 wakelock, I always refuse to answer if I can find it on the first page of a Google result. Jun 04 15:39:15 wakelock, I'll have learned something, they won't unless they do it themselves. Jun 04 15:39:30 funny, we were just talking about that earlier Jun 04 15:45:10 Custom fonts pros and cons? Anyone? Jun 04 15:46:22 How does one add a library to a project in android studio? I tried the first answer, but get 'rendering problems' Jun 04 15:46:29 http://stackoverflow.com/questions/20377591/how-to-use-a-library-project-in-android-studio Jun 04 15:46:51 it can't seem to find the class files :S Jun 04 15:46:59 and I cant seem to compile them either Jun 04 15:47:10 daniele_athome, I was searching for how to do something with DBFlow and found this: http://www.raizlabs.com/dev/2015/02/go-dbflow-fastest-android-orm-database-library/ Might be interesting, but to keep in mind that this is from the people who developed DBFlow. Jun 04 15:47:41 gavit: Which library is it? Jun 04 15:48:21 TacticalJoke: https://github.com/jlhonora/multistatetogglebutton Jun 04 15:49:32 I'm starting to wonder if rewriting it isnt faster, but I'll get in the same problem if I want to add another library I think Jun 04 15:50:10 I'm using Android Studio 1.1 Jun 04 15:50:45 It doesn't seem to mention any Gradle stuff, guess you'll have to clone the library and add it as a library: http://stackoverflow.com/questions/16588064/how-do-i-add-a-library-project-to-the-android-studio Jun 04 15:51:22 gavit: http://tools.android.com/tech-docs/new-build-system/user-guide#TOC-Multi-project-setup Jun 04 15:52:50 daniele_athome, sorry wrong autocomplete. Ment to mention danijoo, but he isn't online. Jun 04 15:54:32 SimonVT: & Muchoz gonna try both Jun 04 15:54:34 brb Jun 04 16:00:47 Does someone know how to save a list of BaseModels in DBFlow? Do you just loop through the list yourself or is the SaveModelInteraction used for that? The "usage docs" aren't very clear about everything. Jun 04 16:01:06 I'd much rather have some better docs than those markdown fileS. Jun 04 16:04:44 If I return null for an observable in a flatMap, will it stop the chain? Jun 04 16:05:41 how can i monitor sdcard for changes? Jun 04 16:06:14 hey guys...I have the Stock ROM for my phone and I need to check if there is a way to increase the ear speaker volume from the ROM itself? Jun 04 16:07:40 ReGiStRaS: This channel is for app dev, try #android Jun 04 16:12:02 Custom fonts pros and cons? Anyone? Jun 04 16:14:48 Hi guys, I have a expandablelistview and a child with a edittext loses focus as soon as the keyboard appears, I'm trying different things but w/o success, any tips on this? Jun 04 16:14:59 pros: you have a custom font. neg: you have to setup a custom font Jun 04 16:15:28 raul782_, thats because the activity gets recreated Jun 04 16:16:14 danijoo, is there any way to remember the focus then? Jun 04 16:17:01 yes Jun 04 16:17:13 having an arraylist of my edittext maybe Jun 04 16:17:37 you can also disable recreation con keyboard change Jun 04 16:18:01 I used IntentService instead of Service and fortunately it handles thread creation for me Jun 04 16:18:34 Is it better to have a relative layout inside a scroll view or put a linear layout in a scroll view? Jun 04 16:18:46 no difference Jun 04 16:19:00 use the one that makes it easier to layout the childs Jun 04 16:19:01 danijoo, will try that, I thought only the expandablelistview was recreated Jun 04 16:19:13 or redrawn Jun 04 16:19:17 But I get a very strange error: result of "String responseBody = mPost.getResponseBodyAsString();" is something like "{"key":5555}" instead of "{"key":5555}" which makes trouble Jun 04 16:19:27 I can't get why, and what to do? Jun 04 16:19:39 Guys, any way to read a class variable from inside a ViewHolder?? Here is my simplified code: http://pastebin.com/T8zu2kLW Jun 04 16:19:44 any idea? thanks in advance! Jun 04 16:19:44 Here is the code: http://dpaste.com/1NJPQM6 Jun 04 16:19:56 Danijoo no diff? Really? Jun 04 16:19:59 I need to read mCamerasList variable inside onClick event method Jun 04 16:20:26 Eghdk, what do you mean. ofc they are different. it doesnt matter for the usage in a scrollview though Jun 04 16:21:25 Does anyone know how one would get gradle to use an earlier (say 5.0) version of proguard? Jun 04 16:21:50 I googled, seems "" is the byte order mark. :)) Jun 04 16:28:25 Danijoo why doesn't it matter in a scroll view though? Jun 04 16:28:39 why should it matter? Jun 04 16:28:56 you can put everything in a scrollview. it does not care Jun 04 16:29:35 How can I put two text views in a listview, but make the whole listview item be clickable? Jun 04 16:29:55 Doesn't one have to be worse for performance though? Jun 04 16:30:43 dont optimize on that level if you dont have to ;) Jun 04 16:31:19 Jk, I was only returning the textview instead of the whole layout Jun 04 16:32:55 Danijoo that's all I need to hear. Jun 04 16:33:28 theres not really a difference in performance between them Jun 04 16:34:03 the only performance issues you could run to is if your view hierachy is too deep or if you are using nested weights in linear layout Jun 04 16:40:26 Custom fonts pros and cons? Anyone? Jun 04 16:40:46 there are no cons and pros Jun 04 16:41:45 Eghdk, instead of asking the same question over and over (period is each ~30 min), be more precise Jun 04 16:42:14 if you care about receiving a relevant answer Jun 04 16:42:47 Performance issues regarding other fonts? Not sure if packaging a font into my app makes sense. Jun 04 16:43:10 dont be so obsessed about performance Jun 04 16:43:19 measure and prove you have a bottleneck Jun 04 16:43:20 use a font if you want. Jun 04 16:43:27 you just need to do it properly Jun 04 16:43:58 Where is savedinstancestate saved? Is it stored in a file somewhere?? Jun 04 16:45:14 Eghdk, in case you're not aware, text is displayed as many little bitmaps being drawn (let's simplify that into one bitmap per letter/glyph) Jun 04 16:47:10 danijoo, opening/closing a softKeyboard restarts an activity? Jun 04 16:47:20 Adq okay so doesn't really matter if you're using a custom font or just roboto? Jun 04 16:47:35 I thought this happened only on physical keyboards Jun 04 16:47:35 in most of the cases, it doesn't, indeed Jun 04 16:47:39 raul782_, every configuration change does unless you specifythat it shoudnt Jun 04 16:47:40 but you have to verify that, by measuring Jun 04 16:48:42 Got it. Thanks adq and danijoo do we know of any go to libs for fonts? Jun 04 16:48:46 i say if all you do is the standart views and nothing cpu/gpu intensive there is no difference in using a custom font Jun 04 16:49:00 Eghdk, use calligraphy Jun 04 16:49:05 Eghdk, i know it's simple to set a typeface programmatically and painful via xml Jun 04 16:49:05 danijoo: soft-keyboard appear/disappear is not considered a config change Jun 04 16:49:49 Napalm what about hardware keyboard Jun 04 16:50:12 Thanks danijoo will try calligraphy Jun 04 16:50:19 What code in the Android source calls a particular activity's onCreate() is that in ActivityManager cause I can't find it? Jun 04 16:51:14 danijoo, here I am with DBFlow now seeing it doesn't support M2M.... Jun 04 16:51:46 m2m? Jun 04 16:52:16 Eghdk: hardware keyboard is a config change Jun 04 16:52:30 Sepho: did you fix your problem with te ViewHolder? Jun 04 16:54:01 danijoo, many to many Jun 04 16:54:17 how do i fix this issue.. i dont know how.. i attempted it but app crashes.. http://pastebin.com/VYKH3JFG Jun 04 16:54:22 Muchoz, ouch Jun 04 16:54:31 message log says cannot find symbol method getview Jun 04 16:54:37 has anyone else downloaded the Custom Chrome Tabs project and tried to run it? I have tested it on three devices, and it does absolutely nothing beyond draw the main activity. Jun 04 16:54:50 omg now Jun 04 16:54:52 nooo Jun 04 16:55:16 DarkChaoz: never define anonymous classes like that adapter in AsyncTask Jun 04 16:55:42 DarkChaoz: there are so many things wrnog with this. :( Jun 04 16:55:48 also. always post full stack traces ;) Jun 04 16:56:10 i was tryna improve it by using async task.. Jun 04 16:56:18 DarkChaoz: danijoo: in the topic http://imgur.com/jacoj Jun 04 16:56:21 im not really good at implementing asynch properly Jun 04 16:57:12 DarkChaoz: you do know that the log window shows the stack-trace right? Jun 04 16:57:46 logcat? Jun 04 16:57:59 yes Jun 04 16:58:20 nothing on logcat because the build failed Jun 04 16:58:27 omg Jun 04 16:58:33 ... Jun 04 16:58:42 this is like drawing blood from a stone Jun 04 16:58:56 DarkChaoz: then pastebin your error message.. we are not mind readers Jun 04 16:58:58 thats the point where I usually give up :p Jun 04 16:59:03 ;) Jun 04 16:59:03 fine then I'll leave. if you aint gunna help. Jun 04 16:59:06 good day Jun 04 16:59:11 bye Jun 04 16:59:13 lol Jun 04 16:59:14 serious? Jun 04 16:59:16 lol Jun 04 16:59:23 rediculous Jun 04 16:59:33 bahahahh Jun 04 16:59:39 how can we help him more than we did, shees Jun 04 16:59:54 hey guys! Jun 04 17:00:08 can you come to my dorm room and take a look at my screen plox? Jun 04 17:00:11 hahah Jun 04 17:00:15 lol Jun 04 17:00:41 again my question, someone have an issue with Samsung devices with Lollipop using a webview? the touch events not works correctly... Jun 04 17:02:17 gastonmz: https://developer.chrome.com/devtools/docs/remote-debugging Jun 04 17:02:34 gastonmz: https://developer.chrome.com/devtools/docs/remote-debugging#debugging-webviews Jun 04 17:03:03 ython Jun 04 17:03:25 great Napalm, I'll take a look! thanks man Jun 04 17:17:24 what will happens if fetch data via rss feed on the main thread? Jun 04 17:17:31 * what happens Jun 04 17:17:43 you'll get networking on main exception probably Jun 04 17:19:19 since i cant fix my issue.. i figured i'll just stick everything on main thread Jun 04 17:19:57 no bueno Jun 04 17:20:43 Does anyone have any tricks for when working with example Jun 04 17:20:51 needing to toggle visibility of some view groups Jun 04 17:20:58 I am so not excited about Java 8. Jun 04 17:21:21 oops TacticalJoke think you meant to post that on your blog Jun 04 17:21:31 me neither :) Jun 04 17:21:39 like i want to be able to ad all GONE/VISIBLE and then when I'm done remove all like a git reset head without changing anything else Jun 04 17:21:44 who cares about 8 if you have m12 ! Jun 04 17:21:45 I didn't mean to post that on a blog. Jun 04 17:21:50 Exactly, danijoo. Jun 04 17:24:17 can I make a compounddrawable on theleft in a textview such that all the text doesn't wrap aroudn if it is multiline but has a left margin equal to width of the drawable? Jun 04 17:24:30 I see Java 8 as distraction. We get a few nice things (maybe), but it's just not enough. Jun 04 17:24:42 We might just get lambdas at the syntax level. Great... Jun 04 17:25:04 basically built-in retrolambda XD Jun 04 17:25:05 warning: overflow Jun 04 17:25:10 some text here Jun 04 17:25:10 and some more text here Jun 04 17:25:10 and some further text Jun 04 17:25:12 some text here Jun 04 17:25:14 and some more Jun 04 17:25:16 and some more Jun 04 17:25:30 oops the last two and some more should be aligned with some text here Jun 04 17:25:52 can i do this with compounddrawabelleft and then set the padding on the textview to push teh text over or will that also push the drawable? Jun 04 17:26:59 lasserix_: you cant do it Jun 04 17:27:08 lasserix_: they just added an API in M to do this Jun 04 17:27:08 oh okay so it will do that automatically, is there anyway i can keep the compounddrawableleft at the top Jun 04 17:27:14 well it does it Jun 04 17:27:19 imagespan's are inline Jun 04 17:27:21 but the compounddrawable is vertically centered Jun 04 17:27:32 all spans' are inline Jun 04 17:27:38 nothing can span multiple lines Jun 04 17:27:53 your mom spans multiple lines. Jun 04 17:27:57 lasserix_: the best way to do this is to have a RecyclerView that serves multiple lines Jun 04 17:28:05 as in TextView Jun 04 17:28:23 that or use StaticLayout and draw the text yourself Jun 04 17:29:26 Hmm. FrameLayout seems to ignore its own gravity, violating the LSP. Jun 04 17:33:49 uhh is staticlayout a view? Jun 04 17:34:05 Does it extend View? Jun 04 17:34:09 lol Jun 04 17:34:32 danijoo TacticalJoke wh knows when 8 would even be usable, and how much 8 there will be Jun 04 17:35:47 Is there a setting in AS that allows me to always go to the text view of a layout rather than design? Jun 04 17:35:49 i dont know i haven't used it before Jun 04 17:36:08 Design > gear icon > Prefer XML editor Jun 04 17:36:28 TacticalJoke, a million thank you's Jun 04 17:36:48 thanks for asking useless rhetorical questions though, sooo very helpful. espicially when you antagonize people needlessly Jun 04 17:37:28 lasserix_, isnt contrl+B faster than asking a question like that? :p Jun 04 17:37:29 Is it possible to hook into Android highlight menu to add items without having to resort to modifying the framework? Jun 04 17:37:33 through standard api Jun 04 17:39:53 is there a way to preview a navigation drawer layout as open in the layout preview? Jun 04 17:40:45 danijoo: except for the fact that maybe someone has encountered a similar scenario and has a neat way of fixing it Jun 04 17:40:51 cntrl b won't give me that kind of answer Jun 04 17:41:52 you asked if a class is a subclass of another class... thats not a scenario, its just a question that ctrl+b can answer . Jun 04 17:43:31 Having not used static layout before, asking if it was a view, was more asking how is it used, since obviousily i can just cntrl b, but nevermind Jun 04 17:44:38 Is there a way to totally disable all folding in android studio? Jun 04 17:46:09 FlyingJester: Does disabling all the auto-fold settings do this? (I've never tried.) Jun 04 17:53:18 I've tried unchecking everything in preferences -> General -> Code Folding, but everything is still folded by default, and is refolded when I switch to a different file and then back. Jun 04 17:56:05 By "everything" do you mean "the default things"? Jun 04 17:56:15 (And by 'is' do you mean 'are'?) Jun 04 17:56:21 Okay, kidding about the second part. Jun 04 17:56:28 Yes. Jun 04 17:56:34 Yes to the first one. Jun 04 17:56:37 How much time should I wait between each WIFI scan to get optimal results because right now if I do 3-4-5 scans at the same location my scan results can vary very much. Jun 04 17:58:08 Actually, it seems to be interface code only that is still folded anyway, and not any code in classes. Strange. Jun 04 17:59:47 You might have to use Ctrl+Shift+Numpad(+) to override whatever was saved. Jun 04 18:02:36 The folding behaviour feels kinda complicated. It seems more consistent in 1.2 than in 1.1, but it still takes my by surprise now and then. Jun 04 18:02:41 me* Jun 04 18:03:06 The whole "Is it remembering this or doing this by default?" thing. Jun 04 18:04:08 is there a way to tell AS to just fold all the lamdas ? Jun 04 18:04:53 I think that should work if you select only "Closures" in the list of things to fold. Jun 04 18:04:58 Whether that'll actually work is another story. :D Jun 04 18:05:18 It defines "closure" as an anonymous class implementing one method. Jun 04 18:06:04 one more falls :) http://www.reddit.com/r/Android/comments/38ia98/development_of_aosp_calculator_app_ceased_say/ Jun 04 18:06:43 lol Jun 04 18:07:06 Hey guys, has anyone tried out the data binding stuff yet? Seems interesting. Jun 04 18:07:06 looks like Xiaomi is looking to acquire BB Jun 04 18:07:28 g00s: apparently they've already denied it and blamed the report on a translation error Jun 04 18:08:18 lol Jun 04 18:08:26 also, I kinda find it hard to care about the calculator :) Jun 04 18:08:38 Hey guys. I'm pretty new to Android development and I need a few simple pointers, if someone wouldn't mind. I've been reading about connecting to a VPN with Android's built-in options. There is one for a service, and one for a "client". Which one is easiest to use? Also, on the Android developer page it says something about declaring the VPN service in the manifest, but on another page it talks about putting it on the MainActivity. Neither Jun 04 18:08:38 page mentions doing both, so I'm wondering the best way to do this. Jun 04 18:08:56 Leeds yeah, i don't remember going through the code much Jun 04 18:09:05 i mostly like the aosp apps for learning Jun 04 18:10:03 I think last time I heard about the calc app, was the float precision error (56.3 - 55.7) Jun 04 18:10:22 incredible, now it ships with gplayu Jun 04 18:10:25 -u Jun 04 18:11:14 Radther: I've been way too busy and lazy. Jun 04 18:11:34 TacticalJoke: I am just about to start a new project so I'm gonna give it a go. Jun 04 18:11:43 Radther, i tried to use M preview buildtools + lastest gradle etc.. but it was failing Jun 04 18:11:45 so no Jun 04 18:12:31 adq: Strange, I haven't had any problems yet. Jun 04 18:12:42 Radther, was renderscript related Jun 04 18:12:48 Oh ok. Jun 04 18:13:09 i had good hopes that some things would be fixed (like code completion, since they are bringing more ndk support) Jun 04 18:13:25 of course, the contrary happened, the stuff was not even building properly anymore Jun 04 18:15:43 SimonVT: & Muchoz maybe I should check out what other libraries have to offer Jun 04 18:15:48 almost unrelated, saw this little article today: https://medium.com/android-bites/first-steps-with-the-design-support-library-8dcf06230ddd Jun 04 18:15:50 "Developers have enough to worry about, they shouldn’t have to waste hours implementing things like this." Jun 04 18:16:01 summarize well Jun 04 18:17:46 adq: That's a strange bug with the FABs not having shadows. Jun 04 18:18:05 there were something similar Jun 04 18:18:17 with circledimageview, at least i experimented it Jun 04 18:18:26 when the width and height was not set with a fixed size Jun 04 18:18:36 however i have no clue if these two issues are related Jun 04 18:19:26 they both show the same symptoms though, something circle is square and should not Jun 04 18:19:39 (which is also hilarious) Jun 04 18:20:08 Yeah, I can imagine a users reaction to seeing a square rather then a circle. Jun 04 18:22:38 even on the iosched app, i can see something peeking through the FAB on the bottom Jun 04 18:23:13 on 4.4 Jun 04 18:24:07 g00s: do you want your brain to hurt? Jun 04 18:24:38 http://redd.it/38im36 Jun 04 18:25:56 That guy's voice sounds fake. Jun 04 18:26:05 wontwatch :p Jun 04 18:26:56 wow. at 1.50 he says a pro of html5 apps is that google/apple can fully control which app i can install on my phone, but with html they cant.. Jun 04 18:30:01 is there anywhere I can suggest edits to the developer docs? Jun 04 18:30:20 I swear on the custom views one, there is one sentence that would make it 1000% more understandable Jun 04 18:30:22 in_deep_thought, you can edit them and make a pull request Jun 04 18:31:57 or make an issue in the issuetracker Jun 04 18:32:06 https://code.google.com/p/android/issues/list yeah here Jun 04 18:32:16 danijoo: that's because you can't install html5 web app on phone (or anywhere). it's online. Jun 04 18:32:32 icedp: I see his point of course Jun 04 18:32:33 yes you can Jun 04 18:32:36 danijoo: ^ Jun 04 18:32:44 icedp, its still bullshit Jun 04 18:32:49 I can also crossload apks Jun 04 18:33:21 only because they control play store this doesnt mean the fully control what i install Jun 04 18:33:39 because with that logic they would also fully control that i cant run html5, because i cant install it through the store ;p Jun 04 18:35:35 Is there a way to reduce more than the pre config settings one emulator device screens size? Jun 04 18:35:53 s73v3r: *web* apps Jun 04 18:36:22 I did choose 10px per 1px on a Nexus 7 but still too big to my screen. Jun 04 18:36:45 I don't have a retina display yet :P Jun 04 18:36:59 s73v3r: well, I don't sure now. is packaged html5 app is still counted as web if it runs in the browser? Jun 04 18:37:39 You can package your web app in such a way that it is “installable” from the website. I believe forecast.io does this Jun 04 18:38:56 hello Jun 04 18:39:50 does anybody know how much does a game application make ? Jun 04 18:40:16 in $ ? Jun 04 18:40:22 anywhere from $0 to a kabillion Jun 04 18:40:22 yes Jun 04 18:40:25 $1456.67 Jun 04 18:40:40 between 0 and dagobert duck Jun 04 18:40:41 MikeClassic: thats like a really specific number :p Jun 04 18:40:59 between -$1000 and $5 Jun 04 18:41:09 okay Jun 04 18:41:17 MikeWallaceDev: Correct answer. You win a free trip to Hawaii! Jun 04 18:41:28 but MikeWallaceDev didn't specify a period. could a hour or thousand years Jun 04 18:41:28 don't listen to s73v3r he's just saying crazy stuff. The real answer is $1456.67 Jun 04 18:42:18 actually icedp it's per Kilogram. Jun 04 18:42:33 I'm sorry I know its a lame question but soon I will be releasing my first app and I really need it to hit off a bit Jun 04 18:42:50 My life depends on it actually Jun 04 18:43:27 Man, the IQ average just drops by 12 points when I enter the room :) I say the dummest things :D Jun 04 18:43:37 you would be far, far, far better served by getting a job Jun 04 18:43:51 what is your marketing plan for your game? Jun 04 18:43:55 dony, someone is going to kill you over a game? Must be a good game. Jun 04 18:44:04 what is your business plan for your game? How much are you charging for it? Jun 04 18:44:32 s73v3r: its for free Jun 04 18:44:34 Hi TacticalJoke :) Jun 04 18:44:43 interstitial ads Jun 04 18:44:53 its not actually about the money Jun 04 18:45:02 Hay. Jun 04 18:45:06 its more about being successful at something I enjoy Jun 04 18:45:10 dony: Are you really going to die if this doesn't succeed? Jun 04 18:45:11 and how are you planning on getting people to download it? and keep playing it? Jun 04 18:45:18 and it’s always about the money. don’t kid yourself Jun 04 18:45:36 TacticalJoke: Well lets say fall into a really bad depression Jun 04 18:45:39 TacticalJoke: https://www.google.co.uk/search?q=hay&safe=off&es_sm=91&tbm=isch&imgil=aoH4pqyJz2HwzM%253A%253Ba1CH1WPnZVrrOM%253Bhttp%25253A%25252F%25252Fwww.wisegeek.com%25252Fwhat-is-hay.htm&source=iu&pf=m&fir=aoH4pqyJz2HwzM%253A%252Ca1CH1WPnZVrrOM%252C_&usg=__OYSt7CMKhLfSrWrBaOgQIz0tGbg%3D&biw=1920&bih=985&ved=0CD0Qyjc&ei=tpxwVaudPMP1UL6LgMgM#imgrc=aoH4pqyJz2HwzM%253A%3Ba1CH1WPnZVrrOM%3Bhttp%253A%252F%252Fimages.wisegee Jun 04 18:45:40 k.com%252Fbale-of-hay.jpg%3Bhttp%253A%252F%252Fwww.wisegeek.com%252Fwhat-is-hay.htm%3B1000%3B663 Jun 04 18:45:54 Not sure if want. Jun 04 18:45:54 MikeWallaceDev: is your vid up yet? Jun 04 18:46:03 s73v3r: I'm not really sure Jun 04 18:46:11 Mostly facebook posts Jun 04 18:46:12 I didn't hear about it lasserix_ Jun 04 18:46:21 unless you have plans for that, your game is likely to fail Jun 04 18:46:26 and keep making updates to the game Jun 04 18:46:37 man, they did slow down a lot... I only heard about that one and only vid that they released Jun 04 18:46:39 dony: The secret is to obsess over *two* things. Jun 04 18:46:56 So you don't become too dependent on one. Jun 04 18:47:03 hey MikeWallaceDev Jun 04 18:47:07 s73v3r: so How can I make plans? my brothers work in advertising maybe they can help? Jun 04 18:47:08 hey Napalm :) Jun 04 18:47:18 do it Jun 04 18:47:22 dony; you better go buy a bunch of xanax because your game will probably fail to do what you want. Jun 04 18:47:27 especially if they’re any good Jun 04 18:47:29 whats this vid? Jun 04 18:47:34 TacticalJoke, yeah, but witch one should he obsess over?? That question always bothers me a lot Jun 04 18:47:41 lasserix_: I'm already on pills Jun 04 18:47:45 they don't help much Jun 04 18:47:45 dony: https://play.google.com/store/books/details/Google_Inc_The_Secrets_to_App_Success_on_Google_Pl?id=GJ0kBQAAQBAJ&hl=en Jun 04 18:47:57 Meta-obsession. Jun 04 18:47:58 I have tantrums weekly Jun 04 18:48:04 Napalm, my presentation at DroidCon Jun 04 18:48:05 That book may help. Jun 04 18:48:08 dony: then you are taking the wrong ones. anyways, can you give me an overview of the game? Jun 04 18:48:13 dony: My niece does that. Are you really young? Jun 04 18:48:19 ie, what's it like / any other games like it, etc? Jun 04 18:48:22 I'm 22 Jun 04 18:48:27 MikeWallaceDev: you did one? which droidcon? Jun 04 18:48:29 far, far, far too many devs release their apps without any plans on how to get people to download them, and then they are upset that no one downloads them Jun 04 18:48:41 lasserix_: its a balloon popping game Jun 04 18:48:42 i was thinking about doing one Jun 04 18:48:46 Napalm, DroidCon Montreal It was stressful :D Jun 04 18:48:46 London Droidcon Jun 04 18:48:51 dont say that Jun 04 18:48:51 :( Jun 04 18:48:57 dony: whose your target audience? Jun 04 18:49:25 lasserix_: Everyone can play it its not for kids its actually quite challenging so everyone is the target Jun 04 18:49:27 Napalm, well, my tech didn't like me, I flopped. It was tough. But a lot of it is my own fault. Jun 04 18:49:53 I'm super duper busy coding, so adding the DroidCon in the mix was rough Jun 04 18:50:05 lasserix_: Maybe I won't release it till I get a plan for marketing and downloading Jun 04 18:50:06 dony: well make a marketing plan Jun 04 18:50:21 dony: if you can be patient do some beta testing witha select group Jun 04 18:50:24 wait till december Jun 04 18:50:33 since downloads are exponetial in december Jun 04 18:50:38 oh Jun 04 18:50:44 figure out in app purchases to make money Jun 04 18:50:50 polish it 1001% Jun 04 18:50:57 lasserix_: I can test it with my friends I think Jun 04 18:50:58 then send it out to many app review sites Jun 04 18:51:16 try to send it to some celebrities and get them twitter about it Jun 04 18:51:20 if you can get that Jun 04 18:51:22 you're golden Jun 04 18:51:35 lasserix_: Can I ask the app reviewers not to publish their reviews unless I like it? Jun 04 18:51:39 no Jun 04 18:51:43 lol dony Jun 04 18:51:45 If only. Jun 04 18:51:49 i mean you can but that is disingenious Jun 04 18:51:59 you could ask them for a private review Jun 04 18:52:16 and then see if there is anything you want to fix, and then send it back and let them do apublic review Jun 04 18:52:28 lasserix_: A private review sounds good Jun 04 18:52:31 but they may a) not do that b) release the private because who the f-ck are you anyways Jun 04 18:53:03 anyways you need to get intnernet buzz going, so app review sites, app sites (xda forums, reddit, etc) Jun 04 18:53:19 if you can get it to either coincide with a movie about balloons by disney coming out Jun 04 18:53:27 OR more easily stick a funny meme into it Jun 04 18:53:30 and use that as an ad Jun 04 18:53:37 you can ride the momentum of the meme Jun 04 18:53:48 anyways goodluck gtg back to work Jun 04 18:53:59 thanks lasserix_ Jun 04 18:54:18 TacticalJoke: How old is your niece? I'm sure she is under 10 right? Jun 04 18:54:35 Yeah. Jun 04 18:54:59 dony: oh also start doing some kind of cardio Jun 04 18:55:08 it'll help you a thousand times more than an rx you are on Jun 04 18:55:09 I work out Jun 04 18:55:22 what? you walk 3 miles a day? wooo Jun 04 18:55:29 no pushups pull ups Jun 04 18:55:36 and squats Jun 04 18:55:38 for an hour? Jun 04 18:55:39 weights Jun 04 18:55:42 40 min Jun 04 18:55:45 or 20 Jun 04 18:55:50 somewhere in between Jun 04 18:55:54 that's not enough, you need to do some cardio too Jun 04 18:56:03 Okay I will add that too Jun 04 18:56:11 actually been meaning to add cardio Jun 04 18:56:14 if you have the money, get a nice road bike Jun 04 18:56:58 much easier to do than running, you can get a lot more place, and there's lots of cycling enthusiasts and competitions/annual cycling paths that are really fun Jun 04 18:57:14 (for instance in california, they do paths that follow the coast like 200 miles) Jun 04 18:57:24 I'm not in the us Jun 04 18:57:34 yeah it doesn't matter i was just saying Jun 04 18:57:36 I"m in a shitty country that I hate sorry Jun 04 18:57:57 then goto the nearest junk heap and put together a decent bicycle Jun 04 18:58:54 lasserix_: I have a question I have read once that you shouldn't spend too much time working on an app if you are starting as an app developper Jun 04 18:59:04 rather try to release as much as you can Jun 04 18:59:07 what do you think? Jun 04 19:00:05 The app store is full of terrible apps. Don't be another statistic. Jun 04 19:00:14 99% of what makes an app impressionable are all the little polishes, animations, smoothness of graphic effects, nice layouts, color schemes, font styles etc etc basically all the sh7t that generally is a pita Jun 04 19:00:51 when working on an app, once you get the functionality done, you can spend a long, long time polishing it. and you need polish it to make it memorable Jun 04 19:01:02 So many apps I've used crash when pressing Back while they're downloading something. The absolute basics are not in place. It's ridiculous. Jun 04 19:01:15 It's like the creators don't know the first thing about what they're doing. Jun 04 19:01:29 but if you are starting out, what you should worry about is learning how android works and how to use the sdk to program whatever ideas you have: so take as long as you need to get the basics down Jun 04 19:01:32 I just don't want to spend so much time on an app only to have it fail after so much work I've already been working on it for a long time Jun 04 19:01:47 it doesn't matter if it fails if you learned how to program better Jun 04 19:02:01 angry birds released like 11 fails before ab took off Jun 04 19:02:01 it does Jun 04 19:02:05 no it doesn't Jun 04 19:02:17 No in my situation it does Jun 04 19:02:18 a lot Jun 04 19:02:24 Just don't release it unless it's good. Jun 04 19:02:25 you can't understandt Jun 04 19:02:27 dony . if you don't want it to fail, hire someone to write it for you Jun 04 19:02:29 the goal is to become a better programmer so that when you get the vision for the app that will change everything you can make it a reality Jun 04 19:02:35 Then you'll protect yourself and the world from harm. Jun 04 19:02:36 Gryd3-Shop: of course not Jun 04 19:02:37 dony, odds are your app is going to fail Jun 04 19:02:42 accept that Jun 04 19:02:49 You can never guarentee if an app will flop or not. So write it, learn, and revise it Jun 04 19:03:00 most of us have plenty of failed apps ourselves Jun 04 19:03:21 s73v3r: How do you know if you've never seen it Jun 04 19:03:30 because i’ve seen a lot of apps Jun 04 19:03:32 dony: you need to learn how to be a good android programmer to make a decent app. you need to learn how to become a good designer to make an app that shines. it doesn't matter if the apps you make fail on the way as long as you are getting better at those two things, because eventually you will be able to put something together that shines Jun 04 19:03:47 and i’ve seen a lot of people who claim that their stuff is awesome and great Jun 04 19:04:03 and i’ve seen a lot of apps that are pretty good still fail to gain traction Jun 04 19:04:06 s73v3r: I'm not claiming its good at all Jun 04 19:04:08 my stuff is awesome and great. Jun 04 19:04:17 dony: or in other words, your priorities are backwards. your worth is not measured by how well your (initial) apps do, but how capable you are of making a good app Jun 04 19:05:48 lasserix_: I know I understand, But I'm in a very weak situation I need something to work at least a bit and tbh this is all I have college is draining me and I m going crazy Jun 04 19:05:54 and at the end of the day, this is just android and java. if as a human being your self worth is being destroyed because your android apps aren't blowing up, maybe pick another language and do something else? Jun 04 19:06:06 dony: Start with something simple. Jun 04 19:06:13 lasserix_: Not because of the android app Jun 04 19:06:14 Android programming is full of subtle complexity. Jun 04 19:06:15 dony . Are you writing this for yourself, an employer or for school? Jun 04 19:06:22 for myself Jun 04 19:06:42 i’m sorry, but you’re not unique in this situation. and just because you Jun 04 19:06:49 “need” this doesn’t mean it’s going to happen Jun 04 19:06:55 dony: as TacticalJoke said, you will ahve to start with simple things that won't take off. so be prepared, it's going to take some time before you are at the point you can make an app that will set you up for the rest of your life, if you happen to get lucky enough for that to happen Jun 04 19:06:57 you have to accept the possibility that it will be a flop Jun 04 19:07:07 dony . Just take your time to write it correctly, and if something flops, update it Jun 04 19:07:39 Everyone is saying the same thing. Just accept that you will flop and write. If you expect it you can recover from it Jun 04 19:08:19 I'm just too depressed with college (mechanical engineering) and I'm working on this to have something to look towards to, I don't want to make a million dollars far from it, a great goal would be to make about 5000 but that would be extremely ideal a good outcome is 1400 and I know that it will probably flop Jun 04 19:08:20 I was told every motorcyclist goes down. It took me 2 and a half years to wipeout, and I was confident I wasn't going to. Shit happens Jun 04 19:08:21 dony: maybe you won't get this metaphor, but if you goto a party and the first person you make a move on shuts you down, do leave the partying crying with your faces covering your obvious rejection? no. you take another shot and try again. Jun 04 19:08:35 I get it Jun 04 19:08:53 s73v3r: How do you know if I'm not unique in this Jun 04 19:08:53 ? Jun 04 19:09:03 in the situation Jun 04 19:09:07 not the app Jun 04 19:09:24 because we' Jun 04 19:09:34 most of us have met people like yourself Jun 04 19:09:43 dony there are 477 people in here working on dev work. many are not employed as Android Devs working on personal projects Jun 04 19:09:43 you don't know me Jun 04 19:09:57 I see Jun 04 19:10:09 i don’t have to. I know plenty of people like you, who have said very similar things Jun 04 19:10:09 dony: If you're disposed to depression, that's all the more reason to start simple. Jun 04 19:10:26 TacticalJoke: But a balloon game is pretty simple no? Jun 04 19:10:32 its a good simple start I think Jun 04 19:10:33 dony: really i am going to get fired if i keep talking to you and at this point if you aren't mature enough to handle you're not going to be a wonder developer overnight then you got bigger problems to deal with, but let me state a fact for you. Something like 95% of apps are never opened more than the first time: if you want a goal of "success" in making an app, simply make that goal to be an app that someone uses m Jun 04 19:10:34 ore than once. Jun 04 19:10:48 If your in a financial pickle, betting your future on an android app is a horrible way to fix it Jun 04 19:11:00 Gryd3-Shop: not in a financial pickle Jun 04 19:11:05 android apps don't make money... not as an indie dev for the vast majority Jun 04 19:11:14 lasserix_:I got your point 100% Jun 04 19:11:26 lasserix_:thank you for your help Jun 04 19:11:33 please don't get fired Jun 04 19:11:40 Then if it's not financial motivation, who cares if your app flops Jun 04 19:12:21 dony start small, keep making things you can finish. build a portfolio and move somewhere where you can pull in 100k US$ a year and that will probably be good enough. Jun 04 19:13:43 so I can expect to make 0 $ then or 5$? Jun 04 19:14:28 hey devs, does data wipe also delete init.d scripts in etc/init.d? Jun 04 19:14:31 If you want to feel good, why not release something awesome for free? :D Jun 04 19:14:59 dony . have you built an app before? Jun 04 19:15:00 TacticalJoke: Well I don't know if I can make something awesome but My first game will be for free this balloon game is for free Jun 04 19:15:19 you realize that unless it LOOKS amazing, no one will buy it. Jun 04 19:15:32 build a free app, and stick some ads in it tastefully Jun 04 19:15:53 When you know what your doing, try to sell your app, or rely on in-app purchases Jun 04 19:16:10 or heck... make a Kitten live wallpaper and sell it for a couple bucks Jun 04 19:16:13 Gryd3-Shop: This is my first app that will be released but I have built small apps before like tetris and conways game of life Gryd3-Shop also I asked an artist friend to do the graphics it looks really nice and the adds are interstitial Jun 04 19:16:14 people are suckers for cats Jun 04 19:16:25 Gryd3-Shop: hehehe yes cats are nice Jun 04 19:17:46 I'm done talking about this though, and would love to hear if anyone has any ideas on how I can manipulate the mediastore public database to correct Samsung's stupid MediaScanner behavior Jun 04 19:18:38 what the bloody hell. AS won't stop at my breakpoints even after restarting it, the emulator, and adb Jun 04 19:25:44 How not to make a Github issue: https://github.com/Raizlabs/DBFlow/issues/259 Jun 04 19:26:16 new fragmentedpodcast is out ! Jun 04 19:26:54 shmooz, if only I ever had time to listen to those. Jun 04 19:27:13 I've tried starting to listen to podcasts, never sticked with me. Jun 04 19:27:37 Muchoz: you just run them in the background while doing what you usually do Jun 04 19:27:51 shmooz, most of them require some attention :p Jun 04 19:28:13 I got a question, When I try and hide an app from the launcher, with: , It still whows up? is there something im missing ? Jun 04 19:33:06 anyone who uses a mac what's the keyboard shortcut to push all the windows to the side and miniturize them so i can select the one i want if i have a bunch of thhem overlapping? Jun 04 19:33:31 3 or 4 finger swipe up, I think Jun 04 19:34:01 i have that bound to mousing up to the top left corner Jun 04 19:34:13 lasserix_, there is no keyboard shortcut besides the one of the builtin one. I made my own shortcut for it. Jun 04 19:34:25 (The built-in keyboard) Jun 04 19:34:34 but on the keyboard, mine says ^-up Jun 04 19:34:57 hmm i know i didn't accidently some how once Jun 04 19:35:03 ah well thanks Jun 04 19:35:10 s73v3r, haha, I use CMD+up. Jun 04 19:35:11 can anyone help me fix this.. i spent over an hr to fix this but no luck.. http://pastebin.com/8AfEnP9g Jun 04 19:35:31 i get this error during the build http://i.imgur.com/sIb8Yt7.png Jun 04 19:35:43 Muchoz: I bind CMD+left/right to switching desktops Jun 04 19:35:44 there isnt no stracktrace logs.. Jun 04 19:35:47 Muchoz: thats it! Jun 04 19:35:49 s73v3r, same. Jun 04 19:35:56 thanks Jun 04 19:35:57 DarkChaoz, it speaks for itself. It doesn't have the method. Jun 04 19:36:19 DarkChaoz you can copy text Jun 04 19:36:32 Im not sure how to fix it.. since I attempted to redo my feature in async task Jun 04 19:36:39 not good at implementing async Jun 04 19:36:59 DarkChaoz, my guess is that whereever you're calling getView() that's causing the error is oustide the scope of the getView() declared Jun 04 19:37:07 DarkChaoz: which lib does RSSReader type come from ? Jun 04 19:37:47 its a custom class to fetch the feed from url Jun 04 19:37:49 You declared getView() within the adapter, but then you try to call it outside of that Jun 04 19:38:01 i did try that same issue. Jun 04 19:38:03 shmooz, Ty Smith from Twitter agrees with me on 9:20 of the Podcast. We for the love of god cannot detect when the keyboard is up! Jun 04 19:38:15 i tried putting it in oncreate Jun 04 19:38:21 still gives that error Jun 04 19:38:23 keyboard + task stack = LOVE that both were mentioned. Jun 04 19:38:29 also cameras omfg Jun 04 19:38:48 why is it in the adapter? Jun 04 19:39:08 an I/O where they did nothing but say "you can detect the keyboard" + "all cameras at this API level actually conform" would be the best I/O ever. Jun 04 19:39:17 yup Jun 04 19:39:19 DarkChaoz: Just remove `getView().`. Jun 04 19:39:23 DarkChaoz, the problem is that an Activity doesn't have the method getView then. Jun 04 19:39:40 I did that tacticaljoke but then its get stuck on a loop Jun 04 19:39:51 TacticalJoke is right Jun 04 19:39:54 DarkChaoz, stuck on a loop? Jun 04 19:40:03 not having an api to detect keyboard fml Jun 04 19:40:04 hold on Jun 04 19:40:09 let me run it and show you. Jun 04 19:40:09 groxx, but there are workarounds at least Jun 04 19:40:10 pfn, ikr. Jun 04 19:40:20 pfn: like "don't use the camera API"? Jun 04 19:40:28 pfn, there are no workarounds that are 100% working. Jun 04 19:40:29 oh, keyboards. yeah, I've got one that seems to be reliable on all API levels Jun 04 19:40:37 it's still crap. Jun 04 19:40:54 and doesn't work if the device ignores your settings and chooses adjustPan (HTC incredible does this) Jun 04 19:41:32 indeed Jun 04 19:41:35 adjustPan fml Jun 04 19:41:48 * adq shrugs Jun 04 19:41:50 :'D Jun 04 19:41:52 nice idea! but _idiotic_ without being queryable / settable. Jun 04 19:42:25 pfn, groxx, TextEdit + center_horizontal + adjustPan = I only work once. Jun 04 19:42:41 = me not using center_horizontal Jun 04 19:42:51 = design ugly Jun 04 19:43:01 ok, time to try out the support design lib Jun 04 19:43:04 odd. seems like that shouldn't be related... Jun 04 19:43:27 pfn: I'm not going to pull you out if I hear screams Jun 04 19:43:35 I don't want it to see me Jun 04 19:44:22 groxx, it has been an issue for 2 years. Haven't tested in M yet. Jun 04 19:44:36 I have a canvas pretty much the size of the screen that has a bitmap drawn on it. On touch events, the bitmap gets dragged, rotated, scaled ect all while recording its position on screen. I am wondering if its possible to do a “reachthrough effect”. Where only touching the bitmap itself enacts this onTouchEvent. A touch anywhere else on the canvas reaches through to the layer below. Can I enact an onTouchEvent for only a part of the canvas? Jun 04 19:44:45 here it is tacticaljoke http://i.imgur.com/F819zOl.png Jun 04 19:44:53 it stucks like that if i remove getview Jun 04 19:44:55 or is a canvas then probably not the right tool if this is my desired action….? Jun 04 19:45:05 hey TacticalJoke wheres the new aqua apk? Jun 04 19:45:39 DarkChaoz: Isn't that another problem? Jun 04 19:45:48 I have an ExpandableListView in a Fragment. Where does the onChildClickListener go and point to? Jun 04 19:46:10 hmm, support-design FAB doesn't have show-hide, that sucks Jun 04 19:46:13 lasserix_: first you have to wait for the new language, TacticalJava Jun 04 19:46:19 lasserix_: I've been so busy lately. ;o I'll try to send soon. Jun 04 19:47:18 DarkChaoz: I would consider the fact that you couldn't compile and now you can compile to be a positive step. Jun 04 19:48:22 in_deep_thought, that's actually the default behaviour Jun 04 19:48:40 in_deep_thought, but "Canvas" isn't a view Jun 04 19:48:42 in_deep_thought: not if it's not rectangular. but if you e.g. getMatrix().mapRect(image_rect, view_rect) you'll be able to get the bounds of the bitmap in the display's coordinates. it's pretty easy then to see if touchDown is inside the bounds. Jun 04 19:48:47 heh, yeah, I'm not using support-design, too many changes for not enough worth Jun 04 19:48:55 in_deep_thought, so what exactly do you have? Jun 04 19:49:05 pfn, colour us surprised ;) Jun 04 19:49:07 shmooz: I would love to use my own language. :D Jun 04 19:49:14 if it is rectangular, you might be able to use a TouchDelegate, but I suspect that's more trouble than it's worth. Jun 04 19:49:15 Though it'd end up being way too much like Kotlin. Jun 04 19:49:30 pfn, also, how DARE you not use the one and only holy implementation by Google Jun 04 19:49:32 ;) Jun 04 19:51:26 Mavrik: ok I guess its a custom view that takes a bitmap as an argument and draws it inside of it. Then touch events to the custom view eact this bitmap scaling and rotating, etc. Jun 04 19:51:47 I would like ontouch to only fire when I touch the bitmap itself Jun 04 19:51:56 rather than any time I touch anything inside the custom view Jun 04 19:52:22 and further, when I touch outside this bitmap, it should reach through to the view below it Jun 04 19:52:37 in_deep_thought, well, yeah Jun 04 19:52:49 is that possible? Jun 04 19:53:00 that's what the return value of onTouchEvent does Jun 04 19:53:02 in_deep_thought: ah. just return false from the onDown that's outside the image's bounds. you won't get any other calls, and it'll "fall through" automagically Jun 04 19:53:17 s/onDown/MotionEvent.ACTION_DOWN/ Jun 04 19:53:38 in_deep_thought, true => "I have handled the event, do not propagate it further" Jun 04 19:53:49 in_deep_thought, false => "I did nothing with the event, propagate it to children" Jun 04 19:53:52 Mavrik, yeah, chinese and russian material edittext and fab much nicer Jun 04 19:54:06 note that you need to make that decision in ACTION_DOWN Jun 04 19:54:29 groxx: using getMatrix().mapRect(image_rect, view_rect) would that return a true or false value? Jun 04 19:54:52 it would return a rect. Jun 04 19:54:55 in_deep_thought: it'll write the result to one of the rects you pass in. or I think there's a three-rect variant that has a separate out value. Jun 04 19:54:55 which is not a boolean. Jun 04 19:55:32 nah dawg. dis is graphics codez. ain't no `new`s, just out-params Jun 04 19:56:30 so I need an if statement and a bit of math to see if the touch is inside of the getMatrix() rectangle Jun 04 19:56:44 mhm. Jun 04 19:56:55 yep. and watch out for rotations. Jun 04 19:57:15 eek Jun 04 19:57:33 wait you mean if its rotated so that the edge is outside of the view, but the center is still inside? Jun 04 19:57:43 or, hm. maybe Rect.intersects(mapped, new Rect(touch.x, touch.y, touch.x, touch.y)) will work? Jun 04 19:59:24 as an alternate approach, is there a way to perform matrix transformations on a view? And then just move the view around inside of the fragment rather than the bitmap inside of a canvas Jun 04 19:59:49 view around inside of the layout * Jun 04 19:59:52 hm, seems like maybe not. and I'm not sure how mapRect handles rotations, actually. I haven't had to do rotations yet. Jun 04 20:00:02 in_deep_thought, you can use scrolling logic Jun 04 20:00:09 in_deep_thought: you can .translateX/Y, .rotate, .skew, etc Jun 04 20:00:11 in_deep_thought, which is apt if you're actually scrolling stuff around Jun 04 20:00:28 in_deep_thought, since it'll ease display of scrollbars and some other stuff. Jun 04 20:00:34 setTranslateX() etc. also works Jun 04 20:00:39 but it doesn't really solve your problem Jun 04 20:00:44 because translations don't move the touch area Jun 04 20:00:57 @tacticaljoke getview is needed Jun 04 20:01:00 they do. not sure about skews / etc though Jun 04 20:01:08 because if i do it without asynctask it works fine Jun 04 20:01:18 also Rect.intersects works only for squares with parallel sides. Jun 04 20:01:20 so no rotation for you ;) Jun 04 20:01:20 translations _didn't_ move the touch area, but that was fixed in honeycomb iirc Jun 04 20:01:31 but what im trying to do is do to redo the rss feed using async task Jun 04 20:01:38 groxx, nop. Jun 04 20:01:52 removing getview would cause problems even if it manages to compile Jun 04 20:02:45 If `findViewById(whatever);` is wrong then when you say `listView.setAdapter(whateverElse);` you'll get a NullPointerException. Jun 04 20:03:10 It just seems like you don't understand what you're doing, to be blunt. Jun 04 20:03:13 Mavrik: so when an object is rotated, Rect.intersects will just be bigger than necessary right? because it has to form an xy square instead of a rotated one…? Jun 04 20:03:57 i should just ditch async task.. i'll leave it how it is.. Jun 04 20:04:05 have no idea how to fix it.. Jun 04 20:04:10 Why not learn? Jun 04 20:04:22 in_deep_thought, seems so: http://grepcode.com/file/repository.grepcode.com/java/ext/com.google.android/android/5.1.0_r1/android/graphics/Rect.java#Rect.intersects%28android.graphics.Rect%2Candroid.graphics.Rect%29 Jun 04 20:04:44 (if it's rotated in the center point) Jun 04 20:05:12 I also don't think you can get away with networking operations on the main thread on any modern device. Jun 04 20:05:37 3.0 and above, I guess. Jun 04 20:05:37 it will be more trouble of figuring out the issue.. Jun 04 20:05:43 damn -_- Jun 04 20:05:58 then i got no choice then -_- Jun 04 20:06:20 It's not hard. Jun 04 20:06:46 im an android noob.. so you cant assume that Jun 04 20:06:55 Mavrik: is too. check ViewGroup#dispatchTouchEvent. it calls isTransformedTouchPointInView to tell if it should dispatch to that view. that checks the transformation matrix (well, mTmp..., but that's kept up to date as the translate/rotate/etc values are set) Jun 04 20:07:04 (Well, any asynchronous stuff has complicated implications, but you can probably live in blissful ignorance of most or all of them here.) Jun 04 20:07:17 Mavrik: also, just try translating a view around the screen. it's still tappable. Jun 04 20:07:19 groxx, ok :)) Jun 04 20:07:25 it's possible to keep SD mounted into telphone while usb is connected to pc ? Jun 04 20:07:38 DarkChaoz: If the project is too difficult for you right now then maybe it'd be better starting with something simpler. Jun 04 20:07:51 nah majority of the project is done Jun 04 20:08:05 im just need to redo two features using async Jun 04 20:08:16 since both is done on main thread Jun 04 20:08:20 ech0s7, SD does not unmount when you plug in the phone into PC. Jun 04 20:08:22 never did. Jun 04 20:08:34 it does in some connection modes Jun 04 20:08:34 since 4.x it doesn't dismount even when you access files. Jun 04 20:08:50 Mavrik: yes i know, but i would keep SD mounted into PC and Android device Jun 04 20:09:02 ech0s7, over which protocol? Jun 04 20:09:07 DarkChaoz: Do *all* the GUI stuff on the main thread. The slow stuff can happen in the background. Jun 04 20:09:11 ech0s7, what devices, what OS? Jun 04 20:09:16 is it true that we cannot create extensions, plugin nor addon for Safari, firefox and Chrome mobile version (iOS and android)? Jun 04 20:09:27 Mavrik: linux, nexus 5 Jun 04 20:09:34 DarkChaoz: That includes instantiating the adapter. It makes no sense for that to happen in a background thread. Jun 04 20:09:45 ech0s7, ooook.... what is this "SD" you're talking about? Jun 04 20:09:57 N5... so just the internal emulated SD? that's never unmounted afaik Jun 04 20:10:11 Voyage, Firefox Android has extensions Jun 04 20:10:19 Chrome Android doesn't Jun 04 20:10:21 dunno for Apple crap Jun 04 20:10:31 Mavrik: or external sd or internal sd Jun 04 20:10:40 ech0s7, there is NO sd on Nexus 5 Jun 04 20:10:44 so again. Jun 04 20:10:45 so i intiate the adapter in oncreate? Jun 04 20:10:48 Mavrik, are you sure that chrome as not extensions? Jun 04 20:10:58 very strange behaviour Jun 04 20:11:00 iOS doesn't have any extensions, though there are some 3rd party (aka, webview wrappers) that add some specific ones Jun 04 20:11:01 Yes. Jun 04 20:11:04 Mavrik: yes, but is mounted the same Jun 04 20:11:12 No. Jun 04 20:11:14 i am trying to httpurlconnection to detect for a captive portal Jun 04 20:11:21 Voyage: yeah, chrome on android or ios doesn't have extensions. firefox on android does. Jun 04 20:11:21 but i get ioexception instead! Jun 04 20:11:24 ech0s7, last time, what are you talking about? Jun 04 20:11:33 ech0s7, how are you "mounting" stuff? Jun 04 20:11:39 DarkChaoz: Put only the slow stuff in AsyncTask.doInBackground. Everything else should be on the main thread. Jun 04 20:11:39 well i'll give another attempt at it lol Jun 04 20:11:43 Since Nexus 5 has no SD card and does not unmount anything when you plug it anywhere. Jun 04 20:12:15 i dont get it Jun 04 20:12:23 Mavrik, groxx someone guided me contrary. may I share it? Jun 04 20:12:23 Mavrik . newer android phones dont unmount things either thanks to the MTP and PTP connection methods Jun 04 20:12:35 Nick-S: check the stack trace Jun 04 20:12:35 is there any way to see which sockets are used by the HttpUrlConnection openConnection() ? Jun 04 20:12:37 brb Jun 04 20:12:38 Voyage: You keep linking these two things. Browsers and the extensions are completely separate on mobile. They aren't related at all. There is no cross-over, nothing specific to browser applications, and best of all: not restricted to browsers, either. _Any_ app benefits from these extensions. Jun 04 20:12:39 Wrong question, Voyage. These aren't really "browser extensions", they're operating system ones. Jun 04 20:12:52 Gryd3-Shop, and what did I say?! Jun 04 20:13:38 Mavrik . you stated the Nexus 5 does not unmount things due to lack od microSD card chill out Jun 04 20:13:58 but another thread using retrofit to make calls shows me a successful request!!! Jun 04 20:14:00 Gryd3-Shop, I think you misunderstood. Jun 04 20:14:10 How can I pass the textview of a clicked listview item to a new activity? Jun 04 20:14:13 (showing the captive portal re-direct in the headers) Jun 04 20:14:15 Nick-S: stack trace probably tells you exactly why Jun 04 20:14:17 Voyage, hmm, I'm not sure what are you asking... even they explained to you that those aren't browser extensions. Jun 04 20:14:24 stack trace? Jun 04 20:14:28 of what? Jun 04 20:14:35 b2zeldafreak: Passing a TextView to an Activity? I don't see how that makes sense. Jun 04 20:14:38 Nick-S: you're getting an IOException, yes? what's the stack trace there? Jun 04 20:14:40 Mavrik, did he explained correct? Jun 04 20:14:52 actually this is indeed interesting, cuz the e.getMessage() is empty... Jun 04 20:14:58 Mavrik, groxx if safari dont has extensions in ios then whats this? https://csdashlane.zendesk.com/hc/en-us/articles/202625062-How-to-use-the-Safari-extension-on-iOS-8 Jun 04 20:15:02 TacticalJoke: Not the textview itself, just the string it contains Jun 04 20:15:10 b2zeldafreak: Just add a string extra to the intent. Jun 04 20:15:14 Nick-S: probably easiest to just e.printStackTrace(), then you'll get it in your logcat in the error stream Jun 04 20:15:19 Voyage, why are you asking us about iOS stuff on Android channel? Jun 04 20:15:31 groxx: ya i just did that Jun 04 20:15:34 am. you told that.. about ios. thast why Jun 04 20:15:37 Right, I'm having trouble getting the text out of the textview. I guess I need to do FindItemByID or whatever Jun 04 20:15:55 Voyage, I said "I don't know about Apple stuff" Jun 04 20:16:14 I only said that Firefox on Android has extensions, Chrome doesn't. Jun 04 20:16:23 oh interesting, ios8 does have some kind of extension mechanism. cool. wonder why it took so long :| Jun 04 20:16:27 thanks! Jun 04 20:16:47 it does nothing!!! Jun 04 20:16:51 very strange!! Jun 04 20:17:08 yep, findViewById appears to be working Jun 04 20:17:22 Roger that. Jun 04 20:17:28 groxx, dude, it took until like ios4 for it to get copy/paste, and until ios5 to get folders Jun 04 20:17:31 lol Jun 04 20:17:59 groxx, the implementation is pretty interesting Jun 04 20:18:16 yeah, but Safari extensions (like (many) Chrome extensions, so it's weird they don't have them on mobile either) are just HTML + JS + CSS. there's no problem "porting" them to mobile. Jun 04 20:19:05 groxx, uhm Jun 04 20:19:08 groxx, the extension he links Jun 04 20:19:11 Mavrik: implementation of? too many parallel threads :| Jun 04 20:19:12 aren't Safari extensions Jun 04 20:19:18 it's the iOS8 extension mechanism Jun 04 20:19:24 which has nothing to do with what Safari does on desktop Jun 04 20:19:25 bah. just their app extension thing? Jun 04 20:19:28 alas Jun 04 20:19:30 yes Jun 04 20:19:33 hosted code :) Jun 04 20:20:05 s/t// :p Jun 04 20:20:24 groxx: wow it does not print anything!! Jun 04 20:20:40 Nick-S: pastebin some code? seems like there might be something weird going on Jun 04 20:22:34 http://hastebin.com/onequweqas.avrasm Jun 04 20:23:11 Dat syntax highlighting doe. Jun 04 20:23:34 doe? Jun 04 20:23:48 Though. Jun 04 20:24:00 d'oh Jun 04 20:25:14 Nick-S: you're sure it's still the IOException happening? I'd probably start by adding e.printStackTrace() to every catch block Jun 04 20:25:31 well i see that log.e Jun 04 20:25:49 is there a library for converting html tags to spannable? Jun 04 20:26:12 lasserix_: Html.fromHtml("the html") Jun 04 20:26:27 also, it's extensible. and reasonably simple to read / recreate. Jun 04 20:26:36 I like this method name: preferNothing() Jun 04 20:27:27 haha Jun 04 20:27:51 man I'm good, whatever dude, I have no preferences Jun 04 20:27:52 :p Jun 04 20:28:09 would you say you... _prefer_ to have no preference? Jun 04 20:28:12 preferNothing!!! Jun 04 20:28:27 i could pass null to the preferWifi Jun 04 20:28:28 groxx i read that is much slower than spannable Jun 04 20:28:38 i can be stupid sometimes too :) Jun 04 20:28:40 is there a way to get the original text from a spannable? Jun 04 20:28:48 groxx, no man, it was totally decided for me, 'cause I can't make up my mind or something or whatever Jun 04 20:28:52 there was a reason for this but nevermind Jun 04 20:29:07 this is NOT THE PROBLEM!! i commented both prefer methods and got the same results Jun 04 20:29:07 lasserix_: it produces spanned text. it may have some tags you don't want to read in, and it's far from a complete html -> string library, but it's not really _bad_ afaik Jun 04 20:29:29 groxx i almost have exclusively used it Jun 04 20:29:36 but since MWD was so gung ho about the power Jun 04 20:29:43 lasserix_, your other option is to manually build spannables yourself ;) Jun 04 20:29:44 and somewhere i read spannable was waaaay faster Jun 04 20:30:05 or, I think I read it was using TagSoup internally? that would probably be slow (but permissive) HTML parsing (which is correct if you're handling arbitrary HTML) Jun 04 20:30:13 wakelock yeah problem i need to build a transducer for it so thats why i was asking for a library Jun 04 20:30:29 can someone tell me if this should be a buildable project: https://github.com/lukehutch/android-multitouch-controller/tree/master/MTPhotoSortr . Doesn’t it need at least a build.gradle file? Jun 04 20:30:30 *since it is arbitrary html Jun 04 20:30:45 so is there anyway to get original characters from a spannable? Jun 04 20:31:04 I'd say no Jun 04 20:31:15 .toString :) Jun 04 20:31:16 usualy Jun 04 20:31:47 that wont return the spans embedded Jun 04 20:31:48 in_deep_thought, that looks like a legit complete buildable project. why do you think everything under the sun was made with gradle in mind? Jun 04 20:32:08 iono Jun 04 20:32:09 lasserix_: that would fit with "get original characters"... Jun 04 20:32:10 ok thanks Jun 04 20:32:26 or am I misreading? Jun 04 20:32:34 groxx sorry i am tired, what was that? Jun 04 20:33:17 groxx, "foo bar" -> a bunch of spannables. I doubt there's a way to get the original html back Jun 04 20:33:20 lasserix_: typically, ideally, spanned text doesn't modify the underlying string. it just annotates it + changes its rendering. if you .toString(), since that's all rendering behavior, you just get the underlying sequence of letters. Jun 04 20:33:35 ? Jun 04 20:33:41 didnt like my code? :) Jun 04 20:34:09 groxx, yeah so you'd have to figure out the underlying "styling" and rebuild the html from it. doubt that's built-in ;) Jun 04 20:34:36 like, if it has the ITALIC flag set somewhere, then surround the text with Jun 04 20:34:38 there's also Html.toHtml :) Jun 04 20:34:58 really? wow, I didn't know about this Jun 04 20:35:53 afaik it only generates html from the tags it recognizes (so you can lose stuff if you toHtml(fromHtml)), but I haven't used it extensively Jun 04 20:36:26 but toString() on fromHtml() might return the original text, I don't see anything in the code implying it _can't_, and that's pretty common behavior Jun 04 20:36:37 I could just be missing the line that changes things though Jun 04 20:37:36 w00t, 13:37 o-clock Jun 04 20:39:43 yeah Jun 04 20:39:56 google photo now you can upload unlimited HQ photos and videos for FREE Jun 04 20:39:57 weeee Jun 04 20:40:17 now in a hundred years they can give the robots they'll replace us with our souls reconstructed through our media Jun 04 20:40:21 their earlier 2048x2048 limit on images was a bit too small, yeah :| Jun 04 20:40:50 though it seems weird that they allow 1080p, but not 4k. most new phones do 4k, including the nexus 6. Jun 04 20:42:56 is it just me, or does the layout editor not render a preview if your root element is a CardView? Jun 04 20:43:13 just you Jun 04 20:43:36 dunno. never tried. Jun 04 20:49:18 New question: How can I make the keyboard show up when a new activity is started? Jun 04 20:49:52 b2zeldafreak: set focus to a view Jun 04 20:49:55 tag in the EditText where it should be focused. Jun 04 20:50:55 I didn't even know that was a thing Jun 04 20:51:14 anyone know when the 2nd gen moto 360 drops? Jun 04 20:51:30 tricknology: when someone lets go of it Jun 04 20:51:32 It doesn't seem to have worked Jun 04 20:51:51 badum pssssh Jun 04 20:52:40 b2zeldafreak: there's also http://developer.android.com/reference/android/view/WindowManager.LayoutParams.html#softInputMode on the activity, you can set softInputMode="alwaysVisible" Jun 04 20:52:59 tricknology: I would imagine it's pretty soon, since they were/are running a $100 off for the current gen Jun 04 20:53:10 gotta get rid of the flat tire stock somehow Jun 04 20:53:26 ah, windowSoftInputMode Jun 04 20:54:05 yeah I know.. seems kind of a shame not to pick that one up.. but then again no reason.. Jun 04 20:54:56 that is a really terrible marketing image: http://cl.ly/image/422w1h40392h gold, gold, gold, FLAT TIRE OMFG, gold, gold, gold Jun 04 20:55:40 I was wondering about that... Jun 04 20:55:51 wtf is that? Jun 04 20:56:14 save money on pixels? Jun 04 20:57:19 much better: http://www.androidpolice.com/2014/09/26/motorola-why-must-you-torture-me-with-these-two-clear-shots-of-the-perfectly-round-moto-360-without-the-flat-tire-look/#ap-lightbox Jun 04 20:59:23 yeah. it seems like a decent watch (especially for the first round of Wear devices), but the flat tire is awfully big Jun 04 20:59:34 fix that + slightly thinner = I'll probably buy one Jun 04 20:59:39 if only for development purposes Jun 04 21:01:06 maybe it wouldn't be so bad if they made the flat tire match the color of the rim? a gold flat tire would be much more... blingy, at least Jun 04 21:03:46 but most of the time, the watch is gonna be in standby mode with the black watchface Jun 04 21:05:01 hi all, does anyone know of a good first app tutorial? In c++ if possible Jun 04 21:10:49 how do i get this in my stack: com.android.okhttp.internal.http.HttpURLConnectionImpl.getResponseCode Jun 04 21:11:05 i mean i did not explicitly include okhttp but its there, does it come with retrofit? Jun 04 21:11:11 it's in Android Jun 04 21:11:12 the OS Jun 04 21:11:16 look at the package name Jun 04 21:11:19 yes i did Jun 04 21:11:22 i was surprised Jun 04 21:11:27 Tazmain: probably worth learning Java, since so much of the framework is written in it. also android studio's NDK support is only in preview right now, so the "official" way to do it, going forward, is pretty much undocumented right now. Jun 04 21:11:43 when i do my own HttpURLRequest it fails compared to the okhttp one Jun 04 21:11:54 i think they delegate the socket differently maybe Jun 04 21:12:04 groxx, I know java, is what I code in daily. Which is why i want to do this app in C++ Jun 04 21:12:21 Tazmain: lol, good reason :) Jun 04 21:12:45 groxx, :p I see there is android-qt5. Now that looks promising Jun 04 21:13:07 Yeah, don't do that :/ Jun 04 21:13:38 Mavrik, reffering to me ? Jun 04 21:13:45 well, if you want to use android studio, you'll have to switch it over to the preview ("canary") build. otherwise you're welcome to `make` however you like and just include the binary in a "normal" app, or use Eclipse. Eclipse will probably have some native-android-app tutorials out there, since it has had NDK support for a while Jun 04 21:13:58 Yes, pain, torture and self-loathing lies that. It's the wrong tool for the job. Jun 04 21:14:13 JakeWharton: when i used HttpURLConnection it uses okhttp? Jun 04 21:14:18 yes Jun 04 21:14:29 OkHttp is the implementation of HttpURLConnection on 4.4+ Jun 04 21:14:38 Mavrik, well I have no idea what app to write in C++, so I figured why not make an android app Jun 04 21:14:47 Tazmain: You’ll be better off if you try not to learn both C++ and Android Jun 04 21:14:55 ^ Jun 04 21:15:17 Tazmain, do something on desktop :/ Jun 04 21:15:18 Really. Jun 04 21:15:27 Tazmain, what about a simple ci tool? Jun 04 21:15:28 Especially if you don't know how GDB and compilers work Jun 04 21:15:31 hey Nick-S Jun 04 21:15:34 like what I am stuck Jun 04 21:15:37 hey Jun 04 21:15:41 you ever get all your unit test issues fixed? Jun 04 21:15:44 Tazmain, do tic tac toe Jun 04 21:15:59 quinnjn, I have written a cli tool for myself. And if I am going to learn qt5 might as well make an app Jun 04 21:16:08 talking like 8 months back lol Jun 04 21:16:13 well 6 Jun 04 21:16:21 Tazmain, gui tic-tac-toe then :P Jun 04 21:16:35 hi, on Activity A i have public boolean isFirstRun() { //check first run } and how will i call this from Activity B, is it possible? or do i need to check again on activity B Jun 04 21:16:39 again, you’re trying to add two different things together Jun 04 21:16:40 maybe it was February or March Jun 04 21:16:42 oh nice arch has canary Jun 04 21:16:47 it’s a recipe for frustration Jun 04 21:17:03 Norrin: no i can't unit test my thing easily Jun 04 21:17:15 quinnjn, lol, acording to the qt editor it can just build the app for android Jun 04 21:17:17 it was like 2 or 3 months no more Jun 04 21:17:21 Nick-S, dang. it seems like you were close Jun 04 21:17:21 Tazmain, you generally find a real-life problem that can be solved with an app, not the other way around Jun 04 21:17:26 it seemed* Jun 04 21:17:33 i have more burning issues Jun 04 21:17:50 ie. you don't just "decide" you want to make an app while having no idea what app you even want Jun 04 21:18:09 wakelock, oh no I have ideas for apps, Jun 04 21:18:17 yeah you do. but you need to get an idea to start one though Jun 04 21:18:26 just not ideas for programs to write on the desktop in C++. Jun 04 21:18:37 same Jun 04 21:18:49 also, making your first android app with C++ is just a horrible horrible idea Jun 04 21:18:55 could work on a znc extension if irc motivates you though Jun 04 21:19:00 well I know java well, and hell no Jun 04 21:19:02 agreed Jun 04 21:19:07 just write a shell Jun 04 21:19:56 just write a compiler :p Jun 04 21:20:04 http://doc.qt.io/qt-5/androidgs.html <- seems its simple actually Jun 04 21:20:19 yeah you would think Jun 04 21:20:29 anyway, if you're so dead set on doing it, then just go ahead Jun 04 21:20:41 but don't expect much support from this channel :p Jun 04 21:21:23 only help I will need to getting the UI, if its not QT. How to do the calls to the code, I believe the android UI is xml >? Jun 04 21:21:34 no it's not Jun 04 21:21:43 apparently you don't know much about android either Jun 04 21:22:07 I can foresee a very rough future for you Jun 04 21:22:23 last time I looked at it, it was some xml that that defined how a java function was called when a button was clicked. Jun 04 21:22:30 has that changed to something else now ? Jun 04 21:22:34 nope Jun 04 21:22:40 but you didn't look hard enough Jun 04 21:22:58 android doesn't *use* xml for it's ui, the xml just makes it easier Jun 04 21:23:23 -_- kinda the same thing is it not. The default design was xml Jun 04 21:23:32 seriously, no Jun 04 21:23:38 alright fair enough Jun 04 21:24:04 also, defining callbacks in xml is a very bad practice that mostly newbies do Jun 04 21:24:36 bad tutorial then Jun 04 21:24:43 cause that looked horrible to do Jun 04 21:24:52 maybe it was just making a point, who knows Jun 04 21:24:59 not something you can do in a real app, that's for sure Jun 04 21:25:06 s/can/should/ Jun 04 21:25:33 the ndk is rather large 437 meg o.0 Jun 04 21:26:02 Tazmain . wait until you download the source for major android branches XD Jun 04 21:26:15 i am trying to execute this http request, but the json parameters are being sent in. Any help? https://gist.github.com/DylanRedfield/479ad8473ec5616a5662 Jun 04 21:26:25 Gryd3-Shop, I don't remember that being more than 400 meg? Jun 04 21:26:47 full android source is several gigs Jun 04 21:27:05 full being every version ? Jun 04 21:27:11 no Jun 04 21:27:38 The kernel source for the Samsung S5 is 470MB :p Jun 04 21:27:43 sigh, it just seems you have extremely poor knowledge and understanding of android in general Jun 04 21:27:55 it's getting too tiring explaining everything and fixing every misconception Jun 04 21:28:11 just go ahead and hopefully learn from your mistakes Jun 04 21:28:26 will do Jun 04 21:31:28 So it looks like calling response.body().string() in an OkHttp interceptor causes some issues in Retrofit. Has anyone else noticed this? I narrowed it down to that, but am unsure of why. Jun 04 21:31:39 you are consuming the body Jun 04 21:32:12 How could I apply padding for the children inside of my GridLayout? `android:padding` and `android:layout_margin` doesn't seem to have any effect Jun 04 21:32:42 DadFoundMy: What is the question? Jun 04 21:32:54 JakeWharton: I need to see the body in order to do some logic in my interceptor. Is there a way to do it that is kosher? Jun 04 21:33:15 if you read it, you need to replace it in the request Jun 04 21:33:36 otherwise the person who made the request has nothing to read Jun 04 21:40:50 TacticalJoke: when i execute the rquest i recieve as a response: "error":"WRONG_LANG_ID"} Jun 04 21:41:03 which is the default resopnse i believe Jun 04 21:41:24 so even i remove all the parameters from the Map i get that response Jun 04 21:41:27 JakeWharton: What exactly do you mean by "replace it in the request"? I am returning the Response from my interceptor? I think I'm confused. Jun 04 21:42:14 if you call .body(), you have "used up" the body. if you want the caller to have access to the body, you need to put it back Jun 04 21:42:17 replace it in the response Jun 04 21:42:18 seems silly but that's how it is Jun 04 21:42:19 not request Jun 04 21:42:38 sorry i'm doing other things, only half paying attention Jun 04 21:43:01 JakeWharton: Did you make retrofit? Jun 04 21:43:07 see, someone called .attention() on JakeWharton and thus used up his attention span Jun 04 21:43:26 DadFoundMy: i was not the creator but I have been the developer and maintainer for 3 years Jun 04 21:43:28 DadFoundMy, no, square did Jun 04 21:44:35 JakeWharton: Ahh, I think I see. I need to use the builder to craft a new response with the responsebody that I used up in .body()? Jun 04 21:44:37 theblang: the core problem is that the body stream is read-once, so it can be consumed as a stream without needing to buffer the whole thing. if you want to read a part of it, you need to buffer the part you consumed + continue the interceptor chain with a new object that contains the buffered contents + the remaining stream. Jun 04 21:44:48 theblang: i'm searching for an example but can't find one. but yes. Jun 04 21:44:58 JakeWharton: Yeah okay, I'm good now. Thank you so much. Jun 04 21:45:24 maybe instead of using httpclient i should try retrofit, but i dont really understand the annotations in the tutorial im reading. Is the @body like the entity? Jun 04 21:45:35 yes Jun 04 21:45:42 i clearly see code that detects captive portal and intents are thrown respectivly, but i see no way to tapping into it, can it be done? ??? https://github.com/android/platform_frameworks_base/blob/a6ed1b9547dcd592031a415739cc7e672c068f7c/services/core/java/com/android/server/connectivity/NetworkMonitor.java Jun 04 21:45:49 DadFoundMy: Oh man, definitely use Retrofit and not HttpClient Jun 04 21:46:13 Nick-S, this is kind of where you're supposed to use an url shortener ;) Jun 04 21:46:23 what would be the best alternative for an expandablelistview with edittexts with buttons in the footer, the softkeyboard messed up everything Jun 04 21:46:27 wakelock: oopsi Jun 04 21:47:03 actually its this: http://tinyurl.com/ogo9e34 Jun 04 21:47:30 Haha, JakeWharton, one of the devs interviewed in the latest fragmented podcast said he would rather go without RxJava than Retrofit. Jun 04 21:48:07 nice. i haven't listened yet. Jun 04 21:48:16 i just cant seem to wrap my head around retrofit. JakeWharton im reading your StackOverflow example but i cant understand it at all Jun 04 21:48:50 I just use a simple post requst with JSON, do I have to make an interface with anotations and such or can i just call a few methods? Jun 04 21:49:05 all API endpoints become methods on an interface Jun 04 21:49:12 groxx thanks for your explanation earlier! Jun 04 21:49:19 calling your API then becomes simply making a method call Jun 04 21:49:25 and waiting for the callback Jun 04 21:49:45 So I have two observables I'm zipping with Observable.zip(Observable, Observable, Func2). Both Observable and Observable only have one emission before completing, and I use them as parameters to construct Thing3. The issue I'm currently having is how to create Thing3 in case one of the two observable Jun 04 21:49:45 fails, but I still want to progress Jun 04 21:50:19 fails how? you'd need fallback data in that case Jun 04 21:50:56 Fails as in onError() gets called for say Observable Jun 04 21:51:21 But I still want to construct Thing3 with atleast Thing1 since it succeeded Jun 04 21:51:23 JakeWharton: so the API im calling accepts a "source_code" param and a "code" param. Should I make a class called Request with instance variables of source_code, and code. Then should I just put that in an interface with the code foo.postJson(new Request( /*different params*/));? Jun 04 21:51:49 do i not need to set the header or anything else? Jun 04 21:52:08 yiati: then add .onErrorResumeNext(o -> Observable.just(new EmptyThing2())) to the Observable Jun 04 21:52:15 you can't let error propagate if you want data to continue to flow Jun 04 21:52:54 @JakeWraton right, okay didn't know about that operator, thanks Jun 04 21:53:00 @JakeWharton Jun 04 21:53:29 next time try using tab completion, will stop you from using the unnecessary @ too ;) Jun 04 21:53:46 @wakelock Jun 04 21:54:03 yeah I meant to the first time but I went back and it wasn't working then Jun 04 21:55:11 wakelock: ugh, did the @ sign again out of habit from hipchat Jun 04 21:55:20 ^ got it that time :P Jun 04 21:55:53 woot Jun 04 21:56:37 and yeah I know the @ comes from other chat systems, it's just silly to assume whatever rules apply to one transfer to another so easily Jun 04 21:57:08 * wakelock generally considers the @nick notation "that silly twitter thing" Jun 04 21:58:26 For chat systems it's silly, it's nice for generating links in stuff like github/bitbucket/jira/etc. Jun 04 21:59:36 JakeWharton: nice, that worked out well for me, thanks Jun 04 22:06:57 * Tazmain jaw drops, ndk 3.2Gb install . Jun 04 22:08:37 Hello, I am integrating google play games to my game, I am facing some strange issue. Can I get some help Jun 04 22:09:06 not if you don't ask the *actual* question Jun 04 22:09:16 don't expect anyone's full one-on-one attention Jun 04 22:09:26 wakelock.. can u help now? Jun 04 22:09:34 ...what did I just say? Jun 04 22:11:58 ok...so I have integrated play games sign in feature, it works fine only with lollipop devices. Not with any other devices. I am using the documentation given here https://developers.google.com/games/services/training/signin Jun 04 22:12:39 my app is only release for germany currently. if i put users into beta from other countries, will they be able to download it? Jun 04 22:13:09 The connectionresult.startResolutionForResult gives result code 0 Jun 04 22:13:25 fancy42, no. How come you choose to have it locked down to Germany only out of curiosity? Jun 04 22:14:19 it contains location and map based services which we need cloud computing for. more countries basically means more money Jun 04 22:16:05 fancy42, but if an apk got out for example, it would still work? Jun 04 22:16:52 for a convention, we got the service running for california. so we want potential customers there to be able to try it out Jun 04 22:16:57 quinnjn , If I got your apk, I could install it on my device. Not sure how you could restrict the installation of an apk based on region Jun 04 22:17:33 yes, you could also download it in germany and travel somewhere else Jun 04 22:17:36 You could restrict it from showing on the playstore (which youve done) or restrict it's use once it's installed and launched... ie pop-up saying your not in Germany, this app wont work :p Jun 04 22:17:44 the app would basically in each scenario just say 'no service' Jun 04 22:18:39 dunno, i'm just a little scared of trolls / unfair reviews Jun 04 22:18:52 fancy42, yeah that is a problem Jun 04 22:19:19 quinnjn . is it a paid app? (Perhaps you can host the apk on a project website as 'beta' for others to try out Jun 04 22:19:21 fancy42, for your beta you could use crashlytics which will give out the apk Jun 04 22:19:42 little more secure than just passing out the apk Jun 04 22:19:53 ^ learn something new every day :) Jun 04 22:20:39 i don't care if people get the apk. if they can use the service, fine. but i don't want people to be able to rate the app if they live in a region were our services aren't activated Jun 04 22:21:07 fancy42 if they don't download from the play store, they can't rate it on the play store. Jun 04 22:21:28 hi...can google play games login be android version specific...cause i have implemented it but it only works in lollipop devices.. Jun 04 22:21:42 yes, that's why i don't care if people pass around the apk or something :) Jun 04 22:21:48 if they’re in a region where your services aren’t activated, then how are they supposed to beta test? Jun 04 22:21:58 * wakelock finds a german proxy/vpn just to underrate fancy42's app :p Jun 04 22:22:11 :D thanks i guess Jun 04 22:22:13 fancy42, another side note; instead of just saying "sorry! unsupported area!" maybe ask them to sign up to a mailing list when that area is ready? Jun 04 22:22:50 quinnjn, yeah i thought about that Jun 04 22:22:56 lol totaly, that's what netflix does too, can't fail :D Jun 04 22:23:08 fancy42, i do agree though. You'll get the odd user that can't be pleased :) Jun 04 22:23:37 quinnjn, isn't that the risk no matter what you do? ;) Jun 04 22:23:52 wakelock, truth Jun 04 22:23:54 i created another store entry that will only have a beta and no production version. so it's basically invite only.. would be cooler to be 'only open to californians' but well.. Jun 04 22:24:15 (and by 'only open to californians' i mean everybody there could download without invite) Jun 04 22:24:28 I've seen some devs make a G+ group for betatesters Jun 04 22:24:51 why does Logcat disconnect, and how can I stop it from ever, ever happening again? Jun 04 22:25:59 wakelock, yes, that's mandatory for beta testing Jun 04 22:26:01 ? Jun 04 22:26:01 erm.. use ducttape? Jun 04 22:26:23 wakelock, or if i'm wrong pleeeeeaaase tell me other possibilities Jun 04 22:27:32 fancy42, hey don't look at me, never had anything to do with google play (except as a user) Jun 04 22:27:50 wakelock, just had a glimpse of hope :( Jun 04 22:28:04 also don't use G+ really Jun 04 22:28:14 yeah sorry Jun 04 22:28:15 yes, nobody does :D Jun 04 22:28:42 wakelock, sooo you're in 'android-dev' thus i'm guessing you dev android. do you publish somewhere else, or code just for fun, or? Jun 04 22:30:58 anyone knwo what’s up wiht Android Pay? JakeWharton, maybe? Jun 04 22:31:42 is Google now the gateway? or how does that work? “The transaction proceeds and reaches the Google cloud servers where the virtual card number is replaced with real card data and authorized with the real Issuer.” Jun 04 22:32:05 the part where Google comes in is confusing. Jun 04 22:32:20 with ApplePay the issuers can decrypt the cryptogram no problem Jun 04 22:33:09 sounds like Google is just swapping the crypto with real number and sending it off to get authorized.. question is how do merchants get paid then? Do they need a merchat account with Google? Jun 04 22:34:54 fancy42, coding just for fun Jun 04 22:35:12 I never published on google play, nor have any intenton to Jun 04 22:35:21 intention* Jun 04 22:39:48 wakelock, don't you want to share your creations? Jun 04 22:43:12 sdk tools update Jun 04 22:44:20 “I don’t knwo what to do with my hands” http://bgr.com/2015/06/01/2015-nexus-5-fingerprint-sensor/ Jun 04 22:45:15 The new "Cloud Test Lab" costs money or what? Jun 04 22:46:18 tricknology http://i.imgur.com/0Oj0Vvm.jpg Jun 04 22:46:26 "I don't know what to do with my ears!" Jun 04 22:47:03 awwww Jun 04 22:47:59 fancy42, my creations get shared plenty ;) Jun 04 22:48:50 try TestFairy if you’re going to do betas Jun 04 22:48:52 it’s pretty neat Jun 04 22:48:52 g00s, so... that dog is actually right next to my face Jun 04 22:49:29 same dog? Jun 04 22:49:51 https://youtu.be/7V-fIGMDsmE?t=5589 Jun 04 22:49:59 does anyone know if this is going to cost money or what? Jun 04 22:50:28 seems like probably, but last I checked there wasn't any explicit test-related stuff on the Cloud pages Jun 04 22:51:05 hm. "you'll receive a free report which includes..." Jun 04 22:51:09 didn't catch that earlier Jun 04 22:52:01 Hi, I have a big C/C++ project consisting of multiple (interdependent) projects/modules (in VisualStudio) in different directories independent of the Android (Studio) project and I'm wondering what is the best way to write a Makefile to make the life easy for myself. I can already build one common shared library using static modules which are built as necessary for each module. I've just found out about PREBUILT_SHARED_LIBRARY and the Makefile looks Jun 04 22:52:01 much cleaner. Is it a good idea to use it instead ? I am aiming to have one final distributable library, not separate libraries. Is there any good tutorial on this ? Jun 04 22:52:10 oh wtf nice!!! Jun 04 22:52:19 just upload your apk and they test it? Jun 04 22:54:15 does TestFairy test it automatically? I thought I heard in the video you have to invite people Jun 04 22:55:05 groxx it looks they run for every screen in your app on top 20 devices for free. they'll have more you can include for paid Jun 04 22:55:14 not sure what exactly the "testing" will do though Jun 04 22:55:49 ^ is for quinnjn I assume (just forwarding the mention) Jun 04 23:01:56 So I want to load an image using BitmapFactory, and I have two questions. How would I import an image file using Android Studio, and what directory does BitmapFactory.decodeFile look in? Jun 04 23:07:09 Or just generally, what is the base directory for file operations? Jun 04 23:08:53 Hello is anyone here? Jun 04 23:09:02 me Im here Jun 04 23:09:20 reporting in Jun 04 23:09:34 Okay, I need help with writing a bash-script. Can you help? Jun 04 23:10:16 that doesn't sound like Android D: Jun 04 23:10:32 I don't really know bash scripting but I'm trying to cut some time on some manual job I'm doing Jun 04 23:10:42 FlyingJester: there is no base, aside from "/". it'll be whatever the File you give it points to Jun 04 23:10:47 I figured I could do that with a script Jun 04 23:10:56 whats the job? Jun 04 23:11:03 quinnjn, actually it is Jun 04 23:11:13 is "bash-script" in the new google play services library or something? Jun 04 23:11:32 I want the bash-script to do a couple of things on an android phone Jun 04 23:11:32 acetakwas: I personally use this as a reference whenever I need to do something with bash: http://matt.might.net/articles/bash-by-example/ Jun 04 23:11:54 after about 5 minutes though I tend to (╯°□°)╯︵ ┻━┻ and just write it in Ruby. Jun 04 23:11:55 quinnjn, lol Jun 04 23:12:20 groxx, you go about 5 more minutes than I would :P Jun 04 23:12:24 groxx, I'm short on time an battery power I'm afraid Jun 04 23:12:39 groxx That's kind of what I'm asking. If I tried to open "some_file.dat", what directory would the file need to be in to be found? I have no idea how to add a file to an Android project so that I can open it. Jun 04 23:12:41 So here's what I want to do if you guys can help Jun 04 23:13:04 I want to install five apps; I a guess a for-loop can handle that Jun 04 23:13:29 than start one of them, run it once, and close it. Jun 04 23:14:08 I guess "adb am" or something should take care of that Jun 04 23:14:25 Then I want to set a wallpaper Jun 04 23:14:45 FlyingJester: depends on where some_file.dat is. if you're putting it in e.g. your assets folder, you'll probably just use .decodeResource(getResources(), R.asset.the_filename, null) Jun 04 23:15:14 Do you guys get me? Jun 04 23:15:40 FlyingJester: otherwise, it's wherever you put it. typically that'll be based on getFilesDir() or some sub-folder (for app-private locations). Jun 04 23:17:21 groxx: pretty sure there is in asset class in R Jun 04 23:17:48 groxx, Do you get me? Seems quinnjn left Jun 04 23:18:04 Anyone pls? Jun 04 23:19:44 acetakwas: `adb shell am start -n "com.your.app.package/com.your.code.package.TheActivity" -a android.intent.action.MAIN -c android.intent.category.LAUNCHER` will start the app, and I think there's an `am stop` or something for killing it (though that's probably unnecessary) Jun 04 23:19:57 What owns getResources()? Jun 04 23:20:32 FlyingJester: Context, and subclasses. so Service, Activity, Application (+ others) Jun 04 23:22:41 Do I just need to pass this down from the owning activity? Jun 04 23:22:48 groxx, thanks. How do I find the "com.your.app.package/com.your.code.package.TheActivity" pls? Jun 04 23:23:14 Or is there a nice, fully static way to just get the current context? Jun 04 23:23:19 FlyingJester: yep. or, if it's not configuration-based (e.g. not portrait / landscape dependent, or anything in assets IIRC), you can just use your application context Jun 04 23:23:23 and no, no fully static way Jun 04 23:24:11 easiest way to static-ize it is generally to override the base Application, and save a reference to `this` somewhere. but don't use that in static initializers, because it may not exist when that code is run. Jun 04 23:30:52 acetakwas: from bash, dunno. there might be something you can do with apktool or some other tool in the sdk, but I don't know what it would be. Jun 04 23:32:06 read mark's blog about automatic backups in MNC Jun 04 23:32:23 yeah that seems dangerous, all app data just going to google servers Jun 04 23:32:34 acetakwas: it's only 5 things. by now it would be way faster to just do it by hand. or if you need to repeat it 100x, just write down a bunch of `adb shell ` custom commands in a .sh file and run it Jun 04 23:32:44 the encryption aspect is not clear atm - they say its encrypted, but who has the ky ? Jun 04 23:33:09 lol, ky Jun 04 23:33:11 it would have to be google, yea? can't be the device, because then they couldn't restore across devices Jun 04 23:33:16 which javadoc didn't force you to use new lines Jun 04 23:33:29 at best they could encrypt the key with your password, but that's obviously Password1, so YMMV Jun 04 23:38:24 groxx, actually it's hundreds thousands or phones Jun 04 23:38:50 Exactly why I need Bash, trying to automate as best I can Jun 04 23:39:31 then you're probably going to want some kind of parallel executor to do all this, plus error handling, plus x, y, and z :) not a trivial task, no matter how you do it. Jun 04 23:40:08 but a few hand-coded commands in a .sh file would be easy. just do that, you could be done already. Jun 04 23:40:52 okay, working on it. Thanks Jun 04 23:41:44 What is with the fugly video previews on google IO Jun 04 23:41:46 website Jun 04 23:42:44 evening everyone Jun 04 23:43:27 Is it just me or did google io 2015 really restrict the number of videos uploaded? Jun 04 23:43:45 last year it seemed like every talk had a video, now its just a handful Jun 04 23:44:08 lasserix_: lots of them last year didn't have a video. like only half or so. but they've always been sorta slow on uploading, give it a week or two. Jun 04 23:44:33 i think it’s because most of the things were labs and “sessions”, not talks Jun 04 23:45:14 yes, because that's an important distinction to remote viewers :| hopefully not. Jun 04 23:55:54 groxx can you think of any problems using a single handler for timeouts of many things at once, like 14 in flight postDelayed ? Jun 04 23:56:14 as long as the runnable doesn't block, i think it should be ok ? Jun 04 23:56:34 i just wonder if its creating a new thread of each delayed to sleep or something Jun 04 23:56:46 nah. and if they're all running on the same thread, it's the same thing as having a bunch of handlers, but with less memory use. Jun 04 23:57:54 .postDelayed just puts the message in the Looper's message queue, with a timestamp to process. the queue sleeps until a new message is posted or that time passes, checks the first message(s), runs them, stops when it has to sleep again. Jun 04 23:58:05 lol google: https://www.google.ca/search?q=dagger+how+to+use&ie=utf-8&oe=utf-8&gws_rd=cr,ssl&ei=8-VwVd_0I4e0yAT584G4Cw Jun 04 23:58:11 3 steps!! Jun 04 23:58:13 Handler is just a "target" to send the message to, it doesn't do much. Jun 04 23:59:44 g00s: only possible difficulty / annoyance: .removeCallbacksAndMessages() will remove _all_ of them for that handler. if you were using different Handlers for "topics", you lose that quality. you can use a token object or keep a reference to the runnable though, to be more selective Jun 05 00:00:29 groxx, just keep a singleton handler Jun 05 00:01:01 g00s, doesn't matter, unless your goal is multithreaded processing Jun 05 00:01:04 then you need multiple handlers Jun 05 00:01:05 that's all Jun 05 00:01:35 ok thanks Jun 05 00:01:38 the key to success with concurrency: don't care when stuff gets executed Jun 05 00:01:52 as long as it gets executed, it doesn't matter Jun 05 00:02:08 optimize for performance from there to increase or decrease concurrency/queue bounds as necessary Jun 05 00:25:33 weird, my pom file doesn't contain dependencies :/ Jun 05 00:31:52 hey everyone, I just switched my regular android build to gradle + android studio (used to run it on intellij). Everything works fine, but the gradle build is significantly slower than the intellij build. Why is that? Any pointers? Jun 05 00:33:04 I'm having trouble creating a custom view with attributes. Anyone willing to help figure out the problem? (will give more details on request, rather than spamming everything at once to the channel) Jun 05 00:34:08 evening Jun 05 00:37:00 Techdeck, because gradle sucks Jun 05 00:37:07 :( Jun 05 00:37:18 Techdeck, is it the first build? first time is slow, resolving dependencies Jun 05 00:37:20 subsequent should be fast Jun 05 00:37:23 "fast" Jun 05 00:37:37 yeah, "fast" :P subsequent builds are still slow Jun 05 00:37:54 how slow is slow? Jun 05 00:38:02 it's not so much that gradle sucks, as that we require that crucial dex-ing layer that keeps our platform legal :P Jun 05 00:38:08 takes a minute and 6 seconds to build a very very small app Jun 05 00:38:24 I have about 5 small dependencies and 1 big one (google play services) Jun 05 00:38:37 1 minute, 6 seconds? wow, that's slow Jun 05 00:38:42 on an incremental build? Jun 05 00:38:45 that's so shitty... Jun 05 00:38:50 my sbt builds take like 4 seconds Jun 05 00:39:00 and thats on a pretty fast machine, I have SSD disks and all Jun 05 00:39:03 and that's building scala :p Jun 05 00:39:14 Techdeck get an SSD Jun 05 00:39:22 * Techdeck blinks Jun 05 00:39:38 pfn, I must be doing something wrong then Jun 05 00:39:48 well, gradle shouldn't take that long Jun 05 00:39:51 anyone here worked with libpd? Jun 05 00:39:51 oh wait nvm lol Jun 05 00:39:51 on a slower machine it takes over 3 minutes! Jun 05 00:39:57 I think subsequent builds typically take something like 10 seconds Jun 05 00:40:12 well if I don't change anything, it's faster, but once I make changes... beh Jun 05 00:40:20 Man, my machine is 3 years old now, (SSD), still doesn't take a minute Jun 05 00:40:51 you guys build with android studio? Jun 05 00:41:09 yes Jun 05 00:41:15 I have incremental set to true, should it not be? Jun 05 00:41:20 anybody know how to find "unable to find method getPluginManager" ? Jun 05 00:41:42 what is this incremental = true? Jun 05 00:41:54 good question Jun 05 00:41:57 lemme google it Jun 05 00:42:03 lol Jun 05 00:42:46 it will only recompile sources that need to be recompiled Jun 05 00:42:51 which should make it faster.. but no :( Jun 05 00:44:55 I'm pretty sure it's mostly slow because of google play services Jun 05 00:46:03 could it be multidex? Jun 05 00:46:26 I had to enable multiDex because of google play services, I had too many methods/classes Jun 05 00:46:56 I think multidex slows things down... haven't used it personally though. not sure how much, if so Jun 05 00:47:24 yeah "Building 90% > :app:dexRelease" is definitely the slowest part Jun 05 00:47:38 "Total time: 3 mins 24.25 secs" Jun 05 00:47:39 * Techdeck cries Jun 05 00:47:44 ouch Jun 05 00:48:29 Techdeck: Are you using a lot of libraries other than G-play services? Jun 05 00:48:47 not really Jun 05 00:49:11 I have a few pretty small libraries like gson, otto, greendao, guava etc Jun 05 00:49:24 guava... ouch Jun 05 00:49:36 like 23k methods right there Jun 05 00:49:48 ah Jun 05 00:50:14 I can't live without my guava though Jun 05 00:50:38 best library ever created Jun 05 00:50:55 oh well, I guess I will suffer Jun 05 00:51:06 or maybe there's a way to have it prebuilt? Jun 05 00:51:30 dex + reflection. lol. Defeats the purpose of guava Jun 05 00:52:30 even if it's prebuilt, dexing still needs to happen :| Jun 05 00:52:39 Techdeck: cool little site to count your methods by package: http://inloop.github.io/apk-method-count/ Jun 05 00:52:45 maybe jack & jill would work? Jun 05 00:52:57 bb Jun 05 00:53:08 thanks surf2b1, I'll check it out Jun 05 00:53:18 local decoding of an apk? neat. I've gotta look closer at that. Jun 05 01:00:40 "Deploying to a Maven repository is only half the fun if you don't have a POM. Fortunately Gradle can generate this POM for you using the dependency information it has." Jun 05 01:00:42 Lies Jun 05 01:02:06 hey Afzal :) Jun 05 01:02:14 hey MikeWallaceDev, what's up Jun 05 01:02:37 working... Jun 05 01:02:39 you? Jun 05 01:03:02 yeah me too, apparently there's an "unspecified" dependency in my library according to this pom file Jun 05 01:04:23 Techdeck try it without multidex if you can :P Jun 05 01:04:55 I couldn't, it would not let me build, too many classes Jun 05 01:05:02 ouch Jun 05 01:05:03 nvm, I'll suffer :P Jun 05 01:05:13 I have a question about Intent results. This is what I want to achieve: Activity A launches Activity B which launches Activity C which returns a result to Activity A. Jun 05 01:05:38 MikeWallaceDev, I use 'otto' for such things Jun 05 01:05:43 I am thinking about PendingIntent, or IntentSender, but not sure about how to do it Jun 05 01:05:45 but maybe there's a 'native' way Jun 05 01:06:43 There must be a simple way. Jun 05 01:07:04 sorry Techdeck that was a response to you :) Jun 05 01:07:07 you could probably use a BroadcastReceiver Jun 05 01:08:24 There has to be a very simple way. It's just a startActivityForResult, but the result goes to the grandparent instead of the parent Jun 05 01:08:53 I'm actually very surprised that my current PendingIntent strategy isn't working.. Jun 05 01:10:54 A creates PendingIntent referring to C, A passes that PendingIntent to B. B triggers the PendingIntent with send(). Jun 05 01:10:55 "Airline Worker Spotted 'Duct-Taping the Plane' Before Takeoff" Jun 05 01:11:24 Hello anyone competenet with using adb here? Jun 05 01:11:25 s/competenet/competent Jun 05 01:11:31 wow, the forkhubs github app is so garbage, didn't realize how shitty it is... Jun 05 01:13:01 hmm, no quick answers... Might have to go to SO :D Jun 05 01:13:43 anyone with familiar with adb Jun 05 01:13:55 MikeClassic: you can do what you want Jun 05 01:14:04 MikeWallaceDev: ^ my bad, for uoi Jun 05 01:14:05 you Jun 05 01:14:07 :S Jun 05 01:14:15 or is there any other android channel I might find help pls? Jun 05 01:14:16 i'll dig out some code Jun 05 01:14:21 Poor MikeClassic he always gets pinged because of me :D Jun 05 01:14:48 acetakwas, you're in the AndroidDev channel, we ALL know about adb... :-/ Jun 05 01:15:01 But no one is answering Jun 05 01:15:16 I got some help from groxx earlier Jun 05 01:15:18 just ask your question. Jun 05 01:15:43 MikeWallaceDev: http://developer.android.com/reference/android/content/Intent.html#FLAG_ACTIVITY_FORWARD_RESULT Jun 05 01:16:02 bah! I was just about to type that oneout Jun 05 01:16:17 MikeWallaceDev and MikeClassic should swap names. Jun 05 01:16:27 I need to use "adb shell am start" to start the Gallery app and set a wallpaper, but I'm stuck Jun 05 01:17:01 I've been reading the docs Jun 05 01:17:18 How do I find the activity name? Jun 05 01:17:19 I'm in yer base pinging yer dudes. Jun 05 01:17:31 MikeWallaceDev: you use that when launching C from B Jun 05 01:17:42 right Jun 05 01:17:52 and the other stuffs: category, intent, view, action Jun 05 01:17:52 looks perfect. I'll try it now Jun 05 01:18:17 acetakwas: pretty often you can pull it out of dumpsys Jun 05 01:18:39 acetakwas, you probably don't want to use a specific activity, but an implicit action Jun 05 01:19:28 there's also an app called "Intent Intercept" that I used a few times Jun 05 01:19:43 it will tell you all you need to know... Jun 05 01:19:58 including the answer to life, the universe, and everything? Jun 05 01:20:03 about? Jun 05 01:20:19 MikeWallaceDev: spannables presentation! any news on upload-age anywhere? Jun 05 01:20:22 groxx, do I really have to write the number? Jun 05 01:20:23 :D Jun 05 01:20:36 ha! you're the second one to ask me today groxx :D Jun 05 01:20:44 I have a doppleganger?! Jun 05 01:21:03 nothing yet... I've only heard of one video released... Jun 05 01:21:08 only the keynote Jun 05 01:21:31 well, they were totally just copying me. before me. so they're a time traveler, probably sent to kill one of us D: Jun 05 01:21:53 lol jun 5 is national doughnut day Jun 05 01:22:27 so you're all going to celebrate by backporting your app to Donut, right? Jun 05 01:23:04 also holy crap, M has a lot more dumpsys output than lollipop had, on this phone Jun 05 01:24:07 5.2mb of text D: Jun 05 01:24:28 * Napalm watches them rename it to 'dumpworld' Jun 05 01:25:04 doesn't sound like the best theme park name Jun 05 01:25:36 groxx, is on a roll!! Jun 05 01:25:59 but.. donut day is tomorrow? Jun 05 01:26:04 ya Jun 05 01:27:54 well, I blame the coffee. I'm totally caffeinated, man. Jun 05 01:28:16 you are caffeinated...man. Jun 05 01:29:05 Look, up in the sky! It's caffeinated man! Jun 05 01:29:08 going online to discuss how beverag'd one is seems to be a thing. I'm just trying to fit in :) Jun 05 01:29:57 i am totally vitamin D'd and Calcium'd Jun 05 01:30:14 Programmers: coffee. Everyone else: an alcohol dependence. Jun 05 01:30:30 ain't gonna catch me with rickets no sirree Jun 05 01:30:41 On the Internet, anyway. (According to anecdotal evidence.) Jun 05 01:31:21 the best kind of evidence Jun 05 01:31:41 night all Jun 05 01:31:42 * sir_galahad_ad_ doesn't like coffee or alcohol Jun 05 01:32:13 Everyone, in unison: Good night, Napalm. Jun 05 01:32:24 in unison! Jun 05 01:32:35 Thanks for the tip Napalm|afk Jun 05 01:32:57 i don't know unison i only know x86 asm, C, C#, and Java Jun 05 01:33:44 o/ Napalm Jun 05 01:34:07 sir_galahad_ad_: Not VB? Jun 05 01:34:12 I thought everyone did VB at some point. Jun 05 01:34:22 few live to tell about it though Jun 05 01:34:27 nah i did QBasic though Jun 05 01:34:54 heh anyone have a pug? i wonder if this is possible https://twitter.com/DogSolutions/status/585901447935569920/photo/1 Jun 05 01:35:56 Donut try this at home. Jun 05 01:36:00 groxx would be hard to attach a fizzgig to one of those i think Jun 05 01:36:05 (Maybe we should have a speaking theme on this special day.) Jun 05 01:36:08 argh my library :( doesn't import dependencies in a project Jun 05 01:36:09 why why why Jun 05 01:36:13 MikeWallaceDev: that's ok bud I'm not mad :D Jun 05 01:36:21 :D Jun 05 01:36:47 While I'm here, what do you guys think of committing .iml files to your repos? Jun 05 01:36:51 g00s: probably. that kind of proximity to spinning things might end up causing a dramatic reenactment of the best Taz scenes Jun 05 01:36:57 even the pom has the dependency now Jun 05 01:37:14 MikeClassic, you're supposed to. Jun 05 01:37:17 And it sucks Jun 05 01:37:25 Because they always change for nothing Jun 05 01:37:30 MikeClassic: I don't do it. Jun 05 01:37:31 even if you have team members, MikeWallaceDev? Jun 05 01:37:38 Importing from build.gradle FTW. Jun 05 01:37:41 That's what they say Jun 05 01:37:46 TacticalJoke: yeah, I feel the same way you do Jun 05 01:38:19 Like I said, I don't like it. They say you're supposed to. Jun 05 01:38:26 Who is this "they" anyways??? Jun 05 01:38:41 I'm making an array with objects in it.. the objects have 2 attributes.. Is this the correct way to "populate" and initialize the array? OfficeDistanceContainer[] officeDistances = new OfficeDistanceContainer[] { new OfficeDistanceContainer("005",25.2), new OfficeDistanceContainer("006",25.2), etc ... }; Jun 05 01:38:47 so I really have to do the whole "new" inside {} everytime? Jun 05 01:38:56 do* Jun 05 01:39:55 "I'm making an array" <-- fire alarm goes off Jun 05 01:40:55 But yes. Instantiating objects is separate from initializing arrays. Jun 05 01:41:09 Vercinger: yep, that's how ya do it Jun 05 01:41:18 Never the twain shall meet. Jun 05 01:41:25 sigh.. migh aswell just have 2 seperate arrays instead.. Jun 05 01:42:05 TacticalJoke - don't forget to vacate your premises.. Jun 05 01:42:38 why? is the roof on fire? Jun 05 01:42:46 It's okay; it's just a drill. Jun 05 01:43:21 the drill is on fire?! Jun 05 01:44:12 For some reason my app isn't throwing exceptions when it should be. Instead, the app just hangs and then asks me if I want to close it. What could cause it to do this? Jun 05 01:44:34 blocking the main thread for some reason Jun 05 01:44:39 t0astt: while (true) { /* do nothing */ } Jun 05 01:44:59 t0astt: you should have a /data/anr/traces.txt file if you hit 'ok' to close it. Jun 05 01:45:13 ah ok Jun 05 01:45:17 I'll take a look for that Jun 05 01:45:25 thanks groxx Jun 05 01:45:43 t0astt: you're welcome. Jun 05 01:46:09 ah hah! the doppleganger reveals themself! Jun 05 01:46:30 * bhans disappears. Jun 05 01:46:39 MikeWallaceDev: they went that way! Jun 05 01:49:15 * MikeWallaceDev runs after they Jun 05 01:49:43 * bhans runs after they too Jun 05 01:50:48 * g00s notices MikeWallaceDev abandoned the donuts Jun 05 01:51:51 g00s: have you tried flashing a BLE device? Jun 05 01:51:59 g00s, you do NOT know me well. No donut is left behind. It's like the Marines, but with more intensity. Jun 05 01:52:11 I fear that social media is turning everyone into narcissists. Jun 05 01:52:15 (I say, while using social media.) Jun 05 01:52:22 Seriously, though, this can't be good. Jun 05 01:52:33 TacticalJoke oh yeah, there are whole books on that topic Jun 05 01:52:39 pretty sure people were narcissists before then too Jun 05 01:52:43 Selfies and "Zomg you're the prettiest person ever" x 1,000. Jun 05 01:52:53 Yeah, but narcissism seems to be celebrated today. Jun 05 01:53:06 of course, it's my birthday. Jun 05 01:53:07 Previously, it was kinda hidden and discouraged. Jun 05 01:53:16 (no, it's not) Jun 05 01:53:26 TacticalJoke also people's social media tends to be highly editied and exaggerated Jun 05 01:53:36 Yeah. Jun 05 01:53:43 TacticalJoke: I dunno. the existence of hollywood sorta flies against that Jun 05 01:53:56 to be fair, we're also edited an exaggerated IRL. Jun 05 01:54:11 You never see "Here's me spending the day indoors depressed. Notice the black eye from where she hit me again". "Whoa, awesome pic! Really captures the mood." Jun 05 01:54:16 It's not like you present the "real you" at work Jun 05 01:54:39 yeah but you dont show up to work in superman costume either Jun 05 01:54:54 maybe superman IS thereal me. Jun 05 01:55:05 but yeah, you do, it's called a suit. Jun 05 01:55:09 (and tie) Jun 05 01:55:48 I'm just saying that people always try to show their best side, that's all. Jun 05 01:56:25 I think it's gonna be disastrous. Jun 05 01:56:33 This whole modern-narcissism thing. Jun 05 01:56:45 It'll destroy relationships so much that we'll revert to hiding ourselves. Jun 05 01:56:54 is going into the bathroom to comb your hair before you go into the office REALLY any different than showing your best pics? Jun 05 01:56:56 pffft, show me a developer that wears a suit and tie to work :) Jun 05 01:57:06 It's like we're in a trial period. "Hmm, how will my life be if I post one selfie per day on Facebook." Jun 05 01:57:11 sure barbs, just a sec... :) Jun 05 01:58:01 pretty sure the same discussions were had when the phone appeared, and people spent hours on it talking to friends Jun 05 01:58:46 sigh, can't find them barbs... but I always wore a suit and tie to work. (did wonders for my career) Jun 05 01:58:58 YOU NARCISSIST! Jun 05 01:59:00 groxx: Have you seen Facebook/IG/whatever accounts of people who have thousands of followers/whatevers and who post one selfie per day? Jun 05 01:59:13 barbs, yep. I take meds for it. Jun 05 01:59:21 (yes, really) Jun 05 01:59:34 The kind of attention they get will ruin them. Jun 05 01:59:43 TacticalJoke: sure. just like stardom does to people. Jun 05 01:59:49 agreed Jun 05 01:59:56 The difference is that it's a lot of people today, not just a select few celebs. Jun 05 02:00:02 It's totally different from the past. Jun 05 02:00:12 TacticalJoke i've never seen it, because i dont follow anyone, but it causes a lof of anxiety and depression in youth Jun 05 02:00:32 TacticalJoke: minus the part where the same thing happened all the time when people had their "15 minutes of fame" through some news story Jun 05 02:00:33 Yeah, teens are hugely affected by what I'm talking about. It's a 24/7 popularity contest. Jun 05 02:00:38 And narcissism exhibition. Jun 05 02:00:40 aka "high school" Jun 05 02:00:51 groxx: It's not even remotely comparable. Jun 05 02:00:58 You're comparing maybe 4% of people with maybe 98% of people. Jun 05 02:01:19 The Internet takes what you're talking about and magnifies it enormously. Humanity has never seen anything like this. Jun 05 02:01:31 groxx its human nature, but the lubrication of technology magnifies the problem Jun 05 02:01:44 everything becoming 24/7 realtime Jun 05 02:01:45 yeah, but humanity can't comprehend large numbers either. does 100 followers actually cause different behavior than 1000? Jun 05 02:02:38 barbs , me at work (ignore the hat, there was alcohol involved...) http://uppix.com/f-217248_59362603655710319001918e5.jpg Jun 05 02:02:50 bah, hat should be 24/7 Jun 05 02:04:33 kids follow social media just because of FOMO Jun 05 02:04:38 fear of missing out Jun 05 02:04:48 FOMO fo sho. Jun 05 02:05:50 * surf2b1 is glad he didn't have a cell phone as a kid Jun 05 02:05:51 Yeah, I'm guessing that not being on $AwesomeSite is social suicide for most teenagers. Jun 05 02:06:15 And, in some circles, not getting a thousand likes per selfie is social suicide. :D Jun 05 02:06:17 so much more stuff beside looking at snapchat at IG Jun 05 02:08:09 groxx: This is the traces.txt pulled from my device: http://pastebin.com/yqPdEF93 I've tried running the code that I presume is causing the hang in a Handler().post, but the hang still occurs. I don't really know how to read this traces.txt, can you point me in the right direction? Jun 05 02:10:35 if I'm making a hashmap that I want to reuse in another activity, many times.. Do I want to put it in my activity where it's used or in my main? Jun 05 02:10:59 If I place it in my main it will only be made once oncreate, but if I put it in my 2nd it'll be created every time I run my 2nd activity.. Jun 05 02:11:06 what's the best practice here? Jun 05 02:11:59 and I'd have to make getters to get the values from the hashmap, correcto, righto? Jun 05 02:13:35 The simplest solution is to use a static field. (Some people don't like this and prefer DI frameworks, but personally I appreciate the simplicity of a static field for such things.) Jun 05 02:14:10 t0astt: hm. dunno, nothing's jumping out at me either. is this after you said "OK" to let the system kill the app? and then it takes to write it to disk (like a few seconds, I think. not really sure.) Jun 05 02:14:59 groxx: Yes, this is after OK'ing the system to kill the app. I was in a shell on the phone using ls to wait until the text file was generated Jun 05 02:16:41 t0astt: the main thing that looks weird to me is right up at the top, where GA appears to be blocking on a Future on the main thread. it doesn't quite look like most ANRs there that I've seen, though. Jun 05 02:16:52 t0astt: when does it lock up? at launch, after , ? Jun 05 02:17:45 groxx: it locks up when I click/tap a "Loading more" loading view that's injected into my recyclerview Jun 05 02:18:56 groxx: this is the code: http://pastebin.com/iXG6sFck Jun 05 02:19:10 dunno :\ check for synchronized code / locks / etc. not sure where to start thoguh Jun 05 02:19:39 Can you use `Log.i` to figure out when we're blocking? Jun 05 02:21:05 groxx: sure, give me a second to add in some code Jun 05 02:21:10 I mean TacticalJoke ^ Jun 05 02:23:50 http://www.computerworld.com/article/2931084/android/google-now-on-tap.html Jun 05 02:24:19 "Instead of just being a standalone app that you open sometimes -- and maybe see in your notifications once in a while -- Now on Tap turns Google Now into a connective tissue that ties everything on your device together with potent Google intelligence." ... do not want Jun 05 02:25:19 i wonder how many people really benefit from these things, i use my calendar to remember birthdays - and don't use tech for much intellectual prosthesis in any other area Jun 05 02:25:49 TacticalJoke, groxx: Here is my code with Log.i()'s inserted http://pastebin.com/VKNxWqZv It went all the way up to 12 and then the hang occurred... Jun 05 02:26:29 g00s: I wish I could make my calendar _stop_ remembering birthdays. too many of them, don't care, can't make it shut up and only remind me about like the 10 that I actually care about Jun 05 02:27:07 t0astt: check the activity it's launching? Jun 05 02:27:20 It showed "4" but not "5"? Jun 05 02:27:31 Oh, 12. lol Jun 05 02:27:34 I thought you meant line 12. Jun 05 02:28:06 TacticalJoke: It showed all of the Log.i's Jun 05 02:28:54 But now that I think of it, it shouldn't have even went through all of that... it's not a Post object that is clicked, it's a Load More view that's injected. I feel like I need to add in an "if instanceof " statement Jun 05 02:30:52 huh "Now on Tap uses a system known as Android's View Hierarchy. ... it basically scans the words you're seeing on your screen, identifies the most relevant terms, pastes them into a Google search, and then comes back with the info it thinks you need in a nicely structured card format." Jun 05 02:31:45 can i have it paste them into a duck duck go search ? Jun 05 02:31:47 :D Jun 05 02:31:56 hopefully they actually use the accessibility system to hint things, to push people into using it :| Jun 05 02:33:01 For anyone that like RxJava and Llamas, and despises Callbacks, https://gist.github.com/caseykulm/967a90ae49ba17b66183 Jun 05 02:33:09 Llamas? Jun 05 02:33:27 s/like/likes/ Jun 05 02:33:30 yep llamas Jun 05 02:34:35 * groxx wants to rename the project "retrollama" Jun 05 02:34:58 llama drama :) Jun 05 02:35:06 also: super llamas! Jun 05 02:35:12 re-troll Jun 05 02:38:07 groxx, TacticalJoke: Bug fixed. I added in a "if (mAdapter.getItem(itemClicked) instanceof Post) {...} " and now taps are handled correctly. Jun 05 02:40:52 What was happening before? Jun 05 02:41:40 http://4.bp.blogspot.com/-Mk2x3QbnUWw/UzZNKHc0mKI/AAAAAAAAFtc/f6MwBLfyFoM/s1600/dramallama.jpg Jun 05 02:43:22 I imagine a retro llama would be one wearing popped collars and sunglasses http://i2.kym-cdn.com/photos/images/newsfeed/000/676/045/ffc.gif Jun 05 02:44:00 heh Jun 05 02:55:13 Facebook Lite - only 1mb download Jun 05 02:55:24 wonder if they wrote that in assembly :) Jun 05 02:56:54 is it available in US? Jun 05 02:57:33 how much does it take to wrap a webview? Jun 05 02:59:49 Leeds its meant for areas with troubled connectivity, i doubt its webview **** ENDING LOGGING AT Fri Jun 05 02:59:59 2015