**** BEGIN LOGGING AT Fri Jun 24 02:59:58 2016 Jun 24 03:00:00 from other people Jun 24 03:00:26 https://f-droid.org/ Jun 24 03:00:35 or at least trying to xD Jun 24 03:01:33 est31, looks like the app is installed Jun 24 03:01:45 but I don't see the icon for it Jun 24 03:01:51 on the homescreen Jun 24 03:03:06 nice Jun 24 03:22:58 isn't it the same with the AVD's performances and smoothness ? Jun 24 03:23:12 speaking of the open-jdk vs oracle-jdk Jun 24 03:41:31 wow Napalm Jun 24 04:02:33 ? Jun 24 04:28:18 vysor pro costs $39 :O Jun 24 04:35:20 g00s: what are you using that for? Jun 24 04:36:01 i'm not - i was interested to see if i could use it on rpi or beagle w/o lcd and control via computer though Jun 24 04:38:49 curious why he made it a Chrome app though ... Jun 24 04:39:05 why not make it electron and sell though Apple Store, etc ? Jun 24 04:39:17 (who the hell buys chrome apps? ;D ) Jun 24 04:40:18 watching brexit happening Jun 24 04:40:49 adq what do you think? good? bad ? Jun 24 04:41:18 it depends on "who you are" to tell it's good or bad, i believe Jun 24 04:42:00 The main problem with buying Chrome apps, is they like to break stuff with updates? :P Jun 24 04:42:04 i think all over the world, new hot issue is nationalism vs globalism. even here in US, explains trump Jun 24 04:42:23 it's much more complex than that i believe ;) Jun 24 04:42:57 but consider that: it makes no sense for a country to refuse schengen, to have £ instead of €, to have billions of fiscal discount, etc.. (list is very long) and be part of the EU at same time Jun 24 04:43:19 this has nothing to do with nationalism (since they are often making lot of amalgams, you know) Jun 24 04:43:41 most ppl also mix up europe and EU Jun 24 04:44:06 adq was just watching polito interviews with brits, common theme was "eu threatens our way of life" Jun 24 04:44:45 Leeds ! Jun 24 04:46:08 * g00s senses alphamule has purchased a chrome app and regrets Jun 24 04:46:11 lol Jun 24 04:46:40 maybe most chrome app buyers are the ones who purchased a chromebook Jun 24 04:50:23 adq i got downvoted to hell saying google should dedicate IR fixes to stable instead of preview Jun 24 04:51:01 one of those, wondering what others are really thinking, seems logical to me Jun 24 04:51:07 :D Jun 24 04:51:34 yeah it makes sense, but it defeats the meaning of "stable", however look at the instant-run fiasco, to mention just _one_... among many issues Jun 24 04:51:37 i guess those guys just like having to use perpetual previews for fixes Jun 24 04:52:05 adq i view stable as bugfixes ... Jun 24 04:52:28 i view stable as usable in production without critical or major issues Jun 24 04:52:45 oh haha, well thats the problem i guess right there ... IR was never usable Jun 24 04:52:58 they basically gave us stable ide with beta IR Jun 24 04:53:46 so ok, i will go grab 2.2 when its stable, but "ahah, surprise! bug fixes in 2.3 preview!' Jun 24 04:53:57 :') Jun 24 04:55:31 things are too intricated/entangled, AS, gradle, official libs, etc Jun 24 04:55:51 and they all suffer of issues of course (that's inevitable, cannot really blame anyone) Jun 24 04:55:58 but the fact it's so entangled make it very weak Jun 24 04:57:44 g00s: electron.. you're making me sad my friend Jun 24 05:00:29 gordon_ heh, is there much different between electron and chrome web app ? Jun 24 05:00:49 Vysor would have to be JS, right ? or no ? Jun 24 05:01:19 Both are crappy 😉 Jun 24 05:02:59 g00s: makes sense. ive got a hikey board ive been playing around with Jun 24 05:03:37 teasp00n also considered a dragonboard, those look nice too Jun 24 05:03:59 i kinda don't want to buy another android device :( maybe if they came out with a new N7 Jun 24 05:04:46 g00s: i regret not gettin a board without ethernet actually. was going to use it as an android based media thing on a tv (in fact do you know if android tv is part of aosp? can i build that for a dev board?) Jun 24 05:08:13 without seeing any #s lately, my instinct says tablets across all platforms are sinking Jun 24 05:08:29 i guess some say they don't need to be replaced often Jun 24 05:09:46 teasp00n, https://source.android.com/devices/tv/ Jun 24 05:15:19 yeah, the whole tablet market has gone very slow, I think Jun 24 05:15:36 also, I'm glad I get paid in $ today, not £ Jun 24 05:23:42 didn't android used to have htop? Jun 24 05:23:53 or is that only on replicant? Jun 24 05:43:44 I still take my tablet with me every time I need to goto the bathroom Jun 24 05:44:53 impulse, android has `top' but this is not really relevant to app dev Jun 24 05:44:59 shmooz: my phone serves that duty for me Jun 24 05:45:08 there should be a dedicated tablet in the bathroom though Jun 24 05:45:49 Isn't top useful to see how native memory is used? Jun 24 05:46:06 and everytime I check pocketcasts for new shows, and then flip through flipboard, and that's all Jun 24 05:46:22 there needs to be a tablet holding arm that mounts to the toilet paper dispenser Jun 24 05:46:30 I wonder, if you really suck at android dev, but you have some really great content, will your app still suck? Jun 24 05:46:44 g00s: lol, you might mix them up Jun 24 05:47:01 guideX hard to say, depends on marketing Jun 24 05:53:42 describe 'awesome content' ;) Jun 24 05:55:27 I hope android doesn't copy apple and get rid of headphone jacks, what a dumb move Jun 24 05:58:29 they still have it (apple) Jun 24 06:06:31 gordon_: I do alot of scraping of other sites Jun 24 06:07:06 I was hopeing to bring some of that data over to android, but my android skills leave alot to be desired Jun 24 06:09:46 with xamarin being free and all, that could be a big help for me, but I wonder is xamarin as good as android studio Jun 24 06:11:36 xamarin == visual studio Jun 24 06:12:04 also, you still have to have android skills with xamarin Jun 24 06:12:04 yep Jun 24 06:12:12 it's not magic ;P Jun 24 06:12:36 well one thing I can skip is the java syntax, which I don't use everyday, I use C# everyday, so that could be a big help for me Jun 24 06:13:15 I mean, I did develop the one other app with android studio and java, but I feel like it could have been better Jun 24 06:13:56 but is xamarin a good alternative, or is it rubbish Jun 24 06:18:13 i had some presentation of xamarin at work. we decided in the future to let it test in some new project Jun 24 06:18:29 we have android and ios team at work Jun 24 06:18:48 according to presentation, the performance is just slightly worse but sometimes even better Jun 24 06:19:10 xamarin its more like 'bridge' to android api Jun 24 06:19:36 as i understood, if android introduces some cool feature, you dont have to wait for xamarin team to implement it Jun 24 06:20:09 ah ok cool Jun 24 06:20:30 also, the presentation was done by guy who used phonegap in one project long ago and it was meh. he said that xamarin is somewhat a victim of phonegap's bad reputation Jun 24 06:21:09 oh hrm, I didn't know that Jun 24 06:22:00 nothing good comes from phonegap ;) Jun 24 06:22:28 guideX: java and c# are so similar that I dont know why you have problems Jun 24 06:24:22 oh hrm, not really problems, it's just my comfort zone is visual studio, I mean android is pretty good though Jun 24 06:24:32 android studio I mean Jun 24 06:25:09 but aside from the one android app, I haven't touched java since the 90's Jun 24 06:25:45 Xamarin does have bunch of its own quirks and bugs tho. Jun 24 06:31:06 question - how to test android.intent.action.MY_PACKAGE_REPLACED receiver ? Jun 24 06:53:54 gordon_ try to re install application without uninstalling previous one... Jun 24 06:55:08 i got my logs inside receiver doing this.. Jun 24 07:01:59 ok Jun 24 07:02:03 thanks Jun 24 07:02:09 I will try to debug this as much as I can Jun 24 07:07:31 min2: how are you checking receiver logs ? Jun 24 07:07:46 you're just logging in code with Log.v() ? Jun 24 07:12:53 ok, it's not called Jun 24 07:20:42 gordon_ it could be becuase of manifest merger issue Jun 24 07:47:19 gordon_: get that working? Jun 24 07:47:49 gordon_: adb install -r should trigger it if the receiver has been correctly declared in the manifest Jun 24 08:04:23 teasp00n: I have sharedpreferences migration Jun 24 08:04:35 and i think my broadcast receiver is not called Jun 24 08:11:43 gordon_: pastebin the manifest and recevier impl? Jun 24 08:52:50 <_0xbadc0de> SQLiteDatabase db_connection = SQLiteDatabase.openDatabase(this.getApplicationInfo().dataDir + "/databases/" + DATABASE_NAME, null, SQLiteDatabase.CREATE_IF_NECESSARY); Jun 24 08:52:56 <_0xbadc0de> this line crashes Jun 24 08:52:58 <_0xbadc0de> help? Jun 24 08:53:07 topic Jun 24 08:53:10 ^ http://imgur.com/jacoj Jun 24 08:53:48 adq, cannot be any older... Jun 24 08:53:49 :) Jun 24 08:54:01 hithere Jun 24 08:55:42 <_0xbadc0de> I assume this is the stack frame Jun 24 08:55:43 <_0xbadc0de> http://puu.sh/pEa5R/986c57901c.png Jun 24 08:56:31 <_0xbadc0de> this is before executing the said line Jun 24 09:00:41 hi, im using edittextPreferences for a password input, i set the inputType ="textPassword" however i see no differences at all Jun 24 09:01:34 or maybe android:inputType Jun 24 09:01:51 sorry _0xbadc0de, this does not give much info about what is failing at all Jun 24 09:02:07 _0xbadc0de: would be more helpful to post the logs AFTER it crashed Jun 24 09:02:08 :v Jun 24 09:04:21 <_0xbadc0de> its under db.open() method inside openDataBase() - listen its not really much of an issue if I am telling him to create a db on a directory that doesn't exist right? Jun 24 09:04:40 <_0xbadc0de> like /databases/ inside applicationData directory doesn't currently exist Jun 24 09:05:02 then maybe, first ensure the path you target is existing Jun 24 09:05:19 Ashiren: http://paste.ubuntu.com/17792193/ no works Jun 24 09:05:31 even email or number or password Jun 24 09:06:29 <_0xbadc0de> nope Jun 24 09:06:37 <_0xbadc0de> still same $h1t Jun 24 09:08:37 <_0xbadc0de> okay Jun 24 09:08:41 <_0xbadc0de> actually it worked Jun 24 09:08:43 <_0xbadc0de> note to self Jun 24 09:08:51 <_0xbadc0de> android is FUCKING NAZI with directories Jun 24 09:13:30 offtopic: https://imgur.com/VaxIFs6 it's begun Jun 24 09:32:06 It does not have the AI to evade that obvious pile of banana peels; we'll be fine. Jun 24 09:32:08 For now... Jun 24 09:49:48 I was wondering, how do I return to the previous app without shutting dowm my activity Jun 24 09:49:53 I try to achieve this Jun 24 09:49:58 in activity.oncreate Jun 24 09:50:02 with super.onbackpressed() Jun 24 09:50:05 which doesnt do anything Jun 24 09:51:27 fenrig: what's the bigger picture here? Jun 24 09:51:40 uhm just using a simple app Jun 24 09:51:58 hi! I have some problems setting up a simple gradle task that will be integrated with the one of the other tasks defined by the Android Gradle Plugin (com.android.tools.build:gradle:2.2.0-alpha4) Jun 24 09:52:02 to send a websocket message to a raspberry pi which fetches a youtube video and puts it in a playlist (using mpd) Jun 24 09:52:21 is someone here who might help? Jun 24 09:52:41 Im achieving this by catching youtube intents, but I dont want my gui to present itself, i want to return to the youtube app as fast as possible Jun 24 09:52:47 fenrig: what do you mean by 'without shutting down my activity'? the system can kill your activity if it wants Jun 24 09:52:51 while letting the asynctask do its thing Jun 24 09:53:24 right, then a Service might be better for you. perhaps an IntentService Jun 24 09:53:48 yeah dont mind having it the way it is now :D Jun 24 09:53:50 activity not visible -> expect it to get killed Jun 24 09:54:02 just want to return to the youtube app Jun 24 09:54:10 well my app isnt using much resources Jun 24 09:54:17 that's not the point Jun 24 09:54:34 the point is that you're not in control of whether your activity gets killed Jun 24 09:54:41 okay I dont mind that Jun 24 09:54:49 i just want to return to the previous app Jun 24 09:55:01 so you need another solution, or wait until it i done Jun 24 09:55:13 In my previous app it worked Jun 24 09:55:19 but I lost the source so Jun 24 09:57:21 okay Jun 24 09:57:29 I have it magically working suddenly Jun 24 09:57:32 yes finally Jun 24 09:59:55 <_0xbadc0de> I have a Cursor returned from a SQLite query Jun 24 10:00:06 <_0xbadc0de> how can I know if my query returned any results? Jun 24 10:00:26 <_0xbadc0de> can I simply do cursor.getColumnCount()? Jun 24 10:00:46 move to first record and do { until have next } Jun 24 10:01:15 column count is now you are looking for I guess Jun 24 10:01:20 *is not Jun 24 10:03:36 <_0xbadc0de> getCount() returns zero Jun 24 10:03:47 <_0xbadc0de> so I guess my query didn't go as expected Jun 24 10:09:03 yeah just .getCount() or what it's called Jun 24 10:10:59 <_0xbadc0de> private Cursor GetFromUserTableByName(String name, SQLiteDatabase db) Jun 24 10:10:59 <_0xbadc0de> { Jun 24 10:10:59 <_0xbadc0de> return db.rawQuery("SELECT * FROM USER WHERE NAME = ?", new String[]{name}); Jun 24 10:10:59 <_0xbadc0de> } Jun 24 10:11:15 <_0xbadc0de> I assume I am doing that query correctly Jun 24 10:11:41 <_0xbadc0de> but I dont get the results I am expecting Jun 24 10:33:22 * HunterD lol Jun 24 10:40:01 when I set 'tasks.getByPath(":app:compileDebugSources") dependsOn taskX' inside build.gradle I get: Error:(115, 0) Task with path ':app:compileDebugSources' not found in project ':app'. Open File Jun 24 10:40:05 how can i send commands to vold? Jun 24 10:40:07 anyone has any ideas on this? Jun 24 10:43:37 <_0xbadc0de> android studio doesn't know about 'OutputStreamWriter ' Jun 24 10:43:46 <_0xbadc0de> help? Jun 24 10:49:31 HunterD: this is a config phase issue. gradle is interpreting your script during config phase and at the point where "tasks.getByPath" is run that task doesnt exist. Jun 24 10:50:56 HunterD: https://docs.gradle.org/current/userguide/build_lifecycle.html#build_lifecycle_events Jun 24 10:51:01 <_0xbadc0de> how can I open a file that, if it doesn't exist android should create it? Jun 24 10:55:59 _0xbadc0de: what are you talking about? OutputStreamWriter? Jun 24 10:56:21 _0xbadc0de: android has it just fine. https://developer.android.com/reference/java/io/OutputStreamWriter.html Jun 24 11:00:21 <_0xbadc0de> nvm solved Jun 24 11:00:26 <_0xbadc0de> something else though Jun 24 11:00:46 <_0xbadc0de> is there anything similar to std::vector but for java» Jun 24 11:00:55 <_0xbadc0de> where I can .pushback() stuff? Jun 24 11:01:00 <_0xbadc0de> and get its .size() Jun 24 11:06:14 _0xbadc0de, you need to learn to search Jun 24 11:06:28 you have Vector class, but you probably just need an ArrayList Jun 24 11:06:35 there are so many variants anyway Jun 24 11:07:04 <_0xbadc0de> I dont need arbitrary memory accessing Jun 24 11:07:13 <_0xbadc0de> just like a stack or smth Jun 24 11:07:19 there is Stack too Jun 24 11:07:21 push pop Jun 24 11:07:27 <_0xbadc0de> all I need is to pushback stuff, get its size and iterate over it Jun 24 11:07:35 If I want to find out when memory is running low I only need to log onTrimMemory once in the Application, right? Don't need to implement it in every Activity, Fragment, ContentProvider etc Jun 24 11:49:13 does the timer task work when the screen if off? Jun 24 11:49:39 even if I put it inside a Partial Wake Lock? Jun 24 11:52:27 what does the 'Go live' button in the beta track do if Timed publishing is enabled? Jun 24 11:59:30 nevermind - it seems it 'goes live' with the beta changes :D Jun 24 12:10:03 Napalm: thank you for your answer! 'afterEvaluate' seems to be the way to fix it, will test now Jun 24 12:41:39 hey Jun 24 12:41:57 Is there a way around the camera api to allow taking pictures without preview? Jun 24 12:42:24 If I can alter the source code of the camera.java file ? Jun 24 12:42:57 I don’t wish to publish this app, I just want to run it on my device. Jun 24 12:58:59 akshitkumar1, Camera2 should be able to do it without preview Jun 24 12:59:33 Mavrik: So I can take pictures even with the screen locked? Jun 24 12:59:54 Mavrik: As long as I put a PARTIAL_WAKE_UP lock? Jun 24 13:00:19 *shrug* never tried it Jun 24 13:02:06 Mavrik: But you tried taking picture with Camera 2 api without preview ? Jun 24 13:02:43 Mavrik: Can you point me to some easy tutorial or resource to learn about how to take picture using camera 2 api? Jun 24 13:09:47 hi all, I have a question about android devices running android 6. can you check if the device support both charging and data transfer at the same time? Jun 24 13:12:20 FrancescoV: Yes it does. I tested on Nexus 5X Jun 24 13:13:00 akshitkumar1: and can you check if device X supports it? Jun 24 13:13:21 we have like 2 samsung S2 tabs, one works but the other doesn't (5.0.2 works, android 6.0 not...) Jun 24 13:13:33 FrancescoV: what does device X mean? Jun 24 13:13:56 Samsung S2 running android 6.0 Jun 24 13:16:28 FrancescoV: Sorry, I don’t have that device. I won’t be able to test it. Jun 24 13:16:42 When I'm using getParcelableArrayList() is is saying ArrayList can't be used for ArrayList Jun 24 13:16:47 Item is my parcelable object Jun 24 13:16:58 How do I get this working?? Jun 24 13:17:04 thxn ;) but I don't know if it will work if we downgrade the device to 5.0.2 Jun 24 13:50:09 <_kw> in onActivityResult after taking a photo my intent is not null, while I'm seeing that everywhere as the check (if intent==null) //taken photo Jun 24 13:51:17 Where are you seeing this? Jun 24 13:54:16 <_kw> https://github.com/GoogleChrome/chromium-webview-samples/blob/master/input-file-example/app/src/main/java/inputfilesample/android/chrome/google/com/inputfilesample/MainFragment.java Jun 24 13:54:19 <_kw> there for example Jun 24 13:54:40 <_kw> (just some example code I have open atm) Jun 24 13:55:20 <_kw> on line #203 is the check if (data == null) Jun 24 13:59:51 <_kw> I mean the code all works if I remove that check, but I don't understand why it's there when I never see intent being null there after following the same path Jun 24 14:06:30 better be safe eh? Jun 24 14:07:25 besides under some circumstances the intent may be null Jun 24 14:08:19 <_kw> that doesn't really explain it though, they're using "data == null" to see if someone took a photo.. Whereas my code is virtually identical and for me intent is not null after taking a photo Jun 24 14:08:47 the comments explain why Jun 24 14:08:57 and, uh, read the code Jun 24 14:09:14 that's not what their check means Jun 24 14:10:00 <_kw> how do you figure that? Jun 24 14:10:15 <_kw> the comment there says "// If there is not data, then we may have taken a photo" Jun 24 14:10:29 do you understand what that means? Jun 24 14:10:38 <_kw> ok, so there being no data (intent == null) is a condition for checking if someone took a photo Jun 24 14:10:51 <_kw> that's what I read it to mean Jun 24 14:11:01 I guess English isn't a language you are comfortable with Jun 24 14:11:12 <_kw> it is, but explain it if you would :) Jun 24 14:11:20 "we may have" Jun 24 14:11:26 <_kw> yes Jun 24 14:12:13 <_kw> if X then Y might be true Jun 24 14:12:29 <_kw> but X is false for me.. so Y is never checked Jun 24 14:12:35 may is not a tautology Jun 24 14:12:51 <_kw> i understand that Jun 24 14:13:08 <_kw> I know that data == null is not a guarantee that there is a photo, that's what I've been saying Jun 24 14:13:27 <_kw> data == null is used as a prerequisite however, to check if maybe there is one Jun 24 14:13:36 wrong Jun 24 14:13:43 what do they do if data is not null Jun 24 14:14:28 <_kw> grab a uri from data.getDataString() Jun 24 14:14:36 <_kw> which is empty when I take a photo Jun 24 14:14:41 <_kw> but maybe that's the bug? Jun 24 14:15:28 if an app requests a permission that Android doesn't know about, will the PackageManager fail to install said application? Jun 24 14:15:40 <_kw> is the normal flow for taking a photo supposed to go through data not being null, and there being a path in data.getDataString() Jun 24 14:15:41 <_kw> ? Jun 24 14:15:55 <_kw> (using the other path as a backup plan) Jun 24 14:16:24 <_kw> Because I thought the data != null path was used for going through the filechooser instead of camera Jun 24 14:17:21 it depends on the camera app you use Jun 24 14:18:50 eurythmia, no Jun 24 14:19:07 pfn: thanks. Jun 24 14:19:42 <_kw> ah ok, so some will return data in an intent while others write into a file your app specified? Jun 24 14:19:47 <_kw> (some camera apps that is) Jun 24 14:19:58 <_kw> and it appears mine does the former Jun 24 14:21:48 yes Jun 24 14:22:33 How do I animate a seekbar thumb so that it "disappear" much like in the Youtube app? Jun 24 14:22:56 My guess is that they change the thumb drawable to a oneshot animated drawable or something Jun 24 14:23:31 But wouldn't an animated drawable use each drawable you give it as a single frame, and not interpolate between those frames? Jun 24 14:25:48 Is there a way to determine when a recyclerview has finished layout? Jun 24 14:27:27 <_kw> hm ok, so the conclusion is that my camera app doesn't put useful info into the getDataString(), but it does provide an intent data Jun 24 14:41:57 If i want to let a user log into my app with a code (to connect the user to the report), but want to allow more than one user per report, is the best way generating a UUID? Jun 24 14:42:29 g00s: here? Jun 24 14:42:32 what time is it? Jun 24 14:44:10 heya, 10:44 Jun 24 14:44:30 mmmmkay Jun 24 14:44:36 so ECT Jun 24 14:45:16 what's news? Jun 24 14:46:16 not sure yet :P, i see Brexit ... Jun 24 14:46:36 yes Jun 24 14:46:44 another day, another clinton scandal ;) Jun 24 14:46:46 that is gonna be a huge shitstorm for all Jun 24 14:48:16 yeah , stake or fish :( Jun 24 14:48:20 *steak Jun 24 14:48:22 lol Jun 24 14:49:05 wut Jun 24 14:49:33 oh, obama at correspondence dinner said 'steak or fish' are the options on the menu Jun 24 14:49:38 I. haven't followed brexit at all, why the referendum, is it the related to the refugee issue Jun 24 14:49:47 thepoosh any android news? Jun 24 14:49:59 /r/androiddev seems dry Jun 24 14:50:17 or do Britons just wanna say fuck the eu Jun 24 14:50:45 g00s: nothing new today, I need another stupid medium post to patronize Jun 24 14:50:55 haha Jun 24 14:52:08 g00s: have you hread of react native? Jun 24 14:52:23 thepoosh sure, but know nothing about it Jun 24 14:52:57 no worries, I met with someone who went to college with me today Jun 24 14:53:02 he said he works on that Jun 24 14:53:04 for WIX Jun 24 14:53:06 it's javascript, yuck Jun 24 14:53:12 lolz Jun 24 14:53:56 not to mention, forces your app to be. minimum 20mb apk Jun 24 14:57:15 wix /: Jun 24 15:02:02 Linus is now such a god he has his own SDK Jun 24 15:02:02 http://imgur.com/uyGCnat Jun 24 15:03:02 you're deffo bored when you dwelve into r/ProgrammerHumor Jun 24 15:03:26 yep Jun 24 15:03:34 thepoosh the error messages are probably all insults :D Jun 24 15:03:45 HAHAHA Jun 24 15:03:49 thepoosh u going to apphub next week? Jun 24 15:04:01 raoul11: wut? Jun 24 15:04:09 I'm going on vacation next week Jun 24 15:04:12 google's apphub Jun 24 15:04:14 nice Jun 24 15:04:25 in il or abroad? Jun 24 15:04:36 il Jun 24 15:04:39 when is that? Jun 24 15:05:16 tue Jun 24 15:05:49 nope, will be in Eilat then Jun 24 15:05:55 ewww Jun 24 15:06:02 Eilat in summer, that'll be nice and chilled Jun 24 15:06:06 lol Jun 24 15:06:16 its worse in tel aviv Jun 24 15:06:22 humidity is like 9000% Jun 24 15:06:29 I'd head up north... Jun 24 15:06:38 also, I live in the tropics now, pretty much :) Jun 24 15:07:05 this heatwave, relentless Jun 24 15:07:10 u israeli Leeds ? Jun 24 15:07:22 nah Jun 24 15:07:29 * raoul11 cant see beyond yer vpn Jun 24 15:08:04 Leeds: we were planing on going to Prague but in the decided we don't want to walk at all Jun 24 15:08:10 pfn your new a/c working out ? Jun 24 15:08:22 so summer vacation city with best hotels won Jun 24 15:08:51 raoul11 9000% humidity :( Jun 24 15:09:03 last min' hulyo to crete thepoosh ? Jun 24 15:09:04 I don't have a VPN (on this machine) Jun 24 15:09:08 like a proper israeli /: Jun 24 15:09:24 g00s: OVER 9000!!! Jun 24 15:09:30 yes, except the sensor is not sensitive enough, I set it for 78, and my room goes to like 65... Jun 24 15:09:33 raoul11: yep Jun 24 15:09:33 thepoosh: fair enough, I can understand that :) Jun 24 15:10:05 pfn ah yeah, thermostats usually also have a hysteresis control Jun 24 15:10:12 right Leeds, was whoising the wrong dude Jun 24 15:10:27 not sure if all allow adjustment Jun 24 15:10:32 finding fellow arthurdailys on android-dev Jun 24 15:10:41 raoul11: I'm a Brit living in Hong Kong, but I spent a year in Israel about 20 years ago, have friends/family there, etc. etc. Jun 24 15:11:02 are you familiar with the concept arthurdailys Leeds ? Jun 24 15:11:53 er, no... anything to do with Arthur Daley, a famous British TV character? :) Jun 24 15:12:46 this term is mainly used by pommtravellers when encountering specific people from a specific region Jun 24 15:13:26 g00s, I doubt it's the hysteresis Jun 24 15:13:48 uh-huh Jun 24 15:13:51 thepoosh check out the video at bottom, this is insane http://www.gizmag.com/blackbird-cg-vr-cgi-vfx-car-rig/44022/ Jun 24 15:15:59 g00s: that freaked me out a bit Jun 24 15:19:32 interesting Jun 24 15:22:19 yeah, that thing is awesome Jun 24 15:22:32 but I am not sure about that realistic shade argument, because of that mounted camera..., otherwise they must be shooting in noon time.. Jun 24 15:23:15 the cg required to do that is awesome Jun 24 15:26:34 aiui, most car commercials use mostly cg now anyway Jun 24 15:39:20 Why did the UK leave the EU :( Jun 24 15:39:27 can anyone explain this: I have DrawerLayout. The right panel, has a fragment added to it. If it gets hidden, and that fragment is removed - it doesn't matter how long i wait, when i slide it back out there is a few ms of ghosting of the old fragment in there Jun 24 15:40:23 its as if the exit transition wasn't drawn until the view becomes slightly visible Jun 24 15:40:32 even if it was minutes earlier Jun 24 15:45:16 markyosullivan: I'd say mainly due to the potential immigration (I don't think UK have taken in that many compared to other big countries?) caused by the Iraq war and the subsequent creation of ISIS, it's possible the terrorist attacks all over Europe would have happened even without the immigration Jun 24 15:47:04 ironically UK was one of the big players in the creation of the Iraq war based on false pretenses, at least their oil companies got some dough out of it Jun 24 15:48:43 Saddam had just stopped using the dollar for the oil trade, some people didn't like that Jun 24 15:48:47 i think we'll see this in the US too. from the 60s here, it was culture wars - but i think the new battleground is nationalism / multinationalism & globalisation Jun 24 15:48:53 https://www.theguardian.com/environment/earth-insight/2014/mar/20/iraq-war-oil-resources-energy-peak-scarcity-economy Jun 24 15:51:10 yes, the sad thing is that western democracy dependent on infinite growth, requiring oil from undemocratic countries - creating impoverished politics and ecological collapse Jun 24 15:51:32 If you need to support SSL/TLS, do you need to rprovide each user with a unique key somehow? Like how do you solve that, it seems like quite a big issue? Jun 24 15:54:17 So, will the Brexit really happen now or the government can legally not care about it or just postpone for 10 years and then do another vote? Ho long will the exit take, 10 years? I hope a Frexit, Gexit, Swexit, Dexit follows... Jun 24 15:54:31 rosten: If people still really want into the country, they'll get in, Brexit wont stop this Jun 24 15:54:42 markyosullivan: exactly, but people don't understand that Jun 24 15:54:54 rosten: "people" being the older generation Jun 24 15:55:03 yup hehe Jun 24 15:55:10 look: Supposed to happen within like 4 years or something Jun 24 15:55:12 min of 2 Jun 24 15:55:16 max of 4 I think? Jun 24 15:55:29 I'd love to see Boris Johnson become PM just for the lols Jun 24 15:55:44 Living in Scotland atm, so I'm guessing they'll be independent soon Jun 24 15:57:04 markyosullivan: OK I see. ANyway it will be harder for people to get in. I have been against the wars in Iraq and US and UK involvement in the Middle east but that does not mean I am pro immigration from those countries. ISIS is partly the fault of the west but we cannot accept massive muslim immigration. It is a terrible religion, much worse than christianity and judaism. Jun 24 15:57:48 Next stop, Ireland will declare independence from the UK Jun 24 15:59:11 is the religion to blame (which poor people turn to and adapt to suit their needs) or the middle east abuse by Western countries since the 40-50s? Jun 24 15:59:38 I wonder what Norway would do in 50 years time if other countries replaced their king and took their oil, would they become muslim too? Jun 24 15:59:47 Ologn i'd like to see texas and deep south declare independence too Jun 24 15:59:49 :D Jun 24 16:00:32 I'm for a ban of religion though, probably 100-200 years away at least. :) Jun 24 16:03:32 rosten do you think we'll be here in 200 years? http://www.nybooks.com/articles/2016/07/14/a-stark-nuclear-warning Jun 24 16:04:36 g00s: No thanks :( in Texas can confirm I don't want a Texit even though it has come up every day since we joined the union Jun 24 16:05:01 rosten: Nothing wrong with the concept of religion, science explains how and not why. Monotheistic religions have been scary through history though since they try to suppress people that think different Jun 24 16:05:38 look what if there is no why Jun 24 16:05:40 you can't ban religion, that's just silly Jun 24 16:05:53 g00s: +1 why ultimately is not a good question Jun 24 16:06:11 pfn: +1 would not be feasible Jun 24 16:06:53 and not fair :) Jun 24 16:07:14 g00s: planet surely will be here, I definitely won't, they're already designing super humans apparently but sure the old generation could nuke is first Jun 24 16:07:49 they could engineer smaller people to require less calories, that would be a start Jun 24 16:07:51 pfn: of course, religion will evaporate by itself like it have done in the most modern countries Jun 24 16:08:04 g00s: well you cannot prove that so... Jun 24 16:08:22 look you can't prove either way :) Jun 24 16:08:29 no exactly Jun 24 16:08:41 therefore do not ban people from thinking one way or the other Jun 24 16:10:05 luckily in 2016 the Norwegians don't hear thunder and assume its thor striking his hammer Jun 24 16:10:41 knowledge and reasoning goes in waves like everything else I think, there will be a new renaissance at some point Jun 24 16:11:05 when we've had enough of the other side of the coin.. Jun 24 16:11:20 trend is always upwards though Jun 24 16:12:47 in most modern countries? Jun 24 16:13:29 The influx of people with religious views is scary and problematic, we got rid of that in Scandinavia but now it is coming back Jun 24 16:16:49 look rosten i wonder if things will just wind up like Calhoun's Behavioral Sink Jun 24 16:16:51 Back to the discussion of Android Jun 24 16:17:00 ;) Jun 24 16:18:02 If you need to support SSL/TLS, do you need to rprovide each user with a unique key somehow? Like how do you solve that, it seems like quite a big issue? Jun 24 16:18:33 can you generate a key from the android app or will it have to be decided beforehand? then it is not really possible. Jun 24 16:19:01 g00s: oh yeah, the overcrowding, according to some scientists overpopulation is not possible once a population gets educated/prosperous enough, the trend is upwards for all continents so that might not be possible Jun 24 16:20:28 look did you see https://developer.android.com/training/articles/security-ssl.html Jun 24 16:20:53 google certificate pinning, etc Jun 24 16:22:02 how can overpopulation be impossible, unless you have fewer than 2 children per couple Jun 24 16:22:27 pfn: apparently as living standards go up people stop making babies Jun 24 16:22:39 also untrue, except for like japan Jun 24 16:22:45 but they have other cultural issues Jun 24 16:23:08 pfn: No it is generally true. When scandinavians had 5-8 babies they expected some to die etc Jun 24 16:23:21 but then there could be religious reasons to have more Jun 24 16:23:23 look, average is still over 2 children per couple Jun 24 16:23:39 Hmm Jun 24 16:23:47 Is it Android dev Jun 24 16:23:56 Or worlds problems Jun 24 16:23:57 with low standards of living, average is something close to 7-8 children per couple Jun 24 16:24:30 pfn: yes and muslims in scandinavia still average more than 2 people per child. Jun 24 16:24:46 gordon_: we are trying to solve the worlds problems with an android app Jun 24 16:24:53 look, so you're saying average scandinavians have fewer than 2 per couple? I don't believe that Jun 24 16:25:04 pfn: i am not saying that, i think 2.1 Jun 24 16:25:21 that might be in total though. white scandies might have less. Jun 24 16:25:29 that sounds pretty impossible Jun 24 16:25:33 no one wants an only child Jun 24 16:25:53 Anyway: g00s, so it seems android itself has all the certificates you need but you still need unique keys? Jun 24 16:26:23 pfn: yesmost have 2. probably it is 2.1. anyway muslims have probably a lot more Jun 24 16:28:10 https://www.cia.gov/library/publications/the-world-factbook/fields/2127.html Jun 24 16:28:15 these numbers seem awfully low Jun 24 16:30:01 yes they do Jun 24 16:30:07 but that is good Jun 24 16:30:10 if they are true Jun 24 16:30:38 ofc with less people => less invention. but more sustainable with 3 billion people than 6-7 i guess Jun 24 16:31:01 we're on track to 10.5 billion by 2050 Jun 24 16:31:58 eh, if automation takes away jobs, and basic income becomes a thing, it's very possible that a population boom can occur Jun 24 16:32:06 what else are people gonna do but make babies and raise them Jun 24 16:32:27 And the increase will come from black people and muslims...huge problem. Imagine a world with a majority of muslims... Jun 24 16:32:41 big part of why birthrate goes down in industrialized countries is due to career focus Jun 24 16:33:19 Imagine a future where you dont have to work to survive. Imagine the inventions Jun 24 16:33:23 you realize islam is already the #2 religion behind christianity as a whole, right? Jun 24 16:33:43 if you consider by denomination, islam is the #1 religion Jun 24 16:35:08 this is classic https://www.youtube.com/watch?v=JrBdYmStZJ4 Jun 24 16:37:33 every time i open this one preferences.xml file, AS internal errors, but i'm not sure if the cause is the file itself or some resource being referenced Jun 24 16:37:53 that may be why my autocomplete never seems to work in preferences.xml Jun 24 16:38:19 but it works fine on device, so bizarre. and i walk the straight & narrow with no wonky stuff Jun 24 16:39:53 new android book http://www.informit.com/store/android-concurrency-9780134177434 Jun 24 16:40:00 looking at TOC, not so sure about it though Jun 24 16:40:19 threads, everywhere? Jun 24 16:40:24 in a nutshell g00s ? Jun 24 16:40:59 ha, when i see chapter dedicated to AsyncTask ... Jun 24 16:41:09 Can you get people on Apple phones to use GPGS(Google Play game Services)? Jun 24 16:41:10 AsyncTask has it’s uses Jun 24 16:41:26 i think there is a google play game service library for ios Jun 24 16:41:56 yep there surely is Jun 24 16:47:34 main problem is java, no real good alternative to asynctask without pulling in large libraries Jun 24 16:47:39 and having shit so verbose is painful Jun 24 16:49:11 g00s, i don't see anymore the point to have a book on android, except for beginners or students maybe Jun 24 16:49:19 that's usually the case Jun 24 16:49:21 the platform is changing too often, it's not like a C book Jun 24 16:49:24 beginners and students Jun 24 16:49:31 which is still valid 30 years after, if not more Jun 24 16:49:56 of course, platform != language, i know i know, bad comparaisons Jun 24 16:50:23 what is the path for Environment.getDataDirectory() on an android device? is it the top of the sd card ? Jun 24 16:50:32 s73v3r: raoul11 , yes there is but i mean will Apple users use it or willl they refuse GPGS accounts ? Jun 24 16:50:49 i.e. /storage/emulated/0/Android/ on android 6 Jun 24 16:50:55 it can changes on some rom, jpwhiting, this is why you have this method Jun 24 16:51:03 I see, ok Jun 24 16:51:04 donno look, havnt done cross platform dev in years Jun 24 16:51:11 they got their gamecenter shit Jun 24 16:52:16 yes but then that i OS only. i want iOS and Android to play each other Jun 24 16:52:23 https://flair.co/ Jun 24 16:52:28 * pfn ponders ordering one of those Jun 24 16:53:13 look push google login anyways on app starts Jun 24 16:53:32 dont even give them a choice Jun 24 16:53:47 gamecenter didnt for the first years Jun 24 16:54:10 in terms of UX, it's better to not do that Jun 24 16:54:26 but for any actions requiring a loggued account, if not loggued, prompt the login Jun 24 16:54:26 look: Don’t know. put it in and find out Jun 24 16:54:58 basegameutils let u customize how much "pushy" does those logins jumps to the user Jun 24 16:56:32 look: You’ll be fine. if they want to play online, they’ll use it. if they don’t, they won't Jun 24 16:58:09 s73v3r: : ok but what are the alternatives? i guess there good cross platforms ervices for this but perhaps they cost money instead Jun 24 16:58:26 i don’t know of many offhand Jun 24 16:58:33 google is probably your best bet Jun 24 16:59:00 facebook? Jun 24 16:59:56 do android applications run in a chroot of some kind? Jun 24 17:00:22 Log.d is saying Environment.getDataDirectory() is /data, so it's trying to read the list of files from /data/data/com.jpwhiting.foo/files/ and giving one file Jun 24 17:00:31 yet /data is empty if I look in the sftp application on the device Jun 24 17:00:33 if you dont mind adding 20mb to your app that is Jun 24 17:01:03 somehow in /data/data/com.jpwhiting.foo/files/ it sees a file called instant-run Jun 24 17:01:19 in RxJava have they added a way to use scheduleWithFixedDelay vs scheduleAtFixedRate ? Jun 24 17:01:39 i.e. poll with an io-call, but delay 200 milliseconds BETWEEN calls? Jun 24 17:01:51 between response and the next attempt Jun 24 17:03:04 jpwhiting, it has to do with permission and ownership Jun 24 17:03:22 and every app runs in their own vm, but this is another story Jun 24 17:04:00 adq: yeah, I know each app is in its own vm, but I thought they each accessed the filesystem the same way Jun 24 17:04:06 this feels like it's in a chroot or something Jun 24 17:04:19 I'm trying to copy some files into place manually to test with, but can't find the path it's reading from Jun 24 17:06:07 jpwhiting, no chroot Jun 24 17:06:14 jpwhiting, /data is empty because you don't have permission to read it Jun 24 17:08:05 ah, I see, ok Jun 24 17:08:18 so turbo client can't see anything there because it doesn't have permission to show it, gotcha Jun 24 17:17:34 huh, appcompat 24.0.0 is incompatible with rasterized vectors... Jun 24 17:19:38 I'm looking for a way to keep a service alive outside the app. It's seems nearly impossible (tried lots of thing like START_STICKY or using the AlarmManger). Nothing is working. Jun 24 17:19:45 I watched one of my alarm app and it always has a process and a service alive. I wonder how they did the magic. Jun 24 17:23:32 start_sticky will try to restart it when it exits Jun 24 17:23:33 what's the problem Jun 24 17:23:45 doesn't work Jun 24 17:23:46 any service is eligible to be killed if it's quiescent Jun 24 17:24:11 and by the way googling it show that it doesn't work anymore since 4.4 Jun 24 17:24:55 I tried many ways (different process, IntentService), nothing worked Jun 24 17:25:06 does there exist a way to remotely debug applications over TCP Jun 24 17:25:33 i'll be VNC'ing into my development station, but would like it to still debug on my phone Jun 24 17:25:33 teamViewer... Jun 24 17:25:57 wow, card skimmers at walmart va/ky Jun 24 17:26:01 oh ok i misunderstood Jun 24 17:26:01 this would allow me to essentially leave my house, for the first time in months Jun 24 17:26:26 no Jun 24 17:26:34 adb-wifi Jun 24 17:26:36 but otherwise, no Jun 24 17:27:06 adb-wifi sounds interesting, but would it still work if i'm not on the same network>? Jun 24 17:27:14 if you know how to tunnel only Jun 24 17:27:21 it's beyond the scope of this channel Jun 24 17:28:18 by the way the service i'm trying to keep alive start a notification with startForeground Jun 24 17:28:28 if anyone knows the issue... Jun 24 17:29:54 "The British are Googling what the E.U. is, hours after voting to leave it" lol, +1 democracy Jun 24 17:30:43 Kajika keeping things alive is getting harder and harder with each release of android Jun 24 17:30:52 g00s, yea and the post leave search "what happens now that british left the EU" Jun 24 17:31:18 wtf, can't retrieve the colors used in a GradientDrawable until api24? Jun 24 17:31:20 Yes, I guess. What is really teasing me is all the other app able to do it Jun 24 17:31:35 Kajika good overview http://www.xda-developers.com/how-android-n-will-improve-battery-and-memory-management/ Jun 24 17:31:38 g00s, i don't believe these kinds of "news" Jun 24 17:31:43 g00s, however: https://www.google.com/trends/explore#q=%22article%2050%22&date=now%207-d&cmpt=q&tz=Etc%2FGMT-2 Jun 24 17:32:18 or change the time scale Jun 24 17:32:31 article 50 is basically marshalls law right? Jun 24 17:32:38 :P Jun 24 17:32:55 martial** Jun 24 17:32:57 wow i had no idea Jun 24 17:34:44 ugh, GradientDrawable.GradientState is package privatge Jun 24 17:37:11 sry if anyone answered me I changed my irc client Jun 24 17:39:56 what's the best way to move the screen to show whole item when an item on bottom of screen is expanded? Jun 24 17:40:29 the item is in recyclerview Jun 24 17:42:06 recyclerview has a scrollToPosition method Jun 24 17:42:14 or something named similar Jun 24 17:42:23 its either the recyclerview itself, or the layoutmanager Jun 24 17:47:43 GPGS says the communication of GPGS is not encrypted? do they just mean the msgs themselves or the entire communicstion? Jun 24 17:48:06 s73v3r: That's what i was looking after, thanks! Jun 24 17:50:00 should've asked you before :) Jun 24 17:53:28 "On Tuesday, an eagle-eyed Twitter user noticed that in a picture of Zuckerberg that his laptop camera and microphone jack appeared to be covered with tape." Jun 24 17:56:38 that’s old news Jun 24 17:59:47 isn't that what everyone does anyway? Jun 24 18:02:30 s73v3r: That worked great for the last item but if it's like second or third last then it won't scroll down because before it's expanded it's can be seen 100% so it won't scroll. Doesn't help to call that method after it's expanded either. Jun 24 18:05:52 Am I right that an achivement cannot be removed even if it is never published? Will it then eat up of the total nbr of achievements points? Jun 24 18:09:46 Error:Module 'app:core:1.0' depends on one or more Android Libraries but is a jar ### how do you solve that? Jun 24 18:12:30 whats the best way to setText in a fragment, from your activity? Jun 24 18:13:42 call a method on the fragment Jun 24 18:13:53 it's that easy?! Jun 24 18:13:59 why wouldn’t it be? Jun 24 18:14:14 i mean, I know it’s android and all, but Jun 24 18:14:33 s73v3r: Do you develop on ios? Jun 24 18:14:40 yes Jun 24 18:14:46 which do you think is best Jun 24 18:14:59 they both have their strengths and weaknesses Jun 24 18:15:35 swift is a thousand times better than java, for instance. But Android is much more flexible with what you can do Jun 24 18:15:52 swift and kotlin are roughly equivalent though Jun 24 18:16:03 kinda Jun 24 18:16:04 how long did it take you to learn swift? Jun 24 18:16:12 swift is better than kotlin, though Jun 24 18:16:19 what happened to xcode? Jun 24 18:16:26 kotlin does bring much of the swift goodness. But it isn’t officially supported like swift is Jun 24 18:16:32 xcode is still around Jun 24 18:16:36 nothing, you write swift in xcode Jun 24 18:16:54 is it still objective C? Jun 24 18:17:00 you can write both Jun 24 18:17:14 cool, can't wait Jun 24 18:17:14 is what still Objective-C? Jun 24 18:17:21 why do you think swift is so much better? Jun 24 18:17:22 If you learn one, you’ll learn the other one very quickly Jun 24 18:17:31 have you written objectivec? Jun 24 18:17:35 anything is better than that :P Jun 24 18:17:53 mentazoom: You ever chain stuff in Java? Like foo.getBar().getBaz()? Jun 24 18:18:04 i tried to look at swift, but i don't get why you have to be so carefull will null values with ? and ! and all that... Jun 24 18:18:15 s73v3r: Yea ofcourse :) Jun 24 18:18:17 you don't get it? :P Jun 24 18:18:23 but in order to do it safely, you have to do if(foo != null && foo.getBar() != null) ... Jun 24 18:18:31 SwiftMatt left.. and it was his time to shine Jun 24 18:18:34 and it’s annoying as fuck Jun 24 18:18:42 null-safety in java is nonexistent Jun 24 18:18:53 whereas in swift, you can just go foo?.getBar()?.getBaz() Jun 24 18:19:04 but is that bad tho, that it's nonexistent, why is it so annoying to do null checks? Jun 24 18:19:07 and if one of those is null along the way, it does the sane fucking thing and returns null Jun 24 18:19:19 it’s annoying because it can get pretty long Jun 24 18:19:28 and swift will null check for you Jun 24 18:19:48 the ?. operator will just return null if one of those things is null Jun 24 18:19:52 objc already did something similar, no Jun 24 18:20:06 so instead of having to nullcheck ever step of the way, you write out the whole thing and nullcheck it at once Jun 24 18:20:29 in those situations where you don't care which part was null Jun 24 18:20:31 Objective-C was a little different, in that you could send messages to nil without problem Jun 24 18:20:40 pretty much Jun 24 18:20:44 ah i just looked at swift for 15 minutes but i get why that operator could be usefull now Jun 24 18:21:00 value types are pretty cool as well Jun 24 18:21:26 could you say what is cool about it? Jun 24 18:21:35 because maybe i will try to learn swift Jun 24 18:22:01 value types, structs, are nice because by default they’re immutable Jun 24 18:22:31 and they’re lighter weight than classes Jun 24 18:22:34 i loved structs on c++, for the little time i used on that language Jun 24 18:22:43 same thing, more or less Jun 24 18:23:13 structs are basically classes for non object oriented languages though, i thought? Jun 24 18:23:13 if i want to learn ios, do you know if i should rea big nerd ranch, or some udacity or coursea course? Jun 24 18:23:18 its like whole another world Jun 24 18:23:41 big nerd ranch is good. The Stanford classes, available online for free, are also quite good Jun 24 18:24:20 s73v3r: The stanford course isn't outdated yet? I looked at it just little, but as i remember it was 1 year old maybe more, but if it's still good i may watch it more Jun 24 18:24:31 they had another one this spring Jun 24 18:25:00 it might be a little outdated with regards to Swift 3, but that’s mostly renaming of things Jun 24 18:25:27 s73v3r: How do i get the newest? I just found youtube link which is kinda old Jun 24 18:25:40 i have the bnr swift book but its 2.2 Jun 24 18:26:07 check the stanford online course website Jun 24 18:26:18 ugh, someone modified my PR so that it "reduces method count by 31 and reduces code size by 4252 bytes" ... Jun 24 18:26:20 it’s ios 9 apps with swift or something like that Jun 24 18:27:15 I can't really find anything by searching on their online course site Jun 24 18:27:40 unfortunately i don’t know where it would be Jun 24 18:28:06 I can try to ask around, but at least i know they should have newer Jun 24 18:29:02 maybe first i should try to stop being bad at android first ^^ Jun 24 18:29:05 https://itunes.apple.com/us/course/developing-ios-9-apps-swift/id1104579961 Jun 24 18:29:49 I still don't know how to use fragments properly Jun 24 18:30:00 parco: Thanks for the link! Jun 24 18:30:03 well "when to use" i should say Jun 24 18:30:21 parco thats ok, me neither haha Jun 24 18:31:34 i'm sure DH goal in fragments was to make it endless learning opportunity, to always be ablet to discover new things no matter how familiar you are with them Jun 24 18:31:53 they are a gift to the intellect :D Jun 24 18:32:23 well in that case i'll get creative with them Jun 24 18:32:42 it's like art, it's never wrong, right Jun 24 18:43:25 so weird, with support lib 24, my enter transition isn't working, but my exit is Jun 24 18:43:31 (for fragments) Jun 24 18:44:26 this used to work: getFragmentManager().beginTransaction().setTransition(FragmentTransaction.TRANSIT_FRAGMENT_OPEN).add(R.id.aux_drawer, fragment).addToBackStack(null).commit(); Jun 24 18:45:03 so when that runs, there is no enter transition, but popping the back stack properly shows the exit transition O.o Jun 24 18:53:15 mentazoom s73v3r Stanford classes are good. Jun 24 18:53:40 mentazoom I didn't know big nerd ranch, is it nice ? Jun 24 18:54:07 mentazoom They just updated into iOS 9 a little time ago. Jun 24 18:54:53 pfn What's bnr ? Jun 24 18:55:07 what? Jun 24 18:56:16 pfn Sorry wrong nick Jun 24 18:56:52 pfn It was for g00s . Wha'ts bnr ? You've said "i have the bnr swift book but its 2.2" Jun 24 18:57:10 wviana big nerd ranch Jun 24 18:57:26 g00s oh, feeling so stupid. :( Jun 24 18:57:33 :D Jun 24 18:57:59 g00s Good theory about Fragment been a endless learning opportunity. Jun 24 18:58:30 they are a fractal of complexity :) Jun 24 18:58:50 g00s Haha 😂 Jun 24 19:00:03 'please say hello to our new team member, he's been studying fragments for 20 years - one of the most recognized fragment experts on both sides of the atlantic' Jun 24 19:01:05 i dont think they are that bad actually ;) i just like having fun Jun 24 19:01:37 but instead of the few fixes like commitNow() it would have been nice to see Fragment 2.0 or something Jun 24 19:02:01 because ocmmitNow() - anyhow, still gives me weird issues with recursive transactions, illegal state exceptions, etc ... Jun 24 19:02:35 i think that should really just be a builder that happens all synchronously, not a 'transaction' thats async Jun 24 19:03:55 g00s What about ModelFragments ? that retain state and have no views. Works, is a solution to some problems. But smells like lets get some way to solve it. Jun 24 19:04:45 Whats it the word in english for adjust something in a bad way? Jun 24 19:06:50 Yeah, just checked. Looks like there is no word for that in english. It's like a quick fix that you know you shouldn't be doing in that way. Do you know what I mean ? Jun 24 19:07:28 hack Jun 24 19:07:29 Maybe a kludge Jun 24 19:07:54 Or a MacGyver Jun 24 19:08:48 How do you say this kind of quick fix that you have to do for deploying something, that you know that smells but it's the fastest solution ? Jun 24 19:09:59 hack Jun 24 19:10:42 frankdrey I really wouldn't think a hack as a that bad thing. Good to learn. Jun 24 19:10:53 In Brazil we have a word for it Jun 24 19:11:33 i dunno i hear it used a lot Jun 24 19:11:36 Here's a description of it: "Gambiarra is a Brazilian definition for the informal deviation of technical knowledge. It is a widespread cultural practice, consisting of all kinds of improvised solutions for everyday problems with any available material." Jun 24 19:12:28 first meaning here https://www.techopedia.com/definition/27859/hack-development Jun 24 19:12:30 frankdrey What do you think? A hack ? Jun 24 19:13:20 frankdrey That's exactly it. Jun 24 19:19:07 wviana ") Jun 24 19:19:57 So ModelFragments looks like a hack. It works, but looks like a hack. Jun 24 19:20:43 another term is kludge Jun 24 19:23:15 told you frankdrey hahah. Jun 24 19:23:42 g00s What term do you use on work ? Hack or kludge Jun 24 19:50:03 how can i check if an item in recyclerview is partially outside the screen? Jun 24 19:50:23 check out the layoutmanager Jun 24 19:50:46 it has methods for getting the last visible item on the screen, and i believe it has a method for getting the last whole visible item Jun 24 19:50:56 ditto for the first Jun 24 19:55:40 weird, mRecyclerView.getLayoutManager().findFirstVisibleItemPosition() is not working for me, there is no find method there Jun 24 19:57:01 .findFirstVisibleItemPosition is for LinearLayoutManager Jun 24 19:57:12 while recyclerView returns just LayoutManager Jun 24 19:58:19 ah dang Jun 24 20:17:12 is it easy to make a view that is not a rectangle Jun 24 20:17:26 i want a make an image view have a slanted side Jun 24 20:17:38 imagnie like a triangle imageview Jun 24 20:17:49 Or a rectangle imageview where the bottom is slanted Jun 24 20:36:30 is there any reason two strings from the strings resource files that have teh same value with fail with .equals? Jun 24 20:36:56 any number of reasons Jun 24 20:37:01 whitespace, etc. Jun 24 20:37:26 String activeURL = App.get().getString(R.string.app_url).toLowerCase(); i can do if(activeURL.equals(activeURL)) and it still fails Jun 24 20:37:44 and debugging activeURL its the string I have in strings.xml Jun 24 20:37:46 you're not observing what you think you're obvserving Jun 24 20:37:54 ohhhh Jun 24 20:38:26 hey Jun 24 20:38:35 pfn explination? Jun 24 20:38:38 http://stackoverflow.com/questions/38020753/seekbar-thumb-states-drawables-not-working-correctly-not-animating-either Jun 24 20:38:51 nownot, I don't know what you're doing, but you're not observing what you think you're observing Jun 24 20:38:57 use a debugger, step through, etc. Jun 24 20:39:26 pfn : im doing that. the activeURL string is the correct string. if I do .equals with itself it should be true, its not Jun 24 20:39:45 the code you're using to compare isn't running Jun 24 20:39:48 e.g. instant run interfering Jun 24 20:40:18 isn't running? the break point on the if statement is definitely getting hit Jun 24 20:41:04 so if you type into the evaluate expression window "activeURL.equals(activeURL)" you get false? Jun 24 20:41:12 thats correct Jun 24 20:41:22 screenshot or it didn't happen Jun 24 20:41:53 pfn : https://imgur.com/fZBlL3t Jun 24 20:42:06 no, evaluate expression Jun 24 20:42:15 screenshot or it didn't happen Jun 24 20:42:28 not sure what you mean by evaluate expression. Jun 24 20:42:42 alt-f8 Jun 24 20:42:43 let me know what you want to see and Ill get it your way b/c this is driving me crazy Jun 24 20:43:01 pfn : mac shortcut? Jun 24 20:43:11 damned if I know Jun 24 20:43:18 ctrl-shift-a -> evaluate expression Jun 24 20:43:20 learn to ide Jun 24 20:45:08 that returns true, which is great, but still no go in code Jun 24 20:47:21 Probably instant run or something messing up line numbers, clean build or just use log statements.. Stop wasting time on thinking activeURL.equals(activeURL) would ever return false Jun 24 20:47:45 instant run Jun 24 20:47:46 like I said Jun 24 20:48:32 perry, calm down man Jun 24 20:51:32 learn your place Jun 24 20:52:46 lean my place ... .dude ...i came in here asking for help. not arguing with anyone. whey the hell are you so hostile Jun 24 20:54:24 not sure if the mods are here but can someone talk to dude about not being a dick. the channels are for people to come and ask for help, people like this really make the channel an unwelcoming place. Jun 24 20:56:18 so, when my app is just sitting there, adb is taking 10% of my cpu - but why? is there some constant chatter between the app / instant run or something ? Jun 24 21:00:28 :O Jun 24 21:00:44 ? Jun 24 21:01:09 pexit Jun 24 21:01:19 hah Jun 24 21:01:21 do that again Jun 24 21:01:45 I answered your question Jun 24 21:01:52 and indicated exactly what was wrong Jun 24 21:01:55 you talk to me like you know me Jun 24 21:01:57 so learn your place Jun 24 21:02:43 That's not a very nice thing to say. Jun 24 21:02:54 Just don't help people if you're going to be abusive Jun 24 21:03:03 There's a limit Jun 24 21:03:33 "abusive" yeah, pretending to be familiar with me is acceptable, it is not Jun 24 21:04:23 Ignore him then Jun 24 21:04:27 Just keep it out of this channel Jun 24 21:06:09 dude assumed I'm being hostile while I'm answering his questions directly Jun 24 21:06:50 then he proceeds to be downright rude Jun 24 21:07:59 SimonVT : thanks for the help, clean didnt help initially, but then did a clean and restarted android studio and i was in business. Jun 24 21:17:16 .Net Core 1.0 final release is this monday, should be interesting .... Jun 24 21:19:37 whats better, call call to rate in onResume of my main activity, or in onCreate? Jun 24 21:19:59 call to rate ? Jun 24 21:20:20 yeah, the alert that asks user to rate the app on google play store Jun 24 21:21:08 its not that simple Jun 24 21:21:16 I want to make a triange solid colour background on a view Jun 24 21:21:30 But in xML you have to set rotation on a rectangle Jun 24 21:21:43 if you do this kind of thing, you should ask if the user likes the app. is no, let them provide feedback. if yes, you can ask them to rate it - but only after the app has been used a while Jun 24 21:21:52 But depending on the view dimensions the corner to corner angle will change Jun 24 21:21:56 usually, people don't like this sort of thing so it has to be subtle Jun 24 21:23:09 anyone have any cool app ideas Jun 24 21:23:12 bored af right now Jun 24 21:23:25 yh an app that can draw triangle backgrounds on its views Jun 24 21:23:44 the open source it Jun 24 21:23:47 many thanks Jun 24 21:24:20 uh, triangle drawable then use as background? Jun 24 21:24:27 orbyt_: VR apps/games! Jun 24 21:24:36 not a big vr guy Jun 24 21:24:44 i need to triangle to be from corner to corner, so depending on the size of the view the angle will change Jun 24 21:24:48 xml only lets you set angle Jun 24 21:25:11 orbyt_: make a game without GUI Jun 24 21:25:22 lvk Jun 24 21:25:26 lxknvlk: like what Jun 24 21:25:34 you know EVE online? Jun 24 21:25:36 a game without a gui? Jun 24 21:25:37 yea Jun 24 21:25:43 so like that, but without gui Jun 24 21:26:07 ? Like a text based adventure game? Jun 24 21:26:14 isnt eve a giant mmo...? Jun 24 21:26:32 yeah but a single player concept would be great too :)) Jun 24 21:26:57 still not sure what you would do Jun 24 21:27:02 i mean you can play EVE wihtout GUI ... click a target from overview, select warp to, or attack, or dock blabla Jun 24 21:27:13 thats a gui Jun 24 21:27:17 lol Jun 24 21:27:18 hm, lol Jun 24 21:27:28 i meant without graphics Jun 24 21:27:31 :D Jun 24 21:37:25 Good evening. Jun 24 21:42:52 Good evening good sir. Jun 24 21:47:24 I'm interested in android development, but am having a single issue that I can't work out whether it's a good idea or a silly idea. The app will make use of quite a few restful requests to an api, throughout most of the activities. Is it normal to create a single class that can handle the different restful requests and just return the response to the activity for actioning the changes. Jun 24 21:47:25 ? Jun 24 21:47:38 Trice: that’s what most do Jun 24 21:47:54 In fact, the opposite, putting the request logic in your activity, is a terrible idea Jun 24 21:48:30 ok, googling isn't finding the answer somehow... I have a TextView with text in it. android:textIsSelectable="true" in the xml if I tap on a word to select it I get "TextView: TextView does not support tex selection. Selection cancelled." Jun 24 21:48:38 and it of course doesn't highlight the word Jun 24 21:49:15 I am calling view.setFocusable(true); view.setFocusableInTouchMode(true); in my onCreate for the activity also Jun 24 21:49:31 and view.setTextIsSelectable(true); though none of that makes any difference somehow Jun 24 21:50:21 s73v3r: thanks for your reply. I've been trying to find any references to having the correct way of actioning requests in a class. But cannot currently find a solid source of info for this. Can you refer me to anywhere on this please? Jun 24 21:52:12 does it have something to do with my TextView being in a LinearLayout ? Jun 24 21:52:33 I didn't realize layouts affected the items they held, thought it was just about screen positioning etc. Jun 24 21:54:43 Trice: I don’t really have any resources offhand. You might check out some of the open source android apps like Muzei and Plaid Jun 24 21:56:41 http://www.hastebin.com/woluvucequ.java for some reason the onItemClick callback is not being called when clicking buttons in the listview. Jun 24 21:57:12 the list is directly holding the buttons Jun 24 22:01:05 http://stackoverflow.com/questions/12346604/android-how-can-i-show-text-selection-on-textview maybe I need to do setOnLongClickListener and setOnClickListener and setOnTouchListener like this also Jun 24 22:04:04 hmm, that's using a custom TextView :/ I thought the built in TextView had this feature, no? Jun 24 22:07:25 test Jun 24 22:07:33 hi guise. Jun 24 22:08:02 running android studio, i need the simplest possible way to retrieve a list of installed apps. ideas? Jun 24 22:08:30 your app needs that? Jun 24 22:08:59 if so, you can just use the PackageManager class Jun 24 22:10:46 okay. thank you. Jun 24 22:12:21 s73 Jun 24 22:12:30 someone like me who is clueless- where do you suggest i look to learn how to use packagemanager? Jun 24 22:12:39 a tutorial or example Jun 24 22:12:39 the documentation Jun 24 22:12:49 documentation has never been super useful for me. Jun 24 22:12:53 i need to see examples Jun 24 22:12:58 it tells you exactly what to do Jun 24 22:13:22 i don’t have anything else offhand Jun 24 22:13:37 here? https://developer.android.com/reference/android/content/pm/PackageManager.html Jun 24 22:13:52 that’s it Jun 24 22:13:59 where does it tell me exactly what to do? Jun 24 22:14:05 i just see hundreds of pages of method descriptions. Jun 24 22:14:16 all with descriptions of what they do Jun 24 22:14:34 so i should just start at the top and read? Jun 24 22:14:49 either that, or start looking for something that sounds like what you want Jun 24 22:15:18 these descriptions lack content, it's not enough for me to understand how to use them Jun 24 22:15:23 context** Jun 24 22:15:38 if you click on it, it takes you to more information about them Jun 24 22:16:44 ok. Jun 24 22:20:31 s73 Jun 24 22:20:43 so i've instantiated a packagemanager called pm Jun 24 22:20:58 dont Jun 24 22:21:04 if i want to call getInstalledApplications, do I call it on pm? Jun 24 22:21:08 .......huh? Jun 24 22:21:25 did you read the top of the doc page? Jun 24 22:21:56 oh abstract? Jun 24 22:22:14 no, the part about getting the class through the getPackageManger() method on Context Jun 24 22:22:21 yeah i thought i did that Jun 24 22:22:25 ok Jun 24 22:22:30 PackageManager pm = getPackageManager(); Jun 24 22:22:32 ? Jun 24 22:22:36 nope Jun 24 22:22:42 you need to call that method on an object Jun 24 22:22:58 on a Context object Jun 24 22:23:02 like an Activity Jun 24 22:23:23 PackageManager pm = this.getPackageManager(); ? Jun 24 22:23:34 if you’re on an activity, sure Jun 24 22:23:41 i'm inside mainactivity Jun 24 22:23:45 ok Jun 24 22:24:38 is it incorrect to instantiate pm type like this? documentation says abstract Jun 24 22:24:39 Huawei "to hedge its bets against Google’s control of Android, Huawei is also secretly developing an alternative mobile operating system, according to three people briefed about the project." Jun 24 22:24:52 <-- running honor 5x Jun 24 22:24:57 no, that’s the way it tells you to instantiage it Jun 24 22:25:00 <-- can't use it w android studio lol Jun 24 22:25:03 ty s73 Jun 24 22:25:18 why can’t you use it with AS? Jun 24 22:25:30 s73 what if i wanted this code in a library. can i pass 'this' to a method called? Jun 24 22:25:56 huawei doesn't have usb drivers anywhere Jun 24 22:26:27 you can have your method take a Context as a parameter Jun 24 22:26:56 public static void getApps(Context context) Jun 24 22:27:12 yes, although I’m wondering why you’d make it static Jun 24 22:27:30 and if it’s void, how are they going to get the list of apps back? Jun 24 22:27:44 uhhhhh h/o... Jun 24 22:28:30 i thought static made sense because this is just a library class, never to be instantiated Jun 24 22:28:40 public class mybullshit Jun 24 22:29:06 so from my activity i would call mybullshit.getApps(this) Jun 24 22:29:34 i suppose, but what’s your library method going to do? Jun 24 22:29:57 just some bs to show i can figure this crap out Jun 24 22:29:57 job test Jun 24 22:30:12 i don’t see why you’d put it in a library, then Jun 24 22:30:17 i was instructed to Jun 24 22:30:35 i suppose Jun 24 22:30:42 it's part of the exercise, put the crap in a library Jun 24 22:30:52 but if you’re having this much trouble with basic programming concepts, are you sure you’re ready for the job? Jun 24 22:31:05 i don't have problems with programming. Jun 24 22:31:10 i'm new to android Jun 24 22:31:20 it’s no different than any other programming Jun 24 22:31:21 i've been doing embedded firmware for arm processors for 6 years Jun 24 22:31:48 this mobile crap is different dude. Jun 24 22:31:52 i don't know what to tell you. Jun 24 22:31:57 then why are you asking if you call getInstalledApplications on a PackageManager instance? Jun 24 22:31:59 it really isn’t Jun 24 22:32:07 okay then i' just a jackass and it's the same Jun 24 22:32:10 i still need help. Jun 24 22:32:16 it’s regular object oriented programming Jun 24 22:32:23 fine i'm an idiot. Jun 24 22:32:26 Off for more reading, thanks for pointing me in a direction s73v3r Jun 24 22:32:58 i've mostly done maintenance on big projects Jun 24 22:33:06 i've never put the tiny pieces together myself Jun 24 22:33:19 i’m not saying to give up. i’m saying you need more study Jun 24 22:33:23 i agree lol. Jun 24 22:34:05 embeded c is not oop btw Jun 24 22:34:21 it's been a long time since i've seen classes Jun 24 22:36:12 PackageManager pm = context.getPackageManager(); Jun 24 22:36:12 looks ok Jun 24 22:36:19 ist listAppInfo = pm.getInstalledApplications(); Jun 24 22:36:22 List* Jun 24 22:37:24 getInstalledApps wants a flag argument.... not sure what to put here. Jun 24 22:38:03 what does the documentation say? Jun 24 22:38:22 i'm noticing a pattern here :P Jun 24 22:39:10 well it says they're optional but AS is mad if i pass no argument Jun 24 22:39:16 should i ignore it? Jun 24 22:39:19 no Jun 24 22:39:36 pass 0? Jun 24 22:39:45 you have an int as a parameter. what’s an int that has no bitflags set? Jun 24 22:39:52 yes Jun 24 22:41:23 wow so the int is parsed bitwise for each flag? Jun 24 22:41:35 i do that stuff in embedded but i didn't expect it here. Jun 24 22:41:43 yeah, it’s a standard practice Jun 24 22:43:17 now to access and store the names Jun 24 22:43:20 List apps = new ArrayList(); Jun 24 23:01:59 s73 Jun 24 23:02:37 i think i've retrieved the data. i'd like to alter the context of the TextView to display my new data, got anything? Jun 24 23:03:05 you might need to get a book on android development Jun 24 23:23:34 AS previewer says "Android N requires the IDE to be running with Java 8 or newer" O.o Jun 24 23:28:53 heh Jun 24 23:30:05 how is AS 2.2 p4 for daily use ? i guess that comes with patched openJDK for apple Jun 24 23:30:33 am i going to be bitching about? Jun 24 23:30:39 *about it Jun 24 23:30:56 probably :p Jun 24 23:31:02 * g00s sighs Jun 24 23:31:17 * kbs snuggles up to his emacs Jun 24 23:31:22 haha Jun 24 23:35:32 yeah i just wanted to use latest support lib, so thats 24. that meant compileSdk=24. i think it also complained i need platform-tools 24. i guess then i also need to get java 8 for previewer :( Jun 24 23:35:52 i think everything depends on everything :D Jun 24 23:38:54 just noticed my as is 2.1.2, was that last stable? maybe i'm not on canary Jun 24 23:39:37 whatitis thats latest stable Jun 24 23:39:50 ah cool thanks Jun 24 23:40:03 got new comp and never changed Jun 25 00:29:27 Why does the program still compile if I omit "super.onCreate(savedInstanceState);" ? Jun 25 00:30:16 Although I see a red squiggly line over onCreate method which means "error". Jun 25 00:31:49 It's still valid Java at compile time Jun 25 00:39:43 then, when the moon becomes full ... it turns to : invalid Java ! Jun 25 00:45:33 prefered widget for blank text box for user entry? Jun 25 00:45:49 going to be an encryption keyword. Jun 25 00:45:50 entering password? Jun 25 00:45:57 no Jun 25 00:46:07 So, are android specific errors don't stop you from compiling and not shown in error console at all? Jun 25 00:46:08 it's just for demonstration Jun 25 00:46:17 just use an edittext Jun 25 00:47:27 extracteditext? Jun 25 00:47:33 ExtractEditText Jun 25 00:47:37 doe that work Jun 25 00:48:05 EditText? Jun 25 01:00:10 damn, under the activity monitor / energy tab in OS X, adb is killing it Jun 25 01:44:38 hey guys, what is the proper way to request write access to sdcard on android 6.0 ? I have android.permission.WRITE_EXTERNAL_STORAGE but I still get UnauthorizedAccessException when trying to write to SD card Jun 25 01:50:02 mz|alex, https://developer.android.com/training/permissions/requesting.html Jun 25 01:53:49 Ologn should I request the WRITE_EXTERNAL_STORAGE ? Jun 25 01:57:54 mz|alex, yes Jun 25 01:59:23 so I've got WRITE_EXTERNAL_STORAGE set on manifest, I also do that request (it gets a SUCCESS without prompting the user) and still get permision exception Jun 25 02:33:04 interesting https://adtmag.com/articles/2016/06/23/mobile-dev-research.aspx?platform=hootsuite Jun 25 02:33:28 so enterprises are outsourcing because they aren't familiar with the technology demands Jun 25 02:52:58 what's that screen called when you double swipe down from the lock screen? Jun 25 02:53:14 where you can turn on/off wifi/blutooth/etc... Jun 25 02:53:24 "notification thingy" Jun 25 02:53:30 is that the notification bar? Jun 25 02:53:48 quick settings Jun 25 02:53:53 ah ok Jun 25 02:54:05 i was thinking it'd be settings bar or something **** ENDING LOGGING AT Sat Jun 25 02:59:58 2016