**** BEGIN LOGGING AT Fri Jul 08 02:59:58 2016 Jul 08 03:38:45 recyclerview inside scrollview has always height equal 0 :D Jul 08 03:38:55 and I just want it to expand Jul 08 03:46:01 Leeds did you wind up getting a 5X? wait for the HTC sailfish ? Jul 08 04:06:28 I did - it was cheap enough that it seemed worth it Jul 08 04:08:21 it is not Jul 08 04:08:28 Needs more ram Jul 08 04:08:31 and a better cpu Jul 08 04:32:40 adq a nice rack :) https://www.youtube.com/watch?v=X_3ak_lvWmM Jul 08 04:49:58 5x is perfectly worth it Jul 08 04:50:04 other than being an lcd Jul 08 04:55:25 if the new Nexi seem to be decent, I'll pick one up pretty much immediately Jul 08 05:09:50 kin4uc Jul 08 05:12:10 why... I wouldn't unless there's something new and compelling Jul 08 05:12:20 daydream, tango, etc Jul 08 05:17:15 neighbor's car alarm going for 15 minutes ... Jul 08 05:17:45 sounds like every time its turned off, goes back on within 10s Jul 08 05:39:51 In an recent-ish update to the Play Store, app icons are now JPEG'd to hell Jul 08 05:39:54 It's horrible Jul 08 05:40:20 And when you tap it it's just as bad just bigger Jul 08 05:40:27 Oh Google. :( Jul 08 05:51:38 I need to support TLS 1.2 - what is the minimum API level I will be able to support? i.e. a value for minSdkVersion and how do I go about making basic HTTP GET and POST requests? Jul 08 05:52:18 I've been reading quite a lot, and it appears that the two main solutions are to use the Google Play Services or use SSLSocket where SSLSocket appears to support TLS 1.2 as of API level 16 Jul 08 05:52:36 but I can't find particular examples of how to make a basic, e.g. GET request with SSLSocket Jul 08 06:37:42 Does storing application numbers in resource XMLs make it more prone to change them by reverse engineering as opposed to storing them in a class? Jul 08 06:46:23 what do you mean by application numbers? Any value that is stored in code or xml can be reversed with enough time and persistence. If you need something to be secure, look at secure preference manager Jul 08 06:47:41 MisterGadfly: proguard does make it a little harder though. Jul 08 06:47:59 Ping_2_Ur_Pong: not looking for something solid, just to deter most of the n00bs :D Jul 08 06:48:16 Ping_2_Ur_Pong: and I'm trying Proguard right now Jul 08 06:49:03 then proguard will obfustacate so that clears the way from most people, 95% don't give a damn the remaining 4% aren't inclined to read code that is hard to read. Jul 08 06:49:18 the remaining 1% will get past just about anything other than using encryption. Jul 08 06:51:03 Ping_2_Ur_Pong: ugh, using proguard + obfuscation dictionary and apktool still manages to decode the .xmls Jul 08 06:51:42 it will decode them, but they shouldn't have the original names so its hard to understand what anything means. Jul 08 06:52:02 Ping_2_Ur_Pong: nope, it decodes them just as they are in my project Jul 08 06:52:13 hmm... Jul 08 06:53:06 http://proguard.sourceforge.net/manual/usage.html#keepattributes Jul 08 06:53:56 Ping_2_Ur_Pong: already read the obfuscation stuff Jul 08 06:54:14 http://proguard.sourceforge.net/manual/troubleshooting.html#notobfuscated Jul 08 06:55:04 Ping_2_Ur_Pong: don't think it's talking about resource files Jul 08 06:55:15 But anyway, I'll store numbers in my class files Jul 08 07:03:06 is there anything I can do about google tts taking 5 seconds just to start speaking? Jul 08 08:35:00 Hi, how can I fix this problem: "adb server is out of date. killing..."? Jul 08 08:35:50 update your adb? Jul 08 08:36:01 Leeds, yes Jul 08 08:36:13 good, glad that's solved Jul 08 08:36:23 boker Leeds Jul 08 08:36:57 afternoon raoul11 :) Jul 08 08:37:18 hows SE A today? Jul 08 08:38:44 E, not SE... Jul 08 08:39:16 HK isnt SE? Jul 08 08:39:19 nope Jul 08 08:39:28 kk Jul 08 08:39:41 raoul11, u're from Israel? Jul 08 08:39:48 rgr tht somazero Jul 08 08:39:51 someone235 * Jul 08 08:40:22 there's a bunch of us here Jul 08 08:40:42 Boker tov :) Jul 08 08:41:09 boker (: Jul 08 08:41:15 where about in il someone235 ? Jul 08 08:41:26 Kiryat Tivon Jul 08 08:41:30 u? Jul 08 08:42:58 tlv Jul 08 08:44:12 oh look, another ^ Jul 08 08:44:23 nice Jul 08 08:47:09 What's the best way to organise a project where two fragments use methods from a class which also uses methods from the classes as well? Jul 08 08:47:18 *from the fragments as well Jul 08 08:55:19 Hey fellow devs, is anyone experienced with Espresso test? I wanted to know if you try to avoid accessing models within espresso tests and focus just on the views and is it good practice at all to check state of the models while testing UI? Jul 08 09:19:56 Is callback methods the best way to share variables among multiple fragments? Jul 08 09:28:17 hi guys, is there any way to enumerate variables in bootloader if "fastboot getvar all" does not return anything? (except for plain bruteforce ofc) Jul 08 10:36:30 Does Android understand Golang? I have a program written in Go and I would like to port it to run on Android devices. How much work would be involved? Jul 08 10:37:00 plasmoduck: there is a WIP toolkit for android Jul 08 10:37:31 plasmoduck: https://godoc.org/golang.org/x/mobile/app Jul 08 10:37:58 thanks Chloe ;-) Jul 08 10:38:16 It looks like it would require to still write the UI in Java though Jul 08 11:17:49 https://www.kickstarter.com/projects/1606226331/portable-console-for-pc-games-pgs promotes android with a series of fake prototypes and dualbooting with windows 10 Jul 08 11:18:28 Does google strictly disallow dualbooting in a policy somewhere, or is it just something it does? Jul 08 11:27:11 What does this have to do with development? Jul 08 11:27:21 Of Apps Jul 08 11:28:18 LunarEclipse120: I couldnt find a google legal team anywhere, thought someone might point me in the right direction Jul 08 11:28:36 comradekingu: It isn't app dev though. So #android or #android-root Jul 08 11:29:02 comradekingu: Also, there is no "dual-booting". There is something called multi-ROM. I personally don't think Google cares. Jul 08 11:29:07 could try Jul 08 11:44:11 How can I connect to a URL and check if it gives error 403 forbidden (return true/false)? Jul 08 11:46:10 The "403" is called a status code (sometimes response code).. Just include that in your google search Jul 08 11:46:33 best to use HttpURLConnection? Jul 08 11:46:57 Better to use okhttp Jul 08 11:47:43 thats an external library right? Jul 08 11:48:43 Yep Jul 08 11:49:16 On kitkat+ HttpURLConnection uses OkHttp behind the scenes. You're just getting a worse API and an older version Jul 08 11:52:06 Is there any way to set the minimum number of views in a GridAdapter? Basically I want to preload some images even when they are not visible Jul 08 11:52:42 So say I want at least one row above and below the viewport to be loaded, and not recycled Jul 08 11:56:38 hi, i have a flavors and buildtypes. Can i do a conditional(if flavor==test) inside the buildtype to specify a different value to buildConfigField ? Jul 08 11:58:07 Hey guys. I was wondering what the difference is between google's iap v3 and the old way of just adding the "IabHelper","IabException" etc classes? Is it just implementation wise it differs? Jul 08 12:21:02 Hey guys I have given permission for GET_ACCOUNTS but in android 6 it seems to ignore it. Jul 08 12:21:19 I've read something about permission groups, but im not entirely sure where to put them in the manifest Jul 08 12:22:47 You have to explicitly ASK for permissions on Android 6. Jul 08 12:22:54 See the guides on d.android.com Jul 08 12:26:38 I looked trough them i'm just not android savy Jul 08 12:26:48 Using Unity3D to create our games Jul 08 12:27:35 we normally build to android and it works fine, and considering the author of the plugin we are using never replies to our issue we are left to find it out ourselves. Jul 08 12:28:26 btw you mean ask as in the popup you get before starting the app? Jul 08 12:37:52 May I use selector in Style ? I want to change font color when checked and unchecked Jul 08 12:40:26 Is there any way for my app to find out how much energy it consumes? Jul 08 13:22:39 Should I place SVG in drawable folder ? Jul 08 13:30:04 If I give permission to GET_ACCOUNTS with uses-permission shouldn't that be enough? Jul 08 13:31:25 No https://developer.android.com/training/permissions/requesting.html Jul 08 13:31:50 Unfortunately it's a third party plugin Jul 08 13:31:58 i dont have access tot he source code Jul 08 13:32:45 i can't downgrade to sdk 22 as most other aar packs rely on 23 Jul 08 13:32:54 Tough luck Jul 08 13:34:02 Maybe look into not initializing the plugin before you have the permissions or something Jul 08 13:34:07 But you can't change how permissions work Jul 08 13:44:43 hi Jul 08 13:47:42 rocket__: Fix your goddamn internet. Jul 08 13:50:37 anyone here work with the cast sdk before? Jul 08 13:50:41 has anyone run into the 65k method limit ONLY when trying to debug an app? Jul 08 13:51:22 are you running proguard on your release? Jul 08 13:51:38 on release and debug Jul 08 13:52:54 weird. maybe grab one of the methods plugins to see what's being included. Jul 08 13:53:35 I believe instant run adds more methods Jul 08 13:53:48 Might be that Jul 08 13:54:25 SimonVT: you gotta set ban Jul 08 13:54:46 I typed /kickban, didn't seem to actually ban him Jul 08 13:56:01 SimonVT: if that is the case, then that kinda sucks. Jul 08 13:56:17 shmooz: testing on you Jul 08 13:56:21 -.- Jul 08 13:56:29 ok Jul 08 13:56:30 irccloud doesn't ban you either.. Jul 08 13:57:12 Ohh, wait Jul 08 13:58:32 banlist full ;d Jul 08 13:59:22 :O Jul 08 14:04:37 hmm I have a View as overlay on android and I don't get any touch events. Jul 08 14:10:00 is there something I have to do at a view to get touch events? Jul 08 14:22:23 wah ok I have to take TYPE_SYSTEM_ALERT Jul 08 14:22:36 into the layout params Jul 08 14:22:56 but then it catches all touch evens Jul 08 14:22:58 events Jul 08 14:23:02 How can I turn on line numbers in Android Studio? I mean I can right click on the side on code and select "Show line numbers" but when I close the project, they are turned off again. Jul 08 14:24:03 I have to turn them on manual for every file in project every time Jul 08 14:24:07 settings/editor/appearance Jul 08 14:24:31 file/settings/editor/appearance Jul 08 14:24:42 I searched for the settings menu for a while :-P Jul 08 14:25:47 I don't see it there Jul 08 14:25:53 wah I shouldn't have done it Jul 08 14:26:02 because it disabled font kerning Jul 08 14:26:05 in the whole editor Jul 08 14:26:11 its there. Jul 08 14:26:32 Ah wait on "editor" Jul 08 14:26:38 Use the search function, it highlights the setting Jul 08 14:26:44 there's another "apperance" on top Jul 08 14:26:47 http://i.imgur.com/45DtAmt.png Jul 08 14:28:23 Yes it works Jul 08 14:28:41 I restarted the studio just to prove it works Jul 08 14:28:47 yep it does Jul 08 14:30:20 Why are there two settings anyway? another one is "default settings" and one is just "settings" Jul 08 14:30:34 on File menu Jul 08 14:31:11 oh I see Jul 08 14:31:16 so its all about configuration Jul 08 14:31:33 and customizability Jul 08 14:31:40 sorry wrong forum Jul 08 14:32:35 whatever I return from my onTouchEvent override (true or false), it won't pass it towards the lower level applications Jul 08 14:33:09 how can I have an transparent overlay, that reacts on input but only locally? Jul 08 14:33:34 I want to create a kind of joystick for an existing game. Jul 08 14:35:33 If I am not wrong "File > Settings" apply to current project Jul 08 14:36:31 So but I changed line numbers from "File > Settings > Editor" does it mean it applies to current project? Jul 08 14:41:32 its global ide settings, not project settings Jul 08 14:45:08 raoul11: I thought global was "default settings" Jul 08 14:46:11 I'm an android noob, I'm trying to convert listactivity as a listfragment, I was wandering if I did it correctly. http://pastebin.com/cUUfi5XC Jul 08 14:46:25 here is the listfragment, http://pastebin.com/02nWcMtN tlist in async is custom row for listview Jul 08 14:46:45 raoul11: where are the project settings? Jul 08 14:55:37 can someone help, I'll even pay for your time. Jul 08 15:02:17 DarkChaoz: what's the problem? Jul 08 15:02:22 DarkChaoz: That's covered by the "no advertising please, jobs or otherwise" rule Jul 08 15:03:15 oh, does anyone, know about any other development help channel? So I can get better assistance? Jul 08 15:03:43 I only come across this one, but this turns out to be very helpful at all in my experience. Jul 08 15:04:12 None on IRC that I know of Jul 08 15:05:33 There's always stackoverflow Jul 08 15:05:55 I tend to prefer IRC than stackoverflow, Jul 08 15:06:24 I'm just trying to see whether I done the listfragment correctly from my simple listactivity code Jul 08 15:11:10 i'll just leave, its clear that novices doesnt get much assistance in these channels, which is ashame. Jul 08 15:11:15 good day al Jul 08 15:20:50 sigh. I'm at work myself. sorry for not having time to answer you in five minutes... Jul 08 15:22:46 not interested in solving issues that are covered at length in a variety of forums (Udacity, general tutorials, etc) Jul 08 15:23:03 half brainded today, wondering why ctrl + / doesnt uncomment, 5 min's later figuring out im on the wrong windows language Jul 08 15:24:37 Wow, I've noticed people on here are pretty impatient Jul 08 15:24:57 Looks like DarkChaoz has left Jul 08 15:25:16 Hello to everybody! Jul 08 15:25:28 Hola Jul 08 15:26:27 so many bans /: Jul 08 15:26:47 I would like a totally newbie question, I know it is silly but I am stuck with it for quite a while, and dont know what to do Jul 08 15:26:54 These were 4 years old Jul 08 15:26:59 lol Jul 08 15:27:06 I can't see any of them Jul 08 15:27:19 Relay client on Elementary \o/ Jul 08 15:28:00 tothbalint just ask Jul 08 15:28:10 if anyone knows/cares ull get an answer Jul 08 15:29:01 I am working on an app that parses and displays data from a json array. In the data I have 2 types of objects, but dont know if my thinking is right. It is like a book checkout system, from 2 database tables, one is the details of the book and the others are checkouts, who, when where did check out the book Jul 08 15:29:15 so it is a one-to-many connection in mysql Jul 08 15:29:48 so 1 book can have many number (and unknown number) of checkouts Jul 08 15:30:17 how is this android specific Jul 08 15:30:57 tothbalint: with that type of relationship, i think it would be best to have a separate route for checkouts -- not android related, however. Jul 08 15:31:13 I have created the 2 objects that correspond to the data, and I have connected them as Book has List mCheckoutList Jul 08 15:31:36 this is a basic data modeling problem Jul 08 15:32:10 i still don't know what the question/problem is Jul 08 15:33:06 I get the book and the checkout data in the same json object, so I thought this would be a good idea to try it this way, I am trying to add items in an AsyncTask, but I am having trouble with adding the checkouts to the Book object Jul 08 15:34:20 in Book I have created private List mCheckoutList; Jul 08 15:34:51 what's the problem exactly? is your list not getting populated? please be as specific as possible. Jul 08 15:35:36 and trying to add with public void addCheckout(Checkout combination) { Jul 08 15:35:37 mCheckoutList.add(combimatipm); Jul 08 15:35:37 } Jul 08 15:35:49 but I am getting NullPointerException error Jul 08 15:36:16 is it because I should know and declare in advance how many checkouts are there? Jul 08 15:36:32 ** sorry for the long description :( Jul 08 15:37:47 tothbalint: paste the NullPointerException error into http://pastebin.com/ -- but my guess is, you actually didn't create the list. writing private List mCheckoutList doesnt actually create an object Jul 08 15:39:32 alexfu, ok, just a moment Jul 08 15:40:09 but generally is the List as type for this kind of data the proper one, or should I use something else for this? Jul 08 15:41:29 a list is fine Jul 08 15:42:17 Is there any easy way to send a Toast message to a fragment from an external class? Jul 08 15:43:03 You could maybe invoke a method in the fragment that calls a toast from the external class Jul 08 15:43:24 markyosullivan: Toast is a view that gets displyed on top of everything so you can call it from anywhere really, not just a fragment Jul 08 15:43:46 alexfu: The external class isn't extending Activity or Fragment though Jul 08 15:44:17 and it needs context as an argument Jul 08 15:44:40 I feel like this should be super simple, like a basic callback class which is called by the external class but is defined in the fragment so all I have to pass through is a string Jul 08 15:44:48 markyosullivan: whats this external class? Jul 08 15:45:12 Just processing BLE information, trying to keep all the processing external so I can use the information in multiple fragments Jul 08 15:45:20 btw do I have to ask 10 times for permissions stated in my AndroidManifest.xml nowadays? Jul 08 15:45:52 it seems that permissions need to be asked again in the code Jul 08 15:45:58 hey guys. just started with android app dev. to get data for a webview i need to run the download of the html in another thread. how can i get the data of the thread? Jul 08 15:46:07 "network" location provider requires ACCESS_COARSE_LOCATION or ACCESS_FINE_LOCATION permission. Jul 08 15:46:11 For example ToastCallback.sendMessage("Error: Device disconnected") in the external class Jul 08 15:46:26 but in the fragment class, it'll handle the string and display it in the Toast? Jul 08 15:46:33 Or am I overly complicating things? Jul 08 15:46:41 markyosullivan: not sure how you have things set up but it's pretty easy to create a callback and have your external class hold a reference to this callback and call it when processing is done Jul 08 15:47:02 and this callback can be implemented in your fragment Jul 08 15:47:03 Bradan if you're targeting 23+, u do need to ask for permissions in runtime Jul 08 15:47:14 dreadkopp: use the data from the onPostExecute of an AsyncTask Jul 08 15:47:23 alexfu: Do you mean like I previously described? Jul 08 15:47:26 for 6+ devices that is Jul 08 15:47:40 raoul11: but why? Isn't that kind of redundant? Jul 08 15:47:41 Just checking to make sure I'm not doing anything silly Jul 08 15:47:41 melancoholic: thanks for info, will google how to do that :P Jul 08 15:47:55 markyosullivan: yea, exactly Jul 08 15:48:13 i mean, thats your answer right there Jul 08 15:48:32 Fantastic, I'll just have an interface for sending messages and then override the method in the fragments which I need to display the message in Jul 08 15:48:43 yea Jul 08 15:48:47 Thanks! Jul 08 15:48:54 no arguments there Bradan Jul 08 15:48:55 Been trying to plan this out all day Jul 08 15:49:12 Converting the super class into a fragment with an external class for processing Jul 08 15:49:37 well I guess I should call it a super fragment class ... 800+ lines of code (don't judge me) Jul 08 15:49:37 My app seems to crash on only Samsung and LG devices, is there any reason that could be? Jul 08 15:50:00 Samsung likes to watch the world burn Jul 08 15:50:07 :( Jul 08 15:50:24 mrs gettin a new s7 today Jul 08 15:50:58 melancoholic: and whats the reason it is crashing? Jul 08 15:51:35 I have no idea, it's reports from users but the analytics haven't shown the crashes yet. Jul 08 15:51:50 They say it crashes on start up Jul 08 15:52:51 melancoholic: having a crash reporting system in place (i.e. Crashlytics, etc) really helps in these cases Jul 08 15:53:44 any samsung/lg or is it random melancoholic ? Jul 08 15:53:44 I'll look into it Jul 08 15:54:57 The only crashes on start up that I've been told about are on an LG G3 and multiple Samsung phones. I assume it's something to do with Touchwiz/Sense. Jul 08 15:55:45 It could just be confirmation bias though, I guess I'm not sure until I use a reporting system like you mentioned. Jul 08 16:04:44 hmm. i dont get it. i created i object in which i store the infos to pass between threads. However when i create the class for the downloadthread i get error 'no interface expected here' for 'extends Runnable' Jul 08 16:07:02 dreadkopp: stacktrace? Jul 08 16:07:26 alexfu: Android studio gives me this error in the editor Jul 08 16:08:23 i'm stupid... it must be implemented not extended Jul 08 16:08:34 java, basics, learn Jul 08 16:08:43 working on it :P Jul 08 16:09:03 Runnable is an interface Jul 08 16:10:54 heh Jul 08 16:19:16 alexfu: Thank you so much for recommending Crashlytics. It was super simple to set up and Fabric has a ton of other cool tools. Jul 08 16:19:58 np Jul 08 16:25:50 Is there a way to initialize an interface class without having to overrride all the methods? Jul 08 16:26:03 I am using onConfigurationChanged in order to detect when the phone gets in landscape mode and then execute some code that measures the height of some LinearLayout. The problem is that the event gets triggered before the phone is actually on landscape mode, so I get wrong values. Any idea how I can run it after the screen has rotated? Jul 08 16:32:05 markyosullivan: the point of an interface is to guarentee any implementer implement the specified methods Jul 08 16:32:45 hi i want to develop for the android and make tons of money, if i learn java programming language what else do i need to create adnroid phone apps? Jul 08 16:33:12 markyosullivan: a common thing to do is to create an abstract class that implements your interface. then subclass the abstract class and override only the methods you want Jul 08 16:34:29 public astract class BaseFragment extends Fragment implements BasicInterface { Jul 08 16:34:33 something like that? Jul 08 16:35:00 markyosullivan: sure Jul 08 16:35:01 I got a feeling I'm making this really complicated Jul 08 16:36:40 food, bbl Jul 08 16:37:06 alexfu: Do you have any examples of this which you could link me to? Just so I can look over and see if I really need to do it this way Jul 08 16:45:54 did someone go ban happy? Jul 08 16:46:28 what do you use as the development environment for java for android? Jul 08 16:46:28 Nah, just cleanup Jul 08 16:46:43 Many of these are 5+ years old Jul 08 16:46:45 what do i need to get or learn aside java to make apps for android? Jul 08 16:46:49 ah, oky doky lol Jul 08 16:47:02 android studio Jul 08 16:47:05 ty Jul 08 16:47:14 thecha: Familiarize yourself with java then go to d.android.com Jul 08 16:47:19 ty Jul 08 16:47:24 yw Jul 08 16:47:28 It explains the tools and have training guides Jul 08 16:47:34 https://d.android.com Jul 08 16:47:43 hey all is there a place where I can see the actual source code for a specific class file for Android API 24? Jul 08 16:47:45 nice ty Jul 08 16:48:00 Crash1hd: No, api24 sources haven't been released yet Jul 08 16:48:07 Crash1hd, what ide are you using? Jul 08 16:48:07 Android Studio says to download the source click download or refresh but it wont let me Jul 08 16:48:22 SimonVT→ how many apps for android have you built? Jul 08 16:48:27 Wont be available until it has been officially releaed Jul 08 16:48:27 CountDownTimer (I am trying to make a CountUpTimer version) similar Jul 08 16:49:40 Ah, yes - v24 - what simon said then. Jul 08 16:49:53 hmm ok thanks :) Jul 08 16:50:06 Is countdown timer new to 24 though? Jul 08 16:50:17 should be able to find it in 23 no? Jul 08 16:50:39 maybe but I cant seem to find it even for 23 or 22 Jul 08 16:50:48 but I dont know where to look besides google Jul 08 16:51:08 The sdk manager in android studio should have the option Jul 08 16:51:09 which takes me to --> https://developer.android.com/reference/android/os/CountDownTimer.html Jul 08 16:52:03 ok will try to change my build to 23 and see Jul 08 16:52:26 Just download the sources in the sdk and search the folder Jul 08 16:52:38 Ahh thanks Simon :) Jul 08 16:52:42 Ahh thanks SimonVT :) Jul 08 16:52:44 Searching ClassName.java usually works as well Jul 08 16:54:40 im in android studio setting a property in the project gradle for the default build flavor- it's set true on release false on debug. When run in debug mode it seems to take the release setting even though a debug one is defined, and I have the build flavor set to 'debug' too. Jul 08 16:56:13 so why is it taking the release build type settings Jul 08 16:56:22 is there something else I have to set to debug? Jul 08 16:59:01 SimonVT, hmmm I did a search for CountDownTimer.java and it returned 0 results? but I have everything downloaded in the SDK Manager? Jul 08 17:00:13 Download sources for e.g. api 23 Jul 08 17:00:14 It's there Jul 08 17:00:39 And by search for ClassName.java I meant google Jul 08 17:00:57 Yeah I found it on Google Jul 08 17:01:11 I have Sources for Android SDK 23 installed Jul 08 17:01:32 but where in /Users/me/Library/Android/sdk <-- folder do I look? Jul 08 17:01:38 or is it elsewhere Jul 08 17:01:42 In the sources folder Jul 08 17:02:06 SimonVT, ahh thanks :) Jul 08 17:09:16 Why does compiled code show throw new RuntimeException("Stub!"); <-- this instead of the code if its open source? Jul 08 17:09:42 because you're looking at android.jar Jul 08 17:09:44 which is incorrect Jul 08 17:09:51 you didn't install sources for the platform you target Jul 08 17:10:11 android.jar shipped with sdk has stubs to prevent running, and decrease code size Jul 08 17:10:45 pfn, ahh ok thanks they where saying 24 is not available Jul 08 17:10:55 sources for 24 are not yet available Jul 08 17:12:23 Anyone get a chance to mess with AwarenessFences yet? Jul 08 17:27:30 hi guys, is there any way to enumerate variables in bootloader if "fastboot getvar all" does not return anything? (except for plain bruteforce ofc) Jul 08 17:33:18 da3m0n22, Wrong channel - try #android-root Jul 08 17:33:57 Anyway, no you cannot. Jul 08 17:37:04 LunarEclipse120: ok, thanks Jul 08 17:45:44 I'm trying to set up butterknife in a new project created with android studio, but I get a NPE when trying to access a bound view. Jul 08 17:46:37 all I do for now is ButterKnife.bind(this) in the main activity and @BindView(R.id.myTextView) TextView textView; in the field variables Jul 08 17:47:02 using ButterKnife 8.1. Am I missing something for setting it up correctly? Jul 08 17:47:42 That's usage, you haven't shown how you set it up Jul 08 17:47:50 Double check you did like it says in the readme Jul 08 17:48:01 And that the classes are generated Jul 08 17:48:26 And that findViewById works Jul 08 17:51:35 I'm trying to get an emulator with api 16 and play services running, and it can't seem to find the system image Jul 08 17:51:36 https://pastee.org/5n9e8 Jul 08 17:51:50 Not sure what to modify Jul 08 17:52:21 From what I've found the default directory was not there before Jul 08 17:56:06 Bringing the arm folder up a layer doesn't do it either https://pastee.org/knnxq Jul 08 17:57:59 SimonVT, It's very possible that I have not found the right way to set it up. By readme do you mean http://jakewharton.github.io/butterknife/ ? Jul 08 17:58:21 It seems like the classes aren't generated. I did try modifying and disabling proguard though Jul 08 17:58:36 mhm Jul 08 17:58:52 is it possible to change the color of the circle in mediastyle notification? Jul 08 17:59:07 notification.color is applied to the whole thing with mediastyle -.- Jul 08 17:59:44 Sure, that or the projects README.md Jul 08 18:06:55 http://eclipser.xmms2.org/device-2016-07-08-210454.png vs http://eclipser.xmms2.org/device-2016-07-08-210543.png ... although I'm not sure if I should touch the colour since I'm terrible at colours :p Jul 08 18:07:48 SimonVT, thanks, figured it out and it's working now Jul 08 18:10:46 Hey all, I'm looking for some information on multidex's implementation Jul 08 18:11:20 Specifically, if a method from classes1.dex is referenced in classes.dex, what does the prototype definiton look like in classes.dex Jul 08 18:12:36 Hi guys, I have an issue with a ReclyclerView adapter, can anyone lend a hand quickly? Jul 08 18:13:11 micinski, the same as in single dex, it's just an unresolved reference without a method id Jul 08 18:13:24 micinski, ie, it looks the same as any framework call Jul 08 18:13:33 Ah, that's exactly what I wanted to know Jul 08 18:13:42 There will still be a method id in the method id table though yes? Jul 08 18:13:47 (As in framework calls) Jul 08 18:13:56 Just not code in the data section Jul 08 18:14:11 So now it says that $ANDROID_SDK_HOME is defined but that it cannot find the kernel files still https://pastee.org/mhwd3 Jul 08 18:15:26 micinski, shouldn't be a method id there, but if framework calls have method id, then it's the same Jul 08 18:15:39 I have a recycler adapter, and i'm inserting an item to it and using notifyiteminserted() and it inserts fine. When I remove it from the adapter using notifyitemremoved() It removes from the ArrayList and does the remove animation, but the view remains in the recyclerview Jul 08 18:15:50 if anyone could help I would appreciate it! Jul 08 18:16:09 pfn: if there's not a method id, then what is the argument to the `invoke-X` instruction? There has to be at least something that specifices which method gets called Jul 08 18:17:13 micinski, look at any framework call, it works the same way Jul 08 18:17:32 momtarsh: Hard for anyone to know what you're doing wrong if you don't show some code Jul 08 18:18:27 I suppose it might generate a method id ref, but not an id for implementation Jul 08 18:18:55 method_id_item documentation says: "method identifiers list. These are identifiers for all methods referred to by this file, whether defined in the file or not." Jul 08 18:19:00 So I think that answers the question Jul 08 18:19:27 Basically, method id will be generated that specifies the name of the call, etc... Then multi-dex patches them upon load by matching up those calls in the same way it resolves dynamic calls into the framework Jul 08 18:19:42 multidex doesn't patch it Jul 08 18:19:50 DexLoader handles it automatically Jul 08 18:20:05 Right, I meant the system patched it Jul 08 18:20:27 multidex has been natively supported by the system since the start of android Jul 08 18:20:35 SimonVT: Sure, here are the add and remove methods https://pastee.org/vr8gc Jul 08 18:20:40 it hasn't been supported directly from apk since api 21 Jul 08 18:20:44 until Jul 08 18:21:32 So let's say I have a project that uses multi-dex in binary form. Is it true that I should be able to add another classesN.dex to the APK, and then definitions of this sort to the rest of the classesN.dex files, and be able to just use the methods defined in that new binary I added. Jul 08 18:22:03 (E.g., because I want to link it afterwards "manually." This isn't for actual Android development at all but just hacking around with the binaries.) Jul 08 18:22:28 yes Jul 08 18:22:39 Awesome. Thanks, you've been a big help. Jul 08 18:22:54 hacking around with your own binaries, i hope Jul 08 18:23:13 s73v3r: no, other people's, but not for redistribution Jul 08 18:23:22 doesn’t really matter Jul 08 18:23:26 Why? Jul 08 18:23:27 you could easily make your own binary Jul 08 18:23:57 Guess I'm confused at the distinction? Jul 08 18:24:19 it’s still quite unethical. it’s not your app Jul 08 18:24:34 I'm taking apps and instrumenting them to add some instructions to make library calls at certain places to study their security behavior. Jul 08 18:25:05 Or to enforce stronger security gaurentees, as is standard practice in (e.g.,) control flow integrity enforcement Jul 08 18:25:31 Running a binary app with valgrind would do extensionally the same thing. Jul 08 18:25:46 Though I agree that if I were modifying their binaries to (e.g.,) remove some code to pay for the app, that would be unethical Jul 08 18:27:51 i am getting null pointer exception when i use these two lines of code Jul 08 18:28:00 google_signin = (SignInButton) findViewById(R.id.google_signin); Jul 08 18:28:00 google_signin.setColorScheme(google_signin.COLOR_DARK); Jul 08 18:28:00 so don’t use them :p Jul 08 18:28:13 can anyone tell me what is wrong in these lines Jul 08 18:28:22 look at your stack trace Jul 08 18:28:24 it will tell you Jul 08 18:28:40 s73v3r: I'm a security researcher, so our work tries to make a better answer than "don't fully trust this app. Too bad, can't use it." Jul 08 18:29:25 security research is a gray area. but there are a number of people who do come asking how to do that with the intent of pirating apps Jul 08 18:30:02 anyone here know if there's a way to detect if the device supports ipv4 multicast? Jul 08 18:30:45 i have an lg nexus5 that doesn't receive ipv4 ssdp multicast packets, but when I force it to ipv6 it works. Jul 08 18:31:07 http://cs.umd.edu/~micinski/ is my personal site to show I'm real and would get a net loss if I were caught pirating apps ;-) I guess you have to asses on a case by case basis whether or not the person's intention is malicious and judiciously choose whether or not to answer their question based on it. Jul 08 18:31:46 that picture doesn’t look a thing like you Jul 08 18:32:14 people keep telling me that :-( Age gets the best of you I'm afraid. Jul 08 18:32:48 nice, new PIA vpn client blocks ads & trackers Jul 08 18:34:00 micinski , i am impressed by your work Jul 08 18:34:17 :) Jul 08 18:34:47 it was a joke ;) Jul 08 18:35:39 Thanks jackhum, hopefully with the continued support of the Android community we will continue to provide tools that help people. And I know s73v3r ;-). Jul 08 18:35:52 Cheers all, and thanks! Jul 08 18:36:16 so you did a phd too Jul 08 18:36:25 thats really impressive , Jul 08 18:49:01 which java does android studio require? Jul 08 18:49:14 The normal JDK should sufice. Jul 08 18:49:30 ORACLE JAVA ME SDK DOWNLOADS Jul 08 18:49:48 that one? Jul 08 18:50:07 i've never seen "ME" in the sdk title before Jul 08 18:50:28 you don’t want ME Jul 08 18:50:48 http://www.oracle.com/technetwork/indexes/downloads/index.html#tools Jul 08 18:50:56 you want SE Jul 08 18:50:59 well that's the only download with "SDK" Jul 08 18:51:00 ok Jul 08 18:51:25 ah and on that page it mentions SDK Jul 08 18:51:30 confusing for non devs Jul 08 18:51:31 you dont’ want SDK, you want JDK Jul 08 18:51:42 Java SE Development Kit 8 ? Jul 08 18:51:42 a bit, yeah Jul 08 18:51:51 should be fine Jul 08 18:51:53 ok Jul 08 18:52:04 not exactly what i was looking for then? lol Jul 08 18:52:19 JDK stands for Java Development Kit Jul 08 18:52:26 yeah i understand that Jul 08 18:52:32 it’s essentially the same thing as an SDK, just different naming Jul 08 18:52:35 SE = ? Jul 08 18:52:41 second edition? Jul 08 18:52:42 Standard Edition? Jul 08 18:52:45 ok Jul 08 18:52:49 slow edition Jul 08 18:52:53 :P Jul 08 18:52:56 it’s the normal edition, as opposed to EE, which is Enterprise Edition Jul 08 18:52:57 slower* Jul 08 18:54:21 or 'suck edition' ;) Jul 08 18:57:08 Hey! Anyone ? Jul 08 18:57:14 nope Jul 08 18:57:14 No! Noone! Jul 08 18:57:19 :) Jul 08 18:57:22 bueller Jul 08 18:57:33 (: Jul 08 18:57:40 My shared preference is not getting cleared while clearing cache. Jul 08 18:57:49 What might be the issue, any ideas ? Jul 08 18:57:59 ideas are usually an issue Jul 08 18:58:14 Okay, I'll accept it Jul 08 18:58:14 Preferences are data not cache Jul 08 18:58:46 Yes, clearing data is also not clearing it Jul 08 19:01:44 Your device not clearing data has nothing to do with your app Jul 08 19:01:59 So I guess broken device? Maybe #android can help Jul 08 19:07:00 <|Agent> My coworker will be in on an Android proposal meeting. What’s the latest reasonable version of Android to develop for? I’ve heard 5.0 so far. Jul 08 19:07:17 sounds good Jul 08 19:08:09 https://developer.android.com/about/dashboards/index.html Jul 08 19:08:15 Probably at least kitkat Jul 08 19:09:05 |Agent what does 'develop for' mean? i'd go targetSdk=24 Jul 08 19:09:18 minSdk = maybe 19 :D Jul 08 19:10:17 the decision is what your minSdk should be Jul 08 19:10:25 i'd probably develop for 24 using as much support lib stuff as i can and test for lower versions, also won't lint tell you if you're making calls not supported by the lowest version you've declared? Jul 08 19:12:00 The minimum should be 5.0 Jul 08 19:12:00 It's just dumb to support people who are refusing to upgrade. Jul 08 19:12:36 yeah that's fine if you don't care about revenue Jul 08 19:12:40 you say that as if most people have a choice Jul 08 19:13:41 Go where the users are.. If that's marshmallow, kitkat or gingerbread doesn't really matter Jul 08 19:13:50 <|Agent> It’s a proposal for a new product, probably—don’t know much yet—and also probably an internal application given our client base. So we’d be able to assume a reasonable version of Android. So revenue isn’t likely a factor. Jul 08 19:14:00 And re upgrades, blame the platform not the users Jul 08 19:14:18 yeah. blame Google Jul 08 19:15:06 blame the vendors, not google Jul 08 19:15:19 google is helpless here Jul 08 19:15:27 no, Google deserves plenty of blame Jul 08 19:15:51 they had the ability to demand the same thing Apple did for updates, and they instead went the other direction Jul 08 19:15:53 google could motivate vendors to issue updates. by disabling play services on older devices Jul 08 19:16:02 they didn't have that ability Jul 08 19:16:14 Sure they did. Apple did it Jul 08 19:16:25 google relinquished control of the platform with the bsd license Jul 08 19:16:48 and they took it back with the Google Apps, which most OEMs include Jul 08 19:17:01 hmm.. i am trying to get a websites html and extracting info fomr it using Jsoup. However when using this code i get Nullpointer exception at least for the first try when i run .getElementsByClass. How can i tell it to wait for the download to finish before continuing? Jul 08 19:17:03 http://pastie.org/10902273 Jul 08 19:18:44 <|Agent> alright, thanks guys Jul 08 19:23:08 Looking at incompetence of new devs is funny :P Jul 08 19:23:14 :P Jul 08 19:23:15 People supported WinXP for longer than Android exists :D Jul 08 19:23:27 And here you have people whining that they have to support a 3 year old OS :P Jul 08 19:23:54 Wonder if they throw out all the crap in their house every 18 months as well ČP Jul 08 19:24:08 The WinSDK was a lot more stable than the Android one Jul 08 19:25:37 No it wasn't. Jul 08 19:25:37 And WinXP didn’t have radically different shifts in UI/UX design during it’s lifetime Jul 08 19:25:41 yeah, it was Jul 08 19:25:45 google needs to define standards like a more general purpose OS, which includes hardware and device driver ABIs Jul 08 19:25:49 Android hasn't deprecated a method call since 1.0 Jul 08 19:26:00 It's horseshit. Jul 08 19:26:06 nope Jul 08 19:26:16 i wouldn't buy a dell laptop if it only ran dell windows :) Jul 08 19:26:47 Mavrik: what are you talking about, half the methods in the Android SDK are deprecated? Jul 08 19:26:59 No. Jul 08 19:27:19 and you're quite wrong in that, s73v3r, google could add a kill switch into play services to force vendors to upgrade, but all vendors have a plan b in case their relationship with google sours Jul 08 19:27:28 eg tizen, etc Jul 08 19:27:38 which they know won’t work Jul 08 19:28:25 The carriers and OEMs also shoulder plenty of blame, but Google is not purely innocent in all this Jul 08 19:29:41 Yes, blame google for other peoples bullshit Č= Jul 08 19:29:43 considering margins are so slim, I wouldn't put it past vendors wanting to find more favorable terms Jul 08 19:29:48 Samsung likes that :P Jul 08 19:29:51 google really has little control here Jul 08 19:29:59 No, google ceded control here Jul 08 19:30:17 pfn, and margins are so slim because the devices are obsolete at buy Jul 08 19:30:23 they did that to quickly get marketshare Jul 08 19:30:39 You can build premium branding with hardware that lasts less than a paper plate. Jul 08 19:30:40 without it, android would not be the #1 platform Jul 08 19:30:54 I don’t know if I buy that Jul 08 19:31:12 apple is a poor comparison Jul 08 19:31:16 also, I don’t know if it’s that important. It’d still be a major platform Jul 08 19:31:19 apple controls the full vertical Jul 08 19:31:22 so? Jul 08 19:31:34 you can't say that apple has to influence any vendors Jul 08 19:31:45 They were able to get the carriers to agree to let apple control updates Jul 08 19:31:57 carriers would count as vendors in this situation Jul 08 19:32:00 windows phone updates go through MS too Jul 08 19:32:09 yes and now Jul 08 19:32:10 no Jul 08 19:32:11 windows phone has shitty market share for a reason Jul 08 19:32:30 doesn't matter, it actually disproves your point that apple got its way because of leverage Jul 08 19:32:31 they technically go through the carriers, but it’s stupid easy to get onto the “developer” track to get updates from Microsoft Jul 08 19:32:44 Windows Phone came after iOS Jul 08 19:32:45 windows doesn't get their way Jul 08 19:33:17 Is there any non-MS vendor that even builds WP phones? Jul 08 19:33:26 Samsung and HTC have some Jul 08 19:33:35 i don’t know if they’ve made any new ones recently Jul 08 19:34:02 my point being, windows phone has low marketshare yet they still manager updates w/o carrier intervention ;) Jul 08 19:34:33 g00s, and other point being, that noone is building WP phones because of that Jul 08 19:34:37 I guess BLU makes one? Jul 08 19:35:12 I mean the greatest marketing win was that the vendors managed to persuade morons Jul 08 19:35:17 That 12 month old software is old Jul 08 19:35:26 And that you should replace phones every 18-24 months Jul 08 19:35:33 And it worked! :) Jul 08 19:35:40 12 month software IS old, especially in this day of security vulnerabilities Jul 08 19:35:49 Mavrik: work on your ego a little bit please, you sound like shit Jul 08 19:35:54 Mavrik i don't see why oems wouldn't do WP because of the update path. many oems (asus, lenovo, hp, dell) abandoned Android for Windows on tablets / 2-in-1s and they have the same update path Jul 08 19:35:54 Well, stop complaining then and drop money for new phone. Jul 08 19:36:10 that’s a terrible solution and you know it Jul 08 19:36:15 Yes. Jul 08 19:36:20 But that is where incentives lie Jul 08 19:36:32 because of the way Google set things up Jul 08 19:36:34 Vendors managed to persuade people that you need to buy hardware every 1-2 years Jul 08 19:36:57 Why the hell would they give that up for a longer cycle when people just willingy drop 600$ every 2 years in their lap Jul 08 19:38:25 but yeah, would be great if google refactored android into base OS, which everybody used, device driver ABIs, and then some overlay shit OEMs could muck with Jul 08 19:38:53 Doubt it'll happen until there's a money incentive in there. Jul 08 19:40:29 As long as even companies like OPO can throw out a device, forget about it, and still receive all the media hype and sell phones... why pay devs to update drivers? :) Jul 08 19:40:48 rosten: Please keep comments like that to yourself, they will not be tolerated Jul 08 19:43:01 Mavrik you are right there, too many conflicts of interest. its not a virtuous cycle. "And to hedge its bets against Google’s control of Android, Huawei is also secretly developing an alternative mobile operating system" Jul 08 19:43:33 so they all pretty much have google backed against the corner :) Jul 08 19:43:36 Those alternatives are all dead. Jul 08 19:43:46 yes, probably, but they do it for leverage Jul 08 19:43:48 But that doesn't mean that management of those companies realises it. Jul 08 19:44:08 The utter idiocity and shortsightedness of large companies cannot be underestimated. Jul 08 19:44:23 It's not uncommon to have people tank their own companies due to hubris :) Jul 08 19:44:28 (See: Blackberry.) Jul 08 19:44:37 hi all, I'm trying to make a foreground notification go away on task swipe. i'm calling StopForeground(true) in onTaskRemoved() for my service, but the notification sticks around. can someone advise? Jul 08 19:45:13 is onTaskRemoved getting called :P Jul 08 19:46:36 Does anyone running https://github.com/chrisbanes/gradle-mvn-push use anything as a prepare release plugin? Jul 08 19:46:43 or do you just do it manually Jul 08 19:48:08 I use bintray for public stuff, custom code for work Jul 08 19:48:17 g00s, yeah, i have logging before and after the call Jul 08 19:48:58 Anyone uses JSoup? or is there a better solution? Website refuses connection when i try to get its html using JSoup. wget from my notebook however works. Browser as well Jul 08 19:50:06 Probably checks the user agent header? Jul 08 19:51:03 using 'Mozilla' .. will try differnt ones though, thanks for the hint Jul 08 19:51:39 dreadkopp: If you have to resort to JSoup then you're out of luck anyway. Webscraping is never stable Jul 08 19:52:44 dreadkopp: But to answer your question, it could be because of how often your client is making requests that it is getting refused, or it could be headers that the requests are sending that the websites server doesn't like Jul 08 19:52:48 multiple reasons Jul 08 19:52:49 yiati: :P just started android dev. i just want to build a small widget which checks a websites html for a specific string and displays 'online' / 'offline' Jul 08 19:53:06 Yeah, usually it's better to have a server do the scraping and then expose data via REST to mobile device Jul 08 19:53:13 This way you only have to update the server when the structure breaks Jul 08 19:53:21 And you don't DDoS the target site Jul 08 19:53:48 dreadkopp: Do you just want to see whether the site is up? or does specific content on the page matter? Jul 08 19:53:54 Mavrik: righty :) will keep that in mind when it works Jul 08 19:54:07 yiati: i need the html. Jul 08 19:55:07 yiati: you know the game pokemon GO everyone is talking about right now? well the servers are offline often. There is wa website displaying the status of the servers. I'd like to scrap the info from this site and display the server status for my country in the widger Jul 08 19:56:01 dreadkopp, depending how half-assed you want to be you should be able to use okhttp, get the body, and search for strings Jul 08 19:56:09 dreadkopp, ignoring that it's html, parsing html properly, etc Jul 08 19:56:34 dreadkopp: you could skip the middleman, and check the status of the servers yourself if you can find the address of the servers Jul 08 19:56:43 'half-assed' ? will have a look at okhttp. Jul 08 19:57:36 dreadkopp: Yeah for that approach it basically avoids any parsing html issues. Just do a string search on the entire html, rather than trying to parse each html element out Jul 08 19:57:37 yiati: thought about that too.. is there wireshark for android? Jul 08 19:57:44 yep Jul 08 19:57:58 I'd use Charles Proxy instead for that tho :) Jul 08 19:58:00 let me see who it tries to talk to :P Jul 08 19:58:07 I don't know how to hook that one up personally. I use Charles but Wireshark can work too Jul 08 19:58:13 just have to google it :D Jul 08 19:58:14 dreadkopp, halfassed because you're not working w/ html as a structured document or doing anything clever about it Jul 08 19:58:39 dreadkopp, doing it right, you'd do something to get a html entity parser and extract the path to the element you want Jul 08 20:00:34 derp I actually have my phone hooked to adb with charles proxy and pokemon go running right now Jul 08 20:00:44 Let me see if I can find it :D Jul 08 20:01:13 dragorn: JSoup can do that.. however right now i get nullpointerexception when using GetElemetsbyClass since i cannot get a connection to the site :P Jul 08 20:05:40 dreadkopp: possibly http://www.downforeveryoneorjustme.com/https://pgorelease.nianticlabs.com Jul 08 20:06:08 err, http://www.downforeveryoneorjustme.com/pgorelease.nianticlabs.com Jul 08 20:06:21 hello round world! Jul 08 20:06:25 caught them all imho Jul 08 20:06:34 yiati: hmm.. nice find. maybe. still need to install wireshark :) Jul 08 20:07:04 damn... wireshark for android need root? Jul 08 20:07:19 idk, Charles Proxy doesn't Jul 08 20:08:46 can't charles proxy https if they use cert pinning Jul 08 20:09:03 yep Jul 08 20:10:55 cannot find charles proxy in play sotre.. however my router can log traffic. lets see Jul 08 20:12:34 dreadkopp: Charles Proxy is a Mac Program Jul 08 20:12:43 https://www.charlesproxy.com/ Jul 08 20:13:12 Probably won't find any app to do this stuff that doesn't require root Jul 08 20:13:19 *android app Jul 08 20:13:29 Need to use a desktop program Jul 08 20:16:16 logged using the router, will inspect with wireshark.. Jul 08 20:16:57 best project of the year http://www.gizmag.com/deep-learning-cat-poop/44243/ Jul 08 20:17:24 AS 2.2 preview 5 Jul 08 20:17:54 "Performance: We fixed two big memory leaks -- one related to Gradle sync" lol, gradle again Jul 08 20:18:12 i've been seeing that since at least 1.0 though, wonder if its the same bug Jul 08 20:19:06 as if there can only be 1 memory leak bug Jul 08 20:32:32 hmm... it's all either google or amazon servers my phone is talking to when i connect... but which one is the correct? will go back to get the info from the website Jul 08 20:44:25 sucess using okhttp! thanks for the suggestion Jul 08 20:58:55 strange... somehow the html i get using okhttp is cut of ... is this a known problem or did i do something wrong? Jul 08 21:01:22 If you're viewing it in logcat, there's a max message size Jul 08 21:04:12 SimonVT: thanks! seems to be the 'problem' Jul 08 22:12:25 How can I calculate the icon size to use for my xxhdpi device? Jul 08 22:14:14 purplex88: http://tekeye.biz/2013/android-icon-size Jul 08 22:15:00 s73v3r: 144×144? Jul 08 22:16:00 that’s what the table says Jul 08 22:16:46 i read differently in docs Jul 08 22:17:22 where? Jul 08 22:17:31 like here https://developer.android.com/guide/practices/screens_support.html#screen-independence it says to use 100x100 for medium-density and 150x150 for high-density under "4. Use size and density-specific resources". Jul 08 22:17:54 best pratices section Jul 08 22:18:53 i need to bother you guys again. for some reason the value of the TextField of my Widget is not replaced. I pass the RemoteViews object to the thread which downloads the html and parses it for useful info. then it should call the setTextViewText function of RemoteViews to set the Text displayed in the widget. But i am stuc with 'Static Text' display :/ Jul 08 22:21:45 purplex88: that’s not referring to icons Jul 08 22:21:53 i’m assuming you’re talking about launcher icons? Jul 08 22:23:53 s73v3r: yes what other icons? I mean ones that go in res/drawable-mdpi Jul 08 22:23:56 etc. Jul 08 22:24:20 right. use the table I gave you Jul 08 22:25:06 here is one that goes up to xhdpi, the one I gave you extrapolates that out https://developer.android.com/guide/practices/ui_guidelines/icon_design_launcher.html#size Jul 08 22:28:46 s73v3r: in my Android Studio i'm seeing laucher icons in mipmap directory instead of drawable Jul 08 22:29:07 do that, then Jul 08 22:29:18 no difference? Jul 08 22:35:15 someone might explain to me why in line 43 the text is set but when calling updateText it isn't (58/61) widgets are strange... http://pastie.org/10902385#43,61 Jul 08 22:39:26 who is calling updateText? Jul 08 22:39:28 nevermind.. missed to call AppWidgetManager.updateAppWidget ... Jul 08 22:39:54 hm? Jul 08 22:40:06 purplex88: the dedicated thread CheckStatus (line 40) Jul 08 22:41:14 this works: http://pastie.org/10902391#18,89 however i guess it's far from best practice ... Jul 08 22:57:23 I'm trying to run an external executable through my app and so far I have included the executable in assets/ and then copied it to /data/data//files (which is what openFileOutput gives) and set it to executable. I can confirm it's executable, but Runtime.getRuntime().exec() throws an IOException saying the file doesn't exist Jul 08 22:57:55 I confirmed the file exists through File.exists() and the path matches to what I wrote to Jul 08 22:58:41 i wasn’t aware you were able to do that Jul 08 22:58:52 I'm trying to exec() with the absolute path of the copied external executable, i.e. /data/data//files/ Jul 08 23:00:07 what’s your executable do? Jul 08 23:00:13 it's rsync Jul 08 23:00:24 compiled for android Jul 08 23:00:29 x86/arm/mips Jul 08 23:01:46 have you verified that is the actual path? Jul 08 23:02:20 and that, for your device, it’s the path that your app’s files should go? Jul 08 23:04:20 yea Jul 08 23:04:39 I haven't hardcoded any paths, and I've confirmed the paths and files when debugging Jul 08 23:06:51 thought at some point they stopped allowing running executables within /data/data/ Jul 08 23:07:32 *sigh* Jul 08 23:07:41 any other places I can put an executable? Jul 08 23:07:54 .canExecute() returns true, though Jul 08 23:07:59 oh well Jul 08 23:09:06 only thing i'm remembering is apps that used busybox or iptables etc mainly rooted devices, is reading things about denying executables in apps data. been awhile though, couple years maybe. so don't quote me Jul 08 23:10:16 alright, thanks Jul 08 23:10:27 seems to work for taskwarriorandroid, though Jul 08 23:10:39 dig deeper then Jul 08 23:11:18 does anyone know on what host/ip does android ping to check if wifi is on ? before giving the notification that wifi has no internet access? Jul 08 23:15:09 maybe it checks external ip? Jul 08 23:16:02 yes it sure does but i cant see atm on which Jul 09 00:08:54 Hi, has someone tried to do a Bluetooth LE app? I tried it and had a little problem about the mtu size. First i couldn't set it higher than 23 Byte (which is the gatt default), but then i figured that i had to trigger the method requestMTU() at the right time after the services got discovered. My problem was that i could only get mtu to 256 byte and not even to the maximum of 512. Does someone has an idea how i could archive Jul 09 00:08:54 this? Jul 09 00:20:32 I am doing NDK development on a fresh Pixel C. My tombstone crashes are not readable. Do I need to root the machine or can I get them some other way? Everything about rooting seems to be for pirates, but I am just a lowly developer. Thanks for any advice. Jul 09 00:28:45 how are they not readable, they're in logcat Jul 09 00:30:08 it shows a very short version (6 lines of backtrace, 5 of which are abort's implementation) and 1 thread, so I can't see the full extent of the abort. Jul 09 00:30:56 ends with "Tombstone written to: /data/tombstones/tombstone_06" but that file is not readable Jul 09 00:43:11 it's usually /data/data Jul 09 00:44:15 if i do a "run-as" and get to /data/data/myapp then "/data/data/tombstones" doesn't exist either. (it doesn't exist without the run-as either) Jul 09 00:44:16 sorry to bother again. nearly finished with the widget. i wanted to add a button to enable/disable check for updates every 5 mins (updaterate of widget) however the boolean for enabling/disabling is allways true? i toggle it in line 104: http://pastie.org/10902458#104 Jul 09 00:53:46 ahh.. widgets aren't really allive so it gets reinitialized every time... sharedpreferences is the way to go... geez... why are widgets such a pain in the *** ? Jul 09 01:12:32 stripped pastie : http://pastie.org/10902470 i get NullpointerException on java.lang.String android.content.Context.getPackageName() ... anyone can tell me what i did wrong this time? Jul 09 01:29:39 dreadkopp, maybe try passing context.getApplicationContext() to the shared preferences. Jul 09 01:50:24 I'm having a problem with the TimeFence AwarenessFence. Specifically executing the example in the docs: https://developers.google.com/awareness/android-api/fence-create Jul 09 01:51:49 TimeFence.inInterval(System.currentTimeMilis() + 30000, Long.MAX_VALUE) is always firing immediately instead of waiting what I would expect 30 seconds Jul 09 01:52:37 I thought maybe it was a timezone issue but System.currentTimeMilis should be returning everything in UTC Jul 09 01:52:44 any thoughts? Jul 09 01:59:54 Is there an auto-portrait or landscape mode? Jul 09 02:25:45 er, oops, yeah, /data/data/tombstones wouldn't be right Jul 09 02:32:33 Just found the answer about orientation in the docs: https://developer.android.com/guide/topics/manifest/activity-element.html#screen **** ENDING LOGGING AT Sat Jul 09 02:59:58 2016