**** BEGIN LOGGING AT Tue Oct 11 02:59:58 2016 Oct 11 03:54:11 Hi, in Android Studio, how do I invoke a .mk (ndk) makefile from CMakeLists.txt ? The lib I want to build with my app only ships with a .mk and I don't want to just copy its list of files (that could go out-of-sync whenever I upgrade that lib) Oct 11 04:19:37 I'm having an issue with using the native SIP stack in android, it seems to take over the volume control. I've been trying to use this.setVolumeControlStream(AudioManager.STREAM_MUSIC) to switch it back but doesn't seem to work. Anyone seen something similar? Oct 11 04:20:17 this is on a different activity after the call has happened. The whole phone seems to be stuck until I reboot Oct 11 04:30:39 Anyone with adsense issue today? Oct 11 04:30:46 0 views Oct 11 07:15:07 I'm trying to use the canvas.drawArc method Oct 11 07:15:14 it results in everything but an arc Oct 11 07:15:27 either a straight line or a rectangle Oct 11 07:15:52 paste the code or gtfo Oct 11 07:17:13 canvas.drawArc(startSemiCircleBounds, 0, pi, true, progressedPaint); Oct 11 07:17:25 I can see that my rect is 40x40 one Oct 11 07:17:33 and pi is just a float of Math.pi Oct 11 07:17:59 progressedPaint.setStyle(Paint.Style.STROKE); Oct 11 07:18:04 and it also has a width Oct 11 07:18:20 this results in a 40x40 rect which is filled Oct 11 07:18:44 where I want a semiCircle with a radius of 20 Oct 11 07:18:52 which is filled Oct 11 07:19:54 Hi all. How can I perform a touch event from x1,y2 to x2,y2 on a View? Oct 11 07:26:18 Siamaster, https://developer.android.com/reference/android/graphics/Canvas.html#drawArc(android.graphics.RectF, float, float, boolean, android.graphics.Paint) Oct 11 07:26:29 you should use degree, not radian Oct 11 07:26:37 you should set usecenter at false instead of true Oct 11 07:27:13 oh!!! degrees! Oct 11 07:27:16 thanks alot Oct 11 07:27:31 this is stupid tho.. degrees sucks Oct 11 07:27:32 your angle was like 3.14° with pi Oct 11 07:27:39 yes :( Oct 11 07:28:19 darn i never know where i should provide degrees and where radians Oct 11 07:28:27 it's always written in the doc Oct 11 07:28:37 who reads docs nowadays Oct 11 07:28:41 ... Oct 11 07:29:40 has anyone successfully added an automated app:uninstallAll to their Run/Debug Configurations in 2.2? Ever since I updated this trick no longer works and I have to uninstall the app manually if I want to test it running for the first time. Oct 11 07:29:50 I mean, if atan2 returns radians Oct 11 07:29:56 why make apis that works with degrees Oct 11 07:31:31 canvas prototypes/functions are in degree in many languages & platforms Oct 11 07:31:48 don't even try to reason or search logic in because "here we have rad, there we should have deg" Oct 11 07:32:16 also converting rad/deg is too trivial to be an issue Oct 11 07:33:25 I just made the same program in iOS Oct 11 07:33:35 so much better apis Oct 11 07:33:40 even if they are much olde Oct 11 07:33:42 r Oct 11 07:34:54 Now you tell me "go back to ioS" but that's not how it works :P Oct 11 08:09:01 I can't imagine a world in which ios development is a thing to back to Oct 11 08:33:35 Hello Oct 11 08:34:25 Is there any reason my app all of a sudden won't work on API 24, my clients can't download the update. They get error -504 Oct 11 08:34:51 hi. i've a problem while debugging my app. It seems that it crashes only if i debug it, not if i run it Oct 11 08:37:46 vegetablesalad19, are you missing applicationId in your build.gradle? Oct 11 08:37:47 LucaS05: probably some threading issue Oct 11 08:40:01 xorgate: how can i get any error message? because i'm stuck, and i need debugging my app obviously :D Oct 11 08:40:15 i'm in the logcat Oct 11 08:40:19 LucaS05: well you gotta look at where it's crashing Oct 11 08:40:48 xorgate: it crashes after the onCreateLoader method finishes and returns the loader Oct 11 08:41:38 I have a List and I use dispatchTouchEvent on them all, but they are executed all directly (in time) how can i make it look like it takes 2 seconds to execute? Oct 11 08:42:55 just delay their injection Oct 11 08:43:40 xorgate: ok, now i see a doInBackground() method error (the first time in 2 days) :/ Oct 11 08:46:31 Mavrik, hmm I don't have applicationId Oct 11 08:47:07 Add it, there's a known issue where Play Services defines a content provider with tdefault name if you don't. Oct 11 08:47:16 And OS doesn't let multiple apps have content providers with same names. Oct 11 08:47:43 So if there's another app for which the dev forgot to add the applicationId on the device, it'll fail to install. Oct 11 09:03:31 hi, are you all getting your adsense stats fine ? Mine seems to have gone on standstill. Oct 11 09:07:41 xorgate: nothing, the app closes itself without any message. I'm using the Loaders API but i feel is more unpredictable than the AsyncTask API Oct 11 09:09:56 There is an unusual silence in my adfeed stats, a standstill for abou 14 hours. Oct 11 09:10:13 Something is wrong... Oct 11 09:29:11 So Fabric has this task "crashlyticsUploadDistributionDebug" but for several reasons I'd prefer to just call distDebug which in turn then calls crashlyticsUploadDistributionDebug. Anyone know how to do this in gradle? Oct 11 09:29:39 Also, I'd like to set ext.betaDistributionGroupAliases = "developers before calling crashlyticsUploadDistributionDebug Oct 11 09:44:28 anyone using admob interstitials? seems a bit slow to load Oct 11 09:46:18 Ok so my app runs on every phone < API 24, but on Android 7 phones I get "Failure [INSTALL_PARSE_FAILED_NO_CERTIFICATES: Failed to collect certificates", and I have applicationId Oct 11 09:47:14 Are there some signing changes in new android 7 ? Oct 11 09:48:19 Error states that app hasn't been signed. But that is not true Oct 11 09:48:39 It is signed and aligned and works on every phone < api 24 Oct 11 09:57:02 http://stackoverflow.com/questions/37035139/install-parse-failed-no-certificates-from-adb-install-using-java-6-android-5-0 did you read this Oct 11 10:09:52 Zharf, yes, but it seems to be something different. Oct 11 10:10:05 My problem is related to v2 signing Oct 11 10:14:46 So last time I was here I was trying to work out how to dynamically resize a gridView that I was using as a table. Oct 11 10:15:01 I managed to pull this off and it worked for a while but now it no longer works in my app. Oct 11 10:15:17 I was using params.height() and then requestLayout() Oct 11 10:15:19 dynamically resize a gridview? Oct 11 10:15:35 Is there some reason why this would no longer work with the latest version of android? Oct 11 10:15:56 yeah, I had it resizing everytime I loaded a different table Oct 11 10:44:47 Lets say I want the image of the flags for all countries in the world. Is it any problem having all this as local images? Or is it better to call it from a server? Oct 11 10:45:11 Im only showing the one from the country you are in. the others will not be used Oct 11 10:51:45 Sourcey, not a problem except if you plan to update regularly the images Oct 11 10:52:01 usually, country flags do not change very often by nature Oct 11 10:57:02 Does anyone use greenDao 3? Oct 11 10:57:15 I'm struggling to get started, the documentation doesn't help much Oct 11 11:03:32 thanks adq Oct 11 11:03:44 I'll keep them local then Oct 11 11:20:29 http://stackoverflow.com/questions/39976069/dynamically-resizing-a-gridview Oct 11 11:20:50 ......... To be more specific about my issue with dynamically changing the height of a gridView Oct 11 11:20:54 :) Oct 11 11:47:57 when populating a recyclerview item, i need to start a task that might take some time. how can i detect that the to-be-populated item has scrolled out of view (and might be recycled) ? Oct 11 11:48:44 hm might just be onViewRecycled Oct 11 11:53:00 Indeed. :) Oct 11 11:55:34 i'm trying to display Play Games avatars, and it might be that i need to fetch the player from the PlayGames service.. will take some time Oct 11 12:49:09 Please tell me I didn't f up. I published Beta app with API 24, just to test it out Oct 11 12:49:27 But my prod version is 22 Oct 11 12:49:42 So now it won't let me upload Beta with API 22 Oct 11 12:58:24 I guess I did Oct 11 12:58:51 This is not cool at all, I put it to beta just to test it out, not to commit all my app to new API Oct 11 13:23:29 vegetablesalad19, I don't know of a limit on api version Oct 11 13:23:40 vegetablesalad19, you'll need to bump your release version for every one you upload Oct 11 13:23:46 vegetablesalad19, maybe that's what it's complaining about? Oct 11 13:23:59 vegetablesalad19, oh; if you went to the new permissions model you may not be able to go backwards, come to think of it Oct 11 13:25:45 dragorn, yes thats exactly what I did :( Oct 11 13:26:13 yeah; come to think of it, you can't go backwards from that I don't think, because it changes how your app gets granted permissions by the system. Oct 11 13:26:18 my app sends request to a server, server generates a .png, app displays it, this works great on every phone we've encountered (25+ models thus far), but the Samsung Note 5 won't display the .png Oct 11 13:26:33 has anyone had an issue where a certain brand/model of phone refuses to display .png? Oct 11 13:26:44 in an app Oct 11 13:29:58 all I can guess is check all your mime types and other generation attributes Oct 11 13:30:06 in case something in the sn5 libs is more sensitive to that Oct 11 13:30:49 png is a pretty fundamental format so i doubt they've broken it device-wide, can you test loading pngs from files? If you grab the png from your server and make it a file and load it, does it work? Oct 11 13:31:10 that would narrow down if it's a) pngs in general, b) the format of YOUR png from your server, or c) something in how your server sends it, i think Oct 11 13:31:30 hello i always have this error in android studio 2.2.1 with gradle 2.1.4, i'm trying to build a sample project, "hello-GL2" this is the error that i have http://pastebin.com/Ki85qbS4 Oct 11 13:31:44 dragorn, yes, I use BitmapFactory.decodeByteArray to unserialize the bitmap, then I setVisibility to .Visible Oct 11 13:31:59 and it works on 25 different models of phones, across a variety of manufacturers Oct 11 13:32:10 it doesn't load the .png's on the Galaxy Note 5 though... Oct 11 13:32:32 azv4, that wasn't really the point of the question though. You know it works elsewhere and not on the note 5. Samsung is, I promise you, not going to change their phone. Oct 11 13:32:57 So you need to figure out why it fails, and then see if you can fix whatever is weird. So you need to figure out - is it your png file format you generated, or is it your server interaction, that samsung breaks Oct 11 13:33:10 dragorn, I never even thought to ask them... I was more curious if someone had seen this problem and knew a solution Oct 11 13:33:26 the server interaction is fine Oct 11 13:33:34 the file is making it to the phone Oct 11 13:33:49 it is either picEnd.setImageBitmap(BitmapFactory.decodeByteArray(bufferEnd, 0, bufferEnd.length)); Oct 11 13:34:00 or picEnd.setVisibility(View.VISIBLE); } Oct 11 13:34:03 that is failing I believe Oct 11 13:34:45 My wild-ass guess is that your png is just subtly wrong in a way that almost nothing cares about, but that samsung has modified libpng - probably to patch a security issue, or to apply a different patch to a security issue than other android vendors did Oct 11 13:34:53 that is, of course, a wild-ass guess. Oct 11 13:35:11 Im down to wild guesses Oct 11 13:35:15 so that is great Oct 11 13:35:18 take a png you know works - like an icon Oct 11 13:35:26 I wish this guy's phone would burst into flames Oct 11 13:35:27 and load it the same way you load your downloaded image Oct 11 13:35:45 ah you're not sitting in front of a note 5, that makes it a lot more annoying. ugh. Oct 11 13:36:11 yea, the app works on every device and emu I've tried it on Oct 11 13:36:13 anyhow - i'd say load a png you know loads fine, like one of your icons, and load it the same way via decodeByteArray. If it works, you know somehow your generated png is slightly weird Oct 11 13:36:20 it works on other Galaxy Note 5's so I'm told... Oct 11 13:36:33 I don't even know how to test this because I don't have a phone that it fails on... Oct 11 13:36:45 oh. if it works on others, too, then that's even weirder Oct 11 13:36:54 I wonder if I should ask him to do a factory reset on his device... Oct 11 13:37:05 couldn't hurt tho it's fairly disruptive Oct 11 13:38:49 someone else had this problem in android studio 2.2.1 with gradle 2.1.4 http://pastebin.com/Ki85qbS4 Oct 11 13:42:36 is this the way I should think ? I want to load the view on to the activity, then run an async task to check the views event dates(past due/Upcoming) , then update the view. ( or just check the dates before the activity loads ) Oct 11 14:09:22 With all source files downloaded and built AOSP takes roughly 200G of space. My MBP can't hold that, so I have setup an external SSD to house and work with it. My question is, are there any benefits to using a VM or Ubuntu box to build and work with AOSP over using an external and building on mac? Oct 11 14:09:57 I can't think of any benefit other than the process might be more straightforward but nothing that makes me believe that I should go the route of setting up a VM or getting another computer. Oct 11 14:11:38 Ping_2_Ur_Pong: This is not really the place to ask such questions. This channel is meant for Android app development, we do not build ROMs here. Oct 11 14:12:03 #android-root might have the answer for you Oct 11 14:12:08 pduin: is there another channel that specializes? Oct 11 14:12:12 didn't know that existed Oct 11 14:12:14 hmm... Oct 11 14:12:36 Ping_2_Ur_Pong: #android-root Oct 11 14:12:36 * Ping_2_Ur_Pong bows Oct 11 14:32:36 is there a way to execute an AsyncTaskLoader instance from a method? kinda like asynctask.execute() Oct 11 14:49:32 hi, if an app uses the on-going status notification icon, if the status text within it needs to be updated, does the icon need to hide and show ? Oct 11 14:59:14 Andre483, no, just post a new notification with the sam eid Oct 11 15:01:33 Please, If there are people here who are working on Accessibility in Android Platform; let me give to you a little feedback. Oct 11 15:03:25 ? Oct 11 15:04:21 The people who use "Negative Colors" as an accessibility feature need to toggle it all the time. Oct 11 15:05:52 Ah, there's practically no devs here that work on Android, writing a bug on Android bug tracker is usually more productive. Oct 11 15:06:22 zerojnt, submit a pr Oct 11 15:06:41 Oh I got :( Oct 11 15:06:49 So, I'm sorry about it. Oct 11 15:07:45 I thought here was a channel where Android platform devs should be here. Oct 11 15:10:37 if they were here, they'd probably be gettin spammed to death Oct 11 15:13:32 lol Oct 11 15:18:30 they used to hang out here. IDK when but they stopped coming a while ago, this was a favorite hangout spot of romainguy for a long time. Oct 11 15:19:14 Is there any command I can run to automatically install only updated packages in the Android SDK manager? Oct 11 15:19:45 command? idk... but in AS it will show all the updated and you can quickly set to update them. Oct 11 15:20:09 yeah, I can load the SDK manager, and do it that way, just wondered if there was a CLI command I could run delayed from boot to automatically update Oct 11 15:21:01 not that I am aware, nor would I auto do that. I don't personally share the opinion that you always just update software when there is a new version. I think you have to give it time to find out what the new fuckups are. Oct 11 15:22:42 looks like "android update sdk --no-ui" Oct 11 15:22:49 http://tools.android.com/recent/updatingsdkfromcommand-line Oct 11 15:23:52 Ah, I found that command Oct 11 15:24:01 and like that one says, it has a tendency to just install everything Oct 11 15:24:02 Is there a place where I can get the current locale to use with String.format() in Android? Oct 11 15:24:07 but that page also has a wsolution to that Oct 11 15:24:14 use the --filter Oct 11 15:24:36 yeah Oct 11 15:25:01 getReources().getConfiguration().locale Oct 11 15:25:43 Ping_2_Ur_Pong: thanks! Oct 11 15:26:57 "Samsung Sent us a "Note 7 Return Kit" with a Thermally-Insulated Box and Safety Gloves" lol Oct 11 15:27:36 heh at some point shippers were refusing to ship the units for return Oct 11 15:28:44 lol g00s Oct 11 15:30:49 i want one of those boxes ! Oct 11 15:30:58 Are samsung replacing the Note 7's with alternate phones? Oct 11 15:31:31 Ping_2_Ur_Pong: more exactly: http://stackoverflow.com/a/39639103 Oct 11 15:35:54 g00s: your statement made me think of the opening to The Simpsons where Homer is handling the radioactive thing Oct 11 15:35:57 :-D Oct 11 15:36:18 ha Oct 11 15:36:29 they should give you tongs and mask too Oct 11 15:36:41 only if you bring it on a plane :) Oct 11 15:40:43 i just saw the news Oct 11 15:40:47 http://www.theverge.com/2016/10/11/13202608/samsung-galaxy-note-7-discontinued Oct 11 15:41:13 hi. is it possible to get a reference to another viewHolder in the RecyclerViewAdapter? Oct 11 15:42:03 LucaS05: from what i know, not directly Oct 11 15:42:10 best bet would be to store them as they get created Oct 11 15:42:47 we had a similar problem in an app, we solved it by only storing the ViewHolders when they got bound to reduce the memory usage Oct 11 15:44:09 xximjasonxx: i see. anyway this is what i'm doing: http://pastebin.com/G22B1VUj the problem is the setVisibility method is called on the wrong itemHolder instance becuase of the position change (i'm putting the adapter's item at the top when they're selected) Oct 11 15:44:30 adapter's items* Oct 11 15:45:47 LucaS05: what method is that code called in Oct 11 15:45:58 onClick Oct 11 15:46:31 xximjasonxx: http://pastebin.com/cFTmKtxK Oct 11 15:54:52 xximjasonxx: i think it could a memory problem to save the viewholders Oct 11 15:55:03 i mean if you have thousands of them Oct 11 16:03:13 I'm uploading my Reddit client to Google Play for the first time. Should I pick High Maturity for 'Content rating', or is that asking for issues? Oct 11 16:03:34 I seem to remember reading that someone got their app removed after giving the wrong answers in the survey thing. Oct 11 16:06:17 LucaS05: It's hard to help with so little code. :S Oct 11 16:08:14 hey TacticalJoke :D Oct 11 16:08:16 TacticalJoke: yeah i know, i'm trying some little things Oct 11 16:08:25 Hey, g00s! Oct 11 16:08:38 little code ... little things ... little problems ... little help Oct 11 16:09:10 TacticalJoke when you look out the window over there, do you see anyone running down the street with a burning phone ? Oct 11 16:09:43 this years burning man festival should just be a monument to the S7 Oct 11 16:11:07 hmm how do I invalidate a vector drawable's bitmap cache Oct 11 16:11:19 I want to use one twice at different sizes Oct 11 16:12:14 so like it scales perfectly when I call setBounds as long as it is not used elsewhere at a different size Oct 11 16:12:17 g00s: Haven't seen one yet. It might be welcomed, though, because we seem to be in winter already. Oct 11 16:13:17 TacticalJoke: this is the code: http://pastebin.com/06vwDr1J menuList is the dataset. I'm trying to move the current item to the top of the recycler view. Oct 11 16:13:31 nothing so special Oct 11 16:13:54 i've tried with notifyItemRemoved but obviously is not the right method to call Oct 11 16:14:11 because it removes the item, but doesn't add it to the top Oct 11 16:14:14 oh man, this is weird. the latest version of AS downloads ConstraintLayout into a new / separate m2repository tree inside /extras Oct 11 16:14:45 it used to put it in extras/android/m2repository Oct 11 16:15:20 i hope they figure this shit out soon; they need to host a m2repo somehwere with everything Oct 11 16:15:35 (so now there are 3 m2repository trees) Oct 11 16:17:24 LucaS05: Only had a quick look (seriously multitasking), but I think you should be calling notifyItemChanged in onClick and then, in onBindViewHolder, calling setVisibility. Oct 11 16:19:02 Basically, you have to update the data and then tell the adapter "the data has changed". Then you set the visibility. Oct 11 16:19:55 now I am experimenting with setting a tint on the vector which seems to invalidate the cache Oct 11 16:22:21 although maybe I can just call mutate? Oct 11 16:29:28 TacticalJoke, here u r, "ad problematic 2.2.0 gradle - roll back to 2.1.3 did the trick an my case too Oct 11 16:29:42 bolovanos: 2.2.1 fixes it for me. Oct 11 16:29:50 it is out? Oct 11 16:29:51 brb Oct 11 16:30:19 Yeah. Oct 11 16:30:46 I signed up to those bug discussion on issue tracker, but nothing alerted me at all Oct 11 16:30:57 thx for info Oct 11 16:31:47 so what was the root cause of this issue? Oct 11 16:31:58 TacticalJoke, btw - have u seen any why's on that topic? Oct 11 16:32:03 bolovanos: Do you have a link to that bug? I don't have it anymore. Oct 11 16:32:04 s73v3r, :) Oct 11 16:32:05 Which topic? Oct 11 16:32:17 gradle 2.2.0 topic Oct 11 16:32:18 sec Oct 11 16:32:21 Oh, the bug. Haven't looked at it in a while. Oct 11 16:33:14 https://code.google.com/p/android/issues/detail?id=215748 Oct 11 16:34:51 Thanks. No update Oct 11 16:35:23 Google Trips is weird, like its out of sync with Inbox Oct 11 16:35:24 :( Oct 11 16:36:07 yeah - nothing Oct 11 16:37:40 xximjasonxx: TacticalJoke i've solved with this http://pastebin.com/Z0smnPYs calling the two notify methods in that order Oct 11 16:38:11 the reference to the holder object is correct Oct 11 16:42:55 I'm trying to learn MVP Oct 11 16:43:05 Where do remote requests happen? Oct 11 16:43:10 In the presenter? Oct 11 16:43:23 * sudhirkhanger is completely lost on how to begin with testing. I have to learn to write connected tests (Intrumentation, I think?) AsyncTask class for my Udacity project. Oct 11 16:44:30 So my View is calling presenter.loadItems but where should the code for the request actually happen? Oct 11 16:47:34 AKK9: Idealy, you’d have a Repository object that the presenter can access Oct 11 16:47:52 that Repository would decide whether it needs to make a web request, or already has the stuff loaded Oct 11 16:48:32 hey guys Oct 11 16:48:39 Melatonina: https://www.tmdev.pro/post/playersandroid/ Oct 11 16:51:26 s73v3r: Thanks, so where do I do stuff like filtering/sorting results? Oct 11 16:51:36 is this still issue - or I should look harder for a solution? http://stackoverflow.com/questions/28241380/applying-appcompat-theme-to-individual-preferences-in-a-preferencefragment Oct 11 16:51:42 there are a thousand different answers to that Oct 11 16:51:57 you’re gonna have to experiment and see which one works best for you Oct 11 16:52:23 s73v3r: Hmm yeah, I just want a very general rule to follow whenever I ask myself "where does this code go?" Oct 11 16:52:29 there isn’t one Oct 11 16:53:50 DelphiWorld: hi! Oct 11 16:53:58 hey Melatonina ! Oct 11 16:54:01 s73v3r: What would you do? Oct 11 16:54:09 i haven’t thought of it Oct 11 16:54:20 DelphiWorld: thanks for the overview. I think I'll use ExoPlayer Oct 11 16:54:20 dude, you are going to have to think for yourself sometimes Oct 11 16:54:58 :) Oct 11 16:55:07 s73v3r: I have been but no point reinventing something that's been done before Oct 11 16:55:11 Melatonina: exo ... exo is awesome, but if you want to use rtmp or rtsp links i recomand vitamio Oct 11 16:55:34 AKK9: there are a thousand different ways to do MVP Oct 11 16:55:46 DelphiWorld: are rtmp and rtsp for streaming? I don't think I need streaming but I'll keep that in mind Oct 11 16:55:52 there is no “reinventing” here Oct 11 16:56:49 I guess the presenter shouldn't contain any Android stuff right? Oct 11 16:56:53 So it can be reused? Oct 11 16:56:59 ideally, yes Oct 11 16:57:17 and so it can be tested using regular JUnit tests, rather than having to write tests with Android in mind Oct 11 16:57:55 Melatonina: rtmp and rtsp is for streaming, yes. either live or vod. but i strongly recomand "DASH"... Oct 11 16:59:22 Coolio, I'll just work to that for now and not think about it too much Oct 11 17:00:27 TacticalJoke, where did you get that 2.2.1? https://developer.android.com/studio/releases/gradle-plugin.html Oct 11 17:01:47 In `build.gradle`: `classpath 'com.android.tools.build:gradle:2.2.1'` Oct 11 17:01:56 They haven't published the release notes yet. Oct 11 17:02:11 As soon as I updated AS to 2.2.1, it wanted me to update the Gradle plugin. Oct 11 17:04:03 TacticalJoke, AS 2.2.1? That is also not in stable, is it? Oct 11 17:04:12 Yeah, it's stable now. Oct 11 17:04:22 I think it went stable yesterday. Oct 11 17:04:50 brb - I had to provoke it manually ... Oct 11 17:04:52 thx Oct 11 17:18:40 why me?! " AS 2.2.0 -> 2.2.1 | "java.io.IOException: Cannot delete file" Oct 11 17:19:36 question Oct 11 17:19:51 if I call notifyItemRemoved, do I also have to call notifyDataSetChanged Oct 11 17:21:31 Nope Oct 11 17:21:51 thanks SimonVT - i think i see the problem Oct 11 17:33:07 After installing my app from Google Play, if I click the "Foo installed!" notification, my app launches. If I then press Home and launch my app from the launcher, the app opens again but MainActivity.onCreate runs (which shouldn't happen as I pressed Home, not Back, before). Is this a known issue? Oct 11 17:33:20 I get the same with side-loading. Oct 11 17:35:05 Can you pass some arguments to the main activity of an application from the manifest? Oct 11 17:37:13 Answer: http://stackoverflow.com/a/13382866 Oct 11 17:46:40 any one know a simple digits ocr library Oct 11 17:55:40 is there a way to do backtrace() on modern versions of Android ? I would like not to be limited to system backtraces at the moment of crash: for example, on iOS, my app can print the crash backtrace in a logfile, it can also print backtraces when not crashing, and it can send a crash backtrace by email by opening it as a draft in the Mail app. Oct 11 17:56:03 There used to be an API for doing backtraces in apps, some years ago, but it doesn't work anymore. Oct 11 18:00:11 matju: Log.getStackTraceString(new Exception()) ? Oct 11 18:00:30 Melatonina: sorry, I'm talking about C/C++. Oct 11 18:00:59 you really should say that upfront. this is an Android channel. The default is to assume Java Oct 11 18:01:21 yeah, I know. Oct 11 18:05:06 ugh, androidxref doesn't index tools/base Oct 11 18:07:08 https://android.googlesource.com/platform/tools/base/+/gradle_2.2.0/sdk-common/src/main/java/com/android/ide/common/res2/DataSet.java#414 Oct 11 18:07:25 I don't understand, why is the file getting skipped if its real timestamp is newer than what's indexed by the resource merger... Oct 11 18:08:21 I added some tags to the main activity declaration in the application manifest. I'm trying retrieve it but applicationInfo.metaData is null. Do you have any idea? Oct 11 18:08:36 Is there another way to pass information from the manifest to an activity? Oct 11 18:09:49 Hi. I have noticed that my android game is installed by one-two new people daily and then it is uninstalled. The game has pretty basic colourful pixel graphics and it's pretty hard to play at first. Do you have any tips for making them stay? Should I make the game overally easier? That was the biggest gripe people had it with when I showed them it. Oct 11 18:10:35 (and by pretty basic I mean it shouldn't really be put into the wild) Oct 11 18:12:50 karkoon: what if your game just sucks? Making it easier would just yield a easy game that sucks. Did you think of that? Oct 11 18:13:06 Melatonina: well I know that this game sucks really bad. Oct 11 18:13:14 karkoon: :D Oct 11 18:13:17 I was just curious why people are installing it Oct 11 18:13:26 and then immedially uninstalling Oct 11 18:13:43 because they don't know that it sucks until they installed it Oct 11 18:13:55 you should advertise this feature Oct 11 18:14:12 Do you have other analytics in your app? do you know how far they get into the game? Oct 11 18:14:14 karkoon: I'm joking Oct 11 18:14:15 (I don't know if they are doing it immediately because I don't have analytics) Oct 11 18:14:40 any analytics Oct 11 18:14:53 except the ones provided by developer menu Oct 11 18:15:06 unfortunately without those, it makes it really hard to determine where people are getting stuck unless you watch them Oct 11 18:15:53 s73v3r: hm... okay. I'll try to implement them someday. (maybe in few months, when there will be a winter break) Oct 11 18:17:07 oh, MergeResources task doesn't write timestamps... Oct 11 18:17:09 ugh Oct 11 18:17:22 karkoon i'd do it asap. momentum is key. if engagement is low, and people are uninstalling, you could wind up in the tar pit of despair (low ratings) which is hard to climb out of Oct 11 18:18:31 g00s: no time really. School. And I'd have to re-learn my messy code and try to add something I didn't think of adding. Oct 11 18:19:06 if you don’t have time for that, then how do you have time for other work on the game? Oct 11 18:19:36 s73v3r: I did it in roughly 8 months. Oct 11 18:19:49 and it is a pretty basic and shitty game Oct 11 18:20:32 here’s a tip: No matter how bad you might think of your own work, never talk that way about it to others, especially those who don’t know you personally Oct 11 18:20:54 if you keep saying that, you’re going to internalize it, and lose all desire to work on that game, or any game at all Oct 11 18:21:51 s73v3r: I'm thinking more along the lines "this is shitty but I'll finish it and then make something better" Oct 11 18:22:14 then you're finished, go make something better Oct 11 18:22:30 even so, don’t present yourself like that to other people Oct 11 18:22:53 They should really make a command in IDEs to just paste a piece of code from StackOverflow directly into your source code and make the simple adaptations. Oct 11 18:22:54 except I have noticed that some people are downloading it and I was wondering if I could improve it a little bit and make them stay or something Oct 11 18:23:35 karkoon: I could download it and review it on Google Play Oct 11 18:24:40 karkoon: if you want to improve it, that’s great, but you need to know what improvements are going to give you the best bang for your buck/time Oct 11 18:24:53 karkoon, you can't make people stay without making it useful/good Oct 11 18:24:55 you’re gonna have to watch people play the game as new Oct 11 18:25:14 you have to realize that 90% of people will install your app to see if it's useful/good in any way, and uninstall it unless it's compelling Oct 11 18:25:25 no matter what, 90% of those people are likely to uninstall Oct 11 18:25:27 s73v3r: yeah, I have heard of that. I inittially thought that this would be the first thing you were going to write. I don't like it because if I'd brag about it too much when it's a pretty bad game then it would show me as someone who doesn't know his own skills. Oct 11 18:25:45 Melatonina: I won't link it here :P Oct 11 18:25:56 you don’t have to say it’s the greatest thing in the world. but don’t sell yourself short Oct 11 18:26:12 pfn: yeah. That's also a thing. Oct 11 18:26:47 s73v3r: but it really isn't anything special Oct 11 18:26:53 doesn’t matter Oct 11 18:26:54 then don't expect people to keep it installed Oct 11 18:27:14 remember, I’m not telling you to hype the crap out of it. I’m just telling you to not put yourself down when you talk about it Oct 11 18:27:15 a game, especially, needs replayability if you want people to keep it installed Oct 11 18:28:14 yeah, if level 2 is too hard, and people bail , you have to know that they never reached level 3 Oct 11 18:28:24 but you need analytics, w/o it you have no clue Oct 11 18:28:48 pfn: It doesn't really have it. The gameplay at 0 points looks identical to the one at 1000 points or more. (And most people won't get past 60 points on the first try.) But that's pretty much the nature of the game. Oct 11 18:29:36 and if you get the hang of it then you can play forever without breaking a sweat Oct 11 18:30:57 Anyways, the suggestion is to ask some classmates who play phone games to try out your game Oct 11 18:31:14 Preferably have them start from downloading it in the store, and just watch over their shoulder as they play Oct 11 18:31:20 karkoon: Link? Oct 11 18:31:41 ideally, you’d have someone else actually facilitating this, as doing it in front of the creator can be intimidating Oct 11 18:31:52 Hm. I think you've made me really think about the flaws of this game. At some point of the development I was "just-make-it-work" and I didn't really think if my first idea is playable. Oct 11 18:32:19 orbyt_: no links :P It's in the rules! Oct 11 18:32:26 (advertising*) Oct 11 18:32:41 Your not advertising, im asking for it Oct 11 18:33:54 s73v3r: I have watched some people playing it. They thought it was too hard and I've seen that they weren't too good at it. Oct 11 18:34:13 orbyt_: is there a way to send a pm? Oct 11 18:34:47 maybe a tutorial level, or easing people into the gameplay is something to look into Oct 11 18:35:04 karkoon: Yes, though im sure others would like to check it out as well Oct 11 18:35:19 orbyt_: eh, okay. https://play.google.com/store/apps/details?id=com.karkoon.grapplinghooknarwhal Oct 11 18:35:42 s73v3r: there's no point in having a tutorial level. There aren't any rules to explain. Oct 11 18:35:42 a tutorial level won't keep users unless there's a reason to keep playing Oct 11 18:35:59 a tutorial level would help ease players into the gameplay, though Oct 11 18:36:06 #1 reason, make a reason for users to keep your app Oct 11 18:36:34 (and as I said, don't expect anything special, good looking, having good gameplay, music, working at all etc) Oct 11 18:36:46 and it sounds like there does need to be something to explain, as people have said it’s too hard. Oct 11 18:37:13 karkoon: I'd clean up the interface a bit Oct 11 18:37:50 s73v3r: maybe I played too much flash games as a kid and I'm too familar with this type of games :P Oct 11 18:38:15 that reminds me of an old arcade game from the 80's where you have to climb cliffs with a grappling hook Oct 11 18:38:31 you always have to assume your players don’t know how to play the game. Make the tutorial/easing skippable, but don’t forget to include it Oct 11 18:38:33 orbyt_: The one in the main menu or the one in the main game? Oct 11 18:38:35 can't remember the name, let me see if google will remind me Oct 11 18:38:44 karkoon: All Oct 11 18:38:48 orbyt_: oh. Oct 11 18:39:15 ji Oct 11 18:39:17 hi Oct 11 18:39:20 hellop Oct 11 18:39:21 hello i have been trying my best to have my device detected on ubuntu 16, running adb devices, appears empty, i did follows instructions from http://askubuntu.com/questions/461729/ubuntu-is-not-detecting-my-android-device I m using samsung Galaxy TAB A any help please ? Oct 11 18:39:30 it was called 'Roc'N'Rope' ! one of my favorite classics Oct 11 18:39:59 afidegnum: after you've plugged your device, if you type dmesg what you can read in the last rows? Oct 11 18:40:32 s73v3r: I think I've seen a libgdx demo showing screens from the game with some text explaining things. Maybe I should do something similar. Oct 11 18:40:37 karkoon: you absolutely need a tutorial or something showing how to play. I just tried it, and died 3 straight times, cause I didn’t know what to do Oct 11 18:40:54 or make iap for making things easier! Oct 11 18:41:10 text only would be a last resort, if you can’t do something in game Oct 11 18:41:31 s73v3r: woah. I really didn't think that this game requires a tutorial. It just didn't come to my mind that something needs explaing. Really. Oct 11 18:41:47 i had no idea what to do going in Oct 11 18:41:55 ryuujin: https://ghostbin.com/paste/rxe79 Oct 11 18:44:03 Hi folks Oct 11 18:44:38 having a small issue with fragments that makes me pull my hair out since last weekend .. Oct 11 18:44:40 Hi olks Oct 11 18:44:51 i wish i had hair :( Oct 11 18:44:58 haha Oct 11 18:45:36 so I have a fragment that contains a tabLayout, with 2 other fragments inside it Oct 11 18:46:14 when I leave the current fragment and re-enter it, upon re-entering the screen, none of the onCreate, onCreateView or onResume are called for the 2 sub-fragments Oct 11 18:46:36 oncreate and oncreateview i can understand Oct 11 18:46:41 from what I found online, it would seem the android system is caching them internally and I could not find a way to update them myself .. Oct 11 18:46:42 but onresume should fire Oct 11 18:46:47 it should Oct 11 18:46:50 but doesnt somehow Oct 11 18:47:01 I have set a breakpoint in thjere Oct 11 18:47:04 nothing .. Oct 11 18:47:07 hrmm Oct 11 18:47:43 best to avoid nested fragments. Google seems to have really dropped the ball on those Oct 11 18:48:09 I can't switch to an activity sadly Oct 11 18:48:35 Make sure you're using the childfragmentmanager Oct 11 18:49:05 They'll get destroyed along with the parent fragment Oct 11 18:49:21 ^^ Oct 11 18:49:48 hmm, I am using adapter = new ViewPagerAdapter(getActivity().getSupportFragmentManager()); Oct 11 18:50:08 Yeah, that's wrong Oct 11 18:50:09 you need the child fragment manager Oct 11 18:50:34 ok, looking for that class and an example now :) Oct 11 18:50:37 thanks for the hint guys Oct 11 18:50:47 Fragment#getChildFragmentManager Oct 11 18:51:13 yup, found it Oct 11 18:51:21 although i don't mind fragments much, if i walk away from them for a few weeks i start forgetting what the hell is going on :D Oct 11 18:51:26 if it works, if you ever get to Timisoara, beers are on me Oct 11 18:51:35 i never know what the hell is going on, im too old Oct 11 18:51:58 cheers guys! Oct 11 18:52:00 it works! Oct 11 18:52:13 AlexandruM cheers, until your next IllegalStateException ;) Oct 11 18:52:19 can't believe I spent over 5 hours on this Oct 11 18:52:25 only ? Oct 11 18:52:32 over* Oct 11 18:52:37 only ? Oct 11 18:52:39 g00s has spent the last 4 years Oct 11 18:52:42 :))) Oct 11 18:52:48 :D Oct 11 18:52:53 android is my life's work Oct 11 18:52:58 g00s : why next IlegalStateException ? Oct 11 18:52:59 its a sad fragmented life Oct 11 18:53:09 does this have implementation issues in the SDK ? Oct 11 18:53:46 AlexandruM these days its OK, some corner cases which will cause problems Oct 11 18:54:09 hopefully I won't run into them Oct 11 18:54:14 its kinda pita that some of the fragment things are sync Oct 11 18:54:17 *async Oct 11 18:54:30 although .commitNow() is nice Oct 11 18:54:36 tbh I find android development refreshing :) Oct 11 18:54:41 compared to what I do at work Oct 11 18:55:07 AlexandruM one piece of advice ; in one fragment, don't go fishing for other fragments. you can only assume (1) the activity is there in some state and (2) if its a child fragment, that its parent is there in some state Oct 11 18:56:01 issue is customer changed the design Oct 11 18:56:07 and wants tabLayout Oct 11 18:56:27 and the way the app is designed, I have a MainActivity that is using fragments Oct 11 18:56:51 redesigning it now to use activities instead of those fragments means a lot of extra work Oct 11 18:56:57 and I need to launch as soon as possible Oct 11 18:56:58 :( Oct 11 18:57:20 perhaps after the launch I can change it, since I will be working on this for another year, maybe omore Oct 11 18:57:21 more* Oct 11 18:57:30 i still wish there was some library that you declared some kind of scene, and it would instantiate the fragments and wire up their listeners to some mediator Oct 11 18:57:52 s73v3r: So I finally got mock locations working with LocationServices.GeofencingApi! Seems like updating to the most recent Google Play Services resolved it. Did realize I was a couple minor versions back Oct 11 18:58:19 can finally get some food Oct 11 18:58:33 thanks again for the help ^^ Oct 11 18:58:39 Possibly was "Bug fixes and improvements in several areas, including battery management and activity recognition." in 9.2 Oct 11 18:58:47 for location module Oct 11 18:59:03 * yiati shrugs at closed source project Oct 11 19:00:30 yiati latest is 9.6 though Oct 11 19:00:47 yeah I guess I was more than a couple minor versions back :) Oct 11 19:08:13 http://android-developers.blogspot.com/2016/10/android-71-developer-preview.html Oct 11 19:09:58 somehow i'm not too excited. i guess i need a pixel Oct 11 19:11:12 working with vr would be cool though Oct 11 19:12:36 besides the API version distribution chart, is there a resource that shows features that are only available starting at version X.X, with perhaps a reference if it is addressed in a support library? Oct 11 19:12:56 not that i’ve seen Oct 11 19:13:47 http://stackoverflow.com/questions/39976069/dynamically-resizing-a-gridview Oct 11 19:14:03 any suggestions? Oct 11 19:14:25 I asked 8 hours ago but fell asleep immediately after Oct 11 19:14:53 thanks s73v3r Oct 11 19:20:55 lol when i open up my navigationview's menu XML, the previewer shows it as an overflow menu with radio buttons Oct 11 19:21:05 is there some kind of hint for this ? Oct 11 19:21:09 (tool hint) Oct 11 19:30:28 holy f adb wireless debugging gets worse and worse every time I use it Oct 11 19:31:52 connecting requires multiple adb kill-server start-server calls, then it hangs while installing the apk and I have to kill AS and restart the tablet and try again Oct 11 19:32:27 the error I keep getting is "cannot connect to 192.168.0.x. No" Oct 11 19:32:51 hey, i have a chromium webview in an android app. when i open this app on a chromebook (ASUS C100P), it doesn't allow me to select any text in the app, either with the mouse or with the touch screen features. any idea off the top of your wonderful heads as to why it might be disabled/not responsive? Oct 11 19:32:59 another is "cannot connect to x as the device actively refused it" Oct 11 19:34:17 hi - I've got an activity that implements LoaderManager.LoaderCallbacks>>, but I'd like to add a second loader that returns items that share an interface with fooclass Oct 11 19:35:10 is it possible to generify the activity to be more like... "implements LoaderManager.LoaderCallbacks>>" instead Oct 11 19:35:15 anyone know how to publish all variants using the maven publish plugin? I keep running into it failing since all variants arn't always built. Oct 11 19:35:30 (assume that the first map uses strings for keys, too) Oct 11 19:35:54 I think I'm fundamentally misunderstanding something here about generics Oct 11 19:36:07 FooClass implents BarInterface Oct 11 19:36:19 rager: Just create two different LoaderCallbacks instead of implementing it Oct 11 19:39:07 ok Oct 11 19:41:56 Somehow a Loader> doesn't count as a Loader>, either Oct 11 19:48:21 code and errors or it didn't happen Oct 11 20:21:51 okay new observation. On a chromebook (ASUS C100P, which has touch screen and trackpad), I have to long-click in order to do normal mouse highlighting stuff. Oct 11 20:22:03 About the same time I have to long-touch. Oct 11 20:22:19 This is webview btw, chromium Oct 11 20:23:06 So that's only in this webview app, elsewhere, like a normal chrome browser, I can highlight as normal. Oct 11 20:30:51 i'm not sure how, but perhaps -webkit-user-select: auto; somehow makes the webview treat all text interaction as touch Oct 11 20:32:13 on machines/platforms that support both touch and click. Oct 11 20:43:10 Is there a possiblity to prevent DownloadManager from deleting all the downloaded files through my app after uninstalling the app? Oct 11 20:43:46 beatbrot hm, i thought i read something about that. maybe the behavior changed between android versions Oct 11 20:44:15 This is the bug I was talking about earlier: http://stackoverflow.com/questions/4341600/how-to-prevent-multiple-instances-of-an-activity-when-it-is-launched-with-differ Oct 11 20:44:25 According to some people, it's existed since API 1. Oct 11 20:44:26 my guess was downloading it and then renaming so downloadmanager couldnt find the file anymore Oct 11 20:45:21 The TL;DR is: If someone installs an app from Google Play, they get a "Foo installed" notification. If you click that, the app opens. If you then click Home and then click your app's icon, MainActivity will be created again and added to the activity stack. Oct 11 20:45:38 Then, when the user presses Back, they go back to whatever activity (perhaps MainActivity) was open before. Oct 11 20:46:12 How do such basic bugs exist for years? :s Oct 11 20:49:03 g00s: Do you maybe have a link for me? :P Oct 11 20:50:53 hi all...the last section of this doc says that I should be able to filter documentation by API level. but i think i either am not understanding or this is outdated? https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels Oct 11 20:51:19 TacticalJoke: Isn't that what the launch mode attribute protects against? Oct 11 20:51:36 oh, nevermind, its on the left side Oct 11 20:52:28 AKK9_: `launchMode` is not enough. Even with `singleTop`, if the user has opened a second activity (e.g., Main > Second) they will still get the duplicate Main (Main > Second > Main). Oct 11 20:52:45 `launchMode=singleTop` will only guard against Main > Main. Oct 11 20:53:01 The `ifTaskRoot` solution seems to work. Oct 11 20:53:09 s/if/is/ Oct 11 20:55:50 question for the room: if you want to display unicode characters in your textview do you straight up use the code in your text or do you use a spannable Oct 11 20:56:06 i am using text, and the sizing is off for the icon vs the rest of the text Oct 11 20:56:51 xximjasonxx: Are you talking about emoji? Oct 11 20:57:59 Note that the characters we're using right now are Unicode characters. Oct 11 20:58:07 arrow Oct 11 20:58:24 → Oct 11 20:58:26 to be precise Oct 11 20:58:28 →↓←↑ Oct 11 20:58:36 first one Oct 11 20:58:43 it just looks really small in Studio Oct 11 20:58:50 and on the device Oct 11 20:58:55 also its baseline aligned Oct 11 21:05:15 i think i am just going to have to do a Spannable Oct 11 21:05:51 or just an image Oct 11 21:06:07 if the arrow is at the beginning of the line, you can do a drawableLeft Oct 11 21:14:46 its in the middle s73v3r Oct 11 21:17:11 xximjasonxx: Just curious of what the use case is here. Oct 11 21:17:26 its a banner at the bottom of the screen to provide a UI hint Oct 11 21:17:40 designers choice, dont want to discuss alternatives, ive already gone to that well Oct 11 21:18:52 I guess there are a few arrows you could try (unless the designer wants that exact one): http://xahlee.info/comp/unicode_arrows.html Oct 11 21:19:12 Otherwise, size spans are the only solution I can imagine. Oct 11 21:19:17 Or multiple TextViews. Oct 11 21:19:55 I haven't tried this on my device, BTW. Maybe even a font change could fix it. Oct 11 21:19:56 i agree Oct 11 21:20:04 he wants a custom font Oct 11 21:20:23 Hmm, maybe that's the actual issue. Oct 11 21:22:21 what i am probably do, as the bevy of smart people here do not seem to have any other ideas, is use a spannable and jack up the font size for the unicode character and use a normal span for the rest of the string Oct 11 21:22:42 that’s generally the solution Oct 11 21:22:47 I was just wanting to see if anyone here had a better idea, maybe i was missing something Oct 11 21:23:04 same thing for when we need the circle-r symbol to be “up high”, yet the font doesn’t do that Oct 11 21:23:25 Note that you don't need two spans for this kind of thing. Oct 11 21:23:27 or if its normal for Android to, appear at least, use a different font size for the unicode character vs the rest of the characters Oct 11 21:23:37 Unless the outer span is needed for another reason. Oct 11 21:23:47 One RelativeSizeSpan or AbsoluteSizeSpan would solve it. Oct 11 21:23:49 TacticalJoke: well its one one spannable, but three parts two that spannable Oct 11 21:23:55 *to Oct 11 21:24:04 two configs though Oct 11 21:25:48 I just tried setting a plain TextView's text to "a → b" on Android 6.x. The arrow does look small. Oct 11 21:25:55 It also looks too low-down, as you say. Oct 11 21:26:05 glad i am not crazy :) Oct 11 21:28:06 maybe i should just use this: https://design.google.com/icons/#ic_arrow_forward Oct 11 21:28:22 ImageSpan it Oct 11 21:49:47 xximjasonxx: hello! How is your app going? Oct 11 21:50:18 its going. every day is a day in paradise :-D Oct 11 21:50:32 :D Oct 11 21:50:59 I wish I had the same enthusiasm about Android development that you have Oct 11 21:51:13 maybe you are taking too much Melatonin Oct 11 21:51:22 clearly IRC masks my true attitude :) Oct 11 21:51:31 with predictable results :) Oct 11 21:52:56 :-) Oct 11 21:53:04 Zzzzz Oct 11 22:05:34 When a navigation view inside a drawer layout closes completely, what happens to it? Oct 11 22:05:39 does its visibility toggle? Oct 11 22:06:10 I have an icon with a translateX=-50dp and clipChildren set to false so that I can draw outside of the parents bounds Oct 11 22:06:29 but as soon as the parent (which is a navigationview) closes completely, the icon disappears Oct 11 22:14:19 building AOSP can be such a PITA. Oct 11 22:38:16 so .setTranslationX seems to work in pixels Oct 11 22:38:25 can I translate my view using a dp value? Oct 11 22:38:33 :q Oct 11 22:38:38 I can do it in xml but in code the method only takes a float Oct 11 22:42:27 orbyt_: http://stackoverflow.com/questions/4605527/converting-pixels-to-dp Oct 11 22:42:57 you can translate dp to pixels Oct 11 22:43:45 orbyt_: http://stackoverflow.com/a/17410076 Oct 11 22:44:14 orbyt_: this latter one shows formulas for translations in both direction between dp and pixels Oct 11 22:45:00 I'm performing a long with AuthenticationAPIClient.login() but I'm not getting any refresh token. Why? Oct 11 22:45:59 how do i prevent an async task from getting executed everytime on back press? Oct 11 22:47:23 back press? Oct 11 22:47:30 Melatonina s73v3r Yea I know I can convert, was hoping there was a method i was missing. Oct 11 22:47:38 thanks though Oct 11 22:48:07 You're welcome though Oct 11 22:48:52 I'm using retrofit for the first time. would someone be able to tell me why I'm getting an empty response? not sure what I'm doing wrong https://gist.github.com/jtrollkarl/38aea21870ea241dec9c383f7f64056c Oct 11 22:48:56 orbyt_: do you know people in the aerospace industry? Oct 11 22:49:01 im doing the call in refreshresponse.java Oct 11 22:49:41 and i get an error at this line: resultsList.get(0).getOriginalLanguage(); Oct 11 22:49:47 I now a few I guess, why do you ask? Oct 11 22:49:59 know* Oct 11 22:55:52 orbyt_: I used to talk with a producer who made documentaries about the aerospace industry and similar things. Oct 11 22:56:35 how do i prevent an async task from getting executed everytime on back press? Oct 11 22:56:41 Well thats cool Melatonina Oct 11 22:57:00 orbyt_: worked with the Space Studies Institute and the Mojave spaceport Oct 11 22:58:03 Oh cool Oct 11 22:58:17 orbyt_: since you make an app that is about communication (news) and space, I thought you two had something in common Oct 11 22:58:36 Apparently =) Oct 11 22:59:16 orbyt_: she had a Space based sim in Second Life few years ago. I don't know if she still has a presence there Oct 11 22:59:57 orbyt_: so she was into new media too Oct 11 23:00:31 well, end of the story :D Oct 11 23:01:14 Melatonina: Never played second life. I know what it is though Oct 11 23:03:40 Melatonina: Actually, does she have any documentaries on youtube? Oct 11 23:07:25 orbyt_: this is an interview to her: https://www.youtube.com/watch?v=TrCaxOf1LEA Oct 11 23:09:29 orbyt_: I guess this is her YouTube channel but I don't think there are long videos there. https://www.youtube.com/user/spaceracenews Oct 11 23:10:38 orbyt_: this was the MIR space station reproduction in her Second Life sim: https://www.youtube.com/watch?v=_3B50QSCfpY Oct 11 23:11:22 Will give it a look, thanks Oct 11 23:11:33 np Oct 11 23:22:01 why is the appcompat-v7 library included in a new project that has a minimum sdk of 24? Oct 11 23:22:07 is it needed? Oct 11 23:23:48 no Oct 11 23:26:06 do the Face recognition API use machine learning? Oct 11 23:26:32 I created a new project, empty activity, and MainActivity extends from AppCompatActivity - I assume this is for future compatability? And that why the appcompat library is needed? Oct 11 23:26:35 the api, no Oct 11 23:26:49 it's for a consistent UI across versions Oct 11 23:26:56 and for the most part, no one ever sets min=24 Oct 11 23:27:41 at least they won’t for another 10 years or so Oct 11 23:27:53 winegoddess: I'd still recommend to use support library, since it got updates more than the system it self Oct 11 23:28:14 if it is an app that does drag and drop between apps, dont need <24 right? Oct 11 23:28:36 MoshDev - oh thats something i did not know yet, thanks Oct 11 23:29:59 winegoddess: Darg & Drop is available on 24 and up Oct 11 23:30:42 MoshDev - yes, that was my example of why minSDK could potentially be 24 Oct 11 23:31:29 An d I appreciate all of your answers, still trying to figure out basics Oct 11 23:38:05 minsdk=24 and you can expect like 1 person to install your app Oct 11 23:43:02 thanks pfn... I was trying to see how the gardle dependencies woudl change and was surprised they didnt Oct 11 23:43:16 it doesn't care what you set your minsdk to Oct 11 23:44:47 nothing to be surprised about Oct 11 23:44:51 project template logic is basic Oct 11 23:45:10 no reason to create a separate template for min=24 Oct 11 23:46:23 pfn this is not a real project. I'm exploring how things work. trying to understand it better. I thought support was if you were trying to be backwards compatible. so i was surprised you would need it if the minimum was set to 24. Just a test. Oct 12 00:25:36 Those on OSx, what do you use to view the contents of an AAR? I'm just using unzip -l. Would rather have a UI like 7ZIP. Not really android related :| Oct 12 00:25:59 so ... i keep circling back to this, like every year or so : i want my app to have help & feedback like google apps do, but i'm lazy and just want to supply some .md files / template (or plain text) and have the whole thing created for me. are there any libs for this ? Oct 12 00:26:16 surf2b1 lol aar files :) Oct 12 00:27:43 surf2b1 you could ask in #macosx, they are sometimes helpful Oct 12 00:27:47 sometimes Oct 12 00:27:47 Youll still have to write the actual help text g00s Oct 12 00:27:54 orbyt_ sure thats OK with me Oct 12 00:28:12 or try ##osx-server Oct 12 00:28:31 but i'm guessing gapps either bundle html and point webview to it, or maybe they go to a real website Oct 12 00:28:58 pretty much 'Help & feedback' for all gapps looks the same Oct 12 00:29:09 there should be some freaking template or something Oct 12 00:29:34 Make a help chatbot :) Oct 12 00:29:45 lol no Oct 12 00:29:55 cmon its easy Oct 12 00:30:50 mhm Oct 12 00:38:03 Hi Oct 12 00:38:21 iH Oct 12 00:38:39 I have an app that creates a folder and stores some files in external storage. I have a button that allows me to view these files, and I'm using if (intent.resolveActivityInfo(getPackageManager(), 0) != null) { to see if the user has a file explorer installed Oct 12 00:39:04 however on my samsung galaxy s6, the default file explorer doesn't return true for this Oct 12 00:39:14 I have to install a 3rd party like ez file explorer or something Oct 12 00:39:28 Anything I can do for that? Oct 12 00:39:38 look specifically for that app Oct 12 00:39:52 unfortunately, Samsung is infamous for needing these kinds of workarounds Oct 12 00:39:53 I imagine it would be different for different vendors though? Oct 12 00:39:58 yup Oct 12 00:39:58 ah okay Oct 12 00:40:11 so would I not need a large list of apps to search for? Oct 12 00:40:15 yup Oct 12 00:40:17 one for samsung, one for lg, one for htc and so on Oct 12 00:40:29 is there anywhere I can find such a list? Oct 12 00:40:33 perhaps multiple for each Oct 12 00:40:37 god... Oct 12 00:40:37 not that I know of Oct 12 00:40:50 what do you do if there is no explorer found? Oct 12 00:41:10 show a toast "Please install a File Explorer application" Oct 12 00:41:15 for now Oct 12 00:41:50 maybe instead you should just show the list of files yoursefl Oct 12 00:42:04 just use saf and call it a day Oct 12 00:42:35 That was an option s73v3r, but wouldn't that be a similar story? Oct 12 00:42:40 having to find the contents of the folder Oct 12 00:43:12 Do you mean to use something like a gridview? Oct 12 00:43:57 or listview or however it would be Oct 12 00:44:10 Yeah either or Oct 12 00:44:20 gridview would look better in this case - its a set of videos Oct 12 00:44:22 filePicker... Oct 12 00:45:02 heh, one of my first rooted prototypes Oct 12 00:45:28 capella-5x: could you elaborate? Oct 12 00:46:05 I understood your last thought as implementing you own filePicker Oct 12 00:46:29 Not particularly Oct 12 00:46:37 asking users to install an app wasn't sounding optimal Oct 12 00:46:51 Yeah, most phones have file explorers Oct 12 00:47:01 the only ones i've encountered that don't are my google tango device Oct 12 00:47:06 and the nexus 7 i believe Oct 12 00:47:22 well, a read-only filePicker perhaps 🤔 Oct 12 00:47:38 but s73v3r said there's no easy way to check for file explorers across all devices Oct 12 00:47:45 right Oct 12 00:48:08 so i'm not sure what the best way would be aside from creating my own file picker Oct 12 00:49:06 pretty simple code, @least mine was Oct 12 00:49:58 sb plenty on github Oct 12 00:55:50 tryign to think of a simple way to open the default file explorer Oct 12 02:06:06 AS 2.2.1 in stable ... wish they fixed the gradle console spamming Oct 12 02:06:38 my builds went to min 20s, i'm, betting its all the shit getting printf'd Oct 12 02:16:02 hi All - Oct 12 02:16:58 why the heck won't my R.layout show me the correct widget name ??? Oct 12 02:17:51 I just do'nt get it - is tere like a namespace or something for these ?? Oct 12 02:20:41 namespace for widget classnames? Oct 12 02:23:43 capella-5x: I am asking - I just don't know what is going on - I added new widget but can't see it. All I can see is my layout file name - eg : the fileName = main_activity.xml then in main all I can see is R.layout.main_actiivy but I can't see the textbox listview etc in main view Oct 12 02:24:22 Your looking for R.id Oct 12 02:24:25 I'm really stuck on this Oct 12 02:24:28 Set an id on your views Oct 12 02:25:29 FFS ... :) thanks man - I'm new to all this and been busting my balls on it Oct 12 02:25:37 mmm... finally caught his middle Oct 12 02:25:57 I'm just glad they fixed the duplicating @+id/ bug Oct 12 02:26:24 i ccan't believe how much time i wasted on that .. shit - thanks orbyt_ Oct 12 02:26:33 No problem. Oct 12 02:27:53 orbyt_: now I get > Error:(27, 40) error: incompatible types: int cannot be converted to ListView Oct 12 02:27:59 so, global dict for views Oct 12 02:28:27 ListView thisthing = (ListView) findViewById(R.id.thisthing); Oct 12 02:28:29 Im gonna assume your not casting, but paste your code fels Oct 12 02:29:15 orbyt_: sorry man its 3:30 am i was not using findbyid .. Oct 12 02:29:26 got that sorted .. Oct 12 02:38:55 so i created a app controller and inhertied from AppConpat - but how can i call it's created method Oct 12 02:40:19 fels: Spend a few hours and take the android course on teamtreehouse.com. It'll have you building full apps in a few hours and will answer these basic questions. Oct 12 02:42:24 or the official udacity course ... Oct 12 02:47:14 ok - just trying to hack somethign together for tomorror Oct 12 02:50:23 lol good luck Oct 12 02:53:52 g00s: :) I know :) - System services not available to Activities before onCreate() <-- But I am calling my service in onCreate(Saved bundle) .. is there an onCreate() <-- parameterless one - I can't seem to see it **** ENDING LOGGING AT Wed Oct 12 02:59:58 2016