**** BEGIN LOGGING AT Tue May 27 02:59:58 2014 May 27 03:09:31 anyone had any success cross compiling libcurl for android using clang? May 27 03:15:07 I have a MainActivity that starts a SignUpActivity for results. if the user has already signed up I want to start the SignInActivity from the SignUpActivity but return the results to the MainActivity thus skipping the intermediate SignUpActivity. May 27 03:16:02 using startActivityForResult returns to the SignUpActivity, even if I pass Intent.FLAG_ACTIVITY_FORWARD_RESULT May 27 04:50:31 Is there a way to do a batch GCM request? That is, several messages to different recipients(I’m not looking to multicast) May 27 04:53:24 think you can just line up the recipients in the request? it has been some time that i have done this May 27 04:58:24 Karatektus: that’s multicast - one message, multiple recipients. What I want to do is to send a different message to a different recipient May 27 04:58:48 yeah... then just send another message? May 27 04:59:28 its a different message, dont think you can do this with just one request May 27 05:00:05 (but im not totally sure, since i havent looked it up... just seems weird to me) May 27 05:03:42 which service method is the best place to release all the memory? May 27 05:12:01 What are the benefits of using SNS over using a direct request to the GCM servers? May 27 05:38:44 I'm looking for a stop_service method on Service May 27 05:38:51 this totally doesn't look like Android May 27 05:38:54 due to style May 27 05:42:18 nm May 27 05:46:15 hi May 27 05:46:39 i want create canvas double screen width May 27 05:58:02 any idea? May 27 05:59:53 hello, is it possible to generate a seperate apk for seperate user just by passing some arguments while building during runtime May 27 06:00:02 for example, a user just registered to my site and i want to generate an app for that specific user May 27 06:00:41 with functionality specific to user May 27 06:04:41 a9393j_: yes, if they're willing to sideload May 27 06:04:56 apk's are zip files at the end of the day. May 27 06:05:34 knapper_tech : what do you mean by sideload May 27 06:07:03 a9393j_: not using play store May 27 06:07:22 knapper_tech : that would be fine May 27 06:07:24 a9393j_: if you want something else, you'll probably do it with G+ and then google play services integration May 27 06:08:20 could you provide me with some links to achieve something like this May 27 06:08:26 knapper_tech May 27 06:08:43 a9393j_: google.com May 27 06:08:47 LOL May 27 06:08:54 ;-D May 27 06:08:55 some terms to google May 27 06:09:06 meta.google.com May 27 06:17:39 knapper_tech : isn't there some way to pass arguments to ,say cmd line while building the app and generate a new app May 27 06:17:46 during runtine May 27 06:17:48 time* May 27 06:18:07 getting confused May 27 06:18:17 wouldn't call build time run time May 27 06:18:17 and couldn't getting proper results May 27 06:18:34 a9393j_: you have a directory of crap that you just call the build function on May 27 06:18:43 change the crap that is in the directory May 27 06:18:47 it's like a function May 27 06:18:54 different crap in, different crap out May 27 06:19:16 you can use a bash script etc to change the directory that you're about to build in May 27 06:19:34 ya but i would have to modify the code manually each time. May 27 06:19:48 a9393j_: ? May 27 06:19:57 sounds like a programming job May 27 06:20:12 a good place to apply automation May 27 06:20:14 python file.py arg1 arg2 May 27 06:20:18 just like this May 27 06:20:33 i want to build the android app May 27 06:20:42 by passing some arguments May 27 06:20:45 is it possible May 27 06:21:14 no May 27 06:21:38 Hi all, I'm running into an issue with my AVDs May 27 06:22:00 I'm trying to run one, and it gets stuck on an infinite loop on the boot screen. May 27 06:22:13 knapper_tech : are you getting my problem May 27 06:22:35 It will flash the android logo like normal, but then the logo will flash away as if it's about to boot, only to come back. May 27 06:22:44 a9393j_: i'm a framework maintainer operating on scant minutes of sleep and finishing a job =) May 27 06:23:15 Does anyone know what could be causing that problem? May 27 06:24:46 knapper_tech : sorry to bother but just provide me with a no or some terms to google if its a yes May 27 06:25:04 no May 27 06:25:22 ok thanks for help May 27 06:25:30 :) May 27 06:31:55 nvm, I think I got it. Thanks May 27 07:17:14 Hi, Is it possible to ask user to download my app when he connects to my wifi? if possible how could it be donee May 27 07:40:56 If JavaScript is enabled for a WebView, is loadUrl synchronous in that it waits until the JavaScript engine in the WebView is idle before returning? May 27 07:42:27 Thats a great question, one which I am not qualified to answer...again :-) May 27 07:46:03 k_sze[work]: loadUrl is async and the webview runs in it's own thread. If you need to know when it's done, use onPageFinished or similar. May 27 07:46:05 dont think so May 27 07:46:29 so my suspision was right May 27 07:55:26 Hi all, my app is using some libs (3rth party libs and libs from google (billing etc.)). I'm using Eclipse and added the libs in the properties. Now I need to set up this project on another pc (other developer) and his paths to the libs are different. Is there something possible to make this work without deleting / adding the libs after commits from git etc. ? May 27 07:58:57 FrancescoV: If you have a decent filesystem, symlinks should be doable. Generally though you should try to set your project up so that it can build after a clean pull from a repo, which it sounds like you have not done. May 27 08:00:42 kjeldahl: ok, can I find this on Android Developer website? May 27 08:02:13 Probably not. This all depends on which source code management system your are using (git?) and which build system you are using (Eclipse doesn't count, or counts but makes your life unecessarily hard..). May 27 08:02:52 Eclipse is great for holding your hands while learning things, but as soon as you need a proper project and build system you either need to figure out how Eclipse _actually_ works in detail, or move on... May 27 08:04:25 Having said that, setting up a proper repo that will work with Eclipse is also doable, but it's more work than pushing buttons in Eclipse. May 27 08:05:20 kjeldahl: thanks! May 27 08:05:30 (planning a directory layout where the minimal set of files required are part of the repo, avoiding preference settings messing up your co-workers setup etc..) May 27 08:05:37 hi May 27 08:05:48 Some body know how compil libwebviewchromium.so in debug mode May 27 08:06:03 I try make GY_CONFIGURATION=Debug (after a make clean) May 27 08:06:17 but nothing different no debug any more May 27 08:36:35 Hi guys, i'm building an app that lets user upload media to a server. When a user chooses an image from its gallery, everything goes fine. The problem is (only encountered on Nexus 5), that if the user chooses an image from another folder that the photo gallery, it crashes. Is it a permission problem ? I tried to add android.permission.READ_EXTERNAL_STORAGE to my manifet, but no change… May 27 08:39:29 h3bus: So are you selecting images from the gallery (using MediaStore), or a folder (using directories)? Those are two very different things, and require different handling. You should probably only use the MediaStore for retrieving images on the device. May 27 08:41:25 I'm only speculating though. Anyway, this might help http://blog.vogella.com/2011/09/13/android-how-to-get-an-image-via-an-intent/ May 27 08:42:27 So the key is to use a contentResolver to get the image data. May 27 08:43:29 That way other apps providing images can "provide" those despite your app having no permissions to read the actual file-based image (possibly stored in the app directory). May 27 08:45:36 kjeldahl: the link you sent me, does the activity allows user to pick from any folder ? May 27 08:46:40 Right now, what im' using is this : Intent intent = new Intent(Intent.ACTION_PICK, MediaStore.Images.Media.INTERNAL_CONTENT_URI); May 27 08:49:32 I think any app that generates images should make sure they get added to the MediaStore so they become available to any app where the user wants to select an image. If it does not get added to the MediaStore you probably can not use a regular intent to pick an image. May 27 08:49:39 Gotta run now, back later. May 27 08:52:46 kjeldahl: ok thanks anyway man May 27 08:57:41 If anyone has any idea how to make this work, or at least hide the other folders than the gallery in the Intent... May 27 09:05:28 Are there better ways to parse webpages (to make a "Reading Mode") than using Xpaths in JSoup? May 27 09:07:36 Hey guys, How do I add like an loading animation to loadInBackground of a AsyncTask? I have thread delay added, but no animation shows up May 27 09:13:01 ive read recently about using onProgressUpdate etc. but not quite sure how the publishProgress method can be applied properly? May 27 09:22:44 Hi all! I'm looking for tips to get rid of an INSTALL_FAILED_INSUFFICIENT_STORAGE error : http://pastebin.com/E64idnv3 May 27 09:30:21 How to make use of onProgressUpdate in AsyncTask, any1? May 27 09:33:03 Trekka12: it's explained here: http://developer.android.com/reference/android/os/AsyncTask.html May 27 09:33:13 there's only about 5,012 tutorials that explain AsyncTask. May 27 09:33:31 Of course, he can't even manage to spell "anyone"... May 27 09:33:59 that's how all the cool kids spell it now, keep up May 27 09:36:17 ehm May 27 09:36:20 lol May 27 09:36:21 ok May 27 09:36:47 so, like, yeah, and stuff, right? May 27 09:36:54 I wouldnt ask here if I had found something in the tutorials Ive looked over, hard to find what your searching for when you have no previous experience what it is I should be looking for.. May 27 09:37:08 The curse of being illiterate. May 27 09:37:14 whats your problem pragma? May 27 09:37:26 Y'knowwatI'msayintho? May 27 09:37:30 you understood what I meant, what do you care if I save a couple of milliseconds typing a '1' instead of one? May 27 09:37:39 pff May 27 09:37:53 * jvrodrigues grabs popcorn May 27 09:37:57 But yeah, I understood what you were saying when typing like that... May 27 09:38:14 so I don't understand your issue truthfully.. May 27 09:38:23 * bankai_au watches the show with jvrodrigues May 27 09:38:30 ;P May 27 09:38:56 No ragrets. May 27 09:39:08 pragma-, no need to be a douche May 27 09:39:52 I can type properly if I need to, didn't think that was a requirement in this chatroom though? May 27 09:40:01 channel May 27 09:40:21 .. You going to start now too? May 27 09:40:48 so which part of that tutorial didn't you understand ? May 27 09:41:52 It showed the very least of explanation behind how it worked (the AsyncTask @ Google dev), It only said what methods you would need, not how to use them in my opinion May 27 09:42:31 Although I have found something I think is of the caliber I'm looking for, using a ProgressDialog to inform the UI/user of updateProgress May 27 09:42:40 Think thats the best way? May 27 09:44:55 depends what you're doing really, i'm not a big fan of dialogs May 27 09:44:58 I have to play different audio sound (mp3's), should I make multiple MediaPlayers or can I do this with one MediaPlayer? May 27 09:45:46 I want to let the user / UI know that the new data (when pressing a refresh button in actionbar) is loading (have added thread delay of 5000 millisecs/5 secs) May 27 09:46:07 preferably using a loader gif which the progressDialog shows as well you know May 27 09:46:35 if there are simpler ways of implementing this user notification I'm all for it May 27 09:46:57 have you looked at progressbars? similar to how gmail has implemented theirs May 27 09:47:17 ok, no- kind of new to Android appdev, so had no idea what existed and was available to me May 27 09:47:22 Ill look them up right now May 27 09:47:54 the idea is not to interrupt the user unless you have to and IMO an FYI dialog is unnecessary interruption May 27 09:48:08 yea ok, gotcha May 27 09:48:21 Trekka12, if at all possible read through this: https://developer.android.com/design/index.html May 27 09:48:24 progress bars doesn't interrupt?` May 27 09:48:47 what's that Mavrik? May 27 09:54:53 is it possible in android studio in layouts, to specify dummy content values, which do not get put into the build process? So i can see in the preview what things might look like May 27 09:55:50 osxorgate, there's whole tools: namespace where you can set those May 27 09:56:06 osxorgate, http://tools.android.com/tips/layout-designtime-attributes May 27 09:56:18 ah awesome May 27 09:56:20 thanks May 27 09:56:34 Android 4.2.2, Chrome 35.0.1916.122: When i connect with WebRTC to WebRTC. Why the Mobile speaker audio does not work? i minimized the volume on Android physically using buttons, but it stay unchanged into full Volume. is it BUG android or Chrome ? May 27 09:57:17 does a cursor start at 0 or at 1? May 27 09:57:22 0 amirite? May 27 10:00:05 0 May 27 10:00:13 thanks May 27 10:00:33 Can anyone please tell #android admins to unblock my nickname. I have requested them and still i can't join there to report BUGS and check many issues. "11:55 Error(474): #android Cannot join channel (+b) - you are banned" May 27 10:02:01 oh ffs not this again ... May 27 10:02:31 you've been told multiple times no one is here controls that channel and it's not for official support anyway May 27 10:03:36 why were you banned in the first place? May 27 10:04:02 you'll find out soon enough ;) May 27 10:04:13 * jvrodrigues shivers May 27 10:04:28 jvrodrigues: i have no idea, i think they did a mistake May 27 10:11:40 What could i implement to offer live support on android device for our app? I was thinking about VNC but there are only servers for rooter android devices. Any ideas for alternatives thath root is not required. May 27 10:12:08 ArcaneWater: Google Chrome remote access May 27 10:14:27 https://play.google.com/store/apps/details?id=com.google.chromeremotedesktop May 27 10:18:23 IamTrying hmm looks interesting but seems i only can acess from android to desktop May 27 10:18:27 but i need Desktop to android May 27 10:20:40 how can i create surface larger than screen May 27 10:22:24 ArcaneWater: there is none which will work best. you can write an apps for it 1) apps will upload screen shots 30 fps or 1 fps jpeg/png to your web server 2) you can watch the fps with opera browser to solve viewing problem behind firewall 3) now from opera browser send mouse pointers back to the Android to trigger touch clicks use http get/post so that behind firewall it works May 27 10:24:34 IamTrying so this Google CHrome remote access you cant access from Desktop pc to Android if i checked all correctly. May 27 10:25:03 ArcaneWater: Right. And there are other apps but they are not FREE, and i do not like none FREE apps to recommend. May 27 10:25:54 Okay thx looks like will have to do somethign own way May 27 10:26:32 ArcaneWater: yes very simple just capture the screen in Android as 30 fps or 1 fps and upload it to webserver using http get/post method. then your viewing problem is solved May 27 10:26:51 After that all you need is to send back mouse click to the Android which you can generate easyly May 27 10:27:24 this will give you FREE 100% remote access tool on Android instead of depending on Teamviewer, Logmein, Google. May 27 10:27:44 i want user can create a game and that let user scroll canvas horizontally May 27 10:27:52 Huh sound not realy easy :D May 27 10:28:15 i am on creating a game that let user scroll.. May 27 10:30:20 molavy: Games you can use WebGL and easily make those May 27 10:30:52 IamTrying: i used this tutorial for base framework May 27 10:30:52 http://mobile.dzone.com/articles/beginning-android-game May 27 10:31:02 molavy: did you made the node-webkit for ARM then easily you can render all the WebGL with it. May 27 10:31:49 but i need make canvas size double screen width May 27 10:33:04 molavy: highway or my way? WebGL you can do that too May 27 10:33:38 molavy: see which browsers supports it: http://en.wikipedia.org/wiki/WebGL May 27 10:33:46 IamTrying: webgl is not fast enough, i test it May 27 10:34:02 molavy all i can say about games is go with Libgdx :) May 27 10:34:28 i have a question that has troubled me for a few days May 27 10:34:34 what would be better performance wise May 27 10:34:52 to reinflate different layouts on getview for different types of views May 27 10:35:19 ArcaneWater: thanks , did you know how can i set surface width double of screen width May 27 10:35:28 or to just inflate one layout and format the items in the layout to achieve the effect we wanted for the second view May 27 10:35:39 i use this guide for base framework http://mobile.dzone.com/articles/beginning-android-game May 27 10:36:17 for example, lets say i have a list view with headers and layouts with text and images and whatnot May 27 10:36:23 should i use two layouts May 27 10:36:34 or just set visibility gone for the items i don't want to show on the header? May 27 10:37:38 molavy dont know about that as i was only working with Libgdx. May 27 10:38:07 Hey JakeWharton there ? May 27 10:38:22 opened intellij idea this mornign -> all build configurations gone and cant create new ones because "plugin is broken" May 27 10:38:26 -_- May 27 10:44:03 mh switching to the stable intellij build fixed it :( May 27 11:00:39 can someone help me with this question May 27 11:00:39 http://stackoverflow.com/questions/23887689/set-surfaceview-width-double-screen-width-in-android May 27 11:02:13 Is there a list somewhere of common causes of SIGSEGV in libc? May 27 11:02:59 Apparently some of the Android API uses native C code and SIGSEGV can happen if, for instance, we use some of those API with an uninitialized variable? May 27 12:09:34 I have a problem with preference activity. I use a bunch of EditTextPreference's and one Checkbox in myPreference.xml The problem is with summary displaying. The value of summary is only showen if I change a value of e.g. name EditTextpreference. But it won't be shown when I open the preference activity... Any ideas how to preserve value of summary? http://pastie.org/private/7lq3o6amvcfukksaitmdaa May 27 12:11:03 frojnd: Why dont you set the summary in your xml? May 27 12:12:25 danijoo: because I want the value to be set as summary.. instead of Enter the name. I'd rather just see: "name" <- entered value from EditTextPreference May 27 12:13:03 at the moment you set the summary in "onpreferenceChanged" which is only called after someone changes it May 27 12:13:23 if you want to set it on startup, you should also call call lne 36 and 37 in onCreate May 27 12:16:29 where to get key :) May 27 12:17:02 if (key.equals("prefIme")) .... May 27 12:17:35 so in onCreate, if you want to set it: Preference prefIme = findPreference("prefIme"); May 27 12:21:01 yeah ok, but I still have to setSummary for prefIme May 27 12:21:14 do it. May 27 12:21:22 and if I just initialize SharedPreference sharedpreferences = null; May 27 12:21:59 and then call it: prefIme.setSummary(sharedPreferences.getString("prefIme", "")); I get a crash May 27 12:22:22 yes. like this: http://pastebin.com/TXCDfZx8 May 27 12:22:51 oh wait. you still need a sharedPreferences instance.. May 27 12:23:10 yes.. May 27 12:23:15 I did it as null and I get crash May 27 12:23:28 sure you get crash. May 27 12:23:30 its null May 27 12:24:08 :p May 27 12:24:10 yeah ok.. how do I initialize it so it's not null and I can use it :D May 27 12:24:11 this: http://pastebin.com/BTnQWLb2 May 27 12:25:14 aha May 27 12:25:18 frojnd: you know the difference between null and .. uhm .. not null? May 27 12:25:39 yes I know it :D May 27 12:25:48 okay :) May 27 12:25:55 didn't know how to fill it up May 27 12:25:56 my last pastbin should compile May 27 12:26:02 it does thank you May 27 12:26:16 you can always get a valid instance of sharedPreferences from preferencemanager with this code May 27 12:26:22 anywhere you have a context May 27 12:26:48 ok now I have to write a method that will automate this :) May 27 12:26:55 have a bunch of those May 27 12:27:49 good luck May 27 12:28:35 shouldn't be too hard May 27 12:28:52 just have to loop through mypreference.xml May 27 12:34:15 is it possible to use the Froyo version (3.2.65) of Google Play Services for older phones, but the newer version (4.4.x) for newer phones in the same project? May 27 12:38:18 why support froyo? May 27 12:40:25 heh - almost 4 yr old :) May 27 12:44:04 how does publishprogress() method work exactly for loadInBackground of an AsyncTask? I can't seem to find any info about it whatsoever, does the method really exist or do I have to create it myself? May 27 12:47:46 Trekka12: it exists May 27 12:47:52 and you have to override it May 27 12:48:09 and all it does is executing code on UI thread May 27 12:52:34 ok May 27 12:53:00 My goal is to somehow within loadInBackground get a progressBar layout to show during my designed thread delay of 5 seconds May 27 12:53:06 then when loaded, let it fade away May 27 12:53:38 Should something like this be done via the publishProgress() method you think? May 27 12:54:29 and maybe somehow inside of the onProgressUpdate(Integer... progress) then load the layout ontop of current one (if even possible?) May 27 12:54:41 I think you should read some guide about asyncTaks May 27 12:54:45 I have May 27 12:54:50 plenty of guides May 27 12:55:04 None of the ones I've found gave me any concrete answers :/ May 27 12:55:13 all seemed very "partial" May 27 12:55:29 you override doInBackground (this does your job), onPostExecute (called after your job, fades away progress bar) May 27 12:55:30 If you got a guide to recommend, I'd happily look it up May 27 12:55:40 okay May 27 12:56:00 and onProgressUpdate (this updates your progressbar when called from doInBackground) May 27 12:56:11 and if say I've got an XML Layout file with the progressbar layout, I just load and somehow hide it in those respective methods? May 27 12:56:43 you should do all this in the activity/fragment May 27 12:56:48 yes May 27 12:56:54 My AsyncTask is within the activity May 27 12:56:56 so I will May 27 12:56:59 and add methods to do this. then call this methods from the saync task May 27 12:57:24 ok, you mean call methods placed within the Actual Activity, from within the SubClass AsyncTask? May 27 12:57:55 yeah. thats what i would do. Having a public void showProgressBar() and call this from your async May 27 12:58:11 But what should I put down as publishProgress inParameter integer - because If I am to only load a new layout... I dont need any integer values? May 27 12:58:19 ah smart May 27 12:58:21 okay May 27 12:58:26 I'm with you so far May 27 12:58:26 :) May 27 12:58:41 integer? May 27 12:59:03 Yes, the publishProgress() method has Integer as inParam, whilst the onProgressUpdate() has an Integer Array as inParameter May 27 12:59:29 or have I missunderstood it? May 27 13:00:18 you can define what params they need May 27 13:00:22 with the generics May 27 13:00:45 class MyTask extends AsyncTask May 27 13:00:55 type1-3 define what type of params the methods use May 27 13:01:11 even the onProgressUpdate` May 27 13:01:12 ? May 27 13:01:16 and publishProgress? May 27 13:01:35 if so, which one of 1, 2 and 3 is the inParameter for these two methods? May 27 13:02:06 i think so. not sure :D isnt it 1=doInBackground, 2=progress, 3=postexecute? May 27 13:02:31 hang on Google devs AsyncTask guide I think walked through which was which, Ill go check May 27 13:02:32 1 sec May 27 13:02:35 Ty for helping me out May 27 13:02:36 :) May 27 13:02:37 havent used them for a while because i usually let libraries do that May 27 13:04:32 you seem to be right; The three types used by an asynchronous task are the following: 1. Params, the type of the parameters sent to the task upon execution. , 2. Progress, the type of the progress units published during the background computation. , 3. Result, the type of the result of the background computation. May 27 13:04:56 :) May 27 13:05:05 but I dont need progress since Im only loading the layouts though, right? May 27 13:05:18 I don't really know what good the integers would do May 27 13:05:24 or whichever variable I choose May 27 13:05:53 for a progressbar, you could use an integer May 27 13:06:04 and say full progress bar = 100, empty bar = 0 May 27 13:06:27 and when you publish progress you can then use the int as percentage of completion May 27 13:07:00 but its a thread delay - I wont get any "progress" its just 5000 millisecs? May 27 13:07:21 or you mean if I choose to have 0 in beginning, it will start loading May 27 13:07:24 and 100 it will stop? May 27 13:07:32 if you only execute a job after 5 sec delay, I would use a normal thread May 27 13:07:47 I am to use AsyncTask May 27 13:07:53 makes no sense to write 100 lines of code only to delay something 5sec May 27 13:07:53 its requirement of assignment May 27 13:08:09 oh okay May 27 13:08:10 Its an AsyncTask loading Internet RSS feeds May 27 13:08:22 but usually it goes superfast- so added a 5 sec delay May 27 13:08:33 to make loader appear (if I ever get it working ;P) May 27 13:09:00 then make the background task be a Thread.sleep(5000) May 27 13:09:09 and show the progressbar in onPostExecute May 27 13:09:21 dont use onPublishProgress at all May 27 13:09:27 okay? May 27 13:09:40 but I need the progressbar to appear when thread is sleeping May 27 13:10:22 create in onPreExecute May 27 13:10:27 okay May 27 13:10:59 and then what? where should I take it away? May 27 13:11:07 onPostExecute May 27 13:11:37 onpreExecute -> showIt, onbackground -> wait 5sec, onPostExecute->hideIt May 27 13:11:42 danijoo: is something wrong with this onSharedPreferenceChanged method? http://pastie.org/private/kr4vtizvjatuknk2j4n9w It won't update summary on change hm. May 27 13:11:45 then you have a progress bar staying for 5 sec May 27 13:11:45 okay May 27 13:11:57 sounds reasonable danijoo, thx May 27 13:12:34 I ttried to setSummary for all the EditTextPreference fields in mypreference.xml May 27 13:12:37 frojnd: what errror? May 27 13:12:41 no error May 27 13:12:53 whats the point of this method May 27 13:13:06 But inside of the method you recommended me to make, public void ShowProgressBar() <- How can I load a progressBar layout to be placed like.. on top of the screen you know? May 27 13:13:13 why do you want to update all summaries at the moment one summary is changed? May 27 13:13:18 to set summary of all the EditTextPreference fields in mypreference.xml with entered values May 27 13:13:46 I just want to update one summary if one summary is changed May 27 13:13:51 Trekka12: define it in your xml with android:visibility="gone" and call setVisibility(View.VISIBLE) May 27 13:14:13 your comment says some other thing :) May 27 13:14:42 yeah ok :) I don't want to write each line multiple times May 27 13:14:48 so updating all the files would work for me :P May 27 13:14:51 show me the whole activity again please May 27 13:14:53 :) May 27 13:15:00 in a second :) May 27 13:16:23 ah ok, thx danijoo :) very helpful - btw.. I just noticed, that I've been using AsyncTaskLoader <- its not the same as AsyncTask I suppose since I cannot Implement/Override the methods onPreExecute, onPostExecute, etc. you don't happen to know if it still could work inside of AsyncTaskLoader perhaps? May 27 13:16:42 use AsynkTask ;) May 27 13:17:02 whats the difference? ;o May 27 13:17:09 danijoo: http://pastie.org/private/xwdkrmrzj4ir1bwakyzsbw May 27 13:17:17 Its just a complete different class. May 27 13:17:20 aha May 27 13:17:25 I see.. ok May 27 13:17:46 frojnd: the point is, onSharedPreferenceChanged is never called May 27 13:17:58 oh nvm May 27 13:18:03 there you set the listener May 27 13:19:37 hm i cant see the problem May 27 13:19:41 and have to go now. sorry May 27 13:19:57 thanx for your help anyway :) May 27 13:19:58 check with a debugger if the ifclause fails or something like that May 27 13:20:03 doing that right now May 27 13:21:47 yep May 27 13:21:57 preference is never instance of EditTEstPreference May 27 13:22:00 hm May 27 13:22:02 why :D May 27 13:23:06 Anyone else here that knows stuff May 27 13:43:14 Is it possible to have tabs that aren't part of the actionbar? I have a sliding pane layout and want tabs in just the left pane. May 27 13:55:45 is there a way to see what methods are called at what times when you run an android app without using the debuger? May 27 13:59:05 well.. logcat outputs :p May 27 14:02:01 I'm using gps locations. But when I test my app a lot while debugging, I don't get any gps location anymore. Somebody an idea what the problem can be? May 27 14:13:50 FrancescoV: your device is shitty. Do a battery pull and continue where you left off. May 27 14:14:14 otherwise, verify that you're actually making a location request, and that you have GPS enabled on the device, and that you still have permissions. May 27 14:30:00 Anyone have a good reliable library or technique for views with rounded corners? particularly image views May 27 14:30:52 shekibobo: you could use picasso, and use a transform. I know a few people have written some pretty cool transforms for picasso May 27 14:31:10 https://gist.github.com/aprock/6213395 May 27 14:34:56 jaynewstrom: thanks May 27 14:41:43 need some help encoding namevalue pairs as json objects to interact with an online api May 27 14:49:27 Jesperhead: use retrofit. http://square.github.io/retrofit/ May 27 14:54:04 Is it possible to somehow "Sign" the retro fit request? Because i am reusing calls and i plan to have only one method for sucess reponses. So is there a way to check which one was called and or should i just check if reponse is instance of xxx class? May 27 14:57:48 JakeWharton probably you are the one with most info about Retrofit.. May 27 14:59:16 ArcaneWater: I made a custom Converter that does a little work before passing it off to the types to handle all request in a similar way. May 27 15:02:43 ArcaneWater: what are you trying to do? I have done quite a bit of consolidated parsing using retrofit May 27 15:03:54 Signing requests sounds more like a job for RequestInterceptor May 27 15:04:11 Can I use GSON to build an arbitrary JSON field? May 27 15:04:19 probably just use JSONObject for that... May 27 15:04:34 f2prateek: he says he wants to have one way to do success callbacks. which made me think of a Converter May 27 15:09:03 platzhirsch: Map May 27 15:09:10 don't touch org.json ever May 27 15:09:44 JakeWharton: Really? Also for simple JSON construction? May 27 15:10:01 objects are the simplest May 27 15:10:02 cannot find any use of the Map interface on https://sites.google.com/site/gson/gson-user-guide May 27 15:10:11 Is there a way to put tabs inside another layout? May 27 15:12:42 vozz: not with the built in tabs APIs I don’t think - those are meant to put tabs in the action bar specifically. but I don’t think it’s too difficult to implement your own tab-like system with buttons and fragments in whatever layout you want. May 27 15:13:08 I did that myself because I wanted tab-like navigation but with the tabs on the bottom of the screen, not the top May 27 15:13:58 Hm okay, what should contain the views that get switched? A Frame Layout? May 27 15:14:16 Or view pager or something May 27 15:14:30 yea I just used a framelayout May 27 15:14:52 my main activity had a framelayout in most of the screen then a smaller linear layout at the bottom to hold the buttons May 27 15:15:00 press a button, load up a different fragment in the framelayout. May 27 15:15:12 though I haven’t used viewpager before so I can’t speak to how well that works. May 27 15:15:37 Ah, okay, I'll use framelayout then May 27 15:15:39 thanks a lot May 27 15:15:43 np May 27 15:22:04 jaynewstrom sorry just had meeting. i have main activity which implements callback so i only have one method for responses how should i manage thath when this method is called i handle the correct request. Because at this activity i send like 3-4 post requests. May 27 15:24:06 I have no idea what you're doing. I would first look into retrofit.converter.Converter May 27 15:28:55 Hi all, I'm trying to do a full screen activity, and my testing device is a nexus with the soft back/home/task key bar. It's messing up my UI. is there away I can disable that for this one activity? May 27 15:29:24 It's not the "Action bar" (top) but rather the bottom/side bar. May 27 15:34:53 Scorp1us: as in the back, home, stack buttons? May 27 15:35:32 my understanding is that you can reduce their visibility, but you can't actually remove them, since they're required for the user to be able to use their device. May 27 15:35:41 (e.g. if your app craps out, they need to be able to press "home" somehow...) May 27 15:36:35 That sucks, because devices with physical buttons will work one way, and devices without will work another. May 27 15:41:11 There's not a lot you can do, aside from designing your UI to work around this. May 27 15:42:17 I'm facing this issue: http://stackoverflow.com/questions/11852604/why-is-my-fragment-oncreate-being-called-extensively-whenever-i-page-through-my I have max 5 pages, so it isn't a problem to use an OffscreenPageLimit ? or are there better solutions? May 27 16:08:24 what is better practice in android for animations. If I am fading something in/out to setup an animation listener to change the actual view state of the object or to setFillAfter on the animation to true? May 27 16:09:23 i believe they will both accomplish the same thing, but is one more hacky/easier to maintain/etc. than the other? May 27 16:15:33 which screen size corresponds to DENSITY_XHIGH = 320; ? May 27 16:17:43 Any screen size, as long as the pixel density is roughly 320 dpi May 27 16:19:39 Anyone here can tell me a good way of getting the "current timestamp" from android so that I can then somehow convert it to minutes and compare to another fixed date to figure out how long time differs from the two dates? May 27 16:19:52 convert it to minutes may not be required if there is a smarter way May 27 16:19:53 SimonVT: excuse me but how do i figure the screen sizes ? whts the method ? May 27 16:20:22 i am running android x86 and i need to set the screen size so i can test different dpi May 27 16:21:02 Trekka12: new Date() is not enough ? May 27 16:21:54 i used Calendar c = Calendar.getInstance(); May 27 16:21:55 I just have never used dates from scratch before, am not aware of what works and what doesn't May 27 16:21:59 ok May 27 16:22:02 I've seen that be used before May 27 16:22:05 the calendar option May 27 16:22:21 i fills my needs May 27 16:22:27 I could try that, but How can I then compare it with another date - like say, one which was fetched from an RSS feed? May 27 16:22:47 I need to get the difference so that I then in turn can type it out in a textview May 27 16:22:58 you know, like.. (9 minutes ago) May 27 16:23:16 if the rss feed date was from 9 mins ago May 27 16:23:29 c.add(Calendar.HOUR, 1); will add one hour May 27 16:23:59 not sure how that helps me out ;/ May 27 16:24:04 i think you can compare between the dates by getting the time May 27 16:24:08 ok May 27 16:24:19 Trekka12: you need to rtfm i guess May 27 16:24:33 read the f*ckng manual?` May 27 16:24:34 :P May 27 16:24:44 well .. i meant the fine manual May 27 16:24:49 haha riight ;P May 27 16:24:50 :-) May 27 16:24:53 but sure I see what you mean May 27 16:24:54 and yes May 27 16:24:59 I am going to read manual of Calendar May 27 16:25:08 Thx for input though, much appreciated :) <3 May 27 16:25:14 no prob May 27 16:25:17 :)) May 27 16:25:37 Unfortunality I cannot assist you with the problem which you were discussing with SimonVT ;/ May 27 16:25:41 otherwise I would May 27 16:25:53 thanks )) May 27 16:26:35 If you know the resolution and the density you can calculate the screen size May 27 16:26:43 But I have no idea how android x86 works May 27 16:26:58 It's an AOSP version built for x86 iirc May 27 16:26:59 the image is 86x as large May 27 16:29:16 I'm looking to make a simple android game for fun, does anyone have advice on if i should be using a framework or starting from scratch? The game is similar to Asteroids May 27 16:30:56 SimonVT: how do u calculate the screen size ? May 27 16:31:43 http://en.wikipedia.org/wiki/Pixel_density#Calculation_of_monitor_PPI May 27 16:33:50 I have some code which includes a float=0f, is this a typo? May 27 16:34:03 SimonVT: i am going the other way so i need to solve this euation for w and h then ? May 27 16:34:18 jamesson: no? which part? the 'f'? May 27 16:34:45 Anybody uses JSoup? I have some confusions about .referrer and .userAgent. The URL sometimes load mobile version but sometime the desktop version. I have searched though StackOverflow but didnt get a more consistent answer, what and WHY to use? May 27 16:35:32 lov: yes May 27 16:36:59 lov actually floaft foo = 1f May 27 16:39:26 dos000: Yes, if you know the screensize and the density, then you'd figure out the resolution May 27 16:39:31 jamesson: No, it's not a typo May 27 16:40:00 jamesson: that's not a typo. May 27 16:40:25 typically you'll see something more like "1.0f" to make it a little more visually explicit May 27 16:40:34 SimonVT: let me restate ... i know the density that i want *only* ... i need to find one (or multiple) screensizes May 27 16:40:54 lov: but why the f if the variable is initialized as float? May 27 16:41:21 because "1" is an integer. May 27 16:41:21 you don't in theory need 1f or 1.0f. It's good practice to make it obvious. You DO need 1.1f. May 27 16:41:31 but yes, what dragorn said. May 27 16:41:45 the compiler is generally smart enough to figure this out, but "1.0" is a double while "1" is an integer. May 27 16:41:55 dos000: You can't "figure out" the other two from just the density.. You need to know two, solve for the third May 27 16:41:56 It will cast an integer to a float, but it won't cast a double to a float, due to precision loss. May 27 16:42:08 Math 101 May 27 16:42:08 you MAY, if the compiler/vm is especially backwards, be causing a cast every instant May 27 16:42:18 s/instant/instance/ May 27 16:42:38 SimonVT: is there a list of valid screen sizes then ? something like a standard for each dpi ? May 27 16:42:51 dos000: nope. it's android. people do whatever the shit they want. May 27 16:42:54 No.. May 27 16:42:58 Any screen size is valid May 27 16:42:59 lol May 27 16:43:03 Any screen size can be any density May 27 16:43:25 dos000: the android answer is, "if you care about this, you're probably doing something the wrong way" May 27 16:43:49 dragorn: this is for testing different configurations ... May 27 16:43:49 Everything is permitted. Nothing is forbidden. May 27 16:43:58 i wonder how android studios does it May 27 16:44:02 dos000: in that generally you make your fixed size art resources in the multiple resolutions and let the system figure it out May 27 16:44:06 If you're making any sort of assumption about a vendor not being a complete knucklehead, you're in for a Bad Time. May 27 16:44:15 dos000: there's some commands you can send to change the screen in debug mode May 27 16:44:16 dos000: one sec May 27 16:44:36 dos000: the neuxus10 is generally considered the best test unit for that b/c the screen is so massive it can simulate pretty much any possible device May 27 16:44:52 dos000: http://www.androidcentral.com/use-nexus-10-simulate-almost-any-android-device-while-testing-your-app May 27 16:45:29 dos000: it doesn't have to be a n10, but as the article says, since it's got the highest specs it can simulate almost anything else May 27 16:45:55 aha May 27 16:46:24 reminds me i need to reflash my n10 back to android May 27 16:47:24 dragorn: bored of tizen already? May 27 16:47:29 if I understand what you're trying to test, I think that will take care of you May 27 16:47:33 lov: nah, i threw on ubuntu touch May 27 16:47:34 i hope these work on my android x86 .. May 27 16:47:39 lov: it's absolutely awful May 27 16:47:44 dos000: I'd expect them to May 27 16:47:50 right now i was making a menu in the boot configureation May 27 16:47:53 haha May 27 16:48:06 lov: I'd say ffox os is better, even May 27 16:48:14 lov: and uh... that's a statement right there :P May 27 17:00:06 hello May 27 17:00:21 what are item ids in Adapter used for? http://developer.android.com/reference/android/widget/Adapter.html#getItemId(int) May 27 17:02:06 whatever a certain type of adapter might need it for May 27 17:05:37 ok, how about hasStableIds()? is it used by android sdk somehow? May 27 17:08:37 must be rare since I haven't encountered a case which did use it yet May 27 17:08:43 except the case I wrote myself May 27 17:11:25 hello May 27 17:12:15 hi guys, i've got a problem : ive got a layout which is made of two fragments, that I fill dynamicly, and so have a height that is not fixed. I would like to be able to scroll the two fragments as if thery were only one… But so far, no luck.. (Just FYI, it is exactly the same problem as there : http://stackoverflow.com/questions/9410747/scrolling-2-fragment-one-fragment-and-one-listfragment-as-one) May 27 17:12:55 after a successful login using android sign in button. what do i need to send the web server that fetchs information for my application for authentication ? May 27 17:13:03 Suuuuuuuuuuuuuuuuuup May 27 17:13:05 :P May 27 17:13:44 ok thx May 27 17:13:58 frankdoyle: I need to use CookieManager and CookieHandler but they're not available in API lvl number 8. Can I somehow import those classes into my project? May 27 17:14:57 pthreat: maybe, what exactly are you trying to do? May 27 17:15:08 just using sessions May 27 17:15:11 maybe as in, probably not, but you probably don't need to May 27 17:15:33 I'm just mantaining a cookie with a PHP hash value that identifies against the server May 27 17:15:39 i.e logging in May 27 17:15:50 h3bus: maybe put one of the fragments inside the other? API 17 and up or with support library you can use getChildFragmentManager() May 27 17:16:27 you can work with cookies without using cookiemanager. it's just another header May 27 17:17:14 frankdoyle: just a mintue May 27 17:18:38 frankdoyle: http://pastebin.com/ziLYdnR0 May 27 17:19:16 frankdoyle: now, the problem is, I need to use CookieManager in API level 8 May 27 17:19:37 paralith: it seems to be a good idea, do you know where I can find an example May 27 17:19:47 running "adb shell pm getInstallLocation" gives => "error: insufficient permissions for device" May 27 17:19:48 (which I can tell is not available since I'm getting a Could not find class exception May 27 17:19:54 i thought root access was not necessary May 27 17:23:47 pthreat: look into okhttp May 27 17:24:11 frankdoyle: alright May 27 17:25:16 hum, i just read that fragment within fragment are not supported before android 4.2, so I cant use that May 27 17:26:05 use the support library May 27 17:28:31 ^ May 27 17:29:40 frankdoyle: OkHttp supports Android 2.3 and above May 27 17:29:47 damn it May 27 17:29:49 "adb devices" results in "???????????? no permissions" May 27 17:29:56 pthreat: there are no other versions of Android May 27 17:30:46 this is in charge mode, with USB debugging turned on May 27 17:30:51 JakeWharton: I must be confusing the firmware version then May 27 17:30:58 JakeWharton: which one ? I already have the android support v4 jar in my project, but it cant seem to find the getChildFragmentManager method May 27 17:31:10 h3bus: are you sure you have the newest version of it? May 27 17:31:16 I don't think he meant that literally, but he's pretty much right May 27 17:31:37 JakeWharton: I dont know, ill take a loog May 27 17:31:40 what are you doing that needs 8 support? May 27 17:32:34 the latest api is the 19 right ? May 27 17:32:43 is ListView's onItemSelectedListener ever called? May 27 17:32:44 I was thinking 8 was 2.3; I avoid supporting that if I can May 27 17:32:45 frankdoyle: I have a phone with an old FROYO May 27 17:32:54 I need my app to work at least with 8 May 27 17:33:07 because that's how shitty my country is and that's how shitty the users are May 27 17:33:09 is not my call May 27 17:33:36 .Anyone know if there is a way to distinguish if a LAN exists without internet connection? May 27 17:33:54 that's unfortunate. still, you should be able to get away with not using cookiemanager, and treating it as just another header May 27 17:34:11 pthreat: isnt level 8 android 2.2? no one uses it... May 27 17:34:14 frankdoyle: Maybe passing the session hash through the url like in the old php3 days haha May 27 17:34:54 or storing the hash inside the class as static ... and adding the cookie header in every request ? May 27 17:35:02 that could be interesting May 27 17:36:14 frankdoyle: ping the first computer in your mask, for example ping 192.168.1.1, hacky but would work sometimes May 27 17:36:46 mrpyo: In first world countries they might not use it. I live in a shit hole, thank you very much May 27 17:36:49 mrpyo: don't think you meant me May 27 17:37:09 he meant lasserix May 27 17:37:48 lasserix: Maybe, I assume that's probably how something like wepcrack works. May 27 17:37:54 Quick question : in sdk/extras/android/support/ i've got two android-support-v4 files, one in v4 and one in v13… Which one should I use ? May 27 17:39:10 anyone interested in mvvm May 27 17:41:04 i have created binding library for android, it works better than expected :P May 27 17:42:55 nice May 27 17:45:27 you put in your xml and voila you have working listview.., May 27 17:47:03 dragorn: ouch May 27 17:48:35 pthreat: but werent 2.2 updated to 2.3 like for every devide that had it? May 27 17:49:02 Not in this great nation May 27 17:49:36 mrpyo: hahaha sob May 27 17:49:49 honestly, don't bother supporting 2.2 at this point. May 27 17:50:32 really, strongly consider whether to support 2.3.x while you're at it. May 27 17:50:52 the market share is at 16% for GB, so it's probably relatively safe to ignore it going forward. May 27 17:51:01 https://twitter.com/minsdkversion May 27 17:51:14 ... huh, 3.x is at 0.1% so just go straight to 4.0 May 27 17:52:16 lov: My app success depends on people who are dumb i.e ignorant May 27 17:52:18 mrpryo thanks May 27 17:52:25 SO May 27 17:52:30 That's my target audience May 27 17:52:35 pthreat: you and everyone else. May 27 17:52:36 well i use support library, and so far had no problems for anything over level 9 May 27 17:52:48 lov: well then! Support level 8 May 27 17:52:54 nope, gfy :> May 27 17:53:07 there's a plaaaaaace called latin america full of shiiiitt May 27 17:53:14 ok great. May 27 17:53:19 hahaha May 27 17:53:34 bt are you sure 2.2 is still used there? May 27 17:53:36 where corruption is like water, sing along! May 27 17:53:38 at none of my last jobs has latin america been a realistic target market May 27 17:53:40 mrpyo: yes very sure May 27 17:53:47 lov: it's a good target May 27 17:54:04 when you sell audiobooks in english, not so much. May 27 17:54:13 lov: haha I guess not May 27 17:54:42 https://developer.android.com/about/dashboards/index.html?utm_source=ausdroid.net - so is whole latin america in this 1% May 27 17:55:31 mrpyo: bs! May 27 17:55:31 ? May 27 17:55:52 1% that's not even true May 27 17:55:53 well those are google stats May 27 17:56:06 Well I really don't trust those May 27 17:56:07 * lov rolls his eyes. May 27 17:56:17 end user experience says something different May 27 17:56:17 but it counts users with internet access May 27 17:56:27 roll your eyes all you want it's not going to change reality! May 27 17:56:28 maybe you mean you have no internet too ;) May 27 17:56:29 DAMMIT May 27 17:56:35 mrpyo: I do May 27 17:56:45 pthreat: if the devices don't have the play store, or don't contact the play store, they won't show up. May 27 17:56:48 this is true! May 27 17:56:59 in that case, you get to get stats from whatever vendor you're going with. May 27 17:57:29 or they are 1-percenters - Occupy!!! ;) May 27 17:57:32 Well "or don't contact the play store", you see, ignorance is something pretty common here. THAT and modified android versions from phone companies May 27 17:57:38 mrpyo: I'm the 1%!!! May 27 17:57:52 I'm the 1%!!!!!!!!!!! RESPECT MY AUTHORITY! May 27 17:58:12 being ignorant doesn't change the firmware on your phone. May 27 17:58:21 Yes they do modify android versions May 27 17:58:26 yes they do block android updates May 27 17:58:33 ok May 27 17:58:40 look, I'm not going to tell you what your metrics look like May 27 17:58:41 my phone got upgraded to kitkat this weekend, so it's 19+ from here on out! May 27 17:58:49 lov: of course not May 27 17:58:55 I guess in olden times of android vendors did stuff like replacing google play with their own shit May 27 17:59:10 mrpyo: such as amazon. May 27 17:59:17 NFL Online:Verizon May 27 17:59:20 ^^ May 27 17:59:32 there's a really funny chapter in a learning android book that talks about alternative stores May 27 17:59:42 i'm lucky to have unbranded phone May 27 17:59:53 anyhoo, good luck with dealing with latin america. If that's making you enough money to worry about ancient devices on hacked up firmwares, go wild. May 27 17:59:55 they mention that stores like Verizon have a better reputation for quality apps May 27 18:00:02 hah. May 27 18:00:09 lol May 27 18:00:22 If anyone using JSoup can tell how can I skip a single line from a div which contains a particular text http://pastebin.com/2vfR1LzF May 27 18:01:32 maybe pthreat is from Venezuela - they trade apps for oil :P May 27 18:01:39 WantToCode: that sounds like a JSoup question, not an Android question. May 27 18:01:44 Have you asked Stack Overflow? May 27 18:01:52 mrpyo: Very similar, I'm from Argentina, shit hole below May 27 18:02:11 well, its richer i guess May 27 18:02:26 and doesnt have communism, I think May 27 18:02:43 think twice May 27 18:02:46 lov: Hmm, ok, I have searched it through, didnt really get any answer May 27 18:03:05 well, unless you're lucky enough that someone's a JSoup maven here, you probably won't get an answer here either. May 27 18:03:39 never get answers there as well for my silly questions :\ Thanks anyways May 27 18:03:46 come on, you have similar gdp per capita to my country and we have newer phones May 27 18:05:07 i used jsoup, but still it is more about knowing regexes than jsoup alone May 27 18:05:10 #yolo2014 May 27 18:05:22 itamz: please die May 27 18:05:26 jesus sorry May 27 18:05:28 wrong channel May 27 18:05:35 lol May 27 18:05:36 fuck May 27 18:05:42 don't sweat it May 27 18:06:24 itamz: how did you get my commit messages? May 27 18:06:54 mrpyo: any way to do this regex? May 27 18:06:59 lov: https://scontent-a-lhr.xx.fbcdn.net/hphotos-prn1/t1.0-9/1503881_704043492967240_1644056968_n.jpg May 27 18:07:10 lov, I hope you don't push that shit to a shared repo May 27 18:08:09 WantToCode: do you want text alone or other tags to be preserved too? May 27 18:08:57 thepoosh: that sounds about right. May 27 18:09:10 LOL May 27 18:09:14 mrpyo: I want to skip only the line starting with "Read More :" and keep everything else intact May 27 18:09:15 itamz: when your team doesn't fucking do code reviews for over a week after asking them politely, sometimes you just start force pushing. May 27 18:09:37 fortunately, I only threatened to do that, instead of having to actually follow through. May 27 18:09:38 lol, I meant the useless commit messages May 27 18:09:46 no, I was serious. May 27 18:10:09 since no one else cared, I threatened to just "git commit -m 'YOLO'; git pull; git push;" May 27 18:10:37 fortunately, I now work in an environment where I get way, way too much feedback in my CR requests :( May 27 18:14:35 so my app has a nine patch for drawing a card ui like interface May 27 18:14:51 WantToCode: if you have it in text try: text.replaceFirst("\\s*READ ALSO:.*"); May 27 18:15:09 evrything works fine on the phone. but on the android x86 i cant see the cards ((( May 27 18:15:45 not sure what i did i used to be able to see it May 27 18:17:17 mrpyo: Thanks a lot. I will try this. Can you tell me a keyword or something to search for, if I want to use this line to replace other stuff etc, if needed? Is this regex? May 27 18:17:37 yes it is regex May 27 18:17:47 WantToCode: "regex", "regular expressions" May 27 18:17:55 if you're on windows, see The Regex Coach May 27 18:18:14 dos000: are you sure that it's android x86 that's causing the problems? May 27 18:18:25 the underlying architecture shouldn't make any difference whatsoever. May 27 18:18:30 lov: not really sure at this point May 27 18:18:47 If you're using an emulator, you've probably done something like enable hardware GL in one arch but not another. May 27 18:18:52 lov: the nine patch i hve are only for cetrin dpi May 27 18:18:54 mrpyo, lov Thanks. :) May 27 18:20:27 lov: i have nine patches for hdpi , mdpi, xhdpi,only !!! May 27 18:20:46 so i was thinking maybe the nine patches a re missing May 27 18:21:11 i tried to gire the dpi of the emulator its set to 160 .. May 27 18:21:15 no, if you have support for those you'll get automatically down/upsampled May 27 18:21:34 lov: thats good to know ! May 27 18:21:57 it's almost certainly something else. If you use a different 9patch instead of the one you've added, what happens? May 27 18:22:15 lemme change the background on all instead of the 9 patches May 27 18:23:11 While doing pinging with process my inputstream from the process always returns 0: anyone know why this might be? May 27 18:24:23 dos000: try both. May 27 18:25:09 lov: ok .. brb May 27 18:44:19 ok mistery resolved ((( May 27 18:45:08 it looks like android decided to empty my database file ((( May 27 18:45:17 so i had to recreate it ! May 27 18:46:12 lov: as you said this had nothing to do with 9 patch .. talk about wrond diagnostic ((( May 27 18:52:30 I was uploading to Samsung's store, my app was at version X and I uploaded and everything was fine until they needed a new APK with a newer version to be uploaded so that I can get the chance to change the resolutions that it supports May 27 18:52:49 all the while, I had been working on that previous version and it had become something radically different May 27 18:53:21 so I no longer have that older version that needs to be uploaded again (with the only difference being the version) since I did not tag that version, NOR did I commit anything at the time May 27 18:53:34 so please, USE GIT AND TAG VERSIONS!!! SAVE YOURSELVES!!!! May 27 18:53:49 * Sicp plummets into the depths May 27 18:54:08 dos000: glad to help. May 27 18:54:25 lov: thanks a lot !!! May 27 18:54:31 Sicp: don't forget to take backups! :D May 27 18:54:40 np May 27 18:55:13 good thing that the newest version is just about done though May 27 18:55:18 maybe I'll still be able May 27 18:55:24 I mean fuck Samsung, but you know.. May 27 18:55:29 its more a self thing May 27 18:56:25 i have a "terrible" envy to "copy" all the colors that google play uses ... in my card based app !!! May 27 18:56:33 so freakin beautiful May 27 18:57:00 or maybe its my lack of artistic design May 27 18:57:38 copy until you become original May 27 18:57:48 and don't reveal your sources :P May 27 18:57:51 I'm working on a source of an huge app."Shutting down; VM thread exiting with uncaught exception (group=0x42048ce0)" How can I find this error? it doesn't show stacktrace May 27 18:57:52 dos000: you should, uh, read through http://developer.android.com/design/index.html May 27 18:58:04 o_O May 27 18:58:10 yoavst: there's no stacktrace at all? May 27 18:58:12 of course there's an exception, yoavst .. May 27 18:58:30 lov: no. Sicp: ofc, but I can't find it from this message May 27 18:58:41 you will find it in the log cat... May 27 18:58:43 yoavst: so don't look at that message? Use logcat without tags, etc :P May 27 18:59:22 what you see is from the Console May 27 18:59:27 I ..think May 27 18:59:42 I'll copy the logcat May 27 18:59:44 what is the point of having styleable namespaces when you can't have overlapping attribute names? May 27 19:01:34 How do I clear logcat? May 27 19:01:41 you can't ask that May 27 19:01:44 you can't May 27 19:02:36 https://www.dropbox.com/s/6ww1gjx59aosb4v/Screenshot%202014-05-27%2022.02.19.png May 27 19:02:44 where the hint is showing... May 27 19:03:03 that is the logcat: http://pastebin.com/QUzht4yu May 27 19:03:22 line 163 May 27 19:03:26 that's your exception May 27 19:03:32 good 'ol null pointer May 27 19:03:40 what day would be complete without one May 27 19:04:52 at android.inputmethodservice.IInputMethodWrapper.setSessionEnabled(IInputMethodWrapper.java:287) May 27 19:05:02 at your.package.name May 27 19:05:02 How do I fix that crash :P May 27 19:05:16 add a filter with your package name May 27 19:05:19 com.something.else May 27 19:05:26 only stuff that have to do with your app will show up there May 27 19:06:01 says something about binder stuff May 27 19:06:04 stub* May 27 19:06:10 see where you have a service May 27 19:06:28 all i know sry May 27 19:06:50 http://pastebin.com/Z02KaEg9 May 27 19:07:16 heya, so I figured I'd try a hand at making an opengl app May 27 19:07:20 lol May 27 19:07:57 no idea, don't understand what Im reading May 27 19:08:07 I followed the training/graphics/opengl tutorial fairly closely as well as reading stuff from its source code where the tutorial didn't cover May 27 19:08:26 however there may be things wrong because I don't have an infinite attention for detail May 27 19:08:40 get things working first :P May 27 19:08:43 after hellfire I got my opengl-activity to launch May 27 19:08:45 then be anal about it May 27 19:09:10 it draws properly and glClear(0,0,0,0) is called to certify that May 27 19:09:17 .....except the 3D object I wanted to render is not drawn May 27 19:09:51 I can throw you a bunch of code technically May 27 19:10:17 I'm out May 27 19:10:27 barely know my asynctasks May 27 19:11:18 lol May 27 19:12:13 should be a channel for android animation May 27 19:12:19 where gurus sit there and argue May 27 19:13:03 sounds like #android-animation-gurus May 27 19:13:11 animation in android makes me puke May 27 19:13:34 difficulty makes you puke May 27 19:13:39 ;) May 27 19:13:46 puke makes me puke May 27 19:13:52 +1 May 27 19:13:53 well more like accidental complexity May 27 19:13:54 it's all a vicious downward spiral, really May 27 19:14:03 nah everybody is doing animation on Android May 27 19:14:11 takes skillzzzzzzz bro May 27 19:14:20 not us mere folk May 27 19:14:21 lol May 27 19:14:25 Sicp: i found a nice little lib from facebook .. called rebound May 27 19:14:26 ^^ bullshit May 27 19:14:34 aha May 27 19:14:36 its a breeze !!!! May 27 19:14:45 I give immense props to the guy who made some game called smash hit where everything looks amazing in 3D and there's decently fast hard body physics May 27 19:14:50 oh did I mention there's GLASS SHADERS May 27 19:15:20 nah think about it, these people at Google are not geniuses, they make code for people like you and me, we just are lazy and want things to be done with .drawEverythingPlease(); May 27 19:15:25 i'm getting better at it May 27 19:15:31 they are not smarter, they just spend more time May 27 19:15:33 a lot more time May 27 19:15:52 serously animation is broken ((( May 27 19:15:54 its this false idea that things should be easier May 27 19:16:04 who said they were difficult, they are just ...themselves May 27 19:16:08 even they say it May 27 19:16:20 why is life so hard May 27 19:16:22 its tied to time May 27 19:16:25 * Sicp punches table May 27 19:16:39 thats the major problem May 27 19:16:42 its tied to dedication bro May 27 19:16:45 what you want in your life May 27 19:16:49 beer or guru May 27 19:16:53 that's what makes or breaks May 27 19:17:07 * dos000 shrugs May 27 19:17:09 dennis richie you think he had FUN? May 27 19:17:10 HA! May 27 19:17:52 did you play with rebound yet ? May 27 19:18:05 nah both my apps have nothing to do with above May 27 19:18:20 one is DSP and another ssh connection and servers, I'm never gonna get into that stuff I think May 27 19:18:28 and that's fine.. May 27 19:18:33 fuck master of everything May 27 19:18:37 just pick one thing May 27 19:18:42 Sicp: dsp ? in what sense ? May 27 19:18:54 machine that tunes guitars May 27 19:19:00 ah ! May 27 19:19:24 do you have t deal with low level c code ? May 27 19:19:30 yes daily May 27 19:19:37 porting though, not JNI or anything May 27 19:20:19 pfff... I can't find an example/tutorial using content providers without a db May 27 19:20:27 how do you have a specific device you deploy on ? how do you manage all the devices out there ? May 27 19:20:48 well we use BLE, and BLE is only supported on a few very new devices, so in a sense Ive got some work cut out for me May 27 19:21:09 daily I use nexus 5 May 27 19:21:34 * dos000 is looking up this ble thingy May 27 19:21:42 bluetooth low energy May 27 19:21:50 oh ! May 27 19:22:03 like Fitbit May 27 19:22:39 so your app listens on the audio port ? or via blue tooth ? May 27 19:23:00 listens to audio and accordingly sends ble commands to the device May 27 19:23:03 the device turns, etc.. May 27 19:23:52 ah .. neat !!! May 27 19:24:12 yea Im liking it May 27 19:28:27 I have the exact same exception that yaovst was asking about minutes ago May 27 19:28:28 haha May 27 19:36:09 any idea about repeated GC messages? May 27 19:37:08 there, https://sites.google.com/site/pyximanew/blog/androidunderstandingddmslogcatmemoryoutputmessages May 27 19:42:43 I love the descriptive uRL May 27 19:42:44 URL* May 27 19:44:31 anywho May 27 19:44:35 http://hastebin.com/usayekimeq.java someone fix this D: May 27 19:45:03 ((ArrowGLRenderer is GLRenderer coupled with a GLSurfaceView that is used as a contentView)) May 27 20:11:59 how can I debug something like this: http://pastebin.com/2rK9vx2b May 27 20:12:07 where to look for source code? May 27 20:26:24 mrpyo: look on line 3 of the layout you were inflating. May 27 20:26:37 also, there's probably more there in your logs, look at it please. May 27 20:56:35 Play Store question... the Play Store only shows android OS version requirements... not architecture. how can i find out what architecture an app needs? May 27 20:58:01 not sure it's exposed. It's not part of the manifest, apps are generally expected to support all architectures if they have a JNI component. Obviously this isn't entirely reflective of reality May 27 20:59:58 glad to hear that.. so someone with android x86 on a PC can run mostly the same apps as a phone user? May 27 21:00:34 when I use an APK downloader website, I'm not asked whether i need ARM or x86 May 27 21:00:42 so how do I specify? May 27 21:03:10 you don't May 27 21:03:22 the apk will either include binaries or it won't May 27 21:03:33 since you're not using Play Store on device you won't get proper filtering. May 27 21:03:43 also, IIRC, there's some ARM emulation layer on x86 images May 27 21:04:49 Mavrik: emulating ARM on an x86 is /very/ slow. I was hoping to gain some performance by running android x86 in a VM May 27 21:05:27 if each x86 app is emulating ARM, then it sounds like my plan won't work May 27 21:07:31 Mavrik: there's no ARM emulation layer, afaik May 27 21:08:17 i'm trying to understand this, b/c I thought most android apps were java-based... and the whole point to java is platform independence May 27 21:09:20 cybrNaut: there's JNI which lets you use native libraries May 27 21:09:22 p_l, actually there is. May 27 21:09:26 http://commonsware.com/blog/2013/11/21/libhoudini-what-it-means-for-developers.html May 27 21:09:38 Intel ships that on their Atom Androids to run ARM C libs May 27 21:09:52 it's obviously slower... but at least the Play Store doesn't look empty :P May 27 21:10:04 also, it's usable on Genymotion to hack in play stupport May 27 21:10:16 Mavrik: well, I don't think it's part of AOSP... :D May 27 21:10:24 no, it certanly isn't :) May 27 21:10:29 proprietary, closed source :) May 27 21:11:03 Mavrik: that's why I don't consider it part of android proper. If needed, you could have always ran qemu-user-arm :> May 27 21:11:32 cybrNaut, Android apps may ship/use native C code compiled to machine code if they want and play store will do automatic filtering according to which architectures the libs are compiled for. May 27 21:12:12 p_l, mhm... still, it's siginificantly faster than ARM QEMU tho. it does translation only for native libs, Dalvik runs in x86 mode May 27 21:14:51 so someone writes an app for ARM only, they upload ARM-only binaries, and the play store automatically inserts libhoudini to make an x86-capable version? is that correct? May 27 21:17:22 trying to make a login function for my app. server uses basic auth and has an api set up to return json objects when queried. I have created a dummy login_test app for just the logging in parts. on runtime, I get http://pastebin.com/wz09PCzp May 27 21:17:59 assuming I'm correct... can a diligent author include both ARM and x86 binaries (w/out emulation) in the APK? May 27 21:18:18 cybrNaut: (for libhoudini) a manufacturer of a x86-based device can use libhoudini in their firmware to provide ARM support, and they signal to Play Store that they also support ARM binaries May 27 21:19:01 cybrNaut: as for diligent author - you can support any combination of platforms on Android, so it's possible to find an APK that has 4 different sets of shared libraries (and soon there will be another one) May 27 21:20:16 additionally, here is the method run when the login button is clicked: http://pastebin.com/XUwiebwH May 27 21:20:37 any assistance is appreciated May 27 21:20:47 cybrNaut, no May 27 21:20:48 p_l: thanks May 27 21:21:20 cybrNaut, if developer doesn't provide x86 (or ARMv5 or MIPS) binaries, that app just won't show up in store on those devices May 27 21:21:28 libhoudini is just a hack Intel ships on some devices May 27 21:21:48 and has nothing to do with Android as such, neither is built by Google :) May 27 21:22:46 I think there's only like 1 or 2 devices featuring libhoudini on the market May 27 21:22:51 so if someone visits the Play Store with an x86, and no libhoudini hack, is the store pretty much sparse? May 27 21:23:09 cybrNaut, yep May 27 21:23:19 and it shows as "not compatible" on play store on the PC/web May 27 21:23:30 of course, if the app doesn't use any native libraries (and there's alot of those) May 27 21:23:32 there's no issue. May 27 21:48:18 http://pastebin.com/XUwiebwH http://pastebin.com/wz09PCzp May 27 21:48:26 first is code, 2nd is error May 27 21:48:33 any input is appreciated May 27 21:48:55 android.os.NetworkOnMainThreadException May 27 21:50:09 i attempted to thread it. did i do it wrong? May 27 21:50:21 evidently you did May 27 21:50:37 i see people saying to spin off a new thread or use asynctask May 27 21:55:47 Hello! May 27 21:56:05 I am using this site http://developer.android.com/training/basics/firstapp/creating-project.html to learn to make apps. May 27 21:56:23 I prefer the terminal way by the way, so I'm doing the terminal way. May 27 21:56:39 `android list targets` doesn't work. May 27 21:57:10 what does "doesn't work" mean May 27 21:58:37 Like the terminal section of creating a new project in the link, it should be showing my lists of targets available for me to work with. Instead, it tells me that android in the command `android list targets` is a command that can't be found. May 27 21:58:50 Jesperhead: asynctask or asynctaskloader is more appropriate for what you're doing May 27 21:58:57 canvas#getHeight/Width changed behavior? when? why? May 27 21:59:19 someHuman: fix your PATH May 27 21:59:20 someHuman: you gotta change your PATH so that it includes the directory that android is located in May 27 21:59:38 How do I do that in terminal? May 27 21:59:50 someHuman: it's probably easier just to use Eclipse May 27 21:59:51 I can make an app using terminal right? May 27 22:00:01 it's going to be a lot more of a hassle using just the terminal May 27 22:00:20 Hmm, but can you guys help me with the terminal? May 27 22:00:21 https://help.ubuntu.com/community/AndroidSDK May 27 22:00:24 but if you insist, here May 27 22:00:31 that's a good place to get started May 27 22:00:37 make sure you understand everything you're doing though May 27 22:00:45 if you don't, it's really best to just stick with Eclipse May 27 22:00:53 Ah May 27 22:01:01 I've been learning the terminal and I must say, it's fun! May 27 22:01:15 Haha, I understand the appeal May 27 22:01:16 you need to do a lot more learning then, stick with an IDE for now May 27 22:01:29 I'm using terminal only because I'm stuck with it, but I had quite a few problems getting it started May 27 22:01:30 bankai_au: Ok ok. May 27 22:01:43 bankai_au: thank you for your input May 27 22:01:53 What I love about text interfaces is that it shows you the TRUTH! May 27 22:02:00 That's how I got hooked! May 27 22:02:12 not always ;) May 27 22:02:19 What? May 27 22:02:38 Isn't the terminal the original operating system here? The GUI is just a decoration? May 27 22:02:50 the terminal is just an interface May 27 22:03:09 Different tools for different uses May 27 22:03:48 Yeah but like there are two versions of an OS right? You've got a minimal and GUI. May 27 22:04:10 not really, no May 27 22:08:38 ? May 27 22:10:48 There's the OS and then there's the layer that runs on top of it, you can pick a GUI to go on top or you can use a CLI May 27 22:10:53 but it's the same OS underneath it all May 27 22:11:30 the point is to not get too zealous over one or the other, lol. both have their jobs to do May 27 22:12:30 yeah, can't run the emulator if you have no GUI ;) or IJ, which is much worse May 27 22:12:47 ^] May 27 22:12:49 ^ May 27 22:13:11 you should be using a real device anyway May 27 22:13:27 gets annoying testing every little change with a real device May 27 22:13:51 unit tests, espresso and uiautomator ;) May 27 22:13:59 I found it the other way because the emulator is so slow May 27 22:15:11 to be honest, I'm more annoyed by my phone's lock screen, but if I turned that off, I probably wouldn't be as annoyed May 27 22:15:12 you just have it misconfigured :) May 27 22:15:24 emulator is significantly faster than devices for testing usually May 27 22:15:38 also no locking, poweroffs and other crap :) May 27 22:17:01 emulator also doesn't work with things like playing video or testing camera May 27 22:17:33 or play services or orientation changes(it's a bit buggy) May 27 22:26:40 use virtualbox + android-x86 for testing May 27 22:27:07 its faster then light and gives you the same behaviour a real device has May 27 22:27:34 or genymotion which is virtualbox + x86 android without the annoying fiddly setup :) May 27 22:28:02 huh May 27 22:28:05 didnt know that one May 27 22:29:00 looks interessting from the website May 27 22:29:22 is there something equivalent to sun.misc.unsafe in android ? May 27 22:30:25 uhh.. and it comes with an intellij plugin.. May 27 22:31:35 dos000, looks like it: https://android.googlesource.com/platform/libcore/+/a7752f4d22097346dd7849b92b9f36d0a0a7a8f3/libdvm/src/main/java/sun/misc/Unsafe.java :) May 27 22:40:56 Layout problem: I want to vertically align views on either side of a TextView to the baseline of the first line -- is there a well-known way to do this that I'm missing? May 27 22:56:29 Mavrik: thanks btw May 27 22:57:44 greymalkin: sounds like a job for relative layout May 27 22:57:59 danijoo: That's what I was trying to do. May 27 22:58:14 But when the item has more than one line, the alignment is different than when it only has one line. May 27 22:58:18 could you sketch what exactly you want to do? May 27 22:58:25 in a png May 27 22:59:11 danijoo: No need. I've got a 'good enough' alignment. May 27 22:59:18 ok May 27 22:59:36 I'm just aligning the text to the top of the checkbox, and the checkbox to the top of the button on the other side. May 27 22:59:58 It's still slightly weird, but now it's off by 2-3px instead of 4-5px May 27 23:00:09 (depending on line count) May 27 23:26:49 side effects suck May 27 23:28:50 drugs are bad May 27 23:30:39 having more than 4 member variables is a disaster May 27 23:30:54 why is it? May 27 23:31:23 because if you're not careful you'll inevitably run into side effect related bugs May 27 23:35:55 I don't understand how. Can you give an example of such a bug? I thought encapsulation prevented that kind of thing May 27 23:37:06 like, if you have 4 boolean variables, that's 16 possible states that your class could be in May 27 23:37:37 if you have code that relies on internal state, it becomes kinda hard to keep track May 27 23:37:48 I need a UI element with exactly the same functions as ListView except that the items scroll horizontally rather. any easy way out? May 27 23:37:52 ahh I see yeh May 27 23:38:18 yaw: nope :/ there is no horizonal ListView in android May 27 23:38:32 http://stackoverflow.com/questions/3240331/horizontal-listview-in-android May 27 23:38:47 you could use some libraries though May 27 23:38:49 like this: https://github.com/MeetMe/Android-HorizontalListView May 27 23:39:08 the play store has a horizontal listview May 27 23:39:50 where? May 27 23:39:59 looks all vertical for me.. May 27 23:40:24 thanks guys :) May 27 23:40:41 danijoo: in an app's detail view, usually there's that horizontal view with images and video previews and such May 27 23:41:13 this is no listview May 27 23:41:25 :o May 27 23:41:59 thats carusell style.. maybe viewpager implementation May 27 23:42:46 but maybe you are right. that depends on point of view :p May 27 23:43:04 danijoo: I assume the number of elements in the carousel should be determined beforehand, no? May 27 23:43:45 you could also load them at runtime with a cursor i guess May 27 23:44:02 in my case it’s a feeds’ timeline. just that it flows horizontally instead May 27 23:47:53 You could also do this with a simple viewpager May 27 23:48:28 the main difference is that a listview ususally scrolls seemless while a viewpager shows it in pages-style May 27 23:48:58 danijoo: thanks. looking into that too May 27 23:49:13 and this wouldnt require a library ;) May 28 00:25:24 where is stuff put that is built from the jni folder? I am not sure it is building at all May 28 00:33:12 this is in custom_rules.xml May 28 00:33:20 is this trying to invoke the rsync command? May 28 00:33:57 I am on windows and do not have rsync... is this provided in the adk? why would this part of the build fail silently otherwise? May 28 00:45:25 Anyone here use RxJava? What's the difference between using it and using broadcasts and broadcast receivers? May 28 00:45:57 everything May 28 00:46:12 Any chance you could explain? May 28 00:46:14 they arnt even related really May 28 00:46:17 sure May 28 00:46:47 broadcast and broadcast receivers are usually used when you have an event you want to run in the semi distant future. May 28 00:47:27 hello all May 28 00:48:10 you can send local broadcast May 28 00:48:28 but i at least don't really recommend that May 28 00:48:42 RxJava is more for handling Async operations May 28 00:49:10 handling multiple async operations gets messy fast, RxJava is great for this. May 28 00:51:09 Say I had a list of friend requests thats stored in a DB, and gets updated every so often in the background. There are two different fragments or activities that need to access this info when it updates and update themselevs, do I do a broadcast when it updates and have the fragments listen, or do I have the fragments subscribe to a RxJava Subject? May 28 00:51:28 I do not understand May 28 00:51:34 I put a syntax error in build.xml May 28 00:51:45 (I am using Eclipse) and no error occurs May 28 00:52:05 vozz i think u want a event buss May 28 00:52:07 bus May 28 00:52:44 Now I'm even more confused May 28 00:52:50 What's the difference between all three? May 28 00:53:26 Ah, event bus does look like what I want May 28 00:53:40 vozz Otto is awesome May 28 00:54:13 Can you do things like map and filter event streams in event bus? May 28 00:54:47 like i said, RxJava and broadcasts arnt really related, An event bus and broadcasts are similar, except that an event bus goes through only your application, where broadcast receivers have to go through the android system May 28 00:55:28 vozz sure, idk if otto can do that necessarily, the way it works is you register for object types(classes) May 28 00:56:28 What would be the difference between an AsyncTask that puts something in an eventbus or broadcast when it finishes, and an RxJava observable? May 28 00:57:14 technically an asynctask and what RxJava does is very simular May 28 00:57:45 RxJava allows you to specify the thread that the code and the callback gets run on, so it can act like an asynctask May 28 00:58:14 the difference between an asynctask and rxjava is multiple chained asynctasks are an epic PITA May 28 00:59:02 RxJava handles multiple chained rxjava like a boss May 28 00:59:24 whatever happened to com.google.android.maps? May 28 00:59:31 where do I find those libraries? May 28 00:59:47 DammitJim google play services? May 28 01:00:01 It's the way you can map observables to new observables that interests me May 28 01:00:13 yup May 28 01:00:16 its awesome May 28 01:00:19 Google maps stuff May 28 01:00:25 But I want that with the eventbus stuff really May 28 01:00:38 or do I have to update my code to use a different library? this is about 3 years old May 28 01:00:39 any idea why build.xml does not seem to be heeded when I build my project? I put loads of nonsense in it and no error occurs May 28 01:00:39 I basically want functional reactive programming in java May 28 01:00:46 / android May 28 01:03:16 lol okay if I get rid of build.xml entirely still nothing is wrong May 28 01:04:14 vozz event bus and rxjava are not the same lol May 28 01:04:25 you may need both May 28 01:04:29 I think I do need both May 28 01:04:38 It's a shame it's not more seamless :( May 28 01:06:55 lol May 28 01:07:00 not going to happen May 28 01:07:07 they are two different problems May 28 01:08:59 Not really, if you think of the event bus as a stream of events, and then you realise you could be running functions on these streams to combine, filter, process them with async tasks, it's pretty much the same problem May 28 01:16:15 "ant" is not found when I type it on the windows command prompt. any idea where it is located in the adk? I presume it is included with it May 28 01:16:25 jug6ernaut: local broadcasts don't go through the system May 28 01:16:57 JakeWharton ah ok May 28 01:25:49 has anyone ever had jank issues with a ProgressBar? May 28 01:28:40 hmm, maybe the progressbar resets its animation state or something May 28 01:39:49 judging by my understanding of OAuth, the process does not protect against a replay attack. Example: An attacker scans my APK file for the consumer key and secret, then copies the consumer key and secret into the attacker's app, allowing their app to pose as my app. Is my understanding correct? May 28 01:42:45 i believe you're correct herpderphurr May 28 01:42:52 that's not really what oauth's for May 28 01:43:13 oauth's for user auth, not _client_ auth May 28 01:43:48 as a general rule, you're not able to protect anything in your APK May 28 01:44:13 you can make it tricky with some obfuscation, but never impossible May 28 01:48:16 argh why is my progressbar so freakin' janky May 28 01:48:59 what're you doing with it Mango_Man ?? May 28 01:49:07 alex_PP: Thank you! May 28 01:49:30 alex_PP: i'm fading it in and out May 28 01:50:09 Mango_Man, how May 28 01:50:10 it might be that when it starts fading out while it's still fading in, there's a noticeable pause in the animation May 28 01:50:10 ? May 28 01:50:28 alex_PP: via view.animate().alpha() May 28 01:50:46 interesting May 28 01:50:54 can you pastebin it? May 28 01:50:59 sure thing May 28 01:51:32 alex_PP: http://hastebin.com/ugipinebeb.java May 28 01:52:25 i'm crossfading the progressbar and a gridview, so maybe there's a conflict with the gridview animation. i'll remove the gridview and see if the progressbar is smoother May 28 01:53:34 that's a lot of alpha mixing May 28 01:53:44 have you tried fading only one view May 28 01:53:50 the one that covers the other May 28 01:54:19 also, setting view.GONE will cause a relayout May 28 01:54:25 try INVISIBLE instead May 28 01:55:22 trying INVISIBLE May 28 01:55:42 it's noticeably less janky when my gridview doesn't fade in, but the animation pause is still there May 28 01:57:03 hmm, seems the same May 28 01:57:29 all your GONEs gone? May 28 01:57:36 none in your xml that you forgot? May 28 01:58:00 oh darn, there are gones in the xml May 28 01:58:06 nice catch May 28 02:00:13 hmm...maybe it's the gridview. trying view.gone on gridview May 28 02:10:50 there's a Fade utility class in the android SDK May 28 02:10:56 :o May 28 02:11:40 ha May 28 02:11:45 give that a go May 28 02:11:59 hi all May 28 02:15:10 any one in here have Philips Hue and a Myo and would like to try something I just built? May 28 02:18:56 where's the source code for the stock android settings app? May 28 02:19:05 there's a smooth progressbar there May 28 02:21:14 sweet found it May 28 02:40:18 How can I make this java code a bit easier to understand? It's working, but there might be a better way to do this. http://pastebin.ca/2778705 **** ENDING LOGGING AT Wed May 28 02:59:58 2014