**** BEGIN LOGGING AT Wed Nov 11 02:59:58 2015 Nov 11 03:15:10 anyone used opengl for android before? Nov 11 03:15:27 in* rather Nov 11 03:38:35 ugh do I really need to do a factory reset? Nov 11 03:38:45 I guess I can just unpin some music but wtf Nov 11 03:38:57 there was plenty of space before. I have no idea what's hogging all this space Nov 11 03:41:24 hey, I was about to develop an hello-world app for android but when I start a new project I always get "Gradle sync failed: Broken pipe" :-( anyone knows how to solve it? Nov 11 03:42:03 I can't update apps on my phone because the memory is totally used up Nov 11 03:42:28 I have like 5 gigs of pics and music. How is android eating up the remaining 13 gigs? Nov 11 03:42:38 this isn't a Windows installation FFS Nov 11 03:43:57 used to keep music and pics on an SD card, but the card became corrupted 3 or 4 times in 6 months Nov 11 03:45:57 RustyShackleford: that is a bad card, by a new one Nov 11 03:46:00 buy* Nov 11 03:46:34 I suppose thats pretty likely Nov 11 03:47:04 I have some smaller ones. Maybe I'll just throw a different one in there so I can avoid a factory reset Nov 11 03:47:32 too bad all your app settings aren't backed up Nov 11 03:53:32 RustyShackleford: you mean yours, not mine :-) Nov 11 03:54:42 djx: where are you backing up the settings? Nov 11 03:59:07 RustyShackleford: I don't have 100 so I don't really care :-) Nov 11 04:10:37 I wish Google Music left their app alone Nov 11 04:10:49 It was great when they didn't push their radio stations and store on you Nov 11 04:12:32 My code to have my app perform an action when it's first launched by a user seems to not always be working -- pretty new to android/java so I'm not sure why. Any clues as to what I'm doing wrong would be greatly appreciated. http://pastebin.com/rBQGeuN8 Nov 11 04:22:12 BilldaCat: Why are you initializing parse in that class rather than a subclass of Application..? Nov 11 04:24:06 tbh probably because i don't know what i'm doing and it's my first app. in my defense i contracted this out to someone who bailed on it and this is the way he did it and i'm trying to learn android/java and finish it. Nov 11 04:25:17 so this is the splashactivity class where it throws up the splash screen of the app while it's loading some json data in the background and i guess it seemed here was a logical point to check the preferences Nov 11 04:26:55 Well afaik you should always initialize it in a subclass of Application Nov 11 04:30:46 hrm. i saw this on SO which is extending activity -- is this incorrect / bad form? http://stackoverflow.com/questions/7217578/check-if-application-is-on-its-first-run Nov 11 04:35:26 BilldaCat: have you not read the Parse docs and/or quickstart guide? It specifically says where to initialize it. Nov 11 04:36:41 i'll check again, the thing is i thought i had it working right, and then all of a sudden now it's sporadically not working. maybe i biffed something there and didn't realize it Nov 11 04:44:28 orbyt_: yeah, i had found this answer, which i had used and was working. http://stackoverflow.com/questions/15134718/android-how-to-call-method-only-on-installation-of-app maybe since i'm calling it from activity/asynctask it's sporadically working.. i guess i'll try calling it from application and see if i have it behave more consistently Nov 11 04:49:30 I've downloaded a library from github, I've made some changes, how do I now use my updated library in my own project? Nov 11 05:13:23 Jonno_FTW: import it as module Nov 11 05:16:17 i wonder if YouTube engagement increased after their nav drawer -> tabs transition Nov 11 05:16:25 either way seems i can never find anything Nov 11 05:17:32 one of the interesting thing about tabs in Youtube app - they don't load until the ViewPager has completely settled Nov 11 05:17:50 so it doesn't look like adjacent pages / tabs are loaded ... i wonder how they do that Nov 11 05:18:17 is that possible with ViewPager adapter? i thought it always had at least 1 adjacent page ready Nov 11 05:19:34 may be the uses a layer of views. hides/shows appropriate layers when needed. Nov 11 05:19:40 s/the/they Nov 11 05:20:06 actually if you swipe through all the tabs and then go back they seem all loaded Nov 11 05:20:19 so i only saw that when app first started, hm k Nov 11 05:20:39 I'm the real napster Nov 11 05:20:51 Ologn == napster ? Nov 11 05:21:04 How many mp3s do you have? Nov 11 05:21:16 https://www.youtube.com/watch?v=dPjxtxTqnnI Nov 11 05:21:32 g00s, what are you talking about? Nov 11 05:21:56 you mean the content doesn't load until you view the tab? Nov 11 05:22:14 $ locate mp3|grep mp3$|wc -l Nov 11 05:22:15 1596 Nov 11 05:22:33 :) Nov 11 05:23:00 Although some of those are like /usr/share/doc/gstreamer1.0-fluendo-mp3 Nov 11 05:23:10 lol Nov 11 05:23:24 pfn hm, i retract my question - seems only happens when youtube app starts up Nov 11 05:23:48 i thought maybe they were doing that to conserve memory or something (not having all the tabs ready to go at the same time) Nov 11 05:24:46 the fragments inside the tabs, are the actual objects that could consume significant amount of memory Nov 11 05:25:00 I think it is statepager adapter, thus not very memory efficient Nov 11 05:25:40 g00s, more responsive loading, pull in tab content when you actually visit Nov 11 05:25:44 if it was pager adapter, it will reload the firs tab when we return from the third tab. Nov 11 05:27:35 napster: isnt that just the default? You can use setOffScreenPageLimit to prevent it from being destroyed/reloaded Nov 11 05:27:47 oh right Nov 11 05:40:05 I am starting a onboarding flow from my home activity during app launch if the user is not regsitered. On backpress it goes back to Home activity, How can I prevent this ? Nov 11 05:43:43 finish() home activity when you leave it Nov 11 05:46:30 In gerenal how is this implemented ? Nov 11 05:47:13 Home Activty -> Registration Activity -> Home Activity ? Nov 11 05:48:02 Home Activty —> fnish —> Registration Activity —> launch —> Home Activity ? Nov 11 05:50:52 Something like that, yes Nov 11 06:45:18 g00s: morning Nov 11 06:52:15 hi Nov 11 07:22:25 How can I track down the developer of my android to give some pointers? Nov 11 07:24:09 guardian-project: ??? Nov 11 07:24:22 are you talking about the system? Nov 11 07:26:05 guardian-project: android or android-app ? Nov 11 07:27:36 The entire os. Nov 11 07:28:03 guardian-project: s.android.com Nov 11 07:32:53 my android? Nov 11 07:34:20 to give some pointers? Nov 11 07:35:01 track down the developer? Nov 11 07:36:41 Such as doing away with the amr codec. Nov 11 07:37:54 sure, why not Nov 11 07:39:59 This system has peculiar design. Nov 11 07:40:32 you mean android? Nov 11 07:40:46 The amr codec is prone to errors. Nov 11 07:41:22 Thr build system is usually clued by the kernel version string. Nov 11 07:41:52 Customer service never givesbout contact info. Nov 11 07:42:38 guardian-project: just to be clear, you sound like an idiot Nov 11 07:43:12 Not clear. Nov 11 07:45:06 You're the average roll of the insult dice. Nov 11 07:46:04 Leeds the space program is expanding. Nov 11 07:46:59 * guardian-project rolls Nov 11 07:47:13 ok, so idiot troll it is Nov 11 07:47:42 leeds, heh Nov 11 07:47:59 * guardian-project rolls again Nov 11 07:51:14 anyone used Rajawali? https://github.com/Rajawali/Rajawali Nov 11 07:51:20 or opengl in android? Nov 11 07:54:14 hey thepoosh Nov 11 07:54:23 ho g00s Nov 11 07:54:31 what's news? Nov 11 07:54:44 hm, no news sorry Nov 11 07:54:52 holidays are coming :) Nov 11 07:55:03 trying to ship app Nov 11 07:55:20 what are you working on at the moment? an update or a new one? Nov 11 07:55:33 payed? freemium? Nov 11 07:55:36 free Nov 11 07:55:53 upgrade my old paid app Nov 11 07:56:06 lots of problems :( Nov 11 07:56:08 :S Nov 11 07:56:14 bugs or redesign? Nov 11 07:57:27 redesign - can't settle on a UI i like. i had nav drawer, thinking of moving to tabs but the app has to be redesigned Nov 11 07:57:45 one sec Nov 11 07:58:25 thepoosh i think she is mostly right about this http://www.fastcodesign.com/3041374/3-rules-of-app-design-according-to-yahoos-marissa-mayer Nov 11 07:58:35 trying to get everything within 2-3 clicks Nov 11 08:00:29 g00s: the conceptual difference between tabs and drawer is that the drawer basically allows filtering the main content fragment (similar to list/details design) Nov 11 08:00:47 while the tabs allow multiple types of different data in the same activity Nov 11 08:01:33 also, the entire article you linked is filled with places where she broke her rules so I'm not sure Nov 11 08:01:46 sure. but i remember reading somewhere that apps had more engagement when they ditched drawer. i think thats what lead to youtube app redesign Nov 11 08:02:13 could be, the nav-drawer is harder to use than tabs Nov 11 08:02:25 it's a perfect use-case for the gmail app Nov 11 08:02:26 for my drawer was better because i had quite a few items, but if i think hard maybe i can stuff those somewhere Nov 11 08:02:33 s/my/me Nov 11 08:02:43 but you can see apps like Facebook and Whatsapp that perfected the tabs Nov 11 08:02:57 ah, maybe i should look for screenshots Nov 11 08:02:57 * capella just realized the sebastian working with the moz mobile team is the yaaic dev :) Nov 11 08:03:12 capella: o/ Nov 11 08:03:12 will not contaminate my tablet with Fb Nov 11 08:03:26 lolz Nov 11 08:03:29 just a sec Nov 11 08:04:07 you might like: http://techcrunch.com/2014/05/24/before-the-hamburger-button-kills-you/ Nov 11 08:04:53 orbyt_ yes i saw that, thanks :D Nov 11 08:05:03 though now, the icon/drawer is so universally recognized that i think its less of an issue Nov 11 08:05:10 it's the floating round + button that pisses me off :/ Nov 11 08:05:43 g00s: http://cdn01.pelfusion.com/wp-content/uploads2/2014/06/free-facebook-apk-latest-android-2.2-app-to-download-for-phone-tablet.jpg Nov 11 08:05:51 if its static sure, but i just use the quick return pattern to hide/show it so it doesnt block content. works great. Nov 11 08:05:56 @ capella^ Nov 11 08:07:25 thepoosh cool thanks. the challenge i'm facing is that the user must be able to switch quickly between dashboards of data feeds coming from different devices. from UI perspective, you know how gapps let you switch between user accounts. open nav drawer, touch account, and you get a list Nov 11 08:08:02 thats the way i was going to do it, but still looking for a quicker way. maybe a spinner in the action bar . i thought slidingpanelayout, where all the devices were listed in the master part ... Nov 11 08:08:08 but there seems to be a few bugs with SPL Nov 11 08:08:31 hijacking the swipe gesture. not working in viewpager, etc Nov 11 08:09:45 thepoosh thanks for the screenshots Nov 11 08:10:44 so it adds a lot of complexity, the old app just assumed user had one device Nov 11 08:11:18 all the navigation paths kinda get another level of hierarchy, the switching between being the root Nov 11 08:11:39 thepoosh do you guys use anythign for UI prototyping ? Nov 11 08:21:07 Hi, I have a Handler that handles messages from e.g. a service to modify the UI. Teh liner tells me to make it static to prevent leaks, but if I do, I obviously cannot access non-static member functions of my activity/UI. I suppose I lack some basic knowlegde about design, maybe someone can enlighten me? Nov 11 08:21:32 s/Teh liner/The linter/ Nov 11 08:58:53 10:11 g00s: thepoosh do you guys use anythign for UI prototyping ? Nov 11 08:58:56 how do you mean? Nov 11 08:59:08 solution to "Permission Denial: starting Intent" http://stackoverflow.com/questions/19829507/android-java-lang-securityexception-permission-denial-starting-intent user Olayinka Nov 11 09:03:29 Hi, does anyone have some examples for DBFlow database migration? Nov 11 09:21:08 android-dev826: what's the problem? Nov 11 09:22:42 http://pastebin.com/TjbPSzrB Nov 11 09:38:18 I have a list view showing a list of checkboxes corresponding to a class Device's isTurnedOn member. I have implemented an adapter in such a way that the change in checkbox state is reflected in corresponding Device class's instance. I need to update the isTurnedOn boolean of all devices during runtime by reading SMS. But after updating the boolean, how do I instruct the listView to redraw all the checkboxes to match the isTurnedOn boolean? Nov 11 09:39:38 thank you thepoosh, but I found a manual using DBFlow, I need to create an Migration class Nov 11 09:48:16 Hey guys! I've got a question. Is it possible to add text inputs inside GuidedStepFragment in Android TV? Nov 11 09:48:24 Like a login form for example Nov 11 09:54:22 Just started using Repo, and have lots of detached heads. Is there a way to check out/track the current branch in all my git repos? Nov 11 09:57:53 Hi. Nov 11 09:59:29 I'm having some trouble with share view transitions. The problem is that in startActivity(intent, options.toBundle()); options.toBundle() actually returns null! Nov 11 10:00:30 I've debugged into ActivityOptions.makeSceneTransitionAnimation(this, pair1, pair2) and this actually seems to do something sane. But toBundle() hits an implementation that just returns null; Nov 11 10:29:17 Zta, what API level are you using as min? Nov 11 10:29:33 hi all Nov 11 10:30:28 howdy Nov 11 10:30:32 Can anyone help me regarding background noise suppression in android? Nov 11 10:30:50 during sip call Nov 11 10:44:41 platina: I've found my bug. In my style.xml I had true but not true Nov 11 10:44:48 subtle but important Nov 11 10:44:49 =) Nov 11 10:44:57 nice one :) Nov 11 10:52:22 kamol: Do you have any experience with Noise Suppressor in android? Nov 11 10:53:14 Zta: Do you? Nov 11 10:53:32 Is it possible to apply a share view transition of a whole tree of views? I have a CardView containing an ImageView in it. I'd like to share the CardView; have it move and scale specifically. Nov 11 10:53:41 salmank888: no Nov 11 10:54:07 and any work about background noise cancellation? Nov 11 10:54:37 My CardView has a border around it and elevation, so that's why I'd like it shared. Nov 11 10:54:43 All examples use only a simple ImageView =\ Nov 11 10:56:12 salmank888: no I didn't Nov 11 11:22:22 hi Nov 11 11:22:29 hihi Nov 11 11:22:53 i have this object http://pastebin.com/qsyxcK1t , but this json can return with others properties, how i can do it with gson? Nov 11 11:22:57 generic object Nov 11 11:23:28 i need mapping all the objects? Nov 11 11:24:48 <_AleX_> hi all ! i've a strange problem with proguard. My app works fine in debug, i've a button calling the facebook auth page, and come back in my app (i suppose by resuming the activity). When i switch in production and use proguard, i suppose my activity is always recreated and not resumed. someone can confirm that ? Nov 11 11:49:29 Zta, have you read this https://developer.android.com/training/material/animations.html? Has a bit on shared elements that might be useful Nov 11 11:52:32 platina: I have. I got something working. Except the animations aren't smooth. I need some useful documentation on XML transitionSet. Nov 11 12:07:21 My app requires very frequent GPS updates to get the current location so that it can update the contents of a list view on the UI - its freezing up as im doing the update calculations in the UI codebehind Nov 11 12:07:25 where should i do them? Nov 11 12:09:38 Probably in a worker thread Nov 11 12:10:19 Im looking for a way to highlight a a view for a second, make it highlight in some color and then come back to it's usual state. I'm working with EditText and Spinner views.. any suggestions? Nov 11 12:25:55 hey,i want to clear all my previous activities from back stack in my dashboard onCreate method. Is that possible ? Nov 11 12:25:57 'sup peeps Nov 11 12:32:33 sci-fic I believe you can through Intent flags, look at FLAG_ACTIVITY_CLEAR_TOP and FLAG_ACTIVITY_NEW_TASK Nov 11 12:33:32 platina:i was looking at it but most of people said different things so im a little bit confused. Nov 11 12:40:35 Anyone have any experience with share view transitions that rotate during transition from one Activity to the other? Nov 11 13:14:38 I am loooking for someone who work on background noise cancellation during calls in android Nov 11 13:14:52 can somebody help me? Nov 11 13:28:04 Noob question: How would I know to use/declare a permission in my manifest like this: com.google.android.apps.photos.permission.GOOGLE_PHOTOS Nov 11 13:28:55 I'm a programmer looking at an existing project and trying to figure out how it works Nov 11 13:28:58 @Ironthighs Nov 11 13:29:22 that syntax. I'm pretty sure it's GOOGLE_PHOTOS But I could be wrong. but the syntax is right Nov 11 13:29:54 oh my bad. that's actually wrong Nov 11 13:30:13 Thank you for your help. This permission is already declared and being used. I was more wondering where I would find the permission "GOOGLE_PHOTOS" Nov 11 13:30:30 How would I know what to put in the manifest if I didn't know about that permission Nov 11 13:31:04 There's a list of permissions on the android developers site, but I don't see GOOGLE_PHOTOS Nov 11 13:31:45 it's a google+ content provider, apparently Nov 11 13:31:48 according to stackoverflow Nov 11 13:32:05 Oh okay. So how would I have known that? Nov 11 13:32:20 http://stackoverflow.com/questions/21082708/java-lang-securityexception-permission-denial-opening-provider-com-google-andr might be relevant Nov 11 13:32:24 Sorry I'm hungover. hard to think Nov 11 13:32:29 lol it's okay Nov 11 13:32:41 sounds like you had a good time Nov 11 13:32:56 Always :D Nov 11 13:34:01 But yeah, I'm just wondering how the person that coded this knew to use that permission or w/e Nov 11 13:34:13 Is it a google+ app? Nov 11 13:34:20 No Nov 11 13:34:36 So I'm perplexed. Nov 11 13:34:36 Like I think I know what it's doing Nov 11 13:34:40 I have no idea... I had never heard of that permission until right now Nov 11 13:34:51 and it's probably relying on the fact that all phones have Google+ Nov 11 13:35:38 If I were you I would remove the permission and see where the app breaks Nov 11 13:35:48 Yeah, that's a good idea. Nov 11 13:36:06 If anywhere, probably where we try to load up images Nov 11 13:37:03 does the app use any image loading libraries? like picasso Nov 11 13:37:51 All we do is allow the user to take pictures and access their pictures to upload Nov 11 13:38:12 which I don't know why we wouldn't just broadcast that Nov 11 13:38:17 or whatever the term is Nov 11 13:39:23 Hell, it could just be legacy, honestly. Nov 11 13:39:39 might save you time to just ask the person who wrote it (if that is still possible) Nov 11 13:39:57 the only way you will know it to look through the code Nov 11 13:40:46 Yeah, I will ask. They're just unavailable for a few hours and I wanted to get marshmallow permissions in Nov 11 13:41:31 speaking of 6.0, does anyone know if 6.0 on genymotion is stable yet Nov 11 13:41:38 last time i tried to use it it crashed the emulator Nov 11 13:41:46 and i don't have a 6.0 device to test on Nov 11 13:42:01 I can try to run it Nov 11 13:42:18 I think it ran fine for me when I did about two weeks ago or so Nov 11 13:43:09 Yep, it's working for me Nov 11 13:43:29 I'm using the PREVIEW Nexus 6P device Nov 11 13:43:55 5X on 6.0 is what was crashing for me, I'll try 6P Nov 11 13:43:55 thanks Nov 11 13:44:03 np Nov 11 13:44:21 any one familiar with noise suppressor functionality in android? Nov 11 13:44:31 can some one help me? Nov 11 13:44:35 Hi, I'm trying to argue with Android devices distributor (CatPhones.com) on why they are violating GPL license by not releasing Kernel sources / device configuration. Could anybody here give me a help here? Nov 11 13:44:37 am in real trouble Nov 11 13:44:52 Not familiar, you might want to ask on Stackoverflow if you haven't already @salmank888 Nov 11 13:45:06 or wait for the good devs to wake up :) Nov 11 13:45:29 is there any legal statement from Google or Mediatek/Qualcomm/... copyrights owners, that I could link them to, instead of explaining them the license meaning from scratch? Nov 11 13:47:24 da3m0n22, check FSFE/FSF sites for explanation or help Nov 11 13:50:01 What does this mean: Uncaught translation error: com.android.dex.util.ExceptionWithContext: 2 ? Nov 11 13:50:22 Mavrik: anything specific please? Nov 11 13:50:35 Specific? Nov 11 13:51:06 I could use some help with shared view transtion. Here's a screencast of what I have (the bug is obvious): https://www.dropbox.com/s/t5qtfsd9koa4jyx/screencast-video.mp4?dl=0 Here's a selection of my XML http://pastebin.com/hYh3yHHL Nov 11 13:51:57 Note this is a shared view transition between two Activities, the SecondActivity being transparent. Nov 11 13:53:45 @ki9a do you have any debug only code in your app? Nov 11 13:54:02 liuwenhao: how do you define that? Nov 11 13:54:24 it's a test. So it's of asserts and stuff Nov 11 13:54:50 never had the same issue as you but found this on stack http://stackoverflow.com/questions/18498183/exceptionwithcontext-gets-thrown-when-trying-to-build-an-android-app-with-ant Nov 11 13:55:08 dunno if it's relevant but worth a skim Nov 11 13:56:58 A little more code here: http://pastebin.com/2FA9im3b Nov 11 13:57:52 liuwenhao: http://pastie.org/private/qstk23kinbgyeqrbp9l1tw#20 << mine has a lot less info Nov 11 13:58:47 But no; I don't use BuildConfig.DEBUG Nov 11 14:01:23 Is anyone familiar with fx file manager's tutorial? I'm curious how did they achieved that title position of the text. It has one for the current view and the other two for the left and right pages are sitting at the left/right of the current page. Nov 11 14:02:02 Mavrik: yup, preferably link or previous existing argumentation Nov 11 14:02:23 or rather, fx file explorer. Nov 11 14:02:30 Ah, no I don't have a link for the exact article you need prepared. Nov 11 14:02:38 But they certanly dealt with that already. Nov 11 14:04:25 uargh f, gotta go. Nov 11 14:04:51 I have compiled and installed gstreamer and player in android. Nov 11 14:04:52 May I know, how can I use gst-launch from command line to run the application? Nov 11 14:06:49 Can I get some help on the gstreamer commands in android? Nov 11 14:07:14 O.o Nov 11 14:07:15 Why. Nov 11 14:07:25 also, I cannot see any command like find,grep etc when I connected to the device via adb Nov 11 14:08:44 weston, why would you? Nov 11 14:09:07 for grep http://stackoverflow.com/questions/14701728/grep-the-adb-logcat-write-the-output-to-a-text-file Nov 11 14:09:12 don't know about gstreamer Nov 11 14:09:53 Mavrik: I need to run something from commandline Nov 11 14:10:11 also, I expect the shell with all commands available Nov 11 14:10:25 Well, Android isn't for you then. Nov 11 14:10:50 Since that's nowhere near how it works, neither it has to provide a working posix shell for you. Nov 11 14:10:55 Hence the missing tools. Nov 11 14:11:06 And hence why running stuff from command-line just won't work properly. Nov 11 14:11:39 Mavrik: ohh Nov 11 14:11:51 So you'll have to find another way. Nov 11 14:11:52 Mavrik: How can I achieve it? Nov 11 14:11:54 What are you trying to do? Nov 11 14:12:34 Mavrik: I have compiled and installed the gstreamer framework and player into my jelly bean devel board Nov 11 14:12:49 I need to run the gstreamer from command line Nov 11 14:13:06 Do to what? Nov 11 14:13:16 Mavrik: sorry Nov 11 14:13:25 *To do what? :) Nov 11 14:13:52 Mavrik: ok, thanks, fsfe it is Nov 11 14:14:15 Mavrik: ohh, sorry. I would like to run from command line to automate some tests Nov 11 14:14:41 also, to check the player uses the gstreamer framework for audio playback Nov 11 14:14:49 hmm. Nov 11 14:15:03 weston, I guess you can try looking up some of the busybox ports for Android Nov 11 14:15:20 means, I need to prove or demonstrate the audio is hearing or passing through the gstreamer framework itself Nov 11 14:15:34 Mavrik: I have the prebuilt image Nov 11 14:17:51 I want to implement a ViewPager with a title per page and the titles for the left/right pages on the left/right of the current page. While I swipe I want the title of the current to move but the left/right titles should move only when the current title touches them. Nov 11 14:25:34 hithere Nov 11 14:26:05 would you recomd use http://nineoldandroids.com/, if not - why, and how would you implement same app on lower API version? Nov 11 14:27:03 bolovanos_, I would recommend not targeting such old Android at all. Nov 11 14:27:08 you dont Nov 11 14:27:20 It's a deprecated library bolovanos Nov 11 14:27:32 ignore old versions unless you have a specific requirement Nov 11 14:27:50 liuwenhao, is there non deprecated alternative? Nov 11 14:28:04 Are you developing for 2.3.3? Nov 11 14:28:23 Mavrik: any links? Nov 11 14:28:33 hi there, I am experiencing service malfunction after phone power outage (battery removed from phone without shutting Android down and then the phone is turned on again) - using Apache Cordova and Red-Folder/bgs-core service plugin. I use "boot_completed" - when the phone is restarted properly the service timer (doWork function) goes alive without a problem, but after power outage the timer behaves almost randomly. Will someone help here? Nov 11 14:28:47 new development should only target 4.x and higher, bolovanos_ Nov 11 14:29:19 the phone I use is Samsung J5 with Android 5.1.1 Nov 11 14:29:20 liuwenhao, not directly - I just want to have user baseline as large as possible Nov 11 14:29:36 pfn, right now my lowest API is 16 Nov 11 14:29:47 then you don't need a library for those animations Nov 11 14:29:49 then you're fine Nov 11 14:29:52 since they are 3.0 Nov 11 14:29:56 stay there Nov 11 14:30:14 ok - thank you guys Nov 11 14:31:00 If you want to use 5.0 animations on 4.0 you need to use a compat library (for example the lollipop animations) Nov 11 14:32:03 liuwenhao, thank you for hint - maybe in future - will stay at 16 for now Nov 11 14:32:08 https://github.com/andkulikov/transitions-everywhere Nov 11 14:33:07 There are more specific libraries depending on what you want to do. Just choose one that is still being worked on or has a sizeable userbase Nov 11 14:34:05 liuwenhao, got it - thanks Nov 11 14:34:20 btw - is there any stat page like this https://developer.android.com/about/dashboards/index.html?utm_source=ausdroid.net#Platform Nov 11 14:34:47 What do you mean? Is that not good enough? Nov 11 14:34:49 but filterable by country? Nov 11 14:34:56 oh Nov 11 14:36:32 hey, i got a question why when i close my app and reopen it again click close again a second instance launches immediately as if it was lauched twice :/? Nov 11 14:37:23 I don't think there is one bolovanos_. At least not an official one Nov 11 14:37:47 Meh, my android studio crashes again every time I open a preview ... Nov 11 14:37:54 What do you mean close it? @S0phos Nov 11 14:38:22 Is it still running in the background? Nov 11 14:38:39 well its very strange case -> open app -> close app (finish) -> reopen it -> closes it again -> same activity relauches :/ Nov 11 14:38:53 automatically Nov 11 14:39:03 2 instances or something like that Nov 11 14:39:07 never had this before Nov 11 14:39:37 sometimes it launces 4-3 instances depends on how much i close and reopen app Nov 11 14:39:53 sounds like your app isn't actually calling the finish() code Nov 11 14:39:54 its like it is in the background Nov 11 14:39:58 how come Nov 11 14:40:05 i got log in my onDestroy Nov 11 14:42:12 Probably would need to see code to figure it out Nov 11 14:42:26 Do you have finish() in your onStop()? Nov 11 14:43:00 onDestroy you mean? Nov 11 14:43:06 i dont have onStop Nov 11 14:43:30 i think my services arent unbinding Nov 11 14:43:38 I'm trying to display a switch via html, however all I see is the off text, everything else is transparent. Nov 11 14:43:50 just a normal switch, nothing fancy Nov 11 14:51:07 I have a fragment which displays some text, and it has a public function setTitle() to change said text Nov 11 14:51:25 I need to set said text from the activity when setting up the view Nov 11 14:52:11 I tried setting titleTextView = view.findView(...) in onCreateView() and calling setTitle() in the activity onResume() Nov 11 14:52:22 but apparently activity onResume() is called before onCreateView() Nov 11 14:52:30 pass an intent from the activity to the fragment Nov 11 14:52:54 Save it in a variable, have the fragment set the text once you have a view Nov 11 14:53:20 my layout is pushed to upward i dont know why here is the code http://paste.ubuntu.com/13227641/ and the image http://ibin.co/2MCBvmo5H9WY Nov 11 14:53:58 SimonVT: oh of course, thank you Nov 11 14:54:13 liuwenhao: would that be considered better practice? Nov 11 14:54:15 @w0bni http://pastebin.com/y8fjaQxd Nov 11 14:54:23 That's how I do it in my fragments at least Nov 11 14:55:13 the getArguments.getString is just passing a string with the toolbar name from activity Nov 11 14:55:17 via bundle Nov 11 14:55:31 Don't know if that's the best way. But it works for me Nov 11 14:55:40 That does make sense Nov 11 14:56:00 thanks, guys! Nov 11 14:57:24 http://pastebin.com/1fT3wwKe Nov 11 14:57:49 now, I seem to have messed up anyway - onResume() isn't called upon rotation Nov 11 14:57:57 something like that (that's passing from fragment to fragment but you get the idea) Nov 11 14:57:59 so the text disappears when I rotate :-P Nov 11 14:58:41 if i have a cursoradapter displaying some data from a db, is there an automatic refresh mechanism in case a record gets added? Nov 11 14:58:51 oh screw it, I'll have the fragment remember the text itself Nov 11 15:00:50 osxorgate, no Nov 11 15:00:52 There is nothing wrong with saving the title as a variable once it's passed to the fragment, unless I'm missing something Nov 11 15:01:07 pfn, ok so then i'd might go to the BroadcastReceiver rout Nov 11 15:01:08 e Nov 11 15:01:11 Any one familiar with Noise Suppression in Android? Nov 11 15:01:17 I need help Nov 11 15:01:30 during calls Nov 11 15:03:56 Does anyone here use Dagger 2 for dependency injection? Is it worth learning versus the other dependency injection frameworks (roboguice)? Nov 11 15:15:42 hi Nov 11 15:16:20 do you know which package is responsible for google push notification? (gcm) Nov 11 15:17:41 I have a fragment that I want to diplay on the bottom of my views. It is 60dp tall. Nov 11 15:18:03 It seems that the other fragments don't realize it is there, and it therefore ends up blocking the bottom part of the fragments above it Nov 11 15:18:15 Is there any trick around this, rather than setting a 60 dp marginBottom on the fragment above the bottom fragment? Nov 11 15:19:39 Was I terribly unclear there? :P Nov 11 15:21:21 AlmogBaku: what do you mean? this? Nov 11 15:25:44 That's a good question w0bni, I always manually set the margins but I'm sure there is a better way to do it. Nov 11 15:26:13 You could also set percentages Nov 11 15:27:09 for example using layout_weight in FrameLayout Nov 11 15:29:11 http://i.imgur.com/6HDEYWb.png is it normal for Genymotion running android 6.0 to have the old style search box? it's so ugly Nov 11 15:30:11 liuwenhao: thanks! Nov 11 15:30:50 weight isn't a percentage Nov 11 15:31:02 if you want percent size, use the percent library Nov 11 15:31:19 Hello, I have a notificationCompat Builder, where I setLargeImage and setSmallIcon, but what I want to have is, to make an image in square form for both, so small and large. But in my Android Version 5 (Galaxy S6 Edge), I get the image with square in the circle Nov 11 15:32:12 pfn: you can use LinearLayout with android:weightSum to get the same effect Nov 11 15:32:20 no, it's not the same Nov 11 15:32:27 weight specifies growth from base size Nov 11 15:33:05 pls help me Nov 11 15:33:52 I always set weightsum to 1 and then work from that... i.e. give one framelayout a layout_weight of .30 and another .70 etc etc Nov 11 15:33:53 it only behaves the same if the initial size is 0dp to begin with Nov 11 15:34:08 Would the percentage library be a better way to handle it? Nov 11 15:34:22 maybe Nov 11 15:35:27 for example: http://pastebin.com/38M948B4 drawerfragment will take 30% of the screen, content fragment will take 70% Nov 11 15:35:42 I didn't know there was any other way to do it Nov 11 15:36:38 pfn, there's a percent library? Nov 11 15:38:28 It's part of the support library now. I had never heard of it until just now. So @w0bni you might want to look into that, I don't know if it's easier or harder to use, you would have to add it to your gradle dependencies though Nov 11 15:38:41 http://inthecheesefactory.com/blog/know-percent-support-library/en Nov 11 15:38:49 liuwenhao: I'll just stick with the static 60dp for now, but will check it out! Sounds cool! Nov 11 15:39:12 Yeah do whatever is easiest. As long as it looks good Nov 11 15:40:16 There is too much change in Android to keep up with. It's overwhelming Nov 11 15:40:31 I need to add more feeds to my RSS Nov 11 15:40:47 Any recommendations? I already subscribe to Android weekly and some other feeds Nov 11 15:43:03 @Enucar it works fine on non-Samsung devices I assume? Nov 11 15:43:23 Does anyone have any advice for downloading generated PDFs from a server? Nov 11 15:43:25 I've got a problem with the library I'm using not downloading the file because the server taes too long to respond (I assume)) Nov 11 15:44:08 I'm currently using koush/ion as a friendly wrapper for api calls/file downloads Nov 11 15:51:17 can you increase the timeout time? Nov 11 15:51:43 relevant (maybe) https://github.com/koush/ion/issues/18 Nov 11 15:52:17 liuwenhao: thanks for the input, I'll check it out Nov 11 15:53:04 The odd thing is that the download completes successfully, according to the library - there's no exception in the callback Nov 11 15:53:13 I simply end up with no file being written Nov 11 15:55:38 liuwenhao that seemed to work, thanks! Nov 11 15:57:55 Oh, maybe I spoke a little too soon Nov 11 15:59:55 I have no experience with that library unfortunately, you might want to check the github issues Nov 11 16:00:42 Yeah, I already took a bit of a look through - I didn't acknowledge it as an issue with timeout to begin with, however Nov 11 16:01:00 Do you think I might get better performance using the download manager? Nov 11 16:02:06 OKHTTP is the preferred library for speed, from everything I've read Nov 11 16:02:45 I use retrofit with okhttp but thats just for JSON data, not files Nov 11 16:03:20 you might want to look into okhttp Nov 11 16:03:52 Thanks again, I'm taking a look now Nov 11 16:04:40 downloadmanager would be a good choice as well. i don't know which is easier to implement Nov 11 16:05:40 I'll do some investigating, it's a bit of a pain as Ion is fairly heavily engrained into my app for handling API stuff at the moment - it's performing fine apart from this one area Nov 11 16:06:23 Open a github issue, see if you can get one of the devs to respond. I'm sure they could fix your issue asap Nov 11 16:06:30 assuming they are active on their lib Nov 11 16:06:32 do you tend to use OkHttp for json api calls in general? Nov 11 16:06:49 retrofit uses okhttp by default Nov 11 16:06:58 so i just use retrofit for json Nov 11 16:07:04 Got it Nov 11 16:07:04 super easy to use Nov 11 16:07:25 retrofit is just for parsing data though Nov 11 16:07:33 Damn, wish I knew about this sooner :P Nov 11 16:08:58 oh. apparently you can use retrofit for download pdf as well Nov 11 16:09:01 https://medium.com/@giuder91/retrofit-how-to-download-get-a-file-e83a9badcf6c Nov 11 16:09:13 retrofit is one of the best libraries on android so I would definitely look into using it Nov 11 16:09:42 there is very very little code you have to add to get it to work, which is why it's so great :) Nov 11 16:09:55 I'll give it a shot, this is quite an urgent thing for me as I'm wasting valuable dev time on this Nov 11 16:10:05 An easy quick solution is preferable :) Nov 11 16:10:33 Jake Wharton is the dev of retrofit, he is in this IRC channel often Nov 11 16:10:57 but it's easy enough that you won't need help to implement Nov 11 16:11:12 Certainly looks that way :) Nov 11 16:11:32 If I was google I would be offering a million dollars to hire that guy... haha Nov 11 16:11:42 Hahaha Nov 11 16:12:29 it'd just be a waste of talent Nov 11 16:13:00 hi Nov 11 16:13:14 i want to prompt a dialog over another app.. how can i do that? Nov 11 16:15:52 AlmogBaku, you cant. Dialogs live in the context of an activity Nov 11 16:16:12 so maybe dialog is not the term :) Nov 11 16:16:15 system window Nov 11 16:16:18 or an activity Nov 11 16:16:22 it can "look like a dialog" Nov 11 16:16:37 can i place activity above another app? Nov 11 16:16:50 yes Nov 11 16:17:12 and allowing you to still seeing the background activity? Nov 11 16:17:32 I want to place a "look like dialog"/dialog above another apps Nov 11 16:17:48 and to warn you when you open certain apps... Nov 11 16:18:44 i don't think it's a good idea AlmogBaku, also if you're not able to properly know if it's a dialog, an overlay transparent activity or whatever Nov 11 16:18:49 you would better not even try Nov 11 16:19:20 by the time user clicks on an icon to start an app, it's already too late for warning Nov 11 16:20:02 i over simplified the situation.. but it should be helpful Nov 11 16:20:21 and what happens if multiple apps does that? Nov 11 16:20:36 right now with our implemntation it opens a new activity.. but below the dialog you can see my app Nov 11 16:20:40 and not their Nov 11 16:20:54 i think it's bad for the user, overlay activity is ok in its own app process (like for hinting/tutorial) Nov 11 16:21:23 adq, in this particular case it must for the user.. Nov 11 16:21:36 and what happens if multiple apps does that? Nov 11 16:21:36 sorry that i can't elaborate my reasons :( Nov 11 16:21:53 what do you mean? Nov 11 16:21:57 are you gonna fight with them to be on top? lol Nov 11 16:22:45 AlmogBaku, do you plan to do a fake login screen and steal data from your users? Nov 11 16:22:53 it's highly suspicious if you cannot even explain a clear use case Nov 11 16:22:54 no Nov 11 16:23:30 hmm.. i need to warn my users when they open an app that is not on the whitelist Nov 11 16:23:47 it's kinda fireewall... Nov 11 16:26:35 Anyone here using Google App Invites and noticed that email invites have stopped working today? Nov 11 16:26:40 Hi there! Nov 11 16:27:06 I'm nearly finishing my App today, and finishing has come my bussiness :D Nov 11 16:27:51 I know there has to have been asked a million times, but why doesn't my Unique-activity app finish when the activity is destroyed? Nov 11 16:28:27 Do I have to take the nuclear route of calling killProcess() on the onDestroy handler? Nov 11 16:31:47 Apps don't finish, activities do Nov 11 16:33:49 SimonVT, so I don't have to worry about the app process remaining active after app finish()? Nov 11 16:34:32 No. Nov 11 16:34:38 Nope, just make sure you stop doing work (e.g. stop threads) Nov 11 16:34:56 miguelanxo, the whole point of the system is that the process doesn't have to be recreated and everything reloaded when the user comes back to the app Nov 11 16:35:07 if you do something dumb like killProcess() you deliberately slow down the device Nov 11 16:35:07 yeah, the threads are all stopped. I even created a dumb project with no nothing to check why the app wasn't closing Nov 11 16:35:19 okidoki Nov 11 16:58:26 Google App Invites Emails not being sent issue isn't just me.... seems to be affecting a few others too. http://stackoverflow.com/questions/33650551/google-app-invites-invitations-not-being-sent Nov 11 17:30:08 my sdk manager keeps hanging 1/2 way though refresh packages Nov 11 17:40:48 Anyone here used CCL? Nov 11 17:42:11 Anyone know the correct way to implement the MediaAuthService? Nov 11 17:42:27 I need to allow for next/previous without knowing the video URLs ahead of time. Nov 11 17:42:52 This simple fact is turning out to cause a huge path of destruction Nov 11 17:43:13 I'm hoping, very much so, that MediaAuthService can do what we want it to do Nov 11 17:43:37 Otherwise, the engineering put into our code will have to go out the window in order to use the awesome features of CCL Nov 11 17:43:46 ..Or we'll have to implement chromecast support the hard way Nov 11 18:25:03 is there some google api that lets you check for an apps version, release notes, etc? Nov 11 18:25:44 you can get the version number I believe Nov 11 18:26:22 where? Nov 11 18:26:41 PackageInfo Nov 11 18:26:47 http://stackoverflow.com/questions/4616095/how-to-get-the-build-version-number-of-your-android-application Nov 11 18:27:06 Sorry, I don't mean on the client Nov 11 18:27:11 I mean like a web-api Nov 11 18:27:34 oh, like from the play store listing? Nov 11 18:28:00 sorry, I wouldn’t know Nov 11 18:28:07 We have a website that works together with the app. When the user logs into the website I would like to tell him that there's a new version and also what the new version does. Nov 11 18:28:44 you have all that info on your server. just use that Nov 11 18:29:00 On our server? Nov 11 18:29:06 when the user logs in on the app, send the current version number Nov 11 18:29:25 Yeah, but how would the website now what the current version is? Nov 11 18:29:29 then, when they log in on the website, check the last logged in version number with the current version number, and if there’s an update, tell them Nov 11 18:29:34 it’s your website Nov 11 18:30:01 Yeah, I want to avoid updating the website or database or... whenever we have an app update Nov 11 18:30:26 seems like it’d be trivial to do that, though Nov 11 18:30:32 Yeah, but manual Nov 11 18:30:34 *manual Nov 11 18:30:44 setting the app version in Google Play is also manual Nov 11 18:32:07 you could just parse the html of the google play store link Nov 11 18:32:12 We're using the Jenkins plugin. Currently we're still putting the release notes there ourselves, but even that we want to avoid in the future. Nov 11 18:32:21 ktwo that's what we're currently doing :) Nov 11 18:33:03 It's different people working on the website and the App. Sure we communicate stuff, but having stuff automated... it's just one thing less to worry about. Nov 11 18:33:05 the other thing is that Google Play automatically updates apps Nov 11 18:33:14 so this probably isn’t something you need Nov 11 18:34:04 Somewhere, at some point, an actual person has to set the version number, by hand Nov 11 18:34:12 why? Nov 11 18:34:28 so put that somewhere centralized in your own servers, and have Jenkins and the website pull from it Nov 11 18:34:43 We just push to git, it increases the version number, triggers a build, uploads it. Nov 11 18:34:55 then grab the version number from git Nov 11 18:35:39 That's not a bad idea. But it would still be cleaner to somehow grab it from the play store directly. They now when it's actually available etc Nov 11 18:35:53 and Google is going to update the app automatically, possibly before the user has noticed that it has updated. Nov 11 18:35:54 We're currently parsing the website. But of course that's very shaky Nov 11 18:36:18 so now you’re telling them “Hey, there’s a new version, you should go update!” So they go check, and there is no new version, because they’ve already updated Nov 11 18:36:24 that will get annoying after a whiel Nov 11 18:37:26 No, some customers of ours deliberately deactivated automatic updates. We can't force them to. Then they have a website where they can manage their workforce. We want to show them which employee has a deprecated version etc.. Nov 11 18:38:16 hey all Nov 11 18:38:47 https://developers.google.com/android-publisher/ Nov 11 18:39:01 it’s not the play store itself, but it does look like it gives you info about your listings Nov 11 18:39:59 So you could write a deploy script which uses this to upload, and to change the version number the website is looking at Nov 11 18:41:10 s73v3r, thanks, that looks very good :) Nov 11 18:47:14 If i add styles of values-v21, then that will apply API lvl 21 and up right? Nov 11 18:47:31 add styles TO values-v21 Nov 11 18:47:45 yes Nov 11 18:48:10 s73v3r, sweet thanks Nov 11 18:51:08 Can I use Thread.sleep in AsyncTask? Nov 11 18:52:13 Yes Nov 11 18:52:37 awesome Nov 11 18:52:50 I have seen it in the Studio Generated Code for Login Activity Nov 11 18:52:52 http://pastebin.com/TZxG7vjh Nov 11 18:52:57 just learning android programming. my wife asked me to write an app for her Nov 11 18:53:10 I am actually working on that code and it happens to be in it Nov 11 18:53:16 ah, cool Nov 11 18:53:35 oops Nov 11 18:53:39 wrong link Nov 11 18:53:45 yeah, didn't see it in there Nov 11 18:53:50 this code is part of that generated code Nov 11 18:53:57 but I think I'm getting mine working! thank you Nov 11 18:54:03 hi guys, I have a hard drive with limited space on my computer, and I noticed that the android sdk occupies significant space (around 60GB). I have installed only the SDK from android 4.0 to android 6. I was wondering if it is necessary to keep all the system images for each arch (arm, x86 and x64. Could I delete the arm system image arch ? It would allow me to free arounte 15GB... Nov 11 18:54:15 If you do New > Acitivty > Login Activity Nov 11 18:54:50 H3bus I was under the impression that you only need the system images if you want to run them on the emulator Nov 11 18:55:25 Yhttp://pastebin.com/J0i8VRAa Nov 11 18:56:10 drose379: I dont use the emulator, only real devices, and/or Genymotion. Nov 11 18:56:31 Then you don’t need those images as pointed out by drose379 Nov 11 18:56:35 I already removes Android Wear/TV, as I dont use it Nov 11 18:56:54 H3bus, you can remove the system images then, and that will free up a lot of space for you Nov 11 18:57:35 @ntio http://pastebin.com/J0i8VRAa Nov 11 18:57:42 suhas_sm: ok, so I can remove all of them ? I notices that there are two images per arch, one with "Google APIs" in front of the name, can I remove it as well ? Nov 11 18:57:57 Yes Nov 11 18:58:08 Basically, I just need to keep "SDK platform" for each Android version ? Nov 11 18:58:21 Google APIs are needed if you want to use play services on emulator Nov 11 18:58:28 correct Nov 11 18:58:46 don’t download everything if storage is the problem Nov 11 19:00:55 allright, thanks very much. Last question, what are MIPS System images ? Nov 11 19:02:01 H3bus, Nov 11 19:02:02 http://stackoverflow.com/questions/13417534/what-is-android-mips-system-image Nov 11 19:02:03 System images for the MIPS processor architecture. You likely don’t need them Nov 11 19:02:12 god my hard drive is going to breathe Nov 11 19:03:53 thanks very much to everyone Nov 11 19:04:47 I just wen from 55GB to 16GB :) Nov 11 19:19:47 s73v3r try as 1.5 RC ? Nov 11 19:20:14 i just hit the update button Nov 11 19:21:09 have you? Nov 11 19:21:46 s73v3r no, not yet Nov 11 19:21:58 this is interesting https://www.reddit.com/r/androiddev/comments/3s9ggu/psa_declaring_request_ignore_battery/ Nov 11 19:22:13 i saw that Nov 11 19:22:56 thats todays WTF Nov 11 19:22:59 maybe Google needs to offer more guidance for the circumstances where it’s acceptable to set that permission Nov 11 19:23:27 Either that, or have some setup where Doze doesn’t just kill everything Nov 11 19:23:30 s73v3r even so, can we rely on goog'e algorithm to discern whether your app is adversely impacted? Nov 11 19:23:45 or Play Store, or whoever is flagging the app Nov 11 19:23:57 I don’t think an algorithm flagged that Nov 11 19:26:15 It is common for studio code completion feature to freeze ? Nov 11 19:26:28 It happens quite a lot with me Nov 11 19:26:43 g00s, ha. and as soon as I read about doze mode I said, "I wonder how long before they start either downgrading results or blacklisting apps that exempt themselves from doze" Nov 11 19:27:18 i was going to exclude myself from doze if connected to a BT device Nov 11 19:27:27 now i have to decide whether its worth it Nov 11 19:27:28 that's pretty aggressive though. also pretty dickish that the only option is use GCM, but I guess that's the google funnel Nov 11 19:27:45 i'd say do some testing - i'd be surprised if the bt connection survives doze Nov 11 19:27:57 oh i'm sure it won't, but get banned ... Nov 11 19:28:07 well if bt doesn't survive doze Nov 11 19:28:12 then you don't even care Nov 11 19:28:49 i thought i read, if your app has a notification its excluded from local doze mode Nov 11 19:30:46 woohoo, prepare for Java 9 https://www.youtube.com/watch?v=8RhwmJlZQgs#t=2h53m53s Nov 11 19:30:52 i'll bookmark that for 2019 Nov 11 19:31:22 I've got this maven repo - https://dl.bintray.com/yoavst/maven/com/yoavst/mashov/mashov-api/0.2/ , in my build: maven { url "https://dl.bintray.com/yoavst/maven/" } and compile "com.yoavst.mashov:mashov-api:0.2" but dependency can't be found. why? Nov 11 19:31:45 Hi. I need some help with what appears to be advanced share item transitions between Activities. This is my situation, the video speaks pretty much for itself: I'm transitioning from FirstActivity to SecondActivity, the latter being transparent: https://www.dropbox.com/s/t5qtfsd9koa4jyx/screencast-video.mp4?dl=0 I've tried to put the code of interest in here: http://pastebin.com/8XdURtVr Nov 11 19:31:50 Error:Failed to resolve: com.yoavst.mashov:mashov-api:0.2 Nov 11 19:32:00 g00s, the comments on that post say that you can exclude standby, but not doze Nov 11 19:32:55 What I wanted was for the clicked thumbnail to animate like this: Move up, grow in size, and rotate slightly. Nov 11 19:41:59 Anyone? This transitioning is frying my bwains! Nov 11 19:43:12 nabend Nov 11 19:43:49 good evening Nov 11 19:49:05 I'm actually rotating a CardView containing an ImageView. This transition is defined in XML as a . I'm wondering if the changeImageTransform will cause problems when applied to a CardView and not an ImageView? Nov 11 20:12:30 https://gist.github.com/mr-fool/1f4f8c9770117c414c70 <---I don't understand why I can't play the song ins background Nov 11 20:12:33 it is even in mp3 Nov 11 20:14:16 knock knock Nov 11 20:16:41 who is there? Nov 11 20:17:18 do you ever execute you asynctask Nov 11 20:17:47 canvs2321: I executed asynctask by creating a asynctask object? Nov 11 20:17:52 lasserix: android Nov 11 20:17:52 false Nov 11 20:17:53 no Nov 11 20:18:00 you do by execute() Nov 11 20:18:21 otherwise all of our async tasks would be running right when the app started Nov 11 20:18:37 also why would you put mediaplayer in asynctask Nov 11 20:18:51 i bet in this way it will play sound for few seconds and die afterwards Nov 11 20:18:53 Ashiren: http://stackoverflow.com/questions/16336960/android-playing-music-in-background Nov 11 20:19:06 the guide that I am following Nov 11 20:19:29 ahh fair enough Nov 11 20:19:33 it’d probably be a lot better to just use the built-in media playing apis as normal Nov 11 20:19:36 but even there there is execute() Nov 11 20:20:11 Ashiren: https://gist.github.com/mr-fool/1f4f8c9770117c414c70 (updated) Nov 11 20:20:11 but mediaplayer.start() isnt blocking Nov 11 20:20:17 you still want to wrap it in sevice Nov 11 20:20:18 execute() Nov 11 20:20:23 ? Nov 11 20:20:25 espicailly if you want to play while your activity is bg'd Nov 11 20:21:00 horny-sama: and have you tried it Nov 11 20:21:19 Ashiren: running fine on my phone atm Nov 11 20:21:20 :p Nov 11 20:21:27 ah ok Nov 11 20:22:26 Ashiren: now I have to figure out how to remove the annoying menu bar Nov 11 20:22:31 that says mysterysim Nov 11 20:22:41 the toolbar? Nov 11 20:23:05 Ashiren: let me take a pic Nov 11 20:24:38 Ashiren: http://imgur.com/NMNQXKU the bar that contains the app name Nov 11 20:25:00 this is toolbar Nov 11 20:25:07 formerly actionbar Nov 11 20:25:38 Ashiren: they change the name Nov 11 20:25:39 lol Nov 11 20:26:01 well its something more than just name Nov 11 20:26:01 there are toolbar, actionbar, and appbars :) Nov 11 20:26:34 you can get rid of it i.e. by changing style Nov 11 20:27:11 Ashiren: currently I have this Theme.AppCompat.Light.DarkActionBar Nov 11 20:27:17 https://www.youtube.com/watch?v=6WJFjXtHcy4 Nov 11 20:28:04 got it Nov 11 20:28:05 try NoActionBar Nov 11 20:28:26 Ashiren: where I minimize the apps the song is still playing :< Nov 11 20:29:33 use mediaplayer's start() stop() (pause?) instead of asynctask's Nov 11 20:30:15 Ashiren: ? Nov 11 20:31:18 Ashiren: is there a tutorial on it Nov 11 20:31:18 make mediaplayer the class member, intialize onCreate, start onResume, stop onPause Nov 11 20:35:22 Chromecast lyfe: Having problems with seeking, after seeking multiple times (~3-5) everything freezes, as if it has all stopped loading, but on the controller (phone) there is a spinning progress indicator Nov 11 20:36:25 hm. i've noticed on long youtube videos, if i change the position a few times it gets totally messed up Nov 11 20:37:50 Yea, I just tried youtube on the same chromecast v1, it eventually caught up after seeking 10 times really quickly Nov 11 20:38:10 oh i meant youtube on the web :) Nov 11 20:38:52 Ashiren: the context is highlighted :< https://gist.github.com/mr-fool/a7f2529e5e8a1daceeb3 Nov 11 20:39:39 that's bad java Nov 11 20:40:03 >.< Nov 11 20:40:49 eeyup Nov 11 20:41:01 whats context Nov 11 20:43:16 is there a simple way to change https://gist.github.com/mr-fool/1f4f8c9770117c414c70 so it will stop when you minimize the app? Nov 11 20:44:00 Is Native app dev gonna die soon? Nov 11 20:44:29 drose379: probably Nov 11 20:45:03 huh Nov 11 20:45:09 you mean ndk or java Nov 11 20:45:34 Ashiren: java? Nov 11 20:45:45 android.database.CursorWindowAllocationException: Cursor window allocation of 2048 kb failed. # Open Cursors=728 Nov 11 20:45:57 Is it normal to have _that_ many cursors open? Nov 11 20:46:03 lol no Nov 11 20:46:24 Right, so I have messed up Nov 11 20:46:32 bigtime :) Nov 11 20:47:01 oh look at that, I do use cursors Nov 11 20:47:34 Java Nov 11 20:48:00 no. why would it Nov 11 20:48:56 Just wondering Ashiren Nov 11 20:49:19 Ashiren: cost? Nov 11 20:49:37 horny-sama: what are the alternatives Nov 11 20:49:42 Not an expert but I have heard if you code it in html5 you can now port it to ios, android and window Nov 11 20:50:12 or something like xamarin? Nov 11 20:50:42 still it would lack performance a bit Nov 11 20:51:06 Ashiren: corp is in it for the money not customer bs Nov 11 20:52:27 :C Nov 11 21:06:07 Ashiren: thank for the help. I think I will continue the app tomorrow Nov 11 21:06:10 if there is a tomorrow Nov 11 21:06:11 :P Nov 11 21:29:12 hey all. I am trying to set up a git repo but i am having some conflicts because my volley module that I imported already is in git Nov 11 21:29:27 should i just delete it's .git folder and start over Nov 11 21:29:34 ? Nov 11 21:32:43 skrite, you can do that, you can home it in another directory and symlink it, you could add it as an external module in git Nov 11 21:32:53 http://stackoverflow.com/questions/33646054/addpreferencesfromresource-in-class-without-oncreate Nov 11 21:33:13 all depends - if you import it into your own git (kill it's .git dir) then you lose version tracking and updating from their system Nov 11 21:33:33 if you just want a point in time of the volley stuff and dont' mind redoing it later when you want to update, that's fine Nov 11 21:38:13 so, with a TYPE_SYSTEM_ERROR window, i can get OUTSIDE_TOUCH events all the time, but it seems the co-ordinates are stripped. is there any way to check where the last touch happened? (specifically i want to do something related to notification dismissal, so i want/need to detect if the user started to swipe from one side of the screen or the other, and/or, which way they swiped. for all notifications, not just mine) Nov 11 21:49:11 dragorn: thanks, that worked just fine. Nov 11 21:53:04 has anyone seen a SlidingPane type layout with more than 2 panes? ideally arbitrary number Nov 11 21:53:34 lol Nov 11 21:53:45 CEO has been debugging a native crash on jellybean for the last few hours Nov 11 21:54:09 I _just_ started receiving "AppCompat does not support the current theme features:" Nov 11 21:54:16 he told me "all these changes you added with are screwing up JB" Nov 11 21:54:27 even git tells me I haven Nov 11 21:54:28 w0bni make sure you are using major version == target/compiler SDK Nov 11 21:54:29 't changed anything Nov 11 21:54:32 so, i sit down, get it to crash, and google the top stacktrace Nov 11 21:54:33 so target=23 appcompat=23 Nov 11 21:54:45 https://code.google.com/p/android/issues/detail?id=189119&q=label%3AType-Defect&colspec=ID%20Type%20Status%20Owner%20Summary%20Stars Nov 11 21:54:53 support library 23.0.1 is broken Nov 11 21:54:56 fix is 23.1.0 Nov 11 21:56:38 g00s solved that problem yesterday using FileProvider thanks for your help Nov 11 21:56:47 locale nice Nov 11 21:57:12 i actually managed to delete 4 lines of ugly fixes as a result of moving from 23.0.1 to 23.1.0 Nov 11 21:57:29 6 lines if you count comments Nov 11 22:00:07 squirrel: nice! Nov 11 22:00:20 he was barking up the wrong tree. He was trying to isolate the commit that caused it Nov 11 22:00:45 squirrel i'm sure it will be broken again soon Nov 11 22:00:52 g00s: that's the spirit! Nov 11 22:01:25 i have lost track of how many times i've had to revert a support library update Nov 11 22:01:40 future predictions based on past performance ;) Nov 11 22:02:49 g00s: where do I specify that? Nov 11 22:03:36 w0bni in your build.gradle Nov 11 22:05:53 g00s: compileSdkVersion and targetSdkVersion are both 23 Nov 11 22:06:06 this seems to have happened right out of the blue, very odd Nov 11 22:06:25 things happening out of the blue with android are normal :) Nov 11 22:07:36 I am using the same AppCompatActivity-import in other activities that work fine Nov 11 22:15:51 Yet again I am left to come here as a last resort! Nov 11 22:16:02 Does anyone here have any experience with argumentation theory? Nov 11 22:17:05 Hi, does anyone know how to force Retrofit to send accept application/json ? My Rails app throws 500 left and right because it tries to serve html view instead of JSON. Nov 11 22:26:19 proguard giving me billions of warnings and errors without telling me what to do :( Nov 11 22:27:54 "There is no diplomatic and professional way to put it: Android Wear is flopping; and it’s flopping quite badly. " Nov 11 22:27:59 "Several factors conspired to stifle growth, ranging from lack of Google development" ... Nov 11 22:28:09 did google already lose focus on wear lol Nov 11 22:28:46 good Nov 11 22:28:56 this means i might be able to get one for less then 500 bucks Nov 11 22:28:59 lol Nov 11 22:31:23 wow mark murphy just blogged "I have been encouraging app developers for years to not depend solely upon the Play Store for their Android app distribution. With each passing year, that need becomes stronger, as app developers find that Google is decreasingly trustworthy as a distribution partner." Nov 11 22:32:23 g00s: dunno, majority of "G+ is empty"... came from relentless push of "Google+ is empty" articles Nov 11 22:32:31 i gathered that right away with dealing with google Nov 11 22:33:23 g00s: personally, I'd say that every wearable platform is flopping, with probably only exception being Apple Watch because of its lock-in to already captive audience Nov 11 22:33:49 welp Nov 11 22:33:57 the emulator doesn't have emulated storage Nov 11 22:34:00 a bit ironic Nov 11 22:34:59 tbh, the only time I really looked into getting a smartwatch, in the end the chosen product was sony smartband 2 Nov 11 22:35:28 good thing about smartwatches Nov 11 22:35:39 when ur arched on the desk typing it can scan ur retina Nov 11 22:35:45 h3h3 Nov 11 22:36:10 there's *one* reason I personally might have a need for smartwatch, and that specific need excludes pretty much every smartwatch available from competition Nov 11 22:36:43 do cpu intensive tasks make your wrist hot, or did they get that problem solved? Nov 11 22:38:48 i bet google and apple did wearables for different reasons. OEMs won't care, its just money. But for google, a wearble is a data collection device attached to your body - a valuable source of constant information. apple probably just wanted to make a nice watch Nov 11 22:40:27 Google Wear would be much more interesting platform if it also included support for devices not running "full" stack but allowed a way to easily integrate them Nov 11 22:41:08 Pretty sure Apple was just trying to get apps running on your watch, not tell you the time :P Nov 11 22:41:45 ds84182 sure ... they sell more hw - what they care about Nov 11 22:42:41 also if you looked at Apple Health Kit TOS its pretty strict regarding privacy, which is a win for consumers there days too Nov 11 22:43:33 and lots of people use a watch for fitness, etc Nov 11 22:43:47 Garmin's whole line is based on fitness watches ;) Nov 11 22:46:51 sony smartband was best in my case, it had good heart rate sensor :) Nov 11 22:47:06 p_l have you seen the 2nd gen MS band ? Nov 11 22:48:12 nope, it's non-existant in Poland Nov 11 22:48:38 most of MS-branded hardware beyond mice and keyboards is simply not here Nov 11 22:49:05 Ookay, I did not know images can't be larger than 4096x4096 Nov 11 22:49:18 Is there a quick way to scale it down so that height/width are below that limit? Nov 11 22:49:31 imagemagik? Nov 11 22:49:39 if you’re on a Mac, automator can do that Nov 11 22:49:45 s73v3r: hm, yeah, that is a solution Nov 11 22:49:51 but isn't it cleaner to have the app handle it? Nov 11 22:49:59 no Nov 11 22:50:18 w0bni, use the scale parameter when loading them Nov 11 22:50:29 it's like... described directly in bitmap tutorial -_- Nov 11 22:51:08 if it’s an asset that’s baked in, it’s better to scale it down by hand, cause there’s no reason to make the device do extra work Nov 11 22:51:26 s73v3r: yeah, you are right Nov 11 22:51:35 s73v3r, you're not making device do extra work. Nov 11 22:51:37 if it’s an asset you download from your server, it’s better to scale it down by hand, cause there’s no reason to waste the bandwidth to send bytes that aren’t going to be used Nov 11 22:51:38 checked now, this only applies to one out of 100 files Nov 11 22:52:21 w0bni, and are you sure all your inputs are always going to be vetted? Nov 11 22:52:37 Mavrik: I do have full control of them Nov 11 22:52:46 but no, I think I should ideally implement both of your solutions Nov 11 22:52:52 Also some devices have 2048x2048 limit Nov 11 22:53:26 Mavrik: Ok, fine, then you’re bloating the size of your APK with bytes that are never going to be used. Either way, it doesn’t make sense to ship an image bigger than you will need Nov 11 22:53:52 True, but you don't always have the luxury of using images you provide ;) Nov 11 22:54:13 maybe, but it sounds like w0bni is Nov 11 22:54:16 Or you want to provide a non-blurry image for people that have good screens. Nov 11 22:55:04 that’s only a factor if you downsize it too far Nov 11 22:55:14 we’re talking at least inside the limit of what the device can handle Nov 11 22:58:01 Mavrik: very old devices, or? Nov 11 22:58:26 w0bni, no. Nov 11 22:58:49 Depends on the GPU but even new devices have GPUs that don't support textures larger than 2048x2048. Nov 11 22:58:55 but Nov 11 22:59:02 if I scale all images to less than 2048x2048 I am good Nov 11 22:59:10 probably Nov 11 22:59:24 w0bni, yes, 2048x2048 is minimum required on Android since 14 Nov 11 22:59:37 there's also getMaximumBitmapWidth/Height API Nov 11 22:59:52 Note that this holds true only for bitmaps you intend to draw :) Nov 11 23:14:48 in my proguard file i have "-keep public class com.blah.MyActivity" , when i minify and run, first thing that happens is that my activity class is not found.. what's up? Nov 11 23:15:55 what's the best way to unit test parcelable methods of my class? Nov 11 23:23:07 if i am building for normal phones and tablets i only need he ARM EABI image in the sdk right? Nov 11 23:23:35 That's just an emulator image. Nov 11 23:23:54 You don't need it for building. Nov 11 23:24:15 yes i know for avds Nov 11 23:24:37 if that’s the case, then you probably want the x86 ones, so things don’t run like ass Nov 11 23:25:12 dont the x86 ones emulate devices using x86? Nov 11 23:25:22 most phones and tablets run arm Nov 11 23:25:41 So? Nov 11 23:25:44 Do you have native code? Nov 11 23:25:59 so it wont be emulating the exact device then Nov 11 23:26:07 no im not using the ndk Nov 11 23:26:09 won’t really matter Nov 11 23:26:10 You're not going to be emulating the exact device anyway. Nov 11 23:26:25 I mean, go ahead, use ARM emulator :) Nov 11 23:26:37 you’re not going to be running on the emulator to get a gague of device performance. you’re running on the emulator to gague functionality Nov 11 23:26:41 Just remember to switch to x86 one with HAXM when it's too slow ;) Nov 11 23:27:04 i see. thanks Nov 11 23:27:21 the google ones come with google apps like maps? Nov 11 23:27:50 i’m not 1000% sure about maps, but I know they’re supposed to have the google services and google play services available Nov 11 23:28:11 > emulator: emulator window was out of view and was recentered ← such a blatant lie Nov 11 23:34:23 how can I unit test my parcelable methods of my class with robolectric? if I try to use a Parcel or Bundle it tells me it's not mocked, does this mean I shouldn't be testing these methods? Nov 11 23:34:47 grekkos: Why not just write regular unit tests? Nov 11 23:34:57 s73v3r: you mean outside of robolectric? Nov 11 23:35:00 yeah Nov 11 23:35:32 s73v3r: I could, but all the other tests are already in Robolectric not to mention that the build server this is running on might not be set up for that (that I'm not sure of, however) Nov 11 23:36:00 g00s good guide Nov 11 23:36:02 by mark Nov 11 23:37:16 i like mark's commentary on the android ecosystem; he's devoted a lot of time to it - yet also seems objective in calling out the crap Nov 11 23:37:16 anyone have non-rx code sample of debounce without introducing a delay? Nov 11 23:37:47 locale you were talking about mark murphy / commonsguy right ? Nov 11 23:38:24 grekkos: If it’s set up for robolectric, then it should be set up for normal tests. Nov 11 23:38:38 but even so, it shouldn’t matter. the testing wouldn’t change Nov 11 23:39:57 there was a really good article Nov 11 23:40:01 about the app ecosystem(s) Nov 11 23:40:05 on hacker news the other day Nov 11 23:40:08 hmm can't seem to find it Nov 11 23:40:48 but i think you can trace a lot of the failure of the android devoplment platform to the failures of the app ecoystem, because if the barrier weren't so high / prohibitive you'd have more developers raising the bar Nov 11 23:41:06 http://www.business2community.com/mobile-apps/the-mobile-app-ecosystem-is-suffering-01369407#m8hlOCYXdWqXgyS6.97 Nov 11 23:42:01 Anyone ever have an issue with the ProgressBar spin animation freezing? Nov 11 23:43:43 drose379: Freezing how? Nov 11 23:44:03 Just stops animatingf Nov 11 23:44:08 In what situation. Nov 11 23:44:22 I've had issues with an initial delay (starting from Lollipop). Nov 11 23:44:24 TacticalJoke, Remember yesterday we were talking about the button at the bottom of the listview? Nov 11 23:44:52 Maybe an screen recording would be easiest to show Nov 11 23:47:37 TacticalJoke, Do you want a quick demo? Nov 11 23:47:44 Sure. Nov 11 23:48:06 the layout preview is complaining about not being able to find the CardView styleable class, but the layout isn’t using a card view Nov 11 23:48:39 the fact that they release software without testing any of this stuff is scary Nov 11 23:49:32 TacticalJoke, https://vid.me/WS2c Watch the second time I click the "Load More" button Nov 11 23:50:33 drose379: That shouldn't be happening. Are you doing something weird regarding showing the ProgressBar? Nov 11 23:50:49 Maybe you're lagging the main thread. Nov 11 23:50:57 drose379: wrap the call to play the animationin a post on a view Nov 11 23:51:08 I used to use a "load more" button, and I never had that problem (on various Android versions). Nov 11 23:51:11 All im doing is hiding and showing it Nov 11 23:51:16 yeah Nov 11 23:51:23 When the button is clicked, hide the button, show the progressbar Nov 11 23:51:26 wrap botht hose in post.newRunnable on the button view or whatever Nov 11 23:51:34 Why? Nov 11 23:51:34 lasserix: That shouldn't be needed. Nov 11 23:51:48 you are using the synchronized message queue to make sure the calls are sequential Nov 11 23:52:29 drose379: I would try using Thread.sleep(5000) in your background thread. Nov 11 23:52:52 See how that affects things. If you're still getting the problem, it might be that you're blocking the main thread with something. Nov 11 23:52:54 Something slow. Nov 11 23:53:10 Want to see the code TacticalJoke Nov 11 23:54:05 It might be worth trying the above first. That'll clearly separate the "loading background data" stuff from the "presenting the UI" stuff. Nov 11 23:54:21 For example, if my idea is right, you'll see the ProgressBar spinning for about five seconds and *then* pausing. Nov 11 23:55:21 Im a little confused Nov 11 23:55:29 This is all happeining in my BaseAdapter Nov 11 23:55:39 There is nothing in there that should cause it to freeze Nov 11 23:56:40 Am I wrong? Nov 11 23:56:46 show it Nov 11 23:57:00 drose379: Why not try what I suggest? Nov 11 23:57:25 drose379: i had similar problem with material spinner i put it Nov 11 23:57:31 TacticalJoke I dont understand the suggestion I guess Nov 11 23:57:38 i fixed it by overriding onvisibilitychanged and forcing the animation to start and stop Nov 11 23:57:44 drose379: Are you using a ProgressBar library? Nov 11 23:57:48 which fixed it Nov 11 23:57:58 Just ProgressBar TacticalJoke Nov 11 23:59:06 All im doing is hiding and showing, I dont see where it would freeze Nov 11 23:59:14 drose379: You might as well post the adapter. Nov 11 23:59:50 Ok, you guys already told me I need to cut out some of the code, so I do know that. Ill post it now Nov 12 00:00:31 Ok here: Check out 198: http://pastie.org/private/5r1thqvqkr7v5aurgnba#198 Nov 12 00:02:21 drose379: here's material progress spinenr: http://pastebin.com/RbdQ3DbA Nov 12 00:02:59 Thanks, did you see anything in the code above that would cause this? Nov 12 00:03:02 3 classes, MaterialProgressBar declare-stylable and then the two class name Nov 12 00:03:08 drose379: One thing here is that you're creating a new ProgressBar every time. Nov 12 00:03:16 i had that same problem then modifying the onVisibility changed to force it fixed it Nov 12 00:03:23 And I think Lollipop has some issues with multiple ProgressBars "playing" at once. Nov 12 00:03:58 If you don't hide an indeterminate ProgressBar in a ListView, it will sometimes keep animating (even if not currently visible). Nov 12 00:04:03 you might do progress.setVisibilityGONE then setVisibilityVISIBLE Nov 12 00:04:14 calling setVisibility VISIBLE when its already visible might glitch it Nov 12 00:04:18 Yeah, but he also should be creating the ProgressBar only once. Nov 12 00:04:21 Hello Nov 12 00:04:40 TacticalJoke: then he has to manage the recycled view Nov 12 00:04:55 lasserix: It's the best solution here. Nov 12 00:04:58 So you think ViewHolder would do that? Nov 12 00:05:06 He needs to keep track of the view anyway (so that he can hide/show the ProgressBar). Nov 12 00:05:13 you should be recycling it just like your other views Nov 12 00:05:14 Have you an idea why vertices of an object (here a circle) appear and disappear on the screen, without changing the transformation ? Nov 12 00:05:19 I'm using VBO's Nov 12 00:05:20 that is probably the prioblem Nov 12 00:05:23 He should create one View and return Adapter.IGNORE_ITEM_VIEW_TYPE for it. Nov 12 00:05:31 Gaulois94: your projection is wrong Nov 12 00:05:38 I think it's the only reasonable solution with ListViews. Nov 12 00:05:47 lasserix: I'm not changing the projection during the application Nov 12 00:05:55 drose379: uhh.. you have two types... for cards and load button? why not use a footer and have two types for female and male dogs? Nov 12 00:05:55 I'm just.... waiting Nov 12 00:05:56 The problem is that ListView doesn't always prompt View.onDetachedFromWindow from a View that is no longer visible. Nov 12 00:06:04 And therefore ProgressBar sometimes keeps animating. Nov 12 00:06:18 TacticalJoke, how can I recycle the view if the recycledView being passed is never the view I want Nov 12 00:06:24 Its always TYPE_CARD Nov 12 00:06:29 Until I get to the bottom Nov 12 00:06:32 drose379: you are not reusing your views properly Nov 12 00:06:34 One fix is to say `progressBar.setVisibility(View.GONE);`, but in drose379's case he might as well cache the thing. Nov 12 00:06:54 squirrel, what do you suggest Nov 12 00:07:13 drose379: > why not use a footer and have two types for female and male dogs? Nov 12 00:07:20 drose379: Return Adapter.IGNORE_ITEM_VIEW_TYPE for this View and cache it in a field. Nov 12 00:07:21 footer for the load button Nov 12 00:07:22 Lazily create it. Nov 12 00:07:38 A footer? Nov 12 00:07:54 sure, listviews have headers and footers Nov 12 00:08:08 TacticalJoke, you think I should save the View in a property? Nov 12 00:08:13 drose379: Yeah. Nov 12 00:08:14 And then just use that whenever I have to? Nov 12 00:08:20 drose379: I've done this stuff; it's the only reasonable solution. Nov 12 00:08:21 Ha, never thought of that Nov 12 00:08:38 There are others, but they are all less good. Nov 12 00:08:38 Cool, let me trythat Nov 12 00:09:23 Awesome, let me try this, thanks everyone Nov 12 00:10:14 So TacticalJoke save the View in a instance, and create it in the constructor? Nov 12 00:10:21 So its ready instantly for use whenever Nov 12 00:10:25 It's better to create it when it's demanded (in getView). Nov 12 00:10:49 I thought the purpose was to have it ready before getView() Nov 12 00:11:23 Or just create it once and then re-use Nov 12 00:11:23 I see Nov 12 00:11:38 loadMore = loadMore == null ? //inflate : loadMore Nov 12 00:11:47 Yeah^ ? Nov 12 00:12:19 is there a reason you are not using a footer? Nov 12 00:12:34 i dont understand why load more is used Nov 12 00:12:35 dragorn looks like BT smart is getting mesh networking Nov 12 00:12:46 am i talking garbage by any chance? Nov 12 00:12:51 You can use a footer here. Nov 12 00:12:54 since the list/recycler view uses recycling Nov 12 00:12:55 But IIRC they are buggy < 19. Nov 12 00:13:02 (Or is that just headers? I forget.) Nov 12 00:13:11 lasserix, load more is used to load more results Nov 12 00:13:16 The button only shows at the bottom of a list Nov 12 00:13:20 Also, you have to keep hold of the view anyway (so that you can hide/show its children), so you might as well do this manually. Nov 12 00:13:29 drose379: yeah but why don't you do it automatically? Nov 12 00:13:45 why does the user have to click, just load more when they hit the bottom of the list or when they hit the bottom and pull more Nov 12 00:13:48 Thats an amazing point lasserix Nov 12 00:13:56 :D Nov 12 00:13:59 *when the user pulls more while already at the bottom Nov 12 00:14:16 because this design makes the user do something entirely unnecessary interrupting the UX flow Nov 12 00:14:23 headers are not downsized properly if you put several views in them Nov 12 00:14:35 but if you put a viewgroup in there it works just fine Nov 12 00:14:37 lasserix: I'm giving the identity matrix at my shader, my points don't change during the application Nov 12 00:15:01 could my graphics card lost then retreived my coordinates during the application ? Nov 12 00:15:15 Re-using the view does not fix the issue Nov 12 00:15:21 Im just gonna do it automatically Nov 12 00:15:24 (or the fact that it is used on a thread could disturbe the application ?) Nov 12 00:15:27 drose379: Are you sure you're reusing it? Nov 12 00:15:35 Yeah, I think it's probably better not to require the button click. Nov 12 00:15:50 I am pretty sure yes, want to see the code? Nov 12 00:15:58 Might as well. Nov 12 00:16:13 your shader is incorrect? Nov 12 00:16:19 http://pastie.org/private/isrvkxochklkobma0ro6ua Nov 12 00:16:36 you are not reusing much anywhere, you are only saving yourself some layout inflation Nov 12 00:16:43 you could reuse a lot more Nov 12 00:16:59 * squirrel sighs and walks away Nov 12 00:17:24 drose379: You're never assigning `loadMoreView`. Nov 12 00:17:29 lasserix: and why my vertices appear sometimes ? Nov 12 00:17:31 Shit you are right Nov 12 00:17:34 Here is the code Nov 12 00:18:17 Let me try this again TacticalJoke Nov 12 00:18:44 http://pastebin.com/jk50qujq (the drawing function) Nov 12 00:19:55 The vertex shader : http://pastebin.com/62hbEZDz Nov 12 00:20:44 I think this is gonna do it TJ Nov 12 00:20:49 and the frag shader : http://pastebin.com/aphqCFEG Nov 12 00:21:35 That works TacticalJoke Nov 12 00:21:35 drose379: For efficiency, also return IGNORE_ITEM_VIEW_TYPE from getItemViewType for this position. Nov 12 00:21:42 Otherwise, ListView tries to recycle it. Nov 12 00:22:04 I am returning TYPE_LOAD_BUTTON Nov 12 00:22:14 Why IGNORE_ITEM_VIEW_TYPE Nov 12 00:24:11 Hmm, I'm wondering if I should do the autmatic though Nov 12 00:24:21 Could bad dynamic allocation disturb opengl ? Nov 12 00:24:48 http://www.adambourg.com/2015/11/10/scrum-is-the-new-waterfall/ Nov 12 00:24:55 Gaulois94: sure Nov 12 00:25:08 Gaulois94: use a dummy shader Nov 12 00:25:16 that does nothign to verify its not your shader Nov 12 00:25:19 drose379: It's generally a better UX to do it automatically. Nov 12 00:25:24 Yeah, good point Nov 12 00:25:28 once you know its not your shader verify your transformations are not causing it Nov 12 00:25:31 You can even just show a ProgressBar at the end of the list. Nov 12 00:25:36 also you are not using emulator right? Nov 12 00:25:48 lasserix: Because when I'm drawing the circle alone, the application shows it completly Nov 12 00:26:09 Yeah just show the Progressbar but not require the button click Nov 12 00:26:26 And because I'm drawing and using dynamical allocation, I don't know if CPU memory disturbs Opengl objects Nov 12 00:26:34 (objects stored in the graphic card) Nov 12 00:26:38 drose379: One thing though: manually set the ProgressBar to invisible/gone once the new data comes in. Otherwise, the animation does not reset. Nov 12 00:26:47 Well, sometimes it does; sometimes it doesn't. Nov 12 00:26:58 Yeah Nov 12 00:27:07 If it doesn't, the next time they see the ProgressBar, the animation is *not* beginning from the start. Nov 12 00:27:15 Right Nov 12 00:27:23 Ill mess with this, thanks a lot for the help Nov 12 00:30:15 Can I show you the new version TacticalJoke Nov 12 00:30:35 Okay. Nov 12 00:30:56 lasserix: and not I'm using my phone Nov 12 00:31:29 TacticalJoke, https://vid.me/uk2T Nov 12 00:32:55 That seems better. You could make it start loading the data before the end, but the code is different (you have to monitor the ListView scroll position). Nov 12 00:33:16 Gaulois94: huh? Nov 12 00:33:26 Right, I could do that too Nov 12 00:34:10 You don't have to, though. For some apps, a more explicit "I want to load more data" action makes sense. Nov 12 00:34:39 I hate this project. I don't understand how the developers deal with this shit every day Nov 12 00:35:08 I always made my project so someone could clone the repo, import code, press the build button Nov 12 00:35:08 We'll see what happens. For now I think I should focus on fixing up the rest of the getView mehtod() Nov 12 00:35:17 Yeah, getView is doing way too much right now. Nov 12 00:35:28 Since getView gets called a lot, it should be as simple and fast as possible. Nov 12 00:35:30 lasserix: Does CPU allocation overwrite GPU buffer ? Nov 12 00:35:39 it should not Nov 12 00:35:44 Where should I start for cleaning up getView() TacticalJoke? ViewHandler? Nov 12 00:35:48 once the data is pushed to the gpu buffer at least Nov 12 00:35:59 if you are *()*ing with it before then Nov 12 00:36:04 maybe Nov 12 00:36:21 but again use debugger and process of elimination to determine source of whatever Nov 12 00:36:30 if it is working sometime and not others then maybe you are introducing something wrong Nov 12 00:36:43 how are you allocating your pre-gpu vbo data? Nov 12 00:37:36 Via dynamical allocation Nov 12 00:37:37 drose379: I'd recommend extracting Views à la http://blog.xebia.com/2013/07/22/viewholder-considered-harmful/ . Nov 12 00:37:49 Gaulois94: that is non-specific Nov 12 00:37:52 drose379: And doing all that setBackgroundResource stuff in onFinishInflate. Nov 12 00:37:59 I'll check it out, thanks TacticalJoke Nov 12 00:38:04 then I'm pushing them to my VBO Nov 12 00:38:08 all at once Nov 12 00:38:31 Then maybe I'm overwriting something else, I'll check all my application Nov 12 00:38:43 onFinishInflate() TacticalJoke ? Nov 12 00:39:28 It's called after the View has been inflated. You can find the child Views and stuff. Nov 12 00:39:40 (And thereby do those findViewById calls only *once* per View.) Nov 12 00:39:49 Ok Nov 12 00:40:39 TacticalJoke wonder if you could check something; Youtube main screen on tablet landscape - how do they put the tabs in the Toolbar like that? every time i've tried it , i needed to set title to false. Nov 12 00:41:13 i did reset on my phone without deleting my account first and now when i try to log in again shile setting up the phone it tells me to log in with the same account as i did before, I have tried that several times but it just goes in a loop and tells me to do it again Nov 12 00:41:13 g00s: I don't have a tablet anymore. :[ Nov 12 00:41:25 oh no, thats right :* Nov 12 00:41:25 ops wrong channel Nov 12 00:41:34 poor tesco hudl Nov 12 00:41:47 Though they gave me a full refund. In fact, they gave me twice the amount I had paid. Nov 12 00:41:56 :O Nov 12 00:42:13 I had paid about £60 in vouchers and doubled them up. They gave me about £120. I said to the woman that it was too much, but she said "Don't worry about it". Nov 12 00:42:20 but seriously the google locking account without telling you before reseting is so retarded Nov 12 00:44:44 RustyShackleford, build systems as an afterthought is always fail... Nov 12 00:45:54 welp, looks like i'll be working on kerberos Nov 12 00:45:59 they mentioned getting kerberos ported to android Nov 12 00:46:51 Sarah to become friends / enemies with bionic soon :) Nov 12 00:47:07 lol why? Nov 12 00:47:22 yeah Nov 12 00:49:05 pfn: okay I'm the new guy Nov 12 00:49:12 Wow, this was harder than I thought Nov 12 00:49:19 g00s: yeah? Nov 12 00:49:23 but this should not be so difficult Nov 12 00:49:38 I have a listview inside a fragment displaying a list of items, when I click it it fires off a new activity that displays item details Nov 12 00:49:42 burned 4 hours trying to simply build the project before I can work on my assignment Nov 12 00:49:47 Is there a way to retain the listview scroll position when I go back from the item details? Nov 12 00:50:01 I've tried various implementations from Google, but no luck Nov 12 00:50:49 get first visible position Nov 12 00:50:53 get scroll position Nov 12 00:50:55 lots of way Nov 12 00:51:18 lasserix: yeah, I struggle more with getting it to restore Nov 12 00:51:42 onCreate() isn't called, onResume doesn't receive bundle Nov 12 00:51:53 I've given up on having the fragment itself take care of it, so now I am trying to get the activity to do it Nov 12 00:52:26 g00s: what was your issue with the tabs in toolbar? i had tried that before when i was trying out some different ui's and had no issue throwing it together Nov 12 00:54:31 just save it in the class Nov 12 00:55:43 lasserix: like, in a member variable? Nov 12 00:55:52 ye Nov 12 00:57:20 Anyone ever see text like this: http://i.imgur.com/voMuf1w.png Nov 12 00:57:57 lasserix: ... Nov 12 00:58:03 thanks! Nov 12 00:58:14 I had no idea those variable survived Nov 12 00:58:38 bad unicode Nov 12 00:58:48 Any way to fix it lasserix Nov 12 00:58:48 err drose379bad char encoding Nov 12 00:59:10 Its text coming from a API, can I fix it?> Nov 12 01:01:34 try and decode it differently Nov 12 01:01:42 Im not decoding it at all Nov 12 01:01:50 Just using it right from the API Nov 12 01:02:57 How are you consuming the API? Nov 12 01:03:10 cURL from PHP script Nov 12 01:03:18 Then back to the android client Nov 12 01:05:48 I should just think about this tomorrow but it's bugging me Nov 12 01:06:45 So we're using ActionBar Sherlock: when I try to build it complains that the v4 support library doesn't exist Nov 12 01:07:19 I copy a jar to the libs folder, and now the import works. But it complains that FractionActivity.mAdded cannot be resolved Nov 12 01:07:52 sounds like maybe you should just create a new project from scratch, as your current one is extremely out of date Nov 12 01:07:59 * TacticalJoke calls 911: "Somebody on IRC is using ActionBarSherlock." Nov 12 01:08:06 How can I dd an image to my android device? Is there any special cable or something like that? I have a notes 3 Nov 12 01:08:30 TacticalJoke: don't tell them we're still using eclipse Nov 12 01:09:02 it's funny, I found some stackoverflow posts that had my exact issue Nov 12 01:09:26 all the comments said that there is no reason to use ABS anymore lol Nov 12 01:10:14 ugh, I ended up having most of my application logic within an ExpandableListAdapter... I pass it all these references, it's a mess :( Nov 12 01:10:52 where should all the logic go instead? Nov 12 01:11:44 What references are you passing it? Nov 12 01:12:08 God dammit, this IRC client. If I'm still holding Shift while pressing Enter it won't send. Nov 12 01:12:49 a Nov 12 01:12:53 Oops Nov 12 01:12:57 Just tried that too Nov 12 01:14:13 two kinds that I don't think belong: List of objects (say Animals) that I use elsewhere in code, and some references to TextViews from some other views, that I need to update based on some actions within the ExpandableListAdapter Nov 12 01:14:47 ntio: Have the adapter fire events to the thing that *should* be holding the TextViews. Nov 12 01:28:38 TacticalJoke: can you point to how to "fire events" please Nov 12 01:33:50 I have a OnePlus One running Android 5.1.1, Cyanogen OS 12.1, Build Number LMY48B I installed a Universal ADB Driver, and enabled adb debugging, but now I can't unlock the bootloader. Nov 12 01:34:20 what are some temp folders on android? Nov 12 01:34:21 ntio: http://pastebin.com/J4cVaqNx Nov 12 01:34:53 Oh, you'd need a Listener field too. Nov 12 01:35:52 TacticalJoke: thanks, will be learning these things now.. Nov 12 01:48:59 is it legal to create an alternative play store which offers paid apps for Android Nov 12 01:50:16 TacticalJoke, did you finish your reddit app Nov 12 01:50:37 g00s: no. that’s why Amazon is being sued to death by Google Nov 12 01:50:46 Not yet. Nov 12 01:51:31 waiting for it Nov 12 02:02:48 s73v3r amazon is being sued by google? never heard that Nov 12 02:03:38 Looking over the batch. Nov 12 02:03:42 but anyhow thats amazon's own hardware Nov 12 02:04:12 i think it should be legal to install another Play store (outside of google). Nov 12 02:07:04 This is not the asec vulner. Nov 12 02:07:27 It is a shell script to overwrite the recovery area. Nov 12 02:07:34 Not going to work. Nov 12 02:08:04 The asec overnounts to apply an su binary. Nov 12 02:17:35 g00s, sarcasm, obviously Nov 12 02:18:13 and of course it's perfectly legal to create your own app store Nov 12 02:18:23 you just can't distribute it through play Nov 12 02:19:13 pfn can that app store charge money though ? Nov 12 02:19:23 of course Nov 12 02:19:25 aha Nov 12 02:19:50 there is absolutely no such thing preventing creation of an independent app store Nov 12 02:20:25 other than shitty discovery Nov 12 02:20:30 except the market Nov 12 02:20:58 pretty much, unless you're bundled. by the oem, you're not gonna make shit Nov 12 02:21:43 there are a number of independent stores, have been over the years Nov 12 02:45:51 I'm working on my first app, and need to use sockets, so I added the 'uses-permission. . .' line to my AndroidManifest.xml, but it's failing due to "Error:The content of elements must consist of well-formed character data or markup." Nov 12 02:45:58 Would someone mind taking a quick look please? Nov 12 02:45:59 Error:The content of elements must consist of well-formed character data or markup. Nov 12 02:46:14 https://bpaste.net/show/bed4bbd5a900 Nov 12 02:48:14 Smrtz, try rebuilding the project Nov 12 02:48:46 Bubo, It's still failing on the same line. Nov 12 02:50:20 Does it say anything else in the error Nov 12 02:50:29 Bubo, wait, no, it's past the manifest problem now, but it's saying that same error is happening in my strings.xml file, would you mind glansing at that too please? Nov 12 02:50:29 https://bpaste.net/show/78f69ac939d2 Nov 12 02:50:46 Nevermind, found the space. Nov 12 02:51:03 :) Nov 12 02:51:20 It built fine this time. Thanks for reminding me to read errors more carefully! Nov 12 02:51:46 they are important **** ENDING LOGGING AT Thu Nov 12 02:59:58 2015