**** BEGIN LOGGING AT Fri May 29 02:59:59 2015 May 29 03:00:58 I’ve modified the xml. Now there is a huge space between the first imageview and the top. Any idea why this is? http://pastebin.com/a3MsG5Ve May 29 03:01:51 Here is how it looks in the design view: http://imgur.com/wpXbsqO May 29 03:03:07 How can I get rid of the top margin above the first imageview? May 29 03:46:19 Should I start targeting API 23/Android M right away? Or does it not really matter May 29 03:46:36 it won't be stable until, probably, October or November May 29 03:46:52 then you have Android "fragmentation", uh, upgrade cycle May 29 03:47:12 so it'll probably be *years* before you can realistically depend on it, unless you control all hardware it gets deployed to May 29 03:47:23 so it's an interesting way to see 3 years into your future? May 29 03:47:43 does not matter May 29 03:49:16 haha true jonp. I'll probably try Android M on emulator soon just for fun. But with my download speed it will take all day to get May 29 03:51:02 jonp, that looks like an 'awesome' change in public api.... May 29 03:51:12 UPVOTE IT: https://code.google.com/p/android-developer-preview/issues/detail?id=2073 May 29 04:02:30 Hey guys May 29 04:02:48 trying to rotate an image with Matrix.postRotate(90) May 29 04:03:01 But its throwing off the entire image,not sure why May 29 04:03:20 Hi guys, does anyone know if Android bluetooth support EIR? May 29 04:08:21 Ok, so ImageView doesnt look Exif attributes of an Image? May 29 04:08:48 why would it? May 29 04:09:24 beside Exif is all over the place, little is standard May 29 04:09:26 Well I have an image thats rotated 90 degrees, but when I put it into an imageview it isnt rotated May 29 04:10:00 So when im putting the image into the imageview, is it ok if I just check for the orientation tag from the image Exif attribute, then set the rotation of my imageview accordingly? May 29 04:10:29 i think you're going to have to tell imageview what to do, yeah May 29 04:11:13 But the question is do I rotate the image inside the imageview or just rotate the imageview May 29 04:11:22 Furthermore, does it matter May 29 04:11:52 lol, so i wasn't the only one watching the first 10 minutes of the 2014 keynote today, thinking hmm, this looks familiar May 29 04:12:31 ?? May 29 04:14:50 There are some strings in Android that I want to use in my app. I am attempting to grab strings in all locales from DocumentsUI into my own strings.xml. What would be a good way to do this? May 29 04:15:48 Right now I put all the strings in an app and I change the locale and write to a new strings.xml for each locale. Android won't recognize some locales though May 29 04:17:36 what just happened, did my gradle build file actually work? May 29 04:18:25 what phase of the moon are we in? Maybe they are sending out electrical signals from Google I/O to get convoluted gradle builds to build May 29 04:19:00 hmm.. how can I set the region? My code is working except for locales with regions. May 29 04:21:38 drose379: you still going on about the rotation? May 29 04:21:57 Well I was gone for a while but now im back, and some would say im "going on" yeah May 29 04:22:05 Napalm, just let me ask a simple questiopn May 29 04:22:25 go for it May 29 04:22:32 I get that imageview doesnt care about an image's Exif attributes May 29 04:22:49 So, when assigning the image to imageview, i grab the files attributes and check the rotation May 29 04:23:00 I see that it should be rotated 90 degrees May 29 04:23:09 Is it ok to do imageView.setRotation(90) May 29 04:23:17 Or should I rotate the actual image inside the imageview May 29 04:24:42 Napalm do I make sense May 29 04:25:19 well it depends on what you mean by rotate the image inside the imageview May 29 04:25:39 it also varies on what you expect on non-square images May 29 04:27:50 Napalm well I could jsut do imageview.setRotation May 29 04:27:58 But cant I do imageView.getimageMatrix May 29 04:28:02 and mess with the image matrix May 29 04:28:07 and rotate it that way May 29 04:28:19 Found out how to set the region. I still can't get the string for some regions. Here is the code if anyone wants to help: http://pastebin.com/u0kryfGT (it's ugly) May 29 04:31:04 nevermind, got it working May 29 04:39:28 Hello, anyone home? May 29 04:44:04 no May 29 04:44:31 sup DadFoundMy May 29 04:44:37 Napalm so the NDK support in AS is built ontop of c lion somehow, is that a seperate IDE for those activities ? May 29 04:44:46 drose379: ayye May 29 04:44:51 how you doing? May 29 04:45:12 pretty good. published that app i was telling you about last week. the guessing one May 29 04:45:26 DadFoundMy: I played it :) May 29 04:45:48 surf2b1: you're like 1 in 5 :D May 29 04:46:02 the kid i wrote the app for isn't the best at marketing... May 29 04:46:04 haha. It's actually the only game on my phone May 29 04:46:51 he chose a name that 6 other apps on the store share. not my problem though i guess ¯\_(ツ)_/¯ May 29 04:46:51 I'm 7-16 May 29 04:47:00 whats your username? May 29 04:47:07 never created one May 29 04:47:20 make one, we can play! May 29 04:48:29 okay, it's surf2b1 May 29 04:50:14 you did DadFoundMy ? May 29 04:50:17 Can I have a link? May 29 04:52:21 drose379: https://play.google.com/store/apps/details?id=me.dylanredfield.fourdigits May 29 04:52:25 come play with us haha May 29 04:52:43 drose379: it really depends on if you want the image to rotate within the bounds of the imageview (image matrix) or for the view to rotate.. the first doesnt effect other views around it.. the second effects other views layout May 29 04:52:57 DadFoundMy: I just guessed it but it says I lost :\ May 29 04:53:08 Ok Napalm May 29 04:53:25 g00s: I believe they integrate it on the backend so its seemless to the developer on the frontend. (its built into AS) May 29 04:53:32 surf2b1: yeah in vs games its a race to see who guessed it in the least ammount of guesses May 29 04:53:49 i got lucky and got it in 7 :D May 29 04:54:18 ah, I thought you sent me the number May 29 04:55:11 right, night all May 29 04:55:16 we had that in originally but thought it would be boring for the person who set the code May 29 04:56:26 damn it's already 1am and i told myself i would go to bed early tonight :/ seeya everyone May 29 04:56:56 gnight May 29 04:58:00 CedricBeust_ i'm kinda bummed no mention of kotlin at all May 29 04:59:06 or java 8. something about either would have been great news May 29 04:59:29 java 8 was mentioned in a question May 29 04:59:55 basically it sounded like it wasn't going to happen for obvious reasons May 29 05:12:00 i wonder if it will be possible to get this android data binding thing to work with rxjava May 29 05:12:37 hi g00s, how are you? May 29 05:12:48 g00s: how was day one? May 29 05:12:50 hey squ & thepoosh May 29 05:12:57 :P May 29 05:13:17 thepoosh hm ... not too exciting. incremental improvements May 29 05:13:31 hmmmm May 29 05:13:51 RxJava is a Java VM implementation of Reactive Extensions: a library for composing asynchronous and event-based programs by using observable sequences. May 29 05:14:15 this is the way i interpret todays events http://www.buzzfeed.com/charliewarzel/googles-quest-for-complete-control-of-your-digital-life May 29 05:14:24 ^ I have to say that yesterday I've downloaded perl "logcat_format" which does async event-based logcat May 29 05:14:50 it puts response faster than android-studio builtin logcat viewer May 29 05:15:02 so? May 29 05:15:24 they must be using the same pattern May 29 05:15:33 maybe May 29 05:15:52 g00ey: predictible May 29 05:15:52 thepoosh i find so many of the use cases demonstrated onstage as frivolous. also dont care at all about google Now May 29 05:16:12 lol g00ey strikes again May 29 05:16:56 why you don't care about google? May 29 05:17:03 google NOW May 29 05:17:38 what is that? May 29 05:17:48 Siri clone? May 29 05:17:52 the IoT stuff was interesting, especially weave / Thread. that will be Q4 though May 29 05:18:26 still a bit skeptical on how anything derived from android is going to be IoT unless its plugged in :P May 29 05:25:00 it is disconcerting that some of the most thunderous applause came in reaction to a damn unified volume menu that should have been implemented in 1.0 May 29 05:26:37 If it had been implemented in 1.0, who knows what would be missing today instead May 29 05:26:44 but i am impressed by Photos. i feel like we should try to say at least one positive thing ;) May 29 05:26:58 heh true enough. May 29 05:28:12 any disadvantages to having a long package name for apk? May 29 05:29:11 none May 29 05:29:20 also, the user in me is really stoked about the "return" of App Ops, but the developer in me is not stoked to deal with it. at least it'll be easy enough to test, i suppose May 29 05:29:23 liuwenhao how long is long :P May 29 05:29:43 treelzebub its a ways off anyhow May 29 05:30:03 well sure, but we're talking about I/O, are we not? May 29 05:30:18 treelzebub and a bunch of permissions aren't under the controllable umbrella, like internet or wakelock May 29 05:30:37 google io? May 29 05:30:51 treelzebub yup; and now is the best time to watch I.O 2014 vids on material because it makes more sense :D May 29 05:31:11 you looked like random statement paster) May 29 05:31:16 bahaha it's true. May 29 05:32:08 when support library will support svg files? May 29 05:33:35 g00s: 40 characters. so not too long May 29 05:33:36 just a bit lon May 29 05:33:36 long* May 29 05:33:36 that includes the com + domain May 29 05:33:38 Soon™ May 29 05:34:09 1234567890123456789012345678901234567890 yeah thats kinda long ... May 29 05:35:30 i shortened it to 35; the problem is my domain is pretty long and there's nothing i can do about it May 29 05:42:37 Android M is API 23, correct? May 29 05:44:10 no, M May 29 05:51:14 liuwenhao: API "MNC", if you want to target it. May 29 05:51:56 ah, thanks May 29 05:53:01 not sure why people care about these silly names May 29 05:53:19 somebody saw burke's watch say milkyway and the interwebs went crazy May 29 05:53:41 it matters a great deal to the manifest ;) May 29 05:54:39 not what M stands for, but that it is MNC and not a number. but your point is well taken May 29 05:54:43 oic. its not 23 May 29 05:54:48 right May 29 05:55:04 its 22, MNC lol O.o May 29 05:56:16 for all we know, 23 could be an incremental Lolli API between now and Q3 May 29 06:01:36 woo a prime number May 29 06:02:43 i ma not able refresh my actitiy from notitifcation May 29 06:02:44 ? May 29 06:03:05 i have already set Intent.FLAG_ACTIVITY_NEW_TASK | Intent.FLAG_ACTIVITY_CLEAR_TASK May 29 06:12:56 M for Marshmallow ? May 29 06:14:09 they've decided as part of a health kick, they're going to migrate away from candy/dessert names to something more wholesome May 29 06:14:41 M is for Melon May 29 06:14:54 :) May 29 06:19:17 Leeds what was your reaction to i/o so far? May 29 06:19:21 https://github.com/addyosmani Look at this guys contribution chart. Amazing. May 29 06:19:29 s/guys/guy's May 29 06:20:02 g00s: as a user, the photo stuff is pretty cool - although it seems confused as to whether a hippo counts as a dog or not May 29 06:20:24 Leeds lol, you have a pet hippo ? :D May 29 06:20:48 no, I have a few photos of one - a cute little pygmy hippo - at London Zoo a couple of years ago May 29 06:21:16 don't tell me hippos can't be cute May 29 06:22:11 so.. who downloaded developer preview? :) May 29 06:22:13 I think the M stuff... well, with the lag getting to L, if it's in the core OS, rather than play services, so few users are going to have any of it that it barely seems to matter May 29 06:24:04 they gave devs lots of things to change last year with material, this year the permissions. May 29 06:24:07 I mean, it can be great stuff, but if 90% of users don't have access a year from now, what's the point? May 29 06:24:39 Leeds yeah, i thought Android One was supposed to do something about that last year O.o May 29 06:25:17 er, no... Android One was supposed to stop crappy-quality non-Google Android phones getting too popular in the developing world May 29 06:26:00 but i also thought that they were pretty vanilla, and helped oems using reference design get up to date stuff out quick May 29 06:26:47 i wanted one for testing but didn't really hear much about it May 29 06:26:50 they were meant to... but they don't appear to have sold that well, so they haven't shifted the stats on updates that much - and anyway, let's face it, we're mostly interested in local and/or rich-world users May 29 06:27:17 there may be 50 million Android One users, but when they're all low-income, many non-English-speaking... May 29 06:29:11 it was also meant in a similar way to early Nexus phones, I think - even if it didn't take over, it was meant to push other vendors to do better May 29 06:30:47 problem is, unless you're doing something which really relies on M - and what would that be? - you're likely to be far better off targeting L, or more likely J, for at least the next year or so May 29 06:31:57 I'm probably more interested in Cardboard :) May 29 06:32:56 yeah that feel good episode of kids going exploring for lessons was fun May 29 06:33:40 Mornin May 29 06:33:53 as I posted last night, the Simpsons predicted almost exactly that in 1993... https://www.youtube.com/watch?v=l1_bp8YKUPU May 29 06:34:33 hey Mavrik May 29 06:34:41 Do I dare update AS May 29 06:35:00 * g00s isn't falling for that one again May 29 06:35:45 Leeds hah, "Hello Lisa, I'm Genghis Kahn" May 29 06:35:56 Khan May 29 06:36:52 GEEEEEENGGGGGHHHHHIIIIISSSSSS! May 29 06:37:11 am I the only one who dont get the idea behind IoT ? May 29 06:39:23 hey guys i need some quick help May 29 06:39:52 when you have a function that isnt namespace, who is it calling? super? i have example here: https://gist.github.com/jareddlc/8272fda14983910e6374 May 29 06:40:02 i didnt write the code but trying to reverse engineer it May 29 06:40:32 g00s: are you availble? May 29 06:41:02 line 37 in the gist above May 29 06:43:31 I'm using the fused location provider in my activity to track the user (a safety app). There is a button to start and stop the location callbacks. I want it to run in the back ground when the user is in another activity or the app is in the background. It runs in the background, however, I can't seem to stop it. May 29 06:44:41 When I resume teh activity it seems like I loose the reference the old `GoogleApiClient` object and it just tells the new refernce to stop while the old one keeps running in teh background May 29 06:53:13 that android deap learning and context is pretty scary May 29 06:54:22 gordon_: for me or eggie? May 29 06:54:57 for everyone May 29 06:56:20 xD May 29 06:59:58 jareddlc: it's either a method on the current object (or possible a static method in the current class), or a method that has been statically imported May 29 07:00:16 if you don't see the method in the immediate class, then it will be defined in one of its superclasses May 29 07:00:28 JesusFreke: yeah seems like from super class thanks May 29 07:06:30 I have a question Regarding ArrayAdapter when constructor is in the form (context,resource,set_of_elemetns) , What is resource ? Do we need custom Resouce for Custom Array Adapter? May 29 07:07:35 ../app/src/main/res/values/colors.xml Error:(2) Attribute "menu" has already been defined May 29 07:07:46 With the new design library May 29 07:08:13 yoavst: you have defined menu somewhere else May 29 07:08:23 yoavst: do a project search (or use grep) May 29 07:08:29 phix: recently it has shown a library May 29 07:08:33 so I removed the library May 29 07:08:39 and now it point to the colors May 29 07:08:42 yoavst: hmmm you may need to clear your cache too May 29 07:08:58 grep is your friend May 29 07:09:16 It happens on clean project May 29 07:09:20 I'll try to remove build folder May 29 07:09:42 not helping. phix grep where? May 29 07:10:28 Oh I've found it. May 29 07:17:32 :D May 29 07:17:36 \0/ May 29 07:18:56 g00s: still here? May 29 07:43:20 ah finally debugging c++ and gradle speed improvements May 29 07:43:22 in 1.3 May 29 08:06:12 I've tried to switch to NavigationView, but unlike the example project I cannot mark an item as selected May 29 08:18:10 Bah, NDK support isn't included in 1.3 yet May 29 08:23:05 Mavrik: they cheated us ! May 29 08:33:31 Hello, anyone used AbstractProcessor for custom annotations at compile-time ? Why doesn't android studio recognize AbstractProcessor class? Do I need to include some special libs ? May 29 08:35:22 It should be under javax.annotation.processing , but I don't have the processing part May 29 08:51:19 vegetablesalad19: android isn't really java, and thus doesn't bundle everything you might expect from a java platform May 29 08:51:27 javax.annotation.processing is one of these things May 29 08:51:47 you have to add them as an external dependency May 29 09:22:46 guys, I have some Singleton object, which stores runtime data, like List of Objects which I output with ListView. May 29 09:23:15 And I use it like i.e.: DataHolder.getInstance().getProducts() May 29 09:23:42 but when my app in background, after time when I try to resume app, I've got NULL for this string ^ May 29 09:24:03 It seems like my 'DataHolder' singleton is dead/deallocated May 29 09:24:13 Why? And how to fix this? :( May 29 09:25:09 that would depend on your exact implementation May 29 09:25:12 woozly, application can get shutdown any time when its in background May 29 09:25:43 he's probably initializing the singleton in the main activity only May 29 09:25:48 Is there any events, that I can serealize my DataHolder to Prefs? May 29 09:25:51 i love databinding May 29 09:25:57 currently meessing arround with it :0 May 29 09:26:22 wakelock: You right, but how to do it in proper way? May 29 09:26:48 woozly, if you rely on that data, persist it May 29 09:26:54 to disc or onSavedInstanceState May 29 09:27:51 danijoo: thank you May 29 09:28:17 woozly, initialize it where appropriate, like in the DataHolder constructor or similar May 29 09:28:34 wakelock: thank you May 29 09:33:17 danijoo, AFAIK saved instance state is only useful when the runtime kills your app with the intent to restart it soon after, like on rotation changes. if runtime decided your app is idle and useless and ready to be cleaned out, saved state won't do you much good ;) May 29 09:34:22 wakelock, if it decides to clean your app out, you wont get NPE after that because the app is restarting May 29 09:34:42 ofc data will be lost though May 29 09:37:38 hmm I guess May 29 09:41:36 do you use layout … Start, End ? May 29 09:51:25 Can someone please have a look at this FB login class. I am not beeing redirected to MainActivity, and either the LoggedInMessage dosn't show in the terminal. http://pastebin.com/zWiDWT3v May 29 09:54:51 when i try to sign a build I get the error: "jarsigner: unable to sign jar: java.util.zip.ZipException: invalid entry compressed size (expected 32474 but got 33138 bytes)" May 29 09:54:58 I think this is due to it already being signed May 29 09:55:19 is there a android build tool to strip the META-INF folder from the apk archive without me haivng it do it manually? May 29 10:08:11 Hello I have class with methods that each uses AsyncTask, I've been using .get() on the execute, but thats a no go since the main UI thread still waits on result. How do i proceed? May 29 10:08:25 I want to get the result back to the class, and not the activty May 29 10:25:48 Hi I have main classs "public class MainActivity extends ActionBarActivity implements SearchView.OnQueryTextListener" there were function whose main purpose was to populate ListView with some data. And other expansion is expected (removing ListView items with swipe and animation...) May 29 10:25:49 I decided to to remove this method from MainActivity and created own class for it. "public class ListViewResultCareTaker extends Activity {", constructor "public ListViewResultCareTaker(Context context)" Problem is that calling this function now results in "java.lang.NullPointerException". on row "setContentView(R.layout.activity_main);" May 29 10:25:49 How would you do the separation of this functionality from MainActivity. As for beginner code is becoming more unclear and chaotic... May 29 10:45:53 I get an ArrayOutOfBoundsException when doing Object item = myAdapterView.getAdapter().getItem(myAdapterView.getSelectedItemPosition()); How is this possible if I get the selectedItemPosition from the same adapter that I am then accessing? And how can I get this to work? May 29 10:55:53 show code May 29 10:58:10 If I'm targeting API 14 and above, does it matter if I extend native Fragments or should I use the android.support.v4 Fragments? May 29 10:58:57 yes May 29 11:02:10 i have port a rom to update my tablet, after little modification its working fine, except the audio.. i can here the melody but not voice.. or in some songs/video the voice is too low.. any idea what will be the error? :/ ports? May 29 11:02:29 gotnut, wrong channel May 29 11:02:59 i know.. but no one is replying since yesterday :D so i thought to give a try here. May 29 11:03:47 you should also ask in #cars then ;) May 29 11:04:25 yeah, again, let's ask for meat at bakershop May 29 11:04:41 :/ May 29 11:04:43 gotnut, and the issue you describe since coming from the source lol May 29 11:04:51 "in some songs/video the voice is too low.." May 29 11:05:46 what will be the problem? drivers? :/ libs? May 29 11:05:50 Is there a way to return the result of an asynctask to a class (not activity) May 29 11:06:02 gotnut, no idea, you don't provide enough information anyway, not even a log May 29 11:06:30 Without using .get() :p May 29 11:06:45 xelent, http://developer.android.com/reference/android/os/AsyncTask.html May 29 11:06:52 there is nothing related to activity there May 29 11:21:13 This is the code where I get the ArrayOutOfBoundsException: http://paste.ofcode.org/EkhzRjhgn75xQ458TCzAma in line 7. How can I fix this? danijoo May 29 11:21:55 adapter code :) May 29 11:22:34 ? May 29 11:24:31 the code of your adapter May 29 11:24:37 where you defined getItem etc. May 29 11:25:26 hmm... am I wrong, or was the only keynote giveaway yesterday the new cardboard? May 29 11:25:46 They also got a Nexus 9 May 29 11:25:57 so much win May 29 11:26:58 ah May 29 11:28:44 how to test sdcard removal events in emulator? May 29 11:29:01 you cant. May 29 11:29:15 android does not make a different between sdcard and internal storage May 29 11:29:35 if theres no sdcard, you can still put stuff into /sdcard folder May 29 11:30:23 is anyone here developing on Samsung T700 upgraded to Lollipop 5.0.2 - US version. Are there any issues for developer after upgrade? May 29 11:31:43 I dont have issues on 5.0.2, but for another device May 29 11:35:41 I am scanning throuhg http://forum.xda-developers.com/galaxy-tab-s/general/t700-receives-lollipop-update-t3090577/page24 but for me it's rather oriented on people desperate to have rooted phone, new rom or nice new vis than developement. May 29 11:36:45 danijoo: thanks May 29 11:37:00 where best place in fragment to start/stop activity? May 29 11:37:00 bolovanos: what sort of issue are you expecting? May 29 11:38:02 ondroed, that makes no sense May 29 11:38:09 a fragment that stops an activity? May 29 11:38:30 no May 29 11:38:51 so if i start and stop it on resume / pause, that will be ok? May 29 11:39:05 or maybe onstart / onstop May 29 11:39:15 you dont start/stop activities May 29 11:39:18 the system does that May 29 11:40:12 :) a meant broadcastreceiver, not activiy :) May 29 11:40:31 is retrofit good library to use to authenticate & process authenticate api requests? May 29 11:42:31 i nead to start broadcast receiver that will monitor sdcard mount/unmount events. So i don't know where is best place to start / stop it May 29 11:43:36 onPause and onResume May 29 11:43:39 Leeds, I have seen somewhere (can't find it now) that some version of Rom have debugging suppressed... May 29 11:43:58 bolovanos: unlikely May 29 11:48:35 anyone ever used the localdatastore from parse on android? May 29 11:52:49 I wonder why my lint is telling me android.widget.AbsListView#setSelectionFromTop is minsdk 21 o.O May 29 11:53:53 is retrofit good library to use to authenticate & process authenticate api requests? May 29 11:53:57 anyone know? May 29 11:54:06 DarkChaoz, depends May 29 11:55:08 a friend of mine is going to create an api for me to fetch data from his forum (just thread title, author, link etc) May 29 11:55:31 since i do not know how to create authentication with api stuff i thought i'd use gson and retrofit May 29 11:56:11 i attempted to fetch data via xml but app keeps crashing despite i stored the website certificate as a keystore May 29 11:56:19 That depends on how your friend is making you authenticate. But generally, retrofit is good May 29 11:56:54 i see. May 29 11:56:54 retrofit is nice if the api is RESTFUL May 29 11:57:30 is it good to use it if its not restful.. if so? any recommendation of any other libraries? May 29 11:58:25 "Retrofit May 29 11:58:26 Type-safe REST client for Android and Java by Square, Inc." May 29 11:58:36 this should answer the first question ;) May 29 11:58:47 is it easy to make a request with retrofit? May 29 11:59:50 xpheres, yes, google it May 29 12:00:20 whats google?! May 29 12:00:31 never heard of it May 29 12:00:31 what is this heresy you speak of?! May 29 12:02:15 Darkchaoz google is a brand for wash machines May 29 12:03:53 @O May 29 12:03:56 *:O May 29 12:04:32 like samsung May 29 12:21:34 any way to do a loading 'spinner' inside a view? Meaning avoiding loading dialog. May 29 12:21:53 Everything is possible, but is there something standard? May 29 12:22:53 http://stackoverflow.com/a/23923473/4021839 yes there was :P May 29 12:52:44 hi quick question i cant show a text in my notification, ticker,content title or big text May 29 12:52:58 how can i show especially ticker ? May 29 12:53:31 http://paste.ubuntu.com/11432134/ May 29 12:57:07 I get this error after i build my first project i not sure what it means? May 29 12:57:13 Error:Execution failed for task ':app:compileDebugAidl'. May 29 12:57:13 > aidl is missing May 29 12:57:24 I hope someone can help:) May 29 12:59:26 never mind i think i found it out. May 29 13:04:22 iDuh it was the api i was useing in android studio:) May 29 13:33:59 is it possible to exclude package in gradle if its imported as *.jar ? May 29 13:34:30 vegetablesalad19, try if it supports regex May 29 13:37:46 How to separate parts of code (ListView and onClick listeners in my case) from main Activity where I use it and leave functionality. I have created separate class for this purpose, but i need to call methods (setContentView(), findViewById())). Now those methods r logically out of reach, because they should be called inside main Activity. Found http://stackoverflow.com/questions/18460055/illegalstateexception-system-services-not-available-to-activi May 29 13:37:46 ties-before-oncrea - where someone wrote "what you need is a utility class not an activity class" - is this right way to go? May 29 13:38:13 Ok i've been trying to make Custom Adapter for my Listview but something is going wrong again and again i'm getting three errors please help me fix those errors here is my code for CustomAdapter class http://paste.ubuntu.com/11432699/ and my Error Log http://paste.ubuntu.com/11432729/ Thanks May 29 13:40:04 Basic question, trying to learn to develop on android today i downloaded Android studio i tried everything to get it to compile/run a basic "hello world" apparently my processor i5 doesnt support 32 bit emulation or my OS or something ( windows 7 basic version not pro etc) is there a quicj work around like, virtual machine? May 29 13:41:54 bikola_p do you have an android phone? May 29 13:43:44 Sorry d/c May 29 13:43:54 bikola_p do you have an android phone? May 29 13:43:54 Yes i have an android phone May 29 13:43:58 then just use that May 29 13:44:18 the emulator sucks anyway May 29 13:44:41 So you recommend running it off my phone May 29 13:44:48 definitely May 29 13:44:50 excatly. May 29 13:44:56 I'm so new i don't even know how to take it across at this point May 29 13:45:09 Any references/guide you can link me to May 29 13:45:10 1 sec May 29 13:45:25 Thanks @seand May 29 13:46:19 when you click build/run, does it open a dialog? May 29 13:47:45 No only The messages that run in the bottom of the screen ie. Compiling building then error... May 29 13:48:01 "Run on"* May 29 13:49:00 okay go to Run > Edit Configurations... May 29 13:49:19 in the dialog there should be your hello world project in the sidebar, make sure it's selected May 29 13:49:26 Yes May 29 13:49:39 then in the right panel, you should see the General tab, and on that tab there's a section called Target Device May 29 13:49:47 Yes May 29 13:49:53 [Newbie Mistake][10 lines of code] I've been trying to make Custom Adapter for my Listview but something is going wrong again and again i'm getting three errors please help me fix those errors here is my code for CustomAdapter class http://paste.ubuntu.com/11432699/ and my Error Log http://paste.ubuntu.com/11432729/ Thanks May 29 13:49:55 you can either Show chooser dialog, USB device, or emulator May 29 13:50:00 select USB device May 29 13:50:03 and click OK May 29 13:50:10 then make sure your phone is plugged in and try to run May 29 13:50:12 Awesome. .. I'm excited May 29 13:50:44 Any great reads you can point me to. May 29 13:51:13 Regarding android development May 29 13:51:16 great reads about android dev? May 29 13:51:27 umm... the official docs are pretty good May 29 13:51:40 when i was getting started i found commonsware's book pretty helpful May 29 13:52:04 I'll google it, hopefully available in pdf May 29 13:52:16 he keeps it updated, so you pay a year subscription (can't remember how much) and you get a download to PDF May 29 13:52:28 and the author has office hours every week, too, so you can get help May 29 13:52:43 Wow that's pretty good May 29 13:52:53 boodllebat: you're trying to call methods like findViewById() which are only available in Activity May 29 13:53:13 Thanks seand May 29 13:53:27 sure May 29 13:53:43 boodllebat: if you create your adapter as a class inside the Activity then you'll have access to the findViewById() method May 29 13:54:11 seand: oh so ive to make customadapter a subclass ? May 29 13:54:37 boodllebat: how familiar are you with java? May 29 13:54:51 seand: just started May 29 13:55:16 boodllebat, you can also refer to this blogpost - http://www.vogella.com/tutorials/AndroidListView/article.html#tutorial_ownadapter May 29 14:00:49 boodllebat: yeah check out WantToCode's link, that's definitely what you want May 29 14:01:11 you'll need the Context object so save that in your adapter's constructor May 29 14:01:45 then getView() is going to be called for every item in your list view May 29 14:02:01 seand: where is WanttoCode's link May 29 14:02:09 boodllebat, you can also refer to this blogpost - http://www.vogella.com/tutorials/AndroidListView/article.html#tutorial_ownadapter May 29 14:02:26 seand: i'm finding customAdapter very hard to code ! :\ May 29 14:02:34 boodllebat: inside the getView() method you generally want to 1) inflate the layout for your item May 29 14:02:58 2) call rowView.findViewById() to get instances of any components like buttons, textviews, etc May 29 14:03:26 3) set your data onto the views May 29 14:03:47 boodllebat: it's probably a lot harder because you're just getting into programming May 29 14:03:56 1 sec, let me find a good guide that might help you May 29 14:04:34 anyone can tell me what "Target-1.4" means ( https://code.google.com/p/android/issues/detail?id=174557 ) May 29 14:04:39 ? May 29 14:05:26 boodllebat: try downloading the PDF from here: http://www.xaviertobin.com/ May 29 14:05:53 seand: thanks :) May 29 14:07:33 sure May 29 14:10:07 I'm trying to get the path of an image selected in the default OS image selection thing, and using ContentResolver, but the resulting columns obviously only contain details about the image like its name and stuff, but I need to get the absolute path. Does anyone have any idea how this is done? I've tried everything I could find on StackOverflow for the past hour so it's really driving me nuts. Here's the output from the cursor: May 29 14:10:07 https://bpaste.net/show/a395ed087c7f May 29 14:10:37 As you can see, IMG_20150526_041819.jpg May 29 14:10:38 is the image name, but in order for that to be useful to any app we need to know the absolute path. I'm not sure how to get this information. May 29 14:16:37 Hello, what do you suggest to long Http requests? I'm using Retrofit and asynctask. Service with bus, RoboSpice ? May 29 14:36:15 wviana: To do what? May 29 14:39:42 Is there a way to not do a full compile everytime I press on run? May 29 14:39:58 Like, most of my code usually doesn't change, and I don't want to wait 1 minute until the whole thing is compiled May 29 14:46:39 Hello, what do you suggest to long Http requests? I'm using Retrofit and asynctask. Service with bus, RoboSpice ? May 29 14:46:49 wviana: That question makes no sense. May 29 14:47:16 let me better explain. May 29 14:47:57 Normally when making long http requests. What strategies/libraries do you use ? May 29 14:48:03 If I have a Spinner that has an Adapter containing 20 elements and then set an Adapter to the Spinner that only contains 10 elements, do I need to set the selected item position manuallly? I keep getting ArrayIndexOutOfBoundsExceptions. May 29 14:48:37 Right now I'm using Retrofit with asynctask, but I think it could be better. May 29 14:49:50 wviana, what is the long part of the request, what are you doing? downloading images, downloading a 5mb textfile, what is the data being exchanged May 29 14:50:44 barq: You never have to set a spinner's position May 29 14:50:47 barq, are the adapters similiar in content, are you not able to just clear,add new items, notifydatasetchanged? May 29 14:50:49 Downloading a Json. But it's about a map, so I do this request every time the user move the camera in the map, Some times is just a few data, some times is a lot of May 29 14:51:19 wviana, so are you keeping a persistent connection, or keep shooting off new connections? May 29 14:51:43 shooting off May 29 14:52:02 canvs2321: That's what I am doing. clear(), addAll and then notifyDatasetChanged() May 29 14:52:16 wviana, can check out IntentService and get a callback May 29 14:52:35 barq, and it's crashing you? should post stacktrace and relevent code if ya can May 29 14:52:58 or do some Log.X() and see the index and size of data May 29 14:53:49 barq, do you have a custom adapter class, or using anything stock? May 29 14:53:56 canvs2321, nice, a friend suggest it too, either a bus like https://square.github.io/otto/ May 29 14:54:38 wviana, most people just shy away from the AsyncTask route, there are a few ways to go about what you are wanting though, just gotta find what you like May 29 14:55:31 barq, and just for shits and giggles, after clear() can you do a notifyDataSetChanged, then add your new elements? May 29 14:56:25 Hi all. Is the any way to provide Key->Bundle to "adb shell am start" command? Or there is some android app with GUI for that purpose? May 29 14:57:19 canvs2321: You mean change the order of calls? May 29 14:57:55 I'm using an ArrayAdapter. May 29 14:58:38 instead of clear,add,notify, do clear,notify,add,notify to see if index out of range. are you extending it or just using it stock(the arrayadapter) May 29 14:58:51 hey, does anyone know why the “WIFI_STATE_CHANGED_ACTION” intent might be taking ~10+ seconds to arrive on my broadcast receiver? May 29 14:58:53 gtg for now,be back in a few May 29 15:00:11 canvs2321: The stock Adapter, but I have a number of listeners that set the spinners and have dependencies. May 29 15:05:36 canvs2321: Changing the order doesn't do the trick. May 29 15:09:57 so what's the verdict? May 29 15:10:02 update to Android M Preview? May 29 15:12:51 canvs2321: I solved it. I did adapter.clear, adapter.addAll, adapter.notifyDatasetChanged, but did not do spinner.setAdapter. Added that last call and now I don't get the error any longer. May 29 15:12:51 oh, light/dark theme in settings! May 29 15:14:07 Before getAdapter was returning the wrong adapter, because it was not set properly. May 29 15:18:40 on googles guide it says that currently 'android auto' can only be used for messaging and audio. are there news / speculations on when we can do more? May 29 15:31:10 fancy42 did u see the key note from yesterday? May 29 15:31:33 barq, that's why it would have been best to paste code, you only set adapter once, you just update the data May 29 15:32:01 Updating the data doesn't do the trick, though. May 29 15:32:41 what's it doing now? May 29 15:33:09 You just need to post the code. May 29 15:33:49 just noticed the Data Binding library May 29 15:34:17 Now it's updating the Spinner, setting the selection to the first item and not ArrayIndexOutOfBoundsException. May 29 15:34:55 razzledazzle, did it sneak up and frighten you? May 29 15:36:30 canvs2321, performed a backflip right before it attempted :P May 29 15:37:01 This is the code: http://paste.ofcode.org/pSFT7APFJKgr9HPQX3QWQT TacticalJoke canvs2321 May 29 15:37:27 samskiter: you might have a misbehaving app. if WIFI_STATE_CHANGED_ACTION the previous broadcast receiver is timing out after 10s. You might want to try NETWORK_STATE_CHANGED_ACTION instead May 29 15:37:52 haha May 29 15:37:52 Why are you calling setAdapter again? May 29 15:38:00 its got so many sorts of expressions, is this declarative anymore? May 29 15:38:04 And `mygAdapter`. wat May 29 15:38:14 thanks Napalm you mean a 3rd party app is slowing up this process? May 29 15:38:21 samskiter: i mean that if the WIFI_STATE_CHANGED_ACTION is sent as a ordered broadcast May 29 15:38:26 hey TH May 29 15:38:28 TJ May 29 15:38:31 Hey, Napalm. May 29 15:39:51 barq, also where is that call of getActivity.runOnUiThread being called? i'd imagine in a fragment that is already on UI? plus getListOfStuff could be shot off to another thread then called back to UI May 29 15:41:16 Napalm: so WIFI_STATE_CHANGED_ACTION is sent ordered, therefore a previous app might be delaying it badly May 29 15:41:23 canvs2321: It's being called in a fragment from the onPostExecute of an asyncTask. May 29 15:42:09 barq, you don't need to call runOnUiThread() inside onPostExecute May 29 15:42:14 samskiter: see the comments on http://developer.android.com/reference/android/content/BroadcastReceiver.html#onReceive(android.content.Context, android.content.Intent) May 29 15:42:26 samskiter: "When it runs on the main thread you should never perform long-running operations in it (there is a timeout of 10 seconds that the system allows before considering the receiver to be blocked and a candidate to be killed)." May 29 15:42:37 barq, yea what razzle says May 29 15:42:53 OK, I'll get rid of that. May 29 15:43:16 getListOfStuff should be in doInBackground, unless it's just linking to data recovered from background May 29 15:43:43 but should pass as a param from doInBackground May 29 15:44:03 barq, think i've lost track, where were we on your question? May 29 15:44:34 It's solved. The ArrayOutOfboundsException disappeared when I added line 7 in http://paste.ofcode.org/pSFT7APFJKgr9HPQX3QWQT i.e. setAdapter. May 29 15:45:09 was the adapter already set though? if not no need to notifyDataSetChanged before setting the adapter May 29 15:45:13 thanks Napalm looks about right. hope it’s not my code taking so long ;) May 29 15:45:39 log it and see May 29 15:45:47 yea, am do May 29 15:45:53 barq, what is your data, an array or a list? May 29 15:46:20 canvs2321: A List May 29 15:47:27 seems we(me :) ) aren't seeing the whole idea of what you are doing. So are you having any issues now, or are you good? If still issues, should paste maybe the whole AsyncTask if you are able May 29 15:47:50 Napalm: any way of seeing who else is receiving that intent? May 29 15:47:54 The initial issue is gone, but I need to do more refactoring. May 29 15:47:59 k May 29 15:48:08 As it seems calling setAdapter again is just a workaround not a proper solution. May 29 15:48:34 yeah should only need to setAdapter once, then twerk your data and notify May 29 15:48:40 The fragment is very complex, hard to keep track of everything that is going on. May 29 15:49:00 Thanks for your help so far! May 29 15:49:28 no problem :) May 29 15:49:41 Fragments once you get the hang of how they work are awesome i think May 29 15:49:58 some haters tho :) May 29 15:53:08 I'll be back later. May 29 15:55:36 Hello I have a small question May 29 15:55:50 Anybody there? :) May 29 15:56:13 that is a small one May 29 15:56:14 yes May 29 15:56:21 That was easy to answer May 29 15:56:21 did i win? May 29 15:56:59 Well my question is if I pass a context from the old activity to start a new activity does the new activity have the exact same context? May 29 15:57:06 TyreZe, you're on Candid camera, there's a camera there, there there and there May 29 15:57:27 it has it's own Context, unless using Application probably May 29 15:57:47 SimonVT knows this one May 29 15:58:19 There's no "have the same context" May 29 15:58:34 Context is just a class May 29 15:58:37 Activity extends this class May 29 15:58:38 Because I start with MainActivity (my first) and pass it to a Non-UI/Activity class the ApplicationContext form first Acitivty but then I start from the Non-Activity class an acitivity class using the Context (not ApplicationContext) of the first acitivty MY question: do I have to refresh the ApplicationContext from the Non-Activity class now? May 29 15:58:42 So an Activity is a Context May 29 15:58:56 hi all! May 29 15:59:15 i'm having this problem with android studio, I create a new project and click Run and i get Error:(1) Error retrieving parent for item: No resource found that matches the given name 'android:TextAppearance.Material.Inverse'. May 29 15:59:29 i'm using API 17 corresponding to Jelly Bean plz help May 29 15:59:57 Material was added in API21 May 29 16:00:00 So build against that+ May 29 16:00:14 MainActivity -> Pass ApplicationContext to Non-Activity Class -> Starting a new Acitivty there and passing the Context (not ApplicationContext) of the MainActivity -> Question: Should I refresh the applicationContext of the Non-Activity class with the new Acitvity's one which I jstarted? May 29 16:00:19 ok thank you May 29 16:00:23 i will install api 21 May 29 16:00:59 I hope anybody understands my question? May 29 16:01:12 TyreZe: Your question doesn't make sense, no May 29 16:01:36 You don't pass Context instances between Activities May 29 16:01:44 but I had to May 29 16:01:45 TyreZe, you should paste code, but you can pass a context to a method/class to use while that context is relevant, once you start new activities i'd shelf that context May 29 16:01:50 using new Intent May 29 16:02:05 SimonVT: oh and one more question, how do import the android stock launcher source code into android studio May 29 16:02:26 (i wanna compile and use it instead of the touchwiz one) May 29 16:02:34 Intent i = new Intent(LoginActivity.getContext() [returns this of the activity], GameActivity.class); May 29 16:03:02 GameActivity should have no reference to LoginActivity context May 29 16:03:08 if that is what you are asking May 29 16:03:30 I have a question now since I start a new activity in a non-activity class should I update the context of the non-acitvity class with the one from the new acitiy (GameActivity) May 29 16:03:36 That constructor just uses the Context to create the Intent.. GameActivity has no reference to LoginActivity May 29 16:03:44 TyreZe, why? May 29 16:03:45 ok I see May 29 16:04:02 i'm building a tetris game! May 29 16:04:03 to start another activity? May 29 16:04:18 tetris game into the launcher? May 29 16:04:32 so it creates a new Intent with a new context so I should update the context of the non-acitivty class with the new context May 29 16:04:50 because the non-acitvity class is the networkhandler May 29 16:04:52 TyreZe, you keep leaving me with why, what does this class do? May 29 16:04:56 canvs2321: no that's separate :D May 29 16:05:07 class ClientThread implements Runnable { May 29 16:05:07 who would use such a thing!!?? :D May 29 16:05:11 TyreZe, you'd create the class in GameActivity and pass it the context of GameActivity May 29 16:05:15 its a thread to manage network May 29 16:05:22 use a service if persistent May 29 16:05:35 A Runnable is not a Thread May 29 16:05:44 Should rename it to avoid confusion May 29 16:05:46 canvs May 29 16:05:51 I created th eclass already in LoginActivity May 29 16:06:15 you need a new one, or start a service and create it there, and bind or some other options May 29 16:06:18 ClientGame game = new ClientGame(getAppContext()); game.start(); May 29 16:06:33 public void start() { thread = new Thread(new ClientGame.ClientThread()); thread.start(); } May 29 16:06:37 Too much theoretical, use pastebin May 29 16:06:47 but you are most likely wanting a service May 29 16:06:49 SimonVT: it worked wahoo! May 29 16:07:19 I need to start a new activity in the non-activity class (but I started the non-activity class by passing the context of the first activity) May 29 16:07:25 you can start a service, and have it use it's context, and have activities bind, or get events etc... May 29 16:07:40 question is should I update the context of the non-activity class after I started the new activity? May 29 16:07:53 my head hurts, mostly from sunburn tho :) May 29 16:07:59 XD May 29 16:08:17 If you're using the application context, no May 29 16:08:27 but i want tetroid full screen at all times May 29 16:08:28 If you're not using the application context, you should use the application context May 29 16:08:33 yes Im using the application Context May 29 16:08:42 Check out Services, can almost guarentee you'll be glad you did May 29 16:08:47 so I don't need to refres hit after I started a new activity? May 29 16:09:03 *refresh it May 29 16:09:10 No, the application context is a singleton May 29 16:09:36 so if I start a new activity doesnt it have a new applicationcontext? May 29 16:09:44 No May 29 16:09:47 then I would need to give the non-activity the new applicationcontext? May 29 16:09:50 I see May 29 16:10:17 thank you for clarification May 29 16:10:32 I will check out services now May 29 16:15:21 hi May 29 16:15:46 someone know why underline in html/textview not works for me? May 29 16:15:53 By clicking \"sign up\" you accept out terms of use. May 29 16:19:57 ? May 29 16:19:57 First Google result: http://stackoverflow.com/questions/13425002/android-html-in-strings-xml May 29 16:20:00 AlmogBaku, how is it not working? and what version of android are you trying with? May 29 16:20:01 Is there a way to not do a full compile everytime I press on run? May 29 16:20:03 Like, most of my code usually doesn't change, and I don't want to wait 1 minute until the whole thing is compiled May 29 16:20:15 yeha I did that cancas2321 May 29 16:20:25 AlmogBaku: see UnderlineSpan May 29 16:20:35 why? May 29 16:20:39 Syzygy: The scary part is that I'm not sure it's actually compiling anything. May 29 16:20:42 why I need to re-render it by code? May 29 16:20:47 AlmogBaku: I pasted the first Google result, which answers your question. May 29 16:20:49 Syzygy: It doesn't do a full compile tho May 29 16:21:03 Some parts of the process are just slow.. Cross your fingers they improve that eventually May 29 16:21:04 AlmogBaku: try this: Your Underlined Text]]> May 29 16:21:06 why so many ppl never search before asking? May 29 16:21:11 oops @TacticalJoke, I meant that what what i did May 29 16:21:19 bpe, did you search for that? May 29 16:21:22 (i did search for the answer before asking this werid May 29 16:21:23 I take up to 1 1/2 minutes for a single build... May 29 16:21:24 why using CDATA.. its twisted May 29 16:21:26 ahah i pressed enter May 29 16:21:29 :) May 29 16:21:35 just to show you, you ninjaed me ; May 29 16:21:37 and right now I'm trying to change a single value. May 29 16:21:42 I think you can use < and > otherwise. May 29 16:21:45 AlmogBaku: because it parses HTML tags. May 29 16:21:53 I should be able to use it without re-rendering the html in code May 29 16:22:06 the cdata protecting the code from html May 29 16:22:12 then i re-parsing it.. it twisted May 29 16:22:36 AlmogBaku: then don't take my advice :) it's a perfectly acceptable solution, though May 29 16:22:44 well, I was assuming that you have been using TextView.setText(Html.fromHtml(..)) May 29 16:23:00 anyone watching the ATAP talk? May 29 16:23:28 if you weren't then you should imagine an insult from me of your choice May 29 16:23:42 make it medium severity, for not googling first May 29 16:23:55 Afzal, it looks pretty neat May 29 16:24:08 canvs2321 do you know what that visualization for machine learning was from? May 29 16:24:35 no, i just jumped into it like 5mins ago May 29 16:24:59 i keep jumping between chat and the browser, so i'm missing some visuals May 29 16:25:37 samskiter: you can ask the package manager http://developer.android.com/reference/android/content/pm/PackageManager.html#queryBroadcastReceivers(android.content.Intent, int) May 29 16:25:43 and its not working with fromHTML eighter May 29 16:25:50 mTos.setText(Html.fromHtml((String) mTos.getText())); May 29 16:25:55 AlmogBaku: mTextView.setPaintFlags(mTextView.getPaintFlags() | Paint.UNDERLINE_TEXT_FLAG); May 29 16:25:58 AlmogBaku: add that May 29 16:26:17 it will add underline for the whole view May 29 16:26:46 AlmogBaku: show me your code May 29 16:27:02 By clicking \"sign up\" you accept our terms of use. May 29 16:27:08 and a simple ViewText May 29 16:27:28 or with the weird CDATA and fromHTML May 29 16:27:43 AlmogBaku: try logging mTos.getText() May 29 16:28:14 hmm May 29 16:28:22 AlmogBaku, shouldn't that text be clickable anyway? May 29 16:28:45 yes, why? May 29 16:29:00 AlmogBaku: links are underlined May 29 16:29:00 well, you'll have to make a span anyway May 29 16:29:18 AlmogBaku, so load the plain text, add UnderlineSpan and ClickableSpan to that range May 29 16:29:28 no, i dont want May 29 16:29:38 i want only underlining part of the text May 29 16:30:42 05-29 19:30:27.989 10557-10557/net.rimoto.android D/zz﹕ By clicking "sign up" you accept our terms of use. May 29 16:30:51 Hi, I am triying to add an icon to a pagertabstrip, I tried with SpannableStringBuilder but it doesn´t looks perfect with the string. Is there any other better way? Thanks! May 29 16:30:52 after the fromHTML May 29 16:30:57 05-29 19:30:27.993 10557-10557/net.rimoto.android D/zz﹕ By clicking "sign up" you accept our terms of use. May 29 16:31:27 AlmogBaku: getText omits your html tags May 29 16:31:33 AlmogBaku: use getString instead May 29 16:31:35 Hello my app code compiles succesfully but it breaks on my device "unfortunatley app has stopped working" as soon as i open it May 29 16:31:47 logcat boodllebat May 29 16:32:15 there is no getString May 29 16:32:47 AlmogBaku: .. getResources().getString(...) May 29 16:32:52 AlmogBaku: and escape your html tags May 29 16:33:29 make that "<u>terms of use</u>" May 29 16:34:29 bpe: i'm new i dont know how to logcat an app , do i have to set break points ? May 29 16:34:29 AlmogBaku: http://developer.android.com/guide/topics/resources/string-resource.html#StylingWithHTML May 29 16:34:52 AlmogBaku: that's as far as I am willing to help you, you didn't even bother to google anything May 29 16:34:55 boodllebat, no, you need to read the device log where exceptions appear May 29 16:35:02 boodllebat, in AS that's the "Android" or "Debug" tab May 29 16:35:05 thats what i did nb-ben ! May 29 16:35:08 also adb logcat in console. May 29 16:35:10 but its not works! May 29 16:35:34 AlmogBaku: try Html.fromHtml("hi") May 29 16:35:34 Mavrik: so i dont have to set log messages in between my application ? May 29 16:35:35 and of course i googled it before approaching you guys May 29 16:35:45 nb-ben just trying it :) May 29 16:35:47 AlmogBaku: I am sure that you are failing at getting the string May 29 16:35:56 anddd.... its not works eighter May 29 16:35:58 AlmogBaku: and these things are well discussed in this document May 29 16:36:16 AlmogBaku: you have to use getResources().getText() not .getString() May 29 16:36:16 so when do we get the interactive textiles that they’re talking about in the ATAP talk? May 29 16:36:28 Mavrik: i have adb i know how to use adb but i dont know any thing about logcat will that logcat will work simultaneously with my device in action ? May 29 16:36:38 AlmogBaku: textView.setText(Html.fromHtml("hi")); failed? May 29 16:36:46 mTos.setText(Html.fromHtml("zzzzz bold aaa underline")); May 29 16:36:49 failed May 29 16:37:37 AlmogBaku: can you put your code in a pastebin May 29 16:37:59 AlmogBaku: instead of revealing what you select to reveal May 29 16:38:56 how can I pull a file under /data ? in adb shell, then su to root, i can not use pull command. if I use adb pull /path/ directly, it will not allow me to pull files under /data which is only accessible by root. thanks. May 29 16:39:17 I have an idea May 29 16:39:23 maybe its because the textColor? May 29 16:39:24 sgo11, you use adb pull outside of shell May 29 16:39:37 or maybe nor May 29 16:39:47 its something with my TextView xml May 29 16:39:54 canvs2321, I said that already. I did. but that path is only accessible by root. I can not do that. May 29 16:40:36 http://pastebin.com/51Z20iBF May 29 16:40:47 canvs2321, it shows me error: "remote object does not exist". May 29 16:40:58 sgo11: use the run-as command May 29 16:41:30 Napalm, within adb-shell? how to use that command? May 29 16:41:38 AlmogBaku: remove android:textAllCaps="true" May 29 16:41:53 tried already to remove it.. lets try again May 29 16:42:35 sgo11, if you are getting data from your app and your app is debuggable, as Napalm says use run-as to run as your package and copy your data May 29 16:42:35 lol, that was the caps indeed May 29 16:42:46 ;) May 29 16:42:51 how can i report a bug to google? May 29 16:42:52 canvs2321, I am just getting a file. May 29 16:43:02 AlmogBaku: b.android.com ... but its not a buig May 29 16:43:12 why its not a bug? May 29 16:43:24 sgo11, from your apps data folder? or someone elses apps data folder? May 29 16:43:28 capitalizing the text shouldn't disable html May 29 16:43:58 AlmogBaku: i believe the documentation states it does May 29 16:44:06 but it uses a text transformer May 29 16:44:10 because May 29 16:44:11 Mavrik: here is my logcat from the app start point upto point where it crashes it is quite difficult for me to understand can you give me a hint http://paste.ubuntu.com/11435656/ May 29 16:44:40 boodllebat: your missing the first line of he stack trace May 29 16:44:43 canvs2321, I don't really know. sorry. I am not a true android developer. I am just a linux user. I just want to get a file. that file is under /data/data/abc/abc/abc.abc something like this. May 29 16:45:40 why can't I just cp? I think this is just a simple job like ls. but it's not. why making this so hard? weird. May 29 16:45:48 boodllebat, Feedly.java line 106 seems like a point of interest, but as Napalm says, you omitted the top line that shows the Exception May 29 16:45:56 sgo11, permissions May 29 16:46:25 canvs2321, I have permissions. otherwise, I won't be able to cd and ls. May 29 16:46:56 do you have read permission on that file? May 29 16:47:25 Napalm: ok is it good now , i pasted from exception point ? http://paste.ubuntu.com/11435673/ May 29 16:47:39 canvs2321, yes. I am root right now. May 29 16:47:48 boodllebat: it says there "ava.lang.NullPointerException: Attempt to invoke virtual method 'void android.widget.TextView.setText(java.lang.CharSequence)' on a null object reference" May 29 16:48:00 what is the error you are getting when using cp? May 29 16:48:04 boodllebat: in other words the TextView you reference on line 106 of Feedly.java is null May 29 16:48:13 http://code.google.com/p/android/issues/detail?id=175095&thanks=175095&ts=1432918087 :) :) May 29 16:48:35 thanks guys May 29 16:48:43 AlmogBaku: its not HTML ... its CharSequence with Spannables May 29 16:48:51 Napalm: it means false address ? there is no TextView there ? May 29 16:49:06 i dont understand?... May 29 16:49:25 AlmogBaku: you say HTML in your bug report.. when its not HTML May 29 16:49:35 fromHtml returns a CharSequence with Spannables May 29 16:49:48 what is spannables? May 29 16:49:51 boodllebat: normally its because your findViewById was called with an incorrect id .. one thats not in the layout May 29 16:49:53 boodllebat, it means you didn't findViewById for your textView in your convertView and get a good reference May 29 16:50:12 Napalm: can i show you my code its is very small May 29 16:50:26 AlmogBaku: http://developer.android.com/reference/android/text/style/package-summary.html May 29 16:50:31 boodllebat: if you want May 29 16:50:40 haaaa May 29 16:50:45 its like html's span May 29 16:50:46 cool May 29 16:50:48 thanks May 29 16:51:17 actually i have this feeling that the hybrid apps are going to win in the war.. May 29 16:51:31 css, html are much simpler engines May 29 16:51:45 and much powerful May 29 16:52:10 I think it's really a simple job. can anyone tell me what to do? I can do it if I install a root file explorer in my phone. but I don't want to install a new app. thanks. it must doable. otherwise root explorer app won't be able to do it. May 29 16:52:50 Napalm: main java file [http://paste.ubuntu.com/11432699/] rowlayout.xml[http://paste.ubuntu.com/11435477/] main.xml[http://paste.ubuntu.com/11435731/] May 29 16:53:01 sgo11: why don't you move these files to a public folder like the downloads folder May 29 16:54:00 nb-ben, how to do that in adb-shell? May 29 16:54:09 sgo11: same way you'd do it in Linux May 29 16:54:13 sgo11: mv I think May 29 16:54:43 nb-ben, I tried cp. it responses "sh: cp: not found". I won't use mv, because that will break my app. May 29 16:55:05 sgo11: you should have cp May 29 16:55:22 nb-ben, I don't have it. why? May 29 16:55:46 sgo11: what does 'which cp' spit out? May 29 16:55:47 sgo11: then cat src > dst May 29 16:56:00 do sandbox talks get posted eventually? May 29 16:56:03 treelzebub, sh: which: not found May 29 16:56:05 i wanted to se the android architecture one May 29 16:57:00 sgo11: sounds like your adb is not in your PATH env var May 29 16:57:15 nb-ben, cat works. May 29 16:57:19 sgo11: great May 29 16:57:30 sgo11: cat to sdcard somewhehre, then pull it May 29 16:57:42 sgo11: likely to be the best spot May 29 16:57:44 treelzebub, I does add adb directory to my PATH May 29 16:58:15 nb-ben, yeah. it works finally. thank you very much. May 29 16:58:22 Napalm:did you saw my files ? May 29 16:58:28 hmm. well i would definitely recommend troubleshooting your adb-shell issues before going any further. May 29 17:00:10 treelzebub, I will do that later. now, cat solves the problem. cheers. May 29 17:00:16 boodllebat: look at your getView method of your CustomAdapter May 29 17:00:29 Napalm: is there fault ? May 29 17:01:11 boodllebat: see the findViewById should be arg1.findViewById.. and also both R.id.textview1 and R.id.textview2 should exist in rowlayout May 29 17:01:38 boodllebat: you have @+id/tvResult in rowlayout instead of @+id/textview1 May 29 17:03:09 Napalm: no i modified my xml it looks like this now rowlayout[http://paste.ubuntu.com/11435936/] also logs belogs to this new rowlayout that xml file was sent to you by mistake May 29 17:03:41 Napalm: there was only one textview there with id tvResult May 29 17:04:51 Napalm: and main java like this [http://paste.ubuntu.com/11435963/] May 29 17:05:13 Napalm: two above are the right code i have done slight modifications May 29 17:05:39 how's the annotation to call super on studio 1.3? May 29 17:05:49 boodllebat: again your findViewById should be convertView.findViewById May 29 17:06:31 Napalm: (TextView)convertView.findViewById like this ? May 29 17:06:38 yes May 29 17:07:10 Napalm: ok recompiling May 29 17:08:15 Napalm: you fixed it :) works now Thanks a lot May 29 17:08:20 this damn studio 1.3 isnt working. keep saying i didn't call the super May 29 17:08:22 Napalm: :D thanks man May 29 17:08:34 cliffreich: its probably correct May 29 17:08:34 lol May 29 17:08:57 Napalm: but why convertView there ? May 29 17:09:01 no because i'm checking my app that's already published :P May 29 17:09:18 boodllebat: because thats the row layout and that has your text view in it May 29 17:09:37 cliffreich: why does that make a difference? May 29 17:09:50 also I'm calling the super... I saw about @CallSuper on the vids yesterday but isn't working May 29 17:10:06 Napalm: oh but in every tutorial there was no convertView there May 29 17:10:13 @CallSuper means the method HAS to call the super method May 29 17:10:21 boodllebat: incorrect May 29 17:10:24 well, there is a super.onCreate(savedInstanceState); May 29 17:10:28 boodllebat: show us May 29 17:10:37 as easy as onCreate, nothing complex May 29 17:10:56 cliffreich: interesting. probably a bug then. May 29 17:11:01 keeps displaying a red warning May 29 17:11:05 yup May 29 17:11:44 boodllebat, that findViewById() belongs to the Activity, try implementing that Adapter in a different source file, you'll know. May 29 17:12:08 Napalm: oh it was always there in every tutorial i missed it every time i dont know why maybe i thought i am doing it right :\ May 29 17:12:16 Napalm: my bad tutorials are right May 29 17:13:03 razzledazzle: yeah earlier i was having CustomAdapter in different file and it did'nt worked there May 29 17:13:25 any one here know easy tutorial to make a kernel a31s? May 29 17:13:38 razzledazzle: so guys here told me that you have make Custom Adapter subclass of activity class May 29 17:16:19 boodllebat: LayoutInflater inflater = (LayoutInflater) Feedly.this.getSystemService(Context.LAYOUT_INFLATER_SERVICE); might be the reason, you could pass a context just for that and replace with LayoutInflater.from(context).inflate(); May 29 17:17:17 btw, you're not subclassing Activity, CustomAdapter is an inner class. May 29 17:17:32 burntcookie90 they haven't been posted in the past May 29 17:17:55 yeah i wanted to see that one too. the pickings are kinda slim this year, like they don't know what to talk about (android) May 29 17:17:58 razzledazzle: oh i'm very new to java i dont know terminology that well :3 May 29 17:19:00 okay May 29 17:22:28 omg they are finally talking about ARA. i got goosebumps. May 29 17:24:01 that “latest android version” looks awfully like Jelly Bean :P May 29 17:25:36 aaaand they're done talking about it. May 29 17:26:11 I wouldn’t be surprised if that’s all that works May 29 17:26:12 g00s: dammit, there are two good ones May 29 17:26:29 the data binding library is worth it just to get rid of findviewbyid May 29 17:27:20 i watched whats new in android, whats new in tool yesterday ... May 29 17:27:26 after that there isn't much live May 29 17:28:09 there was the “Lets shoot plushies out of a T-Shirt cannon cranked up as high as it’ll go” talk, where they mentioned Google Play Services May 29 17:28:47 i thought Brillo was very interesting, but its just an announcement its coming - no talks about it May 29 17:28:54 this I/O was pretty weak May 29 17:29:15 they don’t have much to talk about May 29 17:29:32 data binding library? how does that work? agree the findviewbyid mechanism sucks May 29 17:29:33 g00s: my thoughts exactly May 29 17:29:44 Being here is even worse. So many devs and all of these sessions are made to hold 30 people max. May 29 17:29:51 i wish Colt McAnlis’ talk was being streamed May 29 17:30:11 i also wish the talks on testing were being streamed May 29 17:30:17 what free stuff did they hand out at this morning's keynote? May 29 17:30:29 g00s, and they're all about the same May 29 17:30:33 i think people got N9s ? May 29 17:30:41 pfn: Everyone got n9s. May 29 17:30:41 Nexus 9, yes May 29 17:30:42 that's it? May 29 17:30:49 Cardboard v2? May 29 17:30:57 cardboard is $2 May 29 17:31:00 so yeah, that's it? :p May 29 17:31:08 no new tablet? May 29 17:31:14 guess ill buy a n9 May 29 17:31:22 I’m ok with the swag being toned down. It means fewer people trying to get in for swag that they can sell for more than the ticket May 29 17:31:23 yeah, I need to buy an N9 May 29 17:31:31 I'm jst really pissed I missed out the launch 50% off deal htc had May 29 17:31:37 me too May 29 17:31:45 but they had build quality issues then May 29 17:31:51 light bleeding.. May 29 17:31:55 I could care less about giveaways. But, give me a way to actually watch these sessions. Every session on testing was made for 30 people and there's 100 trying to watch it. May 29 17:32:01 so maybe it was a dodged bullet May 29 17:32:12 If I paid for this out of pocket I'd be pissed. May 29 17:34:05 probably better to just watch it remotely like i do May 29 17:34:07 anyone using 1.3? May 29 17:34:39 Meowser, that's not a problem for 50% off May 29 17:35:37 smartlock for passwords just made keepshare even more niche for me :( May 29 17:36:22 JakeWharton: the way this data binding stuff is working in AS 1.3 makes me think dagger should be able to have incremental builds now May 29 17:37:02 Hey. Is there a good to way to make a Retrofit Observer begin it's request but not actually use the result of the observable until it is needed? May 29 17:37:34 i.e. Activity starts, pre-loads data, a user clicks a button, if the data is loaded, use that data, otherwise show a ProgressBar? May 29 17:38:07 I'm hoping there is some kind of clever solution that wouldn't require a Subject to mediate May 29 17:39:23 finally no more inject view https://developer.android.com/tools/data-binding/guide.html May 29 17:40:05 databinding is kinda nice, dunno, haven't decided yet May 29 17:41:03 i wonder if the databinding stuff can work with rxjava May 29 17:41:11 it's orthogonal May 29 17:41:12 it definitely can May 29 17:41:21 neither negates the other May 29 17:41:32 you could use it just to remove findviewById May 29 17:41:48 the way i was doing mvvm with rx was the vm exposed properties with behaviorsubjects May 29 17:41:53 or you could set a viewmodel/presenter on the binding and have it parse as necessary May 29 17:41:58 hmm May 29 17:42:25 but yea looks nice :) May 29 17:43:45 onLayout is called after onMeasure, right? May 29 17:44:04 s73v3r: yes May 29 17:44:35 s73v3r: just to clarify its called after all views process onMeasure.. then all views process onLayout May 29 17:45:09 can I change the size of a child view in onLayout? May 29 17:45:25 if you want.. but it doesnt mean it will be displayed correctly May 29 17:45:50 s73v3r: it should May 29 17:46:01 ok May 29 17:46:18 s73v3r: onMeasure is for a view to say how big it wants to be.. and onLayout is how it gets told how big it is May 29 17:46:32 s73v3r: but not everyone gets this :( so quite a few bad custom views May 29 17:47:12 ok. I have an imageview that I want to take up the rest of the space of the screen in certain situations May 29 17:47:31 currently it’s drawing itself kinda small given the image it’s receiving May 29 17:48:03 s73v3r: that could just be the scaleType you have set on the Imageview May 29 17:48:37 I’ve tried fiddling with that, but the issue is that the imageview itself isn’t taking up the rest of the space like I want May 29 17:49:13 so i can set the scaleType to center, but that doesn’t change the size of the imageview, so it doesn’t really change much May 29 17:51:01 hey May 29 17:55:03 oooo May 29 17:55:05 g00s May 29 17:55:19 Context now has T getSystemService (Class serviceClass) May 29 17:55:37 Napalm :) May 29 17:55:58 no more sticky broadcasts May 29 17:56:00 gone forever May 29 17:56:33 Is there a kotlin developer here? May 29 17:57:11 yoavst: plenty in #kotlin May 29 17:57:31 Napalm i'll go through the changelogs a year or two from now :D May 29 17:57:33 so they are probably sleeping then ;) May 29 17:57:40 g00s: lol May 29 17:57:47 Napalm is that from api 23? May 29 17:57:55 yes May 29 17:57:59 you can go look at the diff May 29 17:58:06 :O May 29 17:58:27 http://developer.android.com/preview/download.html#docs May 29 17:59:18 theres these new classes FragmentController, FragmentContainer, and FragmentHostCallback May 29 17:59:36 more Fragment crazyness May 29 17:59:54 I saw that there is new thing of floating label textview May 29 18:00:11 yup May 29 18:00:54 yoavst: http://developer.android.com/reference/android/support/design/widget/TextInputLayout.html May 29 18:05:09 hi May 29 18:05:20 I try to create an edittext dynamically May 29 18:05:22 http://pastebin.com/7h9uCt6J May 29 18:05:30 however it doesn't show? May 29 18:07:41 Napalm i have minSdk=16 still, and pretty much just use 16 apis except for BLE May 29 18:08:19 dont have the energy to go above least common denominator May 29 18:08:34 i'll use whatever they give me in appcompat / support May 29 18:09:41 anyone can help me? May 29 18:10:18 although i'll make changes for the permission stuff, thats is necessary and good May 29 18:10:33 and doesn't sound too hard to do the right thing May 29 18:12:49 anyone who can help me? May 29 18:12:58 http://pastebin.com/7h9uCt6J it doesn't show? May 29 18:13:35 TyreZe what are you trying to do May 29 18:13:43 TyreZe you didn't create a layoutparams May 29 18:13:56 without width / height, yo uaren't going anywhere May 29 18:14:03 googe it May 29 18:14:30 drose dynamically adding edittext May 29 18:14:33 and ok g00s i will look May 29 18:14:45 let us know if you are still stuck TyreZe May 29 18:14:47 editTextName.setLayoutParams(params); May 29 18:14:51 but I do that? May 29 18:15:03 nm May 29 18:15:11 You need width and height too May 29 18:15:16 g00s im having the weirdest issue] May 29 18:15:21 LinearLayout.LayoutParams params = new LinearLayout.LayoutParams( LinearLayout.LayoutParams.WRAP_CONTENT, LinearLayout.LayoutParams.WRAP_CONTENT ); May 29 18:15:31 You could try that yeah May 29 18:15:42 I did that May 29 18:15:44 still doesnt show May 29 18:15:51 Or ViewGroup.LayoutParams params = editText.getLayoutParams() May 29 18:15:59 Then params.width = whatever May 29 18:16:03 and params.height = whatever May 29 18:16:10 then edittext.setLayoutParams(params) May 29 18:16:20 let me put the new code to pastebin May 29 18:16:31 hello May 29 18:16:51 http://pastebin.com/PW3Kn8D4 May 29 18:17:27 it works for TextView but why not EditText? May 29 18:18:31 you say params.width and height misses? May 29 18:18:58 Tyreze: May 29 18:19:06 Yes? May 29 18:19:19 try editTextName.getLayoutParams() May 29 18:19:30 It should return you with ViewGroup.LayoutParams May 29 18:20:25 jitpack seems to return wrong aar May 29 18:20:26 where should I use it? May 29 18:20:37 after you create the new EditText May 29 18:21:13 can you make an example and put it on pastebin? May 29 18:22:25 btw I use the params object on textView and editText but I change the params everytime I set them for an ui element May 29 18:22:26 Just do ViewGroup.LayoutParams = editTextName.getLayoutParams() May 29 18:23:05 For android do i need to make a home pages of my own or do we use developer home page? May 29 18:23:26 drose379 it says expression expected May 29 18:23:58 What did you type trreze May 29 18:24:07 oh May 29 18:24:11 You need to name it params May 29 18:24:30 did developer home page announced yesterday come to Play yet ? May 29 18:24:47 g00s, i think so but not sure. May 29 18:24:55 errm May 29 18:25:30 when I name it params it can't resolve leftMargin or topMargib May 29 18:25:31 g00s,That same as a home pages developer page? May 29 18:25:45 I used that to set the coordinates of the element in pixel May 29 18:25:54 perlsyntax dunno, haven't seen either :P May 29 18:26:03 whatevert hey announced yesterday May 29 18:26:34 i thought i seen it in the google play constol. May 29 18:26:46 oh there it is May 29 18:27:11 yes May 29 18:27:23 i thought i see it in there on wed. May 29 18:27:38 drose379 May 29 18:28:01 Yeah IDK Tyreze I dont know if I get what your trying to do May 29 18:28:08 Why not set the margns in xml May 29 18:28:17 I set the margins dynamically May 29 18:28:22 by getting the screensize May 29 18:28:29 g00s: yea, i'm with you.. its great them changing the API and adding these things.. but unless we can use it on older versions of the platform right this minute its kinda useless.. its not going to be for another year or two that its actually relevant. May 29 18:28:35 so its the position is the same for all screens May 29 18:28:50 Oh ok May 29 18:28:54 g00s,Would be good idea to make a web site or should i wait? May 29 18:29:03 int width = metrics.widthPixels; int height = metrics.heightPixels; float density = metrics.density; May 29 18:29:12 DisplayMetrics metrics = new DisplayMetrics(); getWindowManager().getDefaultDisplay().getMetrics(metrics); May 29 18:29:29 http://pastebin.com/PW3Kn8D4 May 29 18:29:38 it doesn't work for EditText thoguh but for textView May 29 18:29:47 I use same params object for both elements May 29 18:30:03 Why do you need the edittext May 29 18:30:14 It looks like your trying to use it to display text May 29 18:30:15 Napalm yeah - and then so much time passes (1-2 years?) i forgot what even happened May 29 18:30:17 I will make a dialog May 29 18:30:30 I want to make a dialog where he puts in a text to send it to my server May 29 18:31:13 Im not so good with layout stuff May 29 18:31:18 Gonna have to keep googling May 29 18:31:21 Or ask someone here May 29 18:31:29 hmm OK May 29 18:38:40 ok May 29 18:43:54 lol matias duarte telling people to lose their shit because we can support froyo now May 29 18:44:04 psh, #NotWorthIt May 29 18:45:59 Afzal not sure if duarte is on the same planet i am May 29 18:47:28 at least, he does not spent too much time posting animated gif on g+ May 29 18:47:42 adq yup, play store is crashing a lot these days May 29 18:47:50 kirill needs to get his shit together May 29 18:47:54 lol May 29 18:48:52 #totesworthit I support gingerbread, all the fancy stuff is typically unusable :| May 29 18:49:13 groxx depends on your user base May 29 18:49:20 why do you still support gingerbread? May 29 18:49:23 kirill wrote some nice code, like the deceleration in a typical scroll iirc May 29 18:49:30 People who are still on gingerbread probably wouldn't pay for your app or care about apps May 29 18:49:32 because we still have like 8% on it May 29 18:49:38 so despite he posts a lot of gif, i think he proved himself :p May 29 18:49:49 adq maybe he needs to write some more tests May 29 18:50:01 so it doesn't crash! May 29 18:51:20 huh https://developer.nvidia.com/AndroidWorks May 29 18:51:37 "Setting up an Android development environment can be a complex and frustrating experience" May 29 18:51:38 lol May 29 18:51:51 it's worst after you pass that point, but shhhh May 29 18:52:43 "The Mystery of why swiss cheese has holes has finally been solved" ... its made of Android May 29 18:52:50 man this news is everywhere May 29 18:52:53 since two days May 29 18:53:42 adq the swiss cheese news ? May 29 18:53:44 yes May 29 18:53:47 lol May 29 18:53:47 surprised it took 2015 to solve this mystery (hay particules in the milk) May 29 18:54:03 if you guys hate the android platform so much, why do you develop for it? maybe it's time to find something you actually like. i think there's plenty in the platform and this year's IO that is worthwhile and even amazing. y'all's a buncha negative nancies :D May 29 18:54:16 typical masochist treelzebub May 29 18:54:24 lol May 29 18:54:30 nope. happy coder. May 29 18:54:33 adq yeah, i see Android kinda like JEE May 29 18:54:33 not you May 29 18:54:35 lol May 29 18:54:49 I generally like the android platform May 29 18:55:00 I don't understand why g00s hates on it so much, and uses it and develops for it May 29 18:55:10 maybe if you were paid to be miserable, I'd understand May 29 18:55:12 is that the case? May 29 18:55:22 treelzebub, because after year, you know more and more details, you experienced more and more issue (and solved them too), and your expectation is raising exponentially May 29 18:55:27 because you're not new anymore to the platform May 29 18:55:31 it has the most marketshare, so whether you like it or not it needs attention May 29 18:55:40 after yearssssss* May 29 18:55:52 that has not been my experience. i'm sorry you became jaded after one year. harden up, son ;) May 29 18:55:58 * pfn has been developing for android since droid1, still happy as the first day developing for it May 29 18:56:30 treelzebub, it's probably also because many of us worked on other platforms too May 29 18:56:48 naturally, you put face to face experiences of a world versus another one May 29 18:56:58 treelzebub, honestly half of that is just people being lazy May 29 18:56:59 kyeah, and as for working on other platforms May 29 18:57:03 they're equally as shitty May 29 18:57:03 like when adb disconnect, it got me mad, when the emulator crash, i go mad May 29 18:57:05 i feel like you are making a lot of assumptions about my past. anyway, my point stands. i'm annoyed at the negativity, and that was my only point. as you were. May 29 18:57:07 when AS is unresponsive, i go mad May 29 18:57:10 etc.. list is enormous May 29 18:57:14 so I find no reason to hate on android any more than any other platform May 29 18:57:18 bunch of complaints I see any time would get laughed out of the room by C++ or other half serious communities :P May 29 18:57:25 they're not equally shitty :p May 29 18:57:30 yes, they're equally shitty May 29 18:57:33 ok, more shitty then May 29 18:57:33 that's what computer scientists do: deal with shit constantly breaking around them. May 29 18:57:34 if you insist May 29 18:57:43 Yeah, most other platforms are shittier. May 29 18:57:43 yup May 29 18:57:59 treelzebub, no, computer scientists live in ivory towers May 29 18:58:03 and just do maths all day long May 29 18:58:03 you signed up for this constant going-mad May 29 18:58:08 lulz May 29 18:58:22 :'D May 29 18:58:44 i got much fun on android, tbh May 29 18:59:01 that just doesn't prevent its counterpart May 29 18:59:21 its not that android can't be fun, or that other mobile platforms in 2015 dont have their challenges, it just seems like google doesn't give a shit May 29 18:59:27 yeah, if you want to switch to iOS, you'll have to deal with XCode crashing endlessly, their insane certificate system, non-existent bugreporting/fixing, have to rebuild your app from scratch every 2 years, etc. Android has more bugs overall, but they're understandable and fixable. May 29 18:59:58 I wouldn't give a shit either May 29 18:59:58 :p May 29 19:00:01 in google's position May 29 19:00:44 wow huge improvements on android studio May 29 19:00:53 Yeah, I'd be happy too if Google would actually hire a designer and a bit more people for Android tooling May 29 19:01:19 Both WP and iOS provide significantly better profilers May 29 19:01:26 and emulators May 29 19:01:30 g00s: i don't share that opinion. i think there's plenty in this year's IO to be excited about. but i don't care to change your mind. just sharing my opinion. May 29 19:01:44 Mavrik, kind of a byproduct of supporting 3 development platforms May 29 19:01:58 we're just discussing it's ok treelzebub, i don't think anyone is in quest of convincing ^^ May 29 19:01:59 pfn, I don't really think so May 29 19:02:02 Mavrik, and the emulator, I understand from an engineering perspective May 29 19:02:07 pfn, IDEA is rather good and it's cross-platform May 29 19:02:27 yeah, but jetbrains' sole focus is the IDE May 29 19:02:35 but then you get a random python script for NDK profiling, another python script for tracing OS, a traceview which isn't really supported anymore and OGL profiler which doesn't work :/ May 29 19:02:54 i'm still using the old profiler from ADT May 29 19:03:01 pfn, yep, and I wish Google would have a good team solely focusing on development tools like Apple and Microsoft do May 29 19:03:08 because... it's like the new one are abandonned May 29 19:03:14 the current team does great stuff, but it feels like they're severely understaffed May 29 19:03:33 but i haven't tried the allocation tracker of 1.3 May 29 19:03:33 adq, new one? May 29 19:03:37 i heard good things about :p May 29 19:03:40 yeah the one in AS May 29 19:03:41 adq, CPU profiler from 1.2 is rather nice May 29 19:04:09 https://code.google.com/p/android/issues/list?can=2&q=Subcomponent%3DTools-traceview+Subcomponent%3DTools-Studio May 29 19:04:12 starred everything May 29 19:04:13 but it's essentially traceview, doesn't tell you whats goin on on OS level May 29 19:04:19 Mavrik: you mean, like the Android Tools Team, which is solely dedicated to dev tools? May 29 19:04:30 treelzebub, yeah, I mean them :) May 29 19:04:41 treelzebub, they need reinforcements and a UX expert badly :P May 29 19:04:45 these 4 issues are enough to explain May 29 19:04:52 Mavrik: no argument there ;) May 29 19:05:30 I just want hierarchyviewer to work again :'( May 29 19:05:39 that fucking thing never worked May 29 19:05:46 i made it crash May 29 19:05:51 with too many views ^^ May 29 19:05:52 it still works for me May 29 19:05:55 worked with the ViewServer.java file, and on debug builds of the OS (which nobody has) May 29 19:05:59 Also a bit more integration between the profilers - having a single stack of traceview + systrace + opengl profiler would go a long way at making smooth apps May 29 19:06:04 when i first came to android in 2010 and read shane conder's book, he's like "this thing ... kinda sucks" May 29 19:06:08 I just use viewserver in everything May 29 19:06:25 i told rominain, hey, this thing does t work ! he's like, oh i didn't test it on all resolutions May 29 19:06:27 ViewServer has stopped working for me :'( haven't tried fixing it yet though May 29 19:06:28 (i fully agree on reinforcements need) May 29 19:06:31 im like wtf well then test it May 29 19:06:42 I just have rooted dev devices. May 29 19:07:27 groxx you shouldn't need VierServer after 4.4 i think May 29 19:07:33 g00s, still need it May 29 19:07:49 there's some ddm hvproto flag to hv you can pass, but it never works May 29 19:07:50 * pfn shrugs May 29 19:07:55 hello May 29 19:07:59 google recommends using a UUID as an installation ID, but there is also a GCM registration id. so what if an app calls /api/register and one of the 2 IDs already exists in the database? treat it as an existing install and update the other ID? do I need the UUID at all? May 29 19:08:40 gcm registration id isn't an installation id May 29 19:09:04 yeah, GCM ID is only available if user has a google account registered and GCM registration worked May 29 19:09:08 it also changes on app updates May 29 19:09:14 an installation id will be wiped with the 'clear data' button May 29 19:09:18 it's an ID for GCM, nothing more, nothing else. May 29 19:09:25 Thorn, why is that a problem? May 29 19:10:13 it is if you want to associate GCM IDs with installation IDs to selectively send push messages May 29 19:10:47 you have to handle the case when the installation ID is new but the GCM ID is already present in the database May 29 19:11:05 (maybe your gcm reg id column even has a unique constraint) May 29 19:13:19 essentially, GCM ID is just data May 29 19:13:30 don't put constraints on it, don't rely on it to be an ID May 29 19:13:45 Thorn: there's a "device ID" in the telephony package (which is a terrible location, but whatevs), but it has problems (e.g. some aren't unique, if the device is re-sold it is now a "new" install, but not a new ID, plus it requires phone permissions). generally you're better off just generating a big random number, saving it locally in e.g. sharedprefs, and May 29 19:13:45 calling that good enough. May 29 19:13:47 it's just a binary blob you store next to user entry and pass on to Google server when you need to send a push May 29 19:14:14 As for tracking users, Advertiser ID is there for that. May 29 19:14:46 huh, http://blogs.nvidia.com/blog/2015/05/29/androidworks/ May 29 19:17:21 Guys im trying to grab the WindowManger.LayoutParams from the current window May 29 19:17:32 But I dont see a WindowManager.getLayoutParams() method May 29 19:17:40 nor do I see a setLayoutParams method May 29 19:18:13 That's because the WindowManager is not a view. May 29 19:18:14 drose379: getWindow().getAttributes() May 29 19:18:20 ah ok May 29 19:18:35 thanks May 29 19:18:53 Im guessing there is setAttributes() May 29 19:24:59 Hi, I got an Ingenic NPM801 prototype MIPS tablet and I'm building Android for it. It came with 4.1. Their device files say they were diffed against 4.3 so I started there. May 29 19:25:32 Set up 4.3 using their repo manifest, tried building, failed because it couldn't find memtrack.h, and from what I understand, that library didn't exist until 4.4 May 29 19:25:34 Supertanker: #android-root would be more applicable :) This is for android application development May 29 19:25:40 Ahhh ok thank you :) May 29 19:25:44 I'll go there. May 29 19:25:55 I should hang out here though, I want to get started in app dev, but later. Thanks JesusFreke May 29 19:25:57 what would you put in Android Competencies chart like this one: https://dgosxlrnzhofi.cloudfront.net/custom_page_images/64/page_images/Rails_Competencies.png ? May 29 19:26:27 I'm pretty sick of my OnePlusOne May 29 19:26:36 fuckin thing won't receieve push notifications properly May 29 19:28:08 icedp: java -> [class, interface, instance, polymorphism, factory, builder, builderfactory, bean, beanfactorybuilderfactory, abstractbean....] May 29 19:28:22 weren't there some new annotations like @mainthread or whatever, dont seem them listed http://developer.android.com/tools/debugging/annotations.html May 29 19:28:36 mmm, abstract beans... *drool* May 29 19:29:32 icedp tools -> build -> patience May 29 19:32:01 icedp platform -> bugs -> bugreports May 29 19:35:55 g00s but those aren't for 1.3? May 29 19:36:09 cliffreich oh i thought they were in the support annotations lib May 29 19:36:34 http://www.infoq.com/news/2015/05/android-studio-1-3 May 29 19:37:19 well I'm not sure :/ May 29 19:37:26 g00s: they are in it May 29 19:37:49 afaik they're still supposed to be under the support package (not part of intellij's annotations), though to work right they may require 1.3 yeah May 29 19:38:33 Napalm did you find Context.getSystemService(Class) looking through AOSP online, or did you dl sources from SDK manager May 29 19:38:49 its in the docs May 29 19:38:58 i'd like to see how they impl that May 29 19:39:10 can you switch on a Class ? May 29 19:39:55 i have a viewgroup where I’m overriding onLayout. I have an imageview and a linearlayout as children, with the linearlayout having some text fields. after I tell the child views their sizes, though, I don’t see anything on screen May 29 19:39:55 you can class.equals May 29 19:40:02 not even the background color I set May 29 19:40:34 g00s: http://pastebin.com/4yiPUutZ nothing magical May 29 19:40:49 g00s: it would be approximately the same as something like T[] List.toArray(T[] a) May 29 19:41:10 except that the parameter is just a Class instead of an instance of T May 29 19:41:20 ah ok so they have a registry of class names May 29 19:41:21 oopsy copied the wrong one May 29 19:41:25 and then, I would imagine they.. yeah. May 29 19:41:38 Hey guys! I'm having issues with the BluetoothAdapter's "startScan()" method. Studio keeps telling me it can't resolve it. Any ideas? May 29 19:41:45 http://pastebin.com/FKPvq2mH May 29 19:41:47 there May 29 19:42:16 Helsinkiii: whats your minSdk/targetSdk May 29 19:43:04 Helsinkiii: i just checked the docs. BluetoothAdapter doesnt have startScan() :P May 29 19:43:21 Helsinkiii: it does have startLeScan() May 29 19:43:22 lol startLeScan ? May 29 19:43:46 start le scan, get le results, end le scan. write le code. May 29 19:44:02 le really? May 29 19:44:16 don't forget le bugs May 29 19:44:18 Napalm: fixed it, I'm an idiot May 29 19:44:22 Napalm; thanks a lot May 29 19:44:32 Napalm, le thank you May 29 19:44:37 g00s: negatory. do not ship le bugs. May 29 19:44:38 don't use startLeScan unless your minSdk < 5.0 May 29 19:44:49 g00s, hmm? May 29 19:44:51 g00s: they made a mention that the design library has decent shadow support ... its package-private :| May 29 19:45:09 and open source, so at least that's something May 29 19:45:15 true May 29 19:45:35 Napalm did you see the String class had ctors that threw exceptions to use StringFactory ? May 29 19:45:47 on MNC May 29 19:45:48 yup May 29 19:45:56 what was that about? May 29 19:46:17 #feature, not bug May 29 19:46:34 that would break tons of libraries May 29 19:46:53 i have to assume, i just read it wrong, that file isn't being used, or something weird May 29 19:46:53 hi May 29 19:47:23 g00s: https://code.google.com/p/android-developer-preview/issues/detail?id=2073 May 29 19:47:25 its been filed May 29 19:47:35 I've built a toggle widget, which is a set of two imageviews and a button May 29 19:47:37 * g00s waits for StringGate May 29 19:47:46 *one May 29 19:47:51 * Napalm then expects StringFence May 29 19:48:02 unfortunately, it doesn't fit properly May 29 19:48:56 Napalm did you see this https://medium.com/google-developers/developing-for-android-introduction-5345b451567c May 29 19:49:12 I'd like to know what values have I to set for size parameters May 29 19:49:23 standard values, I mean May 29 19:49:28 Any ideas? May 29 19:49:51 cristian_c: why? you can just use a ToggleButton with a left drawable May 29 19:49:57 or right.. whatever May 29 19:50:20 Napalm, you are right, but widgets don't support togglebuttons May 29 19:50:51 I can't put a toggle in a widget, it will not recognize that May 29 19:51:02 cristian_c: what are you talking about? May 29 19:51:09 so, workaround is needed May 29 19:51:13 g00s: its on my reading list.. not got to it yet May 29 19:51:26 Napalm, homescreen widgets May 29 19:51:38 button + icon + light indicator May 29 19:51:40 cristian_c: erm? why not May 29 19:51:50 I dont see why you cant use it with remoteviews May 29 19:53:19 Napalm, android documentation says it's not supported May 29 19:53:26 and I've already tried May 29 19:54:02 erm where? May 29 19:54:19 just use a CheckBox then May 29 19:54:55 checkbox? O.o May 29 19:55:12 just change the check drawble May 29 19:55:14 drawable May 29 19:55:18 im sure there are a ton of ways May 29 19:55:38 hell two seperate buttons that you show and hide May 29 19:55:42 that would have been awesome if google announced firebase was free to use May 29 19:56:06 Napalm, https://developer.android.com/guide/topics/appwidgets/index.html May 29 19:56:23 cristian_c: how about you take a screenshot of your problem May 29 19:56:26 Napalm, not, it's a different concept May 29 19:56:38 Napalm, ok, I've got many screenshot May 29 19:56:40 *s May 29 19:56:41 Just use 1 ImageView and switch drawables May 29 19:57:00 I've been trying to root my sm-t320 for quite some time now. The videos I watch say to use cf-auto root and Odin. The problem I have is Odin does not seem to be available anywhere. The versions available immediatly innudate my machine with crapware and malware and don't even install Odin. Is there an OSX alternative? I have to test my application Backgammon With Pals in Chinese. May 29 19:57:08 Or state, if you can with remoteviews May 29 19:57:52 I’m getting error “unable to run mksdcard” when trying to install Android Studio on OSX Yosemite. Are there any workarounds? It seems to be a known issue that hasn’t yet been fixed? May 29 19:58:37 wanting to know if this is possible. If I have an image that is 4 inches by 6 inches. is there a way to always show this size on the screens of devices regardless of the resolutions. May 29 19:58:44 raisen they still have that bug? i filed it like months ago May 29 19:59:41 raisen install the barebones SDK, start AS again, close the wizard, and then go into prefs -> project structure -> jdk / sdk paths and fix May 29 20:02:17 Napalm, 1) http://imgur.com/zd86F0M May 29 20:03:05 cristian_c: can you explain? May 29 20:03:32 cristian_c: what are you trying to do here? add a power button? May 29 20:03:36 Napalm, it's an app widget I can place on the homescreen May 29 20:03:41 Napalm, yeah, power button May 29 20:03:51 Napalm, 2) http://imgur.com/xdNrE6J May 29 20:04:01 cristian_c: and you want it to match the default one? May 29 20:05:36 Napalm, I need to fix size (similar to widget on the right) May 29 20:05:43 Napalm, 3) http://imgur.com/wk1WnMs May 29 20:06:02 Did you look at the way the platform does it's widget? May 29 20:06:04 g00s: that’s crazy, I’ll try that though, thanks May 29 20:06:45 Napalm, unfortunately, google doesn't release documentation about power buttons? May 29 20:06:56 erm May 29 20:07:03 yes, its all open source May 29 20:07:16 also, google doesn't provide a power built in widget, so I need to built one May 29 20:07:31 you miss my point May 29 20:07:47 Napalm, 4 and last) http://imgur.com/wPuPjfG May 29 20:07:48 you want to make a widget like the default one.. to match its size and other spec.. so look at the one in the platform May 29 20:08:41 these have been my attempts to fix it, changing parameters values May 29 20:08:50 Napalm, I've done it May 29 20:09:08 I've studied any single parameters in xml format May 29 20:09:22 g00s: I can’t find project structure under AS’s prefs May 29 20:09:37 Napalm, but I can't find the right mix May 29 20:10:08 raisen from 'Welcome to AS' Configure -> Project Defaults -> Project Structure May 29 20:10:15 Napalm, in particular, the bottom imageview is strangely separated from the dark button May 29 20:10:44 g00s: got it, thanks!! May 29 20:12:17 in ExecutorService, can we avoid instantiating the callable every time? May 29 20:12:30 Instead just pulling the existing (cached) callable instance? May 29 20:12:36 or is that a completely weird and bad idea May 29 20:12:40 O.o May 29 20:12:49 Napalm, I've improved it, but I can't solve the remaining issues May 29 20:12:54 i'm going with the completely weird and bad idea Afzal May 29 20:13:23 g00s: well it depends on what his app needs.. but true its probably a silly idea May 29 20:13:26 Afzal oh i think i know what you mean, you just want to run the same thing May 29 20:13:42 yeah, I just want to avoid allocating a new Callable everytime May 29 20:13:45 like over and over, like a repeating task or something May 29 20:13:49 cristian_c: pastebin your app widget layout and app widget xml May 29 20:13:49 yup May 29 20:14:00 Afzal: yeah, just make Callable instances that contain a reference to . e.g. if you want to do a ton of "call X on instance of Y", you can make one callable instance per parallel execution that you need, and recycle them like any other object pool May 29 20:14:14 Afzal did you see https://docs.oracle.com/javase/7/docs/api/java/util/concurrent/ScheduledExecutorService.html#scheduleAtFixedRate(java.lang.Runnable,%20long,%20long,%20java.util.concurrent.TimeUnit) May 29 20:14:38 Napalm, ok May 29 20:14:52 at first , layout (it's the most important) May 29 20:15:09 g00s not sure how that avoids creating a new Runnable to pass to that method May 29 20:15:17 cristian_c: so whats this magical widget button suppose to do? May 29 20:15:24 Afzal yeah sorry, just the repeating bit May 29 20:16:24 Napalm, it should open a dialog, but not at the moment May 29 20:16:41 groxx Wouldn't that cause a few concurrent exceptions if the callable isn't finished doing its stuff? I guess put a lock on it or something. Hmm May 29 20:16:56 Afzal: depends on what it's doing. May 29 20:17:09 Napalm, http://pastebin.com/pUZF0A5T May 29 20:17:14 Afzal i guess its best to explain more what you want to do May 29 20:17:30 in that callable May 29 20:17:32 Napalm, i've tried many many different combinations May 29 20:17:37 it's running sensor readings using an algorithm against some pre-defined data May 29 20:17:56 then it returns a kind of score on how much it matches May 29 20:18:05 hey again. Red underlines took a while to show up. May 29 20:18:07 Afzal: at that point though, you may be better off just starting some threads and looping on e.g. a BlockingQueue in each one. and in general: it's very unlikely that reusing Callable instances is the most-effective thing you can be doing. profile, odds are it's unnecessary. May 29 20:18:13 as long as the executor is serial it should be ok May 29 20:18:18 Napalm, I set it so minSDK 18 and it doesn't work May 29 20:18:41 Napalm, http://pastebin.com/38ZeYyHC May 29 20:18:44 groxx I use a cached thread pool to use ... cached threads May 29 20:18:51 (appwidget xml) May 29 20:19:06 Afzal: which makes sense, because threads are somewhat expensive to start May 29 20:19:16 Callable, not so much May 29 20:19:30 When trying to load the android device emulator from android studio, I’m being asked for the SDK path. When I type it in, it says /platform-tools/hprof-conv not present . I checked the SDK folder and only found /platform, not /platform-tools May 29 20:19:41 Afzal i have something similar, a bunch of devices which are polled for sensor data. i'm using HashedWheelTimer from netty :D May 29 20:19:43 Hmm okay, I guess I can afford to leave it for now groxx, it is pretty fast compared to what it was a few months back May 29 20:21:28 g00s interesting. I just send it as fast as I get the readings and use an ExecutorCompletionService to poll for the finished tasks May 29 20:21:32 so on d.android.com, did search stop doing autosuggestions ? May 29 20:21:42 g00s, any idea? May 29 20:21:46 I'll look into that if I have to compare the results from each computation May 29 20:21:48 thanks! May 29 20:22:01 raisen: sounds like you just need to install that section of the sdk. there are tools, build tools, and platform tools May 29 20:22:27 g00s I see an error in console when I type in the search bar :D May 29 20:22:27 Helsinkiii no idea, i often have red underlines in the IDE for no good reason May 29 20:22:44 damn May 29 20:22:46 groxx: great, let me try that May 29 20:22:50 Afzal :( May 29 20:23:06 well, i can't run my code May 29 20:23:10 lol, at least they have the 'Developer console' link there now May 29 20:23:15 :( May 29 20:23:17 i googled that for the past 4 years May 29 20:23:53 g00s looks like this script is on the wrong path or something, https://developer.android.com/reference/gcm_lists.js May 29 20:24:04 which is why that GOOGLE_DATA object is not instantiated May 29 20:24:18 guess we know who doesn't have tests for their ui :D May 29 20:24:25 g00s: I did that until I discovered that it's visible on the "distribute" page :) May 29 20:25:07 g00s: is that the bug you filled? https://code.google.com/p/android/issues/detail?id=152213 May 29 20:25:20 It looks like it’s still open May 29 20:25:36 raisen yeah May 29 20:25:42 hmm ok May 29 20:26:14 g00s https://twitter.com/AfzalivE/status/604383144075268096 tweeted May 29 20:27:42 Afzal hopefully fixed soon ;) May 29 20:30:21 hmm PercentFrameLayout PercentRelativeLayout May 29 20:31:09 http://www.reddit.com/r/androiddev/comments/37rhm6/got_some_clarification_on_jack_regarding_java_8/ May 29 20:32:00 retrolambda lives on May 29 20:32:23 groxx doesn't retrolamda have problems with method references behaving wrong ? May 29 20:32:44 i read something strange last week May 29 20:33:11 well this is a good time for intellij to channel frustration into marketing for kotlin :D May 29 20:33:13 they work fine for me. I forget the details of the blog post, but tl;dr it was just misunderstanding how retrolambda worked (because it's not identical to java 8) May 29 20:34:08 but "Jack will support Java 8 features when the platform does." ... implies the platform needs Java 8 language features May 29 20:34:23 like lambda May 29 20:34:33 so .. thats not happening any time soon at all, like years May 29 20:34:58 which, because it's not behaviorally-identical to a backported version, makes sense May 29 20:35:41 http://android-developers.blogspot.com/2015/05/android-design-support-library.html May 29 20:35:47 g00s I fixed it! :p May 29 20:35:56 Afzal :D May 29 20:39:14 so if you really want g00s http://hastebin.com/gununixota.coffee May 29 20:39:16 lol May 29 20:39:21 that's not coffee, it's still js May 29 20:39:29 here http://hastebin.com/gununixota.js May 29 20:42:20 you know, i find it hard to believe that Google sees the new stuff in Java 8, the stuff in Kotlin, and Swift, and thinks that their old version of Java is just fine May 29 20:42:33 yeah, it's kinda sad May 29 20:42:41 but look at all the javascript developers lol May 29 20:42:55 seeing ecma and coffee and still drinking the old stuff May 29 20:43:24 Pretty sure they don’t think it’s fine, they’re just assessing the amount of work necessary to migrate to Java 8 May 29 20:43:50 jaana just copy over the API like last time ;) May 29 20:43:55 They might even be working on it as we speak but knowing it might take months/years to get there and in the meantime, they need to keep improving the platform May 29 20:45:42 jaana at some point, things diverge so much from official java that 3rd party library maintainers (not android specific) have a big hassle May 29 20:45:54 i'm really glad rxjava guys say "we'll work on android" May 29 20:46:14 but 2-3 years from now , if android is still where it is now, that could become increasingly hard May 29 20:46:28 any other guesses in response to my issue? Why is startScan () not being resolved? ahhhh May 29 20:46:30 and not worth it :( May 29 20:46:42 Helsinkiii startLeScan ! May 29 20:46:46 not startScan May 29 20:46:57 but it says it was deprecated! May 29 20:47:07 or g00s actually just paste this in the console: http://hastebin.com/posurebuhi.js May 29 20:47:27 * g00s slaps Helsinkiii with le trout May 29 20:47:37 lol May 29 20:47:41 Afzal thanks :) May 29 20:48:14 Afzal must know JS pretty well :) May 29 20:48:20 no seriously, I thought I was being discouraged from using startLeScan? May 29 20:48:51 * Afzal just loves debugging in JS :D May 29 20:49:11 Helsinkiii i said dont use startLeScan if your minSdk = 5.0+ May 29 20:49:19 and read the docs May 29 20:49:23 i am! May 29 20:49:36 my minSDK is 18 May 29 20:49:43 then you have to use startLeScan May 29 20:49:59 ok May 29 20:51:19 Le epic scan. May 29 20:52:21 fuck, I never thought I'd read a "-le - something" again May 29 20:52:40 Helsinkiii why? You'll read it in history books soon enough May 29 20:54:09 in _le_ history books, you meant May 29 20:54:59 le lol May 29 20:55:08 ok , i'm personally done May 29 20:55:12 I'm never writing that again May 29 20:55:18 le done. May 29 20:56:37 i wonder how google would feel if Amazon api-cloned GMS and started causing problems May 29 20:56:51 the way they fragmented the java ecosystem May 29 20:58:03 I'd love it May 29 20:58:18 i would too as long as it worked ... May 29 20:58:21 dafuq May 29 20:58:28 how did they fragment the java ecosystem? O.o May 29 20:58:32 somebody like Xiaomi could do that May 29 20:59:14 g00s: there's this project, fwiw: https://github.com/microg May 29 20:59:55 groxx interesting ! May 29 21:00:00 Xiaomi has their own subset of GMS anyway May 29 21:00:12 le thanks guys May 29 21:00:13 in connection with Baidu May 29 21:00:24 g00s, thanks man, sorry for the silliness May 29 21:00:26 Mavrik same api signatures ? May 29 21:00:34 g00s: also impossible to search for! so I can only find it when I go to my /stars on github :| May 29 21:00:42 I need help :( May 29 21:00:48 the "from" value in a GCM message is null May 29 21:00:52 matt_j: professional or otherwise? May 29 21:00:54 g00s, nope, but essentially same functionality May 29 21:01:05 urban airship is ignoring them May 29 21:01:09 unless it's a bug on their end... May 29 21:03:06 Mavrik i consider it fragmented because it doesn't have API parity with any sun / oracle version May 29 21:03:45 so if you are a library write, you have to think "hmm, i neeed to test this on android and oracle java" May 29 21:03:59 what May 29 21:04:02 and of course there is plenty of stuff that works on oracle java, that doesn't work on android May 29 21:05:03 if you listen to the talk the groovy devs give about getting it on Java, you hear about all the places things aren't the same May 29 21:05:11 getting it on Android May 29 21:05:16 hi May 29 21:05:19 So do you test also on IBM, GCC, LLVM, OpenJDK and other Java's as well? May 29 21:05:32 or will you admit you have no idea what you're talking about May 29 21:05:32 anyone would be able to help me port a json request from javascript to java for android? May 29 21:05:42 This is the js code: https://github.com/xpheres/analyticaltranslator/blob/master/assets/javascript/atranslator.js May 29 21:05:43 IBM will have passed Oracle's test suite May 29 21:05:50 GCC nobody gives a shit about May 29 21:05:50 RIGHT! :D May 29 21:05:52 and this is the android code https://github.com/xpheres/AndroidAnalyticalTranslator/blob/master/app/src/main/java/com/example/root/analyticaltranslator/MainActivity.java May 29 21:06:01 Never worked with it have you? :D May 29 21:06:13 IBM, sure i've used it May 29 21:06:14 My point is - there have ALWAYS been separate Java implementations, since the beginning. May 29 21:06:20 Which includes Apple and Microsoft forks. May 29 21:06:26 yes there have been, but they had to pass conformance testing May 29 21:06:35 No, they did not. May 29 21:06:37 and thats why MS got sued, for fucking it up May 29 21:06:40 And no, they were not compatible fully. May 29 21:06:54 Apple worked with Sun :| May 29 21:06:57 jesus man May 29 21:07:49 And? May 29 21:08:07 Apple JVM still exibits quite a few bugs and quirks not present in HotSpot May 29 21:08:22 Your "compliance testing" be damned - something you need to deal with when developing. May 29 21:08:24 g00s, IBMs JDK isn't even compatible with itself across versions, they just bundle their own JDK in every product :P May 29 21:08:35 it's actually not a big issue writing libraries that work on jvm and android May 29 21:08:47 I honestly can't believe there was a developer shortsighted enough that would ever defend Oracle in that case O.o May 29 21:08:58 g00s, s/their own jdk/the working version of their jdk/ :) May 29 21:09:10 also considering the dramatic amount of Java libraries that just work on android May 29 21:09:14 Mavrik: maybe ones which stand to make millions / billions if it goes oracle's way May 29 21:10:33 What are the most used featureful "interactive" prototype creation tools for web and mobile? May 29 21:10:56 dragorn, gah, dealing with IBM JDK incompatibilities is still giving me nightmares -_- May 29 21:11:03 Frigging WebSphere and other enterprise crap May 29 21:11:20 Mavrik, my wife works for IBM packaging installers of dev tools, among other stuff. It's a constant point of misery. May 29 21:11:50 dragorn, yeah, working for IBM is a constant point of misery May 29 21:12:10 really it just comes down to "enterprise tools written in java are not comparable to standard code". You're not going to be multihoming a half dozen websphere-sized things and need a single JDK system-wide. May 29 21:12:13 pfn, ayup May 29 21:13:07 Meh, I wouldn't mind as much if their stuff actually worked May 29 21:13:08 pfn, I did my time dealing with IBMs bullshit a decade ago, no need to go back. I can tell you a 2.4 linux kernel is equivalent to about 79,000 80-col punchcards, however. May 29 21:13:31 But they repackage Eclipse, make it shittier and then sell it as an enterprise development platform May 29 21:13:35 Mavrik, it works as long as you hire the team of consultants to maintain it May 29 21:13:38 Making Android Studio a pro product. May 29 21:14:22 Mavrik, now, picture eclipse with a bunch of plugins to compile z/os drivers. just... just hold that picture in your mind for a bit. You're welcome. May 29 21:14:35 pfn, I didn't have such good experience with their consultants... but I admit, the local IBM branch isn't really a bastion of capabilities May 29 21:16:08 dragorn, *shudders* May 29 21:16:16 I ran away from that soon enough I think. May 29 21:16:29 Gonna take a bit longer for the Audi A8 tho :P May 29 21:17:39 ? May 29 21:17:49 oh, you saving up May 29 21:18:20 pfn, for some reason IBM consultants around here drove Audis May 29 21:18:28 *shrug* :) May 29 21:19:03 https://medium.com/google-developers/developing-for-android-ii-bb9a51f8c8b9 May 29 21:19:28 "Avoid Frameworks and Libraries Not Written for Mobile Applications" lol May 29 21:21:48 internet permission can't be switched off -- well, it's good for devs May 29 21:22:04 well, internet is an absolute requirement if your app uses it, no reason it should be switchable May 29 21:22:23 yes May 29 21:22:36 how many apps that do not use internet are useful? May 29 21:22:39 usefull May 29 21:22:53 it might not be not functionality requirement. internet is needed for ads, bugs reporting, analytics etc May 29 21:23:03 xpheres: Flashlight apps. :D If they use it, it's for ads. May 29 21:23:10 yeah and games May 29 21:23:13 Though that should be built in to the OS. May 29 21:24:11 TacticalJoke: partly agree, but that could lead to discrimination of alternative ads/analytics platforms May 29 21:24:58 anyone here have experience with GCM or urban airship? May 29 21:25:56 pfn: not always true. I can easily think of situations where it could be optional May 29 21:26:23 e.g. a game that can be played locally in single player mode, but requires network for multiplayer May 29 21:26:40 Yeah, expecting internet permission to be optional was a bit optimistic May 29 21:29:46 windows phone has a permission for apps being able to run in the BG, that would have been nice May 29 21:30:15 Yeah. May 29 21:30:58 the documentation for using a BroadcastReceiver for GCM are all gone May 29 21:31:01 wtf... May 29 21:31:08 "windows phone has a permission" - isn't that a good reason *not* to do it? :D May 29 21:31:10 I'd like permissions for everything. "App can allocate memory inside a loop: ☑" May 29 21:31:51 TacticalJoke lol May 29 21:32:15 app isn't allowed more than X cpu cycles per hour :D May 29 21:32:33 :D May 29 21:32:40 no cpu cycles for you! 1 hour! May 29 21:32:52 or more than X mb over network per hour May 29 21:33:04 Error: Can't use the CPU. Please wait 37 minutes. May 29 21:33:19 (Hopefully no CPU cycles are consumed in the display of that.) May 29 21:33:29 catch (CPUUnavailableException ex) { // how could this ever be called? } May 29 21:33:35 did google say anything about ARA at I/O this year ? May 29 21:34:32 im trying to play a video using action view intent, it doesn’t seem to play but if i pass the same uri to a videoview, it can play May 29 21:34:43 any tips here? could it be a file dir issue? May 29 21:34:47 g00s: it's in the (breathless) description text of the session (breathlessly) titled "A little badass. Beautiful. Tech and human. Work and love. ATAP." May 29 21:35:07 first thing on channel 1 today, apparently May 29 21:35:08 Sixmsj, is it in your private directory_ May 29 21:35:09 ? May 29 21:35:45 groxx oh i missed it then? May 29 21:35:59 damn got peanut butter in mouse again; i need a PB proof mouse May 29 21:37:30 Mavrik: it’s in this format, /data/data/appname/files/.local/share/media/subfolder/1/qekgj1ed.cxt.mp4 May 29 21:37:44 g00s: https://www.youtube.com/watch?v=26Bma3d0wko + rewind May 29 21:37:48 Yeah, that's not accessible by other apps. May 29 21:37:53 Do read up on storage locations :) May 29 21:38:14 thanks, confirmed my suspicion, will do May 29 21:38:25 those video intents were not helpful in their error message May 29 21:38:38 i got a generic ‘can’t play video’ type message :( May 29 21:38:51 groxx oh thanks May 29 21:39:08 g00s: groxx no need to rewind, it's in the videos of Google dev channel May 29 21:39:21 icedp: that would be convenient :) I'll have to check for that, thanks May 29 21:39:37 they are fast to post it this year May 29 21:41:58 man I am looking forward to the time when stetho allows us to just change things on the fly like web devs May 29 22:09:25 hmm. google play on android is looking very ... different May 29 22:09:46 lol, its the 6 pack again ! May 29 22:10:02 looks the same for me, currently :| May 29 22:13:26 groxx what version do you have? May 29 22:13:45 i have 5.5.12 May 29 22:14:58 g00s: same May 29 22:19:06 groxx must have been a bug. i swiped it away and restarted it, looks the same again May 29 22:19:23 i just had 6 bands of color across the screen for each category. it worked O.o May 29 22:51:48 May 29 22:55:00 So is everyone jumping ship to Kotlin now? :D May 29 22:56:37 I’m getting an error when running adb, it complains about not being able to run an inserted library. How do I “uninsert” this library? Library I’m using is libfaketime May 29 22:56:43 example of why kotlin? May 29 22:57:34 canvs2321: This is a good overview: https://docs.google.com/document/d/1ReS3ep-hjxWA8kZi0YqDbEhCqTt29hG8P44aA9W0DM8 May 29 22:57:50 The biggest feature for me, personally, is inlined first-order functions. May 29 22:58:01 All the syntactic goodness with no performance impact. May 29 22:58:08 aka almost-macros May 29 22:58:16 Yeah. May 29 22:58:22 Sane macros. May 29 22:59:12 i'm more open to it; just need to know where the friction points will be; i dont expect many but i dont know what i dont know May 29 22:59:31 for example, can i use the data binding stuff with kotlin ? May 29 22:59:38 * g00s assumes so May 29 22:59:48 does kotlin do things that java can't? or just tries to make things easier? May 29 22:59:49 I assume anko will add something? (I got the lib right, right?) May 29 23:00:09 anko looks somewhat different; i still want my layouts in xml May 29 23:00:27 and i don't mean that kotlin can do things that eventually get done, same with java, but that kotlin can do that java isn't capable of? May 29 23:00:36 as long as the tooling understands @{xxx} exists or doesn't exist and can flag that, pretty good stuff May 29 23:01:48 i'm also somewhat wary of jack May 29 23:02:11 if kotlin is just a new expression of the same things java does, i don't see the point. except for ppl that can't do java May 29 23:02:29 Yes, it can do (several) things Java (even Java 8) cannot do. May 29 23:02:41 probably even Java 9 May 29 23:03:13 such as? i mean using java with android as is, you can't do things that kotlin provides? May 29 23:03:44 The example I gave above: inlined first-order functions. May 29 23:04:11 show an example code3 May 29 23:04:11 That's one of many (although I think it's one of the best examples). May 29 23:04:33 plz :) May 29 23:04:39 Google is better than I am. May 29 23:04:46 google " inlined first-order functions" ? May 29 23:05:02 http://kotlinlang.org/docs/reference/inline-functions.html May 29 23:05:06 I have the Android Support Repository and Library installed, but I’m getting this error when running an app through Android Studio: Failed to resolve: com.android.support:support-v4:15+ Any ideas? May 29 23:05:10 cool, thanks May 29 23:06:10 guess my main beef, was function instead of method, if they are trying to link those 2 May 29 23:06:32 A method is just a function within some class. Kotlin doesn't make us define functions within classes (gladly). May 29 23:06:45 not in java, function sounds like a c/c++ thing May 29 23:06:49 I like the simplicity of this in Java, but it is restrictive. May 29 23:06:52 method sounds better to me May 29 23:07:25 "Method" is wrong if it's not inside a class. May 29 23:07:50 It's in a class in bytecode, but that's incidental. May 29 23:08:05 i'll read deeper :) May 29 23:08:53 one of the things i miss in java coming from c++ background is function pointers - err method references. really wish i had those May 29 23:09:13 Yeah, this closure-instantion thing in Java 7 is just a hack. May 29 23:09:14 but yeah, those first class functions ... May 29 23:09:28 "Let's give the GC more work just because I need a callback." Horrible stuff. :[ May 29 23:10:14 g00s, what do you mean? May 29 23:10:31 instantiation* May 29 23:12:35 and by what do you mean i'm talkin bout this statement, "[19:08] one of the things i miss in java coming from c++ background is function pointers - err method references. really wish i had those" May 29 23:13:13 canvs2321 in c++ you can create pointers that reference method names May 29 23:13:30 or more precisely, reference method signature May 29 23:13:45 you can do something similar in Java 8 with method references May 29 23:13:52 sorry i'm a noob, but for what purpose May 29 23:14:07 why the need to know the method name/signature? May 29 23:14:12 for a callback? May 29 23:15:04 or are you saying use references with the signature? May 29 23:15:31 shhh MikeWallace is back, keep it down May 29 23:16:22 its useful in the situation, you want to save which method you need to call at a later time May 29 23:16:57 you call the method you need :/ sorry my head is in the sand May 29 23:17:44 i just can't visualize any situation that can't be solved using java and android that others can provide May 29 23:24:43 in java you have to wrap the call in a Runnable object, which wastes a fair bit of space. in C++ it's a pointer, nothing more. May 29 23:26:11 Hello. I'm running Bluestacks in VMware, required. I've set the VM to use a bridged connection, which it is. I'm trying to connect adb to bluestacks. The host machine is 192.168.1.100, the vm is at 192.168.1.108, bluestacks reports its IP as 10.0.2.15. May 29 23:27:00 As suggested by some SOF threads, I tried 192.168.1.108:10001 and 10002 May 29 23:27:24 I’m having an issue with a custom view that I’ve placed in a ListView. Specifically, that the numbers passed into onLayout seem to be jumping around with no real sense May 29 23:27:45 s73v3r: how's your onmeasure? May 29 23:28:19 how so? I mean, it’s measuring, and appears to be measuring things just fine, at least regard to height May 29 23:29:19 most / all? of the system ViewGroups strictly adhere to the values returned by onMeasure - you'll never get laid out with any other size, even if the size is irrational. if you're getting weird sizes, you're probably setting weird measured sizes. May 29 23:30:36 oh, the sizes appear to be fine. It’s that the top/bottom pairs don’t seem to be sequential May 29 23:31:09 ah, as in you're getting rows 1, 3, 2, 5, 4 laid out, in that order? May 29 23:31:32 I’ve got a breakpoint, and I’m looking in onLayout. I would expect view 1 to have top X and bottom Y, and then the next one to have top Y and bottom Z, with no overlap May 29 23:31:35 that’s not happening May 29 23:31:55 s73v3r, views are recycled, are you doing work inside getView? May 29 23:32:29 setting the data object that the view uses to populate itself May 29 23:32:48 what is this onLayout stuff? May 29 23:33:07 custom view positioning May 29 23:33:20 inside getView or before? May 29 23:33:31 it happens after getview May 29 23:33:37 I have a custom viewgroup May 29 23:33:39 guys I have a job interview for as senior dev position next week May 29 23:33:46 congrats May 29 23:33:46 I really really really need this job May 29 23:34:06 but I only have like 1 week experience with Android dev May 29 23:34:20 I guess you're not a senior then... May 29 23:34:24 if you are needing to adjust views for a listview after getView that seems wonky May 29 23:34:48 MikeWallaceDev, well the question if not that May 29 23:35:08 MikeWallaceDev, the question is whether I **can be** senior by next week May 29 23:35:27 canvs2321: no, that’s not it at all May 29 23:35:45 JFlash: you want to be a senior android developer with one week of expierience? May 29 23:35:47 onLayout is a normal part of the view display cycle May 29 23:36:01 s73v3r: is this during the initial layout of the list, or at other times? May 29 23:36:01 JFlash: im sorry but you have not suffered enough for that. May 29 23:36:09 initial May 29 23:36:13 lasserix_, I don't 'want', I just have to. I don't have a choice May 29 23:36:15 but onLayout on a view from a list after getView is weird, unless you aren't doing that May 29 23:36:39 lasserix_, if I don't get this job, I'm f***d. May 29 23:36:45 hm. initial I would expect it to be adding in order... the "fill" methods in listview imply that to me, at least. I've never actually watched it though. May 29 23:36:54 there is multiple view layouts for adapter May 29 23:37:26 the parameters of onLayout, they are the position in parent coordinate space that this view is in? May 29 23:37:36 guys, here a way you can help me out: can you least 5 topics on android development that you qualify as "advanced topics" May 29 23:37:44 s73v3r: yeah May 29 23:37:50 4 or 5 May 29 23:38:03 JFlash: Custom views :p May 29 23:38:17 JFlash, how do you you pay for those answers? May 29 23:38:18 that would help me a lot. I have 3 days to completelly master android. I will be an Android Ninja! May 29 23:38:21 groxx: so I wouldn’t want to pass those directly to my child views, May 29 23:38:40 s73v3r: there's something around "optical" vs not which I don't totally follow, but it's parent-based. check out View#layout May 29 23:38:45 what's your experience JFlash ? May 29 23:38:51 canvs2321, will pay with the salary that I get from the job I'm applying to May 29 23:39:07 MikeWallaceDev, the nick says it all... Flash! May 29 23:39:30 s73v3r: nope. and you should _generally_ be using width/height to position your children, not the left/top/right/bottom values you're given May 29 23:39:30 for someone that knows Flash, Android+ Java should be easy! May 29 23:39:49 since your position on screen shouldn't (usually) affect how you place your children May 29 23:39:51 JFlash: you become "senior" with experience. not by cramming for a couple of days. May 29 23:39:55 JFlash: flash is useless for java May 29 23:39:56 Wow. You really have no clue. May 29 23:40:05 JFlash: know how to use gradle to use dependencies May 29 23:40:20 the only way you can "mock" being a senior is if you can makeuse of the wonderful libraries at android.aresnal May 29 23:40:23 however, I do want my children to be in specific positions relative to myself May 29 23:40:27 JesusFreke, hard to disagree. But I can at least try to master some advanced topics May 29 23:40:48 maybe you can pull it off long enough you'll get your shit together and won't produce crap by your employer's release production date May 29 23:40:49 s73v3r: yeah. so e.g. child.layout(10, t, r, b) will always position it 10px from your left edge. May 29 23:40:55 JFlash: I'm all for learning and self-improvement. But I think your expectations might be a bit off :) May 29 23:41:07 just a wee bit :) May 29 23:41:23 I've been doing this for 5 years, how about you JesusFreke ? ;) May 29 23:41:35 JFlash: the ONLY way you can pretend and maybe get away with it is if you master a) including b) understanding https://android-arsenal.com/ May 29 23:42:01 lasserix_, that won't come up in an interview.... May 29 23:42:04 using libraries you may be able to buy yourself enough time to actually learn something before they figure out you are a pretender May 29 23:42:05 JesusFreke, I hear you on that. But never underestimate a desperate human being is capable of achieving ;-) May 29 23:42:09 well, I don't really consider myself an app developer :) May 29 23:42:15 oh this is interview question time May 29 23:42:34 lasserix_, good point! 'getting away' is fine, as long I get the job May 29 23:42:45 groxx: I think I understand now. I started making this view when it was fullscreen by itself, and now that it’s changed, how I made it appears to have been incorrect May 29 23:42:46 JFlash: look at diagrams of android life cycles, and google interview android questions May 29 23:42:48 there are lots May 29 23:42:51 if your memorize them May 29 23:43:00 and understand the life cycle diagrams and component diagrams May 29 23:43:11 you may be able to pretend you are not a week wet May 29 23:43:11 s73v3r: ah. yeah. and the docs don't quite prepare you for building custom viewgroups :| May 29 23:43:29 lasserix_, activity life cycle is a good topic, can you name a few others that are advanced topics? May 29 23:43:44 s73v3r: http://arpitonline.com/2012/07/01/creating-custom-layouts-for-android/ + there's a followup (or two?) are quite useful :) May 29 23:44:20 what's a good place for *advanced* toturials? you know, the hard stuff May 29 23:44:25 s73v3r: also, there are a lot of convenience / helper methods in ViewGroup and subclasses, so you can e.g. measureChildren() and not have to deal with it yourself May 29 23:44:42 groxx: the parameters I pass to my children are the distances I want them from my edges, right? So if I wanted it to be up next to my right edge, I’d pass 0 for the right edge? May 29 23:44:52 I already really know all the basics... controls, fragments, event handlers, all the basic stuff May 29 23:45:01 I need the hard stuff May 29 23:45:08 I did do child measuring kinda myself May 29 23:45:25 s73v3r: no, it's all based on your top-left corner. so to position on your right edge, you'd call child.layout(x, y, width, z) May 29 23:45:32 where width == your view's width May 29 23:45:42 thanks May 29 23:46:42 nobody knows a website with advanced android tutorials? snif! May 29 23:46:43 to do it "properly" you'll generally want to do e.g. left = getWidth() - child.getMeasuredWidth(); and do everything in terms of "your dimensions" + "your child's measured dimensions" May 29 23:47:44 it depends on exactly what you want, but that should probably be your default approach, unless you have a good reason to do otherwise. (there are plenty of good reasons, but thinking in those terms is pretty flexible) May 29 23:49:31 until I got a better feel for it, I generally ended up regretting all seemingly-simpler approaches :) makes things too weird / semi-unpredictable. May 29 23:49:46 "correct" isn't too hard, it's just annoyingly verbose at times May 29 23:52:58 many things are May 29 23:55:31 yay, things work as expected! Thanks May 29 23:57:31 w00t May 29 23:58:41 guys, help me, what are the top 5 libs that evry android developer should know May 29 23:58:51 I really need to get this job! May 29 23:58:59 I know about volley May 29 23:59:13 and google maps and the google play services May 29 23:59:20 also facebook integration May 29 23:59:34 I need to learn at least 4 more libs! May 30 00:01:20 wtf May 30 00:04:28 You should definitely learn to write in smali too. It's a very important skill for an android developer :D. May 30 00:04:30 * JesusFreke kids May 30 00:05:22 JFlash you should definitely learn ActionBarSherlock ! May 30 00:06:08 MikeWallaceDev: new ImageSpan(ApplicationContext, bitmap) is okay? May 30 00:07:03 g00s, but google already has a compat lib out! May 30 00:07:10 g00s, no way! May 30 00:07:39 oh i'm not kidding, i saw a job posting a while back that had ABS as a required "skill" May 30 00:07:50 I see May 30 00:07:59 here's something I need to know May 30 00:08:05 i mean, i am kidding May 30 00:08:14 I already know Volley... should I also know Picasso? May 30 00:08:23 picasso or glide May 30 00:08:24 g00s: maybe they meant anti-lock braking systems? May 30 00:08:38 Volley’s image capabilities aren’t as good May 30 00:08:52 ok thanks May 30 00:09:08 and its lack of documentation so long seems to have (rightfully!) killed it before it got started May 30 00:09:52 who needs docs, its open source ! :P May 30 00:10:23 what about OKhttp May 30 00:10:31 do you need to know that if you know volley May 30 00:13:58 lasserix_, sure, are the both initialized? May 30 00:16:40 yeah May 30 00:16:46 just didn't know if application was okay May 30 00:20:32 question... I'm calling getResources().getString(R.string.asdf) and it's returning some garbage May 30 00:21:00 The value I want is "534401884363" but it's returning "1825939659" May 30 00:21:03 very, very strange May 30 00:23:34 reboot, reinstall Windows. It's the only way. May 30 00:23:56 well... I might just try cleaning the project first... ;) May 30 00:24:04 before you reinstall windows, its best to guttman wip the hard drive May 30 00:24:21 how do you create pull to refresh? May 30 00:24:28 at least a single pass with random should be sufficient May 30 00:25:24 I'd just buy a new computer. May 30 00:25:25 very strange. If I set the value with, say, a word, it comes back fine May 30 00:25:41 Not worth all the hassle. May 30 00:25:55 TacticalJoke, come on man. Be serious. You're always exagerating. May 30 00:25:56 I'm using resValue in gradle to generate it May 30 00:26:03 Hello. I'm running Bluestacks in VMware, required. I've set the VM to use a bridged connection, which it is. I'm trying to connect adb to bluestacks. The host machine is 192.168.1.100, the vm is at 192.168.1.108, bluestacks reports its IP as 10.0.2.15. As suggested by some SOF threads, I tried 192.168.1.108:10001 and 10002 May 30 00:26:07 TacticalJoke but you still have to wipe the new computer to get rid of all the bloatware May 30 00:26:47 so its probably better to just build the machine yourself May 30 00:28:16 Maybe create a new OS. May 30 00:28:38 matt_j: I use that to store an int. no problems so far. May 30 00:29:03 No other help channel is as thorough as this. May 30 00:29:06 Yeah, it's just an id for something May 30 00:29:41 matt_j: fwiw (partially out of paranoia) at work we explicitly quote the values we pass to resValue("string", name, ) May 30 00:29:48 possibly related? May 30 00:30:07 groxx: I put an underscore before the number and it worked :( May 30 00:30:12 wtf... bug in Gradle? May 30 00:30:26 I'll try that May 30 00:30:53 at this point TacticalJoke I would just this a "channel" May 30 00:30:57 I think there's also a scenario where it produces an un-typed tag, or something. don't remember why I'm thinking that though. May 30 00:31:12 ugh, if a base class has abstract package-private defs, they can't be overridden in a subclass, how fucked up is that :( May 30 00:31:15 Well, I do get a string-typed tag, and it's set correctly too May 30 00:31:21 I hate java (and I hate terribly designed api even more) May 30 00:31:26 but for some reason calling getString ends up with the wrong value May 30 00:31:53 groxx: Thanks!!! Escaping quotes into it fixed it <3 May 30 00:32:12 ¯\_(ツ)_/¯ dunno why, but cool May 30 00:32:18 probably a bug somewhere May 30 00:32:21 yea May 30 00:32:23 gradle ;) May 30 00:33:41 "Q: Why on earth isn't this working?" "A: Android." May 30 00:34:09 That's the end of our Q&A session. May 30 00:34:36 TacticalJoke brings you this year's Fireside Chat May 30 00:34:49 at least now we know where it went :) into IRC May 30 00:35:07 TacticalJoke: sigh, that's often true :( May 30 00:35:11 I loved the Java 8 thing. "What are your plans for Java 8." "We have no plans." (Or something. Paraphrased.) May 30 00:35:20 however there's lots of 3rd-party SDKs to blame! May 30 00:35:26 hooray blame! May 30 00:35:46 (╯°□°)╯︵ :iphone: May 30 00:35:52 * matt_j gives Localytics the evil eye. Localytics doesn't notice until 30 minutes later, when it feels like it. May 30 00:35:54 wat. it disabled emoji insertion now? May 30 00:36:11 ok so this guy says I must learn GSoN May 30 00:36:13 GSON May 30 00:36:34 fine! (╯°□°)╯︵ ☎️ May 30 00:36:40 but then this other guy says I must parse json using 'Jackson' May 30 00:36:41 I think the only way to learn these things is to create an app. May 30 00:36:50 Otherwise you're just window-shopping. May 30 00:36:52 and/or a dozen May 30 00:36:57 So I doubt this is possible, and it might be me trying to cut corners, but can you place a TextView inside of a WebView? May 30 00:37:12 yes I'm creating an app May 30 00:37:33 but I will use this to tes my knowledge starting on sunday May 30 00:37:52 ok back May 30 00:37:58 from here to sunday I will will mostly study them and not really code a lot May 30 00:38:09 t0astt: May 30 00:38:18 Jackson or GSON May 30 00:38:22 t0astt: it does support custom views.. not sure what your trying to do May 30 00:38:23 i cannot learn both May 30 00:38:44 JFlash: I've had good success with GSON May 30 00:38:49 right, i now need to work out how to get my preview rendering back working in AS May 30 00:38:52 JSONObject May 30 00:38:54 Plus it works pretty well with Retrofit, if you decide to use it May 30 00:40:43 Napalm: I'm trying to show an article from a Wordpress site. I need to display the featured image (imageview), article title, author, and then the body of the article which needs to be displayed in a webview so that any links/images within it load May 30 00:41:07 Napalm: The order is featured image, title, author, webview May 30 00:41:13 sounds fine to me May 30 00:41:17 whats the problem? May 30 00:41:43 100% pure grade weekend. ahhhh yeah May 30 00:41:43 JFlash, I'm not 100% sure, but I think more people use Gson May 30 00:41:56 grade? May 30 00:41:57 and from memory, I think it's more efficient or something May 30 00:42:10 Well I need the title and author to be scrollable May 30 00:42:12 tbh I suspect most people use JSONObject, because it's built-in. May 30 00:42:23 groxx you mean me? May 30 00:42:28 lasserix_: yea May 30 00:42:38 Napalm: But I'm also using this parallax library: https://github.com/ManuelPeinado/FadingActionBar May 30 00:42:46 t0astt: inject javascript into the page so hide its title feature image and so on.. and extract from the meta-data headers the values you want May 30 00:42:49 a chemist friend of mine is bringing some very rare gifts to celebrate this weekend :P May 30 00:42:53 barbs, t0astt , thank you May 30 00:43:16 lasserix_: aah. single-origin chocolate is tasty yea May 30 00:44:54 Napalm: Why would I want to inject JS into the page? The "content" I am displaying in the webview is already excluding the image and all that May 30 00:45:15 t0astt: but I thought you said you wanted to load the featured image in a ImageView instead? May 30 00:45:53 The featured image is already loaded in an ImageView... let me show you a screenshot May 30 00:47:37 Napalm: http://imgur.com/Osigh6Y The hot pink color is where the featured image is May 30 00:48:23 The parallax library will take care of scrolling the imageview, but I need the webview and article title/author/date to scroll WITH the webview May 30 00:51:01 ah May 30 00:51:09 welcome to the problems of WebView May 30 00:51:11 :D May 30 00:51:39 t0astt: lets talk about the problem here May 30 00:52:10 t0astt: the webview and the other content can be added to scrollview.. and now the webview will have to have a height of wrap_content May 30 00:52:17 what is the tabbed thing called May 30 00:52:31 Why do people build Android with the Linaro toolchain? May 30 00:52:36 t0astt: the problem here is now the WebView will have to load all its content and render it.. even if its off screen.. (sloowwww) May 30 00:52:38 where there are like tab titles and content underneath it May 30 00:52:43 and you can swipe to the left/right to go to diff tabs May 30 00:53:34 groxx yeah eggxactly :P May 30 00:53:37 adios! May 30 00:55:35 Napalm: I'll give that a try May 30 00:55:37 t0astt: the better thing I can think of is to ask the WebView to render a custom view which contains your header and then add padding to the body using javascript or something May 30 00:55:47 t0astt: see http://developer.android.com/reference/android/webkit/WebChromeClient.html#onShowCustomView(android.view.View, android.webkit.WebChromeClient.CustomViewCallback) May 30 00:56:52 t0astt: another method that could work is use a FrameLayout and place your content on-top of the webview May 30 00:57:18 use javascript to call into the app with the Y scroll coordinate and translate the content on-top by that amount May 30 00:57:43 the content-on top after layout should push the height into the WebView so it can set a top padding to the body contnet May 30 00:57:51 that last option is probably the best May 30 00:58:40 I'm going to give this a go May 30 01:01:00 alternatively, react to touches over the webview (but don't consume the event) to scroll the header in/out of view smoothly, and let the webview catch up whenever it feels like it. should act like a floating scrolls-in-and-out-of-view-on-scroll header. May 30 01:03:31 turns out i was looking for the ViewPager May 30 01:03:50 although tbh what is wrong with a tab host? May 30 01:05:06 hey guys, new to android and using the Android Studio. When i try to build a project i keep getting " May 30 01:05:08 Execution failed for task ':app:compileDebugAidl'. May 30 01:05:08 > aidl is missing May 30 01:05:20 has anyone experienced this? May 30 01:25:28 Are you using in-app purchases? May 30 01:27:36 also are you using Android M or 5.1? May 30 01:27:41 http://stackoverflow.com/questions/29766830/execution-failed-for-task-appcompiledebugaidl-aidl-is-missing May 30 01:48:34 "To help build a more personal Twitter experience for you, we are collecting and occasionally updating the list of apps installed on your mobile device so we can deliver tailored content that you might be interested in." May 30 01:48:51 yeah i hope thats one of those things i can turn off :) May 30 01:49:00 "We need more advertiser money. We're going to use you." May 30 01:50:24 I'm always tempted to feed insane data to apps that do this. like claim I have installed packages for like 1000 porn sites. or nothing but cheezburger.com apps. etc. May 30 01:51:34 aactionBar.setNavigationMode(ActionBar.NAVIGATION_MODE_TABS); <- why is this deprecated? May 30 01:51:42 im following this tutorial http://www.androidhive.info/2013/10/android-tab-layout-with-swipeable-views-1/ May 30 01:51:52 probably because actionbar is deprecated? May 30 01:52:16 err.. i'm not really sure what else to do May 30 01:52:22 also there's a new tab thing in the support lib... lemme see if I can find it May 30 01:52:34 i'm trying to stick to this tutorial because i believe it is easy to follow haha May 30 01:52:53 t0astt: still here? May 30 01:53:01 Napalm: I am! May 30 01:53:05 https://gist.github.com/slightfoot/c470b49905b9d61c6cdc May 30 01:53:07 tada May 30 01:53:13 TabLayout mentioned here: http://android-developers.blogspot.com/2015/05/android-design-support-library.html May 30 01:53:33 aspire: then keep going :) it still exists, they've just deprecated ActionBar in favor of Toolbar May 30 01:54:33 groxx, eek intellij doesn't like it though :( May 30 01:54:45 well i guess at some point it worked fine so i guess i'll just use this May 30 01:55:02 aspire: add the library to gradle compile 'com.android.support:design:22.2.0' May 30 01:55:05 now there is AppBarLayout or something May 30 01:55:47 next up: AppBarSherlock :) May 30 01:56:31 Napalm, how do i use that May 30 01:56:37 lol May 30 01:56:55 well what is it? May 30 01:57:02 ive never heard of it May 30 01:57:43 aspire: are you using Android Studio? May 30 01:57:46 will it make the deprecation go away May 30 01:57:50 and well i'm using intellij 14 May 30 01:58:01 aspire: with Gradle? May 30 01:58:07 yes May 30 01:58:20 well i just gave you the gradle dependency for the new library May 30 01:58:22 Error:Failed to find: com.android.support:design:22.2.0 May 30 01:58:22 Open File May 30 01:58:32 cant find it May 30 01:58:45 aspire: open SDK manager and update your support repository May 30 01:59:28 Napalm, this isn't found on maven? May 30 02:00:33 aspire: add the local m2 repo to your list of repositories, since your not using AS I assume you have to do that May 30 02:00:48 err 1 sec May 30 02:00:58 t0astt: does what you want? May 30 02:01:10 Napalm I'll check in a bit, I'm about to eat dinner May 30 02:01:31 t0astt: ok, well im going to go.. leave me a PM.. catch up tomoz May 30 02:17:08 allright well, thats it until i/o 2016 ! May 30 02:19:04 Is there anyone alive May 30 02:19:41 just ask your question May 30 02:20:39 Napalm: is there a generic object storage service for android? I want to collect sensor data continously, store it locally, and then sync if im on wifi May 30 02:20:51 yes May 30 02:20:56 Sqlite databases May 30 02:21:38 Napalm: what does the syncing? May 30 02:21:46 you do May 30 02:22:14 Napalm: what mechanism May 30 02:22:33 zump: what do you mean? May 30 02:22:38 zump also, how often will you be writing into the db ? May 30 02:22:46 all the time May 30 02:22:52 data is from pebble watch May 30 02:23:12 i mean, at what interval May 30 02:28:04 g00s: 100 hz May 30 02:28:14 Napalm can you ELI5, what is CoordinatorLayout for ? May 30 02:28:22 ELI5? May 30 02:28:31 explain like i'm 5 May 30 02:28:36 lol May 30 02:28:44 its a layout that coordinates others May 30 02:28:45 :| May 30 02:28:48 lol May 30 02:29:06 basically its required because all the new Nested scroll stuff is not backwards compatible because its in View May 30 02:29:09 zump thats ... bad May 30 02:29:23 screw it May 30 02:29:26 screw sql May 30 02:29:30 ill just write to csv May 30 02:29:33 and sync using dropbox May 30 02:29:35 so they travel up the tree to find a coordinatorlayout and use that to process things May 30 02:29:41 along those lines May 30 02:29:45 huh May 30 02:30:09 i had a data stream at 1KHz and I used a binary format with success May 30 02:30:10 ok think snackbar pops up and it has to move up the FAB button May 30 02:30:19 these two layouts are not in the same parent May 30 02:30:22 * hesperaux jumps in in the middle of a conversation May 30 02:30:30 that are completely in different parts of the view tree May 30 02:31:05 so snackbar tells the coordinator layout that something has changed and coordinator layout knows about the FAB and adjust it May 30 02:31:16 hmm May 30 02:31:52 I can't seem to import android support-design (Could not find com.android.support:support-design:+) anyone know what I'm doing wrong? I already downloaded the latest support library through the sdk manager May 30 02:32:07 zump i wouldn't save to the flash that often, maybe every 10sec mim May 30 02:32:35 you can throttle ir May 30 02:32:36 *it May 30 02:32:58 joshkovach: the docs are wrong.. look at your local m2 support repo and its com.android.support:design:22.2.0 May 30 02:34:28 thats why I never trust the official docs May 30 02:34:38 thanks May 30 02:40:10 guys anyone ever tried the parse local datastore android May 30 02:40:37 the... what? May 30 02:52:22 JesusFreke http://blog.parse.com/announcements/take-your-app-offline-with-parse-local-datastore/ May 30 02:52:55 ah, parse is a proper noun. May 30 02:53:10 you didn't parse that :) May 30 02:53:13 although, I'm not sure where the final "android" fits in, in his sentence May 30 02:54:10 I guess I'll just s/android/for android/ and call it good. May 30 02:54:14 https://github.com/ParsePlatform/OfflineTodos i dowloaded this but can't figure how to run in android studio May 30 02:56:20 the import to android studio cant run or build **** ENDING LOGGING AT Sat May 30 02:59:59 2015