**** BEGIN LOGGING AT Mon Jan 23 03:00:00 2017 Jan 23 03:28:49 atbe: hi Jan 23 03:44:15 Hi Jan 23 03:46:54 i have to dynamically set text at runtime on a textview and have to show it in another window(Activity), i have to do this process like 20 times ,but the problem is how will i settext at runtime on another activity's textview? Jan 23 03:53:36 sub_zero: Pass the string to the activity via the Intent you use in `startActivity(...);`. Jan 23 03:55:05 How is it possible that a debug release works fine, but a signed release apk is giving me a 404 on one of my retrofit calls Jan 23 03:56:12 tacticaljoke ok thanks Jan 23 04:03:05 Ok, so for some reason a signed apk is deforming my url: ...launch/next/%7Bnumber%7D Jan 23 04:03:36 Wonder why retrofit would have an issue with a signed apk Jan 23 04:04:26 It doesn't Jan 23 04:04:30 tacticaljoke am using 3 activities in my project ,will they create any performance issues? or i should use 3 fragments on one activity? Jan 23 04:04:32 Your problem is elsewhere Jan 23 04:05:14 JakeWharton I would assume not, I've never had an issue until this. I added an intercepter to log the url, and thats the url its requesting. Jan 23 04:05:34 Let me post some code Jan 23 04:06:09 http://pastebin.com/UVZwR3ry Jan 23 04:06:29 I am simply passing an integer into getNextXLaunches Jan 23 04:07:12 I wonder if using a string representation would also cause the issue... Jan 23 04:11:44 Using a String instead causes the same issue, odd Jan 23 04:13:28 Basically, its not parsing {number} in my path and just using it directly in the url Jan 23 04:27:51 am using 3 activities in my project ,will they create any performance issues? or i should use 3 fragments on one activity? Jan 23 04:35:41 Was using okhhtp 2.4 and came across this issue: https://github.com/square/retrofit/issues/1379 Jan 23 04:36:08 Upgrade to 3.5 but the problem persists in signed release apks Jan 23 05:09:24 If you're familiar with okhttp or retrofit please take a look: http://stackoverflow.com/questions/41799448/retrofit-url-not-being-translated-correctly Jan 23 05:11:03 You might as well turn off ProGuard Jan 23 05:11:11 It's likely the cause and you're not using it correctly Jan 23 05:12:14 Plus turning it off will prove that it's the cause Jan 23 05:12:21 I'm trying to set the background colour of a imageview programatically and it works using this layout file http://pastebin.com/2EFQVqsG However, when I change it to relativeLayout, the colours do not change. Anyone know why? Jan 23 05:15:34 JakeWharton Will turn it off and generate a build Jan 23 05:15:45 JakeWharton What part of my proguard is not correct? Jan 23 05:18:24 You're keeping the entirety of every library Jan 23 05:18:32 The whole point is to strip unused parts Jan 23 05:18:56 Using ** is almost always an indicator that you're doing something wrong Jan 23 05:21:16 JakeWharton Yes, i'm not optimizing it, though that does not make it incorrect. Jan 23 05:29:17 It does, because it undermines the entire point of the tool Jan 23 05:31:11 It's like going on a diet and not changing a single thing you eat. Jan 23 05:31:38 I'll rephrase..I assumed you meant something in the file was actually incorrect Jan 23 05:31:48 I understand your point Jan 23 05:34:12 Built a release with minifyEnabled set to false and it worked, so proguard most be the issue Jan 23 05:34:18 must* Jan 23 05:44:10 The way I handle it is by deleting all the rules and then trying to solve the problems one by one. First warnings and then runtime failures. For OkHttp and Retrofit I'm pretty sure we only have 4 rules, 2 each, and neither use ** or even * Jan 23 05:44:22 I can get them tomorrow, but for now I'm going to bed Jan 23 05:49:23 JakeWharton I'm playing around with the rules, will try and get it working. Have a good night. Jan 23 07:18:11 welcome back Mr. g00s Jan 23 07:19:26 hey thepoosh Jan 23 07:21:52 feeling better than last night? Jan 23 07:22:02 you sounded a bit washed up Jan 23 07:22:05 and tired Jan 23 07:22:37 hm .. not really, i'll feel better when trump is gone Jan 23 07:23:04 you should get used to it, it's all water over the bridge now Jan 23 07:23:17 and you should try hard to get your guys into congress Jan 23 07:23:25 to make sure he doesn't go full batshit Jan 23 07:23:27 fight fight Jan 23 07:23:28 tomorrow begins 1st lawsuit, violation of constitution upon taking oath. the most that will come from this is his tax returns, which could lead to something else Jan 23 07:24:15 I think it will be much better for your sanity to just acknowledge that he's in office for the next 4 years Jan 23 07:24:23 trump said something at the cia headquarters about go back to iraq to steal their oil Jan 23 07:25:05 that is not what he said Jan 23 07:25:14 not that what he actually said was much better Jan 23 07:25:19 but he didn't say go back there Jan 23 07:25:33 Melatonina: help me make him happy Jan 23 07:26:06 "“should have kept the oil” after invading Iraq. “Maybe we’ll have another chance,” i guess its how you read it Jan 23 07:26:20 yep Jan 23 07:26:23 it is Jan 23 07:26:29 besides war requires congress Jan 23 07:26:39 and there is no way in hell they'll say yes again Jan 23 07:27:12 depends if they got money from military contractors ;) Jan 23 07:27:35 you're too much of a cynic Jan 23 07:28:17 thepoosh i just watched an interview with the guy who ... uh interviewed Saddam hussein, he has a new book out. Jan 23 07:28:31 ok Jan 23 07:29:03 it was very shady shit going on back then with bush, cheney, rove, wanting to go into iraq Jan 23 07:30:17 saddam asked bush for help multiple times Jan 23 07:30:21 again, situation is very different today Jan 23 07:30:26 *very* Jan 23 07:34:43 thepoosh perhaps, but we've spend like 14T on wars over the past 30 years, enough Jan 23 07:35:13 whats our congress' approval rating now, have the managed to get above 11% these days ? Jan 23 07:35:43 oh 18% wow the sky's the limit Jan 23 07:37:55 thepoosh are you using MVP over there ? Jan 23 07:38:13 i'm reading https://medium.com/@theMikhail/presenters-are-not-for-persisting-f537a2cc7962#.3edl4xl6o Jan 23 07:38:40 i can't believe this is still being discussed lol Jan 23 07:54:48 g00s: I saw it on reddit yesterday but haven't read Jan 23 07:54:56 also haven't implemented MVP yet Jan 23 07:56:36 * raoul11 thepooshes thepoosh Jan 23 07:56:52 raoul11: who is orly? Jan 23 07:57:11 its irc slang for oh really Jan 23 07:57:20 ha! Jan 23 07:57:24 thought it was your Mrs Jan 23 07:57:43 nope Jan 23 07:57:49 my mrs dont irc Jan 23 07:57:52 yeah Jan 23 07:57:56 someone sent this to me Jan 23 07:58:13 https://fb-s-a-a.akamaihd.net/h-ak-xlf1/v/t34.0-12/16237874_2197493450476636_1462168153_n.png?oh=cc7cfb4d8db5c8cb1bd8f6720f92018f&oe=588760F3&__gda__=1485328192_e0a7601db36335e92e6e33d93b038a55 Jan 23 07:59:13 lol Jan 23 07:59:35 my new team is workin via telegram Jan 23 07:59:43 that sux Jan 23 07:59:46 yep Jan 23 08:00:27 thought bout installin it on my android, but on the permission request was this: anus access Jan 23 08:00:30 said no. Jan 23 08:02:14 raoul11: that is what all messaging apps request Jan 23 08:02:22 and you can probably remove them one by one Jan 23 08:02:32 from the privacy guard Jan 23 08:02:33 not on my 4.4.2 Jan 23 08:02:37 4.4.2 masterace Jan 23 08:02:58 btw thepoosh, AS is pissin me off Jan 23 08:03:08 why is that? Jan 23 08:03:28 it keeps collapsing my project view when i switch to structure Jan 23 08:38:31 Hi all, If you open your app and the user deleted another application, the packagemanager still recognizes / find the deleted app. Any idea how I can refresh this? I'm using pm.getPackageInfo(packageName, PackageManager.GET_ACTIVITIES) Jan 23 08:42:25 hi guys, i keep getting the followin error when running gradle, anybody know whats wrong? Error:(11, 1) A problem occurred evaluating project ':Flp'. Failed to apply plugin [id 'com.android.application'] Unable to initialize first usage tracking spool file Jan 23 09:50:33 I've fixed it, stupid cache issue on my side. Another question, can you exclude an Activity for a specific build flavor? Jan 23 10:46:10 Hi. I need to learn Java to program apps for Android? Jan 23 10:46:45 hstl: yes, for the most part Jan 23 10:47:25 yes, learn java first, at least some beginner level Jan 23 10:55:05 Ashiren, asperon , i am on 0 level in programming. Can i create after 6 months of learning a decent Android App that will give me billions $? :D Jan 23 10:55:34 only millions $ Jan 23 10:55:58 0 level in any programming? Jan 23 10:56:14 Ashiren, yes. Jan 23 10:58:08 Ashiren, so, are you serious? Not milllions or billions of course, but some money. Jan 23 10:59:04 i work for company making android apps. i havent succeded as "independent" android developer yet Jan 23 10:59:28 you're a winner in our eyes Ashiren Jan 23 11:04:36 Ashiren, can you name android apps that you and your team developed? Jan 23 11:05:45 Ashiren, there's no such thing as a rich independent developer :P Jan 23 11:06:34 that flappy bird dude might disagree Mavrik Jan 23 11:06:44 Right. Jan 23 11:06:50 heard he's the richest man in vietnam nowdays Jan 23 11:07:12 That's about the same as going to Vegas to get right. Jan 23 11:07:15 *rich Jan 23 11:07:28 Highly unlikely and utterly dumb to bet on it. Jan 23 11:07:31 Nice it if happens tho. Jan 23 11:07:50 it is Jan 23 11:07:50 can i get something like this in AS: https://www.jetbrains.com/help/idea/2016.3/viewing-class-hierarchy-as-a-class-diagram.html ? Jan 23 11:09:19 But, Android jobs / consulting does pay well so that's ok :) Jan 23 11:14:06 xorgate, https://plugins.jetbrains.com/idea/search?correctionAllowed=true&search=UML Jan 23 11:14:58 tried a few.. some are just terrible Jan 23 11:15:06 others are only for intellij >.< Jan 23 11:18:47 have you tried code iris? Jan 23 11:38:09 https://www.xda-developers.com/samsung-discloses-issues-with-galaxy-note-7-batteries-phone-itself-not-to-blame/ Jan 23 11:43:01 adq: yeah i tried code iris... it looks all messed up on my project Jan 23 11:46:10 hi all Jan 23 11:46:19 technical question Jan 23 11:47:09 can I do anything in a java library for an android app, what would be possible in an android app? Jan 23 11:47:16 I think yes Jan 23 11:47:54 I mean I wrote a java plugin for Android, but I wonder if the functionality of that can be the same as with an android service Jan 23 11:48:01 *java plugin for an Android app Jan 23 11:56:37 will there be a difference between a plugin and a service? Jan 23 11:56:47 in functionality Jan 23 11:58:48 greyline, what do you mean Jan 23 12:01:24 Zharf: I mean a jar plugin can do the anything what a service can do in an Android system Jan 23 12:01:31 -the Jan 23 12:02:11 what do you mean by "plugin" Jan 23 12:02:22 jar file Jan 23 12:02:34 and by "service"? Jan 23 12:02:41 sure, but are you trying to load it in runtime from some file or just compiling it in the apk? Jan 23 12:02:54 Ashiren: an android app, what calls startService, and there's a class in there Jan 23 12:03:00 ah Jan 23 12:03:25 anyway, yes, it's part of the same classloader ecosystem if it's running on the system, so it can use whatever it can find Jan 23 12:03:38 Zharf: okay, thx Jan 23 12:03:57 but I hope you're not trying to load some jar file at run time Jan 23 12:05:19 Zharf: basically it's a Unity app with a jar plugin Jan 23 12:05:46 Zharf: I tried to find out if I should create Unity app with a service, or Unity app with a plugin Jan 23 12:05:53 Zharf: or both Jan 23 12:06:07 Zharf: but it seems to be there would be a lot of trouble with installation Jan 23 12:06:21 Zharf: two apps into 1 apk, or two installation Jan 23 12:06:30 I don't understand the word plugin means because you can't plug in code at runtime and compile time "plugins" don't make sense to me :) Jan 23 12:06:32 Zharf: but the first option is not availab Jan 23 12:06:56 Zharf: http://jeanmeyblum.weebly.com/scripts--tutorials/communication-between-an-android-app-and-unity Jan 23 12:07:00 Zharf: he calls that as plugin Jan 23 12:07:56 urf, ok Jan 23 12:21:46 If I scroll out of the screen a SurfaceView or a TextureView where ExoPlayer is playing back a video and then move it inside, the view is blacked (it doesn't keep being updated nor it keeps the last frame). As a result when the view is scrolled back on screen, unless that happens in the exact moment when a key frame is being played, the video rendering is messy. Can I prevent this from happening (I know it would cost some CPU, I keeping this Jan 23 12:21:46 under control and don't care)? At least how can I detect when the view is scrolled out of the screen so that I can, for example, stop the playback? (I would prefer it to keep playing but this is preferable to a messy playback). Jan 23 12:26:53 remember that challonj I said I'd post, some days ago? Jan 23 12:27:03 I'm going to post it in a couple of minutes Jan 23 12:46:10 and here's the problem http://paste.ofcode.org/KtPFQHy7VHjP2wi7Qdc28g Jan 23 12:46:32 * raoul11 thepooshes thepoosh Jan 23 12:47:22 Random question: does anyone know/have an idea why when I tether on Marshmallow the data used does not count towards my providers allowance while when on Nougat it does? Jan 23 12:54:09 raoul11: what's up? you got lunch? Jan 23 12:54:24 yep Jan 23 12:54:28 also some siesta Jan 23 12:54:33 nao work Jan 23 13:04:16 here's the SO question for it http://stackoverflow.com/questions/41807082/adding-multiple-reminders-causes-them-to-trigger-at-the-same-time Jan 23 13:38:49 hi. what di you guys are using to create a authorization/authentication rest api to android? Retrofit, apigee? Jan 23 13:47:33 ... Node.js Jan 23 13:55:31 microsoft netmeeting? Jan 23 14:15:48 http://android.stackexchange.com/a/154316/53695 Does somebody know how touch events are handled when 'drawing above other apps'? Jan 23 14:24:07 FrancescoV, why would you even do that, it's highly _not_ recommended, other than that i'm not aware of any deviation compared to traditionnal touch events Jan 23 14:27:35 adq, I need to figure out what's possible, just for security research. I'm not going to use it anyway Jan 23 14:33:43 FrancescoV, still not understanding, what's your goal? detecting if an application is on top of yours? Jan 23 14:33:49 I have som problems with setting cookies in the header using Volley. Its working fine, but seems I have to do everything two times for the webserver to accept the cookieheader Jan 23 14:34:21 FrancescoV, on M & N by default it's not allowed iirc Jan 23 14:34:29 and the OS will detect it, this is far from the topic of this channel Jan 23 14:34:50 i think you have to explicitly allow an app to grant overlay Jan 23 14:40:32 adq, off topic? I need to find out that any other application can handle touch events above my app. Looks like it is posisble. and this has huge impact about security.. what if you need to enter a pin and another application can handle touch events and passing the events through to your application? Jan 23 14:43:07 -_- Jan 23 14:43:53 adq: http://stackoverflow.com/a/4482868/1723525 Jan 23 14:43:54 what if a service is correlating sensor movements to estimate a probability of numbers being pressed Jan 23 14:44:09 stop pasting me SO link please Jan 23 14:45:21 i just told you it's part of the OS now, and by default it's not on, i would have expected you search for how to detect if draw on top is enabled on your app Jan 23 14:45:35 but no, you're pasting blindly SO link, dating from 2010 Jan 23 14:58:25 Hi! Jan 23 14:59:03 How notifications IDs work? It doesn't says anything on the Android documentation about services, I can use any arbitrary number? Jan 23 15:00:20 hugleo: ASP.NET Web API 2 Jan 23 15:00:48 Iarfen: yes. the id will be needed if you want to cancel/remove/update the notification Jan 23 15:01:22 Ashiren: I can use 1 then? Jan 23 15:01:51 eeyup Jan 23 15:21:27 Iarfen, if you want to do multiple notifications, you need to keep track of the numbers. If you're doing only one notification, you can just pick a number and re-use it Jan 23 15:22:05 dragorn: If the notifications are the same, they equally have to have different numbers? Jan 23 15:22:52 I don't understand the question - if you're changing a single notification, use the same number Jan 23 15:30:05 dragorn: To have two notifications identical, generated with the same line of code, the ID should change? That was the question Jan 23 15:31:09 Still don't know what you're asking. If you're making *two* notifications, then they have t be *different* IDs. Because it's an ID. If you're making *one* notification and *changing* it, it *must be the same id*, because the id identifies what notification you're operating on. Jan 23 15:37:17 2 notifications with different ids are different even if they have the same title, icon and content Jan 23 15:50:30 Hi. All my textviews use a single dimen value as their text size, is it possible to programaticall change the value of that dimension? Jan 23 15:55:05 mohsen_: setTextSize() ? and google for how to convert from sp to pixels Jan 23 15:56:18 Melatonina: No I want to globally change the size of their text Jan 23 15:57:12 Melatonina: They all use a dimension value from the dimens.xml file, so I thought maybe if I change the value of that dimension the size of their text would change too. Jan 23 15:58:30 mohsen_: no, you can't do that Jan 23 15:59:41 mohsen_: in some way (I can imagine different ones), you have to make a list of the text views, iterate them and call setTextSize() Jan 23 16:01:53 mohsen_: you could try databinding, for example Jan 23 16:02:08 mohsen_: https://stfalcon.com/en/blog/post/faster-android-apps-with-databinding Jan 23 16:02:18 You are welcome Jan 23 16:03:53 Melatonina: Isn't it better to have multiple size profiles instead of letting the user set a specific size for all text views? Jan 23 16:04:05 Size profiles such as small, medium and big Jan 23 16:04:23 And define the corresponding sizes of each profile in the dimens file Jan 23 16:05:40 Setting a single size for all text views is not so good because headings should have a bigger size than sub parts Jan 23 16:40:46 Hi. I've seen that some devs give an option to watch an ad to get a reward but Adsense explicitly forbids that. Are they using a different ad provider or it's something else? Jan 23 16:56:27 woo-hoo! scaled physical device testing beats virtual instances! https://si.wsj.net/public/resources/images/BN-RS720_ptech0_H_20170120164945.jpg Jan 23 17:12:07 yeah that's how samsung tested batteries Jan 23 17:14:27 I have a custom view that fills the whole screen, even though it's set to wrap content and it's content is smaller than the screen. it sits within a relative layout and it's root element is a linear layout. Here's the layout code: Jan 23 17:14:28 https://gist.github.com/Syzygy2048/7d15232335f73a8cce29cde108a1fa0b Jan 23 17:14:45 Any idea how I can get the custom view to actually wrap the content? Jan 23 17:53:56 Does anyone develop software for the aviation/aerospace industry? Jan 23 18:01:40 let's hope anything critical does not run on android then Jan 23 18:02:32 squ: here? i have a screenshot Jan 23 18:04:33 http://imgur.com/BIC3tUz Jan 23 18:10:25 Melatonina: don't want microsoft for now... Jan 23 18:11:36 adq Just a general question, does not need to be Android Jan 23 18:12:17 wrong channel Jan 23 18:13:04 whats readTimeout and connectTimeout in http connection? Jan 23 18:16:03 purplex88: are you asking what's the value or what's the meaning? Jan 23 18:16:08 thepoosh: nice Jan 23 18:16:18 squ: thanks, kinda proud of it Jan 23 18:16:26 even though I still hate UI Jan 23 18:16:38 thepoosh: radio buttons are not in vertical position Jan 23 18:17:00 text is black Jan 23 18:17:30 date selector bullet is lighter gray Jan 23 18:17:35 thepoosh: in curl, i only used have connecttimeout but readtimeout is new. can i set both to 15 secs? Jan 23 18:17:54 thepoosh: and date line is not horizontally padded from left Jan 23 18:18:14 thepoosh: date icon is not vertically aligned too Jan 23 18:18:41 squ: refresh Jan 23 18:18:47 thepoosh: photo should have shadow too, since photo button has it Jan 23 18:18:54 i see the padding Jan 23 18:19:39 bottom line does not match colors and is shifted to the left Jan 23 18:20:17 thepoosh: facebook and google prohibit custom text in their buttons Jan 23 18:20:46 squ: refresh the layout to see the original zeplin design Jan 23 18:21:02 not sure you are correct but I'll check Jan 23 18:21:09 do you have a link for that? Jan 23 18:21:15 what link Jan 23 18:21:23 brand guidlines Jan 23 18:21:35 no Jan 23 18:21:42 won't be hard to find Jan 23 18:22:20 hmmm Jan 23 18:22:24 will search Jan 23 18:22:39 I hate it when I need to go back to product and tell them they're bad at their job Jan 23 18:22:48 I am good enough finding bad programmers Jan 23 18:23:08 why, you don't see lines are clearly misaligned and icons too Jan 23 18:23:19 thepoosh: can u tell just meaning..? Jan 23 18:23:43 thepoosh: lines below Email are misaligned how couldn't you notice that Jan 23 18:23:47 purplex88: searching the web tells me there is max-time for that Jan 23 18:24:22 thepoosh, i'm gonna be honnest, not a fan at all Jan 23 18:24:31 adq: of what? Jan 23 18:24:32 lot of symetrical issue, padding, etc + what said squ Jan 23 18:24:38 -_- Jan 23 18:24:51 Do you think that after getting the first thousand downloads the second thousand comes easier? What about first 10 thousand and 20 thousand? Jan 23 18:24:54 haven't you pasted a link of a screen like.. 2 minutes ago Jan 23 18:25:24 20 minutes ago Jan 23 18:25:46 oops indeed, well i said it Jan 23 18:26:36 thepoosh: https://developers.google.com/identity/branding-guidelines#sign-in-button Jan 23 18:26:49 ohhh thanks Jan 23 18:29:10 and https://material.io/guidelines/layout/metrics-keylines.html#metrics-keylines-baseline-grids Jan 23 18:29:12 ^ thepoosh Jan 23 18:29:19 (but not this specific page in particular) Jan 23 18:29:39 if you consult this page daily across monthes of work on your android projects, you will become pretty familiar with it Jan 23 18:31:29 * raoul11 thepooshes thepoosh Jan 23 18:31:38 yo Jan 23 18:31:50 sup Jan 23 18:34:07 Did they really remove mediaRouteSpeakerIconDrawable styles and friends in support lib 24.2.0???? Jan 23 18:36:59 To encourage users to click the button, we recommend the call-to-action text "Sign in with Google" or "Sign up with Google". It should be clear to the user that they are signing in to your app or signing up for your app with their Google credentials, not signing up or registering for a Google account on your app. Jan 23 18:37:14 squ: doesn't say I can't use the stupid text i got Jan 23 18:37:23 right Jan 23 18:37:59 so I have to stay with it Jan 23 18:38:30 better keep “Sign in with Google” Jan 23 18:39:55 I thought Google had strict guidelines on what you could say there if you were using their login system? Jan 23 18:40:51 they do Jan 23 18:41:00 if u use their G icon Jan 23 18:41:40 squ: https://en.facebookbrand.com/assets/f-logo Jan 23 18:41:47 nothing against it here either Jan 23 18:42:11 s73v3r: seems it's not that harsh anymore Jan 23 18:42:16 not sure what that means Jan 23 18:43:16 right Jan 23 18:43:19 > Don’t modify the "f" logo in any way Jan 23 18:45:08 "f" stayed the same way and color Jan 23 18:45:10 no? Jan 23 18:47:04 well, the rules are only about logos Jan 23 18:50:01 fine, adq passed the ticket back to product Jan 23 18:50:10 hopefully they'll revisit Jan 23 18:53:04 should count how much total time it take to make it properly Jan 23 18:53:16 including revisits and returns Jan 23 19:11:47 why do I get a Nullpointer in this: https://nopaste.me/view/bdaf0374 the same code is working on my MainActivity ? Jan 23 19:13:49 read your stack trace Jan 23 19:14:44 s73v3r: yes this-> NullPointerException ? Jan 23 19:14:52 no, the whole of it Jan 23 19:14:57 it will tell you what is null Jan 23 19:15:13 from there, you can look at your code and reason why it is null Jan 23 19:15:25 its: double latitude = gps.getLatitude(); that is null Jan 23 19:15:32 but the gps in on Jan 23 19:16:07 first off, post the actual stack trace Jan 23 19:16:23 no one is going to comb through the code you pasted looking at what might become null Jan 23 19:16:53 second, just because the GPS is on doesn’t mean you’ve gotten an update from it Jan 23 19:17:48 you are not setting gps to anything Jonathan- Jan 23 19:18:13 yeah, you’ve not assigned gps to an instance of GPSTracker Jan 23 19:18:13 hence it's null in your onCreate Jan 23 19:19:27 s73v3r: this is the whole error: https://nopaste.me/view/2ac8f2ce Jan 23 19:20:31 yes the gps is set in the emulator, and it also working in the MainActivity, but not in the RegisterActivity Jan 23 19:21:29 it’s not set in that code you just posted Jan 23 19:21:40 you are never assigning anything to the field ‘gps' Jan 23 19:22:05 he thinks it's magical global between activities Jan 23 19:22:48 ahhh okay I think I found the error just a sec :) Jan 23 19:23:56 https://android-developers.googleblog.com/2017/01/android-instant-apps-starts-initial.html Jan 23 19:24:06 hello Jan 23 19:24:14 I'm searching for what class android:button attribute belongs to Jan 23 19:24:46 I've tried to figure out where I could find the documentation for a particular attribute, Jan 23 19:25:07 I've tried to type android:button in search typing area in developer.android.com/reference website, but it doesn't return any related results Jan 23 19:25:27 Any ideas? Jan 23 19:25:59 https://developer.android.com/reference/android/widget/Button.html Jan 23 19:26:03 I’m 90% sure there is not an attribute called button Jan 23 19:26:08 extends TextView Jan 23 19:26:47 meaning it's attributes not listed there are inherited from it's parents Jan 23 19:27:24 I've searched for in both textview and button reference Jan 23 19:27:40 also View, etc..... Jan 23 19:27:50 there is not an attribute named button Jan 23 19:27:58 there is a Class named Butotn Jan 23 19:28:27 uhm, I understand, so that's a mistake Jan 23 19:28:28 Butotn extends TextVeiw Jan 23 19:28:51 if someone has used it as attribute of an object Jan 23 19:29:00 yes Jan 23 19:29:12 unless for some reason, you’ve declared it yourself Jan 23 19:29:13 I understand Jan 23 19:29:21 ok Jan 23 19:44:30 Hi! Jan 23 19:44:40 This code should display a notification or it needs something more? Jan 23 19:44:41 https://gist.github.com/Iarfen/076504a65df174359d916dd9d6056d83 Jan 23 19:47:21 its enough. you dont need display it from service, you can try with button click in activity Jan 23 19:48:22 also you might want to use NotificationManagerCompat if you plan to support older devices as well Jan 23 19:51:04 It's possible to send a notification when the application starts? Jan 23 19:51:42 yes Jan 23 19:59:47 How I can access the console inside my mobile app? I want to see what android.util.Log gives Jan 23 20:01:03 do you use android studio? Jan 23 20:01:10 Ashiren: yes Jan 23 20:01:44 there sould be android monitor at the botto Jan 23 20:03:14 or if you want the geek way, in terminal type: adb logcat Jan 23 20:04:48 Ashiren: thanks! Jan 23 20:04:55 Which reasons can be for not seeing the notification? Jan 23 20:05:48 you need .setSmallIcon() Jan 23 20:06:00 i wonder if there was something else needed Jan 23 20:06:03 Without setSmallIcon there won't appear a notification? Jan 23 20:06:51 try it. you can use R.mipmap.ic_launcher for it if you have Jan 23 20:09:52 Iarfen, there is a high discrepancy with notificiations UI, depending the android version where your notif spawn and what setters you used, best is you play and familiarize with it first anyway Jan 23 20:33:30 when i add an image asset in android studio from a .png to save in drawable folder why does it turn grey? Jan 23 20:54:45 purplex88: Are you talking about when it is on the device or when it is android studio? Jan 23 20:55:31 atbe: it saves them as grey box Jan 23 20:55:53 that doesn't answer my question Jan 23 21:02:06 my app runs a JS interface in one of the activities with a method that invokes the DownloadManager. I am attempting to implement a permission runtime for WRITE_EXTERNAL_STORAGE and im a little curious about the callback.. Is there a way I can programmatically call my JS interface method without actually interfacing with JS?... does that make sense? The page being interfaced asks the user to... Jan 23 21:02:08 ...download an attachment, which fires the JS iFace method, which calls the permission runtime, then in the callback I want to re-launch the JS iFace method Jan 23 21:03:56 Hey guys is there any listener that listens for view size changed? I found OnLayoutChangeListener but I think this is not only for size changed Jan 23 21:30:37 to what end Jan 23 21:34:53 holy fuck media router dialogs Jan 23 21:35:39 Mine, for some reason, have an +id/title with no text, so it is just extra empty space, AND the dialog's special title "Cast to..." Jan 23 21:37:04 ayy lmao Jan 23 21:43:36 explodes, i gave up on remote view with google cast :( too many issues Jan 23 21:44:07 performance like 5FPS on a low-end wifi network if not disconnecting or flashing Jan 23 21:44:39 and few other surprises i'm not even debate Jan 23 21:44:42 going to* Jan 23 21:55:26 hi Jan 23 21:55:45 do you know how I can enable the android-studio eclipse compatiblity mode? Jan 23 21:55:59 so some shortkeys are the same like in eclipse? Jan 23 21:56:23 i believe it’s under preferences Jan 23 21:57:01 Preferences->Keymap Jan 23 21:57:25 found it, thanks :)! Jan 23 22:02:54 wtf hasn't my phone gotten an ota for 7.1.1 yet... Jan 23 22:47:47 Anybody want to help me out with an IntentService? Jan 23 22:49:00 please just ask your question, instead of asking to ask Jan 23 22:49:07 if someone can help, they will Jan 23 23:04:47 anyone who played with TextureView and setDefaultBufferSize to set a downscaled resolution? it works properly the first time it is set like inside onSurfaceTextureAvailable, but once I pause and then resume, onSurfaceTextureAvailable is never called again (no need) but the textureview is not keeping the downscaled ratio and the only way to re-apply it is an ugly hack with a postDelayed of few ms (or more) to call again setDefaultBufferSize and see the Jan 23 23:04:50 downscaling being indeed reflected well? Jan 23 23:06:44 (the issue is not happening with a surfaceview with its corresponding call (setFixedSize) because the surfaceview lifecycle is happening as expected after onpause & onresume) Jan 24 00:07:34 hm. should i maintain my own back stack with FragmentManager.addOnBackStackChangedListener or should i try to use tags and getBackStackEntryAt().getName() ? Jan 24 00:09:52 so i got sick of trying to get ecplise to work, and android studio is just too slow, so ive downloaded IntelliJ IDEA and it runs good and so far no real problems with it, Anyone got any complaints for using IntelliJ IDEA as a IDE ? Jan 24 00:19:50 Anyone idea why the edit text is no aligning properly to the top? https://www.dropbox.com/s/3fivw3ug8wlwphx/EditText%20Not%20Aligned.gif Jan 24 00:21:24 its the same emulator as in design layout Jan 24 00:21:41 never happened before. Jan 24 00:22:56 purplex88: Add `android:gravity="top"`. Jan 24 00:23:08 Also, why are you using `fill_parent`? That's been deprecated for years. Jan 24 00:24:00 mewn: Is IntelliJ faster than Android Studio? I haven't used IntelliJ for years, but that surprises me. Jan 24 00:24:48 YouCallItFar: Why are you wanting to maintain your own back stack? I thought FragmentManager did all that for you. Jan 24 00:24:50 Tacticaljoke: yes i can load up the IDE with no lag problems or nothing Jan 24 00:24:57 I'm just curious. Jan 24 00:25:22 Its not even using up half a gig of ram to load up and run lmao Jan 24 00:25:54 mewn: As for whether it's viable for Android development, from what I hear, it definitely is. Jan 24 00:26:14 I think the only drawback is that Android features hit Android Studio before they hit IntelliJ's plugin. Jan 24 00:26:35 Awesome Jan 24 00:26:37 TacticalJoke: this only happens with edittext widget? Jan 24 00:26:47 purplex88: It also happens with TextView. Jan 24 00:27:13 It happens with stuff such as RadioButton too. Jan 24 00:27:18 yeah compared to android studio this is running thousands times better and it even allows me to make and work on android studio projects and complie them with gradle Jan 24 00:27:35 like wth do i need AS for haha? Jan 24 00:29:31 On the plus side, IntelliJ also gets some features before they hit Android Studio. Jan 24 00:29:52 One example is font ligatures. Jan 24 00:30:26 mewn: https://www.reddit.com/r/androiddev/comments/4auk6f/are_you_using_plain_intellij_instead_of_android/ Jan 24 00:30:33 i just needed something to get started programming android games to start learning :) Jan 24 00:31:00 TacticalJoke: it didn't: https://www.dropbox.com/s/9u2bbd1pdsqwm1n/TextView%20Aligned%20Automatically%20to%20Top.png Jan 24 00:31:09 thats why i never noticed Jan 24 00:31:32 purplex88: That's because it has a `wrap_content` height. Jan 24 00:31:41 Try `match_parent`. Jan 24 00:32:00 Or `200dp`. Jan 24 00:32:24 Oops, actually, you're right. Jan 24 00:32:31 I've been working with EditText so much lately. Jan 24 00:32:58 yes didn't happen Jan 24 00:35:59 purplex88: FWIW, this is why EditText does it and its parent TextView doesn't: https://android.googlesource.com/platform/frameworks/base/+/master/core/res/res/values/styles.xml#533 Jan 24 00:37:08 That style gets applied to all EditTexts. Jan 24 00:40:22 good to know Jan 24 01:09:56 TacticalJoke; because FragmentManager doesnt give you the actual Fragments from its back stack without them being named Jan 24 01:10:37 just gives you BackStackEntry which doesnt have a Fragment Jan 24 02:01:32 I can read the file using: InputStream inputStream = openFileInput("myfile.txt"); but cannot find where its saved on the emulator device using file manager search. Jan 24 02:03:06 i think its written in internal storage. Jan 24 02:05:02 purplex88: It's probably in `/data/data/app_id/files`. Jan 24 02:05:24 Use `adb shell`. Jan 24 02:22:35 thx **** ENDING LOGGING AT Tue Jan 24 03:00:01 2017