**** BEGIN LOGGING AT Sun Oct 12 02:59:59 2014 Oct 12 03:05:13 TheUnkn0wn0ne, is it WifiManager.WIFI_STATE_CHANGED_ACTION or WifiManager.NETWORK_STATE_CHANGED_ACTION ? Oct 12 03:08:16 DammitJim: From the docs, WIFI_STATE_CHANGED_ACTION indicates wifi has been enabled, disabled, enabling, or disabling. NETWORK_STATE_CHANGED_ACTION indicates the state of the Wifi connectivity has been changed Oct 12 03:08:50 confusing how they defined it. Thanks! Oct 12 03:09:08 Anytime Oct 12 03:09:28 * JacobTabak high fives TheUnkn0wn0ne Oct 12 03:09:59 * TheUnkn0wn0ne high fives JacobTabak Oct 12 03:14:17 ok i figured it out JacobTabak http://paste.ubuntu.com/8543295/ Oct 12 03:14:27 thank you for the help Oct 12 03:19:24 if i want to use this instead of the normal http client Oct 12 03:19:24 https://hc.apache.org/httpcomponents-client-4.3.x/android-port.html Oct 12 03:20:08 what should i be `importing` in my .java files Oct 12 03:20:24 import org.apache.http.*; points to the ones in android.jar Oct 12 03:20:58 DammitJim: nice name Oct 12 03:21:05 ty Agamemnus Oct 12 03:21:33 hephaestus_rg org.apache.httpcomponents.* ? Oct 12 03:22:06 hephaestus_rg sure that autocomplete is going to help you with that :) Oct 12 03:22:15 it complains about "cannot resolve symbol" Oct 12 03:23:17 http://imgur.com/lVVJ5pT Oct 12 03:27:00 i'm trying to use a version of org.apache.http that i downloaded instead of the default one Oct 12 03:27:12 not sure how to specify which one i want Oct 12 03:29:18 Not sure whether to go back to my Unity game project or Glass/Drone project. Oct 12 03:32:09 unity Oct 12 03:32:13 :) Oct 12 03:32:27 heh Oct 12 03:32:28 actually, I'm bias ... Oct 12 03:32:46 I'm re-creating a game like Twisted System mini-game from Fusion Frenzy Oct 12 03:32:50 but yeah, always games, given me a good life…up till the point I decided to try android programming :) Oct 12 03:32:51 but it of course has some twists Oct 12 03:33:11 StingRay_: game programming? Oct 12 03:33:19 no, games/td/artist Oct 12 03:33:30 well 3d/td/artist Oct 12 03:33:37 ahh Oct 12 03:33:49 worked lots with engine programmers etc Oct 12 03:33:58 and tool chains etc Oct 12 03:37:36 problem with game dev for indie developer is trying to do the graphics stuff Oct 12 03:37:47 im thinking just to buy the stuff from unity asset store but it gets expensive Oct 12 03:38:07 i've got most of the logic written for my game using placeholder objects... just stuck there now Oct 12 03:38:48 QubeZ well I've done artwork for big console games and films ;) Oct 12 03:38:53 keeps getting worse and worse i guess http://www.reddit.com/r/androiddev/comments/2izl2z/every_dev_should_read_this_before_investing/ Oct 12 03:39:04 so if you have multiple apps, they don't say which one is infringing ? Oct 12 03:39:13 StingRay_: can I see some example of your work? Oct 12 03:39:59 I dont really have a portfolio site no more since I started doing this and even before I was an autodesk instructor for 5 years… so maybe 7 years since had a porfolio now Oct 12 03:40:46 QubeZ but was a joke, not really interested atm :) Oct 12 03:41:09 StingRay_: im not looking to hire you... I just wanted to see your work Oct 12 03:42:18 oh, erm, god, most of my work is in print,games,films … so I suppose I can point to games like battlefield etc, and say, I did that…but my job was more fixing other peoples f*ckups Oct 12 03:42:37 sounds good Oct 12 03:42:41 ha, I did ofter take items of work I wanted to do away from the team though Oct 12 03:42:51 like the seark stinger Oct 12 03:43:04 loved that boat :) Oct 12 03:43:19 g00s: when I played Runescape, and it had a monopoly on 2.5D MMOs, shit like that happened every hour. Oct 12 03:43:53 well, cartoonish 2.5D MMOs Oct 12 03:45:53 * StingRay_ has the distinction of working on the lowest selling ps1 title of all time I think :) Oct 12 03:46:01 \o/ Oct 12 04:49:46 Is anyone still around? Oct 12 04:50:02 I need some non-horrific mechanism for getting my game passed along to friends Oct 12 04:52:44 buy everyone a nexus 7 and ship it to them Oct 12 04:53:00 I have an idea Oct 12 04:53:11 do people not use email anymore, by the way? Oct 12 04:53:26 it seems if I email random people, they usually don't email me back Oct 12 04:53:31 even people I know Oct 12 04:53:48 I do Oct 12 04:53:55 I was thinking, a way for users to send the jigsaw game to their friends and offer them to beat the time. Oct 12 04:54:05 my server sends the email Oct 12 04:54:10 I mean email is one of the perks of having a smartphone... Oct 12 04:54:29 there IS facebook integration I could consider Oct 12 04:54:33 and other shit like that Oct 12 04:54:36 But meh Oct 12 04:55:20 Send your game to me :) Oct 12 04:58:06 Agamemnus fb seems the obvious thing Oct 12 04:58:27 not a fan of facebook, but for most games seems to be a high priority Oct 12 04:58:41 least in a share + challenge way Oct 12 05:15:42 Agamemnus: you sure these people that dont respond to your emails like you? Oct 12 05:15:51 maybe they're trying to tell you something Oct 12 05:15:53 iunno Oct 12 05:16:19 just kidding man.... who knows, people dont have the corporate mentality for emails in their personal life Oct 12 05:16:53 I was talking to a company that solid rights to art Oct 12 05:16:53 they're not looking at emails as an important form of communication -- like say, social media would be Oct 12 05:17:02 and the guy keeps ignoring me Oct 12 05:17:07 I have to keep emailing him Oct 12 05:17:11 my contact at the company. Oct 12 05:17:11 so I'd concur, as much as I'm not a fan of FB either... go to where the people are Oct 12 05:17:31 So I mean, email seems outdated for some people I guess. Even for corporate things Oct 12 05:19:19 i guess we should see L in the next few weeks ? Oct 12 05:19:47 i can't wait, if only because it won't be called L anymore, which is ungoogleable Oct 12 05:19:54 or if you're a Verizon customer like me... in another 120 days, if I'm lucky Oct 12 05:20:15 * g00s is not a verizon customer XD Oct 12 05:20:30 those fuckers screwed me over, no way i'd ever use them again Oct 12 05:20:42 I used to root and put the latest ROMs but now my company wont allow corp software on rooted phones Oct 12 05:24:32 QubeZ still working on todomapr ? Oct 12 05:26:30 ok Oct 12 05:26:33 so here's my idea Oct 12 05:26:39 for every one email you send Oct 12 05:26:46 you get a free puzzle to play Oct 12 05:26:51 g00s: yes, put out a new build last night for point click destination Oct 12 05:27:19 oh yes, i see Oct 12 05:27:23 now working on designing the UI to use navigation drawer for the selection and put the tasks on the main dashboard activity so no more of those cartoonish icons Oct 12 05:27:24 oh by the way Oct 12 05:27:40 any of you guys every implement the server validation mechanism of google play? Oct 12 05:27:49 but wrapped up in this unity project too so I may let the to do mapr build I put out last night bake for a bit Oct 12 05:27:52 because I can't figure it out, at all Oct 12 05:28:17 decided to go ad-supported with in app billing -- sold 15 or so copies in the last few weeks Oct 12 05:28:35 Did you do server validation? Oct 12 05:28:42 Or just phone self-validation? Oct 12 05:28:47 south africa, israel, uk, US etc.. pretty neat. Nothing to quit my day job. Oct 12 05:29:03 QubeZ what app ? Oct 12 05:29:08 To Do Mapr Oct 12 05:30:43 QubeZ i see you put it on amazon too Oct 12 05:30:54 how did you manage the maps / geo stuff across platforms ? Oct 12 05:31:12 i'm seriously thinking about releasing for amazon also Oct 12 05:31:13 not the latest build -- I've been getting lazy doing the amazon side Oct 12 05:31:56 QubeZ: Is it server validation? Oct 12 05:31:59 If so, any tips? Oct 12 05:32:00 yeah, gotta get rid of that 6 pack man ! thats so froyo :D Oct 12 05:32:23 g00s: I know, you keep reminding me :) Oct 12 05:32:30 I am.. going to use a nav drawer for the next build Oct 12 05:32:34 but I want to finish this game first Oct 12 05:32:49 Testing Oct 12 05:32:59 g00s: been awhile since I built it for Amazon but I dont remember having to mess with the maps stuff much. Oct 12 05:33:15 Agamemnus: what do you mean is it server validation? Oct 12 05:33:23 How do you validate the IAP? Oct 12 05:33:40 Through Google Play Services Oct 12 05:33:46 just like normal Oct 12 05:34:11 I see. Oct 12 05:34:19 But your server actually serves the content. Oct 12 05:34:37 It's only removal of ads so there is no content to serve Oct 12 05:34:46 it either has ads or doesn't based on the purchase Oct 12 05:34:49 Aha, ok Oct 12 05:35:05 I suppose that itself can be hacked either way Oct 12 05:35:16 Agamemnus I seriously think that for the number of users you are dealing with… this should not be a concern atm Oct 12 05:35:20 I just need a good tutorial on actual server validation (like paypal) Oct 12 05:35:26 when you get to 500k then yeah Oct 12 05:35:26 but in that case, why would you want to server validate? You just need to check Google Play that they bought your "content" then once you gpot a yes from Google you can serve them content. Oct 12 05:35:30 no need to validate anything on your server Oct 12 05:35:37 QubeZ: yes Oct 12 05:35:45 But how do I ask Google Play about that? Oct 12 05:35:48 From the server? Oct 12 05:35:52 From my server. Oct 12 05:36:01 you dont, you do it from the app dude Oct 12 05:36:04 or game Oct 12 05:36:10 But that's not secure Oct 12 05:36:17 what? Oct 12 05:36:39 Let's say you were buying diamonds Oct 12 05:36:46 game / app launches -> query Play Services for a list of content the user has puchased -> serve them content Oct 12 05:36:56 Your phone tells the server where to ship the diamonds. Oct 12 05:37:13 You buy the diamonds with the app. Oct 12 05:37:34 The app tells Google Play about it. Google Play runs a bit and then tells your app that you sent the cash. Oct 12 05:37:47 Then your app calls your server to send the message about where to send them. Oct 12 05:37:58 But... that can be HACKED. Oct 12 05:38:00 you're making this very complicated Oct 12 05:38:05 You can just skip to the last part. Oct 12 05:38:10 and voila, free diamonds. Oct 12 05:38:41 If you've ever implemented Paypal, they have a mechanism for server-side validation. Oct 12 05:38:53 I guess I dont understand what you're trying to do Oct 12 05:38:55 Paypal sends your server data about a purchase. Oct 12 05:39:10 QubeZ no you do Oct 12 05:39:14 I don't want the user's phone to send requests for unpurchased data. Oct 12 05:39:27 just Agamemnus has an app that serves diamonds Oct 12 05:39:30 :) Oct 12 05:39:34 are you selling content from your app that you want to skip the Google Play purchase process and use PayPal to avoid the 30% or what? Oct 12 05:39:45 I'm using Paypal as ane xample Oct 12 05:39:49 an example. Oct 12 05:39:59 lol wtf ya diamond analogy... dude, I'm not 10 years old. You can just give me the real scenario. Oct 12 05:40:05 The app can be hacked to send the diamond server a request Oct 12 05:40:07 Ok, fine Oct 12 05:40:18 Well, it's images in a jigsaw game Oct 12 05:40:35 StingRay_: I took your advice, I'm in Unity working on my game: Ball 'n Walls Oct 12 05:40:36 I don't want people sending requests to the server saying is_premium=1 Oct 12 05:40:40 Balls 'n Walls Oct 12 05:41:00 QubeZ nice… :) but remember my bias ;) Oct 12 05:41:17 lik StingRay_ said... you're over-complicating this given your non-existent user base Oct 12 05:41:25 I know Oct 12 05:41:30 But, it feels wrong. Oct 12 05:41:54 Agamemnus from a production sense your effort and direction feels wrong given the circumstance Oct 12 05:42:08 500k and you have 20 people stealing… start to think about it Oct 12 05:42:17 I just don't understand why there isn't any information about how to do this Oct 12 05:42:22 1million and 2k are stealing, start looking into it Oct 12 05:42:31 20 mil… implement something Oct 12 05:42:35 It's on principle. Oct 12 05:43:00 My code is important to me. Oct 12 05:43:14 you are going to put more effort into this for 0.1% of your userbase than making it acually a good game for the rest Oct 12 05:43:26 not worth it …maybe not ever… but 100% not now! Oct 12 05:43:27 +1 on that Oct 12 05:43:38 I'm sure it's not that hard, but I just need to find good information. Oct 12 05:43:52 I found some old stack overflow posts, but they were extremely vague. Oct 12 05:44:02 let's see if they responded. Oct 12 05:44:20 I mean, I am sure that a large number of paypal based systems are hackable Oct 12 05:44:30 Amazon actually had the same problem. Oct 12 05:44:34 It's disgraceful Oct 12 05:44:49 They had millions to start and couldn't do it right away. Oct 12 05:44:59 Not that I'm amazon. Oct 12 05:45:21 Agamemnus confirmed to be Amazon irl Oct 12 05:45:23 But I'm just saying that the missing server validation mechanism is extremely widespread, and it makes me uneasy. Oct 12 05:45:48 Agamemnus cool but dont alter the utter pointless nature of your concern given your standing Oct 12 05:46:16 if you get to a point where you should worry… I will congratulate you cause the game has made it !! !! Oct 12 05:47:19 yeah get some downloads first :) Oct 12 05:47:36 Agamemnus: whats the Play link to your game? Oct 12 05:47:44 help please, i just set my target project to android-17, Is android-17 runable on Android 4.0. The reason i switch to 17 is because the JavascriptInterface Oct 12 05:48:03 adesst target should be 19, soon 20 Oct 12 05:48:40 oh, if you need that interface, minSdk = 17 then Oct 12 05:48:43 heh Oct 12 05:49:41 https://play.google.com/store/apps/details?id=com.flyingsoft.safari.jigsaw.free Oct 12 05:49:55 g00s: thanks Oct 12 05:50:05 adesst: target and min version are different. Oct 12 05:50:23 17 isn't 4 Oct 12 05:50:23 it works and had tried to run it on emulator and works Oct 12 05:50:25 14 is 4 Oct 12 05:50:32 yes 17 is 4.2.2 Oct 12 05:50:57 so you can't assume that 17 works on 4 Oct 12 05:51:32 Agamemnus: i assumed that 17 is a superset Oct 12 05:51:34 I dunno much about this.. I just set the min version to 14 and max to 19 Oct 12 05:51:40 er, target to 19. Oct 12 06:00:36 i'm seriously considering groovy for some parts of my android app Oct 12 06:00:52 good presentation here http://glaforge.appspot.com/ Oct 12 06:01:25 maybe eve a DSL for some configuration stuff that /could/ be in xml ... Oct 12 06:02:52 Hmm Oct 12 06:02:57 Random question. Oct 12 06:03:04 I already know the answer Oct 12 06:03:19 I'm recording device UUIDs. Sometimes they have dashes ("-"). Oct 12 06:03:29 I guess I should just filter those out? Oct 12 06:03:38 No point in recording the dashes, right? Oct 12 06:03:56 hi room, I’m thinking about making a tool Oct 12 06:04:21 does this sound useful: a tool that detects merge conflicts in ~realtime and alerts you Oct 12 06:04:27 http://www.ietf.org/rfc/rfc4122.txt oh god Oct 12 06:04:58 not for anyone here except maybe like 1 person. Oct 12 06:05:18 oh waitm to use groovy i have to use their own build plugin instead of the google one, gah Oct 12 06:05:28 that would be useful for big companies or teams Oct 12 06:05:46 I work on an android dev team Oct 12 06:06:15 I think it’d be useful to start conversations on overlapping code Oct 12 06:06:24 Sure, sure. Oct 12 06:06:29 and maybe prevent redundant work Oct 12 06:06:56 If it seems to happen a lot, yes. Oct 12 06:07:11 The other way to do it would be to reorganize how your team operates Oct 12 06:07:35 we do have a good tool (PivotalTracker) to manage task assignment Oct 12 06:08:21 which should prevent overlap, but if we’re not diligent enough in defining stories and keeping it up to date things can fall through the cracks Oct 12 06:18:55 Is making an adapter a non-static inner class a bad idea/ Oct 12 06:19:57 from what i’ve read you want to try and default to static Oct 12 06:20:25 can you feed what you’re trying to access outside the class to the adapter on contstruction Oct 12 06:20:40 yeah Oct 12 06:20:48 but i figured if the class is only living during the activity life cycle Oct 12 06:20:55 why not just make it non-static for convience? Oct 12 06:21:24 I think the reasoning is that just in case you move it out later, it’s easier Oct 12 06:21:32 ie I am extending linearlayout or something that will contain a viewpager Oct 12 06:21:37 I typically default to static and go non-static for convenience reasons Oct 12 06:21:42 can't i just make the adapter a non-static inner class in this view? Oct 12 06:21:54 *in this class Oct 12 06:22:06 well I wouldn’t recommend having an adapter in a view class Oct 12 06:22:15 they belong in the controller Oct 12 06:22:28 yeah yeah Oct 12 06:22:35 the adapter is the controller Oct 12 06:22:40 but these are compact classes Oct 12 06:22:44 so i can blend them here Oct 12 06:22:56 is it possible to ask google play for a list of device uuids of your users? Oct 12 06:23:16 uuid of what ? Oct 12 06:23:20 phones Oct 12 06:23:29 devices Oct 12 06:23:40 uuid referenced/generated from what ?????? Oct 12 06:23:41 lasserix, I make the decision to go non-static if I’m really using a lot of the containing classes variables and methods Oct 12 06:23:43 of a specific app Oct 12 06:23:49 the phone man Oct 12 06:23:56 there is no uuid of a phone Oct 12 06:23:59 :( Oct 12 06:24:01 so no Oct 12 06:24:04 :) Oct 12 06:25:32 http://plugins.cordova.io/#/package/org.apache.cordova.device Oct 12 06:25:39 "The details of how a UUID is generated are determined by the device manufacturer and are specific to the device's platform or model." Oct 12 06:25:46 i dunno man. that. Oct 12 06:26:29 so the basic problem is. I know the uuid when a user runs, but not when they install Oct 12 06:26:46 leakage Oct 12 06:27:19 Agamemnus: Do you want to blacklist them? Oct 12 06:27:57 no, I want to record them Oct 12 06:28:21 Agamemnus and StingRay Oct 12 06:28:27 https://www.youtube.com/watch?v=twmuBbC_oB8&t=15m0s addresses the UUID issue Oct 12 06:29:00 basically the argument is to track the installation, not the device Oct 12 06:29:54 the danger of identifying by device is what if the user sells the device and the next user uses your app Oct 12 06:30:03 security issue Oct 12 06:30:15 CanYouFTLTN not relevant to me… I do it properly with accounts Oct 12 06:30:29 Agamemnus: I suspect part of the problem is that you're trying to track a cordova UUID, which isn't an Android thing Oct 12 06:30:50 it's not a cordova uuid per se Oct 12 06:31:02 ok let me think about this Oct 12 06:31:20 the reason I am tracking uuids is two reasons Oct 12 06:31:40 first, I am trying to track user behavior Oct 12 06:31:53 well that breaks if they uninstall and reinstall, but that's not common anyway Oct 12 06:32:22 second.. yes, i want to save their settings Oct 12 06:32:31 some of them. Oct 12 06:32:50 Agamemnus same them to sd/storage or to cloud Oct 12 06:32:57 thats what I do Oct 12 06:33:04 so generate a uuid when they first run it. Oct 12 06:33:21 but you can't run any code on install, can you? Oct 12 06:33:35 no, but on 1st run I can Oct 12 06:33:50 you could set a flag in shared preferences and only execute if it’s not there Oct 12 06:34:02 so I give options to restore settings/accounts etc Oct 12 06:34:05 execute the code once, then set the flag Oct 12 06:34:48 all right Oct 12 06:34:56 I can generate a unique uuid with localStorage Oct 12 06:35:17 and save with* Oct 12 06:35:28 whats with the uuid ? thought you looked at links/info and know it's a bad idea Oct 12 06:35:37 errrrr Oct 12 06:35:52 a unique id maybe Oct 12 06:36:02 settings/prefs if you want to persist beyond installs ..use account/cloud Oct 12 06:36:14 it isn't a bad idea Oct 12 06:36:35 not a generated uuid by the phone Oct 12 06:36:57 account/cloud Oct 12 06:37:10 this is again getting into java and google doc nightmares Oct 12 06:37:14 google drive is a very convenient/easy way Oct 12 06:37:25 Agamemnus this is android dev…it is what it is Oct 12 06:37:38 OH NO JAVA! Oct 12 06:37:46 its not java Oct 12 06:37:57 dammit… i now got the urge for more coffee Oct 12 06:38:04 * StingRay_ goes for coffee Oct 12 06:38:15 so i wonder the best way to approach this Oct 12 06:38:26 a uuid is quick and easy Oct 12 06:38:37 like from the cordova plugin Oct 12 06:39:14 so now what I am thinking of doing is giving users free puzzles if they email their friends Oct 12 06:39:32 i need to store the puzzles they pick somehow Oct 12 06:39:53 should i make this an in app purchase thing for $0? Oct 12 06:40:08 :| Oct 12 06:40:22 you cant i think min is 0.99 Oct 12 06:40:26 o_o Oct 12 06:40:38 i already know exactly how to do this with phone uuids Oct 12 06:40:43 Does enhanced for each loop iterate monotonically? Oct 12 06:40:48 so i can make it a google cloud setting thing Oct 12 06:41:52 or is the iterator ? Oct 12 06:43:15 Leeds http://www.volexity.com/blog/?p=33 Oct 12 06:45:03 lovely... Oct 12 06:45:19 Yes, the minimum is 99 cents Oct 12 06:45:31 cordova... Oct 12 06:46:08 So I know how to set up all the pieces right now, already. Oct 12 06:46:14 i think our topic should say no cordova :D Oct 12 06:46:17 Since the transaction isn't monetary Oct 12 06:46:39 you reminded me how someone used it to display products from shop Oct 12 06:46:43 it was so slow Oct 12 06:47:03 :|... Oct 12 06:47:33 I think I'm going to give up Oct 12 06:47:38 that I decided that I will never install cordova app again Oct 12 06:47:40 NEVER Oct 12 06:48:02 g00s: we've got a nice subtropical getaway planned for next week... can see our hotel here: http://www.youtube.com/watch?v=2jjLe5wIcDI#t=25 Oct 12 06:48:28 gordon_ Oct 12 06:48:36 This isn't Cordova's fault, but Google's. Oct 12 06:48:44 Try it again after the Android L release. Oct 12 06:49:34 Ok. Oct 12 06:49:37 So it's settled Oct 12 06:49:46 Remove ads -- $1.50 Oct 12 06:49:58 Complete set of animals -- $2.00 Oct 12 06:50:21 Email your friends to get 2 free puzzles per email: Oct 12 06:50:24 priceless. Oct 12 06:50:42 (TM) Oct 12 06:51:20 Agamemnus: how is it google Oct 12 06:51:20 This is going to be great.. Oct 12 06:51:24 s fault Oct 12 06:51:37 yay, spam your friends for pizzles :) Oct 12 06:51:38 They're largely in charge of Chromium. Oct 12 06:51:47 er, puzles Oct 12 06:51:51 argh, puzzles! Oct 12 06:51:56 Agamemnus please stop spamming the channel with your brainfarts Oct 12 06:52:09 we don't care about cordova, or shit built with cordova Oct 12 06:52:10 Lol. Oct 12 06:52:59 right, goal for this week, assuming I don't have any real work to do: materialise my current work app, for no particular reason Oct 12 06:52:59 That was very mean. Oct 12 06:53:05 stop it ! Oct 12 06:53:06 g00s: Stop being mean to me. Jerk. Oct 12 06:53:27 He asked me Oct 12 06:53:39 i.e. make it look as much like the new Play Store app as possible :) Oct 12 06:56:44 Leeds would have been great if you were in the video sipping a drink on a pool chair Oct 12 06:57:22 not going to be there until Saturday :) Oct 12 06:57:36 or going down the damn overflow in a rubber duck inflatable Oct 12 06:57:50 move it up ! Oct 12 07:01:13 and something to offset your meanness... http://www.youtube.com/watch?v=m8AggJ3_Xf0 Oct 12 07:08:04 oh no Leeds , you should set them straight http://www.reddit.com/r/androiddev/comments/2iyt0y/vim_and_android/ Oct 12 07:09:06 eh, I don't reddit :) Oct 12 07:09:15 i dont have an account either Oct 12 07:09:33 put i read that subreddit since its like consolidated android news :) Oct 12 07:11:48 Hello everybody Oct 12 07:12:00 probably a good idea... Oct 12 07:12:38 time to brave the mean, protest-ridden streets of Hong Kong and go buy food, make vitamin D, see 3D people, etc. Oct 12 07:12:49 I use BroadcastReceiver to catch SMS, i take picture when contains a text, i would like to know how I can create a kind of "Queu manager" to handle each TakePicture action ? Oct 12 07:12:57 Sorry for my english, i'm french Oct 12 07:14:02 I must use queu because the camera open / jpeg callback save / sendMMS / takes time Oct 12 07:14:41 hy all Oct 12 07:14:57 how can I turn on and off the NFC from API? Oct 12 07:15:36 I have found this: http://stackoverflow.com/questions/6509316/how-can-i-enable-nfc-reader-via-api but I think it's outdated, and they don't say that is perfectly working or not Oct 12 07:15:49 (note, the streets are very unmean, the protest areas are friendly, and a lot of people have welcomed the lack of pollution and community spirit from claiming some roads for the people) Oct 12 07:16:43 Oh cool you can totally do UI stuff off the main thread as long as the UI stuff is not attached to the view hierarchy Oct 12 07:18:09 lasserix is living on the edge Oct 12 07:18:24 heh Oct 12 07:19:36 lasserix is that a common technique ? Oct 12 07:20:01 well i have like two dozen linear layouts that contain some compound views Oct 12 07:20:13 they're all the same but the person wants to use a viewpager to swipe between sets of 3 of them Oct 12 07:20:26 so after i get the user input, i generate them all and pass them to the pager adapte Oct 12 07:20:42 probably i should just pass the state and let the pager adapter construct the views Oct 12 07:20:43 why does my /data dir gets full if connected to internet? Oct 12 07:20:58 Motorola Fire XT530 Oct 12 07:21:11 Android 2.3.5 Oct 12 07:21:36 absk007 please read topic Oct 12 07:21:51 g00s, oops! so where to? Oct 12 07:22:18 i dunno. motorola customer support ? Oct 12 07:22:34 #android maybe Oct 12 07:22:53 it doesn't get full Oct 12 07:22:59 somebody? Oct 12 07:24:00 gregtom6: no idea, but try asking a follow-up question in the comments to the answer Oct 12 07:25:11 Agamemnus: what do you mean "follow-up" question? Oct 12 07:26:33 On StackOverflow. Oct 12 07:27:00 Ask the person who answered Oct 12 07:27:07 In the comments. Oct 12 07:29:53 g00s it takes like 300 ms on my slowest phone so if i just throw it into a bg thread and play some animation for the transition should be perfect Oct 12 07:29:57 hence my motivation Oct 12 07:30:23 yeah, i'm just wondering if thats legit Oct 12 07:30:28 hehe Oct 12 07:30:30 why not? Oct 12 07:30:31 Agamemnus: it would be faster if you would tell me what is the actual state now Oct 12 07:30:40 i am not technically modifying the UI, just preparing it Oct 12 07:30:42 but maybe I will ask that Oct 12 07:30:46 lasserix i dunno! thats why i asked if its a known technique Oct 12 07:30:56 or if it 'seems to work' Oct 12 07:34:07 why does i always lose electric tapewhen i need it argh Oct 12 07:38:12 humm Oct 12 07:38:16 anyone here uses retrofit Oct 12 07:40:37 I do Oct 12 07:40:41 nice, webview `console.log()` prints at `adb logcat` Oct 12 07:44:12 how can I enable NFC from API? Oct 12 07:47:21 in which xml do I add android:background to change colour of ActionBar Oct 12 07:47:29 I am using ActionBarSherlock Oct 12 07:48:36 I have already tried adding it inside menu tag Oct 12 07:51:19 gregtom6 Looney pretty sure both of those questions are very common … and I hope you did some google searches :) Oct 12 07:51:46 I think I did some on Friday Oct 12 07:51:50 will redo it again Oct 12 07:52:00 StingRay_: yes I did and found nothing, only that it can be do in some kind of way, but they doesn't describe that Oct 12 07:52:16 link to info ? Oct 12 07:52:19 gregtom6 Oct 12 07:52:44 StingRay_: http://stackoverflow.com/questions/6509316/how-can-i-enable-nfc-reader-via-api On the bottom of the page they say it should compile with makefile, not with android sdk Oct 12 07:53:02 StingRay_: but where is makefile? or what is that? Oct 12 07:56:20 if i am doign some animations in a view pager, when's the correct/best place to start the animations? Oct 12 07:56:29 the animations should be played when the page becomes current Oct 12 08:01:29 my internet has been broken Oct 12 08:01:32 so I'm back Oct 12 08:03:11 I'm trying to build a HeartTransformation (Picasso Transformation) Oct 12 08:03:44 after some googling I ended up trying to do it by using PorterDuffXfermode and an SVG heart shape Oct 12 08:04:01 but I'm getting null trying to decode the SVG resource Oct 12 08:04:28 anyone with some similar experience around? Oct 12 08:05:14 is there a way on stackoverflow to send private messages? Oct 12 08:05:32 I think you can invite someone to a private chatroom there Oct 12 08:05:51 thats sounds dirty Oct 12 08:06:27 finishingmove: android doesn't support SVG. How are you decoding? Oct 12 08:07:05 I tried with BitmapFactory.decodeResource Oct 12 08:08:05 O..o Oct 12 08:08:26 so would you suggest I use PNGs or some 3rd party lib for SVG? Oct 12 08:08:44 I'm pretty new to 2D graphics generally Oct 12 08:08:48 not really suggested….more like totally required Oct 12 08:09:08 but SVG is heavy anyways … whats the reason for it ? Oct 12 08:09:42 finishingmove: you can either convert the SVG into native Canvas calls or use a PNG Oct 12 08:10:39 JakeWharton: how do you manage switchingbetween your viewstates (since you can only call setContentView once) within an activity? Oct 12 08:11:02 addView/removeView? Oct 12 08:11:06 addView, removeView Oct 12 08:11:09 ahh Oct 12 08:11:10 thanks Oct 12 08:11:19 duh ;p Oct 12 08:11:31 ok, I guess the latter is much easier in that case Oct 12 08:14:51 You can call setContentView more than once. It just calls addView on the decor view group (or one of its children) Oct 12 08:15:01 But you shouldn't. Oct 12 08:18:11 StingRay_: did you find something about my prev question? Oct 12 08:18:24 well, yeah…the info is there Oct 12 08:18:49 an iffy yes with reflection, but officially no …take from that what you will Oct 12 08:22:29 StingRay_: so what should I do? Oct 12 08:22:59 thats a dangerous question to ask a stranger Oct 12 08:23:18 you should "deal" with it however you see fit Oct 12 08:23:42 StingRay_: why dangerous? Oct 12 08:24:15 asking opinionated people to make design decisions for you Oct 12 08:24:52 they will often decide based on their experience and preconceptions, and the dangerous part is these may not line up with your situation Oct 12 08:25:32 and design decisions based on speculation, not all that great at the best of times :) Oct 12 08:25:40 asking is not dangerous per se, it's what you do with the information really Oct 12 08:26:31 listen...I just want to craete an android app that can enable or disable NFC Oct 12 08:26:33 that's all Oct 12 08:27:34 the problem is I don't know how to do that. Maybe it's easier to root every phones for that application to work, but it would be easier to do that without rooting I think Oct 12 08:27:36 There's already an app that does this Oct 12 08:27:38 It's called Settings Oct 12 08:27:54 SimonVT: but I need an own app for do that, because it should be modified Oct 12 08:28:23 If there's no official API, which that stackoverflow question suggests, you're left with reflection, root or modifying the system Oct 12 08:28:51 SimonVT: but I don't know what is reflection, how to do what the person said in that post Oct 12 08:29:12 http://stackoverflow.com/questions/6509316/how-can-i-enable-nfc-reader-via-api/26323084#26323084 Shasin Dhivare said that Oct 12 08:29:19 *Sachin Oct 12 08:29:27 on the bottom of the page Oct 12 08:31:20 He probably means that you have to build the app against the android platform instead of the sdk Oct 12 08:31:23 Like aosp apps Oct 12 08:31:55 You should probably try the reflection approach first Oct 12 08:32:06 At least that's something that can be easily googled Oct 12 08:32:23 SimonVT: and will that work for me? Oct 12 08:32:31 I have no idea Oct 12 08:33:08 Will the other approach work for you? Oct 12 08:34:20 SimonVT: well, I simply don't understand, why should I want to use reflection, because that is for API inspection...and I don't need the official API right now Oct 12 08:34:55 SimonVT: the official API doesn't contain code for enable NFC, at least not with unrooted phone Oct 12 08:35:01 I read this Oct 12 08:35:25 You read that the public API doesn't let you enable NFC Oct 12 08:35:35 SimonVT: yes, exactly Oct 12 08:35:43 Not every method in every class is exposed in the sdk Oct 12 08:36:45 SimonVT: that's why I think it is unusable for me now Oct 12 08:37:00 Methods that aren't exposed can be accessed with reflection. But you're basically relying on the behavior to not change Oct 12 08:37:35 And you don't necessarily have permission to do what those APIs do Oct 12 08:38:25 SimonVT: but I can't find a description about how to do that (the full nfc activation method), but on the other way there are at least 1 person who said it works Oct 12 08:41:29 SimonVT: with reflections, is it possible to write an app what doesn't need rooting? enable NFC without rooting? Oct 12 08:42:09 You'll have to try and find out Oct 12 08:42:26 If there's a method to enable, you can call it. But you don't necessarily have permission to perform that action Oct 12 08:42:36 Since this is not documented, you can either dig through the android source and find out Oct 12 08:42:38 Or, try Oct 12 08:43:05 SimonVT: I'm afraid that would take days to do that Oct 12 08:43:13 because I'm not an android programmer Oct 12 08:43:34 Tough luck Oct 12 08:44:26 View itemView = inflater.inflate(R.layout.viewpager_item, container, Oct 12 08:44:26 false); Oct 12 08:44:29 which constructor is called? Oct 12 08:44:54 Context, AttributeSet Oct 12 08:44:56 I was trying to add a compound view to a view pager, in it I have inflate in the constructor, but now i Have to do this in the view pager Oct 12 08:44:58 ahh okay thanks Oct 12 08:45:21 how can I download this library? http://grepcode.com/file/repository.grepcode.com/java/ext/com.google.android/android/2.3.1_r1/android/nfc/INfcAdapter.java#INfcAdapter Oct 12 08:45:37 the Infcadapter.something part Oct 12 08:45:48 That's not a library, that's android Oct 12 08:45:51 INfcAdapter.aidl Oct 12 08:46:08 SimonVT: okay, so how can I use this in an android application? Oct 12 08:46:58 oh fuck Oct 12 08:46:59 damnit Oct 12 08:48:00 lasserix: Sounds like you divided by zero Oct 12 08:48:03 okay then Oct 12 08:48:15 SimonVT: how to use this android.nfc.INfcAdapter in my android project? Oct 12 08:48:32 How do I add a view to a viewpager without inflating from xml? Oct 12 08:49:37 gregtom6: http://developer.android.com/reference/android/nfc/NfcAdapter.html Oct 12 08:50:03 Darklust: IIIIIIINfcAdapter, not NfcAdapter Oct 12 08:50:11 Darklust: http://grepcode.com/file/repository.grepcode.com/java/ext/com.google.android/android/2.3.1_r1/android/nfc/INfcAdapter.java#INfcAdapter Oct 12 08:50:13 this Oct 12 08:51:40 Figure out how AIDL works Oct 12 08:51:43 Bind to some service Oct 12 08:51:47 Call methods Oct 12 08:52:10 Probably have to build against the framework (the makefile stuff from earlier) Oct 12 08:52:24 And even then, still no guarantee that it works :) Oct 12 08:55:53 People deleted my answer from stackoverflow...I just can't communicate with anybody who is maybe know the answers... Oct 12 08:56:13 that always makes me angry about the whole software developers...but nevermind Oct 12 08:56:15 gregtom6 I think you have been given lots of answers Oct 12 08:56:26 maybe the problem is you dont quite understand Oct 12 08:56:26 StingRay_: no, just only one, but nevermind Oct 12 08:56:33 Unless you actually answered the question, they were right to delete your "answer" Oct 12 08:56:54 SimonVT: that's another problem...concentrate on this Oct 12 08:57:23 Wow Oct 12 08:57:56 Yeah, you can google shit then Oct 12 08:58:12 Darklust: yes, nothing on google shit Oct 12 08:58:20 simply nothing useful Oct 12 09:01:51 I hate that I need to always use lot of hours because of trying to find information about writing or doing small works....because I need to spend tons of hours with researching for application contains maximum of 50 lines Oct 12 09:02:45 if it would be a common question, why there isn't anybody who simply describe the whole method of doing that in the first few findigs in google? Oct 12 09:20:27 hi Oct 12 09:28:40 dont think ive ever used fuck in my code as many times as for this project Oct 12 09:30:12 what are you brewin lasserix Oct 12 09:30:34 some kind of lottery thing Oct 12 09:31:27 they had no spec Oct 12 09:31:30 except two things Oct 12 09:31:52 which means a) i am not getting much out of it b) if i want it to shine its up to me Oct 12 09:32:18 but since shine = much dedicated work but low profit (in terms of cash) it is just frustrating Oct 12 09:32:30 but its going to look really good, i decided a good app in the store is worth the work Oct 12 09:36:03 this code http://stackoverflow.com/questions/3401579/get-filename-and-path-from-uri-from-mediastore and this code http://stackoverflow.com/questions/7856959/android-file-chooser both bring back Null for the file path if the file is not chosen through File Manager Oct 12 09:36:39 if from Downloads, Images, Audio, Video, etc... basically if the file URI returns "content" and not "file" :// Oct 12 09:37:28 hoy, would anyone having "Moto 360" could run these few commands ( http://pastebin.com/8LNn081y ) via adb shell and paste me (in query) the output please? Oct 12 09:38:49 Odaym there is no question there….thought you should know Oct 12 09:39:33 I mean the 1st answers of each, as solutions, do not work for files that return a URI of content:// Oct 12 09:39:53 they do not return a valid path for those files, only for files that return a URI of file:// Oct 12 09:40:22 no I just tested with something from Gallery, it did return Oct 12 09:40:26 and it was content:// Oct 12 09:40:37 hmmm, no idea why this would fail elsewher Oct 12 09:41:17 this is probably strictly for stuff in external storage Oct 12 09:43:46 depends on what content provider is returning Oct 12 09:44:00 you can work it out from the provider part of the uri normally Oct 12 09:44:23 then query accordingly, though if it's return from documents you have to do a few more things iirc Oct 12 09:44:47 Im just going to prompt that they had better move the file to SDCard Oct 12 09:45:03 if the path is null Oct 12 09:47:19 is it possible to pause animations? Oct 12 09:47:43 nah man I can't do that, why would I offer a chooser that opens everything if they can only pick certain files from it Oct 12 09:49:06 Odaym yeah, eventually you will need to resolve chosen items properly :) Oct 12 09:49:06 I think this is a KitKat issue Oct 12 09:49:28 http://stackoverflow.com/questions/20067508/get-real-path-from-uri-android-kitkat-new-storage-access-framework in the question, the 2nd link is what I see Oct 12 09:49:30 the "Now" Oct 12 09:55:59 nah, that code returns null when the file is "Not a Document" Oct 12 09:56:04 game is hard Oct 12 10:18:31 is this an official site or not? https://android.googlesource.com/platform/frameworks/base/+/master/core/java/android/nfc Oct 12 10:18:47 if all of the aidl-s are official, why can't I use them? Oct 12 10:23:18 offical what ? Oct 12 10:23:31 yes they are part of android Oct 12 10:23:55 no gregtom6 like you have been told, they are not part of the open sdk and set of api's used for app dev Oct 12 10:30:04 Hello, i have a custom action bar in an activity to have a centered title, and i'd like to display a textview at the very left, but it's not totally left aligned when the menu icon is displayed. how can i do this please? i uploaded a pic here: http://postimg.org/image/dy03sr53x/. the "50" view should be to the left. Oct 12 10:35:05 Can someone with android wear experience help me out? I have a pretty basic layout, but trying to get a reference to a TextView always results in a null pointer Oct 12 10:37:07 without fail, line 43 results in a nullpointerexception http://pastebin.com/Rfckz46E Oct 12 10:37:45 my xml files are the standard template for wear projects. The textviews exist in my round_activity Oct 12 10:42:54 hey got an issue: sometimes my app restarts the activity from scratch when restarting form launcher, but not from taskmanager Oct 12 10:42:56 what could be wrong? Oct 12 11:09:17 Hi, I am trying to switch to AS but I am having problems with in my opinion a simple task Oct 12 11:09:42 nvm Oct 12 11:37:32 Hi, I'm new to Android. I am writing an app which will receive a stream of bytes which represent images and I want to know what would be an efficient way to display them (each image replaces the one before) Oct 12 11:39:16 load into bitmap and display on either surfaceView or imageView ? Oct 12 11:39:20 maybe :) Oct 12 11:46:00 Hey guys - im about to upload my android app to play store Oct 12 11:46:03 i have 1 question tho Oct 12 11:46:24 i have made seperate apks for phone / tablet Oct 12 11:46:37 i am able to do so right? i mean uploading different apks for the same app Oct 12 11:52:54 hi guys Oct 12 11:53:15 is it possible to get a cursor instance without doing a select query? Oct 12 11:53:43 I need a certain column index but I can't get it without a cursor instance Oct 12 11:58:46 Can someone with android wear experience help me out? I have a pretty basic layout, but trying to get a reference to a TextView always results in a null pointer Oct 12 11:58:58 h4k1m: a cursor is a pointer on a database row, so i think no Oct 12 11:59:13 Ostehaps2: nope Oct 12 11:59:45 danijoo: ok thanks Oct 12 12:00:03 if you want different apps for both you must make 2 apks that exclude the other devices and load them up as seperate apps Oct 12 12:00:19 but what you usually do is using the same apk for both and have different layouts in it Oct 12 12:00:59 danijoo - i was under the impression that multiple apks was supported Oct 12 12:02:02 mh. you can try to upload them both one after another. If you really excluded phones on one apk and tablets on the other they might both stay active Oct 12 12:02:09 that to warn you: this will be a mess Oct 12 12:02:22 you always have to have a bigger versionCode in one of them Oct 12 12:03:06 Am I doing something wrong here? Line 43 results in a nullpointerexception http://pastebin.com/Rfckz46E Oct 12 12:03:20 And no matter what I try, I can't get a reference to any of the views which should have been created Oct 12 12:04:13 I never worked with android wear but why do you have a layout inflated listener Oct 12 12:04:40 shoudnt it be inflated after setCOntentView everytime so you can be sure? Oct 12 12:04:45 That's what the android wear wizard sets up as a template. I tried moving my code out of it, same story Oct 12 12:05:03 mh. no experience with this. sorry :S Oct 12 12:05:24 That's alright. Anyone know android wear? Oct 12 12:06:19 Hello Oct 12 12:06:25 I am Japanese Oct 12 12:06:32 I live in Japan Oct 12 12:08:57 i dont Oct 12 12:09:40 Anyone else know if i am able upload multiple apks for one app ? Oct 12 12:09:45 one for tablet, one for smartphone Oct 12 12:10:22 Ostehaps2: i gave you the only answer that you can get. Oct 12 12:11:11 danijoo was hoping someone had tried it before Oct 12 12:11:53 theres nothing to try Oct 12 12:12:13 one apk per app, but you can have multiple with different versioncodes if they exclude each other Oct 12 12:12:19 Ostehaps2 I have an answer for you : you can try to upload them both one after another. If you really excluded phones on one apk and tablets on the other they might both stay active, that to warn you: this will be a mess Oct 12 12:12:37 :) Oct 12 12:12:45 Well according to the documentation one should be able to upload multiple apks Oct 12 12:12:46 http://developer.android.com/google/play/publishing/multiple-apks.html Oct 12 12:12:59 but i must admit im a bit worried about the process Oct 12 12:13:31 if apk1 has versioncode 1 and manifest says its for everything and apk2 has versioncode 2 and says "only for phones", tablet user will get apk1 and phone users will get apk2 Oct 12 12:13:59 but you always have to take care of your versioncodes Oct 12 12:15:41 Ostehaps2: why do you want to split your app into multiple apks? is it large? Oct 12 12:19:27 btw what I told you is what is described at your link under "Using a version code scheme" Oct 12 12:32:25 That's so strange. My onLayoutInflated method is called *twice*, and the first time it returns "Using rectangular layout" then "Using round layout" the second time. I've found the source of my nullpointer but it looks more like a bug in the android wear sdk :\ Oct 12 12:39:00 yup JavaDog, it's a know bug, maybe you can handle this specific case or use android.support.wearable.view.BoxInsetLayout Oct 12 12:40:10 adq: How would I implement different UIs for round vs. square using BoxInsetLayout? Oct 12 12:40:18 also do not rely on the emulator. By the way, do you own a Moto 360? if so, would you run these few commands ( http://pastebin.com/8LNn081y ) via adb shell and paste me (in query) the output please, it's very fast to do it? Oct 12 12:40:33 and yes, I'm testing on a moto 360 Oct 12 12:40:34 JavaDog, because boxinsetlayout will detect for you that and add enough padding Oct 12 12:40:44 oh cool :) Oct 12 12:40:59 and sure, I'll run your commands Oct 12 12:41:14 thank you very much! Oct 12 12:41:25 (the moto360 is still not available in my country..... (france)) Oct 12 12:41:37 nope Oct 12 12:41:54 hey all Oct 12 12:42:44 adq: They all returned "No such file or directory" Oct 12 12:43:02 seriously ;( Oct 12 12:43:04 It's not rooted, in case it would need that Oct 12 12:43:11 no need root Oct 12 12:43:18 normally it should be available, but thx! Oct 12 12:43:24 sure :p Oct 12 12:48:20 adq: Thanks for letting me know that's a known issue. I've been struggling with it for hours :\ Oct 12 12:48:36 I guess that has to be expected with young SDKs though Oct 12 12:51:47 np! Oct 12 12:58:01 JavaDog, would you run a last command for me (so i won't bother anyone anymore about moto360 ^^), "adb shell ls -lR / > /sdcard/tree" and then pulling the file via "adb pull /sdcard/tree REPLACEWITHTHEPATHYOUWANT", and finally paste it in pastebin Oct 12 12:58:15 so I can know all the files, and maybe find what i want Oct 12 12:58:51 it looks like the G Watch has not the same device tree, same for the emulator too... more fragmentation Oct 12 12:59:38 sure Oct 12 12:59:38 you can remove the /sdcard/tree after pulling it, if you want to keep /sdcard of your moto360 clean (it does not take much space to dump anyway) Oct 12 12:59:44 JavaDog, you rox!!! Oct 12 13:00:41 if you want mine (on G Watch) feel free to ask of course Oct 12 13:01:49 it's just giving me "sdcard/tree: no such file or directory" even after I created the file Oct 12 13:02:08 or maybe do it via first Oct 12 13:02:10 adb shell Oct 12 13:02:12 then Oct 12 13:02:18 danijoo sry had to take a call Oct 12 13:02:21 ls -lR / > /sdcard/tree Oct 12 13:02:36 it should copy the output of ls inside tree file Oct 12 13:02:39 but yeah, the app contains a rather large amount of images - so would prefer having two seperate apks Oct 12 13:03:01 or maybe change /sdcard/tree to a place you know you can write Oct 12 13:05:06 sorry to bother you so much, i would thought it is straigh-forward to retrieve the output of an ls command Oct 12 13:05:34 as I have learned over the past few days, nothing related to android wear is simple :p Oct 12 13:05:41 ahah Oct 12 13:05:47 learning too here ;) Oct 12 13:06:47 what suprising me the most is how the emulator is "far" from a real device Oct 12 13:07:34 file was too big for pastebin, but here you go: https://dl.dropboxusercontent.com/u/13228613/moto360_fileTree.txt Oct 12 13:07:55 Anyone here doing Android freelance work? My application is build using Titanium, so sourcecode is in JavaScript Oct 12 13:08:02 could easily use a helping hand Oct 12 13:08:20 paid ofc Oct 12 13:08:31 woot thank you JavaDog :) Oct 12 13:08:38 no problem :) Oct 12 13:09:00 don't hesitate to ping me about Android Wear Oct 12 13:09:04 if you need something Oct 12 13:09:23 cool ^^ Oct 12 13:37:11 Woo, progress! Things are looking good :) Oct 12 13:37:32 (aside from the graphics I made for my app. those look pretty bad.) Oct 12 14:11:36 hi, i have i fragment created by the activity, which further have 3 fragment, 1st is a normal fragment, 2nd and 3rd is listFragment, the problem is the 2nd and 3rd fragment height are fixed, the content can not be shown completely Oct 12 14:14:28 i mean what a method or UI design can show my 3 table data in one screen completely? Oct 12 14:15:27 semanty the question is that of design Oct 12 14:15:37 StingRay_: so? Oct 12 14:15:38 look at viewGroups and layout parameters Oct 12 14:16:10 so….so nobody here will know what the screen design is Oct 12 14:16:38 blanket answer … look at linearLayout and use layout weight Oct 12 14:16:55 StingRay_: yes, so here I want a design thought Oct 12 14:17:00 as to if that helps you…no idea… cause you need to understand it and I would need to know the screen design :) Oct 12 14:18:05 StingRay_: in fact, i hope the fragment height can be setup dynamically, so it will be easier for me Oct 12 14:24:14 Can someone explain the UP vector in a Matrix.setLookAtM call in opengles 2.0? Oct 12 14:56:58 Hi everyone Oct 12 14:57:12 Hello Oct 12 14:57:20 I am Japanese Oct 12 14:57:25 I live in Japan Oct 12 14:57:34 I am Android developer Oct 12 14:57:49 I want to pass longitudes and latitudes as parameters to uri.builder Oct 12 14:57:52 my apps about 80 for Android apps Oct 12 14:58:23 how do i pass floats and ints as parameters? Oct 12 14:59:06 why do you want to pass floats and ints Oct 12 14:59:19 ashemark does ur editor Android developer or eclipse? Oct 12 14:59:21 just pass strings Oct 12 14:59:33 ok Oct 12 14:59:37 thanks Oct 12 14:59:39 String.valueOf(floatVal) Oct 12 14:59:45 :) Oct 12 15:14:14 how do i disable urlencoding with query param using retrofit Oct 12 15:14:28 it does not have the encodedName as docs say Oct 12 15:15:06 hi #android-dev Oct 12 15:31:00 I have a ViewPager with fragments and it appears empty initially, but when I scroll to another page and back the page is visible. Why is it blank on start? : | Oct 12 15:31:12 http://tinypic.com/view.php?pic=o92w46&s=8#.VDqeP3WUc8o Oct 12 15:32:06 Nohus cause you're doing it wrong … :) Oct 12 15:32:25 StingRay_: Yeah I guesses that. : P Oct 12 15:32:32 guessed* Oct 12 15:32:45 Have no fear, StingRay_ is here!!! Oct 12 15:32:59 well thats about as detailed as it gets :) given the available info ;) Oct 12 15:34:25 StingRay_: Should I paste the pager code, adapter code or the fragment's code? : | Oct 12 15:35:13 if you are only swiping one page, then it's probably not the adapter, if you are swiping two then it probably is the adapter Oct 12 15:35:53 MikeWallaceDev: Page 0 is empty, page 1 is empty, then next pages are ok and when scrolling back 0 and 1 are ok. Oct 12 15:36:56 can someone explain why the opengles 2.0 coord system is so backwards? or is it because something I am doing? i am playing with this example: http://developer.android.com/training/graphics/opengl/index.html Oct 12 15:37:23 this is what my coord systems looks like: http://tinypic.com/view.php?pic=o92w46&s=8#.VDqeP3WUc8o Oct 12 15:37:59 MikeWallaceDev: That means it's the adapters fault? Oct 12 15:38:01 Nohus, that's your adapter. It's probably not setup correctly Oct 12 15:38:07 right :) Oct 12 15:38:39 but the error might not be IN the adapter, maybe it's a timing issue. Oct 12 15:39:39 http://paste.nohus.eu/?wr2mX3 Here is my adapter, anything wrong with it? Oct 12 15:43:50 noone good with opengles ? Oct 12 15:50:54 Soo... yeah. Oct 12 15:54:51 http://stackoverflow.com/questions/26326986/android-opengles-2-0-coordinate-system-is-backwards-what-am-i-doing-wrong Oct 12 15:56:26 what's so backwards about that Oct 12 15:59:42 yuizy positive to the left...? Oct 12 16:00:28 (1,1) is in the upper left quadrant. Oct 12 16:00:36 normally it would be the upper right Oct 12 16:00:43 and I would accept bottom right Oct 12 16:00:49 but upper left...makes 0 sense Oct 12 16:01:01 So it's like the Flash canvas Oct 12 16:02:09 but why? Oct 12 16:04:39 troned, do we work for Google? Go ask them... Oct 12 16:05:28 MikeWallaceDev, no need to work for google to know why, there is probably a reasonable explanation Oct 12 16:06:47 I managed to fix it so I can give "normal" coords as input but why it is like this still makes no sense to me Oct 12 16:12:55 Oh I fixed my ViewPager, I was slowly getting hopeless. Oct 12 16:21:08 found it Oct 12 16:21:09 Note that the eye coordinates are defined in the right-handed coordinate system, but NDC uses the left-handed coordinate system. That is, the camera at the origin is looking along -Z axis in eye space, but it is looking along +Z axis in NDC. Since glFrustum() accepts only positive values of near and far distances, we need to negate them during the construction of GL_PROJECTION matrix. Oct 12 16:21:32 :) Oct 12 16:23:41 does anyone here work on a team as an android dev? Oct 12 16:27:55 team of one Oct 12 16:27:56 :D Oct 12 16:28:52 worked in teams of 120+ but never work in a team on mobil dev Oct 12 16:29:07 mobile* Oct 12 16:29:07 Hello guys! I'm trying to transfer a text message using SIP, is it possible somehow? Oct 12 16:30:44 actually thinking about it, the production dev team were sometimes 30-70 not 120 Oct 12 16:31:26 StingRay_, is a fountain of lies. Oct 12 16:31:58 well I was including QA Oct 12 16:32:11 but you cant really do that since it's normally a shared resource Oct 12 16:35:19 Not AndroidDev related, but the answer blew my mind : http://askubuntu.com/questions/536217/what-environment-does-xargs-pass-to-grep Oct 12 16:35:38 (It's my question...) Oct 12 16:35:46 I was asking this question last night in here… I want to know if anyone would find it useful to have a tool that detects merge conflicts in ~realtime Oct 12 16:37:30 threehourtour, (great nick btw) do you mean with git? Oct 12 16:37:36 yes Oct 12 16:38:07 the idea is everyone installs a client app that monitors for working copy + staged changes and sends patches to a server Oct 12 16:38:44 that server, which also has everyones branches, does a mass comparison and alerts people of merge conflicts Oct 12 16:38:55 hi everyone. Having troubles with running my first app. Im not new in porgramming. But really new in android dev Oct 12 16:39:11 the idea is to get devs talking about areas they’re stepping on each other’s toes early and possibly prevent overlapping work Oct 12 16:39:44 threehourtour in a team thats lead that doesn't really happen Oct 12 16:39:58 well I can only speak from games/console dev Oct 12 16:40:32 so organization prevents any overlap? Oct 12 16:41:13 yeah Oct 12 16:42:19 again, my experience is not in a small mobile team, but in my production orientated roles in large teams, hell yes Oct 12 16:42:27 teams* Oct 12 16:43:48 ah, ok Oct 12 16:46:42 trying to follow google instructions to run first app. And found that row `import android.support.v7.app.ActionBarActivity` does not work. And I have to link this lib to my project. How to do this Oct 12 16:46:44 ? Oct 12 16:47:04 I tryed to copy support folder from sdk folder to /lib folder Oct 12 16:47:26 and then run `android update project -p .` but no success Oct 12 16:47:38 ant still do not see support.v7 lib Oct 12 16:49:23 any suggestion how to include library to the project ? Oct 12 16:51:23 Summoning adq: How can I tell if my watch app is already running to prevent launching the same activity more than once? Oct 12 16:51:43 use in your manifest, singleinstance mode Oct 12 16:52:19 or maybe store a boolean in a sharedpreferences Oct 12 16:52:24 (like a pid) Oct 12 16:52:36 (err like a pid file) Oct 12 16:53:18 that's not specific to android wear though ^^ Oct 12 16:54:08 ah, launchmode=singleTask looks like what I want. Thanks :p Oct 12 16:54:11 JavaDog, android:launchMode="singleInstance" inside your activity of your manifest Oct 12 16:54:23 yep, read carefully the description of launchmode Oct 12 16:54:33 most of the times, you do not need that ^^ Oct 12 17:01:52 room any thoughts on Tizen? Oct 12 17:02:15 is Samsung going to make a big push and switch over to Tizen completely? Oct 12 17:03:52 would be a stupid move Oct 12 17:04:16 as close to nose dive to suicide as they could go I would think Oct 12 17:05:05 yeah I can’t imagine any android developer in their right mind wanting to switch to tizen Oct 12 17:05:08 I think they'll end up losing even more profits trying to do that. Oct 12 17:05:13 considering how hard smasung has made it for us in general Oct 12 17:17:55 goals for this week: 1) keep up with the washing up. 2) 10,000 steps every day. 3) materialise dayjob app... Oct 12 17:22:29 goals for this week's deadlines: 1) oh fuck oh fuck oh fuck oh fuck oh fuck Oct 12 17:34:56 Hello, I am a beginning Android developer and I have a question. If I were to be making an app that made the LED glow when a notification from a different app appeared, how would I programatically wait for the event of the notification? I can't seem to find any documentation on this. Thanks! Oct 12 17:43:00 man what is up with rotation pivot Oct 12 17:43:21 i need to wrap my head around it Oct 12 17:47:41 rotation pivots are strangely appropriate for wrapping heads around them Oct 12 17:48:43 That's satisfyingly violent Oct 12 17:49:33 someone should write a sample app Oct 12 17:49:45 that has something rotating and lets you change the pivot Oct 12 17:49:56 maybe then i would understand it Oct 12 17:54:39 Hey what up? Oct 12 17:55:33 greetings Oct 12 17:55:39 :) Oct 12 17:55:59 thanks JacobTabak Oct 12 17:56:15 i have never been thankaed for greeting someone before Oct 12 17:56:18 thanked* Oct 12 17:56:52 thank you for pointing that out JacobTabak Oct 12 17:57:06 hello MikeWallaceDev Oct 12 17:57:08 whats new Oct 12 17:57:25 I was waiting for the inception jokes ;) Oct 12 17:57:47 cool Oct 12 17:57:53 what's new is that I THINK I'm actually going to get Android to build Oct 12 17:57:55 I am trying to build the standard camera application in the sample api code on the android developer website. However the camera works fine on some phones and not at all on others. It mentions java out of memory errors which due to my research, indicate that I am not loading the bitmap efficiently enough. but the tutorial on the google site says nothing about decoding bitmaps. Should this be something that I have to worry about? Oct 12 17:58:00 compiling as we speak Oct 12 17:58:02 or am i doing something wrong? Oct 12 17:59:07 JacobTabak, why that? Oct 12 17:59:20 bilb_ono, are those rhetorical questions?? Oct 12 18:00:00 Does anyone seen the new gui in google play constole? Oct 12 18:00:35 i just want to make sure it not just me seeing it:) Oct 12 18:00:39 lol Oct 12 18:01:07 they've had a new gui for over a year, did they change it again? Oct 12 18:01:14 MikeWallaceDev, No. I don't know whether I should be doing all this bitmap decoding stuff. Im not sure why it would be necessary if the google camera tutorial doesn't mention it. Oct 12 18:01:39 MikeWallaceDev, I guess I am wondering if it is necessary? for a simple camera app Oct 12 18:01:46 bilb_ono if you take a raw image with the device's camera, you should not be trying to display that same image without reducing the size first Oct 12 18:01:59 Google tutorials are generic bilb_ono , they don't take edge cases into account Oct 12 18:02:04 JacobTabake,i see i thought they just change somethings around. Oct 12 18:02:25 bilb_ono its possible megapixels have gone up since hte tutorial was written Oct 12 18:02:40 ah Oct 12 18:02:42 great Oct 12 18:02:44 but when an image is loaded into memory, each pixel takes 1 byte to display Oct 12 18:02:44 ok thank you Oct 12 18:03:03 so if you're loading a 10MP image, that's 10 MB Oct 12 18:03:07 of memory, which is a lot Oct 12 18:03:32 yeah mine seem to be 19 MB Oct 12 18:03:41 http://developer.android.com/training/displaying-bitmaps/load-bitmap.html Oct 12 18:03:57 adjust the inSampleSize to reduce memory footprint Oct 12 18:03:58 is there an up to date simple camera tutorial somewhere? Oct 12 18:04:41 4 bytes per pixel Oct 12 18:04:51 JacobTabak,i was aking what is this new api thing in google play constole? Oct 12 18:05:12 yea my bad Oct 12 18:05:29 4 bytes :) Oct 12 18:06:35 Sorry for the newbie question. Oct 12 18:08:32 Is there a google support number for developer? Oct 12 18:08:43 perlsyntax what specifically are you asking about? Oct 12 18:09:10 perlsyntax they are notoriously hard to get in contact with Oct 12 18:10:00 really i didn't know that. Oct 12 18:11:47 I just asking if they had a phone number supoort Oct 12 18:12:20 perlsyntax we had an issue a while ago where we got locked out of our account and it took like a month to get it back Oct 12 18:12:40 wow i didn't know that.Sorry to hear that. Oct 12 18:13:53 JacobTabak,I just asking just in case i had probs with my google play constol that all. Oct 12 18:13:59 :) thanks. Oct 12 18:17:32 I hope that don't happon to me. Oct 12 18:17:34 how do i save the app state for another activity... mainactivity A wasnt displayed, so activity B was displaying something, if i switch app when i return it should be there the activity B! Oct 12 18:26:37 cliff it will save its state automatically unless you call finish() Oct 12 18:26:51 you can have multiple instances of activities though, so make sure you're not launching a new one Oct 12 18:28:11 "ChromeOS will no longer support ext2/3/4 on external drives/SD cards", lol Oct 12 18:30:31 perlsyntax you can contact with them via email Oct 12 18:34:07 JacobTabak im checking the code. but still no idea, last activity was the B Oct 12 18:35:28 ill i need some sleep Oct 12 18:35:32 will check later Oct 12 18:35:40 cya Oct 12 19:07:36 so guys isn't there any solution for this issue still http://stackoverflow.com/questions/24437564/update-eclipse-with-android-development-tools-v-23 Oct 12 19:08:11 today again I had to download adt from their website to continue my work. Oct 12 19:10:37 TGMCians: What if I told you Oct 12 19:10:51 ADT isn't in active development Oct 12 19:11:11 yes I also shifted to AS Oct 12 19:11:21 * Darklust slow claps Oct 12 19:11:50 but for my old project i still use adt for a hour or so Oct 12 19:18:36 I'm trying to use beardedhen's android bootstrap library and it seems to be working fine but I can't get the font-awesome icons to load. The common cause of this seems to be forgetting to copy the font-awesome ttf into the project's assets directory, but I've done that and tracing through the code the font seems to be loaded fine. I also see it setting the typeface and text for the icons, but nothing displays when I actually run it. What Oct 12 19:18:36 else should I be checking? I'm fairly stumped Oct 12 19:20:38 and the test project that comes with it, it sows fine there Oct 12 19:32:11 Can I install Android Studio with an already installed Android SDK? I don't want to download everything again. Oct 12 19:33:49 dysoco yes you can Oct 12 19:34:09 So is that configured on the installer or is that a separate download like with Eclipse? Oct 12 19:35:17 by default it comes with latest api + documentation etc. Oct 12 19:35:51 Hm maybe I should just install it with the defalt Oct 12 19:36:03 yup Oct 12 19:36:05 I just don't want it to conflict with my Eclipse ADT I use for game development. Oct 12 19:43:04 Holy crap, I come back from lunch and Android is still compiling! It's been 2.5 hours... Oct 12 19:45:46 I have a web application that is like a dashboard for my home automation system, and it has a SVG I built of my house, and I'm at the point where I'm developing an android app for it. Can I make regions of a SVG clickable in android? Dynamically update a rect to be filled with a certain color? Oct 12 19:47:12 as far as what I've read, SVG support is fairly spotty Oct 12 19:47:41 It's not spotty. There isn't any. But there are libraries Oct 12 19:47:54 I'm not sure about the first question (you'd have to check the library) Oct 12 19:48:00 second question is a yes. Oct 12 19:48:53 Ok I'll check it out, thanks Oct 12 19:49:34 Is there a plan to open up the voice recognition to different top level prompts? It's a little annoying on my android wear to have to have google start my app, and then display the speech recognizer input window, and then give my home automation the command Oct 12 19:49:41 or is there a workaround Oct 12 19:49:55 Other than creating intents for every single action and using 'start' Oct 12 19:51:56 Alright so I'm pretty new to Android Development, I have written for Android before but using LibGDX, an opengl library for games. Should I install the L Preview SDK and learn that or install the 4.4 one? Oct 12 19:52:09 I've never written an Android app per se Oct 12 19:52:57 You'll be fine with 4.4. Oct 12 19:53:33 So there isn't a big difference between L and 4.4? Oct 12 19:53:40 Not with OpenGL Oct 12 19:53:50 no I don't mean OpenGL; I want to make an Android App Oct 12 19:54:02 There is, but it's irrelevant to you. Mostly. Oct 12 19:54:50 Oh, biggest change is a new system theme, Material, but it wont stop you from developing. Oct 12 19:54:51 If you don't expect to release before L is out, just use the L preview Oct 12 19:55:50 Alright and what's the best way to learn? Official Google tutorials for now? I already know Java. Oct 12 19:57:11 Android uses OpenGL ES, not OpenGL Oct 12 20:01:09 Ologn: Oops. That's what I meant Oct 12 20:27:23 hello. I make a android volley post request. When i get the result i get the whole html page and whereas the result is successful i get a malformedjsonexcpetion Oct 12 20:27:54 how can i return only a json_encode("successful") as a result? Oct 12 20:33:37 .. are you asking how to make a webserver return a result when a request is made? That's not really on topic for an android app development channel Oct 12 20:38:04 My god people really need to at least glance over developers.android.com Oct 12 20:38:29 what's developers.android.com? Oct 12 20:40:50 * Mavrik slaps MikeWallaceDev with Android 1.5 Oct 12 20:41:00 :D Oct 12 20:42:17 3 hours into compiling 4.4.4... I wish I knew how much was left... Can I go do chores, or is this thing just about to finish?? Oct 12 20:46:42 MikeWallaceDev, people were talking about 8-16 hour compile times Oct 12 20:46:50 but I don't know about the hardware they had Oct 12 21:05:18 Mavrik, aww man, I read 4... You're killing me Oct 12 21:10:49 I have a modified listview where it behaves as a thumb wheel, ie the center position is the selected row-- which all works fine, Oct 12 21:11:14 my question is what's the best approach to making the rows above and below the center position smalelr, as to make the thing appear on a disc in the z axis? Oct 12 21:26:54 I flashed the new Android L roboto font onto my s5, but now all the emoji are gone. I tried ~5 fonts that say they were official s5 default font but none of them restored the emoji. Any ideas? I am currently restoring a nandroid but it is older (should've backed up right before) so I hope I can copy the font from the restored version... Oct 12 21:27:44 aretecode: Try #android-root, this is for app dev Oct 12 21:28:06 SimonVT, sorry I typed it in the wrong channel! Oct 12 21:28:29 when I am showing a camera preview, is it in bitmap format? or does it only get converted to a bitmap when the image is captured and stored? Oct 12 21:39:53 Is there some way to scale children of a list view based on their vertical position in the listview? Oct 12 21:43:10 Or is there a way to differentially scale along the vertical axis of a view? Oct 12 22:13:11 Anyone know why calling ActivityName.this.finish(); in android wear doesn't want to kill my activity? Oct 12 22:13:21 It just sits there and does nothing Oct 12 22:15:54 nevermind, I think I figured it out Oct 12 22:27:41 how do i add layout params to a textview returning from getView in an adapter? Oct 12 22:29:47 do whatever to the given convertView and return it. they are recycled so have to remember that Oct 12 22:31:11 lasserix: interesting, I just added some 3d rotation effect to my listview, but I was thinking of doing the same thing you are doing as well Oct 12 22:31:41 let me know if you get it working like a spin wheel Oct 12 22:32:03 With an ImageView, can I tell the tools what image to use for the preview? Oct 12 22:32:39 set a src Oct 12 22:32:56 whatitis: I don't want to really set the src, but only for the preview Oct 12 22:33:02 whatitis: it's a grid item Oct 12 22:33:05 shmooz: yeah essentially its that Oct 12 22:33:12 but to do some optimizations though Oct 12 22:33:15 but it works Oct 12 22:34:53 So, this is a C&P from the message I just posted over at #cyanogenmod, I was recommended to post it here and at #cyanogenmod by someone over at #android. Oct 12 22:34:56 Basically, I was an idiot, I went into privacy guard and set "Android OS" as "Ask me" for all permissions. Stupid? Yes. I am a complete and utter idiot. Anyway, I assume, like other applications, privacy guard stores it's data in /data/data/${workspace}, so, I'm trying to mount /data from recovery mode. Unfortunately... it doesn't want to mount. `blkid` doesn't seem to list the block device that /etc/fstab claims /data is mounting from, a Oct 12 22:35:13 oh, tools:src Oct 12 22:35:19 lasserix: but I'm not sure if I'm going to keep my effect, it seems to be slowing down the overall scrolling Oct 12 22:35:40 I guess I should only animate it when they initially load, not when scrolling Oct 12 22:35:52 I feel like this is the wrong place, now that I read the motd, I am really sorry, I just took the advice of someone over at #android, should of checked myself. Sorry for wasting your time. Oct 12 22:36:00 obXiDeJSF: This is the wrong channel indeed Oct 12 22:38:51 lasserix: I tweaked this one to be faster 200ms instead of 10001 as in the example ... http://stackoverflow.com/questions/21728641/animate-adding-item-and-item-movement-in-listview-like-google-plus-app Oct 12 22:42:50 #### make completed successfully (05:36:25 (hh:mm:ss)) #### Oct 12 22:43:05 make what? Oct 12 22:43:33 Android 4.4.4 :) My first build... stock Oct 12 22:45:53 Gah I hope you didn't watch the terminal output while that was occuring Oct 12 22:46:19 Friend of mine went blind and insane Oct 12 22:46:29 not too much this time Darklust Oct 12 22:46:41 I've been trying to build for a week! Oct 12 22:47:18 congratulations Oct 12 22:47:47 thanks :) Oct 12 22:48:41 I have an opengl app, and I would like to be able to render one extra frame before the activity goes into pause. is this possible? I.e can I get notified before onPause that I will be paused? Oct 12 22:48:41 I posted a few questions regarding the build failing. The reason it failed is unbelievable... Oct 12 22:49:00 MikeWallaceDev: are you gonna make some app? Oct 12 22:49:40 shmooz, I made plenty... This is building Android itself. I needed it for a paper. Oct 12 22:50:13 like a thesis ? Oct 12 22:50:53 just an article Oct 12 22:51:29 what was the reason it was failing ? Oct 12 22:51:48 ready for this? .... Oct 12 22:52:09 because grep was returning colored values Oct 12 22:52:47 ANSI? Oct 12 22:53:03 I have GREP_OPTIONS=--color=always Oct 12 22:53:43 and that made one of the generated files have incorrect values Oct 12 22:57:42 here is the question that I had on Stack Overflow Oct 12 22:57:44 http://stackoverflow.com/questions/26283055/how-do-i-build-android-aosp Oct 12 23:00:56 MikeWallaceDev: you should update it with the reason that you found so everyone knows Oct 12 23:01:19 duh. Why do you think I have the link? That's what I am doing now Oct 12 23:01:53 ohh Oct 12 23:03:00 posted Oct 12 23:03:11 shmooz: the key is to only invalidate past some delta that's like ~ row height Oct 12 23:04:09 oh you are adding a bounce to incoming Oct 12 23:05:43 lasserix: you could modify the 3DRotate code to have it rotated at the top and bottom depending how close to those edges it is Oct 12 23:06:04 and magnify as well as it gets towards the center Oct 12 23:07:47 yeah i have the latter effect Oct 12 23:08:09 can you show me the relevant code to that ? Oct 12 23:08:27 do you put it in your getView() ? Oct 12 23:08:34 umm Oct 12 23:08:46 i subclass the row Oct 12 23:08:55 then in getview pass the center of the listview (y) Oct 12 23:09:15 then in onDraw of the that row, calculate the scale based on the difference between the row's center Y and the listview's center Y Oct 12 23:13:01 lasserix: how do you detect the current y position of item in getView ? Oct 12 23:13:08 you dont Oct 12 23:13:16 you pass the center into the row Oct 12 23:13:35 in getview, then in ondraw of the row, do top + height / 2 to get row center y Oct 12 23:13:50 hmm Oct 12 23:14:35 then take the difference and apply some equation to get the appropiate scale and scale the canvas Oct 12 23:14:38 or the textsize or whatever Oct 12 23:15:25 but like i said the key is to use onScroll in the listview and do a delta so it only invalidates the views for some delta ~ row height otherwise it'll fire too much and cause sluggishness Oct 12 23:16:54 is top+height/2 seems wrong unless top is always 0 Oct 12 23:17:02 ? Oct 12 23:17:23 to get center of a row Oct 12 23:17:26 getTop + (getHeight(() / 2) Oct 12 23:17:32 youd do height/2 Oct 12 23:17:43 yeah Oct 12 23:17:48 k Oct 12 23:17:49 order of operations means the division happens first ;p Oct 12 23:20:01 BEDMAS Oct 12 23:20:04 I dun it. Oct 12 23:20:20 oops you did it again Oct 12 23:21:04 hello Oct 12 23:21:21 hi Oct 12 23:21:27 i need to import a eclipse project, i am using android studio Oct 12 23:21:47 but in the import options there is no option for eclipse Oct 12 23:21:56 its right in the wizard Oct 12 23:22:01 just gradle and maven Oct 12 23:22:29 in the import project froma external model... Oct 12 23:22:59 i don't have configured eclipse in the machine, but i an taking a andorid class from coursera and this class is using eclipse Oct 12 23:23:19 so use eclipse Oct 12 23:23:35 so i need to import a eclipse project, and studio just are giving me those two options, i chosse gradle? Oct 12 23:24:09 i was trying to not need to configure everything again -_- but this not seems a option afterall -_- Oct 12 23:25:08 you can import without converting to gradle or whatever Oct 12 23:25:26 would not be broken? Oct 12 23:25:29 it will nag you to port it to gradle though Oct 12 23:26:39 i had eclipse here, but installed it from apt get Oct 12 23:27:06 i think i will try to configure it, since i have the sdk tools here... Oct 12 23:27:28 yes you should be familiar with what the school is using Oct 12 23:27:47 yes, also studio is getting me mad... Oct 12 23:28:03 take me a long time to make it just run a hello world app Oct 12 23:30:01 from gradle to grave is not a very long time ;P Oct 12 23:31:09 i think google should have waited more Oct 12 23:31:38 maybe android studio have good potential, but now is not the time to throw studio on ours faces Oct 12 23:32:17 I've been using it since the day it came out, and it's fantastic! Oct 12 23:32:33 that's is the reason the professor don't want to use the studio, the course is up to date, so he knows that google is throwing studio on the developers, but he said that studio is still 2 much buggy Oct 12 23:33:06 i got stucked in the old version bug with a slow internet Oct 12 23:33:44 i can't say yet what a think, but you need a google on your side, yes you can fix fast any bug Oct 12 23:33:50 at least the most common ones Oct 12 23:34:55 but if you have 3 days to send a assigment and one of those days you just have a VERY slow internet and on the other days you just get in home at 18:00 Oct 12 23:35:42 the studio would be a problem... This and the fact that the course will not help me on anything related to the studio bugs... Oct 12 23:36:26 draxdeveloper: you can do IntelliJ IDEA, maybe it doesn't have the same bugs Oct 12 23:36:38 I won't say that there aren't any bugs, it's software after all. But I never have any problems with Android Studio Oct 12 23:37:29 i think studio is OK for production use. it crashes on me here and there but nothing stopping work Oct 12 23:37:44 do you use a Mac g00s_ ? Oct 12 23:37:57 it comes down to the build system - if that is broken, well then yeah you can't build. but its been pretty good these days Oct 12 23:38:01 MikeWallaceDev yes Oct 12 23:38:25 g00s_, so far, everyone who said that it crashes is on Mac... Oct 12 23:38:49 (by so far, I mean since the last few days when I have been asking this question) Oct 12 23:38:53 maybe something to do with the JVM we all use (apple) Oct 12 23:39:08 yes, now is kind of fixed... Oct 12 23:39:30 for me everything worked fine until like version 0.6x and then I tried skipping to 0.8x but I got lazy Oct 12 23:39:31 i had some problems on the begging, but i am using opend jdk, so maybe this is the problem... Oct 12 23:40:10 but the problem now is that i need to import the project and even if the chances are slight Oct 12 23:40:21 i am aiming to the 50 bests of the cours Oct 12 23:40:24 course Oct 12 23:40:47 How big is your app draxdeveloper ? Oct 12 23:40:54 so i can't afford use a different ide and going against the course Oct 12 23:41:01 is not my app, is the course app Oct 12 23:41:05 i also don't use NDK so not sure how thats all worked out Oct 12 23:41:13 the problem is Oct 12 23:41:22 i started the import wizard Oct 12 23:41:38 and don't have the eclipse external model as a option Oct 12 23:41:44 just gradle and maven Oct 12 23:42:32 when i have more time i will configure better studio, maybe it's give me a headstart :) Oct 12 23:43:29 but, now i just need to do a really simple assigment, but just have until tomorrow, and tomorrow i will work unitl 18:00... And will wake up 5:00... So yeah, no luck this time Oct 12 23:49:13 just to dream a little lol (because no way i think i would get on top 50 from 70.000 students), but amazon is a good place to work? Oct 12 23:54:07 draxdeveloper: Too many blood-thirsty animals and diseases, but I heard the women are something to see Oct 12 23:54:53 UNREAL Oct 12 23:55:02 took me a few seconds Oct 12 23:55:12 ;) Oct 12 23:57:28 well Darlust, you made this joke to a Brazilian, so well... Oct 12 23:57:38 But i saying amazon store uU Oct 12 23:58:26 in theory, the top 50 of this course will have their curriculum sended to amazon, don't know what they will do with this Oct 12 23:59:37 They will go to the circular file at Amazon HQ. Oct 13 00:00:33 Very heavy I/O. Oct 13 00:13:44 hum... But they said that this is a patnership of amazon and this course... Oct 13 00:14:46 Whatever lol, what is the difference between use the java generated R file and the xml file with @ ? Oct 13 00:15:04 in other words, when i should use each one of the methods? Oct 13 00:17:06 no idea Oct 13 00:17:13 i hate java Oct 13 00:17:17 -_- Oct 13 00:17:57 but you are a android dev right? is a needed evil lol Oct 13 00:18:20 lil bit Oct 13 00:19:26 lil bit? android is java lol, you generete java files... Oct 13 00:20:26 i'm a lil bit of an android dev, and yeah Oct 13 00:20:32 i code in javascript mostly Oct 13 00:29:03 lost connection heer Oct 13 00:29:06 here Oct 13 00:33:24 i see Oct 13 00:34:33 Agamemnus: you tried playing with dart? Oct 13 00:36:41 no Oct 13 00:36:51 too many languages to shuffle around in my head Oct 13 00:49:17 hum... if i need that a activity starts another specified activity, how can i proceed? Oct 13 00:49:33 i can create an intent with the activity name? Oct 13 00:50:01 use the power of the droid Oct 13 00:50:11 or i need to know what is the right intent type to the said activity Oct 13 00:50:18 what? power of droid? Oct 13 00:50:25 the power of the droid Oct 13 00:50:28 repeat after me Oct 13 00:50:58 draxdeveloper: are both activities yours? Oct 13 00:51:08 'o Great and Holy lord of digits, master of autonomy and creator of all that is Android' Oct 13 00:51:27 yes, both activities are mine Oct 13 00:51:43 'Bestow upon your humble servent an activity started in the name of < your activity name > so that your will may be done' Oct 13 00:52:04 draxdeveloper: are you starting B to get something for A ? Oct 13 00:52:15 yes Oct 13 00:52:29 there is a button on 1 that starts 2 Oct 13 00:52:38 then you probably want somethign called Oct 13 00:52:44 startActivityForResult Oct 13 00:52:54 no, i don't need the results Oct 13 00:52:58 o Oct 13 00:53:00 i know that makes no sense Oct 13 00:53:07 then you can just do a normal activity Oct 13 00:53:07 but it1s just an exercise Oct 13 00:53:09 intnt Oct 13 00:53:21 yes, but what i put on the intent? Oct 13 00:53:39 to direct the android to understand that i want to start the activity 2 Oct 13 00:54:06 basically just the activity name Oct 13 00:54:24 ok, that it's was my doubt, ty Oct 13 00:54:44 Leeds did d.android.com drop off the face of the planet ? nobody seems to read it :) Oct 13 00:54:56 maybe unavailable in most parts of the world :) Oct 13 00:55:12 Intent intent = ActivityTwo; ? Oct 13 00:55:48 g00s_: docs are hard Oct 13 00:57:02 the intent documentation is huge and i got lost there @@ Oct 13 00:58:35 g00s_: so, docs are hard :) Oct 13 00:59:01 there are a few spots in the docs that things are actually clear :) Oct 13 00:59:45 ah, i think i found it Oct 13 01:00:13 sorry about it, i need to finish it today lol Oct 13 01:01:57 i think the new Intent() part was missing... But all example are with the class extension, the class name is the same of the .java file right? Oct 13 01:02:40 yup Oct 13 01:03:26 that's the way Java works, right? Oct 13 01:05:04 yes, like i said i an axious because i have just a little time, even being something simple uu Oct 13 01:06:28 yeah... one thing to know about getting help from random strangers online - your deadline isn't as important to us/them as it is to you Oct 13 01:07:46 dead line ("due date") Oct 13 01:07:52 yeah i know, sorry Oct 13 01:15:02 Leeds: I used to have a sign at $oldjob-2, "failure to plan on your part does not constitute an emergency on my part". People didn't like that sign. :P Oct 13 01:15:19 heh Oct 13 01:15:21 Leeds: I also had a sign that said "Stupid should hurt". I didn't like that job. Oct 13 01:15:28 I just found both signs today while cleaning my basement Oct 13 01:16:00 sounds a bit like the guy who famously had a jar of rubber fingers on his desk - implicit "don't give me a reason to add yours" Oct 13 01:16:24 Leeds: That job sucked. :P Oct 13 01:25:22 my stupid PIA mac vpn client is leaking memory like hell Oct 13 01:31:24 Apparently the SettingsActivity generated by android studio uses lots of deprecated stuff, does anyone know of a guide to do things properly? Oct 13 01:31:50 i haven't looked at it, but deprecated on android means "there is a better way to do this" Oct 13 01:31:59 usually Oct 13 01:32:12 so son't sweat it Oct 13 01:37:33 i don't know if i should jump in studio yet... There are so much mixed reviews... Oct 13 01:38:20 and some buggy stuff, i just don't know yet if the bugs can compromise your app someway... I will need to do the long run to decide Oct 13 01:38:26 until then i will use both Oct 13 01:41:24 I've used eclipse to make a few apps, and this is my first time using it, and I've been able to put together a wear app and mobile app without any significant issues or show stopping bugs Oct 13 01:55:01 Studio was painfully annoying to setup Oct 13 01:55:08 I don't feel it's reayd for the big time yet Oct 13 02:02:33 anyone use groovy on android? i get the impression that instead of using the official google gradle plugin, i have to use theirs - which is a red flag Oct 13 02:05:24 whats the action bar import for backwards compat? Oct 13 02:05:50 draxdeveloper: intellij is the way to go Oct 13 02:05:55 as is just a specialized form of it Oct 13 02:06:46 goos what's the free icon resource you link? Oct 13 02:07:15 flaticon? Oct 13 02:08:44 lasserix hm, there are a few Oct 13 02:08:47 noun project ? Oct 13 02:09:05 feel like so many of those are liscence tho Oct 13 02:16:39 g00s, official plugins are overrated, when are you going. to get it Oct 13 02:17:16 g00s, no 3rd party language works well on the official plugin Oct 13 02:18:40 ugh, so full Oct 13 02:37:30 When I publish a new APK for my app on the google play developer's console will it notify all users who downloaded my app previously that there is an update? Oct 13 02:37:53 and damn, no business class. on the flight home. tomorrow :( Oct 13 02:38:13 MartialLaw, only people who have it installed from play Oct 13 02:38:26 pfn, they will be notified? Oct 13 02:38:33 alright thnx Oct 13 02:39:00 have you not ever used android? Oct 13 02:41:27 MartialLaw the user can disable 'auto-update' for your app in play, but otherwise yeah Oct 13 02:42:11 I have a GLSurfaceView, and implement the onSurfaceDestroyed callback. At one point my app shows a popup, so the view gets paused, and upon resume my GL context seems to have been flushed(which I expect), but surfaceDestroyed is never called. should it not be? If so, what am I missing? Oct 13 02:45:46 private static native void nativeOnStop(); Oct 13 02:45:46 private static native void appSetPaused(int paused); Oct 13 02:54:27 Zubits look ... handy Oct 13 02:54:35 or should i say footsy :) Oct 13 02:56:26 Cheese Oct 13 02:57:14 omnomnom Oct 13 02:57:17 i overate Oct 13 02:57:40 lol, i just used the new play for 5 minutes and aleady found a bug Oct 13 02:57:53 cheetos Oct 13 02:57:58 google really needs to step up their QA Oct 13 02:58:00 the new play? Oct 13 02:58:18 Play has been crashing for months on me Oct 13 02:58:31 I haven't gotten the update yet Oct 13 02:58:58 especially when you scroll down to my game Oct 13 02:59:02 get to the screens Oct 13 02:59:04 boom, cras Oct 13 02:59:06 crash. Oct 13 02:59:39 The puzzle? I didn't have an issue **** ENDING LOGGING AT Mon Oct 13 02:59:59 2014