**** BEGIN LOGGING AT Wed Sep 04 02:59:58 2013 Sep 04 03:02:58 * RyanM glares at Eclipse: java.lang.ClassCastException: android.widget.RatingBar cannot be cast to android.widget.TextView Sep 04 03:03:08 why does that even happen ~_~ Sep 04 03:03:18 see: bug Sep 04 03:04:11 yeah. Most likely it failed to regenerate the R file properly. Sep 04 03:09:11 keep having this weird problem with AS - it doesn't seem to actually check for errors in things after i open it until I open a file. then i have to open another file and maybe there will be errors in that Sep 04 03:11:11 <^cheeky> g00s: android studio ?? . try to re-format code .. Sep 04 03:11:36 dont want to do that, will fuck up version control Sep 04 03:12:13 <^cheeky> oh ... even optimize imports Sep 04 03:12:30 <^cheeky> g00s: what version control you using if you dont mind me asking Sep 04 03:12:41 git Sep 04 03:13:35 <^cheeky> ahh ok thanks Sep 04 03:14:42 <^cheeky> is there a huge learning curve to use git, Sep 04 03:14:58 <^cheeky> well i mean if you wanna host your own Git repo server in your local machine Sep 04 03:15:21 you don't need a server, you can do local git with just a directory Sep 04 03:15:24 on my own machine, i have local repos; no server Sep 04 03:15:38 But that *is* a server. Sep 04 03:15:48 no server process :P Sep 04 03:15:53 <^cheeky> lol Sep 04 03:16:11 i think some people say mercurial is easier or better designed or something. i haven't used it for anything more than checking out someone else's code. Sep 04 03:16:29 AOSP uses git (along with "repo") so that's an advantage to learning git Sep 04 03:16:46 Mercurial's defaults are what people want most of the time. git's defaults are what was the default case in the code. Sep 04 03:16:55 <^cheeky> well could anyone tell me a good tutorial they have used .. to set it up .. coz i was looking for some . and really didnt fly but then again . its my add, but if you guis dont know any of have used one its cool ill keep querying google Sep 04 03:18:26 ^cheeky: I recommend the (freely available) pro git book - http://git-scm.com/book Sep 04 03:18:51 I'm guessing this *isn't* possible, but is there a way to have a view fill all the space in a relativelayout whose height is set to wrap_content? I want it to wrap the other content, and for that view to fill all the space. Sep 04 03:19:32 RyanM: So you want match_parent? Sep 04 03:19:51 kamoricks: yes, except that doesn't do it. Sep 04 03:19:59 <^cheeky> JesusFreke: yeah .. i ran across that when i was looking up tutorials .. ill give it a shot later after i finish doing couple of tutorials Sep 04 03:20:08 <^cheeky> JesusFreke: thank(u) Sep 04 03:20:26 ^cheeky: also - http://pcottle.github.io/learnGitBranching/ :) Sep 04 03:20:36 +1 for learnGitBranching Sep 04 03:21:17 <^cheeky> :) Sep 04 03:21:25 <^cheeky> i will check them out Sep 04 03:21:40 mercurial > git Sep 04 03:24:51 ^cheeky #git is very helpful. i've found git to be a case where treating it as a black box isn't good. i think its best to understand its implementation (object) model. i recommend http://www.amazon.com/Version-Control-Git-collaborative-development/dp/1449316387 Sep 04 03:25:24 when learning svn i never delved into the layout of anything :/ Sep 04 03:26:11 <^cheeky> oh wow .. this is topic by istelf !!! at my internship .. we use clear case .. but source controll i didnt play with but the senior developers had access i just worked with creating a new branch and checking out and in stuff :/ Sep 04 03:28:13 i dont have fond memories of CC Sep 04 03:30:11 <^cheeky> heh, yeah .. hated .. when i have to check in unchecked stuff coz some else needed the file .. blah .. i always worked with hijacked .. and merged them using beyond compare Sep 04 03:30:21 <^cheeky> just to be on the safe side .. lame i know Sep 04 03:30:34 You mean how a source control system *should* work? Sep 04 03:32:12 <^cheeky> i am just lame Sep 04 03:43:50 uh, my medicine ball just popped :/ Sep 04 03:44:04 lucky it was a slow blow :) Sep 04 03:51:58 <^cheeky> blow .. as in . it just lost air .. Sep 04 03:52:37 yeah, surface cracked Sep 04 03:52:55 my medicine ball had an OOM Sep 04 03:53:23 <^cheeky> wat lol Sep 04 03:53:42 <^cheeky> i should try to use one them balls .. to actually see if it actually helps .. Sep 04 03:54:00 i dont recommend it for long term sitting Sep 04 03:54:09 <^cheeky> oh . Sep 04 03:54:26 puts a lot of pressure on your back. its impossible to sit straight on this for 8+ hours Sep 04 03:54:34 <^cheeky> i should be doing my yoga .. but iam so crunched for time trying to learn android dev hehe Sep 04 03:54:46 <^cheeky> true.. Sep 04 04:30:38 http://www.android.com/kitkat/ -- I so knew it wasn't going to be Key Lime Pie! Sep 04 04:31:11 mast bizarre cross marketing ever Sep 04 04:31:20 *most Sep 04 04:33:04 There were people in here that were 120 percent positive it was going to be Key Lime Pie. I wish to take this moment to gloat over them. Sep 04 04:33:30 klp was the official name internaaly Sep 04 04:33:37 *GLOAT* Sep 04 04:33:37 sp Sep 04 04:33:59 pragma-: also see http://www.kitkat.com/ Sep 04 04:44:50 key lime pie was the code name for the code name of the numbered version of the name "android" Sep 04 04:45:20 kitkat <- klp <- 4.4 <- android Sep 04 04:53:02 what are some good simple apps to make for practice? Sep 04 05:10:11 1 billion Android activations Sep 04 05:11:48 noy sure what the significance of the number is , though Sep 04 05:11:51 *not Sep 04 05:12:01 it was Andy's favorite metric Sep 04 05:18:46 oh ffs, java.lang.Math.scalb is api 9 Sep 04 05:32:02 hi how can we create custom android lock screen Sep 04 05:42:41 you can't really... you can fake it Sep 04 05:42:56 g00s, minSdkVersion="0" Sep 04 05:43:00 s/0/9/ Sep 04 05:43:02 problem solved Sep 04 05:43:22 minSdkVersion="18" Sep 04 05:43:28 all problems solved Sep 04 05:44:23 is 18 4.3? Sep 04 05:44:29 you'd have like 2 users Sep 04 05:44:34 hehe Sep 04 05:46:16 sounds like an ideal situation Sep 04 05:46:22 less people to complain Sep 04 05:47:25 it could work as a marketing bonus. the blog sites get to say check out this awesome app that is totally worth upgrading to 4.3 for Sep 04 05:48:11 i got a good amount of users targeting 14 when that was only officially on the galaxy nexus. though 14 is a bit different than 18 Sep 04 05:49:27 to be fair, i made an app last december that was 2.2+ Sep 04 05:49:33 i think 95% of my users are on 4.0+ Sep 04 05:50:57 i need to sell something before i can get a new device Sep 04 05:51:03 stuck with froyo for now Sep 04 05:51:16 use the emu most of the time, but the bt tests run on my phone Sep 04 05:51:51 google still hasn't made good on their mention of adding BT to the emu; crap that was years ago now Sep 04 05:52:41 huh, curious - i'm going to test this http://www.exploringbinary.com/java-hangs-when-converting-2-2250738585072012e-308/ Sep 04 05:56:58 that scalb thing crashed at runtime; i miss lint - using gradle atm Sep 04 05:57:09 hope the lint support comes soon Sep 04 05:57:59 If we're flashing from 4.2.2 to 4.3, using a custom rom, do I need to upgrade my radio and bootloader? (N4) Sep 04 06:00:31 Anyone else find out the quickest way to upload buttloads of changing data to buffers in OpenGL on Mali-T604 quickly? :D Sep 04 06:00:49 s/quickly// Sep 04 06:00:50 what do u mean Sep 04 06:00:54 is there some new way to do it Sep 04 06:00:57 for that gpu Sep 04 06:01:08 Hello! I'm looking to be able to swipe my app between different screen by going either left or right... The ListView is a long vertical list, that reuses the same UI elements when you go down... Is it possible to achieve the same thing while going left to right (all the views I want to slide are of the same type, so I only want to have 2 or 3 views at most at each time, and reuse them when Sep 04 06:01:08 I swipe left or right) Sep 04 06:01:30 Can the ViewPager achieve this? Sep 04 06:01:42 well, glBufferData, glBufferSubData, and glMapBufferRange tripknotix Sep 04 06:01:48 theres a guy in #unity on freenode currently generating 20,000 particles on the gpu, and was able to get them all facing the camera without alpha, but he has it built so that it CAN accept alpha images, just not 20k Sep 04 06:02:06 hes said somethign like the peices look like weird stuff like v4 v328 ..ect Sep 04 06:02:13 in the code Sep 04 06:02:16 glBufferSubData and glMapBufferRange both stall the GPU and duplicate buffers in the driver which can end up with /stupid/ amounts of RAM usage Sep 04 06:02:28 might wanna head over there and ask fholm about it Sonicadvance1 Sep 04 06:02:39 hes doing a very good job of it Sep 04 06:02:53 irc.freenode.com #unity fholm is his name Sep 04 06:03:01 commence pestering! Sep 04 06:03:06 indeed Sep 04 06:03:09 we already are on freenode.... Sep 04 06:03:19 looks like hes not online Sep 04 06:03:23 Seems he isn't online :P Sep 04 06:03:24 but when he comes on line, pester away Sep 04 06:03:28 heh yeah Sep 04 06:03:31 well hes on around this time Sep 04 06:03:34 hes in some other country Sep 04 06:03:38 im in the usa Sep 04 06:03:52 Fancy, good thing my sleep schedule is busted to hell Sep 04 06:03:53 and 20,000 doesn't seem thaaaaaaaaaaaat much... Sep 04 06:04:26 Well, considering the max throughput of these GPUs are somewhere around the 60-90k range, it isn't too bad :P Sep 04 06:04:41 the reason why its alot, is becuase most current systems that do particles are cpu based, and the one on unity called shiruken or w/e renders on the cpu but is handled on the cpu, thus no matter how u look at it, its cpu bound Sep 04 06:04:48 where as that one is 100% handled on the gpu Sep 04 06:04:53 very nice Sep 04 06:05:00 it means nothing fancy like image based patterns for animation or anything Sep 04 06:05:09 but, old fashioned math to create those curves of animation Sep 04 06:05:10 tripknotix: Most games that do particles do it with the GPU nowdays.... Sep 04 06:05:35 they all render ont he gpu these days yes Sep 04 06:05:52 but take for instance, things tha tyou think are commonly done on gpu, like PS3's anti alias Sep 04 06:05:55 100% cpu Sep 04 06:06:02 tripknotix: I did a particle based system animation fully on the gpu about 7 years ago for an assignment on university... It's not nothing new.... Sep 04 06:06:16 well you should sel it on the asset store on unity Sep 04 06:06:19 because they dont have one Sep 04 06:06:23 so we dont see it on mobile Sep 04 06:07:12 tripknotix: I can't... I was just implementing what a guy said on a paper :p Sep 04 06:07:24 Which included half the implementation.... Sep 04 06:07:28 I wonder what roadblocks the unity team on Adreno with their GLES3 support Sep 04 06:07:32 ithink its like, "hey i can make a bad ass realistic looking 3d person mode, why the F are all these games sucking at making people look real and only the few with million dollar budgets do it !" Sep 04 06:07:36 its life gavilan2 Sep 04 06:08:00 its game dev life Sep 04 06:08:04 Since I'm breaking everything on Adreno :D Sep 04 06:08:16 tripknotix: The issue isn't if you can make a 3d person mode, but if you can make a 3d person mode inside a scene inside a game.... Sep 04 06:08:24 model^ Sep 04 06:08:32 and yeah Sep 04 06:08:36 its more complicated gavilan2 exactly Sep 04 06:08:37 u get it Sep 04 06:08:50 most 3d games are built in unity these days, with only a few on unreal Sep 04 06:08:56 so when u look at it like that Sep 04 06:09:06 then almos tno mobile games use gpu particles Sep 04 06:09:14 just particles partially handled on the gpu Sep 04 06:09:16 tripknotix: seriously? I thought that most "non indie games" were using either unreal or a custom engine.... Sep 04 06:09:32 why would u think that Sep 04 06:09:45 tripknotix: at least the games I play :p Sep 04 06:10:22 tripknotix: In fact, I don't know if I've ever played a game made in unity in the PC... And I do know I've played several made with unreal... Sep 04 06:10:33 the biggest mobile gaming companies are using unity, and common tools like NGUI for ui's Sep 04 06:10:55 were still talking about mobile only here Sep 04 06:11:09 i dont think theres any point in looking at unity pc games Sep 04 06:11:13 no money there Sep 04 06:11:17 http://developer.amd.com/wordpress/media/2012/10/Drone-Real-Time_Particles_Systems_on_the_GPU_in_Dynamic_Environments(Siggraph07).pdf Sep 04 06:11:24 I think that's the paper I implemented.... Sep 04 06:11:29 there only way to make money on pc games these days is 100 million dollar budgets for dev and marketting Sep 04 06:11:37 sweet Sep 04 06:11:44 now go put it on unity and make lots of money Sep 04 06:13:33 http://docs.unity3d.com/Documentation/Manual/ParticleSystems.html Sep 04 06:13:34 ? Sep 04 06:14:59 tripknotix: Do you know what language do most developers use for unity? Sep 04 06:17:20 yeah c# Sep 04 06:19:04 tripknotix: Do they do the levels on C#? Sep 04 06:23:29 you mean like precedural levels? yes Sep 04 06:23:58 * JesusFreke only uses postcedural levels Sep 04 06:24:06 tripknotix: I meant like the levels of a game... I was wondering if they used JavaScript or C# for them usually... Sep 04 06:24:14 c# Sep 04 06:24:26 l Sep 04 06:24:28 k Sep 04 06:24:29 but they use the editor to visually create the levels Sep 04 06:24:32 then code in c# Sep 04 06:24:40 tripknotix: http://unity3d.com/learn/tutorials/modules/intermediate/scripting/inheritance ----> Unity doesn't has my respect.... Sep 04 06:25:25 ok? Sep 04 06:25:47 what? Sep 04 06:33:05 coming back to my original question..... Sep 04 06:33:19 I'm looking to be able to swipe my app between different screen by going either left or right... The ListView is a long vertical list, that reuses the same UI elements when you go down... Is it possible to achieve the same thing while going left to right (all the views I want to slide are of the same type, so I only want to have 2 or 3 views at most at each time, and reuse them when I Sep 04 06:33:19 swipe left or right) Can the ViewPager achieve this? Sep 04 06:34:13 yes, it's explained in the documentation Sep 04 06:34:23 Mavrik: Great! Sep 04 06:34:25 thanks Sep 04 06:35:10 hmm, at least for fragments, not sure for "normal' views in it Sep 04 06:37:42 Mavrik: What do you mean "at least for fragments"? not for normal views? Sep 04 06:38:30 gavilan2, you need to inflate views manually Sep 04 06:38:39 and they are not managed by viewpager so no, it doesn't do that automatically Sep 04 06:40:48 <^cheeky> :S FML all these hours!!!!!!!!1 blaaaah .. myyy appp crashes its soo mean Sep 04 06:41:24 oh, I realized, why he named it SFML Sep 04 06:41:24 :D Sep 04 06:41:35 thanks ^cheeky Sep 04 06:41:36 :D Sep 04 06:41:45 <^cheeky> i wish i learnt or started with git, my fault ,thou android studio has the umm ... history pane thats helfule Sep 04 06:42:18 <^cheeky> hi Sep 04 06:42:19 For those who don't know, I was talking about this, www.sfml-dev.org/ Sep 04 06:45:42 <^cheeky> android has a steep learning curve .. or .. its just me .. i just implemented call backs .. on fragments .. so i could use the fragments as modular as possible and leave the activity to do all the transactions and state changes .. spose .. but i so crash it when i run it on an emulator .. but when i run it in my tablet .. it works .. and debugger errors are so abstract overflow spills that each error could be something not .. to do w Sep 04 06:46:33 ^cheeky i think it has a steep learning curve. java is pretty easy for most people. its a combination os the complex state management and multithreading which is a pain Sep 04 06:47:05 <^cheeky> yess .. omg the state changes .. and wow . it all fun .. but srsly soo painfullll lllll Sep 04 06:47:48 <^cheeky> blaah Sep 04 06:47:48 its what you would do in a high memory pressure situation using java in 2007 hardware ;) Sep 04 06:48:06 swapping all these things in and out of memory, etc Sep 04 06:48:11 <^cheeky> maybe i need a break been at it for like .. days .. i think cant remember learning Sep 04 06:48:13 all bs nowadays Sep 04 06:48:48 <^cheeky> coz java use a virtual compiler Sep 04 06:50:33 <^cheeky> its very nifty tho android .. has different states all you do is just over-write the methods for each state. Sep 04 06:50:44 Hi all, how can i get the "internet call" field from all the contacts? Sep 04 06:51:02 ^cheeky take a look at the various Google I/O videos from the past few years Sep 04 06:51:14 lots of useful stuff there Sep 04 06:51:31 stuff like minimizing battery usage, etc Sep 04 06:51:48 <^cheeky> oh i have Sep 04 06:52:28 <^cheeky> now been watching deb bytes and such Sep 04 06:52:42 <^cheeky> just to keep looking at the apps and what else can be done Sep 04 06:53:29 <^cheeky> FrancescoV: get a cursor .. to query the contacts.contact.INTERNE_NAME mebe ? Sep 04 06:58:03 ^cheeky i think it has a steep learning curve. java is pretty easy for most people. its a combination os the complex state management and multithreading which is a pain --> It's only a pain until you learn how to do it easily.... Sep 04 06:58:27 oops, i just cleared my history. can you repeat that :( Sep 04 06:58:50 i weird habit i have on irc ;) Sep 04 06:59:09 ^cheeky i think it has a steep learning curve. java is pretty easy for most people. its a combination os the complex state management and multithreading which is a pain --> It's only a pain until you learn how to do it easily.... Sep 04 06:59:14 thx Sep 04 07:00:40 well, the other part that makes things difficult from a platform perspective, is deciding whether you are going to pass stuff across process boundaries. its pretty easy to use a service locally bound, etc, but once you decide you'll open things up to other apps, your nice model goes to shit, well, needs all this boilerplate crap to Parcel / etc Sep 04 07:01:07 g00s: What do you need to pass to a different process? Sep 04 07:02:06 right now i'm not, but i've been asked to expose apis that chuck lots of sensor data. in that case it is easy, its just large arrays of floats Sep 04 07:03:07 but putting over 4K of data in an intent seems to cause performance degradation from what i read about android internals Sep 04 07:04:09 g00s: Why do you need your API to be in a different process? Sep 04 07:06:17 another app wants to use data from my app Sep 04 07:06:48 anyway, if it's the only way, then it's the only way... Sep 04 07:06:55 i was also moving away from sqlite, but that kinda bit me … because with stuff in sqlite, i could have just given them access to the content provider Sep 04 07:07:30 but now its stored in something called MVStore Sep 04 07:07:30 you could still do a content provider without sqlite Sep 04 07:07:36 weren't content providers supposed to be sql-independent? :P Sep 04 07:08:05 nice thing about content provider versus binding to a service is you don't need an AIDL and the API can be somewhat self documented Sep 04 07:09:19 kevinb yeah .. but then i have to make up my own cursors, have to look into that Sep 04 07:09:39 i mean, if i want to do the right thing and fill windows Sep 04 07:09:48 and not just give them 10 mb in an array Sep 04 07:10:06 you guys are so lucky to use SQLIteCursor :D Sep 04 07:10:25 g00s: whenever I hear "cursor" and "database" together, I cringe Sep 04 07:10:46 also, the cursor stuff is gross. under the hood, its all just an ArrayList> or something like tat Sep 04 07:10:49 * p_l works on an application that often runs out of cursors. Sep 04 07:11:03 g00s: you know that SQL Cursors are considered bad practice? :> Sep 04 07:11:44 :) Sep 04 07:12:06 so lots of Autoboxing, wasting memory, etc Sep 04 07:12:26 garbage, etc Sep 04 07:16:02 so apparently PackageManager.getActivityInfo for an activity alias won't properly set the "enabled" flag. it just shows whatever the default state is Sep 04 07:16:11 curse you package manager Sep 04 07:18:11 ^cheeky the android framework people realized concurrency was difficult and came up with a bunch of helper stuff like Loaders. but still, just puts stuff under the rug Sep 04 07:18:46 concurrency itself is hard, race conditions - i mean, in the context of complex lifecycles Sep 04 07:18:51 services, fragments, etc Sep 04 07:19:27 Howdy folks :D Sep 04 07:19:45 haha. Good to know that realpath on older version of the bionic libc have a issue where a common use case will sigsegv Sep 04 07:19:54 s/have/has Sep 04 07:20:14 https://code.google.com/p/android-source-browsing/source/detail?spec=svn.platform--bionic.21eab513e7eec280a7a8bcb9482a1a8b61e59442&repo=platform--bionic&r=21eab513e7eec280a7a8bcb9482a1a8b61e59442 Sep 04 07:20:53 * uberushaximus pokes Sonicadvance1 Sep 04 07:21:05 Good morning uberushaximus Sep 04 07:21:10 from nightstar? Sep 04 07:21:38 Well, I wouldn't want to consider myself to be from there Sep 04 07:21:59 why'd you stop hanging around? Sep 04 07:22:47 As with everything I do. I lost interest in it. Sep 04 07:22:48 good morning guys Sep 04 07:22:59 well its not that good .. but its morning Sep 04 07:23:02 at least here Sep 04 07:23:15 turn lemons into lemonxah :) Sep 04 07:23:38 hehe you know my motto .. when life hands you lemons .. type cast them (orange)lemon Sep 04 07:23:52 g00s, I don't think concurrency is hard if it's taken into consideration in design right from the start... however it requires quite a bit of experience to realise what the problems are Sep 04 07:24:17 Zharf would you find concurrency in java hard if we didn't have the jsr 166 stuff ? Sep 04 07:24:17 anyway, so .. we switched out our ActionbarSherlock that has a local fix to allow the drawerlayout toggle to the AAR and we lost that change Sep 04 07:24:49 how difficult is it to create an AAR from the abs source so that we can create an AAR with that fix in Sep 04 07:25:17 or is there a way with the current AAR of abs to have to drawerlayout toggle working Sep 04 07:25:22 g00s, tedious perhaps, but not much harder Sep 04 07:25:55 i would find it difficult. reading through JCIP, i had to think hard. and many devs haven't even read that Sep 04 07:26:42 JakeWharton, hi :) you here by any chance? Sep 04 07:27:51 oh wait .. absdrawertoggle .. let me check that out Sep 04 07:28:03 i just learned the other day, if i was reading right, that only the final attributes of an object are guaranteed to be visible post object creation to other threads than the one newing it Sep 04 07:29:17 com.actionbarsherlock.app.ActionBarDrawerToggle not found :/ Sep 04 07:32:51 Hi! I'm currently looking for a good library to generate graphs from static data with a simple method to change the x-axis-labels to dates. Google only finds links which are at least a year old. Any ideas? Thanks. Sep 04 07:38:21 KNUBBIG yeah, sure you found achartengine already Sep 04 07:38:29 which was buggy as hell Sep 04 07:38:49 probably better off grabbing jjoe64 and changing it Sep 04 07:40:03 g00s: welp okay, thanks Sep 04 07:40:34 looks like he updates it. Sep 04 07:40:57 it was pretty nice, actually, for common things - the biggest issue has been fixed (adding data after construction) Sep 04 07:41:44 anybody uses https://github.com/nostra13/Android-Universal-Image-Loader/wiki/Library-Map? Sep 04 07:54:37 if i want to make my owen lib into an aar lib how whould i gou about it? Sep 04 07:55:00 is there some sample? i have googled and all i can see is ppl saying aar is just another .jar? Sep 04 08:05:49 I get a json response. Is the android JsonReader and the functions faster, than just parsing with JsonObject manually? I just think because of the method invocations from JsonReader, because of my highly nested response. Sep 04 08:12:26 I want to have an activity timeout and kick the user back to the sign in screen after 15 minutes, how can I make it do this even if the user has hit home and then re-entered the app through the running apps screen? Sep 04 08:13:08 my current attempt is quite complicated and only works some of the time Sep 04 08:14:33 This is what I have at the moment: http://pastebin.com/V7tBW12A Sep 04 08:15:52 Ankhwatcher: Sounds like your app navigation is messed up. There should be no way to "back out" to the login screen without a logout action. With a proper logout action, auto-logout after 15 minutes should be easy. Sep 04 08:16:56 kjeldahl: what would a proper logout action be? Sep 04 08:17:28 Ankhwatcher, what if I killed your app and come back to it? Restart the clock or? Sep 04 08:18:01 Kegsay: you would go through the login procedure again and it would restart the clock Sep 04 08:18:30 Ankhwatcher: Clear your session. On activity start, if you have a valid session, go to "logged in" screens, if not go to "login screen". Regardless of how the user entered your app. Sep 04 08:19:07 .. or activity resume or any way your activity "restarts" Sep 04 08:20:10 Ankhwatcher, what you have isn't bad, but there should be no need to launch an intent after the timer has expired. You should literally just need to check if (not logged in) then go to login screen Sep 04 08:20:48 you're already persisting this in shared prefs, so I don't see why you can't just do a check for login status in onResume, and if it has expired, dump to login screen Sep 04 08:22:17 skullcrasher: try it and see. Benchmark the cost of parsing for a realistic payload. Sep 04 08:22:51 Hey there! What's the concrete benefit of raising the target sd of my app from 16 to 18? Sep 04 08:23:06 UnbertKant: it makes you a better person Sep 04 08:23:12 skullcrasher: it should be just two System.currentTimeMillis() calls bracketing the interesting work and then you print the difference to log and repeat a few times, you'll have an estimate. Sep 04 08:23:26 Kegsay kjeldahl thanks guys, I'll have a look at that Sep 04 08:24:42 Ankhwatcher: Gl. Many ways to do it. In my own, I check login state in onresume and start login activity if not logged in. When login succeeds, I start my "main" activity. On logout, I clear the session and call the same stuff as onresume. Sep 04 08:25:51 kjeldahl: yes but what happens if the application has timed out while in a pause state? Sep 04 08:26:26 Ankhwatcher: Add your timeout criterion to your session check. Sep 04 08:26:28 Ankhwatcher: imho the simplest way is to set up a preference at login that marks the last possible time when the application will still agree to respond to user, and then whenever an activity comes to foreground you will check if current timestamp is past that moment and if yes, you rather start the login activity Sep 04 08:27:04 this seems simple enough to me ... not sure if this is all you need it to do Sep 04 08:27:52 a simple utility method could be place on every onStart or onResume which gets the activity as context and invokes startActivity followed by finish() if the timeout is too old. Then pepper that to all actions you need. Sep 04 08:28:22 I see the benefit of raising the target from Android 2 to Android 4 and then rework the app to look good again, but what's the benefit of updating the target on minor api changes? Sep 04 08:29:24 Does somebody happen to know if I can display labels on graph points in jjoe's GraphView? Thanks. Sep 04 08:29:34 UnbertKant: android maintains forward compatibility. The target sdk simply tells android which version of android you believe the application will work correctly in. This allows the application to look and feel more modern over time, basically. Sep 04 08:29:56 set targetsdk to the latest API you've actually tested the application in. Sep 04 08:46:08 Alright, so I'll ignore the target until a new version of Android actually looks different (maybe KitKat). Sep 04 08:52:50 hello, guys I have a problem with missing background image on android 4.1 Sep 04 08:52:57 everything is ok with 2.3 Sep 04 08:53:11 any ideas Sep 04 08:59:25 <^cheeky> Awwwssoommme it 5 am here .. i got it working :) Sep 04 09:00:33 tagrudev, what format's the image? Sep 04 09:12:23 I want to conditionally lock orientation of the app using androidmanifest.xml .portrait for phone and landscape for tablet. Is it possible just using the androidmanifest.xml ? Sep 04 09:14:27 <^cheeky> for each of the activity in your app, set the screen Orientation ? Sep 04 09:14:39 arunbabu, I hate you already Sep 04 09:15:04 i did the same if i want to just fix it to a single orientation. But I want portrait for phone and landscape for tablet Sep 04 09:15:10 <^cheeky> i havent tried, but you could use windowmanager and get the in which orientation it is and set it to the way you want Sep 04 09:15:58 ^cheeky: I dont have any programmatic access to androidmanifest.xml. So what I give in androidmanifest.xml will be respected Sep 04 09:16:23 <^cheeky> well i dunno about windowmanager, but i assume you could get which orientation it is .. using the device sensors and change it to what ever you want your app to be like Sep 04 09:16:23 <^cheeky> isFone ? Sep 04 09:16:25 <^cheeky> sorry last one was mistake Sep 04 09:16:34 <^cheeky> what about winodwmanager ? Sep 04 09:16:42 Hi, I am trying to do something similar to layout in Google Play app. I need something like grid view with adapter and different items sizes. What is the best way of doing this ? Question already on Google Plus https://plus.google.com/112381277994340602619/posts/7f8Qfd6RoGY Sep 04 09:16:57 <^cheeky> how about put the same layout in .. layout-land directory ? Sep 04 09:18:45 ^cheeky: I use a new born framework and it really doesnt allow to write any java code for android. It just reads the androidmanifest.xml template and creates the apk file Sep 04 09:18:53 Zharf: how come? Sep 04 09:19:05 Repminister_, checkout the StaggeredGridView Sep 04 09:19:08 Zharf: educate me! I'm new to this thing Sep 04 09:19:40 I hate people who lock orientation Sep 04 09:19:55 there's almost never a good reason for it Sep 04 09:20:03 rciovati but it is stable ? isnt in experimental stage ? Sep 04 09:20:03 <^cheeky> arunbabu: what i suggested .. i havent tested so my advice .. shouldnt be considered some legit prolly has better answer .. true-story Sep 04 09:20:12 and especially if there's text input fields it's the worst thing ever Sep 04 09:20:50 Repminister_, never used it, not sure how is stable Sep 04 09:21:37 <^cheeky> Zharf: wouldnt you want it to be locked .. well at least if its portrait on a phone and land on an tablet ? Sep 04 09:21:43 <^cheeky> sorry iam new 2 Sep 04 09:22:02 ^cheeky, for what purpose? Sep 04 09:22:22 hello, i have a graphics problem and I need to convert between jpeg and png image formats, does anybody know of a library, that would do the conversion without decoding the entire image? android.graphics.Bitmap is useless, because i need to load and decode the entire image, if I want to save it in another format. Sep 04 09:23:23 Zharf: you will hate my app if I dont lock the orientation! BTW any clues into my doubt? Sep 04 09:23:50 <^cheeky> Zharf: ok .. me tries .. so from my understanding .. if you want your app to be on a tablet || phone the app should display correctly, so in case its a tablet .. you would have fragment be inflated depending on the screep density .. Sep 04 09:23:52 arunbabu, why will I hate it if you don't lock orientation? Sep 04 09:24:20 arunbabu, does it have text input fields? Sep 04 09:24:21 <^cheeky> and ... aaaahhhh not in the manifest .. actually locking each activity Sep 04 09:24:38 Zharf: the entire components' aligment totally messes up and it doesnt have input text field. its just read only!@ Sep 04 09:24:58 sounds like bad design ;) Sep 04 09:25:09 but no input makes it slightly more tolerable Sep 04 09:25:18 Zharf: so you want to help me? Sep 04 09:25:19 :D Sep 04 09:26:03 Im actually trying to have a conditional expression in manifest file. if width>6 something else something Sep 04 09:26:16 why not do it in code Sep 04 09:26:39 you can't really do that in the manifest, unless you build the app twice with two different manifests, one for tablets and one for phones Sep 04 09:26:42 afaik anyway Sep 04 09:27:18 my framework doesnt allow any programmtic access! its just what you see in xml gets build up to the app Sep 04 09:27:38 o_O Sep 04 09:27:47 sounds like a crappy framework ;) Sep 04 09:28:05 arunbabu: it doesn't support layout-large for example? Sep 04 09:29:58 zinx, you can't lock orientation in there though Sep 04 09:30:32 zinx: no it doesnt! Sep 04 09:31:54 Zharf: i suppose not, but you can do layout-land / layout-port so it's properlike instead of forcing an orientation :P Sep 04 09:32:04 arunbabu: dude, throw that piece of crap out, you shouldn't be using it Sep 04 09:32:07 zinx, indeed Sep 04 09:32:15 arunbabu, what he said ;) Sep 04 09:32:59 it actually supports cross platform development with java code! :D Sep 04 09:33:11 any changes? :D Sep 04 09:33:20 arunbabu: i thought it didn't allow any code Sep 04 09:33:46 it doest allow any platform specific code for android Sep 04 09:33:53 arunbabu: in any case, no, no changes. if it doesn't support configuration-specific files in Android, you should not be using it on Android Sep 04 09:34:11 <^cheeky> is there .. a tutorial for .. like designing your .. UML and User cases for an app.. like i know of UML and Use cases .. but is there on for an android app .. since apps are different from a system software .. kinda ?? inConfusionState Sep 04 09:34:33 i have to suffer anyway! they pay me :D Sep 04 09:34:49 arunbabu: because that's cross platform in the same way that running full Office on an Android phone unmodified would be cross platform :P Sep 04 09:35:05 arunbabu: sure, it runs, but no one can use it Sep 04 09:36:41 hey there, I'm trying to intercept touch events from a SeekBar but it is not working, any idea? Sep 04 09:37:54 :) Sep 04 09:43:31 is anyone else having problems posting long replies to comments on google play? e.g., a 315 character response works w/o problem but 348 chars lead to a 500091 error. Sep 04 09:46:10 it's weird that the Activity's dispatchTouchEvent is not seeing the events when touching on top of the seekbar... Sep 04 09:47:21 <^cheeky> how .. does one.. typically start creating an app .. user cases- > UML -> start writing code ? Sep 04 09:47:27 anyone found a library that creates viewpager tabs with sliding indicator? Sep 04 09:48:06 anyone knows how to reset android when use Genymotion? Sep 04 10:28:21 <^cheeky> do developers use Use cases for and android development Sep 04 10:29:24 no they just make things no user would do Sep 04 10:31:59 <^cheeky> sorry, i am just trying to find an article .. that talk your the process for an android app .. Sep 04 10:35:39 It's software, you do it like you'd do any piece of software... that is, any way that suits you and the other parties involved. Sep 04 10:36:11 Personally I'm a fan of the agile approach. Start with the minimum of functionality, write tests, refactor if needed, and iterate. Sep 04 10:36:35 I've lost belief in upfront design. Sep 04 10:36:48 <^cheeky> well i mean i dunno where to start i have an app i wanna create and from .. the little i know .. use case -> then UML -> code smash Sep 04 10:36:57 But in case of agile, the "use case" would roughly translate to a user story. Sep 04 10:37:58 I see UML as a communication tool, I'd never use it if I were the only developer. Sep 04 10:38:44 I'd write user stories and start banging, and start with a minimal implementation of a user story.. then refactor it if needed, because I'm only going to find out the real quirks when I'm building it. Sep 04 10:39:42 <^cheeky> ok .. user story.diff(user case ), ok ill loook into that Sep 04 10:39:59 <^cheeky> i mean its a simple app idea .. something i thought i could use heh .. Sep 04 10:40:32 Well, don't get caught in processes... if it's small enough, it might not warrant any process at all and you should just roughly sketch the functionality and start building. Sep 04 10:41:29 <^cheeky> but what really helped me when i was learning android .. was how they had .. the UML diagrams .. like ok so this activity will have this fragment which will use this model Sep 04 10:41:30 <^cheeky> blah Sep 04 10:41:45 <^cheeky> i dunno i should have slept .. but too late with monster in my tummy now(); Sep 04 10:41:55 any abs aar out there with DrawerToggle? Sep 04 10:42:06 on mavenCentral? Sep 04 10:42:12 If that works for you, by all means, use them. Sep 04 10:42:19 cause i made one locally but to put that on all the machines we use at work here is a pain Sep 04 10:42:51 or is there any way of making a centralized mavenLocal? Sep 04 10:42:52 Personally, I can't draw UML without first thinking out the entire classes anyhow, so it's somewhat redundant. Sep 04 10:44:13 <^cheeky> yeah .. then wouldnt the user case be ideal .. coz it would show which objects the user will interact with .. grab those objects and turn them into UML objects Sep 04 10:44:14 lemonxah: http://www.sonatype.org/nexus/ Sep 04 10:44:53 the aar i compiled locally isn't my work its someone elses github project that works the way i want Sep 04 10:45:02 so i dont know if i am allowed to upload it Sep 04 10:45:15 ^cheeky: for me, that would just be another layer of abstraction and thus, extra work, but hey, if it works for you... :) It's really all personal. Sep 04 10:45:50 lemonxah: you can run Nexus privately, only give access to certain people. Sep 04 10:46:30 <^cheeky> TheTrash: i dunnoooo .. coz its my first time lol Sep 04 10:46:53 awesome thnx .. didn't even think about that Sep 04 10:49:44 <^cheeky> hmm i dunno if anyone else has encoutered this problem .. but .. i have a nexus 4 .. and the bloody port does not work .. or fit correctly no more .. and i wanna back up my pics and stuff from my phone . i was wondering since usb charging is out of the question if i purchase a Qi charder would that charge the phone since its compeletly been dead for over a month now ? Sep 04 10:50:26 <^cheeky> sorry this was supposed to be on the android # .. :/ Sep 04 10:50:26 <^cheeky> sorry Sep 04 10:58:17 hello Sep 04 10:58:18 I'm looking for if there is a way to access Audio Samples Data from the TextToSpeech synthesis. I don't find a way from the Android API. Sep 04 10:59:00 I would like to make an application to display a VU-Meter from the texttospeech audio data. Is it possible ?<^cheeky> Sep 04 11:03:36 Between activities to persist data for inputs, I'm using the Bundle for onSaveInstanceState and onCreate Sep 04 11:03:44 although onCreate's Bundle parameter is always null. Sep 04 11:03:46 Have any ideay? Sep 04 11:04:10 Maybe it's got to do with the day I start the Activity back and forth. Sep 04 11:04:15 s/day/way/ Sep 04 11:04:17 <^cheeky> Neuro_sys: did you override the method onSavedInstanceState() Sep 04 11:04:54 Yes of course Sep 04 11:05:04 <^cheeky> create a bundle .. add the arguments .. so onCreate() will have the saved instance with the bundle you added in the savedInstance() Sep 04 11:05:07 <^cheeky> oh .. Sep 04 11:05:40 Well, though it's like this: Activity1 calls Activity2. Activity1's onSaveInstanceState, things are put on the Bundle. Then Activity2 does nothing but simply start the Activity1. Sep 04 11:05:52 And upon that, on Activity1's onCreate, the Bundle is empty. Sep 04 11:06:18 I'll know check if I should manage the bundle I saved in Activity1 in Activity2 to pass it back to Activity1 upon return or such stuff. Sep 04 11:06:30 uh sucky sentence, sorry. Sep 04 11:08:13 <^cheeky> well if you want .. data from activity 2 in activity 1 .. i think you would be wanting to use intent .. based back . from activity 2 .. .. and in activity 1 you use startActivityForResult().. get the process the result code for that data you want ? Sep 04 11:09:31 I only want Activity1's input data back when the user returns back from Activity2 to Activity1 again. (Because all the input he has entered is lost at the moment) Sep 04 11:09:45 otherwise, I can pass data between Activities using Intent and putExtra. Sep 04 11:09:51 No problem there Sep 04 11:11:19 Interestingly, Bundle parameter is null on Activity1's onCreate method... (Even though its onSaveInstanceState executes fine before leaving it) Sep 04 11:11:34 <^cheeky> well .. are all your textViews and Edittexts .. private memebers ? or instance variables of the activity .. Sep 04 11:12:03 I do it like this: Sep 04 11:12:04 outState.putString("firmaAdi", ((EditText) findViewById(R.id.firmaAdi)).getText().toString()); Sep 04 11:12:19 in the onSaveInstanceState method of Activity1 Sep 04 11:12:43 So there aren't any members really. Sep 04 11:12:58 <^cheeky> ahhh .. try adding them and see what happens .. Sep 04 11:13:29 Hey, any of you's ever have any dealings with rild-debug socket ? Sep 04 11:13:41 hmm, you mean try having member variables in my Activity to hold instances to Resouce id's for the view components? Sep 04 11:13:48 <^cheeky> i dont think you need to even override onsavedinstance then .. unless there is a screen rotation .. coz that destroys the activity and recreated it from scratch .. then you need to do onsavedinstance () override Sep 04 11:13:51 (as opposed to using findViewById each time to use them) Sep 04 11:13:56 <^cheeky> yup Sep 04 11:14:00 okay will try Sep 04 11:14:30 <^cheeky> lemme know .. i am interested to know what the outcome is Sep 04 11:14:35 <^cheeky> if you dont mind Sep 04 11:14:40 ^cheeky: I should make those members as in JavaBeans, that is, private member and public getter setters? Sep 04 11:14:44 sure Sep 04 11:16:38 I'm downloading an xml file which I process and show to the user. Where would be a good place to store it? I mean as of now I'm simly placing it in a . folder on the sdcard... but are there any standard place like .data/myApp/ or something so I don't clutter the sdcard? Sep 04 11:16:42 <^cheeky> i am not sure about javaBeans .. but just private instance variables and public accessor and getters Sep 04 11:16:43 <^cheeky> and wire the views during the oncreateView() Sep 04 11:17:05 yes Sep 04 11:17:22 you mean onCreate(Bundle bundle) Sep 04 11:17:36 let's see Sep 04 11:17:39 I will join again a little later, gotta head off for now Sep 04 11:22:16 I'm trying to use the class roid.media.audiofx.Visualizer. But I have errors on the code line: new Visualizer(0); => AudioFlinger could not create effect, status: -1 Sep 04 11:22:18 Any idea ?N Sep 04 11:40:49 Hey. I'm in a company and have some test devices, but I find the standard apps (keyboard etc.) inconvenient. What's the risk of using my personal google account to create a second user on the tablet, so I can use my own keyboard etc.? There are other people who have access to this Nexus7 and of course they are able to connect it to adt/eclipse etc. Sep 04 11:42:05 mh, I guess this was a dumb question. This might be the most insecure environment possible to use a private account... Sep 04 11:42:39 make a dummy account. Sep 04 11:43:18 UnbertKant, we use a common "test" account for that registered on the company Sep 04 11:43:24 so devs don't expose their private data Sep 04 11:48:45 Not sure if people saw my question in #andoird may be better suited here but any ideas if you think I could get a UVC H.264 webcam working on a Nexus 7? Sep 04 12:24:37 I have this very odd Lint issue that it works from the command line but reports ficticious errors when run from eclipse. Anything I can do about that? Sep 04 12:28:05 Hey guys I've asked this on stackoverflow just incase any of you can answer it http://stackoverflow.com/questions/18613739/something-went-wrong-error-is-returned-when-trying-to-send-a-friend-request-fr Sep 04 12:29:06 how does the project know what xml files it should use? Sep 04 12:31:11 bel3atar: you might need to explain your question... Sep 04 12:31:22 Who was asked? Me? Sep 04 12:31:38 should I really be concerned about 2.1 android devices? Sep 04 12:31:43 are they still around? Sep 04 12:31:53 IrishGringo: no Sep 04 12:31:59 http://developer.android.com/about/dashboards/index.html Sep 04 12:32:00 Leeds: I know that the convention sayd there should be an AndroitManifest.xml. but how are the other xml resource files linked to he project? Sep 04 12:32:04 IrishGringo: set minimum to 2.3 on anticipation that 2.2 will soon be irrelevant too Sep 04 12:32:32 bel3atar: well... they're compiled into your apk, and used when you reference them... it's a very vague question Sep 04 12:32:50 Leeds: how are they linked to the source code? Sep 04 12:33:00 can someone share his/her experience with an app getting pirated, maybe removal requests from forums etc.? Sep 04 12:33:00 hey, Googlers, someone kick the dashboard generator! Sep 04 12:33:05 Leeds: does the compiler just take every xml it finds? Sep 04 12:33:06 via the ids in the R file. Sep 04 12:33:25 UnbertKant: where's that? Sep 04 12:33:35 The R file generates IDs for all xml elements automagically for you so you can inflate a layout using the ID from the R-file. Sep 04 12:33:36 bel3atar: "R.class" is generated, which contains numeric ids that resource loader can use to find the correct resource Sep 04 12:33:40 bel3atar: have you run through the training on the d.android.com site? Sep 04 12:34:07 Where it is doesn't really matter, you use an IDE with autocomplete and simply inflate something like R.layout.happyactivity or something like that. Sep 04 12:34:14 UnbertKant: and those files must be in xml/ dir? Sep 04 12:34:21 bel3atar: have you run through the training on the d.android.com site? Sep 04 12:34:33 bel3atar: in the directory apropriate for the resource type and its attributes Sep 04 12:34:33 I was asking because I am new to ANDROID, and I want to do some stuff that needs action bar... I do iOS development, and use navigation controllers a lot Sep 04 12:34:37 Leeds: yes Sep 04 12:34:58 bel3atar: okay, then exactly *what* XML files are you talking about, since you know the basics of how Android handles resources Sep 04 12:35:01 Leeds: IRC is more fun =D Sep 04 12:35:14 Leeds: resource files Sep 04 12:35:19 res/xml Sep 04 12:35:36 no Sep 04 12:35:46 All of my devices here are 2.3 Sep 04 12:35:48 then as I already said, they're compiled into your apk, and you can access them as resources from your code Sep 04 12:35:50 bel3atar: those aren't handled automatically, only compressed into binary xml Sep 04 12:35:55 they are sorted by purpose, e.g. layout or values Sep 04 12:36:20 ALSO... I wanted to find a device that does not need to have a contract to return a LAT and LONG from a satelite Sep 04 12:36:27 are there anyout there? Sep 04 12:36:29 bel3atar: although they are supported by resource provisioning system Sep 04 12:36:34 stupid Lint, why does it work via command line but makes up errors when run from eclipse? Sep 04 12:36:44 actually... perhaps I should just buy a new device... any sugestions for development? Sep 04 12:36:44 IrishGringo: with GPS active, you don't need contract Sep 04 12:36:49 IrishGringo: no phone needs a contract to do a GPS lookup Sep 04 12:37:22 all of my 2.3 phone do not seem to return a GPS lat and long... none have contracts Sep 04 12:37:33 nor something like an N7 - unlike the ipad, where WTF? the one without a cell modem doesn't have GPS either, right? Sep 04 12:37:58 IrishGringo: install a gps test app Sep 04 12:38:11 IrishGringo: just remember that you need to wait to get fix, and it takes longer without data connection Sep 04 12:38:13 IrishGringo: of course, if your phone has no GPS... Sep 04 12:38:25 Leeds: iirc, iPhones used integrated modem/gps Sep 04 12:38:34 also, are you confusing "data connection" with "cell contract"? Sep 04 12:38:51 I do not have a cell contract with any device Sep 04 12:39:00 !ping Sep 04 12:39:00 pong! Sep 04 12:39:02 good Sep 04 12:39:04 but I do have them connected to wifi Sep 04 12:39:11 !ding Sep 04 12:39:18 dong! Sep 04 12:39:30 IrishGringo: GPS should work. Grab something that displays detailed GPS data and test Sep 04 12:39:53 I used "originally" named "GPS Test" Sep 04 12:40:11 I like the app called "GPS Status" Sep 04 12:42:33 I just tried GPS test... and you are correct... I have GPS Sep 04 12:42:49 did you get signal? Sep 04 12:43:01 remember that GPS needs line-of-sight to each sat Sep 04 12:43:19 yes... I got signal.... and it was accurate Sep 04 12:43:24 and this is a 2.3 device Sep 04 12:43:39 good :) Sep 04 12:43:53 So I stand corrected... should I continue using this device for development... or should I upgrade to something newer? Sep 04 12:44:02 I do not have a 4.x device Sep 04 12:44:47 My deal is that I want to do stuff with some complicated activity Navigation... screen to screen... like complicated questionairs Sep 04 12:45:46 each screen is a question, the path is like a tree... and I can go 20 questions deep... but I also want a button that will return to a higher level to start over Sep 04 12:46:06 so I assume I need actionbar... and I dont think thats available on 2.3 devices Sep 04 12:46:21 IrishGringo: there's ABS Sep 04 12:47:55 so I must restart the emulator each time I recompile? No faster way ? Sep 04 12:49:48 bel3atar: ... you don't have to Sep 04 12:49:54 you can keep the emulator running Sep 04 12:50:25 p_l: and the app would update when I compile? Sep 04 12:50:38 when you install the updated apk into emulator Sep 04 12:50:41 just like on device Sep 04 12:52:01 p_l: there's also the 'official' appcompat stuff, which I think is recommended over ABS for new projects Sep 04 12:53:32 Leeds: I'm used to support library being worse in action bar than ABS ;P Sep 04 12:54:49 p_l: how about ActionBar compatibility? Sep 04 12:55:32 no idea Sep 04 12:55:49 I've been mostly on the low level end, not UI for a looong time Sep 04 12:57:00 Is there any reason for using abc instead of abs? Abs has also a much cleaner API than abc. Sep 04 12:58:36 I think the main reason is that abc comes from and is maintained by Google Sep 04 12:59:16 also, don't they both essentially have the AB API? Sep 04 13:06:20 what the Sep 04 13:06:52 TheTrash thnx alot i have setup a server and everything is working nicely Sep 04 13:07:17 https://dl.dropboxusercontent.com/u/6559846/Screen%20Shot%202013-09-04%20at%203.05.57%20PM.png Sep 04 13:07:22 now i just have to figure out how to add jar files manually to it Sep 04 13:07:24 more current installs than overall installs Sep 04 13:07:26 ##bugreport Sep 04 13:08:13 spobat: stats are not necessarily to-the-minute live, AFAIK... Sep 04 13:08:40 imo that's a bug, i dunno.. Sep 04 13:11:03 <^cheeky> if i want to get battery readings .. or statuse or battery consumtion statistics do i need my app to have root access ? Sep 04 13:11:20 no. Sep 04 13:11:29 <^cheeky> Awsome !!!! Sep 04 13:11:52 Hello Everybody. Anyone had luck using crouton with gradle/android-studio? Sep 04 13:11:53 <^cheeky> blah.. not to think about .. there apps like batter reborn :/ Sep 04 13:11:58 <^cheeky> *now Sep 04 13:12:07 <^cheeky> me.needZz() Sep 04 13:12:45 it looks like that i cannot include it "runtime" . The app compile just fine. But i get NoClassDefFound error Sep 04 13:18:35 Hey guys anyone comforatable with the Facebook SDK? I'm having this problem here -> http://stackoverflow.com/questions/18613739/something-went-wrong-error-is-returned-when-trying-to-send-a-friend-request-fr Sep 04 13:24:51 hello Sep 04 13:35:50 hey under Sep 04 13:37:20 is there really no solution to my problem D: Sep 04 13:38:05 CocoStorm: probably not, but I don't know anything about the facebook api Sep 04 13:38:07 or skd Sep 04 13:38:09 sdk Sep 04 13:38:22 yeah Sep 04 13:38:29 that's okay Sep 04 13:38:59 CocoStorm: have you google the error message? Sep 04 13:42:47 it's just so frustrating because it took me 3 days and I'm literally almost done lol Sep 04 13:42:50 its just the error Sep 04 13:42:57 Ankhwatcher, yeah tried googling loads Sep 04 13:43:04 s/google/googled Sep 04 13:51:38 Should I use Fragments if most of my apps' logic is done when an ActionBar button is pressed? Sep 04 14:06:42 Is it possible to set a different Animator _per view_ in a ViewGroup/LayoutTransition? For example one view should crossfade away while another should slide? Sep 04 14:07:02 or does that have to be in two different ViewGroups Sep 04 14:08:40 also, can one control different LayoutTransitions so they start and complete at the same time? Sep 04 14:11:58 and finally, is there a gracefull fallback for LayoutTransition usage for pre api-11? Sep 04 14:12:44 hi, is it possible to bind two services using a messenger? I know that I can bound to an activity. Sep 04 14:16:44 zyngawow: Fragments or just Activities you mean? Sep 04 14:17:23 If that's your question, definitely go for fragments. It's not much more work and I'd say it's definitely the way to go these days. Sep 04 14:17:27 aried3r, well yes. I want to have an Activity with two Fragments, but they just have a ListView Sep 04 14:17:43 And ActionBar buttons Sep 04 14:17:45 That's fine. That's why there's ListFragment for example :) Sep 04 14:18:45 Is it bad for me to have android GUI elements in a game? Like toasts and alert boxes? Sep 04 14:27:15 aried3r, I should handle the ActionBar clicks on the Activity and not on each Fragment, right? Sep 04 14:31:13 depends on what you're doing Sep 04 14:34:06 hey, do any of you happen to know if there's a way to make the 'device capture' screen smaller? it's not quite fitting on my monitor Sep 04 14:34:22 (i have to do a screencast later today and i'd like to show semi-live shots of the device while i'm interacting with it) Sep 04 14:34:41 (the device capture screen being the one accessible from eclipse's DDMS view) Sep 04 14:36:39 diphtherial, better to get mhl and display it directly Sep 04 14:38:00 what is the path of android circle progressbar? I want to use it as placeholder while image downloading Sep 04 14:45:05 pfn: i'm unfortunately giving the presentation via skype, so it'd have to be something that can be captured by my laptop Sep 04 14:46:00 diphtherial, bummer, run in the emulator Sep 04 14:46:20 not a bad idea, but the emulator is unfortunately painfully slow... Sep 04 14:46:39 use the intel one Sep 04 14:46:44 i'd be fine with capturing stills if i could just have it downsample the image to a smaller size Sep 04 14:46:50 diphtherial, given your time constraints, perhaps today isn't the day to work on it... but with some effort you can make it run pretty fast Sep 04 14:47:20 I'm having trouble connecting my android device to use it in Eclipse Sep 04 14:47:26 does anybody know what I may be doing wrong? Sep 04 14:47:46 ah, this intel virtualization looks promising :) i may be able to get this done in...hmm, half an hour :| Sep 04 14:47:55 (sharing the screen isn't necessary, but i thought it'd be nice for my students) Sep 04 14:48:41 diphtherial: check this out: http://www.genymotion.com/ Sep 04 14:48:58 ah, neat :D thanks! Sep 04 14:49:15 pfn, through the ActionBar buttons I'm adding stuff to the List Sep 04 14:51:55 Hi all, has google an api for make voice to text and text to voice? Sep 04 14:53:55 https://www.google.co.uk/search?q=android+voice+to+text+api&client=ubuntu&channel=cs&oq=android+voice+to+text+api&aqs=chrome.0.69i57j69i62l2.4795j0&sourceid=chrome&ie=UTF-8 Sep 04 14:54:05 come on, FrancescoV Sep 04 14:54:29 :P Sep 04 14:54:38 :P Sep 04 14:54:47 Father FrancescoV Sep 04 14:57:50 hi Sep 04 14:58:17 what this error mean , i start using native programming on android using opencv Sep 04 14:58:25 http://dpaste.com/1365881/ Sep 04 14:59:18 Sorry, I'm too lazy sometimes Sep 04 14:59:23 Where should I handle ActionBar clicks, on the Activity or on the Fragment? Sep 04 15:01:40 FrancescoV: No worries Sep 04 15:01:56 zyngawow, stop asking, and handle it where it makes sense Sep 04 15:02:16 pfn, and where does it makes sense? Makes sense in both places Sep 04 15:02:24 At least for me Sep 04 15:02:24 <^cheeky> zyngawow: in fragment .. but make sure you tell the activity fragment is going to be handling them Sep 04 15:04:08 zyngawow, then flip a coin Sep 04 15:04:13 move it later when you learn better Sep 04 15:04:31 pfn, some people like to make it good from the start Sep 04 15:05:48 hey guys does anyone know the Facebook SDK? I'm having this issue here and I can't find a solution at all it's driving me nuts -> http://stackoverflow.com/questions/14883774/android-sdk-friend-request-returns-sorry-something-went-wrong?rq=1 Sep 04 15:06:06 zyngawow, you will never make it good from the start Sep 04 15:06:26 pfn, not perfect, but as good as possible Sep 04 15:06:49 your code will not be good Sep 04 15:06:52 learn from your mistakes Sep 04 15:07:02 so just do it instead of asking for an hour and getting nowhere Sep 04 15:07:16 I'm not going to suggest where you put it because you've given no indication of what you're doing Sep 04 15:07:20 the answer is: it depends Sep 04 15:09:38 there is realy no idea? Sep 04 15:10:15 unwanted disconnecting Sep 04 15:10:21 did i miss something Sep 04 15:10:25 ? Sep 04 15:10:28 yes, someone answered your question Sep 04 15:11:38 anyone know of a site that provides android distribution by country? Sep 04 15:11:50 anyone? Sep 04 15:12:05 CocoStorm, why don't you email facebook support Sep 04 15:12:09 I know there's a global stat counter Sep 04 15:12:45 pfn, I somehow have this belief that the support guys never read their emails but yeh i'll give it a shot :) Sep 04 15:15:55 guys I have a huge problem, I've set my ninSdk version to 11 which is 3.0, but it's showing on the store as compatible with 2.1+. I tried it on 2.3 and of course it instantly crashes... what can I do to get it to not show up for those devices? Sep 04 15:23:28 CocoStorm, so you'd rather spam us on an hourly basis, yeah, thanks Sep 04 15:23:46 pfn, haha, no I'm kidding. I didn't think to contact facebook support thanks for the tip! Sep 04 15:24:49 there's no direct email Sep 04 15:24:52 -_- Sep 04 15:38:30 Weird... lint claims that "android:textAllCaps" only works since API 14 but the text actually turns out all caps in the API 8 emulator... Sep 04 15:40:39 hey guys, would you please help me with that annoying OutOfMemmoryException. It must be happening because of loading a lot of bitmaps. I have different galleries in my app, and by going from one activity to another the heap is always growing. So would you please refer me to any kind of manual what should I do and what shouldn't working with drawables. And may be there's something like Eclipse Mat analizer to foguare out the exact Sep 04 15:43:14 UnbertKant: On TextView? No it doesn't Sep 04 15:43:37 defuera: Hey man. Have you tried subsampling the bitmaps? Sep 04 15:44:24 there is really no idea? Sep 04 15:51:17 genymotion is interesting; i'm running the virtual machine in virtualbox directly, as it didn't look like it was ever going to start through genymotion's interface Sep 04 15:51:47 i eventually did get it to boot, but i'm having some trouble accessing it from my host (also asking about this in #vbox) Sep 04 15:54:22 How's the kit kat chit chat Sep 04 15:56:09 enabling USB debugging should be sufficient to allow me to connect over the network to debug my "device", right? Sep 04 15:56:17 (i'm running the device in virtualbox, fwiw) Sep 04 15:59:09 <^cheeky> hi, if .. so far .. i was able to develop an app that uses surfaceView for using the camera instead of using an implicit intent to start the native camera app; would it be a good idea .. if i want to turn on the flash light full an also use the rear camera .. but as an implicit intent invoking the camera app ? Sep 04 16:00:49 SimonVT what doesn't? Doesn't lint complain, usually, or does textAllCaps not work on old devices? Sep 04 16:01:49 I'm fairly new to android development, I have a rudimentary understanding of java and how it works. Is there a way to make multiple variables display in a textview? For example, I'm trying to make a flashcard app that multiplies two random numbers. Can I use one TextView for both? Sep 04 16:02:11 android:text="@item/firstMult x @item/secMult" does not work Sep 04 16:02:36 right, it's expecting only one resource to be referenced; you can instead set the text property programmatically in your code Sep 04 16:02:49 Redmega, that doesn't work that way. Sep 04 16:02:55 just set it to some default value in the layout, e.g. android:text="" Sep 04 16:03:02 XML: @string/multiplied Sep 04 16:03:26 strings.xml: %s x %s Sep 04 16:03:43 code: getString(R.string.multiplied, firstNumber, secondNumber) Sep 04 16:04:20 SimonVT seems you are right. The text stays uppercase even if I remove the style. Guess there's some capitalization code hidden somewhere and it's not in the strings.xml nor a String.toUpperCase *sigh*. Hell is other people's code. Sep 04 16:04:28 Mavrik: Thank you very much :) Sep 04 16:06:09 hi all Sep 04 16:06:21 cool, figured out my vm issue; apparently, the vbox adapter needs to be on the same subnet...who'd have guessed :P Sep 04 16:07:00 Mavrik: that's a much better solution than what i suggested :) Sep 04 16:07:13 i didn't know getString() allowed you to do string substitutions, too; that's neat Sep 04 16:07:40 I've a doubt about styling tabs with actionbar.. I want to change their backgrounds in the code, dynamically. I've already tried applying a customview to the tabs, but the background is a rect around the text, it doesn't expand Sep 04 16:08:48 awright, off to the races Sep 04 16:09:27 JinAnkabut, not really, what is it? like to put references to null? Sep 04 16:11:15 defuera: Nope. Check out this link. It goes over subsampling. Basically, it's a way of loading a bitmap into memory without loading all the pixels that wouldn't be seen. http://developer.android.com/training/displaying-bitmaps/load-bitmap.html#load-bitmap Sep 04 16:11:28 defuera: Let me know if you need more help :) Sep 04 16:12:42 ok, Ill check on it, thx! -) Sep 04 16:15:04 defuera: No problem mate Sep 04 16:15:29 mhm..maybe I'm not in the right channel? Sep 04 16:15:59 I am going to be using random number generation to make the numbers for the multiplication questions. Should I have that random number generation be in another class or in main? Sep 04 16:16:06 ( to be clear I'm not expecting the solution, just an answer :D ) Sep 04 16:16:29 I'm trying to figure out which would be easier to implement Sep 04 16:17:23 Delian: what have you tired so far? Sep 04 16:17:24 Redmega: mhm maybe another class would be more clear and maintenable Sep 04 16:17:36 f2prateek_: applying a custom view to eachtab Sep 04 16:17:51 and all you want to do is change the tab color? Sep 04 16:17:55 Delian: Yeah that's what I was thinking myself. Sep 04 16:17:59 yep, all the tab Sep 04 16:18:05 but just one tab Sep 04 16:18:50 ( I'm using the custom view also to display a second textview, which I use to show the number of elements in the tab ) Sep 04 16:19:32 See this to see what styles you need to change Sep 04 16:19:32 but giving a background to the linearlayout of the view I get only a coloured rect around the text of the tab Sep 04 16:19:32 http://jgilfelt.github.io/android-actionbarstylegenerator/ Sep 04 16:19:59 most likely android:backgroundStacked is the attribute Sep 04 16:20:13 f2prateek_: I know that site, but how can I apply it to just one tab and not every tab? Sep 04 16:20:20 since is for the actionbar Sep 04 16:21:37 The drawable is background for the full stacked are (so matches the device width), it's not per tab Sep 04 16:23:51 f2prateek_: mhm.. I see.. :( Sep 04 16:25:09 f2prateek_: do you have any other idea to change the background of a single tab? because I don't right now ;( Sep 04 16:26:18 not really Sep 04 16:26:53 with tabhost I've seen something similar Sep 04 16:26:57 tabhost.getTabWidget().getChildAt(i).setBackgroundColor(Color.parseColor("#666666")); Sep 04 16:27:37 but they work differently, right? Sep 04 16:28:54 try getActionBar().getTabAt(i).setCustomView() with view set to match_parent not wrap_content Sep 04 16:30:07 f2prateek_: I've already tried..let me check again :) Sep 04 16:30:38 You have work with the methods available here https://developer.android.com/reference/android/support/v7/app/ActionBar.Tab.html Sep 04 16:31:49 even setting a fixed size for the linearlayout of the tab doesn't effect the size Sep 04 16:32:03 I see always the same dimension Sep 04 16:32:28 So, I was thinking that maybe there's another parent layout Sep 04 16:32:42 JakeWharton or SimonVT would probably know if this is possible Sep 04 16:33:05 f2prateek_: thanks a lot :) Sep 04 16:33:37 Just signed up for my dev account, do I get a confirmation somehow ? I only got my google wallet thing Sep 04 16:35:04 Hello, Can anybody direct me to a working example of how to use presence with android contacts please? Sep 04 16:37:02 JakeWharton: SimonVT : Sorry to bother :) I'm trying to get a tab with a coloured background, only one, with the actionbar tabs. Setting the backgrond with a customView is applied like as I've set the wrap_content option. Is it possibile in some way? Sep 04 16:41:26 Delian: fascinating choice for whom to ask such a question Sep 04 16:41:41 nseidm1: suggested by f2prateek_ :P Sep 04 16:41:49 nseidm1: I don't know them actually :D Sep 04 16:42:41 nseidm1: don't tell me they are bots and it was a prank of f2prateek_ :D Sep 04 16:42:58 Delian: yes it's possible, if you're going to use the action bar tabs you're heading down the road of a customized theme. I'd recommend a simple view pager indicator of some kind. Sep 04 16:44:41 nseidm1: now I'm using the tabsadapter taken from this example http://developer.android.com/reference/android/support/v4/view/ViewPager.html Sep 04 16:45:18 action bar tabs it is then Sep 04 16:45:41 http://jgilfelt.github.io/android-actionbarstylegenerator/#name=example&compat=holo&theme=light&actionbarstyle=solid&texture=0&hairline=0&backColor=E4E4E4%2C100&secondaryColor=D6D6D6%2C100&tabColor=33B5E5%2C100&tertiaryColor=F2F2F2%2C100&accentColor=33B5E5%2C100&cabBackColor=FFFFFF%2C100&cabHighlightColor=33B5E5%2C100 Sep 04 16:46:10 but the stacked color isn't applied to the whole bar? Sep 04 16:46:11 ugly link Sep 04 16:46:11 http://jgilfelt.github.io/android-actionbarstylegenerator/ Sep 04 16:46:17 ehehe np ;) Sep 04 16:46:45 I can't figure out how I can set a background only for one tab Sep 04 16:46:55 not every one Sep 04 16:48:48 So is resources simple the new name for the folder conventionally named res? Sep 04 16:48:53 simply* Sep 04 16:48:59 nseidm1: I don't know if I made the point clear Sep 04 16:52:58 nseidm1: thanks anyway :) Sep 04 16:53:12 I've to go.. bye all! ^_^ Sep 04 16:55:16 Are you able to compile/sign Android apps on an Android device? Sep 04 17:01:12 I can't figure out how to add the random to my class. I have import java.util.Random; and in a function I have int firstNumber = Random.nextInt(9); but it's telling me I cannot make a static reference to a non-static method. I'm not sure what that means exactly. Can anyone help explain what I'm doing wrong, please? Sep 04 17:06:10 my keystore has been tampered with, or password was incorrect. How do I fix that? Sep 04 17:06:24 I treid creating a new keystore, but then I can't update my app anymore Sep 04 17:06:46 hawkward http://venturebeat.com/2013/09/04/live-samsungs-galaxy-gear-and-galaxy-note-3-event/ Sep 04 17:17:47 http://mysticpaste.com/view/AHgWkqwYdV?2 This gives me an error. nextInt is not defined in class.java Sep 04 17:17:59 import java.util.Random; is present Sep 04 17:19:00 I think you need a java tutorial Sep 04 17:19:21 ;_; Sep 04 17:19:27 What exactly am I doing wrong? Sep 04 17:19:34 Everything Sep 04 17:19:41 Start over: http://docs.oracle.com/javase/tutorial/ Sep 04 17:19:44 I'm copying straight from the oracle docs example Sep 04 17:19:55 Redmega: you need an object of the Random class;         int val = new Random().intNext(9); Sep 04 17:20:05 Oh. Sep 04 17:20:09 OH. Sep 04 17:20:12 actually i think it's new Random().nextInt() Sep 04 17:21:19 It also helps if I use nextInt instead of intNext Sep 04 17:21:23 >_< Sep 04 17:22:00 Alright, now it's working. Yeah I'm still new to java. My professor didn't go over the syntax very much. Sep 04 17:23:03 How can I get what class my Fragment is? Sep 04 17:23:58 hm, does anyone know a reason Sep 04 17:24:07 why Log.d won't print things on the console Sep 04 17:24:15 even though when I go in debug mode Sep 04 17:24:17 It goes to logcat, not console Sep 04 17:24:24 it's clear that the code goes through it Sep 04 17:24:26 Redmega, yes Sep 04 17:24:29 Logcat console :D Sep 04 17:24:32 >_< Sep 04 17:24:34 it's weird Sep 04 17:24:39 my imports are ok Sep 04 17:24:41 When you say console I assume "Console" Sep 04 17:24:42 lol Sep 04 17:25:00 Then I don't know :( sorry. Sep 04 17:26:32 I suspect Android Studio to be the culprit here Sep 04 17:26:34 X_X Sep 04 17:26:40 hey at least my app builds Sep 04 17:26:41 rofl Sep 04 17:27:10 many times Sep 04 17:27:21 I would see that it tries to load class names that I previously deleted Sep 04 17:27:30 I wonder how the build process works inside AS Sep 04 17:27:34 it's so undeterministic Sep 04 17:31:14 Hi! I have a question related to text encoding: I noticed that eclipse on windows uses a Cp1252 encoding. I wrote a character in the source code which is shown in a AlertDialog. It seems to be ok. If the same sources are loaded in eclipse on linux, that character is screwed because UTF-8 is used there. If I correct the character on Linux, compile and deploy, still Android shows it correctly. So, why is Android always Sep 04 17:31:14 showing the character correctly independently on the encoding of the source file containing the symbol? Sep 04 17:32:31 Why doesn't the ListFragment class have a notifyDataSetChanged() method? Sep 04 17:36:52 why would you use listfragment? Sep 04 17:36:59 just make your own Sep 04 17:37:11 because not all adapters have notifyDataSetChanged Sep 04 17:41:58 Just signed up for my dev account, do I get a confirmation somehow ? I only got my google wallet thing. Sep 04 17:45:55 when is using setAdapter(someOtherAdapter) on a listview a bad idea? is it always bad? should a responsive adapter always be used when using multiple layouts? (i.e one that can distinguish whih layout to use by implementing getViewType() etc) Sep 04 17:47:08 brx_, setAdapter will redraw everything and also break scrolling on your listview Sep 04 17:47:19 (by break I mean it'll reset the scroll position to top) Sep 04 17:47:26 not the best UX, it depends what your usecase is Sep 04 17:51:58 Hey guys having some problems with calculating wifi signal, http://pastebin.com/PwQVFYcP i want to display the signal in dBm form but am having problems, thought what i had written would do dBm Sep 04 17:52:28 Hi Sep 04 17:52:52 Anyone here have experience implementing custom account types and could shed some light on why I'm getting a "bind failure" error? Sep 04 17:53:43 http://pastebin.com/QUzBqPF1 Sep 04 17:55:57 http://pastebin.com/EfHsByfA Sep 04 17:56:19 If I continuosly have to call getSupportFragmentManager().findFragmentById() etc to get data, I'm probably doing it wrong, right? Sep 04 17:56:56 What do you need to get at specific fragments for? Sep 04 17:57:30 The Fragment is a ListFragment, and I get the ListView from it Sep 04 17:58:24 I don't know what you need the ListView for, but I assume it's to add a callback? Sep 04 17:59:15 My solution is to have the fragment send intents which the activity listens for Sep 04 17:59:34 Djehngo, for example to scroll the ListView to a certain item Sep 04 17:59:49 And this: ((ProductsListFragment) context.getSupportFragmentManager().findFragmentById(R.id.list)).getListView().smoothScrollToPosition(context.items.indexOf(Category.this)); Sep 04 17:59:58 Which I guess is wrong Sep 04 18:00:49 For example, how could I notify the ListFragment that the data set has changed? Sep 04 18:01:04 Well, if it works it works I guess Sep 04 18:01:20 It doesn't seem a good way to do it Sep 04 18:01:32 you could just save a copy of the listfragment in a field when you create it Sep 04 18:01:35 I am probably not much help because most of my fragments are full-screen so there isn't much interraction between them and the host activity after they are created Sep 04 18:04:20 What would be the right way to try and test a Listener, particularly a Response Listener from Volley? Sep 04 18:05:18 * kevin|WORK waves Sep 04 18:05:19 question: if I don't set setInterval on a LocationRequest for google play services Sep 04 18:05:31 will I get the location ONLY once? Sep 04 18:16:07 To rephrase, what's a good way to make these anonymous inner classes testable? Sep 04 18:17:48 Odd question but, anyone here also code for windows phone? Sep 04 18:18:56 I wrote part of an app for WP7 in XNA a couple years ago, so I probably can't answer your question, but you're welcome to try. Sep 04 18:19:28 FragmentActivities don't have an ActionBar? Sep 04 18:19:36 s73v3r: don't make them anonymous inner classes ;-) Sep 04 18:19:46 zyngawow: not on Gingerbread or below... Sep 04 18:20:22 RyanM: agreed, but even if I make it just a normal inner class, it generally would be private Sep 04 18:21:09 RyanM simple and dumb question,but you can only assign one phone to one dev account right ? Sep 04 18:26:00 s73v3r, there's no good way of doing it Sep 04 18:26:16 s73v3r, I usually make them package private and put tests in same package as the code they're testing Sep 04 18:26:34 SrRaven: Hmmmmm. I had a DreamSpark account, so I'm not honestly sure what the restrictions are on normal devs. (or even what the restrictions were on Dreamspark accounts, to be honest) Sep 04 18:26:47 same here Sep 04 18:26:58 thanks. I'll give that a try Sep 04 18:27:10 but the company I work at got a windows phone for the software tahts in beta soon,Im just curious if I will be able to use it for testing my own apps too Sep 04 18:27:21 but if we have to assign it to one company,that may not work Sep 04 18:29:52 What are some good things to keep in mind to try and make Android apps more testable? Sep 04 18:35:43 how would you pack a binary into an apk? Sep 04 18:36:26 put it in the assets directory, or res/raw, depending on how you want to use it Sep 04 18:36:55 am not sure of the res raw solution, because then i dont know how would i execute it Sep 04 18:37:26 Hi All Sep 04 18:37:45 it's difficult, because am newcomer and i see getDataDir() has execute permissions but no create permissions Sep 04 18:37:59 oh, I see what you mean. Yeah, I don't think a phone can be associated with multiple dev accounts, but don't quote me on that. Sep 04 18:38:06 I have a process thats taking too long on the main thread, however, it needs to update UI, whats the best way to handle this? Sep 04 18:38:11 <|0xD34D|> shur: I'm not sure you can execute it in assets either. What I've done before is put it in assets then copy it to my data dir using input/output streams Sep 04 18:38:21 Just develop for Android instead, no silly restrictions ;-) Sep 04 18:38:22 how do I remove focus from AutoCompleteTextView? Sep 04 18:38:35 say he clicks an item from the autocomplettextview Sep 04 18:38:39 SpearThruster: does .clearFocus() not work? Sep 04 18:38:41 and I don't want longer for it to have the focus Sep 04 18:38:53 hi everybody! I would like to draw a border around a SurfaceView using a shape drawable, like here: http://stackoverflow.com/questions/3496269/how-to-put-a-border-around-an-android-textview ... when I do this, it works for example on TextViews, but not on a SurfaceView... does anybody have an idea why it doesn't show up? Is it because it doesn't draw the border bigger than the view? How can I make it bigger? Sep 04 18:38:57 RyanM, didn't know about that method :D Sep 04 18:38:58 lol Sep 04 18:39:02 searched for releaseFocus Sep 04 18:39:03 :d Sep 04 18:39:34 |0xD34D|: 'your data dir' refers to a cellphone that can not be the emulator? Sep 04 18:39:45 I phrase it as a question because I've never used an AutoCompleteTextView before and wasn't sure what you'd tried :-) Sep 04 18:40:08 <|0xD34D|> shur: the emulator has data directories for apps too Sep 04 18:40:09 evident, because SurfaceView is a very special view Sep 04 18:40:10 <|0xD34D|> not just devices Sep 04 18:40:11 shur: yeah do what |0xD34D| said. however you'll need to "chmod" it using the shell command, and that isn't technically part of the android standard so it's theoretically possible for there to be a device that doesn't include it. if you are doing something with root then you don't have much choice, but if you're doing something without root you might want to consider integrating the executable into the rest of your code rather than running it as a separate Sep 04 18:40:12 executable/process Sep 04 18:40:28 evident, and it doesn't have rendered background like other views. Sep 04 18:40:44 Mavrik: ohh ok... Sep 04 18:40:44 <|0xD34D|> kevinb: he can use the File.setExecutable() method Sep 04 18:41:06 setExecutable() is somewhere in my code indeed Sep 04 18:41:07 evident, you'll probably have to cover it with another view to get that effect Sep 04 18:41:21 Mavrik: so you think I would need some kind of workaround like a plain colored View that's sitting behind the View and is a bit bigger? Sep 04 18:41:24 am using the compiled binary as a last resource already Sep 04 18:41:39 |0xD34D|: hrm interesting, didn't know File had that Sep 04 18:41:54 and my app works completely Sep 04 18:41:58 evident, yep, but it has to sit in front of the view to cover the corners right? :) Sep 04 18:42:04 this is just a problem of bootstrapping Sep 04 18:42:15 currently y push the binary to /data Sep 04 18:42:28 shur: https://gist.github.com/teslacoil/52b88497c5c9f98dd661 Sep 04 18:42:34 but replace the chmod with the setExecutable Sep 04 18:42:36 now i want to pack it together with the java code Sep 04 18:43:05 mhm Sep 04 18:43:13 <|0xD34D|> shur: you could always resort to packaging your native code into a lib and interface with JNI Sep 04 18:43:22 shur, as they told you, throw your binary into asset folder Sep 04 18:43:24 <|0xD34D|> kind of a PITA for simple shit though Sep 04 18:43:35 no the corners are fine... I just need a plain white 3dp border... so it should work by placing a View behind it which is a bit bigger :) Sep 04 18:43:36 shur, then unpack into data folder, setExecutable() and you're ready Sep 04 18:43:43 IIANM setExecutable failed too, but can not assure it at the moment. I write it down and test it Sep 04 18:43:46 and it works :) Thx Sep 04 18:43:51 evident, ah, thought you want rounded borders :) Sep 04 18:44:28 am at this point because of dropping from the lib+jni solution Sep 04 18:44:40 nah that's fine :) Sep 04 18:44:45 am not C/C++ guru enough to get it working Sep 04 18:45:25 thank you for your support, will check the setExecutable() function in my code Sep 04 18:46:08 as silly information, one idea was also packing the binary code in a class having a String Sep 04 18:46:18 yeah don't do that Sep 04 18:46:27 extracted with a sponged hexdump plus some seds Sep 04 18:46:43 assetmanager is much easier than that Sep 04 18:46:44 there's an example on SO on how to copy a binary from assets to filesystem Sep 04 18:47:06 okay, that is great Sep 04 18:47:09 my gist above is a snippet to do it Sep 04 18:47:33 listen to kevinb. ;) Sep 04 18:47:39 wrote it down too, thanks Sep 04 18:51:20 but I keep believing the chmod will fail doing it to getDataDir() (which is not a problem beco it wont in Env.getExternalStorageDir(), so i do two data movements Sep 04 18:51:45 don't do it to the data dir, do it to the file in the data dir Sep 04 18:52:05 yay, i was abusing notation Sep 04 18:52:25 you are my superheros men Sep 04 18:53:30 i've used the snippet i sent you (granted with chmod rather than setExecutable, but i believe that is just from my ignorance of setExecutable) on android 1.6 through 4.3 without issue Sep 04 18:54:03 Anyone on Android development ever deal with OpenGL and using glBufferSubData? Sep 04 18:54:05 that is even more awesome Sep 04 18:56:27 but that works with getDataDir() as /data or as some other path? I mean, i used the nonactivity method for writing to getDataDir() but I didnt find the created file in /data/ Sep 04 18:56:35 that was weird Sep 04 18:57:18 hello Sep 04 18:57:46 but have to say did not pass the busybox to try seriously to find it Sep 04 18:57:59 For Fragments, does an Activity have its own backstack that is manages, where Fragments are added to that backstack per whatever fragment transaction done? Sep 04 18:58:16 getFilesDir, called on a context (activity or otherwise) will return something like /data/data/com.your.package/files/ Sep 04 18:58:46 i'm not sure about getDataDir Sep 04 18:59:29 even started to think about those files getting written in compressed metadata, main memory or some other pita location Sep 04 19:01:07 Anyone who can help feel free to PM me. Thanks! Sep 04 19:01:13 okay if can already execute from /data, guess one could pass the binary to getFilesDir() and hopefully /data/data/com.my.package/files/ would be also executable or execution grantable Sep 04 19:04:45 for simple Jni access use jna Sep 04 19:04:50 can't go wrong Sep 04 19:07:20 shur, you can't just write to /data from your app -_- Sep 04 19:07:48 Do Fragments even have their own backstack? Sep 04 19:07:57 /data/data//files is the default datadir path on most devices and you can execute binaries there. Sep 04 19:10:12 yeah yeah but, I mean, i was executing from /data/BINARY for developing reasons, now am setting the app to execute from getDataDir() (or whatever lets me to!) Sep 04 19:12:16 but may kevinb's gist work trying to write the output file to the data dir Sep 04 19:14:23 nevermind I got it Sep 04 19:17:29 Is there any problem with letting random people test alpha version of my game when the game's going to go commercial? Sep 04 19:17:57 I have a viewpager and declare a interstitial ad in MainActivity. Is it bad practice to do ((MainActivity) getActivity()).loadInterstiailAd(); from the Fragments? Sep 04 19:18:17 sounds fine to me Sep 04 19:18:51 Kake_Fisk: make them pay to be alpha, never give "these people" stuff for free Sep 04 19:19:02 what is the difference between that and setting the method in the Activity as static? Sep 04 19:19:13 Nobody would pay for that Sep 04 19:19:25 I'm not making Star Craft Mobile :p Sep 04 19:19:26 Minecraft was a paid alpha Sep 04 19:26:34 paying for alpha is a joke Sep 04 19:26:35 isnt it possible to temporarily pause admob ads sent to my apps? Sep 04 19:26:37 release it for free as alpha Sep 04 19:26:40 then charge for beta. Sep 04 19:27:00 You need people to see your project else you will never know how much it appeals Sep 04 19:27:36 Guys, is anyone doing android development with Intellij IDEA / Android Studio and can guide me to a *working* guide to get unit testing set up? It's ridiculous, I can't get the simplest unit tests to work ("Test running failed: Unable to find instrumentation info for: ComponentInfo") Sep 04 19:28:08 Quacked setting something to static allows only one reference of that component to exist regardless of how many Activities/Fragments are instantiated Sep 04 19:28:25 I use Eclipse Indigo hoek Sep 04 19:29:10 incognitto, do you have a dedicated test project for unit testing, or is the testing code integrated into your main app project? Sep 04 19:29:16 incognitto: thanks Sep 04 19:29:21 sure Sep 04 19:30:20 @hoek I use multiple projects so make a duplicate project and use that for testing, always. Sep 04 19:30:40 I'm gonna do some experiment with interstitial ads (fullscreen ads) in my app, but if its poorly received I wanto to pause it without publishing a new version of the app. Is it possible? Sep 04 19:30:43 Does anyone have a good reference to jump into learning unit testing for Android projects? I would just use http://developer.android.com/tools/testing/testing_android.html, but I'm building with gradle so that won't work, and I would use http://tools.android.com/tech-docs/new-build-system/user-guide#TOC-Testing but it doesn't seem to teach. Sep 04 19:30:48 Why would you want to use your main code for testing? Lots of garbage builds up. Sep 04 19:34:17 Hey guys having some problems with calculating wifi signal, http://pastebin.com/PwQVFYcP i want to display the signal in dBm form but am having problems, thought what i had written would do dBm Sep 04 19:34:20 incognitto, I don't mean "testing new features" and the like, I mean test-driven development with JUnit and the like. The thing is, in Eclipse, it seems that creating a "dedicated test project" is recommended (see http://developer.android.com/tools/testing/testing_eclipse.html ) while in IDEA, they moved to Gradle, which seems like a completely different approach which needs to be learned in order to run a simple unit test.. no Sep 04 19:34:20 t to mention that documentation is a bit rare.. Sep 04 19:35:27 Im not entirely sure hoek I havent tested physically yet. Sep 04 19:35:58 But if Gradle is required then you'd have to learn it. Sep 04 19:36:03 No cutting corners. Sep 04 19:36:34 you're right, of course, seems to be the next big thing in build management.. *sigh* i'll try to cut myself through.. Sep 04 19:36:44 Quacked: of course, just have it make a request to your server and enable/disable based on the response Sep 04 19:38:08 Hmm.. but how do I do that with admob? Sep 04 19:38:40 I cant find an option to pause ads there Sep 04 19:38:49 anyone use butterknife? http://jakewharton.github.io/butterknife/ Sep 04 19:39:13 the only option I can see on my ads there is "Archive" and that appears to delete the ad completely Sep 04 19:39:23 jaynewstrom: I do Sep 04 19:39:50 haha! I figured you did @JakeWharton! I'm thinking about adding it. It looks really cool! Good job! Sep 04 19:44:29 Can anybody help with this stacktrace? http://pastebin.com/U87DfDQ2 Sep 04 19:44:51 Quacked: no idea. Can't you just not include the ad views or something? Sep 04 19:45:01 jaynewstrom: yeah it started as a joke, but it's kind of useful Sep 04 19:46:06 @zyngawow post ShoppingList's layout xml Sep 04 19:46:43 dbro, http://pastebin.com/TeQriXv2 Sep 04 19:46:44 dbro: read the stack trace Sep 04 19:46:52 it's not the XML Sep 04 19:47:01 @JakeWharton: writing less code is always a good thing. Especially boilerplate code Sep 04 19:47:35 RyanM: I know how to not show it in the app itself, but I see no possibility to notify the app that I don't want ads anymore Sep 04 19:47:39 This is the ListFragment: http://pastebin.com/1gNrRJie Sep 04 19:47:40 except for deleting the ad completely Sep 04 19:47:46 at apps.admob.com Sep 04 19:47:49 zyngawow: given that you haven't posted the code, I'm gonna have to divine your issue with psychic powers. My crystal ball says you passed null to the objects parameter of the ArrayAdapter constructor. Sep 04 19:48:06 The code is up there Sep 04 19:48:10 Posting the Activity now Sep 04 19:48:31 http://pastebin.com/bJ9GfwCM Sep 04 19:49:09 zyngawow: Crystal ball was right. Set items before calling setContentView Sep 04 19:49:18 and you'll be fine Sep 04 19:49:29 Thanks! Sep 04 19:49:34 Nice crystal ball btw Sep 04 19:49:42 it serves me well ;-) Sep 04 19:50:18 Gson stackoverflow, nice Sep 04 19:51:29 RyanM, what does your crystal ball say about that? On the ShoppingList#writeItemArrayList() Sep 04 19:53:04 how do I do a test for whether a method is available in the device's running android version? Sep 04 19:53:21 Reflection Sep 04 19:53:38 lhunath, that's a wierd question Sep 04 19:53:50 zyngawow: It looks like it's never writing to the file. That said, do you have a really deep object tree or something? Sep 04 19:53:53 testing android is easy... Sep 04 19:53:54 lhunath, API is versioned by method availability, so you check for API version Sep 04 19:54:05 reflection is very slow on dalvik mostly Sep 04 19:54:15 eg. setActivated isn't available on 2.3 but it is on 3.2. I want to invoke it on 3.2 but do something else on 2.3 Sep 04 19:54:18 RyanM, not at all, it happened when writing an ArrayList with one object Sep 04 19:54:28 or, at least, do something else when the method is unavailable. Sep 04 19:54:40 Ah! Sep 04 19:54:42 it has a context Sep 04 19:54:46 lhunath, you can check BUILD.SDK_INT or something Sep 04 19:54:51 Which has an items arraylist.. duh Sep 04 19:55:07 android.os.Build.SDK_INT Sep 04 19:55:17 or you can use reflection, but that sucks imo :p Sep 04 19:55:20 lhunath, on Android documentation you have an API level number next to each method which shows minimum API availability Sep 04 19:55:32 then you check SDK_INT with appropriate version Sep 04 19:55:40 only use reflection if you're supporting api6 Sep 04 19:55:55 and even then, you can avoid it Sep 04 19:55:59 why api6? Sep 04 19:56:00 my android.os.Build has no SDK_INT Sep 04 19:56:01 zyngawow: You might have a circular reference. Sep 04 19:56:01 Does Gson have an annotation to skip fields? Sep 04 19:56:07 lhunath, it should... Sep 04 19:56:17 because api6 breaks with nsme Sep 04 19:56:20 ah, yeah Sep 04 19:56:21 RyanM, yeah, my Category class has a Context that has that ArrayList Sep 04 19:56:28 oh, VERSION. Sep 04 19:56:35 gson skips transient fields Sep 04 19:56:37 oh wait, it's android.os.Build.VERSION.SDK_INT -.- Sep 04 19:57:04 zyngawow: side note: you're writing it to JSON then doing nothing with the result. Sep 04 19:58:06 RyanM, yah, my bad :p Sep 04 19:58:13 SimonVT, transient? Sep 04 19:58:19 transient. Sep 04 19:58:31 Aha, as non-serializable Sep 04 19:59:19 I don't think that will work Sep 04 19:59:28 I need the Context when the class is recreated Sep 04 20:00:48 Hola Sep 04 20:01:03 Holo Sep 04 20:01:42 Yo dudes Sep 04 20:02:23 #holoyolo Sep 04 20:02:45 Got my behavioral interview with Facebook in ~30 minutes Sep 04 20:02:55 To see if you can behave? Sep 04 20:03:10 Lol Sep 04 20:03:19 I'm struggling through some ultra noob stuff here. I am using this to open a second activity " Intent intent = new Intent(context1, MainActivity2.class); " After I get to the second activity "screen", I press the Android back arrow and it appears to go back to the same second activity screen. Pressing a second time finally returns me to my main acitivty screen. Sep 04 20:03:38 Is that something to do with the way the second activity is setup? Sep 04 20:03:49 Just formalities. Probably just to set up my actual tech interview Sep 04 20:04:34 How could I make it to rewrite the Context when Gson recreates the object? Sep 04 20:04:34 I am using onClickListener to catch the button press on the first activity to go to the second activity. Sep 04 20:04:55 I mean, I make the Context transient, how can I rewrite it when it's been made? Sep 04 20:05:15 zyngawow: do you mean android.content.Context? Sep 04 20:05:25 Yes Sep 04 20:05:32 that's not serializable. You can't. Sep 04 20:06:04 it wouldn't make sense - you'd be somehow reviving a context from a previous session when you read it from the file. Sep 04 20:06:37 If your list items needs a Context, you're probably doing it wrong Sep 04 20:07:20 RyanM, can I just do a foreach loop with the ArrayList and manually set the context? Sep 04 20:09:18 sure, but I agree with SimonVT. Sep 04 20:10:25 SimonVT, my list items have buttons that open an AlertDialog, which need a Context Sep 04 20:10:47 Also.. Gson can't serialize an arraylist of interfaces? Sep 04 20:11:31 Uh, your list items are the ones showing the dialog? Sep 04 20:12:02 Usually you'd just keep enough information in each item to do what you need. Then something else handles stuff like showing dialogs Sep 04 20:12:30 Like if each dialog have a different title, you'd keep the title in the list item Sep 04 20:12:36 Not have it handle the entire dialog Sep 04 20:13:46 SimonVT, each item has a getView method to get the View, where the Buttons are (which trigger the Dialog) Sep 04 20:14:01 Gson can serialize the interface, deserializing would be the issue Sep 04 20:14:08 That's horrible Sep 04 20:14:16 The adapter creates the views and binds the data Sep 04 20:14:20 The data is in the list items Sep 04 20:14:33 SimonVT, someone here brought me to it Sep 04 20:14:33 Nothing more Sep 04 20:14:38 Apparently he was wrong Sep 04 20:15:03 Have a Item interface with a getView method, and set the view from each Item (Category or Product) Sep 04 20:15:19 f2prateek, yeah, the issue is deserializing Sep 04 20:15:21 Well, they were wrong Sep 04 20:15:51 How should I do it then? (if I have like categories and products) Sep 04 20:16:19 I think I already covered that Sep 04 20:17:17 SimonVT, the adapter should open the dialog too, right? Sep 04 20:17:33 is there a way to get the offset of a view to the root even if the view has gone offscreen? Sep 04 20:17:36 Or your fragment Sep 04 20:22:22 This is a paste of both my activites...and I'm sure it looks horrible. What is happening is when I run it on my phone, the button sends me to the second activity but pressing the back button on the phone once appears to send me to the second activity and then pressing again sends me back to the first activity. I'm trying to make it so back just sends me to the first activity with one click: http://pastebin.slackadelic.com/p/2AyG5J25.html Sep 04 20:22:36 btn2 is the one Sep 04 20:22:51 anyone have any tips for using the timepicker? I'm using one and it causes the application to crash whenever the time picker moves the cursor from hours to minutes itself. Sep 04 20:23:43 omfg Sep 04 20:23:49 after i pasted that, is see why Sep 04 20:23:52 I'm sorry about that. Sep 04 20:24:14 lines 42 and 43...I'm starting the activity twice... Sep 04 20:24:16 derp Sep 04 20:25:29 Hey guys having some problems with calculating wifi signal, http://pastebin.com/PwQVFYcP i want to display the signal in dBm form but am having problems, thought what i had written would do dBm Sep 04 20:25:35 ultra noob here...I'm just going to step back. Sep 04 20:27:37 Anyone else knows if it possible to pause an ad from apps.admob.com so I don't have to publish a new app version? Sep 04 20:28:50 I want to try full screen ads after 20 user "clicks", but I may want to disable it if turns out to be a bad idea Sep 04 20:29:55 cant believe no one has answered you Quacked Sep 04 20:30:59 Your best bet is to Google Quacked http://stackoverflow.com/questions/4549401/correctly-disable-admob-ads Sep 04 20:31:22 http://stackoverflow.com/questions/10272493/how-to-hide-disable-admob-adview Sep 04 20:32:40 I answered his question earlier with a general non-admob-specific response. Sep 04 20:33:34 my god the gui creator in eclipse is balls.... how the hell to get stop this auto locking shit whne i drag and drop elements Sep 04 20:35:23 Simple, stop using it Sep 04 20:36:35 surly there is an option.... Sep 04 20:37:49 Replace GUI creator in eclipse with just eclipse Sep 04 20:40:12 ~pastebin Sep 04 20:40:19 whoops Sep 04 20:47:30 Anton2k: I think most people just write the XML by hand rather than dealing with the darn thing. Sep 04 20:47:30 woohoo, samsung smartwatch. everybody getting ready to report their apps to 1" x 1" screens? Sep 04 20:49:02 now, if you could make some sort of widget for your phone that could pop up on the watch , instead of the home screen, that would be cool i guess Sep 04 20:51:26 hi Sep 04 20:51:46 g00s, if only Samsung could design it to look good -_- Sep 04 20:52:01 I'm using Android Studio to develop an app, and I would like to know if I should to put every gradle file in gitignore Sep 04 20:52:07 the analysts are all skeptical, heh Sep 04 20:52:34 Denommus put .gradle and build/ into .gitignore Sep 04 20:52:52 well, .gradle is there, but what about the other gradle files? Sep 04 20:52:52 I'm was used to having phones that lasted weeks on one charge, and was sad to move to smart phones that can barely hold a days charge, but it was worth it. I've used wrist watches for the past 10 years that have thermometers/compasses/altimiters/etc. and am used to having their batteries last years. I don't think I could even consider moving to a smart watch. Sep 04 20:52:56 if you have a gradle.properties, thats up for debate Sep 04 20:53:29 yiati man i loved my suunto Sep 04 20:53:34 there is also a gradlew, gradle.bat, and another ones Sep 04 20:53:45 oh that wrapper stuff, i dunno. never used it Sep 04 20:54:02 I'd pay for a nice watch that could show notifications from my phone and allow me to control song playback Sep 04 20:54:05 nothing more Sep 04 20:54:23 something like that: http://www.cookoowatch.com/Product_features.html Sep 04 20:54:39 Mavrik I tried a different approach... It compiles but it crashes at the start, and I can't seem to debug it properly, the debugger never connects to the virtual device... http://pastebin.com/6Q7bhDXF Sep 04 20:54:45 otoh, i dont want to get mugged for a nice watch either Sep 04 20:54:56 That's my MainActivity. Does anyone mind looking at it for anything that pops out at them as wrong? Sep 04 20:55:04 mhm, people tend not to get mugged around here. Sep 04 20:56:04 so I need help.... Android Studio doesn't show my Log.d statements Sep 04 20:56:10 the app is working flawlessly Sep 04 20:56:15 just I don't see any log statements Sep 04 20:56:23 anyone here has this issue? Sep 04 20:56:33 and by Android Studio I mean the logcat view inside of it Sep 04 20:56:55 on a more philosophical note, wonder if these smart watches are further encroachment of google/twitter/etc onto your body. you can put your phone on the desk and walk away, watches tend to stay on you. they touch you always. do people need dopamine hits from twitter notifications? i'll pass. they'll probably do the opposite of what watches were meant: keep track of time, but waste it Sep 04 20:58:34 g00s: Any if you buy Google Glass you don't own it. It is still Google's property that they can request back whenever they want Sep 04 21:08:46 SpearThruster: does it work in adb logcat? Sep 04 21:16:15 Can no one see anything wrong with my code? Sep 04 21:23:31 Could you changes settings of audio for every particular app Sep 04 21:24:03 Sorry wrong channel Sep 04 21:24:34 hey bluesm_ Sep 04 21:25:04 Whoops, sorry for the disconnect Sep 04 21:25:08 Hi. Sep 04 21:25:17 hows it going? Sep 04 21:26:23 Napalm: I bought nexus 7 and have little fun + I learn about adapters. Sep 04 21:26:32 nice Sep 04 21:26:40 it is the new nexus 7 2013 ? Sep 04 21:26:44 @JakeWharton any tips to getting butterknife working on android studio and gradle? I already enabled annotation processors. Sep 04 21:26:50 Napalm : I don't even want compile this app without understanding Sep 04 21:26:55 Yes 2013 Sep 04 21:26:58 jaynewstrom: it should just work Sep 04 21:27:04 nice, mine too, really nice devices Sep 04 21:27:15 Its worth more than my laptop :p Sep 04 21:27:25 heh Sep 04 21:27:44 @JakeWharton I added compile 'com.jakewharton:butterknife:1.2.2' to my build.gradle dependencies, is that right? Sep 04 21:27:49 yeah Sep 04 21:27:58 Napalm: but now its more important device for me :) Sep 04 21:28:01 did you pull the repo? so any modifications you make can be pushed back in? Sep 04 21:28:05 go for like 2.1.0 Sep 04 21:28:06 bluesm_: ^ Sep 04 21:29:02 https://plus.google.com/u/0/+LarryPage/posts/MtVcQaAi684 < omg Sep 04 21:30:42 I don't think incognitto read my question properly, hehe Sep 04 21:31:13 I want to pause/start admob ads without updating app. Possible? Sep 04 21:32:36 Napalm: I just manually rewrite it for now. " Learn it hard way " :) Sep 04 21:38:46 bbtm Sep 04 21:39:49 Have any here experience to develope android app with CI server and build project with gradle? If so what kind of CI server? Sep 04 21:39:51 *sigh* some people don't like to listen. Sep 04 21:43:11 for some reason, I can't get android studio to display local variables when I am debugging Sep 04 21:43:15 has anyone had this issue? Sep 04 21:43:18 I tried everything Sep 04 21:47:44 @JakeWharton I got it pulling in from 2.0.1 from maven, but I'm getting "Gradle: cannot find symbol class OnClick" Sep 04 21:48:27 johannn: yes, and it was simply a machine running Jenkins (with extra Plugins) with SDK and Gradle Sep 04 21:49:18 ok, I was testing temacity Sep 04 21:49:37 I will look at jenkins Sep 04 21:53:14 wow, Android Studio shows single-method anonymous functions as lambda expressions. Cool Sep 04 21:53:58 Denommus: that's part of the generic IntelliJ engine - it does so by default, but you can tailor it per-project and per-install Sep 04 21:54:16 p_l: I liked it, anyway Sep 04 21:54:23 yep, it's nice Sep 04 21:56:40 it would be cool if it let me write in that syntax too :) Sep 04 22:00:37 not really sure what this is, maybe somebody will find it useful http://gradleplease.appspot.com/ Sep 04 22:00:55 seems like just a few snippets? Sep 04 22:11:50 For a complete Java noob, would Android Studio or Eclipse be a better place to start? Sep 04 22:19:06 when I configure the android emulator to use the host webcam as the device camera, the screen is mostly black with flickers of the webcam feed flickering every few ~5 seconds. Has anyone ran into this or got it sucessfully working Sep 04 22:19:15 I am using win7 64bit as host os Sep 04 22:19:22 antiwire: What's your past experience with other tools? Sep 04 22:19:28 Programming in general? Sep 04 22:20:54 Nilium: Nothing, short of some silly bash scripting for system admin type stuff, I have no formal programming background. I have already taken the jump into just hacking together some Android App stuff via copypasta. Sep 04 22:21:19 whole wheat copypasta is the best Sep 04 22:21:31 yeah, it was fortified too Sep 04 22:21:34 So, I have two opinions on this and they conflict with each other. Sep 04 22:21:59 First, I'd say forgo the IDE 'til you know the tools -- namely javac, ant, etc. Sep 04 22:22:30 On the other hand, I'd also say use IntelliJ or Android Studio, 'cause I have a burning hatred of Eclipse. Sep 04 22:22:56 Mostly because it takes about 1-2 seconds to open a context menu on my system for some reason. Sep 04 22:23:09 In Eclipse, anyway. Everything else functions as expected. Sep 04 22:23:20 Nilium: So far, I have already realized that I need to get up to at least beginner understanding of basic Java and for that, I could use normal txt editors. After I get a better base understanding of Java, I should come back to Android via Android studio. Sep 04 22:24:00 I'm not saying don't use an IDE, just try to learn the tools underlying them, 'cause otherwise you're SOL if you're remoting in or don't have them available. Sep 04 22:24:39 got it. Sep 04 22:25:19 Also, do you use Mac OS? Sep 04 22:25:21 Thanks for the opinion. I'm seeking a decent "Java Programming for a non-programming background" type book now Sep 04 22:25:27 Nilium: no, Linux and Windows Sep 04 22:25:33 I'm strong in Linux Sep 04 22:25:41 Ok, was going to recommend something, but I have no alternatives for either Linux or Windows. Sep 04 22:25:47 all good Sep 04 22:26:03 * Nilium is basically an unpaid shill for the Dash docset browser. Sep 04 22:26:16 I should get paid for that considering how many people I've gotten to use it.. Sep 04 22:26:19 Any recommendation for a book like a described above? Sep 04 22:26:39 The only programming books I have are related to game dev topics and 3D math, so not really. Sep 04 22:27:32 antiwire if you are willing to put in the effort, i'd recommend sedgewick's java book Sep 04 22:27:49 g00s: thanks, I will check it out. Sep 04 22:27:57 I am willing. this is all a personal thing for me. not work driven Sep 04 22:28:05 I did read Programming Perl once back in like 2003 or 2004. Sep 04 22:28:25 thhttp://www.amazon.com/Introduction-Programming-Java-Interdisciplinary-Approach/dp/0321498054 Sep 04 22:28:39 Aside from that, I just learned everything by reading code and running stuff through a debugger, as per my dad's suggestion of how to learn to code. Sep 04 22:29:02 g00s: that looks awesome. Sep 04 22:29:14 thhttp sounds like a drug. Sep 04 22:29:29 g00s and Nilium: Thank you both. Much appreciated and especially thanks for being cool Sep 04 22:29:32 Robert Sedgewick kick ass. he studied under Knuth long ago, and has written great stuff Sep 04 22:29:59 Sorry I can't recommend any books. Sep 04 22:30:12 And try to have fun, otherwise you'll go insane. Sep 04 22:30:24 :) Sep 04 22:30:38 antiwire a less rigorous book, but decent is http://www.amazon.com/Java-Beginners-Guide-5th-Edition/dp/0071606327 Sep 04 22:31:03 then there is thinking in java, really old version is free but java 5 version is $. Sep 04 22:31:25 haha yes. this is all for fun. I have been playing with Android devices from the system rom bullshit side and now I have a personal goal of creating an app and getting it into the Play store as a free app. I'm shooting to create "Yet Another Notepad" as my initial goal. Sep 04 22:31:57 That reminds me, setting up a viewpager is much easier than I thought it would be. Sep 04 22:31:57 antiwire just an idea: if you want to create another notepad, there are tons of those Sep 04 22:32:00 Thank god for fragments. Sep 04 22:32:15 you may take a look at emacs org mode, and maybe write something like that for android Sep 04 22:32:24 i think there is one or two lame ass ones Sep 04 22:32:36 i'm sure something better can be done Sep 04 22:32:56 Write one that does basic linguistic analysis of writing. Sep 04 22:32:56 but otherwise, there are so many note takers, remember the milk, evernote, etc Sep 04 22:33:07 g00s: perfect. I have already hacked together buttons which can take input from user and I can make activities and switch between them...at which point, I realized I need to learn Java for real. Sep 04 22:33:29 I don't have an Android equivalent for the iPad app that does linguistic analysis yet, so write one. Do it for me so I don't have to do it myself. Sep 04 22:33:50 I think that would be expert pro level ::) Sep 04 22:33:59 yeah, nlp would be PhD topic Sep 04 22:34:08 Basic linguistic analysis is actually pretty simple provided you're not doing syllable counting or something Sep 04 22:34:53 Though there are some ways to approximately count syllables Sep 04 22:35:41 Was working on something like that a while back but canned it because I only had an Android 2.2 device and wanted to use stuff in 4.x Sep 04 22:40:37 Find me a java library that does the equivalent. I will build an app. Sep 04 22:41:40 Java doesn't really come across as one of those languages where open source libraries for everything are common. Sep 04 22:41:58 antiwire also, along the lines of note pads, check out "Keeping Found things Found" and wikis. maybe other areas you could explore, write apps Sep 04 22:42:22 Nilium: heh, the contrary is true, there's really tons of open source libraries. Sep 04 22:42:29 antiwire http://www.amazon.com/Keeping-Found-Things-Information-Technologies/dp/0123708664 Sep 04 22:44:59 g00s: very cool. Sep 04 22:45:12 I'm about to order the 5th ed. you posted first Sep 04 22:47:32 antiwire after being familiar with java, see "Effective Java" Sep 04 22:48:41 And for fun, look at Scala. Sep 04 22:49:11 http://alias-i.com/lingpipe/demos/tutorial/read-me.html this looks interesting Sep 04 22:49:38 That should be interesting to toy with Sep 04 22:49:50 Oh it's non-free, d'oh Sep 04 22:50:10 There's a free license. Sep 04 22:50:12 Well, free for free apps. Sep 04 22:50:27 I find it odd that you can only license it for servers.. Sep 04 22:50:41 Probably says nothing good about how it performs Sep 04 22:51:12 Nilium is this what you use http://kapeli.com/dash Sep 04 22:51:17 Yes. Sep 04 22:51:22 It is my god. Sep 04 22:51:46 Aside from Enki, who birthed the world. Sep 04 22:52:27 wut is enki Sep 04 22:52:30 link? Sep 04 22:52:41 http://en.wikipedia.org/wiki/Enki Sep 04 22:53:12 oh, i thought you meant the RoR blogging app :P Sep 04 22:53:20 I don't touch Rails. Sep 04 22:53:44 yeah, i was kinda depressed ward cunningham is doing is federated wiki stuff on RoR Sep 04 22:54:20 i wont touch anything written in php either; i just assume its written by idiots using bandaids and glue Sep 04 22:54:34 I got asked to write a review for a PHP IDE today. Sep 04 22:55:50 It only ran on Windows and I don't use PHP, so my pseudo-review was to use PHPStorm or Sublime and avoid what looks to be an IDE that didn't escape the late '90s. Sep 04 22:56:27 Anyone ever tried saving alsa_amixer settings so that they apply at boot? Sep 04 22:59:09 Nilium do you use any alternative window managers for your mac? anything like slate or divvy? Sep 04 22:59:42 I use Moom. Sep 04 23:00:33 hm, looks cool Sep 04 23:00:36 thx Sep 04 23:01:24 https://dl.dropboxusercontent.com/u/31892/Screenshots/yzji.png ← I use it rather heavily. Sep 04 23:01:51 i see Sep 04 23:10:40 NM I figured it out.. Sep 04 23:21:31 Hi! I want to enable overlay-mode for an ActionBarSherlock in one activity, I'm invoking "requestWindowFeature(Window.FEATURE_ACTION_BAR_OVERLAY); first in onCreate before, but when executing the activity, the actionbar is not transparent :S Sep 04 23:27:02 RoR is a nightmare to maintain Sep 04 23:30:44 Ologn i wonder how much longer these server side template things will be around. seems like its better to just have some service and push out a javascript client, or whatever client on any device. i'm not a web dev though Sep 04 23:35:13 Things like PHP and RoR have little learning curve, you can just hack something up and it goes on the page...so things like that tend to stay around for good or for bad. Java application servers are considered old fashioned, but they're still what most big, industrial companies use. Even startups used them in the late 1990s. Sep 04 23:36:44 Even Python app servers, which are at least coherent, are as slow as Ruby or PHP and people complain...RoR is just a mess.... Sep 04 23:37:10 A coherent system to push out a Javascript service is considered too much work, so these other ways are used... Sep 04 23:40:01 glad i dont work on that stuff :P Sep 04 23:41:00 I'm working on an app right now, the domain knowledge I'm getting can probably easily transfer over to a web site so I am considering doing that Sep 04 23:43:24 Do I need to call notifyDataSetChanged() if I delete the item through the ArrayAdapter? Sep 04 23:45:21 i dont think so. Sep 04 23:51:51 hi, I'm having a hard time with all those f§"$! contact databases. I somehow managed to delete and insert contacts, now all I want to do is compare the ACCOUNT_TYPE before I delete a contact. Sep 04 23:52:31 But I don't know how to get that value without making another darn complicated query Sep 04 23:53:25 the Contacts content provider is so complicated, i'm amazed it works at all Sep 04 23:53:41 it is isnt it? Sep 04 23:54:12 Well, I'm not the hell of a coder and pretty dumb too,... Sep 04 23:56:04 I already got the "set of data" which I want to delete, but I need to check its account_type .... Sep 05 00:07:14 hi, some of my ugly code http://ideone.com/MQA8A1 what could be wrong the first of all file.exists() is true, but i dont see file from my pc on sd card, file.canWrite is then false so i create new file then it is okey "I can write data to bin file after createNewFile", then output is "2" at line 72 it jumps to "8" exception, Exception e, e is empty xD ? Sep 05 00:08:39 Is it possible to have a navigation drawer with the expand button on the bottom right? Sep 05 00:08:44 I mean that seems to make more sense Sep 05 00:08:51 I hate having to tap in the top left to go back Sep 05 00:08:56 well, up Sep 05 00:09:15 and putting the drawer up there.... eh Sep 05 00:10:29 I feel like flaming and hurting people... isnt there a good tutorial with a big picture how that whole contact stuff and uri work together? (besides the ones on develop.android.com?) Sep 05 00:12:32 all I want is to lookup that special nr (which works) and get the account_type of that contact... its already there, it gets deleted why cant I just....... do something like uri.getAccount_type() Sep 05 00:28:38 How can I deserialize an ArrayList of an interface with Gson? Sep 05 00:30:46 ... Sep 05 00:30:49 goddamnit Sep 05 00:30:59 graddle can't find a jar I put in the project Sep 05 00:35:06 zyngawow, yo cannot Sep 05 00:35:26 pfn, what's the reason for it? Sep 05 00:35:29 hi Sep 05 00:36:11 so i need a little guidance in interpreting this flow chart of a Fragment's lifecycle. https://developer.android.com/guide/components/fragments.html#Creating it's Figure 2. Sep 05 00:36:48 zyngawow, it's obvious Sep 05 00:37:02 at onDestroyView() where it says "This fragment returns to the layout from the back stack" Sep 05 00:37:57 pfn, what do you suggest I do? Sep 05 00:38:03 pfn: that's not actually true, sort of. Sep 05 00:38:07 Would that mean that whatever modification was made through that fragment, it will revert to its original state and be put back into the layout in this state? Sep 05 00:38:32 I'm actually deserializing arrays of interfaces in Gson. Sep 05 00:38:45 I have Categories and Products, which both need to go into the same ArrayList, and I need to serialize it and deserialize it Sep 05 00:38:54 RyanM, moar infoes Sep 05 00:38:58 ok, Android Studio is unusable Sep 05 00:39:07 wtf, why can't you find a simple library? Sep 05 00:39:27 zyngawow, you need a custom type handler Sep 05 00:39:31 zyngawow: you'll have to write a custom TypeAdapter http://google-gson.googlecode.com/svn/trunk/gson/docs/javadocs/com/google/gson/TypeAdapter.html Sep 05 00:39:48 Ok, thanks! Sep 05 00:40:48 you'll have to be able to figure out the types you need from the JSON though Sep 05 00:41:06 migrating to IntelliJ Sep 05 00:41:18 Do I have any better option? Sep 05 00:41:27 no Sep 05 00:41:35 concrete types Sep 05 00:42:07 for you json model objects Sep 05 00:42:08 The other option is... Sep 05 00:42:10 we die... Sep 05 00:42:56 I have to manually do it.. nice! Sep 05 00:44:15 How could I check if what I'm reading is a product or a category? Sep 05 00:44:27 very carefully Sep 05 00:44:45 haha. Sep 05 00:44:52 I'd suggest a type field set to either "product" or "category" Sep 05 00:45:21 hi everyone. Sep 05 00:45:30 Got a question,... Sep 05 00:45:36 check that with a JsonObject, then fromJson it with the right class. Sep 05 00:46:31 I have a method that generates random locations, gps locations, then I want to draw the markers using those locations, whats the best way to do it? Sep 05 00:46:44 Poesghost, google maps API Sep 05 00:46:49 yes Sep 05 00:47:09 RyanM, I'm suposed to check that in the custom TypeAdapter, right? Sep 05 00:47:25 yes Sep 05 00:47:26 but I want my code clean, is there a way to use an array to draw them all? Sep 05 00:47:48 I already am using maps to display fixed locations. Sep 05 00:49:54 Adapters create views in the parent View from data sources right? Sep 05 00:52:01 RyanM, I can only write or read one thing on the write and read methods? Sep 05 00:52:37 Doing this is just manual serialization Sep 05 00:54:23 it's not *completely* manual. Sep 05 00:56:02 So odd question, but let's say I have an Introduction portion of my app, it contains a lot of legal copy and then I have the functional part of the app, that has a TabHost and a home dashboard. Here's what I want to know. Is there a way I can finish all of the activities prior to the dashboard once the user reaches the dashboard? Sep 05 00:56:10 as I said, store the type in a type variable, check that with a JsonObject, then fromJson it with the right class. Sep 05 00:56:23 the deserialization is like 10 lines of code, tops. Sep 05 00:56:38 I don't want users able to navigate back past the dashboard. Sep 05 00:56:46 How would I accomplish this? Sep 05 00:57:05 RyanM, you say I store the Type on the actual object? Sep 05 00:58:10 maybe some kind of ActivityGroup? Sep 05 00:58:11 zyngawow: that's the easiest way if you don't want to write manual serialization code. Sep 05 00:58:50 Fallout2man: something like http://developer.android.com/reference/android/content/Intent.html#FLAG_ACTIVITY_NO_HISTORY ? Sep 05 00:59:17 wabz: Danke! Sep 05 01:03:09 RyanM, can I pass a reference of the calling class to the TypeAdapter? Sep 05 01:03:36 As my Products have a Category in them, I figured it'd be better to just get the category by its name Sep 05 01:05:45 the...calling class? Sep 05 01:06:01 Does anybody know what exactly is setting a ProgressBar's/SeekBar's setProgress method on a layout reconfiguration? I'm keeping the a View's instance from one orientation to another, but something keeps resetting my SeekBar's progress to "40". Sep 05 01:06:14 The class that invokes the toJson and fromJson methods Sep 05 01:07:26 I don't really understand the "check the Type with a JsonObject, then fromJson it with the right class" Sep 05 01:08:08 zyngawow: I suppose if you wanted to do something absurd like create a new Gson every time, that *might* work Sep 05 01:08:32 JakeWharton, in CalendarPickerView i see scrollTo(x,y), but how can i scrollto the selected date? Sep 05 01:08:42 zyngawow: sorry, I don't really have time to write out the code. Look at JsonParser/JsonObject's docs Sep 05 01:11:08 hmm on my nexus it automatically scrolls to the sevected date once inittialized, not onmy htc desire though:s Sep 05 01:11:55 brx_: not sure. Sep 05 01:12:35 JakeWharton, ok no worries ill make do with it Sep 05 01:16:45 hi all, quicky question about android xml resources - I'm using the Android Studio, and apparently am misunderstanding something. Here is my 'colors.xml' located in src/res/values and activity_mail.xml Sep 05 01:16:53 http://pastebin.com/nZKjXzYu Sep 05 01:17:01 activity_main.xml Sep 05 01:17:53 could someone explain what I'm doing wrong? Android studio keeps complaining that it Failed to convert @colors/Red into a drawable Sep 05 01:19:24 LetterRip: @color/Red Sep 05 01:19:28 not @colors/Red Sep 05 01:19:37 I think :) Sep 05 01:19:43 I tried it both ways Sep 05 01:20:19 LetterRip: try #FFFF0000 ? Sep 05 01:20:36 not sure if that's a fix but not sure why you wouldn't be more explicit anyway :) Sep 05 01:20:43 with @color gives Couldn't resolve resource @color/Red Sep 05 01:21:05 do any other colors work? Sep 05 01:21:19 tnzr yes they work if i use the hard coded values directly Sep 05 01:21:26 not their names? Sep 05 01:22:13 yep using the names above doesn't work Sep 05 01:23:59 android:background="@color/Red" doesn't work? Sep 05 01:24:10 also can you rule out that it's not an android studio bug? try a restart? Sep 05 01:32:29 doesn't background need to be a drawable, not a color? Sep 05 01:33:19 isn't there's a @android:color/red ? Sep 05 01:33:43 funkbox there might be Sep 05 01:33:52 background can be a color Sep 05 01:34:05 but the point is i'm trying to learn to access resources stored in a nonhard coded manner Sep 05 01:34:22 LetterRip: in what Sep 05 01:35:12 https://gist.github.com/slightfoot/6444918 Sep 05 01:35:14 funkbox - ie previously i had "android:textColor=#fff" Sep 05 01:35:18 Example of synchronized animated markers on Android 2.3 and less. (Android without Object Animators or JB's Choreographer.) Sep 05 01:35:22 night people Sep 05 01:35:39 funkbox - for the colors doesn't matter much Sep 05 01:35:43 yeah, you're right, it does work with colors it looks like. Sep 05 01:35:50 but you need the @string stuff for internationalization Sep 05 01:36:17 LetterRip: personally I would be explicit (#FFFF0000 instead of #f00) and use 'red' instead of "Red" Sep 05 01:36:24 not sure either of those will solve your problem but consitency is good Sep 05 01:36:27 tnzr - tried that also Sep 05 01:36:32 also seriously try to restart android studio Sep 05 01:36:39 ok Sep 05 01:37:25 yeah just saw a comment online suggesting restarting eclipse/android studio - seems to solve oddball issues Sep 05 01:38:07 yeah, sometimes its easy to forget that android studio is still in its infancy Sep 05 01:38:25 it's not really, the components are pretty mature Sep 05 01:38:29 especially the intellij part Sep 05 01:38:33 well yeah Sep 05 01:38:44 but there's still some issues related to being v0.2 Sep 05 01:38:49 yep Sep 05 01:38:55 .26 :) Sep 05 01:40:00 i don't really need to do this right now, was just trying to get rid of warnings Sep 05 01:40:35 since android studio warns any time a hardcoded string is used directly Sep 05 01:41:42 ah, you can disable that Sep 05 01:41:58 alt + enter, right arrow and then you have disable that inspection Sep 05 01:41:59 or in settings Sep 05 02:02:12 anyone know how to add a new repo to maven in intellij? Google says I need a pom.xml yet I don't have one :D Sep 05 02:08:09 tnzr: rebooting did indeed fix it Sep 05 02:08:22 now one of them is getting the wrong substitution Sep 05 02:08:31 but otherwise is correct Sep 05 02:08:57 cool Sep 05 02:10:42 does anyone develop for android without an IDE? Sep 05 02:11:08 just a text editor and command line tools? Sep 05 02:21:27 I want to get x, y, z axis on the textview Sep 05 02:23:24 Hellooo? Sep 05 02:34:37 anyone here familiar with notifications? I want to dismiss a notification if a certain screen in my app is displayed. How would I do that? Sep 05 02:39:44 which bit ? Sep 05 02:40:06 Why does my app say "'app name' is part of the following app: 'app name'" when I go to uninstall it Sep 05 02:40:24 but it only does it on my tablet and not my phone Sep 05 02:41:04 do you have a sharedUserId in your manifest? Sep 05 02:41:34 no Sep 05 02:42:12 does anyone develop for android without an IDE? Sep 05 02:42:16 just a text editor and command line tools? Sep 05 02:42:41 i've thought about it and said screw it Sep 05 02:42:52 i'd be slowed down so much because of my limited knowledge Sep 05 02:43:44 Mrono: sorry, no idea then. RustyShackleford: i don't think it'd be very practical, java is very verbose. coding without something to help with imports and autocomplete method names would be painful Sep 05 02:44:30 i was all about vim prior to getting into android dev. i tried "eclim" which is an eclipse + vim frankenstein, but ended up using eclipse by itself for years and now use android studio Sep 05 02:44:51 still use vim for browsing code outside of projects or in a project not currently open Sep 05 02:46:25 kevinb: i figured out how to make the message stop showing up, the android:label of the app and the main activity were different Sep 05 02:46:47 ah, interesting Sep 05 02:48:03 The interesting thing is that the android:label of the main activity is the one that shows up in the app drawer Sep 05 02:48:09 not of the app Sep 05 02:48:39 yeah, the app name shows in the System Settings > Apps area Sep 05 02:54:34 RustyShackleford, most of my time is spent without an ide Sep 05 02:55:24 I have something like String type = extras.getString("type") (from GCM), I then do if (type = "value") and it evaluates as false. But when I print it, type has the value I'm testing for. What could be going on? Sep 05 02:55:29 Mrono, of course, because you can have multiple main activities Sep 05 02:55:42 nesoi: use .equals Sep 05 02:55:49 nesoi: that doesn't compile Sep 05 02:55:52 nesoi, learn to do string and object comparisons correctly Sep 05 02:55:54 sorry I did == Sep 05 02:56:01 it was a typo just now Sep 05 02:56:01 then what they said ^ Sep 05 02:56:04 JesusFreke, you're too easy Sep 05 02:56:15 Where can I find good unit-test tutorial for android-dev ? Sep 05 02:56:27 pfn: low hanging fruit :p Sep 05 02:56:32 so I should have said Sep 05 02:56:37 johannn, testing guide on d. android. com Sep 05 02:56:47 I have something like String type = extras.getString("type") (from GCM), I then do if (type == "value") and it evaluates as false. But when I print it, type has the value I'm testing for. What could be going on? Sep 05 02:56:47 I'm not entirely sure he got it though Sep 05 02:56:56 so I'll leave you to it Sep 05 02:57:07 nesoi, you not understanding java at all Sep 05 02:57:22 probably not pfn… what am I missing? Sep 05 02:57:35 nesoi, use. equals Sep 05 02:57:49 pfn: you're too easy :p Sep 05 02:58:04 == is 99% wrong for beginners Sep 05 02:58:20 I know Sep 05 02:58:31 I don't have time to be pedantic right now Sep 05 02:58:41 nesoi: your homework question is to figure out why == doesn't work in this case :) Sep 05 02:59:10 So, a bit of a newbie question here. (I hope you guys are cool with newbs :P) If I understand this correctly, onStart() is called right after onCreate() when the app starts for the first time? Sep 05 02:59:43 so it should be if (type.equals("value")) ? **** ENDING LOGGING AT Thu Sep 05 02:59:59 2013