**** BEGIN LOGGING AT Wed Sep 05 02:59:59 2012 Sep 05 03:29:39 meh, google maps traffic is just - fucking completely wrong Sep 05 03:30:43 surprise surprise Sep 05 03:31:39 why am i not surprised :P Sep 05 03:32:05 how can I make a preference open a layout? Sep 05 03:34:28 "open a layout"? Sep 05 03:34:40 he left Sep 05 03:34:54 so's your face Sep 05 03:35:09 burn Sep 05 03:35:33 huh, i didn't get that at all Sep 05 03:35:54 My e-mail to two Finnish translators have gone unanswered Sep 05 03:35:58 I guess my app Sep 05 03:36:09 is going to be next translated into Swedish Sep 05 03:36:27 Ologn: was this the medical app ? Sep 05 03:36:30 Wow Sep 05 03:36:34 g00s: book app Sep 05 03:36:41 That did not end as I expected Sep 05 03:37:45 How i can get the file on my sd car, i am using Environment.getExternalStorageState() but i just get the interal memory Sep 05 03:37:55 i am running android 4.0 Sep 05 03:39:11 external storage isn't necessarily an sd card Sep 05 03:40:17 ok assuming i want to get a song from my sd card Sep 05 03:40:28 i am using a galaxy s3 Sep 05 03:41:43 S3 has two different external storage areas - the SD card and the 'internal SD'... unfortunately, Android doesn't actually handle that situation very well... Sep 05 03:42:19 I made all my money back from my 4.5 month old Portuguese translation this weekend, it's in the black now Sep 05 03:44:37 4.5 months? thats like 3 mobile application years Sep 05 03:45:39 Leeds: is there a way to access the sd card? Sep 05 03:45:51 just get the location name at least Sep 05 03:45:59 there's no API, AFAIK Sep 05 03:46:43 it would actually be a useful little library - or just include-able source file - for someone to run up, with a function which looks at known secondary storage points and returns any which are found Sep 05 03:50:24 I am trying to have two tabs in an app implementing ABS. One of the tabs will have a layout containing multiple listfragments, which for the life of me I can't get to work if I approach implementing as recomended. Instead I call setContentView on tabposition changed and remove id'd fragments on tabunselected, but this opens up a mess a problems (most notably some weird cursorloader behavior). Sep 05 03:50:25 Anyone got a lead or recomendation on how to handle ABS + tabs + tab layouts containing multiple fragments? Sep 05 03:52:14 Are you using fragemtns for your tabs? You cant have recursive fragments Sep 05 03:52:27 drop ABS from your question, it's not relevant to the question at hand Sep 05 03:52:37 It is though because I can get it to work without ABS Sep 05 03:52:58 Or how do I handle multiple fragments in a layout using tabs with ABS? Sep 05 03:53:15 So far I can only get one fragment to work, two causes a crash. Sep 05 03:53:19 in the callback, make a transaction with multiple operations Sep 05 03:53:37 In which callback? Sep 05 03:53:53 the tab selection callback Sep 05 03:53:56 onTabSelected Sep 05 03:54:03 you can just hide() one fragment and show() another Sep 05 03:54:39 you don't have to use the FragmentTransaction provided by the callback Sep 05 03:54:48 I think I tried that before, but if I am identifying the tabs via XML I can only findbyid on one of them, if I try to find them both they crash Sep 05 03:54:48 in fact, all it's doing is just the same thing you would do Sep 05 03:54:56 Right I did see your post on that. Sep 05 03:55:09 Okay, let me see if I can get it to work starting fresh again. Sep 05 03:55:11 i'm not sure why they included that as part of the API Sep 05 03:55:11 Thanks Sep 05 03:56:12 oh maybe you can answer this question, when I use getActivity().getSupportLoaderManager() does the loadermanager belong to the fragment or the parent activity (becuase of the getActivity)? Sep 05 03:56:55 in a fragment, you should use getLoaderManager() Sep 05 03:57:42 I am working for comptability? Sep 05 03:58:15 take a look at what LoaderManager it returns Sep 05 03:59:31 I can't use getLoaderManager that requires API 11 Sep 05 03:59:41 I am building against min API 7 Sep 05 03:59:48 right Sep 05 03:59:54 you can choose which LoaderManager to import Sep 05 04:00:22 in the support fragments the api is still getLoaderManager Sep 05 04:00:34 https://developer.android.com/reference/android/support/v4/app/Fragment.html#getLoaderManager() Sep 05 04:00:36 in fragment activity it's getSupportLoaderManager Sep 05 04:00:40 Remember to check the right class Sep 05 04:00:49 Wait so which loadermanager import do i use? Sep 05 04:01:03 the support one Sep 05 04:01:09 import android.support.v4.content.Loader; --> this one? Sep 05 04:01:29 its ...v4.app.LoaderManager Sep 05 04:02:11 Umm sorry that caused by eclipse to blow up a little bit Sep 05 04:02:17 What lines am I going for? Sep 05 04:02:24 LoaderManager lm = getActivity().getLoaderManager(); Sep 05 04:02:32 no Sep 05 04:02:35 with import v4.app.LoaderManager? Sep 05 04:02:36 drop getActivity Sep 05 04:02:41 just call getLoaderManager() from within your fragment Sep 05 04:02:43 it's in a list fragment Sep 05 04:03:15 look at the link SimonVT shared Sep 05 04:03:28 LoaderManager lm = getLoaderManager() ? Sep 05 04:03:41 yeah Sep 05 04:04:18 What's the actual import line? Sorry Sep 05 04:04:32 the v4 one Sep 05 04:04:57 use your IDE to organize imports Sep 05 04:05:00 assuming you're using an IDE Sep 05 04:06:42 *working* hmm maybe this will fix my problem, thanks everyone Sep 05 04:08:48 *does gold miner's struck gold jig* Sep 05 04:09:10 Hahahah man spent all hours this morning digging through this and that was the error. Thanks again doogan Jake and simon Sep 05 04:09:28 rocken Sep 05 04:09:49 So what is the supportLoaderManager/ Sep 05 04:10:06 that's for getting the v4 LoaderManager from a fragment *activity* Sep 05 04:10:23 Ahh I see Sep 05 04:12:20 This open source development community is really something. Sep 05 04:20:35 JakeWharton: OMG. This whole problem I was having is caused by fragments with no views in them (i.e. layouts have no subviews). Wow. Just, wow. It started when I added a second tab/fragment to my app, then to reproduce I made an app with two blank fragments, which of course only made the problem worse Sep 05 04:26:02 sqlite queries can only be 1000 deep Sep 05 04:27:05 *expression selection i mean Sep 05 04:27:32 no, that does not sound right Sep 05 04:27:42 the cursorwindow is limited to 1meg Sep 05 04:28:50 when I try a query with a selection expression (_id = ? OR _id = ? OR...) > 1000 times plus a selectionargs[] array > 1000 it crashes Sep 05 04:29:24 Specifically, "Expression tree is too large" Sep 05 04:29:44 that sounds different than 'result set is too large' Sep 05 04:29:54 Oh sorry for the confusion Sep 05 04:29:55 how could you need that many selectionArgs Sep 05 04:30:07 Dictionary sentence lookup Sep 05 04:30:24 i'd think you want to implement full-text search Sep 05 04:30:29 ? Sep 05 04:30:38 check out the dictionary app in the samples Sep 05 04:30:46 uses a virtual table Sep 05 04:31:00 I have a database with sentences in one table, and words in another, some words (like the) return almost every sentence id Sep 05 04:31:28 What do you mean by a full-text search? Sep 05 04:32:07 I just built a table that maps words->sentences by associating their ids Sep 05 04:32:42 but thanks for the suggestion, I will have to figure out how to do that in the very near future Sep 05 04:32:59 http://developer.android.com/training/search/search.html Sep 05 04:33:43 Ahh I had to use content provider because I only knew of cursor loaders which use them Sep 05 04:34:02 but thanks that'll help when i have to implement searches Sep 05 04:35:08 doogan what kind of dev do you do? Sep 05 04:36:02 mostly android Sep 05 04:36:53 For work or fun? Sep 05 04:37:25 jarsigner without sdk? Sep 05 04:37:29 for fun and profit Sep 05 04:37:54 cool have you made anything that is in public? Sep 05 04:37:55 asking cos, i need to check the validity of signed jars in a machine without sdk in it Sep 05 04:37:55 jarsigner is part of java, not Android Sep 05 04:38:14 JakeWharton, yes, i'm aware, #java is sleeping, so seeking help here Sep 05 04:43:18 Guys i wanna know if a developer want to make a team with me to make a android version of this app http://everyday-app.com/ Sep 05 04:44:12 Just what we need more ego apps. Sep 05 04:44:25 JakeWharton, see this http://www.androidjavadoc.com/1.0_r1_src/java/util/jar/JarVerifier.html Sep 05 04:44:38 1.0_r1?!?!? Sep 05 04:44:45 BlooDF you might try recruiting on the android-dev subreddit Sep 05 04:50:43 is there a simple way to get all mp3 files on internal and external storage? Sep 05 04:51:03 i am now just writing the path of the folders Sep 05 04:51:46 like this http://bit.ly/NPXx2u? Sep 05 04:54:25 thanks, what excatly is mediastore? Sep 05 04:56:24 @lasserix its a good app that we dont have on android :) Sep 05 04:57:02 Yeah I guess, if we need more apps for people to take gratituous pictures of themselves for facebook Sep 05 04:57:07 ;p Sep 05 04:58:30 and apply effects that make them look "vintage" (read:shitty) Sep 05 04:58:48 @lasserix the problem with android its that developers dosnt allways see the phone as users, im a huge fan of android but the developers need to be more open minded. think as an user Sep 05 04:59:06 i think the apple developers community its more open for ideias Sep 05 04:59:36 nah just apple users tend to have more disposable income ;p Sep 05 04:59:57 but a great free app with ads its better on android :) Sep 05 05:00:25 I'd venture to say apple users tend to be gullible, and not care Sep 05 05:00:42 when I finally got the galaxy s3 in my wifes hands she was like what? Sep 05 05:01:02 couldnt believe what she could get for free Sep 05 05:01:15 I think for the most part ios apps had the polish Sep 05 05:01:34 BlooDF: I think it is a great idea (but I don't have time to work on it sorry) Sep 05 05:01:35 could warrant the price Sep 05 05:02:01 ron_frown: so much is like that in the whole apple ecosystem though Sep 05 05:02:03 the mac tax Sep 05 05:02:10 even windows v. mac os Sep 05 05:02:11 if we got more developers working with designer we will have better apps Sep 05 05:02:16 windows has so much great free software Sep 05 05:02:21 mac you have to buy so much of it Sep 05 05:02:28 i.e. svn GUI Sep 05 05:02:30 the biggest problem its withing the developers Sep 05 05:02:31 and many others Sep 05 05:02:45 we need more community work Sep 05 05:02:48 I bought software for my mac to change the mouse acceleration. Same thing is free on windows. etc. Sep 05 05:02:59 there are great designer that are willing to work for free just to get a portfolio Sep 05 05:03:27 BlooDF: are you a designer? (graphic designer I assume you mean?) Sep 05 05:03:43 yes Sep 05 05:04:22 ive been trying to learn java for years but dont get how this works :( Sep 05 05:04:40 i know PHP OOP but cant handle java system Sep 05 05:15:09 BlooDF, most Android developers getting paid for a contract or a salary will do whatever the graphic designer wants almost all of the time Sep 05 05:15:34 which is why we have so many apps that look awful or look like iOS Sep 05 05:16:03 the problem its that the developers that just make the app for itself dont ask for a designer help Sep 05 05:16:18 they use the system UI that really sux at 2.x Sep 05 05:16:29 the 4.x its far better then the iOS ones Sep 05 05:16:56 I gave my last client a what-for regarding the design guidelines Sep 05 05:17:25 BlooDF, usually they show me a PSD file or whatever, and I make what they want. Some requests are more difficult than others of course. Sep 05 05:18:06 but when you do an app by yourself you dont get a designer Sep 05 05:19:47 BlooDF, when I do an app myself, I have no money to make it and can't afford a designer. If a designer would be willing to take a risk along with me, I'd be happy to give them a share of my app. Sep 05 05:20:26 see thats the problem im talking about, there is a lot of designers that could help you for no money, you just need to do a little search :) Sep 05 05:21:53 BlooDF, and for certain things, like games, I'd really need a designer or artist Sep 05 05:22:45 yeah thats the most difficult ones but i know designers allways want their jobe to be on the top so if you got a good idea you can get a designer easyer then a developer for you idea Sep 05 05:26:25 http://www.webpronews.com/android-users-dont-want-to-pay-for-anything-2012-07 Here are the best reason that the developers on android its more expensive then a designer Sep 05 05:29:02 Gamers don't seem to click on ads either, at least in my experience. Then again, I just ported open source games, so it wasn't a lot of work for me. Sep 05 05:30:00 (overburn) Hey guys , how do i make my ics phone not load tons of useless apps in memory? It makes my phone mighty sluggish when i have many apps installed Sep 05 05:30:04 the problem isnt just with game, but the whole eco system, the cracking on android its so dam simple. Sep 05 05:30:52 @overburn have you tried an task manager? disabling the apps? or a startup manager? The first question of then all what phone and got root? Sep 05 05:31:06 Huawei Sep 05 05:31:20 cracking like decompiling to java? Sep 05 05:31:25 If your app is based on ads, cracking is less of a worry. Sep 05 05:31:33 U8815 and yes it has root Sep 05 05:32:04 no crackin for removing googple play checks :P Sep 05 05:32:08 And i've tried a task killer but the system keeps restarting those apps Sep 05 05:32:25 @overburn try an root uninstaller on those apps Sep 05 05:32:27 I think free-to-play games are a market shift in general. If anything android is just ahead of the curve Sep 05 05:32:27 ohh, haven't came across that Sep 05 05:32:58 i think the F2P will be the future of the Games Sep 05 05:33:24 on web based systems like Mobile or PCs Sep 05 05:33:43 Bloodf i've uninstalled the bloatware but it keeps a lot of the apps i use in memory Sep 05 05:33:59 And i don't use them often Sep 05 05:34:34 they auto start? if so try this https://play.google.com/store/apps/details?id=com.elsdoerfer.android.autostarts&feature=search_result#?t=W251bGwsMSwxLDEsImNvbS5lbHNkb2VyZmVyLmFuZHJvaWQuYXV0b3N0YXJ0cyJd Sep 05 05:35:36 I dont agree... I think its simply a matter of thinking about what USERS think is reasonable price points Sep 05 05:35:47 .99 is perfectly reaosnable for REASONABLY quality apps Sep 05 05:36:02 but android marketplace has a lot of apps that are functional, but ugly as fuuu Sep 05 05:36:10 ron_frown: trufax Sep 05 05:36:10 i agree with that but there are a lot of android users from 3rd world Sep 05 05:36:27 im from Brazil Sep 05 05:36:32 Hah thanks bloodf Sep 05 05:36:33 so? Sep 05 05:36:34 i can afford and i pay for apps Sep 05 05:36:40 I do too Sep 05 05:36:42 I am just saying Sep 05 05:36:56 for what you get for 99c in iphone app store, and what you get for 99c in android app store Sep 05 05:37:02 a lot of time you are paying ofr shit quality apps Sep 05 05:37:04 Also google needs to release google play gift cards Sep 05 05:37:09 but here 70% of the android phone belongs to users that dont want to pay they think it its free i want for free Sep 05 05:37:13 That alone would make app sales go thru the roof Sep 05 05:37:14 BlooDF, most people don't even bother translating their apps to FIGS-CJK languages, never mind Portuguese Sep 05 05:37:14 I thought htey already did Sep 05 05:37:22 I dont see them at walmart Sep 05 05:37:37 I dont shop at walmart =( Sep 05 05:37:39 =) Sep 05 05:37:41 me neither Sep 05 05:37:43 the problem isnt the translation Sep 05 05:37:55 its the general idea the people got here Sep 05 05:37:59 lasserix: then it might be hard to see them in there ;) Sep 05 05:38:10 and the 3rd country have this ideia to do think the bad way Sep 05 05:38:34 the appeal of android platform unfortunately brings a certain hacker mentality with it Sep 05 05:38:47 people want free, open platform, thats expandable etc Sep 05 05:38:51 ? Sep 05 05:39:26 the people that generally care about that Sep 05 05:39:30 i dont think so Sep 05 05:39:46 ron you mean to the dev community or of all android users in general? Sep 05 05:39:47 I do... look at people who like iphone stuff Sep 05 05:39:48 the piracy on the 1st world its so low that dosnt count Sep 05 05:40:03 people who dont give a shit about how stuff works under the hood, they like pretty shiny colors Sep 05 05:40:08 that is extremely simple Sep 05 05:40:34 but we got users that dont give a shit about how android works Sep 05 05:40:36 if google can fix the apk encryption stuff, its very likely encryption could be drastically reduced Sep 05 05:40:51 its a java problem not the APK Sep 05 05:41:01 every java app can be easly cracked Sep 05 05:41:22 uhh show me how you are going to "crack" a signed apk thats encrypted Sep 05 05:41:23 try to crak an windows app you need reverse eng. Sep 05 05:41:37 you are referring to the difference between machine code and bytecode Sep 05 05:41:51 but those are things that can be a lot less of a concern Sep 05 05:43:15 now a days, I bet there are far more .net app than straight c++ Sep 05 05:43:34 and those are very realistically easier to decompile than java Sep 05 05:43:40 if no protection is added Sep 05 05:50:25 What's the difference between newview and bindview in a custom cursor adapter? Sep 05 05:52:11 lasserix: the methods names are pretty self explanaory, a cursor adapater handles the recycling for you so they are sperate methods Sep 05 05:52:26 so bind view is called as the recycled view? Sep 05 05:53:51 Or what is the cursor newView has an arguement? the tutorial I'm reading uses cursor c = getCursor as opposed to this params cursor. Sep 05 05:54:00 bindview binds the view, newview creates a new view. so a new object would get both called, a recycled only gets bindview called Sep 05 05:54:33 haha. boss said "Change buttons to clickable text". I say "bad idea because of this and that but if you want I'll do it". Boss comes from meeting with client where they had then agreed that "yes it was bad idea. Switch it back". Flipside is free bottle of sake. But I already have 3 of those...This rate keeps up and I could open my own sake bar! Sep 05 05:54:34 Ahh okay common sense but thanks Sep 05 05:57:16 ron_frown: about 0.99, http://www.macrumors.com/2012/08/31/ios-developer-david-barnard-trying-to-make-the-boxed-software-model-work-at-99%C2%A2-is-a-fool%E2%80%99s-errand/ Sep 05 05:57:25 i doubt its much different for android Sep 05 05:58:15 I think there are less people willing to spend the .99c Sep 05 05:58:18 *I* am Sep 05 05:58:31 but I believe if you price your software right (compared to market) you'll do well Sep 05 05:58:54 its like photoshop... they'll do well no matter what, but I can GUARENTEE they'd have much more legit license sales if they priced it more reasonably Sep 05 05:58:55 like 199 Sep 05 05:59:09 I dont care how much engineering costs were tied up in it Sep 05 05:59:22 they need to learn to realize passing those costs to user doesnt always work out right Sep 05 05:59:46 ms needs to learn that an os for 399 is completely absurd, when you can buy a new pc with the very same os for 399-450 Sep 05 06:00:10 apple actually did a decent job with pricing their os, but probably because it drives sales, and there are no real hardware competitors Sep 05 06:00:21 Apple, $100 developer license + app vetoing. Sep 05 06:00:43 yah, that part is total bs Sep 05 06:01:05 Thats likely driving tablet sales to other manufactuers. Sep 05 06:01:36 lasserix: something like http://pastie.org/4666533 Sep 05 06:02:56 if I was a hardware manufacturer... I'd work at getting jellybean ready for any device I've produced Sep 05 06:03:04 because jellybean was exactly what android needed Sep 05 06:04:03 saiko thanks i did set it up but for some reason my textviews even tho i am using view.findingbyid after inflating are coming up null Sep 05 06:05:03 I realize the audience here isnt porting, but I wonder if people might find value in some sort of online forum for porting related discussions Sep 05 06:05:34 lasserix: post your code Sep 05 06:05:40 good tip on reusing inflater Sep 05 06:05:52 ron_frown: isn't windows 8 supposed to be really cheap? Sep 05 06:06:04 I hadnt heard that, but I'll believe it when I see it Sep 05 06:06:08 I think I read $40 for an upgrade Sep 05 06:06:09 the way ms likes to play that is say... Sep 05 06:06:24 oh yeah, cheap upgrade, and give you win x starter edition that has 0 functionality =) Sep 05 06:08:31 what the jellybean introduced then? Sep 05 06:08:35 ron_frown: good thing you aren't a hw manufacturer :P Sep 05 06:09:07 g00s Sep 05 06:09:08 I am Sep 05 06:09:16 well, yeah in some way Sep 05 06:09:25 i thought you meant, like samsung or htc Sep 05 06:09:28 :) Sep 05 06:09:32 well I work for one, but I am putting the wraps on my second piece of hardware running android os Sep 05 06:09:48 polishing up a jellybean 4.1.x rom for it Sep 05 06:09:51 and its fucking beautiful Sep 05 06:10:09 ron_frown: but is it a general purpose tablet, or a solution that embeds android for other means ? Sep 05 06:10:46 i read this on the verge this morning http://www.theverge.com/2012/9/4/3291249/the-end-of-android-tablets-google-amazon-kindle-fire-microsoft-windows-8 Sep 05 06:11:14 yeah I am sure ms is paying big bucks to get oems to license windows 8 Sep 05 06:11:16 last paragraph Sep 05 06:11:19 still not holding my breath Sep 05 06:12:05 ms still hasnt proven they can pull of releasing regular updates to mobile operating systems Sep 05 06:12:22 yeah, i'm very curious about their story in tat regard Sep 05 06:12:24 and oems that get the same licensing as the avg person (not incentives or subsidised like I am sure they are trying now) Sep 05 06:12:31 Remind me what library of touch-screen apps microsoft has ready for deployment on windows 8 tablets? Sep 05 06:12:49 would you rather pay money and invest time and effort learning new platform that has less ultimate flexibility Sep 05 06:12:51 msft do regular windows updates no? Sep 05 06:12:54 or just continue to use what you can for free Sep 05 06:13:06 dvdh - not on any of their mobile os's Sep 05 06:13:06 whereas android oems still lack behind latest android releases Sep 05 06:13:06 ron_frown: neither can Google Sep 05 06:13:13 dvdh: Most Linux does it more often. Sep 05 06:13:23 sure they can, oems dont bother updating because they have bigger and better fish to fry Sep 05 06:13:26 hehe Sep 05 06:13:28 thats where apple pulls it off Sep 05 06:13:42 their devices usually have a longer HARDWARE lifecycle Sep 05 06:13:55 so its worthwhile to backport os a few times to older hardware Sep 05 06:14:02 i'm still bitter about my nexus one not getting 4.0 :( Sep 05 06:14:07 I mean moving to jellybean was REALLY fucking easy Sep 05 06:14:13 REAL easy Sep 05 06:14:21 and its just helped Sep 05 06:14:24 yeah, somebody even got it "working" on the droid-1 Sep 05 06:14:28 lots of new updates for performance Sep 05 06:14:32 oems are just lazy Sep 05 06:14:33 :) Sep 05 06:14:36 exactly Sep 05 06:14:43 saiko: http://pastebin.com/SxXw3uYV Sep 05 06:14:49 I mean our first gen hardware was SHIT... Sep 05 06:14:52 thats good news, this is stock android or cm? Sep 05 06:14:56 we based it on freescale som Sep 05 06:14:58 and it was crap Sep 05 06:15:05 I dont want to support the god damn shit Sep 05 06:15:13 but I think the MS surface line will keep the tablet oems in line Sep 05 06:15:15 luckily the new hardware will own it Sep 05 06:15:33 I hope I am wrong, but I think ms missed their window Sep 05 06:15:45 technology front, it couldnt be easier to build apps etc Sep 05 06:15:52 but thats what MS does best Sep 05 06:16:15 come up with innovative new ideas, and then implement them as if it were monkeys throwing darts at a dartboard Sep 05 06:16:44 haha wonderful analogy Sep 05 06:16:47 the end implementation almost always is so convoluted its not worth looking at Sep 05 06:16:49 lasserix: you should extend CursorAdapter, not SimpleCursorAdapter Sep 05 06:17:01 the UI is un-impressive to me... I think they need to fire their designers Sep 05 06:17:41 i like the metro ui. it will take some time for good metro-based apps Sep 05 06:17:43 so crap ui + licensing fees + reduced flexibility because a good dael of the platform is closed source + lots and lots of negative developer experience Sep 05 06:18:01 metro looks like someone decided to build a UI with fucking legos Sep 05 06:18:01 ron_frown: licensing fees, yeah, but oems have licensing fees for android too Sep 05 06:18:05 Still same problem Sep 05 06:18:25 and smaller oems might say "fuck it" if they think they are getting into it with apple Sep 05 06:18:45 problem is, apple is a bully now Sep 05 06:19:38 yeah apple has fucked themselves over Sep 05 06:19:53 they forgot about this very same move about 20yr ago that fucked them over for 15yr Sep 05 06:19:54 haha Sep 05 06:20:07 Saiko still the same problem dunno Sep 05 06:20:41 they hav their fans, but I've already seen a LOT of my non-tech savvy friends moving to android devices Sep 05 06:21:34 i was just reading that RIM will pay out $10k to each dev that makes $1000 on app sales Sep 05 06:22:08 "'Good artists copy, great artists steal.' We have always been shameless about stealing great ideas" -Steve Jobs Sep 05 06:22:11 see rim and ms needed to realize ios was a HUGE threat as soon as it was released, and later that android would clean house Sep 05 06:22:18 well, this q4 will be interesting for sure. i think the trends for the forseable future will become clear Sep 05 06:22:24 Just dont stal out stolen ideas, or we'll sue you into the ground... Sep 05 06:22:43 also, since when did the kernel be 3.x? last time i checked into linux it was 2.6x Sep 05 06:22:45 its just too little too late, not to say reinventing the wheel wont help ms, but they did a mostly crap job re-inventing the wheel Sep 05 06:27:12 like I said... I've been a HUGE fan of ms's efforts in the .net world etc Sep 05 06:27:30 I think thats one product they've done really rather well... with the exception of no non-ms support natively Sep 05 06:27:45 eg, if you didnt have to install mono and you could just use .net on linux (with a ms released runtime) Sep 05 06:27:50 they'd probably clean house Sep 05 06:30:35 lasserix: an example with a cursorloader http://pastie.org/4666533 Sep 05 06:31:35 View v = mInflater.inflate(R.layout.row_setence, parent, false); <<< your comment says file name is sentence.xml Sep 05 06:32:08 SETENCE Sep 05 06:32:24 oh yeah i was obsfucating Sep 05 06:32:37 trying to pull a different layout now Sep 05 06:32:51 hmm Sep 05 06:32:53 it worked weird Sep 05 06:32:59 saiko thanks for the help Sep 05 06:33:05 no prob Sep 05 06:34:31 Jak_o_Shadows, Linux went to 3 last May. To celebrate 20 years of Linux. The main reason is Linus said names like 2.6.24.4-rcwhatever were too confusing Sep 05 06:35:36 sad part I've been fucking about with linux almost that long Sep 05 06:36:07 hmm, i really should get my linux box working Sep 05 06:36:41 I need to man whore myself out and get some cash together for a new desktop Sep 05 06:37:27 craigslist Sep 05 06:37:48 whore myself out on craigslist? Sep 05 06:37:56 or backpage Sep 05 06:38:06 JakeWharton might be interested Sep 05 06:38:08 Yeah just do it under gigs so you don't get flagged Sep 05 06:39:09 I'd give you at least 12 roses Sep 05 06:39:38 jake doesnt like me like that Sep 05 06:39:51 don't be silly Sep 05 06:40:03 That's what vermouth is for Sep 05 06:40:06 iv'e already decided I am going to be completely honest on my resume next time I am in the job hunt Sep 05 06:40:22 lasserix: i find the gin far more important in the overall seduction process Sep 05 06:40:27 i've never had to decide that Sep 05 06:40:31 wtf ron_frown Sep 05 06:40:47 Years ago my resume had a lot of buzzwords and I got called a lot Sep 05 06:41:01 But then I'd be asked questions about stuff I hadn't touched in years Sep 05 06:41:03 "I'm not super personable, not a kiss ass, but can communicate and can build anything you desire, and then some" Sep 05 06:41:05 tophyr this isn't seduction this the backpages of craigslist man whoring ;p Sep 05 06:41:08 So I removed all the non-recent buzzwords Sep 05 06:41:13 So I stopped getting called Sep 05 06:41:18 So I put the buzzwords back Sep 05 06:41:21 I'm not good with people, and dont take direction before, being an ex architect Sep 05 06:41:27 ron_frown: well, most of software engineering is "people stuff" Sep 05 06:41:30 dont take direction well Sep 05 06:41:38 but I am the fucking destroyer. Sep 05 06:41:45 oh yeah ! Sep 05 06:41:45 lasserix: touche. but, in that case, knowing the craigslist genre, vermouth and gin is likely far too upscale.. moonshine and on the high end, macnaughton's whiskey maybe Sep 05 06:41:49 i forgot you were the destroyer Sep 05 06:41:54 haha Sep 05 06:41:55 I am the destroyer. Sep 05 06:42:00 hehe Sep 05 06:42:08 TILDA THE DESTROYER Sep 05 06:42:26 I am so sick of the polotics and bs Sep 05 06:42:29 "Why did you leave that company?" "Because my boss was an ass" Sep 05 06:42:30 I am happy I got my meds Sep 05 06:42:42 Ologn - I tell my new employer that Sep 05 06:43:07 any of you guys worked with robotium? Sep 05 06:43:15 told him when I went to quit after several years of faithful service, because I missed my family back home he threatened me, and I almost had to kick his ass out the 2nd story window Sep 05 06:43:17 tophyr, a little Sep 05 06:43:23 tophyr - yeah some Sep 05 06:44:47 well, and i guess my question is more general than Robotium, but it seems designed to run more in this direction - how tightly bound is ActivityInstrumentationTestCase2 to the class it's 'ed on? Sep 05 06:44:51 (is there a verb for that) Sep 05 06:45:03 I started working in IT back in 1996, but not as a programmer. I'd say in my experience, the best positions are at companies that just got their first round of venture capital, with a strong CTO who will stand up to the CEO. Sep 05 06:45:15 If a company is too small, the CEO can be a young jerk (or an old jerk) Sep 05 06:45:39 At a big company, forget about the bureaucracy and office politics, it's all you do Sep 05 06:45:39 if i have ActivityInstrumentationTestCase2, obviously it works with Robotium if i log in and start using HomeActivity after the login, but what is the point of binding it to LoginActivity, then? Sep 05 06:45:48 haha Sep 05 06:45:50 Ologn: interesting Sep 05 06:46:07 thats why I just say it like it is, I guarentee they'd be out a lot if I was to leave, but I'll never get a promotion Sep 05 06:46:10 actually, the best you can do is not have a boss or landlord Sep 05 06:46:14 XD Sep 05 06:46:14 I definitely dont kiss enough ass for that Sep 05 06:46:56 freelance developer using a mobile home powered by solar-fuel cell circuit living in the outlands where the laws no man reign Sep 05 06:47:08 lasserix: yyeaaah ! Sep 05 06:47:18 I got medicated... and its helped immensely Sep 05 06:47:24 i know somebody that freelances in a 5th wheel Sep 05 06:47:29 being numb is a required thing for me, to deal with the office polotics Sep 05 06:47:51 My problem after 15 years in IT is I have trouble pretending I'm optimistic any more Sep 05 06:48:10 yeah, that happened to me too Sep 05 06:48:22 g00s: i thought about doing that. i race motorcycles, so plan was to travel the country in a 5th-wheel toyhauler and work from a hotspot connection Sep 05 06:48:46 had it fairly planned out, then realized i enjoyed having sex with the gf more than i liked being alone with truckers Sep 05 06:48:58 tophyr what sort of bikes? Sep 05 06:49:02 tophyr: you might be interested in this /. post then http://developers.slashdot.org/story/12/09/03/0118235/taking-telecommuting-to-the-next-level---the-rv Sep 05 06:49:13 ron_frown: www.chrissarbora.com, yamaha r6 Sep 05 06:49:28 use a modified weather balloon to boost your own microsats in low orbit, put enough you can just com link all the time no need for other connections Sep 05 06:49:38 nice Sep 05 06:49:44 I am in the market for a new bike Sep 05 06:49:59 the crossplane r1 is fucking badass, but I am over the crotch rockets Sep 05 06:50:07 ron_frown but you are whoring yourself out already ! Sep 05 06:50:15 I sat on the r1 and obviously I am too tall, I felt like I was going to endo it just sitting on it Sep 05 06:50:32 g00s - I am a good multitasker =) Sep 05 06:51:07 fixing shit ms broke in new mvc4, then I'm back on track for getting einsetzen back in progress Sep 05 06:51:37 lasserix: i've actually ALSO thought of that, lol... weather balloon hoisting a badass rocket could potentially put you past the karman line Sep 05 06:52:05 i would try to attach the weather balloons to the 5th wheel Sep 05 06:52:11 and you can even use android phones to coordinate the sat to stay in orbit for as long as it can Sep 05 06:52:12 like "Up" Sep 05 06:52:16 ron_frown: yeah if i was gonna get a bike for the street, tbh it'd be anything but a sportbike Sep 05 06:52:27 BMW F800GS = dream bike Sep 05 06:52:36 adventure bikes are where it's at Sep 05 06:52:41 my father in law as a r1100s Sep 05 06:52:44 totally Sep 05 06:52:50 its a nice compromise but I dont like opposed twins Sep 05 06:52:53 they just dont sound good =) Sep 05 06:52:59 tophyr did you see the reddit post about the guy who goes from like denmark to pakistan? Sep 05 06:53:12 it does sound ugly. like an oversized dirtbike Sep 05 06:53:19 but, tbh, it *is* an oversized dirtbike Sep 05 06:53:26 lasserix: i did not Sep 05 06:54:00 I think I am gonna fab up my own bike Sep 05 06:54:18 hehehe Sep 05 06:54:49 have my father in law fab me up a duc like tubular lattice frame, toss an 1125r motor, or one of those aprlia vtwins Sep 05 06:54:54 nice ohlin suspension Sep 05 06:54:57 and make it a streetfighter Sep 05 06:55:12 duc killer Sep 05 06:55:22 def go for the buell motor Sep 05 06:55:28 god damn they sound sexy Sep 05 06:55:42 aprilia, eh. i'll jizz my pants for the overall bike, but not the motor Sep 05 06:55:54 videos on youtube dont do it justice I guess Sep 05 06:56:06 my sv sounds better now than the videos I've seen of the 1125r with exhaust Sep 05 06:56:19 I was gonna buy a tuono v4 Sep 05 06:56:23 until I saw the pricetag Sep 05 06:56:38 lol. yeah Sep 05 06:56:51 i wanted to race an RSV4 when they came out Sep 05 06:57:00 $24k for the bike alone Sep 05 06:57:08 then realistically another 15 to build it into a racebike Sep 05 06:57:19 "pass. thanks tho" Sep 05 06:59:39 "Phoenix has lost its swing for a number of reasons. The city report on the golf program blamed the diminishing popularity of golf nationwide" … there really is a god Sep 05 07:00:53 cool, all oreilly ebooks 50% off this week Sep 05 07:03:36 how to send my context from an Activity to the Phonegap Plugin Class Sep 05 07:03:50 so anyway... any insight as to why the type argument on ActivityInstrumentationTestCase2 is required? is it *just* so that getActivity() et al can return T instead of Activity? Sep 05 07:04:01 c_nick: are you a native english speaker? Sep 05 07:04:28 no Sep 05 07:04:33 i talk english :D Sep 05 07:05:00 ok, i just wondered :) i've never used Phonegap so unfortunately i can't help answer your question Sep 05 07:06:58 * ron_frown is generally not a fan of engineering to lowest common denominator Sep 05 07:07:16 i'd honestly rather code both iphone and android variants from scratch Sep 05 07:07:21 not good for UX usually Sep 05 07:07:26 I mean best practices are vastly different rom platfrom perspective Sep 05 07:07:56 from Sep 05 07:09:50 that's what we do. the only code ios and android share is a web portion that in all practicality has to be online for business purposes Sep 05 07:10:15 far better product. Sep 05 07:10:58 it will get tougher though when you need a ios, android, and wp version. Sep 05 07:11:39 always good to have some fall back mobile web thing Sep 05 07:12:03 this is where mono's shit would be helpful Sep 05 07:12:08 one common codebase in c# or vb Sep 05 07:12:18 isn't it pretty expensive ? Sep 05 07:12:18 and then include it from UI built specifically for either platform Sep 05 07:12:21 yes =) Sep 05 07:12:23 I dont use it Sep 05 07:12:32 again wiht the absurd pricing Sep 05 07:12:37 its pretty cool, but not 1k cool Sep 05 07:12:45 uhhuh. shouldn't gravity:bottom on linearlayout mean that the elements in this linearlayout goes toward bottom? Not at up. Sep 05 07:13:48 is your linearlayout height wrap_content? Sep 05 07:14:09 tneva82 make sure layoutheight is matchparent Sep 05 07:15:05 it is Sep 05 07:15:13 match_parent Sep 05 07:15:46 it would align at the top if the container dimensions are small, ie wrapped Sep 05 07:15:48 odd thing is I have another similar set on lower that works Sep 05 07:15:53 I've ported a lot of C++ stuff that uses the SDL cross-platform library to Android...has been pretty easy Sep 05 07:15:57 post your code Sep 05 07:16:13 otherwise we're like monkeys in a dark room trying to hit a dartboard through a window Sep 05 07:16:19 *with darts Sep 05 07:16:37 yeah that is pretty easy c++ port Sep 05 07:16:46 easy like very little portijng involved Sep 05 07:17:13 I dislike a lot of the ui stuff in android... like theming is nice, but implemented, well... could be better Sep 05 07:17:35 I was thinking about going c/c++ and clutter, or c/c++ and qt Sep 05 07:18:17 http://pastebin.com/DunBLGuC <- that's the bugging part. Basically screen is supposed to have 3 pictures. Logo up, background in middle with 3 imagebuttons at the bottom part spread evenly and background at bottom with bunch more elements. It's the middle part that's failing. Sep 05 07:18:39 (pastebin seemed to screw up tabs a bit) Sep 05 07:19:08 yeah yeah dont worry Sep 05 07:19:17 you can also use pastie Sep 05 07:19:49 tablelayout is temporal. I also had trouble with left/right/center so used that to try to get some idea how it will look. Sep 05 07:19:49 tophry if you are travelling thru the country there's always: http://www.bangkokpost.com/news/asia/309900/japan-toilet-maker-unveils-poop-powered-motorbike Sep 05 07:20:36 god Sep 05 07:20:41 twitter just seems like such a waste Sep 05 07:20:48 I get what it does, and how it works Sep 05 07:20:51 just seems like 0 value to me Sep 05 07:21:23 The #1 use I get is the search for timely topics Sep 05 07:21:47 haha Sep 05 07:21:52 I built something that does that for me Sep 05 07:21:58 doesnt search twitter tho Sep 05 07:22:08 it searches any realtime datafeeds it can get its hands on Sep 05 07:22:10 tneva82 so you want a logo at the top a content pane in the middle and evenly spaced buttons at the buttom? Sep 05 07:22:47 I'm usually searching twitter for like 'admob broke' 'android console broke' etc. Sep 05 07:22:54 To see whether or not it's just me Sep 05 07:23:50 lasserix: logo at bottom, then there's picture at center with buttons supposed to be at the bottom of it and then there's picture at below with yet more GUI elements Sep 05 07:23:58 hmm lemme take screenshot Sep 05 07:24:05 might help to visualize it better Sep 05 07:24:09 yeah Sep 05 07:29:07 http://img339.imageshack.us/img339/4199/screenshotybs.png <- the 3 X + coloured things are the ones I'm trying to get at the bottom(there's line in the middle to show roughly where they should be). Those pics are just my temporal placeholders(I suck at drawing but didn't want to make guy do them spend time before I know this works) Sep 05 07:30:02 the color thingy is supposed to be evenly spaced and above the sidecode? Sep 05 07:30:08 *site code tool code Sep 05 07:30:25 slightly above. the middle picture ends up in the center line Sep 05 07:30:32 however I think I figured way to do this otherway around Sep 05 07:30:42 oh ok Sep 05 07:30:50 you can use a relativelayout Sep 05 07:30:55 with two linearlayouts Sep 05 07:30:57 pretty easily Sep 05 07:31:12 and use layoutweight=1 for each view inside the linearlayouts to make them evenly spaced Sep 05 07:31:49 If you still have trouble, letme know Sep 05 07:31:56 hmm not sure what that layoutweight is but I'll check it out Sep 05 07:32:07 it'll automatically space them Sep 05 07:32:20 to the ratios set by the ints Sep 05 07:32:37 realized I can simplify things by combining the center+pictures to one Sep 05 07:32:42 yeah Sep 05 07:32:56 well if you have more trouble let me know and ill post up something Sep 05 07:33:01 they were cut articially before I found out about the gravity thing Sep 05 07:34:13 is it possible to have a button over a preference? Sep 05 07:37:26 over a preference? Sep 05 07:40:54 tneva82_ check this out: Sep 05 07:40:55 http://pastebin.com/aFsTUKmE Sep 05 07:41:14 layout_weight applies to linearlayouts and will space them according to the ratios of their values Sep 05 07:42:28 hello, I am trying to create date-time picker dialog, I know I can do both separately but is it possible to be together in one fragment? Sep 05 07:43:08 holla. thanks. Think that will help me here big time! Sep 05 07:43:13 one sec Sep 05 07:44:51 tneva82_ here http://pastebin.com/TNgc48TE Sep 05 07:45:05 for your edit text and titles Sep 05 07:46:00 double yey Sep 05 07:46:02 notice that the first textview is matching whole parent (ie fills entire window) but the gravity is putting the content in top left whereas the textview beneath is wrapping content but using relativelayout's place in center Sep 05 07:46:22 anyways good luck Sep 05 07:46:47 yeah. this helps a lot. Now just need to do this for all 4 windows but that's easy enough now that I have one working. Sep 05 07:47:28 anyone has done date-time picker in one dialog? Sep 05 07:47:41 I like to use naming convention in xml to be initials of view type so you can use intellisense to your adv Sep 05 08:11:08 Hello! I have MyApp class which extends Application and remote serveice. When I bind to remote service (service runs in own process) MyApp recreates. is it expected behaviour? Sep 05 08:19:59 question about bitmapdrawble. After I enable antialiasing on a bitmapdrawable, the boundary of the image has somethings shaking. Why is that? Sep 05 08:20:03 how do i prevent notifications from a service getting dismissed automatically when the service stops? this behaviour started in ICS Sep 05 08:24:50 is it possible to put a button above a preference? Sep 05 08:27:00 lasserix thanks. it works beatifully :) Now the graphic guy just has to finalize the pictures(think first ones are tad too small in height) and client gets the functionality they asked for. Sep 05 08:28:55 do you know if android switchpreference has been backported? Sep 05 08:30:18 [10:29] juju827 Shynwei il est belge Sep 05 08:30:24 Ahh cool, right on! Sep 05 08:31:41 bad chan Sep 05 08:31:43 sorry Sep 05 08:31:45 :d Sep 05 08:31:54 No emoticons for you! Sep 05 08:32:03 Eklen: lasserix liked what you said :) Sep 05 08:32:22 but who is belgian, that's what i want to know :) Sep 05 08:33:08 #Belgique is on quakenet.org Sep 05 08:33:14 is hackkitten still alive ? Sep 05 08:44:33 What does a TwoStatePreference do? Sep 05 08:45:32 ...from oracle docs... But appearances can be deceiving. Java programming language enums are far more powerful than their counterparts in other languages, which are little more than glorified integers. Sep 05 08:47:35 What's the easist way to convert a string to something a switch statement can use? Sep 05 08:48:05 Integer.valueOf() Sep 05 08:48:09 :P Sep 05 08:48:24 hmm not a bad idea actually Sep 05 08:48:49 or, use a lot of if(){}else if(){}else if(){} Sep 05 08:50:24 or Enum.valueOf() Sep 05 08:50:34 o assume you know all the strings you might get already? Sep 05 08:50:34 im trying to make a settings.apk the is almost like ICS settings.apk Sep 05 08:50:47 why not use static ints with nice names Sep 05 08:51:06 But need to know how to put a button on the same line as the Preference Sep 05 08:51:13 and if its even possible Sep 05 08:51:34 most prefer to create an enum for a switch(string) idiom, I ususally else if the hell out of it Sep 05 08:52:13 Im working with a lower API Sep 05 08:52:28 yeh, i personally use else if Sep 05 08:52:37 in that situation Sep 05 08:52:41 And don't know if anyone has backported SwitchPreference Sep 05 08:55:17 Dont be tempted to switch on string.hashCode() because collisions Sep 05 08:56:29 saik0: it collides often? Sep 05 08:56:57 What is a TwoStatePreference? Sep 05 08:59:09 does anyone else code two languages often and get the syntax switched? Sep 05 08:59:11 rendar: I'm not at all familiar with the algo java uses for hashCode, but it's possible so just avoid it Sep 05 09:02:20 It may even perform worse than String.equals() comparison unless you're precompute hashes for known strings and comparing more than N times. In which case you have no business trying to match strings in the first place Sep 05 09:27:38 Hello what is the best way to create a design for different platforms (they have different resolutions, dpi etc...) Sep 05 09:28:38 Hire a qualified professional? Sep 05 09:28:53 no Sep 05 09:29:04 http://developer.android.com/guide/practices/screens_support.html Sep 05 09:29:23 thanks Sep 05 09:29:49 heh Sep 05 09:29:54 >.> my designer is asking :D Sep 05 09:29:58 and they got this link already Sep 05 09:30:02 he* Sep 05 09:30:24 Could you rephrase your question as to elaborate what "create a design" means? Sep 05 09:31:39 he is making the design of an application but he wants it to look good on different sizes idk whatever Sep 05 09:32:04 like he is doing graphic design? Sep 05 09:32:55 yes Sep 05 09:34:03 just he doesn't know how the layout is working in android.. same as html or something but never mind his problem xD Sep 05 09:34:18 http://developer.android.com/design/downloads/index.html Sep 05 09:35:30 I don't understand what you are asking, sorry Sep 05 09:35:49 thanks np Sep 05 09:56:26 can't this damn guy settle down on the UI look Sep 05 09:56:57 changed it yesterday like 4 times, now got it working on yet another and sure enough yet another change and AGAIN I have to figure out how to get them like he wants. goddamit. And do this for 4 different screens. Sep 05 09:57:37 do you get money every time he decides for another UI look? Sep 05 09:58:16 wish I did Sep 05 09:58:32 well, learn from this one ;) Sep 05 10:01:12 gah. now I have broken the xml file so that it crashes down when I try to view it Sep 05 10:01:17 humhum. wonder what that might cause it Sep 05 10:06:21 I'll kill that guy if he decides to reverse this decision Sep 05 10:06:35 this better be final! Sep 05 10:08:10 that guy has annoying "let's make things different from existing conventions just for sake of it" style Sep 05 10:09:20 Just tell him its a good philosophy because when users can't easily figure out how to use the app, it'll means less work for him to deal with in the future. Sep 05 10:09:21 goodluck! Sep 05 10:14:28 odd that the graphical layout view is showing it properly Sep 05 10:35:39 Hello. I'm very new to android development and I'm trying to follow this tutorial: http://www.vogella.com/articles/AndroidJSON/article.html - Here's some code: http://pastie.org/4667350 - The culprit line seems to be "client.execute(httpGet)". I'm running on OSX, Eclipse, AVD. Googling didn't help much, any hints? Thank you Sep 05 10:39:41 koichirose: that is not a very good tutorial Sep 05 10:40:09 koichirose: you need to do that on a thread (that's what "Caused by: android.os.NetworkOnMainThreadException" says) Sep 05 10:40:15 Use an asynctask or a loader. Sep 05 10:43:20 hm. Guess I have some studying to do. I already followed the official 'basic application' tutorial, now I was trying to actually build something. Do you guys have any hints about where to start? Sep 05 10:43:52 Try the samples and tutorials on developer.android.com, I guess. Sep 05 10:46:30 Thank you very much :) Sep 05 10:47:07 koichirose, you can pick a book to follow as well Sep 05 10:47:16 that will help you a lot as well Sep 05 10:47:46 hey guys Sep 05 10:47:50 something from Reto Meier Sep 05 10:48:07 hey all, does anyone have any idea why this app is crashing?: http://nopaste.dk/p14144 Sep 05 10:48:17 in the google maps app, they have an overlay button bar at the bottom, is there any way to move the google logo up so it's not under the bar? Sep 05 10:48:34 I'm trying to replicate i can't figure out how to move the logo up Sep 05 10:50:14 One last question: do I need to care about this? E/Trace(626): error opening trace file: No such file or directory (2) - googling did not help Sep 05 10:52:57 i have no idea why this app started to crash Sep 05 10:57:54 holy crap, this verge article on android tablets has about 1000 comments Sep 05 10:58:12 i can't remember the last time i saw a longer thread Sep 05 11:00:31 g00s: sounds like a comments section i don't even want to start reading :) Sep 05 11:00:43 its crazy Sep 05 11:01:04 i think the better comments got a '*', but still way too long to scroll :) Sep 05 11:19:04 how can i offset the google logo in google maps so its not covered by an overlaid button ? Sep 05 11:20:09 oh christ. now he decided that "let's change background picture a bit, have some stuff at bottom and rest at up". Just as I thought I had got his PREVIOUS redesign sorted out Sep 05 11:20:27 so let's see. 6h working on UI and the bloody thing isn't even close to being finalised. Nevermind actual functionality Sep 05 11:20:46 can't that guy design it properly once and then !"##¤!¤!"¤ settle on it Sep 05 11:21:59 lol Sep 05 11:23:08 Yesterday I made 3 versions, today 2 versions and now yet another redesign. Sep 05 11:23:29 >specification Sep 05 11:23:29 make one Sep 05 11:24:24 I'm not the one who designs the look. But that guy can't decide his mind and wants to see it on phone screen first Sep 05 11:24:39 All I can do is try to implement his vision Sep 05 11:24:43 that's his problem, not yours Sep 05 11:25:10 my problem is I have to redesign the goddamit xml file and figure out constantly new ways of how to position stuff Sep 05 11:25:22 and try to make sure xml file doesn't cause program to crash while at it Sep 05 11:25:42 would be soooo much easier if I could just settle on one design and do the functionality behind it done Sep 05 11:26:36 On the flipside, you'll be King of Layouts in no time. Sep 05 11:26:48 just charge him overtime Sep 05 11:26:51 I don't mind the agile approach, as long as all parties involved are aware of the costs. Sep 05 11:27:03 If I'm paid by the hour, knock yourself out. Sep 05 11:27:46 Maybe your designer should use one of those widget psd's and make a mockup that looks like the actual device (and then display that as a screenshot on the device). Sep 05 11:27:59 Seems to me your guy is just inexperienced with mobile. Sep 05 11:30:31 oh we all are. I started learning android programming couple months ago when I thought one program idea that could be useful. It has sorta expanded from that so we are learning as we go. Sep 05 11:31:07 before that I had been mainly doing website, command line c/c++ code and actionscript code for websites. Sep 05 11:31:40 Hey, when testing an APK on the device, where does the APK actually get pushed to? What folder? Sep 05 11:37:24 where can I find the most clear & useful infromation of Android Layout XML programming? Sep 05 11:37:41 I thought it should do : http://developer.android.com/guide/topics/ui/declaring-layout.html Sep 05 11:38:05 but it seems too abstract to make me understand anything useful Sep 05 11:38:19 i used to search google "android layout tutorial" Sep 05 11:38:39 but the tutorials are too scarce, providing few information Sep 05 11:39:18 I need to build some complex layouts with some overlapping views & view animations Sep 05 11:40:12 I can do that easily in iOS, but for Android, I have to take care of different resolutions. It looks so crappy in Higher-res Android phones while looking OK in Lower-res Sep 05 11:40:36 I don't know what should I do now Sep 05 11:40:41 I'm stuck Sep 05 11:41:30 Wish there is a ver very thorough tutorial, book or something explaining every aspect of Android Layout XML programming Sep 05 11:42:00 The Android official website API guide is Rubbish! Sep 05 11:42:29 its not Sep 05 11:42:40 if you wana do overlapping, look at FrameLayout or RelativeLayout Sep 05 11:42:53 android is a deterministic magic box and the only way to write something is with lots and lots of try&error :) Sep 05 11:45:10 OK… I wish I could do some layout the way I used to do in iOS, for example, putting a top bar & a bottom bar with backgrounds, no matter what resolution Sep 05 11:45:41 you can? just put it the layout in res/layout folder Sep 05 11:45:47 it will apply to all phone sizes Sep 05 11:45:58 to enable wifi i should use applicationcontext or normal Activitycontext ? Sep 05 11:46:32 Then I used to put custom image buttons with states in iOS, it has normal, highlighted, selected, disabled states. Different states could display different images Sep 05 11:46:59 http://developer.android.com/guide/topics/resources/drawable-resource.html#StateList Sep 05 11:47:04 Then I ended up writing messy thing with android statelistdrawable Sep 05 11:47:20 each button costs me 3 extra xml files Sep 05 11:47:42 c_nick getApplicationContext() should do well Sep 05 11:47:59 guys how can I create an emulator for nexus 7 ? Sep 05 11:48:11 considering to make buttons by coding in .java class instead of XML, I am surrendering Sep 05 11:48:26 you can do, but it's messier Sep 05 11:48:42 and I never succeed... Sep 05 11:48:52 thanks brickhead Sep 05 11:48:52 I suck at android... Sep 05 11:49:05 its not something you just pick up Sep 05 11:49:38 I want to pass an ArrayList as an argument for a fragment where foo is an enum. Can I use getIntegerArrayList/putIntegerArrayList? Sep 05 11:50:10 I guess what I'm really asking is is an enum equivalent to an int in java? Sep 05 11:50:25 don't think so Sep 05 11:50:52 okay what's the standard method to add empty space between 2 elements? Sep 05 11:51:13 i usually use margins Sep 05 11:51:35 or you could use a View Sep 05 11:51:36 me 2, i use margins, but when I move one element, then the whole family is going to move Sep 05 11:51:37 Sep 05 11:52:45 callumtaylor: not ViewGroup instead? Sep 05 11:53:02 to add empty space, you wouldn't need to Sep 05 11:53:08 i see... Sep 05 11:53:12 don't think you can instantiate a view group anyway Sep 05 11:53:18 you can only subclass it Sep 05 11:54:54 I hope this post solve my XML nightmare right Sep 05 11:54:54 http://stackoverflow.com/questions/5092649/android-how-to-update-the-selectorstatelistdrawable-programmatically Sep 05 11:55:49 callumtaylor: i would like to ask one more thing Sep 05 11:55:58 in the above post stackoverflow Sep 05 11:56:54 How could I program the part into a .class instead? Sep 05 11:56:55 Geez y o y do you want to do that in code Sep 05 11:57:18 that question doesn't make any sense Sep 05 11:57:33 I wish to do that in code because when I fetch images from the Internet I have to generate buttons by coding Sep 05 11:57:51 Oh, interesting Sep 05 11:57:53 I wish to make image buttons with those images fetched from the Internet Sep 05 11:58:36 I will have to deal it next when I am asked to make a Internet-driven image Gallery Sep 05 11:58:43 http://pastebin.com/qQ21d9hb Sep 05 11:58:49 download image -> extend gallery Sep 05 11:58:52 here's an example of what i do in on of my apps Sep 05 11:59:33 well. think I got the new layout desire sorted out. luckily this one was easier than the other 2. Sep 05 12:00:43 callumtaylor: your code makes me feel relieved so much now Sep 05 12:01:08 callumtaylor: i am making it now Sep 05 12:01:17 callumtaylor: thanks bro Sep 05 12:01:19 np Sep 05 12:13:16 Hi, I'm having some kind of race condition problem while using an Android Bitmap. I have a native C thread using lockPixels() to fill in a buffer with images, and using a GLSurfaceView with a GLThread which is rendering that bitmap as an OpenGL texture. Sep 05 12:13:46 Everything works nice, but sometimes the C thread gets stuck while trying to get the pixel address Sep 05 12:14:25 I have something similar to -> while(AndroidBitmap_lockPixels<0) ; Sep 05 12:14:59 sometimes the thread hungs there, as lockPixels() is always returning (ANDROID_BITMAP_RESULT_ALLOCATION_FAILED -3) Sep 05 12:15:11 any ideas? Sep 05 12:15:21 shall I add some mutex to the lockPixels? Sep 05 12:15:33 but i don't know what should I mutex in the Java GL thread... Sep 05 12:22:31 hi! how can i rotate the emulator -GalaxyTab 2.2 - under ubuntu 12.04? the 7 or 9 or ctrl/f11 or ctrl/f12 don't work Sep 05 12:33:46 anyone alive Sep 05 12:35:25 emulator set portait/landscape knowledge? Sep 05 12:35:51 cursor.getString(cursor.getColumnIndex(...)) is returning a value in the form of {null=}. What is the null= part, and how do I remove it? Sep 05 12:39:57 done! I'll kill that guy if he wants major redesigns after this Sep 05 12:40:08 (well okay maybe not. killing your boss is not best career moves I suppose!) Sep 05 12:41:01 Hey is it possible to make an app not appear in the app manager Sep 05 12:41:41 I know u can hide it from your launcher but i cant figure out how to hide it from the running processes Sep 05 12:42:08 tneva82_: nothing wrong with educating him, though :) Sep 05 12:42:34 educate me Sep 05 12:43:23 bonus from all this is improved layout know-how and also the layouts we got now are more robust on different screen sizes so all not in vain Sep 05 12:43:52 anyone ? Sep 05 12:45:27 jcm11215 looks like one cannot http://stackoverflow.com/questions/6556086/hide-the-application-in-application-manager-in-android Sep 05 12:46:01 that sucks thanks Sep 05 12:46:16 how about integrating an app with a rom? Sep 05 12:46:42 nvm that thread answers that question as well Sep 05 12:47:35 would you happen to know how to make an app uninstallable? Sep 05 12:49:19 you trying to make virus?-) Sep 05 12:49:33 my girl wants me to flash a rom to her phone and i want to put spybubble on there where she cant get it off Sep 05 12:49:52 I managed to make pretty annoying program when it simply refused to be shut down. Only way was to uninstall whole program AND shutdown the program Sep 05 12:49:55 she uninstalled it last time Sep 05 12:50:05 I bet she'll be ex-gf if she finds out :D Sep 05 12:50:23 shes almost there anyways Sep 05 12:50:33 caught her lying about where she was yesterday Sep 05 12:50:40 and calling her ex Sep 05 12:50:48 just want to verify before i ditch her Sep 05 12:50:53 but sorry, doubtful google allows developers to make uninstallable programs Sep 05 12:51:25 would be major nuisance to users if they would have to wipe the phone to get rid of programs Sep 05 12:51:51 i want to make it like a system app Sep 05 12:51:57 well if you need to spy on her like this just leave anyway. not relationship with solid fountation... Sep 05 12:52:01 the app can request admin permissions, then you won't be able to uninstall until the persmission is revoked Sep 05 12:52:06 its not possible for 3rd party devs. unless you can get some root access ( that's how some default apps are baked into the system and cant be removed) Sep 05 12:52:10 you want to wiretap your girlfriends phone? Sep 05 12:52:13 I'm sure that's illegal Sep 05 12:52:16 i got root access Sep 05 12:52:39 check out androidlost then Sep 05 12:52:50 it is illegal but i dont think shes gonna sue me Sep 05 12:53:06 no but if she did find out, and she would, she could press charges Sep 05 12:53:14 but she wont Sep 05 12:53:21 so you're gonna listen to her convos then what Sep 05 12:53:24 confront her im assuming Sep 05 12:53:31 then she'll know you've been listening in Sep 05 12:53:33 no confrontation Sep 05 12:53:51 why you assume she won't? Sep 05 12:53:57 so whats the point in listening in, in the first place Sep 05 12:54:03 just nice to know when someone is lying to your face Sep 05 12:54:04 afterall pretty much quaranteed compensation... Sep 05 12:54:18 because she has better things to do Sep 05 12:55:10 it's not exactly big time consumer... Sep 05 12:55:45 just thinking (haven't done that myself) - you could build the ROM with APK built in .. lock the bootloader in some form (so one cannot override your install) Sep 05 12:55:47 im not worried about it Sep 05 12:56:37 shes pretty computer illiterate she wouldnt know how to uninstall it if it wouldnt let her do it from the app manager Sep 05 12:57:13 i just want to name it as some system looking app and build it into the rom Sep 05 12:57:29 look I would forget doing illegal activity and just leave her. Even if you find out she wasn't lying here you'll just end up separated later anyway Sep 05 12:58:15 i really didnt come here for relationship advice lol just technical Sep 05 12:58:21 thanks though Sep 05 12:59:09 How about just asking her? Sep 05 13:00:36 jcm11215: please don't be a scumbag :( Sep 05 13:00:39 i asked her what she was doing in the town i saw that she went to, told her i was in the same area with a friend and saw her Sep 05 13:00:46 Hello, a horizonal linear layout with 2 elements. i set one elemet with gravity left and the other gravity right. should the by in opposite sides of the layout? Sep 05 13:01:06 shouldnt they be* Sep 05 13:01:08 she denied it said it must have been someone that looked just like her lol Sep 05 13:01:38 well with my advice odds are good you would end up in same situation but with likely law suit + payments if she finds out... Sep 05 13:01:46 socket: use a spacer element in the middle Sep 05 13:02:05 and you would get reputation for being scumbag if you do this. Sep 05 13:03:25 lov, which attribute should i set into the space element? i set it fill parent it pushed the right button out of the screen Sep 05 13:12:13 anyone know if setAlpha works correctly on SurfaceView ? Sep 05 13:13:22 how to prevent/remove older activities when new main activity is started (from home screen)? Sep 05 13:13:41 i tried finish() other activities, but then it finishes when i turn the screen around Sep 05 13:14:40 was looking at http://developer.android.com/guide/topics/manifest/activity-element.html#lmode too Sep 05 13:17:16 Can I use FragmentManager's findFragmentById and compare it with several of my fragment's .class to see which one is active? Sep 05 13:20:46 When I use replace and add a tag to a fragment, is that tag removed from the previously active fragment since it's being removed? Sep 05 13:30:51 Hi, the Play Store tells me that an app I developed is not compatible with my x86 tablet. However, I've sucessfully tested it on exactly this device. How do I fix this? Sep 05 13:34:59 werner291: do you use shared libs? Sep 05 13:36:16 do you use a something like the maps libraries? Sep 05 13:36:45 I don't thinks so, I'll check Sep 05 13:38:08 No, I don't use any Sep 05 13:38:14 *think Sep 05 13:38:21 take a look at what features play says that the app requires.; Sep 05 13:38:32 e.g. location, touchscreen, etc Sep 05 13:38:54 if the tablet doesn't actually have one of those features (e.g. telephony) but your app references it, it might be getting blocked for that Sep 05 13:39:04 in which case you'd need to add a line to your manifest saying that it's NOT actually required. Sep 05 13:39:22 http://developer.android.com/guide/topics/manifest/uses-feature-element.html Sep 05 13:39:29 is your minSdk higher than your tablet's API level? Sep 05 13:42:15 The developer console only says android.hardware.touchscreen, and it does have a touchscreen. I'll have a look at the sdk version, Sep 05 13:47:49 hmm, other than AdMob is there a way to get an income out of a free app? Sep 05 13:48:29 steady? if not then just ask for donations :) Sep 05 13:48:31 that's what I do Sep 05 13:50:14 people donate? Sep 05 13:50:15 socket: have a "premium" version, have an in-app purchase "donation" button, have in-app purchases period... Sep 05 13:51:51 I imagine one tenth of one percent donate. Sep 05 13:52:30 so one in a 1000? Sep 05 13:52:37 yes Sep 05 13:52:42 so i need a million downloads a month Sep 05 13:52:44 :) Sep 05 13:55:34 exit Sep 05 13:55:38 it depends what your app is Sep 05 13:59:05 i just found the worst courier ever Sep 05 13:59:28 "We have made two delivery attempts. The parcel will be held at our terminal for 5 business days, please email customerservice@canpar.com for pick up location." Sep 05 13:59:35 web tracking fail Sep 05 14:01:11 their goose was waylaid by a moose Sep 05 14:09:45 How does this give me not well-formed error? http://pastebin.com/NN2KKECf Sep 05 14:13:21 Anyone? Sep 05 14:13:26 I don't know, what's the error? Sep 05 14:13:51 it looks fine to me. Sep 05 14:14:19 The markup in this document (more stuff) Is not well-formed Sep 05 14:17:42 Anyone? Sep 05 14:19:41 Snoxie: clean and rebuild the project? :| Sep 05 14:20:33 Eclipse? Try Ctrl+A, Ctrl+C, delete, Ctrl+V Sep 05 14:20:41 lov: I already cleaned it, Sep 05 14:20:56 If that doesn't work, start rebuilding it one element at a time :/ Sep 05 14:22:04 It works now, a combo of keep cleaning and your advice HDroid! Sep 05 14:22:05 Thanks! Sep 05 14:24:40 Ahh nice Sep 05 14:24:45 Quirky Eclipse Sep 05 14:25:34 wtb multiple inheritance :x Sep 05 14:30:47 stork: http://developer.android.com/tools/sdk/ndk/index.html Sep 05 14:30:57 go wild and write some C++ code. Sep 05 14:31:01 oh my Sep 05 14:33:04 * Hodapp stabs C++. Sep 05 14:36:00 is it safe to have a dialogfragment hold a reference to an object (in my case, it's a PagerAdapter) and then call a method on it when the dialog finishes? or is the dialogfragment liable to get killed by android and recreated (thus losing this reference)? Sep 05 14:36:00 Hey guys Sep 05 14:38:34 i'm guessing i'd have to make the dialog hold a reference to a specific *fragment* instead and use that as a callback... Sep 05 14:39:40 I'm setting a touch listiner on a textView... but when I'll press the textView once it will be calling the listiner twice... any ideas? Sep 05 14:47:35 sasson: up and down event, probably. Sep 05 14:47:46 You'll want an onclicklistener, most likely. Sep 05 14:57:38 so there's no dev channel for Samsung TV dev? Sep 05 14:58:26 Sicp: you're probably in it. Sep 05 14:58:46 sasson: you're getting an event for touch down and touch up. Sep 05 14:58:50 HDroid, thanks, that was the thing Sep 05 14:58:50 Sicp: presumably you mean their legacy connected TV stuff, not their upcoming GoogleTV stuff? Sep 05 14:58:56 sup lov Sep 05 14:59:11 yes Sep 05 14:59:23 do they even have open development for that stuff? Sep 05 15:11:43 I have no idea Leeds, but developing for it is shit Sep 05 15:15:03 because you see I am having this problem.. http://pastebin.com/sCcp0fzf Sep 05 15:15:36 can't figure out how to bind my dynamically created divs (at lines 74 and 75) to get them to respond to the left key, or at least the enter key Sep 05 15:20:52 Hi all. Sep 05 15:21:08 I am newbie. I know, which is usually writing config application file? Sep 05 15:21:24 I am trying to reuse same fragement class and its layout in ViewPage as only data is different, Page count is decided at runtime. Sep 05 15:21:45 can't figure out how to bind my dynamically created divs (at lines 74 and 75) to get them to respond to the left key, or at least the enter key Sep 05 15:22:15 problem I am facing is only Fragment getting updated is the first one in the chain with last page data Sep 05 15:22:17 Anyone know why I can't use setAlpha on a FrameView has no effect? Sep 05 15:22:23 all other pages are blanks. Sep 05 15:34:38 Shouldn't the platform stats be updated by now? Sep 05 15:38:05 is there a way i can bring a view to the front of a framelayout? Sep 05 15:39:53 where is file written by config application? Sep 05 15:43:43 http://www.samsungdforum.com/upload_files/files/guide/data/html/html_3/apps_framework/display_images/display_images_appsfr_cover.html Sep 05 15:43:47 what, THE FUCK, is sf? Sep 05 15:45:13 In an Android layout, how can I have two views side by side where they will both stretch to be as wide as possible, but not overlap if their content is big. I'm using a RelativeLayout right now with the 2nd layout_toRightOf of the 1st, but if the 1st is too wide, the 2nd view gets shrunk to a tiny width and a super tall height. I don't really want a LinearLayout with equal weights, because then they'd both just get 50% of the width all Sep 05 15:48:31 Ark42: layout_weight Sep 05 15:49:02 guys, noob questions Sep 05 15:49:05 question* Sep 05 15:49:23 I have an activity that has an onTouch function, I want to then draw somethig on touch Sep 05 15:49:33 how do I access the Canvas? Sep 05 15:49:46 the only function I see is onDraw .. Sep 05 15:50:11 im just creating a test app, nothing fancy (obviously) Sep 05 15:50:19 canvas is not part of your activity.. it's part of a view Sep 05 15:50:30 yep, so i created a new class that extends View Sep 05 15:50:42 I have a member that is an instance of that class Sep 05 15:50:57 then, now im not sure Sep 05 15:50:59 lov - no, that means I have to fix the ratio for the layout at a certain value, it won't stretch when the activity is loaded with different content Sep 05 15:52:37 yeah then you just override onDraw Sep 05 15:52:45 the argument for onDraw is the canvas Sep 05 15:52:55 yep, but do I call that in my onTouch method? Sep 05 15:53:11 Naish: you don't. Sep 05 15:53:22 Naish: you'll call invalidate() or postInvalidate() Sep 05 15:53:27 that will force a redraw Sep 05 15:53:41 Ark42: not sure offhand, sorry. Sep 05 15:53:48 no. onDraw gets called for you when the system decides your view needs re-drawing Sep 05 15:54:02 http://pastebin.com/cbVYTifX Sep 05 15:54:04 you can trigger it by calling invalidate() Sep 05 15:54:04 ah right Sep 05 15:54:30 obv what I posted doesn't work, just where im at atm Sep 05 15:55:17 so, call invalidate in the onTouch method? Sep 05 15:55:30 I wonder my website open browser chrome and change agent to android then check button on site it work, but when I use browser on my android doesn't work, why? help me I am newbie. Sep 05 15:55:37 yeah Sep 05 15:55:37 Naish: yes. Sep 05 15:55:47 renderView.invalidate() Sep 05 15:55:54 thanks! Sep 05 15:55:58 Naish: mind you, your onTouch method should PROBABLY pass some information (such as where the user touched) to the view. Sep 05 15:56:11 lolgolflol: huh? Sep 05 15:56:19 Ah right, cool thanks. Sep 05 15:56:25 appreciated Sep 05 15:56:30 lov, understand me? Sep 05 15:56:49 my english skill is bad. Sep 05 15:57:01 hard to understand lolgolflol Sep 05 15:57:15 lolgolflol: I do not understand what you asked at all :( Sep 05 15:57:43 just a minute! Sep 05 15:58:06 oh, testing in your browser with android as the user agent works fine for your button.. but it doesn't work in the android native browser Sep 05 15:58:23 that's more of a javascript question perhaps Sep 05 15:58:32 make sure your onClick is as simple as possible Sep 05 16:04:35 whats better practice, defining different styles for different screensizes, or different layouts? Sep 05 16:04:38 (if the layout doesnt change) Sep 05 16:05:28 Generally speaking, is it worth using a holder pattern on strings instad of calling getString() in fragments and activities? Sep 05 16:05:42 ahhh I enough understand now. thank you. Sep 05 16:05:45 hehehe Sep 05 16:06:35 so i have a fragment that im trying to do something it becomes visible. problem is that onStart doesnt get called when i go back to that framgent bc nothing changed in the containing activity. so i thought onAttach would make sense, but dont see that get called when i go back either. How can i do something when the fragment is shown again? dont understand which lifecycle thing will tell me this.... Sep 05 16:06:44 something when it becomes visible* Sep 05 16:09:25 Hi! I get this runtime error "java.lang.NoClassDefFoundError: org.zeromq.ZMQ" while launching my app inside the emulator. I see that the zmq.jar file isn't inside the apk also if I have put them in the /libs folder and added in my eclpise project. Anybody have any suggestions? Sep 05 16:11:18 @luxurymode try and see if onResume gives you what you're looking for Sep 05 16:11:33 also onActivityCreated might do the trick Sep 05 16:11:37 nope, onResume isn't called bc the containing activity has never paused Sep 05 16:12:05 try calling onResume in the fragment Sep 05 16:12:11 huh? Sep 05 16:12:12 the fragment has its own onResume Sep 05 16:12:26 yeah i know Sep 05 16:12:30 you're not supposed to call those Sep 05 16:12:36 the system calls them at certain points Sep 05 16:12:39 not call but just override Sep 05 16:12:50 and onResume of a fragment gets called when the containing activity is resumed Sep 05 16:13:04 i did override i dont see onResume get called, which, as i explained, makes sense Sep 05 16:13:21 same reasoning applies to onActivityCreated Sep 05 16:13:35 the only way this will work, most likely is by using onBackStackChanged listener Sep 05 16:16:20 you probably have some other problem then. Sep 05 16:17:15 pretty standard, really. one actiivity, many fragments being added and popped... Sep 05 16:19:00 man audible's site is fucked Sep 05 16:27:31 Hi! I get this runtime error "java.lang.NoClassDefFoundError: org.zeromq.ZMQ" while launching my app inside the emulator. I see that the zmq.jar file isn't inside the apk also if I have put them in the /libs folder and added in my eclpise project. Anybody have any suggestions? Sep 05 16:28:32 Taking picture with camera. I have displayOrientation set to 90. I'm taking the photo with phone orientated to portrait but the images are being written landscape.. anyone know how i can have them written out properly? Sep 05 16:34:37 Hi everyone. I bought my HTC One S yesterday. today I rooted the device, everything seemed to work great. but after a few hours my wifi was not working anymore, even mac address was not to be seen. So I tried to flash it using an RUU, but it failed. right now my device displays a recovery like meny, with the only message "RUU update Fail!". Which version do I have to flash now? It's a european device (Belgium) Hboot is 1.13.0, radio is 0.16.31501S.17_2. Tha Sep 05 16:35:03 McSalty: -> #android-root Sep 05 16:36:14 thank you evancharlton Sep 05 16:37:42 Anyone know why when I take pictures with camera i portrait then write them to disk they're coming out sideways? Sep 05 16:41:58 Anyone knows why when I import jar it's not added in the apk? Sep 05 16:42:43 yuribit: look at your logcat when the apk is being installed. Specifically, look at the DexOpt logtag Sep 05 16:43:20 Hello. I have an ActionBar with some tabs. each tab is bounded to a fragment so by navigating from tab to tab I am viewing a different fragment. I want to be able to determine the screen orientation when entering a specific tab, and when I'm navigating away from this tab I want the screen orientation to be controlled just as it was before the programatic change of orientation. Any Idea? Sep 05 16:52:30 evancharlton, there isn't Dex0pt logtag Sep 05 16:55:06 TachyonDev2: in what way? If by "fucked up" you mean "loading correctly" I'm not seeing the problem. Sep 05 16:55:15 evancharlton, it's right that the jar file is not included inside the apk? Sep 05 16:55:34 lov: since that email went out this morning about the sale Sep 05 16:55:45 yuribit: DexOpt, not Dex0pt Sep 05 16:55:47 been getting http errors, hanging, etc Sep 05 16:56:13 have you considered that we just don't like you in particular? Sep 05 16:56:32 hah Sep 05 16:56:45 are you looking at the mobile site or the main site? Sep 05 16:56:49 main site Sep 05 16:57:31 its doing better than it was for sure Sep 05 16:57:38 Http/1.1 Service Unavailable Sep 05 16:57:42 was gettings those after the email Sep 05 16:57:47 ryanm, is the same there isn't any Dex* logtag Sep 05 16:57:48 * lov shrugs Sep 05 16:57:53 main site isn't my department Sep 05 16:57:57 indeed Sep 05 16:58:09 lov: so when are we getting an android update? Sep 05 16:58:19 I don't know, when are we? Sep 05 16:58:27 maybe you should ask morrildl when Klondike is coming out Sep 05 16:58:44 oh that is a good question Sep 05 16:58:45 :) Sep 05 16:58:50 indeed Sep 05 16:59:41 We're sorry, there's been a system error. Please try again. If you see this message more than once, there may be a problem with the Website, so please check back later. Sep 05 16:59:52 thats when i tried to buy one of the sale books Sep 05 17:00:48 and it keeps telling me i have an empty shopping cart when i dont Sep 05 17:00:54 http://www.audible.com/pd?asin=B005R35BMW Sep 05 17:01:08 frankly I'd say that it's doing you a favor on that one. Sep 05 17:01:16 lov: i figured you would Sep 05 17:01:29 project->clean delete the R file, how do i get it back? i cant compile now :/ Sep 05 17:01:38 It's generated when you compile Sep 05 17:01:38 socket: the R file is automatically generated on compile. Sep 05 17:01:45 See if you have any errors in your res directory, manifest, etc. Sep 05 17:03:12 TachyonDev2: I passed a message off; if there's widespread issues for customers then klaxons will have gone off and we'll already be working on it. Sep 05 17:03:23 Until then, I'll remain with my "we just don't want your money jared" theory Sep 05 17:03:55 indeed Sep 05 17:05:27 lov, ive downgraded the project build target from android 4 to 2.2, and now my layouts contain errors of this kind: no resource identifier found for attribute columnCount ; does that make any sense? Sep 05 17:05:53 why did you downgrade the target? Sep 05 17:06:20 the app didnt run on a 2.2 machine for some reason Sep 05 17:06:42 Keep the target high, unless you dont plan on supporting new devices Sep 05 17:07:05 You can set the target high and still be able to run on 2.2 devices Sep 05 17:07:31 As for it not running on 2.2, it will generate an error, probably an exception when it doesn't run Sep 05 17:08:17 ok, the errors remain even when i put it back up to android 4.0 Sep 05 17:08:22 error: No resource identifier found for attribute 'columnCount' in package android Sep 05 17:08:28 any way to make fastscroll include scrolling to the header? Sep 05 17:08:34 are there a major share of -2.2 devices? Sep 05 17:08:35 instead of stopping there? Sep 05 17:08:51 or should i say <2.2 Sep 05 17:30:20 rynkan: http://developer.android.com/about/dashboards/index.html Sep 05 17:39:26 Guys, how do we create a Nexus 7 emulator Sep 05 17:40:48 brickhead, there's a 7" emulator skin/profile you choose Sep 05 17:40:55 together with API level 16 Sep 05 17:41:04 open notepad and type make Nexus 7 Emulator save it as N7E.bat and run it Sep 05 17:41:34 Create an emulator with the same resolution, density, etc as the nexus 7.. That's as close to a "nexus 7 emulator" you're gonna get Sep 05 17:42:03 and when u done, print it! Sep 05 17:42:14 ^ Sep 05 17:43:11 brickhead, it's called WXGA800-7in ;) Sep 05 17:43:30 Lloir: are you sure I was think I should save it as makefile and then run make on its ass Sep 05 17:43:41 Mavrik: thanks, will give it a try Sep 05 17:43:41 :P Sep 05 17:50:47 hi Sep 05 17:52:12 Hi! I extended a class from Application. Is it safe to make a webserivce call within this class? Sep 05 17:55:15 define safe Sep 05 17:57:31 define "within this class" Sep 05 17:57:42 do you mean in onCreate, or do you mean in some artibrary method? Sep 05 17:57:51 i'm trying to maintain a list of Items (a custom object) between activities in my app Sep 05 17:57:52 if you're making networking calls on the main thread, please don't do this. Sep 05 17:58:09 is it best to maintain this list as a singleton, or as a global variable in Application Sep 05 17:58:12 ? Sep 05 17:58:22 SimonVT: would not crash the application or give unexpected results. Sep 05 17:58:28 I am trying to use ViewPager to show three different pages/tabs of same Fragment class and its layout but for some reason only 1st page/tab is rendered and all other tabs are blanks. any idea? Sep 05 17:59:31 lov no I am not doing it on the main thread, in some arbitrary function Sep 05 17:59:44 1st tab contains data which is belongs to last tab. Sep 05 17:59:48 I'm worried about persistence between sessions Sep 05 18:00:15 basically, i'd like to maintain this list if the user switches out of the app, comes back, etc. Sep 05 18:00:17 vudu: then it would be safe, I'm sure. Sep 05 18:00:20 or closes it completely. Sep 05 18:01:40 HorizonXP: I am doing what you discribed. If your application is on stack you will be able to access the objects. If you need persistency you need to write it on the disk. Sep 05 18:02:17 vudu: but what happens if my application is still running but no longer on the stack? Sep 05 18:02:31 i.e. the OS decides to garbage collect. Sep 05 18:03:35 If the system reclaims your process, any singletons or static variables are gone Sep 05 18:04:18 SimonVT: i'm assuming there's some event or intent I can watch for, before that happens? so i can save data as needed? Sep 05 18:04:40 OS doesnt collect it if it has a referance. as SimonVT said if it gets claimed your app would be shut down. Sep 05 18:05:03 If any activities are still on the stack they'll get onSaveInstanceState called Sep 05 18:05:05 HorizonXP: you need to synchronize if with disk all the time Sep 05 18:05:23 If none are, tough luck Sep 05 18:06:25 so could I declare a singleton class, and then watch for onSaveInstanceState and save it as required? Sep 05 18:08:01 or should I just go the Application global variable route? Sep 05 18:08:09 I wouldn't trust onSaveInstanceState if the info is crutial. Sep 05 18:08:34 hmm... Sep 05 18:09:34 but try to save it to the disk as it changes. Sep 05 18:11:04 ok, so I think I'm going to extend Application, add some methods, and have it save to persistent store as required. Sep 05 18:12:01 actually Sep 05 18:12:04 might go singleton Sep 05 18:13:01 looks like that's what the SDK docs suggets Sep 05 18:15:16 HorizonXP: in order to implement a "current logged-in user" concept i debated the exact same and went with extending Application Sep 05 18:15:48 i am however revisiting that to see if there's a way i can compartmentalize that even further Sep 05 18:15:56 Singleton would be un-compartmentalizing it further Sep 05 18:16:03 tophyr: even tho the docs say a singleton may be a better approach? Sep 05 18:16:07 i don't think that'd be the ideal for oyu Sep 05 18:16:25 i read that too and don't see how they come to that conclusion, tbh Sep 05 18:16:46 Singletons don't really play very well with the Android systems at all, at least in how i see them Sep 05 18:17:06 you'll have to have some object somewhere with access to a Context to persist the information, in case your process gets killed Sep 05 18:17:36 Application is *basically* a singleton with Context access, at least Sep 05 18:18:33 well, the only persistent things i need to maintain are: 1) User object 2) list of Items Sep 05 18:19:10 currently, the User object is recreated each time from a stored Facebook access_token Sep 05 18:19:54 I'm still unclear about whether I need an Application class Sep 05 18:20:00 because yeah, i have several activities Sep 05 18:20:14 but there is a clear flow for how you get to them Sep 05 18:20:25 so I'm transferring data between them via Intents Sep 05 18:20:35 my application class has nothing to do with how i reach activities Sep 05 18:20:36 Good afternoon all. When using android tools r21preview3, what's the magic incantation needed to get the hardware control and dial pad buttons to be displayed in the AVD emulator? Sep 05 18:20:43 we still use intents for all inter-activity communication Sep 05 18:21:00 tophyr: so then what do you use Application for? Sep 05 18:21:15 it was just easier to have DSApplication.getLoggedInUser() than to pass around the current user in every intent ever Sep 05 18:21:16 tophyr: currently, my objects are created in MainActivity, and transferred accordingly Sep 05 18:21:36 DSApplication then owns the responsibility for persisting and loading the logged in user as required Sep 05 18:22:10 there are several entry points into my app, so having one activity be responsible for all the setup isn't really possible Sep 05 18:22:27 Hi, I have several image buttons with bg src initialized in my xml Sep 05 18:22:28 really, each activity should be almost standalone Sep 05 18:22:54 I noticed that the bg image does not fill up the bounds of imagebutton Sep 05 18:23:09 but if I do it in java code it works fine, why is there a difference? Sep 05 18:23:30 tophyr: yeah, that's really what i'm trying to do, have each standalone. as it stands, they're not, as they're tied to data being transferred via intents. Sep 05 18:23:46 tophyr: so I feel like singletons would help me achieve what I need. Sep 05 18:25:06 it would until your process gets killed Sep 05 18:25:13 then your persistence goes away and you start fresh Sep 05 18:25:22 lazy loading singletons Sep 05 18:25:24 rocket science Sep 05 18:25:37 so I have a image button , if I set the bg src in xml, there's extra space, if I set it in java code, it fills up the bounds nicely Sep 05 18:25:43 extending Application gives you that singleton availability, as well as the ability to persist according to life cycle Sep 05 18:26:08 every activity has a getApplication() method that gives you access to it Sep 05 18:29:10 should there be a difference between setting bg src in xml and in java? Sep 05 18:29:27 in my case I must set it in xml Sep 05 18:29:46 calvinchan: paste up the code you're using to set it, via both xml and java Sep 05 18:29:49 gist.github.com Sep 05 18:30:08 i'm pretty sure i went through the same thing, i'll take a peek at what's diff with my buttons Sep 05 18:30:10 one sec, I will paste bin it Sep 05 18:32:51 I wrote a filemanager with AlertDialog.Builder, can I add icons to the items somehow? If not, what else should I use for that? Sep 05 18:33:25 tophyr: http://pastebin.com/eFAYiT3V Sep 05 18:34:00 I think I might know where the problem is, could it be because I use a xml to define the states for this image button? Sep 05 18:34:19 ah. i don't think you're setting the actual background, in the xml Sep 05 18:34:21 let me double check Sep 05 18:35:30 http://pastebin.com/A1fjathq Sep 05 18:35:40 this xml defines my states of button Sep 05 18:36:05 calvinchan: try android:background="@drawable/hellobutton" instead of android:src Sep 05 18:36:19 tophyr: ok let me try Sep 05 18:37:26 has anyone ever successfully compiled an arm binary on say an ubuntu arm qemu and had it run correctly on an android device? Sep 05 18:39:03 C0deMaver1ck: you mean selfhosting arm development? Sep 05 18:41:16 tophyr: works now! why is that? Sep 05 18:41:21 why can't I use src? Sep 05 18:41:28 tophyr: actually I'm wanting to compile node.js for ARM Sep 05 18:41:45 so I can write code on the go, as I don't have a laptop Sep 05 18:41:47 calvinchan: an ImageButton has two images it can be set. src is kinda like "text" for a normal Button Sep 05 18:41:55 background is, well, background :) Sep 05 18:42:15 C0deMaver1ck: interesting, didn't know node.js was a compiled thing Sep 05 18:42:29 well, the interpreter which is v8 is compiled Sep 05 18:42:36 the js you run on it isn't Sep 05 18:42:42 ah, ok that makes more sense Sep 05 18:42:54 nodejs is basically v8 with libraries Sep 05 18:43:30 hmm. well i dunno if they are at all sufficient for your goals, but there are a few fledgling android ide's available on play store Sep 05 18:44:09 nah, right now I'm just wanting to get the node binary running Sep 05 18:44:33 and i would imagine that if you have the tools to compile your code for x86, it wouldn't be much trouble to tell the compiler to build an arm binary Sep 05 18:44:50 whether it will run on arm or not, i'm not sure, due to library reqs and all.. clueless as to the situation Sep 05 18:45:00 hmm, good I dea, I didn't think about cross compiling Sep 05 18:45:18 that's how they build android, after all ;) Sep 05 18:45:19 I was thinking I'd have to compile on ARM Ubuntu or something of the sort Sep 05 18:45:42 * C0deMaver1ck facepalm Sep 05 18:45:53 I've built aosp before, I should've thought of that Sep 05 18:45:54 nah, the arch you're compiling on and the arch you're compiling for don't have to have anything to do with each other :) Sep 05 18:46:51 i've always been curious to try to get android to build on android.. but i'm far too lazy and not nearly masochistic enough Sep 05 18:47:07 haha Sep 05 18:47:09 aosp takes 252 minutes to build on my workstation Sep 05 18:47:10 bet that'd be fun Sep 05 18:47:17 pretty sure it'd take a year to compile on my Transformer Sep 05 18:47:25 It took about 30 minutes on mine Sep 05 18:47:34 well, you sir, are a dick. lol Sep 05 18:47:35 but I've got 16 gigs of ram, and an 8 core amd bulldozer Sep 05 18:47:41 tophyr: :P Sep 05 18:47:50 yeah, i've got an 8gb dual-core MBP Sep 05 18:48:00 not slow, but not an os-building workhorse Sep 05 18:48:05 yeah Sep 05 18:48:11 -j 16 is nice ;) Sep 05 18:48:16 hehe Sep 05 18:48:42 i dreamt for a while about putting together a 64gb quad-core i7 box Sep 05 18:48:50 :O Sep 05 18:48:57 my mobo doesn't go about 32 Sep 05 18:49:01 then realized that i have better things to spend $3k on than a project i don't even contribute to Sep 05 18:49:02 *above Sep 05 18:49:11 lol Sep 05 18:49:21 I spent about $500 on all the hardware Sep 05 18:49:29 there are apparently intel boards that can take up to 192gb of ram Sep 05 18:49:31 then spent another $500 on triple monitors Sep 05 18:49:48 the i7 can only address 32gb at once, but that just means "in one array iteration" Sep 05 18:50:25 so all 64 woulda been usable. i'd just mount the code tree into a 30gb ramdisk, and let it fly Sep 05 18:51:10 SSD build partition? HAH. DDR BUILD PARTITION Sep 05 18:51:34 omfg Sep 05 18:51:43 * C0deMaver1ck wants Sep 05 18:51:48 right :) Sep 05 18:51:50 wife would kill me :/ Sep 05 18:52:03 surprisingly, 64gb of "slow" ram was only $300 on newegg Sep 05 18:52:17 as if PC-1033 is "too slow" :P Sep 05 18:52:28 * p_l recently found a computer with 288GB of ram going without min. price Sep 05 18:52:45 jesus Sep 05 18:52:49 dang Sep 05 18:52:54 1250 kg mass, two computers... Sep 05 18:53:03 could put my entire hard drive into ram on that thing and STILL have more free ram than my entire computer has Sep 05 18:54:13 tophyr: looks like people have built node for arm with the intention of using it on the raspberry pi Sep 05 18:54:23 so android shouldn't be difficult at all Sep 05 18:55:45 wewt Sep 05 18:56:13 I've already written a markdown editor for android Sep 05 18:56:28 maybe I should just add js syntax highlighting and use that :p Sep 05 18:58:15 cool, runs android http://cubieboard.org/ Sep 05 19:16:30 farmville 2 ftw Sep 05 19:19:46 Please help me fix the error in the code here - http://www.fpaste.org/HzoM/. Sep 05 19:19:47 The error I am gettting is: Sep 05 19:19:47 09-04 08:32:40.524: E/AndroidRuntime(644): FATAL EXCEPTION: main 09-04 Sep 05 19:19:47 08:32:40.524: E/AndroidRuntime(644): java.lang.NullPointerException Sep 05 19:19:59 Here are lines that give the error. Sep 05 19:19:59 editTextProducer = (EditText)findViewById(R.id.editTextProducer); Sep 05 19:19:59 producer = editTextProducer.getText().toString(); Sep 05 19:19:59 Private String fullname = "Name: "; Sep 05 19:19:59 Private String ConcatFixedTextsValue = fullname.concat(producer); Sep 05 19:20:00 I also get the error when I used "Private String ConcatFixedTextsValue Sep 05 19:20:01 = fullname + producer;" Sep 05 19:20:03 editTextProducer is a "text" entered by a user via an input field. I Sep 05 19:20:05 can print its value on console using Log.d() but I can't concatenate Sep 05 19:20:07 it with another string. I would say it's the variable that is null Sep 05 19:20:11 (but prints out the entered value via a console). Sep 05 19:20:13 Kindly help. Sep 05 19:20:36 you should place the error in a fpaste too. that's hard to read Sep 05 19:22:17 which line exactly causes the exception? Sep 05 19:23:43 jui-feng, Private String ConcatFixedTextsValue = fullname.concat(producer); Sep 05 19:23:56 and Private String ConcatFixedTextsValue Sep 05 19:23:56 = fullname + producer;" Sep 05 19:24:12 Both of them are the same. Sep 05 19:26:57 lov: thx! Sep 05 19:27:41 log at http://www.fpaste.org/VvdB/ Sep 05 19:27:43 sorry, it appears like that line of code is not in the fpaste you gave.. What is "Private"? Can you just capitalize the p in "private"? anyway, if this is a field declaration for a class, you should probably assign the values somewhere else, like in onCreate or onClick. Sep 05 19:27:47 ah, a new paste.. Sep 05 19:28:45 none of your fpaste links have a fullname variable Sep 05 19:32:28 is the play store download counter stuck for anyone else, even though developer console shows that it should have updated 3 or 4 days ago? Sep 05 19:32:32 jui-feng, i only used that as an example. here is the code - http://www.fpaste.org/jbhE/ . The problem is with line 108. Sep 05 19:32:34 ConcatFixedTexts.setText(FixedText1Value + producer + FixedText2Value); Sep 05 19:33:10 other files remain the same!! Sep 05 19:33:43 you use the ConcatFixedTests field before you assign it a value Sep 05 19:37:55 thanks; it was supposed to be "ConcatFixedTexts = (EditText)findViewById(R.id.ConcatFixedTexts); Sep 05 19:37:55 ConcatFixedTexts.setText(FixedText1Value + producer + FixedText2Value);" Sep 05 19:38:19 hello everyone Sep 05 19:39:18 im looking for any tutorials on integrating android apps with Google Cloud Storage Sep 05 19:39:26 and found nothing so far Sep 05 19:39:32 any help? :) Sep 05 19:43:38 Is there a way to view general google play stats? ie total apps, highest downloaded apps etc? Sep 05 19:45:02 I'd love to get involved in opensource contributions, but i have a tough time finding projects to commit to. The ones that are very active seem kind of daunting and i have no idea where to start. Also, those projects seem to usually be in very good shape with a lot of committers so im not sure where there is to contribute. And the small projects that arent active just don't seem especially interesting to me. I know some of this Sep 05 19:45:02 sound really stupid, but just wondering if anyone has any thoughts Sep 05 19:46:26 luxurymode: you'll have to find a project that resonates with you; we can't select that Sep 05 19:46:47 https://www.youtube.com/watch?v=xRGyzqD-vRg&feature=plcp Sep 05 19:46:49 2 projects that come to mind, which need serious love are inkscape & gimp Sep 05 19:46:50 that might help Sep 05 19:47:02 g00s, thanks appreciate it Sep 05 19:47:24 Get involved in some open source projects you use yourself, and you feel are missing features or have bugs that affect you Sep 05 19:47:36 make your own open source project Sep 05 19:47:40 It's easier when there's a "point" in contributing Sep 05 19:48:09 lethjakman, yeah but im more interested in learning from people smarter than me so id like to work on a project with others already involved Sep 05 19:48:31 luxurymode: you can start off by asking what needs to be done; could be document fixes, etc. in time move on to bigger responsibilities. be easy to work with. Sep 05 19:48:43 luxurymode: is this an android thing or all around? what kind of experience do you have? Sep 05 19:48:49 SimonVT, thought about contributing to your android-menudrawer Sep 05 19:49:02 Oh nice Sep 05 19:49:04 g00s, right that sounds good Sep 05 19:49:11 Can I ask what you had in mind? Sep 05 19:49:16 also, i prefer scala or java projects Sep 05 19:49:41 SimonVT, haha nothing in specific yet, except maybe fixing some of the gesture stuff. the sliding to open the menu seemd a bit off in some of my tests, but could just be me Sep 05 19:49:51 lethjakman, mostly java/android/scala Sep 05 19:50:40 Yeah, it can be kind of a hassle to get it right Sep 05 19:50:45 luxurymode: https://en.wikipedia.org/wiki/List_of_open_source_Android_applications Sep 05 19:51:07 since you're in an android irc, I'll assume you would enjoy something android. Any of those would be great! Sep 05 19:51:56 ah thanks lethjakman Sep 05 19:52:36 oh no. that menu thing again. Sep 05 19:52:59 ^_^ Sep 05 19:53:40 What would be the best way to download bought content to an app? Sep 05 19:55:59 also, id love to contribute to stuff i use a lot, like ABS, but im not sure where to even start. going through the list of open issues wasnt very fruitful, at least for me. the issues were either a bit beyond me or wasnt clear whether the issue was valid. i guess its tough to just contribute just for contributions sake. i should, as recommended, really find out what maintainers want... Sep 05 19:56:49 luxurymode: again, ask the maintainers where the project needs help. maybe you could triage bugs Sep 05 19:57:04 just message them on github or whatever? Sep 05 19:57:21 you might need to follow up to get more specifics, close them if they are bs, etc Sep 05 19:57:34 then start working on them :) Sep 05 19:57:59 right Sep 05 19:58:07 thanks g00s, really appreciate it Sep 05 19:58:16 ;) Sep 05 19:58:19 SimonVT, where does menudrawer need help, if anywhere? ;) Sep 05 19:58:28 ABS is kinda nice to get into. It teaches you a lot about how the framework works, as well as caveats when it comes to compatibility Sep 05 19:58:53 hm Sep 05 19:59:19 SimonVT, right. ive been pouring over the source for a while now for ABS Sep 05 19:59:27 learned so much just by reading the code Sep 05 19:59:37 but still no sense of where to contribute or whatever Sep 05 19:59:52 When I animate the drawer, the last few pixels take kind of a 'long time' cus of the interpolator Sep 05 20:00:07 And it's not noticeable for the user if it's 3 pixels from its final position, or at its final position Sep 05 20:00:31 So I want to add so it acts as if it's at its final position, even if it's a few dp from it Sep 05 20:00:39 Like how ViewPager does it Sep 05 20:01:06 With its CLOSE_ENOUGH constant Sep 05 20:01:24 You can implement that :p Sep 05 20:01:49 ah ok Sep 05 20:01:51 that sounds good Sep 05 20:01:53 hehe Sep 05 20:03:06 Right now, if the drawer is not completely shut I intercept all touch events on the content. It just seems unresponsive if I intercept them when it's only a few pixels from its final position Sep 05 20:04:55 But it needs to be done when it's opening as well, since a tap on the content when it's completely open will close it Sep 05 20:04:57 What are the recommendations regarding keystore password? I mean, should the password be part of the automated build process? If yes, then any dev will have access to it (is it ok?) If not, how can I still have an automated build process? Sep 05 20:04:59 oh i see, so you wanna stop intercepting when its close enough in other words? Sep 05 20:05:21 Cyril's article was terrific. lots of great info Sep 05 20:05:56 i have to wonder, if google put that much effort into documenting their UI stuff, if apps in general would have been much better on this platform Sep 05 20:06:30 sure lots of really smart people like Cyril will get it, but many people need more help. Sep 05 20:06:50 wat Sep 05 20:07:00 what specifically are you referring to Sep 05 20:07:11 http://android.cyrilmottier.com/?p=658 Sep 05 20:07:33 SimonVT linked to this above Sep 05 20:07:43 luxurymode: If it's within a few pixels or either closed or open, I want it to act as if it's closed or open Sep 05 20:08:15 ok, i think i understand Sep 05 20:08:56 I'll pm you Sep 05 20:09:04 yeah, that'd be good, thanks Sep 05 20:17:41 why would moto introduce their new razr right before the iphone 5 … STUPID Sep 05 20:23:01 well that's better than introducing it AFTER the iphone when everyone will just go ಠ_ಠ Sep 05 20:23:43 BlackYue: That's a good question. Sep 05 20:24:03 "Finally, Motorola has made a commitment to bringing out developer devices for those who wish to tinker with Android." +1 Sep 05 20:24:10 its all about the kindle fire Sep 05 20:24:11 BlackYue: that's also kind of up to you to answer. How far do you need to go for security in your org? Sep 05 20:24:15 right lov? Sep 05 20:24:19 no comment. Sep 05 20:24:38 i hope lov isn't working for the army of darkness Sep 05 20:24:48 BlackYue: if your company is large enough to have a security department, they should probably be the ones that own the key and sign release builds. Sep 05 20:25:09 otherwise, you might want to security the key on the build server such that only a few trusted users have access Sep 05 20:25:23 "Android is now seeing 1.3 million activations per day, 70,000 of which are tablets. " Sep 05 20:26:29 omg, this is hilarious Sep 05 20:26:31 "Well, here’s the fun part — the manufacturer of the iPhone 5 knockoff, GooPhone, has reportedly patented the design and is warning Apple that they will sue them for patent infringement in China, if the upcoming iPhone 5 resembles their newly patented design. Sounds backwards? Here’s the logic: because the GooPhone was released first and was successfully granted a patent on their design, anything that comes after is by legal Sep 05 20:26:32 definition a copy infringing on said design patent (and possibly trade dress)." Sep 05 20:26:56 i almost snarfed up my lunch, thats so funny Sep 05 20:29:11 is the play store app download counter stuck for anyone else? Sep 05 20:29:16 well, as the late jobs said, he was willing to go full-scale patent war over this Sep 05 20:29:29 we're seeing what that's like Sep 05 20:29:50 the usual methods of "here's 5 billion, are we friends again" did not work Sep 05 20:29:53 wait, the new moto razrs are all running 4.0.4 ? Sep 05 20:29:59 * g00s facepalm Sep 05 20:30:52 alankila: yeah. in this case its pretty funny though Sep 05 20:31:33 g00s: LOVE IT Sep 05 20:32:01 g00s: not too surprising. Sep 05 20:32:02 :) Sep 05 20:33:47 Why would Apple want to copy them anyway? Sep 05 20:34:11 g00s: do you have a link to that Sep 05 20:34:18 I feel like I'm missing something. Sep 05 20:34:27 i can't seem to install the ADT plugin in eclipse, can anyone help? Sep 05 20:34:28 It's the other way around Sep 05 20:34:37 They made a device that resembles an iPhone Sep 05 20:34:41 Patented the design Sep 05 20:34:47 i get the error "No repository found containing: osgi.bundle,org.eclipse.cdt.core.win32,5.2.0.201102110609" followed by An internal error occurred during: "Install download3". Sep 05 20:34:48 Comparison method violates its general contract! Sep 05 20:34:49 AKK9: apple isn't copying anybody, but because this GooPhone got to market first, it is the "original" Sep 05 20:35:29 So how did they patent a device that resembles an iPhone? Sep 05 20:35:35 Didn't Apple patent the design first? Sep 05 20:36:56 AKK9: apparently not Sep 05 20:37:03 http://www.wired.com/gadgetlab/2012/09/goophone-apple-iphone/ Sep 05 20:38:25 tophyr: http://phandroid.com/2012/09/05/android-powered-iphone-5-manufacturer-warns-apple-theyll-sue-if-next-iphone-resembles-their-design/ Sep 05 20:38:30 Hey. Sep 05 20:38:46 I read the android sdk docs and I don get one thing Sep 05 20:39:22 "You'll still be able to run your app on older versions, but you must build against the latest version in order to use new features when running on devices with the latest version of Android." Sep 05 20:39:30 yea? Sep 05 20:39:52 If you'll develop on newest version... Sep 05 20:40:01 ... Sep 05 20:40:03 ... Sep 05 20:40:06 ... Sep 05 20:40:08 somewhat old link: http://android-developers.blogspot.com/2009/04/backward-compatibility-for-android.html Sep 05 20:40:31 the short version is "when using newer apis guard check the version code, use reflection or factory patterns" Sep 05 20:40:42 or just an if statement Sep 05 20:40:42 :P Sep 05 20:40:46 * lov shrugs Sep 05 20:40:55 I strongly prefer factory patterns instead of reflection Sep 05 20:41:05 reflection is kind of hacky and prevents you from really being able to search for methods in your app Sep 05 20:41:15 So. I understand it that if i develop on newest it will be compatiblie with old. Sep 05 20:41:17 But how ? Sep 05 20:41:27 how it is possible ? Sep 05 20:41:32 By not using new methods on old platforms Sep 05 20:41:40 BlackYue: read the link I just pasted! :D Sep 05 20:41:42 er Sep 05 20:41:43 bluesm: ^^ Sep 05 20:42:02 SimonVT: But what if this method is essencial to work for my program ? Sep 05 20:42:16 It is ridiculus (but I'm noob). Sep 05 20:42:42 then set your minSdkVersion appropriately Sep 05 20:42:46 Then you probably shouldn't support platforms where it's not available Sep 05 20:43:01 That's hardly ever the case tho Sep 05 20:43:17 nfc writer app :P Sep 05 20:43:19 So I'll complie for 2.1 and this remove me code with new method ? Sep 05 20:43:20 There's nothing wrong in removing a few features on old platforms Sep 05 20:43:34 It can't work. Sep 05 20:43:35 Or offering alternative compatibility behavior Sep 05 20:43:35 on HC+, display a photo in the notif Sep 05 20:43:38 But I;m noob. Sep 05 20:43:39 in JB+, display actions Sep 05 20:43:49 bluesm: READ THE LINK THAT WAS POSTED, THEN COME BACK Sep 05 20:43:51 on ICS+, use beam Sep 05 20:43:54 it will answer questions for you! :D Sep 05 20:43:57 s/THEN COME BACK// Sep 05 20:44:09 trailing comma, you're the worst. Sep 05 20:44:19 shut up lov, Sep 05 20:44:25 :P Sep 05 20:45:25 So basically I should develop for newst version. Sep 05 20:45:32 define "for" Sep 05 20:45:50 using newest methods. Sep 05 20:46:09 using them or else die? Sep 05 20:46:12 or using them when possible Sep 05 20:46:34 And then think how to make it compatible with systems without this methods ? Sep 05 20:46:37 think it might help if i deploy my new code before complaining that my bugfix didnt work? :) Sep 05 20:46:45 what methods are you talking about Sep 05 20:47:02 its not like JB suddenly added an Application#doEssentialTask() Sep 05 20:48:22 Ok. Sep 05 20:48:30 But one last quesiont from the noob. Sep 05 20:49:15 bluesm, you should only use methods that are available on all the android versions you want to release your app for (like 2.2+). If you feel that a method that is only available for example in android 4+, and that method woul improve your app a lot, then you should check the android version at runtime and fall back to some other method that is compatible with 2.2 if necessary. Sep 05 20:50:16 see now lov why couldnt you have said something like that Sep 05 20:50:21 rather than just going on and on about factories Sep 05 20:50:27 :P Sep 05 20:50:29 That's kind of backwards imo Sep 05 20:50:38 yea Sep 05 20:50:41 i dont like the first sentence Sep 05 20:50:42 If I start working on newest SDK Platform with basics apps (I mean to learn develop for android). It is likely that methods will be the same on my one android device with android 2.3.5 ? Sep 05 20:50:48 yes Sep 05 20:50:52 jui-feng: Ok Thank you ver very much :) Sep 05 20:51:09 canadiancow: Ok. Thanks for help :) Sep 05 20:51:32 " You'll still be able to run your app on older versions, " But this line is misleading... I think. Sep 05 20:51:40 http://developer.android.com/sdk/installing/adding-packages.html Sep 05 20:51:42 You should say "how do I make the best app possible".. Then "I can't use method X on 2.2, what do I do instead" Sep 05 20:52:17 how do yo uget the path to the assets directory Sep 05 20:52:26 SimonVT: OK I get it. Thank you :) Sep 05 20:52:45 Then there are a few different choices. You can use method X on the new version, and method Y/implement your own compatibility on old platforms.. Or you can go with method Y that you know will work on all platforms, if there is an alternative.. Or you can cut the feature on old platforms Sep 05 20:52:59 canadiancow mentioned notifications, that's a good example Sep 05 20:53:01 hi there Sep 05 20:53:08 You don't really want to display 2.2 notifications on 4.1 Sep 05 20:53:16 You want to use 4.1 notifications when possible Sep 05 20:53:22 Then fall back to compatibility behavior Sep 05 20:53:49 (Providing the new features make sense in your app) Sep 05 20:54:24 :) Sep 05 20:55:03 anyone can recommend any tutorial on integrating android and google cloud storage, please? Sep 05 20:55:21 found nothing so far :S Sep 05 20:56:15 i am getting the error: 09-05 22:51:28.336: E/AndroidRuntime(792): FATAL EXCEPTION: main Sep 05 20:56:16 09-05 22:51:28.336: E/AndroidRuntime(792): java.lang.IllegalStateException: The specified child already has a parent. You must call removeView() on the child's parent first. Sep 05 20:56:21 Hey guys Sep 05 20:56:30 micadeyeye sounds straightforward Sep 05 20:57:05 the error log is at http://www.fpaste.org/PfSI/ Sep 05 20:57:07 SimonVT: when did you released TorrentToise ? Sep 05 20:57:17 and the code is at http://www.fpaste.org/nmkd/ Sep 05 20:57:53 I'm trying to export my app to a friend's phone for the first time, this is my first try with an APK but I can't seem to install the package... I'm getting an error while installing "error parsing package", any ideas what it means? I can't install it on either phone Sep 05 20:58:15 sasson: have you signed it ? Sep 05 21:01:39 Estragon, unsigned, and I've set my phone to install unsigned as well Sep 05 21:02:26 from what I recall, you can't install unsigned apk Sep 05 21:02:53 you can, you have to allow it in the settings though Sep 05 21:03:01 canadiancow, kindly help! Sep 05 21:03:12 umm Sep 05 21:03:51 is it a compatable apk? what OS is the phone on and which sdk is it set to compile against? Sep 05 21:06:53 ive made 3.27 today on adsense Sep 05 21:06:58 and fo rsome reason, that excites me Sep 05 21:07:01 im gonna be rich Sep 05 21:07:08 am I on here? Sep 05 21:07:16 no you're not Sep 05 21:07:39 just wondering, I was having troubles with my name being registered before Sep 05 21:08:32 can anyone help please? Sep 05 21:09:05 micadeyeye: if you can answer my questions, yes Sep 05 21:09:32 You can't install unsigned APKs Sep 05 21:09:42 \o/ win Sep 05 21:09:52 lethjakman, what was the question? Sep 05 21:10:07 is it a compatable apk? what OS is the phone on and which sdk is it set to compile against? Sep 05 21:10:38 also have you allowed non market sources? Sep 05 21:10:49 tophyr: forgot if I already did, but thank a lot, lifesaver on the src and background issue! Sep 05 21:11:17 micadeyeye: WebView = (WebView) findViewById(R.id.resultdisplay); <- this is only possible if the webview is already added to the layout. This means it has a parent. Sep 05 21:11:19 setContentView(WebView); Sep 05 21:11:25 i am using an emulator and the target sdk version is 10 and min is 8 Sep 05 21:11:31 And then you try to set it as the content view, which requires it doesn't have a parent.. Sep 05 21:13:02 why is your target so low Sep 05 21:13:16 10 is so last year Sep 05 21:13:20 we want to target old phones Sep 05 21:13:29 No, you want to support old phones Sep 05 21:13:33 i dont think the word target means what you think it means Sep 05 21:13:34 calvinchan: no sweat Sep 05 21:13:46 like Sep 05 21:13:47 :) Sep 05 21:13:47 ffs Sep 05 21:13:50 we have this discussion Sep 05 21:13:52 every hour Sep 05 21:13:55 * canadiancow quits Sep 05 21:13:55 you keep using this word inconceivable. i do not think it means what you think it means. Sep 05 21:14:06 yes Sep 05 21:14:09 thats waht i was going for Sep 05 21:14:12 thanks for explaining the joke Sep 05 21:14:14 that makes it so much funnier Sep 05 21:14:30 you're welcome Sep 05 21:14:56 SimonVT, so what are unsigned apps for? I thought you can set it in the settings of the phone to enable it to install Sep 05 21:15:11 no Sep 05 21:15:13 No, you can enable sideloading Sep 05 21:15:20 i.e. apps not from play store Sep 05 21:15:32 Android requires your apk to be signed Sep 05 21:15:56 apologies, i meant 'support' Sep 05 21:16:04 so how to export my app just for a friend use ? Sep 05 21:16:16 sasson: are you using eclipse ? Sep 05 21:16:20 yes Sep 05 21:16:32 Just sign it Sep 05 21:16:42 SimonVT, setcontentview is in the code. Sep 05 21:16:47 let me retrieve the exact process Sep 05 21:16:56 if you don't want to do any command line Sep 05 21:17:03 You didn't read what I said, micadeyeye Sep 05 21:17:14 You can not setContentView a View that already has a parent Sep 05 21:17:20 i.e. is added to a viewgroup Sep 05 21:17:31 If you can find it with findViewById, the view already has a parent Sep 05 21:18:02 I get it. Could you please edit the code in fpaste? Sep 05 21:18:04 setContentView(findViewById(R.id.main)); Sep 05 21:18:37 No, I can't ;/ Sep 05 21:18:53 sasson: file => export => android => export android application => project and then sign with your keystore Sep 05 21:19:33 Okay, what I said is not completely true. If you can find it with Activity.findViewById it already has a parent.. View.findViewById it might not, since it can return itself :p Sep 05 21:19:34 if you don't have any keystore yet then create one but make sure you note the password somewhere and backup the keystore Sep 05 21:21:07 I have a broadcast listener listens sms for authorization code for the user. User needs to get verified with this code. I get the code with no problems. But the problem is I cannot pass the code the other Activities that needs to use it. I cannot call getApplication(). How I am going to use this code I receive from the sms? Sep 05 21:21:16 put the keystore in assets/ Sep 05 21:21:26 then the app can sign itself Sep 05 21:21:35 :< Sep 05 21:22:01 thanks! Sep 05 21:22:18 vudu: you can add the code to the intent calling the activity Sep 05 21:22:22 using the extra bundle Sep 05 21:22:54 vudu: http://stackoverflow.com/questions/768969/passing-a-bundle-on-startactivity Sep 05 21:23:17 Estragon: do I need FLAG_ACTIVITY_NEW_TASK flag on the activity? Sep 05 21:23:55 no you should not (but im no expert) Sep 05 21:24:32 I tried to using bundle with intent. " Calling startActivity() from outside of an Activity context requires the FLAG_ACTIVITY_NEW_TASK flag. Is this really what you want?" I am receiving this error message Sep 05 21:25:30 last time I saw this it was because the context you use was "bad" eg using application context instead of activity context Sep 05 21:26:10 but I suppose you launch it from the broadcast receiver so I don't know Sep 05 21:29:09 I don't want to interfere with the flow of the application. I mean user is using the application I don't want to pull up an activity out of nowhere while user is using. So is there anyway doing it in background? or less user distruption? Sep 05 21:29:39 use a service? Sep 05 21:29:43 hi i have this code but everytime i run it it freezes http://pastebin.com/M9qGRZNw i forgot a } at the end Sep 05 21:31:23 daniel110: have you debugged it? Sep 05 21:31:34 yes Sep 05 21:31:35 jui-feng: I will look into it Sep 05 21:31:40 it compiles correctly Sep 05 21:31:54 it just freezes everytime i run it for some reason Sep 05 21:31:55 what line it freezes? Sep 05 21:34:43 one thing you need to setContentView then try to access layout.simple_list_item_1 Sep 05 21:34:56 what's the fastest / easiest way to sign my own app? I've found http://www.androiddevelopment.org/tag/apk/ but I'm getting lost on the first step... pasting in the command doesn't work (win 7) Sep 05 21:35:07 Disregard what vudu said Sep 05 21:35:10 It's a ListActivity Sep 05 21:35:14 it does that for you Sep 05 21:35:39 sasson: did you try what I wrote ? Sep 05 21:35:58 file => export => android app => select project => select / create keystore Sep 05 21:36:12 eclipse wizard does everything for you including zipalign Sep 05 21:36:26 http://developer.android.com/tools/publishing/app-signing.html Sep 05 21:36:34 http://developer.android.com/tools/publishing/app-signing.html#ExportWizard Sep 05 21:36:57 anyone know, how tightly bound is ActivityInstrumentationTestCase2 to its parameter? does that have much more importance than just setting the type of "T getActivity()"? Sep 05 21:36:58 hey ppl Sep 05 21:37:17 what eclipse package do you suggest for android sdk use? Sep 05 21:37:29 i'm using Robotium for cross-activity tests and wondering what troubles, if any, i'm gonna run into. Sep 05 21:38:06 Criztian: http://lmgtfy.com/?q=eclipse+android+development Sep 05 21:38:11 ;) Sep 05 21:38:38 Eclipse ADT, in non-smartass answer. Sep 05 21:38:53 afaik it's the *only* eclipse package for android sdk use. Sep 05 21:39:12 Estragon, trying it right now Sep 05 21:39:13 thanks Sep 05 21:39:17 tophyr: you have plenty different eclipse, I believe thats his question Sep 05 21:39:25 ahhhhh Sep 05 21:39:30 like eclipse for php, eclipse for web dev ... Sep 05 21:39:34 Estragon: thanks...that's what I meant Sep 05 21:39:41 well aren't i a dick, heh Sep 05 21:39:48 XD Sep 05 21:39:55 i use the Java Dev package i think Sep 05 21:40:24 yeah, Eclipse IDE for Java Developers Sep 05 21:40:53 they can all turn into one another however. if you end up needing something else, it's just another package that you download into the ide. Sep 05 21:41:18 i've got javascript, groovy, etc addons Sep 05 21:41:20 Criztian: eclipse classic or eclipse ide for java dev Sep 05 21:41:40 so the mobile one isn't much of a thing anyway Sep 05 21:41:52 any version from 3.7 to 4.2 should be fine. For a new install I would go for 4.2 Sep 05 21:41:58 I'll go for java dev then Sep 05 21:42:15 is GCM deprecated? Sep 05 21:42:36 No Sep 05 21:42:44 C2DM is, cus GCM was introduced Sep 05 21:43:04 SimonVT awesome job on the slide menu implementation Sep 05 21:43:07 ahh Sep 05 21:43:08 ok Sep 05 21:43:10 thank you Sep 05 21:43:25 Thanks :) Sep 05 21:43:41 i thought C2DM was replaced with GCS Sep 05 21:43:57 it is Sep 05 21:43:59 im so lost on these topics lol Sep 05 21:44:02 it has* Sep 05 21:44:20 C2DM => GCM (introduced at last google I/O in june) Sep 05 21:44:21 but GCS is the same as GCM? Sep 05 21:44:21 What's GCS Sep 05 21:44:30 google cloud storage Sep 05 21:44:37 noooo Sep 05 21:44:37 google cloud messaging is free Sep 05 21:44:45 man im lost LOL Sep 05 21:44:47 It's two different things Sep 05 21:44:48 haha Sep 05 21:44:54 google cloud storage != google cloud messaging Sep 05 21:44:54 GCM is for push messaging Sep 05 21:45:00 ahhh Sep 05 21:45:00 GCS I guess is for storage.. in the cloud Sep 05 21:45:01 ok Sep 05 21:45:03 Estragon, thanks for your help... it worked Sep 05 21:45:07 :) Sep 05 21:45:11 ok thank you i understood now :P Sep 05 21:45:17 thanks guys for the tip Sep 05 21:45:46 and do you guys know any tutorials on google cloud storage in android? Sep 05 21:45:54 please? :) Sep 05 21:46:02 sasson: make sure you backup the keystore and its password Sep 05 21:46:40 on android you can't update an app if signature is different Sep 05 21:46:58 in particular, google play won't let you publish a new version signed differently Sep 05 21:47:19 so make sure you keep the keystore safe if you intend to release apk signed by it Sep 05 21:50:01 more questions... Sep 05 21:50:30 is there any differences between google cloud storage and a personal hosting? Sep 05 21:51:27 In what way Sep 05 21:52:13 well i want to make an app updating its content from the web Sep 05 21:52:20 using xml Sep 05 21:52:42 and i think google cloud storage might be one solution if im not mistaken Sep 05 21:53:32 but i dont see any advantages on google cloud storage compared to any other web hosting of my own Sep 05 21:53:45 You don't have to manage your own servers Sep 05 21:53:52 That might be an advantage Sep 05 21:53:57 ah ok Sep 05 21:54:10 so google cloud storage is like AWS Sep 05 21:54:13 right? Sep 05 21:54:49 well yes, i see another advantage and its the price hehe Sep 05 21:54:49 Maybe you should just read the docs Sep 05 21:54:52 its quite cheap Sep 05 21:54:57 im doing it Sep 05 21:55:02 but im so lost Sep 05 21:55:07 they talk about python Sep 05 21:55:11 not android Sep 05 21:56:18 I doubt GCS cares where your app is running Sep 05 21:57:21 Would anyone know why I might be getting a `SocketException: sendto failed: EPIPE (Broken pipe)` error when I am trying to do back to back httpurlconnection requests on 4.1? http://pastebin.com/PDwyzhMq Sep 05 21:58:03 Got the internet permission? Sep 05 21:58:09 yeah Sep 05 21:58:13 Then no idea Sep 05 21:58:14 i will dive a little bit more in the docs Sep 05 21:58:19 thanks SimonVT Sep 05 21:58:21 :) Sep 05 21:58:33 SimonVT first one completes fine, it's the second one that dies Sep 05 22:41:05 I'm trying to make an IME that doesn't use Keyboard for its View, and thought I could just inherit from LinearLayout and define the buttons and layout for this custom View in XML -- which apparently works (the custom View inflates fine in my IME class) but within this view findViewById returns null, so I can't actually get to the buttons in code Sep 05 22:41:10 can anyone say what the right way to do this is? Sep 05 22:45:04 see you next time Sep 05 22:45:06 bye Sep 05 23:09:45 hmm, my View can inflate itself, but none of its children Sep 05 23:11:21 does anyone know how to edit android.R.id.text1 in xml / in code? Sep 05 23:12:20 I am using text1 along with simple_list_item_1 for a listview Sep 05 23:14:52 Is there a similiarly or at least reasaonably performing idiom for 'INSERT OR REPLACE INTO' with a ContentProviderOperation? Sep 05 23:17:24 anyone used apptopia.com before to sell their app? Sep 05 23:19:14 heh, just noticed amazon censor a critical review of a book. Sep 05 23:19:23 (was there yesterday, gone today) Sep 05 23:20:04 anyone used apptopia.com before to sell their app? Sep 05 23:20:14 isn't that typical of review sites? eg. yelp's extortion practices Sep 05 23:22:26 dvdh: i've heard quite a bit about yelp's extortion tactics :/ Sep 05 23:23:50 uh oh, amazon phone confirmed Sep 05 23:27:38 where 'confirmed' means 'is a rumour' Sep 05 23:28:43 Leeds: they said it will be shown to the press tomorrow, so its a rumor for the next half day i guess :P Sep 05 23:28:55 rumored to be confirmed Sep 05 23:29:09 and confirmed to be rumored Sep 05 23:31:02 website X (or website V) saying "confirmed, multiple sources tell us" doesn't in any way make it confirmed - it's just a rumour that someone is claiming they have evidence for Sep 05 23:36:02 how do i debug a test? if i say "debug as Android JUnit Test", it tries to attach the debugger to the main app, not AppTest Sep 05 23:42:12 Based on this chart http://developer.android.com/images/activity_lifecycle.png does it mean that onstart and onresume will be both called when a new activity is called and then closed? Sep 05 23:44:21 sinaa: Yes. Sep 05 23:45:06 Chronax, which one is better to use for when I am expecting a user login? (to check if user is logged in or not to decide on doing further actions) Sep 05 23:45:29 sinaa: Do you want to check that every time, or just the first time the Activity is loaded? Sep 05 23:45:45 is the user logging in in another activity? Sep 05 23:46:02 I mean will onPause be called when a new activity is called over the older activity? or will only onStop be called? I cant understand it from the documentation Sep 05 23:46:32 yeah. I launch another activity to login. then onActivityResult will do the rest. but I want to also cover other possibilities Sep 05 23:46:46 "other possibilities"? Sep 05 23:47:18 yeah for example user pressing back on login page. or switching to another app Sep 05 23:47:37 I'm not sure I understand why you need anything else than onActivityResult Sep 05 23:47:58 if they just press back, the default result code is RESULT_CANCELED Sep 05 23:48:09 If they switch to another app, they'll still be at the login activity when they return Sep 05 23:48:56 anyone used Robotium to test across different activities? i'm banging my head against this, it's apparently getting some sort of SecurityException when trying to click a button in an activity that's different than the one the ActivityInstrumentationTestCase2 is parameterized on Sep 05 23:49:26 if I'm waiting for activity result, is there any chance of returning with no result? (any sort of thing user being able to do) Sep 05 23:49:59 dont want to have any bug in my app :D Sep 05 23:50:10 timeput'surely Sep 05 23:50:17 timeout Sep 05 23:50:29 https://gist.github.com/3647992 Sep 05 23:51:06 You'll be fine with just onActivityResult Sep 05 23:52:41 SimonVT, I'm here because of this guy : http://stackoverflow.com/questions/4253118/onresume-gets-called-before-onactivityresult . its all his fault :D Sep 05 23:53:34 thanks Sep 05 23:55:04 I'm assuming he messed up somewhere then Sep 05 23:56:05 It's not something that just randomly happens Sep 05 23:56:47 the OP of that question forgot commit() after modifying his prefs. Sep 05 23:56:53 3rd comment on the 1st answer Sep 05 23:57:55 hah Sep 06 00:06:55 answer to my own question: findViewById has to be done after onFinishInflate Sep 06 00:39:55 chromed crashed... what happens if you start activity X and then start Y. and then finish() on Y while the device ran out of memory and destroyed X. will it onCreate X again or will it exit the app? Sep 06 00:43:23 That doesn't happen Sep 06 00:44:29 as far as I've read, if you are on a new activity, if android wants to clear memory it can close the older activity. but I am not sure if finish() will work the same way as pressing back Sep 06 00:45:41 Nope, doesn't happen Sep 06 00:46:19 what doesnt happen? it never closes the primary activity? Sep 06 00:47:39 It wont close a single activity Sep 06 00:47:45 It'll reclaim your process, sure Sep 06 00:48:42 SimonVT: http://developer.android.com/training/basics/activity-lifecycle/recreating.html Sep 06 00:48:44 Not sure what happens when you get back Sep 06 00:48:49 so I can be sure that if I have not closed an older activity, on finishing activities in front of it, it will always come back to the older activity. either by oncreate or onresume Sep 06 00:48:51 "The system may also destroy your activity if it's currently stopped and hasn't been used in a long time or the foreground activity requires more resources so the system must shut down background processes to recover memory." Sep 06 00:48:52 And the new activity is on the top Sep 06 00:49:21 Am I reading that wrong? Sep 06 00:49:21 Well, it's quite easy to test Sep 06 00:49:33 Get a ICS+ device and go to developer settings Sep 06 00:49:38 Check that kill activity one Sep 06 00:50:03 I think that page makes it a bit clear now Sep 06 00:50:05 By my reading, it will indeed call 'destroy' on your activity. Sep 06 00:51:03 I don't know if you're reading it wrong, but the system wont go "oh, marcab has a stack of 4 activities.. I think I'll kill #2" Sep 06 00:51:26 I think it will, actually, and just keep the bundle. Sep 06 00:51:46 No, it wont Sep 06 00:51:47 (according to the next paragraph) Sep 06 00:52:38 So the system never destroys an activity due to system constraints? (memory,etc?) Sep 06 00:53:11 The system may also destroy your activity if it's currently stopped and hasn't been used in a long time or the foreground activity requires more resources so the system must shut down background processes to recover memory. Sep 06 00:53:32 Right. The docs seem pretty clear on this. Sep 06 00:53:55 ^^(should have quoted) Sep 06 00:54:00 It might terminate your process, killing your app Sep 06 00:54:23 It does not manage memory inside your app Sep 06 00:54:42 this bit is not very clear "or the foreground activity requires more resources so the system must shut down background processes to recover memory." does it mean an activity from another application? or the current app? Sep 06 00:55:05 sinaa: i believe that's another activity (yours in background) Sep 06 00:55:12 It means another app that is in memory Sep 06 00:55:17 yep Sep 06 00:55:24 Nothing in your app Sep 06 00:55:34 so makes sense. as SimonVT said, it wont manage your app's memory Sep 06 00:56:17 Destroying your activities is part of reclaiming a process for memory Sep 06 00:56:31 But it doesn't JUST destroy a single activity Sep 06 00:57:24 And it doesn't kill an activity within your app to get memory for another activity within your app Sep 06 00:57:34 ...seems like it could. Sep 06 00:57:37 You'd just get an OutOfMemoryException Sep 06 00:57:46 interesting. Sep 06 00:58:15 just as a side question, what happens when you click exit on task manager? is it a pkill ? or it also fires the onStop ... methods as well? Sep 06 00:58:51 Dunno really Sep 06 01:00:38 onDestroy() only gets called on an Activity as a result of a call to finish() Sep 06 01:00:46 ^^(quoted) Sep 06 01:00:55 yes Sep 06 01:01:08 so it looks like it may or may not call onDestroy() before killing it (on task manager) Sep 06 01:01:28 Try it Sep 06 01:01:30 sinaa: where's that quote? Sep 06 01:01:50 killing the process isn't a call to finish Sep 06 01:02:00 I doubt you'll get the callback Sep 06 01:02:01 it probably calls it and gives it a sec or so to do its thing. and then pkills it if not finished yet Sep 06 01:02:02 http://stackoverflow.com/questions/11473849/android-app-doenst-call-ondestroy-when-killed-ics Sep 06 01:03:40 sinaa: thanks Sep 06 01:35:28 is it not a good idea to store passwords in sharedpreferences? Sep 06 01:59:29 so I have an ArrayList of Item custom objects Sep 06 01:59:40 I need to persist this list between sessions Sep 06 01:59:58 Is using internal file storage likely my best bet? Sep 06 02:00:09 Item extends Parcelable, if that helps... Sep 06 02:01:06 http://developer.android.com/guide/topics/data/data-storage.html Sep 06 02:01:09 These are your options Sep 06 02:02:34 SimonVT: so since SharedPreferences doesn't have a nice method for Parcelable or anything of the sort, looks like Internal Storage and filestreams are my solution Sep 06 02:03:00 You don't want to use parcelable for persistent storage Sep 06 02:03:32 SimonVT: well, I extended Parcelable so I could move the objects between Activities using Intents Sep 06 02:03:38 I mean, Bundles Sep 06 02:03:42 Yeah Sep 06 02:03:46 That's what it's good for Sep 06 02:03:57 and seemingly, that's about it :P Sep 06 02:04:24 But say you save a parcel to storage.. You then change the class in an update.. Maybe change the type of a parameter.. Or remove one Sep 06 02:04:42 Then try to recreate the objects from the parcel Sep 06 02:04:44 That'll fail Sep 06 02:05:06 well, i'm not sure of a way to save the object such that it wouldn't fail regardless Sep 06 02:05:10 anyone used shouldOverrideUrlLoading here? if so, how can I handle the "true" bit? Sep 06 02:06:12 should I make an action view intent? Sep 06 02:06:19 or is there any better alternative Sep 06 02:10:05 SimonVT: http://stackoverflow.com/questions/1636623/how-do-i-preserve-a-complex-object-across-activity-restarts Sep 06 02:10:18 SimonVT: that link seems to hint towards a Serializable object Sep 06 02:11:04 I don't know how serializable acts if you change the class Sep 06 02:11:42 Parcelable is likely a crash at least.. Since it's all readInt, readString, etc.. Sep 06 02:12:42 hmm.... maybe I could just write it out as a JSON string Sep 06 02:12:59 That would work as well Sep 06 02:13:03 Then you have full control Sep 06 02:14:50 yup. then I could use SharedPreferences too. Sep 06 02:15:04 while you're on this subject, I'm trying to understand startActivityForResult. I'm doing a game with a round summary > game > score screen kind of model. I'm passing data from the game to the score screen and displaying it, however, i'd like to also pass that data back to the round summary so I don't need to make extra network calls Sep 06 02:15:51 farkerhaiku: i previously did it using startActivityForResult, and made sure to pass back data via Intents/Bundles Sep 06 02:16:04 I'm now changing over to extending Application and maintaining global variables there. Sep 06 02:16:54 ugh. global variables? this is better than startActivityForResult? Sep 06 02:18:48 when I put log statements in my game activity and the game activity's onActivityResult, those are logged consecutively - i.e. before the log statement in the score screen setResult method Sep 06 02:19:45 it seems like it should be, gameActivity#startActivityForResult, ScoreActivity#setResult, GameActivity#onActivityResult, but it's not. what's that all about? Sep 06 02:26:49 http://developer.android.com/about/dashboards/index.html Sep 06 02:27:19 stats for everyone! API9+ up to 80%! Gingerbread... still almost 60% :( Sep 06 02:43:41 anyone else using the m2e connector, maven and ADK 20 Sep 06 02:43:43 ??? **** ENDING LOGGING AT Thu Sep 06 02:59:58 2012