**** BEGIN LOGGING AT Mon May 12 02:59:59 2014 May 12 03:16:37 almost as bad as pull to refresh fart May 12 03:19:44 you don't like pull to refresh ? May 12 03:19:58 can't stand it May 12 03:20:12 what is it about it that you don't like and what is a better alternative May 12 03:20:28 I'm just scrolling back up and the thing refreshes, how annoying May 12 03:21:00 just have a refresh button May 12 03:21:19 the one on gmail isn't too bad, you have to pull it down pretty far to refresh May 12 03:21:29 like the circular arrow in firefox May 12 03:22:09 and then you wonder which apps have it and which don't so you keep pulling to see May 12 03:23:02 maybe it should be push to refresh, that would be better May 12 03:23:21 when you get to the bottom and you keep scrolling down, it should refresh instead of at the top May 12 03:23:42 that wouldn't work for really really long lists May 12 03:23:48 less annoying at least May 12 03:24:33 on most of them its not like they put the new items at the top where you are refreshing, they usually get added to the bottom of the list May 12 03:30:12 never seen an app do that :/ May 12 04:00:28 how about...shake to refresh...? May 12 04:01:41 lol I was gonna say that, but if you're on a bumpy road it could get annoying May 12 04:03:21 I guess you'd put user choosable in settings, pull, push, shake , tap to refresh, and then can pick what they want May 12 04:10:31 haha, I was half-kidding, I always find anything requiring you to shake a bit of a gimmmick May 12 04:10:56 I find it funny how google maps will pop-up a dialog if you shake the device while you're using it May 12 04:11:21 a dialog to send feedback May 12 04:11:40 like it assumes the app isn't working, and you're shaking the phone cos you're frustrated :P May 12 04:18:46 is that how you found it ? May 12 04:21:56 * SirLagz tries shaking google maps May 12 04:22:12 lol May 12 04:22:21 it does do that ! I'm going to shake my apps from now on. May 12 04:23:59 then log a bug report with every app that doesn't respond correctly to it May 12 04:24:16 haha May 12 04:31:48 hello. can I ask few questions May 12 04:31:54 nope May 12 04:32:08 that was quick May 12 04:32:11 lol May 12 04:32:25 i hear that a lot :( May 12 04:39:45 I'm a n00b at this, and I need some pointers for conceptualizing the 2D game I'm writing. May 12 04:41:18 I created a class, public GameThread(StationViews view), StationViews is just a SurfaceView child, inside OnDraw I draw on canvas. Individually in each View it works, I have 2 StationViews, one is an asteroid rain, and the other is a rolling background. May 12 04:42:13 Now I'm trying to combine all the SurfaceView I've drawn onto the same canvas May 12 04:42:43 I declare the elements as May 12 04:42:48 movingBackground = new GameThread(new StationBackground(context)); May 12 04:42:48 movingMeteors = new GameThread(new StationMeteors(context)); May 12 04:43:29 and I try to run them both on the same view May 12 04:43:42 using something like this.. protected void onDraw(Canvas canvas) { May 12 04:43:43 System.out.println("we here"); May 12 04:43:43 movingBackground.run(); May 12 04:43:43 movingMeteors.run(); May 12 04:43:43 May 12 04:43:43 } May 12 04:43:52 pastebin May 12 04:47:05 this is my implementation of the view. http://pastie.org/9167467 May 12 04:47:33 this is my implementation of the thread http://pastie.org/9167466 May 12 04:47:51 moar pasties! May 12 04:48:28 Leeds ?? May 12 04:49:19 ^& May 12 04:50:46 this is the most relevant code I think I have.. I don't know if I just complicated my life, I tend to think of things as objects so now I have a thread that instantiate a view, that can draw itself, and trying to put them on the same canvas. May 12 04:55:46 this is the super class for the surfaceview items May 12 04:55:48 http://pastie.org/9167482 May 12 04:58:30 this is one of the views I'm creating separately. http://pastie.org/9167484 May 12 04:59:15 you have hit your pastie limit May 12 04:59:50 it would be best to directly paste into the channel, address to Leeds May 12 05:01:42 oh boy okay, I don't know if Leeds moar meant he needed more code from me, or he was simply uninterested. I was originally keeping it to 2 pasties. just to keep simple. May 12 05:03:34 st34lth yeah, after 4 pasties, probably best to just give Leeds a vimball May 12 05:05:03 don't forget to add the bacon May 12 05:08:51 mmm bacon May 12 05:09:05 st34lth: why not just combine the drawings? can you guarantee background gets drawn before meteors if using seperate threads? where did you come about this logic? i don't know much bout what you are doing, but seems logic is off May 12 05:09:57 and meant combine as in do in one pass, or atleast syncronized for layering May 12 05:13:24 canvs2321-: this is my day 3, I thought if each layer was drawn differently it will give me abstraction, in case I need to reuse that scrolling background for a next level. Bottom line is, what I want to achieve is to have synchronized layers, I could really draw them all in same big class, and make it work that way, but that will leave me with a huge class, I won't be able to debug later.. I have at least 3 or 4 more thi May 12 05:13:24 ngs to add. like a flying spaceship and bullets May 12 05:15:49 how would you have done it? May 12 05:15:53 i'm saying calling .run() .run() there is no syncronize May 12 05:16:16 draw where ever you want, but when final drawing make sure every part has finished May 12 05:19:28 this is one of the views I'm creating separately. http://pastie.org/9167484 canvs2321- I should put finished at the end of onDraw? and how would I syncronize it then May 12 05:23:01 plus seems like in the onDraw when you run() you are doing logic that should be decided before onDraw, you can optimize that before hand so not doing work in onDraw. just seems you need to make it all work as one big class, then work on refactoring May 12 05:24:41 I am getting an insufficient storage error when I install but I have 209MB of storage in /data May 12 05:25:54 the console says to look in logcat, but there's nothing there about why it can't install May 12 05:33:09 Jonno_FTW may have something to do with your partitioning May 12 05:33:31 /data may be OK, maybe somethings else is not May 12 05:34:10 i'm not really sure how to find out though May 12 05:51:28 g00s: my partitions look like this: http://puu.sh/8J4MJ.png May 12 06:10:49 I am using Fragments native api to create an app for 4.0+ OS, but for using ViewPager i am still depended on Android support library v4. So should i go with the Fragments from the Support Lib v4 or the native one for development ? May 12 06:22:07 hmmmm May 12 06:34:39 Hi May 12 06:35:03 Eclipse in the android adt is giving me trouble, did this happen to others May 12 06:45:33 pretendo: be more specific May 12 06:46:43 Giving me trouble with the shared JNI May 12 06:46:47 When I try to run eclipse May 12 06:47:25 is your adt updated? May 12 06:52:10 This is the first time I downloaded it May 12 06:52:15 Straight from the android website May 12 06:59:30 I just updated my Jre and jdk and even copied the Jre folder into the eclipse folder so it wouldn't fuss about the path May 12 06:59:52 you did what. May 12 07:00:54 It couldn't find my javaw.exe May 12 07:00:56 pretendo: you could just update your environment var May 12 07:01:02 *should May 12 07:01:07 I didn't it didn't work May 12 07:01:09 Did May 12 07:01:16 did you restart your pc? May 12 07:01:25 or log off log on? May 12 07:01:27 No what would that do May 12 07:01:35 lol May 12 07:01:39 lordie May 12 07:01:56 you copied your jre into eclipse? May 12 07:02:00 variables are assigned on login as far as im aware May 12 07:02:30 Yes May 12 07:02:34 It seemed to work May 12 07:02:46 whats the problem now then? May 12 07:02:50 I just followed the error messages May 12 07:03:02 It's a diff error message May 12 07:03:13 so whats the new error message May 12 07:03:15 Says there's an issue with the "shared JNI" May 12 07:04:26 copy paste the whole message May 12 07:04:44 "thers an issue" is so vague May 12 07:06:03 "Failed to load the JNI shared library" the has the address of the jvm.dlll file which Js there May 12 07:06:05 Is there May 12 07:07:07 Why does everything involving java have to have so many god damn problems May 12 07:07:25 because you arent using it correctly May 12 07:07:58 revert your copy paste May 12 07:08:13 created the env vars for JAVA, JAVA_HOME May 12 07:08:20 and PATH May 12 07:08:28 restart machine May 12 07:08:34 enjoy developing for java May 12 07:09:10 So put the env vars to the dll or the exe? May 12 07:10:53 http://stackoverflow.com/questions/1672281/environment-variables-for-java-installation May 12 07:10:56 or something May 12 07:12:18 So jdk not Jre now? What the hell May 12 07:12:20 Java is garbage May 12 07:12:52 Jdk = Java Dev Kit May 12 07:12:59 Jre = Java Runtime Env May 12 07:13:03 You are developing, right? May 12 07:13:17 no he's whining May 12 07:13:34 :^) May 12 07:14:16 I think I understand now May 12 07:26:05 hi! May 12 07:26:17 Kevel: I followed in and typing java into cmd doesn't do anything May 12 07:26:21 has anyone used flickr api before? May 12 07:26:29 any *good* libs to recommend May 12 07:26:56 Kevel: Ive seen some cases where both the dk and re are needed in IDEs at least May 12 07:27:48 Lol java May 12 07:28:11 still better than obj-c ;) May 12 07:28:28 Typing java into cmd still is not recognized as a command May 12 07:28:47 pretendo: is it in your PATH? May 12 07:28:49 because you didnt export JAVA_HOME and put $JAVA_HOME/bin ? May 12 07:29:31 Yes it's in path May 12 07:29:37 To the javaw.exe May 12 07:29:50 i see your OS is also *the* problem :D May 12 07:30:02 What does export mean in this context May 12 07:30:18 that's for unix May 12 07:30:20 create system variable named JAVA_HOME May 12 07:30:42 I did May 12 07:30:57 did you exported later in path like May 12 07:31:01 And I added the path to Javawexe May 12 07:31:05 %JAVA_HOM%/bin ? May 12 07:31:05 What does export mean May 12 07:31:10 No May 12 07:31:15 What does that do May 12 07:31:37 it should be %JAVA_HOME%\bin May 12 07:31:41 on windows I guess May 12 07:31:51 it will add this directory to path May 12 07:31:55 I don't think I have such a. Path May 12 07:32:07 you mean %PATH% ? May 12 07:32:10 you must have one May 12 07:32:28 echo %PATH% in cmd ;) May 12 07:32:53 Well he's I have path May 12 07:33:04 Bit what I meant May 12 07:33:12 Not May 12 07:33:18 fuck autocorrect May 12 07:33:23 ok pretendo listen to me now May 12 07:33:36 Listening May 12 07:33:55 create a Environment variable called JDK_HOME that points to the java/bin dir May 12 07:34:20 Not Java home? May 12 07:34:24 shmooz: that's wrong May 12 07:34:27 you know where to add system environment variables right ? May 12 07:34:33 Yes May 12 07:34:42 it's JAVA_HOME May 12 07:34:46 ok do that May 12 07:34:49 Lol why can't fucking java handle this bullshit itself upon jnsta May 12 07:34:51 and it should point to where java is May 12 07:34:53 Install May 12 07:34:56 Such a farce May 12 07:35:02 and then reboot or logout and in again May 12 07:35:12 and export JAVA_HOME/bin May 12 07:35:20 What does export mean May 12 07:35:41 sorry, export is setting variable May 12 07:35:51 i meant add JAVA_HOME\bin to path May 12 07:36:02 on windows it should be %JAVA_HOM%\bin May 12 07:36:04 System or user May 12 07:36:05 I GUESS May 12 07:36:17 system is ok May 12 07:36:23 there is no export in windows May 12 07:36:39 So JAVA_HOME right May 12 07:36:44 wrong May 12 07:37:09 https://confluence.atlassian.com/display/DOC/Setting+the+JAVA_HOME+Variable+in+Windows May 12 07:37:27 09:29 < gordon_> i see your OS is also *the* problem :D May 12 07:37:27 haha May 12 07:37:28 touche May 12 07:37:30 I have ANDROID_SDK ANDROID_HOME and JDK_HOME set, and my stuff works May 12 07:37:48 I don't have no JAVA_HOME May 12 07:37:50 Fucking lol so May 12 07:37:57 Is it Jre or jdk May 12 07:38:03 jdk May 12 07:38:06 jdk May 12 07:38:08 Java is simply a fucking farce I'm actually chuckling May 12 07:38:23 http://stackoverflow.com/questions/2619584/how-to-set-java-home-on-windows-7 May 12 07:38:50 "What worked for me was adding the %JAVA_HOME%\bin to Path environment variable with the JAVA_HOME environment variable pointing to the jdk folder" May 12 07:38:51 pretendo: install eclipse bundled with adt, install java JDK 32bit, set JAVA_HOME in system env vars, restart pc, develope. May 12 07:39:01 why 32bit ? May 12 07:39:13 ah, windows... :D May 12 07:39:19 yeah May 12 07:39:27 so entirely unsuitable for development work May 12 07:39:28 I like how these problems only occur with java May 12 07:39:28 because sometimes eclipse can be a massive cunt May 12 07:39:44 pretendo: i see you havent touched ruby, sir May 12 07:39:51 Indeed May 12 07:39:54 i found that sometimes eclipse rejected my 64bit jdk May 12 07:39:56 or python May 12 07:40:00 for some reason May 12 07:40:04 back in my windows days May 12 07:40:17 you have ia32-libs? May 12 07:40:29 had* May 12 07:40:30 Corey84: on windows? c'mon ;) May 12 07:40:54 did see the win reference at first sorry May 12 07:41:12 im a linux dude hate win May 12 07:41:59 So java home is the only bullshit I need to touch right? May 12 07:42:12 pretendo: are u using the eclipse that is prepackaged by android.com? May 12 07:42:23 Correct May 12 07:42:29 ok good May 12 07:42:34 have u tried android studio? May 12 07:42:40 No May 12 07:43:28 So before I restart, java home is all I need to touch right May 12 07:43:42 ye May 12 07:43:44 you never know ;) May 12 07:43:54 pretendo: you failed to listen May 12 07:44:07 if you plan to you maven too.. May 12 07:44:50 Dude shmooz I got people telling me many contradictory things May 12 07:44:54 So I follow the last link May 12 07:44:54 pretendo: do you have time to let the lord linux ubuntu into your life? May 12 07:45:09 or any other flavour of non-windows May 12 07:45:12 Kevel: please, stop with ubuntu ;) May 12 07:45:16 I guess so but I'm so pissed and I just want to start freakig g coding May 12 07:45:44 If I'm going to partition I'm going to hackintosh and just do this for ios, was my original thoughts for this game May 12 07:46:04 damn I hate macs.. May 12 07:46:05 pretendo: its so much easier from a non windows OS May 12 07:46:11 gordon_: im really hoping that you are ryan gordon right now (@icculus) May 12 07:46:14 it's the same May 12 07:46:14 Yeah I know May 12 07:46:23 Kevel: nah ;) May 12 07:46:35 =(( May 12 07:46:36 I'm not as good as sir Ryan Gordon May 12 07:46:37 Restarting May 12 07:46:49 ye, that dude really needs to be knighted or something May 12 07:48:14 btw does anyone see a future for a lib which makes use of retrofit and simplecontentprovider May 12 07:48:42 to setup your sync stuff for your contentprovider against a rest framework for u May 12 07:48:51 because maaan, i hate setting that shit up for each project May 12 07:49:14 So I restarted and I still have the exact same error May 12 07:49:22 Even though I added the java home May 12 07:49:48 pretendo: if u open cmd and type javac -v May 12 07:49:49 "No virtual machine was found after searching the following locations" May 12 07:49:50 what do u get? May 12 07:50:28 The people behind windows and java just are not practical May 12 07:51:48 Java is not a recognized command in cmd May 12 07:51:56 How is that fixed May 12 07:51:59 then its not finding java May 12 07:53:04 Well how do I let it find java May 12 07:54:05 i usually set JAVA_HOME, JAVA, PATH May 12 07:54:07 all 3 May 12 07:54:09 same location May 12 07:54:11 just to be safies May 12 07:54:14 Ok May 12 07:54:30 Is the location supposed to be a folder or an exe May 12 07:54:38 a folder May 12 07:55:46 Ok I added then May 12 07:55:58 And cmd is working May 12 07:56:03 good May 12 07:56:12 try eclipse May 12 07:56:14 And lol what do you know eclipse is coming up with a new error May 12 07:56:24 whats the new error? May 12 07:56:31 "Failed to load the JNI shared library" May 12 07:56:46 Do I need to add the Jre to path too May 12 07:56:53 u shouldnt May 12 07:56:58 use a fresh copy May 12 07:56:58 of May 12 07:57:02 eclipse May 12 07:57:07 jdk contains jre May 12 07:57:12 not the one u copy and pasted java into May 12 07:57:39 Ok I'll extract it again May 12 08:00:52 64 bit right May 12 08:01:40 thought only 32bit was packaged May 12 08:03:08 Both are May 12 08:03:12 Which should I pick May 12 08:03:48 Should I just use fucking android studio May 12 08:03:54 take 32it May 12 08:04:39 pretendo: that doesn't look like a new error May 12 08:04:51 pretendo: still in school or uni? May 12 08:05:04 Nope May 12 08:05:13 Why 32 May 12 08:05:32 because u have 32bit jdk May 12 08:06:26 How do you know May 12 08:06:27 I've installed the 64 bit versions of everything on my AMD64 win7 laptop and everything works fine May 12 08:06:49 pretendo: just try May 12 08:06:58 pretendo: u can always just unpack the 64bit also May 12 08:07:02 and try them both May 12 08:07:10 it really shouldnt take more than 2 minutes of your time May 12 08:07:30 but like I said all I have is JDK_HOME set May 12 08:07:40 Is android studio good May 12 08:07:48 And shmooz I'm getting a different error now May 12 08:07:57 Java home is not the problem May 12 08:08:01 pretendo: its as good at the developer May 12 08:08:11 as * May 12 08:08:31 Well the developer of eclipse seems to be shit so who knows May 12 08:09:02 fine, the user. May 12 08:10:21 Which so you pretend May 12 08:10:22 Prefer May 12 08:11:00 both are good... use the one which is comfy for you May 12 08:11:07 I'm developing an application that locates the nearest store selling offering x item. I would like to support devices with and without GPS or GSM provider. One idea I had was that if no such feature exists on a given device it would allow the user to input their address which I could then pass through Google's geocoder to find their location. Is this sensible or are there perhaps more established "patterns" for doing this? May 12 08:12:08 Apparently android studio doesn't work too well with cocos2d from a quick google search so it looks like im throwing my lot in with eclipse May 12 08:12:20 Bacta: i assume they will be on wifi then? May 12 08:12:26 Yep May 12 08:12:34 Bacta: you can still determine location using wifi May 12 08:12:41 its just not super accurate May 12 08:13:32 pretendo: what are u trying to make? May 12 08:13:38 Hmmm.. has this become more accurate in recent years? I remember a time when that would only be reliable for determining the country a person was in? May 12 08:13:48 2d game May 12 08:13:58 u can probably get the neighbourhood of a person May 12 08:14:13 I know where i am, it locates the exchange you are connected to May 12 08:14:18 which is accurate to about ~5km May 12 08:15:31 Kevel: Is this why Google was collecting data on Wi-fi hotspots when they were doing streetview? May 12 08:15:50 Bacta: no idea :/ May 12 08:17:12 What's the cons of extending "Application" instead of "Activity"? Can I copy-paste my old code from class extending Activity or should I call the existing activity from application class via intent? May 12 08:18:14 WantToCode: why would u wanna do this? May 12 08:19:23 Right now I have master detail which extends acitivty. But I have to use Parse.com LocalDataStore and it can/should be initialized in class which extennds Application and not Acitivty May 12 08:20:26 So I need to either make something like a "starter" class which extends Application or in masterdetail I extend Application May 12 08:20:32 application and activity are two different things May 12 08:20:46 you can make a class that extends activity and register it in mainfest, but it shouldn't have any gui May 12 08:20:56 it can hold things like database etc May 12 08:21:29 *uhm extend Application May 12 08:22:46 ok so I just make a new class, extend Application. In onCreate do super.onCreate(...); setContentView and do the initialization of LocalDataStore (which needs to be initialized here). Nothing else? May 12 08:23:03 and the masterdetail would automatically start because its the main activity? May 12 08:24:07 And by declaring in manifest you mean adding android:name="ApplicationName" under the application tag, right? May 12 08:32:40 asfdd: I did the above, I think it is working. May 12 08:32:47 asfdd: Thanks May 12 08:32:52 WantToCode: Application shouldnt have anything to do with views and layouts May 12 08:33:03 afaik May 12 08:33:51 Kevel: hmm. One thing I understood is that Application class is not destroyed on cofig changes or something else May 12 08:34:21 Kevel: That may be the reason that important globla variables and objects should be declared in Application class May 12 08:34:36 Correct me if I am wrong May 12 08:36:34 Please clarify one thing about the manifest. Are there scenarios where I should write android:name="__" as full name like com.example.package.activityName or should I write just .activityName May 12 08:39:41 WantToCode: i use .* unless its from another package then i use the full name May 12 08:43:39 im surprised there is no API bot here May 12 08:43:48 is it possible to insert a color from color.xml into the format tags of a string in string.xml? May 12 08:44:39 like colorized text" May 12 08:44:53 and i want to replace the hex color code May 12 08:48:02 Hello guys, how to deal with AsyncTask result during orientation change? May 12 08:49:12 Number5: you have to detach the async task from the activity and reattach it again after the change May 12 08:49:20 or use a fragment May 12 08:50:00 danijoo, you mean a fragment without a UI? May 12 08:51:32 no but if you need something like a progress bar while the task is running, its very easy with a fragment May 12 08:51:42 if you dont need that, you have to detach/reattach the task May 12 08:53:05 this is a great article about that http://www.androiddesignpatterns.com/2013/04/retaining-objects-across-config-changes.html May 12 08:54:19 danijoo, but during an orientation change, a fragment will be destroyed because the activity will be destroyed. I've heard about a fragment without a UI that can be retained by calling setRetainInstance(). May 12 08:54:37 danijoo, thnx I'll read that. May 12 08:55:22 Number5: if u call setRetainInstance(true); on your fragment, the fragmentmanager will reuse it after the orientation change May 12 08:55:56 ok thnx my friend May 12 08:55:59 yw May 12 09:07:14 Number5: try with this http://www.androiddesignpatterns.com/2013/04/retaining-objects-across-config-changes.html May 12 09:07:19 does android have a mechanism for account preferences May 12 09:07:26 oh didnt see it was already shared May 12 09:07:36 like the settings preferences, but for saving key-values for account extra data? May 12 09:08:10 Hi all, I have a List and a List names. (MyObject contains a String 'name'); My List of the objects isn't in the order like the list of names. How can I sort the list of objects so that list object.name equals listname(0) ? May 12 09:08:37 FrancescoV: why not use a hashmap? May 12 09:09:47 Kevel, good question ;) will look for it May 12 09:11:20 FrancescoV: how big is the list? if its only 20 items or so you could simple itarate over it May 12 09:11:39 and insertion-sort it May 12 09:11:56 danijoo: list is like 10 - 20 items May 12 09:12:42 WantToCode, thnx :) May 12 09:12:55 in this case I would create a temporary array to insert your Objects, then iterate over the names list, get every object from objects corresponding to string and insert them May 12 09:13:26 danijoo: thanks, will check both solutions May 12 09:13:46 or you use collection.sort and implement a custom comparable May 12 09:13:56 but i think this is a bit to much for that May 12 09:14:07 for the record: http://java-latte.blogspot.com/2013/06/dont-know-which-mapcollection-to-use.html May 12 09:15:58 my personal tree for that would be: What map to use? -> HashMap ^^' May 12 09:18:20 Kevel: this is more readable - http://www.sergiy.ca/guide-to-selecting-appropriate-map-collection-in-java/ May 12 09:18:58 How do you get that small icon/tab that can be seen in some applications on a navigation drawer? May 12 09:19:35 mihalybak: you mean the 3 bars left to the application icon? May 12 09:19:40 yes May 12 09:19:58 like you have in google maps May 12 09:21:27 you will find it under ActionBarDrawerToggle May 12 09:23:22 thepoosh: was looking for that one May 12 09:23:31 saw it in ##java on quakenet few years back May 12 09:23:32 lol May 12 09:48:41 anyone here who can share his experiences with app translation services like http://www.trustedtranslations.com/ ? May 12 10:03:51 how can I get this Date format? "2012-01-02T00:00:00" May 12 10:05:39 okay guys, help me out here.. I have a production app that I just migrated the code base from an Eclipse project over to Android Studio. Now when I do a release build, I'm getting the 'inconsistent sertificates' msg. Also, the Google Map will not load... Has anyone come across a similar issue? May 12 10:08:03 mylord, SimpleDateFormat should help you May 12 10:10:25 the_fog: areyou using the same certs? May 12 10:11:14 Kevel yes, nothing has changed... I'm all at sea here May 12 10:11:36 it sounds like different certs are being used though May 12 10:16:09 Thanks Kevel, I just had a eureka moment! the build variant was set to debug, setting to release fixed the map as well. I'm still adjusting to Gradle... May 12 10:31:19 Kevel: just came back from lunch May 12 10:31:37 no probs, had it in my favourites May 12 10:35:36 someone who knows how to scale the background image of a textView on the basis of how much text there is? May 12 10:36:35 Click66: they autoscale May 12 10:36:58 thepoosh: ow really :D May 12 10:37:19 are you using TextView.setBackgroundDrawable()? May 12 10:37:33 or the android:background May 12 10:39:02 I'm try to take a screenshot of a whole listview. When I use the getDrawingCache() method it return my the first item only, and with black background instead of white. May 12 10:48:19 yoavst: are u calling it on a list item or list view? May 12 10:48:27 listview May 12 10:48:41 and outside the listview (on fragment) May 12 10:50:19 Did you setDrawingCacheEnabled(true) ? May 12 10:52:39 yep, it return only the a specific view from the listview May 12 10:53:09 the first one in my testing May 12 10:53:11 pastebin? May 12 10:54:03 http://pastebin.com/RPvv9wtH May 12 10:54:45 copied from a stackoverflow answer for view May 12 10:55:56 try just setting the cache enabled and cache quality May 12 10:56:05 then get drawing cache from the listview May 12 10:56:28 it returns null then May 12 11:05:36 p;;/ May 12 11:05:37 weird May 12 11:06:22 so you got no idea how to get it? May 12 12:22:25 How do you take a "screenshot" of a whole ListView? getDrawingCache return only the first item May 12 12:54:48 is there anyway to get an app's version and whats new from the playstore via some sort of api? May 12 12:59:55 lemonxah: u can get an installed apps version if u want May 12 13:00:22 kevel i am trying to notify the user of my app that there is a new version availble May 12 13:00:37 lemonxah: google play does that automatically for you .. May 12 13:00:52 yes, but it doesn't May 12 13:01:04 cause if you live in a country like ours people switch of that feature May 12 13:01:07 are you increasing your application version and code? May 12 13:01:11 they dont want stuff to auto update May 12 13:01:33 so that is switched off and they dont get notifications unless they go to the play store May 12 13:01:35 lemonxah: surely it still notifies you? May 12 13:01:41 thats silly May 12 13:01:45 yes May 12 13:01:45 what country is this? May 12 13:02:10 also most of the ppl have like 15+ apps that need to update and they dont update them cause its too expensive and they see no need to update May 12 13:02:12 south africa May 12 13:02:41 lemonxah: small world May 12 13:02:48 but we want to give the user a dialog when he logs in to the app to just let him know there is a new version availble that might fix the update May 12 13:02:53 lemonxah: most people that have android devices have wifi connectivity May 12 13:02:59 even though its not safe to assume May 12 13:03:04 not our target market though May 12 13:03:20 whats your target market? May 12 13:03:45 lemonxah: https://github.com/winsontan520/Android-WVersionManager May 12 13:03:52 we are looking at around 380k users and only about 15% has wifi May 12 13:04:19 tracked with google analytics May 12 13:04:52 whats your application if i may ask? May 12 13:04:53 so we still ahve ~340k users without wifi only on mobile internet May 12 13:04:55 mxit May 12 13:05:20 you play online also May 12 13:05:25 i remember ur alias May 12 13:05:29 either dota or cod4 May 12 13:05:41 i mean its easy for us to roll our own .. the app has been updated api .. was just wondering if the play store had an api May 12 13:05:42 both May 12 13:05:50 but new to dota May 12 13:06:01 stopped playing cod4 a while back though May 12 13:06:26 lemonxah: ye. I installed it yesterday to find out PB no longer supports it and has removed it from the pb setup May 12 13:06:39 brotip, from sa also May 12 13:06:42 yes also too many hackers without pb May 12 13:06:49 yeah i gathered :P May 12 13:08:18 i cant say that i recall kevel from my cod4 days :P May 12 13:08:27 maybe privacy? May 12 13:08:50 heh May 12 13:10:46 :( May 12 13:11:32 howdy! I'm trying to use GCM and make the app compatible with 2.3 I get the app installed and it tells me I need google play services installed, but then can't find it in the store. I am suspecting that the google-play-services_lib in the sdk is too new and that I need an older one? May 12 13:12:18 gp5st1, best thing to do is to install google+ on the device or update the youtube player May 12 13:12:33 those apps will automatically install the latest play services on the device May 12 13:12:43 play servecies cant be manually installed May 12 13:14:03 lemonxah: i'm just using the emulator right now May 12 13:14:30 gp5st1, there is no way to get the play services on an emulator that doesn't have play store May 12 13:14:34 I'm looking for a developer who knows 3D (scene-graph based rendering engines, skeleton, libs etc.) for android, and has free time for a paid project. May 12 13:14:39 my app pops up a dialog to download the play services (the code from the google docs on using gcm) but the store says it can't find what the app is pointing it to May 12 13:14:39 so i would suggest using the gennymotion emulater May 12 13:14:56 please query me. students welcome, too. May 12 13:15:09 BenB, no advertising May 12 13:15:12 read the topic May 12 13:15:21 no jobs here buddy sorry May 12 13:15:31 lemonxah: i'm just using w/e came with the sdk, i'm targeting the google apis, not pure android @ api lvl 10 May 12 13:15:39 lemonxah: ok, where do I go to look for developers? May 12 13:15:39 oh ok May 12 13:15:56 BenB look at outsourcing websites May 12 13:16:02 lemonxah: no thanks May 12 13:16:21 then you will have to find it elsewhere then but not in here May 12 13:16:50 lemonxah: on which websites do I find talented folks? May 12 13:17:06 (even if it's an "outsourcing website") May 12 13:17:17 BenB: how is asking an irc channel better than going to craigslist or some other site with devs on it? May 12 13:17:26 hello, May 12 13:17:40 (outsourcing doesn't mean overseas, it means not doing it in-house) May 12 13:17:42 are there any solution to connect to external USB camera from android mobile ? May 12 13:18:10 gp5st1: depends on the website... most outsourcing sites are spammed with 100 guys from India and Russia who barely speak english, much less can develop. May 12 13:18:17 also BenB you wont find talented folk on the irc either cause this place only has newbies that are learning and experienced folk that allready has jobs May 12 13:18:18 Keestu: for starters, you need a device and android version capable of USB OTG May 12 13:18:32 BenB: then don't hire them? May 12 13:18:45 gp5st1, i do have both ;) May 12 13:19:16 Keestu: just checking :-p beyond that I've not worked with OTG devices very much, sorry :( May 12 13:19:55 gp5st1, Well, that's an unexpected answer. anyway thanks. :). May 12 13:20:45 lemonxah: so, if you needed a developer in a field that you don't have existing contacts, what would you do? May 12 13:22:10 BenB, i am not the correct person to ask because i would just pick up a book and study the field in question and do my own development May 12 13:22:30 BenB: I'd be looking locally first May 12 13:22:34 lemonxah: ditto. it just doesn't scale when the task is too big for one person. May 12 13:22:41 Leeds: there's nothing locally May 12 13:28:19 Hello, I was wondering what anyone could make of this line http://pastebin.com/6i3yMs7y May 12 13:28:37 I have an activity that keeps getting kicked ou into Foo, but it doesn't throw any errors May 12 13:31:12 So I was wondering, can an error cause the current activity to call the activity manager? May 12 13:31:49 Like, say my Stack has Foo, Bar, and Bar fails, will Foo get called when Bar decides to jump the ship? May 12 13:32:46 no May 12 13:33:04 we will need to see the code to be able to help that 1 line in the pastbin doesn't mean anything May 12 13:33:15 Hi guys, i'm trying to hide a listview on a click of one of its element. I also do a fragmenttransaction, to switch fragment, but the listview diseappears then reappears… Anyone know why ? May 12 13:33:55 do you add or replace? May 12 13:34:10 Here is the actual code : http://paste.h3b.us/?3a6195ddc0bb1cbf#Qtm7ilWH+60oxu1ldZuinjrvl+z3SyKAnT7uvcIKbAs= May 12 13:34:34 lemonxah: so how an activity fails gracefully is code-dependant? May 12 13:35:26 benzap, activities tents to not fail gracefully and if they do it is most deffinately code-dependant May 12 13:35:35 activities tent to blow up in your face May 12 13:39:30 H3bus, the code you have pasted the fragment that this code is from is it also a SearchFragment? May 12 13:39:50 there isn't enough context to know what your problem is May 12 13:41:53 lemonxah: I think I found, it was a TextWatcher that was screwing with my fragment May 12 13:42:14 benzap: define "an activity fails" May 12 13:46:31 is it not possible to delete a message in kitkat via getActivity().getContentResolver().delete(Telephony.Sms.Inbox.CONTENT_URI, "_id = ?", new String[]{smsId}); May 12 13:46:41 I'm the default app and have write permission May 12 13:50:21 Click66, have you written the content provider? May 12 13:50:37 if so you have forgotten to implement the delete function? May 12 13:51:35 no it crashes and gives me Java.lang.IllegalArgumentException: Unknown URL on that line I just pasted May 12 13:53:44 Click66, are you trying to delete a SMS? May 12 13:54:19 yes May 12 13:54:53 lemonxah: yes, but I've set my app as default ... May 12 13:55:04 lemonxah: deleting a thread is working but not an individual sms :p May 12 14:02:56 I want to make a subclass of imageview that always uses 40 dp as its size. How would I do that? I can do the dp to px conversions, but I'm not sure where to set the size... do I just do that in the constructor? I'm not going to be adding this through xml, I'm always going to be adding it programatically. May 12 14:05:04 eghdk: I think void onMeasure(int widthMeasureSpec, int heightMeasureSpec) May 12 14:05:13 you call setMeasuredDimension with the appropriate sizes May 12 14:05:30 cd .. May 12 14:07:00 sorry, wrong window :) May 12 14:11:43 the_fog: /home/ May 12 14:17:11 Are there any standards or good practices for using RSS feeds in Apps? May 12 14:17:33 hi, i can't download sdk or ndk due to US punishments on my country, what can i do legally? May 12 14:17:41 someone who could help? https://stackoverflow.com/questions/23611095/deleting-sms-gives-exception May 12 14:17:51 os_ nothing, by definition May 12 14:18:04 i don't know why microsoft allow this while google doesn't May 12 14:18:25 awe g00s :P long time May 12 14:18:34 hey lemonxah :D May 12 14:18:55 i think that development have no relation with punishment ? May 12 14:19:05 lemonxah they are getting ready to finalize paho 0.9 plans or something, if you have any feature requests now is the time to speak :) May 12 14:19:22 awesome May 12 14:19:43 i have to go look at my code base quick haven't done anything on it in a week or so May 12 14:20:20 os_: What country? May 12 14:20:26 syria May 12 14:20:45 lemonxah i'd like them to add manual ping so when the phone goes asleep, i can wake up and ping the connected socket May 12 14:21:14 yes g00s May 12 14:24:55 the g00s is l00s May 12 14:25:09 hey mikedg ; still in the NJ area ? May 12 14:25:13 yes May 12 14:25:41 how are things going? May 12 14:27:07 mikedg going to i/o this year ? May 12 14:27:17 yeah! woooooo I/O May 12 14:27:59 almost went to i/o May 12 14:28:10 lady sitting next to me is going to i/o May 12 14:28:15 too expensive for me to go May 12 14:29:36 lemonxah any satellite i/o events in your parts ? May 12 14:29:51 nope May 12 14:29:57 anyway meeting chat later May 12 14:30:50 cant wait for I/O to get here, i heard that they were going to give out self driving cars this year, so i made sure to book a one way ticket out there so i didnt waste money May 12 14:31:14 there you go May 12 14:31:19 i'll wait for the self flying cars May 12 14:31:51 do the self driving cars modify route to visit advertisers who pay the most ? May 12 14:32:08 like if McDs pays to place an add on I10, does the car take I10 ? May 12 14:33:12 that's a ridiculous idea. May 12 14:34:07 thats an amazing idea May 12 14:34:20 maybe theyll even chip in for gas May 12 14:34:51 imagine a cross country drive paid for just by allowing advertisers to direct your car ot a few important locations May 12 14:35:19 XD May 12 14:36:03 maybe veen pocket a few bucks by having more passengers May 12 14:38:07 How much do they pay per view?! May 12 14:39:36 Where can I find the source code of Play NewsStand? I want to make this kind of ImageView (animate image inside imageview). From the trailer, see the header http://www.gfycat.com/SphericalShabbyBlackcrappie May 12 14:40:10 WantToCode gfycat doesn't seem to work with noscript, sorry May 12 14:40:24 u need an imgur link? May 12 14:41:21 g00s: imgur link http://i.imgur.com/BhMNONV.gif May 12 14:41:21 that would be better :) May 12 14:41:47 WantToCode what part of that are you asking about ? May 12 14:41:55 i see a nav drawer animation May 12 14:42:13 oh, animate imagevie May 12 14:42:16 the header layout. behind the "Telegraph(?)" logo May 12 14:42:27 yes the skyscraper image thingy May 12 14:42:50 could that me a live wallpaper ? May 12 14:42:55 like what the old twitter app did May 12 14:43:23 I havent seen the twitter app unfortunately. I want to do this at my "home screen".. May 12 14:43:51 is this parralax? May 12 14:44:30 so i've been looking through my code, and the only place within the web activity that would cause it go back would be when the back button is pressed http://pastebin.com/JifmtBA2 May 12 14:44:49 g00s: The play newstand source is not available, right? May 12 14:44:59 WantToCode hm, not sure. romain guy said the twitter app animated drawables; not sure about that image though May 12 14:45:07 WantToCode i don't think any of the gapps are May 12 14:45:11 The other sitaution is in a notification area http://pastebin.com/bXfF1dUD May 12 14:45:39 i've been have a reoccuring issue where my webview activity gets kicked out into the mainactivity with no logging information suggesting there was an error May 12 14:46:01 however, it happens when the activitymanager is informed to started up the mainactivity May 12 14:46:04 g00s: Do you have the link to the article by Romain Guy, or maybe a title so that I can search May 12 14:46:50 WantToCode he didn't say much. in typical romain fashion, he said "just do it?!" http://stackoverflow.com/questions/3872222/twitter-like-background-animated-drawable-in-android May 12 14:47:44 g00s: hehe, true he didn't say much. May 12 14:47:53 he was like the riddler May 12 14:48:58 Hi, I am using savedInstanceState which works for orientation but not working with up button please help May 12 14:50:15 i am displaying different parts of a large image on a grid. do you think cropping the image would be more costly than simply displaying these parts? May 12 14:51:46 hello, has anyone done something with MediaCodec? May 12 14:52:05 I have a minor confusion about how I should queue video frames May 12 14:52:54 the MediaCodec sometimes gives me buffers too small for an entire frame - I read somewhere that for video I should queue an entire frame at once May 12 14:53:25 so if the buffer is too small I just queue it back with no data and request a new one after a short delay May 12 14:53:35 I always get a big enough buffer after that May 12 14:53:42 is this the best way to handle this? May 12 15:02:35 I'm trying to run the facebook friend smash tutorial. I imported everything in Android Studio but when I run the app it exists with "java.lang.ClassCastException: android.widget.FrameLayout cannot be cast to android.widget.LinearLayout ... HomeFragment.onCreateView(HomeFragment.java:204)". May 12 15:02:51 At that line there's gameOverContainer = (LinearLayout) v.findViewById(R.id.gameOverContainer); and R.id.gameOverContainer is a LinearLayout. May 12 15:03:07 are you sure about that? May 12 15:03:13 because the runtime seems to think that it's a FrameLayout. May 12 15:03:27 lov, The parent layout is a FrameLayout but that id is a LinearLayout May 12 15:03:37 This is facebook's app btw, I haven't modified anything. May 12 15:03:51 * lov shrugs May 12 15:07:48 huh May 12 15:08:09 The parent framelayout didn't have an id, after adding one it works. May 12 15:23:49 g00s: https://github.com/flavioarfaria/KenBurnsView May 12 15:23:54 g00s: got it :D May 12 15:25:05 WantToCode ah .. guess it becomes easy to find when you have the key part 'ken burns' May 12 15:26:37 hmm ok i got my first app ready, one TextView one button, the exported apk is 700kb big, is that size ok? sounds much to me May 12 15:29:12 Bombo, it's ok May 12 15:29:28 g00s: apparetly Reddit Now uses it too.. May 12 15:29:31 Bombo, I have an app with a few libraries - 52MB May 12 15:31:51 Voicu: hmmkay, and no way to 'optimize' the size? May 12 15:32:24 Bombo, there are ways but it's not a problem when you're at 700kb May 12 15:32:44 if you're just starting with app development, size is the last thing you should focus on May 12 15:33:15 Voicu: ok thx May 12 15:38:24 If I have a serializer and a deserializer for a model, would I registerTypeAdapter both of those on the same model when building Gson? May 12 15:44:30 or should I have one TypeAdapter that acts as both serializer and deserializer? May 12 15:57:10 can anyone tell me why the hell my activity's onCreate keeps getting called when changing orientation, no matter what i do to the androidmanifest or the code of the method? May 12 15:57:32 the dev settings issue that i found out about via google wasn't any good either May 12 15:58:16 what device are you testing on? May 12 15:58:29 Voicu, nexus 5 May 12 15:58:31 did you test on more than 1? May 12 15:58:35 stock rom May 12 15:58:39 nope not yet May 12 15:59:29 it doesn't happen with the listactivities in the same application either May 12 16:00:30 and onConfigurationChanged doesn't get called at all, whether i put the flag for orientationchanging in the manifest or not May 12 16:01:55 Reverse: onConfigurationChanged gets called when you declare that you handle the configuration change. May 12 16:02:05 note that there may be many possible configuration changes occurring! May 12 16:02:25 lov, yep, and i put the flags for handling orientation changes myself in the manifest but it still doesn't get called May 12 16:02:32 guys, could someone tell me a safe way to root Xperia SP with android 4.3? May 12 16:02:39 I'd recommend that you properly handle destroying and recreating state, rather than trying to handle it yourself. May 12 16:02:45 YokoBR: #android-root May 12 16:03:12 ty, lov May 12 16:03:47 Reverse: so you declare both "orientation" and "screenSize" in your manifest for your activity? May 12 16:03:48 lov, i don't really need to handle the orientation changes myself, i just realized this while trying ways to fix this. onCreate should not be called on orientation changes ever May 12 16:03:58 Yes, it should. May 12 16:04:06 onCreate gets called because your activity is destroyed and recreated. May 12 16:04:28 this is generally the safest way to handle changes to your activity which you don't explicitly declare that you handle yourself May 12 16:04:36 e.g. loading a landscape layout instead of portrait layout, etc. May 12 16:05:01 again, you're strongly encouraged to just properly handle recreating state, unless you know you can properly handle the configuration change yourself. May 12 16:05:11 See http://developer.android.com/guide/topics/resources/runtime-changes.html May 12 16:05:21 lov, this is strange though, why isn't that the case on my listactivities then? and how am i supposed to do anything just once in the lifecycle of an activity? May 12 16:06:09 I have no idea how your listactivities are set up. May 12 16:06:23 As far as doing something once, use a singleton? May 12 16:07:33 singleton is not an option here, the problem is that on orientation changes the MediaPlayer calls keep getting called again, which they shouldn't May 12 16:07:47 i'll look into that link you sent me, thanks May 12 16:18:24 hm is it possible to compile c++ apps for libsdl for android? May 12 16:24:48 Bombo: I believe you can find LibSDL2.0 libs that work on android. Then you use the NDK to compile that application May 12 16:24:57 I've never done it before, but I hear it's tricky May 12 16:25:01 you can find a few articles on it May 12 16:33:48 I'm using Retrofit to call a rest service (it seems to be written well enough). However, it seems to call the service from the main thread. Anyone know nice helpers that will automatically create an async task instead of having to create it manually? May 12 16:34:23 Retrofit has asynchronous invocation May 12 16:34:37 with RxJava yea May 12 16:35:01 no, with a Callback May 12 16:35:15 oh I think I didn't read correctly, I thought even with the callback it would exec on the main thread May 12 16:35:26 seems it's only the callback, not the HTTP request May 12 16:35:37 correct. it calls you back on the main thread May 12 16:59:18 http://phandroid.com/2014/05/09/google-experience-android-silver/ May 12 16:59:32 "Now, new design rumors have appeared that clearly show Google wants to put their own experience on top of Android, similar to what HTC is doing with Sense or what Samsung is doing with TouchWiz." May 12 17:00:30 the mighty I/O rumor mill :) May 12 17:05:09 For some reason, I'm unable to query my rest service from my app, I get "java.lang.SecurityException: Permission denied (missing INTERNET permission?)". But I have this in my manifest: May 12 17:05:41 ldiamond: a) clean clean clean... b) pastebin your whole manifest, if you can May 12 17:07:14 hi guys, I'm a newbie, I can't understand how to design app architecture in android. I have a POJO: Person (with usual attributes: name, surname, age,...), and a layout: person_view.xml. What is the best way to link the gui part with the specific Person instance? May 12 17:07:49 Leeds, I think it was because of the hostname used... I put the IP straight up and it gave me a new error now (EACCESS) May 12 17:08:11 I'll add WRITE access to test first May 12 17:08:20 er, ok May 12 17:09:24 no good either. May 12 17:10:22 https://gist.github.com/anonymous/ff91e272f19ebb340a06 May 12 17:11:17 erm... May 12 17:11:48 Notice how INTERNET and WRITE_EXTERNAL_STORAGE doesn't line up May 12 17:11:52 in my manifest here it's android.permission.INTERNET - you seem to have permissions May 12 17:12:53 SimonVT: bedtime for me, couldn't be bothered to be cryptic :) May 12 17:13:26 hum May 12 17:13:26 Well you're no fun :p May 12 17:13:34 yea that paste wasn't correct May 12 17:13:45 haha May 12 17:14:05 no s in the real thing (used to vim keys so I added an s at some point) May 12 17:15:28 The issue was a whitespace in front of Is there a way to take a screenshot of a whole listview? because when I use getDrawingCache() it return the first view only May 12 17:16:59 uh? May 12 17:17:03 hello, so i just got roasted in #android for asking a totally green question, where can i go to ask these questions, minus the insults/prick waving. Thanks in advanced. May 12 17:18:11 [I try to ask again :)] I can't understand how to design app architecture in android. I have a POJO: Person (with usual attributes: name, surname, age,...) that is my model, and a layout: person_view.xml that is my view. What is the best way to link the view to the model? Ex: I have N person to show in a list, with the layout specified in the view May 12 17:18:20 Not used to android studio, the gradle build failed because of the space in the manifest and all that it showed was +1 to the event log icon. May 12 17:18:41 uh? May 12 17:18:54 so you weren't getting a runtime error at all? May 12 17:19:02 DeltaNINE: hi! you're off-topic here May 12 17:19:28 yoavst, try this: http://pastebin.com/NiHa8hmj May 12 17:19:35 How to get the position of MenuItem? May 12 17:19:46 HAHA no input needed from you, leeds. May 12 17:20:12 your the one who insulted me to begin with... May 12 17:21:02 WhatElse: With a listview and an adapter May 12 17:21:16 DeltaNINE: "you're" :P May 12 17:21:31 Troll... May 12 17:21:41 SimonVT: How do I conver canvas to bitmap? May 12 17:22:02 The canvas draws to the bitmap passed in its constructor May 12 17:22:17 https://developer.android.com/reference/android/graphics/Canvas.html#Canvas(android.graphics.Bitmap) May 12 17:22:25 Nit-Pick... May 12 17:22:35 Nothing-Better-to-do... May 12 17:22:35 DeltaNINE do you have a question ? May 12 17:22:48 *an app dev question May 12 17:22:52 Ok, I'll check if it get the whole listview or just the first item May 12 17:23:07 SimonVT: I meant also: where the data in Person should be put in the layout_person.xml? (like name -> TextView1, surname -> TextView2, ...) May 12 17:23:25 findviewbyid, settext, etc May 12 17:23:27 WhatElse: that's up to you... May 12 17:23:36 not anymore... May 12 17:23:50 Any listview tutorial shows this May 12 17:23:59 Leeds: I'm looking for: what developers do, what are the best practices May 12 17:24:01 SimonVT, I think that doesn't work on the recycling views (e.g. ListView, ViewPager, etc.) May 12 17:24:06 those are damn hard to screenshot May 12 17:24:09 SimonVT: java.lang.IllegalArgumentException: width and height must be > 0 May 12 17:25:23 Mavrik: It should. They're just viewgroups that move around views, drawing should work the same May 12 17:25:58 yoavst: Well, then it hasn't been measured and layout'ed yet.. THat has to happen first May 12 17:26:02 and SimonVT: it also return the first item only May 12 17:26:06 Mavrik: (having never tried) May 12 17:26:06 it doesn't exactly, because the subviews are cached on compositor level May 12 17:26:16 I've added mListView.measure(View.MeasureSpec.makeMeasureSpec(0, View.MeasureSpec.UNSPECIFIED), View.MeasureSpec.makeMeasureSpec(0, View.MeasureSpec.UNSPECIFIED)); mListView.layout(0, 0, mListView.getMeasuredWidth(), mListView.getMeasuredHeight()); May 12 17:26:24 e.g. the subviews aren't redrawn May 12 17:26:35 so you get only first (or not even that) May 12 17:26:41 I wasted ton of time trying to get that to work :- May 12 17:27:23 I get the first view with a black background instead of white May 12 17:27:53 for what it's worth, deltanine's question was "where can I get a complete source tree for CM11 for crespo4g?" May 12 17:28:17 Mavrik: Ugh, now I have to try it :p May 12 17:28:57 SimonVT: Did you get another idea? May 12 17:29:29 Well Mavrik says it doesn't work, so I'd be inclined to trust him May 12 17:29:50 (note that I wasted most of the time with ViewPager and have seen that ListVIew showed simillar results) May 12 17:29:54 But it doesn't make sense that it doesn't work, so I'll probably play around with it today or tomorrow May 12 17:29:59 (if there's a way, I'd love to hear about it :) ) May 12 17:30:25 So it doesn't possible to take a screenshot of a listview? May 12 17:30:31 (also note that my requirements were that it had to work on 2.3 and had to get image while scrolling) May 12 17:37:53 i dont actually want to use AS git integration for writes to the git repo, but can it be used to simply show me what files in the tree are dirty / staged ? May 12 17:38:11 g00s: yeah, thats how i use it May 12 17:38:29 birbeck ok, cool - is it pretty easy to set it up that way ? May 12 17:38:42 it's great for seeing changes or switching branches, but i do all pushes, pulls and merges through terminal May 12 17:39:01 yeah, if i can have it in 'view' mode only thats great :) May 12 17:39:32 g00s: nothing to set up really, just import the project or point it to your git root, you can pick and choose whichever integration features you want to use May 12 17:39:32 um May 12 17:39:37 g00s, there's nothing to set up May 12 17:39:47 it'll just color files in project view and that's it May 12 17:39:52 there isn't a 'view only' mode, you just don't use those features May 12 17:40:00 ok, thanks May 12 17:40:51 i get worried enabling these things that look at git; the first time i used the atlassian tool it asked me if it wanted to change repos settings … i was thinking "noooooooo!" May 12 17:41:28 it will only write to the repo if you tell it to May 12 17:41:40 and its not in your face when you dont May 12 17:42:04 nice i'll try it May 12 17:43:00 hello, when using singleton why should I declare it like: http://pastebin.com/j9hcpE8W instead of simply: http://pastebin.com/nyP3WtCT May 12 17:43:24 i have to play with nav drawer more, but one thing that seems clunky from implementation perspective is that you are keeping track (manually) of where you are in the app so you can select the right thing May 12 17:43:35 mrpyo: No reason to, unless it takes parameters May 12 17:44:16 ok, thx, seen coe written like this and wondered why May 12 17:44:21 *code May 12 17:44:31 mrpyo: as simonvt says, i actually prefer the second approach myself, though using enums is the new best practice for singletons in java May 12 17:44:50 using enums? May 12 17:45:08 http://stackoverflow.com/questions/8027701/singleton-using-enum May 12 17:47:26 mrpyo: Also, if used from multiple threads, the first approach could cause issues May 12 17:47:50 what is the advantage of using enum singleton? May 12 17:48:01 yeah, another thread could assign instance after the second thread checked for null May 12 17:48:45 mrpyo: because enums by definition are a static singleton, there will only ever be a single instance in a jvm and there are no threading issues to consider May 12 17:52:13 Mavrik: No issues drawing a listview to a bitmap on api18 May 12 17:53:03 thank you, it was very educative May 12 17:54:01 SimonVT, good to know :) May 12 17:55:38 benzap: hmmkay i'll see if i get that May 12 17:58:36 yoavst, Mavrik: Both these approaches worked for me http://pastebin.com/7PGM5r3S May 12 17:59:08 hi all. I'm building Android from source, and I was wondering where can I find a list of all environment variables. For example, I know there are ANDROID_SDK_HOME and ANDROID_SDK_ROOT, but what other variables are out there? May 12 17:59:37 yoavst: Also, I just saw your code.. Your listview is wrap_content .. When it's wrap_content it uses the size of the first child when measuring May 12 18:00:35 SimonVT, performance? May 12 18:00:38 http://libsdl.org/download-2.0.php#source iOS & Android: Projects for these platforms are included with the source. May 12 18:01:02 * Bombo downloads the ndk. May 12 18:01:15 Mavrik: Didn't check May 12 18:02:01 Same as it would take the view to draw as it always does I assume May 12 18:03:24 SimonVT: I didn't understand your example May 12 18:04:04 What part? May 12 18:04:32 why Measure and layout manually? May 12 18:04:59 In case you want to do that May 12 18:05:09 mhm May 12 18:05:19 The first example doesn't measure and layout manually May 12 18:05:40 What is the first example? May 12 18:06:07 /** .. */ denotes each example May 12 18:06:51 In that I just wait 3s to make sure the view hierarchy has been through the measurement and layout phase May 12 18:07:21 Anyway, gotta go. Mavrik should be able to answer any questions :p May 12 18:07:33 bye :) May 12 18:07:46 SimonVT: is there a way to use it without ViewCopy ? May 12 18:07:53 Mavrik: * May 12 18:11:12 Mavrik: does the example really works? May 12 18:27:07 when AS re-arranges XML for you (according to the XML formatting heuristics) it puts android:id above the xmlns declarations. this doesn't seem right … or is it? May 12 18:31:32 that does not seem right May 12 18:31:47 Do you develop in linux? May 12 18:32:11 g00s, have you got the right XML profile set up? May 12 18:32:16 autrilla: that is the only way to develop :-) May 12 18:32:35 birbeck, and then there's software incompatibility. The Adobe suite, for example May 12 18:32:53 Adobe suite isn't for "developers" May 12 18:33:03 yeah, in Code Style -> XML -> Arrangement, it seems sane May 12 18:33:16 g00s: there is an android style in there May 12 18:33:46 birbeck in AS it seems its built in May 12 18:34:00 under the arrangement tab, all the entries seem android related May 12 18:34:02 lemme look, i'm so used to IJ May 12 18:34:14 I use IDEA too. May 12 18:34:31 I'm going to move to win 8.1 and I feel like I'm going to break everything May 12 18:34:39 my first one is name:xmlns:android followed by name:xmlns:.* May 12 18:34:52 so that seems to say, xmlns should always go first May 12 18:35:02 g00s: in Code Style > XML, I have an 'Android' tab May 12 18:35:28 birbeck but thats not arrangement May 12 18:35:34 yeah May 12 18:35:38 good point May 12 18:35:55 but yeah it has checked 'use custom formatting for android' May 12 18:36:04 my arrangement has xmlns:android on top May 12 18:36:14 followed by xmlns:* and then id May 12 18:36:52 yeah thats what i have May 12 18:37:10 Hey guys can you tell me how to flash device from adb? May 12 18:37:25 Ukzzz in #android-root probably May 12 18:37:35 okay i think there is good place May 12 18:37:39 sorryu May 12 18:39:05 <3 Windows' file transfer time estimates May 12 18:39:35 Hey, how can I use the image according to width or resolution and not by dp? May 12 18:39:39 For eg, My Gingerbread 3.5" phone uses mdpi images and so does Nexus 10 emulator. If I set a HD image in mdpi folder, phone lags but keeping low res image in mdpi makes the N10 ugly. May 12 18:39:50 Should i keep 1 HD image and scale it down according to device's width? May 12 18:40:44 WantToCode, you should certanly use whole range of dpis May 12 18:40:56 xxhdpi, xhdpi, hdpi and mdpi May 12 18:41:02 so you don't kill the lowend devices May 12 18:41:02 Is there no #android-design channel? :( May 12 18:41:06 and make image on high-end look like crap May 12 18:41:20 WantToCode, there are strict multipliers between densities May 12 18:41:22 ldpi is not needed, Android will scale it May 12 18:41:49 isnt Nexus 10 mdpi? May 12 18:42:01 no. May 12 18:42:08 N10 is xhdpi i believe May 12 18:42:08 I doubt it May 12 18:42:37 N10 is xhdpi yes. May 12 18:42:43 modern high density phones are xxhdpi May 12 18:42:53 Google Nexus 10 | 4.2 | xhdpi (Launcher icon xxhdpi) May 12 18:43:22 because N10 emultor is using mdpi image! May 12 18:43:32 then you misconfigured the emulator May 12 18:43:37 or you're doing something silly. May 12 18:43:42 I have watermarked images to identify May 12 18:44:39 the names are same. just the reduced the resolution for decreasing dp and watermarked it May 12 18:44:59 Does Retrofit let you do link following before making the callback? May 12 18:45:22 what is "link"? May 12 18:45:28 i.e. POST newThing (which returns 201, no body, but Location in the header) May 12 18:45:31 Hello, how can I download a file, when the Server returns file Size -1 May 12 18:45:47 link = Location header in response May 12 18:47:57 Samisam123: you're in for a fun time. Enjoy gzip compression! May 12 18:48:11 basically, read until you can't. May 12 18:48:31 so if I had a 201 or a 30x May 12 18:49:33 Hello, thank you for your answer. I searched for different codes and every code has: bufferLength = inputStream.read(buffer)) > 0 or bufferLength = inputStream.read(buffer)) !=-1 May 12 18:49:43 but the Server returns -1 from the beginning as content length May 12 18:53:57 Samisam123: perhaps today is the day where you must learn to think for yourself, instead of copy/pasting "codes" from the internet? May 12 18:55:16 wat? May 12 18:55:28 no using off the shelve so codes? May 12 18:55:32 sorry bro May 12 18:55:38 sometimes you can't just copy/paste stackoverflow and bill for it. May 12 18:56:00 my days of engineering are over! May 12 18:57:25 copying codes != engineering :) May 12 18:57:50 well, mindlessly anyhow :D May 12 18:57:54 shekibobo: a good HTTP client will do that for you (e.g., OkHttp) May 12 18:58:01 hmm May 12 18:58:12 g00s: I do not understand, can you link me a SO answer that explains your point? May 12 18:58:27 JakeWharton: OkHttp works out of the box with retrofit, right? May 12 18:58:34 birbeck post your question on SO then we'll go from there ! May 12 18:58:35 yep. just drop it on your classpath May 12 19:00:28 don't be silly, you can't place SO questions into your classpath May 12 19:00:33 if you could do that I would have launched YEARS ago May 12 19:01:11 JakeWharton: Do I need to tell retrofit that it needs to follow in the Service interface? May 12 19:01:47 @POST("/api/v1/photos") May 12 19:01:47 void createPhoto(@Body Photo photo, Callback callback); May 12 19:03:20 interesting http://blogs.msdn.com/b/somasegar/archive/2014/05/12/mobile-first-cloud-first-development-visual-studio-apache-cordova-tooling-and-cloud-optimized-net-futures.aspx May 12 19:03:29 so MS is using cardova now too May 12 19:03:46 the little diagram has 'push button' out comes ios, android, Wp ! May 12 19:04:53 so not even microsoft wants to code for windows phone, is what you're saying? May 12 19:05:04 hehe May 12 19:05:57 google is using cordova also , right ? May 12 19:08:01 how else do you think google makes WP apps? May 12 19:08:23 i want to get the MenuItem position May 12 19:08:30 How to? May 12 19:08:41 https://github.com/square/retrofit/pull/230 May 12 19:09:22 lov no, i mean http://blog.chromium.org/2014/01/run-chrome-apps-on-mobile-using-apache.html May 12 19:09:57 Hi, I'm starting a service from Settings app... this service needs to access the Phone object. I put android:process="com.android.phone" in my declaration in Settings' AndroidManifest file... but everytime I try to start it I get a RuntimeException May 12 19:09:58 Is it weird if I use c++ in ADT May 12 19:10:02 Eclipse May 12 19:10:26 Unable to create service.... Permission Denial: getIntentSender() from pid=3170, uid=1001, (need uid=1000) is not allowed to send as package com.android.settings May 12 19:10:36 anybody knows what else I need to do? May 12 19:10:40 where should the ANDROID_SDK_ROOT environment variable point to when I compile Android from source? Maybe to /out/host/linux-x86 ? May 12 19:11:45 JakeWharton: looking at retrofit#230 https://github.com/square/retrofit/pull/230 that's close to what I'm trying to accomplish. Any thoughts? May 12 19:12:42 Hey guys what you recommend me for doing get and post request asynchronus i was looking at retrofit and async http library? May 12 19:13:16 shekibobo: Retrofit doesn't follow links and I doubt it ever will May 12 19:13:26 you need to tell the HTTP client to (if it doesn't by default) May 12 19:14:43 So i should probably just go with android asynchronous http client lib. May 12 19:22:15 okHttpClient.setFollowProtocolRedirects(true); restAdapter.setClient(okHttpClient); // fail :( May 12 19:24:24 guys, how .zip files in recovery work. I want to flash .zip from sideload and it needs files in it or .img ? May 12 19:26:00 Ukzzz ? #android-root May 12 19:30:08 any good reason why setRetainInstance can't be used when the fragment is on the back stack? May 12 19:30:55 not sure why they did that May 12 19:31:07 okHttpClient.setFollowProtocolRedirects(true); restAdapter.setClient(new OkClient(okHttpClient)); // works, but not sure the result is from the follow on a 201 May 12 19:40:06 im making an chart/calculator/table app with quite a lot of different data fields(with individual names) that need to be passed from one activity to another, is an object the best way to pass this data from one activity to another? eg from a class ChartData(){}, but only one object will ever be created May 12 19:49:42 Is there a way to have two list views so that when you scroll to the bottom of the first one it begins displaying the second one? May 12 19:51:40 when opening a page in a browser via an ACTION_VIEW intent, if there a way to detect that the page couldn't br opened (due to a bad netowk)? May 12 19:54:12 Also who used android NDK here and why May 12 19:56:53 pretendo I would only use NDK if I needed some super optimized library in C/ C++ May 12 19:57:17 I just prefer c++ massively May 12 19:57:26 What's wrong with it May 12 19:57:29 Java is bullshit May 12 19:57:56 pretendo well, regardless of your feelings on the language, you will find NDK development to be much tougher due to lack of support, examples, etc. May 12 19:58:32 pretendo it is mainly just there to, like I mentioned, make use of really optimized libraries for certain tasks May 12 19:59:02 Yeah May 12 19:59:05 Java it is then May 12 20:00:23 pretendo: check out NativeActivity. You CAN use C++ as your primary language, but you're in for a rough time. May 12 20:00:41 the NDK is generally for hooking in an existing C library to your java code. May 12 20:01:05 when i create a values-tur folder (turkey) it doesnt compile anymore May 12 20:01:10 theres no lint error for it either May 12 20:01:27 brx_: http://en.wikipedia.org/wiki/ISO_3166-1_alpha-2 May 12 20:01:34 use values-tr May 12 20:01:40 Well May 12 20:01:46 anyone experienced with opengles2/java? May 12 20:01:55 I'm planning on making my app cross platform May 12 20:02:08 And Xcode supports c++ May 12 20:02:12 Does that make it work May 12 20:02:13 Worth t May 12 20:02:26 thanks lov May 12 20:03:15 Hi! I'm havind the findViewById-returns-null problem, and I have read at least 5 SO posts which didn't really help me. Here's my activities onCreate method: http://paste2.org/h7zF51Cy May 12 20:03:20 What am I doing wrong? May 12 20:04:12 pretendo: yes and no. What you'll typically want to do is have your core engine code done in C++, with hooks for platform-specific code. May 12 20:04:38 you'll still have to worry about Android platform foibles even if you use a C++ library. May 12 20:05:47 pretendo, lov I can't say for sure, as I have never tried it, but I would seriously guess that the snags you will encounter trying to hook into C++ with ios and Android as much as you want to will not be worth it May 12 20:05:58 mattblang: eh. I've done it before. May 12 20:06:13 most of the high performance games are done with C/C++ libraries. May 12 20:06:59 Peetz0r: is the id for that button showing up in auto-complete? if it's not, you might have the wrong id string or it isn't visible to your activity May 12 20:07:09 cobar: yes, it does show up May 12 20:07:47 I also cleand my ADT workspace, and built it again, and after that is still shows up May 12 20:08:15 I'm making a multiplayer game May 12 20:08:56 Peetz0r: maybe try button.getText().toString()? May 12 20:09:14 heh? May 12 20:09:34 no, the button iself is null, I don't actually care about the text on the button May 12 20:10:12 I did the String.valueOf()-thing because I'd rather have a 'null' in my logcat than a nullpointerexception May 12 20:10:29 that's what I get when I try to do anything useful with my button May 12 20:10:58 Peetz0r: yeah this is beyond my knowledge. I've never had it return null if the IDE will autocomplete it May 12 20:13:10 hi ! is it the right can to speak about dalvik's implementation (especially memory allocation) ? May 12 20:13:16 *chan May 12 20:14:18 I solved it! Moved the findViewBtId() from onCreate to onCreateView May 12 20:14:19 http://paste2.org/YN2AAN8G May 12 20:14:25 what is the best way to implement a landscape layout for master / detail if you are using just one activity with many fragments? like, you don't want the secondary container to take up space if there is nothing in it. but I don't want to be constantly editing the secondary container's layout properties either. May 12 20:14:31 how can i enable fadingEdge on a listview in KitKat? May 12 20:15:33 Peetz0r: nice job man May 12 20:15:46 Hello, my application needs to read information from a file, how should I pack it to be available by the app? May 12 20:16:08 P4C0 you could try something like cdb May 12 20:16:26 or just include the file and parse it; json, xml, etc May 12 20:16:53 http://www.strangegizmo.com/products/sg-cdb/ May 12 20:17:04 Is there a way to display two list views so that the second is displaying immediately below the first when you scroll to the bottom? May 12 20:17:21 hi. Probably a noob question but I'm new to Java. I have a Broadcast Receiver that handles a downloadManager and stores a file which has a URI. How do I get access that URI (the string) from inside another method? May 12 20:17:22 cobar you probably want cwac-mergeadapter May 12 20:19:15 g00s: i will check that out, thanks. No way to just do it in the layout file? I might be able to merge it myself if there's a way to insert multiple headers in the middle of the list view May 12 20:19:55 hm, i think the first problem is lv - i think - can't have height as 'wrap_content' May 12 20:20:09 maybe i'm wrong about that May 12 20:20:38 Blatinox: theoretically, you probably won't get much signal though. May 12 20:21:04 g00s: i think that's right. it wouldn't show the second one unless i hid the first May 12 20:23:10 thanks g00s, probably what I need is how to include files in the .apk (and install them) May 12 20:24:52 maybe this: https://stackoverflow.com/questions/4310695/how-to-include-data-files-with-my-android-install-apk May 12 20:25:30 or this https://stackoverflow.com/questions/5403062/android-add-files-into-apk-package May 12 20:25:54 hey g00s May 12 20:25:56 could someone tell me which is the best/correct way? (it's just one xml file) May 12 20:26:03 hey Napalm :) May 12 20:26:24 P4C0: if they're raw data, put them in your assets directory. May 12 20:27:08 thanks lov May 12 20:27:17 you're welcome. May 12 20:28:27 oh it was that simple a question XD May 12 20:32:17 lol May 12 20:34:24 git plugin for AS is nice :) May 12 20:35:15 how can I access the assets path (path, not files, like root path) app_name/assets ? May 12 20:35:38 or just assets/ = May 12 20:35:40 ? May 12 20:36:18 You don't. May 12 20:36:23 P4C0: InputStream in = getResources().getAssets().open("yourfile.ext"); May 12 20:36:25 You use the AssetManager to handle those files. May 12 20:36:32 (as per Napalm) May 12 20:36:58 If you need your file to be on the filesystem, then extract it. May 12 20:37:17 hmm I have to pass that path to a jni object, need the path :( May 12 20:37:48 lov: from the InputStream to the sd or similar? May 12 20:38:06 P4C0: then copy it to your apps private data area, and pass the filepath over to jni May 12 20:38:30 P4C0: but normally you can hand a FD over to jni May 12 20:38:34 which would be better May 12 20:39:27 Napalm: thanks May 12 20:41:53 lov: do you know a chan where i could speak about dalvik ? May 12 20:45:23 Blatinox probably better off finding the android-platform google group May 12 20:45:29 if its still alive May 12 20:45:38 https://source.android.com/source/community/index.html May 12 20:45:46 Anyone knows how to install plugins in Android Studio? I can't seem to find the menu. May 12 20:46:13 I didn't even know it had plugins May 12 20:46:31 Hi, I'm starting a service from Settings app... this service needs to access the Phone object. I put android:process="com.android.phone" in my declaration in Settings' AndroidManifest file... but everytime I try to start it I get a RuntimeException May 12 20:46:37 Unable to create service.... Permission Denial: getIntentSender() from pid=3170, uid=1001, (need uid=1000) is not allowed to send as package com.android.settings May 12 20:46:42 anybody knows what else I need to do? May 12 20:50:53 Napalm: can I do that: https://stackoverflow.com/questions/11455803/most-efficient-way-to-pass-java-socket-file-descriptor-to-c-binary-file ? May 12 20:54:58 so if I get the fd from the assets/ file, I can pass it to my jni object? May 12 21:02:45 if im doing master detail, how should I do the containers? It would seem that I want to do two containers in my XML file, but I don't want the second container taking up space unless it has something in it. May 12 21:04:08 mattblang you could try https://developer.android.com/reference/android/support/v4/widget/SlidingPaneLayout.html May 12 21:06:42 g00s here is the thing, I am using one activity to change out all of my fragments. I was thinking that I would implement a two container layout for when the phone is swapped to landscape, but I would only want to fill it on certain screens. thus, I don't want the second container to take up space when there isn't a fragment in it. I feel like I may be going about this the wrong way, not sure. May 12 21:07:16 that sounds about right May 12 21:07:49 g00s so then how could I make sure that the second container does't take up space when there is nothing in it? i guess just manually handle changing the weights or something? May 12 21:08:18 there should be different layouts, one for -land right ? May 12 21:08:25 the portrait one doesn't include it May 12 21:08:45 of course, if you are dynamically adding things, everything just goes to chaotic shit right away May 12 21:09:15 g00s yeah, but some of my fragments are not part of a master detail, so they would still be using the -land xml, but wouldn't have anything to put in the secondary container May 12 21:09:40 g00s since I have a one activity approach May 12 21:10:24 this isn't my strong area; i still find the whole activity : layout : fragment mapping thing a huge mess May 12 21:10:50 g00s hah, yeah. the reason I ended up doing one activity is because fragments load in so much faster. May 12 21:11:44 g00s than launching a new activity that is May 12 21:12:40 <_CalLightman_> hi.. can someone help me with gps coordinate fetch ... i am using asynctask right now and get the coordinates when on wifi or internet but cannot do the same with gps alone May 12 21:17:35 how do i create An Android App For my Site And Publish It In Google Play ? May 12 21:18:55 Vampire, ever thought about reading http://developer.android.com/ ? May 12 21:20:50 is it gonna be a pain arse work? May 12 21:21:39 probably May 12 21:22:55 :( May 12 21:23:00 if you don't want to do it yourself, I'm sure there's people out there willing to do it for you, for the right price May 12 21:23:20 how much it gonna charge May 12 21:23:51 there's stuff like: http://www.appsgeyser.com/ May 12 21:24:19 which creates android applications from web content May 12 21:24:58 I think that might be more suitable for you, if you don't care to learn how to develop an android application yourself (which will take time). May 12 21:25:01 What is recommended download from http://eclipse.org/downloads/ ? Eclipse standard or anything else? May 12 21:25:43 sl33k_: http://developer.android.com/sdk/index.html May 12 21:25:59 thanks alot taw.. good bless you May 12 21:26:23 Vampire: you're welcome May 12 21:30:02 <_CalLightman_> hi.. can someone help me with gps coordinate fetch ... i am using asynctask right now and get the coordinates when on wifi or internet but cannot do the same with gps alone May 12 21:30:13 hello May 12 21:30:27 <_CalLightman_> hi May 12 21:32:18 anyone using ACRA? I got some crash reports with blank device model, am wondering if this means the person was running the apk on an emulator or something? May 12 21:32:57 Does Android parse xml files on every application run? May 12 21:38:16 you mean layout stuff? no May 12 21:38:26 guys is there any second stage bootloader? May 12 21:38:35 just for multi boot May 12 21:39:44 will be fine having linux distro and normal android on others memories May 12 21:40:04 Ukzzz: #android-root May 12 21:40:21 but its a dev question but okay ;/ May 12 21:41:52 this is app dev, not android OS dev May 12 21:43:19 You need to pay $25 to Google :( May 12 21:43:55 better than 100 to apple just to test :) May 12 21:45:21 so is there any andro devs channel? May 12 21:45:28 or somethings May 12 21:45:45 Ukzzz: #android-root May 12 21:46:45 Ukzzz how many times must you be told :) May 12 21:46:55 9 May 12 22:01:41 hm, when i do something with git on the command line, like stage a file, its not reflected in AS UI May 12 22:01:53 i expected it to go from blue -> green May 12 22:02:04 how do i refresh the status? May 12 22:04:46 works fine with..... ;) May 12 22:05:24 oh, pebkac May 12 22:05:37 blue is staged May 12 22:06:33 g00s: tried scala before? May 12 22:06:47 bankai_au nope. you trying it ? May 12 22:07:00 it's on my todo list May 12 22:07:08 i just need a reason to try it ;) May 12 22:07:17 if i was doing java-ish server side stuff i'd pick up scala or clojure maybe May 12 22:07:46 on my todo list is learn js; probably the last one on the planet that doesn't know it May 12 22:07:57 feel bad not being able to put up even a basic shitty -ass web page May 12 22:07:58 http://www.computerworld.com/s/article/9248266/Mozilla_to_press_ahead_on_in_Firefox_ad_plans :( sooo confused... May 12 22:08:09 capella yeah, not happy May 12 22:08:23 can't they offer a paid version ? May 12 22:08:30 i'd buy FF May 12 22:08:35 Maybe they can afford me now 8O May 12 22:08:39 :O May 12 22:08:59 the way i see it, maybe wrong but ads == privacy invasion (since, information needs to be collected for them to be relevant) May 12 22:09:05 yah, Mozilla for Android ... 2.99$ May 12 22:09:09 so for me, FF is becoming a privacy hostile browser May 12 22:09:40 these days, if a company needs to make money it always comes at the expense of user privacy May 12 22:10:03 gotta justify those big data salaries May 12 22:10:05 yeh, i just want to buy stuff that won't sell my shit to some scammy data broker May 12 22:11:10 capella having technical difficulties :) May 12 22:11:33 even just in-app analytics to figure out how to optimize your app or where to advertise comes at the cost of user privacy, no matter how 'anonymous' it is May 12 22:11:44 Ah, just mentioned the latest attempts @ DRM being pursued by MS, Chrome et.al. May 12 22:12:02 For delivering purchased software, music, etc May 12 22:16:07 yeah, this is messed up. AS is showing wrong colors for git staged / untracked May 12 22:16:22 clicking refresh doesn't help May 12 22:21:28 Anyone seen code online that passes file descriptors via IPC, just looking for some example code to get an idea of what I can and can't (shouldn't) do... May 12 22:37:03 The saddest thing about blogs is when you come across a blog that looks like you want to bookmark it only to find the most recent post was years ago... May 12 22:40:11 i haven't bookmarked anything in years, i think because of that reason lol May 12 22:43:50 well i used to have a couple internal music blogs--really, the only way to find that kind of music, and they all went dead about the same time. So whenever I come across another one, it is a tragic fact of life it's last update is a year or two ago. May 12 22:43:58 but same thing for a good android developer blog May 12 22:44:07 (to keep it on topic ;p ) May 12 22:49:32 Does anyone know if ParcelFileDescriptor READ will work when used to create a stream in another process, or must i use WORLD_READ? May 12 22:57:26 Anyone know if such a design pattern exists as the "anti-factory" pattern? May 12 22:58:10 Hello May 12 22:59:02 Hello May 12 23:04:48 Ugh why hasn't someone integrated a transitive hashmap already May 12 23:05:52 wut is that May 12 23:07:52 May 12 23:08:00 bankai_au there? if i have a file staged in git, shouldn't it be green in intellij ? May 12 23:08:15 its green in default cmd line May 12 23:08:35 g00s: its green if it is a new file, blue if it is modified May 12 23:08:48 so even if staged, still blue ? May 12 23:08:52 yes May 12 23:08:57 ah damn it May 12 23:09:01 staged or not, its blue May 12 23:09:06 k, tx May 12 23:09:20 same goes for new files, staged or not, they are green May 12 23:09:25 untracked files are red May 12 23:10:02 * g00s looked at help page, but must have gotten the semantics wrong May 12 23:11:16 bummer, i want the GIT status reflected in the UI May 12 23:11:21 oh well, whatevs May 12 23:14:28 Do I understand correctly, that isntead of inflating a layout with google map into existing Fragment, it is preferable to create google map fragment and use it instead the Fragment? May 12 23:17:24 creitve: yes, do not put a MapFragment inside of another fragment. May 12 23:18:00 pfft nothing wrong with fragments in fragments May 12 23:18:41 map fragments will choke May 12 23:19:15 and when they added nested fragments, that was out of necessity, not best practice May 12 23:20:03 they should have burried fragments with honeycomb May 12 23:20:16 that would have been a short life :) May 12 23:20:40 i think they should bury the whole java framework May 12 23:21:32 yo dawg, I heard you like fragments May 12 23:21:33 ditch it for something even worse like obj-c ? May 12 23:21:52 oh gawd, obj-c May 12 23:22:28 they could pick anything, like haskell to keep the kiddies away :D May 12 23:23:19 just kidding, no idea really May 12 23:23:24 maybe, c# May 12 23:23:55 it should be upto the developer what they want to use May 12 23:24:23 android should support/interface more with other langs like it does java May 12 23:25:18 ....why? May 12 23:25:52 because choice is a good thing May 12 23:26:08 but too much choice can be a bad thing May 12 23:26:15 and, in some cases, 2 is too much May 12 23:26:20 :P May 12 23:26:34 isn't 2 the magical number of human choice ? May 12 23:26:54 i get stuck at 1 choice May 12 23:26:58 there are people here who do android using other languages May 12 23:27:19 * JesusFreke writes his applications in hand-coded bytecode assembly May 12 23:27:23 (not really :p) May 12 23:27:28 just because it overwhelms a beginner doesn't mean we shouldn't have them May 12 23:27:53 other languages would mean some common infrastructure that had bindings to said languages May 12 23:27:58 i guess that means … c ? May 12 23:28:09 yeah, its easy to get at c from almost everything May 12 23:28:15 AFAIK there are a decent number of languages that can be used on Android May 12 23:28:24 but having more than 1 doesn't really make sense... May 12 23:28:24 sey hello to more security woes :D May 12 23:28:56 g00s: exactly May 12 23:29:03 there's always a tradeoff May 12 23:29:22 you can't stop evolution May 12 23:29:34 shmooz google did by choosing java May 12 23:29:38 lol May 12 23:29:42 at least, for a while :D May 12 23:29:54 or 'not java' since they didn't technically use java May 12 23:30:01 we're really using 'not java' May 12 23:30:04 well now oracle is gonna take java back May 12 23:30:11 ooh! notjava! I like the sound of that :P May 12 23:30:16 and we'll have to go find some other language May 12 23:30:17 nava May 12 23:30:34 javan't May 12 23:30:41 I guess I'll start by studying pfn's scala apps May 12 23:30:44 speaking of other languages though, has anyone had any experience with Haxe? May 12 23:30:50 Nava Aint jaVA May 12 23:31:22 that's very gnu-like haha May 12 23:31:25 anyone has sample code for Parse Facebook Login with nested Fragement? May 12 23:31:51 or I guess, more specifically, HaxeFlixel May 12 23:36:14 Go? May 12 23:36:44 What about Go? May 12 23:36:44 Also, Scala is nice for Android stuff. May 12 23:36:55 go! May 12 23:37:07 go!os May 12 23:37:11 :) May 12 23:37:56 * Nilium shanks g00s May 12 23:37:59 Had to be done. May 12 23:42:29 anyone called getContentResolver() from Asynctask for cursor query stuff ? I tried passing the MainActivity.this context through the asynctask's constructor but its throwing NPE May 12 23:43:02 should work May 12 23:43:11 is the task a static class? May 12 23:43:29 no May 12 23:43:32 oh yeah, does the code enforce that its not an inner class ? May 12 23:43:56 if not you can access the activity directly using MainActivity.this.getContentResolver(), but passing the context to the constructor should work. i've done that recently May 12 23:44:21 hmmm May 12 23:44:30 let me see if I missed something else then May 12 23:45:22 i will almost always make my tasks an external public class instead of an internal class and pass the context in the constructor so that i can reuse them from other activities May 12 23:46:20 how to keep button below edittext visible when softkeyboard appears? I'm using a scrollview May 12 23:47:04 on focus of the edittext, scroll to view of the button May 12 23:48:36 birbeck, yeah that might works! Haven't tried before scrolling to a view - but it sounds good! ;) May 12 23:54:18 i think its rather peculiar timing, with duarte saying 'apps' are dead (but mobile web isn't where its at either) … and the oracle / java thing May 12 23:54:24 maybe there is no connection at all May 12 23:54:45 duarte seemed t have something in mind like cordova or enyo May 12 23:56:13 i'm sure they timed the court cases appropriately and colluded to lose the case May 12 23:56:35 ;-) May 12 23:57:06 i'm sure they had plan B; after all android is /plan B/ to iOS May 12 23:59:54 g00s: what do you mean by that? May 13 00:00:35 google couldn't let Cupertino decide their fate, they needed something else. May 13 00:00:43 something they owned May 13 00:01:30 the other weird timing thing is vic gundotra leaving May 13 00:01:41 i could be wrong, but i would imagine Apple would still be using Google for search and Maps, etc, had Google not created Android May 13 00:02:27 I think Android was a double edged sword. And Google has pockets deep enough that it didn't need a plan b May 13 00:02:57 it happens quite frequently where they do spring cleaning to get rid of failed projects that have no replacement May 13 00:03:19 I dunno about that, Apple are very controlling and I don't think google would ever bow down enough for apple May 13 00:03:20 chrome os could be their plan b for Android May 13 00:04:17 does iOS use Bing or Yahoo? May 13 00:04:23 bing May 13 00:04:31 * birbeck pukes May 13 00:04:34 but bing and yahoo are the same thing now May 13 00:15:48 I do believe you about not nesting GoogleMap fragments, but why the heck internet is full of tutorials how to nest those? May 13 00:17:28 creitve: cause people often do things wrong May 13 00:17:37 and lazy programmers copy their mistakes May 13 00:26:21 my min sdk is 7 and target is 19. i have an avd with api 19 and google apis. why is it telling me no compatible device is found? May 13 00:26:56 "still no compatible AVDs with target 'Google APIS' Aborting launch" May 13 00:27:20 hm, api 7 and 8 use different play services apis May 13 00:27:28 well 8 uese the froyo version ... May 13 00:27:32 7, uh May 13 00:27:32 meaning? May 13 00:28:28 never had issues developing and testing this app 6 months ago May 13 00:28:45 not sure how that works; if you are going down to 8 do you need 2 apks ? May 13 00:28:48 now all the sudden, i spend 6 hours just to make it not throw errors and build, and now i can't get it to run on any virtual device May 13 00:29:24 say minsdk=15 and see if that helps :) May 13 00:29:26 Remind me, should I remove super.onViewCreated(view, savedInstanceState); from my SupportMyFragment? May 13 00:29:53 still... May 13 00:30:50 another app with the same deps (sherlock and google maps via services) and same min sdk works fine, ugh May 13 00:33:20 Has anyone here used cocos2d May 13 00:35:11 pretendo: have you looked at robovm ? May 13 00:36:48 No May 13 00:37:00 robovm with libgdx, i should've been clearer May 13 00:40:21 Also does anyone know what a record overflow is May 13 00:42:13 Its when the data has for too long been under the thum of the buffer, and in a moment of spurious singularity throw off the shackles of their weak reference counters and proceed to overtake the stack in frontal protocol attack on the process tree! May 13 00:42:18 *thumb May 13 00:42:23 *it's May 13 00:44:35 I fight for the users! May 13 00:54:13 I love coding for the simple fact when you're in the flow by the time you look up again official working hours have come to an end. :( May 13 00:54:17 * :) May 13 00:55:11 then realise you STILL haven't fixed that bug May 13 00:55:36 Hey guys question, I have a c method that returns an array of doubles and im trying to convert the array into an object and having issues with that :-( May 13 00:56:26 http://pastebin.com/jJG3aKaq May 13 00:56:55 Invalid indirect reference 0x40280000 in decodeIndirectRef May 13 00:57:19 sorry noOfPasses is double* May 13 00:57:39 pretendo: I dabbled in Cocos2d-X a while back... May 13 00:59:18 heres the whole method if that helps http://pastebin.com/AXNx2vjc May 13 01:01:10 my c is a little rusty, I know im not properly derefencing the array elements but I also dont know how to remedy that :-( May 13 01:02:34 did you bodge up that paste job or are you double declaring things ? May 13 01:03:22 paste was bad May 13 01:03:33 the second set of declarations arent in the code May 13 01:04:00 http://pastebin.com/dJyd3uee May 13 01:09:26 Excuse me, if I extend SupportMapFragment now, and this is the fragment I want to load to frameset, how do I use it without inflating any layouts, just by using it? Is it the right thing to do, I did I get it all wrong again? May 13 01:10:32 bankai_au: any ideas on what I am doing wrong, I am sure its ovious I have just been staring at it to long to get it right May 13 01:13:38 I rewrote the whole thing, but I think I ended up again using nested fragments, or maybe not. May 13 01:15:16 bankai_au: :) May 13 01:15:58 has anyone noticed that DrawerLayout is retained in memory after an activity is destroyed? May 13 01:17:28 Hi Guys, Does eclipse have out of the box support to push the project code on Github? May 13 01:27:09 creitve: i still fail to see the problem with that... May 13 01:35:50 bankai_au: My problem is that I'm very new to the job. But I already figured it out, thanks! May 13 01:47:07 Does anyone here dev for android? If so what software framework do you use? May 13 02:03:50 hello all May 13 02:04:29 Is there a way to have Wifi + 4G enabled simultaneously? I don't need the wifi for data, just the 4g but I need to have the WiFi connected to an AP for ad-hoc purposes. Basically, I need to pull GPS coordinates from phone (locationChanged) and feed those data points to an AR Drone over the WiFi Ad-hoc connection. May 13 02:06:07 Im guessing GPS should work without data plan even but I want to double check if I actually need data plan **** ENDING LOGGING AT Tue May 13 02:59:59 2014