**** BEGIN LOGGING AT Wed Aug 27 02:59:58 2014 Aug 27 03:01:01 question : is there a reason one would want to remove a globalLayoutListener when navigating away from that activity ? Aug 27 03:01:30 canvs2321: I figured out that when I move things into Asynctask it somehow conflicts with the onTextChanged for a custom search textview I have, but if I comment out that code for custom autocompleting custom search , it works ! Aug 27 03:04:37 StingRay_: gonna try without the custom view but it doesnt do any measuring afaik Aug 27 03:06:02 nope Aug 27 03:06:30 desmin88 are you adaptively adding fragments to that scroll ? Aug 27 03:06:49 no Aug 27 03:10:13 im not even adding anything to that framelayout and it stills overlapping Aug 27 03:10:34 if you open this app in the play store and click the first link in the description, does anyone else get a FC? https://play.google.com/store/apps/details?id=com.ttxapps.dropsync.pro Aug 27 03:11:23 yeah Aug 27 03:11:36 derp derp derp derpity derp Aug 27 03:11:52 all market:// links in app descriptions are causing FC Aug 27 03:13:46 StingRay_: adding a background color fixes it Aug 27 03:13:57 but that doesnt seem like thats how it should be done Aug 27 03:14:21 I just think maybe the html view has an onMeasure problem Aug 27 03:14:36 it doesnt Aug 27 03:14:40 i changed it to a regular textview Aug 27 03:14:41 background somehow makes it work… or that would be my random guess Aug 27 03:15:10 well seems too simple to have an odd problem like that Aug 27 03:15:18 yeah Aug 27 03:15:19 https://github.com/dschuermann/html-textview/blob/master/src/main/java/org/sufficientlysecure/htmltextview/HtmlTextView.java Aug 27 03:15:25 also no onmeasure issues i can see Aug 27 03:16:29 if you get back to where it had the prob, does config change do anything ? (rotate screen) Aug 27 03:17:33 nope Aug 27 03:32:44 " VMware Workplace Suite to stream even graphics-intensive Windows applications to Google Chromebooks" Aug 27 03:32:45 hmm Aug 27 03:33:15 stream & graphics... Aug 27 03:33:35 capella if you are interested http://www.citeworld.com/article/2599021/mobile-byod/vmware-beefs-up-desktop-suite-with-help-from-airwatch-google-nvidia.html Aug 27 03:33:38 & windows. oh my! Aug 27 03:34:33 "delivering a full virtual desktop-as-a-service to any HTML5 browser," :O Aug 27 03:34:40 I used VMWare for a year or so, It worked pretty well ... my Win host was underpowered though Aug 27 03:35:00 yah, that can't be good Aug 27 03:35:06 :D Aug 27 03:38:29 oh i hope this rumor is true "Bloomberg is reporting today that Apple is preparing to release a larger 12.9-inch iPad in early 2015:" Aug 27 03:38:46 i've always wanted a bigger tablet to read ebooks; since thats pretty much all i use these toys for Aug 27 03:39:00 once they are that big, hopefully they start acting like grown ups too Aug 27 03:39:13 I do a lot of reading on my GS3 and it's all I need :) Aug 27 03:40:49 capella i wish MS sticked to Windows RT; i think they were onto something using ARM Aug 27 03:41:35 they had lost their mind @that point Aug 27 03:41:46 still tryinh Aug 27 03:42:02 to un ballmerize Aug 27 03:42:19 it seemed half-baked in some ways though, like office light & other compromises Aug 27 03:42:20 once you go ballmer Aug 27 03:42:57 ballmer had no direction Aug 27 03:43:25 "just do everything" Aug 27 03:47:39 no he owns a sports team Aug 27 03:48:07 yah, nice career seg-way Aug 27 03:53:51 capella: segue Aug 27 03:54:22 um... correct :) Aug 27 03:54:29 desmin88: maybe he traveled from the microsoft campus to the training ground on a self-balancing scooter? Aug 27 03:54:36 lol Aug 27 03:54:40 heh Aug 27 04:20:04 * capella pity's the segway that has to haul Ballmer around :P Aug 27 04:20:40 Also, didn't he play the monster in "Young Frankenstein"? Aug 27 04:21:20 http://img1.wikia.nocookie.net/__cb20130409033817/villains/images/d/df/Young-frankenstein_Peter_Boyle.jpg Aug 27 04:21:30 (heh - off topic - sorry) Aug 27 04:35:59 When my app is killed on Android 2.3 Galaxy Tab, the bluetooth connection is never closed. The connection is closed properly on 4.1 newer Samsung tablet. Aug 27 04:46:23 cool story jimbo1qaz :) Aug 27 04:47:40 thank you for sharing :P Aug 27 04:47:51 I'm serious Aug 27 04:47:57 based on bluetoothchat Aug 27 04:48:08 how do I fix? Aug 27 04:48:18 no doubt you are serious, but its still a cool story Aug 27 04:48:41 now, "how do I fix it" is entirely a different story :/ Aug 27 04:49:09 what the heck is a 2.3 Galaxy Tab ? Aug 27 04:49:18 is thet when samsung tried to make tablets prior to HC ? Aug 27 04:50:04 android v2.3 Aug 27 04:50:12 prob. different bt stacks Aug 27 04:50:13 simple solution, drop that shit ! Aug 27 04:50:21 minSdk=15 Aug 27 04:50:24 heh heh Aug 27 04:50:58 actually i wonder if minSdk should be 4.1 or 4.2 these days Aug 27 04:51:18 also is it possible to, when I pause the app in the debugger (android studio), then I tell which threads are busy doing what? Aug 27 04:54:42 minSdk=4 Aug 27 04:55:04 omi Aug 27 04:55:39 well, if the bug is in my asus transformer 4.0.x, that would indicate the bug is present in random devices. At some point I should test. Aug 27 04:56:18 * ravilov can understand not wanting to put time and effort into supporting older androids, but cannot understand hating on them Aug 27 04:56:38 jimbo1qaz wonders into the dark world of bluetooth on android Aug 27 04:57:05 what's "dark"? Aug 27 04:57:18 ravilov its not an emotional decision (hate), just a logical one based on software economics Aug 27 04:58:21 jimbo1qaz you're about to find out :) Aug 27 04:58:33 bwahaha, vincent price laugh Aug 27 04:58:50 Can you tell me now? Is it at all related to the ugly inputstream-socket-simulation I managed to hack from the bluetoothchat? Aug 27 04:59:31 no, its bluetooth being unpredictable on many devices Aug 27 05:00:19 you also have the pre 4.2 using bluez and 4.2+ using bluedroid Aug 27 05:02:43 g00s, it kinda is hating it, I've noticed whenever anyone asks how to fix a problem on an older version of android, the answer is too often "just forget about that crap". even if it makes no sense to most, I shouldn't have to justify my need or decision to support it in order to get some actual assistance about my issue. Aug 27 05:05:59 http://stackoverflow.com/questions/14280623/android-bluetooth-connection-doesnt-close-after-application-crash correct Q, no good A's. It seems bluetoothchat has a "Service" does not extende Service, is it on the same process as UI but diff. thread? Aug 27 05:06:08 "point of diminishing returns" Aug 27 05:07:01 jimbo1qaz: fix the crash? Aug 27 05:07:21 ++ Aug 27 05:08:05 yeah, I fixed the crash but did the config-rotate thing anywaty Aug 27 05:08:36 now it doesn't kill the connection, but anyway, when you left the app and changed the settings, it's reasonably reasonable to expect it to disconnect Aug 27 05:11:12 Really, I think the bigger bug is the likely upstream, when you connect twice in quick succession, you get a socket-related crash. Aug 27 05:11:39 hm, the sample apps can be pretty buggy Aug 27 05:11:39 Made worse by me adding a reconnect button, making the crash as simple as clicking twice. Aug 27 05:11:53 the original BluetoothChat had a laughable bug, and the BLE sample is also buggy Aug 27 05:12:04 what was the bug? Aug 27 05:12:04 * g00s go back to reading Aug 27 05:12:25 I had to get the source from the android source tree because it's missing from the samples page. Aug 27 05:12:38 Is Bluetooth Low-Energy sample compatible? Aug 27 05:14:26 Was it that the buffer was overwritten after it was transmitted to the gui, while the gui's reading? I rewrote that part Aug 27 05:14:38 yeah, thats one bug Aug 27 05:14:49 any other bugs? Aug 27 05:15:00 not that i recall in bluetooth classic Aug 27 05:17:44 is blue-lo-energy compat with rfcomm classic slaves? Aug 27 05:19:46 anything happen when I was gone? Aug 27 05:21:39 apparently not Aug 27 05:21:45 any bots I can query? Aug 27 05:26:02 nope, nothing happened; as for the bots, see the title Aug 27 05:26:08 topic* Aug 27 06:28:28 hi lasserix Aug 27 06:28:33 after a long time Aug 27 06:30:39 dang ... hate it when other dev's bugs impact my own bugs Aug 27 06:35:20 Is node.js recommended for real-time communication and data display sent from Android? Aug 27 06:36:46 hi there, i want to use TrafficStats, ut i dont know which UID is ment by the methods. There is no description for it. So my questin is, where i can get some UID for the calls? Aug 27 06:42:26 smart1, you did of course check the docs? it is all explained in there Aug 27 06:42:57 taw, hardly a good place for this question as it has pretty much nothing to do with android Aug 27 07:37:47 ravilov: point taken, thanks for the clarification. Aug 27 07:44:02 how to catch mouse buttons? Aug 27 07:47:54 I recommend a cupped hand, for maximum chance of catching them Aug 27 07:48:32 a bowl of some sort would do even better Aug 27 07:48:35 the bigger the better Aug 27 07:57:35 hmm Aug 27 07:57:35 :) Aug 27 08:01:26 does anyone know which font is used by stock email app ? Aug 27 08:01:43 the stock font? Aug 27 08:01:44 api dependent probably Roboto Aug 27 08:01:52 ya stock font Aug 27 08:01:58 in nexus 5 Aug 27 08:02:09 yes, the stock font Aug 27 08:02:20 nexus 5 api 19 stock font....any ideas? Aug 27 08:02:31 is google not working? Aug 27 08:02:51 not giving me any results Aug 27 08:03:06 full of results of people asking how to change stock font Aug 27 08:03:26 apparently you're horrific at googling Aug 27 08:03:34 maybe Aug 27 08:03:37 "android api19 stock font" - first result says it clearly: Roboto Aug 27 08:04:15 I didn't know it was API dependent Aug 27 08:04:20 it isn't Aug 27 08:04:23 but you insisted Aug 27 08:05:17 Hello guys I am using Google authentication to authenticate users in my andorid app. Some users are not able to login. On communicating with one of my user he told me that he is having Google play services 4.9.13. Can you guys suggest me a solution to support authentication for users having lower version of play serices on their phone Aug 27 08:05:24 thanks anyways Aug 27 08:05:45 neo3: tell them to update Aug 27 08:06:11 But not everyone would take the pain to update it. Is there a solution ? Aug 27 08:06:16 or alternative Aug 27 08:06:18 no Aug 27 08:06:24 Ohh :( Aug 27 08:06:28 tell them "if you want to use this app, update GPS" Aug 27 08:06:34 and you can add Aug 27 08:06:43 "otherwise, STFU and GTFO" Aug 27 08:06:52 this should solve the problem Aug 27 08:07:00 or you can try using a lower version of play services to compile against Aug 27 08:07:23 if you're targeting a broad audience, you don't really need "latest and greatest" Aug 27 08:07:31 for the reasons you mentioned yourself Aug 27 08:07:40 I am using compile 'com.google.android.gms:play-services:4.+' in my build.gradle Aug 27 08:07:56 what is STFU and GTFO ? Aug 27 08:07:58 :P Aug 27 08:07:59 oh, don't ask me *how* to do it, I can only tell you to do it Aug 27 08:08:12 that's a dumb question, why don't you just google it? Aug 27 08:08:12 okay np Aug 27 08:08:24 (about "what is this or that acronym?") Aug 27 08:09:24 neo3: once you've found the definition, keep in mind that I was just joking ;) Aug 27 08:09:48 I know :d Aug 27 08:09:50 :D Aug 27 08:09:54 Thanks Aug 27 08:09:55 bye Aug 27 08:09:56 hehe Aug 27 08:18:23 What's best practice for GPS? Building against the earlier version that supports the featureset you want? Aug 27 08:23:39 Estel, what do you mean by that? Aug 27 08:24:28 nm, my brain turned on a bit more. Onward lunchtime hooo Aug 27 08:26:34 Estel, if you ask me, it's the same as with API levels - don't demand an API level larger than your app actually needs Aug 27 08:34:42 hey guys, do you follow any design pattern for your project? Aug 27 08:34:53 O.o Aug 27 08:34:54 many. Aug 27 08:34:56 and none. Aug 27 08:35:20 But if you want to keep your sanity in complex apps, do look at EventBus / Otto message bus patterns :) Aug 27 08:39:24 piracyd3, I follow what makes sense the most to me Aug 27 08:39:33 often times I tend to be right ;) Aug 27 08:40:03 making an app is a highly creative process, following some sort of cookbook is often times not applicable Aug 27 08:43:11 I see. Thanks for the input ravilov and Mavrik :) Aug 27 08:43:39 what is with this Warning:(7, 18) Avoid using + in version numbers; can lead to unpredictable and unrepeatable builds (com.android.tools.build:gradle:0.12.+) Aug 27 08:44:22 tagrudev: it suggeests you specify a specific version of the build tools Aug 27 08:44:54 :D Aug 27 08:45:13 :P Aug 27 08:45:15 I know what it suggests why does it all of a sudden and not compiling Aug 27 08:45:35 It should still compile, unless you've configured warnings to stop copiling :/ Aug 27 08:45:42 I think it's a new lint check in AS 0.8.7 Aug 27 08:48:06 yeah that's the answer Aug 27 08:48:09 ty Estel Aug 27 08:51:18 Hello, I was willing to write an app using api level 1 only, however, are there any advertisement services that support it? Aug 27 08:55:03 Topkek007: why would you want to do that? Aug 27 08:56:28 to support by all means all devices. Aug 27 08:57:16 and in my opinion it is better to learn everything from core, I am that type of person Aug 27 08:57:53 afaik all apps are backwards compatible Aug 27 08:58:11 not really Aug 27 08:58:35 most apps are either compatible down to gingerbread, but as gingerbread is finally fading out of existence, jelly bean Aug 27 08:58:56 or ICS, rather Aug 27 08:59:01 Topkek007: but is the pain of supporting older api levels really worth it when the return is so small? http://developer.android.com/about/dashboards/index.html Aug 27 09:01:00 oops, I meant api; you can write in level 1 api and then use it on latest one, right? Aug 27 09:01:17 yes Aug 27 09:01:35 but you might as well cut off both your legs Aug 27 09:01:54 the amount of pain and suffering will be rather similar Aug 27 09:02:18 lol Aug 27 09:02:36 great then, but what bothers my mind is is there is an advertisement service supporting api 1? Aug 27 09:03:04 I don't know, nobody cares about API level 1 because noone uses API level 1 Aug 27 09:03:15 advertising on api level 1 is pointless, as there's noone you can advertise to Aug 27 09:03:46 under GB you're targeting noone Aug 27 09:05:41 in case somebody knows, tell me please. Aug 27 09:07:49 Topkek007: when you make PC programs, do you support DOS1? Aug 27 09:08:38 oh, but what if ads would be existing only in newer devices, is that possible? but usable/downloadable in 1.0 as well? Aug 27 09:09:03 I can't imagine any ad networks would be crazy enough to support Android 1.0 Aug 27 09:09:13 Do you even have an Android 1.0 device? Aug 27 09:09:19 Topkek007: it doesn't matter since no one will run your app on a api level 1 device Aug 27 09:09:28 considering android 1.0 didn't even ship to devices lol Aug 27 09:09:34 It did Aug 27 09:09:34 I think just to ADP1 but I'm not sure Aug 27 09:10:07 It was on the G1 Aug 27 09:10:23 didn't G1 ship with cupcake? Aug 27 09:10:37 I had my hands on g1. Aug 27 09:10:57 Not initially Aug 27 09:11:06 I thought it did,my mistake Aug 27 09:16:32 it is mostly for learning purposes. So is it possible to make an app runable on api 1, containing ads with let's say supporting api 10 and executing ads only if api is equal or more than 10? Aug 27 09:22:03 Hi all, I got in my Log "The Google Play services resources were not found", the project is created a year ago and now Sometimes the app crashes "App name stopped" when I show a Fragment which contains a Map (Google maps), what can be the problem Aug 27 09:24:01 Topkek007: yes, you can wrap code in if (API >= JELLY_BEAN) if you like Aug 27 09:27:08 thank you very much! Aug 27 09:39:18 i am interested to know about some android feature how it really works, its about the wifi options, keep wifi on while sleeping, and also, allow scan always... Aug 27 09:39:38 i would go to the source code and read how its working but i need help finding the location of the code… Aug 27 09:42:49 maybe i could start from the settings code Aug 27 10:09:28 Somebody got an error last weeks like ParcelableGeofence referenced from method gls.a (for using Google Play services) Aug 27 10:12:31 So here is a question I just thought of. I just wrote some code that loads a mediafire download page and uses javascript to grab the direct download link (not using it in production). I have no experience with ads on websites but... for curiosity sake, lets say I load a webpage in a WebView and use javascript to simulate a click on an ad. Would the person/company receive ad revenue from that simulated click? Aug 27 10:23:10 surf2b1: sounds like a good way to get their account closed Aug 27 10:23:39 How would the ad provider know if the request is coming from ips all over the place? Aug 27 10:24:37 you could get a lawsuit for publishing an app like that, at least I think so. Aug 27 10:24:49 they have their ways, and if you are doing this without the users knowledge bet it's could get you fraud Aug 27 10:25:36 I agree, not a good idea... but I guess that answers my question, it's possible Aug 27 10:32:55 is a good idea though :p Aug 27 10:33:24 Also, I don't think it only tracks ID's Aug 27 10:33:28 it also tracks device id's Aug 27 10:33:53 each machine on the planet has its own unique identifier that is shared with like, at most 3-4 other machines Aug 27 10:33:58 Hi guys, if im going to add items to arrayAdapter dynamically later on in the code...what do i put in items when declaring the arrayAdapter ---> new ArrayAdapter(this, android.R.layout.simple_list_item_1, items); Aug 27 10:34:09 pretty sure they'll catch u on that Aug 27 10:34:33 kype: an empty array? Aug 27 10:34:51 yes, you can imitate clicks. I once wrote this type userscript (.js). I used getdocumentbyid to identify element (there are more DOM func. though) and some jquery function to do the click. Aug 27 10:35:42 but in that way it is visible open Aug 27 10:35:54 Kevel: Oh ok thanks *feels so dumb Aug 27 10:38:15 Anyway "(new ArrayAdapter(this, android.R.layout.simple_list_item_1);" shouldnt need any more textview declarations in the XML right? It still outputs an error saying it needs ID of a textview Aug 27 10:40:06 it does need the textview id though Aug 27 10:40:29 But thats just a reference textview item right? Aug 27 10:40:38 um Aug 27 10:40:40 I guess? Aug 27 10:40:59 new ArrayAdapter(this, R.layout.spinner_dropdown_entry, android.R.id.text1, new ArrayList()) Aug 27 10:41:04 is what I used in one of my projects Aug 27 10:41:20 you need to assign the mapping Aug 27 10:41:38 so yes, you need to provide the layout and the id within Aug 27 10:41:42 in the construct of the adapter Aug 27 10:43:26 Okay then the layout is my acitivty layout, but what would the id be, since android.R.layout.simple_list_item_1 is a reference item? Aug 27 10:43:37 It has no id within the context of my app Aug 27 10:44:08 whatever the id is of your textview Aug 27 10:44:26 if you're using android.R.layout.simple_list_item_1, then its textview is android.R.id.text1 Aug 27 10:44:28 But android.R.layout.simple_list_item_1 isnt in my XML Aug 27 10:44:44 this is all explained in the docs as well as all over the internet Aug 27 10:45:36 Yeah i came here perplexed after reading the doc Aug 27 10:46:17 did you see my previous comment? it should answer all your questions Aug 27 10:47:13 the android.* resources come from the SDK Aug 27 10:47:45 you are using android.R.layout.simple_list_item_1 which is a layout found within the SDK (not anywhere in your xml) Aug 27 10:48:02 You are using that predefined SDK layout per list item Aug 27 10:48:14 Yes so in that case simple_list_item_1 doesnt have an id in my XML Aug 27 10:48:19 ... Aug 27 10:48:23 you then use another SDK id resource (android.R.id.text1) Aug 27 10:48:25 are you still not reading what's been said? Aug 27 10:48:44 if you're using android.R.layout.simple_list_item_1, then its textview is android.R.id.text1 Aug 27 10:48:45 is there an oculus chan here? Aug 27 10:48:46 ravilov: OKay sorry mate. Ill try to figure out how to do this Aug 27 10:48:48 and then Aug 27 10:48:50 did you see my previous comment? it should answer all your questions Aug 27 10:48:54 obviously not here, but on freenode? Aug 27 10:48:58 yes, i'm lazy Aug 27 10:49:14 mikah, that trait is never rewarded Aug 27 10:49:15 mikah: Well, we are too. Aug 27 10:49:23 so yeah, go look for yourself instead of spamming here Aug 27 10:49:27 flan3002: speak for yoursef Aug 27 10:49:29 l Aug 27 10:49:30 WITH L Aug 27 10:49:33 damn keyboard Aug 27 10:49:36 it's fine, i went with the obvious Aug 27 10:49:51 i try not to be lazy because i don't usually freenode Aug 27 10:50:17 .. maybe if there were a VR IRC client somewhere Aug 27 10:50:20 ravilov: we were all novice and not so well understood when starting also Aug 27 10:50:23 lets be nice :D Aug 27 10:50:29 (even though its frustrating) Aug 27 10:50:36 estel. . . Aug 27 10:50:48 It seems an ID is mandatory for fragments in the XML? I dont actually reference the fragment via ID since I can get an explicit reference from my Fragment/ListSubclasses. But without an id in the XML it just falls over. Whats the reason? I would have thought the system clever enough to generate whatever "uid" it reaquires itself if I dont specify an id attribute and have no need of one in my code. Aug 27 10:50:49 lul Aug 27 10:50:54 VR IRC client Aug 27 10:50:58 u wut m8 Aug 27 10:51:02 you'd hate it? Aug 27 10:51:04 Kevel, speak for yourself, I always use the extensive online resources rather than asking noobish questions Aug 27 10:51:25 i think you're saying vr irc client like it'd be a bad thing? Aug 27 10:51:42 ravilov: sure, keep in mind its easier for you and I to digest that information than newbies Aug 27 10:51:52 jesus Aug 27 10:52:18 is there a vr client specifically for irc? Aug 27 10:52:30 maybe there is - i don't have my dk2 so i haven't googled Aug 27 10:52:32 Noobs still have to read the guide and tutorials. Aug 27 10:52:55 fucking being a preponderant know-nothing gets you, well nothing Aug 27 10:52:58 Topkek007: "in that way it is visible open". I loaded the url in a webview which was never visible on the screen. WebView still loaded the page. If someone was to run that code in a published app with 100k+ users, even if they did track ids, how would they know? Aug 27 10:53:07 like i care if you are all ready to go Aug 27 10:53:23 what in the world are you talking about Aug 27 10:53:26 O_O Aug 27 10:53:32 dicks Aug 27 10:53:46 hand em over, mikah Aug 27 10:53:51 ok, go have some elsewhere Aug 27 10:54:01 are there inside jokes like other irc networks? Aug 27 10:54:03 no shit? Aug 27 10:54:19 do people like to pretend they've been around forever? Aug 27 10:54:27 wow.. so shocking Aug 27 10:54:38 just, fuck off Aug 27 10:55:02 i don't have my dk2 and was asking a question about something i'd been thinking about Aug 27 10:55:13 #oculus is dead Aug 27 10:56:23 let's talk about android. Aug 27 10:56:37 how about the L preview, when do you think we'll get L ? Aug 27 10:57:19 example: http://pastebin.com/mQL2yW2Q Aug 27 10:57:39 do you think they'll wash everything with L so much so that everything will want to be material design? Aug 27 10:57:59 I'm really not looking forward to redesigns of apps Aug 27 10:58:06 to suite androids whole L experience Aug 27 10:58:31 i'm honestly fine without material design Aug 27 10:58:33 So now we have to support multi theme's per device SDK Aug 27 10:58:35 fuck that man Aug 27 10:58:48 it happened kinda with holo Aug 27 10:59:33 the few things i took away were changes in recents Aug 27 10:59:37 which were nice Aug 27 10:59:39 We'll see if there's a new appcompat too Aug 27 10:59:41 umm Aug 27 10:59:57 oh art being the standard Aug 27 11:00:12 the rest i don't even care Aug 27 11:00:31 i don't think you'll see new appcompat Aug 27 11:00:46 i've been wrong before Aug 27 11:00:51 it would be nice Aug 27 11:01:57 i'll still use custom roms that are kanged to fuck on my nexus 7, note 3 and note pro 12.2 Aug 27 11:02:10 i don't need L Aug 27 11:02:22 but i'm not developing Aug 27 11:03:36 All i want is for google to expose the framebuffer without having to root the device Aug 27 11:03:39 * Kevel prays Aug 27 11:04:11 I'm experiencing cwac-camera / CameraFragment taking images with the wrong rotation when coming back (typically resuming) and I'm guessing it's not restoring it's instance state correctly - anyone else run into this? Aug 27 11:05:05 snowpong: i remember i forked the project and fixed video rotation bugs Aug 27 11:05:20 snowpong: not so sure about normal camera snaps Aug 27 11:06:25 Kevel: could be very similar, what was the problem for the video rotation if you remember? Aug 27 11:09:11 Could somebody please help me with this, i'm facing the same problem but I don't have any idea what the solution can be: http://stackoverflow.com/questions/24549846/could-not-find-class-com-google-android-gms-location-internal-parcelablegeofenc Aug 27 11:09:17 snowpong: some math calculations for resorting to the correct orientation state Aug 27 11:09:36 snowpong: android camera seems to only accept 0, 90, 180, 270 as support camera rotation hints Aug 27 11:10:01 so you have to calculate the best desired rotation hint depending on the devices current orientation Aug 27 11:10:13 also, this changes per camera instance (front facing, back facing) Aug 27 11:11:12 snowpong: https://github.com/kevelbreh/cwac-camera/commit/cc26434b7ca2d278c2eda9e062cb4f6cf0830d68 Aug 27 11:12:23 Kevel: thanks looking at it Aug 27 11:13:17 snowpong: https://github.com/commonsguy/cwac-camera/pull/167 Aug 27 11:13:27 a less cluttered commit Aug 27 11:14:13 Kevel: :D Aug 27 11:33:39 Does anyone have an app that does a lot in a background service Aug 27 11:33:44 like handling a TCP connection? Aug 27 11:34:03 yeah Aug 27 11:34:07 it's called windows Aug 27 11:35:48 tcp connection Aug 27 11:35:55 how do you mean Aug 27 11:35:58 ttl Aug 27 11:36:01 i mean Aug 27 11:36:05 what do you want to do Aug 27 11:36:15 do it manualy Aug 27 11:36:27 if you don't know how, learn how Aug 27 11:36:41 Connecting to a server which protobufs its data Aug 27 11:37:12 then basically keep a connection open a perform basic sending and receiving of data Aug 27 11:37:19 in these instances i don't get why peope don't just use linux Aug 27 11:37:25 The main issue im facing is the GC going completely ape shit Aug 27 11:37:36 mikah: im on linux Aug 27 11:37:39 this is for android Aug 27 11:37:55 this is an android channel man ;_; Aug 27 11:37:59 and you're trolling Aug 27 11:38:01 it is Aug 27 11:38:23 you've never stated what you want Aug 27 11:39:15 gc going ape shit? i've not seen it Aug 27 11:40:02 sleep soon Aug 27 11:40:06 fine some sucker Aug 27 11:40:16 i do n't think you know what you're talki ng Aug 27 11:41:14 are there like talking poits in your group and none of your group makes sense because they don't get anything? Aug 27 11:41:26 so you think you bother people Aug 27 11:41:42 in reality, you're just stupid Aug 27 11:41:57 maybe i'm being harsh Aug 27 11:42:00 i don't think so Aug 27 11:43:25 rgr: my single question was is it possible to invoke views dynamically Aug 27 11:43:31 grindking will help you Aug 27 11:43:42 i like to help people but you're an idiot Aug 27 11:44:40 tell me you're not a fucking waste of tme Aug 27 11:45:02 you got some shit against with db? Aug 27 11:45:13 haha what did I just walk into Aug 27 11:45:17 internet fight? Aug 27 11:45:23 no Aug 27 11:45:50 i don't like hand holding Aug 27 11:46:09 move to saudi Aug 27 11:46:11 no matter how much you make me try to feel like i'm being a dick i don't are Aug 27 11:46:13 care ^^ Aug 27 11:46:25 move to iphone Aug 27 11:46:30 please stop Aug 27 11:46:41 dude I just joined the channel and you are doing a one-person show about being angry on the internet Aug 27 11:46:59 sorry I shouldn't interact with the cast Aug 27 11:47:01 root66: mikah has been drinking or something, he isn't making any sense Aug 27 11:47:02 * root66 gets popcorn Aug 27 11:47:03 so many lenient ops Aug 27 11:47:06 hi guys i have been tasked with creating a logger for android for an inhouse app and there is one question how can one intercept certain methods in android. Aspect J? this needs to be used in several applications Aug 27 11:47:07 lol what is going on Aug 27 11:47:13 +1 Aug 27 11:47:25 all those efnut kids whos dads didn't hug them Aug 27 11:47:47 i'm done Aug 27 11:47:52 he has a point guys Aug 27 11:47:54 good, please leave Aug 27 11:47:59 I'm an efnet oper and my dad never hugged me Aug 27 11:48:25 ya? Aug 27 11:48:31 what was it like? Aug 27 11:48:38 did he grab ass? Aug 27 11:49:03 i'm kidding Aug 27 11:49:08 maybe Aug 27 11:49:12 seems like i came back at the right time.. Aug 27 11:49:19 i just don't care about sob stories Aug 27 11:49:28 * danijoo steals root66 some popcorn Aug 27 11:49:28 mikah: where do you hear a stob story? Aug 27 11:49:41 the trick is to tease the newbs a little bit, but then to actually help them or leave them alone Aug 27 11:49:50 i read up, kevel Aug 27 11:49:52 it's the second part I struggle with Aug 27 11:50:20 leaving them alone is easy Aug 27 11:50:27 Guys, can you please tell me whether it's me who's having a brainfart or the compiler? :) List pinned = (ArrayList) intent.getParcelableArrayListExtra ("pinned"); -- Cannot cast ArrayList to ArrayList -- But App implements Parcelable. so what am i doing wrong? Aug 27 11:51:15 sounds like compiler Aug 27 11:51:16 you can't cast a rectangle to a square Aug 27 11:51:25 what are yo comp? Aug 27 11:51:38 anything like this for fragments registerActivityLifecycleCallbacks (Application.ActivityLifecycleCallbacks callback) Aug 27 11:51:48 root66: Parcelable is an interface, so it's not tangible ;) Aug 27 11:52:06 settle. redone365 Aug 27 11:52:11 so how *am* i supposed to use intent.getParcelableArrayListExtra ()? Aug 27 11:52:43 i'm not sure. i'd have to try it my myself Aug 27 11:53:09 google doesn;t know code examples? Aug 27 11:53:25 RobinJ: I have no idea, but you said App implements Parcelable and you are trying to cast Parcelable to App Aug 27 11:53:26 he's not using a code example Aug 27 11:53:35 any of y'all use rxjava? how do you deal with caching? caching in the sense of "run this observable if this one does not return anything" Aug 27 11:53:43 i think i know what he's trying to do Aug 27 11:53:59 to what end, i dunno Aug 27 11:54:13 RobinJ: which is like saying since a square is a rectangle, you can cast rectangle to square Aug 27 11:54:19 which is not true Aug 27 11:54:21 necessarily Aug 27 11:54:29 heh Aug 27 11:54:37 that's not what he's doing Aug 27 11:54:45 go home, you're drunk Aug 27 11:54:47 it's not my place to say Aug 27 11:55:21 even if he's drink, i'd like to see what come sout of it Aug 27 11:55:32 I am talking about you Aug 27 11:55:39 so mikah would you know how one can intercept fragment events or most of the android app lifecycle events so one doesnt have to make huge refactors into the codebase ..sort of like AOP style Aug 27 11:55:52 public java.util.ArrayList getParcelableArrayListExtra(java.lang.String name) Aug 27 11:55:53 What if you did ArrayList apps = intent.getParcelableArrayListExtra("whatever") Aug 27 11:55:56 that's the method signature Aug 27 11:55:56 ? Aug 27 11:56:12 I had some issues with casting when using it i think Aug 27 11:56:14 i'm drunk, guy Aug 27 11:56:21 wanna fight about it? Aug 27 11:56:26 ;.; Aug 27 11:56:30 RobinJ: try what i mentioned Aug 27 11:56:38 Kevel: thanks. so the cast is literally tghe problem here? 0.o Aug 27 11:56:55 RobinJ: maybe Aug 27 11:56:55 ejsy od yjod vsdyz Aug 27 11:57:19 ;olr ejsy vsdy str upi. flopper j Aug 27 11:57:50 shit fin gers off one keyspace to the left Aug 27 11:58:20 robinj, what's up? Aug 27 11:58:31 you hate anyone who isn't t-total? Aug 27 11:58:42 trying to figure out how some libraries are able to hook into specific aplication events automatically e.g google analytics and how it tracks activities without changing code Aug 27 11:58:45 pretty sure most of teh community isn't Aug 27 11:59:02 Hey, where can I view a list of default Android themes like android:Theme.Holo.Light and so on Aug 27 11:59:03 tee-totaller? that's an old term :) Aug 27 11:59:14 fits Aug 27 11:59:28 threenuc: just type in Theme. and let intellisense do the rest? Aug 27 11:59:30 * capella sighs .... I used to be a great drunk Aug 27 11:59:56 Kevel: It's an XML attribute, doesn't seem to work Aug 27 12:00:07 was fine then ass drizzle picked me out Aug 27 12:00:18 fuck off, ass drizzle Aug 27 12:00:19 threenuc: https://github.com/android/platform_frameworks_base/blob/master/core/res/res/values/themes.xml Aug 27 12:00:42 or http://developer.android.com/reference/android/R.style.html Aug 27 12:00:46 Kevel, thanks Aug 27 12:01:16 Estel I viewed that, but it's the programmatical stuff, isn't it? Aug 27 12:01:20 wonder who thinks they have a crew Aug 27 12:01:30 * mikah shakes his head Aug 27 12:01:36 Well, there's a big list of themes Aug 27 12:02:01 what api level would you, people, recommend to use? Currently looking into 12, as 1 did not exist in sdk manager and killed my moto to support all devices :S Aug 27 12:02:24 Topkek007: 15 or 16 Aug 27 12:02:43 but why? Aug 27 12:02:56 Topkek007: totally depend who your audience is. But IMO going less that 15 is plain nuts and more work than it need be. Aug 27 12:03:06 Topkek007: because nobody uses 11, 12 or 13. Aug 27 12:03:06 Go google the usage figures. Aug 27 12:03:13 don't worry about it, Topkek007 Aug 27 12:03:17 tomorrow Aug 27 12:03:28 somebody posted that before, I have them open Aug 27 12:03:40 And (almost) everyone who had 14 got an update to 15 Aug 27 12:03:40 i pos ted it before Aug 27 12:03:45 i still say tomorrow Aug 27 12:03:49 mikah: do everyone a favour and stfu. Aug 27 12:03:59 rgr Aug 27 12:04:06 =| Aug 27 12:04:32 if i were a dick, i could shut you up until i want you to talk Aug 27 12:04:35 RobinJ: working? Aug 27 12:04:37 izzat a th reat? Aug 27 12:04:41 yeah.. it is Aug 27 12:05:00 app is going to be very simple: let's say, chronometer with uber UI Aug 27 12:05:17 Topkek007: just target 16 and up, for the sake of sanity Aug 27 12:05:52 so many bitches whining' Aug 27 12:05:58 thinking they do anything Aug 27 12:06:02 Kevel: Thanks, going to do that :^) Aug 27 12:06:10 Are you really threatening people from a frontiernet DSL? Aug 27 12:06:18 I could make one call and have your account suspended. Aug 27 12:06:18 yes Aug 27 12:06:26 i don't have to call Aug 27 12:06:32 it's efnet/whatever Aug 27 12:07:04 this is freenode. if It was efnet I would have made up an excuse to kline you. Aug 27 12:07:12 if you bother and admit it Aug 27 12:07:21 i feel nothing dropping you Aug 27 12:07:28 You know the saying about arguing with idiots? "/ignore" Aug 27 12:07:39 chill out, root66 Aug 27 12:07:42 root66: make the call, this guy is nothing but harmful Aug 27 12:07:55 k Aug 27 12:08:10 make that call Aug 27 12:09:43 dynamic, i'll be beack before your cheese script is dont pinging shit that isn't there Aug 27 12:10:54 is a legitimate UI component that can be sized in its own right. ok... Aug 27 12:12:42 * ravilov summons SimonVT Aug 27 12:13:31 Helo Aug 27 12:14:06 think i'm done with this server. it was all it was cracked up to be Aug 27 12:14:08 shit Aug 27 12:14:47 Sorry, but I need some help to improve my lib, maybe somebody got some time? Aug 27 12:14:48 https://github.com/gorbin/ASNE Aug 27 12:16:07 Ask your Q. Aug 27 12:17:45 Can somebody send me how does a pre-API11 (without action bar support) app look like? I've been trying to make my app stop using AppCompat and display the non-Holo theme for a day now Aug 27 12:18:56 threenuc: why dont you just fire up a preApi11 emulator? Aug 27 12:20:04 i've been using a view for a while now without issues, but now that I try to use it in a gridview with an adapter, the width is only one letter. any idea what might cause this? Aug 27 12:20:53 Syzygy_: Did you set the view to wrap content and the gridview to show as many columns as possible? Aug 27 12:21:04 yes Aug 27 12:21:37 try to calculate the size of one view before setting up the gridview Aug 27 12:21:44 and then manually set number of columns Aug 27 12:22:29 I'm adding a single view (should have a width of 80dp) and when I set an arbitrary number of collumns (e.g. 4) the same thing happens Aug 27 12:22:57 Syzygy_: do you call gridView.setColumnWidth(sizeInPx) Aug 27 12:22:58 ? Aug 27 12:23:07 that helped for me Aug 27 12:23:30 i set the number of columns in the xml for now Aug 27 12:24:30 I had a similar problem and this was my workaround: http://pastebin.com/6W3PayDR Aug 27 12:25:06 can I get the view width like that even in onCreate? Aug 27 12:25:30 yeah. MeasureSpec.UNSPECIFIED works in onCreate Aug 27 12:25:59 nice. Aug 27 12:26:00 it calculates dimension independent of parent view which is why that works Aug 27 12:26:27 anyway, I tried setColumnWidth with a hardcoded value of 80dp Aug 27 12:26:36 didn't work Aug 27 12:26:41 mh Aug 27 12:27:15 ok, with auto_fit it has some effect Aug 27 12:29:01 hello, i am Derick and i want to start android development Aug 27 12:29:17 i need some advice on how to start Aug 27 12:29:25 d3r1ck: dio you know java> Aug 27 12:29:27 ? Aug 27 12:30:17 yes Aug 27 12:30:31 d3r1ck, http://developer.android.com/guide/index.html Aug 27 12:30:48 danijoo: yes i know how to program in java Aug 27 12:31:00 then you can click Syzygy_'s link d3r1ck:) Aug 27 12:31:00 sorry, this one http://developer.android.com/training/index.html Aug 27 12:31:01 Syzygy_: thanks Aug 27 12:31:55 linked to the API guide on accident. also helpfull, but not when just starting out Aug 27 12:32:15 "Creating Dynamic UI with Android Fragments" - highly recommended. A good read. And clarifies a lot of the Qs I had about fragments. Thumbs up. Aug 27 12:32:29 d3r1ck: https://developer.android.com/training/basics/firstapp/index.html Aug 27 12:40:12 good morning all Aug 27 12:40:52 morgen Aug 27 12:41:15 freeman Aug 27 12:41:30 Too many fruit pastilles have been consumed :( Aug 27 12:42:10 Estel: nothing wrong with that, as long as you hit the gym and do some good running :) Aug 27 12:42:25 Unlikely :'( Aug 27 12:42:39 Estel: where are you from? US? Europe? Asia? Aug 27 12:42:43 UK Aug 27 12:42:53 ahh lovely, my boss is over there right now for business Aug 27 12:42:57 heading to Copehagen tomorrow Aug 27 12:43:02 *Coppenhagen Aug 27 12:43:09 think I spelled that right Aug 27 12:43:31 London? Aug 27 12:44:19 Nope, Bristol. I'd love to go to Copenhagen one day; maybe when this contract is up :) Aug 27 12:44:32 i would like to go to Europe period Aug 27 12:44:54 London and Paris on the two big ones on my list; always wanted to ride the Chunnel and see Normandy beach Aug 27 12:45:05 ohh, and visit Coventry Aug 27 12:45:13 Why Coventry!? Aug 27 12:45:32 I like a lot of WWII history, and that city was bombed to the ground, iirc Aug 27 12:45:33 That's a very... unusual ambition :P Aug 27 12:45:40 ^^^ agreed! Aug 27 12:45:42 :) Aug 27 12:46:01 Yeah it was, which makes modern Coventry a really boring mess of 50s/60s brutalist architecture ^^ Aug 27 12:46:31 Estel: when i was in Japan, i made it a point to visit those types of areas Aug 27 12:46:39 since areas of Tokyo were 99% bombed to the ground Aug 27 12:46:59 also want to see how mass transit stacks up to Japan :) Aug 27 12:47:23 Well we don't have official people to push you on the underground trains Aug 27 12:47:44 But if you enjoy travelling in a crowded tube with your face pressed up into someone elses armpit then this is the place for you! Aug 27 12:47:46 When I do android:text="@string/hello_world", how does the compiler know that hello_world is in strings.xml? It's never mentioned Aug 27 12:48:01 JuiceSSH: ohh i did that multiple times when i was living in Tokyo Aug 27 12:48:09 threenuc: @string Aug 27 12:48:20 xximjasonxx, yes, but the filenamie is strings.xml Aug 27 12:48:24 name* Aug 27 12:48:29 I don't think Coventry can hold a candle to Japan in terms of transport in any of major cities, and not sure if it even gets to top ten of "european cities razed to the ground in WW2" Aug 27 12:48:30 Oh don't get me wrong, I love WW2 history and spent half the weekend looking at pre and post war maps of my city looking at how bomb damaged reshaped it. Just Coventry is... dull ^^ (lived there a few years) Aug 27 12:48:31 threenuc: dont disturb the Androud elves Aug 27 12:48:49 b-but sir Aug 27 12:48:52 Estel: well there is also the white cliffs of dover Aug 27 12:49:22 threenuc: before then the compiler reads through all the XML files and generates R.java which (kinda) maps all of your @string references to a file. Aug 27 12:49:24 threenuc: so, its not going off the filename i would wager Aug 27 12:49:38 if you look in the file, everything is named I would wager Android reads the file and builds a resource dictionary of sorts Aug 27 12:49:54 same thing with colors Aug 27 12:50:06 and styles Aug 27 12:50:10 and themes Aug 27 12:50:37 probably the reason the directory is called values. Basically tells android to read the contents of these files and build a dictionary Aug 27 12:50:40 that would be my guess Aug 27 12:53:01 Even people from Coventry says it sucks. But on the subject of travel in the UK.... http://www.thedailymash.co.uk/news/business/mafia-in-awe-of-uk-train-companies-2014082789914 Aug 27 12:53:45 rgr: lol, i love. we hear similar things about the city government here in Chicagp Aug 27 12:53:48 *Chicago Aug 27 12:54:09 Hi all, my app crashes and I got this log http://pastebin.com/Nv4rJc6S but I can't get anything out of it, any suggestions? Aug 27 12:54:15 in all honesty, it will be pretty hard to top the mass transit system in Japan Aug 27 12:54:29 I already looked at this http://stackoverflow.com/questions/25080379/could-not-find-class-com-google-android-gms-location-internal-parcelablegeofenc but without success Aug 27 12:54:53 rgr: well... Beeching Axe ensured the rail was broken :) Aug 27 12:54:59 heh - The Mash is like The Onion is see :) Aug 27 12:55:34 Lots of Beeching was justified >_> Aug 27 12:56:07 FrancescoV: if i had to guess, something wrong with a library you are using. Did you try to see if there is an update for Google Play Services? Aug 27 12:56:35 screw it!! When I come to the UK ill just hire Estel and rgr as my tour guides :P Aug 27 12:57:09 xximjasonxx: Latest version of Google Play services : rev. 19 Aug 27 12:59:39 FrancescoV: well the good news is: Could not find method gui.a, referenced from method gqh.a Aug 27 12:59:47 its not uncommon Aug 27 12:59:54 im finding quite a bit on Google Aug 27 13:00:20 xximjasonxx: bad news is, the app in the store crashes and I have no idea how I can fix this Aug 27 13:00:36 interesting Aug 27 13:00:40 what is your min sdk version Aug 27 13:01:06 first i should ask, when you download the app does it crash for you? or are you looking at a crash report from another user? Aug 27 13:02:19 additionally, I googled "DexOpt: unable to opt direct call 0x5ea1 at 0x0a in Lgpr;.a" and I found this link, possibly helpful: http://stackoverflow.com/questions/25359359/google-map-not-loading-data Aug 27 13:02:41 basically, the best advice i can give you is start querying the various errors in that stack dump Aug 27 13:03:05 Estel: Mostly if you considered each line individually instead of as a system - the result was that previously profitable lines became unprofitable, with Beeching's weird ideas on replacement of feeder lines never surfacing (something obvious to probably everyone else) Aug 27 13:03:31 Estel: then there was premeditated destruction of old track beds to ensure they couldn't be reopened Aug 27 13:03:40 p_l: the UK should look at the US for how to run mass transit trains :-D Aug 27 13:03:45 LMAO, so hard to say that with a straight face Aug 27 13:03:47 :) Aug 27 13:03:54 xximjasonxx: min version is 15. I'm running from Eclipse now and facing same problem like app in store. The app crashes when I show a Fragment which contains a MapFragment Aug 27 13:04:08 FrancescoV: see what i just posted Aug 27 13:04:14 xximjasonxx: well, US owns the handbook on destroying city public transport ;) Aug 27 13:04:40 p_l: I live in Chicago and they are spending $400 million redoing one of the lines from the city center to OHare Aug 27 13:04:54 the station my girlfriend uses was built in.... wait for it Aug 27 13:04:56 1859 Aug 27 13:05:20 who the hell doesnt update in over 150yrs Aug 27 13:05:33 It's not been rennovated since? Aug 27 13:05:53 if it has, very minimally Aug 27 13:05:54 Sounds very Back to the Future Aug 27 13:05:56 xximjasonxx: well, afaik you guys stopped updating even car infrastructure since ~70s? Because federal/state == "evil commie"? ;) Aug 27 13:06:06 p_l: something like that Aug 27 13:06:13 though there is a big push right now to fix that Aug 27 13:06:22 if we could just cut the amount we spend in the ME in half Aug 27 13:06:28 we could probably do some great things Aug 27 13:06:55 xximjasonxx: from my cushy place on the other side of pond, there's just as strong push against, and the only result will be fleecing of govt money by private contractors Aug 27 13:07:41 p_l: yeah, mostly the airline lobbyists. They dont wnat to have to compete with trains on the ground which can do NYC to LA in 8hrs Aug 27 13:07:57 like they do in Japan, hence why Asian air service is phenomenal Aug 27 13:07:57 At least that's not an issue here. Aug 27 13:08:07 Estel: i have been deeply considering leaving the US Aug 27 13:08:18 The grass is always greener, kinda Aug 27 13:08:24 the country feels like its going nowhere Aug 27 13:08:25 xximjasonxx: no, I mean in general, more so than just airlines Aug 27 13:08:34 p_l: yeah, the car companies as well Aug 27 13:08:47 xximjasonxx: I meant upgrading even the interstate roads :) Aug 27 13:08:49 the very fact that we passed legislation that recognizes corporations as people Aug 27 13:08:57 p_l: ha!! well they do actually Aug 27 13:09:08 its just they use bottom barrel materials so they have to redo it every year Aug 27 13:09:17 especially in the midewest where I live, cold winters hot summers Aug 27 13:09:28 xximjasonxx: because it's done by private company that has no incentive to do otherwise? :) Aug 27 13:09:34 pretty much Aug 27 13:09:51 although, I feel like people of my generation and beyond are not as enamored with the car as my parents were Aug 27 13:10:15 so maybe the disposition to high quality rail and alternative modes of transportation is changing Aug 27 13:10:38 I know Obama pushed hard for a light rail system in florida, got shot down a couple years later Aug 27 13:10:49 xximjasonxx: can the crash be related that my client has removed his developer account 2 weeks ago and restored it (account = account for play store) Aug 27 13:11:01 FrancescoV: read the link i posted Aug 27 13:11:16 literally everything you are asking, I think, is answered there Aug 27 13:11:41 Hiya fellas! I hope my fellow developers are doing absolutely fine this day =) Aug 27 13:11:44 p_l: i actually considered moving to Japan for a time, but the language and culture barrier is extremely daunting Aug 27 13:11:54 Lord_Spooner: another day in paradise Aug 27 13:12:23 xximjasonxx: I'm considering move to japan right now, given that I have no more Visa issues Aug 27 13:12:36 you speak Japanese? Aug 27 13:12:54 not yet :D Aug 27 13:13:03 good luck Aug 27 13:13:05 its tough Aug 27 13:13:12 I need help on a certain matter. I am working on an app to have parallax effects as I scroll between tabs. It has to be a certain drawable getting the effect Aug 27 13:13:15 nah, the language is simple Aug 27 13:13:23 p_l: are you asian by descent? Aug 27 13:13:29 xximjasonxx: nope Aug 27 13:13:41 I just speak an actually hard language as my mother tongue ;) Aug 27 13:13:44 So far, the infos I have seen on the net just require too high lvl of API, need it on API-11 and up =/ Aug 27 13:13:49 p_l: in general its considered one of the harder languages for westerners Aug 27 13:13:56 cause its grammatically so different than every other western language Aug 27 13:13:57 Lord_Spooner: 11 is a strange choice? Why 11? Aug 27 13:14:12 Estel: Well basically honeycomb and up =P Aug 27 13:14:23 Lord_Spooner: yeah but nobody uses Honeycomb anymore :P Aug 27 13:14:30 xximjasonxx: the grammar is simple. Simpler than english, IMO. Writing is complex, I'll give you that :) Aug 27 13:14:47 p_l: maybe, the whole subject object verb Aug 27 13:14:53 threw me Aug 27 13:15:02 xximjasonxx: it doesn't exist, in the first place Aug 27 13:15:14 there's no SOV sentence order in japanese Aug 27 13:15:29 that isnt what i was taught, when I was in Japan Aug 27 13:15:51 xximjasonxx: it's a bit of a shoehorning into familiar framework, afaik Aug 27 13:15:51 Estel: Weeeeell, there is sizable percentage actually :P that uses API 11+ compared to some higher API and beyond Aug 27 13:16:07 p_l: perhaps, what would you be doing over there? Android? Aug 27 13:16:19 probably Ops. Maybe a bit of android Aug 27 13:16:27 Tokyo? Aug 27 13:16:29 maybe backend servers for mobile Aug 27 13:16:38 xximjasonxx: yeah Aug 27 13:16:50 I would encourage it, Japan is a wonderful place Aug 27 13:16:58 Estel: You reckon I need to set min to higher lvls? :) Aug 27 13:17:02 Lord_Spooner: well, if that's true with your users, then okay :P But iirc it's < 0.1% of users more widely Aug 27 13:17:03 really an amazing country, and Tokyo is the finest city I have ever visited Aug 27 13:17:22 p_l: you will see true train crowding if you ride the Yamanote :) Aug 27 13:17:44 the Tokyo circle line, one of the busiest (if not the busiest) train lines in the world Aug 27 13:17:59 Estel: Interesting, should perhaps go for ICS and higher? Aug 27 13:17:59 takes exactly one hour to complete a full circle of Tokyo Aug 27 13:18:14 Lord_Spooner: 15+ is a... lovelier bet, yes Aug 27 13:18:41 Estel: Looking at the statistics from August 12, seems like you are right :P Aug 27 13:19:18 If you have an existing app or similar stats from your market or your country that say it's a more significant proportion then, so... Aug 27 13:20:02 True, but screw it :P I'm making an app for my student union. I guess students like to keep their devices ... fresh so to speak Aug 27 13:20:13 xximjasonxx: I read the link and I generated new api key too, not working. It's not about seeing the map or not, it's about the crash Aug 27 13:20:14 You guess? Aug 27 13:20:21 lmao - ~4mil riders per day pm the Yamanote, we get around 5mil yearly on all lines in Chicago Aug 27 13:20:26 Qualified guess :P Aug 27 13:20:52 Estel: Need to run of for some coffee, you are welcome to whisper me if you want to chat further about the parallax stuff :) Aug 27 13:21:57 Anyone else is welcome to whisper me too haha Aug 27 13:22:30 Hey guys, i am building a bluetooth terminal application. I understand the client app needs to have the same UUID with the server. However the server may be running any kind of program i may not know about (Windows 7 bluetooth terminal etc...) so how can the UUIDs be known ahead and hardcoded into my application? Aug 27 13:22:49 FrancescoV: got nothing man. I need to focus on my own stuff Aug 27 13:23:29 xximjasonxx: ok thanks anyway Aug 27 13:29:23 layout_weight should work in an imageview sat in a framelayout shouldnt it? All I wont to ***ing do is set the imageview to a % of the framelayout's width. Aug 27 13:31:06 I have a listview and a button inside a lineaLayout. When i setOnClickListener to the button the click event is not fired Aug 27 13:31:56 Kevel: I just fixed the camera rotation problem by replacing the CameraFragment onResume - it's brute force, but it works. Aug 27 13:32:05 I used android:focusable="false" on the button but it still would not register the click event on the button Aug 27 13:33:37 why would you not allow focus? Aug 27 13:33:57 Thats what i saw on many StackOverflow answers Aug 27 13:34:15 but in them the button is inside of the listView Aug 27 13:34:22 has anyone ever used Parallax view? Aug 27 13:34:23 how is it "inside"? Aug 27 13:34:32 yo usaid a linearlayout Aug 27 13:34:49 sure its not a framelayout and your ListView is over the top of the button? Aug 27 13:35:01 or is the button part of a specially inflated ListView adapter? Aug 27 13:35:05 inside in the sense a delete button with every row of listview Aug 27 13:35:31 so when you click on that button that specific row is deleted Aug 27 13:35:49 you set a listener onto each button in your adapter getView? Aug 27 13:35:58 in my cas there is a listview and a button inside of a linearLayout Aug 27 13:36:23 you mean there is a listeview containing a list of linearlayouts which in turn contains a button. Aug 27 13:37:20 no there is a single linearlayout Aug 27 13:37:42 my listview is one of the child elements of linealayout and also my button is another child element Aug 27 13:38:14 I set the onclicklistener for button but it wont work Aug 27 13:38:28 Sounds wrong. I woudl expect the getView to return a linearlayout for each row of the listview. The linearlayout contains your display data and the corresponding delete button. Aug 27 13:38:56 do it with one row. Set a break point in the listener. Use hierarachyviewer. Aug 27 13:39:25 @rgr i think you misunderstood me Aug 27 13:39:46 the button is not a part of listview, it is a part of linealayout Aug 27 13:41:08 A listview contains visible items. These can be linear layouts. it sounds to me like youre covering your buttons. Aug 27 13:41:47 these linearlayouts are inside your listview or should be, right? You said there is button for each "listview element". Aug 27 13:42:18 Aug 27 13:42:27 and the only sensible way to do that would be for the listview to throw out a linearlayout for each row (getView) and that layout containing the row data and the delete button. Aug 27 13:42:34 thats crazy. Aug 27 13:42:38 Oh, I thought you said that each row had a delete button? Aug 27 13:42:43 He did Aug 27 13:42:58 I told that all the answers on SO had that usecase Aug 27 13:43:35 samsamsam: can you pastebin your xml? Aug 27 13:43:36 what use case? Tell us what you want to do not what you've done is probably better. Your layout makes no sense for the use case you described. Aug 27 13:44:06 rgr: I think he means that there's just one button underneath the listview, but that the only solutions he found on SO were for a button on each row. Aug 27 13:44:45 Thats not what he said. "inside in the sense a delete button with every row of Aug 27 13:44:45 listview" Aug 27 13:44:50 @estel exactly Aug 27 13:44:57 Here's my xml http://pastebin.com/dfL4ZRaE Aug 27 13:45:28 samsamsam: did you set a break point in the listener? Aug 27 13:45:47 ya i did ! It wont get called. Aug 27 13:46:10 samsamsam: did you setOnClickListener or are you relying on the android:onClick attribute? Aug 27 13:46:13 and your function is addProperty? You dont even need to add a listender. Aug 27 13:46:21 yu have it in your xml. Aug 27 13:46:26 android:onClick is totally evil >_> Aug 27 13:46:37 confusing maybe. evil no ;) Aug 27 13:46:48 @rgr i just added the onClick atribute a minute back to see if it worked Aug 27 13:47:09 samsamsam: pastebin your activity! ^^ Aug 27 13:47:10 look if you describe thigns totally wrong then show the *wrong* xml how do you expect anyone to help? Good luck. Aug 27 13:47:13 onClick in xml are bad ideas Aug 27 13:47:16 just saying Aug 27 13:47:19 BUt it didnt. I had onClickListener added previously but it didnt work Aug 27 13:47:22 Is it possible to get traffic in google maps fragment? Aug 27 13:47:28 No one has a crystal ball. Aug 27 13:47:55 onClick in xml is perfectly fine. its nothing more than an XML annotation for adding a listener. Aug 27 13:48:46 it's not fine, do not use it Aug 27 13:49:31 @estel here's my activity code. Ihave only kept the relevent parts there :) http://pastebin.com/yn9258KA Aug 27 13:50:03 pfn: its perfectly fine in most use cases. Aug 27 13:51:41 samsamsam: It's dangerous to only keep the parts that you think are relevant, because the bits you think aren't relevant always bite you in the ass :) Aug 27 13:52:09 samsamsam: the xml onclick: doesn't work in fragments anyway Aug 27 13:52:22 @estel ohk i will just put up the entire code then cheers :) Aug 27 13:52:32 rgr, nope, it isn't, do not give bad advice Aug 27 13:53:24 @estel http://pastebin.com/WzEuP1pg here is the entire code :) Aug 27 13:53:36 rgr, it only works in the most trivial of use cases Aug 27 13:55:09 samsamsam: does propList.size() == 0 ? Aug 27 13:55:35 No There are some items Aug 27 13:57:49 Does the onclicklistener definitely get set? Aug 27 13:58:58 Estel: what do you mean? Aug 27 14:00:02 Well there was a breakpoint in the onClick, just wondering if there was one on the setOnClickListener Aug 27 14:01:23 when profiling, do yall use Sample based or Trace based Aug 27 14:01:55 use trace until it becomes too slow Aug 27 14:02:14 yes when i use a breakpoint at that line, during the oncreate view it does execute there Aug 27 14:02:52 Hi all. I'm trying to build a custom kernel based on goldfish armv7 config. But the .confg generated is not related to the goldfish config. Does anyone have an idea Aug 27 14:03:03 kr4sh: try #android-root Aug 27 14:03:13 thks Aug 27 14:06:13 hey , how can i send data for a cusom event by https://github.com/francoisTemasys/socket.io-java-client Aug 27 14:07:48 i am using v1.0 socket.io on server , but it is sending data to engine ws Aug 27 14:27:16 hemc: socket.send("Hello Server!"); ? Aug 27 14:27:41 hemc: see public void on(String event, IOAcknowledge ack, Object... args) { Aug 27 14:28:05 hemc: https://github.com/Gottox/socket.io-java-client/blob/master/src/io/socket/IOCallback.java#L51 Aug 27 14:28:17 DrSkyLizard: that only sends params Aug 27 14:28:19 no event Aug 27 14:28:37 also second one is callback to event Aug 27 14:29:59 hemc: You want to send data from the client to the server? Aug 27 14:30:20 hemc: and see that thing as a custom event on the server? Aug 27 14:30:25 DrSkyLizard: yes Aug 27 14:30:57 DrSkyLizard: on server it is working , as i can recieve message from browser Aug 27 14:33:13 hemc: You can only send String or JSONOject back and forth. For what you want I think you can use this method: https://github.com/Gottox/socket.io-java-client/blob/master/src/io/socket/IOConnection.java#L825 Aug 27 14:33:29 hemc: Where you can specify a name for the event you're sending Aug 27 14:33:30 DrSkyLizard: i am looking for something like socket.emit(“my”Event, "hi"); Aug 27 14:33:36 hemc: See above Aug 27 14:34:37 danijoo, turns out the area it measures is to small... also it's variable. Aug 27 14:35:42 DrSkyLizard: thanks , this is exactly what i was looking for :) Aug 27 14:36:49 hemc: There are emit methods on the SocketIO object ~> https://github.com/Gottox/socket.io-java-client/blob/master/src/io/socket/SocketIO.java#L236 Aug 27 14:36:58 hemc: which call the IOCallback emit methods Aug 27 14:37:34 aka delegation Aug 27 14:39:07 err, IOConnection Aug 27 14:39:22 hemc: pretty neat this, socket.io thing, first time looking at it :-) Aug 27 14:40:48 DrSkyLizard: yeah, actually i newbie in android and expert in web, Sorry Aug 27 14:42:28 I usually decide pixel of an image from dpi. Now I wanna put an image fullscreen. So how much dpi is it? Aug 27 14:45:17 hello Aug 27 14:48:27 mcmaur: the same Aug 27 14:49:13 I am trying to animate a view to bring it on screen, but it is not working. XML: http://pastebin.com/pckQC5L2 code: http://pastebin.com/NaePKWNA Aug 27 14:50:17 Fragment2 view is offscreen , and it won't animate Aug 27 14:50:47 its not a fragment Aug 27 14:51:11 and theres nothing in it Aug 27 14:51:41 rgr: are you speaking with me? Aug 27 14:51:44 in fact theres so much wrong with that layout Aug 27 14:51:45 yes Aug 27 14:52:00 you ahave all the elements matching_parent. Why? Aug 27 14:52:03 rgr i add a fragment to it in the onCreate Aug 27 14:52:34 ah sorry missed that. because its not in the code or commetned in the xml. Silly of me.... ;) Aug 27 14:52:51 rgr: my mistake, sorry. Aug 27 14:53:30 I can't add text fields, found the solution, which is changing the version used to render from API 20 (android wear) to something else. However, I get http://i.imgur.com/ONyyrHf.png What do? Aug 27 14:53:49 but the you also give no idea as wot what you're trying to animate in the code. Its just a View reference. Aug 27 14:53:51 rgr: the goal is the animate the Fragment2 view to slide in 20% of the screen Aug 27 14:54:14 but since it is initialized off screen it won't animate Aug 27 14:54:38 why is it off screen? Theres no indication of that in the code or the xml either. Post the proper stuff then ask. Sorry. Aug 27 14:55:18 it's off the screen because as shown in the xml, the listview takes the entire screen and the framelayout is pushed off screen. Aug 27 14:55:34 since they are both match parent Aug 27 14:57:48 but it would be off screen in both x and y axis since both are match_parent assuming this trick works right? You only animate the Y. Aug 27 14:58:31 Im assuming you probably meant to set the Alpha to 0 to start too. Aug 27 15:00:22 rgr: right the view is set to invisible intiially, but i am trying different things to get it to work. I will try animating the x as well Aug 27 15:00:48 dont say "try". Think it through. Did you see what I meant? Aug 27 15:00:59 invisible != alpha Aug 27 15:01:50 rgr are u looking for the same answer? Aug 27 15:01:50 is 'echo' allowed in an Android.mk? Aug 27 15:01:52 when you do android:Visible ="inviisble" that should be the same as alpha=0 Aug 27 15:02:55 i want to check the variables in a makefile Aug 27 15:05:16 its not Aug 27 15:05:46 you can set alpha and ALSO set visible to gone,invisible and visible. Totally different things regardless of what you think of as the end result. Aug 27 15:05:52 Bombo, set a target, set dependencies, echo within the target Aug 27 15:05:58 Bombo, it's a makefile, treat it like one Aug 27 15:06:30 so you could have alpha as 0 and not see it but visible is set to visible. You then animate the alpha/opacity to 1/255 or whatever you're using. Aug 27 15:07:06 had you animated the alpha from 0 to 1 BUT the visible atribute was set to invisible or gone you would never see it. Read the attribute javadoc. Aug 27 15:07:46 Uh, so how hard was learning Android dev for you guys? Aug 27 15:08:37 rgr: sure, but i set both visible to visible and alpha to 1 and i still dont see anything. Aug 27 15:09:11 because its not on the screen : assuming your guess about how match_parent works in BOTH x and y. Im not sure. YOu didnt post the code. Aug 27 15:09:38 You only animate the Y so it wouldnt come in from the right hand side. I really dont know as I dont even know if your assumption is right. Aug 27 15:09:57 s/right/correct to lessen the confusion... Aug 27 15:10:39 threenuc: a pointless Q. How long is a point of String? Do the tutorials then pick a project and get to work. it#s not trivial neither is it impossible.... depends on you and your experience. Aug 27 15:11:08 I defined a layout_width="400dp" and minWidth="380dp" for a gridlayout. but it seems to only take up 76 pixels. Aug 27 15:11:16 any idea what could cause that? Aug 27 15:11:56 "Something else in your layout" Aug 27 15:12:04 threenuc, I was born speaking and breathing android, obviously Aug 27 15:12:46 Syzygy_: use the hierarchyviewer : it helps a lot. Aug 27 15:12:52 Estel it's the only child of a horizontal scroll view that matches parent, Aug 27 15:12:54 rgr I am Aug 27 15:12:58 ok Aug 27 15:13:12 the only child of the gridview also doesn't take up the space it should Aug 27 15:13:17 what view is it? Aug 27 15:13:24 gridview Aug 27 15:13:39 I said gridlayout earlier, i meant gridview. Aug 27 15:13:54 perhaps it has a different interpretation of minwidth Aug 27 15:15:19 and for layout_width="400dp" as well as layout_width="match_parent"? Aug 27 15:16:43 personally Id use the layout designer...... see instantly if it doesnt crash.... Aug 27 15:17:35 basically I would have to copy paste it into the xml? Aug 27 15:17:48 the view i currently add via an adapter? Aug 27 15:18:15 Raiden, use hierarchyviewer to see why it's laying out dumb Aug 27 15:18:54 I can only see that it's laying out dumb, not why. Aug 27 15:22:12 does Android Studio support multiple JDKs being installed? Aug 27 15:22:20 I can not even enforce the size of the gridview... Aug 27 15:22:25 one project I've got is 1.6 the other is 1.7 (someone else updgraded it) Aug 27 15:22:44 snowpong, I believe you can select the sdk, so it should Aug 27 15:23:19 pfn: it doesn't have targets Aug 27 15:23:43 but i found it $(info "Some message") works Aug 27 15:23:53 $(warning "Another message $(SomeVar)") Aug 27 15:24:21 Bombo, it can have targets if you just add one Aug 27 15:24:22 Bombo, the framework provides and creates targets for you Aug 27 15:25:09 what is the last breakpoint i could set if i "wipe" and application? onDestroy isn't working. and i have still a process running in the bg. i ask this because there is a thread in the bg which doesnt close correctly. Aug 27 15:27:10 pfn: ok Aug 27 15:28:51 now, is it possible to include Android.mk from within a Android.mk? i got project/jni/main/Android.mk that depends on project/jni/main/sub/lib/Android.mk Aug 27 15:29:02 Syzygy_: true - the default is in Other Settings -> Default Project Structure -> SDKs ... trying to install a second JDK now and seeing how it works out Aug 27 15:29:36 so i need to build the lib first Aug 27 15:31:20 trying include $(LOCAL_PATH)/foo/Android.mk Aug 27 15:31:41 http://pastebin.com/07x09330 results in this gridview (with two elements) https://www.dropbox.com/s/c02ezn8crcbc4a0/grid.jpg?dl=0 Aug 27 15:32:41 I can not increase the width of the gridview. Aug 27 15:32:49 or display the elements side by side. Aug 27 15:35:40 hm i get 'LOCAL_MODULE_FILENAME should not include file extensions' (and it doesn't) Aug 27 15:41:43 ok it does contain .so, but i didn't set it. it's set by 'include $(BUILD_SHARED_LIBRARY)' Aug 27 15:43:05 set by /mnt/1/opt/android-ndk-r9d/build/core/build-shared-library.mk:30: $(call handle-module-filename,lib,$(TARGET_SONAME_EXTENSION)) Aug 27 15:43:15 hmmm Aug 27 15:43:53 why would it set the extension, and then complain? Aug 27 15:45:55 Is there any way to have a view visibility change occur as part of a fragment transaction? Aug 27 15:46:27 Hello. I'm trying to use a custom URL scheme in an Android app. My app starts up fine and sees the correct URL when I click on a link while the app is closed. However, if I click on another link while the app is already running, my app just gets focus again but doesn't seem to notice the new URL. I'm checking the URL every frame (for testing purposes) by calling myActivity.getIntent().getData().getPath() (and getHost() too). Aug 27 15:47:09 Does anyone know if it should be possible to switch to a different URL once already running? Aug 27 15:47:39 I'm using Unity, but that call is made with a special "run Java code" functionality. Aug 27 15:56:00 So apperently I can't have a gridview in a horizontal scroll view Aug 27 15:57:41 i've formulated this syllogism: android is hard, everybody can learn android, everybody can do hard things. I demonstrated with a reductio ad absurdum that the syllogism is not valid and android is not for all Aug 27 15:57:49 :D Aug 27 15:58:20 I'm trying to rewrite the URLs used for requests for resources in my webview to go through a proxy. The ResourceClient shouldInterceptLoadRequest method only provides the url of a call and not the headers, which isn't enough information in many cases (e.g., to differentiate between POSTs and GETs). Is there a hook that would allow me to rewrite resource urls but keep the headers the same? Aug 27 15:58:27 blues-man: I think the hard part is more about mastering good software patterns Aug 27 15:58:28 who forgot to guard the nuthouse this morning? Aug 27 15:59:03 ^^ that is right Aug 27 16:00:08 Mrdarknezz, yes, my intention was to show the paradox of the easy starting and many developers thanks to Java and hard mastering and few (real) experts due a sophisticated architecture Aug 27 16:00:55 blues-man: I try to go by the mantra: "Dont write spaghetti" Aug 27 16:01:06 sophisticated is one way to describe ANdroid :) Aug 27 16:01:23 Mrdarknezz, sometimes the hard part is about working around unspecified behaviour. Aug 27 16:01:58 Abstract ALL the things Aug 27 16:02:21 not exactly, it is possible to abstract too much Aug 27 16:02:26 leaky abstraction Aug 27 16:03:22 is not the same with iOS for instance, there's a difficult entry level and long learning curve but so people involved are not "spaghetters" but then there's kind of limit which doesn't exists necessarily in Android Aug 27 16:03:43 you clearly havent seen the same ios code that i have Aug 27 16:04:17 [horrible stuff]? :) Aug 27 16:04:41 everywhere you go, there will always be bad code Aug 27 16:05:40 sure, but spaghetters are more demotivated by a language which is difficult as Obj and it is C, at least Aug 27 16:06:31 false Aug 27 16:06:51 for one thing, how does one know if they are classified as a "spaghetters" Aug 27 16:06:58 you assume people walk around with this in mind? Aug 27 16:10:20 you can see with google searchs thousands of blog posts or android code which are chilling banality Aug 27 16:11:23 you can see with google searchs thousands of blog posts or android code which are chilling banality, while I don't see, but I could had observed a limitated sample, this with ios Aug 27 16:12:12 Isn't it nice when you discover you can not do something in a certain way due to a bug, try to implement it another way and find you can not do it a certain way due to a bug/weird behavior? Aug 27 16:12:14 sorry chat GUI has been crashed so the sentence is doubled and misconfused Aug 27 16:13:49 i'm fairly new to android. i need to grab data from a website and then send it back to the activity for further processing. what is the best way to handle for that? would asynctask be the best way? i need to send the data back to the activity before posting it to any view Aug 27 16:14:01 or just open up a thread? Aug 27 16:14:44 xximjasonxx, by the way I know that we are on the good side of the Force :) Aug 27 16:15:30 lol. good and evil are but two sides of the same coin, how can you be sure? Aug 27 16:15:36 nevermind Aug 27 16:16:32 blues-man: isnt that what Palpatine did to Anakin, convinced him he was on the wrong side :) Aug 27 16:17:25 xximjasonxx, is because I've seen the light http://morganrlewis.files.wordpress.com/2012/03/bb-thelight.jpg :) Aug 27 16:17:37 lmao Aug 27 16:17:46 eheh Aug 27 16:18:06 MartialLaw: I'd look at retrofit Aug 27 16:18:51 When I open the softinput keyboard, the root background drawable gets squished. any idea what i could do to make it overlay instead of squish? Aug 27 16:24:35 Syzygy_: http://developer.android.com/guide/topics/manifest/activity-element.html#wsoft Aug 27 16:24:51 I have not found a way to use that in code. Aug 27 16:25:42 Syzygy_: https://developer.android.com/reference/android/view/Window.html#setSoftInputMode(int) Aug 27 16:27:56 Does anyone know if there's a location I would be able to download the source files for the tutorials on developer.android.com? I keep getting cannot find symbol problems with R.id.* variables and R.layout.* variables even after copying and pasting from the tutorials. Aug 27 16:30:41 would it be bad to put a view pager with no scroll inside of another view pager, lol Aug 27 16:33:23 where can I find the source for the statusbar GPS icon? Aug 27 16:40:28 Hey guys is there a known bug with Android studio rendering. Whenever i place a EditText inside a linear layout, it gives me a "Exception raised during redering arraycopy" error Aug 27 16:55:11 One look in google says yes. Aug 27 16:59:18 is there a way to access the Unicode Emojis programmatically so I have them as a Bitmap/Drawable? Aug 27 16:59:19 rgr: Cheers mate. Turns out it wasnt a bug, my rendering was built for 4.4W which doesnt support EditText Aug 27 16:59:40 sale on android courses http://phandroid.com/2014/08/27/android-development-deal/ Aug 27 17:01:03 did LocationManager remove the GPS_ENABLED_CHANGE_ACTION and GPS_FIX_CHANGE_ACTION? Aug 27 17:03:38 if there is a parent layout with two children (A, B). What happens to B such that both children layout are match_parent Aug 27 17:04:02 is layout child B not rendered, is it off screen? Aug 27 17:04:11 JakeWharton, thanks for your help, but unfortunately it still squishes the background Aug 27 17:04:42 i don't know what that means, but your activity should handle being resized at any time Aug 27 17:05:20 ch-wahoo Aug 27 17:05:57 JakeWharton: are you speaking to me? Aug 27 17:06:03 JakeWharton, https://www.dropbox.com/s/sb5b02nxljeti6p/Screenshot_2014-08-27-19-05-02.png?dl=0 https://www.dropbox.com/s/tp550ldiynkunu4/Screenshot_2014-08-27-19-05-09.png?dl=0 Aug 27 17:06:54 yeah your activity is being resized to fit above the keyboard Aug 27 17:07:24 I am doing MyActivity.this.getWindow().setSoftInputMode(WindowManager.LayoutParams.SOFT_INPUT_ADJUST_PAN); though Aug 27 17:09:00 actually, I might have found something Aug 27 17:10:47 nope, i didn't Aug 27 17:10:52 Does anyone know what happens to Child B in my question above? Aug 27 17:11:14 Raiden, try it and see, but presumably it will just be offscreen Aug 27 17:12:01 Syzygy_: even though it is not visible, does it get Drawn at all? i ask because i want to perform an animation on the child, but it doesn't seem to be available Aug 27 17:12:18 Is it possible to get a native dump out of logcat if i need to include it in a crash report? Aug 27 17:12:36 dunno Aug 27 17:13:14 Raiden: the child is not available? You get a reference to it right? And did you change the x yet? Aug 27 17:13:45 yes i changed the x and tried a multitude of other things, but still no avail Aug 27 17:13:47 use a frame layout. easy. just animate the alpha in. Aug 27 17:14:02 because you#re second guessing the match_parent I would guess. Aug 27 17:14:53 rgr: im second guess the match_parent because when i try and get a rectangle of the view, i end up with the top and bottom values being the same, meaning it is not visible Aug 27 17:15:01 first thing to do is think about how to test. Force the one you want to animate onto the svreen : comment out the other. see if that animates. cut out the unknowns. Aug 27 17:15:40 Raiden: right, so your'e wrong. you have NO height, rethinkg how you want to do it. Aug 27 17:16:09 there are oodles of examples in google land of sliding a view onto the screen. Aug 27 17:17:51 rgr: right, im going through all those examples and nothing seems to bring this on screen. That's why i am just crossing out some possible things. Understanding what happens to a layout when a higher view has the entire screen real estate would help me. Aug 27 17:18:09 i haven't given up just yet Aug 27 17:18:47 why? Why guess and do it that way? Its crazy. Just set its coordinates off screen. Aug 27 17:18:58 its got a h of zoer because there's no more room. Aug 27 17:19:02 zero Aug 27 17:19:29 use a relative layout maybe and set it position left of the first. Aug 27 17:19:34 right of even Aug 27 17:19:48 Can't add Mocklocation permission without getting the error: Mock locations should only be requested in a debug-specific manifest file (typically src/ Aug 27 17:19:48 debug/AndroidManifest.xml) Aug 27 17:20:08 I made a copy of my manifest and placed it there Aug 27 17:20:13 but eclipse ignores it Aug 27 17:36:18 Alright so guys, in short I am using two View Pagers, One is in charge of animating the background (parallax style) Aug 27 17:36:25 and the other one is in charge of the actual content Aug 27 17:36:51 Right now it boils down to this, depending on which one I pick as a child of the other, either the content is visible or the background Aug 27 17:37:15 Hello all Aug 27 17:37:26 I have tried making my dummy "empty fragment" transparent but no luck at all =( Aug 27 17:37:41 empty fragment being the fragment used by the background Aug 27 17:38:17 I am trying to trigger my sync adapter to run immediately... and in during my sync, i would like to use Android-Query to make blocking requests and therefore running this logic inside an AsyncTask: http://pastebin.com/5vhsELZu Aug 27 17:38:29 However, it's producing the error of: Cannot block UI Thread. Aug 27 17:40:00 In which android-query is http://pastebin.com/FZBbhPgj to check for UI thread block Aug 27 17:40:11 check: ##### UI THREAD CHECK #### Aug 27 17:40:31 How come an async task is detected to run inside the UI thread? Aug 27 17:47:12 Has anyone used androidannotations with robolectric? I am getting an android.content.res.Resources$NotFoundException: String resource ID #0x7f050000 while running a test. (The code works OK on a real device) The test in question is here: https://github.com/oscarvarto/RobolectricExperiment/blob/master/app/src/androidTest/java/com/optrak/robolectricexperiment/LogonTest.java The error message Aug 27 17:47:13 https://github.com/oscarvarto/RobolectricExperiment/blob/master/ErrorMessage.txt Aug 27 17:49:23 I already tried http://stackoverflow.com/a/23870065/1446875 but didn’t work Aug 27 17:51:58 Test is failing here: https://github.com/oscarvarto/RobolectricExperiment/blob/master/app/src/androidTest/java/com/optrak/robolectricexperiment/LogonTest.java#L44 Aug 27 17:58:33 I was wondering if I could also add the text of the color in a button's selector drawable Aug 27 17:58:45 the background of the button to be some drawable, and the color of the text to be some other color Aug 27 17:58:55 adding a color item to the list didnt have any effect Aug 27 18:00:10 I can't seem to find a way to pass back a List> back from my JNI code. Can somebody direct me to a tutorial or provide some help in this matter. Much of what I can find shows how to return a List. Aug 27 18:02:50 I can now comment on SO Aug 27 18:02:50 hi guys. I want to implement an animation (basically a moving button) in my listview. based on the scrolling position, the button should move back and forth between two defined positions. where do I start? which classes / tutorials might be helpful? thanks a lot :) Aug 27 18:02:53 * Sicp cheers Aug 27 18:03:29 btw my app should be compatible with devices api >= 10 Aug 27 18:04:25 I've added google maps to my app, the view shows up fine, but I just see the background and nothing else happens Aug 27 18:04:30 here's the answer to what I was asking about btw, http://stackoverflow.com/questions/4692642/android-customized-button-changing-text-color Aug 27 18:06:12 no errors are thrown, just Google in the bottom left, and the cream background with the grid Aug 27 18:09:04 "After the recent Google Play upgrade I've noticed more complaints about permissions. Users now are generally more conscious about what apps do on their phone. " Aug 27 18:09:13 i wonder how many other devs have had this experience Aug 27 18:10:46 How do you run a remote request outside the UI thread? Aug 27 18:11:51 Come on. You can find that if you have the knowledge to even want to do it.... NO remote requests/heavy loading etc should be done on main thread. Google. Aug 27 18:12:34 rgr: OUTSIDE the UI thread! Aug 27 18:14:04 correct. Aug 27 18:14:18 hi, when i boot my phone it says the = UID's dont match and some main proccessses fail like com.android.acor Aug 27 18:15:02 i just tried a factory reset and its going through the setup stuff now Aug 27 18:15:07 hopefully that worked Aug 27 18:15:13 dingle please read the topic Aug 27 18:15:54 Rakan: If everything runs on the UI thread how do you run something off the UI thread? Aug 27 18:16:41 shadynastys: have a look here: http://pastebin.com/FZBbhPgj... i am trying to use asynctask or new Thread(new Runnable) but both are not working well with android-query Aug 27 18:17:12 The bottom line is, i would like to trigger my sync adapter once a button is clicked Aug 27 18:18:29 Rakan: so you know how but you are having implementation problems.. this problem is much more specific and a better question to ask here. Aug 27 18:19:08 shadynastys: yes it's specific and i do know how but why is android-query detecting the same thread ID? Aug 27 18:19:25 I'm trying to understand what tools:context means as a property of a layout. Aug 27 18:19:27 I found this: http://stackoverflow.com/questions/11078487/whats-toolscontext-in-android-layout-files Aug 27 18:20:20 So it's just a property used by Android Studio, or any IDE that wants to use this info. And not used by the compiler or by the app at runtime? Aug 27 18:20:24 Is that correct. Aug 27 18:20:25 ? Aug 27 18:21:07 I have a List of strings. I know that the string "9/22" is in some of the string objects. I run this code on it on a Java project: http://pastebin.com/UvKdix92 It tells me the indexes of the strings containing "9/22".. I run the same code on an Android project and it tells me there are no strings containing "9/22". why is that? Aug 27 18:21:10 I don't know if I'm interpreting the answers properly Aug 27 18:24:36 it has something to do with "9/22" Aug 27 18:25:46 anyone use SL4A on 4.1.2? Aug 27 18:26:26 I am getting hit by Aug 27 18:26:27 Caused by: java.lang.UnsatisfiedLinkError: Couldn't load com_googlecode_android_scripting_Exec: findLibrary returned null Aug 27 18:30:40 Could someone give me a quick hint on how to access a TextView from outside the MainActivity class? I tried it like this ( http://pastebin.com/gCBRZrHP ) but it crashes with a NullPointer Exception. Aug 27 18:32:29 Context? Aug 27 18:34:49 You mean the rest of the two classes or what I'm planning to do? Aug 27 18:36:01 Panni, weren't you here before with almost the same question? Aug 27 18:36:38 Nah, I don't think so. I was here yesterday but my question wasn't about that problem Aug 27 18:41:37 hello can i start an activity from a class which doesn't extend activity or anything else using only the context which passed as parameter Aug 27 18:41:38 ? Aug 27 18:41:59 just a simple java class Aug 27 18:42:40 does context class have a ….. "startActivity" ? Aug 27 18:43:07 yes and yes Aug 27 18:43:23 if the context is an activity? activity.startActivity(); Aug 27 18:43:33 danijoo it was a rhetorical question meaning that looking up in the docs is the answer Aug 27 18:43:41 oh okay :p Aug 27 18:44:01 resu01: context isnt an activity, but activity is a context Aug 27 18:44:13 and startActivity is actually a context method, not an activity method Aug 27 18:45:25 Is it possible to get a native dump out of logcat if i need to include it in a crash report? Aug 27 18:45:58 Panni you can't Aug 27 18:46:47 what do you mean with "native dump" Aug 27 18:46:49 to be more specific. I will call the simpleJavaClass method with parameters method(this) where this is the activity which calls the method Aug 27 18:47:08 danijoo: i have a process running that runs a exe, sometimes it crashes, i'd like to get the native dump of its crash Aug 27 18:47:11 resu01: the answer is still yes Aug 27 18:47:22 ok thanks Aug 27 19:05:30 Hello, I am confused with creating a rectangular oval button like this: https://cdn.tutsplus.com/vector/uploads/legacy/qt/qt_69_ai_to_psd_style/images/1/1.jpg I made it with , emulator shows correctly, however, graphical layout does not :S I am pretty much sure there should be a better way to create it as maki Aug 27 19:05:30 ng radius 99999px or something may affect performance as well Aug 27 19:06:24 *rounded rectangle Aug 27 19:09:20 what's up people? Aug 27 19:09:23 developers! Aug 27 19:10:24 developers! developers! developers! Aug 27 19:10:29 pls Aug 27 19:13:21 Topkek007: nobody can help you without any code. Aug 27 19:13:51 developers! developers! developers! Aug 27 19:13:57 * Sicp puts it on Aug 27 19:15:28 "Google’s Motorola Mobility division is still losing money: $68 million in the last quarter." oh i thought they were in the black now Aug 27 19:15:51 Topkek007 shapeDrawable Aug 27 19:16:25 Thank you very much! Aug 27 19:20:24 hmm, but it seems there is no rounding, just rectangles for xml. I need a shape like 2d pill / capsule but not an oval :S Aug 27 19:21:27 if i'm making an (aar) library that uses BLE, should i put uses_feature_ble required=false in its manifest as well as minSdk=4.3 ? how would somebody use the project if they did 'if sdk version > 4.3 { use nifty ble library } Aug 27 19:22:07 i guess it would be up to them in the top level manifest to override the minSdk declared in the library manifest ? Aug 27 19:22:14 (is that possible?) Aug 27 19:22:57 manfiestMerge = true Aug 27 19:23:01 in project properties Aug 27 19:23:12 i think it will either overwrite or throw errors Aug 27 19:23:17 does the handler here leak memory? https://gist.github.com/AfzalivE/82506de2e43961212dd6 Aug 27 19:23:26 thanks lasserix i'll check it out Aug 27 19:25:05 Afzal not yet Aug 27 19:25:17 but you'll probably want to pass MyService into the handler Aug 27 19:25:25 so you can access something in the service Aug 27 19:25:32 from within handle message Aug 27 19:25:39 You already can Aug 27 19:25:39 when you do that, you can just use a weakreference Aug 27 19:25:45 and it'll be fine Aug 27 19:25:49 oh yeah Aug 27 19:25:51 The handler already has a reference to MyService.this Aug 27 19:25:52 final not static Aug 27 19:26:00 yeah so it will Aug 27 19:26:14 Topkek007 shapeDrawable corners Aug 27 19:26:16 Afzal make the class static, then use weakreference to hold reference to your service Aug 27 19:26:33 anyone have some knowledge with libgdx? Aug 27 19:26:33 Or, stop the looper when the service exits Aug 27 19:26:41 Topkek007 and attribs of corners android:topLeftRadius, android:topRightRadius etc Aug 27 19:26:45 lasserix, yeah I was reading that it holds an implicit reference to the service instance. Yeah, I'll switch to that Aug 27 19:26:45 Topkek007 read the docs Aug 27 19:27:19 jesusfreke yeah you could clear the looper message queue but you have to remember to do that ;p Aug 27 19:27:23 JesusFreke, should I stop the looper even after I make the ServiceHandler static? Aug 27 19:27:37 or to simplify, does a AndroidLiveWallpaperService class exist in android? Aug 27 19:27:38 Afzal: nevermind, I thought you were creating a new looper. ignore :) Aug 27 19:27:38 o.O so the looper is where the message queue is? NICE! Aug 27 19:28:01 oh, you are creating a new looper Aug 27 19:28:16 ignore my advise to ignore my other advise. ;) Aug 27 19:28:29 so yeah, you'll definitely want to stop the looper when the service ends Aug 27 19:28:30 JesusFreke, yeah, onCreate, since I create a new HandlerThread and get its looper. lol Aug 27 19:28:37 otherwise, it'll just keep going on, even after the service stops Aug 27 19:28:38 got it. Thanks! Aug 27 19:28:42 that's bad. Aug 27 19:29:03 afzal Aug 27 19:29:05 check my comment Aug 27 19:29:11 i am going to delete it in a sec Aug 27 19:29:28 lasserix, got it. Thanks again! Aug 27 19:30:07 making it static isn't really needed as long as the lifetime of the looper/handler matches that of the service Aug 27 19:30:32 JesusFreke, non static inner classes hold an implicit reference to the Service class though :) Aug 27 19:30:34 meaning you have to flush the message queue of the looper when the service stops Aug 27 19:31:03 yeah but if you flush the message queue then even if it is holding an implicit reference it won't have anything to hold on to since it's finished its execution Aug 27 19:31:06 Afzal: right, and the looper/handler will be garbage collected once the looper is stopped Aug 27 19:31:20 mhm I see, makes sense Aug 27 19:31:25 along with the service object Aug 27 19:32:38 lasserix: I'm pretty sure flushing the queue doesn't do anything, if the looper is stopped ;) Aug 27 19:33:39 flushing queue = stopping looper Aug 27 19:33:57 yeah i know not technically but that is what i mean Aug 27 19:40:32 hi guys Aug 27 19:40:43 hello dr rburgosnavas Aug 27 19:41:59 hey, is there a way to show the content as the webview loads? Aug 27 19:42:01 so I'm adding two PendingIntents to two actions to a notification, each with extras, each calling the same BroadcastReceiver, and each PendingIntent has a FLAG_CANCEL_CURRENT Aug 27 19:42:28 but it seems that the second PendingIntent is overwriting the extras Aug 27 19:42:58 any thoughts? Aug 27 19:43:12 make sure you make the pending intents unique Aug 27 19:43:16 there are a few different techniques Aug 27 19:43:20 but you can throw in a timestamp for instance Aug 27 19:44:15 do I do that with the request code I pass to PendingIntent.getBroadcast()? Aug 27 19:44:26 http://stackoverflow.com/questions/4340431/how-can-i-correctly-pass-unique-extras-to-a-pending-intent Aug 27 19:44:31 yeah Aug 27 19:44:33 sometimes like that Aug 27 19:44:37 can't rmeember specifically Aug 27 19:45:19 thnx for the link Aug 27 19:45:27 I'll try that quickly Aug 27 19:45:27 or http://knowledgefolders.com/akc/display?url=DisplayNoteIMPURL&reportId=3944&ownerUserId=satya Aug 27 19:46:25 anyways point is you need to make the pending intents unique so they dont overwrite Aug 27 19:46:58 rgr: i found that i should've been using a FrameLayout...crisis averted Aug 27 19:47:14 cool, thnx lasserix Aug 27 19:47:25 also it looks like you nee dto do PendingIntent.FLAG_UPDATE_CURRENT as well or something Aug 27 19:47:26 adding a unique request code did it Aug 27 19:47:31 ahh cool Aug 27 19:48:34 StingRay_: you see, I mentioned in question, however it does not show properly in eclipse's graphical layout, but ok in emulator and it does not look correct as there is no max value for it, could not it decrease performance? Aug 27 19:48:58 Topkek007: seems a little absurd to use 555 px as your radius Aug 27 19:50:29 that is true, but that is why I am looking for the right way to create a totally rounded rectangular Aug 27 19:50:38 *rectangle Aug 27 19:51:08 so it looks like a pill / capsule Aug 27 19:51:11 not an oval Aug 27 19:52:01 there is no value to make eclipse show it correctly. :S Aug 27 19:56:13 which shape are you using? Aug 27 19:56:34 android:shape="rectangle" Aug 27 19:56:41 how can I check if my AsyncTask is finished in an Activity? Aug 27 19:56:41 Topkek007, just create a 9-patch Aug 27 19:56:56 or create a rectangle then use a mask Aug 27 19:57:06 Topkek007: why not use oval? Aug 27 19:57:32 Topkek007, here, http://www.curious-creature.org/2012/12/11/android-recipe-1-image-with-rounded-corners/ Aug 27 19:57:43 http://android-er.blogspot.com/2013/02/implement-shape-of-oval-using-xml.html Aug 27 19:58:09 my lord, no. :D Aug 27 19:58:15 A capsule is a rounded rectangle with the height being 2x corner radius Aug 27 19:58:54 afzal the vertical one on that link is what you are looking for Aug 27 19:58:58 you can do with it with oval Aug 27 19:59:14 you mean Topkek007 :p Aug 27 19:59:20 lasserix, ^^ Aug 27 19:59:21 yeah sorry Aug 27 20:03:14 Yes, I was looking for capsule shape :S Aug 27 20:04:12 they would look nice in scrollable linear layout, you see.. Aug 27 20:04:32 Topkek what about rect with rounded corners Aug 27 20:05:02 It works, however, there is no maximum value Aug 27 20:05:17 and eclipse graphical layout does not render it correctly Aug 27 20:05:23 bug, perhaps Aug 27 20:05:39 works in emulator. Aug 27 20:06:04 can't send source as it is 2 .xml files Aug 27 20:06:05 the preview is never perfect... big values should be okay Aug 27 20:06:23 can't big values decrease performance? Aug 27 20:06:42 dont think so. its just math Aug 27 20:07:01 1+1 is as fast as 1000+1000 Aug 27 20:07:14 its still the same mathematical operation i guess Aug 27 20:07:41 is there a way to get and older apk or move it to alpha? Aug 27 20:07:46 an* Aug 27 20:08:11 mountSin: you mean download an older apk from developer console? Aug 27 20:08:17 yes Aug 27 20:08:19 no Aug 27 20:08:25 Topkek007: but using a radius of 555px is very wrong Aug 27 20:08:26 can I move it to alpha? Aug 27 20:08:56 mountSin: once its in beta/production. no Aug 27 20:09:21 all you can do is disable it Aug 27 20:10:01 and by disable i mean unpublish Aug 27 20:10:01 whoops, connection problems Aug 27 20:10:32 if you sent me something, I did not saw it Aug 27 20:10:37 ok thanks Aug 27 20:12:16 Topkek007: another thing you can do is using a 9.png Aug 27 20:12:43 and let it strech vertically as a normal sprite, while only strech 1 px horizontal Aug 27 20:14:13 looks advanced, I will have it in mind and "someday"! :) Aug 27 20:15:32 in android's listview, i want to mantain the position while changing data. i want to add one item to the bottom and remove one from the top but in such a way that if i'm not at the bottom/top, listview doesn't move. can i somehow specify position while doing notifyDataSetChanged? Aug 27 20:30:28 is updating a notification button inside a BroadcastReceiver a good pattern? Aug 27 20:32:01 seen people smarter than me do that Aug 27 20:32:10 haha Aug 27 20:32:44 sqrrl: that's what happens if you have stable ids for your items Aug 27 20:33:10 mhm Aug 27 20:33:38 o~h! Aug 27 20:33:42 o~~~h Aug 27 20:33:50 i tried asking on #android, but they directed me here Aug 27 20:34:02 could anyone confirm for me that in android 4.4.4 the password for the lockscreen and the password for the encryption have to be the same? Aug 27 20:34:12 i think #android is for users, not devs Aug 27 20:34:13 i wanted to have a pattern for the lockscreen and a long alphanumeric password for the encryption Aug 27 20:34:23 but in 4.4.2 it's impossible Aug 27 20:34:30 i tried to google for this information but i did not find anyone that said it was one way or the other first-hand Aug 27 20:34:37 only a bug report on code.google (still open) with the last comment in april Aug 27 20:34:57 this didn't seem as a dev question, so i asked there Aug 27 20:35:01 SimonVT: you're god Aug 27 20:35:48 i found an interface to change the password after root, but i do not have root Aug 27 20:35:56 ..there's encryption? :3 Aug 27 20:36:08 there is, apparently Aug 27 20:36:50 only, if you set an uber 10 char alfanum password, then you have to type it every time your phone locks Aug 27 20:37:15 i wonder if anyone in #xdandroid or #android-root may be able to help you Aug 27 20:37:28 not to re-direct you again, just trying to help Aug 27 20:37:54 https://gist.github.com/pfn/a499ad84674fc4329b53 Aug 27 20:37:56 that was fun Aug 27 20:38:11 simple mortgage/loan calculator in a single file Aug 27 20:38:13 no layout xml Aug 27 20:38:21 only resources used are a drawable for divider Aug 27 20:38:21 hmm Aug 27 20:38:22 heh Aug 27 20:38:51 pfn why not use new colorDrawable ? so zero resources ? Aug 27 20:39:04 for the divider I mean Aug 27 20:39:05 pfn: Oooh! Scala + Android Aug 27 20:39:17 StingRay_, because colordrawable doesn't work for divider Aug 27 20:39:24 it needs a minimum height or width Aug 27 20:39:34 and colordrawable intrinsic height is 0 Aug 27 20:39:43 I guess I could subclass it, but yeah, didn't really care Aug 27 20:39:59 oh your using the linearLayout fluff, yeah Aug 27 20:40:11 pfn: unrelated, but what performance are you getting with Scala+Android? Aug 27 20:40:30 rburgosnavas, might as well Aug 27 20:40:46 rburgosnavas, same as java Aug 27 20:40:52 there's no performance penalty for using scala Aug 27 20:41:01 except some amount of additional memory overhead Aug 27 20:41:37 pfn: which version of Scala do you use? Aug 27 20:41:51 rburgosnavas, depends on app, but starting to migrate to 2.11 Aug 27 20:41:57 #xdandroid seems kinda empty, just 5 users Aug 27 20:42:01 I don't really use any features outside of what's in 2.9 Aug 27 20:42:39 ok Aug 27 20:42:44 SimonVT: that doesn't seem to work. i suppose it simply retains the y position.. Aug 27 20:43:18 rburgosnavas, you know I'm the biggest supporter of scala on android, right? Aug 27 20:43:37 did not know that Aug 27 20:43:56 I've been meaning to try it out Aug 27 20:44:13 but maybe I should get more solid skills in both independently first Aug 27 20:44:18 biggest supporter = owner of defacto android build setup for scala Aug 27 20:44:29 ah! Aug 27 20:45:59 I'm following the project on GitHub Aug 27 20:47:31 rburgosnavas, https://github.com/pfn/android-tvm Aug 27 20:47:35 if you want to try the calculator out Aug 27 20:47:38 to get a feel for it Aug 27 20:47:47 sbt android:run Aug 27 20:48:09 pfn: cool Aug 27 20:48:10 echo 'addSbtPlugin("com.hanhuy.sbt" % "android-sdk-plugin" % "1.3.4")' > ~/.sbt/0.13/plugins/android.sbt Aug 27 20:51:05 Is there any way for me to use @android:dimen/navigation_bar_height in an XML file? Aug 27 20:51:28 is that one of those hidden resources? no Aug 27 20:51:46 Okay, I'll grab it in the Javas and set the padding that way then. Aug 27 20:52:07 Seems silly to have a "fitsSystemWindows" setting but not allow the padding to be easily grabbed. Aug 27 20:58:30 sqrrl: Does your items actually have stable ids? Aug 27 21:02:48 SimonVT: they do Aug 27 21:03:19 i'm using stackfrombottom=true btw Aug 27 21:08:27 also there's a problem with android 2.x: populating list from the bottom to top makes it scroll to the top as the items appear Aug 27 21:15:02 is it possible to pass any object in a bundle? Aug 27 21:15:25 if not how can I send any object to another activity? Aug 27 21:15:55 if this is the same process, you can use any mechanism you want available to java Aug 27 21:15:58 to pass data around Aug 27 21:16:45 MartialLaw, the obect type must extends Parcelable Aug 27 21:17:26 or serializable Aug 27 21:17:38 so serialization Aug 27 21:18:05 Parcelable is faster Aug 27 21:18:24 k thnx Aug 27 21:18:37 touchy subject, you can pass any object but that isn't really safe because your activity can be destroyed by the oom killer and your object reference will go away with it Aug 27 21:19:49 defer: I think you're conflating 2 things here. When you serialize an object, the caller unserializes it and gets their own copy. It no longer has anything to do with the copy that is/was in the senders process Aug 27 21:20:07 err, the receiver deserializes it* Aug 27 21:21:02 It sounds like you may be thinking of binder objects, or something :) Aug 27 21:21:06 JesusFreke: definitely, if it is serializable/parcelable but following on pfn's rationale, there is a way to pass any object reference in an intent Aug 27 21:21:13 or was that removed? It was kind of a hack Aug 27 21:21:25 it doesn't have to be an intent Aug 27 21:21:27 it was not part of the extras for sure Aug 27 21:22:09 yeah, you can't pass an object by reference, via a bundle or parcelable Aug 27 21:23:18 of course no Aug 27 21:24:02 definitely agree, but I am almost certain there was something on the intent where you could pass a reference, I remember thinking how hacky it was Aug 27 21:24:10 it would only work on the same app, obviously Aug 27 21:24:38 defer, I don't think so Aug 27 21:30:30 defer, extend the Intent class and hold the reference in an instance of your custom class? Aug 27 21:32:42 haha, eww :p Aug 27 21:32:47 lol Aug 27 21:32:53 ahah, no Aug 27 21:33:08 Ugh, since I reinstalled Windows I cant get my drivers to work for my phone... Aug 27 21:33:09 well, you did say it was hacky Aug 27 21:33:50 It keeps trying to find its own drivers instead of using the ones I've installed, or something Aug 27 21:35:41 have you tried installing linux? Aug 27 21:35:43 * JesusFreke ducks Aug 27 21:35:51 * ravilov covers Aug 27 21:35:52 xD Elementary Aug 27 21:35:59 heh Aug 27 21:36:28 also, -> ##windows Aug 27 21:37:43 meh, can't find it, it's for the best, and it may be a byproduct of my imagination and the years :) Aug 27 21:38:12 amen ^ Aug 27 21:43:13 Anyone used butterknife? I know i am doing something wrong. I am not very good at making my own views. I have created a view that holds an image and sets its height according to the image size. There might be a better way to do this if someone can give me a suggestion. The layout i am trying to achieve is included https://gist.github.com/px-amaac/80449d5cfe226e8004f7 Code is failing when Aug 27 21:43:13 picasso loads the image into target because the target is null Aug 27 21:44:43 I have a few android layouts that I want to change between ( changing the entire layout using setContentView() ) is there a way to easily animate the change? I see that I can animate changes if I change the elements in some parent view: http://developer.android.com/training/animation/layout.html But I want to change the activity with XML. Any suggestions? Aug 27 21:44:53 shadynastys: how are you using that view and calling bind? Aug 27 21:46:08 so I'm checking the Dagger - the simple one with the CoffeeApp and the Module provides ( "injects" ) to the class a new ElectricHeater() - Aug 27 21:46:29 if I want to add a lets say SuperElectricHeater should I create a new module ? Aug 27 21:47:06 or I can add it to the same module? ( DripCoffeeModule ) Aug 27 21:47:32 JakeWharton: with your wonderful bindable adapter. I am going off of your U2020 app trying to get SGV to not jump around. I have a more complicated layout than just image with text on top Aug 27 21:48:12 hello Aug 27 21:48:17 does anyone use jenkins here? Aug 27 21:48:18 shadynastys: just paste some code Aug 27 21:49:00 Moony22: try teamcity :) Aug 27 21:49:03 does anyone use a build server here? Aug 27 21:49:30 o.o, bankai_au, is that better for android projects? Aug 27 21:50:54 shadynastys: i mean, are you inflating a layout with that view inside of it? or are you calling its constructor directly? Aug 27 21:51:32 csst0111: doesn't matter. how you compose your modules is up to you Aug 27 21:51:47 csst0111: you can shove everything in one or have 100s of small ones Aug 27 21:53:15 JakeWharton: I am not inflating that view. What you see is what I have. Aside from Main that just sets up the adapter and gets the data. I have updated my Gist with the adapter https://gist.github.com/px-amaac/80449d5cfe226e8004f7 Aug 27 21:53:45 I did get it to work if I injected the view directly with butterknife Aug 27 21:54:11 But. I need the class to use its child whatever it is Aug 27 21:54:36 I happen to call it Logo and Image Aug 27 21:55:13 bankai_au: Do you have any guide on how to host an android project with teamcity? Aug 27 21:56:30 This is really just an attempt to recreate the same gallery view as the U2020 app but with multiple images and some text at the bottom instead of a single image that has text over it. Aug 27 21:58:08 I could not get it to work in a single view because the image needs to match parent on height. if it does not then the image starts off small and when picasso resizes it causes the SGV columns to jump around because they are being redrawn. Aug 27 21:58:25 nothing jumps out Aug 27 21:58:34 at least with the adapter and butterknife stuff Aug 27 21:58:47 Moony22: no i don't, but if you're using IJ it's pretty well integrated Aug 27 21:59:25 bankai_au: o.o I've never even hosted/used a build server before Aug 27 21:59:55 it's jetbrains... not difficult to setup/use Aug 27 22:01:12 The problem is the Butterknife.findbyid(viewId) is returning null and therefore the target is null when picasso loads it into the view Aug 27 22:01:34 bankai_au: well, I might as well start my getting set up Aug 27 22:01:37 getting the server set up* Aug 27 22:02:10 your ids don't match Aug 27 22:02:21 you use R.id.image in code but in the layout it's circular_image Aug 27 22:03:48 Fixed but still no joy.. Aug 27 22:04:28 is there a way to set the number of retries on failed downloads with the downloadmanager? Aug 27 22:04:39 There is no problem with the way i am passing the ID to MyImageView in bindTo? Aug 27 22:06:07 no Aug 27 22:06:12 it's just strange Aug 27 22:06:29 lol cause that is what broke it Aug 27 22:06:48 why not just inject them directly into ItemView? Aug 27 22:08:03 I did that it works.. but then i need to have 2 of the same views. or some boolean to choose between the 2. i thought that would get ugly if i need to add more leaf views Aug 27 22:08:45 or build the view progromatically Aug 27 22:09:04 and enclose the XML in a different file Aug 27 22:09:19 to avoid view naming conflicts Aug 27 22:10:01 the docs say that "failed download get automatically retried" but how many times? Aug 27 22:14:04 here we are ... https://code.google.com/p/android/issues/detail?id=18462 Aug 27 22:14:51 shadynastys: yeah but it's a child of ItemView Aug 27 22:15:07 by having to pass the ID yourself you already have to have ItemView be aware of it Aug 27 22:15:51 g00s: http://www.abc.net.au/news/2014-08-27/asic-accidentally-blocked-250000-websites-ip-address/5701734 Aug 27 22:16:06 is there a good open source download manager that is a defacto standard? Aug 27 22:16:55 I understand. so set it up to already contain the views. i am passing the choice anyways. Aug 27 22:17:03 that makes sense Aug 27 22:21:08 JakeWharton: Do you have experience with a better way to get the views in SGV to be a set height without keeping everything in its own framelayout? The frame layout trick is the only thing that i have tried that works. I have been working on this for 4 days now. Just to get an image with text at the bottom instead of overlayed on top and have the SGV not constantly expand views making the Aug 27 22:21:08 grid redraw. Aug 27 22:21:37 I know Etsy does it. I am about to open an issue and just ask them. Aug 27 22:25:04 they probably send down the image sizes in the API response Aug 27 22:25:16 shadynastys: can't you just determine the size you need a scale the image as you need then set it? Aug 27 22:26:28 I get image size in JSON response. that is how it works now. Aug 27 22:26:49 bankai_au rxjava 0.20.1 Aug 27 22:26:52 yeah but don't you have a physical size you have to size it to? Aug 27 22:27:05 already? bloody hell .. Aug 27 22:27:18 yes it is based on width of the screen/ width of the column that it is going into Aug 27 22:27:18 hopefully maven central isn't blocked by asic :) Aug 27 22:27:33 i reckon, wtf would i do then ? Aug 27 22:27:47 bankai_au just use vpn probably ;) Aug 27 22:28:00 Picasso resizes it to that size after the imageview has been drawn Aug 27 22:28:11 shadynastys: i mean you get the image from the server, then you have to scale it to the physical dimension of your screen? Aug 27 22:28:22 the gradle plugin has been at 0.12.2 for quite some time. seems like its stabilized, maybe getting to 1.0 ? Aug 27 22:28:39 g00s: no, that's because they're doing the Gradle 2.0 jump Aug 27 22:28:47 ah Aug 27 22:29:10 i would hope we're nowhere near 1.0 Aug 27 22:29:29 MyImageView.java line 64 https://gist.github.com/px-amaac/80449d5cfe226e8004f7 Aug 27 22:30:04 hi guys. I want to implement an animation (basically a moving button) in my listview. based on the scrolling position, the button should move back and forth between two defined positions. where do I start? which classes / tutorials might be helpful? thanks a lot :) Aug 27 22:31:52 The button I want to move is inside one of my listview items. When I scroll down it should move to a defined position. When I scroll up again it should return to its original position Aug 27 22:32:07 the parent layout sets its height but also wraps content. picasso resizes the image after the view has been sized. sometimes it does not size the image right. i kno wthis because my dataset contians duplicates and they are sized differently Aug 27 22:32:45 I already know to animate a view translation. I just don't know how to connect it to my scrolling position. Aug 27 22:33:00 I can recreate this issue in the U2020 app which I was trying to follow Aug 27 22:33:03 is scrollinglistener + setPlaybackTime an option? Aug 27 22:33:42 *setCurrentPlayTime rather Aug 27 22:41:16 Hey, whenever I press back button in an activity , the debug option fires up and shows me that source not found , Edit source lookup path , what does it mean ? Aug 27 22:42:55 it means you're running a debugger Aug 27 22:42:58 and it caught an exception Aug 27 22:51:50 JakeWharton: thankyou for your help sir. Aug 27 22:58:41 nvm. works Aug 27 23:06:20 how do i reliably determine if listview is at the bottom? Aug 27 23:06:32 i've tried ui_listview.getLastVisiblePosition() == ui_listview.getCount() - 1 but that produces crazy results Aug 27 23:06:47 it only works if list isn't being updated Aug 27 23:08:46 getChildAt(yourListView.getCount() -1)... to ...getChildAt(yourListView.getChildCount() -1) Aug 27 23:09:02 http://stackoverflow.com/questions/5123675/find-out-if-listview-is-scrolled-to-the-bottom Aug 27 23:09:24 i'm having a design brain fart atm Aug 27 23:09:57 you can also use scrolllistener via that post Aug 27 23:09:57 lasserix: i don't need to check if it's fully visible Aug 27 23:10:06 http://zeering.com/Answer.aspx?q=Find%20out%20if%20ListView%20is%20scrolled%20to%20the%20bottom?&i=68948 Aug 27 23:10:35 also i need to detect it when the list hasn't been scrolled anywhere Aug 27 23:13:10 argh, i just want to retain position in the list when i'm deleting stuff Aug 27 23:13:19 guess it's impossible Aug 27 23:23:22 Hi everyone. I'm quite new at Android development and here's my question. I have a screen where I display a grid of pictures taken with camera. After standard camera activity takes an image and saves it to SD card and user goes back to the app I want images grid to be updated and new image to appear in the grid. What I'm not sure about is should I store info on images in the DB and just extract the last record with a path Aug 27 23:23:23 everytime users is back to this gallery or should I implement it using only standard file operations like getting the list of files with standard File features? Aug 27 23:36:46 AlexBerdnikov: Have you looked at the media store? Aug 27 23:39:54 I only completed several tutorials from official docs so no, I haven't looked at MediaStore yet. I'm looking at it right now and I think that's the answer :) Aug 27 23:40:04 Thank you mate! Aug 27 23:42:27 what IDE are most people using, statistics? Aug 27 23:43:21 android studio Aug 27 23:43:24 Is it possible to take two debug dumps of a running-but-hanged application, and compare them, to see which function is spending a long time processing? Aug 27 23:43:56 because my application, every time it recieves and processes data, it hangs, and if I turn on continuous scanning, it Aug 27 23:44:06 's almost completely unresponsive, one hang after another. Aug 27 23:44:24 or am I better off commenting functions and seeing what makes it faster? Aug 27 23:45:24 how big is your app Aug 27 23:45:31 if you can paste me some code i can help you find why it hagns Aug 27 23:45:51 It's based off of bluetoothchat with a rewritten data-acquisition loop Aug 27 23:45:55 and a lot of data processing Aug 27 23:46:03 (not a lot, actually very little) Aug 27 23:46:51 If I dont have access to Android TV/ADT-1 is there any other Google TV box that I can purchase which is suitable for testing out Android games I want to make for playing on the TV? Please give some suggestions! Would like to use a game pad with the setup. Aug 27 23:47:08 Lots of android-mini-pcs Aug 27 23:47:24 not the right channel Aug 27 23:47:40 jimbo1qaz, what channel do you suggest Aug 27 23:48:26 absolutely not this. Maybe possibly #android, I think some android forums may be better but slower Aug 27 23:48:37 jimbo1qaz, how dare you Aug 27 23:51:06 anybody here that can help me with a little bit of JNI? I'm trying to create and pass back a Java datastructure from the Native code. I can't seem to figure out how to do it. This is what I have so far. http://pastebin.com/6mFAWGFB Aug 27 23:52:27 AudioScores is a container object of 2 double[] fields. aud_scores.vad_scores and aud_scores.audio_level are two native double[] arrays. Aug 27 23:53:24 ignore lines 18, 19. Those were earlier attempts at trying to modify a List>. Aug 27 23:54:01 semi-newbie question: is having an AsyncTask inside a Service a good idea? Aug 27 23:56:30 depends on what your doing Aug 27 23:56:42 if the point is to stop blocking of other things while you do data crunching then sure Aug 28 00:01:00 ok Aug 28 00:01:55 rburgosnavas: it's almost always a good idea, a service runs on the UI thread Aug 28 00:02:28 does it? damn, how did I miss that in the docs?! Aug 28 00:03:43 i guess an alternative would be to start a service in its own process Aug 28 00:04:16 yep, but then you will probably be getting into AIDL for nothing Aug 28 00:04:32 maybe you should look into IntentService Aug 28 00:05:26 I was going to Aug 28 00:05:38 but decide to try it with Service instead Aug 28 00:06:27 basically I'm working on an audio recording app that controls recording with a Notification Aug 28 00:06:36 Service is always good to learn. IntentService is easier and is probably what you are looking for Aug 28 00:06:55 then Service might be for you Aug 28 00:08:17 what I'm trying to figure out is how start/stop recording with the Notification, and update Notification progress while recording Aug 28 00:08:54 all that while using a Service with an inner AsyncTask and BroadcastReceiver Aug 28 00:09:51 anyway, I wasn't sure if having that AsyncTask was overkill Aug 28 00:12:09 It appears that androidplot does a lot of drawing in the UI thread. Aug 28 00:12:09 Making my app freeze/ Aug 28 00:18:11 Anyone familiar with Androidplot library? Aug 28 00:19:09 Did anything get said since my previous chat? I got disconnected. Aug 28 00:19:35 Nope Aug 28 00:21:03 Man, you missed it. It was totally awesome too Aug 28 00:21:05 jimbo1qaz: all drawing happens in the ui thread Aug 28 00:21:44 JesusFreke was one of the best answers I've seen in this chan Aug 28 00:21:48 So because I plotted a 25k point thread, it hangs on the calculating minmax. is INCREMENT_BY_VALUE slow? Aug 28 00:22:07 my question is like one of the most boring questins anyone could ask. Aug 28 00:22:17 jug6ernaut: what answer was it? Aug 28 00:23:55 desmin88 if u have to ask, you will never know. Aug 28 00:31:03 So is it my own fault for having 25k points, which for any reasonable amount of computation should take less than a millisecond, or maybe a few milliseconds if you're doing intensive work? Aug 28 00:31:27 less then a millisecond lol Aug 28 00:31:55 maybe a few milliseconds, depends on how much cpu cycles you're doing Aug 28 00:32:19 No way should 10^4 data items take 10^9 cycles to deal with Aug 28 00:32:52 jimbo1qaz have u don't a lot of heavy computation on mobile before? Aug 28 00:34:02 3 possible solutions: 1. move the redraw() out of UI thread. 2. optimize redraw() to take less time. 3. I only have it draw every n'th point. Aug 28 00:34:32 jimbo you should draw to a canvas off the ui thread Aug 28 00:34:41 then post the canvas to the ui thread to draw it to a view Aug 28 00:34:45 how do I do that with androidplot? Aug 28 00:37:28 not sure you can Aug 28 00:37:39 but you basically want to do the xyplot render functions in the background off the ui thread Aug 28 00:37:54 then from that get a bitmap or canvas push it over and then invalidate the actual view you use display Aug 28 00:38:02 jimbo1qaz is it possible to offload the rendering to a server? Aug 28 00:38:31 no, this is an app that reads data from bluetooth, graphs it, plots the peaks, and shows the data. Aug 28 00:38:59 jimbo1qaz: it looks like background rendering support is there Aug 28 00:39:13 It appears the default RenderMode is Plot.RenderMode.USE_BACKGROUND_THREAD, that's what I already had, I'll try to disable the graphing to further find the source of the lags Aug 28 00:39:29 XYPlot myPlot = new XYPlot(context "MyPlot", Plot.RenderMode.USE_MAIN_THREAD); Aug 28 00:39:38 ahh Aug 28 00:39:39 but when I debugpaused, I saw activity in the range-computation function during the render. Aug 28 00:39:44 but you said it's the minmax function? Aug 28 00:39:53 something like that Aug 28 00:39:59 yeah cause that may not be rendering Aug 28 00:40:06 that is not a rendering thing Aug 28 00:40:09 I'll investigate further. Aug 28 00:40:44 So why is that stuff happening in the main thread, instead of the asynctask's thread or a bg thread? Aug 28 00:41:17 its however they implemented it Aug 28 00:41:22 what do you do to do the minimax function? Aug 28 00:41:34 weird, the gaph shows up first, then it freezes even after it shows up Aug 28 00:42:01 you may be doing something the androidplot can't handle Aug 28 00:42:13 tho really it would not be that hard to do draw a simple xy plot Aug 28 00:42:25 er implement Aug 28 00:42:53 I have little experience with android Aug 28 00:49:40 cant you just employ your own minimax function? Aug 28 01:04:55 does gradle's maven plugin not reference in the poms it imports? Aug 28 01:09:06 Whats the best way to present large amounts of text for reading? Aug 28 01:09:12 Justification, certain font size, etc? Aug 28 01:11:29 desmin88 you could give user a choice; there is an optimal word / chars per line but i forget what it is Aug 28 01:11:43 Play Books lets the user choose Aug 28 01:11:47 so does Kindle Aug 28 01:12:31 interesting Aug 28 01:14:12 I use two things for my app, multiplier and also custom mode allows you to edit named qualifiers individual Aug 28 01:14:25 wat Aug 28 01:14:42 font size Aug 28 01:16:33 desmin88 there is also an argument; on low dpi devices sans serif is more readable; on high dpi serif is more readable ... Aug 28 01:16:52 but there is some conflicting data on the benefits of serifs Aug 28 01:18:01 can't remember which was better full or left justfication either :( but these things do matter Aug 28 01:18:08 you said *large* so .. :) Aug 28 01:19:16 ok its not large as in books Aug 28 01:19:20 but small articles Aug 28 01:23:01 http://i.imgur.com/uqRMiSt.png Aug 28 01:23:03 pretty bland Aug 28 01:23:33 desmin88 oh yeah! you still working on this ? Aug 28 01:23:50 this is the rewrite Aug 28 01:23:53 hehe Aug 28 01:23:54 for personal fun Aug 28 01:24:29 well, you could allow setting for inter line spacing and font size Aug 28 01:24:42 maybe margins Aug 28 01:24:53 but the first 2 probably covers enough Aug 28 01:27:49 now i wonder what Play books uses to render a page. i wouldn't be surprised if its a webview Aug 28 01:28:07 since epubs are essentially zip files with some xml + html Aug 28 01:28:43 desmin88 you may want to talk to Napalm , he wrote a FlowLayout thing Aug 28 01:29:04 my content is just wordpress post html Aug 28 01:29:35 working on it Aug 28 01:30:28 good evening Napalm Aug 28 01:31:30 anyone know of a reason to detach re-attach global layout listeners when navigating away and back to activity ? Aug 28 01:31:53 a reason? Aug 28 01:32:01 yes, its a new activity instance Aug 28 01:32:03 lol Aug 28 01:32:16 no, you missed my question Aug 28 01:32:26 detach onPause then Aug 28 01:32:29 hey guys! Aug 28 01:32:35 do you use retrofit? Aug 28 01:32:40 i do Aug 28 01:33:00 haha Aug 28 01:33:00 i do Aug 28 01:33:33 nah, I doubt Jake knows anything about it. He's just an amateur Aug 28 01:33:35 :p Aug 28 01:33:54 excelent!, when you do a callback, in the success and failure... how do you update the view?, i get an error that says that i'm not on the main thread (which is expected :P) Aug 28 01:34:36 callbacks are invoked on the main thread by default Aug 28 01:34:41 callbacks Aug 28 01:34:42 nvm Aug 28 01:34:57 unless you've changed that in the RestAdapter.Builder via setExecutors, however Aug 28 01:35:29 i've changed it via executors, because new versions of android crash if i do callbacks in main thread :( Aug 28 01:35:51 only if you're doing something that you shouldn't be Aug 28 01:36:12 regardless, if you've changed it you need to get back to the main thread yourself Aug 28 01:36:28 the easiest way is posting a Runnable to a Handler which was created with Looper.getMainLooper() Aug 28 01:36:58 but wouldn't freeze the UI if i call the callbacks in the main thread? Aug 28 01:37:13 no, all the heavy lifting happens on a background thread Aug 28 01:39:01 JakeWharton: yay!, you are right :D, i've deleted the executors and now works flawless ^^ Aug 28 01:39:06 thank u thank u! Aug 28 01:41:06 sweet. glad it works Aug 28 01:42:22 Napalm so what is flowlayout Aug 28 01:43:01 Flows child views in a direction and wraps them but also obeys gravity constants Aug 28 01:43:14 wraps as in like Line wrapping Aug 28 01:43:28 interesting Aug 28 01:48:59 where do you usually store the API key that you get from the server? Aug 28 01:49:40 :D Aug 28 01:50:47 g00s i forgot to ask :S Aug 28 01:50:59 i have failed you Aug 28 01:53:35 ya there? :( Aug 28 01:55:30 naschurmann who is "ya" ? Aug 28 01:55:46 you! :D Aug 28 01:55:51 how are you doing? ^^ Aug 28 01:56:00 could be better Aug 28 01:56:24 g/f did some spicy chicken, not sure it agrees with me…time will tell Aug 28 01:56:52 shit happens Aug 28 01:57:06 btw, i have a question concerning android and apis :D Aug 28 01:58:28 well if it's not totally obvious, not though lack of trying and not easy to find with google or in the docs, this is the correct place for you to ask :) Aug 28 01:59:14 when you make a login to the API, the server will return a token so you can access the server in any request. Aug 28 01:59:25 The question is, where is the "best place" to store this token? Aug 28 01:59:54 not sure if the db would be the best place for it Aug 28 02:00:01 "login to the api" I follow everything but those 4 words seem a little opp Aug 28 02:00:03 odd* Aug 28 02:00:20 o, sure. Aug 28 02:00:33 When you authenticate to the api. With username and password :P Aug 28 02:00:47 usually, if the combination is correct, the server will return a token Aug 28 02:00:53 what is "the api" you mean the web service ? Aug 28 02:01:21 o, sure Aug 28 02:01:23 yup Aug 28 02:01:50 regardless really, the questions is simply "how do I persist a web token in android" Aug 28 02:02:22 thanks for the correction!, the change of paradigm is confusing sometimes :P Aug 28 02:03:02 http://android-developers.blogspot.co.uk/2013/01/verifying-back-end-calls-from-android.html and http://developer.android.com/guide/topics/data/data-storage.html Aug 28 02:03:09 maybe worth a look Aug 28 02:04:37 oh, maybe i wasn't clear enough Aug 28 02:04:46 is not about what are all the posibilities Aug 28 02:05:22 is more, where is the best place to store the api key Aug 28 02:05:44 in one of those possibilities that suits your needs, best one for you Aug 28 02:05:54 you are the one doing it, and maintaining it :) Aug 28 02:06:06 ok, and the best practice? Aug 28 02:06:09 api key ? Aug 28 02:07:04 you should not be saving an your api key anything in your app Aug 28 02:07:18 well, suppose it depends on what the api key is used for Aug 28 02:07:28 but should not really be easy to get to Aug 28 02:07:43 wow, you really make this super complicated Aug 28 02:07:51 is like you are trying to do it like that Aug 28 02:07:56 api key you mean web token ? Aug 28 02:08:03 login token Aug 28 02:08:24 StingRay_: if it's the google api key then it goes in the manifest, and it's linked to the key you signed your app with. Since no-one else can sign w/ that key, it should be fairly safe. Login tokens are something entirely different of course and I'm not sure which he's talking about right now Aug 28 02:08:33 http://en.wikipedia.org/wiki/Application_programming_interface_key Aug 28 02:08:52 dragorn you sure he's meaning that? seems to have switched Aug 28 02:09:15 * StingRay_ is lost Aug 28 02:09:37 StingRay_: yeah i dunno Aug 28 02:09:58 but regardless naschurmann I think if you read though those two links, specially http://developer.android.com/guide/topics/data/data-storage.html you will be able to decide Aug 28 02:10:00 come on!, you build a server, you authenticate to the server, the server returns a an api key, token [put your favourite name to the token that you use to authenticate to the server], the mobile app receives this token, the mobile app stores/persists/doSorcery with it Aug 28 02:10:19 naschurmann: if you're talking about your google API key for using maps, etc, then it goes in your manifest or in your constructor for that play service. Aug 28 02:10:35 naschurmann: if you're talking about some other service API key, it's almost definitely horrifically insecure to embed in your app Aug 28 02:10:45 naschurmann no, you are not clear and not sure anyone called a web token and api key Aug 28 02:10:52 i think i will shoot myself Aug 28 02:11:03 k Aug 28 02:11:05 web token Aug 28 02:11:05 naschurmann just read that storage link Aug 28 02:11:11 already said Aug 28 02:11:20 but i'm not asking about the posibilities :S Aug 28 02:11:26 i'm asking about the best practice Aug 28 02:11:43 what are you considering atm ? Aug 28 02:11:49 naschurmann: when no-one understands what you're asking, consider rephrasing it. Aug 28 02:12:03 web token Aug 28 02:12:08 wtf is a "web token" Aug 28 02:12:18 let me search for the specific phrase Aug 28 02:12:23 login auth token I think Aug 28 02:12:28 just from a web service Aug 28 02:12:37 jwt Aug 28 02:12:53 json web token Aug 28 02:13:00 that still makes zero sense Aug 28 02:13:09 * dragorn goes back to getting work done, sorry. Aug 28 02:13:24 http://angular-tips.com/blog/2014/05/json-web-tokens-introduction/ Aug 28 02:13:45 naschurmann so yes I know what you want Aug 28 02:13:54 ok, there is a mobile android app that you are developing, and there is a backend application Aug 28 02:14:04 this is your backend application Aug 28 02:14:06 never say api key again Aug 28 02:14:07 ;) Aug 28 02:14:17 k Aug 28 02:14:19 just use sharedPrefs or write to a temp file Aug 28 02:14:22 whatever Aug 28 02:14:28 sharedPreferences Aug 28 02:14:31 is that the best practice? Aug 28 02:14:39 it's two options Aug 28 02:14:45 ... Aug 28 02:14:50 i think i will ask somewhere else Aug 28 02:14:52 best is very subjective …it's what most would do Aug 28 02:29:43 Anyone have any experience with broadcom drivers on an android device? Aug 28 02:29:57 specifically the BCM4324? Aug 28 02:30:40 I'm seeing strange behavior with one driver and was curious if it is a known bug Aug 28 02:33:00 is that not more of a ROM building question ? Aug 28 02:34:55 yep, didn't know if there was a channel for that :) Aug 28 02:35:02 nope :) Aug 28 02:35:26 yea sorry there is Aug 28 02:35:36 /topic Aug 28 02:35:38 will be a few places you can ask Aug 28 02:35:56 CM guys channel etc Aug 28 02:36:18 agh android-root and CM channel Aug 28 02:36:21 cool Aug 28 02:36:23 thanks :) Aug 28 02:50:56 dragorn still there ? Aug 28 02:53:11 g00s: kind of Aug 28 02:54:51 dragorn quick q; concerning BLE, when the link layer checks packets with CRC, finds one malformed, and requests retransmission - does the link layer hop to the next channel in its sequence? or does it stay on the same channel? Aug 28 02:55:27 g00s: oh i don't know ;/ sorry. been a while. #ubertooth and ask mike ryan :) Aug 28 02:56:00 dragorn ah thanks, whats ubertooth :) Aug 28 02:56:11 g00s: BT/BTLE sniffer hw Aug 28 02:56:15 g00s: about $100 Aug 28 02:56:25 g00s: mike ryan wrote all the btle code for it; I think i've sent you some of his talks Aug 28 02:56:28 work with BT 4.1 also ? Aug 28 02:56:45 some security things changed Aug 28 02:56:57 dunno offhand Aug 28 02:57:11 dragorn k, thanks Aug 28 02:57:23 sorry Aug 28 02:57:34 been a while since i've had time to play w/ that stuff Aug 28 02:58:27 i just started working with it; oems said 4.3 wasn't stable enough don't bother but it should be passable on 4.4 so ... Aug 28 02:59:02 BLE on android that is, with this hw peripheral **** ENDING LOGGING AT Thu Aug 28 02:59:58 2014