**** BEGIN LOGGING AT Wed Aug 17 02:59:58 2016 Aug 17 03:53:34 on a device with multiple accounts, are there any permissions that allow an app to access or modify files/contacts/etc of other users on the phone? Aug 17 04:06:02 sd512: yes Aug 17 04:06:25 other users? Aug 17 04:06:34 isn't there just one user on a phone / device? Aug 17 04:06:54 No, not on stock android. you can have multiple users/accounts Aug 17 04:07:20 as in gmail accounts? or accounts that youcan log into on your device? Aug 17 04:07:34 which brings up a different profile? Aug 17 04:07:36 accounts you can log into your device with Aug 17 04:38:37 "the optimal team size consists of four to six ArcTouch developers who will guide a client and its stakeholders across app design, engineering and quality assurance processes." Aug 17 04:38:51 interesting metric, from company that does hundreds of mobile apps Aug 17 04:39:03 no wonder why i feel overwhelmed :D Aug 17 04:52:37 g00s this is why I avoid job descriptions that say I'll be owning the whole project myself Aug 17 05:19:28 g00s: https://medium.com/friendship-dot-js/i-peeked-into-my-node-modules-directory-and-you-wont-believe-what-happened-next-b89f63d21558#.ix4961ixd Aug 17 05:22:26 gordon_ TIL “negotiator” makes great deals Aug 17 05:23:40 lol Hot Pockets Aug 17 05:23:46 gordon_ haha Aug 17 05:24:09 I thoguht nothing can shock me these days Aug 17 05:24:13 I stand corrected Aug 17 05:26:48 hha Guy Fieri Aug 17 05:32:25 g00s: this is too much for me :P Aug 17 05:33:17 gordon_ any knowledge creating robust on-disk data structures ? Aug 17 05:43:16 not really Aug 17 05:43:40 why do you need that ? Aug 17 05:44:39 i need to implement something like hadoop's RCFile Aug 17 05:44:54 i always punt to sqlite, but it isn't good for time series data Aug 17 05:45:18 or something like sframes, another format Aug 17 05:45:32 neither have java libs suitable for android Aug 17 06:50:49 In my android app I am using ORM and retrofit, I have two different model , 1 for ORM and another for retrofit callback , would it be better if i use single model in the app ? I find the current approach as redundant Aug 17 06:50:53 need an expert advice Aug 17 06:53:16 Does DateUtils.getRelativeTimeSpanString() return localized results? Aug 17 06:53:25 Or only in English? Aug 17 06:55:20 I need an example to understand what exactly is an API Aug 17 06:56:37 could someone take a look on this: http://pastebin.com/sfCt5ayk I'm adding images from an Array into a contentView that will be draggable, but as I have added the first image and placed it on the screen where I want it and carry on adding another one, the first one is being positioned back where the second image is being created. Do I need to create a new ContentFrameLayout for each of this images? Aug 17 06:59:38 I need to access WhatsApp chats in my application, is that possible? If yes, please elaborate Aug 17 07:32:37 Bhargav97: officially no Aug 17 07:33:41 Ok. And Unofficially? Accessing WhatsApp db at /data/data? Aug 17 07:35:16 if you can get to whatsapp data folder on your phone via adb shell Aug 17 07:36:57 Does adb allow su access? I really don't remember Aug 17 07:37:20 if youre rooted Aug 17 07:39:22 arent whatsapp db's stored on the external? Aug 17 07:39:36 i can see them in my sgs4 filexplorer Aug 17 07:40:13 whats everyone using for an IRC client on your Android devices? im using yaaic but im getting mixed channel headers. Aug 17 07:40:22 whatsapp/databases - they all got the .crypt12 extension though Aug 17 07:40:31 ssh + irssi :v Aug 17 07:40:45 rot12? Aug 17 07:41:40 I use irccloud Aug 17 07:42:34 http://stackoverflow.com/questions/37777913/decrypt-whatsapp-crypt12 Aug 17 07:42:45 raoul11: yeah, and it doesn't seem easy to decrypt them Aug 17 07:42:56 I'm checking out irssi and irccloud now. the header mixing is driving me nuts Aug 17 07:43:35 try androirc Aug 17 07:43:53 ssh clients on android tend to disconnect me randomly Aug 17 07:44:54 try mosh Aug 17 07:45:12 when I got yaaic, I was debating trying Android. Aug 17 07:45:20 juicessh supports mosh Aug 17 07:45:40 *androirc auto-correct Aug 17 07:46:16 Irccloud will keep you connected for few hours even after you close the app. In premium version, it'll stay connected forever Aug 17 07:47:34 I'm making list. I'm going to try them all later...I just got off work so I want to relax right now. Aug 17 07:48:40 we need a hexchat port. Aug 17 07:54:05 Anyone here dug into the security aspects of google smart lock (google passwords)? I can't seem to find any details about it Aug 17 07:55:42 is there a need for "super.onListItemClick(l, v, position, id)" in ListActivity's "protected void onListItemClick(ListView l, View v, int position, long id)"? Aug 17 08:58:48 Hi, I want my View v, which is inside a RelativeLayout to be match parent and its right edge aligned to left of the view, so its completely out of the view. I want to control it using translationX Aug 17 08:58:52 how do i do this? Aug 17 09:01:50 In constraint layout i could've used layout_constraintLeft_toLeftOf but its in alpha right now :( Aug 17 09:16:01 i have a list with over 100 cards for example and i want to implement them with viewpager. Currently i am facing stupid issues when user click on like button on the card because in the instantiateItem method i have onclicklisteners, but they shouldn't be there, i know. Aug 17 09:16:19 I think with fragments will be easier. If i use FragmentPagerAdapter instead. Aug 17 09:16:44 But one thing that worries me is the performance. Would it be good to have instanced 100 fragments? Aug 17 09:20:00 vol4ko: Horizontal RecyclerView! Aug 17 09:20:12 with width of each item match_parent Aug 17 09:20:23 fuck ViewPager, it hasn't been updated in years Aug 17 09:54:11 ?android:textAppearanceSmall which file contain these constants? I can't find them in R.dimen Aug 17 09:56:16 Hello guys is there a way to check if you have already called super.onCreate to avoid calling it again? Aug 17 09:57:04 The call should be in your code Aug 17 09:58:33 nevermind that actually Aug 17 09:59:07 I have to call super.onCreate(savedInstanceState, R.layout.whatever) outside of onCreate() Aug 17 09:59:13 is this possible? Aug 17 10:02:31 super.onCreate(...) is called in the @Override method from myActivity. The question is how can I call that method from a method which is not overriden from myActivity, in fact being overriden from another class. Is this possible? Aug 17 10:02:56 is there like a super pointer I can save within the object or something? Aug 17 10:19:04 ZeNEX, what Aug 17 10:19:49 you're overriding MyActivity and want to call super.onCreate but not make it call MyActivity.onCreate but Activity.onCreate instead? Aug 17 10:19:55 or did I understand that wrong Aug 17 10:19:58 Zharf, i can't call super.onCreate() to show a layout from another method that is not the one overriden from my activity (and called onCreate()), why? Aug 17 10:20:26 seriously that confuses me Aug 17 10:20:28 give me code Aug 17 10:20:31 okay Aug 17 10:24:05 Zharf, http://pastebin.com/ENG4WPxJ Aug 17 10:27:31 what error are you getting then Aug 17 10:27:49 I suspect that it's telling you that it's already done the creation, but you're being too vague Aug 17 10:29:26 Zharf, actually, the anotherRandomMethod is overriden too, and the error says "cannot resolve method onCreate(...)" Aug 17 10:30:20 well, there's only onCreate(Bundle) and onCreate(Bundle, Bundle) available Aug 17 10:30:34 R.layout.activity_request is an int Aug 17 10:31:15 I guess your myActivity (naming conventions!) defines such a method? Aug 17 10:31:26 Zharf, okay does this have anything to do with it "@SuppressLint("MissingSuperCall")" Aug 17 10:31:43 that's on the method which is not complaining Aug 17 10:31:59 and in the one which it is complaining that is not there, so I assume thatś the problem? Aug 17 10:32:55 nope, lint warnings don't affect the compiler Aug 17 10:33:27 Zharf, the compiler is not saying anything, just the IDE Aug 17 10:33:31 ... Aug 17 10:33:38 I guess its the same right Aug 17 10:33:43 that's a compiler thing, the IDE integrates with the compiler Aug 17 10:34:17 hi Aug 17 10:34:20 Zharf, minor detail: the method which the IDE is complaining about is inside here: private ServiceConnection mConnection = new ServiceConnection() { //inside here } Aug 17 10:34:20 I can't help you without a full example of what's going on, but I suspect that what you're trying to do isn't even going to work in android Aug 17 10:34:45 in build.gradle i have: Aug 17 10:34:45 compileSdkVersion 21 Aug 17 10:34:51 buildToolsVersion "21.1.2" Aug 17 10:34:58 minSdkVersion 16 Aug 17 10:35:01 targetSdkVersion 21 Aug 17 10:35:11 if i want to support from api16 to latest api what should i do? Aug 17 10:35:27 Zharf, I can give you a full example Aug 17 10:35:27 DelphiWorld, please use a pastebin for that stuff next time Aug 17 10:35:40 Zharf: ok, i'm sory Aug 17 10:35:48 i thought those are a few ceparate lines ;) Aug 17 10:35:53 DelphiWorld, target and compile sdk versions 24, build tools 24.0.1 Aug 17 10:36:12 make sure you have them installed from sdk manager though Aug 17 10:36:18 offcource Aug 17 10:36:22 and min sdk? Aug 17 10:36:35 minsdk is whatever you want to support at the least Aug 17 10:36:48 Zharf, http://pastebin.com/gBnbba09 its big so yeah the line giving problems is number 80 Aug 17 10:37:10 Zharf: will do it now. thank much dude Aug 17 10:38:26 ZeNEX, you want RequestList.this.onCreate(savedInstanceState, R.layout.activity_request); Aug 17 10:38:51 Zharf: latest question, what's the min sdk recomanded to support? Aug 17 10:39:55 DelphiWorld, depends on what you want to do, to be honest... if you use MediaCodec stuff then I might go with 18 or 19 or even 21, but for most other stuff I find 15 to be sufficient Aug 17 10:40:35 Zharf: and how the hell you knew i use media codecs? LOOOL... you're inspecting my rom? LOL... ;) Aug 17 10:41:01 https://developer.android.com/about/dashboards/index.html has a piechart of distribution Aug 17 10:41:25 DelphiWorld, it was just based on my personal experiences with MediaCodec so I just threw it out there Aug 17 10:41:43 Zharf: my app use vitamio Aug 17 10:41:50 isn't mine honestly but i bought it Aug 17 10:42:30 will try to support api15 Aug 17 10:42:36 https://developer.android.com/reference/android/media/MediaCodec.html the reason for the thing is visualized under "Valid API calls and API history" Aug 17 10:42:48 I think mediacodec requires at least api16 though Aug 17 10:43:03 do you think vitamio use media codecs? Aug 17 10:44:14 no clue Aug 17 10:45:47 their webpage says thay support down to api7 so I'd say no, they don't use MediaCodec Aug 17 10:48:57 Zharf: have you used exo player? Aug 17 10:49:23 tried it once Aug 17 10:49:39 i see Aug 17 10:50:00 it was ok, but I didn't do enough testing to know if it's any good Aug 17 10:50:18 we use it here Aug 17 10:51:40 exoplayer requires min api 16 because it does use mediacodec Aug 17 11:45:40 I'm trying to stop a draggable object to go off screen: http://pastebin.com/3xMw59Hh but not sure v.getTranslationX() is the right way to get current X position? Anyone done this before? Aug 17 12:31:02 hello everyone;) i have a big problem with my Galaxy S3 mini... when I'm using the phone on mobile data or WiFi after few seconds the phone turns off, No animation, no sound, nothing Aug 17 12:32:22 forgot to mention that when the phone is plugged in charger is OK Aug 17 12:36:13 thrasher88, this channel is for application development. Are you developing an application on your Galaxy S3 mini? Aug 17 12:36:14 thrasher88: this channel is about development, sorry Aug 17 12:37:30 ooooh, my bad... sorry, but is there a channel where I can get help? Aug 17 12:37:32 thrasher88, if you start to develop applications on your Galaxy S3 mini someone may tell you that you could join #android to get the kind of help you need Aug 17 12:37:51 thrasher88, otherwise they may keep the secret Aug 17 12:38:06 thrasher88, ops... I accidentally told you the secret Aug 17 12:39:06 thrasher88, now you have to start developing Android applications on your Galaxy S3 mini Aug 17 12:41:29 What a moron. He didn't even say "Thanks" Aug 17 12:41:51 Hope his Galaxy S3 mini is broken and can't be repaired Aug 17 12:50:06 Why I shouldn't use Fragment's onCreate for initialization of views? Aug 17 12:51:52 Fragments have onCreateView() method just for that. Aug 17 12:55:21 vol4ko: I was told not to call OnCreate because Activity's OnCreate could still be in progress. Aug 17 12:55:37 Is that right? Aug 17 12:58:39 So if I am right when OnCreateView is called Activity's OnCreate should have ended. Aug 17 12:59:22 But here's my confusion: There's also OnActivityCreated method which should be called after Activity's OnCreate method is finished as the name implies. Aug 17 12:59:45 So why use OnCreateView and not OnActivityCreated? Aug 17 13:04:46 Instantiate your view hierarchy wherever you like, as long as you return a View in onCreateView noone cares Aug 17 13:06:20 And as long as you null out your views in onDestroyView, especially if you display lots of bitmaps Aug 17 13:07:09 Anyone got useful tools for maintaining fragment states in your app's lifecycle Aug 17 13:07:24 I have a single-activity app with loads of dialogfragments Aug 17 13:07:43 just need to make sure they don't disappear when switching out apps (onStop) Aug 17 13:07:53 They don't Aug 17 13:08:21 They are at the moment because I am doing the unspeakable finish() onStop() right now Aug 17 13:08:28 as I am not confident in my lifecycle handling Aug 17 13:08:30 Now why would you do that? Aug 17 13:08:36 just yet Aug 17 13:08:41 lots of things happening in the app :P Aug 17 13:08:55 want to be sure everything is great before I remove it :p Aug 17 13:09:17 Yeah, good luck Aug 17 13:17:48 SimonVT: It means the Activity's OnCreate is not running when OnCreateView is called? Aug 17 13:22:07 Is it bad coding standards to have blank lines within your code? Aug 17 13:22:22 markyosullivan, blank lines? Aug 17 13:22:38 you mean spaces between rows of code? Aug 17 13:22:49 yes Aug 17 13:22:58 Add some log statements. Might be called during onCreate, might not. Might be different during creation and when restoring from state Aug 17 13:23:09 why would that be "bad coding standards" Aug 17 13:23:12 I sometimes do it to try and make my code more readable Aug 17 13:24:27 blank lines are good Aug 17 13:24:31 just don't overdo it Aug 17 13:26:24 compiled languages dont care for how many spaces your put in your code. compiler simply skips over them during compilation Aug 17 13:29:35 SimonVT: isn't it OnActivityCreated where the view hierarchy is actually finished? Aug 17 13:30:41 but we are still using OnCreateView to draw views where Activity's onCreate could be in progress Aug 17 13:33:27 What's the issue? Aug 17 13:34:22 Also, have you tried just adding some log statements? Actually check when and where lifecycle callbacks are called? Aug 17 13:35:22 Maybe even a breakpoint in onCreateView Aug 17 13:36:03 Yes. Aug 17 13:36:53 Both fragment's OnCreate and OnCreateView are called after Activity's OnCreate Aug 17 13:36:58 So you know when it's called, yet you ask? Aug 17 13:38:25 Maybe a break point would do it Aug 17 13:38:41 To see if its called during or after Aug 17 13:39:27 You just said it's called after Aug 17 13:43:03 Logs don't say about "called during" Aug 17 13:43:23 Add a log statement at the beginning and at the end Aug 17 13:43:31 Is it called between those two? Then it's during Aug 17 13:46:21 Okay, both of fragment's OnCreate and OnCreateView are called after Activity's OnCreate Aug 17 13:47:34 But documentation says it could be called "during" Aug 17 13:47:57 OnCreate- "Note that this can be called while the fragment's activity is still in the process of being created." Aug 17 13:48:25 hmm, purplex88 you can just consult the android source code :) Aug 17 13:48:53 depends on how you're adding the fragment Aug 17 13:48:57 There's a difference between fragments added in code and in layouts Aug 17 13:49:08 and on state restoration during config changes Aug 17 13:49:23 there are lots of conditions that can affect order Aug 17 13:50:57 So is Activity's OnCreate guranteed to be finished when OnCreateView is called which is the reason why we are using it for inflation? Aug 17 13:51:32 Does the documentation mention any guarantee? Aug 17 13:53:01 If not, then no, there's no guarantee Aug 17 13:53:09 It only guarantee's about OnActivityCreated Aug 17 13:53:31 It might be how it works now (assuming you checked all mentioned combinations), but that's subject to change Aug 17 13:55:31 According to documentation, by the time OnCreateView is called, view hierarchy should be finished but not Activity's OnCreate so that might be the slight difference Aug 17 14:01:14 Hello, i need some help. I'm having problems with my code Aug 17 14:01:43 it goes like this Aug 17 14:01:44 prisluzenDenar = Float.parseFloat(energija)*odkupnaCena/1000; String cifra = String.format( "%.5f", prisluzenDenar ); oknoPrisluzenDenar.setText(cifra); oknoPrisluzenDenar.append(" €"); Aug 17 14:02:13 oknoPrisluzenDenar is a textview and it's not showing the euro sign, just the numbers Aug 17 14:02:18 anyone have an idea why? Aug 17 14:03:19 I also tried something like setText(cifra + " €") Aug 17 14:05:31 fruc: look into DecimalFormat if you want to display currency symbols Aug 17 14:08:59 i dont't quite understand it Aug 17 14:09:07 DecimalFormat that is Aug 17 14:10:17 and I don't really understand why my piece of code isn't working, cause if I use getText() on my textView, it has the number and the euro sign inside, but it just isn't showing it Aug 17 14:17:27 fruc: actually, NumberFormat has a factory method for a currency formatter: https://developer.android.com/reference/java/text/NumberFormat.html#getCurrencyInstance(java.util.Locale) Aug 17 14:19:04 fruc, don't slovenian variable name cause syntax errors? Aug 17 14:19:09 names Aug 17 14:19:32 why would they? :) Aug 17 14:20:32 :) Aug 17 14:21:42 Hello guys Aug 17 14:22:13 I'm trying to setup a proxy for the AVD but it doesn't work. Aug 17 14:22:24 What I've tried: Aug 17 14:22:32 - Setup a VPN with the proxy address.- Aug 17 14:23:18 Actually not VPN Aug 17 14:23:22 Access point I mean Aug 17 14:25:38 ranguro, are you the same ranguro who was setting up a proxy for the AVD yesterday? Aug 17 14:25:44 bah i have no clue how to work out this numberFormat or DecimalFormat Aug 17 14:25:48 Yes, sir. Aug 17 14:26:13 I haven't found a real solution. Aug 17 14:26:23 ranguro, I sympatize with you. Aug 17 14:26:39 sympathize Aug 17 14:27:05 Hi Guys. I have a requirement to make a network call on an asynchronous thread, and I need to interrupt the user and show an alert dialog after the thread finishes. How can I do that? Aug 17 14:27:27 I won't have the reference of the foreground activity when the thread finishes Aug 17 14:28:28 keywords: android background thread main thread communication Aug 17 14:28:57 fruc: there are examples in the doc ... Aug 17 14:32:16 arancio: lol? Aug 17 14:36:42 alexfu: it's driving my crazy. I'm doing the same thing some people on stackoverflow have said, and it still isn't working :( Aug 17 14:37:06 like just now, i tried this Aug 17 14:37:08 DecimalFormat dec = new DecimalFormat("#.#### EUR"); String credits = dec.format(prisluzenDenar); oknoPrisluzenDenar.setText(credits); Aug 17 14:37:39 and it doesn't work for some reason Aug 17 14:38:24 fruc: if your currency symbol is at the end, maybe your view is being clipped; chopping off the symbol Aug 17 14:41:00 Is there any way I could set up this instruction as a global setting emulator -avd Nexus_5X_API_23 -http-proxy http://10.102.80.149:8888 ? Aug 17 14:41:28 so that I won't have to type it over and over again or run a bat file Aug 17 14:43:07 alexfu: i guess you are right, i tried with fewer digits and it's showing properly now. Any quick tips how to solve this? Aug 17 14:43:10 alexfu: thanks btw Aug 17 14:44:12 fruc: make sure TextView width doesnt grow larger than it's container (use width=match_parent) Aug 17 14:46:22 alexfu: i have it set to android:layout_width="match_parent" Aug 17 14:46:55 fruc: are you using left/right margins? is so, dont, use padding instead Aug 17 14:47:51 alexfu: i'll post the whole textview xml Aug 17 14:47:53 om="@id/odkupnaCenaVrednost" android:textColor="#FFFFFF" android:textSize="@dimen/velikost_texta" android:gravity="center" /> Aug 17 14:48:22 sorry for the spam Aug 17 14:48:38 wow. use pastebin Aug 17 14:49:17 sorry, fairly new to this Aug 17 14:49:19 http://pastebin.com/1sBuYJTW Aug 17 14:53:24 fruc: as far as i remember, relative layouts and textview wrapping dont work together. to stop your textview from clipping, either allow textview to wrap it's content (you'll probably need to use a layout other than RelativeLayout) or, always ensure your text is 1 line long by changing the text size when you update the text Aug 17 14:57:04 alexfu: I found the problem Aug 17 14:57:28 I had my textview aligned to another textview on the left and right, and that's why it was clipping the text Aug 17 14:57:40 Thank you very much for the help! Aug 17 15:31:03 hmm Aug 17 15:31:23 does anyone know how to get the height of a layout if that layout was in wrap_content mode Aug 17 15:31:48 it is currently fixed, but I would like to programatically animated to it's larger, wrap_content size. Aug 17 15:32:08 animate* Aug 17 15:33:51 measure Aug 17 15:34:02 that's how you get the height Aug 17 15:34:04 or getMeasuredHeight Aug 17 15:34:11 if measuring already occurred Aug 17 15:34:59 pfn: its height is set to less than that of its child views Aug 17 15:35:05 so some are not visible / on the screen Aug 17 15:35:28 so say it's height is currently 100dp, its contents could make up a height of around 300dp Aug 17 15:35:35 then measure Aug 17 15:35:44 and/or getMeasuredHeight as necessary Aug 17 15:38:50 pfn: oh hi there, what's news? Aug 17 15:38:57 haven't seen you in some time Aug 17 15:39:08 usual, work work, 'cept I'm out of work currently ;-) Aug 17 15:39:29 so pet projects? Aug 17 15:40:04 for now, probably play with swift, rust and haskell more Aug 17 15:41:53 swift?! Aug 17 15:41:56 Oh wait Aug 17 15:42:02 I thought I was in the iOS channel Aug 17 15:42:05 :p Aug 17 15:44:20 eh, can use swift outside of ios, that makes it interesting Aug 17 15:48:33 pfn: measuredHeight would just return how high the view wants to be in its parent though Aug 17 15:48:38 no? Aug 17 15:48:46 tx, that's precisely the meaning of wrap content Aug 17 15:49:56 Sure, but it's fixed right now Aug 17 15:50:08 onResume is called every time a fragment is loaded right? even if the fragment is 'displayed again' after a user hits the hardware back button? Aug 17 15:50:37 then force a measure again Aug 17 16:21:50 What would cause my local sources to be out of sync with what i'm seeing on maven? Aug 17 16:22:07 Source path: /Users/Matt/.gradle/caches/modules-2/files-2.1/com.parse/parse-android/1.13.1/121031930972bac287c21e4147f8432ff8ab6fe4/parse-android-1.13.1-sources.jar!/com/parse/ParseFile.java Aug 17 16:22:14 and compile 'com.parse:parse-android:1.13.1' Aug 17 16:28:39 caralho Aug 17 16:58:46 ^ Aug 17 17:08:43 What are the best practices to fork() within android? Aug 17 17:09:21 Depends on your needs Aug 17 17:11:18 ResidentBiscuit: so I have this main activity/service, and I want it to fork/spawn a new python process on demand (i.e., have as many forks as required by the original application) Aug 17 17:11:32 These forked processes are using JNI, mostly Aug 17 17:12:02 (we compiled our own python interpreter) Aug 17 17:12:10 gordon_ the JS article was satire :) Aug 17 17:14:09 Hi! Is it possible to set specific steps in a seekbar, like 3, 5, 8, 10, 20? Aug 17 17:29:40 mEck0, just use 1-unit steps, but translate the position to the sequence you want Aug 17 17:32:37 pfn: ok, I'll try Aug 17 17:34:07 pfn: I assume onProgressChanged() should be the place to do the translation Aug 17 18:19:41 capella-5x i'm giving FF another try here Aug 17 18:20:21 desktop? Aug 17 18:20:29 yeah. still has the same problems as 6mos ago ~~~ Aug 17 18:20:48 but electrolysis? Aug 17 18:21:18 i have that off because uBlock origin / EFF privacy badger Aug 17 18:21:54 nice that uBlock is now available for safari though. so my safari / FF setup is apples to apples - performance there is no comparison Aug 17 18:22:28 seems whenever FF is rendering a page, all tabs stutter. so if I go to amazon.com with really hammers FF, and they go to load some page in any other tab, its a mess until amazon tab settles down Aug 17 18:22:30 oic yah add-ons still in flux, FF is still great hobby app though, get it , build it, hack it personal Aug 17 18:22:44 i don't think e10 will help with that, since all the rendering is still in the same process Aug 17 18:23:18 right, not truly per tab process iirc Aug 17 18:24:01 mobile FF Android has gotten way better Aug 17 18:24:19 scrolling to panning specifically Aug 17 18:25:14 and the C++ to Java link/glue is pretty tight Aug 17 18:25:52 the new text selection code us awesome Aug 17 18:26:39 😛 unashamed plug Aug 17 18:28:12 g00s I tried muBlock but switched back, found incompatibilities Aug 17 18:30:49 capella-5x incompatibilities with mobile FF ? Aug 17 18:32:03 er, abp seemed to work better as-is, muBlock reqd more intervention Aug 17 18:32:25 I didn't have the patience :) Aug 17 18:32:28 ah Aug 17 18:33:26 iirc my main issue wad usinf mublock combined with readermode Aug 17 18:34:22 * capella-5x can't lose my readermode.... removes visual clutter and bypasses a lot of paywalls Aug 17 18:34:39 * capella-5x (shhhhhhh) Aug 17 18:35:56 oh i forgot about that Aug 17 18:44:08 nice, support lib 24.2 Aug 17 18:44:13 no docs (as usual ha) Aug 17 18:44:26 guy, how is your android development going? Aug 17 18:44:33 guys Aug 17 18:44:50 why did they deem it acceptable to release that without the docs? Aug 17 18:45:03 ohh, support-fragment Aug 17 18:45:24 s73v3r 'fast and loose' :) Aug 17 18:45:39 https://developer.android.com/topic/libraries/support-library/revisions.html Aug 17 18:45:56 oh this is the one where the bumped minSdk Aug 17 18:46:21 “Release 24.2.0 removes support for Android 2.2 (API level 8) and lower.” Aug 17 18:46:38 hopefully less methods ... Aug 17 18:46:46 So what is the new minSDK for that? It sure would be nice if they said so Aug 17 18:47:11 Well, if they no longer support 8 and lower Aug 17 18:47:16 I would guess they support 9 and higher Aug 17 18:47:24 Then why not explicitly say that? Aug 17 18:47:56 "If you use the appcompat library's day/night functionality, the system now automatically recreates your activity whenever the day/night mode changes " Aug 17 18:48:01 oh man, finally it works Aug 17 18:48:04 Seems redundant Aug 17 18:48:24 be prepared for a whole bunch of apps to break because of that, though, g00s Aug 17 18:48:38 i don't use any apps, except gapps heh Aug 17 18:48:51 sooooo many people lock to portrait cause they think now they don’t have to support activity recreation Aug 17 18:48:52 and mine :D Aug 17 18:49:40 we’re gonna get a bunch of questions saying, “my activity was recreated for no reason” Aug 17 18:50:06 MultiWindow also forces activities into landscape mode Aug 17 18:50:11 Even if they opted out :P Aug 17 18:50:17 Can't wait for all the whine on /r/androiddev Aug 17 18:50:20 Hah, nice Aug 17 18:50:48 being very pessimistic, i always anticipate the worst with my android lifecycles ;) Aug 17 18:51:00 hopefully it will cause people to appropriately support recreation Aug 17 18:51:19 and google to take a closer look at the lifecycle, and hopefully simplify it Aug 17 18:51:37 g00s: what a day Aug 17 18:51:41 god hates me today Aug 17 18:51:51 thepoosh lol , BBQ go awry ? Aug 17 18:52:04 nah Aug 17 18:52:18 clients attempting DDoS after 100% release Aug 17 18:52:32 wut Aug 17 18:52:41 your clients ? Aug 17 18:53:07 yeah Aug 17 18:53:23 we had a login safeguard re-written in the last version Aug 17 18:53:26 so some faulty polling / retry logic ? Aug 17 18:53:34 oh Aug 17 18:53:41 that in very edgy edge cases might have fucked up the servers Aug 17 18:54:08 g00s: yeah, someone told me that too, but the fact that you didnt suspect it to be false says something about it's eco system Aug 17 18:55:37 thepoosh sorry to hear that, i'd like to hear the post-mortem Aug 17 18:55:58 i have it assuming what i think happened Aug 17 18:56:26 meaning i think i know what happened Aug 17 18:56:32 uploading version Aug 17 18:56:37 soon to come explanations Aug 17 18:56:46 Hey guys I'm trying to send an intent from a keyboard app that has no activity. I'm getting the following error, Calling startActivity() from outside of an Activity context requires the FLAG_ACTIVITY_NEW_TASK flag. Aug 17 18:56:56 However I did try adding that flag Aug 17 18:56:59 and stillt he same thing Aug 17 18:57:03 Any suggestions? Aug 17 18:57:52 code? Aug 17 18:57:57 stacktrace? Aug 17 18:57:58 logcat? Aug 17 18:58:23 one sec, I'll setup a gist Aug 17 18:58:41 AlphaKatten, sorry I can't help. Your problem is too advanced for me Aug 17 18:59:09 I'm at chapter 20 of "Android Programming" Aug 17 18:59:43 when I'll get to the chapter with that stuff, I'll help you Aug 17 19:02:41 I need to create repeating notifications. Do I need to create an repeating alarm to make it work, since I haven't seen any repeat property for NotificationManager. Aug 17 19:08:23 ah sorry, just have to head off now for a bit, I'll be back later with a full paste Aug 17 19:09:51 hi joshkovach Aug 17 19:11:17 can i just use getLatoutInflater() instead of "LayoutInflater inflater" which comes from CreateView? Aug 17 19:14:21 aroncio: learned enough to make app? Aug 17 19:15:33 i'm at chapter 13, trying to clear concepts, i think a single book cannot just help you Aug 17 19:15:50 until you read docs etc. Aug 17 19:16:03 which book? Aug 17 19:17:00 just big nerd ranch Aug 17 19:17:12 purplex88, I made a fantastic demo of the main activity of my application... before I began reading this book. Now I'm in learn mode. Aug 17 19:17:43 The books I attempted to read before this were worse than this Aug 17 19:18:07 i see. which book? Aug 17 19:18:52 "fantastic demo" is ironic. It's just a plain ordinary demo which works without interaction with the server. Aug 17 19:19:39 "The Busy Coder's Guide to Android Development" and "Professional Android Application Development" Aug 17 19:20:13 good books, first one i think has over 3000 pages Aug 17 19:21:01 arancio: taking notes as well? Aug 17 19:22:11 second one seems like from wrox, they have a uniqie approach Aug 17 19:22:27 like "how it works" sections Aug 17 19:22:50 hi . ya'll :) Aug 17 19:23:13 thepoosh: did you learn straight from documentation? Aug 17 19:23:48 i remember you said the other day Aug 17 19:24:04 dar10s hi Aug 17 19:24:05 so i would like to search a way to know how much digits a person types in a year field Aug 17 19:24:46 dar10s: is that an android widget? Aug 17 19:25:50 that tells my app real time how many digits are being typed in editText the Aug 17 19:25:59 purplex88: today yes Aug 17 19:26:02 and source code Aug 17 19:26:12 in the begining i learned from books and youtube Aug 17 19:26:19 i use to like thenewboston Aug 17 19:27:28 thepoosh: i'm checking out a channel called "slidenerd", it seems to have nice information. Aug 17 19:28:04 anyone play around with the latest support library yet? Aug 17 19:29:26 thepoosh: also udacity free courses Aug 17 19:29:38 for networking Aug 17 19:29:45 i grow bored with their courses Aug 17 19:29:58 they seem friendly Aug 17 19:30:02 purplex88, no, I don't take notes. Most of the time don't even run the code. Honestly, I don't like this kind of books. I find them boring. I'd like to orient myself in the Android platform, learning the basics and then be able to work with the reference docs and asking here from time to time. Aug 17 19:30:25 purplex88, programming books make me sleep. I prefer other kind of books. Aug 17 19:31:35 i agree i don't read half of them Aug 17 19:31:56 especially if you take about "busy coder" Aug 17 19:32:04 thats what i call boring Aug 17 19:33:00 sometimes i prefer a more direct and practical approach Aug 17 19:36:38 The main problem for me it's that Android for me it's just the same old stuff in another souce. Which is very uninteresting. So I'd like to find a book that teaches me what's specific in Android and leave me free to explore to find the rest while I program my application. But since everybody has a different background, it's impossible to find a book that is not boring FOR ME while being useful to enough people to justify its publication. So I have Aug 17 19:36:38 to read lots of boring stuff in order to learn the bits that I really need. Aug 17 19:38:04 Sorry, I'm making lots of grammar errors. Better go back to my book. Have a quick and fruitful learning and live long and prosper. Aug 17 19:38:57 We shall master Android! Aug 17 19:41:02 capella-5x my FF process is taking up 666 mb ! Aug 17 19:42:52 bugzilla.mozilla.org 😛 Aug 17 19:43:53 dsardari i'm waiting for you guys before i take the plunge ! Aug 17 19:44:29 arancio there is no mastering android, only mastering SO to find android stuff Aug 17 19:45:05 :P <-- added Aug 17 19:50:54 g00s, I'd be happy with mastering StackOverflow to find android stuff, then. Aug 17 19:53:02 find android stuff = read through aosp Aug 17 19:53:04 there is no other solution Aug 17 20:10:09 I don't think I'm setting any new records concerning speed at which I am learning Android Studio, but I am happy to be making daily advances. Aug 17 20:10:21 cheers to those who have helped Aug 17 20:15:20 azv4 using gradle 3 ? Aug 17 20:15:30 sounds like it got a bit faster for real Aug 17 20:15:42 2.1.2 Aug 17 20:15:48 is 3 out now? Aug 17 20:16:03 yeah but , beware i think you need a beta plugin Aug 17 20:16:06 I can't wait to find out what I will need to learn to migrate to 3! Aug 17 20:16:07 and as 2.2 Aug 17 20:16:11 I think I will pass for now Aug 17 20:16:27 I'm still hanging on by a thread Aug 17 20:17:01 if a certain community member of this channel hadn't taken me under his wing I'd probably be dead irl right now, or in a looney bin, or working as an IT Tech again Aug 17 20:20:46 * g00s looks under wing to see if anyone is there Aug 17 20:20:50 nope Aug 17 20:38:35 Alright, I'm back, I'm trying to send intention when a user clicks on a custom keyboard button. I've add the relevant code and stack trace here: https://gist.github.com/anonymous/2c3bb3cc6fe24051173f82f06eba764e Aug 17 20:39:05 Just wondering what I'm doing wrong as I get a fatal exception anytime the clickListener is called Aug 17 20:39:37 trying to send an*, I've added* Aug 17 20:40:09 anyone happen to know what might cause auto complete suggestions to use a ton of CPU and memory and slow Android Studio to a halt? Aug 17 20:52:02 * kbs wishes grok/kythe was really a widely used thing instead of stuffing code indexing tools into each ide Aug 17 20:52:37 kbs link ? Aug 17 20:52:41 never heard of it Aug 17 20:52:47 http://www.kythe.io/ Aug 17 20:52:53 this was steve yegges baby, iirc Aug 17 20:53:10 but i'm sure the auto-complete is tightly integrated with the ide Aug 17 20:53:12 usually the indexers have a deeper understanding of the code, whereas stuff like grok is just text. Aug 17 20:53:38 and making it language agnostic seems extremely difficult as each language is going to have a different context for things Aug 17 20:53:40 grok/kythe is/was intended to essentially parse languages into an abstract indexable syntax Aug 17 20:54:19 true - but most (not all) things are close enough to not matter when navigating aosp + services, crossing java + c++ + go etc Aug 17 21:28:23 using android studio, I see the docs talking about the emulator tab in the run configuration, but I can't find that tab Aug 17 21:28:53 how do I set the emulator to use `-use-system-libs` when launching? Aug 17 21:34:29 chilversc, use genymotion. There's a free ver for personal use. It's based on vbox virtual machines. Aug 17 21:42:28 If you're using the emulator a lot Genymotion is well worth it Aug 17 21:43:24 Affian, have you used the official emulator recently? Aug 17 21:43:45 Geny used to be far superior, but now i would give the official emulator the edge Aug 17 21:44:02 I typically use the official one more Aug 17 21:44:59 but you still think genymotion is much better? Aug 17 21:45:20 in case it matters, I'm running this inside vmware workstation (with VT-x emulation enabled) Aug 17 21:45:42 and for some reason that causes it to fail unless I use the system C++ lib Aug 17 21:46:23 VMs inside VMs always scare me Aug 17 21:46:43 emulator inside of a vm.... ¯\_(ツ)_/¯ yeah. Ive never needed to try that Aug 17 21:46:48 runs fine with the -use-standard-lib flag, but I can't see anywhere in android studio or android device manager to set that flag Aug 17 21:47:14 chilversc, unless they removed it semi recently it should be there somewhere Aug 17 21:47:27 I dont recall where exactly, but I have used it in the past Aug 17 21:48:00 I can't see any place to put command line flags in the AVD Manager Aug 17 21:48:53 Or is `-use-system-libs` for the run command? (I haven't used that flag before) Aug 17 21:50:56 You can always just launch the emulator from the command line, and then once it is running choose it from the launcher dialog Aug 17 21:51:15 as long as it is connected to adb it should show up Aug 17 21:51:41 it's `./emulator -use-system-libs -avd ...` Aug 17 21:52:08 yeah, I was just wanting to avoid that to keep it nice and simple Aug 17 21:53:58 guess that'll have to do for now, time to learn some android dev Aug 17 21:54:06 Make a script you can double click to start it Aug 17 21:55:52 chilversc, why are you running your dev environment in a VM? Aug 17 21:56:17 I want to work on linux but my main OS is windows on this machine Aug 17 21:56:53 I might add dual boot later but I normally don't like that as it's annoying to have to keep rebooting in to a different OS Aug 17 21:58:28 How my listfragment does click well on the list item? Aug 17 21:58:33 https://www.dropbox.com/s/2mcnd7808ym1ubn/ListFragment%20Click.png Aug 17 21:58:35 I havn't really noticed any slow down, even the android emulator runs fast in the VM Aug 17 21:58:44 doesn't click well* Aug 17 21:59:48 purplex88 the text view in the cell doesn't fill the row Aug 17 22:00:15 yes but it works in listview and listactivity Aug 17 22:00:48 do i need to customize and change textview? Aug 17 22:02:06 probably. do you have it set to match_parent of wrap_content? Aug 17 22:02:10 for the width Aug 17 22:02:19 I assume the issue is that the highlight isn’t the full width Aug 17 22:02:46 yes thats my issue Aug 17 22:03:50 ok changing it to match_parent fixed it Aug 17 22:03:56 I'll also advise looking into RecyclerViews Aug 17 22:04:18 but why? it though "match_parent" means fit listview to parent Aug 17 22:04:34 you’re talking about the cell itself Aug 17 22:04:34 but here its fit text views within listview Aug 17 22:04:48 the cell’s parent is the listview Aug 17 22:04:49 fitting* Aug 17 22:07:38 s73v3r: with normal listview it works even with wrap_parent Aug 17 22:07:51 wrap_content* Aug 17 22:08:11 no it doesn't Aug 17 22:08:29 i'm ran the code, it does Aug 17 22:08:33 i* Aug 17 22:09:48 Aug 17 22:10:04 you were supposed to change the textview width Aug 17 22:11:02 but if you want the listview filling the screen, it should probably be match_parent anyway Aug 17 22:11:06 with listfragment i say: to make the highlight width match parent Aug 17 22:11:47 yes, but in second case ^ its doing for textview Aug 17 22:12:29 you want the cell to fill the width so that the highlight, which is a background on a cell, fills the width Aug 17 22:12:40 so just set the listview to match_parent Aug 17 22:13:32 why its different from normal listview? Aug 17 22:14:02 it’s not Aug 17 22:14:04 there is no difference Aug 17 22:14:46 in normal listview i do: and in listfragment i do: Aug 17 22:15:15 which makes the highlight behave as it should Aug 17 22:15:23 you’re gonna have to post the entire layout, and not just a little snippet Aug 17 22:15:36 but I’m guessing your fragment wasn’t set to match_parent either Aug 17 22:18:13 I apologise for venting, but React Native makes me so sad Aug 17 22:19:18 s73v3r: the fragment was already match_parent Aug 17 22:19:42 i can post the code if it seems like a bug Aug 17 22:20:34 again, you’re gonna have to post your layout code Aug 17 22:23:39 for normal listview: http://pastebin.com/0Fbu26HM Aug 17 22:26:03 both layouts for listfragment: http://pastebin.com/yGFFzpQZ Aug 17 22:27:48 ^ using the posted layout for listfragment the highlight doesn't work as intended Aug 17 22:28:15 because your listview is set to wrap_content Aug 17 22:28:36 its set to wrap_content in normal listview too Aug 17 22:28:55 and it’s inside a relativelayout, which is match_parent Aug 17 22:28:56 but it works there Aug 17 22:30:44 oh right Aug 17 23:49:55 anyone here have experience using mmap files on Android? what happens when the OS i/o system fails with SIGBUS, does android jvm catch it - because regular doesn't Aug 18 01:58:03 I don't have this problem on my other computers Aug 18 01:58:28 but on this one, when the computer sleeps while an android emulator is open, the clock will get way out of synch Aug 18 01:59:01 so if my computer sleeps for 1 hour, the emulator will be one hour behind Aug 18 02:00:25 is it still possible in android (5/6+) to load images from your "res/drawable*" folder(s) inside a local webview? Aug 18 02:04:53 tx, I would assume so. Isn't it working for you? Aug 18 02:09:20 Affian: nope Aug 18 02:09:36 I might need to resort to encoding them (b64) and sending via JS Aug 18 02:16:00 eh so they left the package names -v4 even though minsdk is 9 ? Aug 18 02:16:25 looks like we need compat modules for our compat modules ;) Aug 18 02:17:06 I was so happy when I was able to drop support for <14 Aug 18 02:19:07 Affian i have minSdk=19 ;) Aug 18 02:21:20 ? support-v4 is still supporting v4 Aug 18 02:23:36 pfn "Note: Release 24.2.0 removes support for Android 2.2 (API level 8) and lower." Aug 18 02:23:54 so they left the package names as is, so builds wouldn't break Aug 18 02:26:25 neat Aug 18 02:27:11 so, I'm writing up a new layout dsl, it's starting to shape up to be very awesome Aug 18 02:28:20 my IO thing is neat, but it has all the problems of an xml layout still, mostly in addressing child views Aug 18 02:28:40 You're using something other than XML to write layout files? Aug 18 02:28:42 my new layout dsl has a completely typed view graph Aug 18 02:29:32 https://gist.github.com/pfn/8696c47c0f5a3788a1f24ab3e980c0c6 Aug 18 02:29:40 a preview of what it looks like Aug 18 02:31:25 Is it a "for the fun of it" project? Aug 18 02:31:55 partly, yes Aug 18 02:32:07 of course, it's nice if people beside me use it Aug 18 02:32:19 some people use iota, even with its flaws Aug 18 02:36:18 There needs to be something for those people who are allergic to XML Aug 18 02:40:09 well, my view tree dsl is gonna be awesome Aug 18 02:44:41 pfn: Beating Anko in readability is going to be tough Aug 18 02:49:00 Looking at Anko for the first time here Aug 18 02:49:10 Because before oyu mentioned it I had never heard of it Aug 18 02:49:33 anko suffers from the same addressability problem Aug 18 02:49:47 What's that? Aug 18 02:53:24 Curious as well Aug 18 02:55:48 Is there a way to inspect what receivers are registered on an Activity? Aug 18 02:56:14 You mean intent? Aug 18 02:56:34 CedricBeust is it common to use nio memory mapped bytebuffers on Android ... looking trhough SO seems lots of problems (ENOMEM, etc). is this one of those APIs thats best avoided on android ? Aug 18 02:56:48 A BroadcastReceiver that is registered using activity.registerReceiver() Aug 18 02:57:13 i guess also, are how many 32 bit devices are out there ? **** ENDING LOGGING AT Thu Aug 18 02:59:58 2016