**** BEGIN LOGGING AT Sat Apr 18 02:59:59 2015 Apr 18 03:59:09 <_genuser_> hola amigos. Apr 18 03:59:21 yo quiro tacos Apr 18 03:59:42 <_genuser_> sure, one spanish phrase begets another.... Apr 18 03:59:47 <_genuser_> tacos would be nice, tho. Apr 18 04:05:05 damn you people. now i want tacos. Apr 18 04:05:16 I'm trying to get the user's city name with Google Places API, however it is instead returning the nearest business as if there is no filter at all. Code and explanation: http://dpaste.com/1PRR5H5 Apr 18 04:05:17 your welcome :D Apr 18 04:05:26 you're* Apr 18 04:05:36 JesusFreke, taco bell is like... 45 minutes away Apr 18 04:05:38 i hate you Apr 18 04:05:47 oh god. not taco bell tacos Apr 18 04:06:03 well I don't live in a "real city", there's no taco trucks :P Apr 18 04:06:11 if i were going to get tacos at midnight, it would have to be taco bell Apr 18 04:06:45 taco bell is.. ugh. nasty. now taco bueno on the other hand! Apr 18 04:12:23 * Leeds discovered churros last week Apr 18 04:21:32 dragorn no chipotle? :) Apr 18 04:26:16 g00s, no. and they're not open at midnight, which is the conceit of the whole debate ;P Apr 18 04:29:47 dragorn any good pictures lately ? Apr 18 04:29:59 *recently Apr 18 04:30:22 g00s, nah i've barely left the house for 2 weeks, been sick as hell. finally getting over it now. Apr 18 04:48:29 I put my question above on SO http://stackoverflow.com/questions/29712827/filter-the-result-of-getcurrentplace-to-just-cities as I spent ages googling it but got nowhere Apr 18 04:51:41 Is it correct you must make a G+ group and publish as alpha to test in app purchases? Apr 18 04:52:43 I keep getting "Auth is required. sign in to google account" when i try to test a purchase Apr 18 04:53:36 desmin88: no after a long time yesterday I got around this Apr 18 04:54:37 go to Dev Console -> Settings button on left -> Account details tab (default anyway) then under the "License Testing" heading you can enter a list of Google account email addresses (newline or comma separated) Apr 18 04:55:16 then upload your signed APK to alpha, even if nobody is configured to receive alpha versions (no need to add a G+ group) Apr 18 04:55:44 then you can `adb install app/app-release.apk` using that same APK onto a device that you added for test purchases and test your IAP Apr 18 04:56:10 you can't add your own account however Apr 18 05:05:42 is registerJavaGeneratingTask still a thing? i think this is causing my problems Apr 18 05:08:16 (Android gradle plugin) Apr 18 05:22:56 Where would I find whatever styles needed to make a SearchView suggestions spinner use the light theme rather than the dark theme, seen in this screenshot? https://www.dropbox.com/s/xd6mkqg0oc043fa/2015-04-18%2005.18.42.png?dl=0 Apr 18 05:29:56 <_genuser_> g00s: yo yo Apr 18 05:30:18 _genuser_ hi _genuser_ Apr 18 05:30:22 oops Apr 18 05:30:37 <_genuser_> g00s: so services and intentservices.... phew I have finally finished a design. Apr 18 05:30:45 \o/ Apr 18 05:31:23 <_genuser_> went, with application subclass, and a datacache var in there. IntentService that manipulates that. so all in background threads. Apr 18 05:31:48 duncannz: ive done so, still get that same response Apr 18 05:32:26 <_genuser_> g00s: kinda nice the way it's setup. IntentService has static methods to initiatecache, updatecache, generatecache, etc. which then setup the Intent and startService appropriately. Apr 18 05:32:48 _genuser_ nice :) Apr 18 05:32:51 <_genuser_> g00s: the rest of the app, just goes DataCacheMgmtService.{initiate|update|generate}cache(); Apr 18 05:33:29 but caches should usually be transparent. you get something, and if its not there, it goes to fetch Apr 18 05:33:31 <_genuser_> and whoever wants to listen to boadcasts for status, can setup listeners, etc. etc. the rest can just do DataCacheMgmtService.State Apr 18 05:33:34 duncannz: ahh, not using my release version. Apr 18 05:33:56 desmin88: yeah gotta be release Apr 18 05:33:57 it's such a pain overall Apr 18 05:34:13 yeah it definitely is Apr 18 05:34:26 <_genuser_> g00s: yeah, that what it will do for the most part. initiate at start up to quickly fetch and spend the 4seconds on it. update on destroy to save it out and spend 4 seconds. Apr 18 05:34:56 <_genuser_> g00s: generate will only be called when I explicitly want to re-generate the cache via UI request, instead of waiting for it to auto update at some point. Apr 18 05:35:15 <_genuser_> it will only be from the preferences screen. Apr 18 05:38:14 <_genuser_> g00s: as much as I loved the idea of working with Service itself, I had to ditch it, lol. Apr 18 05:41:55 duncannz: installed my release apk, and it still is showing me authentication required Apr 18 05:42:14 desmin88: full error message please Apr 18 05:42:26 "Authentication is required. Please sign into your google account" Apr 18 05:42:46 are you signed into a google account other than your developer console one on that device? Apr 18 05:43:01 and have you published your release apk to alpha? Apr 18 05:43:15 (even if there is nobody on your list of alpha testers, you have to do this) Apr 18 05:43:38 ffs Apr 18 05:43:57 i have to fill out the entire play store listing just to test an in app purchase? Apr 18 05:43:59 <_genuser_> ffs? free friendly snacks? Apr 18 05:44:00 ive uploaded the apk Apr 18 05:44:07 but its not published as alpha Apr 18 05:44:12 no you don't, just publish it to alpha Apr 18 05:44:20 no need to do any play store listings Apr 18 05:44:28 I've uploaded the APK as alpha in the dev console Apr 18 05:44:33 ok that's all you gotta do Apr 18 05:44:45 now are you signed in on that device with a google acccount other than your developer one Apr 18 05:45:21 I'm signed into a google account that is an administrator of the developer account Apr 18 05:47:29 Not the developer account itself, but an account that is attached to the developer account Apr 18 05:52:03 urgh Apr 18 05:54:00 try a new account Apr 18 05:54:04 all I can suggest Apr 18 05:54:30 Google Play Service's APIs have some of the worst documentation I've ever seen Apr 18 05:54:36 most lacking anyway Apr 18 05:54:55 duncannz yeah, i would say "look at the sources" but :D Apr 18 05:55:15 but AOSP is being killed :( Apr 18 05:55:21 slowly Apr 18 05:55:28 no, the commodity bits will stay aosp Apr 18 05:55:37 g00s: help :) Apr 18 05:55:48 the special bits - the ones needed to control everyone, will be closed Apr 18 05:55:52 Yeah but soon you'll have to be running gapps to use most apps. In fact, that's the case already. Apr 18 05:55:53 g00s: did you ever had a problem where a bluetooth never end scanning Apr 18 05:56:07 on one of my phone, I never receive ACTION_DISCOVERY_FINISHED Apr 18 05:56:11 sure you have an android phone without gapps, but not a very useful one Apr 18 05:56:13 Marlinski no :( Apr 18 05:56:42 :( Apr 18 05:56:45 i was hoping CM would do something interesting here, without play services, etc Apr 18 05:56:57 actually i think they are going to load MS apps now :D Apr 18 05:56:58 haha Apr 18 05:56:59 Here's an example, if they had simply said what values to use for the restrictToPlaceIds parameter here I would have saved hours. https://developer.android.com/reference/com/google/android/gms/location/places/PlaceFilter.html#PlaceFilter%28boolean,%20java.util.Collection%3Cjava.lang.String%3E%29 Apr 18 05:57:33 fcking ridiculous how convoluted this is Apr 18 05:58:05 desmin88: and have fun bumping your version ID every time you push to alpha just to test an IAP Apr 18 05:58:09 :) Apr 18 05:58:48 By the way, it may help you to know that you can deactivate alpha APKs by clicking "switch to advanced mode". Good luck Apr 18 05:59:52 g00s: and "getBluetoothService() called with no BluetoothManagerCallback" rings you any bell ? Apr 18 05:59:57 by any chance :] Apr 18 06:00:32 Marlinski lol, wth are you doing "D Apr 18 06:00:43 * g00s doesn't want to know actually Apr 18 06:01:19 duncannz: plus i cant even find this problem referenced anywhere google official Apr 18 06:01:40 g00s: I just trying to make sense of this bluetooth stack Apr 18 06:01:40 google just lets stackoverflow do the documenting it seems. Doesn't always work out too well. Apr 18 06:02:03 g00s: for some reason it doesn't work as expected on my google nexus s Apr 18 06:02:15 Marlinski thats expected :D Apr 18 06:02:58 well, I would expect the connection to drop for instance Apr 18 06:03:09 but here, once scan is started, it never stops lol Apr 18 06:03:23 which is rather annoying since I wait for it to stop before connecting ^^ Apr 18 06:03:30 yeah , if you startLeScan, you have to stop it :| Apr 18 06:03:37 duncannz: I believe its because on my device im signed into a google account linked to a developer account Apr 18 06:03:50 hmm Apr 18 06:03:50 but i dont want to have to log out of my main google account on my device Apr 18 06:03:54 desmin88: make a new google account then and add it to your list of testers Apr 18 06:03:55 it is not LE scan Apr 18 06:03:58 oh just get a new device then. easy Apr 18 06:04:02 /s Apr 18 06:04:06 but I should add a timeout yeah Apr 18 06:04:19 Marlinski the regular br/edr scan takes about 12 seconds Apr 18 06:04:23 * desmin88 is on the verge of an aneurysm Apr 18 06:04:36 poor desmin88 Apr 18 06:04:52 not to mention just implementing IAB is a total bitch Apr 18 06:04:56 yes, that's what it take on my other devices Apr 18 06:05:43 desmin88: it's actually really easy when you copy the util folder from the TrivialDrive folder Apr 18 06:08:23 <_genuser_> yay, application subclasses sucessfully in real app. Apr 18 06:08:31 <_genuser_> moving code from proof of concept proj to real app ... Apr 18 06:09:34 <_genuser_> alright, after this, I think I might just migrate this to AS Apr 18 06:09:48 <_genuser_> anybody done a simple migration from eclipse to AS of an exsiting project? how was it? Apr 18 06:10:07 I have been afraid to try it heh Apr 18 06:10:11 i'm sure it will be exciting Apr 18 06:10:28 <_genuser_> I could always try it with my proof of concept project. Apr 18 06:10:46 <_genuser_> I like eclipse being faster and all that. but I think now that ADT is outdated, I'm probaby building with older libraries. Apr 18 06:10:56 the new as is great, just import it Apr 18 06:11:05 <_genuser_> and it could possibly create crashes in production. so I should just port it to AS. Apr 18 06:11:25 the thing is,even if it is a gradle project amd you haven't opened it on your machine, import it don Apr 18 06:11:27 't"open" Apr 18 06:12:09 <_genuser_> hmm, good to remember. I was thinking of doing an import. Apr 18 06:13:48 I am noticing at least in linux AS is less buggy. Apr 18 06:14:04 or maybe "clunkly" might be a better term Apr 18 06:14:35 <_genuser_> maybe if i update AS it will be faster and less of a mem hog. Apr 18 06:14:40 <_genuser_> I haven't noticed any specific bugs so far. Apr 18 06:15:37 I am using Ubuntu 12.04 so it might be related to that. Eclipse takes a long time to load the various VMs. Apr 18 06:15:49 and it has some editor bugs. Apr 18 06:17:13 lasserix thought you may dig this http://robohub.org/drought-and-desertification-how-robots-might-help/ Apr 18 06:17:21 for some reason Apr 18 06:18:27 yeah indoor farming is way of the future Apr 18 06:18:30 http://www.theregister.co.uk/2015/04/16/google_releases_handwritingrecogniser_for_android/ Apr 18 06:18:51 what a picture (of the author) Apr 18 06:18:59 "The Chocolate Factory's research arm" .. lol Apr 18 06:19:55 ahh damn them Apr 18 06:19:59 an app not a library Apr 18 06:21:12 lasserix another piece for play services :P Apr 18 06:23:01 here's StingRay` :D Apr 18 06:23:10 StingRay` maybe we'll get material v2 at i/o ? Apr 18 06:23:17 metamaterial ? Apr 18 06:23:20 <_genuser_> anybody still use CDs? Apr 18 06:23:41 so your apps can be invisible now g00s? ;) Apr 18 06:23:50 :) Apr 18 06:24:25 "hey, this app made my phone invisible!!!" Apr 18 06:25:11 which reminds me, is it possible to control phone vibration? Ie, change the rate etc. Apr 18 06:27:16 Tesla once caused a localized fake earth quake just by making a device that would tap on a metal beam at a calculated rate, it would be interesting to do that with a phone, maybe not to make quakes, but other stuff perhaps. Everything has a resonate freq after all. Apr 18 06:30:54 * Carbonflux goes to crack some pots. Apr 18 06:32:31 Anyone want to write my app description for me Apr 18 06:39:48 desmin88: how'd you go? Apr 18 06:40:01 decided to not test iap for now Apr 18 06:40:05 haha Apr 18 06:40:59 what im doing is really simple so it (should) work but thats dangerous thinking Apr 18 06:42:02 i cannot find a material design icon for flickr, i have every other social media website except it, grrr. Apr 18 07:34:29 <_genuser_> darn Apr 18 07:34:42 <_genuser_> I'm passing references to the Application object to the listadapters. Apr 18 07:34:49 <_genuser_> it's sounding quite .... convoluted. Apr 18 07:35:26 just go up to flickr's site and grab their icon, I doubt they will mind given your intentions. Apr 18 08:01:05 how can i setListAdapter with list using thumbnailAdapter as we do with array adater example : list.setListAdapter(arrayadapter);? Apr 18 08:24:22 I just downloaded and unpacked the android sdk on linux and it can't seem to update itself Apr 18 08:24:32 Failed to fetch URL https://dl.google.com/android/repository/addons_list-2.xml, reason: File not found Apr 18 08:24:40 if I go to that URL by hand, it loads just fine Apr 18 08:24:48 has this happened to anyone? Apr 18 08:25:29 sometimes you have to change it to http Apr 18 08:25:37 dropping the s Apr 18 08:25:43 which is not a good idea of course. Apr 18 08:25:44 I actually tried that setting and it still got the same error Apr 18 08:25:48 only with an http url Apr 18 08:25:51 ah well Apr 18 08:26:18 that was my only idea, other than hidden chars Apr 18 08:26:31 maybe delete the field and past the url that works by hand Apr 18 08:26:47 paste* Apr 18 08:27:23 Carbonflux: I can't find any place to change the url Apr 18 08:27:26 in the sdk manager Apr 18 08:28:15 is there any special setup I'm supposed to do besides unpacking it and running tools/android? Apr 18 08:29:02 I don't know, I had this problem with Eclipse and was able to change the field. Apr 18 08:29:18 they were in a list iirc and I just edited the fields. Apr 18 08:29:32 beyond that I don't know, if was a while ago Apr 18 08:29:39 it* Apr 18 08:30:16 this is the standalone sdk download. maybe nobody uses it anymore and it broke and nobody else noticed D: Apr 18 08:30:41 ah ok, my mistake, I have never tried the standalone, I used the bundle, sorry. Apr 18 08:30:41 lizzie, what command did you type? Apr 18 08:30:58 tools/android Apr 18 08:30:59 and also Apr 18 08:31:03 lol Apr 18 08:31:08 tools/android update sdk --no-ui Apr 18 08:31:15 same error on both Apr 18 08:31:38 (the first one shows the error in a gui text window) Apr 18 08:31:42 lizzie, how do you launch the sdk manager? Apr 18 08:31:50 tools/android Apr 18 08:31:53 am I doing it wrong? Apr 18 08:33:44 lizzie, if you launch the android sdk manager, should it update automatically? Apr 18 08:34:16 well when I last used the android sdk it did :P Apr 18 08:34:18 that was years ago though Apr 18 08:34:24 and it's trying Apr 18 08:34:36 when I run the gui, it immediately tries to update the package listings but it fails Apr 18 08:34:40 lizzie, I've tried now. No error messages Apr 18 08:34:57 this is the full text that shows in the box, http://pastebin.aquilenet.fr/?2292d2443a9b3bef#R8WYWiV76/+ed50fiubnASy9YIZ5WUmaWbUVWR1jaD0= Apr 18 08:35:07 ok let me delete that directory and unpack it again Apr 18 08:35:38 yeah same thing just happened :/ Apr 18 08:36:05 I think whatever library the manager uses to make http connections, must be messed up on my system Apr 18 08:36:14 but curl and wget work fine so I dunno what one Apr 18 08:38:12 wooo all better Apr 18 08:38:18 I went to stackoverflow Apr 18 08:38:34 after a bunch of advice about proxy settings that didn't apply to me, halfway down the page someone noted that this can happen if your user doesn't own ~/.android Apr 18 08:38:46 so probably it's from running adb as root or such Apr 18 08:39:12 cristian_c, Carbonflux, thanks Apr 18 08:40:01 ok Apr 18 08:40:27 strange that it results in such a misleading error but now I know Apr 18 08:40:30 lizzie, happy to hear it Apr 18 08:40:31 :) Apr 18 08:41:00 addons_list-2.xml is the first of the list Apr 18 08:41:10 so, update fails immediately Apr 18 08:44:48 i would like to pair my phone to another device on bluetooth but before proposing this solution i would like to know whats the average up time of device running the bluetooth.. if its anything less than 8 hours then its a no go already... Apr 18 08:44:59 any suggestions on places to check for this benchmark ? Apr 18 08:49:13 solofight: you mean of the android device or the thing you pair it to? Apr 18 08:49:58 lizzie: android devices Apr 18 08:50:07 what could be the average time ? Apr 18 08:50:13 bluetooth devices aren't a huge hit for battery life on android, depending on what the device does Apr 18 08:50:24 I use a pebble watch with my oneplus one and still get all day battery life Apr 18 08:50:40 if it's something like a speaker streaming bluetooth audio, it would probably be lower Apr 18 09:19:15 hi Apr 18 09:22:52 I'm new to android dev. I'm trying to analyse an apk with the emulator (Google API, API 19) I need this one to create a google account but my .apk seem incompatible with this emulator version. If I try android API 19 it .apk is working but I can't create a google account... Apr 18 09:23:21 So I think the only way is to create a google account with android emulator (not google one) is this possible ? Apr 18 09:34:13 Hey, is it possible to put a breakpoint on evey function in a file automaticly? Apr 18 09:39:42 ok I found a solution, I have to use genymotion Apr 18 09:41:45 hey, disconnected, asking again, is it possible to put a break point on all function in a file automaticly? Apr 18 09:57:40 Why would you want to? Can't you just step through the code? you don't need breakpoints if you're going to do it for everything Apr 18 10:34:20 hello All Apr 18 10:35:03 I am trying to use sliding tab layout tab how can I change action bar title according to the selected tab Apr 18 10:35:49 any help Apr 18 10:45:29 I am trying to use sliding tab layout tab how can I change action bar title according to the selected tab Apr 18 11:36:46 hello all I am trying to change acionbar title according to fragment selected any help ? I am using SlidingTabLayout Apr 18 11:40:27 any help Apr 18 11:47:28 grr.. why can I not compare a stringbuilder.toString() to "1"? http://pastebin.com/KjEiiAYr Apr 18 11:47:43 none of the two sysouts at the bottom return anything Apr 18 11:48:51 looks to me grr2 should work Apr 18 11:49:36 yeah exactly Apr 18 11:50:42 I don't get it Apr 18 11:51:11 perhaps something is hidden in the logcat saying total.toString() is 1 Apr 18 11:54:24 it was the total.append(line + "\n"); Apr 18 11:54:32 removing \n worked Apr 18 12:06:09 hello Apr 18 12:19:07 Hi, How I can set selectedItem in Spinner ? Spinner doesn't have setCurrentItem() method Apr 18 12:23:43 Ok I know, setSelection() it's the answer Apr 18 12:36:09 is there a way to change actionbar title from a fragment ? Apr 18 12:50:06 Hey, anyone familiar with SlidingPaneLayout if the support library? Apr 18 12:52:20 Given a ViewGroup, I'd like to add a "floating" view at the top of it... it is possible? Apr 18 12:52:56 any help Apr 18 13:13:47 hello al Apr 18 13:13:49 all Apr 18 13:14:04 anybody there Apr 18 13:14:55 just me Apr 18 13:21:33 happy Caturday Apr 18 13:30:43 hi everyone! I'm trying to make an app that allows to listen to different audio streams. When I'm trying to switch between channels rapidly - I get these errors from AudioFlinger: http://pastebin.com/54egx2WK . Has anyone had similar errors? Any help would be very appreciated Apr 18 13:39:04 anyone on Apr 18 13:52:11 Hey ,is it possible to select folder for jdk ? Apr 18 14:00:32 First programming interview tips? Apr 18 14:02:53 in what java? Apr 18 14:03:28 Web dev Apr 18 14:03:44 Off topic for here, but I thot Id ask, alot of you prob have experience Apr 18 14:04:09 go to #html Apr 18 14:04:18 ok Apr 18 14:04:23 i have no idea about it Apr 18 14:04:30 Not a problem, thank you Apr 18 14:12:15 command+o in osx lets you jump into specific class by name... what's the windows equivalent? Apr 18 14:12:48 I have to add 80k+ records to the database from JSON file. Adding it one-by-one is very non optimal (takes about 50 seconds). I want to use AsyncTask to add it, anyone has simpler way to optimise this query ? Apr 18 14:13:08 Narzew, download the whole db file :) Apr 18 14:13:26 are you doing the inserts in transactions? Apr 18 14:14:04 i tried to import SQL before I managed to use JSON, but the database haven't been imported propertly (SQL file have 3 MB) Apr 18 14:14:14 iprime: I only use insert statements Apr 18 14:14:58 you can download the sqlite db file and copy it to say your app's private folder Apr 18 14:15:13 if you do a lot of inserts tho you should use begin/end transaction etc Apr 18 14:15:46 but really 80k, just have the server convert/server your data to an sqlite db file Apr 18 14:17:15 iprime: then where I can host sqlite file ? Assets is not good idea, my server validity expires in about 20 days, I won't use my server to download db Apr 18 14:17:49 if it's data that won't change why is bundling it into your app a bad idea? Apr 18 14:19:25 and since it's just 3mb Apr 18 14:20:06 iprime: it will change, but change periods are low (month for example) that I can just post update package Apr 18 14:21:51 but I use constructor that use specified .db file (in my DBHelper class), only one idea is to copy the .db from assets to it ? Apr 18 14:23:27 yeah, i guess Apr 18 14:23:41 https://pastebin.com/TwQuDFAJ here's the constructor Apr 18 14:23:48 do you save any user/device/whatevre state in the db? Apr 18 14:24:25 so copy the db to /data/data/[package]/databases there should be snippets online for how to do that Apr 18 14:24:34 Anyone here every worked with ViewGroup directly? I want to show something similar to toast on a ViewGroup Apr 18 14:24:57 no, I have only static data in it Apr 18 14:25:33 jellybee, why don't you use some of the viewgroup subclasses, would probably be easier Apr 18 14:26:09 iprime, I have an existing code I cant really modify :/ Apr 18 14:37:42 Hi , I am have created an Async to Download a large file from my server in android , and a camera.capture takes users picture in the activity , but the take picture feature does not work until the downloading finishes , please any help ? Apr 18 15:16:15 hey! I solved my problem with AudioFlinger by disabling clicks on other streams in listView until previos stream is definitely released :-) Apr 18 15:16:43 just in case someone was curious... Apr 18 15:17:26 Hi, does every android device have an "getExternalFilesDir" or are there some without? Apr 18 15:24:17 I am having a hard time understanding Dagger 2 X_X Apr 18 15:26:06 ktwo: I think every android device has that method, but the external storage itself may not always be available because it is extracted or mounted or maybe not supported by device. But you can check that with getExternalStorageState() Apr 18 15:26:26 alximych, yea but there are no devices which doesnt have it at all? Apr 18 15:26:51 like without "external" storage partition on its memory Apr 18 15:28:54 ktwo: I think even if device has no external storage - then there should be a redirect with a link or something Apr 18 15:29:19 ah ok thx :) Apr 18 15:31:07 Hello Apr 18 15:32:05 i've got an issue with libsuperuser Apr 18 15:32:42 ktwo, a device without SD card inserted would fit your question Apr 18 15:32:54 by default, Shell.SU.run output doesn't return stardnard error Apr 18 15:33:00 ktwo: documentation says it is not necessarily external device, just "filesystem that can hold a relatively large amount of data and that is shared across all applications" Apr 18 15:33:02 *standard error Apr 18 15:33:38 I guess all android devices have such "place" Apr 18 15:33:50 reading the code, I've found that stderr is set to false in Shell.SU.run call Apr 18 15:34:30 but this call simply calls Shell.run with some parameters Apr 18 15:35:03 so, I've changed the line in my app, using directly Shell.run and setting the parameters Apr 18 15:35:36 setting Wantstderr parameter to true Apr 18 15:35:53 then, I've built the app and i've installed on the device Apr 18 15:39:50 Hi, what's the best practice in terms of activity order for authenticating? Apr 18 15:40:06 unfortunately, when i press button in the activity, the app crash Apr 18 15:40:11 I'm making an app and when it loads I need it to check whether it is authenticated, if it is send it to activity X if not to activity Y Apr 18 15:40:11 *crashes Apr 18 15:40:30 I've collected messages in logcat Apr 18 15:40:41 and once logged in should I return it to the launcher activity? Apr 18 15:40:43 there are some error messages, but in particular: Apr 18 15:41:47 E/AndroidRuntime( 2002): Caused by: java.lang.RuntimeException: Can't create handler inside thread that has not called Looper.prepare() Apr 18 15:41:54 it seems related to asynctask Apr 18 15:42:12 but it's strange. Before the change, no issues :O Apr 18 15:42:16 Any ideas? Apr 18 15:59:14 cristian_c, you're trying to do main thread stuff on another thread Apr 18 15:59:43 uhm Apr 18 16:00:04 iprime, it's strange, I've changed only that method Apr 18 16:00:14 from Shell.SU.run to Shell.run Apr 18 16:00:30 but it's a particolar config of Shell.run Apr 18 16:01:06 https://github.com/Chainfire/libsuperuser/blob/master/libsuperuser/src/eu/chainfire/libsuperuser/Shell.java Apr 18 16:02:31 public static List run(String command) { Apr 18 16:02:31 return Shell.run("su", new String[] { command }, null, false); } Apr 18 16:02:50 not familiar with this lib, but can you show yoru code where you call those Apr 18 16:02:56 ok Apr 18 16:03:04 but use hastebin or something Apr 18 16:04:12 http://pastebin.com/abgNDB4p Apr 18 16:04:42 iprime, I think you are right about the error origin, but this is unexplainable Apr 18 16:06:15 you should call it on the main thread it seems Apr 18 16:06:24 oh nevermind, misread Apr 18 16:07:08 well, interesting Apr 18 16:07:19 which code exactly causes the exception? Apr 18 16:08:16 cristian_c, are you initializing Unmount in a thread? Apr 18 16:08:41 iprime, I paste the activity file Apr 18 16:09:32 iprime, http://pastebin.com/vpEmCaCP Apr 18 16:09:50 I'm using Asynctask to run the stuff in a separate thread Apr 18 16:09:52 the shell Apr 18 16:10:28 iprime, but with Shell.SU.run, the app didn't crash Apr 18 16:10:42 I paste the logcat also Apr 18 16:11:46 iprime, http://pastebin.com/QEi2A6Rn Apr 18 16:16:37 cristian_c, why don't you try to post your async task to the textview queue instead of running it onCreat Apr 18 16:16:48 oh wait, it's a click..hmm Apr 18 16:17:05 the line numbers don't match tho Apr 18 16:17:06 Is there a way for me to see which callbacks/functions are being called in run time? I'm debugging something huge, can't really follow what's going on Apr 18 16:18:14 yes, click button Apr 18 16:18:57 line 34, 23 Apr 18 16:18:58 cristian_c, are you sure the code you pasted is the one you debug? Apr 18 16:19:42 it's strange Apr 18 16:19:49 iprime, yes, it's strange Apr 18 16:20:20 it declares: DoinBackground Apr 18 16:21:20 iprime, maybe, I've found the mistake Apr 18 16:21:22 :) Apr 18 16:21:28 oh, what was it? Apr 18 16:21:39 iprime, previously suResult was a List of string Apr 18 16:21:45 ah no, i'm wrong Apr 18 16:21:58 I thought I've found the mistake :( Apr 18 16:22:02 is this just a sample project? Apr 18 16:22:11 maybe i could try to run it on my device Apr 18 16:22:13 iprime, for now, a proptotype Apr 18 16:22:27 iprime, it needs the classes.jar Apr 18 16:22:52 I am working on an interactive campaign that forces people to meet, is there any unobtrusive way of finding app's users' near you? I think that actively sending GPS coords to server would be a privacy issue? Apr 18 16:22:58 I've built libsuperuser from sources via gradle wrapper Apr 18 16:23:39 iprime, I can try again the logcato to be sure Apr 18 16:23:52 but I think it will not change Apr 18 16:23:53 :( Apr 18 16:24:02 *logcat Apr 18 16:26:44 iprime, unfortunately, either Shell.SU.run than Shell.run return List, so the returned data type is the same Apr 18 16:26:52 bump... Apr 18 16:27:16 dimitrovskif, why don't you just encrypt them Apr 18 16:27:39 iprime: I am talking about user experience more than development... Apr 18 16:27:45 I can try to comment these three lines, anyway, to see if something changes: Apr 18 16:27:49 String[] newArray = new String[suResult.size()]; Apr 18 16:27:50 suResult.toArray(newArray); Apr 18 16:27:50 Log.e(TAG, Arrays.toString(newArray)); Apr 18 16:28:14 iprime: Users are strangers and they are anonymous. My campaign forces you to interact with a stranger in real life to earn a coupon Apr 18 16:28:34 but i've not got any other ideas, at the moment Apr 18 16:28:35 :( Apr 18 16:29:03 cristian_c, just clean and rebuild the whole thing, i think you're looking at an older build Apr 18 16:29:19 ok Apr 18 16:29:27 I'll try both Apr 18 16:32:26 dimitrovskif, if a user wants to participate in your campaign why would it be obtrusive? Apr 18 16:33:03 iprime: I don't know, users trust less and less. How does for example Tinder work? Apr 18 16:33:13 Does it actively send GPS location? Apr 18 16:35:00 not familiar with tinder, but from the wikipedia description it would seem the user only sets their location/radius once Apr 18 16:35:29 so probably not actively sending geo loc Apr 18 16:36:05 Thank you iprime... So I guess I should let them set a rough location once and let users chat with near users to make them actually meet in real life? Apr 18 16:36:20 Basically, once they meet they both win a coupon Apr 18 16:36:41 Or the other way is, do a Service and query GPS every x minutes Apr 18 16:37:08 yeah, probably depends on your app's logic, is it meant for folks that move a lot? Apr 18 16:37:16 make it an option ;) Apr 18 16:37:58 iprime: it's meant for everybody, it's not some kind of startup for meeting people (those are getting boring) - it's a marketing campaign for connecting people Apr 18 16:38:50 My next problem is, I can't force users to actively have GPS on... I don't know how much % of Android users leave GPS on... I guess I should also use coarse location Apr 18 16:39:30 yeah, or wifi networks :) Apr 18 16:39:47 coarse location can be way off tho, but you can decide whether to use it or not Apr 18 16:41:20 Is there any library that will try the best to find some location? (that will try all methods, step by step - ex. if GPS fails, try cached, if that fails, try coarse etc...) Apr 18 16:42:36 the fused location provider? Apr 18 16:43:36 the gms apis are much better than the legacy location stuff Apr 18 16:43:50 iprime: Thanks, that seems to be it. It will work if GPS is off, right/ Apr 18 16:43:52 * right? Apr 18 16:44:54 it would provide a location if it can find one by whatever means Apr 18 16:45:03 you can get the last cached location too Apr 18 16:45:03 Cool Apr 18 16:45:24 Thanks man Apr 18 16:46:45 Hello, I have a SearchView in my apps Toolbar, and I'm trying to get the dropdown spinner for suggestions to use the light theme, but I haven't been able to figure that out. Does anyone know what I can do? Apr 18 16:47:31 dimitrovskif, welcome Apr 18 16:51:57 So, apparently WebAudio in html5 does not work over bluetooth in android????? Apr 18 17:01:59 microhaxo: probably depends on the browser's implementation Apr 18 17:02:32 Well, im talking about Chrome 42 Apr 18 17:02:44 and more importantly Apr 18 17:02:47 WebView Apr 18 17:14:02 Hey guys, I have a static method in an activity and im trying to access that static method from a fragment, but for some reason when I try to AS cannot resolve the method Apr 18 17:14:33 Any reason why I would not be able to access a static method in an activity from a fragment Apr 18 17:14:53 is it public Apr 18 17:14:56 Oops, did static void instead of public satic void.. Apr 18 17:15:05 My bad, dumb mistake, Apr 18 17:15:16 should work if they were in the same package Apr 18 17:15:24 or was it c# :? Apr 18 17:15:56 Different packages Apr 18 17:16:01 But adding public works Apr 18 17:16:28 drose379: https://docs.oracle.com/javase/tutorial/java/javaOO/accesscontrol.html Apr 18 17:17:10 you're using the "no modifier" aka "package-private" access level. Apr 18 17:17:51 this is very basic java stuff. you should either know it, or know where to find it already :) Apr 18 17:20:05 Yeah no I knew it, just forgot the public keyword Apr 18 17:20:22 But thank you JesusFreke & Ashiren Apr 18 17:28:50 close Apr 18 17:28:53 shit Apr 18 17:30:20 Is this the right channel for questions about android app development? Apr 18 17:30:35 yes Apr 18 17:31:04 how may we help you Apr 18 17:32:24 I'm having trouble with View.invalidate() vs View.postInvalidate(). On my phone they act the same, but in the emulator invalidate doesn't change the view until I touch the phone, whereas postInvalidate updates the view immediately. Apr 18 17:33:40 I'm calling the methods during a "onConnect" from a server, so I'm not calling it as part of a UI context, so I think (if I'm reading the internet correctly) I should be using postInvalidate() Apr 18 17:33:48 I can post the code to a pastebin if that would help Apr 18 17:34:12 ok Apr 18 17:34:37 http://pastebin.com/vQ8J7RTs Apr 18 17:34:59 as i remember postinvalidate can cause some problems when running in non-ui thread, despite the fact that it was designed to do that Apr 18 17:35:10 The lines in question are 33 and 34. Apr 18 17:35:14 Oh, no! Apr 18 17:35:32 you'd be better off using handler and invalidate() in there Apr 18 17:35:43 what do you mean, using handler? Apr 18 17:37:19 http://pastebin.com/AMuZ1ZeE Apr 18 17:37:39 handler takes messages, or can take runnables Apr 18 17:37:44 and make them in UI thread Apr 18 17:38:29 and i see other problem, on line 33 specifically Apr 18 17:38:35 didnt it rise exception? Apr 18 17:39:18 oh, after setText you dont have to invalidate, it will be updated immediately Apr 18 17:39:31 so youre just better off using setText in handler Apr 18 17:40:52 Wow! Apr 18 17:40:56 Thank you! That works! Apr 18 17:41:46 So I need to use Handler if I need to do any UI things from a non-UI thread? Apr 18 17:41:55 there's a shortcut for this, runOnUiThread Apr 18 17:42:07 ^ Apr 18 17:42:14 but thats activity's method Apr 18 17:42:35 it's an activity that impls the interface Apr 18 17:43:08 it's just that i'm not comfortable with non static long lived handlers Apr 18 17:43:34 well im surprised it worked on your phone Apr 18 17:43:54 the interesting thing is why didn't his app raise an excatly in onConnect if it was called in a thread Apr 18 17:44:13 an exception* Apr 18 17:46:08 iprime: I have problem with copyDatabase method; throws me IOException, all paths are corectly in my opinion Apr 18 17:46:41 Narzew, show me your code Apr 18 17:47:16 I've updated my code (which works): http://pastebin.com/ZdPP8jZt . Were you guys saying that something else had some codesmell? Apr 18 17:47:47 iprime: https://pastebin.com/A85CYmxv Apr 18 17:47:58 file specified in DB_NAME exists in Assets folder Apr 18 17:48:06 assets* Apr 18 17:49:46 it seems you're trying to copy the file to a path Apr 18 17:50:14 "Caused by: java.lang.RuntimeException: Error creating source database" Apr 18 17:50:24 try to build the path dynamically Apr 18 17:50:53 Hardcoding database path isn't good idea Apr 18 17:53:45 i'm not sure if /databases/ gets created upon installing an app Apr 18 17:54:10 oh btw...if (!dbFile.exists()) { ? Apr 18 17:55:26 maybe permission problem ? Apr 18 17:55:31 but I'm not sure about that Apr 18 17:56:15 oh wait Apr 18 17:56:18 why are you doing file.getPath? Apr 18 17:56:34 should just be dbFile Apr 18 17:57:03 hi. i'm beginner dev. i wonder if it's possible to modify properties of home screen icons trough custom app? Apr 18 17:57:34 what kind of properties? Apr 18 17:57:43 position, rotation Apr 18 17:58:17 not really, the "home screen icons" are part of the launcher app Apr 18 17:58:28 so only if the launcher app provides such functionality Apr 18 17:58:41 widgets, not launcher icons Apr 18 17:59:09 To use OutputStream file must exists ? Apr 18 17:59:25 so not possible. what about reading values of icons' position at least? Apr 18 18:00:20 no Apr 18 18:00:59 strange. i wouldn't say for iOS stuff, but for android... Apr 18 18:01:40 write your own launcher Apr 18 18:01:43 problem solved Apr 18 18:03:47 ok, so then it's possible under the new launcher creation. thanks, time to google. Apr 18 18:05:52 why do you need that info anyway, pussyriot ? Apr 18 18:08:19 mah, i'm trying to incorporate icons into background animation (some fancy screen saver) Apr 18 18:08:34 "screen saver" Apr 18 18:10:54 you could use the launcher icons of some random number of installed apps.. not really the same, but.. Apr 18 18:11:27 if it's just about images, but since you've mentioned you need the position, maybe you're up to a tough task Apr 18 18:23:50 "Caused by: android.database.sqlite.SQLiteCantOpenDatabaseException: unknown error (code 14): Could not open database" that means that database file can be corrupted ? Apr 18 18:26:51 can you debug and check what dbFile is pointing to Apr 18 18:32:09 I'm trying to write my own ContentProvider, but not "against" the SQLite database. I want to load pictures on the phone, "extending" the MediaStore. It's hard, but I'm making progress. What I'm doing, in query(), is to open a cursor to MediaStore.Images.Media, and then trying to insert the data (plus some additional metadata -- hence the custom provider class) into a MatrixCursor. But I keep getting CursorIndexOutOfBoundsExcepti Apr 18 18:34:28 disclaimer: this is part of an exercise (not school work), which is why the purpose is a bit odd. "extend the mediastore", I hear you thinking ;-) Still: I'm able to see the PhotoProvider.query() method being called, when an image in the "mainactivity" is clicked, so I believe I'm making progress... But why the Caused by: android.database.CursorIndexOutOfBoundsException: Index -1 requested, with a size of 1 on line 35?? Apr 18 18:35:39 joakimk_: This error should be pretty self explanatory Apr 18 18:35:56 I suspect you didn't move your cursor to the first element Apr 18 18:36:14 CedricBeust: AH! Apr 18 18:36:19 newbie alarm ;) thansk! Apr 18 18:37:07 okay so anyone here used stripe and integrated it into android? Apr 18 18:37:23 having issues calling methods maybe installed wrong do not know for sure. Apr 18 18:39:58 CedricBeust: it works! One stvep at a time, learning a lot :) thanks again! Apr 18 18:40:20 joakimk_: You're welcome Apr 18 18:40:48 anyone understand stripe and integrating it into android? Apr 18 18:41:18 kingcrusi_: You still haven't asked a question nor provided enough information for anyone to help you Apr 18 18:41:24 For some reason my AS downloads fail. Apr 18 18:41:32 gotcha okay will correct Apr 18 18:41:37 I am downloading from the developer.android.com. Apr 18 18:43:50 when calling the card method on stripe it gives me a error as it request parameters and we gave it arguments but i have just givin it exact strings or int for testing Apr 18 18:45:42 is java.lang.String different from a regular string or am i looking at this all wrong Apr 18 18:45:57 it's a regular string Apr 18 18:47:20 Anyone know if there is a better way to store session tokens other than passing it around packaged in an intent? Apr 18 18:48:00 lonewaft: use a singleton Apr 18 18:48:06 okay what could be the problem them with it giving me the error for the card method expected parameters: actual arguments Apr 18 18:48:42 dont know if pasting code is allowed Apr 18 18:48:44 but Apr 18 18:48:52 kingcrusi_: pastebin Apr 18 18:48:52 Card card = new Card("4242-4242-4242-4242", 12, 2016, "123"); Apr 18 18:49:00 uh oh Apr 18 18:49:01 to late Apr 18 18:49:02 sorry Apr 18 18:49:10 well now that its here Apr 18 18:49:20 this is what i have and its giving me this error Apr 18 18:49:27 With pastebin, you can provide more code and also the exact error. Without that, you will probably not get any help Apr 18 18:49:36 Do not paraphrase the error Apr 18 18:49:38 got it pastebin it is Apr 18 18:50:44 myke : never saw this before, but seems perfect, thank you! Apr 18 18:52:06 kingcrusi_ make sure the card # is valid for the type Apr 18 18:52:35 http://www.paypalobjects.com/en_US/vhelp/paypalmanager_help/credit_card_numbers.htm Apr 18 18:52:56 Does someone know how to set a field/variable of an object that is created via gson if that field is not returned in the json. Apr 18 18:52:58 hi Apr 18 18:54:17 I have a transparent activity with an EditText view over an actionbaractivity. how can I prevent android to bring the actionbar from the "behind" activity on top of the softkeyboard when editing text ? Apr 18 18:54:37 does somebody have a working make_ext4fs that was built with android compatibility... or can someone guide me to building it? I tried following a couple different instructions but they all keep failing Apr 18 18:55:00 blind off topic for this channel, see topic Apr 18 18:56:18 @CedricBeust: http://pastebin.com/4tV3zP5T here is the pastebin of the code have commented the part of the code where the error is and given the error at the bottom. Apr 18 18:57:08 so, there is no channel for building using android source code? I figured that was lumped in here. Apr 18 18:57:20 Sounds like a simple javac error, double check the signature of the method Apr 18 18:57:42 blind: Probably #android-root Apr 18 18:57:55 heh. so then no :p Apr 18 19:02:25 dragorn pretty warm today ! Apr 18 19:03:17 is there a way an Adapter (e.g. for GridView) could load the content itself? Apr 18 19:03:26 is there any importance to order of things declared in gradle dependency { } blocks ? Apr 18 19:03:37 likewise, include 'x', "y', "z" Apr 18 19:04:10 g00s, it seems to me there's no importance Apr 18 19:32:59 When did Google start auto translating the text on play? Apr 18 19:33:31 and can I prevent it without setting a custom text for other languages? Apr 18 19:38:43 I see its only the short description Apr 18 19:45:05 anyone here with a rooted Xperia Z3 that can test an app for me? It works on my Z3 Compact but I have no ordinary Z3 to test on Apr 18 19:51:49 question: I have an activity extending a v7 ActionBarActivity, which holds a PreferenceFragment with my app preferences. In my primary activity, I register an OnSharedPreferencesChangeListener that will just dump any changes to the log. However, no matter what I change on the prefs screen, nothing ever gets logged. Apr 18 19:51:58 anyone have any idea where I could look? Apr 18 19:52:13 whats the website that will test an app on a bunch of different apps for you? Apr 18 19:55:29 I had an insanely good one but I forgot its name when I paused developing for some time Apr 18 19:55:50 it was free and ran that monkeyrunner on hundres of devices Apr 18 19:58:30 i found appthwack that seems okay but you only get 100 minutes free Apr 18 19:58:39 i guess you rent out space on their devices Apr 18 19:59:00 for some reason i cant figure out why my app doesnt work on the verizon s3 Apr 18 20:03:38 rip Apr 18 20:07:19 if I have an Adapter that used my custom ContentProvider, and the data must be formatted etc. before displaying it, where should the formatting be done? Apr 18 20:17:18 well thats interesting. It seems as though the galaxy s3's camera forces a rotation into landscape mode even if the activitys locked to portait. this was screwing with my intents Apr 18 20:21:17 ##stripe Apr 18 20:21:24 #stripe Apr 18 20:24:08 Too many imports at start makes app bigger ? Apr 18 20:24:54 the compiler should exclude any unused imports Apr 18 20:25:07 but yes, more imports = more depndencies = more files to include in your app Apr 18 20:26:33 but If I have 2 activities Apr 18 20:26:40 Activity 1 needs 20 imports Apr 18 20:26:56 Activity 2 needs 10 imports but I import all from Activity 1 Apr 18 20:27:04 Does my app gets bigger then ? Apr 18 20:28:39 if you are importing the same thing multiple times for different classes, when the compiler includes the dependencies it'll only include it once Apr 18 20:28:42 so no Apr 18 20:29:16 Narzew, are you building for a low-end hardware or why are you worrying? Apr 18 20:29:53 i recall someone discussing that you dont need device drivers to use adb. how do i do that? Apr 18 20:30:25 DadFoundMy: ? Apr 18 20:30:50 adb is client/server, you can connect to a remote adb server, maybe they meant that? Apr 18 20:33:29 im trying to run my app on a family memebrs phone from adb. traditionally dont i need to install their drivers? Apr 18 20:33:35 myke: ^ Apr 18 20:33:56 depends, on linux there are no separate drivers Apr 18 20:34:25 well im on microshit Apr 18 20:34:26 dunno exactly how that works in windows, i haven't done it much Apr 18 20:34:50 windows requires a driver for the chipset manufacturer of the device Apr 18 20:34:57 but i think they are fairly generic, the driver from the manu may cover most of their models Apr 18 20:34:58 which may or may not have any relationship to the branding of the device Apr 18 20:35:08 ah, that makes sense Apr 18 20:35:21 so you can use genric ones from the chipset manu Apr 18 20:35:26 the issue on windows is that the driver might not have an ID to enable it for the device Apr 18 20:35:28 so you'll have to google and find a development driver for that device that people say works. I'd check on xda-developers. Apr 18 20:35:35 like the goold old days of "get this random audio card to work" Apr 18 20:35:47 sure. there's lots of issues. Apr 18 20:35:47 cool so i dont need to download bloated samsuing keiss Apr 18 20:35:56 you might Apr 18 20:36:04 because ADB on Linux/OSX uses access from userland, while on Windows there's an extra kernel driver, and it needs to know whether it can load it for device Apr 18 20:36:04 samsung makes their own chipset, so, chances are you will Apr 18 20:36:14 sheit Apr 18 20:36:16 dragorn: google's driver will work with modified INF file Apr 18 20:36:37 was gonna ask, if it's just an id issue can1t you modify the ini Apr 18 20:36:40 yeah it really is the 90s again Apr 18 20:36:42 DadFoundMy: search for "universal adb driver", it's google's ADB driver with extra device IDs added so Windows knows it can load it for the device Apr 18 20:36:51 myke: INF file, yes, and it will work Apr 18 20:37:22 myke: NT is just very exacting on whether it loads a driver or not, which fits given how so many drivers were written badly Apr 18 20:37:32 3rd party drivers at that Apr 18 20:48:50 I get unbound prefix (parsing XML) at this line: All tags before are OK, and I closed the entire tag Apr 18 20:55:30 have you declared custom xml:tools Apr 18 20:56:03 the first or second line in xml. the lib's docs should mention that Apr 18 21:13:52 Hi, could an Android app use WiFi to connect to another WiFi device (not another network device, but a device using WiFi for special purposes if that make sense) without having to disconnect from the WiFi connection providing internet? Apr 18 21:28:11 is ~/Library/Caches/AndroidStudio folder safe to delete? Its taking 11GB on my disk Apr 18 21:36:19 astroduck: IDK but try File / Invalidate Caches Apr 18 21:51:55 amcsi: usually not, not really an android issue even Apr 18 22:10:52 Know anyone algorithm name to calculate middle point coordinates before coordinate 1 and coordinate 2 on map ? Apr 18 22:43:50 So I just got a fitbit and I want to decompile the fitbit apk. I'd like to toy around with making an app/xposed module that can get it to send me all notifications, not just caller ID. Does anyone know how to decompile an apk as well as the .smali files? I remember reading something on XDA awhile ago Apr 18 23:04:32 nasojlsu: midpoint? Apr 18 23:05:21 t0astt: there is a website you can upload to Apr 18 23:06:01 lasserix: do you know if the code that comes from that decompile will be working once recompiled into an apk? Apr 18 23:06:27 not out of th ebox Apr 18 23:06:52 but it is possible Apr 18 23:06:55 just research Apr 18 23:10:50 Hey guys, in App Bar how to show icon button pointing to the right? I am using abc_ic_ab_back_mtrl_am_alpha for left icon. Apr 18 23:15:40 action bar? Apr 18 23:15:58 in the toolbar Apr 18 23:16:06 are you using the toolbar? Apr 18 23:16:10 yea Apr 18 23:16:10 setNavigationIcon Apr 18 23:16:19 ors ometinglike that Apr 18 23:16:42 i use toolBar.setNavigationIcon(R.drawable.abc_ic_ab_back_mtrl_am_alpha); but it only sets in to the left for back button. I want to also have a forward button Apr 18 23:16:59 or that would be a custom thing Apr 18 23:17:10 you could put an imageview inside the toolbar, use leftmargin to offset it Apr 18 23:17:21 layout_gravity - center vertical to center it Apr 18 23:17:32 ohh ok Apr 18 23:17:45 yea I could try that. Thanks Apr 18 23:18:10 though i would not recomend putting it there Apr 18 23:18:20 since the left is supposed to go back Apr 18 23:18:25 its contextually misleading Apr 18 23:18:51 hmm. how would I add a forward button. We have viewpager, but I need to have a button as well Apr 18 23:19:03 should I have an > icon Apr 18 23:19:17 why? Apr 18 23:19:26 is the left arrow suppose dto the to the left? Apr 18 23:19:29 not up/back Apr 18 23:19:58 a viewpager is intuitive people understand swiping, you really dont need arrows in addition. Apr 18 23:20:05 that's just assuming your users are idiots Apr 18 23:20:22 it's a requirement.... my CIO assumes that all the time :) Apr 18 23:20:22 but if you did want them Apr 18 23:20:31 you should put them Apr 18 23:20:35 as action bar items Apr 18 23:20:40 on the right hand side, left and right Apr 18 23:20:50 so they are not confused with going back " up" / to the previous activity Apr 18 23:21:02 yea that makes sense Apr 18 23:21:54 How about a '<' and '>' Apr 18 23:23:33 though it's kinda the same but they have to be present on each activity as users answer questions Apr 18 23:25:18 you could also put them like on the bottom left and right of each page Apr 18 23:27:56 In OkHttp, is Call.cancel guaranteed to block until all calls have been canceled? Apr 18 23:28:04 (It's hard to tell from the source, and I guess not, but I wonder.) Apr 18 23:28:17 s/all calls have/the call has/ Apr 18 23:30:17 doesnt look like it Apr 18 23:34:45 forgot my laptop, dual wielding phones instead Apr 18 23:35:08 TacticalJoke: hows aqua coming along? Apr 18 23:35:39 The project formerly know as Aqua is coming along well. :D Apr 18 23:36:18 I dunno how long till 1.0 (or 0.1), though. Everything takes so long. Apr 18 23:36:19 have any builds i can use? Apr 18 23:36:33 I could give you one soon, if you like. Apr 18 23:36:39 yeah please Apr 18 23:37:20 :D Apr 18 23:43:56 can proguard obfuscation be undone? Apr 18 23:44:41 in what way? Apr 18 23:45:01 so that I don't just tons of methods, variables, etc named a, b, c, etc in this decompiled apk Apr 18 23:45:46 that's theoint of progura Apr 18 23:45:48 a Apr 18 23:45:50 rd Apr 18 23:45:51 yeesh Apr 18 23:46:04 i doubt the original names are still in that apk Apr 18 23:46:14 i guess. I'm trying to reverse the fitbit app and see how they send notifications from the app Apr 18 23:46:21 so I can write an xposed module to send other notifications Apr 18 23:52:37 t0astt: there is such thing as java deobfuscators but they can't get the original name but will try to make sense of the name depending of returning type of something Apr 18 23:52:53 ah ok Apr 18 23:52:56 that's better than nothing Apr 18 23:53:00 any that you can recommend? Apr 18 23:53:33 if you can decompile it then compile it use the debugger Apr 18 23:56:06 t0astt: nope sorry, just saying. Apr 18 23:56:40 t0astt: also scan first for non-obfuscated names. something names of lib classes and other stuff is kept Apr 18 23:57:05 t0astt: cant you use fitbit api? Apr 18 23:57:16 lasserix: I can look at that Apr 18 23:58:47 is there a way to divide space by the children Views without using a TableRow? :P Apr 19 00:01:32 lasserix: it looks like their api only lets you get information about calories, foods, steps, etc. nothing about notifications Apr 19 00:07:41 is there a way to revert as upgrade? Apr 19 00:10:13 lasserix: I'm pretty sure there isn't. Apr 19 00:15:50 Hi there. Pardon the noob question, but how do I find/specify which .dts-file is to be used for my particular build of Android? Apr 19 00:18:06 are there any XMPP server side chat services that come with chat history cooked in? Apr 19 00:19:08 currently looking at Quickblox, but the chat history portion is behind a paid plan and this is for an educational project Apr 19 00:19:26 wanted to make sure there wasn't an alternative before we went off to create our own solution Apr 19 00:22:06 lfk: a .dts-file? Apr 19 00:22:15 I've never heard of that Apr 19 00:22:26 lfk: The Linux device tree. Apr 19 00:22:42 I'm compiling Android itself, not building an app. Apr 19 00:55:35 Hi everyone, I'm looking for an adb transport that proxies the adb server connection to a device connected to another machine. Is anyone aware of such a thing? Apr 19 00:59:07 I have multiple subclasses that all need varrying arguements for an "updateState" call. What's the best way to do this? (int subclass_type, String args...) ? Apr 19 00:59:18 and switch on the state to get the right subclass? Apr 19 01:01:09 lasserix: Composition rather than inheritance? Apr 19 01:02:18 no Apr 19 01:02:20 this is views Apr 19 01:02:27 lasserix: Show some pseudo code Apr 19 01:02:32 besides not sure how that would sovle the problem Apr 19 01:02:34 one sec Apr 19 01:13:17 http://pastebin.com/c8tHhpf7 Apr 19 01:23:56 I was thinking of using the Builder pattern, which will return a hashamp and setMediaSources will take that hashmap where each subclass cna use predefined keys in the super class Apr 19 01:24:55 lasserix: These methods could take a Config parameter that contains various parameters and they only look up the info they need Apr 19 01:26:08 you mean subclass config per each concrete subclass of the videoview? Apr 19 01:26:22 You don't even need to go that far Apr 19 01:26:32 Config has all the fields but each method only looks up the fields it needs Apr 19 01:26:57 class Config { uploadDateDisplayInfo, streamingUrl, previewUrl overlayDisplayInfo } Apr 19 01:27:11 oh i see Apr 19 01:27:45 Config should probably be called MediaSourceInfo or something that ties it more closely to the setMediaSources() method Apr 19 01:27:58 more closely tied* Apr 19 01:28:04 right Apr 19 01:28:35 thanks Apr 19 01:28:44 that is simpler than the builder hashmap Apr 19 01:29:34 I don't know where you were going with the build hashmap but a builder pattern to create Config might be useful, so you can verify its state (looks like it needs to have at least 3 of its 4 fields initialized, something a Builder can help you assert) Apr 19 01:30:09 the hashmap was just acting as the config class so i didn't have to add another class definition Apr 19 01:30:21 Ah ok, Config is more strictly typed to better IMO Apr 19 01:30:29 so better IMO* Apr 19 01:31:27 right, and if i have to predefine the keys might as well just encapsulate in config class Apr 19 01:31:28 thanks Apr 19 01:45:29 Does anyone have a moment to help me get my app debugging on an actal device? Apr 19 01:45:48 android studio is being...troublesome Apr 19 01:46:16 ? Apr 19 01:46:43 if I try to run my app, and use my phone as my target, it won't install Apr 19 01:47:07 DEVICE SHELL COMMAND: pm install -r "asdfasfdasdf" Apr 19 01:47:08 does the error console say anything? Apr 19 01:47:10 ABORTED Apr 19 01:47:21 is your phone meet minimum sdk? Apr 19 01:47:29 yeah Apr 19 01:47:33 does your phone have enough memory? Apr 19 01:47:41 yup Apr 19 01:47:55 it's just the sunshine app, and I have an S5 Apr 19 01:48:01 is there something in your manifest incompatible with your phone? Apr 19 01:48:18 maybe in your settings you have not checked allow installation of 3rd party apps? Apr 19 01:48:27 like a security setting in phone settings menu Apr 19 01:48:32 I have allowed that Apr 19 01:49:46 you must have the droid curse Apr 19 01:50:00 how can I be cursed, I just started! Apr 19 01:51:27 I can view my devices in adb, I can see the logcat, but I can't install to it... Apr 19 01:54:41 ClassNotFoundException: Didn't find class "com.adnroid.command.pm.Pm" Apr 19 02:03:03 is your device online in adb Apr 19 02:11:04 CedricBeust: works great thanks again Apr 19 02:11:13 Sure Apr 19 02:29:28 * g00s fires up droid-1 :D Apr 19 02:39:23 g00s: it's been 10 minutes, is it down booting up yet? :D Apr 19 02:39:41 oh yeah, man this thing runs hot Apr 19 02:40:05 probably charger Apr 19 02:40:13 i sometimes boot up my dad's old droid 2. Thing is unbearbly slow Apr 19 02:40:27 thing is build like a brick though Apr 19 02:40:31 o_O install a proper firmware on it Apr 19 02:40:43 im sure with a good old factory reset it could be fairly useful Apr 19 02:40:45 damn kids. you don't know what slow is Apr 19 02:41:40 qmr: ive been blessed to be born in an age where the slowest internet ive used was like 10mbs, and my first computer ran XP :D Apr 19 02:42:24 back when looking at porn was like a strep tease Apr 19 02:42:32 my first computer didn't have a hard drive :P Apr 19 02:42:54 the slowest modem I've used was 300bps :P Apr 19 02:43:10 heh - yep Apr 19 02:43:13 i kinda rememeber my families win 2000 machine but i was too young to use it substanially then Apr 19 02:43:13 what's a modem Apr 19 02:43:29 for curiousity sake how old are all you guys? Apr 19 02:43:34 AT command set progrmmaing Apr 19 02:43:53 30 Apr 19 02:44:18 25 Apr 19 02:44:33 heh you guys are some of the age of some of my teachers in school Apr 19 02:45:30 dang son Apr 19 02:45:42 don't ask us to by you beer Apr 19 02:46:29 ew beer still taste gross at this age Apr 19 02:46:31 one thing i am sure of: i had more fun with my commodore 64 than my droid-1 :D **** ENDING LOGGING AT Sun Apr 19 02:59:59 2015