**** BEGIN LOGGING AT Fri Jan 23 02:59:59 2015 Jan 23 03:01:26 Guys im using List .toArray method Jan 23 03:01:32 I need it to return a String array Jan 23 03:01:34 It cant be casted Jan 23 03:02:31 I guess it can only return an object array Jan 23 03:02:51 hey guys so...how would you suppose i get a edit text to sit at the bottom Jan 23 03:02:54 with a list view above it Jan 23 03:03:04 drose379: If you ultimately want an array, you don't need to use a List at all. Jan 23 03:03:16 so far, for the list view i did width: fill_parent and height:wrap_content Jan 23 03:03:27 I thought we were thinking that I should earlier TacticalJoke Jan 23 03:03:31 In any case, the List.toArray method that takes a parameter is generic; it won't return just Object. Jan 23 03:03:44 drose379: Well, if you should then you don't need to use an array at all, right? Jan 23 03:03:52 As far as I can see, it's either 100% List or 100% array. Jan 23 03:04:08 Ohh, you think I should go to the array for this use case? Jan 23 03:04:17 What is the exact situation? Jan 23 03:04:34 Adding this Array to an ArrayAdapter ( I know I shouldnt be using the arrayAdapter) Jan 23 03:04:37 DragonPunch: You shouldn't use height:wrap_content for a ListView. Jan 23 03:04:39 But, just for now Jan 23 03:04:47 How many items are in the array? Jan 23 03:04:54 Starting with like 4 Jan 23 03:05:01 Can go up to as many as the user wants Jan 23 03:05:14 What are the items? Jan 23 03:05:20 Strings Jan 23 03:05:56 I mean... what do they represent. Jan 23 03:05:58 TacticalJoke: what do you think than, how can I get like the listview above the edit text cuz its like a messaging app where i need edit text to sit at bottom Jan 23 03:06:07 They Represent Subjects Jan 23 03:06:18 DragonPunch: You could use a LinearLayout or a RelativeLayout or something. Jan 23 03:06:27 hmm Jan 23 03:06:29 okay Jan 23 03:06:34 drose379: That sounds more like a List thing to me. Jan 23 03:06:49 I need a string array though Jan 23 03:07:28 toArray Jan 23 03:07:38 ArrayAdapter can be given a List. Jan 23 03:07:46 It can? Jan 23 03:07:55 Yeah. Jan 23 03:08:08 Beautiful, Ill brb. Jan 23 03:08:13 Thanks again TacticalJoke Jan 23 03:10:00 drose379: The funny thing is that ArrayAdapter uses a List under the hood. If you give it an array, it transforms it into a List. Jan 23 03:10:20 haha, that is funny actually Jan 23 03:10:41 Though it makes sense because of, for example, the add() method. Jan 23 03:10:51 Ill brb Jan 23 03:11:05 any pro in git around , could not find a solution after hours on the web, lets say i want to checkout/important fs/f2fs from a remote repo into my master, how can I do so keeping only commits related to this folder Jan 23 03:14:40 khaon: mind elaborating? do you just want to pull a file from ? Jan 23 03:15:35 gordon_, sure , sorry ;D, I would like to merge this folder into my android kernel : http://git.kernel.org/cgit/linux/kernel/git/jaegeuk/f2fs.git/log/fs/f2fs?h=linux-3.4 Jan 23 03:15:50 but keeping all of its commits without the other ones from the remote kernel Jan 23 03:16:12 khaon there is always #git Jan 23 03:17:19 yep i went there aswell Jan 23 03:22:35 whats the thing to align Jan 23 03:22:37 a text Jan 23 03:22:41 to center of image Jan 23 03:24:42 does anyone know how i can go about getting the revision history of all changes that went from android 5.0 -> android 5.0.1 Jan 23 03:28:11 So, what do you do when you have a background process that will take just some milliseconds to be done, but sometimes, like, 15% of the cases, it will take longer, maybe up to 30 seconds? Do you still display an inderteminate progressbar for a split second in the other 85% of the cases? Jan 23 03:29:46 That's what are I'm doing now. It's justified, but just feels odd. Jan 23 03:29:59 Do you know in advance whether it's gonna take milliseconds or 30 seconds? Jan 23 03:30:11 Nope Jan 23 03:30:19 Then I don't think you have a choice but to show a ProgressBar. Jan 23 03:31:15 Yeah, I think so too :/ Jan 23 03:31:19 Thanks. Jan 23 03:33:29 Are you concerned that the user might see a flicker? Jan 23 03:34:37 yeah, it's just visually odd. But I think I'm really overthinking this. Jan 23 03:37:57 ProgressBars are so common. Even if the user saw it for a moment before it disappeared, that probably wouldn't be jarring at all. Jan 23 03:38:16 In fact, it might even give the impression of speed. Jan 23 03:39:38 Hmm. Hadn't thought about it this way. You're probably right. Jan 23 03:39:57 btw TacticalJoke how is your reddit client going so far? Jan 23 03:40:03 If you wanted to punish the user, you could make them wait for at least two seconds. Jan 23 03:40:18 It's going well, thanks. I'm about to switch to material design Jan 23 03:40:34 Just kidding about punishment, of course. :) Jan 23 03:42:47 haha I actually read someone suggesting something like that, for serious Jan 23 03:44:23 Hmm, I wonder whether it's possible for this sequence of events to happen: showProgressBar(), hideProgressBar(), redrawUi() Jan 23 03:44:57 In other words, I wonder whether the message queue works in a such a way that it would be possible to show and hide the progress bar before the user sees any change (and therefore, in effect, the progress bar would never become visible). Jan 23 03:45:50 Yeah, that's a good question. I have no idea, honestly. Jan 23 03:57:40 Thanks for the help today TacticalJoke and others Jan 23 03:57:41 Im out Jan 23 03:57:44 Night Jan 23 04:07:19 Is it ok to use google play game services gifting api to let users send a premium "Paid via In App Purchase" unlock to friends? Jan 23 04:07:47 trying to use putParcelableArrayList() to pass an ArrayList of my custom Parcelable class, and its not working... any ideas why? Jan 23 04:08:27 drinfernoo: why dont you show us your Parcelable code? Jan 23 04:09:13 well, it's nothing. I implemented Parcelable, and added the necessary methods, but that's all so far Jan 23 04:09:28 well your probably missing your static CREATOR Jan 23 04:12:01 k I'll go for it Jan 23 04:12:09 huh? Jan 23 04:12:33 drinfernoo: http://developer.android.com/reference/android/os/Parcelable.html Jan 23 04:12:43 if you only implemented the methods Jan 23 04:12:47 then your missing the CREATOR Jan 23 04:12:48 see Jan 23 04:19:15 Napalm, http://pastebin.com/S3WAKK2v. I'm still getting errors on args.setParcelableArrayList(ArrayList) Jan 23 04:19:47 that code makes no sense Jan 23 04:20:59 put your full code not just part of it.. or how can we help.. also;; args args.setParcelableArrayList?? Jan 23 04:21:08 ok hold on Jan 23 04:21:09 drinfernoo: whats the error anyway? Jan 23 04:21:15 in logcat Jan 23 04:22:14 it won't compile Jan 23 04:22:36 if it wont compile.. the compiler will give you the error Jan 23 04:22:47 * Napalm his rolls eyes Jan 23 04:22:51 * Napalm rolls his eyes Jan 23 04:23:56 c'mon seven! Jan 23 04:25:05 it says 'Method 'android.os.Bundle.setParcelableArrayList in 'android.os.Bundle' can not be applied to (java.util.ArrayList'' Jan 23 04:25:14 I'll have to git hold on Jan 23 04:25:27 I love middle-clicking identifiers in AS. Jan 23 04:25:33 So convenient. Jan 23 04:27:40 drinfernoo: probably because Bundle doesnt have a setParcelableArrayList method? Jan 23 04:27:44 lol Jan 23 04:28:17 excuse me, its put Jan 23 04:28:25 and I figured it out, I wasn't giving a key Jan 23 04:32:08 never used Parcelable or Bundle before lol Jan 23 04:52:40 Hello everyone, I’m testing out some android development but have run into simple problems that I can ’t solve. namely I have an intent filter working with a second activity, I’m getting the data properly however when I try to setText on a text view, I always get a NullPOinterException. activity code here : http://pastebin.com/SsSedmEE , and layout here http://pastebin.com/jKPQRxGf , error here: Jan 23 04:52:40 http://pastebin.com/jasCY2ew any help would be appreciated. Jan 23 04:55:36 cromestant: the error tells you the line at com.example.cromestant.tigoidtest.MainActivity2.onCreate(MainActivity2.java:26) Jan 23 04:55:53 Napalm: the line is the setText, Jan 23 04:56:14 cromestant: from what i can tell its because you try and and call findViewById before you have any views set by setContentView Jan 23 04:56:28 cromestant: make sure setContentView is above your findViewById in MainActivity2 Jan 23 04:57:45 Napalm: thank you, that was it. I was bashing my head in for something so dumb. Will look into how views are loaded up before attempting anything more. Jan 23 04:57:56 thanks again ( knew it was something so dumb)… Jan 23 05:23:30 is there a way shortcut in android studio to switch back to the tab you were look at previously. ie... I went from a -> b but now I want to go back b -> a Jan 23 05:25:19 try ctrl-e or command-e (mac) Jan 23 05:26:38 awwwwwwww that is soooo awesome Jan 23 05:26:45 *bow* *bow* *bow* Jan 23 05:28:14 that is just a great hotkey... let's you get to several features quickly, that combined with recent files. g00s++ Jan 23 05:57:54 khaon: you called me and I have no idea why ;) Jan 23 06:01:19 Ooh. You can change the error-stripe-mark minimum height in Android Studio. Jan 23 06:01:27 Finally that thing is usable. Jan 23 06:07:15 Has anyone seen an issue where abstract classes cannot be extended in different gradle modules? Jan 23 06:07:44 I'm in a really stupid situation where I can extend the class from within the same module, but if I copy-paste that same code into a class in another module, the compiler complains about not overriding abstract methods Jan 23 06:07:53 http://stackoverflow.com/questions/23740723/java-android-unexplained-compile-error-is-not-abstract-and-does-not-override-ab Jan 23 06:07:55 very similar to this Jan 23 06:08:50 I'm using the same compile/target/minsdk versions, as well as the same appcompat bundles Jan 23 06:09:00 and I've used verbose naming conventions for all class types Jan 23 06:19:34 Guys, I would like to know whether it is advisable to switch to android studio from eclipse for android development? Jan 23 06:21:46 borw3: Yes. Jan 23 06:23:04 TacticalJoke: No downside? and does it support other percpectives like if I want to create python or c++ ? Jan 23 06:23:42 It supports only Java/Android. Jan 23 06:23:50 No NDK support. A few other niggles. Jan 23 06:24:03 But it's the recommended IDE for Android development with Java. Jan 23 06:24:41 So nnt recomended for android development with lets say c++? Jan 23 06:26:51 As far as I know, it doesn't support the NDK. Jan 23 06:27:26 Wow lol, so ecllipse is still boss Jan 23 06:41:37 borw3: what ndk code are you writing? Jan 23 06:41:48 https://code.google.com/p/android/issues/detail?id=103263 this issue seems pretty serious but only has one star? anyone know of a workaround? Jan 23 06:42:21 on android lollipop, the setMinDate and setMaxDate methods of a datepicker are useless - the invalid dates are greyed out but the user can still choose them Jan 23 06:44:22 whatitis: I am not writing any code right now, just wondering if I should switch to android studio from eclipse, and it seems that eclipse is still boss Jan 23 06:56:24 Hello, how can I make logcat lag slower? I have very slow development machine and very slow device, so I often wait several minutes for exception to pop-up in logcat Jan 23 07:09:10 afl_ext: Use filters. Jan 23 07:09:23 It doesn't work, I use it Jan 23 07:09:38 it only filters messages received, but receiving takes ages Jan 23 07:18:56 Is it a known problem that ConnectivityManager's getActiveNetworkInfo can return null after a android.net.conn.CONNECTIVITY_CHANGE, or is that normal? Jan 23 07:27:02 AS supports more than Java/Android Jan 23 07:27:39 I have an old version of the Python plugin and Bash plugin installed. Groovy and Kotlin work well, of course. Jan 23 07:28:11 Kotlin works well on AS? Jan 23 07:28:18 plugin Jan 23 07:29:15 actually, not sure. i've only used it in IntelliJ IDEA 14! Jan 23 07:29:46 Kotlin targets Android and Android Studio in their build, so if it doesn't work on AS 1.0 and 1.1, it'll work on 1.2 (which is based on IntelliJ IDEA 14) Jan 23 07:32:20 got it Jan 23 07:49:34 hello everyone Jan 23 08:00:55 torgash, just saying what's up, or got any issues? Jan 23 08:03:45 just wanted to stay here if any issues take place Jan 23 08:04:56 they will, just remember, you aren't the first, so google is #1, here is for chit-chat Jan 23 08:06:15 no problem, out for googling what is a chit-chat (i'm russian) :) Jan 23 08:06:29 haha Jan 23 08:07:36 meaning, don't expect full answers, more help from people whom have had same issues as you in search of same end outcome, but SO and google should be your #1 resource, here is more of tit for tat Jan 23 08:08:23 so you mean here's the place for saying android is crap and same things? Jan 23 08:09:04 nope, here is more for chatter and discussion, other resources are more examples direct Jan 23 08:09:41 you can come across people here that have had your same issues, so can discuss, but google and smart searching are your #1 Jan 23 08:09:55 just depends on what you are developing Jan 23 08:10:43 what are you developing? Jan 23 08:15:13 well, my first project was a tiny poster for our point.im microblogging service. Just posting messages and uploading pictures to imgur.com Jan 23 08:15:27 now i'm just growing up and taking first orders Jan 23 08:18:15 well, like i said, be smart and remember you aren't the first with an issue, so search, but if all else fails, come here and pastebin code and what you've tried, and what's gone wrong Jan 23 08:20:36 thanks for this tutorial, still i had no intent to behave otherwise Jan 23 08:24:22 as for now, i've taken a rather serious project for beginner, a medical watch app with SQL Server sync. Drug intaking and measurements doctor control, live reminder list, SOS messages, all that. The first and most serious problem is API8 compatibility required, so I can't find any material design libs compatible Jan 23 08:25:12 lol, doctors aren't using froyo devices Jan 23 08:28:25 Dr Nick might **** BEGIN LOGGING AT Fri Jan 23 08:40:48 2015 Jan 23 08:40:51 client insists on compatibility :) Jan 23 08:41:52 torgash what region / market ? Jan 23 08:46:31 needing/wanting api8 is pretty petty, why the need, check google console, probably not a great need for it. unless app is pretty petty to match such an old api Jan 23 09:30:31 Mornin happy dev people. Jan 23 09:41:54 Hi! Using AudioTrack, how can I play sound at a frequency for a given time. I have it playing continuously at a frequency in a thread, I need some help with the time part Jan 23 10:04:43 hey guys... Jan 23 10:05:09 anyone here looking to take on a simple project, drop me an email please hello@inertialbox.com Jan 23 10:05:12 Thanks Jan 23 10:10:13 michael_mbp, read the topic Jan 23 10:25:00 Hello - do all devices that use the android platform share the same push notification setup? Jan 23 10:25:15 Or does the amazon Kindle for example, and Nexus tablet have two different setups and should be treated as two separate puhs notification services? Jan 23 10:25:35 Push notifications aren't part of Android platform. Jan 23 10:25:48 They're provided by proprietary services: Googe's, Amazons, etc. Jan 23 10:26:24 So if the device doesn't have Google services installed (e.g. Kindles) then you can't use Google's GCM Jan 23 10:26:31 and the other way around Jan 23 10:29:38 Mavrik: alright thanks, as i suspected then Jan 23 10:29:48 I should be settign things up depending on what app store the app is posted to then in a cross platform environment Jan 23 10:30:04 Bantalon, there are some services that try to help you with that Jan 23 10:30:07 eg an app installed from the amazon app store is most likely an amazon device then and should use the amazon setup Jan 23 10:30:08 e.g. AirPush I think is one of them Jan 23 10:30:12 cool Jan 23 10:30:25 many of those services are extremely costly though Jan 23 10:30:31 where they provide you with library that automatically interfaces with proper local service Jan 23 10:30:39 or they even have their own if the device has none installed Jan 23 10:30:43 Mavrik: isn't airpush an ad network? Jan 23 10:30:47 but... yes, they're rather expensive :) Jan 23 10:31:08 appel1, ugh, yes, Jan 23 10:31:16 sorry, I didn't mean the push notification scum Jan 23 10:31:16 http://urbanairship.com/ Jan 23 10:31:17 aye, no problem Jan 23 10:31:23 i have a great setup on ios already Jan 23 10:31:27 so will just port that over to android Jan 23 10:31:27 huh Jan 23 10:31:31 they stopped providing push Jan 23 10:31:34 o.O Jan 23 10:31:36 Bantalon, nevermind me then :/ Jan 23 10:31:37 urbanairship did? Jan 23 10:31:56 I know we tested urbanairship for that like few years ago, but now they're just an ad network looking at their page O.oi Jan 23 10:32:05 whaaat no way Jan 23 10:32:08 they were huge in push services Jan 23 10:32:12 i know a lot of friends using it Jan 23 10:32:21 i was even considering using it - am lurkign their irc for eventual help lol Jan 23 10:32:44 kewl - awesome thing i didn't go for them ,would be a hassle to convert back to my own setup now lol Jan 23 10:32:53 http://urbanairship.com/products/mobile-app-engagement Jan 23 10:32:55 Google doesn't allow apps with push ads on play store Jan 23 10:32:56 seems like they still offer it Jan 23 10:33:07 SimonVT: in what way ads? Jan 23 10:33:17 Maybe anyone know raprox release date of AS 1.2? Jan 23 10:33:21 if i ever push ads it's only for apps that we release that have any relevance to our users Jan 23 10:33:35 if we release a new app etc, we push a notification about that one Jan 23 10:33:40 In the way airpush, etc, worked when they were launched, I guess Jan 23 10:33:41 but not for third parties Jan 23 10:33:46 i see Jan 23 10:33:55 It's mentioned in the distribution agreement Jan 23 10:34:04 that's the same guidelines as ios then Jan 23 10:53:59 as we talk about GCM, did anyone setup XMPP Server for GCM notifications? Is it very hard? Jan 23 10:57:39 Hey Jan 23 10:57:46 has anyone used fragments in a scrollview? Jan 23 10:57:56 Im using fragments in a viewpager in a scrollview Jan 23 10:58:16 now, fragments layout params get ignored unless you set the viewpager to have a fixed heigh Jan 23 10:58:19 height * Jan 23 10:58:30 which is pretty much NOT what i want to do Jan 23 10:58:50 another route is to try set the pager height to the height of the active fragment Jan 23 10:59:01 but that also seems like a bit of an overkill Jan 23 10:59:05 any suggestions? Jan 23 11:00:13 assume that you've already googled and stackoverflown that. Pastebin your XML code, please Jan 23 11:02:25 im literally a SO repo at the moment of everything ive read Jan 23 11:02:44 no problem, provide your layout Jan 23 11:03:49 http://pastebin.com/f9uj3u9R Jan 23 11:04:46 torgash setting a viewpager to a fix height "solves" the issue Jan 23 11:04:56 assuming the fixed height is the same height as the fragment Jan 23 11:05:03 problem is, each fragment has its own height Jan 23 11:07:24 torgash setting a viewpager to a fix height "solves" the issue Jan 23 11:07:24 assuming the fixed height is the same height as the fragment Jan 23 11:07:25 problem is, each fragment has its own height Jan 23 11:07:29 sorry, internet issues Jan 23 11:07:32 okay Jan 23 11:07:44 got that Jan 23 11:09:07 generally, using one scrollable item inside another is not a very good idea. Instead of what you do now, you could use a ListView, putting what you want in its headers. I suppose, that could do some right work Jan 23 11:09:35 what I suggest you could help you get rid of measuring your viewpager's required height manually in code Jan 23 11:09:37 Sure, but im trying to go the whole material route Jan 23 11:09:54 so i need the scroll view for doing the whole header hero block minimizing Jan 23 11:10:01 hello, is this where I can kindly ask for design&functionality advice? Jan 23 11:10:01 pushing header into the toolbar type effect Jan 23 11:10:19 also, not all my tabs will be lists Jan 23 11:10:23 observablescrollview is some material lib, right? Jan 23 11:10:36 torgash, negative Jan 23 11:10:56 yes, assuming you previously googled and stackoverflew your problem Jan 23 11:11:01 vinalla scrollview with just some callback registering on scrollchange Jan 23 11:11:15 aha, i seee Jan 23 11:12:11 I did, but with no luck. My quest is for a way to scale an image on ToggleButton. I've tried ImageButton, but the thing I need is: a scaled background image in a selector with text on top Jan 23 11:12:30 Toggle doesn't have scaleType, and ImageView doesn't have Text Jan 23 11:12:36 imagebutton* Jan 23 11:13:31 and I'm trying to skip using FrameLayout with ImageView and TextView while it can disconnect Jan 23 11:14:11 Am I cooking a dangerous brew here? Jan 23 11:14:28 Am I making a dangerous brew here? Jan 23 11:14:42 any brainstorm is most welcome Jan 23 11:15:21 do you really need wrap_content in your viewpager? Jan 23 11:16:49 give me a moment... Jan 23 11:17:56 no problem, thank you for even considering helping Jan 23 11:17:58 let's start again. What image do you want to scale on your ToggleButton? Jan 23 11:18:38 what kind of? Jan 23 11:18:59 it's a drawable png Jan 23 11:19:48 inside a selector to apply a transparency effect when clicked Jan 23 11:20:01 :D Jan 23 11:20:38 hello, is anyone here using new twitter sdk? i would like to upload photos without using dialog but with rest api. maybe someone got ready to use retrofit interface for it ? Jan 23 11:20:43 i see. Unfortunately, got no studio nearby to look for a simple solution. But, basically, you can define your own selector in XML Jan 23 11:21:41 ok, but is there a way to apply scaleType or to scale the image before it gets to the selector and then the button Jan 23 11:22:27 i can't quite follow what is a scaleType, what it means Jan 23 11:24:02 it stretches and/or crops the image to fit the view it's in, making it look like it does originally, not all cramped up inside a box Jan 23 11:31:39 you can try to use a generic Button with android:drawableTop="@drawable/something" and add negative padding to your text Jan 23 11:32:11 android:drawablePadding="-15sp" or something kinda that Jan 23 11:32:56 still here? Jan 23 11:34:14 yes Jan 23 11:36:25 look for AsyncHttpClient, there was an example in github README for Twitter API Jan 23 11:37:13 probably you'll find it very suitable Jan 23 11:45:56 is there a way to purge in app purchase information from the play store’s local cache? Jan 23 11:46:00 or do i just have to wait? Jan 23 11:50:13 do you have some link ? Jan 23 11:50:19 will check that ina minute Jan 23 11:53:58 How can I add tabs to the middle of the activity view? the top portion is occupied, and I need the tabs to contain fragments. Any ideas? Jan 23 11:59:13 ok, I'll try it, thank you torgash Jan 23 12:00:25 you'll spend some time choosing the right padding, but you'll get clean and easy result without even a piece of code Jan 23 12:01:16 add a ViewPager with PagerSlidingTabStrip (look for it on github) in your layout below what occupies your top portion Jan 23 12:01:52 ok thanks for the pointer torgash Jan 23 12:01:57 there's a README in PagerSlidingTabStrip page that will explain what to do Jan 23 12:12:47 torgash I just need fixed tabs. there are only 3 of them Jan 23 12:14:17 Looks like there is one inbuilt in the SDK http://developer.android.com/reference/android/support/v4/view/PagerTabStrip.html Jan 23 12:15:01 what's this, inside app.iml? "android-agent-4.178.0" level="project" Jan 23 12:15:28 something to do with SDK tools I'm sure Jan 23 12:17:21 ok, looks like I could just use ViewPager+PagerTabStrip : Let me try anyway. Jan 23 12:26:33 hello Jan 23 12:26:53 i have a question Jan 23 12:29:31 just ask Jan 23 12:30:18 Hi guys, Is android studio worth it to use ? Jan 23 12:31:58 mtR_: yes Jan 23 12:32:05 I got an exception in developer console - stack trace. But I dont know which class throw this exception. How can know ? Jan 23 12:32:49 do you know package name (application id) of youtr app? Jan 23 12:33:00 try to find it in stacktrace Jan 23 12:34:19 it dont write my package.class, I know only exception (IndexOutOfBoundsException) Jan 23 12:37:34 here screenshot https://www.dropbox.com/s/wu8jrt5cx3uy89i/%D0%A1%D0%BA%D1%80%D0%B8%D0%BD%D1%88%D0%BE%D1%82%202015-01-23%2015.35.52.png?dl=0 Jan 23 12:37:55 there is no my package and class Jan 23 12:38:23 how can I to know which class ? Jan 23 13:01:33 Please someone give me a help http://stackoverflow.com/questions/28100089/android-toolbar-effect-google-i-o-app Jan 23 13:02:50 yuriheupa: do you have android 5.0 ? Jan 23 13:02:56 yes Jan 23 13:06:55 I've the google io app from play store, and the effect is on it, and i dont know a way to reproduce Jan 23 13:07:21 ugh Jan 23 13:07:34 we have something like that in our app Jan 23 13:07:39 but dont know ATM Jan 23 13:07:49 wait a sec Jan 23 13:09:20 yuriheupa: http://pastebin.com/zatM394R Jan 23 14:05:24 Is it possible to delete an app that has been unpublished from the android dev portal? Jan 23 14:10:50 anyone used the Butterknife plugin? https://github.com/inmite/android-butterknife-zelezny Jan 23 14:11:37 Bantalon, nope. you can only unpublish Jan 23 14:11:45 danijoo: alright thanks Jan 23 14:12:05 also i'm trying to figure out what key i need to type in into the Link Sender ID field in the play console Jan 23 14:12:16 but not sure if it is the project number of my project in the dev console? Jan 23 14:12:21 or something else? following this guide atm: https://support.google.com/googleplay/android-developer/answer/2663268 Jan 23 14:13:02 nvm, it says the project number is the sender id Jan 23 14:15:48 uh but keep getting this error when trying to link the project number as sender id: Invalid GCM API Key or C2DM Client Login Token (Bad Key). Jan 23 14:15:57 also get the same error when trying to use the project id instead of number Jan 23 14:17:06 did you enable GCM on Google API console? Jan 23 14:18:27 oh, no don't think so Jan 23 14:18:31 how do i access the api console? Jan 23 14:18:51 or ah - the developers console? Jan 23 14:19:31 Mavrik: nope still the same, activated "Google Cloud Messaging for Android" under APIs & auth in the developer conosle Jan 23 14:19:37 it now shows at the top with the "On" button ticked on Jan 23 14:19:41 but still get the same error Jan 23 14:23:05 Bantalon: why not follow the guide in the developer docs? http://developer.android.com/google/gcm/gs.html Jan 23 14:23:30 appel1: ah, i had no clue there was a better guide Jan 23 14:23:35 was following this so far https://support.google.com/googleplay/android-developer/answer/2663268 Jan 23 14:23:37 thanks! Jan 23 14:23:43 don't know if it is better =) Jan 23 14:24:24 has more info that the other lacked Jan 23 14:24:30 great, worked, thanks :) Jan 23 14:29:57 yeyeye, beautiful! android push notifications working! Jan 23 14:30:06 suuuuch a smoother setup to have to do compared to apple's amazing Jan 23 14:30:17 even the script to push is smoother Jan 23 14:40:21 guesa i will have to write that upload with my own api Jan 23 14:40:43 dont.know why twitter didnt implement image upload Jan 23 14:40:58 does anyone know how long the android pushtokens are in string length? Jan 23 14:42:32 dont know. try to debug ;) Jan 23 14:42:56 appears to be different from person to person :/ Jan 23 14:54:50 might be Jan 23 14:55:05 Why 1280x800 is the minimum requirment for the screen to develop android apps ? Jan 23 14:55:30 huh? Jan 23 14:55:38 you can dev on a gameboy screen if you want Jan 23 14:56:00 danijoo: http://developer.android.com/sdk/index.html#Requirements written here is 1280 x 800 Jan 23 14:56:08 Anyone know if there is a good youtube irc channel? Jan 23 14:56:29 thats requirements of android studio, not the requirement for developing apps Jan 23 14:57:00 danijoo: so it is not required for maybe developing in eclipse ... maybe for the emulator ? Jan 23 14:57:16 i dont know the requirements of eclipse Jan 23 14:57:21 try them Jan 23 14:57:53 danijoo: is there is a more preferred alternate way to develop apps ? Jan 23 14:58:08 alternative to what/ Jan 23 14:58:30 eclipse ... i hate eclipse Jan 23 14:58:48 try android studio or intellij Jan 23 14:59:05 android studio isn't built by intellij ? Jan 23 14:59:14 its build on top of it Jan 23 14:59:26 ok Jan 23 14:59:54 Is there any way to put tabs in the middle of an activity view? (currently I have a viewPager + PagerTab Strip to do this. But I would like to see if fixed tabs like this : http://derp.co.uk/9558c can be put somewhere other than on the actionbar) Jan 23 15:00:20 danijoo: sorry but i think i had a misconception ... can i run HAXM on an AMD processor ? Jan 23 15:00:23 I do no need the swipe capability to switch tabs either. Jan 23 15:00:38 cobra-the-joker, the emulator sucks. just dont use it. use genymotion Jan 23 15:01:10 interesting Jan 23 15:04:19 danijoo: is it a sane act to use android on a VM using virtual box to test the app ? Jan 23 15:04:54 genymotion uses virtual box. so its 2 clicks Jan 23 15:06:02 danijoo: thanx so much for this info Jan 23 15:06:12 sorry to disturb though :) Jan 23 15:07:40 I am trying to compile Android on a MAC, and I'm pretty confused by the repo program. I got repo to init, ran "repo sync", and thirty hours of downloading later I do not know how to build the code. Jan 23 15:08:16 I ran "du -h" and found that there is 35 Gig of data in the .repo folder. Jan 23 15:08:54 There is no code in the WORKING folder, where I hoped the code would go. Jan 23 15:09:18 Do I need to copy the code from the .repo folder? Jan 23 15:10:40 my repo init line is as follows: sudo ~/bin/repo init -u https://android.googlesource.com/platform/manifest -b android-4.4_r1.2 Jan 23 15:11:01 then I ran: sudo ~/bin/repo sync Jan 23 15:12:16 Jonathan_Eyre, read the topic Jan 23 15:12:42 The next step on source.android.com is to Initialize the environment with the envsetup.sh script. Jan 23 15:12:51 Which is missing. Jan 23 15:12:56 Jonathan_Eyre, topic. Jan 23 15:13:19 Ugh, sorry. Jan 23 15:13:23 :) Jan 23 15:14:50 is there a tools option for merge layouts so that the preview will show correctly based on what the parent is going to be Jan 23 15:16:57 * napster got it fixed Jan 23 15:24:01 Hey guys Jan 23 15:24:08 How do you handle proguard for complex apps? Jan 23 15:24:20 Mine has about 10 libraries mixed between gradle imports and jars. Jan 23 15:24:29 and proguard throws a fit every time I try to make an APK Jan 23 15:40:24 Avoid it if possible, spend hours setting it up if you actually need it Jan 23 15:44:01 shit in proguards mouf Jan 23 15:49:03 Hello, i'm trying to build the CMFileManager (pulled code from cyanogenmod/android_packages_apps_CMFileManager from github), I am getting errors about unknown methods (like myUserId), found that the default android.jar file doesn't have these classes, how can I resolve these issues? Jan 23 16:00:32 hi Jan 23 16:05:48 Is openJDK good enough for android studio in Ubuntu? Jan 23 16:09:50 vedu,it should work in linux. Jan 23 16:11:40 I got a question if i want to make database of stars in my android app is there away i can do it? Jan 23 16:16:41 vedu: Doesn't matter because it get's mapped to Android's implementation of Java Jan 23 16:17:15 perlsyntax: Yep, you can use sqlite Jan 23 16:17:41 perlsyntax: http://developer.android.com/training/basics/data-storage/databases.html Jan 23 16:17:48 yiati,thanks it bug me for the long time:) Jan 23 16:18:07 yiati: but studio runs on JVM right. Obviously the APK won't be affected Jan 23 16:19:03 vedu: Ah you mean the IDE not Android, I'm not sure, but probably Jan 23 16:36:26 can someone who recently build aosp for a nexus device provide me out/target/common/obj/JAVA_LIBRARIES/framework_intermediates/classes.jar Jan 23 16:38:11 Hi all, with the developer console it shows installs. I've got an app that is now unpublished. Do these recent installs mean that someone is sideloading the application? Jan 23 17:21:07 What HTTP client library is recommended? Is volley new and untested or good to be used or should I aim at okhttp? Jan 23 17:22:02 TabHost + TabWidget vs. ViewPager + PagerTabStrip : which is the best way to implemented tabbed navigation in an Android app? Jan 23 17:25:44 Do you want ViewPager functionality? If yes, ViewPager is best. Jan 23 17:34:24 SimonVT But I would like to use the fixed tab though :) Jan 23 17:34:34 Then do that Jan 23 17:35:21 SimonVT how?! :) PagetTabStrip and similar widget uses a sliding effect. Jan 23 17:36:46 ViewPAger lets you set the current item Jan 23 17:36:54 And it has callbacks that tells you the current item when swiping Jan 23 17:37:08 Create a tab bar Jan 23 17:37:09 im trying to use mapView , and mapActivity but it doesnt display any thing but it gives me this error http://chat.developpez.com/upload/54c285bd9e524/citation.html Jan 23 17:37:28 this error isnt normal Jan 23 17:37:36 SimonVT yeah, but what I'm referring to is fixed tabs like this : http://derp.co.uk/9558c Jan 23 17:37:46 Yes Jan 23 17:37:49 Easy to create Jan 23 17:37:58 i have this error Rejecting re-init on previously-failed class java.lang.Class Jan 23 17:38:08 instead of this SimonVT http://4.bp.blogspot.com/-EidzCtGC3SM/T_BQA5umaqI/AAAAAAAAAJI/lMiKsm7JxzM/s1600/PagerTabStrip.png Jan 23 17:38:12 does some 1 have any idea? Jan 23 17:38:25 SimonVT Can you give me a hint on how? Jan 23 17:38:47 When you click a tab, tell the, viewpager what page to display Jan 23 17:38:59 When the viewpager is swiped, select a tab based on position Jan 23 17:40:09 SimonVT PagerTabStrip already works fine when clicking on items in it. Jan 23 17:40:22 mkay Jan 23 17:40:32 Anyway, nothing's stopping you from using static tabs with a viewpager Jan 23 17:41:49 but how?! thats the question :) Jan 23 17:44:24 specifically, this is not along with Actionbar.NAVIGATION_MODE_TAB. I have the tabs almost at the middle of the activity UI. Jan 23 17:47:12 all the examples on the web uses tabs with actionbar navigation mode. Jan 23 17:47:53 You don't need examples to set a click listener on some tabs, and a listener on a viewpager Jan 23 17:52:10 SimonVT yep, this is my current setup, https://gist.github.com/anonymous/6301875ce3f61c04ee16 can you take a look Jan 23 17:52:50 and in the activity : this https://gist.github.com/anonymous/6cf4f6363bdb30d4f9b5 Jan 23 17:54:25 And the output is this : http://derp.co.uk/a330b Jan 23 17:55:00 The problem is, I cannot see the third tab on the screen, until I click on the second tab SimonVT :) Jan 23 17:57:53 evening all :) Jan 23 17:58:15 evening :) Jan 23 17:59:49 so I'm creating a content provider which fetches data from the net - all fairly straight forward. I've realise implementing the query function that if I put all that work into the one class it will be HUGE! So I've created a couple of separate classes to handle the actual work. THey're fairly straight forward and now so is the provider - all good :) Jan 23 18:00:16 I've never used PagerTabStrip, so I wouldn't know Jan 23 18:00:40 My issue is that the new classes are just full of essentially static methods, I've read that if you end up with a class like that it's generally because you're doing OOP wrong. Am I missing something or is what I'm doing valid? Jan 23 18:00:42 ok Jan 23 18:01:06 I would probably need to create a custom TabStrip to make this work Jan 23 18:05:22 g_steinert, it's not necessarily wrong. But I suspect you could benefit from thinking in OOP terms. Jan 23 18:05:45 Impossible to say without know your app, and always subjective. Jan 23 18:06:21 If it works, it's obviously "valid" by some measure, eh? Jan 23 18:07:36 Think of the attributes of OO, and try to imagine how your design might benefit, particularly in terms of maintainability, but also potential code reuse. Jan 23 18:07:52 If you still think it's OK, then don't sweat it. Jan 23 18:08:58 FlipBill: maybe valid was the wrong word :P the thinking in OOP terms is what I'm struggling with. The reason for the separate class is purely to keep the size of the one class down to a manageable size. There are no member variables, so everything is purely procedural in there. Jan 23 18:09:26 I guess it's just a case deciding whether that's a good enough reason to create a new class :P WHich now I think baout it works for me! Jan 23 18:09:26 g_steinert, I believe there's nothing wrong in such thing like plenty of static methods, if you really need them and they work. Generally, it's all up to your convinience and programming logic used. Jan 23 18:10:09 assuming that you really know what "static" means, I think it's all right Jan 23 18:10:23 g_steinert, certainly you must be instantiating objects. Do you have an Activity? Jan 23 18:10:33 g_steinert: I think a key factor regarding class design is how many responsibilities a class has, rather than how large a class is. Jan 23 18:11:07 I am instantiating plenty of objects, it's just I've ended up with this class that really doesn't need to be. Hold on and I'll pastebin. Jan 23 18:11:22 ok Jan 23 18:11:55 TacticalJoke, that's a good way to frame it. Still, I get itchy when something approaches 1000 lines. Jan 23 18:12:26 I get suspicious that I haven't thought it through well enough. Jan 23 18:13:02 http://pastebin.com/WZa3Q7de Jan 23 18:13:18 I agree. Generally, I suppose, a single Fragment class is pretty normal if less than 1000 Jan 23 18:13:21 That shows the relevant part of the two classes Jan 23 18:13:56 Yeah, a large size suggests all kinds of bad things (e.g., SRP violation). Jan 23 18:14:43 sorry but that pastebin tells me nothing Jan 23 18:15:05 g_steinert: Did you forget the 'static' keyword in that code? Jan 23 18:15:09 torgash: i guess i'm not explaining myself very well... Jan 23 18:15:30 g_steinert, the pasted code shows static that are immutable. Who could object to that? Jan 23 18:15:41 The methods are not static. Jan 23 18:16:17 g_steinert: what is it you are trying to accomplish? Jan 23 18:16:24 TacticalJoke: yes i did, i'm still in the middle of writing it - it was just supposed to show the concept I'm struggling with! Jan 23 18:16:53 TacticalJoke, Yes, SRP, exactly. But Responsibility can be truly amorphous. I can rationalize anything. Jan 23 18:17:26 Right. I guess it boils down to defining it in terms of our goals (e.g., having easy-to-change code). Jan 23 18:17:39 TacticalJoke, Bingo Jan 23 18:17:43 now I see. Those static variables really deserve being static. Jan 23 18:17:45 herriojr: I'm trying to use a ContentProvider to fetch contact details from a web API and pass it to my app. The reason for the ContactManager class (badly named now that I think of it) is to remove the responsibility of the nitty fritty of fetching the data from the content provider. Jan 23 18:18:34 torgash: which variables? Jan 23 18:18:36 g_steinert: if there are no member variables, and it only has static methods, then it's likely a "utility" class. My main question would be if you plan to uses those utility methods from multiple places. If not, then it's probably better to put them in the class that's using them, unless there's a clear reason not to. Jan 23 18:18:54 Does anyone here use Realm? Jan 23 18:18:58 Yeah, utility classes are like Utilities in Monopoly. :) Jan 23 18:19:05 g_steinert, I find that as my understanding of my own design progress, I have to go back and change the names of classes and variables that were poorly chosen. Jan 23 18:19:07 Any thoughts on using it? Jan 23 18:19:09 Generally: do not want. Jan 23 18:19:45 Or at least "will not pay much for". Jan 23 18:19:51 all those static ones in that pastebin Jan 23 18:20:13 JesusFreke: that makes sense, i guess as long as it's properly separated into functions it isn't going to be too hard to follow Jan 23 18:20:25 I say 90% of development is design. You can design first, then code, or design later. Doesn't matter, but it won't work until you've done the 90%. Jan 23 18:20:55 torgash: ah i see! yeah, those aren't my issue, my issue was ending up with a utility class (ContactManager) Jan 23 18:20:56 or to put it a slightly different way, don't move code to a different class just to make the classes smaller. But if you can logically split it up so that there is better abstraction, then it is probably a win. Jan 23 18:21:34 That elusive better abstraction Jan 23 18:22:01 right, I think I know what I'm doing :) thanks guys (And gals as appropriate) Jan 23 18:22:36 g_steinert: the difficulty (unless they changed it in the last two years) with using a ContentProvider with a Web API is what do you do when the web request fails (Is this an authenticated request?) Jan 23 18:23:31 why is it an issue at all? If your methods really are multi-usage utilities, you've chosen the right place for them. But if you call some method once or twice during the whole application lifecycle, you just do too much work splitting your code, wasting time and mazing up the project structure. That's all. Jan 23 18:24:28 herriojr: I hadn't thought of that! I'll cross that bridge a bit later on I think! Still getting my head around content providers at the moment! Jan 23 18:25:09 Anybody use @Nullable in AS? I managed to get a build to run without complaining about the annotation. Jan 23 18:25:34 But there is not a peep about unchecked usage of a nullable method elsewhere in the code. Jan 23 18:25:48 Feels like I'm missing sometheing that should be obvious. Jan 23 18:26:16 g_steinert: generally, it will help you design things if you take into consideration what to do when things fail Jan 23 18:27:00 g_steinert: and always assume network requests will fail Jan 23 18:27:37 CO poisoning? Jan 23 18:28:48 damn, it's sometimes so hard thinking both in English and in Java :) Jan 23 18:29:01 torgash, switch to COBOL Jan 23 18:29:17 aha... haskell Jan 23 18:30:11 and lose the last piece of connection with the world Jan 23 18:30:22 torgash: just forget English :P Jan 23 18:31:00 herriojr, do you really know what you're talking about? I'm Russian. It's much easier to forget English for me than you can think :) Jan 23 18:31:32 torgash, we won't let you forget. yammer yammer Jan 23 18:32:06 oh, really?:) Jan 23 18:32:41 but still I haven't visited IRC for, hmmmm... 8 years Jan 23 18:32:58 We missed you! Jan 23 18:33:31 missed shooting? Jan 23 18:33:37 :0 Jan 23 18:34:05 * torgash drank a gallon of water and checked if something's leaking Jan 23 18:34:14 herriojr: I plan to... eventually! I want to get my head around the basics forst then revisit the worst-case parts Jan 23 18:34:22 * FlipBill gets a mop Jan 23 18:35:14 oh nooooo! That really should happen with HoloLens: http://img0.joyreactor.cc/pics/post/Hololens-microsoft-1825066.png Jan 23 18:36:19 I guess my plan to use @nullable instead of thinking for myself is a lost cause Jan 23 18:36:46 FlipBill: what are you trying to do? Jan 23 18:37:21 FlipBill: Are you sure you didn't disable the inspection rule? Jan 23 18:37:40 I did (because it's annoying being told that I need to check whether the result of Activity.getActionBar is null, and so on). Jan 23 18:37:44 herriojr, Changed the rules to allow absence of something. Trying to get AS show me where I need to examine code. Jan 23 18:38:07 define: AS Jan 23 18:38:13 Android Studio Jan 23 18:38:19 You're using Analyze > Inspect Code, too, I assume. Jan 23 18:38:45 Bad assumption. Thanks, TacticalJoke Jan 23 18:38:56 * FlipBill scurries off to inspect code. Jan 23 18:41:03 * torgash scurries off to play WoT for a while Jan 23 18:42:17 Wow. Unnecessary semi-colons. I'm too thin-skinned for this shit. Jan 23 18:43:47 Yeah;; Jan 23 18:51:40 FlipBill: yeah, I use the @Nullable, @Nonnull annonations all the time, and get the warnings in AS when I do something stupid wrt a nullable object Jan 23 18:51:48 well, in IDEA Jan 23 18:52:51 JesusFreke, OK. It appears that support can come from various sources... Jan 23 18:53:08 I'm now futzing with this... http://tools.android.com/tech-docs/support-annotations Jan 23 18:53:37 oh, but wait - I have to try to install it, accorinding to the IDE Jan 23 18:54:31 If you're using gradle Jan 23 18:54:35 add the 'com.google.code.findbugs:jsr305:1.3.9' dependency Jan 23 18:55:01 JesusFreke, sure, I'll do that magic. Jan 23 18:55:02 that has the javax.annotation.Nullable/Nonnull Jan 23 18:55:22 and I think AS should be configured out of the box to recognize the annotations and report problems Jan 23 18:55:42 but if not, make sure you have the inspection enable. Just search for Nullable in the settings, and you'll see the inspection Jan 23 18:56:24 You might need to hit the "Configure annotations" button in the inspection, and select the javax classes Jan 23 18:56:28 JesusFreke: Is it better to use FindBugs than the support annotations for @Nullable and @NotNull? Jan 23 18:56:32 s/Not/Non/ Jan 23 18:57:02 Just curious -- haven't tried this yet. Jan 23 18:57:14 TacticalJoke: probably doesn't matter. that's just how I have it set up Jan 23 18:57:54 TacticalJoke: afaik it doesn't matter. the inspection is run by intellij, it just looks for findbugs (and I think one other) @nullable/@notnull annotations for compatibility purposes Jan 23 18:58:13 Looking at File>Settings>Inspections, don't see anything about annotations Jan 23 18:58:22 * FlipBill rubs eyes and blinks Jan 23 18:58:23 e.g. because findbugs annotations work anywhere findbugs does, but it would be a bit strange to use intellij annotations in an eclipse project. Jan 23 18:58:31 anyone here know much about the MediaCodec api? Jan 23 18:59:57 FlipBill: just search for Nullable Jan 23 19:00:03 in the top search box thingy in the settings Jan 23 19:00:31 File->Settings -> search for Nullable Jan 23 19:00:53 The inspection is called @NotNull/@Nullable problems Jan 23 19:01:05 it's sorted in the N's Jan 23 19:01:08 JesusFreke, search box, duh. Thanks. It is checked under "Probable bugs" Jan 23 19:01:52 ah, interesting. didn't know about that dialog. Jan 23 19:04:58 So Inspect does indeed flag something as a @NotNull/@Nullable "Probable bug", but not what I expected Jan 23 19:05:10 * FlipBill furrows brow, moans Jan 23 19:05:17 What does it flag? Jan 23 19:06:44 I'm not sure whether to get rid of all my @SuppressWarnings("serial") on custom exception classes now that I know that Android Studio doesn't enable that warning by default. Hmm. Jan 23 19:06:50 annotations^ Jan 23 19:07:04 It should flag if, e.g. you do Object blah = methodThatReturnsNullable(); Jan 23 19:07:12 and then directly access a method/field on blah Jan 23 19:07:37 or if you then try to return blah in a @NotNull method Jan 23 19:07:37 It flags object passed to CompareTo method that I have overridden in a Comparable. That makes sense, I suppose. Jan 23 19:08:21 But I didn't ask for that. Jan 23 19:08:40 I have a @Nullable elsewhere with unchecked references somewhere else. Jan 23 19:08:45 They didn't get flagged. Jan 23 19:09:03 Also, the message is cryptic to me... Jan 23 19:09:10 what's the message? Jan 23 19:09:41 Not annotated parameter overrides @NonNull parameter - oh wait - not so cryptic Jan 23 19:09:58 But not really interesting to me. Jan 23 19:10:18 You can tweak that in the inspection settings Jan 23 19:10:22 I guess the superclass uses @NonNull. Fair enuf Jan 23 19:11:16 So I noticed after swapping all my Log.* calls for Timber.* calls that the API is not consistent. How does the TAG work when logging with Timber? Jan 23 19:11:19 I guess I'll look for the tweak to out that to bed. Jan 23 19:11:25 s/out/put/ Jan 23 19:12:43 Is the assumption that TAG is annoying and pointless, so Timber just got rid of them altogether? Jan 23 19:13:10 All I see in Inspection settings is checkable @NotNull/@Nullable problme Jan 23 19:13:15 problems Jan 23 19:14:09 nm, I guess I should just get better at RTFM Jan 23 19:17:59 TAG is annoying, but not pointless Jan 23 19:20:44 I think I will save myself time by just letting some runtime NPEs happen. I've messed up my AS config with this stuff. Jan 23 19:21:18 shekibobo: I dunno, but personally I think the tags are mostly pointless. and they're forced to be REALLY short, or it silently fails on you. Jan 23 19:22:43 pfn: what does tag do beyond what you could do by hand by prefixing a string to your messages? I might just not be aware of it :| Jan 23 19:22:49 I'm trying to change the accent color for my navigation drawer only Jan 23 19:22:51 ah, I guess there's Log.isLoggable... yeah? Jan 23 19:23:18 so I thought I'd create a theme that inherits my regular theme and overrides colorAccent Jan 23 19:23:48 then in the drawer layout's root element I have app:theme="@style/MyDrawerTheme" Jan 23 19:24:04 (I'm using the support library) Jan 23 19:24:23 but that doesn't seem to work, the elements in the drawer are still getting the main theme's colorAccent Jan 23 19:24:27 groxx, proper filtering and querying Jan 23 19:24:46 pfn: "proper", beyond what you can do with grep? Jan 23 19:25:00 grep is slow Jan 23 19:25:03 it's certainly how it's _intended_, but that doesn't make it automatically useful Jan 23 19:26:22 shekibobo: I just looked at the sample; it still appears to support tags (with Timber.tag). Are you sure it doesn't? Jan 23 19:26:55 groxx, it's useful for purposes beyond simple grep filtering Jan 23 19:27:29 e.g. presenting a list of all available logcat tags for browsing, etc. Jan 23 19:27:34 ide logcat browsers still suck at this Jan 23 19:27:49 better grouped, selection, etc. Jan 23 19:28:38 yeah, and Android Studio's is way worse than Eclipse's :( Jan 23 19:28:57 i'm still waiting for AS to let me choose which columns to show Jan 23 19:29:00 for IDE / logcat-viewer purposes, yeah, they make sense. Jan 23 19:29:26 there has been an enhancement request for that for a while, seem like its fundamental and easy to do Jan 23 19:29:34 I'm getting close to trying to build one myself :| pidcat is a nice step up from plain logcat, but I want live filtering, bigger scrollback, persistent save-to-file, etc. Jan 23 19:29:42 it is fundamental, just no one's bothering to do it Jan 23 19:31:46 write something and submit it back to google/jetbrains Jan 23 19:32:03 "dudebros, ur logcat is teh suck. fix dat." Jan 23 19:32:15 pull request or gtfo Jan 23 19:32:21 haha Jan 23 19:32:59 * pfn wonders why his linux vm can't adb-wifi to his device Jan 23 19:33:08 I have my adbkey* files copied locally... Jan 23 19:33:10 * pfn shrugs Jan 23 19:34:01 * pfn goes back to trying to figure out a weird webview orientation bug Jan 23 19:34:11 * groxx wonders why adb disconnects sporadically from inside his vms, or at least it does with firefoxos stuff Jan 23 19:37:32 le holding it landscape, the webview won't render Jan 23 19:37:48 even if my activity is locked to portrait, if I bring it up whi Jan 23 19:37:53 ^^ reverse order of lines above Jan 23 19:38:53 it's so weird... Jan 23 19:40:56 won't render at _all_? Jan 23 19:43:57 nope, it might render the background color Jan 23 19:44:08 but otherwise won't render Jan 23 19:46:11 So thankful for git. Restored dozens of files polluted by annotations inserted by AS. Jan 23 19:46:37 I am going to have to learn this stuff in a smaller sandbox. Someday, maybe. Jan 23 19:48:25 Revision-control systems are the only thing stopping programmers from going insane. Jan 23 19:48:55 I don't think it actually stops us from going insane, just delays it Jan 23 19:49:27 it lets us branch our sanity, and merge to insanity Jan 23 19:49:48 pfn: how did you even get those lines reversed? Jan 23 19:50:15 herriojr: no, it allows us to argue about something pointless in the scheme of things, to blow off steam. so TacticalJoke is somewhat correct. :) Jan 23 19:50:17 lewellyn, I hate mac Jan 23 19:50:29 lewellyn, my lines got cut as I was typing Jan 23 19:50:32 i've never had a mac do anything like that. :P Jan 23 19:52:02 * pfn shrugs Jan 23 19:52:06 somehow shit got cut Jan 23 20:05:26 gotta love UK2... cancelled my server with them a few weeks ago. can't control it through the control panel - as I would expect, so I thought it had been shut down and removed - but the quassel daemon keeps connecting to freenode!and every time I shut it down over SSH it start back up again a few hours later! Jan 23 20:06:49 hey, any idea if android studio is failing to work if my windows username aint in latin characters Jan 23 20:07:45 lil_Toady, Are you running the Roman Catholic version? Jan 23 20:08:01 lil_Toady: I read somewhere that there was a problem if your home directory contained non-latin characters. if there's a way of setting AS to look for your project and sdk files somewhere outside your home directory you might have some luck? Jan 23 20:08:04 uhm, i dont think so Jan 23 20:08:40 it rather can't find dependencies in .AndroidStudio Jan 23 20:08:45 even tho they are certainly there Jan 23 20:09:02 so gradle keeps throwing errors Jan 23 20:09:04 FlipBill: just had a mental of image of walking into a roman catholic service and hearing "Lorem ipsum dolor sit amet" Jan 23 20:09:21 * FlipBill cackles Jan 23 20:09:42 I like that AS supports //region //endregion comments. Could be useful for Parcelable, perhaps. Jan 23 20:11:00 i kinda expected AS not to work out of the box, java has always been a bitch to me :( Jan 23 20:11:49 lil_Toady, She hasn't treated me well either. Jan 23 20:12:49 TacticalJoke: I was just wondering. I thought it was a 1:1 method mapping with Log, but all I was seeing in my logs was the TAG Jan 23 20:12:54 Though there appears to be no way to get them to collapse by default. Hmm. Jan 23 20:13:21 TacticalJoke: Since Timber does what it was doing anyway, I just killed all my TAG constants Jan 23 20:18:04 is there even any way to move .AndroidStudio outta user home Jan 23 20:20:24 drawTextOnPath (canvas) is incredibly expensive :[ Jan 23 20:21:27 lil_Toady: https://intellij-support.jetbrains.com/entries/23348963 Jan 23 20:21:58 That guy's profile photo is so intense. Jan 23 20:25:01 lil_Toady: there should be an environment variable to control where the directory goes. I don't know what it is offhand :) Jan 23 20:28:07 thanks Jan 23 20:28:30 JesusFreke: That's not mentioned in the link I posted, so I'd be surprised. Jan 23 20:28:43 What I posted seems to apply to Android Studio (though I haven't tested it). Jan 23 20:49:52 good evening Jan 23 20:49:56 herriojr: re Jan 23 20:50:42 john67: hi Jan 23 20:51:21 herriojr: thnx for yesterday i was able to use it , both the 2 methods Jan 23 20:51:30 TacticalJoke: good evening Jan 23 20:52:22 john67: great! let me know if you need any more help Jan 23 20:52:44 herriojr: i need some help , but its not with fragment Jan 23 20:52:53 john67: what's the issue? Jan 23 20:52:53 im actually doing the android developpement course Jan 23 20:53:03 but it seems the mapview doesnt work Jan 23 20:53:36 define: doesn't work Jan 23 20:56:16 Rejecting re-init on previously-failed class java.lang.Class got this error and also Jan 23 20:57:03 do animations work in services? Jan 23 20:59:03 herriojr: shud i send u the entire project? Jan 23 20:59:54 john67: just send me the full stack trace via pastebin.com Jan 23 21:04:02 Man, this is awesome http://www.android.com/auto/ Jan 23 21:04:28 it is? Jan 23 21:04:34 herriojr: http://pastebin.com/HZRVyCeE Jan 23 21:05:11 john67: you didn't declare your Activity there in the manifest Jan 23 21:05:18 AddLocationMapActivity Jan 23 21:05:28 pfn I'd say the idea of being able to develop for vehicle displays with my current skills is pretty sweet. My buddy just got a new vehicle with a display, not sure what it's running Jan 23 21:05:36 I'd love android auto. or just decent screen mirroring. my phone is _infinitely_ more useful than the shitty touchscreen that's in the car. Jan 23 21:05:53 mattblang, sure, the fact that it's android is awesome, the availability is more up in the air Jan 23 21:06:06 Jan 23 21:06:08 pfn yeah, I wonder how the adoption will be Jan 23 21:06:11 its declared Jan 23 21:06:36 then not properly — that's the only way it wouldn't find your Activity Jan 23 21:06:59 john67: what's your package name for the application? Jan 23 21:07:29 oki, i will put the package name then Jan 23 21:08:08 john67: if your package name declared in your manifest isn't "com.example.taskmanager" it won't work with how you declared the activity Jan 23 21:08:51 package="com.example.taskmanager" Jan 23 21:08:54 its Jan 23 21:09:32 herriojr: i think i comes from something else Jan 23 21:09:37 mattblang, and of course, there's the old cars that will never get it Jan 23 21:10:09 although, I'd like to replace the nav unit in my car, but then whatever I use to replace it needs to integrate with steering controls, etc. I don't particularly expect first-gen auto devices to work so easily Jan 23 21:10:33 man, getting android studio to work is harder than it was with eclipse Jan 23 21:10:40 pfn shall henceforth be known as pfn the Party Pooper Jan 23 21:10:47 mattblang: I used to work in automotive — adoption rate generally takes a long while Jan 23 21:11:08 i kinda wonder if android auto is a data feed for Google self driving cars Jan 23 21:11:42 thats is , everybody's android auto sends more fine grain data about the car to a location which impacts the operations of self driving cars in the area Jan 23 21:12:17 I expect auto devices to tightly controlled by auto mfr and bound to expensive subscriptions Jan 23 21:12:51 Let the auto mfrs lag. They get dragged in this arena anyway. Jan 23 21:12:53 FlipBill: the only thing they care about is minimizing their responsibility in case of an accident Jan 23 21:13:37 herriojr: its doesnt come from the package or the activity, bcos i have change it and used Jan 23 21:13:45 FlipBill: their implementation is actually a merging of two concepts that were already in place Jan 23 21:13:46 but i have the same error Jan 23 21:13:48 They do care about liability, but they care more about maximizing revenue. Jan 23 21:14:34 And they have a fantastic market to lock customers into. Jan 23 21:14:47 FlipBill: to some extent — I still have contacts in that space, so I know what they're heading towards Jan 23 21:15:29 They brag about offering wifi hotspots on wheels. Jan 23 21:15:30 g00s: I wouldn't be surprised if one day tranponders become required for cars Jan 23 21:15:56 Like buying a carrier locked cellphone for $30,000 Jan 23 21:16:20 p_l, Neither would I Jan 23 21:16:38 How can I use custom animations in a selector xml file? Jan 23 21:16:49 but they are not even required for airplanes in most airspace Jan 23 21:16:55 I have a selector which I'm using for a ToggleButton, but I don't like the fade animatiom Jan 23 21:17:06 FlipBill: they are in C-class Jan 23 21:17:10 wifi has been in cars for a long time Jan 23 21:17:16 I've looked into animations and can only find way to animate the whole view Jan 23 21:17:23 FlipBill: and some areas are declared transponder-only Jan 23 21:17:31 Or use animateDrawable with loads of layers which I don't really want to do Jan 23 21:17:34 AKK9: what exactly are you trying to do? Jan 23 21:18:14 john67: try cleaning and running your project again — I don't know why it would bitch about an activity not existing in your package when declared and existing there Jan 23 21:18:40 herriojr, I have a ToggleButton which is a checkbox. I want to add a custom animation as the transition between checked and unchecked Jan 23 21:19:01 p_l i think in the US cars sold after sep 2014 are supposed to have event data recorders in them Jan 23 21:19:13 so partially there i guess Jan 23 21:19:29 AKK9: AFAIK (which I could be wrong), you'd have to make your own custom Checkbox implementation Jan 23 21:19:36 g00s: transponders would involve a transmitter, because frankly speaking internet is too slow for this :) Jan 23 21:19:52 herriojr: i have done so and done so for 100 * Jan 23 21:20:04 herriojr: isnt it bcos of MapView and mapActivity? Jan 23 21:20:05 you don't even need an ID other than pseudorandom UUID Jan 23 21:20:13 herriojr, Dayyum Jan 23 21:20:17 okay thanks Jan 23 21:20:23 AKK9: it's actually not that hard Jan 23 21:20:52 herriojr, it sounds pretty major? making my own widget/ Jan 23 21:20:53 ? Jan 23 21:21:12 AKK9: no, it's not, and you shouldn't make your own, just extend CheckBox Jan 23 21:21:53 AKK9: basically, upon click, you want to start a constant update of the CheckBox over a period of time (look up Interpolator) Jan 23 21:22:30 AKK9: and basically just block the click from doing anything until the animation finishes within the view Jan 23 21:23:09 AKK9: so basically what happens is you post back to the UI thread over a set period of time to do each transition of the animation Jan 23 21:23:28 AKK9: but it really depends on what exact kind of animation you want to do Jan 23 21:23:34 herriojr, that makes sense but it sounds a bit out of my league Jan 23 21:23:36 herriojr: i think it comes from the mapview Jan 23 21:23:43 it doesnt work since the begining Jan 23 21:23:52 john67: then you provided the wrong part of the stack trace :P Jan 23 21:24:04 herriojr, where should i start? extend Checkbox and then read the CheckBox developer reference i guess?? Jan 23 21:24:09 herriojr: no, i provided the right one Jan 23 21:24:14 AKK9: not knowing how to do something is not a reason not to do it, it's a chance to learn Jan 23 21:24:31 AKK9: again, what exact animation are you trying to do? Jan 23 21:24:52 herriojr, ideally i want to be able to set the animation as any TweenAnimation resource file Jan 23 21:29:16 AKK9: you might be able to do it, I haven't done it to that extent before Jan 23 21:29:23 AKK9: just looking at the source code for it atm Jan 23 21:29:51 john67: basically, when it can't find the Activity in the package, either it isn't there or the AndroidManifest doesn't have it set Jan 23 21:30:02 john67: I would suggest unzipping your package and make sure it's at the right position Jan 23 21:31:10 herriojr: unzipping? Jan 23 21:31:14 how? Jan 23 21:31:59 unzipping a package does it exist? Jan 23 21:32:10 hey g00s Jan 23 21:32:35 john67: rename apk to zip and unzip Jan 23 21:32:46 john67: an apk is just a zip file Jan 23 21:33:15 AKK9: so yeah, a Tween is animating the whole View, not items within it Jan 23 21:33:25 AKK9: that's why I was asking what type of animation are you doing? Jan 23 21:34:42 you may have to do a dexdump to see if the class exists Jan 23 21:34:55 herriojr, okay so the Gmail app for example has that animated checkbox Jan 23 21:35:02 herriojr, how could i achieve that? Jan 23 21:35:28 AKK9: just a sec, turning on my phone Jan 23 21:35:47 herriojr, i want to do somethign like that but maybe slightly different movements/scaling/speed etc Jan 23 21:35:55 herriojr, cool thanks for helping me btw Jan 23 21:36:51 AKK9: so, there are multiple ways to achieve that, it just depends Jan 23 21:37:07 AKK9: chances are, they have two views which share the same space and transition between the two views when showing/hiding one Jan 23 21:38:08 if you want it to be self-contained, AFAIK, you'd have to do a custom view — maybe you could do an animated drawable Jan 23 21:38:31 I don't know for sure on that Jan 23 21:38:53 there might be a better way, but that's just the ones I can think of off the top of my head Jan 23 21:40:29 herriojr, okay yeah i might just do that then Jan 23 21:40:41 heya Napalm Jan 23 21:40:45 herriojr, maybe i can pass a custom animation to a viewswitcher? Jan 23 21:41:04 AKK9: i beleive those animated checkboxes are nothing more than an animationdrawable Jan 23 21:41:14 herriojr, ill figure it out, thanks for the help mate Jan 23 21:41:28 g00s: check it out .. new BT LE talk https://www.youtube.com/watch?v=qx55Sa8UZAQ Jan 23 21:41:50 g00s: thats Dave Smith talking Jan 23 21:42:02 AKK9: this is how the new Material Design checkboxes are done... https://github.com/android/platform_frameworks_base/blob/master/core/res/res/drawable/btn_check_material_anim.xml Jan 23 21:43:13 alexfu, if you look at gmail with overdraw display on you can see that the tick and letter is drawn over the circle so i think they have multiple views in gmail Jan 23 21:43:35 alexfu: ah, neat, those were added after I stopped doing android, thanks for that :P Jan 23 21:43:53 alexfu, i did consider that but i don't knwo how to use photoshop or how to make all the frames of the animation Jan 23 21:43:58 Napalm alwesome, i saw some of his earlier talks. he's pretty sharp. thanks ! Jan 23 21:44:12 AKK9: I haven't followed closely, but if the circle is the animation-circle, that's a background effect Jan 23 21:44:26 AKK9: you can just steal the images directly from source unless you want custom ones Jan 23 21:44:45 hm. at least, in general. the checkbox material anim thing might imply otherwise. Jan 23 21:45:14 john67: but yeah, if you can link me your full project, I can probably debug it really quick Jan 23 21:45:27 AKK9: where does gmail have checkboxes? Jan 23 21:45:47 alexfu: it's the letter with the circle on the left side of each message Jan 23 21:45:49 herriojr: Jan 23 21:45:50 alexfu, they might not be checkboxes technically but if you press the circles Jan 23 21:45:55 ohhh Jan 23 21:45:57 they work as checkboxes Jan 23 21:46:02 Napalm i wonder when we get BTLE 4.2 Jan 23 21:46:08 i wanted a custom design for my checkboxes Jan 23 21:46:26 anyone know an easy tool that can make those kind of animation frames for me? Jan 23 21:46:48 AKK9: it doesn't take much to understand, just sit down with it for a little :P Jan 23 21:46:52 AKK9: thats probably just a checkable view with selector animations Jan 23 21:47:23 herriojr: https://drive.google.com/file/d/0B1aH_yFA-4WcUllqa3Z0ampqblE/view?usp=sharing Jan 23 21:47:36 alexfu, i tried usign a selector but it only has a fade animation Jan 23 21:47:44 AKK9: https://developer.android.com/training/material/animations.html#ViewState Jan 23 21:48:13 AKK9: you can use object animators in selectors. not sure how far back this can go though in terms of compatibility Jan 23 21:48:56 alexfu, that looks API 21-y Jan 23 21:49:05 StateListAnimator introduced in 21 so.. Jan 23 21:49:30 john67: not using Android Studio? :P Jan 23 21:49:44 herriojr: no eclipse Jan 23 21:50:04 an alternative is to simply create a framelayout with two views as children. listen for oncheckchanged and use ViewPropertyAnimator to animate Jan 23 21:50:50 alexfu, herriojr ill try the animating multiple views approach Jan 23 21:50:55 failing that, a viewswitcher Jan 23 21:51:05 failing that, MS paint to create animation frames Jan 23 21:51:15 failing that i will steal the material design checkbox frames Jan 23 21:51:33 AKK9: for coin flip animation like in gmail.. you dont need to create a frame by frame animation Jan 23 21:52:02 john67: I'd suggest switching as this is the direction they want to support in the future Jan 23 21:52:04 i'm having trouble with a line reading a ParceableArray. hopefully someone can help without having to upload the whole file Jan 23 21:52:24 john67: what do I do to get it to crash? Jan 23 21:52:25 the line is images = in.readParcelableArray(EntryImage[].class.getClassLoader()); Jan 23 21:52:41 herriojr: u just compile and go on addtask Jan 23 21:52:48 chars6: whats the error message? Jan 23 21:52:53 herriojr: after u go on addLocation Jan 23 21:53:13 inside my parcelable class (Entry.java) . the line deals with another parcelable class (EntryImage) that Entry has an array of Jan 23 21:53:39 alexfu: the error is incompatible types, required EntryImage[], found Parcelable[] Jan 23 21:53:45 alexfu, i think a viewswitcher might work. ill try it out and see how it goes. Jan 23 21:53:52 the inner class, EntryImage works fine Jan 23 21:54:04 john67: ok, got it, just give me a few minutes Jan 23 21:54:16 and i can pass it like i want to without any issues Jan 23 21:54:17 i need to do my own reading on animations before i ask questions here, advice is wasted on me because i dont know the basics yet Jan 23 21:54:22 oki Jan 23 21:54:26 appreciate the help though, saved all your comments Jan 23 21:54:42 I am working with a recyclerview amd was curious about something. I am monitoring the allocated memory in the application and as I scroll it goes up slowly; Is this normal? Jan 23 21:55:05 dear android devs. is it a good or bad idea to write a generic filefetcher class that is given a filepath and checks the filesystem if it exists. if it does, it hands back a File object (of that path?) else, it downloads the requested file and once done, hands back the File object? Jan 23 21:59:26 writing a python script in Sublime and I keep hitting Jan 23 22:00:14 pablq, you're describing a file cache... :) Jan 23 22:02:01 The inspector guy at the bottom-right looks so unhappy. Jan 23 22:02:20 I guess there's no way of making him happy. Jan 23 22:07:22 john67: http://stackoverflow.com/questions/22340762/mapactivity-could-not-be-found-android-studio-0-5-1 Jan 23 22:08:30 herriojr: hmm, i see the video course thats im using seems very old then, shud throw it away Jan 23 22:08:44 could someone look at these two files and find what i'm doing wrong? Jan 23 22:08:45 http://pastebin.com/gdZajJh2 Jan 23 22:08:52 the error is on line 183 Jan 23 22:09:21 where i get an incompatible types error, required EntryImage[] found Parcelable[] Jan 23 22:09:27 john67: if they aren't using fragments (or some third party equivalent), then it's pretty old Jan 23 22:09:51 the top file is EntryImage and the bottom file is Entry Jan 23 22:11:26 herriojr: yeah , its very old, bcos im using http://shop.oreilly.com/product/0636920001690.do Jan 23 22:11:27 what i'm trying to do is make Entry Parcelable, so I can pass it, and nested EntryImage(s) from one activity to another Jan 23 22:11:39 herriojr: i didnt have no choice Jan 23 22:12:08 john67: is this for a class? Jan 23 22:13:14 herriojr: no, im just learning it privately Jan 23 22:13:28 herriojr: since im a newbie i need some thing as support Jan 23 22:13:44 john67: ok, do this — pick something you want to make Jan 23 22:13:49 pablq: As long as it returns the file asynchronously Jan 23 22:13:57 john67: and start building it Jan 23 22:14:05 It’s basically the Repository Pattern Jan 23 22:14:27 s73v3r: that mean i should have an asynctask doing the downloading right? Jan 23 22:15:00 herriojr: oki, but there re a lot of things to learn, oki, i started a project but i was locked so i stop every thing Jan 23 22:15:02 I meant more that your getFile method wouldn’t be the one returning the file Jan 23 22:15:14 thats why i took the course Jan 23 22:15:34 john67: the important thing you need to know are a few things: Activity Lifecycyle, Fragment Lifecycle, the UI Thread, Thread Lifecycles, and just keep track of what thread things are running on Jan 23 22:15:44 you’d either have a callback passed in, or use an event bus to return the file regardless of if it was fetched from disk or from the network Jan 23 22:16:08 that way, the code that uses the file won’t care where it comes from Jan 23 22:16:12 herriojr: oki, costum view? Jan 23 22:16:22 john67: most situations you don't need a custom view Jan 23 22:16:28 oki, Jan 23 22:16:29 john67: especially if you're just starting Jan 23 22:16:35 then i will do as u said Jan 23 22:16:39 kk that makes sense Jan 23 22:16:50 john67: Views can only be modified on the UI Thread Jan 23 22:16:57 oki Jan 23 22:17:26 john67: other threads should never hold a reference to an Activity Jan 23 22:17:30 s73v3r: by 'event bus' you're talking about something that broadcasts an event and the activity that needs the file will have to have a reciever listening for it right? Jan 23 22:17:43 exactly Jan 23 22:17:46 john67: either directly or indirectly Jan 23 22:17:52 http://pastebin.com/gdZajJh2 Jan 23 22:18:12 we’re using Otto pretty successfully right now, but there are others that are good too Jan 23 22:18:14 s73v3r: thanks Jan 23 22:18:26 chars6: what is that? Jan 23 22:18:33 or rather what is that in reference to? Jan 23 22:18:35 herriojr: oki, then i will do what u told me Jan 23 22:18:49 herriojr: i'm getting an error trying to nest a Parcelable inside another Parcelable Jan 23 22:19:03 chars6: can you link the stack trace? Jan 23 22:19:29 herriojr: on line 183 i get the error incompatible types, required EntryImage[], found Parcelable[] Jan 23 22:19:35 herriojr: sure, 1 sec Jan 23 22:19:43 herriojr: then i need a book Jan 23 22:19:58 john67: you really don't need a book Jan 23 22:20:10 herriojr: the doc? Jan 23 22:20:21 u mean i should use the doc Jan 23 22:20:22 john67: most are usually out of date — d.android.com has tutorials and source examples Jan 23 22:21:13 herriojr: this is what i see: http://pastebin.com/w4TRNAQH Jan 23 22:22:14 chars6: just pass null Jan 23 22:22:25 herriojr: oki, Jan 23 22:22:29 will be doing as u said Jan 23 22:23:12 herriojr: i still got the same error Jan 23 22:23:33 chars6: you also need to cast it Jan 23 22:23:52 possibly Jan 23 22:24:24 herriojr: I've tried - images = in.readParcelableArray((EntryImage) EntryImage[].class.getClassLoader()); Jan 23 22:24:30 herriojr: still gets me the same error Jan 23 22:24:37 other than adding appcompat-v7 to my dependencies as 'compile com.android.support:appcompat-v7:21.0.+' is there anything else that is needed to get the themes to resolve properly? Jan 23 22:25:03 herriojr: well, not an identical error Jan 23 22:25:14 chars6: no, try (EntryImage[])in.readParcelableArray(null); Jan 23 22:25:34 herriojr: with casting i get instead required EntryImage, found ClassLoader Jan 23 22:26:22 chars6: I meant to cast the return value Jan 23 22:26:27 not the argument to the function Jan 23 22:26:49 chars6: also, have you looked at https://github.com/johncarl81/parceler? Jan 23 22:27:38 herriojr: i will now Jan 23 22:28:00 @chars6: http://stackoverflow.com/questions/10071502/read-writing-arrays-of-parcelable-objects Jan 23 22:28:22 herriojr: i haven't tested yet, but this alteration got rid of the compile error Jan 23 22:28:25 herriojr: images = (EntryImage[]) in.readParcelableArray(EntryImage[].class.getClassLoader()); Jan 23 22:29:22 chars6: again, see the last link I sent Jan 23 22:29:31 herriojr: ok, thanks Jan 23 22:29:44 chars6: the last link that is Jan 23 22:30:05 chars6: specifically, there is another suggested function that uses method generics to cast the type for you Jan 23 22:30:18 which would be the better solution Jan 23 22:30:28 why is it that when I take pictures they do not appear in the gallery for the first couple of days, and then 2 days later I find them all in there? Jan 23 22:30:35 saved under their respective dates too! Jan 23 22:30:40 this is madness Jan 23 22:30:56 Odaym: what happens if you kill the app? Jan 23 22:31:05 after taking a picture? Jan 23 22:31:09 Napalm holy crap, i didn't know there was a maximum number of characteristic notifications i could be subscribed to Jan 23 22:31:10 never tried Jan 23 22:31:25 good talk then Jan 23 22:31:40 yeah, at 28:34 Jan 23 22:31:46 yea, passed that ages ago Jan 23 22:31:51 i've never heard of anyone way anything at all about that Jan 23 22:31:57 *say anything Jan 23 22:32:00 just killed the app, picture still not in gallery Jan 23 22:32:10 it'll show up tomorrow or the day after Jan 23 22:32:19 this has been happening for a while but I only just noticed it clearly Jan 23 22:32:21 Odaym: are you viewing in the gallery stuff in the cloud? Jan 23 22:32:30 Odaym: or local data? Jan 23 22:32:52 no, wait, this is an app I've made that Im taking the pictures with Jan 23 22:33:18 and I've removed the code to save to gallery Jan 23 22:33:25 I distinctly remember having it there Jan 23 22:33:46 Odaym: yeah, if you don't manually save it, eventually the Media service will scan the filesystem for new items Jan 23 22:33:55 ah Jan 23 22:34:02 or at least that's how it used to be Jan 23 22:34:03 well how do I prevent that from happening Jan 23 22:34:16 you don't want it showing up in the gallery? Jan 23 22:34:25 no, I just want them to remain in the app Jan 23 22:34:28 so say you make a layout for some content that you want to add dynamically, multiple times. How can you get references to the views in the layout since their IDs will all be the same. Jan 23 22:34:40 herriojr: shud also be using android studio too instead of eclipse hein$ Jan 23 22:35:02 Odaym: http://lmgtfy.com/?q=android+hide+image+from+gallery Jan 23 22:35:03 the app serves as a kind of storage for certain kinds of images, they will all look alike as Thumbnails, so they will simply clutter the gallery Jan 23 22:35:47 oh I didnt know I could tamper with such a thing Jan 23 22:36:11 Odaym: it's a common thing — just as you said, you have thumbnails and whatnot that you want to hide Jan 23 22:36:23 john67: I would suggest it, yes Jan 23 22:36:32 oki Jan 23 22:38:03 problem is how do I test this Jan 23 22:38:08 Napalm he still doesn't mention quite a few bugs though Jan 23 22:38:34 like the Intent to enable BT, basically doesn't work right on many devives Jan 23 22:38:45 but still worth it :) Jan 23 22:39:29 g00s: why dont you email him and let him know Jan 23 22:39:38 see this is the problem, File storageDir = Environment.getExternalStoragePublicDirectory( Jan 23 22:39:38 Environment.DIRECTORY_PICTURES); Jan 23 22:42:11 Odaym: you can manually trigger a scan, but I forget how Jan 23 22:42:28 Odaym: again, google is your friend :P Jan 23 22:42:36 yea im looking Jan 23 22:42:37 just not when they sell all your data Jan 23 22:43:39 right Jan 23 22:45:00 mattblang: you can generate IDs at runtime. then just make sure you scope your findViewByIds if you want to find their children. http://stackoverflow.com/a/15442898 Jan 23 22:45:18 mattblang: otherwise I'd just say "keep a reference to the view you added" Jan 23 22:46:11 Hello there! Jan 23 22:46:37 All of a sudden Android Studio is returning the following error when I try to build my project, "Error:Could not find any version that matches com.android.tools.build:gradle:0.12.+." Jan 23 22:46:58 Mattx: upgrade the gradle plugin. that's probably from pre-release? Jan 23 22:47:02 groxx well, the view I am inflating multiple times is coming from a static layout XML, so I can't really do what you suggested unless I build the entire thing dynamically right? which is what I'm thinking I'll do Jan 23 22:47:12 what could be wrong? I didn't change anything at all in the source code / gradle files. I already checked that using an old version from my repo Jan 23 22:47:13 Mattx: 1.0.1 is the most current I think Jan 23 22:47:41 groxx, how do you do so? I didn't install gradle. I assume it came with Android Studio (?) Jan 23 22:48:11 mattblang: you should be able to re-assign the view. but however you're inflating it should also return the instance, so you can just hold onto it Jan 23 22:48:17 mattblang: the view's ID, that is Jan 23 22:48:34 mattblang: though that's ambiguous too. iirc you can setId at any time, and change it, so no worries there. Jan 23 22:48:55 Mattx: in your project root's build.gradle, where that line is, change it to "...:1.0.1" Jan 23 22:49:39 Mattx: that version was used only in pre-release Studio versions. it's one of those pre-release "things will break" things. Jan 23 22:50:44 it seems it's going to work now, thanks! Jan 23 22:50:58 I didn't get why it stopped working without even updating Android Studio Jan 23 22:51:14 Napalm i'll email him and see if he can do a btle gotchas video/blog. i'll volunteer some of the info i've collected, but he probably knows more Jan 23 22:51:43 g00s: nice one Jan 23 22:51:44 Mattx: Android Studio generally doesn't change your gradle files. it'll show you warnings (and I'm a little surprised it didn't offer to fix it, but i don't remember if they did that yet), but for the most part you do it yourself Jan 23 22:52:21 ok, SD Scanner can do that rescan issue Jan 23 22:52:23 https://play.google.com/store/apps/details?id=com.gmail.jerickson314.sdscanner Jan 23 22:52:27 and the images indeed appear Jan 23 22:52:29 yeah, I got that part. but it stopped working all of a sudden. does it require anything from the internet that is not available anymore or what? Jan 23 22:52:40 I mean, I didn't upgrade the IDE, weirdddd Jan 23 22:53:23 (Android Studio 0.8.0, I suppose it's still the "pre-release") Jan 23 22:53:30 Oh, Parceler supports private fields (with bean-like stuff). Nice. Jan 23 22:53:44 Mattx: hm. that is kinda weird. fwiw I'd definitely recommend upgrading to the release version ASAP though Jan 23 22:53:57 ok, I'm upgrading now. thanks! Jan 23 22:54:00 Mattx: To answer your question above: yes, Gradle comes with Android Studio. Jan 23 22:54:04 It's the build system. Jan 23 22:54:07 anything else I should change apart from that 0.12.+ ? Jan 23 22:54:43 I can't read "build system" without imagining that French guy's voice now. Jan 23 22:54:50 Mattx: there might be other things, yeah. I think most will warn you and provide fixes though. Jan 23 22:55:07 TacticalJoke: french? Jan 23 22:55:10 Oui. Jan 23 22:55:11 ok, I'll try that now Jan 23 22:55:14 Xavier. Jan 23 22:56:44 groxx heck yeah! that worked, thanks man! Jan 23 22:58:13 is there something weird about Gingerbread with a wrap_content FrameLayout around a view with margins? It's positioning the internal view correctly, but the FrameLayout just crops at the declared size of the internal one, so it's cut off on some sides. Jan 23 22:59:01 clipChildren = false? Jan 23 22:59:04 something...maybe Jan 23 22:59:47 Odaym: that might be the easy option, yeah. but it seems like the cause is something like "gingerbread doesn't support margins, herp derp" or something Jan 23 23:05:16 Android Studio's allocation tracker won't look at my background thread. (The same happened before in Eclipse.) Jan 23 23:05:24 helllo Jan 23 23:05:25 Has anyone been able to get it to look at background threads? Jan 23 23:06:15 TacticalJoke: iirc there's an in-code version of it? like Debug.startTrackingAllocations() or something Jan 23 23:07:14 Ah, haven't tried that. I'll google. Thanks. Jan 23 23:08:59 Hi. I am developing an application that will be bundled to the device and will be installed under /system/apps. Can my application granted root permissions without rooting the device? Jan 23 23:09:42 no Jan 23 23:09:53 imagine Jan 23 23:11:09 vudu: you do have special permissions being on the device, however, it depends on what signature your app has Jan 23 23:12:11 Odaym have you ever seen Bluetoothgatt.GATT_CONNECTION_CONGESTED used anywhere ? docs say shit Jan 23 23:12:15 sorry if this is a silly question. what does "clear storage" do exactly in hboot ? (bootloader) Jan 23 23:12:27 congested? no Jan 23 23:13:30 I just realised: there is one way to get Eclipse's LogCat back even if you use Android Studio. Jan 23 23:13:36 Tools > Android > Device Monitor. Jan 23 23:13:39 herriojr: can you point point me a url about this information? Jan 23 23:13:49 Android Device Monitor* Jan 23 23:13:52 Though it's tedious. Jan 23 23:14:24 vudu: there's really not a lot — I just know this having done an android system before Jan 23 23:14:35 vudu: what specifically are you trying to get access to? Jan 23 23:15:05 herriojr: taking a screenshot of the current screen Jan 23 23:17:46 vudu: for your own app or for any other app? Jan 23 23:17:59 for any app Jan 23 23:18:07 Bleh. No matter what I do, I cannot get any of the allocation trackers to see my background thread. ;| Jan 23 23:19:10 vudu: you need a system signature Jan 23 23:19:26 are you a second party app or a first party app? Jan 23 23:19:46 The method tracer sees the background thread. Hmm. Jan 23 23:19:54 vudu: http://developer.android.com/guide/topics/manifest/permission-element.html Jan 23 23:20:14 vudu: I don't know the exact permission, but it's going to be signature or signatureOrSystem Jan 23 23:20:29 vudu: I'd have to look up the actual function call to determine which one it is using Jan 23 23:20:46 if it is signatureOrSystem, you just need to be installed on /system Jan 23 23:21:11 if it is signature, you have to be signed with the system signature which would be part of the android system compilation process Jan 23 23:21:35 I am not sure second or first party app Jan 23 23:21:45 I believe on newer platforms (KKish.. not sure exactly what version), only apps in /system/priv-app can get system/systemorsignature permissions Jan 23 23:21:51 vudu: first party means you guys own the hardware Jan 23 23:21:52 not /system/app Jan 23 23:22:08 I am a freelance developer but yes Jan 23 23:22:36 vudu: doesn't matter if you're freelance or not, it's a matter on who this is being done for and what ownership they have Jan 23 23:23:13 Hi. Would anybody be kind enough to help me set up ADB on my Galaxy Note 2 running CyanogenMod with Windows? I've been trying and googling but it just keeps saying device not found. Jan 23 23:23:16 they are buying the tablets straight from the manufacturer and they will install the app to the os Jan 23 23:23:39 So I think I will need to send an unsigned apk Jan 23 23:23:49 vudu: ok, so they are signing it Jan 23 23:23:51 they will have to take care of it Jan 23 23:24:11 herriojr: thank you very much Jan 23 23:24:16 vudu: then sure, you can have access, you just need to see what permission is declared for grabbing the screen Jan 23 23:24:31 vudu: see http://stackoverflow.com/questions/12462944/how-to-take-a-screenshot-of-other-app-programmatically-without-root-permission Jan 23 23:25:32 hello guys, what applications do you use for prototyping app designs ? Jan 23 23:26:04 good night to u all Jan 23 23:26:05 XDS2010_: probably try #android-root, this is an app-development room Jan 23 23:26:25 Ah. I changed device and now the allocation tracker works! Jan 23 23:26:26 herriojr: thank you it seems very helpfull Jan 23 23:26:33 compile 'com.squareup.dagger:dagger:1.2.2' Jan 23 23:26:33 provided 'com.squareup.dagger:dagger-compiler:1.2.2' Jan 23 23:26:50 oops please ignore Jan 23 23:26:53 that was a mistake Jan 23 23:26:59 herriojr: bye ++ Jan 23 23:27:05 TacticalJoke: magical fixes FTW Jan 23 23:27:39 hi Jan 23 23:27:57 what ORM do you suggest to work together with Retrofit? Jan 23 23:28:03 Yah. Jan 23 23:32:04 Has anyone setup dagger dependency injections with Android Studio/Gradle? For some reason code generation seems to be failing with dagger-compiler. I have setup the dependencies as "compile 'com.squareup.dagger:dagger:1.2.2, provided 'com.squareup.dagger:dagger-compiler:1.2.2'" Jan 23 23:32:13 show errors Jan 23 23:32:59 The app compiles just fine but when I run I get "java.lang.IllegalStateException: Module adapter for class app.dagger.AndroidModule could not be loaded. Please ensure that code generation was run for this module." Jan 23 23:33:06 And thanks for the help! Jan 23 23:33:24 are you use proguard? Jan 23 23:33:37 no this is without proguard Jan 23 23:34:28 vudu: these are the permissions on READ_FRAME_BUFFER android:protectionLevel="signature|system" Jan 23 23:34:37 I found a Google video about Android memory management: . Haven't seen that yet. Jan 23 23:36:28 Is there a way in PreferenceActivity to remove everything that's been added by addPreferenceFromResource without specifying everything individually? Jan 23 23:39:47 oh. getPreferenceScreen().... if it's not null, screen.removeAll() Jan 23 23:40:37 yeah i'm using deprecated stuff. Jan 23 23:45:00 fakey: I'm going to guess not. you could be fancier and read the resource -> find things it mentions, but I think they're just added "flat", no grouping? Jan 23 23:45:53 groxx I think I figured it out with the getPreferenceScreen().removeAll() (with null checking) Jan 23 23:46:22 fakey: ah. yeah, tossing everything and starting over probably works. Jan 23 23:47:04 Yeah, that's what I'm doing. in resume(). since there could be changes from an activity on top of the PreferenceActivity, and I didn't want to deal with a bunch of special cases to rebuild everything. Jan 23 23:47:54 I mean... I already am dealing with the special cases. I don't want to have to change each thing individually, rather just rebuild based on new parameters. Jan 23 23:48:06 fakey: ha, yeah :) fwiw it might be simpler to relaunch() the activity (if that works in preferenceactivity). I think it does that without any visible change? Jan 23 23:48:41 Ah hm. didn't know of that, but basically i just moved my code out of create() and into resume() with the removeAll() above it Jan 23 23:48:42 hm, it's a different name. searching. Jan 23 23:49:05 i mean... onResume() Jan 23 23:49:20 ah, recreate() Jan 23 23:51:21 I'm not sure if it'll animate that or not, but if it does, you can probably overridePendingTransition(0,0) immediately after, and it should be essentially invisible. I've done similar things before, though usually by hand with e.g. `finish(); startActivity(getIntent())` (though not exactly that) Jan 23 23:52:15 It's cool. thanks for the info, I think what I've done in onResume() is working though for my case. Jan 23 23:52:32 I'm trying to implement Google Cloud Messaging. I'm following the example manifest permissions here http://developer.android.com/google/gcm/client.html Jan 23 23:53:10 Is this correct when added to my own manifest file? http://pastebin.com/svB2ZYZV Jan 23 23:53:31 No. Jan 23 23:53:46 the whole "com.example" part should give you a pause. Jan 23 23:54:01 Did I leave an example in there? Jan 23 23:54:24 Keavon: the and Jan 23 23:54:32 Thanks, fixed that Jan 23 23:54:42 I have replaced it with my domain Jan 23 23:55:12 fwiw I use android:name="${applicationId}.permission.C2D_MESSAGE" - makes it easier to deal with different packages for app flavors. Jan 23 23:55:18 But Android Studio is complaining about "Cannot resolve symbol 'GcmIntentService'" Jan 23 23:55:39 Keavon, well you need a service to handle incoming messages Jan 23 23:55:43 (lines 21 and 28 Jan 23 23:55:44 ) Jan 23 23:55:56 Keavon, you defined one named "GcmIntentService" on toplevel of your package. Jan 23 23:56:01 Do you have a service class there? Jan 23 23:56:13 So I need to make a class for that in my code? Jan 23 23:57:03 Uhm, yes. Jan 23 23:57:11 Incoming messages won't handle themselves :P Jan 23 23:57:27 I believe that's explained in the guide later as well Jan 23 23:57:30 Keavon: yep. it's a little odd that they're not more obvious about it in the page, but you need to make the receiver and the intent service Jan 23 23:57:50 Keavon: near the bottom of that page is an example IntentService, fwiw Jan 23 23:58:03 and receiver, I guess Jan 23 23:59:36 Thank you. Jan 23 23:59:45 Keavon: also worth reading, once you get the basics going: https://blog.pushbullet.com/2014/02/12/keeping-google-cloud-messaging-for-android-working-reliably-techincal-post/ Jan 23 23:59:54 I'm not very familiar with the XML part of Android code Jan 24 00:06:23 Is there an easier way for a desktop POST or GET request to send a message to my app? Jan 24 00:06:49 I want to write an app that toggles airplane mode when it receives a message over the internet Jan 24 00:07:24 Push notification. easiest way Jan 24 00:08:06 Googling push notifications looks like it uses GCM Jan 24 00:08:29 it does. Jan 24 00:09:30 Okay, so this is the easiest way then? Jan 24 00:12:02 This guide ( http://www.androidbegin.com/tutorial/android-google-cloud-messaging-gcm-tutorial/ )says to install Google Cloud Messaging for Android Library from the SDK Manager Jan 24 00:12:06 I don't see it in the list Jan 24 00:12:14 Keavon: http://developer.android.com/google/gcm/http.html has a curl example part way down Jan 24 00:12:41 Yeah, the server part will be easy. Jan 24 00:12:57 I've just never written an Android app before so the client-side part is a little tricky for me. Jan 24 00:13:34 fwiw the app-based airplane mode toggling doesn't work in... 4.4.x? and newer. Jan 24 00:13:47 Is that even true with root? Jan 24 00:14:04 what is GCM upstream used for? Jan 24 00:14:08 ah, looks like 4.2+ Jan 24 00:14:26 Keavon: with root you can very likely get around it, but I'm not sure how off-hand. Jan 24 00:14:35 http://stackoverflow.com/questions/25674655/how-to-turn-on-off-airplane-mode-even-on-new-android-versions-and-even-with-ro Jan 24 00:15:02 yeah, that sounds believable Jan 24 00:15:51 As long as it's possible, I'll worry about that part once I manage to build an app that displays a message when I trigger it Jan 24 00:16:09 trying to do the same thing as you right now Keavon Jan 24 00:16:14 never done any android development before Jan 24 00:16:23 minus the airplane mode thing Jan 24 00:16:35 Just trying to make something with GCM? Jan 24 00:16:54 deepend: "upstream" is for your app sending messages to your server, iirc Jan 24 00:17:16 Why don't I see GCM in the SDK Manager? Jan 24 00:17:25 groxx: I don't understand where that would be better than using traditional methods Jan 24 00:18:35 deepend: google holds the connections open for you in a stable and battery-friendly way. same reason to prefer GCM over e.g. MQTT. Jan 24 00:18:58 the alternative is _every_ application running all the time, just to try to keep a socket open and connected to N remote servers Jan 24 00:19:09 guess it all comes down to battery on mobile Jan 24 00:19:13 yep. Jan 24 00:20:10 there are still decent reasons for rolling your own, of course. Amazon runs a push service, you can run your own MQTT / etc (Facebook used to / probably still does do this), and they offer different kinds of delivery guarantees. _and_ non-google options are more likely to work in e.g. China. Jan 24 00:20:23 i'm trying to send notification to users, and get a yes/no type response Jan 24 00:21:08 unless speed is critical, I'd probably recommend GCM for sending to the user, and a normal HTTP request to respond. At least, for starters. it'll be way simpler to implement. Jan 24 00:21:26 I don't care about battery life. Can I do this in a more simple way than GCM? Jan 24 00:21:28 okay, that's sort of what I was thinking Jan 24 00:21:59 Keavon: probably not. GCM is pretty easy, especially on the server side (e.g. you can do it with just a curl command) Jan 24 00:22:10 Okay. Jan 24 00:22:19 Just not as easy on the client side :( Jan 24 00:22:31 re GCM in the SDK manager: it's part of the Google Play package. Jan 24 00:22:34 (for someone that's never made an Android app) Jan 24 00:22:40 Okay, thanks. Jan 24 00:22:56 Extras > Google Play Services? Jan 24 00:22:57 Keavon: I just found this link: https://github.com/chiuki/android-gcm Jan 24 00:23:01 it has an example client Jan 24 00:23:07 may be of some use, not sure Jan 24 00:23:20 Keavon: you're already including it if you included the line `compile "com.google.android.gms:play-services:3.1.+"` Jan 24 00:23:25 Thanks, I may just be able to extend that. Jan 24 00:23:33 cheers, i'm trying to do the same Jan 24 00:25:49 with GCM is there a way to tell if the message has been delivered to the device? Jan 24 00:26:20 or do I need the app to confirm delivery Jan 24 00:28:54 deepend: CCS can do that, or I _think_ they've been expanding the feature-set lately, but I forget the details. Jan 24 00:29:05 deepend: in general though, no, the app needs to confirm if it's important that it arrives. Jan 24 00:29:55 i'm reading through the documentation now and trying to figure out if it's important to implement a CCS server, or if HTTP will be fine Jan 24 00:30:10 deepend: just CCS: http://developer.android.com/google/gcm/ccs.html#receipts Jan 24 00:30:33 ahh, thanks for that. and the pushbullet link was very good info as well Jan 24 00:30:37 Ok how do I deal with IabHelper in onResume()? it's already set up and I need to call queryInventoryAsync in onResume() Jan 24 00:31:02 fwiw delivery is generally very good. it's usually very fast (fraction of a second, after the first (which could take a few seconds)), and I think it queues up to 2 weeks. Jan 24 00:31:29 that's good news Jan 24 00:31:42 there are very few _guarantees_, in part because there are few guarantees on network requests, period. but they're generally reliable. Jan 24 00:31:44 i'm trying to create an alarm notification system, so timely delivery of notifications will be somewhat critical Jan 24 00:31:52 ah. that won't be reliable. Jan 24 00:32:07 so I need some way to confirm that the user has received the message Jan 24 00:32:19 especially if it's happening at night. if the device is in a deeper-sleeping state, it could take several minutes, maybe 30+. Jan 24 00:32:27 thinking if GCM doesn't go through quickly to default to SMS//PhoneCall Jan 24 00:32:53 aaah, something like Pingdom? Jan 24 00:33:25 had to google that, but yes somewhat Jan 24 00:33:34 except we work with SCADA systems that have internal alarms Jan 24 00:34:00 yeah, I guess it's a bit specific :) I would definitely have a fallback, yes. you won't normally need it, but if it's important that it arrives, there's no real option. Jan 24 00:34:32 this is really going to just be one of the options Jan 24 00:34:40 email and sms are higher on the list Jan 24 00:35:05 but I think I need a mobile app for getting alarm acknowledgments Jan 24 00:35:42 that or send them a link for http request.. dunno Jan 24 00:35:46 probably. a bunch of notification systems end up building something through twilio, fwiw - you can make fairly simple "bots" right on their server iirc. Jan 24 00:36:05 yeah the twilio 2-way sms seems pretty nice Jan 24 00:38:31 I love the idea of push notifications though, even if I only end up using it for personal project stuff. Jan 24 00:40:26 deepend: so push notifications aren't guaranteed, so generally, you want the application to just receive a small message telling it to poll the server Jan 24 00:40:44 and when it polls the server gets the messages it needs Jan 24 00:41:02 herriojr: how are you getting the initial message to the device? Jan 24 00:41:21 deepend: that's why you don't put anything in there that's meaningful Jan 24 00:41:37 deepend: so if you miss a message, you just poll the server when your app starts up again Jan 24 00:41:50 deepend: or schedule a periodic alarm in case Jan 24 00:43:41 I guess scheduling could help, but then battery and data usage come into play Jan 24 00:44:03 deepend: just use it as a "just in case" which means, "not too often" Jan 24 00:45:28 am i going to screw things up if I call dispose() on an IabHelper and then create a new one and proceed with startSetup and queryInventoryAsync? Jan 24 00:45:34 like in onResume Jan 24 00:45:57 if it happens before the first one was done Jan 24 00:46:08 deepend: so use AlarmManager.setInexactRepeating, so it gets brought up when other things do to minimize awake time Jan 24 00:46:47 fakey: I don't have the context, sorry Jan 24 00:47:45 herriojr: i'll make a note of that, sounds like a good idea Jan 24 00:49:00 So the logcat is pretty bloated by default, giving way way too much information. What are you guys preferred way of digging through it? So far i've not had too much success with the filter in eclipse/android studio, but that might be me not using it optimally Jan 24 00:49:27 http://www.androidpolice.com/2015/01/21/bbc-news-app-uk-gets-complete-material-overhaul/ Jan 24 00:49:39 herriojr I've got a PreferenceActivity for LWP settings and I want to query inventory to see what's purchased to set up properly. there's a preference on it that opens a new activity describing purchases, and once leaving that purchase activity I want it to go back to the settings activity and call queryInventoryAsync again. I figured in onResume this would be a good place but I'm worried Jan 24 00:49:39 about multiple IabHelper instances Jan 24 00:49:41 its nice to see all the news about my code Jan 24 00:50:08 Napalm first screenshot, tabs under tabs x.x Jan 24 00:50:22 g00s: where? Jan 24 00:50:33 the article you just posted :) Jan 24 00:51:13 yea, its the only place, and we faught of that for awhile Jan 24 00:51:31 compromises Jan 24 00:52:38 why does this have to be so difficult.... Jan 24 00:55:46 liefer: just filtering, personally. I'm guessing you at least use the app filter? Jan 24 00:57:43 groxx: so these days im actually developing in Visual Studio (using Xamarin). The filtering leaves much to be desired Jan 24 00:58:26 I feel like there might even be a need on the device to turn off some of the logging, its way over the top Jan 24 00:59:00 Do i really need ~50 lines of log for a single touch event? Jan 24 01:02:52 liefer: heh. sounds like you've got a bit of a chatty one :) Jan 24 01:03:09 Heh, yeah, a bit :P Jan 24 01:04:36 fakey: can you startActivityForResult? Jan 24 01:04:47 I'm hoping it has a way to filter by tag - you could at least prefix all tags in your application with something semi-unique, and filter by that. Jan 24 01:12:07 herriojr yeah, currently am just using startActivity. Jan 24 01:15:13 To format a date to the locale, I am using `DateUtils.formatDateTime(this, new GregorianCalendar(year, month, day).getTimeInMillis(), DateUtils.FORMAT_SHOW_DATE)`. Now I want to format just a time, with no date. Right now I am using `String.format("%02d:%02d", hour minute)`, but want to I18n it. How can I do this? Jan 24 01:16:13 the first one is this sorry: DateUtils.formatDateTime(getApplicationContext(), new GregorianCalendar(year, month, day).getTimeInMillis(), DateUtils.FORMAT_SHOW_DATE) Jan 24 01:16:33 duncannz: personally: `DateFormat.getDateTimeInstance()` vs `DateFormat.getTimeInstance()` Jan 24 01:16:37 I could pass hour and minute to GregorianCalendar as well, but I don't necessarily know the year, month and day yet Jan 24 01:17:19 ah, with no date. hm. Jan 24 01:17:42 it _might_ be easier to fake it, by setting the date to "today"... Jan 24 01:18:01 that just seems wrong.. if date not set then tempDate = today Jan 24 01:18:22 also passing a random date such as 2000-01-01 is bad because the wrong time comes out, presumably DST or something Jan 24 01:18:39 maybe it's fine to just use HH:mm - are there any locales that don't use that? Jan 24 01:19:22 dunno. I think all the ones I've worked on have done HH:mm. Jan 24 01:19:32 though am/pm/24 hour varies Jan 24 01:21:03 I'll just do HH:mm. I think everyone can recognise a 24 hour time, especially considered it's previewing what they just selected with a time picker 2 seconds ago :) Jan 24 01:23:02 alternatively, a pretty common date/time alternative is http://www.joda.org/joda-time/ Jan 24 01:23:09 I haven't used it personally, but I gather it's nicer to work with Jan 24 01:24:04 ah, it's now part of java 8. so there's that. Jan 24 01:24:52 ah awesome. may look into it someday. So I'd just need to update my JDK to 8 and I could use it with android? how does that work Jan 24 01:25:05 http://developer.android.com/google/gcm/client.html#run Jan 24 01:25:23 Under the heading Register for GCM, where do I put that code named DemoActivity.java? Jan 24 01:26:43 duncannz: I don't think that'll work for android, but you can include JodaTime separately: http://gradleplease.appspot.com/#jodatime Jan 24 01:26:51 ok thanks Jan 24 02:14:09 http://puu.sh/eWl6j/24aee6f7b6.png Jan 24 02:14:24 Why am I getting this error? Clearly, the IDs are set. Jan 24 02:17:03 DragonPunch: xml files are "read in order". the first one needs @+id. Jan 24 02:17:33 clearly Jan 24 02:17:35 there is Jan 24 02:17:37 @+id? Jan 24 02:17:38 right? Jan 24 02:17:58 Stop using the Enter key as the Space key. Jan 24 02:18:01 soryr Jan 24 02:18:12 well im using @+id aren't i? am i not using it properly? Jan 24 02:18:27 DragonPunch: searchbox references toLeftOf="@id/searchbutton", but searchbutton is declared below it. Jan 24 02:18:43 read it top to bottom. if there's no "@+id" before "@id", it's an error Jan 24 02:19:32 hmm Jan 24 02:19:42 ok Jan 24 02:19:47 http://puu.sh/eWlUN/64847ad665.png Jan 24 02:19:54 Why is my R red here though Jan 24 02:20:04 ALL the R's just went red Jan 24 02:20:10 randomly Jan 24 02:20:17 DragonPunch: because you have an XML error, which means R doesn't exist yet. Jan 24 02:20:20 Rebuild it Jan 24 02:20:28 fix the xml error, build, it'll work again Jan 24 02:20:33 ^ Jan 24 02:20:33 dang Jan 24 02:20:34 thats weird Jan 24 02:20:55 Your R is a reference to the compiled XML files, R stands for resources Jan 24 02:21:03 So when they don't compile, you can't reference them. They don't exist Jan 24 02:21:17 Or whatever other resources * Jan 24 02:21:39 mmk Jan 24 02:22:25 any word of Android L launch in the US yet? Jan 24 02:22:34 Lol. Jan 24 02:23:19 pretty sure it happened already. Jan 24 02:23:34 not Jan 24 02:23:45 only a few devices Jan 24 02:23:54 yea Jan 24 02:23:56 It's on a per OEM basis for when they update a certain device. Jan 24 02:23:57 sure. is that not a launch though? Jan 24 02:24:01 It's been live for a long time. Jan 24 02:24:06 heck, there are only a handful of iPhones. Jan 24 02:28:57 there's even less than 1% of phones/tabs running Lollipop atm Jan 24 02:29:03 most stuck on kitkat Jan 24 02:29:33 Poland and UK got it for S5 and more Jan 24 02:29:36 it seems to be a relatively slow launch, yes. Jan 24 02:29:37 not alot more Jan 24 02:42:28 hm I just got a notification that Moto G 2nd Gen in the US just launched Lollipop 5.02 Jan 24 02:46:34 So right now for my app, I have a database table with users in it and I have their facebook ID's stored there. On my app, if I want to, let's say list their names in a ListView, would it be more efficient to have their names already stored in my database? Or to do a call to the facebook API and retrieve them? Jan 24 02:48:03 quite a lot faster to store them locally. plus it can work offline. Jan 24 02:49:03 not sure if Facebook allows you to change your "display name" ? you might want to refresh it occasionally if so, but I doubt they'll forget who X is if you don't update immediately. Jan 24 02:49:11 That's what I was just going to ask Jan 24 02:49:20 Maybe on each login, check to make sure their info is up to date Jan 24 02:49:34 How about their profile picture then? Should I store that locally as well? Jan 24 02:49:49 maybe just base64 encode it? Jan 24 02:50:15 profile pictures, since they have a static URL, I might recommend just using e.g. Picasso. that way you don't retrieve ones they don't see, and you can leave it to manage disk / memory caching. Jan 24 02:50:54 Hmm? I've never heard of Picasso before *googles it* Jan 24 02:50:59 I've heard of PIcasa, but not picasso Jan 24 02:51:18 OMG Jan 24 02:51:25 groxx that is amazing Jan 24 02:51:30 Yes. Jan 24 02:51:33 I am efinitely using that Jan 24 02:51:47 Also, I am planning to achieve the ballmer peak tonight and make some serious headway Jan 24 02:51:49 on this app Jan 24 02:52:03 iirc you can also find out the current "permanent" url to their profile, something like a version suffix on the avatar URL. you might have to delete the cache / do something at that point, but it's not too tricky. Jan 24 02:52:24 Yep, I found out you can actually pass their facebook ID into a specific URL to retrieve their profile pic Jan 24 02:53:19 yep. that's the quick-and-easy route anyway :) Jan 24 02:53:59 Awesome. I'm looking through their javadocs right now, but you might know the answer already. Can Picasso crop/transform the picture into a circle??? Jan 24 02:55:03 crop to e.g. square: I think so? to a circle: not built-in I think. there's an entire "Transformation" thing you can use to tweak it for display though Jan 24 02:55:14 that's part way down the page on https://square.github.io/picasso/ Jan 24 02:56:07 So Facebook only returns square images and I'd like to cut it into a circle (a la google apps using material design) Jan 24 02:56:39 I think my first guess would be to draw the bitmap to a canvas, and set a circle clipPath Jan 24 02:57:00 No idea how to do that... is it difficult? Jan 24 02:57:09 but there might be a better way. or there are a bunch of circle-avatar-drawing examples out there if you google, since it's kinda the hot thing to do now. Jan 24 02:57:33 "For maximum security when rendering content from the open web, consider providing your own renderer on Android 4.3 and earlier so that you can keep it up to date with the latest security patches." Jan 24 02:57:37 https://plus.google.com/+AdrianLudwig/posts/1md7ruEwBLF Jan 24 02:57:41 Talking about WebViews. Jan 24 02:58:02 D: Jan 24 02:58:28 new post coming soon "... or just make a Chrome app! It's easy!" Jan 24 02:58:33 lol Jan 24 02:58:49 I'm not sure whether I should disable my WebView activity by default. :/ Jan 24 02:59:10 ¯\_(ツ)_/¯ Jan 24 02:59:26 maybe just ask the first time they click a link? Jan 24 02:59:47 is it ok in the Play description to talk about features and show screenshots of things in an app that are only accessible by in-app purchase, without really specifying that they need to be purchased? **** ENDING LOGGING AT Sat Jan 24 02:59:59 2015