**** BEGIN LOGGING AT Sun Sep 07 02:59:59 2014 Sep 07 03:00:49 speaking of fragments in XML, that might be the better approach for my situation. I'll try that Sep 07 03:02:23 timuses: but if I dont do the transaction it seems my onCreateView is never called because my background task is not run Sep 07 03:02:44 I'm loving this vertical viewpager. Swipe up down between a post and its comments Sep 07 03:03:06 anyone getting the motorola 360? Sep 07 03:03:59 I'm not following Sep 07 03:04:15 Why is your onCreateView dependent on an AsyncTask Sep 07 03:04:32 he doesnt know Sep 07 03:04:54 "onCreateView is never called because my background task is not run " Sep 07 03:04:56 He seems to know Sep 07 03:05:05 (the 'because' have it away) Sep 07 03:05:11 gave* Sep 07 03:05:15 thats not what i meant. Sep 07 03:05:48 JavaDog, what are you working on? Sep 07 03:07:55 timusus, I get a white screen at startup for a short while. I don't want that I want my UI to be seen immediately. is it because the background image takes a long time to decode perhaps? Sep 07 03:08:17 probably Sep 07 03:11:45 Here's what I don't get about 9 patch Sep 07 03:11:52 I want a background say 250dp in height Sep 07 03:12:05 The first and last 40dp of that height should be slightly darker than the rest Sep 07 03:12:18 (So say, the first 20% or whatever) Sep 07 03:12:26 So how many pixels should the 9 patch be/ Sep 07 03:12:31 desmin88, did you answer me? Sep 07 03:12:40 yes' Sep 07 03:12:41 if so, I guess there's nothing to do Sep 07 03:12:56 http://developer.android.com/training/displaying-bitmaps/load-bitmap.html Sep 07 03:13:05 timusus: It's a secret :p Sep 07 03:13:12 lol Sep 07 03:13:24 but it's pretty neat. I'll show you guys when it's done Sep 07 03:13:51 Oh, I thought you meant 9 patch is a secret Sep 07 03:14:11 it is Sep 07 03:14:35 yeah, don't you ever tell anyone else about 9 patches Sep 07 03:14:40 seriously Sep 07 03:15:23 if you do i will eat your 2nd born child Sep 07 03:23:33 hello friends, please what is the different between boolean and Boolean, which one to use best for conditional statement Sep 07 03:23:54 this isnt java 101 Sep 07 03:24:07 and not what should be discussed in this channel Sep 07 03:24:14 timusus, desmin88 : even if i dont use a background image but just a color I still get that white screen for about half a second... Sep 07 03:24:54 understand... but what i'm doing is related and i strongly believe most of us in the room know and understand what i talking about Sep 07 03:25:10 please use google Sep 07 03:25:16 and maybe learn java Sep 07 03:25:26 then I get 1. white screen 2. load screen 3. normal ui screen. so then step (2) is almost only making it worse Sep 07 03:25:29 smitzer: that means you still have something being done too long on the ui thread Sep 07 03:25:44 this is just what we work around with everyday... is just that i'm getting confused here... coause one of my function is returning unexpected condition Sep 07 03:25:52 sorry Sep 07 03:26:58 hackable: Maybe try the #java channel Sep 07 03:28:42 desmin88, well I do nothing but this now: http://pastebin.com/3GVbbTbM Sep 07 03:28:51 it is like 0.2 seconds of white screen Sep 07 03:29:02 what are you running the app on Sep 07 03:29:31 samsung galaxy s4 mini Sep 07 03:29:39 4.x.x something Sep 07 03:29:49 so not an old slow one Sep 07 03:29:51 what is your loading fragment Sep 07 03:30:39 http://pastebin.com/Jmkq6Xs5 Sep 07 03:30:54 just inflates the view and starts the background task Sep 07 03:31:00 ok lets see the task Sep 07 03:31:37 but the task is run on bg so how could it affect the white screen before it happens? Sep 07 03:31:52 just let me see it Sep 07 03:32:16 http://pastebin.com/CQgjW5Y9 Sep 07 03:33:12 ok and what is new MainmenuFragment() Sep 07 03:34:49 are you stealing my app? ;) Sep 07 03:34:56 yep. Sep 07 03:35:33 it just shows 3 buttons: PLAY, HIGHSCORES, ABOUT Sep 07 03:35:51 cant help you Sep 07 03:37:40 <_flip> Do you need permissions to get SharedPreferences to work or something? I can't get the data to persist Sep 07 03:38:44 how are you doing it Sep 07 03:39:30 i was looking at opengl es 2.0 http://developer.android.com/reference/android/opengl/GLES20.html (glMapBuffer -- not found). so i did a quick symbol check on libGLESv2.so and found "glMapBufferOES" why this is not available in java for v2 api but opengl es 3.0 java api has the api? (afaiu glMapBufferOES is same as glMapBuffer for ES -- http://stackoverflow.com/questions/2210008/what-the-oes-means-in-gl-renderbuffer-oes) Sep 07 03:40:03 <_flip> desmin88: you talking to me? Sep 07 03:40:08 yes Sep 07 03:40:50 one more link http://www.opengl.org/wiki/OpenGL_Extension Sep 07 03:41:35 <_flip> pretty much just followed the tut on developer.android.com. context.getSharedPreferences(context.getString(R.string.preference_file_loginhandler), Context.MODE_PRIVATE); - and then just get/put string Sep 07 03:42:03 paste Sep 07 03:42:21 <_flip> ok Sep 07 03:44:47 <_flip> desmin88: http://pastebin.com/CwUtDmAh Sep 07 03:45:47 youre making a new editor every time Sep 07 03:45:54 get an instance to one editor Sep 07 03:46:03 do all changes to it, then commit on that editor Sep 07 03:46:19 btw, you should not be encrypting anything Sep 07 03:46:43 <_flip> why not? Sep 07 03:47:08 why are you saving the password Sep 07 03:47:32 to check if what the user puts in is correct? Sep 07 03:47:53 <_flip> nah it's for later. The API requires email + password to log in Sep 07 03:48:14 ehhhh Sep 07 03:48:19 <_flip> not desireable but i'll have to keep the password saved for now anyway Sep 07 03:49:01 <_flip> (it's for the REST API i'll be using) Sep 07 03:49:16 <_flip> ok i'll try using the same editor object Sep 07 03:50:44 If you had a bunch of quiz questions in json, would it be better to have them in a database than to parse them for each game? Sep 07 03:51:05 maybe on first time app is run just parse the whole thing in a background task and put it in the db Sep 07 03:51:13 ^^ Sep 07 03:51:29 theres ways of having a preset database in your assets Sep 07 03:51:31 and using that Sep 07 03:51:40 yes but seems complicated Sep 07 03:51:41 you'll probably want to save information about the quiz so you can enhance the quiz game so might as well stuff it into the db Sep 07 03:51:53 nah don't preset it just d/l from a server and insert Sep 07 03:52:06 lasserix, why not preset? Sep 07 03:52:10 if you ship your app with the db it'll always have the initial db that can't be deleted Sep 07 03:52:12 I dont want to download from a server Sep 07 03:52:18 wrong Sep 07 03:52:29 lasserix, why cant it be deleted? Sep 07 03:52:31 you can but the original db you stick in your app is used to create a new db you can access in your app Sep 07 03:52:42 you can't delete your assests Sep 07 03:53:08 the apk is read only Sep 07 03:53:20 ok but how big is a sqlite db with 2000 multichocie questions? is it a problem? Sep 07 03:53:28 probably not ;p Sep 07 03:53:37 if you don't have a server what choice do you have? Sep 07 03:53:51 and having it in json would be the same problem Sep 07 03:53:59 not necessariy Sep 07 03:54:05 just depends if you want to populate a db Sep 07 03:54:08 well it is an asset file Sep 07 03:54:25 i would prefer not to have a server Sep 07 03:54:29 yeah but you can just read from it, if you only use a db for user data then you won't have redundant data Sep 07 03:54:50 i can't imagine the overhead of reading a json per quiz is going to be noticable Sep 07 03:55:41 well parsing 500kb of json takes a while maybe Sep 07 03:55:49 parse the json, put in db Sep 07 03:55:56 no server Sep 07 03:56:06 then I can use google multiplayer api Sep 07 03:56:11 500 * 2 = 1mb can't imagine that would be a problem Sep 07 03:56:16 without having a backend server right? Sep 07 03:56:20 ye Sep 07 03:56:37 but you could just split your json file into sections Sep 07 03:56:40 lasserix, ty. scandinavian? Sep 07 03:56:45 then don't bother setting up a db Sep 07 03:56:54 or only use one for user data / stats Sep 07 03:57:14 hehehe Sep 07 03:57:16 kind of Sep 07 03:57:40 <_flip> @desmin88 - thanks for you advise, that did the trick. Sep 07 03:57:44 np Sep 07 04:10:44 anyone here use the bluetooth smart application accelerator? i'm trying to figure out what value this provides over the standard 4.3 android BLE apis Sep 07 04:12:45 I'm trying to add a view on top of an existing OpenGL full-screen app. I've found absolutely zero references to "LinearLayout" or similar, and no XML files with specific layout info. What do I google for to do this? Sep 07 04:13:45 trying to follow this example: https://developer.android.com/reference/com/google/android/gms/ads/AdView.html Sep 07 04:19:04 stuck on this even though it seems reaallly simple Sep 07 04:26:04 anyone know of a way to programmatically suppress/desuppress usb dev access? Sep 07 04:26:14 my app has device admin permission Sep 07 04:28:51 ekx just dump your openglsurface view into a framelayout or relative layout with your other view Sep 07 04:34:35 looks like glMapBufferOES isnt available on Android sheh :( Sep 07 04:43:19 (i mean in api and not likely a ext that is supported by every phone) Sep 07 04:46:14 kuldeepdhaka if you look up "fun" in the dictionary, surely one of the definitions will be "(adj) Playing with opengl or BLE on android" Sep 07 04:47:27 g00s, :) Sep 07 04:58:56 I've edited the layout of a Settings screen and added code to onCreateView. After building, I copied Settings.apk to the device. My changes aren't appearing though! What is the correct way to edit/test these system apps? Sep 07 05:09:45 guys please some help, im trying to dynamically add content to my fragment but it doesnt work. here is the code http://pastebin.com/491XwC5J Sep 07 06:06:26 lADIES Sep 07 06:48:26 . Sep 07 07:33:28 Mh is it possible to change a *.so file? i would like to change a string i know is in there to a blank one Sep 07 07:35:50 ktwo, not easily Sep 07 07:35:57 recompiling is way easier Sep 07 07:47:36 Mavrik is it possible to recompile only a part of it? or is it "a whole?" Sep 07 07:47:49 https://android.googlesource.com/platform/frameworks/av/+/47c1a5f7c13d82aa8834fd4543bd1d713b97808e/media/libstagefright/id3/ID3.cpp what i want to change is here Sep 07 07:48:22 Yes, of course you have to recompile the whole compilation unit. Sep 07 07:48:47 Or patch the file, but since I guess you don't have the knowledge of how ELF files work... I doubt that's the way to go. Sep 07 07:49:14 mh and can a so be exchanged with a different one if the architecture is the same? Sep 07 07:49:26 or is it really dependent on the exact cpu which is used Sep 07 07:50:48 the actual issue i have is that "rkutf8" is appended to any UTF8-id3 tag - and in the source file i think there is an error Sep 07 07:51:01 https://github.com/HermanChen/Rockchip_4.1_release_libstagefright/blob/master/4.1_jb_release/libstagefright/id3/ID3.cpp (thats the one used i think) for rockchip Sep 07 07:51:23 in a subsequent release it was fixed Sep 07 07:52:36 if it has the same ABI then it can be replaced Sep 07 07:52:39 and a compatible arch Sep 07 07:54:36 I'm having the same problem as described here - http://stackoverflow.com/q/15692328 - my question is why such a behaviour in android ? Sep 07 07:58:16 its not a google api without unexpected and inane behaviors Sep 07 07:58:24 with no attention given to them Sep 07 07:58:58 <_flip> i thought google was usually pretty good Sep 07 07:59:07 umm Sep 07 07:59:12 <_flip> compared to MS anyway Sep 07 07:59:27 my question is why the state_checked drawable wouldn't show up when the item is checked in a gridview Sep 07 08:04:54 there is no answer Sep 07 08:08:23 desmin88: um why? :D Sep 07 08:08:29 because goog Sep 07 08:09:44 alright, so i think the answer is things are not clarified as far as states are concerned. strange, been years now. Sep 07 08:57:42 d'fuck Sep 07 08:57:59 why does Android Studio save keystore password in plaintext into the build.gradle file?! Sep 07 08:59:56 are there any ui libraries that bring android material design to older versions of android? Sep 07 09:00:22 they official Google ones are still in testing stage. Sep 07 09:00:33 (e.g. you can only use them when targeting L) Sep 07 09:01:28 so after the testing stage, do they become available for older versions? Sep 07 09:01:46 yes. Sep 07 09:01:52 not everything, but yes. Sep 07 09:02:31 that's good to know. thanks mavrik! Sep 07 09:06:49 peey but if you really want something it's easy to do Sep 07 09:07:01 Do you know an article about best-practices for introduction overlays? (To explain some features) Sep 07 09:07:02 material design is a metaphor … not a great one either Sep 07 09:07:19 but I dont know of anything that you can do right now in current versions Sep 07 09:11:23 I get it that it can be done, i'm just surprised to not find a comppnents library already, thats all. In the web world, we already have 2 open source projects for material design! Sep 07 09:12:56 i think cause it's more of an idea than function Sep 07 09:13:10 function is the pallet swapping and touchfeedback Sep 07 09:14:39 hmm. i'm not really sure on how ui components are handled with java, so cant comment on that Sep 07 09:14:41 quite a few users dont like the touchfeedback and the perceptual delay required Sep 07 09:15:25 so I think it will be a contrast in like/hate for most :) Sep 07 09:40:00 Here's a random question, an android phone with mobile data off. How susceptible to malicious attacks would the device be? Sep 07 09:41:58 well, you could hit it with a hammer, pour water on it, attack through wifi. Nothing more than common sense really. With Wifi on anythingy possible. Sep 07 09:42:45 wifi was off and this was at defcon 22, so I'd expect a certain level of professionalism Sep 07 09:43:08 perhaps its just paranoia, only used mobile data a few times Sep 07 09:44:31 or how about this question, would you still trust that android phone and plug it into a laptop? Sep 07 09:47:43 I think you're in the wrong group. Frankly Im not paranoid : its all down to common sense usually. Not usign mobile data is idiotic. You may as well throw your phone away and use a payphone. What do you have to hide? Anyway, wrong group. Sep 07 09:53:44 What do I have to hide? Sep 07 09:53:54 Defcon 22, look it up rgr Sep 07 09:54:03 Most hostile network in the world Sep 07 09:54:12 hilarious Sep 07 10:02:38 using it without a sim and without wifi might be safe-ish Sep 07 10:06:00 There is a better way to support deprecated API ? http://pastebin.com/f90f77jb Sep 07 10:06:16 display.getWidth() is deprecated from api 13 Sep 07 10:06:31 or just using it is "safe-ish" no need to propagate false fear. Obviously if youre storing your swiss bank account and pictures of you and your wife's sister on it you need to be a tad more careful. No mobile data is 100% secure. Be careful what you install and where from. Dont connect to free wifi plans unless you know them. Dont install APKs from anywhere without checking (google need a slap here for letting so much crud into the Sep 07 10:06:31 playstore anyway) Sep 07 10:08:13 ech0s7: google is your friend. http://stackoverflow.com/questions/1016896/how-to-get-screen-dimensions : most aspects covered. Sep 07 10:20:23 hi guys, do you know of any website that lets you analyse existing android apps reviews based on gender? Sep 07 10:24:09 on gender? Sep 07 10:24:38 and shouldnt that be "guys and gals"? ..... Sep 07 10:25:00 yep like 70% of all reviews come from female people with an average of ... Sep 07 10:25:06 you can do lots of stuff there Sep 07 10:25:31 basically i would like to do a market analysis. and would like to have it gender based ;) Sep 07 10:25:55 (based on age would be awesome but i see no way to get that data) Sep 07 10:26:05 Wrong channel. I dont care which sex the reviewer is personally if thay make salient points. But if you want to do "market analsyis" then I would think you capable of finding this info via google and not asking in a programmers channel ;) Good luck. Sep 07 10:27:37 i tried google and could not find anything. so i thought: "well here are a lot of ppl working daily with android apps probably in comapnies where they use such a tool. so they might know..." Sep 07 10:28:45 be careful! in this new bright world led by PC blighted morons doing anything "gender based" might get construed as sexist ;)) Sep 07 10:28:53 m_e, Does google analytics hook into Android Apps? Sep 07 10:30:07 DLSteve: i think it does. but only on your own apps. you wont be able to get any data from random public apps. Sep 07 10:30:29 correct Sep 07 10:31:07 m_e, Oh, yah I doubt you would be able to get any of that as It would violate a lot of privacy policies. Sep 07 10:31:20 Or they would want a lot of $$$ Sep 07 10:31:28 to buy the Data set. Sep 07 10:31:33 You cant. Sep 07 10:32:20 rgr: that might be possible. yet it is important. there are so many crappy games like candy crush saga where you have to pay for everything and even ask your facebook friends to help you out to progress in the game. i would love to know which kind of people actually doing this. ^^ Sep 07 10:32:21 Do you even set your Sex in your gmail/app account? Dunno. Forgot ;) Sep 07 10:32:51 Crappy games? That earns millions a day. You may not like it but calling it "crappy" is a tad blind. Sep 07 10:33:11 But I will bet you a pound to a penny its at least 60% women playing it. Sep 07 10:34:03 DLSteve: well i could simply crawl all app reviews and sort them by gender if i analyse the names and match them to a "names-database". so this should be definately possible. it is of course not accurate, but you could aggregate some estimations. Sep 07 10:34:48 You would get very skewed results. Not ones that I would trust. Sep 07 10:36:07 rgr: i bet it is even more. and yes i call them crappy because they should cost like nothing to make penetrate you with in-app-purchases and facebook sharing stuff. yet they make millions. unbelievable! Sep 07 10:36:46 rgr: but anyways thats another topic. Sep 07 10:36:55 Not unbelievable. I dont buy in app stuff but people whining they need to pay for things grates a little. People pay for what they percieve as value : and this game brings a lot of fun to many people. Its all sour grapes. Sep 07 10:37:15 As for FB sharing : no you dont need to. Sep 07 10:37:30 (users can block it and you can set the share to be seen only by you) Sep 07 10:38:23 rgr: yes but they share willingly. because then they receive some kind of booster. so basically you pay or ask your friends for "help" Sep 07 10:39:01 so what? Its what powers and pays for a basically free OS and open source development tools. It works. I agree ads etc can be annoying but hey, so is life. Sep 07 10:39:34 Its all paper money as they say. Being paid for someone clicking on a button despite them not buying anything? Nice if you can get the clicks. Sep 07 10:40:53 rgr: i am perfectly fine with this model and not complaining. i just want to know which is my target group if i am going to develop such a game. Sep 07 10:40:54 God knows there are plenty of totally free half arsed copy cat games too. Play them! ;) Sep 07 10:41:12 rgr: lets say i am going to develop a shooter (which is more a male thing) will this still work? Sep 07 10:41:38 I think you should develop a game which gives you joy and hope someone else likes it. Targetting lonely women with a big credit rating with a game about cats wont bring you much happiness ;) Sep 07 10:41:51 rgr: haha Sep 07 10:42:39 m_e, Big drind is in simple games that you can quickly learn to play. They also tend to be games that you can play for short periods of time. Sep 07 10:42:47 *trend Sep 07 10:43:31 DLSteve: yes. but there is so much more. :) i.e. they typically ask you for a review when the game is still easy and you completed a few levels -> you enjoy it the most. Sep 07 10:43:51 DLSteve: they "force" you to share it with your friends on FB so the game spreads Sep 07 10:45:29 m_e not sure any game "forces" you…what if you dont use/have fb Sep 07 10:45:47 StingRay_: then you have to wait or pay... Sep 07 10:46:05 StingRay_: until your lives refresh Sep 07 10:46:13 oh so it gives you the option and adds incentive Sep 07 10:46:38 thats nothing like forced :) Sep 07 10:47:13 StingRay_: well if you are constantly asked to do some stuff with facebook to get the next level (or wait an hour) its nearly "forcing" ;) Sep 07 10:47:23 nope… :) Sep 07 10:47:36 thats annoying …still not forced Sep 07 10:48:58 another question maybe anyone kows that. lets say my game has a lot of bad reviews. could i change the game and rerelease it with a different name? (i assume google does not check if it is the same game) Sep 07 10:49:46 and would that negative rating from the preview app somehow influence my account and give my other apps a worse raking? ( i assume noone knows that but google) Sep 07 10:49:58 *ranking Sep 07 10:50:03 m_e: then pay for it. Its clever. Sep 07 10:50:52 the amount of 1 star ratings from morons who object to paying needs to be filtered since it adversely affects the rating for the GAME as opposed to the relative tightness or idiocy of the reviewer. Sep 07 10:51:53 rgr I think reviews for older versions, say version + time difference should go after set amounts Sep 07 10:52:16 cause a mistake that I made got me lots of 1 stars, that were never updated when I fixed Sep 07 10:52:17 StingRay_: in the apple app store it is like this. (nearly) Sep 07 10:52:38 but that mistake was when I was in early beta and asked no1 to review it Sep 07 10:52:39 :) Sep 07 10:52:39 i think they show only the rating of the current version by default and you can change that if you like) Sep 07 10:53:06 m_e thats sounds good Sep 07 10:54:18 good point re removing old ones. Sep 07 10:54:20 I wouldn't mind something like up to 4 month old reviews Sep 07 10:54:28 StingRay_: thats basically my problem. i am forced to develop the perfect app right at the beginning to avoid the bad reviews. because no one ever is coming back to change his 1 star review. Sep 07 10:55:22 you're god if you can do that. because for sure Kali from Pakistan or something will rate your app 1 Star because the 57th level of your free game required him to recharge his battery. its ludicrous. Sep 07 10:55:43 so i thought: "well lets make a prototype to test the market and see what ppl like and what they dont (based on the reviews). and then release a real version under a differnt name" Sep 07 10:56:05 rgr: :D Sep 07 10:56:10 rgr the worst is when despite 3 ways to contact me, users use 1 star reviews to ask questions (knowing they will get a response) Sep 07 10:56:31 StingRay_: oh.. true Sep 07 10:56:40 And you think people dont do this? There is no perfect game. No perfect audience. Do something you feel yuo want to do that has a target audience. With a "free and open" community I can assure the fuckwits will have their day no matter what you do. Sep 07 10:57:37 Unfortunately not everyone is born equal. PlayStore reviews prove this. Giving a soapbox to every moron with an opinion is akin to stepping back in time and handing out clubs to every neanderthal..... Sep 07 10:58:16 i want to build an autotexter, what is the best way? Sep 07 10:58:22 And as StingRay points out people use these reviews out of spite. "Hahaha I fucked up his game sales today because I dont think I should have to pay". The usual nonsense. Sep 07 10:58:38 jess44: whats an autotexter? Sep 07 10:58:56 a way of sending multiple texts Sep 07 10:59:11 o.O Sep 07 10:59:12 still no clearer. Why? To Whom? When? Sep 07 10:59:25 just for a laugh Sep 07 10:59:34 to any number Sep 07 10:59:38 still makes zero sense. Sep 07 10:59:43 ok Sep 07 10:59:51 use the app "yo" Sep 07 10:59:57 ok Sep 07 11:00:02 Well, you learn java, then you do the android tutorials. then you come here and ask specific questions. Sep 07 11:00:19 (bot time!) Sep 07 11:01:44 dont need to. ill strip the program down Sep 07 11:01:56 I personally thing the normal value weight of a star review is flawed for 2 reasons.. people who hate you and or your app are more likely to review than people who love it…there are figures out that prove this.. and a value star system doesn't really rank it as it should.. Sep 07 11:03:01 majority of my reviews are 5 star yet I'm clinging to a 4 star app due to …erm… dumb individuals Sep 07 11:03:02 Same as TripAdvisor. How many people bother to say "great". Most complain about things pretty much out of spite. Sep 07 11:03:29 rgr yeah… so the weight for a star needs to also reflect the majority vote somehow Sep 07 11:04:33 although I'm the worst at math so could not even suggest this to google lol Sep 07 11:06:19 StingRay_: i used that behavior to my advantage in my first app. it let you rate canteen dishes (from your university). then all we had to do was print a card that said "Did it taste good?" with our app name on the canteen tables. everyone was constantly complaing about the bad food. so they picked it up and wrote a bad review in our app... Sep 07 11:08:23 People should not be allowed to submit reviews etc unless they accompany it with at least 300 words on the strengths and weaknesses. "It suxxoorz" is not a review. Sep 07 11:08:54 rgr: true Sep 07 11:09:16 rgr, could go the opposite of twitter and have a 140 char minimum. Sep 07 11:09:55 yeah I dont want "it suuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuux" as a review though Sep 07 11:10:10 the facebook messenger also got a lot of bad reviews just because ppl where pissed because facebook removed the messaging function from the main app. and now they needed to install another app to do the same they had done a few days ago with a single app. Sep 07 11:10:30 StingRay_, Still get crap reviews currently, that would at least filter the lazy. Sep 07 11:10:31 something like that. Lets turn off all PC here : people are not all equal and they dont all have valid opinions. Put a stop to the pollution of the review space by ensuring people actually have relevant things to say. Certainly the owner of the app should have the ability to have bullshit reviews removed or flagged as spam more easily and more effectively. Sep 07 11:10:34 the facebook messenger may be good. yet it still got a lot of 1 stars for a complete different reason Sep 07 11:10:40 StingRay_: thats easily caught. Sep 07 11:10:55 m_e: because idiots dont understand the permissions. Simple. Sep 07 11:11:19 rgr with effort by good, but I have had swearing not caught for weeks Sep 07 11:11:34 good/google Sep 07 11:12:58 sure , nothing is perfect. But something. I spent a while reading reviews for some good apps recently. The scathing ones were invariably written by complete and utter idiots. No other way to describe them. "My battery goes flat" or "only ten levels are free hence one star and not five" or "doesnt work on on 2.0.1 brick" etc etc. Its nothing short of scandalous. Putting a chimp in charge of the fire button on a battleship. Sep 07 11:14:29 where is the java code in an apk? Sep 07 11:15:58 lol. Yeah. Good luck with your "multiple text messenger"....... Sep 07 11:16:10 in what apk ? could be obfuscated …un-readable Sep 07 11:16:34 he's trying to reverse engineer an app to steal the code to make a spam messenger. Sep 07 11:16:48 oh fk…. good luck with that Sep 07 11:16:50 :) Sep 07 11:17:28 multiple messages to any number "just for a laugh". Sep 07 11:17:28 jess44 would be faster to learn java to the point where you can do that… and it's not hard to do Sep 07 11:19:38 its such a great idea. he is basically developing "the advertisers dream". this will be worth millions Sep 07 11:20:16 contact everyone you want with whatever message you have. Sep 07 11:21:46 People in the main despise push adverts. Sep 07 11:23:41 rgr: another thing "candy crush saga" is doing and their target group doesnt seem to mind. ;) Sep 07 11:25:22 I liked "Cow Clicker" Sep 07 11:25:26 thats not unsolicited. Totally different things. Sep 07 11:28:34 StingRay_: where am I messing up here? its driving me crackers. I have a control panel than in portrait I want at the bottom of the scfeen wrapping its content. The only other element is a framelayout above it to take the rest of the screen. I tried a traditional linearlayout with no joy now Im trying a relativelayout. Notice the alignParentBottom in the control fragment. I only see the Sep 07 11:28:35 framelayout. https://gist.github.com/anonymous/cba7e6418311144be12c Sep 07 11:28:45 s/than/that Sep 07 11:34:38 hey all Sep 07 11:37:07 rgr I never and would never (there maybe a reason I forget to do with view parenting) use a fragment without a holder viewGroup Sep 07 11:37:33 cause I think the parses just gets that I'd then replaces with the fragment resut onCreateView Sep 07 11:38:01 but thats just a thought Sep 07 11:39:16 rgr I'm still in need of a coffee and a shower …. so that may not have made sense… made sense in my head though Sep 07 11:39:18 :) Sep 07 11:40:15 I tried putting them in their own linearlayouts. Still no joy. The docs suck, Layouts seem to be bloody finicky. Sep 07 11:40:19 rgr but at the end of the day I never have and never will use xml placements of fragments, I will always use fragmentManager to place them in viewGroups Sep 07 11:40:52 rgr do it with no fragments just colored views Sep 07 11:40:57 to get the layout you want Sep 07 11:41:14 the result at the moment is missing the fragment right ? Sep 07 11:41:21 yeah, standard debugging. But hoped it might be something obvious I cant see. Sep 07 11:41:56 cause currently unless the FrameLayout is transparent it sits over the fragment Sep 07 11:42:01 but since a fragment is simply a placeholder for a view it inflates itself in the xml layout definition there should be no magic here. Sep 07 11:43:10 waht I mean to say is that @+id/controlfragment is obscured by the frameLayout directly after it (that contains the 2 other fragments) Sep 07 11:43:19 and3e xactly why I define the controlfragment first. Ah, You get my meaning I think. So forgetting the fragments can one have a "bottom" sized element and anothr above it taking the rest of the space? I assumed relativelayout would cope with that. Sep 07 11:44:06 remember the fragment above IS sized (wrap_content). Sep 07 11:44:17 Ill try hardcoding the height. Sep 07 11:44:29 rgr relativeLayout does not stack though right ? Sep 07 11:44:36 so is layered Sep 07 11:45:06 to position them relative you need rules Sep 07 11:45:20 I have, oh, had the rules. shit. brb Sep 07 11:45:30 lol Sep 07 11:45:46 so the 2nd frameLayout would need topBottom of the 1st fragment Sep 07 11:46:02 but with this why not just use linearLayout with weight ? Sep 07 11:47:22 because weight is exactly what I dont want. The control frag has a defined height (wrap_content). Sep 07 11:47:34 anyway, I need to replace my relative attrs. Sep 07 11:53:44 Wowa. no two pass parsing in layouts! cant reference an id in the same xml if its declared after. Sep 07 11:53:54 nope Sep 07 11:53:57 :) Sep 07 11:54:32 this really sucks arse. Sep 07 11:54:35 as a layout language it's pretty crappy basic Sep 07 11:54:36 :) Sep 07 11:55:06 I resorted to ditching relative layouts and writing a layout Manager that does what I want with frameLayout Sep 07 11:55:10 tis quicker too Sep 07 11:55:49 and I can just attach layoutListeners to do it when anything changes, along with my own rules etc Sep 07 11:56:11 bit of an overkill but thought it interesting to learn anyway Sep 07 12:04:25 this really sucks. I can position the control frag at the top ok. just not "below" the frag before it since the frag before it doesnt have a predefined height. Now I understand why so many whine about Android layout. But I still think the error is in my court. There has to be a way to position a fixed height element after a "fill rest of parent" one. Sep 07 12:06:36 I'm 1 more coffee into the day now, still missing a shower … question is any view you have meant to be on top of another ? Sep 07 12:08:29 rgr I think it's hard to communicate sometimes what the idea is… well with layouts, but yeah, sure there is a way to get what you want though Sep 07 12:11:11 rgr: dunno if you've tried or not, but can you set your FrameLayout above="@+id/controlfragment" Sep 07 12:11:24 yes. Like the xml shows. (top bottom in 2d space : not in 3d) I want the control frag at the bottom of the screen (its fixed height) and the framelayout at the top. The z order of things inside the framelayout is inconsequential. I want the framelayout above it to take the rest of the screen. Sep 07 12:11:54 canvs2321: just playing with that now. there was a bug there too (I left a gravity in there). Sep 07 12:12:32 i know if i have a listview and i want a view below it, alot of times setting myView = below listView,listView would take all height, but setting listView above a view works Sep 07 12:12:51 works. Sep 07 12:13:00 f*ck. How blind I was :) Sep 07 12:13:40 canvs2321: yes. the simplest thing. Just specifiy the framelayout AFTER the canvas but tell it to position above the controlfragment. Of course the sizing can then work. cheers. Obvious! Sep 07 12:13:48 s/canvas/control Sep 07 12:13:50 in a hood erryday Sep 07 12:13:51 :) Sep 07 12:14:01 StingRay_ does it hurt? Sep 07 12:14:25 rgr I'm pretty sure since you need no layout overlay,overlap that linearLayout would be many times better Sep 07 12:16:26 probably. Ill revert. Sep 07 12:16:34 as in this http://pastebin.com/C0SjsPLq Sep 07 12:16:57 whats with the weight=1 there? Sep 07 12:17:05 take the rest of the screen Sep 07 12:17:11 aha. makes sense. I missed that. Sep 07 12:17:13 brb Sep 07 12:17:22 faster too, relative is very heavy Sep 07 12:19:13 doesnt matter. Its only all calculated once or when you change orientation or scale. Sep 07 12:19:21 but cleaner yes Sep 07 12:19:50 I mean the viewGroup relative has 10x the size and checks of linearLayout Sep 07 12:19:53 and yes, worked fine. Bah! What a waste of a morning ;) Still. best way of learning. Sep 07 12:20:39 StingRay_: sure but who cares normally. Its only done once or on orientation change . Bu this works now back with what I started! Linear. The weight trick I didnt know about. Sep 07 12:20:54 mistakes and anger pretty much cement the solution for eternity in ones mind :) Sep 07 12:22:22 heh Sep 07 12:29:53 finally all working. Always take a break..... was blinded. thanks StingRay_ and canvs2321 ! Sep 07 12:29:59 Hi, can somebody please tell me where to look, to fix this problem ? http://pastebin.com/Z23W4xD1 Sep 07 12:31:36 paste your code. Sep 07 12:32:16 The error is clear. The reasoning not so. You are accessing an array out of bounds. Reason could be one of many reasons if its not a system bug. Sep 07 12:32:34 it's the phone app Sep 07 12:33:11 If it were programed in C this would not be a problem :-P Sep 07 12:33:33 sure. But is he accessing it programmatically? Asking in a dev channel one would expect so. Sep 07 12:33:54 DLSteve: correct. We wouldnt see the error and someone in outer mongolia would have got called ;)) Sep 07 12:34:00 Thanks, guess i am a little bit wrong here, since i build a rom, and not a app ? Sep 07 12:34:08 rgr, haha Sep 07 12:34:51 SlowMoe: show the code you have written to access the phone. Maybe someone can help. If this is an error after just blindly "making a rom" then no, this is not the channel. Sep 07 12:36:45 sorry ... guess android-root is also a nogo ? Will search for a other irc. Thanks Sep 07 12:41:45 StingRay_, "relative is heavier and slower than linear" - do you mean for initial layout or in general? Sep 07 12:41:59 ravilov look at source code Sep 07 12:42:15 everything about it is monster :) Sep 07 12:42:23 I see Sep 07 12:42:41 only really needed if you do overlaps that need "relative" control Sep 07 12:42:51 I'm asking because I have a custom ViewGroup based on (extending) relative, so now I'm wondering will I benefit any if I switch to linear Sep 07 12:42:57 otherwise better off with linear/frame Sep 07 12:43:11 ravilov what was the reason for relative ? Sep 07 12:43:32 StingRay_, no reason, tried that one first and it worked so never tried anything else :) Sep 07 12:44:02 oh yeah, unless you have a complex conditional thing thats has relative linking, not sure it's best Sep 07 12:44:38 the only reason to even have a custom viewgroup is I wanted a view that "envelops" my usual layout so I can intercept touch events Sep 07 12:44:48 but the custom viewgroup really only has one child Sep 07 12:45:01 so I guess there should be no difference if I switch to linear Sep 07 12:45:25 well yes there will, it doesn't have to init the biggest most complex viewGroup that exists in android :) Sep 07 12:45:44 hah, I meant no negative impact :p Sep 07 12:45:53 I'm all for speedups/optimizations Sep 07 12:47:24 yeah no negative if you are not using a relativeLayout for what it's intended Sep 07 12:49:49 who knows, I might even get away with not extending any existing viewgroup Sep 07 12:50:02 relatives certainly makes it easier in many cases. The point re "speed" is : it doesnt matter. Once the layout is calculated its no different afaik. Who cares it takes an extra nanosecond to calc the position? No difference in view clipping etc at the end of the day if the end result is the same. Sep 07 12:50:04 but yeah just tried and linear works just as well, my inner layout didn't fall apart Sep 07 12:50:50 rgr I think the point is there are many reasons that a view gets init/re-init and why use the heaviest when the simplest will do :) Sep 07 12:51:22 and I have had it make big differences in things like items for listViews or any adaptive crap that I have Sep 07 12:51:38 sometimes still need to though for using what it's supposed to be used for Sep 07 12:51:44 bah, I can't - I'd have to implement my own onLayout() Sep 07 12:51:54 think I'll stick to linear then Sep 07 12:52:39 StingRay_, what's the intended purpose of relative? bloating your app in terms of size and lack of speed? :) Sep 07 12:52:52 no, for relative rules Sep 07 12:53:09 leftOf rightOf topBottom align, centerline etc Sep 07 12:53:19 yeah yeah I know, I'm kidding Sep 07 12:53:20 now Sep 07 12:53:33 do you think frame would be even thinner/faster? Sep 07 12:53:39 ah, yeah not awake yet, my ability to detect jokes increases with coffee Sep 07 12:53:54 StingRay_, when in doubt, look for emotes ;) Sep 07 12:54:09 too old, my brain filters emotes out Sep 07 12:54:12 :) Sep 07 12:54:15 pft Sep 07 12:58:29 hi guys Sep 07 12:58:32 no observable difference in speed or visual appearance with frame vs. linear Sep 07 12:58:35 hmmm Sep 07 12:59:20 the only difference I see is that frame has the (Context, AttributeSet, int) constructor, as opposed to linear which doesn't have that Sep 07 12:59:38 apparently linear does not support custom theming, lol Sep 07 13:02:00 hmmm, if nothing else, the source code for framelayout is much smaller than for linearlayout :) Sep 07 13:02:57 no weight system Sep 07 13:03:06 no orientation etc Sep 07 13:03:16 ah I see, and from I understand weights can slow things down too Sep 07 13:03:21 but I'm not using them anyway... Sep 07 13:03:24 look at ViewGroup Sep 07 13:03:26 :) Sep 07 13:04:03 nah Sep 07 13:04:08 I think I'll stick with frame then Sep 07 13:47:04 ugh, the example on using the camera (this is my 1st time using camera btw) I get everything except why is there no setCamera() use and why if you used it would it never get past the 1st line ? Sep 07 13:47:12 http://developer.android.com/training/camera/cameradirect.html#TaskSettings Sep 07 13:50:30 what do you mean by "not get past the 1st line" ?? Sep 07 13:51:21 well I mean if I use setCamera(mCamera) then if (mCamera == camera) is always true Sep 07 13:51:28 just a bit confused here Sep 07 13:53:45 on it's ok, its the surface callback that calls it… funky to have the state of a surface control hardware, would that thought the camera stream is just something you plug/connect into Sep 07 13:53:53 on/oh Sep 07 13:54:43 "so that Camera.startPreview() is called by the setCamera() method, whenever the user does something to change the camera." Sep 07 13:54:51 oh. Sep 07 13:55:09 right, it's not meant to be called :) Sep 07 13:55:29 yeah I dont like this at all, confusing when you still haven't woke up Sep 07 13:55:48 well, at least there aren't any smileys Sep 07 13:58:31 there is no complete example either Sep 07 13:59:02 Dude. That was funny. It deserved at least an LOL Sep 07 13:59:22 Just for that, I'm going to pee. So there. Sep 07 13:59:27 oh a line even with the word smiley I filter out :) Sep 07 14:01:37 wow, you ARE old. Sep 07 14:01:47 feeling it of late Sep 07 14:02:00 let me guess... 37 Sep 07 14:02:17 that can't be a "guess" Sep 07 14:02:25 I'm either 36 or 37 Sep 07 14:02:36 get out! Ha! I knew it. :D Sep 07 14:02:39 december 1977 Sep 07 14:02:46 so whatever that makes me Sep 07 14:02:52 whipper snapper. Feb 1967 Sep 07 14:03:18 and you do the whole smiley thing ? lol Sep 07 14:03:35 bet you use these emoji things too in sms/mms/im right ? Sep 07 14:03:36 :) Sep 07 14:03:42 of course, smileys aren't for kids Sep 07 14:03:55 no... old time smileys Sep 07 14:04:34 You need them for context. Sep 07 14:04:38 Especially me. Sep 07 14:04:56 Or else I would always sound like a bastard :D Sep 07 14:05:52 damn, I was only going to be here a little bit today and I'm talking about smileys.. Sep 07 14:05:56 what a waste. Sep 07 14:06:44 here with purpose ? Sep 07 14:06:51 fuck no. Sep 07 14:06:52 :D Sep 07 14:07:05 nah, I was just passing by. Sep 07 14:07:20 and now I'm out. Sep 07 14:07:27 adios! Sep 07 14:07:36 seeya Sep 07 14:12:37 if I put a fragment in xml, why do I need to give it width and height? makes no sense to me Sep 07 14:13:14 cause it has,erm… space ? Sep 07 14:14:05 but it is not a layout, it is something that executes... Sep 07 14:14:17 erm… no Sep 07 14:14:20 and yes Sep 07 14:14:26 it has a view Sep 07 14:14:49 if it doesn't then you dont put it in xml :) Sep 07 14:15:12 yes so I if I have a fragment in the xml i put it i dont put its own view Sep 07 14:15:13 ? Sep 07 14:15:34 well if you have a headless fragment with no view, why are you putting it in a layout ? Sep 07 14:15:38 What could be the reason the onCreateView is not called if I put the Fragment in xml? Sep 07 14:16:21 you're loosing me now Sep 07 14:16:33 sorry, 2 different questions Sep 07 14:17:15 I want my fragment view to load as quick as possible. I get a white screen first, then my loading screen then my normal UI screen. I want the loading screen to be started as soon as the activity is started. how do I do that? Sep 07 14:18:10 no idea what you are doing… maybe loading the loading screen ? :) Sep 07 14:20:04 well in onCreate in the activity, ca i load the fragment vire there already? Sep 07 14:21:00 not understanding that sentence Sep 07 14:21:08 vire ? ca ? Sep 07 14:22:17 "can you load the fragment in onCreate?" yes if you so wish…if that was your question Sep 07 14:29:40 hey guys. I need a very simple way to exchange Strings (messages) for backend communication in a Wi-Fi network between Android Devices. I don't need the best way, i need the easiest to setup. Do you know any libraries that could do the trick? Sep 07 14:31:12 hi, anyone knows why this would be safe: Sep 07 14:31:13 http://www.java2s.com/Code/Android/Security/UsingSharedPreferencestostorepassword.htm Sep 07 14:32:27 BulleTime define safe Sep 07 14:32:44 in what context cause it's just stored in xml Sep 07 14:32:52 to save the password for automatic login Sep 07 14:33:03 ah ok Sep 07 14:33:48 I started two new thread (T1, T2) from main thread. What is the best way to communicate between this two thread? If something happened in T1 then T2 have to do something. Sep 07 14:36:38 n00binator please dont msg private to ask for help, this is what the channel is for Sep 07 14:38:17 n00binator last time before I put you on ignore, stop messaging me !! you have asked, if anyone knows and/or wants to reply they will Sep 07 14:38:55 lol Sep 07 14:38:59 he is mean Sep 07 14:39:19 StingRay_ what about that page ? Sep 07 14:39:20 but seriously. sorry dude. didn't want to disturb u Sep 07 14:39:51 BulleTime what page ? Sep 07 14:40:02 sharedPrefs is just key value pair xml file Sep 07 14:40:02 http://www.java2s.com/Code/Android/Security/UsingSharedPreferencestostorepassword.htm Sep 07 14:40:10 yay im gonna be an android app dev Sep 07 14:40:13 so if you consider that safe, thats you Sep 07 14:40:17 so there's noting about security there :P Sep 07 14:40:26 no, cause there is none :) Sep 07 14:40:30 How do I access both my own resources (res/ directory of my project) and android.R? I can do only one of the two, and I need access to both in one activity. Sep 07 14:40:51 Kwpolska by package path like you just had Sep 07 14:40:58 how do I access the gridView object from getView method of a custom adapter ? Sep 07 14:41:03 R = your R android.R. = well… you get it Sep 07 14:41:15 StingRay_: except I do not. Sep 07 14:41:53 StingRay_: wait, there is no import? Sep 07 14:42:06 myApp.R.String.someString android.R.String.someAndroidString Sep 07 14:47:48 hi there, can someone tell me or refer me a link how i can detect if my router, i'm connected to, changed Sep 07 14:48:00 Hi, I'm trying to use ActionBarActivity in Android Studio (IntellJ), but I'm getting Cannot resolve symbol error. I've found some solutions, but only if I'm using Gradle (which I'm not using in my project). Is there any other solution? Sep 07 14:49:37 StingRay_, shared prefs has types too ;) Sep 07 14:49:53 use gradle Sep 07 14:51:00 BulleTime, on its own shared prefs is as safe as plaintext, there is no discussion about it (and no need for any discussion) Sep 07 14:51:10 now if you want to store hashes in there, that's a different thing Sep 07 14:51:39 py0: Really? Then how to migrate my current project? Sep 07 14:52:01 Dunno, bud. Gradle is definitely what's up, though. Sep 07 14:52:44 it's the new hype, everyone's doing it now Sep 07 14:52:59 py0: Ok, thx anyway Sep 07 14:53:18 apparently the general idea is, use latest and greatest (or whatever google claims is it) or get left behind Sep 07 14:53:30 ignored and laughed at Sep 07 14:53:52 ^ Sep 07 14:55:01 hello everyone Sep 07 14:55:26 good mornayfternon Sep 07 14:56:12 hi Sep 07 14:56:13 i've added this line to my build.gradle in android studio Sep 07 14:56:15 compile 'com.mcxiaoke.volley:library:1.0.+' Sep 07 14:56:25 I want to use android volley client Sep 07 14:56:42 is that enough or do I need to something else as well? Sep 07 14:57:28 im looking for a way to send something to the context stream of smartwatches. i know notifications end up there. but notifications alway appear on the handheld too which i do not want. any ideas? Sep 07 14:58:52 py0: What about Maven? It looks like it's supported by the SDK, just nobody uses it. Sep 07 15:00:57 my god im stupid Sep 07 15:01:17 i renamed my android sdk folder while it was updating/installing modules Sep 07 15:02:33 anyone know how to use the android volley library in android studio? Sep 07 15:10:06 have you added to the correct dependencies. Post your build.gradle. Sep 07 15:10:22 rgr: sure Sep 07 15:10:30 Hello There, Someone using robolectric could do me a favor and tell me why i cant do a simple new MyPojo() ? it returns a nullpointerexception there. Sep 07 15:11:06 and you know that exists? e.g http://gradleplease.appspot.com/ Sep 07 15:12:01 rgr: i know Sep 07 15:12:08 just want to confirm Sep 07 15:13:05 http://pastebin.com/jd7ZLVPp Sep 07 15:13:10 here's my gradle file Sep 07 15:13:10 https://gist.github.com/vekexasia/fa6cbd8ee6f2a3588782 Can someone tell me why robolectric gives me a nullpointerexception at line 51 Sep 07 15:16:53 you havent added mavenCentral and mavenLocal to your repos. Might be the issue. Dunno. I dont touch my working build.gradle now ;) Sep 07 15:17:24 rgr:? Sep 07 15:18:06 ? Sep 07 15:19:11 see herer: http://stackoverflow.com/questions/20574111/add-maven-repository-to-build-gradle Sep 07 15:19:18 rgr: I'm not facing any issue(as of yet), just wanted to confirm if this is the correct way to include libraries in your app Sep 07 15:19:30 ...... Sep 07 15:19:35 the no Sep 07 15:19:37 then no Sep 07 15:19:41 you didnt add the repos. Sep 07 15:19:44 see link. Sep 07 15:19:48 ohhkay Sep 07 15:20:26 Why not just try it. I assumed your included lib wasnt beign loaded. Waste of time... grumble :) Sep 07 15:20:37 rgr: sorry, newbie here Sep 07 15:20:58 coming from eclipse, these plethora of terms - maven,gradle and what not Sep 07 15:21:00 What do I need to make my app appear in the launcher? Sep 07 15:21:06 confused the hell out of me Sep 07 15:21:28 Kwpolska go over the basic tutorials and getting started guides on d.android.com Sep 07 15:21:42 ashemark: yeah. You need top read the docs and google. Sep 07 15:21:46 its quite a lot. Sep 07 15:22:00 StingRay_: I assure you I have. The thing is, and friends do not make it appear for some reason. Sep 07 15:22:26 rgr: thanks man Sep 07 15:22:32 StingRay_: oh, wait. It is there, just under the wrong letter. Sep 07 15:23:06 Rephrasing the question: I want to show the string "foobar" in the launcher, but just "bar" in the application action bar. How can I achieve that? Sep 07 15:24:16 solution googled. Sep 07 15:24:21 rgr: can you advise me on how/where to start? Sep 07 15:24:36 rgr: never mind Sep 07 15:24:53 rgr: just remebered there's a migrating from eclipse section on android studio doc page Sep 07 15:27:32 can someone help me with a very stupid thing in robolectric? Sep 07 15:28:47 dont ask if "someone knows" just ask the Q. If someone can help they will. Sep 07 15:29:27 rgr i already did :( Sep 07 15:30:32 then you're tough out of luck :( Sep 07 15:30:55 did you run it in the debugger and use the evaulater to see whats in scope or try and catch the exception? Sep 07 15:32:05 rgr i don't have a clue on how to run robolectric tests in a debugger Sep 07 15:32:39 Now I'm trying to create a new Gradle project, so I crated Gradle project and then created App Module inside it. But now there's no build.gradle inside that module folder in Gradle project as the d.android.com says. So should I use the build.gradle inside the Gradle project root? Sep 07 15:33:38 Me neither. But a 1 second google seems to indicate it isnt an unreachable summit. http://stackoverflow.com/questions/21184490/how-to-debug-when-running-robolectric-tests-in-android-studio Sep 07 15:35:06 hi everyone Sep 07 15:35:43 albru123: you might want to take a deep breath and start again ;) what module folder? what does "d.android.com" say? Link? The build.gradle in the root is probably not where you want to set up the android tools assuming you have an android component as a sub project. Sep 07 15:35:58 would be the correct place to ask for some tips about mixerpaths.xml ? Sep 07 15:36:47 rgr: Well, I created Gradle project and then Application module called myapp, so now I have folder called myapp in my Gradle project folder Sep 07 15:37:38 rgr: d.android.com says, that build.gradle should be located like this: myapp/build.gradle Sep 07 15:38:25 I've rooted galaxy s5 and I've been looking aroud to gain up a bit mic's in the mixpaths.xml and i did it finally Sep 07 15:38:44 hannahhanna that has little to do with this channel if you read the topic Sep 07 15:39:08 now what i'm looking for is to enable both mic's at the same time under a normal voice call Sep 07 15:39:14 ah ok Sep 07 15:39:24 i didn't Sep 07 15:39:37 can you guys suggest me a place where to ask ? Sep 07 15:39:49 this isn't a hub to find channels either :) Sep 07 15:40:04 ok sorry then Sep 07 15:40:11 #android-root ? #android Sep 07 15:40:14 try Sep 07 15:40:29 ok thx Sep 07 15:40:52 this channel really needs if not a bot then at least a welcome message Sep 07 15:41:27 you mean the topic ravilov ? Sep 07 15:41:47 ravilov welcome message yeah Sep 07 15:41:58 D9, no I don't Sep 07 15:42:16 Like #debian has? Sep 07 15:42:26 * StingRay_ still cant get a camera onto a surface why am I finding this so hard… goes for more coffee Sep 07 15:42:31 StingRay_, yeah I've seen many other channels have it and I feel it actually does a lot of good Sep 07 15:42:56 StingRay_, try pouring some coffee on your camera...surface... :p Sep 07 15:46:24 albru123: So you have a project, and inside it, a folder myapp, but inside it, you are missing build.graddle? Is the src folder inside myapp set up properly? It should have a main folder, and inside, src and res folders, as well as android manifest xml file. Sep 07 15:46:51 Freewheelnat: Maybe not, let me check it out Sep 07 15:46:55 Sorry, java and res folders, not src and res Sep 07 15:47:31 so myapp/src/main/java + res + manifest + also assets folder (empty) Sep 07 15:48:20 http://stackoverflow.com/questions/25711595/android-sensor-delay-xxxx-could-differ-between-phones Sep 07 15:48:23 any input? Sep 07 15:48:27 Freewheelnat: So it created that Module incorrectly? Because those folders like src weren't inside java folder. Sep 07 15:48:34 about sensor delay Sep 07 15:49:43 albru123: you're not looking for src inside java folder, but this: myapp/src/main/java + res + manifest + assets folder. Do you have those? You're sure you selected "Android application" when creating new module? Sep 07 15:50:51 Freewheelnat: Thanks, now I understand the structure, let me just quickly repair it and I'll see the result Sep 07 15:51:56 It's now processing some Maven repo and it's laggy, so it'll maybe take a few minutes Sep 07 15:52:17 http://tools.android.com/tech-docs/new-build-system/user-guide#TOC-Project-Structure Sep 07 15:57:49 Freewheelnat: Now it looks like this, is it correct? http://ctrlv.cz/gKzm Sep 07 15:58:33 Hello. Sep 07 15:58:33 I'm running countdown timer in backthread. I do this N times (when countdown timer is finished I run the new one in the same thread). Sep 07 15:58:36 The problem is taht when I update UI thread from onTick I can't see all elapsed seconds. Some time I can see 5,3,2,1. Some other time I can see 4,3,2,1. Sep 07 15:58:39 Every time I set countdown timer on 5000 milliseconds. Sep 07 15:58:42 Where is the problem? For updating UI thread I'm using a handler. Sep 07 16:01:31 Any beginner to intermediate programmers here looking to learn more, or have some time on their hands? If anyone is interested in working on a project that will involve Java and Python to make an android chat app that is a democracy, in which everything is voted on, pm me. (#VoterChat) Sep 07 16:02:05 everything is voted on? Sep 07 16:02:20 Is there any way to refresh Gradle to create that build.gradle? Sep 07 16:02:23 for president? Sep 07 16:02:29 lol :D Sep 07 16:02:37 yuck. No one wnats an equal say project. Sep 07 16:03:07 oh Sep 07 16:03:12 But great idea. What Android really needs is yet another chat app! ;) Sep 07 16:03:16 i just realized that's a bad way to say it. Sep 07 16:03:19 dont know what you mean with voted.. Sep 07 16:03:54 It means some junior member or an idiot get the same vote as a senior guy with experience. A sure way to fail! ;) Sep 07 16:04:31 rgr.. gentle optimist as always ;) Sep 07 16:04:45 No. Sep 07 16:04:49 I said that wrong Sep 07 16:04:54 Just having a laugh at the "bait" there for free help ;) Sep 07 16:04:59 I meant INSIDE of the chat app, everything is voted on. Sep 07 16:05:12 As in no admins. Sep 07 16:05:34 Oh so you're not looking for equal footage programmers? Just free ones? Ignore me... I'm just pulling your leg.... Sep 07 16:05:51 omg -.- Sep 07 16:06:04 KingInTheNorth: as he said. just ignore.. ;) Sep 07 16:06:20 How far have you got? And why python? Sep 07 16:06:27 oh, so irc without admins Sep 07 16:06:37 or rather democratic admins Sep 07 16:06:44 basically^ No power abuse without 50%. Sep 07 16:06:54 50% what? Sep 07 16:07:01 whats done in python? server programming? Sep 07 16:07:15 well, cool idea in theory, but democracy has a way of letting assholes run wild Sep 07 16:07:30 50% votes. Sep 07 16:07:39 And also, meant to say server programming, yes. Sep 07 16:07:50 exactly. Look at the reviews and content of the google playstore for an immediate example. We were discussing it earlier. Asshats far outnumber saner heads. Sep 07 16:08:12 rgr: i think they just tend to scream louder Sep 07 16:08:35 like theres a ton of positive reviews but they just rate without comment on my app Sep 07 16:08:51 Sure. But shamefully sometimes you only realise too late its an arsehole with an agenda. Same scenario as trip advisor as I said earlier. Sep 07 16:11:27 subject of IRC though, I really like the IRC for Android. https://play.google.com/store/apps/details?id=com.countercultured.irc4android : nicely done. Sep 07 16:18:59 Hello. I am new to android development. How do you make a background process that runs forever? Like facebook, so that I can keep in contact with my server. Sep 07 16:19:16 FOREVER tho Sep 07 16:19:31 sry im just starting android dev too Sep 07 16:20:39 AnotherSentry: you learn to use google. That Q is SO broad its unbelievable. http://developer.android.com/guide/components/services.html#Lifecycle Sep 07 16:20:47 but look at services. Sep 07 16:21:18 and facebook certanly doesn't have a service running constantly :) Sep 07 16:21:50 Yes I have looked at services and I have made one. I can get the onStartCommand working but how do you run a look inside them? Sep 07 16:22:00 *loop Sep 07 16:22:27 What does facebook use then? Sep 07 16:22:51 AnotherSentry: Push notifications Sep 07 16:23:09 gcm, sync adapter Sep 07 16:23:33 Hey guys, I’ve installed Android SDK on an headless Debain 7.6 LAMP system. Running the command „android“ on terminal with user „root“ or „www-cordova“ (custom user) runs perfectly…When I try to execute this command out of php, I get the following error „sh: 1: android: not found“…Have tried it with „sudo“ etc. but nothing works. Any hints for me? Thank you :) Sep 07 16:23:41 Then what is the facebook process that always runs? Sep 07 16:23:43 Paths etc. are set correctly :) Sep 07 16:24:43 so im a big user of the android terminal emulator Sep 07 16:25:00 why are you running android as root? Sep 07 16:25:02 is it possible to code native programs you can run at command line that invoke behaviors Sep 07 16:25:16 at the java level Sep 07 16:25:20 raypulver, not with Android SDK. Sep 07 16:25:32 with the NDK though? Sep 07 16:25:44 like if I wanted to scan a qr code Sep 07 16:25:47 rgr: Because it’s an headless linux system. What I want to do works out of the terminal but not out of the browser. That’s my problem :D Sep 07 16:25:56 raypulver, NDK is just a preconfigured C compiler. Sep 07 16:26:12 out of the browser? What are you talking about? Sep 07 16:26:29 because its headless you dont go running something android as root. Thats insane. Sep 07 16:26:38 especially not from php. Sep 07 16:26:39 What part of the service do you put the main code which will run for a long time? Sep 07 16:27:21 rgr: The goal is to develop a webservice where I can create native apps out of the browser using cordova. Sep 07 16:27:32 your paths are wrong if php cant find it. that or exec permissions. did you chdir maybe? Sep 07 16:28:06 PHP runs in a safe mode you need to tell it to allow exec and make sure the web/php user has perms to access you exe Sep 07 16:28:10 ThKo: sorry. too advanced to me. makes no sense to me at all. "native apps"? Sep 07 16:28:51 rgr: No problem :D But my presumption is that’s maybe a permission problem. Thank you nevertheless :) Sep 07 16:29:31 So the service returns Start_Stickly then where do you put the code to be run? Sep 07 16:29:37 I've seen 'php' on android channel Sep 07 16:29:47 where is world going to... Sep 07 16:29:51 :D Sep 07 16:32:29 nowt wrong with php. The language police like to bag it though, rubbish in , rubbish out. ;) Sep 07 16:34:26 O.o Sep 07 16:35:09 If you say that you just don't know enough about languages :/ Sep 07 16:35:34 everything is wrong with php Sep 07 16:36:07 rgr's opinions are odd Sep 07 16:36:15 all the time Sep 07 16:36:38 true :D Sep 07 16:37:01 i like php thoguh Sep 07 16:37:30 Well there's worse things out there. Sep 07 16:39:45 Sorry, I Found it. you use onCreate() Sep 07 16:42:49 AnotherSentry, A Service run on the UI thread. You have to make a thread to run long running code. Sep 07 16:43:12 (Don't ask me for more details. I was just passing through. Off to shave!) Sep 07 16:50:05 guys quick question Sep 07 16:50:33 how to write StringBuffer to a .txt file in internal storage? Sep 07 16:51:03 google Sep 07 16:51:06 I'm using fileoutputstream, but when i use fout.write(sb);, it doesnnt work Sep 07 16:51:31 should i just convert stringbuffer to string? Sep 07 16:52:13 as the string is very long Sep 07 16:52:40 you should google that question Sep 07 16:52:42 yes you'll have to do toString() Sep 07 16:52:47 pifon, but the string won't be copies Sep 07 16:52:50 *copies Sep 07 16:52:51 er. Sep 07 16:52:57 copied. too much coffee Sep 07 16:53:15 what do you mean by won't be copied? Sep 07 16:53:40 I mean: won't be copies. Sep 07 16:53:47 *copied when you convert to String. Sep 07 16:54:33 what... Sep 07 17:12:11 outputstream doesn't write strings directly Sep 07 17:12:17 learn some java Sep 07 17:12:25 this is a basic java question Sep 07 17:15:24 whats the most efficient way to get system time in nanoseconds? Sep 07 17:16:17 System.nanoTime() ? Sep 07 17:16:31 just remember, there's absolutely no guarantee that it's gonna be actually accurate to nanosecon Sep 07 17:19:18 mavrik: ok, itll have to do Sep 07 17:20:20 guys whats the best tool for error reporting? Sep 07 17:20:37 google analytics? bugsense_ Sep 07 17:20:38 ? Sep 07 17:21:02 crashlyitics is pretty good from what i hear Sep 07 17:22:27 I prefer ACRA, it gives lots of information and it's free Sep 07 17:22:39 oh it doesnt have open registration Sep 07 17:23:10 the crashlytics Sep 07 17:23:18 checking acra Sep 07 17:23:55 Do you know an article about best-practices for introduction overlays? (To explain some features) Sep 07 17:25:42 google docs reporting Sep 07 17:25:46 hehe Sep 07 17:26:21 MikeWallaceDev, what do you use for the Acra collector Sep 07 17:26:34 I hate crashlytics Sep 07 17:26:39 you mean the backend DB? Sep 07 17:26:45 MikeWallaceDev, yes Sep 07 17:27:02 Let me check, one didn't work well, I used the other :D Sep 07 17:27:05 pfn why hate crashlytics ? I've used them for a year now and love it Sep 07 17:27:14 iris couch Sep 07 17:27:22 pfn but not experience with any other or have anything to compare to so thats why I ask Sep 07 17:28:07 Idon't hate the others, I just love ACRA. I gives me ALL the info that I need and it's free. Completely free. Sep 07 17:28:24 You can add data to the report if you need it Sep 07 17:29:06 question : do I actually need a surface if I just want the preview data from the camera ? Sep 07 17:30:16 StingRay_, their Web UI is bad, no deep linking, no logcat collection, etc Sep 07 17:30:39 MikeWallaceDev, I forked someone's collector and made it nice, hrh Sep 07 17:31:12 https://github.com/pfn/android_crash_reports Sep 07 17:31:48 StingRay_, I've been using crashlytics on a big project for a year as well Sep 07 17:31:59 the email notifications are garbage, too Sep 07 17:32:21 pfn I think cause I'm more of a visual guy than maybe a functional one… thats why I like it :) Sep 07 17:33:24 the email notifications require that you go into their Web app to know why your app crashed Sep 07 17:33:43 it's just a source file with line number otherwise Sep 07 17:34:16 also, setup requires using their magic plugin Sep 07 17:37:55 StingRay_, in terms of design, crashlytics *looks* nice Sep 07 17:40:02 Why is crashlytics for free? Sep 07 17:41:52 Hi guys, I want to set minimum time in my timepicker, i listened to onTimeChanged() and when it is below the minimum i changed it to the minimum but it again triggered onTimeChanged() causing stackoverflow error, please help; how do i set minimum time for the time picker dialog Sep 07 17:42:57 slani: you ever fix your problem? Sep 07 17:45:05 pfn, this is how my ACRA looks : http://uppix.com/f-Screenshot_from_540c994700177af7.png Sep 07 17:46:31 +1 for ACRA Sep 07 17:46:46 mhm Sep 07 17:46:54 ACRA is neat... I like the latest Crashlytics features tho Sep 07 17:47:05 even tho is has some strange quirks around ProGuard at times Sep 07 17:48:46 test : http://i.imgur.com/acqyzu2.png Sep 07 17:49:28 any collision resolution experts in here? I have a collision resolution algorthms and it works OK but I would like something faster. Sep 07 17:49:52 when i hit obstacles it is like it starts lagging, not sure if that is what happens but it seems like it Sep 07 17:50:14 I dont need something advanced, when I hit a wall I dont need bounce, just zero speed in that direction. Sep 07 17:51:15 speed=0; Sep 07 17:51:20 :D Sep 07 17:51:45 No? Not helpful? hehe, sorry mate. :) Sep 07 17:55:01 question : do I actually need a surface if I just want the preview data from the camera ? Sep 07 17:55:08 How to set minimum time for time picker. please help guys Sep 07 17:55:51 zeltin: I suspect you have an algorithm that doesnt put the character back in the clear enough when/if it encroaches a wall causing a brief "to and fro" oscillation. check by re-positioning it as well as reversing or zeroing its speed. Sep 07 17:56:01 StingRay_ believe so Sep 07 17:56:22 I believe so too StingRay_ Sep 07 17:56:22 i haven't done a lot of work with the camera in about a year, so stuff might have changed Sep 07 17:56:48 StingRay_ with that said, u can create a surface which is 1x1 pixel lol Sep 07 17:57:03 jug6ernaut MikeWallaceDev thanks, and doesn't that just seem….awful! Sep 07 17:57:43 for me its exceptionally annoying, considering i don't i only need the camera to access the LED Sep 07 17:57:57 i only* Sep 07 17:58:32 rgr: OK, ty for the input. I move the ball by adding posx+speedx, posy+speedy basically. I calculate all the points on that path, move it intil a collision happens or all steps have been moved. on collision I move it backwards on the path until first free position. so it will be 1 pixel from collision after it collided. Sep 07 17:59:30 MikeWallaceDev, ah, you use acralyzer Sep 07 17:59:41 yeah, I don't have any fancy charts yet Sep 07 17:59:42 yep Sep 07 17:59:52 fancy scmancy Sep 07 17:59:54 :D Sep 07 18:00:13 I'm a big fan of nih Sep 07 18:00:22 step through with the debugger and check it continues back properly AND the speed id reversed All I can think of. Its nothing overly cpu intensive that would cause a lag as you report. Sep 07 18:04:33 speed is reversed? I just zero it in the direction I collide Sep 07 18:13:43 canvs2321: which one? Sep 07 18:13:48 :D Sep 07 18:18:12 MikeWallaceDev did you use this to implement acra with iriscouch Sep 07 18:18:41 cliffreich, did I use what? Sep 07 18:20:06 https://github.com/ACRA/acralyzer/wiki/manual-setup Sep 07 18:21:03 I didn't want acralyzer because I wanted to use appengine for turnkey hosting Sep 07 18:22:10 Ok to talk monetization here? I have puzzle game. Standard way to monetize is just ads ofc and then have inapp purchases for more levels. Sep 07 18:22:24 or maybe spread the game to X people and get new levels for free Sep 07 18:22:24 cliffreich, most possibly this : https://github.com/ACRA/acralyzer/wiki/setup Sep 07 18:22:37 "Easy" :) Sep 07 18:23:54 zeltin Sep 07 18:23:57 go to FGL Sep 07 18:25:18 sry http://fgl.com/ Sep 07 18:25:33 you can get your game sponsored by someone there if you want Sep 07 18:25:41 Which social gaming API do you recommend? Googles? Sep 07 18:25:48 prohobo, thanks! Sep 07 18:25:58 i have a couple sponsored games thru FGL Sep 07 18:26:07 it's the only option really Sep 07 18:26:27 and it gets you way more money than just putting it up on app store Sep 07 18:27:07 unless you have a mega-hit and decided to sell the source code/ip to a sponsor Sep 07 18:28:53 prohobo, so if I use fgl I won't publish on the appstore? Sep 07 18:29:37 your sponsor will publish it for you i think, i dont remember exactly how app sponsorship works Sep 07 18:30:01 is there any way to use Chrome on android and 'not be logged into chrome' ? Sep 07 18:30:09 or am i forced to be tracked Sep 07 18:30:20 i think app sponsorship might just be branding Sep 07 18:31:13 g00s, incognito Sep 07 18:31:36 i only did web games Sep 07 18:31:38 on desktop chrome i can simply not be logged into chrome (the way i use it). then i have it delete cookies on exit Sep 07 18:31:45 pfn ok, thanks Sep 07 18:32:03 as if that's useful, though Sep 07 18:32:23 not being logged in isn't so helpful if google really wants to track you Sep 07 18:32:29 desktop or not Sep 07 18:33:08 yeah, i try :( mostly use FF with sef destructing cookies, vpn, etc - but FF on android is iffy Sep 07 18:33:36 eff provacy badger Sep 07 18:33:40 *privacy Sep 07 18:37:18 anyone have suggestions for books on app marketing that aren't too haevily focused on social media like FB adds, etc ? Sep 07 18:38:09 Guys, How to set minimum time for time picker, please help Sep 07 18:38:14 hello everyone Sep 07 18:44:13 Hi there! Is there any good way to handle Fragments when using them for my OptionsMenu? Currently I create them via FragmentManager but it is hard to check every single Fragment if it is visible and delete it (I have to use it because my "main" fragment musn't be destroyed. Sep 07 18:48:15 prohobo, can i see your games on fgl? Sep 07 18:48:32 what kind of deals can you get? Sep 07 18:49:18 My 7" emulator is just black, it never starts properly, why could that be? Sep 07 18:51:28 my games sucked Sep 07 18:51:43 i got $700 for 3 weeks exclusivity for one Sep 07 18:51:51 then i lost the code Sep 07 18:51:52 ... Sep 07 18:51:59 because i was an idiot back then Sep 07 18:56:04 are you kidding me(you know the guys who run the site ;) )? 700$ for poor games? That is hard to believe Sep 07 18:56:28 700 is on the low end Sep 07 18:56:48 a decent game (with a decent license) goes for $2k - $5k Sep 07 18:56:58 a GOOD game gets $5k+ Sep 07 18:57:22 bad games don't get sold Sep 07 18:58:10 a good app is an app that people would like to share with others.. Sep 07 18:59:06 i stopped making games because i need a team Sep 07 18:59:13 soloing it just isn't worth it Sep 07 18:59:25 you lose a lot of money just by deciding to go solo Sep 07 19:04:10 it would be nice to know if there is an easy way to save current activity state to a file and restore it on launch. The hard way I am thinking about is saving everything to SQLite DB and restoring every dynamic widget, textview programmatically with a loop.. Any better ways? Sep 07 19:06:22 prohobo, yes I need animators...but I am just learning so far. Sep 07 19:06:29 Your games cannot have sucked then... Sep 07 19:06:36 they weren't technically bad Sep 07 19:06:49 So basically I there is no risk in trying, just try and see if someone wants it. Sep 07 19:06:51 but im embarrassed by them enough that i dont want to show you Sep 07 19:06:56 Topkek007: Google "serialization of objects" maybe this would help Sep 07 19:07:19 there is no risk in FGL, no Sep 07 19:07:30 it can only mean more money Sep 07 19:07:37 Guys, what will happen if someone subscribes with broadcastReciever after broadcast message was sent? Is this subscriber would recieve this message or no? Sep 07 19:07:42 just learn about the sponsorship options Sep 07 19:08:02 prohobo, I made this: https://play.google.com/store/apps/details?id=com.sj.worldcupquiz&hl=en Sep 07 19:08:05 so you don't accidentally sell the rights away to your game forever for a measly $500 Sep 07 19:08:09 Now show me :) Sep 07 19:08:17 ughh.... Sep 07 19:08:22 (I might add more to it later, now it is very basic) Sep 07 19:08:26 ughh at my game? Sep 07 19:08:27 1 se Sep 07 19:08:32 no, that i have to show mine Sep 07 19:08:41 olologin: thank you! Sep 07 19:09:44 looks like a decent topical game zeltin Sep 07 19:10:40 http://www.kongregate.com/games/prohobo34/cubinect?acomplete=cubinec Sep 07 19:11:02 thats my first game Sep 07 19:11:13 im not too embarrassed about it Sep 07 19:11:34 cool main menu Sep 07 19:12:55 so, what's the best way to prevent a background service from being killed, or at least be able to restart it if it does get killed? Sep 07 19:14:27 Topkek007, my main menu or prohobo ? Sep 07 19:14:40 prohobo, it is a nice game, nothing to be ashamed of Sep 07 19:14:41 prohobo Sep 07 19:15:15 most importantly I want my service to be resistant to force stops Sep 07 19:15:29 force stops ? Sep 07 19:17:10 what do you think about the looks of my game? Sep 07 19:17:40 did you make that bg? Sep 07 19:17:44 do you think I could sell that game if I made it better, for example added multiplayer and more queestions Sep 07 19:17:52 prohobo, no, got it online Sep 07 19:17:58 i dunno, i never tried making a trivia game Sep 07 19:18:09 are you sure it's legal zeltin? Sep 07 19:18:19 prohobo, yes bought it Sep 07 19:18:21 settings > applications > MY_APP > force stop Sep 07 19:18:23 ah cool Sep 07 19:18:23 g00s, ^ Sep 07 19:18:24 for 54 Sep 07 19:18:29 5$ Sep 07 19:18:58 ravilov hm, i don't think you can get around that, why would you want to ? Sep 07 19:19:41 g00s, for a very specific reason - I'm making an app for my son to limit the internet usage on his phone, but I'm afraid he's smart enough to know how to kill background services Sep 07 19:26:33 What is the biggest phone I need to test on for emulator= Sep 07 19:26:40 for large size I mean Sep 07 19:27:10 I am going to release my new game for normal and lage sizes and want to check for smallest and biggest phones in each category Sep 07 19:37:08 zeltin would google not serve you better ? Sep 07 19:37:18 hi guys Sep 07 19:37:52 hey Sep 07 19:38:43 is it possible to pair Bluetooth device without confirmation?? Sep 07 19:38:59 zeltin: depends on your definition of large .. dpi or physical dimensions...... its a nightmare. ;) Sep 07 19:39:31 what game Sep 07 19:41:02 hey guys is it possible to pair Bluetooth device without confirmation?? Sep 07 19:44:16 Wizmo bluetooth classic or ble ? Sep 07 19:45:38 hello Sep 07 19:46:34 it's confused Sep 07 19:46:44 classic Sep 07 19:48:04 Wizmo not that i know of Sep 07 19:48:37 k no problem mate Sep 07 19:48:38 if you attempt a connection to an unpaired device , you 'll automatically get a dialog Sep 07 19:49:17 and what about paired device?? Sep 07 19:49:35 if the device is already paired, connection is seamless Sep 07 19:50:49 okay thanks mate Sep 07 19:59:07 "Round or Squire. Your choice" ooohkaay Sep 07 19:59:15 kinda like "Paper or Plastic. Your Choice" Sep 07 20:00:12 not in California Sep 07 20:00:44 capella2 oh yeah! Sep 07 20:00:54 what are the choices in cali? Sep 07 20:01:01 Paper and Paper Sep 07 20:01:16 ah Sep 07 20:01:17 or your own bag Sep 07 20:01:26 byob? Sep 07 20:01:44 yeah, i do that, especially for groceries Sep 07 20:02:35 just gotta make sure it doesn't get contaminated with salmonella or something Sep 07 20:02:47 But hanging your laundry to air dry is illegal Sep 07 20:03:04 well you wouldn't pack raw meat in it, would you? Sep 07 20:03:42 your laundry should not stote raw meat Sep 07 20:03:44 nah, but sometimes those packages leak juicy stuff Sep 07 20:04:19 oh heh :p Sep 07 20:04:49 Hello, I define all my vars before onCreate, so not local. The Editor say now that I can converted local. But I like it, because it is a good overview. So is there a major reason dont do it that way? Sep 07 20:08:27 Laire, I have no idea what you're talking about Sep 07 20:09:02 ravilov are you blind man ??? cant you read ?? Sep 07 20:09:09 Sorry my english is not so good. Sep 07 20:10:00 ravilov: http://pastebin.com/CZ5MgNZ1 Sep 07 20:10:47 StingRay_, I am now !!!!!!!!111one Sep 07 20:11:17 some of them could be convert to local vars. But I dont know why that should be better. Sep 07 20:11:23 Laire, ok, so what exactly is your editor telling you? Sep 07 20:11:56 it's probably because those are only ever used in that one method Sep 07 20:12:04 This inspection searches for redundant class fields that can be replaced with local variables. If all local usages of a field are preceded by assignments to that field, the field can be removed and its usages replaced with local variables. Sep 07 20:12:16 Yes, that is why Sep 07 20:12:16 it's just a suggestion, surely there's a way to override it Sep 07 20:12:40 generally speaking it's right though Sep 07 20:12:41 he's routinely defining vars at the class level Sep 07 20:13:00 there is no need to retain an object once you're done with it Sep 07 20:13:11 it just bloats your app and makes GC not able to do its thing Sep 07 20:13:35 there's no "cleanness" to it whatsoever Sep 07 20:13:54 ok Sep 07 20:13:54 "scoping" 101 Sep 07 20:14:47 if in doubt, trust the linter/checker ;) Sep 07 20:15:13 Hi Sep 07 20:15:29 Anyone ever made a native app for x86? Sep 07 20:16:02 how feasible is Ceylon on Android ? Sep 07 20:16:21 just want to know what gcc flags you use Sep 07 20:16:37 because I get random crashes Sep 07 20:16:52 with SIGILL ILL_ILLOPN Sep 07 20:17:14 SiPlus, then use the most conservative flags possible (-O0 or something) and see if it happens again; if it does it's probably due to your code, not gcc Sep 07 20:17:16 there are less crashes with -O0 Sep 07 20:17:51 but still, looks like the compiler doesn't know somehow that I'm compiling for Atom Sep 07 20:17:57 -O0 is going to be terrible :| Sep 07 20:18:04 may as well say -g :) Sep 07 20:18:10 g00s, yeah, too terrible :) Sep 07 20:18:34 g00s, might say both! :) Sep 07 20:18:42 :D Sep 07 20:19:49 Tried -march=atom but still crashes, and i686 march is the default since NDK v8e Sep 07 20:34:42 g00s, hmm Sep 07 20:34:53 I use -O3 -g regullary ;) Sep 07 20:35:37 mhmm, anyone know where can i find an artcle where retrieving row result using pre defined drop down list value? Sep 07 20:35:56 tried to search it up on google, no luck Sep 07 20:36:59 -O3 is broken sometimes, Mavrik Sep 07 20:37:59 Yes, of course. Sep 07 20:38:15 (note that the -O3 -g code I deploy isn't for phones and is rather performance critical) Sep 07 20:38:48 embedded? Sep 07 20:39:19 Nop, servers. Sep 07 20:39:56 SIG ILLOPN is a wierd signal to get from gcc tho Sep 07 20:41:07 I find this answer somewhat less than helpful... though oddly correct for most Android development: http://stackoverflow.com/a/7902285/169115 Sep 07 20:41:33 Lmao Sep 07 20:41:49 lol Sep 07 20:44:45 anyone use haxm? Sep 07 20:45:28 me Sep 07 20:45:28 mhmm, anyone know where can i find an artcle where retrieving row result using pre defined drop down list value? Sep 07 20:45:30 tried to search it up on google, no luck Sep 07 20:45:34 zeltin who doesnt ? Sep 07 20:46:44 how much difference does it make? Sep 07 20:46:53 is this really the best way to code REST clients? http://www.mdswanson.com/blog/2014/04/07/durable-android-rest-clients.html Sep 07 20:47:06 zeltin would think 4x-10x Sep 07 20:47:12 maybe more in some cases Sep 07 20:48:11 ok Sep 07 20:50:14 DarkChaoz, getSelectedItemPosition? Sep 07 20:50:42 cliffreich, I think pretty much everyone that wants to keep their sanity uses Square's Retrofit Sep 07 20:51:16 couple it with a message bus library (EventBus or Otto) and it'll make your life infinitely easier and Android development almost enjoyable :P Sep 07 20:56:20 so im gonna make an app and become a millionaire Sep 07 20:56:29 but i can't get android sdk to work Sep 07 20:57:08 not sure the sdk "works" it just kinda sits there and gets "used" Sep 07 20:57:21 abused more likely. Sep 07 20:57:43 i dont think it recognizes my phone Sep 07 20:57:55 but there seems to be something i have to set Sep 07 20:58:09 lots you have to read too :) Sep 07 20:58:25 for? Sep 07 20:58:34 getting started guides etc Sep 07 20:58:57 oh ye Sep 07 20:59:05 it was easier with HAXE tbh Sep 07 20:59:19 you can just avoid the entire android workflow Sep 07 20:59:44 <_CalLightman_> Hi ... i am trying to implement a custom view - MultilevelExpandableList - but am having a tought time understanding how to go about it, can someone provide me alink to some good tutorial or blog Sep 07 21:00:35 Mavrik i think last time i trued -O3 + -g , gdb was confused :) Sep 07 21:01:01 or -O anything really Sep 07 21:01:29 How do I check where my sdk is installed? Sep 07 21:01:31 g00s, nah, they're not really connected Sep 07 21:01:49 O is a aggregate switch for bunch of optimization switches and -g adds debug symbols Sep 07 21:02:03 zeltin these are all google search worth questions that you can find easily Sep 07 21:02:09 you can easily have both, even though higher optimizations do tend to make debugging annoying since bunch of stuff gets optimized out, -g or no Sep 07 21:02:39 prohobo, if you're on Linux you need to set permissions on USB Sep 07 21:03:16 yar Sep 07 21:03:28 also, enable USB debugging :P Sep 07 21:03:46 <_CalLightman_> Hi ... i am trying to implement a custom view - MultilevelExpandableList - but am having a tough time understanding how to go about it, can someone provide me a link to some good tutorial or blog Sep 07 21:07:16 _CalLightman_ good luck with that, i struggle using single expandableListView Sep 07 21:13:45 Nice, haxm makes the emulator usable Sep 07 21:17:47 whats the best way to capture a camera stream smallest preview size thats blurred to f*ck ? Sep 07 21:17:56 I mean what should I be looking into/at Sep 07 21:19:10 whats the best way to capture a camera stream smallest preview size thats blurred to f*ck ? <--- what does that mean? Sep 07 21:19:34 sorry I want to run either sw or hw blur on it Sep 07 21:19:57 should have just said, manipulate the image/bitmap data and draw it Sep 07 21:20:13 apologies… just tired and grumpy Sep 07 21:20:44 StingRay_, which API do you want to support? Sep 07 21:21:07 16 Sep 07 21:22:01 render camera preview via OpenGL on TextureView / SurfaceView then and use a blur opengl shader Sep 07 21:22:06 that's gonna be the fastest Sep 07 21:22:14 not totally straightforward, but probably by far the best rsults Sep 07 21:22:57 StingRay_, https://github.com/google/grafika/blob/master/src/com/android/grafika/TextureFromCameraActivity.java Sep 07 21:23:08 check out that whole repo, it's full of rather awesome demos :) Sep 07 21:23:38 hey, has anyone had luck disabling activity animations during unit testing with these instructions? https://code.google.com/p/android-test-kit/wiki/DisablingAnimations Sep 07 21:24:03 I have this permission in my manifest: but still get this exception: java.lang.SecurityException: Requires SET_ANIMATION_SCALE permission Sep 07 21:28:19 hello :) Sep 07 21:28:58 Mavrik cheers for this…looking at it seems pretty good, and also way over my head in places :) Sep 07 21:30:02 anyone here knows any android java torrent library? Sep 07 21:38:08 JacobTabak: make sure you have that permission in your test app? Sep 07 21:38:54 lasserix: in AS, doesn’t the test app automatically inherit permission from the main app’s manifest? or is there another way to do it Sep 07 21:39:16 i’ve never had to specify custom permissions for tests before Sep 07 21:39:20 not sure about as but it doesn't in intellij Sep 07 21:39:42 depends on how you set it up but you may just try and add and see what happens Sep 07 21:55:25 hi, if my SharedPreference entry values are integers to i have to have both titles and values to use integer-array on xml? Sep 07 21:56:33 Krisg google translate fail ? Sep 07 21:56:44 or maybe me tired fail … Sep 07 21:56:44 LOL StingRay_ Sep 07 21:56:55 * StingRay_ goes for coffee Sep 07 21:57:12 no StingRay_, you took the words out of my mouth Sep 07 21:57:22 oh, maybe I dont need coffee then Sep 07 21:57:39 actually the fact I dont know if I do or dont probably means I do Sep 07 21:58:10 well ive been up for about 35 hours myself now Sep 07 21:58:13 so im about to crash Sep 07 22:00:46 D9 careful I think thats around the time where you go past tired and get to "everything is funny" Sep 07 22:01:03 bad things happen in the "everything is funny" stage Sep 07 22:01:26 true, i think im going to fix myself a nightcap to help me sleep through the sunlight Sep 07 22:01:37 ahh, the life of a developer Sep 07 22:03:55 fucking gmail filtered out beta invitation arggh Sep 07 22:04:39 beta for what ? Sep 07 22:05:11 arbie please drive over there and help them Sep 07 22:06:49 <3 StingRay, sorry found it ^^ Sep 07 22:08:10 ArcheAge -- i dont generally play mmporgs, but i did play uo back in the day, and it looked like the first 3d mmporg to actually have the "freedom of degrees" uo did so i wanted to check it out (till at least i can feel my soul slowly being leeched) Sep 07 22:08:31 oops w/c Sep 07 22:09:03 hey everyone Sep 07 22:09:11 plus i think there's got to be a market for apps revolving around popular mmporgs Sep 07 22:09:41 hi dr. nick! Sep 07 22:10:15 i'm making an app that needs to authenticate with a server Sep 07 22:10:30 what is the standard procedure to deal with access tokens etc? Sep 07 22:11:32 I mean I send a request to a server to authenticate and am provided with an access token Sep 07 22:13:48 how to manage everything next? Sep 07 22:15:53 ashemark store the token ? Sep 07 22:16:36 StingRay_: in the memory? Sep 07 22:17:02 well I would guess however is appropriate to what the nature of that token is and the exp etc Sep 07 22:17:50 so briefly, what are my options? Sep 07 22:17:57 for short term, say in the memory Sep 07 22:18:03 otherwise in the storage?? Sep 07 22:18:20 ashemark sounds correct Sep 07 22:18:57 StingRay_: is there a specific object to store it or do I create my own? Sep 07 22:19:22 object to do what ? Sep 07 22:20:19 object to store the access token and its expiry etc. Sep 07 22:20:50 well you have lots of options if you read the docs Sep 07 22:20:59 depends how you want it to persist I guess Sep 07 22:21:34 btw I'm more an artist than programmer… and I'm very tired :) Sep 07 22:21:42 StingRay_: no problem buddy Sep 07 22:21:57 actually thinking about it, less tired more dazed for some reason Sep 07 22:21:57 where should I start? Sep 07 22:22:25 http://developer.android.com/guide/topics/data/data-storage.html Sep 07 22:22:43 that's great, thanks Sep 07 22:22:47 be well Sep 07 23:13:16 hey everyone Sep 07 23:16:24 how can i increase navigation drawer handle length?? Sep 07 23:29:48 can the accelerometer somehow be used on the simulator? Sep 07 23:30:00 obv i understand it wont work s nomrally Sep 07 23:30:10 but if you omsehow could manipulate it Sep 07 23:34:41 zeltin: did you try this http://stackoverflow.com/questions/3921467/how-can-i-simulate-accelerometer-in-android-emulator also genymotion allows you to remote control the accelerometer with a real device Sep 07 23:35:16 believe you need to fhe full paid version of genymotion though Sep 07 23:36:11 well it kind of defies its own purpose actually since i want to test the different accelerometers in different phones Sep 07 23:39:02 Can I layout a view bottom up instead? Sep 07 23:39:36 I want a timer on the bottom of the screen and I want it a fixed size, then the game will use the space left above it Sep 07 23:41:01 Is redrawing a SurfaceView faster than redrawing a view? Sep 07 23:55:52 zeltin: yes you can do that, is your container a relativelayout or linearlayout? Sep 07 23:57:06 it’s pretty straightforward if you use a relativelayout Sep 07 23:59:47 also in a vertical linearlayout you can give the first child (your game content) layout_height = 0, layout_weight = 1, then give your second child (the timer) whatever height you want and the first child will take up all the available space at the top fo the screen Sep 08 00:08:21 Can a background image be to small or will it always be stretched to fit the screen? Sep 08 00:10:37 Can you 'reuse' parcelables? I'm passing a parcelable object thru a bundle, and then put that in another bundle. But, i dont want to make it parcelable twice Sep 08 00:11:36 err, have it go thru the object>parcel>object process twice Sep 08 00:14:40 i'm using Android Studio -- does anyone know where the run configurations are stored? I have added my project to a Git repo, but the run configurations did not transfer. Sep 08 00:15:18 run configurations as in what Sep 08 00:15:37 Run -> Edit configurations Sep 08 00:15:55 Those. I have a couple temporary configurations I would like to be saved with VCS? Sep 08 00:17:11 .idea/workspace.xml i believe Sep 08 00:18:43 Found it, thanks Sep 08 01:08:47 bankai_au so is the next release for rx 1.0.0 ? (or after the -rc) ? Sep 08 01:09:02 in other words, after 0.20.x -> 1.0.0 ? Sep 08 01:10:54 doesn't look that way Sep 08 01:11:01 In short, once the current issue list hits 0 open we will bump to version 1.0. Sep 08 01:11:04 Until that time the "semantic versioning" will be prefixed with the 0.* and breaking changes will be done such as 0.5.x -> 0.6.x All incremental non-breaking changes with additive functionality will be done like 0.5.1 -> 0.5.2. Sep 08 01:12:21 they've renamed, did you see? no longer under the netflix banner at mavencentral Sep 08 01:15:54 yeah Sep 08 01:18:57 Hello. How to do this (from this screenshot): http://i.imgur.com/HSUc7BI.jpg ? When I scrolled down, the image is still in the view. The image was just like a background image, something like that. I dunno. Sep 08 01:19:48 desmin88, passing it through a serialization layer will always invoke parceling Sep 08 01:33:18 ohh, I got it. The parallax effect :D Sep 08 01:33:21 Thanks Sep 08 02:09:48 g00s: since you were so interested :) http://goo.gl/Q3l5NE Sep 08 02:10:10 Leeds hey cool, thanks! did you give it already ? Sep 08 02:10:23 yup, Saturday morning Sep 08 02:10:54 they were planning to record the audio for all the talks at the event, but I think in the end they gave up Sep 08 02:12:20 i got to slide 18 - i think the talk is a necessary part ;) Sep 08 02:12:31 they did tweet out a photo and thanks to each speaker, along with something to summarise their talk - for me it was "Thanks @vmlinuz for teaching us that HTC makes great phones, but can't sell them" Sep 08 02:12:47 yeah, the slides were more of a backdrop to me ad-libbing for 25 minutes or so... Sep 08 02:13:50 classic leeds Sep 08 02:15:08 it went down surprisingly well - that is, I was genuinely surprised at how many people came and thanked me afterwards, said it was a good talk, asked questions, etc. Sep 08 02:19:45 slide 14 is the most imformative of the lot :| Sep 08 02:20:13 Leeds i thought you were giving some epic mary-mmeker type talk on the future Sep 08 02:20:17 *meaker Sep 08 02:20:40 I decided it was easier to talk about the past and the present - far less likely to say something silly... Sep 08 02:22:09 the point of slide 14, by the way, was that I really couldn't think of anything interesting to say about tablets... they're there, they're square-ish, they'll keep getting just a little bit faster, just a little bit thinner/lighter... I can't see how there's really anything to say about them Sep 08 02:27:43 g00s: can you think of anything worth saying about the future of tablets? Sep 08 02:29:55 Leeds nothitng really, except that recently IDC forecasted that area would be gangbusters, but turned out to be mostly a flop Sep 08 02:30:18 maybe not a flop, but definitely not living up to their forecast Sep 08 02:30:25 so they are all full of crap ;) Sep 08 02:30:40 that's why I had the quote for 2003 in there Sep 08 02:32:08 all I can say is the only pc better not be going anywhere Sep 08 02:33:00 hey all :) making my first app.. i am trying decide which is the best way to proceed as I am new to java/android development and really only planning a short stay .. but I am trying to detect when the devices looses/regains its connection weather it be internet or wifi .. but the exmples on the android docs only deals with wifi any way not both and building a whole new activity chunk of Sep 08 02:33:00 code is a bit scary for me right now so I am thinking just running a timer to check a function that checks ConnectionManager would actually be cleaner safer bet for me at my level of exp Sep 08 02:34:38 thank god for joda time Sep 08 02:34:48 hooligan321: http://developer.android.com/training/monitoring-device-state/connectivity-monitoring.html Sep 08 02:36:56 whatever happened to ultrabooks ? :P Sep 08 02:37:08 i think that was an intel term Sep 08 02:37:59 they're just not called that anymore Sep 08 02:40:16 so the moto 360 has an omap 3 in it O.o Sep 08 02:43:46 new moto x won't be bootloader unlocked. on verizon Sep 08 02:43:53 what kind of shit is that... Sep 08 02:43:58 hate that carrier Sep 08 02:53:35 i'd consider getting the 'new moto g' on tmo, my favorite carrier :) Sep 08 02:53:51 unlocakable Sep 08 02:54:25 but my lumia 521 is doing just fine, no need to replace it Sep 08 02:55:25 i hate it when companies call it the 'new xxx' ugh Sep 08 02:59:19 I think its fear, they don't have to confidence to just announce the device...they give into hyping it even though most know better. **** ENDING LOGGING AT Mon Sep 08 02:59:58 2014