**** BEGIN LOGGING AT Wed Jun 29 02:59:58 2016 Jun 29 03:01:35 ? Jun 29 03:01:43 what's sad about it ? Jun 29 03:04:27 why couldn't they just use cmake ? Jun 29 03:08:01 java and cmake? Jun 29 03:13:11 Do you guys mainly use an actual device to test? Jun 29 03:14:39 I just started using lock screen security (PIN/fingerprint) but it's annoying to unlock my screen constantly while developing. Jun 29 03:16:49 surf2b1: There is a wakelock option in dev settings afaik Jun 29 03:19:32 i guess i will have to stick wire heartmonitor to build that system Jun 29 03:19:39 heart rate* Jun 29 03:19:48 realone that people put on hands Jun 29 03:20:06 huh? Jun 29 03:20:33 so you haven't decided what you want to do yet Jun 29 03:24:49 LunarEclipse120, I don't want to keep the screen on the entire time I develop. Maybe I'll just turn off lockscreen security. Jun 29 03:25:41 is there a way on android I can track users anonymously until they eventually identify themselves by creating an account Jun 29 03:25:58 for the UX I want them to not have to log in basically Jun 29 03:26:09 but at some point be able to tie them to like an email or something Jun 29 03:26:44 is it possible to generate some kind of GUID for my users and store it somewhere that will be shared across their devices? Jun 29 03:27:00 and survive reinstalls/app data clearing Jun 29 03:32:36 grekkos, I don't think it's possible for multiple devices. Relevant: http://stackoverflow.com/questions/2785485/is-there-a-unique-android-device-id Jun 29 03:37:47 surf2b1: is there some kind of cloud storage linked to the google account that I can store this kind of information in that's not accessible to the user? Jun 29 03:39:28 Yeah I've seen similar solutions before Jun 29 03:39:38 If I can generate the GUID myself and store it I'd be fine with that Jun 29 03:43:13 upload it to your server. I'm sure you could use firebase (haven't tried it out myself yet) Jun 29 04:01:23 android Jun 29 04:34:29 java vs android, which is more difficult? Jun 29 04:35:48 yes Jun 29 04:36:38 xD Jun 29 04:36:46 mimtf: You can't compare it. Jun 29 04:36:55 :| Jun 29 04:37:02 x) Jun 29 04:37:07 mimtf, android is a platform where the java language is being used Jun 29 04:41:00 <_xor> Hey guys, newbie here. What's the best way to load data from SQLite & adapt it into a list of cards? I know about RecyclerView + CardView (reading about it now). I've heard of Loaders and Cursors, but I've also read that they're being deprecated (not sure). Jun 29 04:41:04 <_xor> What should I look into? Jun 29 04:41:49 <_xor> I have a network service that runs in the background which can fetch and load the data into SQLite. I can send an event message to the activity to reload data from SQLite. I'm just trying to figure out how best to connect SQLite to the RecyclerView.Adapter or whatnot. Jun 29 04:43:37 Hello Jun 29 04:43:43 Hello molikto. Jun 29 04:44:39 we have a wire problem. the apk we created, the files in META-INF is not compressed Jun 29 04:44:42 Archive: tantan-2.3.2_76_oppo.apk Jun 29 04:44:42 Length Method Size Ratio Date Time CRC-32 Name Jun 29 04:44:42 -------- ------ ------- ----- ---- ---- ------ ---- Jun 29 04:44:44 89141 Stored 89141 0% 06-29-16 12:30 e598e5d1 META-INF/MANIFEST.MF Jun 29 04:44:46 89260 Stored 89260 0% 06-29-16 12:30 9ddeeee5 META-INF/CERT.SF Jun 29 04:44:57 and this caused some problems when user install it Jun 29 04:45:20 those files are never compressed Jun 29 04:45:40 adq: mmmm.... actually they are in my previous builds Jun 29 04:45:42 the total size of them is ridiculous compared to your app Jun 29 04:45:51 we used DexGuard this version Jun 29 04:46:03 well, they are in the zip (apk is just a special zip) Jun 29 04:46:24 ah, if you use dexguard it's another story, you should try to contact their support Jun 29 04:46:51 that's what I am doing.... but I think they are sleeping.. :-( Jun 29 04:46:57 mimtf, you still around? Just finished working on my little green tractor: https://www.youtube.com/watch?v=S2DJmTZbZ-A Jun 29 04:46:58 and the problem is somehow urgent Jun 29 04:47:32 lol it is you? Jun 29 04:48:00 farmer do coding in Western? Jun 29 04:48:02 lol Jun 29 04:48:40 mimtf, yup that's me and my little lawn tractor. Actually I just put a new 20HP V-twin motor from Ebay in it, but I had to make the video when I had out the old motor. Jun 29 04:49:29 lam pull tractor? Jun 29 04:49:30 lol Jun 29 04:49:37 lamb Jun 29 04:49:45 but the sun has set so I'll have to finish another day, but got engine in and it runs, but still need to put mower deck on Jun 29 04:50:12 well, technically, it's a goat which is a bit different than a sheep, but general idea is correct :P Jun 29 04:50:18 farmer do coding. great Jun 29 04:51:18 yeah farmer must be multi-skilled to make it here Jun 29 04:52:01 great Jun 29 04:52:12 where you live? Jun 29 04:52:20 Washington State, USA Jun 29 04:52:35 us farmer is great Jun 29 04:53:02 I kind of like the story "Indian youth becomes millionaire by selling simple game app written by ignorant USA farmer" Jun 29 04:53:26 Maybe google would promote it because of that and it be as good as happy nerd Jun 29 04:54:25 what game app? Jun 29 04:54:29 can i see it? Jun 29 04:55:01 where's the jumpy jim app Jun 29 04:55:04 mimtf, I sent it to you last night, need it again? Jun 29 04:56:23 bankai_: We convinces the guy making it not to give it to him. Because it's wrong to feed off others work Jun 29 04:56:27 it is in my computer. Jun 29 04:56:30 jesseg: Jun 29 04:56:38 mimtf, oh cool Jun 29 04:56:45 jesseg: Wait, you actually gave it to him? Jun 29 04:56:48 LunarEclipse120, oh that guy yeah I remember him Jun 29 04:56:55 mimtf: Are you feeding it off of people's work? Jun 29 04:56:57 funny guy he was Jun 29 04:57:09 it is game app that indian made? Jun 29 04:57:14 jesseg: Who? Jun 29 04:57:15 LunarEclipse120, hey do you mind if I upload my simple app to the play store? Jun 29 04:57:18 mimtf: What? Jun 29 04:57:24 jesseg: As long as you made it. :P Jun 29 04:57:39 I have no problem with people putting there stuff on a play store. Jun 29 04:57:57 LunarEclipse120, great but I'm just a poor farmer so I cannot afford the $25. So what's your problem if my indian friend and I partner and he front the $25? LOL Jun 29 04:58:00 But when someone wants to put in no effort and has someone else do it, that is a problem Jun 29 04:58:06 jesseg: made it for me LunarEclipse120 Jun 29 04:58:14 mimtf: Which is the problem Jun 29 04:58:28 jesseg: Because all he would do is loan you $25 dollars Jun 29 04:58:41 He would get $25 back and that would be it Jun 29 04:59:17 well getting $25 is hard these days. He need some reward for fronting the $25, why he not get to keep commission? Jun 29 04:59:46 I could get so lazy with this broken grammar I might get spoiled. Yes I already be spoiled good. Jun 29 05:00:10 Just as long as you upload it. Jun 29 05:00:40 when i get $25, then i will upload it. so i will be millionaire. Jun 29 05:00:40 Ffs, the fact that he came here and advertised for it is bad enough since it is against the rules Jun 29 05:00:42 :) Jun 29 05:00:44 Why? I *made* it *for* *him* to *upload* and *sell* and *keep* the ?profits? Jun 29 05:00:59 mimtf: You won't make a million you idiot. Jun 29 05:01:07 As I said multiple times. Jun 29 05:01:08 :| Jun 29 05:01:23 You probably won't get the $25 back. Jun 29 05:01:40 jesseg: Well, I guess you're right. But keep in mind you aren't going to make much. Jun 29 05:01:46 At least it's a learning experience, for you anyway. Jun 29 05:01:52 :| but i believe jesseg and i think that game app is great Jun 29 05:02:13 LunarEclipse120, LOL of course I won't make anything. I told him right out of the shoot that he could keep all the profits. Jun 29 05:02:17 jesseg said himself that it wasn't the best. Jun 29 05:02:35 LunarEclipse120, it's very simple but it works great at least on my phone. Jun 29 05:02:52 LunarEclipse120, for me, it was just a coding challenge like those "Make an app in 24 hours" contests they have. Jun 29 05:03:03 If it helps someone great. If not, fine, I still had fun writing it. Jun 29 05:03:19 jesseg: Yeah. But he thinks he's going to make 1 mil xD Jun 29 05:03:22 Which isn't going to happen Jun 29 05:03:42 LunarEclipse120: mabe, it is possible. Jun 29 05:03:52 LunarEclipse120, probably not. Unless google sponsors it because it was sold by an indian youth and it was written by a green-aware USA farmer Jun 29 05:03:58 xD Jun 29 05:04:02 jesseg: They won't :P Jun 29 05:04:18 LunarEclipse120, probably right but once in a while google does stupid things :P Jun 29 05:04:31 mimtf: Still the chances are greatly outweighed. You probably won't even earn back your investment. Jun 29 05:04:38 jesseg: The Google CEO is Indian. Jun 29 05:04:51 LunarEclipse120, LOL. Jun 29 05:05:13 $25 :| Jun 29 05:05:16 <_xor> Anyone? :) Jun 29 05:05:42 <_xor> Best option to load a RecyclerView/CardView with data from SQLite? Jun 29 05:05:43 mimtf: Yes, not even that. Jun 29 05:06:04 mimtf, anyway, as I said from the get go, I really doubt you can make any money with it but it will be a learning experience. Sometimes a learning experience costs money. Jun 29 05:06:36 Learning experience for jesseg anyway. Jun 29 05:06:43 mimtf put in no effort. Jun 29 05:06:45 but i have no money of $25, Jun 29 05:06:45 It's just a very simple app but it does work, I just wish you could try it out :D Jun 29 05:06:57 jesseg: I would if you send me an APK. Jun 29 05:07:11 Because I'm not going to pay the rediculous ammount mimtf is going to try and sell it for. Jun 29 05:07:18 Karmas a bitch. Jun 29 05:07:20 LunarEclipse120, hmm there might be an APK built into the source tree Jun 29 05:07:48 jesseg: Just build one real quick and put it on your server Jun 29 05:08:09 LunarEclipse120, K first I gotta figure out how to build an APK... Jun 29 05:08:23 i can make android game app server? Jun 29 05:08:43 LunarEclipse120, how do I make an apk? Jun 29 05:09:06 jesseg: Android Studio --> Build --> Generate Debug APK Jun 29 05:09:14 mimtf: Not unless you want to pay Jun 29 05:09:30 oh Jun 29 05:12:00 LunarEclipse120, OK I think this is it: http://videoflier.com/files/app-debug.apk Jun 29 05:12:38 I'll check it out in a bit Jun 29 05:12:52 it uses the microphone as a timebase and the sound level that comes in the microphone is used to determine how high Jim Jumps. Jun 29 05:13:21 i will not reply because i must eat meal Jun 29 05:13:23 bye Jun 29 05:13:25 and Jim can jump higher even when he's already jumping Jun 29 05:13:28 bye mimtf Jun 29 05:13:34 :) Jun 29 05:17:25 getting $25 isn't hard Jun 29 05:17:38 It is if you live in India. Jun 29 05:17:50 that's only 10 sales at 2.99 Jun 29 05:29:44 Hey all Jun 29 05:29:56 Hello baash05. Jun 29 05:30:19 I'm trying to pass values into a an OnClickListner constructor Jun 29 05:30:24 private View.OnClickListener mListenerAccept = new OnClickListener2(value){ ... } Jun 29 05:30:27 Like that. Jun 29 05:31:08 you could just use a public String and update it Jun 29 05:31:08 What's the issue? Jun 29 05:31:52 How would I do that.. I'd want to use it inside the onClick event. Jun 29 05:32:24 public static String test = "blah"; then to assign onClick test = "blahblah"; Jun 29 05:32:26 I'm not keen on holding a value on the class that creates the instance. Jun 29 05:32:33 ah.. Jun 29 05:33:08 just check for a created instance, then free if needed.. Jun 29 05:33:21 if you are doing something crazy Jun 29 05:40:32 hi, i'm back :D Jun 29 05:41:35 Welcome back. Jun 29 05:41:42 jesseg: Trying it out now. Jun 29 05:41:55 guys, I have a working build.gradle for my project: http://paste.ubuntu.com/18079152/ Jun 29 05:42:15 But I want to mix pluging for using both build system features. Jun 29 05:42:23 LunarEclipse120, cool. Jun 29 05:42:26 define 'both' Jun 29 05:42:38 so I made this: http://paste.ubuntu.com/18079215/ Jun 29 05:42:55 gradle 2.1.2 and gradle-experimental 0.7.2 Jun 29 05:42:56 jesseg: Doesn't work, "recorder not initilized" Jun 29 05:43:11 now I have 2 questions. Jun 29 05:43:16 LunarEclipse120, fascinating. What android? Real device or emu? Jun 29 05:43:20 LunarEclipse120: you're trying new espresso recorder ? Jun 29 05:43:36 jesseg: My Moto X. I figured it out. Jun 29 05:43:38 hero_biz: I dont think you can mix them Jun 29 05:43:40 1- is it good idea to have jni in your main app, or it is better to make seperate lib for it? Jun 29 05:43:49 LunarEclipse120, lol forget to give it permission for mic? :D Jun 29 05:43:52 jesseg: I needed to give the app permission. Jun 29 05:44:02 jesseg: Yes, you should make it request it. Jun 29 05:44:10 gordon_: there are samples for it,ph0b has one for example. Jun 29 05:44:22 ah, good to know Jun 29 05:44:25 but he has done it in 2 files,not 1 Jun 29 05:44:41 LunarEclipse120, oh, it requests it in the manifest but maybe your android requires the java code specifically request? Jun 29 05:44:52 so back to my question: Jun 29 05:44:53 so he has two projects, one for native and one for sdk app Jun 29 05:44:55 1- is it good idea to have jni in your main app, or it is better to make seperate lib for it? Jun 29 05:45:03 My old gingerbred device requested audio privs when I installed the apk Jun 29 05:45:12 jesseg: https://developer.android.com/training/permissions/requesting.html Jun 29 05:45:13 or no it's pre gingerbred. Jun 29 05:45:14 no 1 project, 1 native lib, 1 main non native Jun 29 05:45:15 jesseg ripping broken codes Jun 29 05:45:17 hero_biz: we use jni, but it's library imported from eclipse Jun 29 05:45:27 https://gist.github.com/ph0b/0575b30b67e04f2ec10f Jun 29 05:45:29 LunarEclipse120, well does Jim Jump? Jun 29 05:45:37 so I cannot really advise you anything atm. I would like to change it for sure Jun 29 05:46:04 that is what ph0b has done Jun 29 05:46:09 jesseg: Yes, but I can just blow into the mic and it works. Jun 29 05:46:22 hero_biz: lib_build is what ? native one Jun 29 05:46:24 ? Jun 29 05:46:28 LunarEclipse120, yes it's multi-lingual. I only had an hour or two to make it :D Jun 29 05:46:42 * hero_biz I wonder whenever I start doing a project strange doing things come to me... Jun 29 05:46:55 goden_: yea Jun 29 05:47:07 LunarEclipse120, I found that flying Jim with a constant hiss was actually easier than making Jim Jump Jun 29 05:47:10 do you see model in plugin? Jun 29 05:48:27 this is a a very great sample, but as you see in my working build.gradle, I need to change ndk flags for building various flavors. Jun 29 05:49:06 so I don't know:1- if it is a good idea to have ndk in your main project or it is better to be in another one? 2- how I can modify ndk tag from other one... Jun 29 05:51:50 I'm trying to compile something, and it seems that, for some reason, `make` ignores my LDFLAGS, and it simply can't find some libs... has anyone had similar problems compiling android stuff? Jun 29 05:55:08 https://developer.android.com/reference/android/speech/SpeechRecognizer.html Jun 29 05:55:55 sasser, haha very handy Jun 29 05:58:32 never seen a voice activated flappy bird would be interesting Jun 29 05:58:37 actually Jun 29 05:59:36 'up up up up up... f@#k' Jun 29 06:00:13 xD Jun 29 06:00:45 make a silent cuss word counter then do some statistics on cussing Jun 29 06:01:01 haha Jun 29 06:01:28 "penis was used after death, 5x. Jun 29 06:01:30 guess you will need big data for getting stats Jun 29 06:02:03 Speaking of cuss counter. Jun 29 06:02:07 add pulse stats from watch Jun 29 06:02:07 I'm watching south park atm Jun 29 06:02:19 The one where they say "shit" as many times as they can Jun 29 06:02:20 and you can do some reseach from it Jun 29 06:02:59 LunarEclipse120, what's the best way to regulate my frame rate? Obviously using the mic is choppy probably because it comes internally in larger chunks Jun 29 06:03:10 Not sure Jun 29 06:03:36 gordon_ u just encouraged me to buy a pebble Jun 29 06:03:57 :D Jun 29 06:12:09 can an interface extension have a different constructor? Jun 29 06:12:28 uh? Jun 29 06:13:51 hmm. Jun 29 06:14:16 I see how that doesn't make sense. Jun 29 06:14:25 still need help with my small problem in mixing gradle stable and experimental. :) Jun 29 06:14:51 Sorry I have a strange question from a co-worker... I think he's talking crazy. Jun 29 06:16:40 yes, "co-worker" Jun 29 06:17:31 :D Jun 29 06:17:56 Nah.. I'm not typically a java coder, so sometimes questions catch me by surprise. Jun 29 06:20:19 Can you rephrase your question so it makes more sense? Jun 29 06:21:02 Yeah, it confused me too. Jun 29 06:21:47 has anyone been using the new firebase platform? Jun 29 06:39:43 Hi, I just had a bad review on play store where user says that they uninstalled my application but are still getting push notifications. How is this possible? PS, we use GCM Jun 29 06:49:24 astroduck, users are stupid Jun 29 06:52:42 astroduck: that sounds so cool, how did you do it? Jun 29 06:52:55 it would be a great way to annoy people Jun 29 06:55:34 I keep getting an issue when using AudioTrack on 6.0 Jun 29 06:55:36 D/AudioTrack: write: userSize = 7552, blocking = 1 Jun 29 06:55:52 That's what printing continuously and my app is getting crashed Jun 29 06:56:00 Any idea on what should I do? Jun 29 06:56:25 surf2b1: Is it possible that she has 2 user accounts, those new L thing, on her phone and she is getting notification of other user account? Jun 29 06:56:45 razor1101: I am trying to figure that out too :P Jun 29 06:57:19 hm? but when you get GCM it is your BroadcastReceiver that creates notification yes? Jun 29 06:57:30 so how could it be being your app uninstalled Jun 29 06:58:01 she would have to be logged in as the other user. I doubt it. She probably is just incorrect. Jun 29 06:59:05 you assumed its she :v Jun 29 06:59:59 "possible that she" :p Jun 29 07:01:00 ah. and how does he know it Jun 29 07:01:14 maybe name from review and profile picture Jun 29 07:01:26 however, it could be some guy I guess Jun 29 07:06:10 Guys anyone? Jun 29 07:06:49 Is there any way to disable abbreviation words in SpeechRecognizer system? e.g. "1st" for "first" Jun 29 07:07:17 What's a best way to send data from an activity to a widget? Jun 29 07:07:26 It's a simple collection widget. Jun 29 07:07:35 I keep getting an issue when using AudioTrack on 6.0 Jun 29 07:07:40 D/AudioTrack: write: userSize = 7552, blocking = 1 Jun 29 07:07:43 That's what printing continuously and my app is getting crashed Jun 29 07:07:48 Any idea on what should I do? Jun 29 07:10:16 guys, is it possible to send a parameter to gradle script of a dependent library from gradle script of main app and build library based on that parameter? Jun 29 07:18:17 Hey guys, what would you recommend for new project min sdk ? Jun 29 07:18:32 I am thinking about API 21 Jun 29 07:19:53 well many changes occurred in API 21 Jun 29 07:20:14 still 4.4 has ~30% which will slowly fade Jun 29 07:20:17 https://developer.android.com/about/dashboards/index.html Jun 29 07:44:10 does anyone know if the in-app billing functionality is part of google play services library Jun 29 07:44:15 that I download from the android sdk Jun 29 07:44:29 not the AIDL, but the actual functionality Jun 29 07:46:19 pretty sure the AIDL handles all it Jun 29 07:46:37 alrighty, yeah that's what I was thinking Jun 29 07:46:45 I think the AIDL is the only thing we need Jun 29 07:46:53 and it uses it to contact the iab service Jun 29 07:47:05 https://developer.android.com/google/play/billing/billing_integrate.html Jun 29 07:47:12 the only reason I ask is taht I am debugging an IAB issue and it seems to work fine on my older version of my app Jun 29 07:47:13 ya it says Google Play Billing simply downloads that so Jun 29 07:47:17 but not on the newer one Jun 29 07:47:28 I get some weird PurchaseError{type=3,subtype=0} Jun 29 07:47:31 error from Finsky Jun 29 07:47:45 this only happens on my newer version which is using a newer version of google play services Jun 29 07:47:55 http://stackoverflow.com/questions/32388978/google-iab-return-purchase-error-type-3-subtype-4 Jun 29 07:47:56 ? Jun 29 07:48:36 Actually, the error is "Unfortunately, your transaction can't be completed..." Jun 29 07:48:40 thanks though Jun 29 07:48:53 I am not sure where they get those error codes Jun 29 07:48:55 I tried finding them Jun 29 07:48:55 hmm Jun 29 07:49:02 type=3,subtype=0 Jun 29 07:49:16 type=3,subtype=0 = "Unfortunately, your transaction can't be completed" Jun 29 07:49:33 type=3,subtype=4 = ""The item you requested is not available for purchase."" Jun 29 07:50:05 and you have it all setup in testers, via your publisher? its just the older phone? Jun 29 07:50:09 the only thing I can find with regards to my error is that maybe the credit card is bad or something Jun 29 07:50:21 sasser: yeah, actually it is my older app Jun 29 07:50:23 same phone Jun 29 07:50:35 so my older app (v1) works fine but my new app (v2) gives me this error Jun 29 07:50:52 nothing has really changed though in the billing code Jun 29 07:50:55 what changed? look at your code Jun 29 07:51:06 what's more frustrating is that it is intermittent Jun 29 07:51:15 works about 50% of the time Jun 29 07:51:27 actually maybe less, works about 30$ Jun 29 07:51:29 30% Jun 29 07:53:16 did you set permissions for billing in the new one? Jun 29 08:06:33 Log.i("info", "a = " + a); <—— what is “info”? Jun 29 08:07:37 It's a string used as a tag to provide some context to the log message Jun 29 08:08:21 Instead of "info" you can use the enclosing class name to make it easier to see where the log message comes from Jun 29 08:08:31 ... for example Jun 29 08:27:25 sasser: yup Jun 29 08:39:52 Is it enough to close a Thread in my Activity's onStop method? Does that ensure it will never stay running when my app is closed? Jun 29 08:40:59 And secondly, I noticed that when I go back to the home screen onStop is called, but when I return to that app from the "open apps" screen the onCreate method is not called, and thus my app crashes because the threads have been stopped. How can I fix this? Jun 29 08:41:05 Does jack work with 2.1.2 AS? Jun 29 08:41:13 im getting 100% while compiling when i enable it Jun 29 08:41:19 *cpu load Jun 29 08:42:04 Flaghacker: i dont think onstop is called if finish is called from the onCreate. where do you create the thread? Jun 29 08:42:40 In onCreate, what do you mean with "if finish is called"? I don't do that... Jun 29 08:42:54 (so I create the thread in onCreate) Jun 29 08:44:46 activity has a method called finish() that will make the activity stop. itll only 'wind down' as much lifecycle as it has spun up if it makes sense. so if you call that in onCreate then onStop wont be called, because onStart was never called. Jun 29 08:46:17 SO I should call finsish() within onCreate? That sound weird... Jun 29 08:47:09 oh he finished compiling after 5 minutes :E Jun 29 08:47:31 without jack it was like 30 seconds Jun 29 08:47:57 no. i was just telling you that if you did that could cause an issue. Jun 29 08:48:35 onCreate wasnt called again because it is already created, it is just being restarted. if you are terminating your threads in onStop then you should start them in onStart Jun 29 08:53:29 Ah okay I get it now. Is is actually a good idea to terminate them in onStop? Jun 29 08:57:01 because the javadoc says "Note that this method may never be called, in low memory situations where the system does not have enough memory to keep your activity's process running after its onPause method is called." Jun 29 08:57:12 does that mean I should close threads in onPause? Jun 29 08:57:20 onPause it better bet Jun 29 08:57:25 Flaghacker: it's generally advised to use onPause Jun 29 08:57:41 it should always happen unless sudden kill/crash happens Jun 29 08:59:07 any idea: Error:Execution failed for task ':app:compileXXXXXXXReleaseJavaWithJack'. Jun 29 08:59:07 > java.io.IOException: com.android.jack.api.v01.ConfigurationException: Error while parsing '\app\build\intermediates\exploded-aar\com.google.android.gms\play-services-tasks\9.2.0\proguard.txt':37 Jun 29 09:02:17 I'll do it in unPauze then Jun 29 09:02:38 And I assume I'll have to create the thread in onResume AND in onCreate then? Jun 29 09:03:04 start thread in onResume and stop in onPause Jun 29 09:04:18 So onResume is called when theactivity first starts? Jun 29 09:04:42 What kind of things should I do in onCreate? Only the layout/gui stuff? Jun 29 09:05:11 Flaghacker: inflate the view and load any bundled state etc Jun 29 09:05:53 I'm sorry but what do "inflate" and "bundled state" mean? Jun 29 09:07:32 Flaghacker: setContentView(R.layout.some_layout) <--- that call will inflate your view Jun 29 09:07:47 notice that onCreate has a Bundle as an argument Jun 29 09:09:13 this bundle will contain any information that has been written to it in another method (onSaveInstanceState or something like that) Jun 29 09:10:18 so if your activity is recreated for some reason (config change, system killed it etc) you have an opportunity to write out stuff you want to keep and you get a copy of that in oncreate Jun 29 09:12:32 And when I have one activity calling this one with some data, can I save that data in the onSavedInstance of this Activity? Jun 29 09:19:33 someone will have to clarify for me, but from memory if you start an activity via an intent with a bundle you get it either as the argument on onCreate or getIntent().getExtras() Jun 29 09:19:45 cant remember exactly which Jun 29 09:19:50 error: could not install *smartsocket* listener: Address already in use Jun 29 09:19:50 lol Jun 29 09:21:36 teasp00n, I know you get it with getIntent().getExtras(), but how can I keep that data when the activity is stopped and restarted? Can I use the onSaveInstance for that? Jun 29 09:23:45 oh, yeah for sure you can. Jun 29 09:25:06 The actual instance of my Activity class is discarded I assume? So I can't keep state in a basic class field? Jun 29 09:26:32 thats right Jun 29 09:26:43 Exactly, you need to save the data you want to persist in onSaveInstanceState and then pick it back up in onCreate Jun 29 09:31:57 And what should I do about an open connection with a bluetooth device? Close it and reopen it in onPause/onResume and keep the name of the device as saved state to restore the connection? Jun 29 09:33:22 Flaghacker: yes to the first bit Jun 29 09:33:48 did you want to use the same device across app launches? if so you will want to use some kind of persistence Jun 29 09:34:01 SharedPreferences or something like that for the device name Jun 29 09:37:09 I want to have one screen "select device" and then another "interact with device". When I go to the home screen and reopen the app from "open apps" I want to immediatly go to the second screen with the same connected device. When the app is really exited or the device reboots the app should go to the first screen again. Jun 29 09:42:31 hithere Jun 29 09:43:21 anyone had issues with jack and minifyEnabled? for some reason i cant build as soon as i set minifyEnabled Jun 29 09:59:51 teasp00n, so what was wrong with the second bit? Jun 29 10:02:54 Flaghacker: i was suggesting persistence so you wouldnt have to choose the bluetooth device every time you open the app but that's the way you described the app Jun 29 10:03:11 so you dont need to persist it as you pick the device every time in the first activity and pass it to the second Jun 29 10:04:27 But what do I need to do to the socket in the onPause method? I need to keep track of the device somehow between onPause and onResume Jun 29 10:06:54 close the socket in on pause and open it again in on resume? Jun 29 10:09:07 And I keep the name of the device as state? Because I thought you meant that was bad when you said "yes to the first bit". Jun 29 10:10:27 do you need to track the device i.e. it sends data while your app could be in the background? Jun 29 10:13:03 Flaghacker: i did but it's really just implementation detail. do you want to have to pick the device every time you start the app or will it always be the same one? Jun 29 10:13:28 Ashiren, nope Jun 29 10:14:25 ok Jun 29 10:14:48 teasp00n, I want to pick it each time the app starts, but I want to keep it when the app is in the "open apps" menu. So I need to close the socket in onPauze and I need to reopen it in onResumen right? Jun 29 10:15:05 yes Jun 29 10:15:14 no need to use SharedPreferences then Jun 29 10:15:18 ^ Jun 29 10:23:52 And is it a good idea to base that on the device name? Jun 29 10:25:24 guys, how can I limit abis in which a ndk module will be built for? Jun 29 10:25:34 weird Jun 29 10:25:52 I have a camera that I am plugging in to my phone using USB Host / OTG Jun 29 10:26:07 the phone doesn't pick the camera up on >= 5.1 Jun 29 10:26:12 but does on 5 and lower Jun 29 10:26:21 regardless of the device Jun 29 10:26:44 Permissions Jun 29 10:26:47 yea Jun 29 10:27:04 probably phone does not have enough permission :D Jun 29 10:27:07 I've found that happened to me when I was using BLE Jun 29 10:27:18 was it a secutity update or something? Jun 29 10:27:20 Lower than SDK 19 (or 18) and it worked fine Jun 29 10:27:27 it's on 19 now Jun 29 10:27:29 above it you have to request permission Jun 29 10:27:32 and Jun 29 10:27:37 it's only for a SPECIFIC camera Jun 29 10:27:40 9/10 of them work Jun 29 10:27:42 just 1 doesn't :P Jun 29 10:27:46 yeah so it's 19 and above you have to request permissions Jun 29 10:28:06 huh? isnt it 23 Jun 29 10:28:14 yeah 23 Jun 29 10:28:19 actually no Jun 29 10:28:25 USB permissions are from quite a while ago Jun 29 10:28:43 i meant runtime permissions :v Jun 29 10:28:46 Ashiren: I'm not sure, I'm just assuming his issue is the same which I had Jun 29 10:29:04 and I think the app which worked fine was running 18 Jun 29 10:29:14 but my app was targetting later than 18 Jun 29 10:29:19 tx: http://pastebin.com/cXSc047n Jun 29 10:29:40 it's not that Jun 29 10:29:46 this is on lollipop (5.1) Jun 29 10:29:50 with target sdk 22 Jun 29 10:29:51 :P Jun 29 10:30:08 runtime permissions are absolutely 23 and up Jun 29 10:30:38 API changes perhaps? Jun 29 10:30:52 I also noticed that this happened for BLE Jun 29 10:31:05 Would suck if it is Jun 29 10:31:15 it's such a strange issue as it only affects a single model camera that I have :p Jun 29 10:31:20 Where I'd look at the methods being called when it was 18 compared to my app which targets 23 Jun 29 10:31:22 that has both an SD and CF card slot Jun 29 10:31:40 (I am using the android MTP library) Jun 29 10:33:34 guys, how can I limit abis in which a ndk module will be built for? Jun 29 10:34:01 Anyone had issues where they tried to test their app on a local web server which gave error 400 messages within the app when making HTTP requests but could access the local version of the website in the emulated device's browser? Jun 29 10:39:31 DO you guys use PreferenceFragment when creating settings or PreferenceFragmentCompat? Jun 29 10:39:40 I'm so confused by all this compay stuff still a year later :( Jun 29 10:39:44 *compat Jun 29 10:41:53 Taios: I used PreferenceFragment Jun 29 10:42:09 How do you know which one to use? Jun 29 10:42:16 I didn't :D Jun 29 10:43:14 Taios: Seems to be that you use PreferenceFragmentCompat when you're using android.support.v4.app.Fragment Jun 29 10:43:49 At least I'm guessing that (maybe someone can correct me) Jun 29 10:45:48 I'm so damn confused about all these support libraries :( Jun 29 10:47:11 Taios: "If you want to make your app use fragments, and want to target devices before API 11, you must use android.support.v4.app.Fragment. However, if you're only targeting devices running API 11 or above, you can use android.app.Fragment." Jun 29 10:47:30 Ok - so this goes when using support librarby 7 too? Jun 29 10:47:36 Presuming it's just supporting different version numbers? Jun 29 10:47:45 but you should use Support Fragments even if you target >10 Jun 29 10:47:56 at least id recommend that Jun 29 10:49:02 Taios: I personnaly wrote a whole settings library Jun 29 10:49:05 I.e if I want to support devices to have similar support for material design - I use v7 ? Jun 29 10:49:16 preferencefragmtn is junk,from my view Jun 29 10:49:26 lol, I may have to do this :) Jun 29 10:49:39 As I need to recreate a good ui for users who are visually impaired Jun 29 10:50:03 oh,then do it... Jun 29 10:50:24 even if you could use it, I don't think it will be suitable for you. Jun 29 10:50:56 After prototype and we know the settings help tem with reading - we're creating a reader for a rare form of dementia that affects visual processing, not memory. Jun 29 10:51:03 That's good to know :) Jun 29 10:51:07 Why don't you think it will be suitable? Jun 29 11:00:29 Ashiren: Why you recommend support fragments? Jun 29 11:04:19 markyosullivan: because its guaranteed it will work more consistenly across devices and if bugs can/will be fixed in support libraries Jun 29 11:05:55 and support has fragment's features introduced in later api Jun 29 11:12:51 I cannot recall page with googles app design "guide" Jun 29 11:12:54 well I can't find a better way to extract album art, and it's crashing on only my Moto G, I guess I'll just give up on the idea or do a conditional check for Moto G's Jun 29 11:13:07 probably anything moto Jun 29 11:13:11 can samobedy be so kind?... Jun 29 11:18:08 https://material.google.com/layout/metrics-keylines.html#metrics-keylines-keylines-spacing https://developer.android.com/design/index.html Jun 29 11:25:41 Anyone switched to Kotlin for Android development? I'm thinking about implementing new functionality in Kotlin for my apps. Any pitfalls I need to keep in mind? Jun 29 11:33:16 if have an activity that has configChanges='orientation' but I want that on device rotation, a certain fragment to be recreated? Jun 29 11:37:59 How can you get the root class to be serialized as well in Gson? Or set a parent manually, since I don't want the parent name to be serialized, but mapped to another name. Jun 29 11:44:45 gdrc: does the onConfigurationChange method work in your activity? Jun 29 11:44:54 yes Jun 29 11:45:22 Use that to remove the fragment and re-add it Jun 29 11:45:26 I was also thinking to manage this in that method yes Jun 29 11:45:32 It Jun 29 11:45:36 pduin: are you from ams? Jun 29 11:45:56 It's what I did years ago in this app apparently Jun 29 11:46:10 I work from ams Jun 29 11:46:43 wich company? Jun 29 11:48:10 figured it out, nv Jun 29 12:06:24 How do I pass on variables such as custom fonts to other activities from the main activity? Jun 29 12:12:16 bundle extras Jun 29 12:12:32 MisterGadfly, i personally use a singleton for this , might not be the best way but it works Jun 29 12:12:39 and is simple Jun 29 12:12:43 oO Jun 29 12:12:59 Hmm. Only way is bundles? Jun 29 12:13:26 singleton... or service, maybe even some EventBus Jun 29 12:14:12 ioc with singleton service! Jun 29 12:14:24 Thanks for the suggestions Jun 29 12:15:30 hi! Jun 29 12:20:24 Why does 4.1 have so much more boilerplate code than 4.0.3? Jun 29 12:46:26 does anyone have any suggestions on what direction to take if i want to stream video from an android device to my web server? ive seen API's like libstreaming but its pretty outdated; not sure if Android's own rtpstream could be better Jun 29 12:49:56 I am trying to get Events from a Gamepad's DPad. They are reported as MotionEvents Jun 29 12:50:18 But for a DPad key only 2 events are reported - one for keypress and one for keyrelease. Jun 29 12:50:33 How can I keep getting these events as long as the DPad is kept pressed Jun 29 12:50:34 ? Jun 29 12:51:40 I have tried searching forums, but to vain Jun 29 12:51:57 HokarPokar: cant you keep track of that yourself if you have recevied a press but not yet a release? Jun 29 12:52:44 I would have to do that for all the keys. Doesn't seem like a sturdy solution. Jun 29 12:52:50 teasp00n: Jun 29 12:52:52 Aren't there 4 keys? Jun 29 12:53:04 Just copy and paste the code and change the variables. Jun 29 12:53:47 teasp00n: Does the Motion Event contains info about which key was released/pressed and whether it was pressed/released ? Jun 29 12:53:56 LunarEclipse120: Jun 29 12:58:44 teasp00n: event.getAction() == MotionEvent.ACTION_UP and event.getAction() == MotionEvent.ACTION_DOWN both return false Jun 29 12:58:54 LunarEclipse120: Jun 29 12:58:54 how can i change duration of ActivityOptions.makeClipRevealAnimation Jun 29 12:58:56 ? Jun 29 12:59:04 HokarPokar: No idea. Jun 29 13:00:44 Is there some kind of built-in thing to select a bluetooth device or am I going to have to make it myself? Jun 29 13:01:18 Flaghacker: https://developer.android.com/guide/topics/connectivity/bluetooth.html Jun 29 13:02:58 Yea I know how to do all of that stuff, but I want to ask the user to pick a device from the device list. Am I going to have to make my own layout etc. for that? Jun 29 13:04:40 Launch the activity for settings? Jun 29 13:06:06 And will that return control to me when the user picked a device? Jun 29 13:06:56 Yes, it should if setup correctly Jun 29 13:07:00 I have seen keyboard apps do it Jun 29 13:08:35 <_xor> How do I set a module to compile as a library? Jun 29 13:08:47 <_xor> I'm having a hard time finding that setting in Android Studio 2.1.x. Jun 29 13:08:51 I'll take a look, thanks Jun 29 13:10:41 teasp00n: I tried using getActionButton() to get which button was pressed but it has same value = 0 for all keys. Any other ideas ? Jun 29 13:14:54 Why does my newly-created simple activity crash when I set the theme to Theme.NoTitleBar.Fullscreen? Jun 29 13:16:22 Nevermind, looks like there are google results about this Jun 29 13:16:52 Who would've thought! Jun 29 13:18:44 Yeah, that was kind of a STFG question. Jun 29 13:19:30 HokarPokar: can you pastebin the code? Jun 29 13:33:57 hey guys, I was wondering where you guys like to handle HTTP calls using a recyclerview. Do you try to do it from the adapter or from the enclosing activity? For example, a recyclerview is showing a bunch of links and I can favorite one of them, I tap favorite, and the http call is made, where would be the best place to put that code? Jun 29 13:38:58 Have the Theme.AppCompat themes been removed? Jun 29 13:39:42 Android Studio doesn't seem to find them Jun 29 13:40:54 Using AppCompat v7 v24.0 Jun 29 13:41:41 Hey have not been removed Jun 29 13:42:18 nope, i use them Jun 29 13:42:42 fb|: I prefer using the activity, but I'm not sure if that's the best way or not Jun 29 13:42:44 did you add the dependency properly to your gradle files? Jun 29 13:43:17 fb|: actually I would do it in the activitie's viewmodel, but that's because I reuse code Jun 29 13:44:43 ktwo: yes, it's there Jun 29 13:45:15 strange, then you should have access, whats the actual error? Jun 29 13:45:53 ktwo: well, they don't pop in autocomplete Jun 29 13:45:56 Question: How does GCM/FCM work technically, does google keep a tcp-connection open to "listen" for incoming messages? Jun 29 13:47:08 MisterGadfly, in autocomplete, but do they work? Jun 29 13:47:13 Remaking the project fixed it Jun 29 13:49:14 Stupid Java IDE. Stupid Java tools. Jun 29 13:54:26 When I close the socket to a bluetooth device that device stays in the "available devices" tab in settings even though I power it off. It goes away when I reboot my phone though, so I think this is because I still keep something/some reference to the device, but where? Jun 29 13:56:42 teasp00n: https://ideone.com/t9QR6g Jun 29 13:57:25 teasp00n: this is the part of the entire big piece of code where I try to get the button state and resolve which button was actually pressed ? Jun 29 14:24:42 Anyone? Jun 29 14:33:16 LunarEclipse120: busy? Jun 29 14:43:59 hi Jun 29 14:44:02 adq, ad fabric.io - got new "answer" - interested? Jun 29 14:44:19 i have a productFlavours with application_id different. To use GCm i need a different SENDER_ID ? Jun 29 14:45:02 Does Android cache assets that have the same path when loading them? If not, it seems kinda stupid to me that I have to reload my font every time I change an activity. Jun 29 14:45:36 All that I'm getting from google are examples that reload the font asset Jun 29 14:49:09 hmmm,hi again Jun 29 14:49:11 ... Jun 29 14:51:59 guys, is there anyway to limit which abis will be built for ndk? gradle tries to build for ndk for everything while I want to build it for armeabi only. Jun 29 14:53:01 *which abis will be used for building ndk Jun 29 14:54:21 * hero_biz think that I ned to override compile task... Jun 29 14:55:08 there's an abi filter Jun 29 14:55:11 i have a productFlavours with application_id different. To use GCm i need a different SENDER_ID ? Jun 29 14:56:18 Android.mk also has abi filters Jun 29 14:56:46 pfn: no,cannot use it Jun 29 14:56:55 i use gradle-exerimental Jun 29 14:57:11 and it seems it does not work Jun 29 14:57:17 should say so, docs for it should say how Jun 29 14:57:36 ndk-build or go home Jun 29 14:59:14 pfn: it somehow specifies target for ndk tag only, not whole project. Jun 29 14:59:28 for example, my ndk needs a prebuilt library. Jun 29 14:59:37 there's an abi filter in gradle as well Jun 29 14:59:43 you need to specify both Jun 29 14:59:54 where in gradle? Jun 29 14:59:58 root? Jun 29 15:00:16 or in any special tag? Jun 29 15:00:27 read the docs on gradle abifilter Jun 29 15:00:30 I don't use it Jun 29 15:01:11 k,k :) I check it too Jun 29 15:15:34 anyone know what happened to e.g. aarch64-linux-android-gdb in the NDK? Jun 29 15:15:45 it's not there anymore. Jun 29 15:16:01 we can use the "normal" NDK-included gdb to connect, but we don't get symbols Jun 29 15:20:55 "At a time when many popular Android apps are multidex, we still ship a single dex file. Secondary dexes incur a performance penalty on every method call," <-- orly Jun 29 15:22:09 Nonsense Jun 29 15:22:28 multidex incurs a cold start penalty on older versions of the OS but that's it Jun 29 15:22:29 CedricBeust so that isn't true? sounded like their was some lookup / indirection overhead ? Jun 29 15:22:41 *there Jun 29 15:22:50 Who's saying this thing? Jun 29 15:24:18 that thing is being said by the instagram guys Jun 29 15:24:31 i posted in reddit to get feedback on that comment though :) Jun 29 15:25:37 i don't know how its implemented underneath, it make sense if its a jump table of sorts Jun 29 15:30:23 jonp, replaced with LLDB mostly I'd guess. Jun 29 15:30:48 looks like it died in r11 with a multiarch gdb Jun 29 15:32:24 https://groups.google.com/forum/?hl=ro#!topic/android-ndk/irNonmqea74 Jun 29 15:43:24 This guide here (https://developer.android.com/training/appbar/setting-up.html doesn't work, the classes AppCompatActivity and Toolbar don't exist. WHy is that? Jun 29 15:44:17 Flaghacker just a guess, you don't have support lib added Jun 29 15:44:58 g00s, damm I overlooked that, thnaks a lot! Jun 29 15:45:15 np Jun 29 16:01:17 cedric's gone, but there has been an observation that there is a first-start and launch impact Jun 29 16:01:21 no runtime performance impact Jun 29 16:01:30 obviously, more code to load => more IO Jun 29 16:01:59 secondary dex files don't incur a performance penalty Jun 29 16:02:26 oh, cedric did say that Jun 29 16:04:41 i m afraid of no one buy my app, if i make android app :| Jun 29 16:05:44 mimtf, there is a good chance of that. Jun 29 16:05:53 no one's gonna buy it if it's trash Jun 29 16:06:01 make a quality stable app with features that people want to use Jun 29 16:06:02 even if it's not, not many people will buy it anyway Jun 29 16:06:05 that and market it Jun 29 16:06:17 apps I make on my own have low sales numbers Jun 29 16:06:21 and in the end it s a bit of a gamble anyway :/ Jun 29 16:06:27 #android-dev memeber will buy it for me? Jun 29 16:06:52 truckcrash: ok? Jun 29 16:07:04 dont beg for sales. that will not work Jun 29 16:07:41 :| but i have no money to buy food. Jun 29 16:07:48 then get a job Jun 29 16:08:01 i m too young Jun 29 16:08:05 i can’t get job Jun 29 16:08:47 you’re never too young to get a job Jun 29 16:09:28 lol what you mean? s73v3r ? Jun 29 16:09:37 then mom and dad should be feeding you Jun 29 16:09:42 exactly what i said Jun 29 16:09:54 pfn: dad is dude Jun 29 16:10:00 he don’t earn money Jun 29 16:10:06 :| Jun 29 16:10:20 so i must earn money Jun 29 16:10:20 This is not the right channel for this discussion, it has quickly drifted off topic. Jun 29 16:10:33 seek assistance from your local food bank if need be. Jun 29 16:10:45 writing an app is not going to be your meal ticket Jun 29 16:11:03 that’s true. unless you hire yourself out as a freelance app developer. that’s where the money is Jun 29 16:11:04 but i m hungry Jun 29 16:11:18 ignored Jun 29 16:11:23 mimtf here is a cookie Jun 29 16:11:29 * g00s sends cookie over irc Jun 29 16:11:43 g00s: thanks for your mind Jun 29 16:11:45 :) Jun 29 16:12:14 how can i change duration of ActivityOptions.makeClipRevealAnimation ? Jun 29 16:19:34 when i change id of textview, this message show : Udate usages as well? This will update all XML references and Java R field references. what i must select? cancel vs No vs yes Jun 29 16:19:34 '?? Jun 29 16:19:35 ? Jun 29 16:21:22 yes Jun 29 16:22:01 a few days ago, on /r/androiddev , there was a nice article about how to know when the UI was hidden or not. anyone have a link ? Jun 29 16:22:37 help me s73v3r Jun 29 16:23:47 why would you not want to update usages? Jun 29 16:33:16 g00s, adding that library breaks the whole code: http://i.imgur.com/yLIT8Zw.png Jun 29 16:33:51 and idea says I don't need it for the version of my app Jun 29 16:37:17 To everyone else: I needed the appcompat library but when I add in in gradle my whole project breaks Jun 29 16:38:31 You need to compile against api24 Jun 29 16:38:54 But I'm targeting API 16... Jun 29 16:39:03 Then set your min sdk to 16 Jun 29 16:39:08 You still need to compile with api 24 Jun 29 16:39:30 and to what should I set targetSdkVersion? Jun 29 16:40:30 Something between 16 and 24.. If you don't want your app to suck for people with new devices, set it to 24 Jun 29 16:40:39 But you set targetSdkVersion to the highest api level you tested on Jun 29 16:41:20 Will that still work with lower API versions? Jun 29 16:41:37 Yep Jun 29 16:41:49 SO what does thet actually do? Jun 29 16:42:09 Read this: http://simonvt.net/2012/02/07/what-api-level-should-i-target/ Jun 29 16:42:35 I'll take a look, thanks Jun 29 16:42:35 Can I also update the Java version? Jun 29 16:43:23 Sure Jun 29 16:43:34 And that simply works? Jun 29 16:43:51 Will the new stuff work on an older VM? Jun 29 16:44:20 Older platforms only support java 6 Jun 29 16:44:33 That's unfortunate :( Jun 29 16:45:01 Some java 7 language features work on java 6 Jun 29 16:45:06 There's a list somewhere Jun 29 16:47:01 learning hacking vs learning android, which is more better to me? Jun 29 16:49:10 what is “learning hacking"? Jun 29 16:49:54 l0l s73v3r d03snt n0 a0ut el1t3 h4ck1ng Jun 29 16:50:18 mimtf: best resource to learn hacking: http://hackertyper.net/ Jun 29 16:51:12 orbyt_: what is it? Jun 29 16:51:18 i don’t understand it Jun 29 16:51:26 must not be a hacker then Jun 29 16:51:40 :| Jun 29 16:52:09 it’s a site that makes it look like you’re typing code real fast, like in the movies Jun 29 16:53:27 Err, it doesn't work for me Jun 29 16:53:51 i don’t know :( s73v3r Jun 29 16:54:03 s73v3r: I remember that site Jun 29 16:55:02 orbyt_: haha, good site Jun 29 16:55:07 markyosullivan: what is it? Jun 29 16:55:14 it’s a joke site Jun 29 16:55:59 yeah I used it to pretend to my parents I was some God at typing Jun 29 16:57:43 The icon, label etc in AndroidManifest are for the actionbar, right? SP I don't need them when I don't have an actionbar? Jun 29 16:57:47 On a similar note, I wish I never helped my family with IT issues, I'm always asked for any IT issue Jun 29 16:58:16 Flaghacker: keep them anyway Jun 29 16:58:21 markyosullivan, I'm not alone then :) Jun 29 16:58:34 s73v3r, Where are they used elsewhere? Jun 29 16:58:43 The launcher icon Jun 29 16:58:47 don’t know Jun 29 16:59:47 For the intent chooser Jun 29 17:01:59 What si an "intent chooser"? Jun 29 17:02:30 When you click a share button in an app and you have to select another app to handle it Jun 29 17:02:55 See Intent#createChooser Jun 29 17:05:10 Thanks! Jun 29 17:05:49 My tests are failing and I have no idea why- http://pastebin.com/KBSV7PFy - Looks like proxies are screwed up (Mockito) They were working before Jun 29 17:06:56 Nowhere in my code and I calling onViewCreated with 0 parameters, (fragment or presenter or otherwise) but the error is : Wrong number of arguments; expected 0, got 2 Jun 29 17:07:04 at SkillPathListFragment_Proxy.onViewCreated(SkillPathListFragment_Proxy.generated) Jun 29 17:07:28 You're looking for a place where you call it with two arguments then :) "expected 0" Jun 29 17:09:44 ah snap Jun 29 17:10:31 Wouldn't, however, my code not compile? Jun 29 17:21:13 It does compile, and the error is still there Jun 29 17:21:25 Super frustrating, google yields nothing Jun 29 17:23:11 b 5 Jun 29 17:31:45 hello, does anyone have experience with the FirebaseCloud google service? Jun 29 17:33:45 assembly vs android, which is more difficult? Jun 29 17:34:16 dafuq Jun 29 17:34:35 android Jun 29 17:34:38 you wont stop shocking me :D Jun 29 17:35:36 assembly Jun 29 17:36:12 it's completly different thing :D Jun 29 17:36:22 mimtf: android, for the sheer misinformation and incompetency of google Jun 29 17:36:50 Have you ever experienced a view no updating ? I have a fragment that I update by a method that pass a object, updates all views with this object fields. This Fragment is inside a BottomSheet, that colapses just before showing the data. Idk why when BottomSheet is hidden is updates the Fragment partially. After it's already collapse ( after first time ), every thing works as it suppose to. https://gist.github.com/wviana/08c91534ec5dad7b876c8dad9a1f8a Jun 29 17:36:51 6c Here is all about it code. In MapView.java that it starts the call for showing the bottomsheet and updating everything, Jun 29 17:36:58 https://gist.github.com/wviana/08c91534ec5dad7b876c8dad9a1f8a6c Jun 29 17:37:47 explodes, I'm sorry, but I actually have no idea. I just read the log :) Is one of the lines in the stacktrace your code? Jun 29 17:41:10 :/ I have an Button on which I need change text (create sort of timer), I have created runnable and posting this runnable to handler mHandler.post(runnable) Jun 29 17:41:28 problem is that button.setText("text") does nothing Jun 29 17:41:51 goiung throught this http://stackoverflow.com/questions/14782901/android-how-to-handle-button-click but it did not help so far Jun 29 17:41:55 any idea? Jun 29 17:42:37 what's the difference from back pressed and finish?? Jun 29 17:43:02 back pressed happens when back is pressed? Jun 29 17:43:29 I have a question with regards to binder's 1MB limit. Is this limit shared by "all" binder calls? Or just binder calls to a specific service? Jun 29 17:43:32 but animantion from makeSceneTransitionAnimation on destroy appear when back pressed and not on finish Jun 29 17:43:50 for example, if I make calls to ActivityManager, PackageManager, etc. are they allocated 1MB binder limit for each of them? Jun 29 17:44:01 sry - this http://stackoverflow.com/questions/12716850/android-update-textview-in-thread-and-runnable Jun 29 17:44:29 xan_IT: hmm, ok. you can override backpressed to not have close, at least... Jun 29 17:44:59 Eplebit i want to finish with the animation of back pressed Jun 29 17:45:47 i start activity using makeSceneTransitionAnimation and if i press back i see same animaiton in reverse. if use finish i dont see any animation Jun 29 17:45:51 why? Jun 29 17:46:16 Check the source of Activity Jun 29 17:46:19 See what it does in onBackPressed Jun 29 17:46:56 is there a way to make a merge tag layout act like a certain layout Jun 29 17:47:34 like if I create a custom viewgroup that extends RelativeLayout and inflates some xml that has Jun 29 17:48:12 maybe I should just preview the layout in the parent layout Jun 29 17:48:17 using runOnUiThread (....) says in log "Choreographer: Skipped 239 frames!.." Jun 29 17:48:34 any idea how to update UI from non UI Runnable? Jun 29 17:48:48 SimonVT onBackPressed call finishAfterTransition Jun 29 17:49:04 Well there you go Jun 29 17:49:12 bolovanos: You call runOnUiThread Jun 29 17:49:36 s73v3r, yes, but it does not update that Button.. Jun 29 17:51:31 s73v3r, runOnUiThread() starts (as I can see in log)... Jun 29 17:53:39 When your app is closed, and reopened, is the onResume() method called? Jun 29 17:54:28 God I hate Java. “Variable might not have been initialized” when I’m checking it for null. Jun 29 17:54:35 lol Jun 29 17:54:48 make it global Jun 29 17:54:51 weee :^) Jun 29 17:54:53 that’s what I’m doing, dammit! checkign that it was initialized! Jun 29 17:55:09 but you need to set the default to null Jun 29 17:55:25 so initialize myVar = null; then do what you will with it Jun 29 17:55:49 i had that, and AS said, “Hey, you want to get rid of this redundant initializer? Jun 29 17:55:55 Hey guys, how can I set a gap between rows in Grid Layout? Jun 29 17:55:58 haha Jun 29 17:59:48 nadav: I have that somewhere here. wait a couple of secs Jun 29 18:01:24 doh, wrong branch Jun 29 18:01:24 Do you know something about hidden BottomSheet ? Jun 29 18:03:26 nadav: but here... http://stackoverflow.com/questions/21455495/gridlayoutnot-gridview-spaces-between-the-cells Jun 29 18:05:59 s73v3r, that is what I have http://pastebin.com/jLC194tM Jun 29 18:06:30 well, for one, I see you’re missing a ) Jun 29 18:06:36 but I’m guessing you already got that Jun 29 18:07:00 You're also blocking the ui thread with your Thread#sleeps.. No wonder nothing happens Jun 29 18:07:15 i’m also not seeing where you start the runnable Jun 29 18:07:28 wait, I see it Jun 29 18:07:37 does onQueryTextChange get called? Jun 29 18:09:04 Thanks Jun 29 18:09:32 I hacked a way around it, I suppose, since I only needed large gap between two components and not all components, I just added another row and called it filler line and set the height to my liking Jun 29 18:09:47 s73v3r, those missed things are caused by my rewriting to pastebing Jun 29 18:10:23 s73v3r, onQuery... gets called - as I said I can see even runOnUiThread(...) being called Jun 29 18:10:53 and what’s the text in the button? Jun 29 18:11:08 SimonVT, rly? how is that? Jun 29 18:11:25 Well, you're calling Thread#sleep on the ui thread Jun 29 18:11:28 That tends to block it Jun 29 18:12:12 SimonVT, that is what mHandler.post(Runnable) does, isn't it? Jun 29 18:12:26 What do you mean? Jun 29 18:12:29 s73v3r, "5" at the begining Jun 29 18:13:04 SimonVT, I am using "mHandler.post(updateButton);" in order not to block UI thread, but you say that I am doing it Jun 29 18:13:34 Handler posts to the message queue of the thread on which it's created Jun 29 18:13:35 so you have an initial value of 5000 for timer. then you sleep for a second, and decrement 1. Jun 29 18:13:45 Assuming that thread has a message queue, otherwise it crashes Jun 29 18:13:49 so after one second, your text should be 4999/1000 Jun 29 18:14:07 So since you're creating it on the ui thread, you're posting a Runnable to be run on the ui thread Jun 29 18:14:12 it’d take about a thousand seconds for it to change Jun 29 18:14:14 Create a Thread if that's not what you want Jun 29 18:14:17 SimonVT, ok -that is what I thought, so I have to use Thread instead of Runnabl Jun 29 18:14:19 :) Jun 29 18:14:25 SimonVT, ok thank you Jun 29 18:14:33 Runnable is an interface with a run method.. Nothing special about it Jun 29 18:14:46 s73v3r, example - it normally works as needed - only problem was that blockage :) Jun 29 18:15:04 SimonVT, s73v3r thank you guys Jun 29 18:21:03 like a charm Jun 29 18:27:23 jonp: the NDK gdb is multiarch now, you don't need the arch specific ones Jun 29 18:27:37 Are you using ndk-gdb to connect? Jun 29 18:28:08 I think there was a bug in r11 where gdbserver (or maybe it was gdb) wasn't sending the right connect message to the other half so it didn't know which arch it was debugging Jun 29 18:28:14 But iirc that was fixed in r12 Jun 29 18:29:16 jonp: mentioned on that thread, in fact: "However, there's an upstream bug with the r11c gdb and arm/aarch64 targets, that causes gdbserver to not mention that it's targeting linux. If you're running gdb on windows or mac, you'll need to explicitly use `set osabi GNU/Linux` before connecting. (There's a workaround in place in r12 for both gdb and the gdbservers; either one should fix the problem.)" Jun 29 18:43:38 https://code.google.com/p/android/issues/detail?id=214182 Jun 29 18:43:40 hmmm Jun 29 18:43:43 is it an actual bug or a build issue Jun 29 18:46:48 Hey folks. I'm building an android rom based on 5.1 (because that's the version of the source drop from my HW vendor). I want to replace the system webview because the shipped version is woefully out of date. I have built an up to date SystemWebView.apk based on the LKGR. I haven't found any docs on replacing the default webview. Is the best method for this to add it as a prebuilt apk module with Jun 29 18:46:54 "LOCAL_OVERRIDES_PACKAGES := webview" ? Jun 29 18:52:06 Is there some problem about update views with visibility as GONE ? Jun 29 18:54:58 well their not drawn to the screen Jun 29 18:55:11 they're Jun 29 19:09:16 Is there any way I could use Google Autovalue, or anything like it, in an SDK and be guaranteed of nice class names Jun 29 19:10:22 Seems like Lombok does that, but Autovalue doesn't. Also seems like according to this google doc https://docs.google.com/presentation/d/14u_h-lMn7f1rXE1nDiLX0azS3IkgjGl5uxp5jGJ75RE/edit#slide=id.g2a5e9c4a8_00 that Lombok is only able to do it because of "compiler hacks" Jun 29 19:11:28 yiati: don't you decide the class name? Jun 29 19:13:36 rosten: AutoValue always prefixes class names with AutoValue_ Jun 29 19:13:45 I wouldn't want to ship an SDK like that Jun 29 19:14:05 At least not the public facing bits Jun 29 19:14:31 I could maybe only do it for the package-private and private classes :P Jun 29 19:15:04 I would be wary of using AutoValue, or other 3rd party SDKs in a library like that Jun 29 19:15:32 s73v3r: Why is that Jun 29 19:15:47 because now you’re forcing that library on your users Jun 29 19:16:06 not just the library, but a specific version of that library Jun 29 19:16:08 My service isn't writing to shared preferences when the app is closed. Any ideas? Jun 29 19:16:39 what if you’re using version 3 (for instance) of AutoValue, but some of your users are stuck on version 2 for various reasons? Jun 29 19:17:29 s73v3r: Wouldn't be an issue if Google followed http://jakewharton.com/java-interoperability-policy-for-major-version-updates/ :) Jun 29 19:17:38 Although there very well may not Jun 29 19:17:46 because people don't like happiness Jun 29 19:17:49 :( Jun 29 19:18:06 s/there very well may not/they very well may not/ Jun 29 19:27:06 helooo Jun 29 19:27:11 is anyone here? Jun 29 19:28:07 yeah Jun 29 19:47:07 no Jun 29 19:48:06 Hi! I'm having some problems with AnimationDrawable, if anybody can give me some hints, I would appreciate. Jun 29 19:48:19 The method start() from AnimationDrawable is not always animating the drawable Jun 29 19:48:45 On some calls it does what's expected, makes the image change frames, but most of the times, the images are not getting changed Jun 29 19:48:55 are you calling it in the UI thread? Jun 29 19:49:30 I'm calling it on the ImageView OnClick Jun 29 19:50:02 do you have anything that stops the animation? Jun 29 19:50:05 Everytime it gets clicked, the AnimationDrawable gets changed, but sometimes it will animate, sometimes it'll stay static Jun 29 19:50:06 I don't Jun 29 19:50:53 and OneShot is set to false Jun 29 19:51:20 dunno Jun 29 19:52:40 The thing that bothers me the most is that it's not always that it doesn't work... It seems random whether it'll animate or not Jun 29 19:53:14 And nobody I asked seems to have a clue about it x; Jun 29 19:54:12 make sure you check the logs.. apart from that, hang out here a while, hopefully someone will know Jun 29 19:57:27 Kerooker have u tried stopping the previous animation before starting a new one Jun 29 19:57:30 And calls of isRunning() from AnimationDrawable are always returning true, so, technically, they're running... But frames are not changing x= Jun 29 19:57:38 I didn't, sasser. Let me try that now Jun 29 19:58:43 It didn't work, sasser, the frames are still not moving on some clicks Jun 29 19:58:55 code? Jun 29 19:59:46 What's the best choice to send code here? I can send the Stack Overflow unanswered question Jun 29 19:59:48 whats the size of drawable? how are you loading it? Jun 29 20:00:04 ok Jun 29 20:00:07 send that Jun 29 20:00:17 The drawable is small (128x128), I'm loading it from a spritesheet in Assets and cutting it Jun 29 20:00:24 http://stackoverflow.com/questions/38094961/animationdrawable-is-not-always-animating-when-called-to-animate Jun 29 20:01:49 If more code is required, please let me know what else you need Jun 29 20:02:56 images? Jun 29 20:03:54 I'll edit SO's code Jun 29 20:05:45 So's post editted Jun 29 20:15:43 I'm pretty desperate... There's no other way for me to do this x; Jun 29 20:17:57 https://developer.android.com/reference/android/graphics/drawable/AnimationDrawable.html Jun 29 20:18:14 Can shared preferences not be accessed or edited while the app is closed? Jun 29 20:19:21 I've been through the docs, Sasser, I'm unsure what to do anyway Jun 29 20:19:42 Plugyn, I think you can't run anything outside your codes, and when your app is closed, the codes are not being ran Jun 29 20:19:51 Kerooker: i see, thanks Jun 29 20:19:54 ^_^~ Jun 29 20:19:59 So I believe that's you can't Jun 29 20:21:58 Any ideas, sasser? Jun 29 20:31:10 Guys, if anyone can g ive me a little help, I'm having troubles with AnimationDrawable Jun 29 20:31:29 All info needed are in my StackOverflow's question - http://stackoverflow.com/questions/38094961/animationdrawable-is-not-always-animating-when-called-to-animate Jun 29 20:31:30 i wish i could help but i know nothing about it ; _ ; Jun 29 20:31:46 It's alright, plugyn ;P Jun 29 20:34:17 what are you trying to animate from:to? Jun 29 20:36:54 I have a spritesheet setup, Orbyt_, and I'm trying to animate between its frames Jun 29 20:36:55 It works when I call the method the first time Jun 29 20:37:08 But following method calls are not guaranteed to work Jun 29 20:37:13 Sometimes they work, sometimes they don't Jun 29 20:47:28 Guys, if anyone can g ive me a little help, I'm having troubles with AnimationDrawable Jun 29 20:47:30 All info needed are in my StackOverflow's question - http://stackoverflow.com/questions/38094961/animationdrawable-is-not-always-animating-when-called-to-animate Jun 29 20:54:56 im trying to implement fcm messaging on my android app but im a little confused. is the Sender ID no longer necessary to be used anywhere as it was with gcm? Jun 29 21:00:07 where can I get a full list of android studio widgets and view items that can be put on apps other than the ones showing by default on the IDE? Jun 29 21:00:29 Guys, if anyone can g ive me a little help, I'm having troubles with AnimationDrawable Jun 29 21:00:33 All info needed are in my StackOverflow's question - http://stackoverflow.com/questions/38094961/animationdrawable-is-not-always-animating-when-called-to-animate Jun 29 21:11:29 eurythmia: do you know about crosswalk Jun 29 21:18:40 Anyone against using BuildConfig fields since they tie the code to the build system so much? Jun 29 21:18:46 Where do i find last gradle version ? Does a Jun 29 21:18:55 no, use build config Jun 29 21:18:57 Android Studio updates it auto ? Jun 29 21:19:02 no Jun 29 21:19:58 and latest version is found by looking at https://bintray.com/android/android-tools/com.android.tools.build.gradle Jun 29 21:20:02 pfn: They are pretty convenient, I like using / do use them Jun 29 21:20:35 Can you use MemoryFile for sharing memory for IPC or do you need to drop to native and use ashmem directly? Jun 29 21:21:36 So I'm already using last version. Don't know what to do anymore. Getting `android.content.res.Resources$NotFoundException: File res/drawable/abc_ic_ab_back_material.xml from drawable resource ID #0x7f020013` Jun 29 21:24:10 Everywhere says to use this `vectorDrawables.useSupportLibrary = true ` in gradle, but It still getting error. 😬 Jun 29 21:24:11 Seems like there might be a better way to architect my code instead of using custom BuildConfig fields, but meh Jun 29 21:25:46 I'm using tools:text="whatever" to see text in the design view Jun 29 21:25:49 But it doesn't work Jun 29 21:25:55 Causes the text view to be blank Jun 29 21:25:57 did you import the tools namespace? Jun 29 21:26:01 Yea Jun 29 21:26:06 wviana: Do all of your com.android.support dependency versions match in build.gradle? Jun 29 21:26:36 could the text be rendering the same color as the background? Jun 29 21:26:56 Nah its red against black. When i use android:text is looks fine. Jun 29 21:27:04 but I want to use android:text for binding Jun 29 21:27:05 yiati I think so https://gist.github.com/wviana/a3539f92ca423064602104ed7964dead Jun 29 21:27:13 But still see sample data in my layout Jun 29 21:27:17 yiati, build flavors Jun 29 21:28:23 yiati, and have flavor-specific sources Jun 29 21:28:32 Ah got it Jun 29 21:29:13 Weird, when you use binding the android namespace must be defined within the tag Jun 29 21:29:32 pfn: Ultimately I'm trying to get the maven VERSION_NAME out of the gradle.properties file for an aar I'm publishing, and currently I'm doing it by setting a buildConfigField in my build.gradle to the VERSION_NAME. I only want to have to change it in one place. This solution works, but might not be best Jun 29 21:29:39 Still complies and builds fine either way Jun 29 21:29:47 But design preview doesn't like it apparently Jun 29 21:29:55 But it doesn't even show errors Jun 29 21:29:59 It's just blank Jun 29 21:30:01 yiati, iirc, BuildConfig isn't included in aar Jun 29 21:30:14 yiati, so that's not the solution you need Jun 29 21:30:30 It is actually. Jun 29 21:30:34 Just under AAR package name. Jun 29 21:30:44 You can't reference the main apps BuildConfig though. Jun 29 21:30:49 Mavrik, but it's built during end-app, not included in aar Jun 29 21:31:25 com.android.support-appcompat-v7-23.4.0] $ jar tf com.andro id.support-appcompat-v7-23.4.0.jar | grep BuildConfig Jun 29 21:31:26 android/support/v7/appcompat/BuildConfig.class Jun 29 21:31:28 guess it is included Jun 29 21:31:43 Mhm, we're using it for a few things Jun 29 21:31:44 pfn: You were scaring me there! lol Jun 29 21:31:53 Like versions and stuff Jun 29 21:31:55 just shipped using it Jun 29 21:32:26 Mavrik, I was pretty sure it was handled by the end build, and not included in the aar, guess I misremembered Jun 29 21:32:43 I wouldn't be surprised if they changed it several times :P Jun 29 21:35:29 ah, I was probably remembering apklibs Jun 29 21:35:56 https://github.com/scala-android/sbt-android/blob/master/src/tasks.scala#L69-L78 Jun 29 21:35:57 Oh those. Jun 29 21:36:01 Those were fun. :D Jun 29 21:36:21 * pfn still supports apklib for no reason in particular... Jun 29 21:37:04 Could you please help me ? I'm getting ` Caused by: org.xmlpull.v1.XmlPullParserException: Binary XML file line #17: invalid drawable tag vector` and `android.content.res.Resources$NotFoundException: File res/drawable/abc_ic_ab_back_material.xml from drawable resource ID #0x7f020013` Here is my grade file https://gist.github.com/wviana/a3539f92ca423064602104ed7964dead Jun 29 21:38:01 are you using R.drawable.abc_ic_ab_back_material yourself? Jun 29 21:38:07 what's the full stack on that Jun 29 21:39:10 pfn No Jun 29 21:39:16 clean build then Jun 29 21:41:47 pfn Did it, still same. :( Jun 29 21:41:57 you still haven't provided a stack trace Jun 29 21:42:21 pfn OK, I'll add into gist. Just a sec. Jun 29 21:43:23 pfn There it is https://gist.github.com/wviana/a3539f92ca423064602104ed7964dead Jun 29 21:48:01 pfn Do you think that this may be using `abc_id_ab_back_material.xml` ? `getSupportActionBar().setDisplayHomeAsUpEnabled(true);` Jun 29 21:48:27 no, it's failing during the vector support check Jun 29 21:48:34 * pfn shrugs Jun 29 21:48:47 I don't even understand how it works in pfn In 5.1 It's working. In 4.4.4 It don't even open. Crashes as soon as starts. Jun 29 21:53:18 does anyone know anything about FCM? Jun 29 21:53:23 I thought in <21 Android Studio or something would generate the png for the vectors and place in a v21 resource folder. Jun 29 21:53:49 wviana, in 24.0.0 it uses vectordrawablecompat Jun 29 21:54:03 wviana, and for some reason, AppCompatDrawableManager is failing in loadDrawableFromDelegates Jun 29 21:54:08 breakpoint it and see why Jun 29 21:54:56 pfn Should I go from onCreate in ? Jun 29 21:55:26 Getting down on onCreate supper call ? Jun 29 21:55:27 wviana, no, just breakpoint loadDrawableFromDelegates Jun 29 21:56:30 pfn Found it. Come back soon Jun 29 21:57:10 wviana, there should be a logcat message before the crash that explains what is wrong Jun 29 21:59:51 https://android.googlesource.com/platform/frameworks/support/+/master/v7/appcompat/src/android/support/v7/widget/AppCompatDrawableManager.java -- as usual, aosp is fucking out of date... Jun 29 22:00:22 pfn found this comment `if (dr == null) { Jun 29 22:00:23 // If we reach here then the delegate inflation of the resource failed. Mark it as Jun 29 22:00:24 // bad so we skip the id next time` and a `Exception while inflating ` in logcat Jun 29 22:00:40 wviana, already said why--READ LOGCAT Jun 29 22:00:43 ops, sorry for that Jun 29 22:05:35 pfn Did get it, what about Logcat ? `org.xmlpull.v1.XmlPullParserException: Binary XML file line #17 tag requires viewportWidth > 0` I have no idea what it means by viewportWidth. I suppose that I have nothing to do with XmlPullParserException. Jun 29 22:05:44 Didn't get it * Jun 29 22:11:13 pfn I think that I've found something. `layerEnableSwitch.isEnabled() = Cannot find local variable 'layerEnableSwitch'` I've found this field in one of my files. Jun 29 22:12:39 Hi guys! This drives me nuts. I'm trying to implement a home screen app widget with a configuration activity. https://developer.android.com/guide/topics/appwidgets/index.html#Configuring This doc says "The App Widget host calls the configuration Activity and the configuration Activity should always return a result. The result should include the App Widget ID passed by the Intent that launched the Activity (saved in the Intent Jun 29 22:12:39 extras as EXTRA_APPWIDGET_ID)." But getIntent().getExtras() in my activity ALWAYS returns null. So I simply can't start the widget because I don't have widget ID value to pass into the successful result to call with setResult() Jun 29 22:14:07 I simply don't understand, even in this doc the code sample checks getExtras() value for not being null, but it doesn't say shit about when it might be null and waht even more important what you supposed to do if it's null? Jun 29 22:14:17 But I have nothing with `isEnabled` just `isChecked` Jun 29 22:15:25 Might be something with SwitchCompat Jun 29 22:16:53 Does anybody here has experience with configuration activities for home screen widgets? I bet someone has... I googled all over the internet already and all the samples are just copypasted from original google's sample Jun 29 22:19:44 its fairly straightfoward... Jun 29 22:21:09 Good night folks, that all for today Jun 29 22:30:22 does anyone know why the createbond() method doesn't auto connect once it's a device is bonded? Jun 29 22:30:31 the device* Jun 29 22:36:31 bohregar_: because being connected is expensive, and they want to always give fine grain control? Jun 29 22:37:28 So how do you initiate a connection with the device once it's paired? Jun 29 22:40:37 man, mini split air conditioners are so awesome, so disappointing that they're so uncommon in the US Jun 29 22:40:51 bohregar_, there is a paired broadcast Jun 29 22:40:59 bohregar_: Docs here are pretty good https://developer.android.com/guide/topics/connectivity/bluetooth-le.html Jun 29 22:42:21 pfn, how does that look like? :) Jun 29 22:44:59 I've poured over those docs for quite some time, the GATT server when opened on teh device, it just says that the commands are unrecognized. The device is a hogp device (controller). If I use the connectGatt command, it doesn't work. If I go to settings and click the paired device, it works wonderfully. But I'm in a scenario where I won't have touch screen access or another way to initiate that connection Jun 29 22:45:48 unless I'm doing something wrong Jun 29 22:45:49 has anyone worked with bitcoinj? Jun 29 22:47:02 Mavrik, this is mine https://plus.google.com/+PerryNguyen/posts/dwpiGTA9YwE Jun 29 22:47:23 Oh. Jun 29 22:47:47 Thought you meant movable, these are pretty much what people think of when you say AC here. Jun 29 22:50:06 very common here in brazil nowadays Jun 29 22:50:36 <_kw> I'm trying to switch to the new runtime permissions, but my compiler can't find Manifest.permission.GET_ACCOUNTS even though I added that permission in my androidmanifest.xml Jun 29 22:51:01 <_kw> i.e. in androidmanifest: Jun 29 22:51:16 i should buy one for my home office, as it is west facing Jun 29 22:51:35 <_kw> but this fails to compile because it doesn't know the symbol: int permissionCheck = ContextCompat.checkSelfPermission(context, Manifest.permission.GET_ACCOUNTS); Jun 29 22:51:38 but...i procrastinate every year Jun 29 22:53:50 Is java 7 or 8 better Jun 29 22:57:00 ax562: better than what? Jun 29 22:57:20 which is more stable Jun 29 22:57:37 define stable Jun 29 22:57:48 They’re both extremely stable, not the deciding factor. Kind of a moot question on Android anyway Jun 29 23:11:08 Mavrik, yeah, that's like the standard AC for everywhere except the US Jun 29 23:11:16 Mavrik, in the US, it's 99% central, window or thru-wall units Jun 29 23:16:40 can someone help me build hostapd for android? I've tried compiling it, but it didn't help at all. I also need to compile openssl... and looks like a big mess tbh. do I really have to download a whole android tree just to compile a single program? Jun 29 23:17:47 is is possible for someone else to compile it for me? Jun 29 23:55:06 does anyone know anything about FCM? Jun 29 23:57:13 firebase cloud? Jun 29 23:57:45 eljimmy: * Jun 29 23:58:24 yeah Jun 29 23:58:48 the cloud messaging. im just curious if needing to use Sender ID is required for it as it was for gcm Jun 29 23:59:14 oh, well i'm using it right now. but i'm only implementing a 1-way messaging system. Jun 29 23:59:23 so i don't think I can help, sorry :c Jun 29 23:59:37 :D Jun 30 00:00:25 this shit is a nightmare to use with nodejs Jun 30 00:00:36 trying to send notifications to my app Jun 30 00:01:03 eljimmy: actually if you do know how to do this it'd be nice: have you found a way to store the payload in shared messages while the app is off? Jun 30 00:01:08 s/off/closed Jun 30 00:01:25 i can't even get a message to send right now lol Jun 30 00:01:43 did you first use the console for testing? Jun 30 00:01:45 the firebase console Jun 30 00:03:41 i suppose i should actually try it in there to make sure nothing is misconfigured Jun 30 00:04:18 yeah you should get the client to receive things first Jun 30 00:04:22 and then implement the server Jun 30 00:06:47 ok well it seems like that part works Jun 30 00:06:52 it makes my app crash hahah Jun 30 00:06:58 >< Jun 30 00:07:37 now i just need my server to make that happen Jun 30 00:07:54 i hope you get it c: i've been pounding at the same problem for 2 days now Jun 30 00:11:52 i feel your pain Jun 30 00:45:37 what findViewById method return? Jun 30 00:46:25 it returns the view that matches the id Jun 30 01:00:05 TextView textObjectPartA = (TextView)findViewById(R.id.textPartA) <—— then why there is a (TextView) ? markmarkmark ? Jun 30 01:00:32 because you cast it to TextView? Jun 30 01:00:54 you said that rindViewById return Textview? Jun 30 01:01:09 because R.id.textPartA is textview Jun 30 01:01:14 markmarkmark: Jun 30 01:01:53 it will return the view in the layout that is identified by that id. if the view that is identified by that id is a textview, then you will be able to cast the view to a textview Jun 30 01:03:40 if id is textview, then why i must cast it to textview? markmarkmark ? Jun 30 01:04:33 because the return value is View. ViewGroups aren't generic containers, they only know that the objects they contain are subclasses of View Jun 30 01:04:59 and even if they were generic, it would kind of suck to only be able to have TextViews in your ViewGroup ya know Jun 30 01:05:21 ok thanks :) Jun 30 01:11:12 how can i import class automatically? Jun 30 01:11:20 package Jun 30 01:11:31 how can i import package automatically? Jun 30 01:12:35 markmarkmark: ? Jun 30 01:17:41 textObjectPartA.setText("" + partA); <—— i don’t know why there is a “”? Jun 30 01:18:03 perhaps you need to find a java 101 book and learn the basics Jun 30 01:20:16 bankai_: this is android instead of java :| Jun 30 01:20:59 mimtf: it's still java, java enough for you to have to know java to code for android Jun 30 01:21:55 http://www.javaworld.com/blog/java-101/ <—— you means this? bankai_ ? Jun 30 01:22:15 sure, why not Jun 30 01:22:33 textObjectPartA.setText("" + partA); <—— i don’t know why there is a “”? bankai_ ? Jun 30 01:22:53 learn java, there's your answer Jun 30 01:23:02 textObjectPartA.setText(partA); <— this is wrong? Jun 30 01:26:06 my answer was mimtf -> /ignore Jun 30 01:26:34 i must ignore bankai_ ? g00s ? Jun 30 01:29:21 yeah ignore bankai_, he's a troll Jun 30 01:30:15 :| Jun 30 01:38:20 bankai_ is my friend from down under Jun 30 01:40:10 how can i import class automatically by clicking keyboard? Jun 30 01:40:16 g00s: ? Jun 30 01:40:17 but sometimes i think one of his labs is running the irc account Jun 30 01:41:15 the naughty one of course Jun 30 01:41:26 *naughtier :) Jun 30 01:41:35 No one help me Jun 30 01:41:40 great channel Jun 30 01:44:46 mimtf: you should ask your questions to a search engine, you will get results more quickly Jun 30 01:45:05 :| Jun 30 01:45:22 mimtf: you ask the types of questions here that can't be found by searching Jun 30 01:45:22 but i want to ask something to #android-dev Jun 30 01:45:51 https://www.jetbrains.com/idea/documentation/ might help you Jun 30 01:46:03 and the channel is not here to spoon feed a newcomer every step of the way, take a udacity or udemy or linda course Jun 30 01:46:42 mimtf: start by reading and doing the exercises at d.android.com and reading a java book Jun 30 01:47:58 ok Jun 30 01:49:22 has anyone used the google Science Journal app? i'm exploring the UI for ideas, its kinda like my app. but i see no way to delete experiments Jun 30 01:56:25 hmm, never seen it before. looks pretty neat. Jun 30 01:57:35 dsardari yeah its fun Jun 30 01:59:46 goos, i've never used the sensor apis before. you don't have to do any sort of math on the results to get usable data, do you? Jun 30 02:02:51 dsardari i'm not using the sensor apis either, but a BLE device that has fixed rate sample data Jun 30 02:03:18 you may need to apply low pass filters for noise though Jun 30 02:03:32 yeah, that's i assumed Jun 30 02:04:02 hey guys Jun 30 02:04:16 i'm actually going to do something similar for a friend soon, lol. Jun 30 02:04:20 jesseg did you finish mimtf app? he's going to go hungry in another day or so Jun 30 02:04:21 yo Jun 30 02:04:46 jesseg: :) Jun 30 02:05:04 LunarEclipse120: :) Jun 30 02:05:10 or was somebody else working on Jumpy Jumper Jun 30 02:05:13 g00s, oh yeah - src: http://videoflier.com/files/JumpyJim.tar.gz -- APK: http://videoflier.com/files/app-debug.apk Jun 30 02:05:38 g00s, nope that was me and it's done. Simple, rustic, but functional assuming your screen is same size as mine :D Jun 30 02:05:50 howdy mimtf you learning more java every day? Jun 30 02:06:12 yes i m trying Jun 30 02:06:24 great! Jun 30 02:06:33 but No one help me Jun 30 02:06:36 in here Jun 30 02:06:45 so i m very tired now Jun 30 02:06:47 basic java is not taught here Jun 30 02:07:05 i ask something about android Jun 30 02:07:16 mimtf, and if you love C you might try the NDK as you can write C there. I never done it myself, but I like C and Allegro the game graphics library, and it supports NDK/Android (as well as iphone, windows, mac, etc) so I've thought about trying that. Jun 30 02:07:39 mimtf, yeah the learning curve is pretty steep. I keep falling off the learning curve Jun 30 02:08:15 i will use c as hacking only Jun 30 02:08:26 i will make android app with java. Jun 30 02:08:38 what hacking? Jun 30 02:08:38 you can write great games in C if you are good at C. Jun 30 02:08:55 In my case, I write grate games. They grate on your nerves. Jun 30 02:09:10 well I should go work on my tractor some more. Jun 30 02:09:17 i m very good at C. Jun 30 02:09:26 yeah Jun 30 02:09:31 thanks jesseg Jun 30 02:11:07 mimtf, cool, write me a C program, maybe like a number guessing game or something on the text user interface Jun 30 02:12:53 OK I go outside for a bit Jun 30 02:13:23 did you finish that boulder jumping game? Jun 30 02:13:44 shmooz, yeah - src: http://videoflier.com/files/JumpyJim.tar.gz -- APK: http://videoflier.com/files/app-debug.apk Jun 30 02:14:00 hey Jun 30 02:14:36 jesseg: cool, I'll check it out soon Jun 30 02:18:17 shmooz, incidentally Jim turned out to be a fat green dot, and the boulders turned out to be simple green pillars of varying height. Their heights are set by the sequence 3,1,4,1,5,9,2,6,5,4 times some fixed scaling factor. It was quicker to type PI in then it was to figure out how to use the random number generator :D Jun 30 02:19:34 ok thanks :) Jun 30 02:29:13 What happens if you make a branch, edit a file, but that file is also edited on another branch, and then you pull Jun 30 02:29:21 Will your changes stay but the new items will be merged in? Jun 30 02:30:30 If that makes sense Jun 30 02:33:40 should I make a game? Jun 30 02:34:14 everyone is making games now :O Jun 30 02:34:59 anyone have a clue what this means: https://nopaste.me/view/9eaba4a4 Jun 30 02:35:10 my app is crashing every time it receives an fcm message and i can't for the life of me figure out why Jun 30 02:35:32 it means you dont have that method :P Jun 30 02:36:03 right... but its not from my package? com/google/firebase/iid/FirebaseInstanceIdInternalReceiver Jun 30 02:38:28 did you do everything right ? Jun 30 02:38:30 https://github.com/firebase/quickstart-android/tree/master/messaging Jun 30 02:38:33 check example Jun 30 02:40:49 yeah i was using that. Jun 30 02:41:00 maybe my build file is messed up. hrm... Jun 30 02:43:22 blargh Jun 30 02:46:01 omg it worked. Jun 30 02:46:26 damnit. i had the wrong version of firebase-messaging set in my build file Jun 30 02:46:50 gordon_, thanks for being my rubber ducky lol Jun 30 02:48:18 no problem Jun 30 02:48:23 i like ducks Jun 30 02:58:43 hello. Jun 30 02:58:51 has anyone else updated Android Studio today Jun 30 02:58:52 ? **** ENDING LOGGING AT Thu Jun 30 02:59:58 2016