**** BEGIN LOGGING AT Wed Sep 25 02:59:59 2013 Sep 25 03:00:49 commands like "take a look beside the fridge, what do u see?" Sep 25 03:01:04 TechEffigy, great Sep 25 03:01:17 i think android is a place for desingers Sep 25 03:01:26 sorry apps in general Sep 25 03:01:55 but still in the planning phases, design has been done, storyline needz to be developed, but close to programming Sep 25 03:03:30 well android apps.seem to concentrate on web services, yet there aren't any web services available that havent been turned into apps Sep 25 03:03:44 and the app world is over flooded Sep 25 03:04:38 3d is starting to take over android games, apps are being made by teams. so becomming something takes something Sep 25 03:05:37 even adobe is starting to jump into the app world and Microsoft is even making apps Sep 25 03:06:08 we need an android reset, i think amazon might have helped with that a bit Sep 25 03:07:35 lol Sep 25 03:14:14 id love to see a remake of carmen san Diego game for android Sep 25 03:18:05 game lovers Sep 25 03:22:50 TechEffigy, is there any app that can bring together feeds from all the soical networks Sep 25 03:24:13 hootsuite Sep 25 03:24:22 paid app Sep 25 03:24:46 paid is not my thing Sep 25 03:24:54 hoot suite, journalists use it Sep 25 03:25:29 flipboard or feed reader Sep 25 03:26:44 paid is not your thing? Sep 25 03:28:51 Leeds, Credit cards aren't common in my country Sep 25 03:29:24 I see that excuse a lot... I don't believe it Sep 25 03:31:34 Leeds, if i was in a developed world i won't belive it either Sep 25 03:31:42 but its true man Sep 25 03:32:01 where are you? Sep 25 03:32:05 Leeds, does google accept visa cards? Sep 25 03:32:19 Leeds, Cameroon Sep 25 03:32:31 yes, of course they accept Visa Sep 25 03:32:56 I think I found a bank here that does Visa Sep 25 03:33:11 just that you have to pay 40$ yearly Sep 25 03:37:09 TechEffigy, I tired downloading https://code.google.com/p/iosched/source/browse/ but i get a connection problem Sep 25 03:37:22 please do you know how large the file is? Sep 25 03:43:09 TechEffigy, ur there? Sep 25 03:43:57 im on my fone on irc, cnt help u out Sep 25 03:44:08 get a dl manager Sep 25 03:44:39 okey Sep 25 03:44:56 nope its a github code Sep 25 03:45:02 needs to be cloned Sep 25 03:49:56 TechEffigy, enough research needs to be done before creating an app i guess Sep 25 03:50:16 or you will just create what is already out there Sep 25 03:53:47 theres nothing new under the sun Sep 25 04:08:49 I am trying to update apps on my android device and it shows there is an update but after it downloads says X app is not installed when it is. Is there a way to find out why it does this? I do have a sd card mounted(installed) Sep 25 04:11:01 stop asking, please go away Sep 25 04:11:45 it's a bot Sep 25 04:11:55 its crapbot Sep 25 04:12:55 someone please ban then Sep 25 04:13:12 i reckon stack overflow made a bot to torment us with all their worst questions Sep 25 04:13:42 y'all are welcome in #android-root, where I already banned him... Sep 25 04:16:53 lol I used to be like LLckfan when i just joined IRC Sep 25 04:17:15 spamming every channel you can find? Sep 25 04:18:37 i use to just hang in the #ebookz channels and go through all the list of books that the dcc bot had to offer and icmp ping everyone offline and do channel takeovers Sep 25 04:19:01 but then windows fixed the icmp flood bug Sep 25 04:19:06 NOT A BOT Sep 25 04:19:27 that was what bot said last time too Sep 25 04:19:29 exactly same Sep 25 04:19:54 7th sphere was the hackers irc client of th day Sep 25 04:19:56 XXCoder f u Sep 25 04:20:03 what time? Sep 25 04:20:20 f time Sep 25 04:20:48 actually forget it Sep 25 04:20:50 lol Sep 25 04:20:53 I'm not into robot sex Sep 25 04:21:05 you might like it Sep 25 04:21:18 futurama Sep 25 04:21:32 bankai_, nope i just wanted to get help so despirately Sep 25 04:21:56 i had to post my questions repeatedly till someone responds Sep 25 04:22:37 who made who Sep 25 04:22:42 who made who Sep 25 04:22:48 who made who Sep 25 04:22:57 see it doesnt help Sep 25 04:23:09 well good night/day ll Sep 25 04:23:11 all Sep 25 04:23:17 of course thats cuz you know Sep 25 04:23:24 beginers don't Sep 25 04:24:39 chicken or the egg? what would Darwin say? Darwin would say the fish then the chicken Sep 25 04:25:17 lol Sep 25 04:27:51 well thats nice, they focused on making gradle 1.8 faster yet Sep 25 04:29:14 who first introduced you to IRC? Sep 25 04:31:52 RFC irc protocol Sep 25 04:32:32 how much has gta 5 made presently? any ideaz? Sep 25 04:32:44 <^cheeky> anyone from san fran ? Sep 25 04:43:19 hm, so i have a fragment with a list of things. adding a new thing requires only 2 pieces of info, seems kinda heavy handed starting a new activity. i hate dialogs. what else should i try ... Sep 25 04:43:27 maybe i can have a tiny fragment appear from the bottom when the '+' button is hit Sep 25 04:43:47 does that seem weird? i can't recall any app behaving like that Sep 25 04:46:02 oh stop laughing :| Sep 25 06:00:38 anyone developing anything interesting? Sep 25 06:01:09 I'm developing a hatred for humanity Sep 25 06:02:48 been there done that Sep 25 06:03:22 I'm developing a headache … and a dislike for php Sep 25 06:03:31 just listen to black Sabbath, buy 2grams magic mushrooms and everything will make sense afterwards Sep 25 06:03:58 what r u Dev in PHP? Sep 25 06:05:03 nothing atm… since I netiher like or know it Sep 25 06:05:06 hello i am try to use android studio but i am getting an error "cannot resolve method setcontentview" Sep 25 06:05:09 but thats the problem Sep 25 06:05:22 lol sting* Sep 25 06:05:33 sting?ay \o/ Sep 25 06:05:40 stingsay`: then your not in a class with that method Sep 25 06:06:14 looking at this php pdo crap Sep 25 06:06:23 and it's getting me angry now Sep 25 06:06:31 id stay away from android studio until its matured Sep 25 06:06:40 hello i am try to use android studio but i am getting an error "cannot resolve method setcontentview" Sep 25 06:07:02 StingRay_ what i can do Sep 25 06:07:12 use a class that has that method Sep 25 06:07:20 like extend Activity :) Sep 25 06:07:21 maybe u shud checkout PHP mvc before jumping into pdo Sep 25 06:07:55 u prob havent imported the activity package Sep 25 06:08:19 TechEffigy: mvc is a pattern not a function ? Sep 25 06:08:34 rather a pattern of functions :) Sep 25 06:09:01 I just want a secure adaptive way to get data from mysql…and it's all just pants Sep 25 06:09:03 but pdo is designed to work with the mvc pattern Sep 25 06:09:17 pdo is ur modal Sep 25 06:09:23 StingRay_ pants ? Sep 25 06:09:42 crap, sh*t, etc Sep 25 06:09:48 then make ur controllers and things will become simpler Sep 25 06:10:07 StingRay_ is this for your app ? Sep 25 06:10:10 ya Sep 25 06:10:15 "The" app Sep 25 06:10:17 ok Sep 25 06:11:47 StingRay_ get yourself a real language like scala or clojure, or do the service in python … why the fuck php Sep 25 06:11:50 I just wanted to construct a nice script that can take things like limits, select vars and where IN Sep 25 06:12:28 g00s: you forget, I'm not only NOT a programmer, I dont like learning new things eithers Sep 25 06:12:28 get a good pdo tutorial then Sep 25 06:12:40 TechEffigy: from what I read it cant be done Sep 25 06:12:44 StingRay_ come on, python is easy Sep 25 06:12:55 I know python from VFX stuff Sep 25 06:13:00 maya, nuke etc Sep 25 06:13:09 all heavy python based tools and automations Sep 25 06:13:20 fuck, one of the reasons why i went from perl -> python, is that i'd forget perl syntax is like a week, but could write python a year later with 10 minutes of refresher Sep 25 06:13:36 that was long ago ;) Sep 25 06:13:45 i think it can Sep 25 06:14:19 TechEffigy: example SELECT ? FROM ? WHERE ? ? Sep 25 06:14:35 ovcourse u can do that Sep 25 06:14:40 StingRay_ you better study your sql injection stuff :) Sep 25 06:14:56 g00s: thats the reason for pdo Sep 25 06:14:58 maybe ur prob is that magic slashes Sep 25 06:15:00 i'm going to sign up, with my name as 'null' :) Sep 25 06:15:48 TechEffigy: I get errors when doing SELECT :someVal FROM myTable Sep 25 06:15:49 build ur queries into the sql engine Sep 25 06:15:59 magic slashes Sep 25 06:16:05 using bindValue Sep 25 06:16:09 magic slashes ? Sep 25 06:16:28 sounds like a special move for a character in a fighting fantisy game Sep 25 06:16:34 turn of magic slashes if enabled an handle ur strip slashes and ect Sep 25 06:18:36 just an idea nt sure if thats the problem Sep 25 06:18:56 what error u getting Sep 25 06:19:08 oh arse cocks Sep 25 06:20:14 i need to look into the magic stuff for php 5.2 Sep 25 06:21:04 oh wait Sep 25 06:21:09 I'm on 5.4 Sep 25 06:21:32 i learned these interesting PHP things from Lynda.com Sep 25 06:21:42 5.4 should be free of such things Sep 25 06:21:46 from what I'm reading Sep 25 06:22:15 just get urself an Lynda.com vid for PHP pdo from piratebay Sep 25 06:22:32 and if u have money buy it Sep 25 06:22:36 that makes me angry, learning something when I have not got the time Sep 25 06:22:52 for what will turn into "no cant do it" or 5 min of implementation Sep 25 06:22:59 ugh! Sep 25 06:23:20 I dont think it's a quotes/slash issue Sep 25 06:23:35 as other statements work fine Sep 25 06:23:54 as in SELECT * FROM myTable WHERE somefield = :value Sep 25 06:24:12 but not SELECT * FROM :table Sep 25 06:25:11 if i stand up and look in my dl book collection to tell u which book to dl Sep 25 06:25:27 would i b wasting my time? Sep 25 06:26:23 well all I need is an example that proves it can be done Sep 25 06:26:41 cause have not found any evidence yet Sep 25 06:27:03 only evidence that supports that it can't Sep 25 06:28:45 PHP master write cutting edge code Sep 25 06:29:10 im looking at the code u need in that book Sep 25 06:29:16 go dl it Sep 25 06:33:16 getting it Sep 25 06:33:35 <1JTAAX1FD> NickServ hates me. Sep 25 06:36:02 hello, is there a way to disable the showing of 'app has stopped responding' dialog in my app? (or at least ask for a password when clicking 'force close'?) Sep 25 06:36:28 actually the second option would be better Sep 25 06:36:37 ANR is a system event Sep 25 06:36:46 means you have screwed up in your app Sep 25 06:37:42 TechEffigy: what section page ? Sep 25 06:37:54 but there is no way you can be 100% sure that in won't show also in a well written app. is it? Sep 25 06:39:47 the problem is my app should be working in kiosk mode, so people cannot get out fo the app without typing a password Sep 25 06:40:12 but I can see how this dialog can screw things up if it would ever show Sep 25 06:41:19 TechEffigy: just downloaded that book, looked through, again, leads me to think not possible as nothing in that book supports what I want Sep 25 06:44:16 look under parameters and prepared statements Sep 25 06:44:54 page 47 Sep 25 06:45:09 yeah Sep 25 06:45:21 that just shows standard use Sep 25 06:45:35 not the usage example I gave Sep 25 06:45:39 o sorry then i misunderstood Sep 25 06:45:53 I dont think pdo can do it Sep 25 06:46:01 that kinda proves it though Sep 25 06:46:02 all that effort for nothing Sep 25 06:46:33 page 49 Sep 25 06:46:35 what I wanted is SELECT (params) FROM (param) WHERE (params) (params) Sep 25 06:46:55 page 49 Sep 25 06:47:21 again it just works with conditional vals that have assignments Sep 25 06:47:36 eg a param can be '1' so you can have id = param Sep 25 06:47:52 but a param cannot be ' id = 1 ' Sep 25 06:48:48 so you cant have nice dynamic WHERE IN () clauses Sep 25 06:49:01 just append the string? Sep 25 06:49:12 it is not a string at that point Sep 25 06:49:25 it's a pdo object Sep 25 06:49:43 with a compile/locked query string that dont do what I want :( Sep 25 06:49:48 then use the old mysql functions Sep 25 06:50:04 may have to prevent injections with standard sql yeah Sep 25 06:51:56 saludos Sep 25 06:55:57 http://codepaste.net/o7mabm <- running this code and it still doesn't clear shared preferences. one toast does show directory that seems to be shared preferences but when program continues it STILL loads previous data. Any idea what I'm doing wrong? Sep 25 07:01:28 tneva82: why don't you call editor and call clear if you want to clear shared preferences? Sep 25 07:04:04 I want to clear _everything_ and not just shared preference. Basically under certain conditions return program to state where it was installed. Plus I might have made logic mistake by adding username after shared preference file name to create user specific settings so I would need to keep track of all the logged users username somewhere right? Sep 25 07:04:28 albeit even better way might be to figure why program sometimes crashe until data is cleared after changes. Sep 25 07:13:10 anyone any android (client side) solution for this? http://stackoverflow.com/questions/18981968/handle-android-half-uploaded-broken-uploaded-images-to-server Sep 25 07:38:27 so gradle 1.8? Sep 25 07:39:24 lemonxah Alex Ruiz says it doesn't work right with AS, so stay on1.7 Sep 25 07:39:39 unless, you're using vim or something ;) Sep 25 07:39:55 how did you know i am on vim? Sep 25 07:40:03 :D Sep 25 07:40:35 otoh, the bugs may be anywhere between gradle, as, and the android-gradle plugin … so i'd avoid until blessed Sep 25 07:42:12 so it doesn't work for allready setup projects? Sep 25 07:42:24 as far as i understood is that new project imports didn't work Sep 25 07:42:30 but existing projects worked Sep 25 07:42:33 i didn't check up enough to figure out Sep 25 07:42:56 just want something to cut the 30 second build time down to -4 second Sep 25 07:42:57 heh Sep 25 07:43:11 hello maiatoday Sep 25 07:43:14 welcome Sep 25 07:43:16 hi lemonxah Sep 25 07:49:10 huh, as as update today Sep 25 07:49:29 lemonxah I saw Alex's comment early today, before the .10 release Sep 25 07:49:32 maybe they fixed it Sep 25 07:50:12 that would be awesome Sep 25 07:51:19 do you know where the rev history is for AS ? Sep 25 07:52:06 in As, when i click on rev history, it just takes me to http://developer.android.com/sdk/installing/studio.html Sep 25 07:52:12 which is pretty generic Sep 25 07:52:34 yeah hold on :) Sep 25 07:53:13 maia gots it Sep 25 07:53:14 :) Sep 25 07:53:44 http://tools.android.com/recent/androidstudio0210released Sep 25 07:58:29 yeah, looks like gradle 1.8 should work now :) Sep 25 07:58:43 lemonxah do you seriously do your android dev in vim ? Sep 25 08:06:00 heh no g00s Sep 25 08:06:16 soz was just messing with you Sep 25 08:06:22 i use android studio Sep 25 08:06:39 :D Sep 25 08:07:13 i'm not convinced Leeds really uses vim. i think he's a secret eclipse user with emacs keybindings Sep 25 08:07:29 heh Sep 25 08:07:35 i used to use eclipse Sep 25 08:07:38 never intelliJ Sep 25 08:07:51 but since android studio i am an intelliJ convert Sep 25 08:08:18 http://tools.android.com/recent Sep 25 08:08:19 i like both, but use as atm because of gradle Sep 25 08:08:28 that is all the recent changelist Sep 25 08:10:23 cool thanks. lots of stuff Sep 25 08:10:27 wonder what this is Indirect AAR library dependencies are now handled correctly Sep 25 08:10:50 "Further improvements to the Gradle output parser:" Sep 25 08:11:03 uh gross, so AS is parsing the gradle output ? gahh Sep 25 08:11:31 i wonder why they went with gradle in the first place Sep 25 08:14:10 here is my conspiracy theory based on ignorance most likely: ant tasks for android were a clusterfuck (well, xavd already said that) , maven … could it do multiple artifacts (flavors/variants) per project? … i think the variants / flavors is part of google's strategy to give us tools to manage complexity Sep 25 08:14:31 maybe when android 5 comes out, variants will make even more sense? no idea ... Sep 25 08:14:59 trying to get gradle and sbt-android to play well Sep 25 08:15:15 oh ... Sep 25 08:15:16 dont know enough from either Sep 25 08:15:37 must reboot Sep 25 08:18:52 wb Sep 25 08:21:00 :) Sep 25 08:22:55 Hi, I just updated my Android Studio and when I launch it, theres a pop up asking me to migrate to Gradle. I accidentally click don't show anymore, and now I want to know how to move to the Gradle build, can anyone please help? thanks Sep 25 08:23:51 delete your .idea folder for the project and re-import it Sep 25 08:23:56 and the iml files Sep 25 08:24:17 every time i update AS, i go through that dance … Sep 25 08:24:23 less hassle Sep 25 08:28:29 g00s: I really should see if I can dig out a copy of the photo of Bram looking at vim on my iPaq about 10-12 years ago, obviously thinking you'd have to be pretty strange to try to use vim on a touchscreen device without a hard keyboard :) Sep 25 08:28:44 so is it a better idea to keep the .idea settings? or just completed reimport and have Gradle take care of it from now on? Sep 25 08:29:59 dck28 i delete .idea and .iml files Sep 25 08:32:38 dck28, working? Sep 25 08:33:19 ummm… still hesitating.. haha… let me take a deep breath first Sep 25 08:34:03 android is always … exciting that way dck28 Sep 25 08:38:05 dck28, make copies Sep 25 08:38:10 make a copy of the entire folder Sep 25 08:38:16 and then you have a restore point Sep 25 08:38:32 then delete the .idea folder and .iml files Sep 25 08:38:36 easy peasy Sep 25 08:40:02 > http://www.androiddesignpatterns.com/ great site Sep 25 08:41:05 yeap.. just did that lemonxah Sep 25 08:41:16 now it says my project is an Android ADR projet Sep 25 08:41:21 i have export it first from ADT Sep 25 08:41:38 O.o Sep 25 08:41:46 nooo this was so easy, waaat did you do ! Sep 25 08:42:24 Ahhh… I have no clue.. I made a copy of the entire folder… then I deleted the .idea folder and the .iml file Sep 25 08:42:26 dont export it Sep 25 08:43:28 ok.. and the .idea folder just reappears... Sep 25 08:43:49 its getting close to halloween … maybe the project is haunted Sep 25 08:44:29 dont open it again in android studio Sep 25 08:44:31 delete it all Sep 25 08:44:39 and close the project in as Sep 25 08:45:02 so close the project in as and then delete it on the start screen Sep 25 08:45:09 then delete the folder and files Sep 25 08:45:33 then click on open project then browse to where it is Sep 25 08:47:38 i browse to it and it says cannot open because it cannot find the .idea folder… did you mean Import Project instead of Open Project? Sep 25 08:48:08 yeah Sep 25 08:48:12 try that :) Sep 25 08:48:47 now it says The project is an Android ADT project… you first need to *export* it as a Gradle project from ADT Sep 25 08:48:53 same prompt as b4 Sep 25 08:48:59 *sweating** Sep 25 08:49:45 i didn't use ADT before Sep 25 08:49:49 i used eclipse itself Sep 25 08:49:55 i delete the eclipse project files Sep 25 08:50:00 so that its only code Sep 25 08:50:10 and i moved my code around Sep 25 08:50:19 src/main/java Sep 25 08:50:28 src/main/androidmanifest.xml Sep 25 08:50:33 src/main/res Sep 25 08:51:43 Leeds when are you getting back into android :P seemed like you were taking a hiatus Sep 25 08:52:11 I have, a bit... I've been pretty directionless recently, and one of those directions has been Android Sep 25 08:52:33 lemonxah: so I also see .classpath and .project in my root workspace Sep 25 08:52:33 Apparently, actionbar sherlock and holoeverywhere doesn't work together anymore if not since before. Sep 25 08:52:38 dck28, what you can do aswell Sep 25 08:52:48 is to create a new android app in AS Sep 25 08:52:50 Someone said there's no need for actionbar sherlock anymore. Is that true? Sep 25 08:52:56 and then copy in your code files Sep 25 08:53:03 neuro_sys that is true Sep 25 08:53:16 that would be better i guess if you dont know gradle Sep 25 08:53:21 neuro_sys either minSdk=15 or use appcompat Sep 25 08:53:35 neuro_sys, there is problems with appcompat Sep 25 08:53:35 in either case, holo everywhere is probably a bad idea Sep 25 08:53:50 lemonxah orly ? Sep 25 08:53:54 yeah Sep 25 08:53:54 well I have to use minSdk=11 or something Sep 25 08:53:55 themeing Sep 25 08:54:00 theme-ing Sep 25 08:54:13 you have to have 3 of the same style using appcompat Sep 25 08:54:19 cause it doesn't just work like ABS Sep 25 08:54:25 >.> Sep 25 08:54:26 ABS is cool in that it just works Sep 25 08:54:43 if you allready have ABS then dont go appcompat Sep 25 08:54:47 its not worth while Sep 25 08:54:52 Leeds updating your weather app, or creating new apps ? Sep 25 08:55:16 haven't needed to update it recently - we had a typhoon skim over us at the weekend and it all appeared to be working fine... Sep 25 08:55:32 but does it look nice on Android 4 ? Sep 25 08:55:33 the only issue is about theming. Sep 25 08:55:43 I want the 2.x look like holo Sep 25 08:55:55 nah, it looks crap, but it's mostly notifications and a webview anyway Sep 25 08:56:01 oh :) Sep 25 08:56:21 yeah the issues with appcompat so far is with theming Sep 25 08:56:26 Leeds what other technologies and things are you thinking about ? above, you mentioned being a little distracted Sep 25 08:56:28 other than that it looks ok Sep 25 08:56:54 still doing django stuff i take it Sep 25 08:57:04 other than that, I've started on an app to go with the new site I've been building for the dayjob... doing it with appcompat etc. but I've found it hard to focus - partly just generally distracted in life, partly because I find it hard to get a block of a few days to work on it without being pulled back into web stuff by the boss Sep 25 08:57:37 hey.. lemonxah, I got pass the prompt… I deleted the .classpath folder and .project folder Sep 25 08:57:46 Leeds using anything for web beside django? Sep 25 08:57:47 yeah Sep 25 08:57:51 now should i select Creat project from existing sources? Sep 25 08:57:52 and I'm still trying to work out if it's worth going to the BB Jam Asia conference tomorrow Sep 25 08:57:53 thats what i though you did allready Sep 25 08:58:02 g00s: not really Sep 25 08:58:03 cause it detects that its an eclipse project Sep 25 08:58:10 Leeds lol, oh man, probably not worth it :| Sep 25 08:58:23 g00s: actually been working on a small side project in pure Python CGI :( Sep 25 08:58:23 BB seems pretty screwed Sep 25 08:58:42 switched from sherlock to appcompat very easily, let's see how it works Sep 25 08:58:43 i see Sep 25 08:59:08 somewhere between "pretty screwed" and "stick a fork in it, it's done" Sep 25 09:00:09 but... free conference, free lunch, potentially free hardware... is it worth the US$8 or so train fare to go and hear their keynotes? Sep 25 09:00:56 private properties, private properties everywhere! I hate those, especially when I need to access them -_- Sep 25 09:00:57 hm Sep 25 09:01:37 Leeds what if you're the only one there, they will think you are their super fan ! Sep 25 09:01:42 From code cleanliness point of view, do you guys think copy pasting the ArrayAdapter source code in my project is ugly or super ugly? Sep 25 09:01:54 the ceo might have a few minutes to talk to you :) Sep 25 09:02:10 Max-P ArrayAdapter sucks, ass, just use BaseAdapter Sep 25 09:02:13 they just emailed me some pre-event info, including how to setup for their wifi on my "BlackBerry® 10 smartphone" - so cute Sep 25 09:03:01 g00s, Yeah, but my adapter IS an array. I just need to change the getView so it takes a property in a JSONObject. Sep 25 09:03:04 g00s: the ceo is currently working hard on collecting his Elop-bonus Sep 25 09:03:27 Max-P NEVER use ArrayAdapter, even if you have an array :D Sep 25 09:03:37 what to use always? Sep 25 09:03:55 cursor eh? Sep 25 09:03:56 extending BaseAdapter is like 10 lines of code :) Sep 25 09:04:08 In fact I would have rebuilt it using entirely JSONArray, but they lack the flexibility to sort them even if it uses an ArrayList internally. And it's private too, so I can extend either of them Sep 25 09:04:12 but why not use array adapter? Sep 25 09:04:15 so what's wrong with arrayadapter? Sep 25 09:04:17 what does it do that is evil? Sep 25 09:04:29 it should be removed from the SDK Sep 25 09:04:34 why? Sep 25 09:04:35 its just Sep 25 09:04:39 STUPID ! Sep 25 09:04:42 but why Sep 25 09:04:44 it doesn't do anything Sep 25 09:04:45 blanket statements like that are not exactly convincing Sep 25 09:04:50 read the code :) Sep 25 09:04:51 you are more likely to get opposite effect Sep 25 09:04:53 * lemonxah goes to read it Sep 25 09:05:01 So it's just a total clone of ArrayAdapter but with protected fields instead of private so I can do what I need Sep 25 09:05:02 we only have cursoradapters anyway Sep 25 09:05:03 you guys see ApiDemos just uses BaseAdapter :D Sep 25 09:05:14 oh well for Cursors, thats something else Sep 25 09:05:52 Well, anyway, if ArrayAdapter is already ugly (?) then I won't mind writing a slightly modified clone of it. Sep 25 09:06:07 ArrayAdapter is dumb because it owns the model Sep 25 09:06:21 and it delegates adds/removes to the model it then owns Sep 25 09:06:26 well. until given something other than blanket statements without evidence I'll just ignore such stupid statements Sep 25 09:06:32 just so it can call getNotifiedChange or whateve Sep 25 09:07:08 tneva82 use ArrayAdapter ! Sep 25 09:07:11 its awesome ! Sep 25 09:07:53 * g00s doesn't care Sep 25 09:08:01 i've been doing this for quite a while ;) Sep 25 09:08:16 well. now I know whom to not listen Sep 25 09:08:31 I don't understand what you say but okay, whatever. I really just needs to plug an array to a stupid spinner, there's no violation of models or anything. It comes straight from the server :) Sep 25 09:08:32 tneva82 also, NEVER listen to me Sep 25 09:10:13 hello, how come when I create the a project from existing source, AS doesn't create the gradlew script for me? do I have to manually create the build.gradle file? Sep 25 09:10:23 tneva82 you are right, of course … from an epistemological position, my argument was vacuous Sep 25 09:10:30 hehe Sep 25 09:10:58 i just don't care enough to explain it, because … i've probably explained it 100 times of the past 4 years :D Sep 25 09:11:08 alright, time to work out how to handle paypal subscription notifications in Python 2.4 Sep 25 09:11:11 at some point, you just can't keep answering the same questions Sep 25 09:11:41 when I Import Project, and create from existing source, it basically just spits our the same old .idea and .iml folders and files for me… Sep 25 09:12:04 Leeds Python ** 2.4 ** ? Sep 25 09:12:13 what the hell, isn't that ancient ? Sep 25 09:12:36 extremely, yes Sep 25 09:13:21 with a version of mysql that's so old that current DB adapters won't authenticate against it Sep 25 09:13:35 uh oh, sounds like huge technical debt Sep 25 09:13:55 for a sort of private angellist-type site Sep 25 09:14:17 dck28, that is kinda fine but now there is no gralde Sep 25 09:14:30 ok so close the project Sep 25 09:14:35 read up on gradle a bit Sep 25 09:14:41 create your settings.gralde Sep 25 09:14:45 and build.gradle files Sep 25 09:15:11 grouped angel investments... I've told them, quite strongly, that their hosting environment simply isn't fit for purpose, and they've agreed in principle - but they still want to build a prototype/demo on the existing infrastructure, and they've paid for it, so... Sep 25 09:15:24 AS is still preview really Sep 25 09:16:45 ohhh.. ok… I though they had a pop up meaning they would have automated that migration process.. hahaa.. thanks for clarifying.. I think i'll stick with .idea for now since i'm not too familiar with gradle Sep 25 09:16:48 Leeds tell them it needs to be node.js Sep 25 09:16:51 * g00s is joking Sep 25 09:17:28 dck28, gradle isn't that bad Sep 25 09:17:32 its really easy to setup Sep 25 09:17:59 not to mention a table-based design with a *massive* rotating image banner, build by some guy in dreamweaver or similar, then modified by hand since... Sep 25 09:18:26 dreamweaver, hehe Sep 25 09:18:33 I stopped reading at "dreamweaver" and instantly understood. Sep 25 09:19:29 I'm also trying *really* hard to stop things from going past the agreed (and fixed-fee already paid for) work without a proper design and plan in place Sep 25 09:22:21 :( Sep 25 09:23:49 Leeds well, as for what i've been doing - i'm in dismay to see my abandoned app accelerating in sales :| which means i should do something i guess Sep 25 09:25:04 but i'm working on a tiny app one fella at the Pawsey supercomputing center (iVEC) will use to monitor the temperature of a home-made shit ton of temperature sensors connected to raspis via mqtt, so thats a ton of fun Sep 25 09:26:17 honestly, i'm kinda struggling to understand the "latest techniques" of how to partition an app with activities, fragments, and layouts for both phone & tablets, all screen sizes Sep 25 09:26:26 i find the resulting mess of stuff quite confusing Sep 25 09:26:43 for example, when i look at iosched … well, in 2010 it was obvious what was going on Sep 25 09:26:51 now the iosched 2013 has me more confused Sep 25 09:27:42 i'm not sure if i'm ever going to figure this out. maybe its meant to just be a mess :| Sep 25 09:29:06 I haven't really made that much of an effort to get my head around it Sep 25 09:29:35 g00s: what dont you get ? Sep 25 09:30:01 StingRay_ i think i get it, but my brain hurts Sep 25 09:30:31 or, i wish there was a better way to wire up all this stuff Sep 25 09:30:50 i noticed in iosched 2013 they embedded some metadata in the manifest entries for each activity Sep 25 09:30:59 they do some dynamic configuring from that Sep 25 09:31:22 dont see why it would be needed tbh Sep 25 09:32:31 hey guys - im trying to sort some boundaries when i pinch zoom. the default size of the image is 2200x2200. So that means that the view boundary is set to 1720x1400. However when i scale the image so that it becomes 4400x4400, the boundary still is set to 1700x1400. Sep 25 09:32:35 any ideas ? Sep 25 09:33:24 Leeds maybe its time to move to Paris ! http://www.rudebaguette.com/2013/09/25/in-2016-paris-to-be-home-to-the-biggest-digital-incubator-in-the-world/ Sep 25 09:35:21 Leeds also, some fun stuff from today … http://blog.disqus.com/post/62187806135/scaling-django-to-8-billion-page-views Sep 25 09:53:13 new AS seems to work great :D Sep 25 10:05:27 Hello guys, anyone here using Applift SDK for banner ads? Sep 25 10:05:58 I would like to try them out, but I don´t know what fillrate and ecpm they have, if it is a good choice compared to admob. Sep 25 10:06:49 <^cheeky> yes i please dont CAN AS Sep 25 10:08:42 Hmm I´m sorry? Sep 25 10:12:55 <^cheeky> MetalGuru: sorry, disregard that Sep 25 10:13:06 :) Sep 25 10:13:26 So, noone here is using applift SDK? Sep 25 10:14:06 I am just trying to find something similar to admob, since they e-mailed me today that they will stop serving ads for my biggest app, without any reason. Sep 25 10:23:02 as u talked about gradle/android studio, I have a serious issue there. I setup a new project and i can't get it to work. The app crashes instantly and always this error: android.view.InflateException: Binary XML file line #1: Error inflating class android.support.v4.widget.DrawerLayout Sep 25 10:24:01 i already added support library as external library, but only helped that in UI preview now there is no render error for drawerLayout anymore. Compile seems to work, but if tested on device the app crashes Sep 25 10:24:29 android studio version is 0.2.9 Sep 25 10:31:42 hey guys - im trying to sort some boundaries when i pinch zoom. the default size of the image is 2200x2200. So that means that the view boundary is set to 1720x1400. However when i scale the image so that it becomes 4400x4400, the boundary still is set to 1700x1400. Sep 25 10:54:33 what will happen when i export an eclipse project (including support-lib v7, v4) to an gradle project and import it back to android studio? Sep 25 11:02:31 Hi! Sep 25 11:04:29 Does somenone know howto use clang with "and debug/release"? Sep 25 11:04:54 i cant seem to find where to change the toolchain when using ant :( Sep 25 11:13:51 Does somenone know howto use clang with "and debug/release"? Sep 25 11:16:26 largeHeap=true, what is the usual heap size with that? Sep 25 11:38:29 with google drive, is there a way to launch the picker and get the URL of the document? subsequently, is there a way to exclude google drive from ACTION_GET_CONTENT? Sep 25 11:39:39 I want to sort a array with a comparator. My array is something like this: String[][][][][] TabList Sep 25 11:39:39 the comparator can only sort a 2d array? Sep 25 11:40:09 https://github.com/jvoegele/gradle-android-plugin/wiki is that the android plugin used in AS? Sep 25 11:40:29 if that is fact how to get scala working on it cause it says scala support? Sep 25 11:44:35 How do you use CLANG with Android Ant Build? Sep 25 11:51:37 Hey Guys I'm trying to use Roboelectic with eclipse, API 16 Android Sep 25 11:52:04 but my project cannot resolve the roboelectric jar The import com.xtremelabs cannot be resolved Sep 25 11:52:23 I am using robolectric-2.2-20130925.063940-58-jar-with-dependencies.jar Sep 25 11:54:34 hey guys - im trying to sort some boundaries when i pinch zoom. the default size of the image is 2200x2200. So that means that the view boundary is set to 1720x1400. However when i scale the image so that it becomes 4400x4400, the boundary still is set to 1700x1400. Sep 25 11:54:41 any ideas ? Sep 25 11:55:45 I am at a loss. I have two near-identical implementations of Loaders and Adapters for ListFragments in tabbed Activities. One of them works, the other works on Activity start but doesn't populate the list on tab change. Sep 25 11:56:18 Both Loaders work, but for some reason one of the Adapters add() methods does nothing on tab change. Sep 25 11:57:26 brickhead: is it in your libs dir? Are other dependency libs there working? Sep 25 12:05:46 Is there a standard that specifies the position of the country and state in for example the following string that appears in some UI: "United States - Wyoming" or "Wyoming - United States"? Sep 25 12:06:20 How do you use CLANG with Android Ant Build? Sep 25 12:07:46 which version of android was soft menu buttons bar introduced ? honeycomb or ics ? Sep 25 12:10:02 i believe it was ics Sep 25 12:13:48 thanks Sep 25 12:24:27 How do you use CLANG with Android Ant Build? Sep 25 12:29:20 honeycomb Sep 25 12:29:25 not ics Sep 25 12:31:38 oh ok, it was hard to find the answer on google for some reason Sep 25 12:33:15 so I check for if version is greater than honeycomb and if it !hasPermanentMenuKey() then I can hide the soft keys on fullscreen video, else dim the lights on the hard keys if I can :) Sep 25 12:33:44 any ideas ? Sep 25 12:33:46 hey guys - im trying to sort some boundaries when i pinch zoom. the default size of the image is 2200x2200. So that means that the view boundary is set to 1720x1400. However when i scale the image so that it becomes 4400x4400, the boundary still is set to 1700x1400. Sep 25 12:40:31 yay! it worked, now it doesn't crash on my gingerbread phone with hardkeys :) Sep 25 12:43:13 shmoooz, you simply can just check api level of has permanent menu key and check api version instead Sep 25 12:43:41 rather than trying to search Google for version that introduced it... Sep 25 12:43:53 oh right duh Sep 25 12:45:00 yep it says as of 3.0 devices may not have a permanent menu ... Sep 25 12:45:43 not even that, the docs indicate which version adds that api call Sep 25 12:45:55 to the right Sep 25 12:46:03 yeah level 14 Sep 25 12:46:18 so ics adds the call Sep 25 12:46:34 what you wrote would crash on honeycomb Sep 25 12:46:46 not like honeycomb matters, though Sep 25 12:46:50 but there are still some phones that have hardkeys and higher than those no ? Sep 25 12:47:23 ? Sep 25 12:47:41 ok I should check for both version and if hard keys exist Sep 25 12:47:43 greetings Sep 25 12:48:13 and maybe wrap the hiding attempt in a try {} Sep 25 12:48:27 nothing honeycomb has hard keys Sep 25 12:49:35 i want a text field where people have to enter a host name, it needs to be formatted correctly eg. begins with http:// are there any tools i can use to make sure all goes well. i want them to have the same freedom / leeway as typing in a brower URL bar where forgetting things like http:// are forgiven Sep 25 13:31:34 Hello! I need to get bitmap of activity screen (i mean screen-shot). I try use drawning cache for it but getDrawingCache returns null for activity window decor view. Can someone help to take a bitmap? Sep 25 13:34:40 get your parent viewgroup container. call measure, layout, and draw is on a canvas. Bam, instant screenshot. Sep 25 13:34:40 *it Sep 25 14:03:00 hello Sep 25 14:04:00 i am getting adb device offline also google but not hope anyone can help me Sep 25 14:04:54 stingsay`: did you install the USB drivers for the device ? Sep 25 14:04:57 is sdb.exe running as a process Sep 25 14:05:01 adb* Sep 25 14:05:14 i am on linux mint Sep 25 14:05:39 adb is running as service Sep 25 14:06:09 it's show me device in list but offline Sep 25 14:06:16 hey there Sep 25 14:06:40 What's the name of the progress bar with the little circle that the user can move around again? Sep 25 14:06:56 (I want to google something but I lack the vocabulary to do so :o) Sep 25 14:06:59 0123456789ABCDEF offline usb:3-4 . i have installed SDK platform-tools 18.0.1 Sep 25 14:07:43 stingsay`: is it a crappy-tablet or something? Sep 25 14:07:50 RedNifre: seekbar Sep 25 14:07:50 how can i calculate/get a string's md5 checksum? Sep 25 14:08:01 tablet Sep 25 14:08:45 Thanks. So, if I want to make my seekbar span over the whole screen for aesthetic reasons, is it possible to limit it so that the user can only move it between 10% and 90%? (Moving the slider to the edge of the screen is not convenient) Sep 25 14:09:25 leeds it's a TouchMate Tablet . i think TouchMate is Chinese company Sep 25 14:09:36 right, crappy-tablet it is Sep 25 14:10:02 you *have* enabled USB debugging on the tablet, right? Sep 25 14:10:06 I mean, the ugly way to do this would be to add a margin to the left and right end and put something that looks like a filled bar to the left and something that looks like an empty bar to the right, but I wonder if there's a more elegant way to do this. Sep 25 14:10:21 does it work if you run adb as root? "adb kill-server && sudo adb devices" Sep 25 14:11:19 RedNifre: yes android:max="50" Sep 25 14:11:56 Thanks, I just found that one, but I wonder if there's a min as well. Sep 25 14:12:37 i have a linear layout with an ImageButton, a label, and another Image button. The thing is that I cannot make the secon image button go to te right. Tried setting right magin 0, gravity right.. setting the width of the label to screen width minus the two imagebutton's width.. no luck :S any clues? Sep 25 14:12:52 But maybe I'm looking at this from a wrong angle; I want to do this so the user doesn't move his finger to the edge of the screen, so it really IS a dip-border, not a seekbar max/min border... Sep 25 14:13:58 Leeds: with out root it's give me ???????????? no permissions usb:3-4 Sep 25 14:14:23 so you were already running it as root? Sep 25 14:14:36 yes Sep 25 14:17:11 and is USB debugging enabled? Sep 25 14:17:17 are you using a decent cable? Sep 25 14:17:21 RedNifre when you init. your component you set first value and make one condition if user go down value you fix it again Sep 25 14:17:28 yes Sep 25 14:18:31 yes i have try debugging on/off also i have try device off/on but not success. i have spend 4 hours now . i want to fuck this device Sep 25 14:19:11 it's entirely possible for adb to just be broken on a crappy-tablet - but it's relatively unlikely Sep 25 14:23:05 leeds any debugging for this issue ? Sep 25 14:23:36 stingsay`: did you try replugging the cable to see if it wakes up ? Sep 25 14:23:39 not really - just standard things to try Sep 25 14:23:57 also, if it's got anything like USB mounting enabled, disable that Sep 25 14:24:05 anything else which could be using the USB port Sep 25 14:28:18 Leeds: Oops . one question what is a best way to add hardwear device andorid.ini or 51-android.rules? Sep 25 14:29:32 to be honest, I just run adb as root, and everything always works Sep 25 14:41:44 mmhm.. ive a searchview and i replace a fragment by triggering onQueryTextSubmit. But it seems to be very laggy after first replace (and the cursor is still in the searchview). How to avoid that? Sep 25 14:42:33 I have a fragment with a viewpager inside it. when i add a new fragment and addtobackstack, when I press back the original fragment displays(the one with the viewp[ager) however the viewpager no longer pages when I swipe Sep 25 14:46:00 anyone?# Sep 25 14:48:22 Leeds: i have solved this problem . but don't know how . i have restart my system Sep 25 14:48:45 opinion on Sugar ORM? Sep 25 14:49:00 stingsay`: it was just a glitch in the matrix Sep 25 14:49:49 Oops nop. it's something other . when i have lunched eclipse it's again go offline Sep 25 15:05:35 hi Sep 25 15:05:56 Im looking for some info/documentation on "Software update" server side. We have a new device(product) running on android 4.0.4 and we need to implement the server side for the update feature Sep 25 15:23:56 does anyone have any recommendations for books on android development? Or is it just better to stick to resources like developer.android.com? Sep 25 15:31:00 Hello! I show DilogFragment and by default dialog have dim behind. How can i set image to the background of dialog (full screen but respecting title bar)? I am trying to set bitmap but it is not fullscreen. Sep 25 15:31:51 Or i should create Transparent activity and set bitmap to it and show from this activity dilaog? Sep 25 15:35:31 Hello/ Sep 25 15:36:29 anybody? Sep 25 15:37:33 hi Sep 25 15:37:35 masterbiscuit: evening Sep 25 15:37:37 going home now Sep 25 15:37:38 cheers Sep 25 15:38:58 anybody know the ins/outs of the Camera subsystem? I'm trying to bring attention to a serious problem with the Cameras on QualComm devices. Sep 25 15:39:03 https://code.google.com/p/android/issues/detail?can=2&start=200&num=100&q=&colspec=ID%20Type%20Status%20Owner%20Summary%20Stars&groupby=&sort=&id=60058 Sep 25 15:39:39 Im looking for some info/documentation on "Software update" server side. We have a new device(product) running on android 4.0.4 and we need to implement the server side for the update feature Sep 25 15:41:29 anyone? Sep 25 15:41:47 FessSTN: nothing specific Sep 25 15:42:01 It shouldn't cost 40% cpu just to display the camera on a Surface. Sep 25 15:42:26 so there is nothing at all? Sep 25 15:42:30 FessSTN: you need to implement your own client and server (least problematic - two HTTP GETs, one to check latest version, one to download file) Sep 25 15:42:57 the "magic" happens in the recovery image into which you reboot, which takes downloaded package, checks the signature, then applies it to the system Sep 25 15:43:07 but the client is already there, on any android 4+ ? Sep 25 15:43:13 afaik no Sep 25 15:43:31 there's stuff for recovery image, but I am not sure if there's anything for OTA Sep 25 15:44:08 FessSTN: You could swipe some code from CyanogenMod, actually Sep 25 15:44:21 filthy kangers. Sep 25 15:44:22 it's afaik Apache licensed, v2, so it would be fine Sep 25 15:45:14 they have an application that checks their build servers for new versions, downloads it to SD storage (emulated or not), and reboots to recovery Sep 25 15:45:26 I think you need to pay into Steve and Koush's slush fund now if you want to steal their stuff Sep 25 15:45:29 p_l today I got the software from our software company Sep 25 15:45:41 it should already have this feature but works with some thirtparty server Sep 25 15:45:56 FessSTN: hmm. I don't know any specifics, then Sep 25 15:46:11 ic.. ok thanks, i will take a look at the rom you told me Sep 25 15:46:17 another question Sep 25 15:46:37 I know that some phones have various weird things involved. Samsung had you create an account, HTC has something with forced updates (Three in UK loves to use that, and makes it a contract breach to block updates) Sep 25 15:46:45 FessSTN: thank you for warning us that you had another question. I don't know what I would have done if I wasn't prepared for it. Sep 25 15:47:03 very funny ;/ Sep 25 15:47:32 pragma-: it's nice to see some politeness - very good of you to thank FessSTN for his thoughtful pre-announcement of the coming question Sep 25 15:47:38 is there a google drive picker like there's one for dropbox ? Sep 25 15:48:10 Three UK put that in contract because they have some kind of fast-track program in fighting rooting methods :D Sep 25 15:48:14 i can get a drive file with ACTION_GET_CONTENT but that converts google docs to PDFs Sep 25 15:48:19 I got the software which I load through SP Flash tool. I tried to edit it with kitchen but the result is an archive which is not accepted by SP flash tool Sep 25 15:48:25 what could I use to edit the software? Sep 25 15:49:13 FessSTN: can't help you without having more information about the firmware. Though #android-root and #xda-developers might have people better prepared to coach you Sep 25 15:50:06 ic.. thanks :) Ill try these channels Sep 25 15:51:16 FessSTN: and don't care about pragma- ;) Sep 25 15:55:52 that hurted my feels, bro. Sep 25 15:57:04 (but obviously you do care about me otherwise you wouldn't have made that unprovoked statement) Sep 25 15:57:27 it's kind of like a guy putting his dick in another guy's mouth to prove that he's not gay. Sep 25 15:57:50 wat Sep 25 15:58:05 O_o Sep 25 16:00:43 Oh, I misread that as "I don't care about pragma-", rather than "don't worry about what pragma- says". Sep 25 16:00:46 * pragma- shrugs. Sep 25 16:01:25 how many times you have put your dick in another guys mouth to prove your point, pragma-? Sep 25 16:01:39 * pragma- puts his dick in zhulikas's mouth. Sep 25 16:02:10 what? no date? no dinner? Sep 25 16:02:16 This is your dinner. Sep 25 16:02:22 lol Sep 25 16:02:37 ... wat. Sep 25 16:02:54 * p_l has pragma- on /ignore since time immemorial Sep 25 16:03:05 He lies. Sep 25 16:03:31 what's wrong with pragma-? Sep 25 16:03:39 He has no sense of humour. Sep 25 16:07:24 He's bringing his ##c attitude here ;p Sep 25 16:15:17 can someone confirm this: when a class that is defined as a in the manifest file is _not_ extending BroadcastReceiver the -node is useless Sep 25 16:15:21 ? Sep 25 16:17:22 https://developer.android.com/guide/topics/manifest/receiver-element.html Sep 25 16:17:32 Declares a broadcast receiver (a BroadcastReceiver subclass) as one of the application's components. Sep 25 16:19:06 SimonVT: yeah i know that this is pretty obvious but I like to be confirmed 8-)) Sep 25 16:26:48 I have added permissions for com.android.gallery3d.filtershow.provider.SharedImageProvider and com.android.gallery3d.filtershow.permission.READ. But when tried to do a contentResolver.query on the provider, my app just hangs. No errors. Any idea Sep 25 16:27:41 Haya all i installed twrp on my device but it cannot mount any filesystems, I need to replace it with a different version but I cant seam to flash a new one with fastboot any ideas Sep 25 16:29:09 Try #android-root Sep 25 16:29:25 cheers I looked at the topic after I typed :) Sep 25 16:51:44 has anyone used UnityIDE before and knows of issues regarding R-class when linking multiple library projects? Sep 25 17:00:54 I'm not quite sure about how device specific layouts work. Do the xmls get compiled on apk creation or on installation? Can a universal layout include device specific layouts? Or does it have to be device specific from the root up? Sep 25 17:15:19 RedNifre: there is no such thing as device specific layouts Sep 25 17:15:52 you probably mean minWidthDP specific layouts, or screen size specific layouts, and density specific layouts Sep 25 17:23:48 Hiya, is there a good way to handle app crashing when switching from wifi to 3g? Sep 25 17:24:22 Just don't crash Sep 25 17:25:03 nseidm1 yes, I mean those. the question is, can a general layout include a screensize specific layout, which in turn includes general layouts? Sep 25 17:25:50 What I want to achive is that one control on my screen looks different on tablets. The things in it are the same as on a phone, only arranged differently and the other ui elements on that screen also have the same layout. Sep 25 17:26:04 thank you :P I try to test for the state of the connection, but is that so unrealiable that I should just try and catch stuff like crazy? Sep 25 17:26:47 Figure out why it's crashing and check for it Sep 25 17:26:57 How exactly are these layouts compiled? does the apk contain all compiled variants of this, or does the apk installer compile them? Sep 25 17:27:08 Sounds like you just crash as soon as it loses internet connection Sep 25 17:27:23 There must be a reason for why that causes it to crash Sep 25 17:27:48 RedNifre: Layouts are not compiled Sep 25 17:27:56 they are pull parsed xml during inflation Sep 25 17:28:11 it's more of a template for the runtime generation of view structures Sep 25 17:28:50 It is compiled.. kinda.. Into binary xml Sep 25 17:29:13 Oh...! Sep 25 17:29:37 Valid point SimonVT Sep 25 17:29:49 But that's not really relevant to this discussion Sep 25 17:30:07 So I completely missunderstood this whole xml compilation thing... so the binary xml still has an "Include" inside of it that picks the screen size specific binary xml on inflate? Then all is well :) Sep 25 17:30:23 Oh, I thought it was very relevant. Why isn't it? Sep 25 17:30:51 Because that's just for space/speed reasons Sep 25 17:31:05 Mostly speed Sep 25 17:31:15 Probably only speed Sep 25 17:31:40 whats the best way to update the UI from onPostExecute() Sep 25 17:32:44 do i need to parse my AsyncTask the activity object or something Sep 25 17:32:58 im running low on sleep Sep 25 17:33:20 Well, my assumption was that all includes are resolved and then it gets compiled into one big thing. That's why I was confused about a general layout including size specific layouts. If they only get compiled into several binary files, all is clear to me (I think). Sep 25 17:33:21 what if the activity is no longer running? Sep 25 17:33:31 Uhm, no Sep 25 17:33:56 Or yeah Sep 25 17:34:04 The folder structure is the same as in res/ Sep 25 17:34:16 RedNifre: your include will resolve to the bucket specific to the device Sep 25 17:34:17 And it just picks whatever is needed at runtime Sep 25 17:34:52 That's the way I understand it now thanks to your explanation and I think this answered all my questions. Thanks a lot :) Sep 25 17:37:36 ...except that I just finished layouting that way and now I get exceptions like E/AndroidRuntime(2708): Caused by: android.content.res.Resources$NotFoundException: Resource ID #0x7f070143 type #0x12 is not valid. Guess I'll have some more work to do. Sep 25 17:40:30 Is the layout in the bucket relevant on the device? Sep 25 17:40:46 or at least one that will be cascaded into Sep 25 17:44:20 i cant use intent inside onpostexecute() Sep 25 17:46:17 Normally, onPostExecute should run in the same thread as the code that started the async task, which might be the UI thread already. If it isn't there's also a "runOnUIThread" method or something (useful if you want to update a progress bar from inside doInBackground or whatever that asynctask method was called). Sep 25 17:54:05 when i press a button it fires "public void login(View view)" which then calls a static method in another class "Authenticate.Login(username, password, hostname);" and starts a new Activity "startActivity(intent);" the static method Athenticate.Login is inside the class which extends Async. and the AsyncTask is fired from inside there. when that is done from onPostExecute i want to start a new activity or update stuff on the one i create Sep 25 17:54:06 d ea Sep 25 17:54:53 thats more painful to read than i thought Sep 25 17:54:59 uggh Sep 25 17:56:33 I noticed that Bitmap.createScaledBitmap creates choppy images. Is there a better way to rescale down to exact dimensions? Sep 25 17:56:53 Is there a trick to get the emulator to work at full speed? Sep 25 17:57:19 <|0xD34D|> use the x86 atom images when possible Sep 25 17:57:23 ah k Sep 25 17:57:25 yes, it's called haxm or something like that. doesn't work on every cpu though. Sep 25 17:57:35 <|0xD34D|> doesn't work on every OS either Sep 25 17:58:19 RedNifre, is that the Host GPU option? Sep 25 17:59:04 Not sure, it doesn't work on my computer/os so I haven't used it. Sep 25 17:59:32 What about enabling multi user support in 4.3? I tried "setprop fw.max_users 5" but as far as i can see it had no effect Sep 25 18:07:43 damn apparently my cpu doesnt support the interl haxm.... no virtualization extension i guess Sep 25 18:08:01 cant even run the x86 images then =\ Sep 25 18:11:23 RedNifre, how do i parse the object context (this) into AsyncTask... something like new Authenticate(this).execute(url, user, pass); Sep 25 18:11:31 ? Sep 25 18:27:37 hrm actually it seems to be windows 8 hyper-v having a lock on it thats causing the problem Sep 25 18:33:03 Bitmap.createScaledBitmap produces some choppy images Sep 25 18:33:08 is there a better method Sep 25 18:33:50 how is AS 0.2.10 treating everyone :) Sep 25 18:34:10 i need to scale down to exact dimensions so using inSampleSize to subsample isn't something that will Sep 25 18:34:16 work Sep 25 18:38:50 wut, Mongodb #2? is it because of html5 or something? http://www.indeed.com/jobanalytics/jobtrends?q=Android%2CiOS%2CHTML5&l= Sep 25 18:41:53 g00s: it is hyped... Sep 25 18:42:11 it's like big data - a lot of companies use Hadoop for stuff that others would call "laptop demo size" :P Sep 25 18:44:28 hehe Sep 25 18:48:00 I have an application that needs to sync data from a webservice. I load the data via an IntentService - meanwhile in a ListActivity I want to display the progress. To be exactly: I want to show a spinner for the item that is currently synced. I'm syncing the content of the web service to a SQLiteDatabase and setting flags if a item is currently synce. What's the best way to update the ListView? My options are: 1) I call Sep 25 18:48:01 swapCursor every time when I change an item 2) I load all items into memory and use an ArrayAdapter instead of an CursorAdapter 3) … I don't what else is out there e.g. ContentProvider Sep 25 18:51:41 Hi, I've installed valgrind for android, but how do I run my android app with it? Sep 25 18:54:29 Or is there some other way to debug heap problems? Sep 25 18:55:03 wow, stay classy Qatar Sep 25 18:56:28 g00s: what do you mean? Sep 25 18:56:59 always wanted to go there Sep 25 18:57:27 boytoy OT, won't say anything more about here, but if you are interested http://www.theguardian.com/world/2013/sep/25/revealed-qatars-world-cup-slaves Sep 25 18:57:28 Yup, removing hyper-v and installing intel hax worked Sep 25 18:57:31 wooo, fast emulation now ;) Sep 25 18:57:36 Why is Chrome now gonna block Java, considering most Android apps are built in Java? Sep 25 18:57:47 I mean, how do Android devs feel about this? Sep 25 18:57:51 g00s: Ouch Sep 25 18:58:09 bnason what platform are you using for your host OS ? Sep 25 18:58:19 Maybe I can use this? http://elinux.org/Android_Memory_Usage#libc.debug.malloc Do I do: setprop libc.debug.malloc 10 and restart the app? Sep 25 18:58:32 g00s, im on windows 8 Sep 25 18:58:46 one of the reasons why i stopped using qemu + haxm on mac is that it was hanging the machine bad. ok haven't heard anything about win 8 Sep 25 19:01:17 bnason: probably clashes between Hyper-V and Haxm Sep 25 19:01:33 yea Sep 25 19:01:43 hyper-v apparently gets an exclusive lock on the virtualization Sep 25 19:01:52 boytoy: Chrome blocks java *applets*, which were recently a big source of vulnureabilities Sep 25 19:02:37 (and due to various weird things had a rather complicated history and... various deployment) Sep 25 19:02:38 oh indeed Sep 25 19:02:48 all day every day in the media Sep 25 19:03:00 i see Sep 25 19:03:06 bnason: quite probably haxm does unsupported operations that bypass stuff and got into conflict with Hyper-V Sep 25 19:03:20 <\monster\> hmm anyone had their app removed from the market for "trademark violation" ? Sep 25 19:03:26 g00s: It crashes on mac REALLY bad. Disabled it. Sep 25 19:03:47 <\monster\> looks like eBay filed a complaint against my app and google removed it without even giving me a chance to correct whatever is wrong Sep 25 19:04:01 sebastiandeutsch yeah :( i moved over to genymotion, works great so far Sep 25 19:04:16 hey g00s Sep 25 19:04:24 hey Napalm ! Sep 25 19:04:40 * Napalm eats pizza.. mmmhm pizzaaaa Sep 25 19:05:00 I'm guessing most Android developers never had the unfortunate need to use the NDK before? Sep 25 19:05:52 Matt_von_Mises: what help with the NDK do you need? Sep 25 19:08:44 arg, cant use gpu acceleration and snapshot? Sep 25 19:09:44 Napaim: Hi. GDB is crashing outside my code. I suspect my code is causing these problems but I have no way to debug them without running some tool like valgrind or some debug version of malloc. Sep 25 19:10:25 Napalm: I installed valgrind but I don't know how to run my app with it. Sep 25 19:11:13 hey p_l , i guess you can use this for standard android projects as well :) https://nightcode.info/ Sep 25 19:12:22 Napalm: I tried "setprop libc.debug.malloc 10" but this did nothing as GDB crashed again outside my code with SIGSEGV. Sep 25 19:14:23 I don't think that setting works on a production device. I'll try on an emulator. Sep 25 19:30:51 hey hey Sep 25 19:30:54 ppl alive in here? Sep 25 19:30:56 i hope so Sep 25 19:31:05 so when you have a service right .. binding service Sep 25 19:31:37 class XService extends Service Sep 25 19:31:39 and i bind to it Sep 25 19:31:49 this service uses an XMPP connection Sep 25 19:32:04 and i bind to and unbind from that service in my activity onStart() and onStop() Sep 25 19:32:07 Please form full sentences Sep 25 19:32:15 lemonxah: No, everyone died sorry. Sep 25 19:32:41 problem being that when the screen rotates or i got a "Settings activity" the service unbinds and rebinds Sep 25 19:32:54 meaning it disconnects and reconnects on every rotate Sep 25 19:33:14 what would be the best place to bind to and unbind from this service to stop this from happening? Sep 25 19:33:20 When you rotate, onStart() and onStop() are called are they not? Sep 25 19:33:39 :) Matt_von_Mises was just making sure that the zompocolapse hasn't happened yet cause then i would feel left out Sep 25 19:34:17 yes that is why i am asking what the best places should be cause the examples all use onStart() and onStop() so i thought thats the pattern? Sep 25 19:34:39 onCreate doesn't really work either cause onStart() -> onCreate() Sep 25 19:34:59 or i shouldn't be unbinding from it but then i will leak the service Sep 25 19:37:03 any suggestions? Sep 25 19:38:29 Why can't you unbind from it? In my app as I just looked I bind to the service in onCreate and unbind on onDestroy and it works when I rotate. Sep 25 19:38:40 I mean, why is rebinding a problem? Sep 25 19:39:08 unbinding causes xmpp disconnect Sep 25 19:39:19 binding = xmpp connection + login + getRoster() Sep 25 19:39:33 and also all your friends will see you go online offline online offline Sep 25 19:40:00 So don't disconnect when unbinding Sep 25 19:40:23 its not a simple cause unbinding from a service automatically stops the service Sep 25 19:40:39 which cuases all objects in the said service to be garbage collected Sep 25 19:41:24 if you start the service with startservice, it won't be stopped when you unbind Sep 25 19:41:30 watch you're use of onDestroy. You'll find that onDestroy may be called after or before the onCreate of the other activity. Sep 25 19:42:09 use onResume and onPause Sep 25 19:42:32 nseidm1 that makes it even worse Sep 25 19:42:33 if i implement a class and override one of its methods.. how do i make sure the super method runs just as it should? Sep 25 19:42:49 gotta call super.method(); Sep 25 19:42:51 by calling super.methodname() Sep 25 19:43:12 mmathis but then you lead the service when you app closes? Sep 25 19:43:41 and passing everything through? Sep 25 19:43:42 cool tnx Sep 25 19:43:46 the reason i wanted to use the bind unbind is so that when the last activity unbinds it should kill itself Sep 25 19:44:12 lemonxah: Use stopService Sep 25 19:44:19 Just stop it yourself when the last activity is finished Sep 25 19:44:22 lemonxah: you could try this http://developer.android.com/guide/topics/resources/runtime-changes.html#RetainingAnObject Sep 25 19:44:31 You can use isFinishing() to know when an activity is actually finishing. Sep 25 19:44:41 it explicitly mentions re-establishing a network connection Sep 25 19:44:42 bind is a pain in the arse, just leave the service running. I only bind when using a service in another process. Sep 25 19:44:51 maybe save your serviceConnection object? Sep 25 19:44:52 cool thnx mmathis reading Sep 25 19:45:02 I don't know if that will actually work though Sep 25 19:45:42 nseidm1 / lemonxah : doesnt seem to be working.. no errors/etc it compiles but it doesnt seem to run.. though if i comment out the override it runs Sep 25 19:46:18 nah, calling super.method() calls the method you're overriding Sep 25 19:46:29 In my code I call startService in onCreate and stopService if isFinishing() returns true in onDestroy(). Sep 25 19:46:53 hmm Sep 25 19:47:02 isFinishing() will always be true in onDestroy Sep 25 19:47:05 pastebin acidjazz Sep 25 19:47:08 use isFinishing in onPause Sep 25 19:47:44 lemonxah: https://gist.github.com/acidjazz/8f90300897ecc000e7b0 Sep 25 19:47:47 nseidm1: No it wont Sep 25 19:48:12 lemonxah: by overriding getView its not populating the text fields in the listview XML.. i fi comment out getView the text fields get populated Sep 25 19:48:39 acidjazz: super.getView returns view which you're doing nothing with in the override Sep 25 19:48:47 you're inflating the view fresh Sep 25 19:48:49 aha! Sep 25 19:49:02 acidjazz convertView = super.getView(position, convertView, parent); Sep 25 19:49:10 nseidm1: I thought isFinishing would only be true when the activity is actually finishing? Sep 25 19:49:14 lemonxah: gotcha Sep 25 19:49:16 thanks! Sep 25 19:49:25 Should I use Volley no instead of Loopj or is Loopj still sticking around for the foreseeable future Sep 25 19:49:29 I'd go with Simon on that call Sep 25 19:49:37 Matt_von_Mises: That's right Sep 25 19:49:39 lemonxah: then just return that? cand i have the power to add listeners/etc in here? Sep 25 19:49:52 you should always use the convertView Sep 25 19:49:54 and view types Sep 25 19:49:56 onDestroy can be called if the activity is paused and just kicked out of memory, not finished Sep 25 19:49:58 apparently Sep 25 19:50:00 makes sense Sep 25 19:50:04 cause then you can make use recycling views Sep 25 19:50:11 SimonVT, nseidm1: The docs say it's commonly used in onPause, so maybe it's best if I do change it to onPause? Sep 25 19:50:24 I'm accustomed to using isFinishing in onPause Sep 25 19:50:28 Orientation changes is probably the most common case where onDestroy is called and isFinishing returns false Sep 25 19:50:31 lemonxah: why assign convertView to super.getView when its passed in? Sep 25 19:50:40 lemonxah: why not just assign my rowView i return Sep 25 19:51:02 Matt_von_Mises: It likely wont make a difference Sep 25 19:51:06 acidjazz the convertView shoudl always be used Sep 25 19:51:24 cause of view reuse Sep 25 19:51:26 its faster Sep 25 19:51:30 and renders faster Sep 25 19:51:31 right makes sense Sep 25 19:51:32 lendhttps://gist.github.com/acidjazz/bfd70996dc80a699581a Sep 25 19:51:38 lemonxah: https://gist.github.com/acidjazz/bfd70996dc80a699581a Sep 25 19:51:40 rather do newview and bind view? Sep 25 19:51:59 so should i check convertView here first? see if its null? Sep 25 19:53:11 let me write something quick to check something Sep 25 19:53:22 acidjazz: lookup the viewHolder pattern Sep 25 19:54:02 hmm Sep 25 19:54:21 http://sriramramani.wordpress.com/2012/07/25/infamous-viewholder-pattern/ Sep 25 19:54:41 hi all. im trying to communicate with a bluetooth device with the rfcomm layer. android mandates incoming reads for a BluetoothSocket must be done with InputStream. Unless I'm reading the docs wrong, the only read methods on InputStream are all blocking calls. This makes it super dangerous to read any data and seems a little ridiculous. If you block on a read you're pretty much screwed. Is there any way around this? I'm new to Sep 25 19:54:41 Java/Android so maybe I'm overlooking something. Sep 25 19:55:16 you're looking over the concept of threading Sep 25 19:56:03 i dont knwo if i can rock this.. im also doing a viewpager and other stuff on top of this Sep 25 19:56:04 it doesnt matter if I call read in a thread... if the call blocks im still screwed Sep 25 19:56:22 it will unblock in the future Sep 25 19:57:59 when in the future? a minute? an hour? my point is I dont see any way of unblocking outside of closing the socket Sep 25 19:58:21 if you need to unblock close the socket to throw a SocketClosedException Sep 25 19:58:37 It will block till the stream is read Sep 25 19:58:51 use recursive runnables to read from the stream Sep 25 19:59:10 recursively called runnables on a CachedThreadPoolExecutor Sep 25 19:59:27 rather, self calling Sep 25 19:59:44 that sounds like rocket science Sep 25 20:00:27 Executor.execute(readRunnable); Sep 25 20:00:37 at the end of readRunnable use Executor.execute(this); Sep 25 20:00:44 and define readRunnable to read the stream Sep 25 20:01:28 if theres data to read it will read, otherwise it'll just keep looping till theres data Sep 25 20:01:53 just shutdown the executor service to stop the loop and interrupt the runnable in case it's blocking Sep 25 20:02:06 alright Sep 25 20:02:09 ill try that, ty Sep 25 20:02:18 O.O Sep 25 20:02:34 nseidm1 are you using this technique :| Sep 25 20:02:53 in the past Sep 25 20:03:51 when I rebuilt the MetaWatch manager app Sep 25 20:04:14 was rock solid till their updated their firmware and I just stopped having interest Sep 25 20:04:19 *they Sep 25 20:17:03 I'm getting Could not find method android.widget.LinearLayout.getAccessibilityNodeProvider only on the emulator for some reason. Any ideas? Sep 25 20:17:16 sdk version? Sep 25 20:18:05 that method is 16+ Sep 25 20:18:11 Emulator is level 14 with the target 16. Sep 25 20:18:22 method requires 16+ Sep 25 20:18:27 not 14 Sep 25 20:18:34 I see... Sep 25 20:21:47 That is called by a library that replaces NumberPicker and is supposedly compatible from earlier API levels. https://github.com/SimonVT/android-numberpicker Sep 25 20:22:50 I guess I might have to increase my min SDK version to 11 to use the NumberPicker. Sep 25 20:22:54 Is Loopj Android Async Http still being supported, or should I go with Volley or something else? Sep 25 20:25:24 please use Volley, Picasso, or ion Sep 25 20:28:34 nseidm1: Picasso seems to be for images Sep 25 20:28:56 I'm just focusing on raw JSON responses Sep 25 20:29:12 Maybe Retrofit? Sep 25 20:29:15 http://square.github.io/retrofit/ Sep 25 20:29:39 nseidm1: Also I can't seem to find any documentation for Volley but I would like to use it Sep 25 20:29:42 AndroidAsync Sep 25 20:30:41 https://github.com/koush/AndroidAsync Sep 25 20:33:29 I've always used https://github.com/loopj/android-async-http Sep 25 20:33:41 which seems to have a larger user base Sep 25 20:33:53 They don't have maven and gradle support yet though :P Sep 25 20:34:26 heh, awesome http://www.gizmag.com/mit-skycall-guides-users-on-campus/29080/ Sep 25 20:35:04 i think there is even a Spring REST client for Android, but never tried it Sep 25 20:37:42 lo all Sep 25 20:39:18 so now gmail has cards … Sep 25 20:41:24 g00s: since when? Sep 25 20:41:34 i guess today Sep 25 20:41:46 gmail 4.6 Sep 25 20:42:23 Ah, i've not gotten it yet... Sep 25 20:42:26 *waits patiently* Sep 25 20:42:40 "Some users are reporting bootloops after enabling auto-sync with the new update." Sep 25 20:42:46 maybe you dont want it yet :) Sep 25 20:42:50 awesome Sep 25 20:42:52 hi all. I would like create an App that is free for the first year. is it possible? thank you. Sep 25 20:42:52 LOL maybe not... Sep 25 20:43:08 DaVinciIT: anything is possible with android... Sep 25 20:43:23 can you go from free to paid ? Sep 25 20:43:28 how to deal with syncing data to/from 110 tables in the device? i just can't find a non-ugly way Sep 25 20:43:30 no Sep 25 20:43:31 yes Sep 25 20:43:40 is it possible? Sep 25 20:44:22 How can I make my app name not have a line break when I add a space. Sep 25 20:44:22 no Sep 25 20:44:33 don't add a space Sep 25 20:44:45 But I want a space Sep 25 20:44:59 then make the name shorter so it doesn't have a line break Sep 25 20:50:18 That's not something you control.. Sep 25 20:50:29 I control all! Sep 25 20:50:30 It all depends on what is displaying it Sep 25 20:55:07 Howdy all. Can anyone help me figure out what file/function is throwing this exception: W/VideoView( 3835): java.io.IOException: setDataSourceFD failed.: status=0x80000000 Stack shows its from a native method: W/VideoView( 3835): at android.media.MediaPlayer.setDataSource(Native Method) Sep 25 20:55:35 I'm getting pretty lost in all the CPP service binder stuff. Sep 25 21:06:49 what's a light way to show that the application is doing some work in the background? creating a new ProgressDialog seems too heavy, as the database query that is run in the background may not run *that* long. Sep 25 21:08:43 hey all together Sep 25 21:09:14 just working on an app and stumbling over the soundpool-loop-issue on 4.3+ Sep 25 21:09:20 nseidm1: https://gist.github.com/acidjazz/c13487390b6de22f6453 Sep 25 21:09:24 any hint to work around that? Sep 25 21:09:40 nseidm1: any suggs on a faster/cleaner way of how im doing this handler? it seems to be slow Sep 25 21:10:15 XAVeRY: you could do a spinner icon then make a dialog box if it goes for more than N seconds Sep 25 21:12:32 You're inflating the view everything time, it looks like Sep 25 21:12:36 that's goona be quite slow Sep 25 21:12:57 you need to use a ViewHolder pattern Sep 25 21:13:19 man this arizona iced tea is the shiz Sep 25 21:13:51 * g00s wouldn't trust anything with 'arizona' in its name ;) Sep 25 21:13:56 * g00s lives in az Sep 25 21:14:37 Hey guys, for Paint.setStrokeWidth() what is the width in? Pixels? Sep 25 21:14:57 it's in what the documentation says it is Sep 25 21:14:59 My min sdk version is 16 but for some reason AccessibilityNodeProvider cannot be resolved. Why could this be? Sep 25 21:15:08 and in the absence of any declaration of what it is in documentation, then pixels Sep 25 21:15:11 I mean my target sdk version is 16 sorry Sep 25 21:15:11 does say in the docs, smart guy Sep 25 21:15:15 doesn't* Sep 25 21:15:36 Matt_von_Mises, target in what? androidmanifest or project? Sep 25 21:15:41 the former does not affect build Sep 25 21:16:01 dragorn, by "spinner icon", do you mean "ProgressDialog without a message and title"? because I couldn't find just the icon any other way. Sep 25 21:16:05 pfn: The AndroidManifest Sep 25 21:16:25 Matt_von_Mises, then set it in the correct location Sep 25 21:18:29 XAVeRY: no, I mean just throw an animated imageview somewhere that makes sense Sep 25 21:18:51 pfn: OK, I found it thanks. It's been a while since I've done this, I thought the AndroidManifest was where you set the sdk target for the build. Sep 25 21:19:16 dragorn, alright. thanks for the advice. :) Sep 25 21:19:52 XAVeRY: then convert it to a dialog if it takes too long Sep 25 21:20:40 when I attach gdb to a running app (via ndk-gdb), it always stops with a SIGTRAP in epoll_wait in libc.so Sep 25 21:20:47 ..is this intended? Sep 25 21:21:42 XAVeRY: you can make a drawable animated w/ xml, I forget the details but it's not too hard. The spinner icons are in the android icon packs. Sep 25 21:22:21 XAVeRY: that's probably what I'd try doing anyhow; I don't know your UI so I don't know what makes sense, you could maybe just convert the button into a spinner image when tehy click, or make the app icon in the actionbar a spinner w/ an explanation, or something Sep 25 21:22:57 dragorn, thanks a lot. I'll look into that tomorrow, but if that's just a matter of xml editing and making an item visible, then I think I'll be fine. Sep 25 21:26:34 XAVeRY: yeah; i'm sure there's docs on making an animated drawable; as i recall it's making res/drawable/foo.xml which references the various PNGs of the animation cycle, but I only did it once a while ago and haven't thought about it in a while Sep 25 21:26:39 nseidm1: where do you see my inflating? Sep 25 21:26:48 http://www.datamation.com/open-source/are-we-witnessing-the-decline-of-ubuntu-1.html interesting read Sep 25 21:27:17 What's in SimpleAdapter Sep 25 21:28:44 oh by grabbing it from the super? Sep 25 21:28:59 I'm getting a java.lang.NoClassDefFoundError: com.squareup.picasso.Picasso when using Picasso. Any idea what is causing this? Sep 25 21:29:21 jaynewstrom maybe your dependency is the wrong scope Sep 25 21:29:27 compile / runtime etc Sep 25 21:29:35 I'm using gradle Sep 25 21:29:37 how do i retain my list's adapter data in a list fragment when I replace the fragment with something else?... Sep 25 21:32:08 jaynewstrom http://gradleplease.appspot.com/ Sep 25 21:33:18 g00s: That's what I have. compile 'com.squareup.picasso:picasso:2.0.2' Sep 25 21:33:33 I have other dependencies that work fine using gradle Sep 25 21:34:50 is anyone familiar with the Class.forName() method? Sep 25 21:37:47 Hi Sep 25 21:39:20 tnzr: sorta kinda. Whats your issue? Sep 25 21:40:54 jayd16: its more of a java question actually.. wondering if its possible to dynamically execute code inside MyClass given the string "MyClass" Sep 25 21:41:27 I'm thinking no, because you're not really instantiating one (so you couldn't call a method for example) but could you execute code in the static {} block? Sep 25 21:42:59 @tnzr via the reflection api, give a class or object reference, you can execute methods inside it provided the scope matches up with the type of reference you have Sep 25 21:42:59 nseidm1: https://gist.github.com/acidjazz/4472f032808900d67c01 viewholder style Sep 25 21:43:05 You can get a class instance from the class object like so Class.forName(String.class.getName()).newInstance() Sep 25 21:43:15 awesome Sep 25 21:43:16 nseidm1: still seems a bit slow.. amidoingitright.jpg? Sep 25 21:43:27 :-( docs are 500ing Sep 25 21:43:35 RyanM: same Sep 25 21:43:50 so I could do like: Class.forName(classname).newInstance().execite(data) ? Sep 25 21:44:20 execute* Sep 25 21:44:34 getting there, the onclicklistener is gonna do funny stuff being there will only be the quantity in the viewgroup rather than the dataset Sep 25 21:45:18 tnzr: If you're trying to ensure that code in the static { } block has been executed, Class.forName will do that Sep 25 21:45:32 RyanM: what if I need to pass in some data? Sep 25 21:45:47 you can't pass data to a static { } block Sep 25 21:45:47 tnzr: something like Object myInstance = Class.forName("").newInstance(); Sep 25 21:45:47 Class.forName("").getMethod("myMethod").invoke(myInstance); Sep 25 21:45:51 RyanM: right Sep 25 21:46:05 you can pass params into invoke Sep 25 21:46:14 I don't understand the question, then. Sep 25 21:46:22 awesome, so like.. invote(myInstace, param) ? Sep 25 21:46:27 yeah Sep 25 21:46:35 look at the Oracle docs Sep 25 21:47:03 on it Sep 25 21:47:04 thanks guys Sep 25 21:48:07 nseidm1: hmm k Sep 25 21:48:56 I have a ListFragment that contains an adapter which then initializes a loader for data. Everything works correctly and my data is displayed. However, once I choose and option and the FragmentManager replaces the ListFragment with another fragment and I hit back or come back to the ListFragment, the adapter no longer has any data... I am not recreating the adapter each time. Why is the adapter data being deleted and Sep 25 21:48:56 how do I retain it? Sep 25 21:50:02 nseidm1: where should my listener go then? Sep 25 21:50:23 in the ViewHolder Sep 25 21:50:37 one for each position in the data set Sep 25 21:51:13 hmm Sep 25 21:51:37 nseidm1: but thatll limit the method to only the view and not parent variables? Sep 25 21:51:56 you have to work around that Sep 25 21:52:09 class MyListener implements OnClickListener Sep 25 21:52:11 how do i pass in my list and position? Sep 25 21:52:21 public void setData(Data data) Sep 25 21:52:31 setPosition(int position) Sep 25 21:53:31 Viewq.onClickListener ? Sep 25 21:54:26 nseidm1: so itll be a listener class inside the viewholder class? Sep 25 21:54:35 yes Sep 25 21:55:02 no love tryign to implement onClickListener Sep 25 21:55:55 import android.view.View.OnClickListener; Sep 25 21:56:23 nope Sep 25 21:58:12 nseidm1: holder.playStop.setOnClickListener(SongsViewHolder.SongsButtonListener); ? Sep 25 21:58:58 s/(Songs/( new Songs/g Sep 25 22:00:15 indeed, more or less Sep 25 22:00:22 the button is in the holder Sep 25 22:00:27 and the holder has a listener Sep 25 22:01:25 nseidm1: where would i run setPosition? Sep 25 22:01:40 after the else statement retrieving the holder Sep 25 22:01:48 gotta run, gl Sep 25 22:02:14 oh k thanks Sep 25 22:19:04 Anyone have any good links for setting up precompiled headers with the NDK? Sep 25 22:19:16 * jeaye is not finding anything good when searching. Sep 25 22:22:27 holder.playStop.setOnClickListener(SongsViewHolder.SongButtonListener); Sep 25 22:22:35 how do i properly point this listener to that class->method ? Sep 25 22:22:45 public class SongButtonListener implements View.OnClickListener { Sep 25 22:25:47 just implement the method Sep 25 22:27:36 right ut im failing w/ syntax here Sep 25 22:27:41 but* Sep 25 22:28:28 gdrc: https://gist.github.com/acidjazz/01e9d0beda694219b48c Sep 25 22:29:22 i cant figure out how to bind that onclicklistener to the holder Sep 25 22:41:01 holder.playStop.setOnClickListener(new SongsViewHolder.SongButtonListener()); Sep 25 22:41:11 or am I somehow misunderstanding the question? Sep 25 22:47:06 https://gist.github.com/acidjazz/6e89a70f6e6913177c0d how do i properly implement setPosition so its not always 0 in my onClick listener? Sep 25 22:53:07 yea this is fucked Sep 25 22:53:10 hmm Sep 25 22:55:23 I really hate that I keep misreading your name. Sep 25 22:56:04 as what Sep 25 22:56:54 hey, are members of, say, a class deriving from linearlayout cleared when the orientation of the device is changed? Sep 25 22:59:21 diphtherial: That depends on whether the view hierarchy is reinstantiated. Sep 25 22:59:31 In most cases, it is, so it would be. Sep 25 23:04:29 how do i retain adapter data on fragment replace? Sep 25 23:05:26 RyanM: so i don't have to do anything extra in terms of persisting that data, like parse the Bundle? Sep 25 23:05:34 in which file I should add this method Sep 25 23:05:34 http://developer.android.com/training/basics/actionbar/adding-buttons.html#AddActions Sep 25 23:05:35 er, or just stick it in the Bundle and pull it back out, rather (not really parsing, i guess..) Sep 25 23:11:19 can someone tell where i fail on properly implementing onClickListener with a ViewHolder? https://gist.github.com/acidjazz/39d2e58cd9d1254f801b Sep 25 23:23:40 why this line inflater.inflate(R.menu.main_activity_actions, menu); Sep 25 23:23:48 in http://developer.android.com/training/basics/actionbar/adding-buttons.html#AddActions Sep 25 23:24:25 not working Sep 25 23:29:58 https://gist.github.com/acidjazz/0fa287db513a941cabb7 how do i setOnClickListener properly.. this aint workin Sep 25 23:32:40 acidjazz: you have to attach the listener to the view Sep 25 23:33:09 for yours it would be your_view.setOnClickListener(new SongsViewListener()) Sep 25 23:33:20 f2prateek: not the button? Sep 25 23:33:37 what is wrogn with this inflater.inflate(R.menu.main_activity_actions, menu); Sep 25 23:34:01 lobi: add , false); ? Sep 25 23:34:07 inflate takes 3 args dont it Sep 25 23:34:31 acidjazz: nvm, are you getting an NPE? Sep 25 23:34:44 f2prateek: 0 errors.. no reaction to clicks Sep 25 23:36:16 acidjazz: you're setting the listener in the SongsViewHolder() constructor, but playStop hasn;t been set yet Sep 25 23:36:28 do it with holder.playstop instead Sep 25 23:36:40 i just did that.. no dice.. let me clean up and re-url you Sep 25 23:38:03 acidjazz: I copied code from http://developer.android.com/training/basics/actionbar/adding-buttons.html#AddActions Sep 25 23:38:07 I would be using BaseAdapter anyways Sep 25 23:38:14 lobi: https://gist.github.com/acidjazz/74fa9a845cc4a2fb4c0d Sep 25 23:38:21 f2prateek: err https://gist.github.com/acidjazz/74fa9a845cc4a2fb4c0d Sep 25 23:39:07 f2prateek: BUTTON PRESSED is nowhere in logcat .. everything else works fine Sep 25 23:39:24 other log.w's are shown Sep 25 23:39:25 do you get the GETTING_VIEW message show up? Sep 25 23:39:30 yea Sep 25 23:39:31 i see that Sep 25 23:39:41 W/MCHG_SECTION. GETTING VIEW : {title=final fantasy, artist=artist} Sep 25 23:40:48 acidjazz: i think it takes only two arg. http://developer.android.com/reference/android/view/MenuInflater.html#inflate%28int,%20android.view.Menu%29 Sep 25 23:40:59 I don't know Sep 25 23:41:12 but with false also doesn't work Sep 25 23:43:18 lobi: is there some reason you haven't just looked at the error console to see what the error is? Sep 25 23:43:55 uh, is search broken on play store ? Sep 25 23:44:51 09-25 16:44:39.815 740-889/? I/InputReader. Touch event's action is 0x0 (deviceType=0) [pCnt=1, s=0.8616 ] when=80489183679000 Sep 25 23:44:57 hmm Sep 25 23:45:26 evanc: ?? Sep 25 23:45:26 what the hell, i searched for skype and i see chinese soft porn Sep 25 23:45:51 google knows what you want better than you do Sep 25 23:45:58 i think you see chinese soft porn regardless of what category or search phrase Sep 25 23:46:00 nooo Sep 25 23:46:32 this is what i pull up looking for skype https://play.google.com/store/apps/details?id=kr.co.ahsolove.likeview Sep 25 23:46:41 also, other keywords are just returning nothing at all Sep 25 23:46:42 09-25 16:46:25.087 740-888/? I/InputDispatcher. Delivering touch to current input target: action: 0x0 Sep 25 23:46:45 something is totally fucked up Sep 25 23:46:53 f2prateek: touch events of 0x0 cant be good right? Sep 25 23:47:12 g00s_: not clicking it :)... with a package name like ashol love Sep 25 23:47:25 birbeck what, don't trust the play store :) Sep 25 23:47:45 well i *am* at work Sep 25 23:48:15 huh, i guess i never wondered - used to apple stuff, i guess there could be nsfw on Play Sep 25 23:48:23 * g00s_ shrugs Sep 25 23:48:29 acidjazz: this is what I would use http://pastebin.com/vPSEX1fc Sep 25 23:49:49 can anyone else confirm search on Play is busted? i'm not pulling up hits for basic terms that have worked since day 1 Sep 25 23:50:17 why all andorid emulators are so slow?????????????????? Sep 25 23:50:47 lobi use genymotion; although i have no idea how much it will cost, and for who, when it comes out of beta Sep 25 23:51:25 g00s_: yes. switch to genymotion and it si slow. Sep 25 23:51:36 wat? Sep 25 23:51:52 blazing fast on my shitty laptop Sep 25 23:52:10 i'm using genymotion Sep 25 23:52:15 and it si slowwwwwwwwwwwwwwww Sep 25 23:52:25 lobi: use an x86 one... Sep 25 23:52:34 zinx: ?? Sep 25 23:53:02 lobi maybe you have vbox fucked up Sep 25 23:53:14 if anything, its too fast Sep 25 23:53:24 g00s_: hm?? Sep 25 23:53:35 why vbox is fucked up Sep 25 23:53:49 i install it from repo Sep 25 23:53:50 maybe not enough memory allocated, who knows Sep 25 23:53:53 repo? Sep 25 23:54:08 * g00s_ gives up Sep 25 23:54:30 If using VBox, make sure you have hardware acceleration enabled. I had trouble setting a vbox VM for Android, the computer had VT-x disabled and ran slow as hell Sep 25 23:55:07 Max-P did you change that in your bios ? Sep 25 23:55:12 (Vt-x) Sep 25 23:55:25 f2prateek: https://gist.github.com/acidjazz/144636e951a243a035c2 Sep 25 23:55:32 f2prateek: cleaned it up.. still no fire Sep 25 23:55:43 g00s_, Was a friend computer, it was indeed disabled by default. Not setting, hard-coded disabled (HP being HP) Sep 25 23:56:08 yeah, i dunno why hp even bothers Sep 25 23:56:15 they should have stuck to printers Sep 25 23:56:23 Max-P: I enabled VT in bios Sep 25 23:56:31 But that's an essential feature for virtualization and VirtualBox, else it emulates it in software and it's hellish slow. Just as slow as the qemu based simulators Sep 25 23:57:39 lobi, I don't know genymotion at all, all I can do is suggest to double-check the settings everywhere to see if VT-x is enabled in vbox Sep 25 23:58:30 i can't find my app by exact name on Play, this is bad Sep 25 23:59:19 acidjazz: don't use SimpleAdapter - since super.getView will not be null (you've already initialized the views in the construcutor and the class will return you the view); this means your first block is never executed - so the ViewHolder isn't ever set Sep 25 23:59:53 f2prateek: i like simpleadapter cuz i have multiple fields in a list array goin Sep 26 00:00:13 f2prateek: my bug might have to be running the super creates a new view.. Sep 26 00:00:54 Max-P: where I can check this? Sep 26 00:01:09 acidjazz: baseadapter can do anything simpleadapter can Sep 26 00:01:38 weird, i wonder if play is foo-barring results because i'm using vpn. the library machine next to me pulled stuff right up Sep 26 00:01:46 lobi: http://imgur.com/fpE5dT3 It's in the VM settings, System, Acceleration. Sorry about the french, not really willing to change language for a screenshot :) Sep 26 00:02:09 f2prateek: baseadapter or arrayadapter? Sep 26 00:02:50 it's in the pastebin i sent you Sep 26 00:03:59 Max-P: thanks. i had enabled this Sep 26 00:04:24 I also have proble with eclipse Sep 26 00:04:28 dumb question - is there any way to specify a (background) drawable for a widget; so I guess only in xml - that blurs the background? Sep 26 00:04:31 f..k Sep 26 00:04:43 can I use VIM Sep 26 00:04:48 ? Sep 26 00:05:00 of course you can Sep 26 00:05:03 or anyone here using VIM Sep 26 00:05:37 f2prateek: https://gist.github.com/acidjazz/d3e414408e1d8baa5409 this worked Sep 26 00:05:38 lobi: use vim for what? Sep 26 00:05:57 f2prateek: hmm .. but your method is more ideal eh? Sep 26 00:06:33 acidjazz: if it works, ship it. Sep 26 00:07:00 lobi, Of course, you can use whatever you want. I use geany personally. It lacks completion (which is annoying for Java), but vim should work about perfect Sep 26 00:07:07 f2prateek: is it normal to see a tiny bit in the delay of the listener log.w? Sep 26 00:07:16 f2prateek: like every 10th press maybe like 250ms delay Sep 26 00:07:36 lobi, All you need is to run ant to compile and upload to device, you can easily wrap that in a script and make vim run it. Sep 26 00:08:57 lobi, http://developer.android.com/tools/projects/projects-cmdline.html Sep 26 00:09:22 acidjazz: not sure; whatever you are using this for though, try and see if you can't replace it witha simple onItemClickListener Sep 26 00:09:41 f2prateek: im gonna have multipel buttons per row Sep 26 00:10:05 acidjazz: k just confirming Sep 26 00:10:18 f2prateek: can i do that w/ multiple buttons? detect which button w/in hte listener? Sep 26 00:11:13 I haven't had the need to use anything more than onItemClickListener so not sure Sep 26 00:13:25 Max-P: thanks Sep 26 00:18:19 would anyone be willing to look at 2 snipets of code (paste bin) and tell me of there is a better way of doing what im doing ? Sep 26 00:18:48 *am i doing it as neat / efficiently as possible Sep 26 00:24:40 Zylinx, paste it and we will see Sep 26 00:25:16 ok thanks, just removing all my other code to make it easier to read Sep 26 00:25:27 http://pastebin.com/b58cqvSy Sep 26 00:25:49 Asking for help won't help you. Just ask and see what people reply. Not anyone want to answer yes and feel obliged to comment the code. I'm fairly new to Android, I might not help you, but having the code pasted all 375 members of the channel can see it and have a quick look at it Sep 26 00:26:16 ok cool Sep 26 00:27:15 Looks fine to me, there's nothing much there Sep 26 00:27:18 so yeah, in my code you can see im parsing "this" into Authenticate.login() for context reasons, is this the best way to do it ? its the only way i could get it to work but i feel like there should be a neater way of doing it Sep 26 00:28:23 context leak, activity may be destoryed while the task is still running Sep 26 00:29:31 f2prateek, i dont understand Sep 26 00:29:38 http://android-developers.blogspot.com/2009/01/avoiding-memory-leaks.html Sep 26 00:30:32 how can i improve my code Sep 26 00:31:23 i dont know if i have this right... but you can only start and Activity from another Activity ? Sep 26 00:31:31 an* Sep 26 00:32:37 Zylinx: I believe it's from any context (though you should probably stick to only Activities) Sep 26 00:33:03 i just feel like parsing the context all over the place just so i can fire up a new activity is a bit messy Sep 26 00:35:43 Won't the Context be freed when the task completes anyway? I can see how the context will leak if the app is closed or another activity starts, but as soon as the AsyncTask completes, wouldn't the context it holds will be deleted along wth the completed AsyncTask? Sep 26 00:36:35 activity could be destoryed before the async task completes Sep 26 00:36:49 * kbs continues to realize asynctasks aren't the best abstraction for many situations... ;) Sep 26 00:37:49 maybe it's simplest to store the application context, rather than the activity itself; since it's only being used to launch another activity Sep 26 00:38:02 Yeah, at least until the task completes (which needs the context anyway). Why won't it be freed after it completes? Sep 26 00:38:22 Because I might have to fix a whole bunch of them in my own code then Sep 26 00:38:32 Max-P: what f2prateek said. It's the other situation thats the problem. Eg: user rotates screen while your asynctask is still running. Sep 26 00:39:07 Max-P: not - "context fails to delete after async". its "activity gets destroyed before async task completes" Sep 26 00:40:31 but the least worst fix here might simply be to use the application context, so having said that twice now :) i'll pipe down Sep 26 00:40:42 kbs, So the idea is more of not having the activity twice in memory and not just a plain unrecoverable memory leak? Sep 26 00:41:43 Max-P: the activity object itself [because that's what you're holding on to] may have had its onDestroy() called, by the time you attempt to call startActivity() on it. What behaviour that means, who knows. Sep 26 00:42:26 I see. Sep 26 00:42:46 something like this https://github.com/octo-online/robospice/wiki/Understand-the-basics-of-RoboSpice-in-30-seconds Sep 26 00:42:47 but at the very least, yes - it will fail to release all the associated graphics objects (views, basically) until your asynctask is done Sep 26 00:43:50 :( :( :( x infinity … gmail is pestering me to sign up for Google+ when i sign in Sep 26 00:44:04 imap :-) Sep 26 00:44:04 hmmmmm Sep 26 00:45:32 so how exactly do i use the "application context" Sep 26 00:47:10 anyways i didnt even know there was a problem with that code, i just wrote it to make it work but was unpleased as to how messy it looked Sep 26 00:47:20 thinking there might be a neater / better way to do it Sep 26 00:48:30 Is it impossible to invoke the launch of a particular activity when a user clicks their hardware search key? Sep 26 00:48:46 (at any time they are using their phone) Sep 26 01:04:53 xb Sep 26 01:06:01 what is the difference betwene storing something as a Context object or the object itself (eg. Activity) Sep 26 01:06:22 is it the same object? Sep 26 01:06:29 yeah Sep 26 01:06:31 parse it this Sep 26 01:06:35 how do i reference a map by its key Sep 26 01:06:42 on the other side which should i use. Sep 26 01:06:49 like file=bob, title=chrono Sep 26 01:06:59 list.file ? list['file']? list{'file'} ? Sep 26 01:08:27 Zylinx: same object - no difference (clearly.) But, you can store/use context.getApplicationContext(), which is likely to be a bit less worse than storing the original context (which is likely to be an Activity; and hence prone to removal.) Sep 26 01:08:29 ah item.get Sep 26 01:09:37 oh because in my pastebin i was using Context . but someone pointed out i should rather use Activity instead :/ Sep 26 01:10:12 i quote " Please note you shall store it as Activity activityContext, not just Context activityContext. " Sep 26 01:10:53 Zylinx: huh. no idea what that means, but i believe f2prateek pointed you in the absolutely correct direction; so hopefully you'll figure it out from there :) Sep 26 01:11:43 Zylinx: (and I hope it's obvious to you as well that storing the same object under its parent type makes no difference as far as the issues f2prateek pointed out.) g'luck! Sep 26 01:14:10 yes i realize that, when you say pointed me in the correct direction are you reffering to robo-spice ? because im not worried about the activity being killed anyways... Sep 26 01:14:16 Pressing the hardware search button/key does not send a broadcast intent? Sep 26 01:15:18 Zylinx: "context leak, activity may be destoryed while the task is still running", and the ensuing conversation thread Sep 26 01:16:04 Zylinx: and the bug is that in fact, you do need to worry about tha ctivity being killed; because you are using it at the tail end of your asynctask. Sep 26 01:16:21 * kbs feels the strange sensation of running in ever smaller circles :-) Sep 26 01:23:51 i've read everythng 5 times, maybe im a lost cause.... i see how AsyncTask is poorly tied to the Activity life cycle. and f2prateek posted a suggestion to use robo-spice which makes everything better.. but i'm saying the issues you have pointed out are not concerning for me because im sure the Avtivity wont get destroyed before AsyncTask is complete... so i guess im ok using AsyncTask then even if it isnt prefered. but i just want to k Sep 26 01:23:52 now what the difference betewene using Context context = context_parsed_to_me_from_Activiy to Activity context = cont_blah_etc Sep 26 01:24:25 kbs ^ Sep 26 01:24:46 Zylinx: no difference Sep 26 01:25:23 Zylinx: however, Context context = activity.getApplicationContext(); is different from Context context = activity; -- does that make sense? Sep 26 01:25:36 yes Sep 26 01:26:14 I'm not sure how robo-spice is connected with any of this; so I'll bow out of that part of the discussion :-) Sep 26 01:27:06 ok cool, thanks for the help though, sorry im a nuisance. Sep 26 01:28:10 probably takes a tries to fit the puzzle together. tip - it's possible you may be making assumptions about the continued existence of the activity - typically, it's triggered by an orientation change, which by default will destroy the activity. ie - user flips screen while your async task runs - will trigger it. Just try that a few times and see if things still work. Sep 26 01:30:15 Zylinx: I didn't say use robospice, just thought that the graphic did a good job of explaining Sep 26 01:33:42 f2prateek, ohh ok thanks Sep 26 01:34:08 kbs yeah my app wont have orientation changes Sep 26 01:34:15 that was the assumption i was making Sep 26 01:35:49 Zylinx: ok :) Sep 26 01:38:49 this is my first android app and iv been away from java for quite a while, i was just wanting to make sure the whole parsing context thing was a "conventional" method of doing it as apposed to some crazy non-efficient code i sucked from my thumb Sep 26 01:40:44 why is it an orientation change messed up my listview/viewholder stuffs.. not visually.. just hte data Sep 26 01:41:24 what do i have to do refresh all my handlers upon an orientation change? Sep 26 01:42:36 hi guys, wondering if anyone can shed some light on my UI question in http://stackoverflow.com/questions/19017950/in-android-how-to-display-a-statusbar-view-to-be-used-in-multiple-activities thanks in advance Sep 26 01:46:47 rup3rt: Make the status bar part of the UI for your Activity, then make everything that's not always there a Fragment Sep 26 01:55:30 cool, genymotion update 1.3 Sep 26 01:56:02 hm, camera - still waiting for Bt :( Sep 26 02:11:15 is it possible to loop through all the instancations of a listview holder class Sep 26 02:33:19 Is the contract of a retained fragment different across different api versions? Some people say the view is destroyed and recreated while others say it's not. My initial debugging shows only onPause and onResume are called Sep 26 02:36:26 dcow dunno; i wonder if using the support lib would insulate you from that Sep 26 02:37:30 I wonder. But we are trying hard not to use it. Sep 26 02:38:43 If views hold a reference to an activity you would think they would have to be destroyed and recreated. However, I don't know if they do or not. They may just use the attributeset from the activity theme and then be done with the reference Sep 26 02:41:23 g00s: the other question would also be if there is a different between fragments defined in xml vs fragments added by you, but I don't seem to be getting two instances of my fragment so I'm inclined to believe a configuration change properly detaches and reattaches the fragment (and doesn't create a new one) Sep 26 02:42:11 i'm kinda rusty with fragment behavior. sucks that its complicated enough you can get rusty at it in the first place Sep 26 02:42:51 Hello! I'm running a android test... I have a file in the assets/ folder in the eclipse project... How do I open it? Sep 26 02:42:55 sucks that it's not documented half the time and where it is it can be misleading.. Sep 26 02:43:37 gavilan2: you have to get the stream from the AssetsManager Sep 26 02:44:15 I tried getContext().getAssets().open("myfile") but it says file not found Sep 26 02:44:22 myfile is located on the asset folders of the test project Sep 26 02:44:24 dcow: I can tell you that, in an activity that does not handle config changes, using the support library, the view *is* recreated. Sep 26 02:44:35 I know that much for sure. Sep 26 02:44:58 Why do you want to avoid the support library? Sep 26 02:45:27 RyanM: interesting. Yeah I'd been hearing that. for me I get different behavior — which is super frustrating Sep 26 02:45:44 RyanM: mostly because we are not supporting pre 4.0 devices Sep 26 02:46:14 dcow i think the support lib will only become more important Sep 26 02:46:35 but there has been enough things (like the childFragmentManager and intrinsic renderscripts) that are making me think I need to start using it Sep 26 02:46:44 have* Sep 26 02:56:50 I use the support library whereever possible, since it helps avoid nasty platform-specific bugs. Sep 26 02:57:08 Same reason I'm using OkHttp over HttpUrlConnection **** ENDING LOGGING AT Thu Sep 26 02:59:58 2013