**** BEGIN LOGGING AT Fri Nov 25 03:00:00 2016 Nov 25 03:00:29 thank you so much Nov 25 03:00:42 nowadays you still get a callback from them once the tweet is done?? Nov 25 03:05:11 "Posting from Android into Twitter is one of the earliest stages of an Android developer." lol guess i'm still a newb Nov 25 03:06:06 i thought a while ago twitter blocked access to their APIs ... Nov 25 03:06:12 its freaking hard Nov 25 03:06:19 just to get the access token Nov 25 03:06:21 is hell Nov 25 03:06:25 with Oauth2 Nov 25 03:07:49 g00s: I think they just limited third-party clients, but I could be misremembering. Nov 25 03:07:50 g00s: I thought the same. I missed that stage. But I'm actually still a noob Nov 25 03:10:41 j4f-shredder_: Do you use WebView for that? Nov 25 03:11:12 nono Nov 25 03:11:28 I'm logging in with firebase in the end that lets me post on behalf of the user Nov 25 03:11:35 firebase-ui I meant Nov 25 03:11:54 I already logged in, now I 'm seeing how to get the access token Nov 25 03:12:21 I'm a noob as well....Android is overkill for devs Nov 25 03:12:29 lol it is Nov 25 03:12:32 you never know what you are doing when you use 3rd party libraries Nov 25 03:12:48 and they update every 3 weeks Nov 25 03:13:00 I 've been all afternoon dealing with google play services problems Nov 25 03:13:14 What app are you making? Nov 25 03:14:52 I'm making a marketing app Nov 25 03:14:55 TacticalJoke did you see http://www.theverge.com/2016/11/23/13739026/reddit-ceo-steve-huffman-edit-comments Nov 25 03:15:48 g00s: Yeah. I kinda understand his doing it, and I like his self-deprecating manner in his confession, but it is pretty dodgy. Nov 25 03:16:23 I mean his "F*** spez" thing. Nov 25 03:16:46 (The self-deprecating thing.) Nov 25 03:17:22 j4f-shredder_: a spamming app? Nov 25 03:19:29 g00s: Are you feeling any better or just terrible? Nov 25 03:19:39 worse Nov 25 03:23:00 g00s: are you ill? Nov 25 03:25:08 g00s: I was reading an argument on Reddit earlier, about whether or not humans ought to have children, in which someone stated that it's a good thing that they exist because otherwise they wouldn't have been able to form some particular political opinion. As if forming that opinion justified their having to suffer from existence. Nov 25 03:25:53 lol wtf Nov 25 03:26:34 Melatonin, not a spamming app Nov 25 03:26:47 it's meant for good Nov 25 03:26:51 marketing with a purpose Nov 25 03:27:09 Ok Nov 25 03:27:21 I was being cynic. I know you are a good person Nov 25 03:27:55 g00s: I'm torn between being comforted by Benatar's book (in a "someone else gets it" kinda way) and being horrified by it and wishing I'd never read it. Nov 25 03:28:08 I flip between them so much. Nov 25 03:28:23 They should use your definition in marketing textbooks: "What's marketing? Spamming with a purpose" Nov 25 03:29:07 TacticalJoke https://theconversation.com/bioethicist-the-climate-crisis-calls-for-fewer-children-65014 Nov 25 03:30:39 "A valuable philosophical contribution here is the distinction between “making people happy” and “making happy people.” Nov 25 03:31:56 That's a nice summary. Nov 25 03:32:16 Are you tired of living, guys? Nov 25 03:34:11 Melatonina: I see this as less about me and more about potential future humans/whatevers. Nov 25 03:34:30 Though, to answer the question directly, I vary wildly in my response. I think most people do. Nov 25 03:35:44 I'll read that books. Thanks for the involuntary suggestion Nov 25 03:36:23 Melatonina: To be 100% clear, it's Better Never to Have Been. Nov 25 03:37:42 I know it Nov 25 03:39:49 TacticalJoke starting to think, life is just a big Ponzi scheme Nov 25 03:40:14 at least capitalism seems like it Nov 25 03:40:47 Yeah, there are many parallels. Nov 25 03:40:56 i don't think anyone would get elected on a platform of steady state economy / population control Nov 25 03:41:05 aka degrowth Nov 25 03:41:21 so we're hurtling towards oblivion Nov 25 03:41:54 sad that 60% animal population destroyed between 1970 and 2016 Nov 25 03:42:06 thats crazy Nov 25 03:43:15 g00s: Did you ever read The Dice Man? Nov 25 03:43:42 no, never heard of it Nov 25 03:44:27 It's about a psychologist who, having had enough of normal life, creates 'dice therapy'. He writes down a bunch of ideas ("go to the park", "watch a movie", ...) and rolls a die. If he hits a 1, he does the first item in the list. A 2, the second item. Nov 25 03:44:42 lol Nov 25 03:44:47 The (real) author of the book actually practises and advocates dice therapy. Nov 25 03:45:05 I tried it a few times. Was kinda fun (but I gave up). Nov 25 03:45:33 I guess the idea is to create a new list regularly (perhaps every day). Nov 25 03:45:58 for inconsequential things, like what shows to wear, seems ok ... not willing to use dice on bigger decisions Nov 25 03:46:03 *shoes Nov 25 03:46:12 In the book, though, he occasionally adds candidates such as "Murder my neighbour" to the list, and sometimes he has to do this. Nov 25 03:46:17 The die must be obeyed. :D Nov 25 03:46:23 TacticalJoke lol Nov 25 03:46:30 Yeah, for big decisions it seems crazy. Nov 25 03:46:44 TacticalJoke have you read 'the drunkard's walk' Nov 25 03:47:04 The first Android app I made was about dice therapy. Didn't release it, though. Nov 25 03:47:07 Nah. Nov 25 03:47:29 https://www.amazon.com/dp/B001NXK1XO Nov 25 03:48:06 TacticalJoke somewhat better idea than dice https://www.amazon.com/Why-Greatness-Cannot-Planned-Objective-ebook/dp/B00X57B4JG Nov 25 03:48:08 Looks interesting. Nov 25 04:03:02 They look great. Once upon a time I would read books. I never seem to find the time anymore. :S Nov 25 04:04:39 TacticalJoke this is a new one from ariely https://www.amazon.com/gp/product/1501120042 Nov 25 04:04:47 short Nov 25 04:05:15 he's pretty famous (behavioral economics) Nov 25 05:42:32 Hey. I'm new to Android Studio and I was wondering, is it important to know XML as well? Nov 25 05:46:45 no Nov 25 06:20:59 squ: he left before your answer Nov 25 06:21:09 I see Nov 25 07:25:28 I had a doubt regarding encrypting android dbs. From what I have researched, even using libraries such as SQLcipher or implementing encryption used by Signal (open whisper systems), android db cannot be 100% encrypted as the encryption key is also stored on the phone. Am I correct is assuming this? Nov 25 07:26:26 I do not have the luxury of storing the encryption key on the cloud and calling it each time. So does that mean even whatsapp db is hackable? Nov 25 07:47:32 Hello Nov 25 07:47:55 hi webmin5875, has a question regarding android db security Nov 25 07:48:00 From what I have researched, even using libraries such as SQLcipher or implementing encryption used by Signal (open whisper systems), android db cannot be 100% encrypted as the encryption key is also stored on the phone. Am I correct is assuming this? Nov 25 07:48:21 rugu: You are correct. Nov 25 07:49:08 webmin4875: So does that mean, whatsapp db can also be easily revealed? If thats the case, then encrypting the db does not help a lot Nov 25 08:00:19 rugu: I don't know how whatsapp works, but if all of the encryption keys and secrets are on the app, then it can be revealed, how easily depends on the skill of the disassembler.. Nov 25 08:01:23 webmin4875: Any suggestions on how to make it as secure as possible ? Nov 25 08:01:46 rugu: From a quick look at the faq, they seem to generate a key for each message Nov 25 08:02:21 rugu: The messages, if on your phone, are meant to be decrypted by you at some point Nov 25 08:02:41 that encryption key pair is per chat window. The db as such is encrypted with a single key afak Nov 25 08:03:24 rugu: Who are you trying to secure the messages against, hypothetically? Nov 25 08:04:11 rugu: The owner of the phone? A hacker? Nov 25 08:04:19 well lets say if I were to secure against a very knowlegable and hellbent hacker Nov 25 08:04:40 rugu: Well, if they are in the phone consider the data decrypted Nov 25 08:04:51 rugu: If you don't want them to get it, don't keep the messages on the phone Nov 25 08:05:00 yeah, thats what I thought, just need a second opinion Nov 25 08:06:22 enjoy this video guys, it talks about general android methodology and how to really get better https://www.youtube.com/watch?v=pGkahiAMqww Nov 25 08:06:54 How can I set my FCM project number/sender ID without having to generate a google-services.json via the console? Nov 25 08:08:12 rugu: I think if you combine the encryption of whatsapp with something like the 30-second-delete function from snapchat, you could get something interesting Nov 25 08:08:37 rugu: Like, after 30 seconds, the message is deleted completely, it's released from memory Nov 25 08:09:06 I already added a functionality that lets users do a clean data wipe and choose to have 30sec delete option for some messages Nov 25 09:15:37 I have an app fully working on android 5. It catches the phonestate with a receiver. Testing the app on a real android 4 device the onReceive of the receiver class is never called. Nov 25 09:17:01 *frowns* Nov 25 09:18:51 what the... Nov 25 09:56:54 any idea what might be wrong with my override method for RealmChangeListener? https://dpaste.de/G2uE Nov 25 09:57:48 errors? Nov 25 09:58:49 at first glance i'd say it should be new RealmChangeListener() Nov 25 10:07:50 Ashiren: correct! it's fixed now and seems to work. Nov 25 10:08:11 Realm's documentation is probably outdated Nov 25 10:33:10 I see I get a "toolbar" automatically in my acitivites, but where do I control it? Change it's title etc? I would expect a section in the xml or something. Nov 25 10:33:31 its in theme Nov 25 10:34:01 if you dont want the implicit one, use i.e. Theme.AppCompat.Light.NoActionBar Nov 25 10:34:10 fellas? Nov 25 10:34:16 when is the Application class called? Nov 25 10:34:26 if you've extended your own Nov 25 10:34:55 which resource / tutorial / book is best for learning android dev? Nov 25 10:34:58 !books Nov 25 10:35:29 you put the extended Application class name to your AndroidManifest Nov 25 10:35:52 and Application start whenever first of the app component is started Nov 25 10:36:04 once* Nov 25 10:36:15 could be any activity, service, broadcastReceiver Nov 25 10:36:25 although im not entirely sure about separate process Nov 25 10:36:36 thanks Ashiren Nov 25 10:36:52 yea I have such a class sure, and it's in the manifest Nov 25 10:36:57 but Im questioning why the logs arent being hit Nov 25 10:37:06 hm? Nov 25 10:37:13 I think it has to do with Timber and the way i've set it up Nov 25 10:37:18 i have my own tree Nov 25 10:38:10 followed that damn Donn Felker Nov 25 10:38:20 without understanding what the implications are Nov 25 10:38:38 aww modern programming Nov 25 10:38:40 but it still doesn't make sense, the place where I ignore debug logs inside isLoggable, is in the releaseTree implementation that I plant Nov 25 10:38:53 and that gets triggered only if BuildConfig.DEBUG is false Nov 25 10:39:02 otherwise I plant the normal DebugTree Nov 25 10:39:43 did you import the correct BuildConfig Nov 25 10:40:05 it says here timber.log.BuildConfig...... Nov 25 10:40:06 wtf Nov 25 10:40:27 it should be your package's BuildConfig Nov 25 10:40:32 yea I know Nov 25 10:40:35 why would it import its own Nov 25 10:42:02 yea it's fine now Nov 25 10:42:11 it was just the buildconfig import Nov 25 10:43:57 I have question about NestedScrollView Nov 25 10:44:08 when you a Relativelayout as a child Nov 25 10:44:28 some views position will be moved down even they are ParentTop Nov 25 10:44:46 seems the NestedScrollView controls the RelativeLayout? Nov 25 10:45:32 nothing controls anything Nov 25 10:45:40 you just have a logical error in the xml Nov 25 10:46:56 ok, let me share an example with you Nov 25 10:47:00 and you can try it by your self Nov 25 10:47:03 is that fine? Nov 25 10:47:30 I cant try it myself right now Nov 25 10:47:35 but post the code Nov 25 10:48:05 alriiight the logs are working, it's just that once that Tree was planted once, all my logs for release are filtered by debug and whatnot, so whatever debug after that was returned as not loggable Nov 25 10:53:02 Odaym: https://gist.github.com/MoshDev/7720e43d85c6d98d6da8c098e5510e1b Nov 25 10:53:05 here the xml file Nov 25 10:53:23 its just a sample layout to describe the problem Nov 25 10:53:41 inside the sample code i just fill the recycleView with items to allow scrolling Nov 25 10:54:18 in the ui editor you can see the tint view shown (pink color) on top of all views Nov 25 10:54:50 replace the relativelayout with a linearlayout Nov 25 10:54:51 but on runtime using layout inspector the tint view 'y' will be the 1700px Nov 25 10:54:59 you have layout_below on all of the elements inside it Nov 25 10:55:12 thats right Nov 25 10:55:19 just have them in a linear vertical Nov 25 10:55:28 but i need to show the tint view over all of them Nov 25 10:55:37 have that at the top of the relative Nov 25 10:55:42 and inside the relative a linear vertical Nov 25 10:56:06 at least it will look who is ontop of who Nov 25 10:56:17 the problem, i need to show title above the tint, and the tint above all others views Nov 25 10:56:51 title right now is not appearing above tint Nov 25 10:57:00 yes Nov 25 10:57:01 tint appears above title Nov 25 10:57:10 yes Nov 25 10:57:17 just move the view to the top of that relativelayout then Nov 25 10:57:21 it gets created first Nov 25 10:57:21 because i was trying to show the tint Nov 25 10:57:25 but its not showing Nov 25 10:57:27 all other elements after it will be ontop of it Nov 25 10:57:37 thats correct Nov 25 10:57:55 if you like i can send you the activity Nov 25 10:58:00 and you can try it by your self Nov 25 10:58:03 nah i have my own beast Nov 25 10:58:11 that's all i can help with Nov 25 10:58:17 the ui editor behaves differently from runtime Nov 25 10:58:23 no problem at all Nov 25 10:58:32 i dont trust that thing Nov 25 10:58:32 so, here is the question Nov 25 10:58:34 i never look at it Nov 25 10:58:55 from the first look on the xml you will assume the tint view will be always visible Nov 25 10:59:15 but on runtime it got dragged down under the scrollview Nov 25 10:59:32 if I remove the NestedScrollView Nov 25 10:59:35 it will work fine Nov 25 10:59:49 holy shit Nov 25 10:59:53 what is this, man? Nov 25 10:59:54 android:layout_alignParentBottom="true" Nov 25 10:59:54 android:layout_alignParentTop="true" Nov 25 11:00:12 you have these properties on your con_tint_view Nov 25 11:00:19 its the same as height match_parent Nov 25 11:00:45 having those 2 properties set on a view means that its the same as setting that view's height as match parent? Nov 25 11:00:56 yes Nov 25 11:01:02 ok let's suppose that's true Nov 25 11:01:09 why do you have them now? you already have height match parent on that view Nov 25 11:01:30 ignore them, consider them as a typo Nov 25 11:01:37 even you remove them it will remain the same Nov 25 11:01:59 they are not the same as setting height match parent by the way Nov 25 11:02:02 they mean different things Nov 25 11:06:20 does "no advertising, no jobs" channel restriction include a "looking for job" type? :) Nov 25 11:10:05 Odaym: it works fine if I replace the tint_view with ImageView :\ Nov 25 11:10:26 with real image, not color drawable Nov 25 11:11:47 hey Nov 25 11:12:12 does anyone have any experience with facebook sdk / api for android Nov 25 11:14:53 im trying to use facebook , to get my friends list . But from what ive read i have to be a registred game and canvas user. Im not developing a game. Is there anyway to grab friend lists / details ? Nov 25 11:30:45 hi all - I'm looking for the best approach. WE have a couple forms in our app, would the Custom Print job approach be the best way to go? Nov 25 11:31:07 the devs I'm working with are insisting on taking a 'screenshot' type approach, and of course that's not working for scroll-views. Nov 25 11:31:30 https://developer.android.com/training/printing/custom-docs.html this seems to be the most solid approach? Nov 25 13:22:11 hey all, when i run my app in build variant as debug everything is ok, but when i change to release the module do not work. I add dependecy. Nov 25 13:23:27 i don't have any errors just all from module does not work in app Nov 25 13:26:35 Dasir: what's your question Nov 25 13:30:22 xorgate: in android studio when i have set build variant to release outside module dosen not work Nov 25 13:31:24 build variant = debug, everything is ok Nov 25 13:33:39 Dasir: ok... how can we help you Nov 25 13:41:15 xorgate: Everything look ok, so i don't know how i should looking for solution. Nov 25 13:46:40 xorgate: i need a direction Nov 25 13:58:12 what is the exact error? is it build-time or runtime? Nov 25 13:58:21 'does not work' is to vague Nov 25 13:58:29 +o Nov 25 14:06:00 xorgate: runtime, there is no error i implement advertisement to my app. in release build variant example advertisement does not appear Nov 25 14:06:44 admob? Nov 25 14:08:02 xorgate: Millennial Media (mmedia.com) Nov 25 14:08:35 you could check logcat to see if there's a config error, or mmedia's control panel Nov 25 14:12:21 yes, give me sec i'll check Nov 25 14:19:36 Is it common that the layout preview in Android Studio doesn't represent the actual layout? I'm remaking the actionbar on top, and it looks prefect in preview, but when I run on my device the default setup with the app name text is shown Nov 25 14:23:23 xorgate: i have "[LOAD_FAILED] No additional details available" in logcat Nov 25 14:31:23 I'm trying to implement a bottom sheet, however the state seems to be stuck in the settling state from the start, even when I try to set state. any idea what could be wrong? Nov 25 14:31:29 https://gist.github.com/Syzygy2048/72065f1bf0b499ebbfc625cbeeeeb7e2 here's how I initialize Nov 25 14:31:34 Is this the latest bug in the Android SDK? http://pastebin.com/T7C2MxKs I keep getting this error message after cleaning my project Nov 25 14:36:38 xorgate: in logcat for debug variant i have "Found activity for view " Nov 25 14:39:54 I already have a twitter access token and a twitter access secret of the user, is that enough to post to their twitter account on android?? Nov 25 14:40:14 does anyone have a snippet to post a tweet?? Nov 25 14:40:25 on user's behalf Nov 25 14:43:51 update to my issue, apparently it's in state expanded in the beginning and then once I try to change the state, it's settling forever. Nov 25 14:49:18 xorgate: i find, function onRequestSucceeded is not override in relese variant http://docs.millennialmedia.com/android-ad-sdk/apidocs/interfacecom_1_1millennialmedia_1_1_inline_ad_1_1_inline_listener.html#a15ab1764faa18aad55610a877528537d Nov 25 14:55:27 can I remove all these androidTestCompile dependencies in my gradle file? Nov 25 15:02:06 Hey guys, I know Android M has changed the permissions model. I vaguely remember Google had made a library (like PermissionsHelper.java) that makes requesting these new permissions easy. Does anyone remember where that is? Nov 25 15:03:21 My bottom sheet stays unresponsive and gets stuck in state_settling constantly. I managed to get it to be in state_collapsed and state_expanded once, however visually it was always on screen and changed nothing... any ideas why would caue that? Nov 25 15:04:09 MarkyC: I can share my custom permission util if you want. it's untested though. Nov 25 15:11:19 hi Nov 25 15:11:36 I've got some display issues with my test widget for the app I'm developing. I've placed a file called test_widget.xml into res/layout directory. This file has a relative layout parent. I'm trying to figure out why the widget is bad displayed. This is test_widget.xml: http://pastebin.com/vcRvQZjZ and this is the screen with my widget: http://imgur.com/a/WUKcm Nov 25 15:11:51 the textview is contained into a relativelayout, inside the widget, I've tried to reduce the size but it's not working. How could I fix the xml in order to get the test widget with the same size (height and width) than the left widget? Nov 25 15:11:54 Any ideas? Nov 25 15:14:38 can anyone check if they can upload screenshots in their dev console? cant seem to push images/icons up Nov 25 15:14:41 Syzygy: thanks, but there are tonnes of OSS libs for this, I'm just looking for the Google one Nov 25 15:20:27 ah gr8 http://stackoverflow.com/questions/40801684/cant-upload-android-assets-to-publish-app-in-playstore Nov 25 15:22:29 MarkyC: alright. if you find anything I would appreciate it if you could post a link. Nov 25 15:32:37 I have put noActionBar in my manifest and created my own in each activity, but still it fetches the app_name string and places it in the default location where it were when the project was generated. So where exactly is this happening?? I tried finding usages of the app_name string , but it only shows up in the manifest for labeling the application Nov 25 15:33:57 Hello, is there a way to encapsulate sqlite querys? I mean.... currently I'm using contentproviders but I'm wondering if I can change to using sql querys without writing full querys again in every method when needed ............ ¿? Nov 25 15:37:18 Bernzel: are you using the Toolbar class? Nov 25 15:38:07 Syzygy, like this you mean? http://pastebin.com/QRqLJTq7 Nov 25 15:38:19 setSupportActionBar(myToolbar); getSupportActionBar().setDisplayShowTitleEnabled(false); Nov 25 15:38:21 try this Nov 25 15:38:38 in onCreate Nov 25 15:40:26 Syzygy, yeah that worked. But it seems like a Nov 25 15:40:27 Duct tape solution, can I make the toolbar not take a title at all? And simply design it differently for each activity? Nov 25 15:41:01 I don't think so... I'm messing around with them myself Nov 25 15:41:41 alright, weird Nov 25 15:41:43 thanks btw! Nov 25 15:43:10 pmercado: have you tried some ORM library like ORMlite? and depending on what exactly you want to do, maybe prepared statements (which you should be using anyway) Nov 25 15:43:37 Bernzel: no problem. feel free to ask me if you have problems with layouting the toolbar. Nov 25 15:44:27 thanks, well... looking for something less than contentprovider and ORM Nov 25 15:44:47 only 3 tables :-/ Nov 25 15:45:10 and files, from file system Nov 25 15:45:45 Bernzel: also, you don't need your own back button, those are already integrated into the toolbar somehow, although I'm not sure how to enable it. Nov 25 15:47:31 pmercado: maybe create a small querybuilder if you don't want to rewrite all the queries for each class. Nov 25 15:47:59 Syzygy, hm okey. Well I have custom item for my toolbar so I'll use them for designpurposes I think Nov 25 15:48:51 what do you mean by custom item? Nov 25 15:49:58 a query builder is like this: http://www.yiiframework.com/doc/guide/1.1/en/database.query-builder ? Nov 25 15:50:25 pmercado: more or less Nov 25 15:53:48 uhm.... and encapsulate them as a methods? like : getFirstItems(), addOneItem( name, quantity, color, size ), deleteItem( id )..................... is right ? Nov 25 15:55:17 pmercado: if that's what you want to do, it's right. Nov 25 15:56:16 but what you're talking about now seems like a DAO - database access object. Nov 25 15:56:26 but is not what I want to do, for me is something useful, maybe I'm wrong with that approach Nov 25 15:56:53 then what do you want to do? Nov 25 15:56:54 uhm Nov 25 15:57:20 query 3 tables and files, and try to not repeat code for querys Nov 25 15:57:48 I think a DAO would actually work pretty well for you. Nov 25 15:58:37 basically it's what you just said. you have a class that encapsulates the database. in code you say tableDAO.addOneItem(...) and the class does it for you. Nov 25 16:00:26 and there is no DAO support in android ? tools or classes for that ? Nov 25 16:00:44 Hi guys i have a problem here I/art: Rejecting re-init on previously-failed class java.lang.Class Nov 25 16:02:04 How would they know what you want to do with your database? You'll have to write the queries yourself. But at least you have a single class with all of them. A single location, no need to initialize everything 10 times. Nov 25 16:02:26 I mean, there might be some DAO libraries, but you'll have to look for them yourself. Nov 25 16:05:41 oh, nothing already made, ok... thanks for your help and time Syzygy Nov 25 16:05:43 :) Nov 25 16:07:40 which method is easiest to use if I simply want to animate a textview's opacity to increase over time? Nov 25 16:13:36 findViewById(R.id.fab).animate().alpha(0.5f).setDuration(500).start(); Nov 25 16:14:09 Bernzel: Nov 25 16:14:54 thanks again Syzygy Nov 25 16:15:41 np Nov 25 16:16:16 I already have a twitter access token and a twitter access secret of the user, is that enough to post to their twitter account on android?? does anyone have a snippet to post a tweet?? Nov 25 16:18:23 Syzygy, Bernzel: No need to call start :) Nov 25 16:19:04 SimonVT I already have a twitter access token and a twitter access secret of the user, is that enough to post to their twitter account on android?? does anyone have a snippet to post a tweet?? Nov 25 16:19:18 How would I know Nov 25 16:20:00 SimonVT, copy that. The animation is not running smoothly though. Nov 25 16:20:12 And if noone answers, try again later. Don't highlight random people Nov 25 16:20:12 that is like strangely unsmooth Nov 25 16:20:45 Should be smooth Nov 25 16:20:55 How long is your transition? Nov 25 16:21:35 tried 500 & 1000 both had the same issue. Nov 25 16:21:45 there must be a deeper issue Nov 25 16:22:49 according to material design guidelines transitions should be fast. maybe it becomes less noticeable then? Nov 25 16:24:02 Na I think there is something seriously wrong with performance , I haven't seen anything like this before Nov 25 16:24:43 fcm won't generate token getting this error I/art: Rejecting re-init on previously-failed class java.lang.Class Nov 25 16:24:49 I doubt the issue is the animation, someone else is going on :) Nov 25 16:24:58 app crashes when Receiving notification Nov 25 16:26:04 SimonVT, yes indeed Nov 25 16:27:28 can someone help ? Nov 25 16:51:52 SimonVT, srry to disturb about this again but can you just quickly spot anything major that can affect the transition smoothness? http://pastebin.com/XQwUP9Wu if not, any tips on how to debug such a fault? Nov 25 16:53:17 My softkeyboard takes about twice the space it needs to from my coordinator layout... any ideas why that might be the case? Nov 25 16:57:55 let me pastbin the whole debugger errors of fcm Nov 25 16:58:32 https://dpaste.de/DpeH Nov 25 16:59:29 MyFirebaseMessagingService java https://dpaste.de/hRVk#L27 Nov 25 17:01:48 MeaTop, it's a firebase problem? Nov 25 17:02:01 yes Nov 25 17:02:26 have you tried the firebase channel on Slack? They are very active there, they've saved my ass multiple times Nov 25 17:02:53 ok i'll try thanks Nov 25 17:06:09 god damn it was an easy fix for me Syzygy , my background asset was way to heavy in that activity. lol .. Nov 25 17:08:54 can JPEG format mess things up so much? Cause the resource image is only 200kb , doesn't seem like an extremely demanding size? Nov 25 17:10:00 Syzygy: You probably have fitsSystemWindow somewhere you shouldn't Nov 25 17:12:23 hm guess 200kb is to much for a background image Nov 25 17:13:07 Byte size doesn't matter, resolution does Nov 25 17:14:36 SimonVT: that is very possible. Thanks Nov 25 17:15:10 SimonVT, oh :s well then 1080x1920 is far to big. How exactly can I know measure and find out how to scale my resource to be optimal on the "medium" device? If I know the medium sizes I can scale down/up the resources without trouble, but I gotta have a starting point? Nov 25 17:15:39 You haven't put it in -mdpi and use it on xxhdpi or something silly? Nov 25 17:15:54 no I'm using sw qualifiers Nov 25 17:16:10 If you don't specify a density it defaults to mdpi Nov 25 17:18:25 well I start by designing the layout on the Nexus 4 which is the smallest device I'll support. So in essence I should use some tool to measure the ui I have place out and find out the different components w/h in pixels so I then can scale those resources in PS to those dimensions? Nov 25 17:19:19 so the system isn't using much larger resources and scaling them down for the Nexus 4, that's my thinking. Loading unnecessery large images to a smaller screen Nov 25 17:19:38 I think you're confusing screen size, resolution and density Nov 25 17:20:05 I assume that by nexus 4 being the smallest device you mean screen size wise? A larger device can still have a lower resolution Nov 25 17:21:11 I'm talking about my "assets"/"drawables". No I mean the Nexus 4 has the lowest WxH in dp. Nov 25 17:21:39 Yes, that's screen size Nov 25 17:22:42 if you want to avoid making diff image assets for diff screen sizes, try using vectordrawables (svg) Nov 25 17:22:51 Figure out a dp size your drawables should be, create pngs for hdpi, xhdpi, etc Nov 25 17:22:51 should also save you a lot of space Nov 25 17:23:11 If your tablet layouts need different dp sizes, use -swdp-hdpi, etc Nov 25 17:23:31 okey going off track .. I can't properly explain myself Nov 25 17:24:27 let's try it with this simple question. How can I find out what dimensions my background image should be for optimal performance when designing for a certain screen size? Nov 25 17:24:55 How can I send form params *and* json data with okHttp ? Nov 25 17:24:59 Depends on the density Nov 25 17:25:27 SimonVT, Okey. And let's say it's for the nexus 4: 384x640 dp Nov 25 17:25:39 being xhdpi I assume Nov 25 17:25:41 Then just use its resolution Nov 25 17:26:35 So in photoshop you say I should scale the background image to those measurments, 384x640 ? Nov 25 17:26:56 No, dp is a physical size Nov 25 17:27:16 You need pixels Nov 25 17:28:06 so the nexus 4's resolution in pixels being 768 x 1280 px . That would be the size I would scale the background to? Nov 25 17:28:26 sorry for talking prematurely, but I need to do this correctly from the start.. Nov 25 17:28:30 minus screen decorations (button bar, status bar) Nov 25 17:28:52 But then you end up with a background that is pixel perfect for the nexus 4 Nov 25 17:29:00 What about the other tens of thousands of devices? Nov 25 17:29:19 you have the next point there , yes. Nov 25 17:29:21 You can't create pixel perfect bitmaps for every device out there Nov 25 17:29:51 sound absolutely reasonable and logical, so what do I do? Nov 25 17:30:10 Some provide a slightly too large bitmap and crop it Nov 25 17:30:40 Depends on your background really Nov 25 17:30:52 csst0111: multipart request Nov 25 17:31:27 so essentially I should create them to be relatively suitable Nov 25 17:31:29 Some backgrounds also come in two parts. A part that's smaller than the screen, positioned somehow.. And a full screen part that's just scaled or whatever Nov 25 17:35:41 SimonVT, thanks you cleared it up much more! Nov 25 17:37:14 np :) Just remember you can't have drawables that fit the screen resolution exactly. You need to fake it somehow Nov 25 17:37:32 I can't believe I can't find a single post or anything about how to make a simple tweet from android app.....I already have the two tokens neccesary but I don't know how to actually make a tweet Nov 25 17:37:45 doesanyone have an article or something? Nov 25 17:37:50 there's no info on this Nov 25 17:39:10 Does twitter not have any api documentation? Nov 25 17:41:22 SimonVT,https://dev.twitter.com/docs ? Nov 25 17:46:33 I'd start there if I wanted to tweet something Nov 25 17:51:29 that doesn't say anything about android....only concepts.... Nov 25 17:51:46 I already have the tokens but no way ofactuallysending those tokens to make a tweet Nov 25 17:51:58 no info on that website Nov 25 17:52:06 SimonVT Nov 25 17:52:21 and no android specifics Nov 25 17:53:26 Well, Fabric is Android. There's also a REST API, that's platform agnostic Nov 25 17:54:17 Check if either of those will let you tweet Nov 25 17:57:54 off topic, but really not ... what does everyone do when waiting for a build ?I have an app that takes about 3 minutes at work. and for three minutes being wasted every 20 minutes .. and on a lonely work day like todays office I am even more board :( Nov 25 17:59:14 dar10s: I work on my Rubik's cube :) Nov 25 18:01:22 I was thinking of bringing a puzzle to work ... Ohh they will give me such starch looks in this stiff work environment Nov 25 18:03:06 SimonVT I think I found what aI waslooking for in Fabric https://docs.fabric.io/android/twitter/access-rest-api.html Nov 25 18:03:20 TwitterApiClient twitterApiClient = TwitterCore.getInstance().getApiClient(); // Can also use Twitter directly: Twitter.getApiClient() StatusesService statusesService = twitterApiClient.getStatusesService(); Call call = statusesService.show(524971209851543553L, null, null, null); call.enqueue(new Callback() { @Override public void success(Result result) { //Do something with result Nov 25 18:13:46 what is fabric in a glance? Nov 25 18:13:51 is it a framework Nov 25 18:13:57 or what? is it really neccesary? Nov 25 18:14:57 crash analytics, for statistics and crash logging Nov 25 18:15:46 i.e. counts active users, session length, number of crashes, crash-free sessions and whatnot Nov 25 18:16:16 because youre talking about fabric.io? Nov 25 18:27:36 Ashiren Nov 25 18:27:44 I could send a tweet using fabrick Nov 25 18:27:47 TwitterAuthConfig authConfig = new TwitterAuthConfig(twitter_consumer_key, twitter_consumer_secret); Fabric.with(this, new TwitterCore(authConfig), new TweetComposer()); //compose twitter TweetComposer.Builder builder = new TweetComposer.Builder(this) .text("just setting up my Fabric."); builder.show(); Nov 25 18:27:54 with that tweet composer of fabric Nov 25 18:28:06 but I still don't know why fabric has a twitter interface Nov 25 18:28:10 I don't understand it's role Nov 25 18:28:14 it came with firebase ui Nov 25 18:31:42 I would be wary of writing anything against Twitter's API these days, they have been tightening the API access for several years now Nov 25 18:43:40 Hi, I love the chrome remote debugging, any Idea how to quickly reconnect when pushing a new apk? Nov 25 18:44:58 is Colt McAnlis moving away from Android (performance) stuff? not sure how to interpret his last tweet Nov 25 18:59:10 java.lang.RuntimeException: Performing pause of activity that is not resumed Nov 25 18:59:17 ugh, wut Nov 25 18:59:34 even android gets confused with its lolcycles Nov 25 18:59:47 lol android Nov 25 19:00:08 #tearitdown Nov 25 19:01:10 anyone here know how to make TWRP install supersu? ive seen it say "hey its not there, want me to put it there for you?" but there doesnt seem to be a button to make it install it if it does not notice that its missing Nov 25 19:06:50 mark4: Try #android-root, this channel is for app dev Nov 25 19:15:00 My app is crashing when I call startActivity() and even with stacktrace and debug enabled I get no errors Nov 25 19:18:27 Here is the definition and call: pastebin.com/1VY9JW8p Nov 25 19:25:42 Solved the issue Nov 25 19:51:34 on android studio how can i convert automatically a string into a resource? Nov 25 19:51:37 I keep getting this error while using fabric on another activity that is not main activity Calling startActivity() from outside of an Activity context requires the FLAG_ACTIVITY_NEW_TASK flag. Is this really what you want? Nov 25 19:51:50 TweetComposer.Builder builder = new TweetComposer.Builder(getApplicationContext()) .text("just setting up my Fabric."); builder.show(); Nov 25 19:51:52 on that line Nov 25 19:51:55 skin1980: Alt+Enter. Nov 25 19:52:14 TacticalJoke: on Mac cmd + enter? Nov 25 19:52:29 and... have i to select the string or the whole line? Nov 25 19:52:48 skin1980: Why not try it. It's way easier than asking on IRC. ;D Nov 25 19:53:13 TacticalJoke: lol... you are right, and it worked like a charm Nov 25 19:53:16 tnx Nov 25 19:55:57 j4f-shredder: https://github.com/twitter/twitter-kit-android/issues/19 Nov 25 19:56:15 efrohnhoefer's answer looks right. Nov 25 20:03:25 TacticalJoke thank you very much, that solved it Nov 25 20:03:28 you are the man Nov 25 20:03:30 ! Nov 25 20:13:39 j4f-shredder: Hmm, actually, now that I think of it, why is it that you can't use an Activity here? Nov 25 20:14:07 If you really can't use an Activity (and have to use `getApplicationContext()`), the answer above is correct. Otherwise, as long as it's sensible to use an Activity, it's incorrect. Nov 25 20:14:26 I've not used this API, so I have no idea whether or not you need to use `getApplicationContext()` here. Nov 25 20:16:30 To simplify my question: Why are you saying `new TweetComposer.Builder(getApplicationContext())` rather than `new TweetComposer.Builder(this)`? Is there a reason you can't use the latter? Nov 25 20:19:06 TacticalJoke Nov 25 20:19:22 I just changed it to this and it worked Nov 25 20:19:44 If `this` works fine, it's probably a good idea not to use the `FLAG_ACTIVITY_NEW_TASK` thing at all. Nov 25 20:22:54 As long as this secondary activity is one of your activities, it's probably a good idea to use `this` here. Nov 25 21:20:44 Can anyone tell me how I can get the source code (View.java, TextView.java et al) that corresponds exactly to the version I have in my "7.0 security patch 5 November 2016" emulator images? I can't debug into the internals, and I need it to understand some things. Nov 25 21:21:14 I've got the Android repo, how I know which git tag should I checkout? Nov 25 21:34:59 Does Android support Bash or any variants, or only BeanShell scripting? Nov 25 21:39:24 there's busybox for android Nov 25 21:39:27 with ash Nov 25 21:39:42 and all other sorts of bells'n'whistles Nov 25 21:44:28 Hi guys, newbie android developer here. I'm receiving a null pointer exception when Android attempts to carry out any methods on views in one of my tabs - for some reason it only works for one view before crashing. I've copy pasted what I deem to be the relevant code here: https://gist.github.com/EBruchet/1a55ab3fb3a90edd36215c2f49ae8e15 Nov 25 21:44:56 Would greatly appreciate any suggestions on what I can do to fix this odd bug, it has been bothering me for a while! Nov 25 21:45:38 If i have 3 phones, can i determine the location of a fourth in the same room somejow? Nov 25 21:46:34 justanothrgoobr: just call the fourth one :v Nov 25 21:46:42 -_- Nov 25 21:47:06 TTBDV: obviously youre trying something on null Nov 25 21:47:52 I understand that, but MainActivity is able to find one view inside the XML file given its id but the same process doesn't work for any other ID I plug in Nov 25 21:48:48 paste the xml and MainActvity Nov 25 21:48:50 As you can see in the gist I linked, I declared all the TableLayouts in the XML in the same fashion but MainActivity seems to only be able to 'find' one Nov 25 21:48:53 I did Nov 25 21:49:03 I'll copy the entire contents of the file if that's what you mean Nov 25 21:49:30 Hmm, seems theres signal stength, audio bounceback Nov 25 21:49:43 But no perfect solution Nov 25 21:50:28 TTBDV: ahh right, didnt notice it Nov 25 21:50:50 I also included the stack trace if that helps :) Nov 25 21:51:00 https://gist.github.com/EBruchet/ccddef96caa2fbd456fd8c7dba991b02 Here's a gist containing all of the XML file I mentioned Nov 25 21:51:52 Hmm, where can i get like 15 cheap android phones Nov 25 21:52:14 justanothrgoobr: China, Vietnam, Thailand... Nov 25 21:53:02 TTBDV: hmm you do staffmembers.removeAllViews(); Nov 25 21:53:07 which remove the TableRows as well Nov 25 21:53:18 That's a more recent change Nov 25 21:53:37 I shouldn't have included that - the problem was still occuring before this. Even attempting to access the other table layouts in the XML file doesn't work Nov 25 21:54:13 To put it simply - it seems like the only view that can be found by Android is 'staffmember_table' ID Nov 25 21:54:34 and you setContentView() right layout? Nov 25 21:55:36 where would this be set? Nov 25 21:56:25 setContentView(R.layout.activity_main); and the filename is activity_main.xml in res/layout Nov 25 21:56:27 In staffTableSetup()? Nov 25 21:56:58 setContentView(R.layout.activity_main); is in MainActivity.java Nov 25 21:57:28 And I have an XML file for each of my four tabs Nov 25 21:57:39 and the xml you posted is named activity_main? Nov 25 21:58:13 Nope, that's named something else entirely - I haven't touched activity_main.xml Nov 25 21:58:30 umm Nov 25 21:58:52 then do setContentView(R.layout.that_other_name) Nov 25 21:59:14 then again it will be booboo since it wont find R.id.toolbar Nov 25 22:00:03 This is what I have in activity_main.xml https://gist.github.com/EBruchet/e5c560ea1a44ed70b9a7aaa648470e6a Nov 25 22:00:46 So the layout and method you have issues with have nothing to do with the Activity? Nov 25 22:01:01 so you "import" the wrong layout Nov 25 22:01:16 no wonder it cant find the ids and returns null Nov 25 22:01:29 But then why is it finding one of them? And not the rest? Nov 25 22:02:03 it is? o.O Nov 25 22:02:07 Yep... Nov 25 22:02:14 That's why I came here Nov 25 22:02:18 It's throwing me off completely Nov 25 22:02:33 Maybe that's defined somewhere else Nov 25 22:02:47 They're all defined in the same XML File. Nov 25 22:03:09 Anyway, the Activity shouldn't touch anything but its own views Nov 25 22:06:54 Understood Nov 25 22:06:57 https://gist.github.com/EBruchet/adfc3a16d9f84e2debdfbe8762fba2f5 Nov 25 22:07:37 There I attached staffTableSetup() and equipmentTableSetup - the first works with no problems, whereas the second crashes with the same nullpointer exception despite pointing to and ID in the same XML file. Nov 25 22:10:52 Any ideas? :/ Nov 25 22:11:45 clean project and rebuild Nov 25 22:12:10 this unfortunately solves many wtf problems Nov 25 22:13:09 I'm getting a null pointer exception and I have no idea why. Nov 25 22:13:17 Join the club! Nov 25 22:13:27 I can pretty much remove all of the code in my app, and I still get the exception. Nov 25 22:13:33 :O Nov 25 22:13:58 Look at the output of logcat. It will tell you what line it occurs on. Nov 25 22:14:11 Where do I find it? Nov 25 22:14:14 Don't just blindly remove code - the tools are there; either in the logcat pane or in 'adb logcat'. Nov 25 22:14:48 oO Nov 25 22:15:04 so you get null pointer exception, you dont know where Nov 25 22:15:13 and remove randomly lines Nov 25 22:16:26 well, there's no point in mocking, but it's not the best way to go about it. Java and android are, at least, very good at telling you what led to an exception Nov 25 22:16:48 ..... found the issue Nov 25 22:17:03 Also, I didn't know that specified the exact line that the error occurred at Nov 25 22:17:10 Hence why I was removing lines trying to find it Nov 25 22:17:30 It does! It's not always 100% accurate if you have a really complex situation, but it will at least point to the final part of the failure that actually causes it Nov 25 22:17:38 Somehow an ID got changed without me noticing :/ Nov 25 22:17:57 that'll do it Nov 25 22:18:38 rip Nov 25 22:18:46 clean and rebuild didn't fix unfortunately Nov 25 22:19:52 TTBDV: v.findViewById(R.id.equipment_table); Nov 25 22:20:07 second: findViewById(R.id.staffmember_table); Nov 25 22:20:24 I tried removing the v - doesn't work :/ Nov 25 22:20:39 what about adding the v Nov 25 22:20:47 nothing changes tbh Nov 25 22:21:07 did he link his code? Nov 25 22:21:07 Or at least it didn't yesterday Nov 25 22:21:38 really i dont know though you provided all the info needed Nov 25 22:23:09 Thanks for trying Nov 25 22:23:20 I just don't understand how it can only 'see' one TableLayout and nothing else Nov 25 22:36:36 Idk if this is relevant Nov 25 22:36:56 But I can find the other TableLayouts but only under 'staffTableSetup()' Nov 26 00:21:38 so, when using ContentProviders, when defining URI, which difference exist between "convention" (uri/table1/id, uri/table2/subset/43, etc.... ) and the use of project, selection, selectionArgs ? Nov 26 00:22:05 *projection Nov 26 01:14:41 I have a ListView, and its children have OnLongClickListeners set. When the long-clicks happen, I show a dialog. If I don't let go, I can scroll the ListView even after the dialog has been shown -- but only the first time the dialog is shown (until I recreate that Activity). Nov 26 01:14:47 This must be a bug, right? Nov 26 01:15:12 By "if I don't let go", I mean "if I carry on holding down my finger". Nov 26 01:18:42 I'm getting this in 7.1 and 6.0 (the only two I've tried). Nov 26 01:35:40 TacticalJoke i just use RV for everything these days ... Nov 26 01:35:51 at least they can fix bugs in that one Nov 26 01:35:54 "Numerous journalists and professors are taking to social media to report that they have received an alarming message regarding state-sponsored hacking when accessing their Gmail or other sites that use their Google account." Nov 26 01:36:29 meanwhile ... Nov 26 01:36:32 "Nearly 40% of Americans Would Give Up Sex For Better Online Security, Survey Finds" lol Nov 26 01:39:03 I'm surprised. I thought most people didn't care about privacy and the like. Nov 26 01:40:30 either that or they aren't having good sex :P Nov 26 01:42:56 Yeah, that's gotta be a factor. That activity is way overrated. Nov 26 02:48:09 Anyone else getting "Source code does not match bytecode"? I'm getting this in AS 2.2.2 when I step into framework sources (and the source definitely should match the bytecode). Nov 26 02:48:18 I see this issue: https://code.google.com/p/android/issues/detail?id=225199&sort=-id&colspec=ID%20Type%20Status%20Owner%20Summary%20Stars **** ENDING LOGGING AT Sat Nov 26 03:00:00 2016