**** BEGIN LOGGING AT Thu Oct 06 02:59:58 2016 Oct 06 03:13:06 Hi guys Oct 06 03:13:22 I have a backup.ab file Oct 06 03:13:32 I need help unpacking this Oct 06 03:20:33 I need help unpacking backup.ab Oct 06 03:22:43 shahan read topic Oct 06 03:23:48 I read it but I can't get anywhere as I'm getting all sorts of errors after the Abe Oct 06 03:24:56 that doesn't change anything, try android-root Oct 06 03:30:51 hello just looking for a bit of advise, I'm writing an application in python which im packaging for android im running android x86 in a VM but ofcource the libraries packaged for my android application are built for arm so theyre not really compatible, instead of having to try and get the libraries to use their x86 counterparts id rather build an Vm image for ARM, i have an ARM emulator so that not a Oct 06 03:30:57 problem, where the best place to get instructions for building andorid though ? Oct 06 03:36:17 ah interesting, Android 7.1 has features only for Pixel devices - Nexus won't get them Oct 06 03:43:44 Trying to unpack backup.ab on windows Oct 06 03:45:08 Can anyone unpack the file for me ? Oct 06 03:45:14 Teamviewer Oct 06 03:45:19 shahan go away Oct 06 03:45:50 Why I need help Oct 06 03:46:00 you are in the wrong channel Oct 06 03:46:06 Which channel Oct 06 03:46:06 this isn't tech support for morons Oct 06 03:46:18 Direct me Oct 06 03:46:46 i already said, android-root Oct 06 04:14:27 whats the best libraries for making rest api calls to backend server? Oct 06 04:17:25 Sircle: Depends on the API. Oct 06 04:18:50 Anyone use FirebaseUI library? I can't get my RecyclerView to populate. I have confirmed that I can get data with a ValueEventListener on the given child. Here's a pastebin of the recycler adapter setup: http://pastebin.com/XZyP5vct Oct 06 04:34:39 jeffmcnd: You should really not use those ui libraries Oct 06 04:35:06 If at some point you want to migrate away from Firebase, you'll have to rewrite your view layer Oct 06 04:35:30 Plus RecyclerViews are extremely straightfoward Oct 06 04:36:59 loke: normal REST api with json data Oct 06 04:37:30 Sircle: You can use something like okhttp. That one is quite popular. Oct 06 04:37:43 Sircle: Use retrofit Oct 06 04:38:26 Sircle: Certain API's lend themselves well for retrofit, so it can be used if there is a good match (if not, don't try to shoehorn retrofit into it) Oct 06 04:43:08 loke: orbyt_ ok Oct 06 06:58:24 hi i am a one man developer doing development on the side. if i want to get in-app purchases i must set up a merchant account correct? Oct 06 06:58:33 do i need to setup a business in my country? Oct 06 06:58:49 as the merchant account seems to only accept businesses Oct 06 07:08:01 i think its just a formality tyl Oct 06 07:08:14 i got the same setup and no registered business Oct 06 07:08:22 raoul11 so i don't need to register as a sole propertier in my country? Oct 06 07:11:00 raoul11 how do they bill you? through wallet? Oct 06 07:11:12 no, direct payments Oct 06 07:11:33 direct payments through the bank account or through the credit card? Oct 06 07:11:38 just added a bank account, took them a few days to verify Oct 06 07:11:45 and then it just happens montly Oct 06 07:12:10 dont think they do CC payments Oct 06 07:12:59 https://www.novoda.com/blog/asking-for-app-feedback-the-effective-way/ Oct 06 07:13:13 are you a USA resident tyl? Oct 06 07:13:15 are you using your own home address as the address on file? Oct 06 07:13:17 raoul11 no Oct 06 07:13:22 yes tyl Oct 06 07:13:45 thanks Ashiren Oct 06 07:43:33 hi guys... trying to get my dates to show the correct timezone according to the device timezone Oct 06 07:43:36 http://stackoverflow.com/questions/39889101/applying-timezone-to-date-format-not-working/39889816#39889816 Oct 06 07:43:44 does anyone know how to achieve that? Oct 06 07:44:01 basically i'm converting a string like ""2016-09-24T06:24:01Z";" into something human readable Oct 06 07:44:17 which is fine now (thanks to the folks in here about a week back), but the timezone is wrong Oct 06 08:00:36 Are you using ThreeTenABP? Oct 06 08:00:55 If not, you should and it has parser for ISO_OFFSET_DATE_TIME Oct 06 08:04:28 no i'm not Oct 06 08:09:33 so using that library i'll be able to convert "2016-09-24T06:24:01Z" into a different format? Oct 06 09:05:30 :) Oct 06 09:06:39 hi, i have an image (pic taken with mobile) and i want to be able to mark some spots on it (eg. tap somewhere, choose between objects A, B and then add that object (image of A) on the spot where i tapped). How could i do that? (considering i also have to be able to click on that object and have options like (remove, enter name of the object etc)) Oct 06 09:17:48 Does android studio any clipboard built in on can access to get the previous cut or copy ? Oct 06 09:18:28 eish left out the *have in that sentence. Oct 06 09:18:49 I messed it up bad Oct 06 09:19:07 Does Android Studio have any clipboard built in one can access to get the previous cut or copy ? Oct 06 09:20:01 Edit menu, paste from history option Oct 06 09:20:52 cool ty beardedninja Oct 06 09:26:18 NeoFrontier: hi! Oct 06 09:26:52 Hi Melatonina :) Oct 06 09:27:01 Having a good day of programming ? Oct 06 09:34:16 NeoFrontier: just started my day of programming trying to debug views behind system bars in a CoordinatorLayout. Not fun. I hope your day is better! Oct 06 09:47:14 hi guys. i've a problem with the loader api. After the onCreateLoader finishes, my app crashes without any message Oct 06 09:47:23 i'm using the support library Oct 06 09:59:08 what i've found a little bit strange is that even tough i've passed to the LoadManager an ID, the loader is initialized with a different one Oct 06 10:00:52 LucaS05: can you pastebin your code or noone's got a clue what you're talking about Oct 06 10:03:42 alex_PP: hope this could help: http://pastebin.com/sK4xcjij Oct 06 10:03:55 (i'm using Loaders for the first time) :) Oct 06 10:13:58 hi, anyone know why the folders under 'Project Files' in Android Studio always auto-collapse when building/running the app? it's annoying Oct 06 10:16:27 iprime: it depends on the version. In versions after 2.1 it does so to be annoying. In versions before and including 2.2 it does so to be very annoying Oct 06 10:18:39 yeah i'm in the very annoying club then Oct 06 10:18:45 any fix for it that you know of? Oct 06 10:19:17 for me (2.2) it collapses everything just when synchronizing gradle scripts Oct 06 10:19:22 I don't know any fix Oct 06 10:19:33 yeah i guess it's the same for me Oct 06 10:20:17 i'll check with jetbrains, maybe they can help Oct 06 10:26:20 apparently it does it in IDEA too, I never use the project files view Oct 06 10:29:06 iprime, https://youtrack.jetbrains.com/issue/IDEA-98462 Oct 06 10:29:12 likely cause Oct 06 10:31:27 or maybe not, I can't reproduce it the way described in the report Oct 06 10:36:14 100% reproducible with gradle sync Oct 06 10:36:21 (since ages) Oct 06 10:39:36 hey guys. i've a problem with the loader api. After the onCreateLoader finishes, my app crashes without any message Oct 06 10:39:50 this is the code: http://pastebin.com/sK4xcjij Oct 06 10:42:47 you need to provide the stacktrace Oct 06 10:43:02 if you don't see any crash message, fix that first Oct 06 10:43:44 adq: i don't have anything. the application simply close itself Oct 06 10:44:07 LucaS05, maybe you put a filter in logcat preventing you to see the stacktrace Oct 06 10:49:06 adq, yeah gradle reproduces the thing but not just creating a new file in the directory structure Oct 06 10:49:13 either way, I don't care, I never use project files viwe Oct 06 10:49:16 view* Oct 06 10:49:30 yup, creating a file (since i do it regularly) outside of the ide is not triggering this issue Oct 06 10:50:07 but i have to manually refresh the subfolder in the AS view though otherwise it seems he does not detect a new file has been added (or removed) (for example via adding a drawable file) Oct 06 10:50:27 s/he/it/ Oct 06 10:52:04 either way, I do care and find that crazy :p Oct 06 10:52:31 crazy that the behavior (and bugs) of IDEA and AS differ so much and so often, crazy that these kind of bugs are happening on an IDE in 2016 Oct 06 10:52:38 it's not an experimental unstable feature.... Oct 06 10:54:54 adq: i've only show selected application Oct 06 10:56:53 Found a nifty little command to screengrab and save it on the device running the adb command (not sure if I can link to an SO answer or a blog post here that describes it). Using adb shell screencap and outputs it in stdout (saving thru sed or perl -pe). However, it doesnt work on my osx machine. but the files are corrupt. Quite far off from being related to android-dev and AS tho :/ Oct 06 11:03:26 Zooklubba: just do `adb shell screencap -p > file.png` Oct 06 11:08:15 alex_PP I want it on the computer that is running the emulator. Bah, I'll just go with screencap and then adb pull it. Oct 06 11:08:33 that'll already save it to you computer Oct 06 11:09:36 herpaderp, I didnt see the >. aye, lol that worked. thx and sorry for my lack of reading.... Oct 06 11:13:53 Zharf, what do you use? "Project" view? Oct 06 11:15:59 yes Oct 06 11:56:05 * raoul11 flicks thepoosh's yamaka off Oct 06 12:02:59 raoul11: STOP MAKING ME AN ATHIEST!!! Oct 06 12:06:30 por que /: Oct 06 12:07:00 because god and stuff! Oct 06 12:07:04 sup? Oct 06 12:07:46 so tired after lunch Oct 06 12:07:52 fallin asleep on le keyboard Oct 06 12:08:01 poor you Oct 06 12:09:21 whats new on your side Oct 06 12:09:42 tired Oct 06 12:09:52 but also stressed Oct 06 12:09:57 due to version timeline Oct 06 12:09:58 why? Oct 06 12:10:25 well yea Oct 06 12:10:48 yeah... Oct 06 12:13:54 the xml preview is so broken, "rendering problems" so often on compat class, whatever theme or api Oct 06 12:14:22 adq: I always drop the sdk level (on preview) to 23 Oct 06 12:14:27 it usually works Oct 06 12:14:36 "whatever theme or api" Oct 06 12:14:54 well, it sucks for custom (or library) views Oct 06 12:15:20 major.minor version 52 thingie? Oct 06 12:15:55 "on compat class" Oct 06 12:16:22 was askin lepoosh Oct 06 12:16:33 dunno Oct 06 12:16:46 mine's spit that error whenever its on 24 Oct 06 12:16:59 same here Oct 06 12:22:34 hi Oct 06 12:23:01 Followed this guide and confirmed that `getView` has the contents I want it to. Why doesn't my ListView show on the screen? - https://github.com/codepath/android_guides/wiki/Using-an-ArrayAdapter-with-ListView#using-a-custom-arrayadapter Oct 06 12:23:15 * AlecTaylor just wants some general tips on how to debug when a view doesn't show Oct 06 12:29:34 Hi, is here anyone who is familiar with OrmLite? Oct 06 12:31:11 tokam: is there a question? Oct 06 12:31:17 yes Oct 06 12:31:26 AlecTaylor: did you setContentView Oct 06 12:31:26 ? Oct 06 12:31:34 tokam: why not start with that? Oct 06 12:31:59 how can I propperly store and remove entities of a foreign collection with OrmLite Oct 06 12:32:56 http://stackoverflow.com/a/6790773/1056359 Oct 06 12:33:02 thepoosh: I like to have the 1 side and the n side maintained and as well update the database Oct 06 12:33:31 it's called cascade delete Oct 06 12:33:35 read the link Oct 06 12:34:00 cascade delete is something else. Oct 06 12:34:46 so your question is not clear Oct 06 12:34:50 what are you trying to do? Oct 06 12:35:48 thepoosh: http://stackoverflow.com/q/39883622/663551 Oct 06 12:36:26 you have a 1:n entity Oct 06 12:36:42 and you're asking how to trickle down deleting your 1 object? Oct 06 12:36:43 yes my n side has a ForeignCollection Propperty. Oct 06 12:36:59 also, why are you using ORMlite?! Oct 06 12:37:07 isn't it deprecated and unmaintained? Oct 06 12:37:16 what to use instead? Oct 06 12:37:41 dunno, https://github.com/square/sqldelight Oct 06 12:37:44 I am having a grown application here which is build upon ormlite Oct 06 12:37:45 or GreenDao? Oct 06 12:37:54 know your pain Oct 06 12:38:04 ok for the next project. sqldelight or greendao Oct 06 12:38:10 Hey all Oct 06 12:38:15 Ok currently I just delete the object from the 1 side. Oct 06 12:38:20 with a dao. Oct 06 12:38:27 and clear the cache for the objects on the n side. Oct 06 12:38:37 and reload them from the database Oct 06 12:39:09 but what I really like to do now is: changing the forign collections of those objects, so that no reload is required. Oct 06 12:39:26 not sure that is possible Oct 06 12:39:34 according to the answer about cascading Oct 06 12:39:35 A fast question. Testing our app on 7.0 right now, which uses a foreground service (with an attached notification, priority set to MIN). The notification on 6.0 and below works fine, hidden, does not show on the status bar, however on 7.0 it shows and sticks to the "active" (not background") notifications. Oct 06 12:40:20 why according to that answer? Oct 06 12:40:48 NOTE: When you are adding a new object to a foreign collection, this will also add it to the database by calling through to dao.create(obj). If the object has already been created in the database then you should instead set the foreign field on the object and call dao.update(obj). If you add it here the DAO will try to create it in the database again which will most likely cause an error. Oct 06 12:40:52 that's what I understood, it seems like you need to iterate through the entire n collection and update them Oct 06 12:40:58 thepoosh: I think that is what I was looking for. Oct 06 12:40:59 :) Oct 06 12:43:11 fonix232: have you read this? Oct 06 12:43:11 https://developer.android.com/guide/topics/ui/notifiers/notifications.html Oct 06 12:47:36 RE: ListView doesn't appear. thepoosh: so I'm in the `onPostExecute` of an `AsyncTask` [`static class`] in my activity. The Layout is set in my Activity's `onCreate` Oct 06 12:47:45 Followed this guide and confirmed that `getView` has the contents I want it to. Why doesn't my ListView show on the screen? - https://github.com/codepath/android_guides/wiki/Using-an-ArrayAdapter-with-ListView#using-a-custom-arrayadapter Oct 06 12:47:49 * AlecTaylor just wants some general tips on how to debug when a view doesn't show Oct 06 12:48:30 AlecTaylor: I will need some more information, can you paste your activity code in pastebin.com or pastie.org? Oct 06 12:53:39 Nah there's still too much code to work with, I'm trying to bring it down to a test-case level so I can share it Oct 06 12:57:19 Oh lolololol Oct 06 12:57:21 I found it Oct 06 12:57:29 thepoosh: White text on white background Oct 06 12:57:30 >.< Oct 06 12:58:38 thepoosh: my problem is not yet solved :( Oct 06 13:00:16 thepoosh: http://pastebin.com/AYPrRBpz Oct 06 13:00:24 I expected test 3 to also list my changes. Oct 06 13:00:33 but they were only listed in test 4 Oct 06 13:00:43 indeed the collection is null before I reach test 4 Oct 06 13:00:55 hithere Oct 06 13:01:00 how can I manage a propper state of my entities without having to reload them? Oct 06 13:01:26 http://bit.ly/2cW6qKU Oct 06 13:01:29 I see the option of using a proxy patter to help me with my actual problem, but maybe I can somehow have the entities themself be up to date all the time Oct 06 13:01:41 ClipData newPlainText (CharSequence label, Oct 06 13:01:41 CharSequence text) Oct 06 13:01:50 what is that label exactly for? Oct 06 13:02:36 I have tested it but I do not see that label... Oct 06 13:02:39 * AlecTaylor solved with `android:textColor="@color/colorPrimary"` Oct 06 13:03:34 ok got it http://stackoverflow.com/questions/33207809/what-exactly-is-label-parameter-in-clipdata-in-android Oct 06 13:07:59 hello Oct 06 13:08:53 t2mkn: hello! Welcome! Oct 06 13:10:12 thepoosh: ok I must add in my test a foreignCollection field first Oct 06 13:10:20 and than the update works Oct 06 13:12:06 thepoosh: which part should I be looking at? Oct 06 13:12:51 I read the whole notifications documentation before implementing it, now re-read it two times trying to find some relevance to my issue, but nothing Oct 06 13:21:49 can I get only the children keys with Firebase, without getting the values? Oct 06 13:31:15 I'm unable to make the underline of a AppCompatEditText inside a TextInputLayout to show up on anything under lollipop Oct 06 13:31:18 any clues? Oct 06 13:37:16 I am trying to use "@SuppressLint("Deprecation");" Oct 06 13:37:21 for textView.setText(Html.fromHtml(message)); Oct 06 13:38:05 but AS says "Annotations are not allowed here" Oct 06 13:38:11 any clue why? Oct 06 13:39:31 alt+enter can help you suppress Oct 06 13:41:57 SimonVT, http://pastebin.com/hkLrGA1M ; alt+enter says remove or remove braces from else Oct 06 13:43:46 It says more than that Oct 06 13:44:48 Make sure you actually place the cursor where you want things to happen Oct 06 13:45:11 Can't just place it in any random location Oct 06 13:45:20 sec Oct 06 13:45:35 https://snag.gy/cZQKjU.jpg Oct 06 13:46:10 btw this comment "@SuppressLint("Deprecation") can only be set on method level if I understand correctly." from here http://stackoverflow.com/questions/24208410/how-to-suppress-specific-lint-warning-for-deprecated-android-function says it all I think Oct 06 13:47:34 https://cl.ly/2f1j2v22463C Oct 06 13:48:27 "//noinspection deprecation" for this case Oct 06 13:48:49 SimonVT, interesting - what should I done (install) to have it that way? Oct 06 13:48:54 done == do Oct 06 13:49:17 Don't know, works like that on all my installs.. Haven't done anything special Oct 06 13:50:01 strange Oct 06 13:50:46 Are you certain you have the Html.fromHtml line selected? Oct 06 13:51:04 btw - noinspection think is not that good - in AS code - strike through is gone - but lint inspections have the same problem Oct 06 13:51:28 The popup is usually below the line where the cursor is.. Oct 06 13:52:16 ok - no I have not selected that row - small mistake happened Oct 06 13:52:25 now it shows all the offerings you showed me Oct 06 13:52:46 but it places same "//noinspection. ... " above problematic row Oct 06 13:52:52 as I did by hand :) Oct 06 13:54:26 and that is useful only for code inspection only Oct 06 13:54:34 "warning: [deprecation] fromHtml(String) in Html has been deprecated Oct 06 13:54:34 textView.setText(Html.fromHtml(message));" Oct 06 13:55:28 Guess you have to add AndroidLint http://tools.android.com/tips/lint/suppressing-lint-warnings Oct 06 13:55:29 output when using lint inspection activated from gradle http://pastebin.com/SRGv8Aug Oct 06 13:59:56 I was on that page and still I am - what do you mean by that - "//noinspection AndroidLintSdCardPath" ? Oct 06 14:01:33 Each lint inspection has an id. It says to prefix it with AndroidLint Oct 06 14:01:57 If I have a scrollview and I animate().translationY(200) the bottom view, the scrollview height doesn't grow Oct 06 14:02:05 what am I doing wrong? Oct 06 14:02:17 Never tried it, but seems simple enough Oct 06 14:02:38 ok - problem is probably not on my side Oct 06 14:02:38 Oct 06 14:02:39 JJD is right - as of today with the latest tools and IDE updates, //noinspection fails to disable lint warnings for the build system. The issue tracker at code.google.com/p/android/issues/detail?id=73475 says this is by design, but the documentation at tools.android.com/tips/lint/suppressing-lint-warnings fails to mention that important difference between //noinspection and @SuppressLint() Oct 06 14:02:55 gdrc: translation moves the view visually (and touch-ally), not its layout position Oct 06 14:03:44 ok so I should change the layout position Oct 06 14:03:48 I'm gonna try Oct 06 14:05:09 Just create a HtmlCompat class and suppress it where if you don't want to mess around with it anymore Oct 06 14:05:20 so "//noinspection does not affect the gradle build process" https://code.google.com/p/android/issues/detail?id=204142&thanks=204142&ts=1458158680 Oct 06 14:05:27 why me :/ Oct 06 14:08:10 To use mock location with LocationServices.GeofencingApi do I use LocationServices.FusedLocationApi.setMockMode ? Oct 06 14:08:18 SimonVT, thank you for assist. Oct 06 14:08:30 Doesn't seem right, but I cannot seem to get mock location working with Geofencing Oct 06 14:08:43 s/get/find a way to/ Oct 06 14:14:58 hey guys i'm still stuck with my "loaders problem" Oct 06 14:15:02 this is the code: http://pastebin.com/sK4xcjij Oct 06 14:15:17 i've checked logcat but i haven't found any good stacktrace Oct 06 14:15:44 the problem is that when the onCreateLoader returns, the app crashes Oct 06 14:15:51 without any message Oct 06 14:17:09 SimonVT: it just disappears :( Oct 06 14:18:37 :( Oct 06 14:20:54 LucaS05: Even if there is no stacktrace, there should at least be something fishy. The only time I've had crashes when I had no stack traces was when I had a file descriptor leak that was caused by accidentally creating threads all the time, and there was some vague Android system message in Logcat just before crashing Oct 06 14:21:53 yiati: i'm using the support library for that Oct 06 14:22:00 i'm getting rid of that Oct 06 14:22:08 and trying with the non-support one Oct 06 14:22:14 i will let you know Oct 06 14:28:53 raoul11: FUKKKK Oct 06 14:28:58 I just had a bug Oct 06 14:29:13 that happened because I removed a post that seemed not needed Oct 06 14:29:14 humeini? Oct 06 14:29:32 rollbackFtw? Oct 06 14:29:41 but it was because it assumed that another post from a different class (list adapter) will happen before this code is run Oct 06 14:29:45 dammit! Oct 06 14:30:19 we might have to replace you with them outsourced/imported injuneers Oct 06 14:31:39 AAARRRRRGGGG Oct 06 14:32:38 this will cheer u up thepoosh: http://i.imgur.com/U018ftl.gif Oct 06 14:33:03 HA Oct 06 14:34:13 one error i got is: E/MultiWindowProxy: getServiceInstance failed Oct 06 14:34:18 yiati: ^ Oct 06 14:39:21 There you go Oct 06 14:40:31 but i don't what it means :/ Oct 06 14:42:06 yiati: it doesn't report anything meaningful Oct 06 15:01:05 so git wants me to upload a google cloud endpoints' build directory. I am not sure that will be useful. Will it? Oct 06 15:03:46 Anyone know why a vector drawable is coming up ResoureceNotFound on Android 7, but fine on 4.3? Everything's just in the regular ol' "drawable" directory, nothing fancy. If I swap the filename for another in there the error goes away. Oct 06 15:08:06 Oh. Also goes away if I replace the contents of the drawable with another. Thanks for the helpful error, Android. \s Oct 06 15:11:32 sudhirkhanger: git wants you to do something? Oct 06 15:20:43 Does the method loadInBackground of AsyncTaskLoader can return null? Oct 06 15:20:55 I've found that if that's the case, the app crashes Oct 06 15:25:13 Hi folks. It looks like that the new Studio 2.2 layout element properties window doesn´t show all changed properties Oct 06 15:25:24 So I have to scroll through the whole list of ´all´ properties Oct 06 15:25:56 And it doesn´t really feel like an improvement at all. Is it possible to switch back (apart from going back to Studio 2.1)? Wasn´t able to find much on the web Oct 06 15:26:44 any javaee defv? Oct 06 15:26:46 dev* Oct 06 15:26:47 ] Oct 06 15:26:59 https://pastebin.mozilla.org/8916375 Oct 06 15:27:07 can i ask here about retrofit2? Oct 06 15:28:32 Sure Oct 06 15:30:10 i use retrofit 2 and sugar ORM. i need to save in DB a json from BE. all works fine, just one problem: retrofit callback run on UIThread so sugar save run on UI. which are the best way to resolve? Oct 06 15:30:25 i dont want to create an asyncTask only to save data Oct 06 15:31:51 Set a callback executor Oct 06 15:32:20 SimonVT need info Oct 06 15:33:11 http://square.github.io/retrofit/2.x/retrofit/retrofit2/Retrofit.Builder.html#callbackExecutor-java.util.concurrent.Executor- Oct 06 15:33:17 Set a callback executor when you create your Retrofit instance Oct 06 15:33:31 (This is documented on the Callback interface) Oct 06 15:34:06 I'm trying to make an AccessibilityService that add a "Rect" in overlay on all Views containing an email on other apps. I'm really stuck with the "onAccessibilityEvent", I don't know how to use it to have something clean (espacialy when an AccessibilityNodeInfo disapear or move). Is there a good resource somewhere online with good explanation ? Oct 06 15:35:24 I wonder if I took a look at sugarorm when I did my research Oct 06 15:35:31 yiati: so i added a google cloud endpoints. I have to make a commit soon but I see gce-module/build in the untracked files. Usually build folder are added in .gitignore so they aren't uploaded. I am not sure what to do. Should mark these gce/build folder to be tracked or add the build folder to the .gitignore. Oct 06 15:35:40 SimonVT where is documentation? Oct 06 15:35:49 xan_IT, I linked it... Oct 06 15:35:52 oh, I did Oct 06 15:35:59 didn't like sugarorm either Oct 06 15:36:15 It should be available in your ide Oct 06 15:36:23 Otherwise, Zharf's link Oct 06 15:36:37 http://square.github.io/retrofit/2.x/retrofit/retrofit2/Callback.html Oct 06 15:36:47 "Callback methods are executed using the Retrofit callback executor" Oct 06 15:36:48 (espacially when AccessibilityNodeInfo is immutable) Oct 06 15:38:05 SimonVT yes but how can i use another executor ? Oct 06 15:38:44 * Zharf slaps xan_IT Oct 06 15:39:09 Create one.. Set it when building your Retrofit instance Oct 06 15:39:18 http://square.github.io/retrofit/2.x/retrofit/retrofit2/Retrofit.Builder.html Oct 06 15:39:59 but this executor are one for all retrofit calls Oct 06 15:40:27 Yep Oct 06 15:40:37 blusky, don't know really, never looked into accessibility stuff, and I assume you looked at https://developer.android.com/training/accessibility/service.html Oct 06 15:41:05 yes, but it does not contains what I need :( Oct 06 15:41:18 the Firebase database is very limited in the kind of operations you can do on it Oct 06 15:41:37 Who is using the Firebase real-time database here? Oct 06 15:41:41 SimonVT i need a callback for each call that run in not ui thread Oct 06 15:42:04 Did not parse Oct 06 15:42:44 I was going to suggest rxjava but I think it'd be better if I didn't Oct 06 15:43:35 RxJava lets you do whatever you want for each call Oct 06 15:43:44 yeah Oct 06 15:43:58 but it's probably too confusing for him Oct 06 15:45:02 "kind of operations"... I mean query you can perform on it. It has a primitive query language Oct 06 15:47:43 Zharf i can use RxJava or simply asynctask inside retrofit callback. but the question is: which are the best way? Oct 06 15:48:28 Zharf integrate RxJava to my app only for this i think is oversized Oct 06 15:50:49 Retrofit can return an Observable for you Oct 06 15:53:13 SimonVT i think retrofit is great but in callback need to add onPreExecute and onResponseInBackground Oct 06 15:53:54 I disagree Oct 06 15:59:44 why? Oct 06 16:00:11 Android Studio's SVG-to-VectorDrawable consistently produces a file that crashes the app if it runs on a too-new version of Android. But it's fine on older ones. That's just. Charming. Oct 06 16:00:48 Everyone has different requirements.. other libraries solve that (e.g. rxjava) Oct 06 16:01:37 Other than providing a simple way of doing async requests, retrofit should let more focused libraries solve those problems Oct 06 16:02:57 SimonVT retrofit manage call in background, why not expose a callback on that thread? Oct 06 16:07:26 morning all Oct 06 16:07:56 morning orbyt_ Oct 06 16:08:31 hey thepoosh Oct 06 16:08:37 sup guys Oct 06 16:08:50 hi g00s Oct 06 16:08:55 drose379: Oct 06 16:09:08 Yeah? Oct 06 16:09:20 : ! Oct 06 16:09:41 Hows everyone Oct 06 16:10:19 it was the generic hi Oct 06 16:10:56 Ah interesting Oct 06 16:10:58 thepoosh what did you think of oct 4 event? this was my reaction (from reddit) http://i.imgur.com/Nyj9cWz.gifv Oct 06 16:11:27 oct 4? Oct 06 16:11:30 lol Oct 06 16:11:33 the pixel? Oct 06 16:11:36 yeah Oct 06 16:11:44 funny jab at apple Oct 06 16:12:03 lol, i'm upset that nexus is no longer Oct 06 16:12:23 so now there is really no AOSP stock device Oct 06 16:12:48 I dislike the whole "we gave you the google asistant so we can own your everything Oct 06 16:13:13 i'll never use any of that crap anytime soon Oct 06 16:13:25 I installed both allow and duo Oct 06 16:13:31 because i do messaging Oct 06 16:14:35 g00s: what do you think about the data binding library? Oct 06 16:15:25 ugh - i haven't used it yet. until recently, i couldn't decide between jack & data binding | instant run, but jack still beta; Napalm really likes it Oct 06 16:15:30 hey Oct 06 16:15:36 lol hey Napalm Oct 06 16:15:44 ha Oct 06 16:15:49 you rubbed my magic lamp Oct 06 16:15:51 :D Oct 06 16:15:53 Napalm: have you tried data binding? Oct 06 16:15:57 ya Oct 06 16:16:09 used it on all my projects for the past year Oct 06 16:16:21 doesn't it tightly couple xml and java? Oct 06 16:16:31 preventing reuse of layout parts? Oct 06 16:16:31 erm Oct 06 16:16:33 no Oct 06 16:16:37 the opposite Oct 06 16:16:38 explain Oct 06 16:16:50 s73v3r: hi hi Oct 06 16:17:14 it generates a java file to back the layout sure, but how does that prevent reuse of layout parts? Oct 06 16:17:22 Napalm: seems like ButterKnife should be a much better solution for this Oct 06 16:17:23 just have a layout file and use Oct 06 16:17:27 lool Oct 06 16:17:34 ButterKnife is the same Oct 06 16:17:35 oh myyy Oct 06 16:17:37 its compile time Oct 06 16:17:42 generating code Oct 06 16:17:52 BK does the bind on the java level Oct 06 16:17:59 yes it does Oct 06 16:18:05 and thats exactly what you want Oct 06 16:18:12 data binding makes the xml tightly coupled with a specific java class Oct 06 16:18:17 I'm confused Oct 06 16:18:18 thepoosh: what are you concerned about? Oct 06 16:18:31 you can use those layouts still as normal layout files Oct 06 16:18:32 nothing changes Oct 06 16:18:36 * g00s still using findViewById :D Oct 06 16:18:44 g00s: same here Oct 06 16:18:49 Why? Oct 06 16:18:57 because company code and lack of time Oct 06 16:18:58 i don’t want to add a dependency for that Oct 06 16:19:07 I see Oct 06 16:19:10 just use databinding Oct 06 16:19:15 and you don't ever have to findViewById Oct 06 16:19:16 dependency for what? Oct 06 16:19:17 i didn't like the .. your stuff thing Oct 06 16:19:25 s73v3r: its not a library Oct 06 16:19:32 butterknife? Oct 06 16:19:37 having to put it in is dumb, though Oct 06 16:19:41 oh, im talking about data-binding Oct 06 16:19:50 Napalm: you are making a 1:1 between xml and java while when using BK it's a 1:n of xml to java Oct 06 16:19:53 no? Oct 06 16:20:00 what? Oct 06 16:20:07 that is my concern Oct 06 16:20:16 i still dont follow what you mean? Oct 06 16:20:21 thepoosh, databinding lets you simply create a java file that represents the xml, that's all Oct 06 16:20:27 you don't actually have to do "binding" in xml Oct 06 16:20:38 Napalm i think what thepoosh means is that the xml references specific class so its harder to reuse Oct 06 16:20:44 if you use that anyhow Oct 06 16:20:47 you don't have to use databinding that way Oct 06 16:20:48 * thepoosh agrees Oct 06 16:20:48 it doesnt Oct 06 16:20:58 you can use databinding to give you type-safe viewholders Oct 06 16:21:24 and you never have to findViewById again Oct 06 16:22:20 g00s: you can just use interfaces, i dont see a problem with reuse Oct 06 16:23:27 so basically databinding is the retrofit of layouts? Oct 06 16:23:58 thepoosh: i suppose you can call it that Oct 06 16:24:56 thepoosh these were pretty good https://medium.com/@georgemount007 Oct 06 16:25:10 start at the bottom, i was going to first use it just to remove findViewById Oct 06 16:25:19 then he builds up in each blog Oct 06 16:26:03 the jun 19 one Oct 06 16:28:25 * thepoosh is reading Oct 06 16:29:29 SimonVT if i use this ".observeOn(AndroidSchedulers.mainThread())" callback are in main thread, right? Oct 06 16:30:50 xan_IT: https://github.com/ReactiveX/RxAndroid#observing-on-the-main-thread Oct 06 16:32:40 thepoosh i need a callack in background using retrofit2 Oct 06 16:32:53 and? Oct 06 16:34:43 Sure, that sounds like something that would happen on the main thread Oct 06 16:35:42 thepoosh SimonVT i don't find any example of retrofit2+RxJava to have a callback in background Oct 06 16:36:08 xan_IT: why not just use execute instead of enqueue? Oct 06 16:36:22 thepoosh in asyncTask? Oct 06 16:36:25 The normal rxjava ways don't work? Oct 06 16:36:51 SimonVT any example has callback in mainthread Oct 06 16:37:50 Guess you're screwed then Oct 06 16:40:02 SimonVT each example as AndroidSchedulers.mainThread where are alternatives? Oct 06 16:40:45 One of the many other schedulers Oct 06 16:41:15 Any rxjava tutorial should cover this Oct 06 16:41:37 xan_IT: mostly just read the link I sent Oct 06 16:41:41 which should have that Oct 06 16:42:20 thepoosh "Looper backgroundLooper = // ..." Oct 06 16:45:07 Hey Guys, is it allowed to ask short questions in this channel? Oct 06 16:45:28 HalloIchBins: what aches you? Oct 06 16:45:55 As long as they are on topic Oct 06 16:46:48 HallolchBins: No. You may only ask long, winding, ancillarily connected questions in this channel Oct 06 16:47:36 * g00s suspects HalloIchBins regrets this already Oct 06 16:47:52 lol Oct 06 16:48:18 No haha, I am just writing it down in a hopefuly understandable text :D Oct 06 16:48:32 just fire away, what's the issue? Oct 06 16:49:51 Im pretty new with android dev so just the usual I don't really know what I am looking for beginner stuff. Oct 06 16:49:58 ok Oct 06 16:50:03 you're not the only one Oct 06 16:50:09 hint hint g00s the n00b Oct 06 16:50:51 check out developer.android.com. The Android Developer Udacity course is something we’ve heard good things about, and the Big Nerd Ranch book is good too Oct 06 16:51:05 we really do need to get that bot Oct 06 16:51:13 which? Oct 06 16:51:29 the one that parrots the beginner resources when someone asks about them Oct 06 16:52:01 atm I am searching for docu about dynamic fragments, e.g. one activity with one framelayout and in this layout I want to add different instances of a fragment after on another Oct 06 16:52:17 s73v3r wouldn't we just hook up Google Assistant to IRC ? Oct 06 16:52:22 just got to do something that replies with some sort of https://developer.android.com/index.html#q=[line] Oct 06 16:52:48 g00s: meh, it's all fun and giggles until it uses a utf-16 emoji Oct 06 16:52:52 HallolchBins: That should just be in the fragment article on d.android.com Oct 06 16:53:38 * g00s feels pity for any noob learning ins and outs of fragments Oct 06 16:55:06 g00s: I was so afraid of them I delayed trying to grasp it for over a year Oct 06 16:55:52 lol thats awesome procrastination thepoosh Oct 06 16:55:58 yeah :D from what a grasped I think they are pretty powerful Oct 06 16:56:09 meh Oct 06 16:56:10 that didn't work out too well for me Oct 06 16:56:20 HalloIchBins: I'm not a fan of them. Oct 06 16:56:25 i feel like that procrastination is holding me back Oct 06 16:56:36 I think I cant get around them bc I'm trying to use Navigation Drawer Activtiy Oct 06 16:56:41 HalloIchBins: they have some issues Oct 06 16:57:00 https://medium.com/square-corner-blog/advocating-against-android-fragments-81fd0b462c97#.gbe4j6tem Oct 06 16:57:08 it is possible to have a NavDrawer to activities, but it’s kinda ugly Oct 06 16:57:56 HalloIchBins this is probably the easies tut on hooking that up https://guides.codepath.com/android/Fragment-Navigation-Drawer Oct 06 16:58:01 yeah I guess so, you have to reload the drawer in every activity i guesss Oct 06 16:58:10 g00s: just read through that medium post Oct 06 16:58:23 was intriguing Oct 06 17:01:12 how do you make modern uis without fragments oO sounds like a lot of layouting black-magic Oct 06 17:02:38 HalloIchBins: custom views, I use fragments and find it to be mostly easy Oct 06 17:02:43 but the issues are real Oct 06 17:02:57 hello everyone i have a question Oct 06 17:03:13 torak: hi, what seems to be the issue? Oct 06 17:03:28 thepoosh: http://i.imgur.com/b6JO68D.png Oct 06 17:03:57 torak: what does "this" mean in a static method?! Oct 06 17:04:06 I want to return the value but i cant acces the answer value within inner class if i dont declare it final. But when i declare it final i wont be able to change its value Oct 06 17:04:16 and why are you returning a value in a void method? Oct 06 17:04:20 Also i cant return value within the innerclass Oct 06 17:04:44 thepoosh: I want to return value to isUserDeleted function. Oct 06 17:04:53 You can't have a method both do its work async and return a value Oct 06 17:04:54 that is not how java works Oct 06 17:05:02 ^^^ Oct 06 17:05:08 Either do everyone synchronously and return the value, or pass a callback interface Oct 06 17:05:35 hmm Oct 06 17:06:28 Is there any way to do it like this? http://i.imgur.com/xycHALa.png Oct 06 17:06:44 Nope Oct 06 17:06:58 That's bad. Oct 06 17:06:59 this code make no sense I'm sorry Oct 06 17:07:14 isn't Parse dead? Oct 06 17:07:25 yes but i am running my own server. Oct 06 17:07:46 why is this a static method? Oct 06 17:08:06 thepoosh: to be able to call from other classes? Oct 06 17:08:18 From another activity Oct 06 17:08:26 is there a way to run Parse methods synchronously? Oct 06 17:08:44 SimonVT after 1 hour on google i understand that best way to do what i need is to use asyncTask...... rx sucks Oct 06 17:08:48 :D Oct 06 17:08:54 thepoosh: I don't know i am using this since i learned it. Oct 06 17:09:26 Nope Oct 06 17:09:53 xan_IT: it's probably your definition of the problem you're trying to solve Oct 06 17:10:17 thepoosh: documantation uses this thats why. And i think using synchronous method cause app to stop responding until it got the response from server. Oct 06 17:10:41 thepoosh: i read something like this i think. I am not sure. Oct 06 17:10:43 there are about a million different github projects Oct 06 17:11:02 torak: you'll need to call a different method from the callback Oct 06 17:11:02 I made a library that has a provider. Turns out, if two apps use the library, they won't be able to be installed side-by-side because of conflicting authorities Oct 06 17:11:17 or create the callback in the calling code and set it for the query Oct 06 17:11:25 this is my situation: i need 3 steps Oct 06 17:11:27 1 background remote call (using retrofit?) Oct 06 17:11:29 2 local elaboration in background thead Oct 06 17:11:31 3 callback in uithread after 1 and 2 Oct 06 17:11:35 explodes: yeah, conflicting providers are a bitch Oct 06 17:11:41 to do this with rx is very hard Oct 06 17:11:57 explodes: I'm sure there is something you can do to get some sort of BuildConfig Oct 06 17:12:05 or configuration file Oct 06 17:12:13 like the Firebase configuration files Oct 06 17:12:22 Weak. Do you have an example? Oct 06 17:12:36 Well, I guess I can explore firebase Oct 06 17:13:06 thepoosh: i think pasting it inside my login activity and put the other code inside that if would be easier. I will use this only there. I was just trying to make my code cleaner. Oct 06 17:13:17 you can make the implementors do something like in the facebook SDK Oct 06 17:13:22 for the file provider Oct 06 17:13:35 thepoosh the question is: i don't understood RX or in this situation asyncTask is real much simple? Oct 06 17:13:38 torak: nope, just pass the callback to the method Oct 06 17:13:38 ok let me check that out Oct 06 17:14:33 explodes: https://github.com/facebook/facebook-android-sdk/blob/master/facebook/src/main/java/com/facebook/FacebookContentProvider.java Oct 06 17:15:11 so after checking your links I guess I missexplained my problem. Oct 06 17:16:53 hello Oct 06 17:16:59 hi X-byte Oct 06 17:17:14 hi thepoosh sup Oct 06 17:17:20 I have a with an ID, say content_main. I now want to add instaces of a fragment under each other in this LinearLayout. The height of this fragment is from height wrap_content Oct 06 17:17:21 meh Oct 06 17:17:50 meh, sounds like a sheep ;p Oct 06 17:18:04 HalloIchBins: are you sure fragments are what you want? Oct 06 17:18:15 if i add one fragment everything is ok. every new added fragment just lays over oneantoher Oct 06 17:18:40 HalloIchBins: try using a recycler or viewpager Oct 06 17:19:48 thanks i am looking into them. i thought fragment is the tool to use, it is one task done with data n-times and then displayed in each segment/fragment Oct 06 17:20:04 kill the other layouts and create a new one Oct 06 17:22:50 Uh oh, another CommonsGuy post. Oct 06 17:22:57 What is wrong now. Oct 06 17:24:58 how so, create the component in your own class and own it Oct 06 17:25:15 rather than drawing your app Oct 06 17:25:45 saves alot of memory losses and issues Oct 06 17:26:10 thepoosh: awesome. thanks. reading meta-data from the manifest is how i'm gonna handle it Oct 06 17:26:30 yay! Oct 06 17:26:48 nngh Oct 06 17:27:27 another satisfied customer thepoosh Oct 06 17:27:40 thepoosh: thanks a lot - cardview was what i needed. argh it is so depressing learning a new framework. you cant seem to find the most simple things if you dont know what to search for Oct 06 17:29:18 no worries, it's worth it after a few years Oct 06 17:31:46 how long do you work with android? Oct 06 17:48:23 "In Split-Screen, Your Orientation Flips" Oct 06 17:48:30 i just can't get excited about this ... Oct 06 17:51:07 hey when in android studio and you type TODO it changes the color of the comment. what is this called bc i would like to google it so I can make custom comment markers? Oct 06 17:52:49 file -> settings -> editor -> TODO Oct 06 17:54:40 so nice ... this changes everything Oct 06 17:54:45 anybody with same problem "Not all execution paths return a value" http://stackoverflow.com/questions/29045372/gradle-warning-missing-groovy-return-statement Oct 06 17:54:54 using suggested "solution"? Oct 06 18:00:31 I've tested the suggested solution, without noticing any side-effects. Leaving it without the "solution" isn't really a problem either though, since this is just a warning in a build-script. Oct 06 18:02:48 Thorbear, ok - thank you Oct 06 18:40:53 Are all static variables and classes stored in the memory while app is running or just when you start an activity or make a call for that class> Oct 06 18:40:54 ? Oct 06 18:41:38 Id guess when the app is running Oct 06 18:41:41 Why? Oct 06 18:42:19 anything in application certainly. things that are local to an activity probably shouldn't be instantiated until that activity is the first time; their lifetime after that is pretty variable depending on if android kills you or just backgrounds your activity Oct 06 18:42:41 drose379: than omg. I have too much static function because I want to use them at other classes. I think i need to create a constructor than use the fucntions via that. That would be more efficient. Oct 06 18:43:31 do you actually observe a problem? Oct 06 18:43:48 s73v3r: nope but i want to do my best Oct 06 18:43:49 if not, then it might not be worth it Oct 06 18:44:03 doing your best would be actually shipping Oct 06 18:44:29 you can go down rabbit holes for months in pursuit of “best”, and not have anything to show for it Oct 06 18:45:00 s73v3r: yes you are right Oct 06 18:58:42 torak: Classes are class-loaded lazily, and static fields are initialized lazily. This stuff won't happen until right before it's referenced. Oct 06 19:00:36 TacticalJoke: How a reyou? Oct 06 19:00:40 are you* Oct 06 19:00:51 drose379: Hey! Not too bad. Oct 06 19:00:57 What have you been up to? Oct 06 19:00:59 I thought you'd disappeared, drose379. Oct 06 19:01:05 Same with you haha Oct 06 19:01:22 Same old crazy stuff. Family drama, neighbour drama, life drama. Oct 06 19:01:32 Reddit client? Oct 06 19:02:01 Yah. Oct 06 19:02:09 Nice nice Oct 06 19:02:13 That's drama-free, though. Oct 06 19:02:17 Good! Oct 06 19:02:22 I'm thinking of starting a new project Oct 06 19:02:34 do it Oct 06 19:02:39 give in to your desires Oct 06 19:02:50 Lol Oct 06 19:02:53 Not sure what yet though Oct 06 19:02:56 Are you the next Matias Duarte yet, drose379? Oct 06 19:02:57 oh Oct 06 19:03:03 Matías* Oct 06 19:03:04 I see how that could be a problem then Oct 06 19:03:11 Whos that TacticalJoke Oct 06 19:03:26 Oh Oct 06 19:03:28 I see Oct 06 19:03:31 No, not even close Oct 06 19:03:35 Everyone loves him on /r/Android. Oct 06 19:04:10 Thinking about re-writing my animal adoption app.. Oct 06 19:04:28 for what purpose? Oct 06 19:04:36 I've learned a lot since I released it Oct 06 19:04:40 Can make it a lot better Oct 06 19:04:49 like a full rewrite or just a refactoring? Oct 06 19:04:54 Full Oct 06 19:04:55 From scratch Oct 06 19:05:00 oh wow Oct 06 19:05:03 Step 1: Write. Step 2: Rewrite. Step 3: ??? Oct 06 19:05:12 Step 4: Profit (?) Oct 06 19:05:18 Heres the issue Oct 06 19:05:27 :D Oct 06 19:05:32 The API I am using that my app is based off of, does not allow ads to be placed anywhere near the data Oct 06 19:05:35 I think sometimes a rewrite makes sense. Oct 06 19:05:43 yeah Oct 06 19:05:44 I was thinking about placing an ad with every like 30 search results, but now I cant Oct 06 19:05:47 No profit Oct 06 19:05:55 no profit is okay too Oct 06 19:06:08 the app I'm currently working on will be released for free Oct 06 19:06:26 What are you working on grekkos Oct 06 19:06:35 japanese dictionary / study tool Oct 06 19:06:36 I mmostly want to just get developing again, school has been taking up all my time Oct 06 19:06:41 Sound cool grekkos Oct 06 19:06:54 thanks Oct 06 19:06:57 drose379: Do you need an app idea? Oct 06 19:07:02 I don't have one; just wondering though. Oct 06 19:07:12 Umm, I'm always open to them :) Oct 06 19:07:26 if you do I know a lot of people who have "great ideas for an app" Oct 06 19:07:42 Oh yeah? Where can I find them Oct 06 19:08:01 haha just anywhere but I don't think they are such great ideas Oct 06 19:08:03 Some people would app-reciate that. Oct 06 19:08:09 heh Oct 06 19:08:13 Lol Oct 06 19:08:18 living up to the name Oct 06 19:08:21 I really do want to re-write mine though Oct 06 19:08:41 is it architectual problems or ? Oct 06 19:08:46 drose379 the pet finder one ? Oct 06 19:08:49 Yeah Oct 06 19:09:11 hm Oct 06 19:09:36 I also kind of want to sharpen my web dev skills Oct 06 19:09:39 Maybe I'll make a web version Oct 06 19:10:26 well in that case, somebody else has all the data Oct 06 19:10:31 An idea for an app (an old-style app): a bot for this channel. ;o Oct 06 19:10:46 What you mean g00s Oct 06 19:10:50 Though I guess it's less of an app and more of a system. Oct 06 19:11:03 www.petfinder.com Oct 06 19:11:13 Yes they provide the api g00s Oct 06 19:11:43 Maybe a bot would qualify as some kind of daemon. Oct 06 19:11:51 yeah I wanted to write IRC bots for a while, seemed like a fun idea Oct 06 19:12:12 What are they written in? I'd def be down to do that Oct 06 19:12:12 Writing bots is so fun. I made one for Yahoo! Chat back in the day. Oct 06 19:12:19 We shud do it Oct 06 19:12:25 The ##java one is in Kotlin now, I think. Oct 06 19:12:25 What language are they written in Oct 06 19:12:28 Hmm Oct 06 19:12:30 Was in Java. Oct 06 19:12:35 Thats kinda funny actually Oct 06 19:12:50 You could use any language, though. Oct 06 19:12:52 So if its written in java, then someone runs a JVM on their server and hosts it there? Oct 06 19:13:00 yeah it could be in any language Oct 06 19:13:01 Yeah. Oct 06 19:13:02 I have my kernel 3.4.65 and i need a newer one for cm 13 else it doesnt boot (binder and selinux problems), how can i do it? https://github.com/Packmaan7144/kernel_nvidia_s8515 Oct 06 19:13:09 How do you get it to join the channel Oct 06 19:13:10 I know there's a java library available for it Oct 06 19:13:15 Reujea0__ see topic please Oct 06 19:13:38 drose379: either you write it all yourself and learn how IRC works completely or you find some library with code that somebody else has written to handle that for you Oct 06 19:13:45 drose379: They use the IRC protocol and TCP sockets. Oct 06 19:13:50 yeah Oct 06 19:13:57 IRC is fairly simple. Oct 06 19:14:02 But, yeah, plenty of libraries. Oct 06 19:14:06 Might try it Oct 06 19:14:13 It's definitely fun, drose379. Oct 06 19:14:16 Can someone link me a good IRC java lib Oct 06 19:14:49 https://github.com/TheLQ/pircbotx that's the first one on google Oct 06 19:14:50 haha Oct 06 19:14:55 i don't know if it's good or not Oct 06 19:15:14 that's part of the journey I guess, implement a few simple features using each one and see what you like the best Oct 06 19:15:24 just gotta put some research in Oct 06 19:15:48 Thatd be sweet, then people here could interact with it and I could see it in action Oct 06 19:15:54 You'd need permission to bring the bot into some channel, though. Here, for example, it may not be allowed. Oct 06 19:15:59 Unless it was your channel. Oct 06 19:16:03 :( Oct 06 19:16:08 yeah you'd wanna test in your own private channel first Oct 06 19:16:16 How do I register my own channel Oct 06 19:16:22 you don't even need to register it Oct 06 19:16:22 Maybe the overlords would allow it, eventually, though. Oct 06 19:16:23 just join it Oct 06 19:16:31 Ok cool Oct 06 19:16:43 Wonder how to spin up a JVM on my droplet tho Oct 06 19:16:46 for sure you don't want something that'll suddenly start spamming the chat in an infinite loop because of a missed semicolon or something Oct 06 19:16:54 Lol yeah Oct 06 19:16:57 My Yahoo! bot wasn't even allowed, but of course I still did it. It was online for years. Oct 06 19:16:59 just install openjdk Oct 06 19:17:07 Nobody respected Yahoo! Chat rules. Oct 06 19:17:07 Will do Oct 06 19:17:29 I wrote games for aol chat a long time ago Oct 06 19:17:36 Ill put this on github so y'all can contribute Oct 06 19:17:37 that was fun Oct 06 19:17:42 There was a battle between developers and Yahoo! staff. They kept trying to prevent people from using their protocol, but they were incompetent. Oct 06 19:18:06 i'm pretty sure libpurple still supports yahoo doesn't it? Oct 06 19:18:18 I think Yahoo! Chat is dead now. :s Oct 06 19:18:22 oh Oct 06 19:18:28 maybe Oct 06 19:18:34 i could be thinking of something else then Oct 06 19:18:38 yahoo been ded since forever Oct 06 19:18:41 What kind of games ran over AOL? Oct 06 19:18:43 icq mabye? Oct 06 19:18:48 I remember my bot having hangman built in. Oct 06 19:18:52 there were a lot Oct 06 19:18:54 Brb guys Oct 06 19:18:59 we had fighting games Oct 06 19:19:06 people in the chat would battle each other Oct 06 19:19:12 Neat. Oct 06 19:19:14 think we call them "battlers" Oct 06 19:19:16 yeah Oct 06 19:19:31 the client would be somewhat graphical and show HP bars and things Oct 06 19:19:49 That's cool. I probably should've added that to mine. Oct 06 19:20:26 yeah Oct 06 19:20:27 I remember taking programming so seriously back then. I would spend all day thinking of nothing else. Oct 06 19:20:32 some of them were like text based adventure games too Oct 06 19:20:36 Youthful energy. Oct 06 19:20:47 Nowadays I see the programming world as a complete mess. Oct 06 19:20:54 haha Oct 06 19:21:15 there's definitely a huge difference in expected vs actual in the programming field Oct 06 19:21:54 hah Oct 06 19:22:07 wow I actually found a website that's still hosting some of these games Oct 06 19:22:42 "Dragon Ball Z: No Limits Fighting" - "Author: Drag Hun" Oct 06 19:23:00 which reminds me I think I'm facebook friends with that guy Oct 06 19:23:41 Geocities. Can't believe that's still alive. Oct 06 19:23:46 yeah Oct 06 19:23:46 Wait, I can't read. Oct 06 19:23:50 no Oct 06 19:23:52 it got me too Oct 06 19:23:56 haha Oct 06 19:24:03 eocities or something Oct 06 19:24:07 :D Oct 06 19:24:15 TacticalJoke look for dj mobli page on geocities Oct 06 19:25:20 if I'm working on a hybrid android app (webview + HTML5) and I want to make that webview hit a different url depending on environment like local dev, staging, production would you consider that a buildType or a flavor? Oct 06 19:25:52 app is essentially the same so I don't think flavor would be appropriate here, does that seem right? Oct 06 19:27:30 grekkos build flavors? Oct 06 19:29:38 Afzal: so you're saying a flavor would be more fitting? Oct 06 19:30:39 grekkos, http://tools.android.com/tech-docs/new-build-system/build-system-concepts Oct 06 19:31:11 hmm funny it auto redirects after some relative short time + scroll to https://developer.android.com/studio/build/index.html Oct 06 19:34:16 to partially answer, you should stick to distinguishing debug from release (buildTypes) and alpha, beta (staging?), prod to flavor Oct 06 19:34:40 err, from prod (flavor)* Oct 06 19:35:09 ah okay Oct 06 19:36:17 that way I can have a debug and release build of any one of those Oct 06 19:36:41 yes, that would maybe correspond to what you name "local dev" Oct 06 19:36:57 for debug, so you can "debug" all flavors Oct 06 19:37:28 and when you're satisfied, you simply switch to release, build (and commit) and ship Oct 06 19:38:42 cool Oct 06 19:39:21 what's the best way to change the app name as it appears on the device? (the launcher name) do I just create separate strings files per flavor? Oct 06 19:41:57 grekkos: I think the `resName` thing is the best way. Oct 06 19:42:17 Hi Oct 06 19:42:38 I mean `resValue`. Oct 06 19:42:41 Anyone knows how can I enable NDK-Build output in Android Studio 2.2? Oct 06 19:43:26 In Eclipse, there was CDT Build Console in the regular console that outputted what files are currently being built and what warnings/errors are being generated, but by default Studio seems to only show the errors after the build, which can be pretty long Oct 06 19:44:26 TacticalJoke: ah okay I think I know what you're talking about Oct 06 19:49:38 this cordova thing is screwing up my day, it created some separate flavors already for x86 and arm7, and I'm not sure exactly how to mix those flavors with the new ones I want to create... Oct 06 19:52:58 is there some simple way to determine if a View object is actually visible on the device screen? Oct 06 19:53:02 even better, how much of it? Oct 06 19:55:23 you can see if it’s attached to window, but that’s about it Oct 06 20:03:33 suckage Oct 06 20:04:11 I want to do something like VisibilityMonitor(VisibilityListener listener, View view) and have the listener called whenever the view is visible/hidden from the physical screen Oct 06 20:04:23 but yeah, seemingly not possible Oct 06 20:04:41 well, what’s the end goal that you’re trying to accomplish? Oct 06 20:05:48 ad impression counting Oct 06 20:06:11 don’t most libraries already do that? Oct 06 20:06:17 supposedly admob tracks impressions now when 1px of the ad is visible on the screen Oct 06 20:06:17 ad libraries, anyway? Oct 06 20:06:33 most of those SDKs are open source; you could see how they do it Oct 06 20:06:40 sure, but someone had to create those right :-) Oct 06 20:06:55 so look at the open source ones Oct 06 20:07:10 although for ads, I’d be willing to bet money that the view is a WebView Oct 06 20:07:19 and they’re tracking impressions on the server Oct 06 20:08:49 there's native view now Oct 06 20:09:04 where you can just build out a containing NativeAdView with whatever you like pretty much Oct 06 20:09:21 https://firebase.google.com/docs/admob/android/native-advanced Oct 06 20:09:44 https://github.com/googleads Oct 06 20:10:07 oh nice, I wasn't aware their sdk was open Oct 06 20:10:19 the part that runs on the device is, I think Oct 06 20:34:00 hey all, trying to figure out how to use a combination of DefaultUIUtils and ItemTouchHelper to implement a sort of swipe to dismiss functionality, similar to what yu might see in Inbox Oct 06 20:34:24 at present, i have it mostly working, when through the iterations of drawing a solid background, but decided I would really like some text Oct 06 20:35:00 This is where I presently am, what i am looking to do is simply have the work Accept on a greenish background, should the user swipe to the right Oct 06 20:35:12 and a blueish one with archive if swiping from the right Oct 06 20:35:33 one thing i am struggling with is how to move only the top layer so this background is static until the swipe action is complete Oct 06 20:38:52 what's the proper method to override to be notified when a FragmentStatePagerAdapter has changed pages? Oct 06 20:45:55 the adapter doesn't change pages Oct 06 20:45:57 the viewpager does Oct 06 20:47:10 pfn: ah thank you! i see a good way there. Oct 06 20:47:46 ViewPager.OnPageChangeListener Oct 06 20:47:50 yup Oct 06 20:48:48 really wish i could find the Google inbox source code, or any app that allowed swiping of list items with a message/custom view behind it Oct 06 20:49:49 this? http://nemanjakovacevic.net/blog/english/2016/01/12/recyclerview-swipe-to-delete-no-3rd-party-lib-necessary/ Oct 06 20:51:02 Ashiren: yes, but with text. I just found another SO post that might work. If it doesnt, ill look at yours Oct 06 20:51:37 https://github.com/pfn/keepshare/blob/master/src/main/scala/com/hanhuy/android/keepshare/BrowseActivity.scala#L373-L449 Oct 06 20:51:37 ive seen numerous examples using icons and bg color, but i would like text. And, apart from drawing it programatically, i am searching for how to do this easily Oct 06 20:51:39 I did that here Oct 06 20:51:45 drawing text is trivial Oct 06 20:52:15 you just make your view a textview Oct 06 20:52:21 and swipe away Oct 06 20:52:24 pfn: probably. My issue, is determining the SP value for the current device Oct 06 20:52:30 pfn: that would be what i want :) Oct 06 20:52:31 huh Oct 06 20:52:35 huh Oct 06 20:52:35 there is no "sp" value Oct 06 20:53:20 hrmm. I guess I am used to using sps for my text sizes on android. If I do myPainter.setTextSize(20) Oct 06 20:53:21 sp is like dp with text scaling, default its mostly sp == dp Oct 06 20:53:39 why are you painting manually Oct 06 20:53:58 as i said, that appeared to be the only way to add text behind the swipe Oct 06 20:54:07 setTextSize(TypedValue.COMPLEX_UNIT_SP, 18); Oct 06 20:54:11 but i was searching cause i doubt that is the case Oct 06 20:54:24 and well, do that with TextView Oct 06 20:54:35 Ashiren: agreed, using a TextView would be ideal Oct 06 20:59:48 appreciate the help guys, not quite what i am looking for though Oct 06 20:59:51 thanks though Oct 06 21:03:00 something is wrong with my project. even in AS 2.2 - when editing my preferences.xml file, it will not autocomplete strings. But if I create a new file it works. W T F Oct 06 21:12:54 well it kind of works, but the layer underneath seems to follow the top layer as its getting swiped Oct 06 21:13:16 ahh that got it :) Oct 06 21:17:18 http://imgur.com/a/HvWpK hhmmppffff Oct 06 21:24:28 I actually got this working Oct 06 21:24:53 I feel like I'm missing potential use cases though... Oct 06 21:24:56 for posterity’s sake, maybe expand a bit on what “this” is Oct 06 21:26:23 https://gist.github.com/bfrog/4e43c055a34eacaa1d4c44d4f565c2c4 Oct 06 21:26:27 a VisibiltyMonitor for a View Oct 06 21:26:33 I have a Firebase DatabaseReference. How can I check if a child exist? Oct 06 21:28:20 anyhow, works well enough seemingly, can sort out the problems as they pop up Oct 06 21:34:51 Are there still problems with ADB and IntelliJ/AS on macOS Sierra? Oct 06 21:35:37 i meant to bookmark that bug Oct 06 21:35:44 How can I disable this tracing output from adb shell in terminal Oct 06 21:35:57 such like adb I 2849 6025444 adb_trace.cpp:169] Android Debug Bridge version 1.0.36 Oct 06 21:35:57 adb I 2849 6025444 adb_trace.cpp:169] Revision 19394af606f6-android Oct 06 21:35:57 adb I 2849 6025444 adb_trace.cpp:169] Oct 06 21:36:11 surf2b1: apparently the beta channel has the fix Oct 06 21:36:34 s73v3r: thanks. source? Oct 06 21:36:45 https://code.google.com/p/android/issues/detail?id=219085#c48 Oct 06 21:41:47 s73v3r huh i don't see a beta release Oct 06 21:42:36 the very last comment on the bug I linked said it was released Oct 06 21:44:00 or rather, it was released to beta. i guess the beta build isn’t built yet Oct 06 21:48:03 weird i did it again and platform tools 24.0.4 shows up Oct 06 21:48:16 i wish there was a way to decouple AS update channel from SDk tools update channel Oct 06 21:58:43 In firebase, I have some values that needs to be modified by the app before the user is logged in. How can that be done without allowing everybody to alter them? Oct 06 22:00:04 like, per user values? Oct 06 22:00:26 No, system-wide values Oct 06 22:00:52 I'm keeping a list of already-taken usernames Oct 06 22:01:05 shouldn’t that be a query? Oct 06 22:01:07 I'm trying to make anonymous authentication but with username Oct 06 22:01:23 firebase handles anonymous auth for you Oct 06 22:01:46 hi there, i've got a weird problem here. i have a transparent activity with an AlertDialog and noHistory="true". when i am in that activity and hit the square button (recent list), that activity appears into recent list, but it is blank. it vanishes when i rotate the phone. if i tap on it in the recent list, android says: "D/ActivityManager: Could not find task for id: 820" Oct 06 22:02:12 any idea what's going on? Oct 06 22:02:12 Kake_Fisk: why don't you use the Firebase authentication sub-system? Oct 06 22:02:18 Ah, I forgot to say that one anonymous user can have many usernames! Oct 06 22:02:30 So I can't let it handle everything Oct 06 22:02:32 that doesn’t make sense Oct 06 22:03:30 I could maybe change it so there is one authentication per username, but that wasn't what I originally planned Oct 06 22:03:54 i guess I don’t understand why there would be many usernames per anonymous user Oct 06 22:04:29 Say you have some kind of IRC chat thing. And each user can have maybe 10 different usernames. Oct 06 22:04:45 Which are locked to the authentication Oct 06 22:04:52 ahh Oct 06 22:05:01 usernames would be a separate thing from the authentication, though Oct 06 22:05:06 yeah Oct 06 22:05:11 each user would have a “usernames” table or something Oct 06 22:05:54 where you associate the identifiers (calling it a username might get confusing) a user has, and what chat rooms those identifiers would have Oct 06 22:05:57 But I also need to identify the users with their usernames. And usernames are unique Oct 06 22:06:24 unique per room, or unique throughout the entire thing Oct 06 22:06:33 Throughout the entire thing Oct 06 22:06:57 seems like you could just query for identifiers in use Oct 06 22:07:25 I thought Firebase wanted a flat database design Oct 06 22:08:12 well, how are you associating users and rooms? Oct 06 22:08:50 I haven't thought about that yet. I was thinking about starting with private messages Oct 06 22:09:04 Kake_Fisk: how do you associate nicknames to an anonymous login? Next time the users logs in it will have a different user id... Oct 06 22:09:27 Firebase can connect an anonymous user with a created user Oct 06 22:09:28 Can't anonymous logins persist over multiple sessions? Oct 06 22:09:58 i’m not sure Oct 06 22:10:17 That's not really that important though Oct 06 22:10:20 I never used anonymous logins myself but I don't understand how it could Oct 06 22:10:40 Google did a dev byte video on how to do it Oct 06 22:11:08 you allow anonymous access, and then associate it with an actual account when they need to create one Oct 06 22:11:20 Mavrik there by any chance? when i use Intent.ACTION_OPEN_DOCUMENT_TREE, the system chooser is basically blank, doesn't show any of my google drive stuff, etc Oct 06 22:11:44 Mavrik just says "no items" Oct 06 22:12:05 s73v3r: I think that might be a better way to do it Oct 06 22:12:13 I think that should work, thanks Oct 06 22:13:07 man Android studio is messing the hell out of my brain right now Oct 06 22:13:23 there's a library, my library. The exploded-aar looks correct and updated and yet the APK contains the old version!!!! >_< Oct 06 22:13:28 what in the ****** Oct 06 22:14:07 Afzal heizen-build ! Oct 06 22:14:15 heizen-build? Oct 06 22:14:31 g00s hmm? Oct 06 22:14:55 Afzal https://en.wikipedia.org/wiki/Heisenbug Oct 06 22:14:59 i think the only thing i haven't tried is restarting AS Oct 06 22:15:18 Afzal you might have to reinstall your OS Oct 06 22:15:21 :) Oct 06 22:15:33 <_< one version, cached for life Oct 06 22:15:37 build - clean project doesn't help? Oct 06 22:15:53 i had this once, had to physically remove the files Oct 06 22:17:19 funnily, when i click on the recent button list, the activity's onDestroy() is called Oct 06 22:20:52 squirrel nope. Oct 06 22:20:59 I deleted the library from the local maven folder Oct 06 22:21:19 it'll redownload so let's see Oct 06 22:21:34 I bet this is some incremental thing even though I have instant run set to off Oct 06 22:21:44 s73v3r: sure. At that point you don't have an anonymous account anymore. Oct 06 22:21:44 okay i can replicate what i'm talking about on a clean project Oct 06 22:22:13 aaaaaargh this stupid build cache shit Oct 06 22:22:16 that's probably why Oct 06 22:22:41 just adding android:noHistory="true" to the manifest will destroy the activity but show it in the recent apps list Oct 06 22:23:13 just this one piece of xml leads to visual glitches Oct 06 22:23:44 interesting Oct 06 22:23:45 weird Oct 06 22:25:33 pfn i think the reason why dropbox doesn't support SAF is because it SUCKS Oct 06 22:25:44 nope Oct 06 22:25:54 google drive doesn't support ACTION_OPEN_DOCUMENT_TREE Oct 06 22:26:04 so everybody does what they want - the whole point goes away Oct 06 22:26:17 http://stackoverflow.com/questions/28663778/android-open-document-tree-intent-root-locations Oct 06 22:26:36 this isn’t the first situation in which the intent system was ignored Oct 06 22:26:48 what i'm talking about: https://sq.ax.lt/device-2016-10-07-012514.mp4 Oct 06 22:27:51 christ, all i wanted to do was have a preference that was my default file export path, but no - because of this asshattery, the user will have to navigate to grive each time Oct 06 22:32:57 squirrel what is your onpause like Oct 06 22:33:46 Afzal: this is a video of a bare project Oct 06 22:34:26 (no onPause in the bare project) Oct 06 22:34:26 I know Oct 06 22:34:29 ohhhhh Oct 06 22:34:31 wow Oct 06 22:34:38 just onCreate Oct 06 22:35:00 and noHistory=true? Oct 06 22:35:59 android:noHistory="true" is the only thing i added Oct 06 22:38:24 well yeah then that makes sense Oct 06 22:38:37 it just doesn't make sense that it's being shown in recents at all Oct 06 22:38:43 it shouldn't be showing over there Oct 06 22:39:07 squirrel From the docs "A value of "true" means that the activity will not leave a historical trace. It will not remain in the activity stack for the task, so the user will not be able to return to it. In this case, onActivityResult() is never called if you start another activity for a result from this activity." Oct 06 22:39:53 now there's a framework bug somebody should fix hmmm Oct 06 22:40:23 i can't look up any bug reports for this Oct 06 22:40:33 and i can't be the only one seeing this Oct 06 22:40:37 it's not a bug that you aren't able to come back into the app Oct 06 22:40:43 it's a bug that the app is still showing up in recents Oct 06 22:40:52 yeah Oct 06 22:41:20 most of all it's a bug that android is trying to return to the app Oct 06 22:41:39 yeah, so IF there was something else in that app's activity stack, it would go back to it Oct 06 22:41:44 but there isn't, in your case Oct 06 22:42:20 I wouldn't use noHistory tbh Oct 06 22:42:29 just call finish on that activity myself Oct 06 22:42:55 android:excludeFromRecents will have to suffice Oct 06 22:43:07 sure Oct 06 22:43:09 or both of them? Oct 06 22:43:17 that would work, what's the use case here though? Oct 06 22:43:25 tried both, same glitch Oct 06 22:44:08 oh i'm just showing a dialog for "share..." clicks Oct 06 22:44:46 i see Oct 06 23:44:36 hrm, so a tsunami hit busan korea huh, I wonder what my cruise will do about it... Oct 06 23:47:15 jack shit Oct 07 00:23:01 <_genuser_> leave Oct 07 00:23:23 <_genuser_> heyy people' Oct 07 00:24:32 <_genuser_> so layout weights in linearlayout, status bar on top, list in the middle taking up free space, controls at bottom. Oct 07 00:24:37 <_genuser_> weight best way to do that? Oct 07 00:29:00 Mavrik whelp Oct 07 00:33:10 _genuser_: status bar as in the native status bar? Or do you mean toolbar Oct 07 00:34:33 <_genuser_> orbyt_: sorry, not status bar. I have a TextView header, ListView, LinearLayour (2 buttons) as control buttons at bottom. Oct 07 00:34:41 Is there a way to tell if I'm using any of the classes in support-v4? Oct 07 00:35:00 Affian: Uh..hover over them? Or check imports Oct 07 00:35:05 <_genuser_> So header=wrap_content (height), LinearLayout=wrap_content (height), ListView=take up the rest of the space! Oct 07 00:35:07 Or cntrl click Oct 07 00:35:32 _genuser_: Just post your code Oct 07 00:36:02 orbyt_: Guess I have to just go through the imports in all my classes :( Oct 07 00:36:19 <_genuser_> orbyt_: geez!! Oct 07 00:36:21 <_genuser_> standby Oct 07 00:36:41 geez? Oct 07 00:37:17 <_genuser_> http://dpaste.com/2BK1BD6 Oct 07 00:37:25 <_genuser_> orbyt_: geez part was joke Oct 07 00:37:59 <_genuser_> so right now, I'm doing about weight of 1 on top and bottom bars and 5 on the listview. sort of trial and error. Oct 07 00:39:29 Yea weights are fine Oct 07 00:39:40 You might run into issues with ListView sizing its children Oct 07 00:39:48 tbh you should be using recyclerviews Oct 07 00:40:17 <_genuser_> orbyt_: so for my main task with cardview, etc. I'm using RycyclerView. Oct 07 00:40:30 <_genuser_> this one is a simple list off an ArrayAdapter, I figured ListView is fine. Oct 07 00:40:51 <_genuser_> should I move this also to RecyclerView? What about taking up avaialble height? Oct 07 00:41:13 <_genuser_> weight of like 200 compare to 1 for others, seems fine. I only see in documentation that a higher weight is higher importance. Oct 07 00:41:43 I would, its a simple change. Your current ListView has a weight of 5, which doesnt make much sense. I recommend using a value 0-1 Oct 07 00:42:03 <_genuser_> https://developer.android.com/guide/topics/ui/layout/linear.html Oct 07 00:42:03 eg, .1, .8, .1 Oct 07 00:42:10 <_genuser_> that's where I saw the 1,2, etc. Oct 07 00:42:18 <_genuser_> I also tried 0-1, same results. Oct 07 00:42:36 Yes, because it will auto calculate the weightSum for the parent Oct 07 00:43:01 but you have a .1, then a 5, then another .1, which doesnt make sense Oct 07 00:43:17 <_genuser_> .1, then 5 and "1" Oct 07 00:43:27 <_genuser_> heh, I was in the middle of trying things out when I copied and pasted on dpaste., Oct 07 00:43:53 Also, use a height of 0dp when using weight for height Oct 07 00:43:58 same goes for width Oct 07 00:44:48 <_genuser_> ah, good point. Oct 07 00:46:11 <_genuser_> OK, .1, .8, .1 much better. Oct 07 00:46:13 <_genuser_> thanks for looking. Oct 07 00:49:01 Related to my previous question, how can I tell what classes are within which support library imports. The Android docs aren't very useful Oct 07 00:49:13 I'm trying to work out which support libs I can live without Oct 07 00:49:59 Now that v4 has been broken into smaller chunks Oct 07 00:50:51 probably a silly question, but how do i finish the activity when it no longer becomes visible (back/home pressed), but not when orientation changes? Oct 07 00:52:13 or perhaps i should hope that android will dispose of the activity by itself if no longer needed Oct 07 00:52:45 Once it's backgrounded, yeah, that's pretty much what'll happen eventually if it's not resumed Oct 07 00:53:10 You should probably read up on the Activity lifecycle. Oct 07 00:53:44 There's a dude on youtube with a fairly thick Indian accent that goes by slidenerd who makes some handy videos for that Oct 07 00:54:04 hah yeah i watched like all of his videos Oct 07 00:54:20 Vevz is one sharp cat Oct 07 00:54:27 i guess the lifecycle is something i'll never learn Oct 07 00:54:51 If you can refill a salt shaker without choking on it, you can get this Oct 07 00:55:09 Just takes a little patience Oct 07 00:57:22 just feels wrong leaving a whole activity in memory when i know i'll never need it Oct 07 00:58:20 It will be destroyed when the system determines its proper to do so Oct 07 00:58:34 If you want to finish immediately, call finish() Oct 07 01:00:09 If this isn't a whole lot better tomorrow I'm going tohave to skip the damn meeting Oct 07 01:00:14 !@#$@ mis-tell Oct 07 01:00:58 squirrel: It's not your job to worry about that actually. ART/Dalvik will purge the thing from memory if it needs more RAM freed up for something. Until that point it's actually more efficient to leave it where it is Oct 07 01:01:30 squirrel: There's actually a _start up cost_ for instantating an app from storage into memory Oct 07 01:04:03 squirrel: If you're trying to explicitly clear your application from memory when it's backgrounded, you're actually going to be burning more CPU and battery than if you just left things be. Oct 07 01:04:10 i dunno. android is pretty good at killing apps alright (a bit too good for my taste), but i just don't know how good it is at killing activities Oct 07 01:04:55 It does fine. There's a ton of stuff (savedInstanceState etc etc) for basically hiding the fact that your app was actually purged from RAM hours ago Oct 07 01:05:19 Those little screenshots you see when you're pulling up the task switcher are just that. _Screenshots_. Oct 07 01:05:43 Hi guys, i came here yesterday to ask about timezones and datetimes and I was pointed at https://github.com/JakeWharton/ThreeTenABP Oct 07 01:05:52 i'm just wondering where i can find documentation for it? Oct 07 01:06:12 If someone did their coding right, they each have a little bundle of data with them that will be handed back to the activity if the user attemtps to return to it, so that the activty can come back up as if it never left Oct 07 01:06:30 Dagmar: well i guess i'll have to trust it either way :p Oct 07 01:07:27 squirrel: Just be glad you're not trying to do widgets Oct 07 01:07:40 * squirrel blames other people for putting too much into onCreate Oct 07 01:08:43 what? Oct 07 01:09:50 squirrel: You need to look at this _carefully_ then http://www.javatpoint.com/images/androidimages/Android-Activity-Lifecycle.png Oct 07 01:10:03 ir7466: https://github.com/ThreeTen/threetenbp Oct 07 01:10:58 how does everyone here handle dates in android? Oct 07 01:11:04 with threetenabp Oct 07 01:11:08 Epoch time or gtfo Oct 07 01:11:09 are there other libraries? i've heard of joda but heard bad things too Oct 07 01:11:48 I want to say "I handle dates with raw unfiltered Java 8" but I can't get Jack to work Oct 07 01:12:11 (and also nobody has minsdk 24 lol) Oct 07 01:13:11 String date = "2016-09-24T06:24:01Z"; Oct 07 01:13:23 can i convert that to a human readable time using ThreeTehABP? Oct 07 01:17:07 Dagmar: it's just this thing i'm working on is a share with... dialog thing, and it was creating the dialog in onCreate. which would get stale after a while and display wrong information Oct 07 01:19:28 i think this activity doesn't need onCreate at all Oct 07 01:21:06 hi Oct 07 01:21:19 i have a weird problem.. Oct 07 01:35:15 Hey! does someone know a way to create a simple (text-only) PDF without libraries that must be bought? Oct 07 01:35:33 also, after creating it, send it as an attachment through email Oct 07 01:38:09 @franck__ don't leave us hanging Oct 07 01:56:57 Ignoring the fact that AS throws an error if the support lib versions mismatches your compile level. What actually happens if you compile your app at 23 and the support lib is at v24? Oct 07 01:58:25 In my experience nothing has blown up, but they must enforce it for a reason Oct 07 02:14:11 <_genuser_> getting user input... Oct 07 02:14:27 <_genuser_> alertdialogs with custom layout of EditTExt? Oct 07 02:15:53 org.threeten.bp.format.DateTimeParseException: Text '2016-10-01T14:57:08Z' could not be parsed, unparsed text found at index 10 Oct 07 02:15:58 if I use ThreeTenABP Oct 07 02:16:03 what is wrong with that format? Oct 07 02:16:16 it's classic ISO 8601 (I think) Oct 07 02:43:14 . **** ENDING LOGGING AT Fri Oct 07 02:59:58 2016