**** BEGIN LOGGING AT Sun Mar 17 02:59:59 2013 Mar 17 03:28:17 is possible to use in API 10 the calendar API 11? :S Mar 17 03:50:12 no Mar 17 04:03:21 What is the best way to manage 2 apps that pretty much have the exact same code, but with different UI images and different package names ? Mar 17 04:07:46 mobydev: with build scripts? Mar 17 04:08:40 I will take a look at that. Thanks nap Mar 17 04:09:30 .me afk Mar 17 04:09:32 * mobydev afk Mar 17 04:14:52 I'm trying to get an Android device that is connected via WiFi to receive a UDP packet from a PC that is also on the same network. The PC has no problem sending a packet to another PC, but the Android device never seems to receive it. Mar 17 04:15:09 However, the Android device has no difficulties broadcasting UDP packets of its own. Mar 17 04:57:56 I am looking at the TrivialDrive example. Is there a way to query what sku's are available (registered on developer console) ? A kind of requestCurrentSkuList ? Mar 17 04:58:27 I know you can request info on one or more skuItems if you know the sku Mar 17 04:58:43 but what if you just want a list of what is available ? Mar 17 05:22:12 this looks like it could be pretty fun http://shop.oreilly.com/product/0636920021094.do Mar 17 05:58:45 Wtf... everything is added in api level 11 Mar 17 06:01:26 Should I just use api level 11? Mar 17 06:01:37 I can do the things I want in api level 1 it will just take more code Mar 17 06:02:37 if you aren't going to support Gingerbread, then you might as well just use API 14 or 15 (both ICS). there are very few devices still left on Honeycomb (11-13) Mar 17 06:03:21 Ill probably loose %25 if i go with 11 Mar 17 06:03:28 or 14 Mar 17 06:03:38 is this an existing app or a new app? Mar 17 06:03:52 new... well It has been in the play store for around two weeks now Mar 17 06:04:20 i'd recommend going with 14+ Mar 17 06:04:26 My previous one has 1000 on gingerbread.... So I don't know if I will loose possible downloads by upping the api Mar 17 06:04:49 hi guys, i'm reading the sample code of ...android.apis.ApiDemos, at file RotationVectorDemo.java , I'm confused with this http://codepad.org/myXPg4L0, could someone explain that for me? Mar 17 06:04:52 kevinb: Do you know how it says that %XX have 2.3.3 or whatever... are those all %100 active? Mar 17 06:05:42 agy2154: i don't know what exactly the dashboard means. i suspect it just means they connected to the Google/Play services, not that the user actually opened the Play Store and browsed or installed a new app Mar 17 06:08:49 zhangxaochen: i suspect the size is just wrong and it should be a new float[9] rather than 16. Android uses some 3x3 matrices and some 4x4. Mar 17 06:09:33 kevinb: The only three things I would probably use in a higher api level are the setRotation, setX, setY, the action bar and TextIsSelectable which I can solve with a relativelayout.layoutparams, an animation, and action bar sherlock... do you think its worth it in this case? also what API level do you usually develop for? Mar 17 06:11:07 kevinb, you mean the demo is wrong? Mar 17 06:15:09 agy2154: my apps are personalization apps popular with power users and people on custom roms, so my audience is probably a bit different than yours. One of my apps is 14+ and it's awesome to not need to worry about Android 2.x. I also heavily use hardware acceleration, the new animation framework and the View.set* and reusing bitmaps. My other app is a bit older so I first released it when 2.1 was king and 2.2 was just getting started, so it's current 2.1+ Mar 17 06:15:09 really want to move to API 14+ but I'm not ready for the user backlash yet. the next update is going to 10+ though. Mar 17 06:16:09 kevinb: is there any wayto use the meathods from the newer apis? Mar 17 06:17:36 agy2154: another advantage of 14+ is it limits the testing scope. In my case vendor skins can and do cause compatibility or usability concerns. If I would've tried to support Android 2.x I could not have built as good of a product and it would've hurt reviews which I believe would've hurt more long term than initially having a small target audience did. Mar 17 06:18:03 zhangxaochen: I don't know enough about the demo, but i agree that the offsets they are using for the identity matrix are not correct for a 4x4 matrix. they are however correct for a 3x3 matrix Mar 17 06:18:47 kevinb: Ahh yes... My audience is people who are in the educational apps. Mar 17 06:18:54 agy2154: there is the support lib which helps and JakeWharton has an awesome backport of the animation lib called NineOldAndroids, but it does behave a bit different in some ways Mar 17 06:20:53 kevinb: ahh thats why you need at least api 4 to run jake's software? Mar 17 06:21:48 ? API 4 is super old and should not be a concern at all Mar 17 06:22:24 kevinb: ohh because he said you have to have at least api 4 to run ABS Mar 17 06:23:33 kevinb: how long do you think it will be until 2.3 will be almost fased out Mar 17 06:24:53 it's really hard to say. There's a lot of devices that won't see a 4.x update and will still be used for a while. Though those users are probably not heavy app users. Mar 17 06:25:59 and you don't want to either limit the app or invest too much time developing work arounds or bug fixes for legacy versions rather than investing that time in making the app better for the future Mar 17 06:27:50 kevinb: yeah thanks for the advice I will definatly up my Api level Mar 17 06:41:16 batps Mar 17 06:41:19 batos Mar 17 06:42:20 YOOOOOU BELONG TO MEE...... YOU BELONG... YOU BELONG TO ME... YOU BELONG TO MEEEEEE Mar 17 06:44:22 lonely ron_frown :P ? Mar 17 06:44:33 a trance song Mar 17 06:44:41 ommmmmmmmmmmmmmm Mar 17 06:44:50 I dont need human interaction Mar 17 06:44:53 * ron_frown shrugs Mar 17 06:47:02 odd ... usually when someone sings out loud in the dev room they're looking for interaction ... or reaaaaally boreds Mar 17 06:48:49 I'm werkin Mar 17 06:48:58 and even tho I dont like trance that much... its fantastic for coding Mar 17 06:49:09 heh ... Mar 17 06:49:30 2hr blocks of music is the great part Mar 17 06:49:39 no worries about playlists bringing up dupes Mar 17 06:49:50 and probably 250 mp3s of the 2hr blocks Mar 17 06:49:52 soooo Mar 17 06:50:04 I put on TCM ... old Bogart movies .... 2hours no commercials Mar 17 06:50:11 I cant tand taht shit Mar 17 06:50:18 and I have one tv, and its not in my office Mar 17 06:51:01 well ... bogart not imporrtant ... 2 hour movies no commercials is the critical path to coding nirvanha Mar 17 06:52:34 whers g00s tonight Mar 17 06:52:45 taking the night off is unacceptable Mar 17 06:55:07 vmware quit being a little slut Mar 17 06:55:29 yah he's usually much more chatty Mar 17 06:56:37 * capella doesnt kknow about slutty vmware ... but mine decided to upgrade itself today Mar 17 06:56:44 same ehre Mar 17 06:56:56 says is downloading... havent seen progress bar progress at all Mar 17 06:56:59 60meg interent Mar 17 06:57:01 go figure Mar 17 06:57:07 I cant ping my guest os Mar 17 06:57:24 THEREE we go Mar 17 06:57:27 now if i can figure out how to disable the keyboard |suspend| key... Mar 17 06:57:36 keyboard suspend key? Mar 17 06:57:53 like CTRL-Z or soemthing I hit by accident Mar 17 06:58:56 while trying to UNDO intext edtor Mar 17 06:59:22 could anyone help me? I just started developing an app today and I set everything up (using eclipse) on my laptop, and my workspace is inside dropbox, then when I opened it up again on my desktop I didn't have the template editor you can use in eclipse to drag and drop things into the app. Mar 17 06:59:30 Does anyone know how to set that up by itself? Mar 17 07:00:19 uhh Mar 17 07:00:29 you have adt installed in eclipse on the desktop? Mar 17 07:00:43 eclipse is TERRRRRIBLE at sharing "projects" Mar 17 07:00:44 yeah, I can launch it and everything I just dont know how to open the editor that goes along with the xml file Mar 17 07:00:48 yeah it really is =( Mar 17 07:00:56 intellij is free and much better Mar 17 07:01:02 you can create a project file and be done with it Mar 17 07:01:19 is it actually better at sharing? because I've heard its faster, but essentiallt the same stuff as eclipse Mar 17 07:01:25 intelliJ++ Mar 17 07:01:35 it has a concept of a project file Mar 17 07:01:45 that says heres all the modules necessary to build relative pathed Mar 17 07:01:56 so yes Mar 17 07:01:59 it shares much better Mar 17 07:02:02 you can actually go Mar 17 07:02:09 file open project, point at the ipr Mar 17 07:02:10 done. Mar 17 07:02:24 alright thanks, ill probably try that - eclipse has been slow recently anyways Mar 17 07:02:37 "recently" heh Mar 17 07:02:59 =P Mar 17 07:03:53 its not magically going to fix everything... but I guarentee it'll be less stress =) Mar 17 07:04:39 yeah and if worse comes to worse I can set it up properly on both machines THEN share the files, but thats a huge hassle Mar 17 07:15:59 *sigh* another seemlingly easy task. I have a unix timestamp, in seconds, in UTC. I want to display the time in the user's timezone. Mar 17 07:16:32 so far I set date from the timestamp, then a calendar from the date, then the calendar into a SimpleDateFormat, and this then goes into a string. But... that seems not to work. Mar 17 07:16:35 any suggestions? Mar 17 07:16:54 (i.e. it does not end up in the user's time zone) Mar 17 07:18:48 How come I updated my Min API and I can't use the meathods from it? Mar 17 07:18:56 I cleaned my project too... Mar 17 07:19:08 tinloaf: maybe http://developer.android.com/reference/java/util/Calendar.html#getInstance(java.util.TimeZone) ? Mar 17 07:20:25 clever: that's what I've been trying.. still shows up as UTC :-/ Mar 17 07:20:48 tinloaf: what if you pass a UTC zone into getInstance? Mar 17 07:20:58 clever: let me try that. Mar 17 07:24:16 clever: http://pastebin.com/bvxzpr6e Mar 17 07:24:25 it does not matter at all which timezone i select :( Mar 17 07:24:48 i tried "Europe/Berlin", "America/New_York" and "Etc/UTC" Mar 17 07:24:57 they all show the current time as 06:20 Mar 17 07:26:13 http://developer.android.com/reference/java/util/TimeZone.html#getDefault() Mar 17 07:26:17 including the default zone? Mar 17 07:26:38 clever: yes Mar 17 07:26:50 i'm out of ideas then Mar 17 07:26:56 an additional sdf.setTimeZone(TimeZone.getDefault()) also changes *nothing* Mar 17 07:27:21 manualy pull out the .getOffset() of the default timezone and add that to your unix timestamp Mar 17 07:27:30 sorry. Even if I'm doing something wrong - the fact that I can just change the timezones to *anything* without changing the result is just broken Mar 17 07:28:07 i havent done much with java's date stuff yet Mar 17 07:28:22 pragma-: did you use the jjoe64 chart library ? Mar 17 07:29:02 g00s whats up player Mar 17 07:29:11 hey ron_frown :) Mar 17 07:29:19 it's aliiiive ! Mar 17 07:29:31 the other day, somebody said all the android charting libraries needed hw accel turned off Mar 17 07:29:40 hey capella :) Mar 17 07:29:47 >) Mar 17 07:31:33 ron_frown: if you were starting new app now, and wanted to support gingebread people still … would you just try to get one code base working everywhere, or use some branch - per - configuration thing in your version control tool to have different parallel codelines for each very different target ? Mar 17 07:31:59 wth ... suddenly 14 diff job boards start emailing me Mar 17 07:32:10 ah weekends Mar 17 07:33:18 depends on how extravagant you are trying to go with new featurs on 4.2 Mar 17 07:33:35 abs + supportlib can support multiple platforms pretty damn well Mar 17 07:33:48 the app you saw screenshots is a gingerbread+ app Mar 17 07:34:00 I have had stuff that was a pita to get around Mar 17 07:34:03 but not impossible Mar 17 07:34:13 is it possible to invoke javascript function of html being loaded in webview from java activity Mar 17 07:34:56 ron_frown: what did i see screenshots of ? Mar 17 07:35:29 http://imageshack.us/a/img560/2002/overviewm.png Mar 17 07:35:30 and Mar 17 07:35:37 http://imageshack.us/a/img716/7200/drag12.png Mar 17 07:35:59 we use a lot of fragment view pagers and shit now too Mar 17 07:36:02 hm Mar 17 07:36:12 still targeting gingerbread Mar 17 07:36:12 they dont even look like android apps :P Mar 17 07:36:19 your apps? Mar 17 07:36:21 btw, this is great http://www.slate.com/articles/technology/map_of_the_week/2013/03/google_reader_joins_graveyard_of_dead_google_products.html Mar 17 07:36:39 i left a few flowers Mar 17 07:38:17 alas poor iGoogle ... we barely used ya Mar 17 07:38:42 I really really liked wave for business collaboration, prototyping, brainstorming etc Mar 17 07:40:30 need one for MS ... Bob, Silverlight ActiveX Mar 17 07:41:37 How come I can't use stuff from the API level I just updated to? Mar 17 07:41:47 heh - Bing Mar 17 07:42:27 i've used Bing a few times recently, i pretty much get the same results Mar 17 07:43:34 actually, search being google's core product - hasn't really improved much at all (it seems to me) in about 10 years Mar 17 07:44:21 and its always fun to get a few people together to search for exactly the same thing, to see all your filter bubbles different Mar 17 07:44:29 I always arrive at what I am looking for in sufficient time Mar 17 07:44:40 I noticed that my google fu is quite nice Mar 17 07:45:23 some things i find really hard to find, like concepts around the programming language 'go' Mar 17 07:45:29 often result in bs Mar 17 07:45:51 thats because they named their language something completely retarded Mar 17 07:46:10 but i think a few months ago norvig or someone at google finally changed their mind and decided to use semantic web in their search Mar 17 07:46:37 not sure if thats available for use, or maybe its in a 'lab' you can try Mar 17 07:47:25 ron_frown: what are you up to this evening ? Mar 17 07:47:45 working on one of my business ideas Mar 17 07:47:59 and you capella ? Mar 17 07:48:17 an app a friend and I talked about building for sometime just got some seriously relevant interest Mar 17 07:48:39 oh great Mar 17 07:48:46 helping students on mozilla channels Mar 17 07:49:19 capella: aww, padawans ! Mar 17 07:49:24 I've got two appointments next week to discuss this software with some potentially big players Mar 17 07:49:30 :D Mar 17 07:49:38 ron_frown: they'll ask : where is the iOS version :) Mar 17 07:49:52 not android app Mar 17 07:50:02 this is enterprise saas product Mar 17 07:50:08 oh Mar 17 07:51:51 hope discussions go well Mar 17 07:55:59 as do I Mar 17 07:56:02 at least if nothing else Mar 17 07:56:09 its motivating me to get my ass in gear and get something done Mar 17 07:56:38 stuff I've done for my current employer is impressive at least I think so, but everything else there is kind of a pile Mar 17 07:56:47 I figure if tey can make money off their bad software Mar 17 07:56:51 I can make money off good software Mar 17 07:57:17 cover the big issues up front and shouldnt have any growing pains Mar 17 07:58:55 can I still use a deprecated class with the latest version of android? Mar 17 07:59:41 agy2154: which class Mar 17 07:59:49 ClipboardManager Mar 17 08:00:08 oh, i dunno anything about that one Mar 17 08:00:28 g00s: its alright. Thanks anyways... Ill just change it to the newer one Mar 17 08:00:31 man I feel like going and getting some ice cream sandwiches from the store Mar 17 08:00:50 ron_frown: androids ? :) Mar 17 08:01:15 no literally ice cream sandwiches Mar 17 08:05:13 want some desert but got nothing at the house =( Mar 17 08:06:05 no companies over there that can deliver an ICS from a drone yet ? Mar 17 08:13:57 ron_frown: what version control system do you use for personal stuff ? Mar 17 08:15:30 * monsti uses svn Mar 17 08:15:34 i hate git Mar 17 08:17:35 the git cli is so freaking inconsistent; 'git branch' lists branches, but 'git stash list' lists stashes Mar 17 08:18:05 the windows guis anren't that comfortable then svn Mar 17 08:19:58 haha Mar 17 08:50:10 g00s its not just the cli :D Mar 17 08:51:08 Chainfire: :) what do you use ? Mar 17 08:51:23 I switched from svn to git (mostly) a few months ago Mar 17 08:51:28 but it regularly gives me a headache Mar 17 08:51:43 EGit constantly breaking down and crapping out doesn't help either Mar 17 08:52:02 every branch/switch/commit/etc I pray it will succeed without error Mar 17 08:52:26 i've had a few false starts. After reading eBook "Pro Git" i was like, "this is easy!" < … insert banging / noises … > < KABOOM > Mar 17 08:52:42 the book oversimplified a lot, and i blew my foot off a few times Mar 17 08:53:03 now i am reading the Oreilly Git book - its *much* better. but yeah, you have to go into the weeds a bit to know the object model Mar 17 08:53:06 isn't the accepted tome "The Git Book" Mar 17 08:53:35 oh that is "Pro Git", now I look itup Mar 17 08:53:53 yeah, its … warm & fuzzy but simplistic Mar 17 08:54:12 i read through the whole thing Mar 17 08:54:31 it might even be a bit out of date now Mar 17 08:54:39 I've had some major fuckups (due to EGit errors, not really git itself) that have cost me code Mar 17 08:55:01 I always have the feeling when using git, since I'm no expert, anything may go wrong at any time, and I have no way to deal with it if it does Mar 17 08:55:09 oh yeah, me too … well, i still have my code, but i had to bring my repo to a git expert - and he said "start over" Mar 17 08:55:11 like having your children play in a minefield Mar 17 08:55:19 heh Mar 17 08:55:30 my precious code... nooooooo! Mar 17 08:56:29 i decided i would only use the cli; but something like gitk to visualize history maybe Mar 17 08:57:04 why ? Mar 17 08:57:40 I mean, EGit craps on me regularly (seems to be a Windows-specific issue) but it still safes me a buttload of time compared to using the git cli Mar 17 08:57:53 really? maybe i'll look at it then Mar 17 08:58:44 its Eclipse-git btw, so only ifyou're running Eclipse ;) Mar 17 08:58:48 one gui i'm playing with is Atlassian SourceTree; but just for visualization Mar 17 08:59:03 does anyone know where I can find the old kernel/common.git from android.git.kernel.org? Mar 17 08:59:17 I'm looking for the android 2.6.38 patch Mar 17 09:00:19 the new kernel/common.git on googlesource.com only has 2.6.39 and onwards. Mar 17 09:04:17 Chainfire: for your apps, are you using a single apk to cover all versions of android ? Mar 17 09:04:28 yes Mar 17 09:05:58 i have 1 apk for every API level and every device and every language Mar 17 09:06:05 then i can use AbsoluteLayouts Mar 17 09:06:09 and hard code my strings Mar 17 09:06:25 thats why nobody uses your stuff, JakeWharton. ;) Mar 17 09:06:59 hmm, true :( Mar 17 09:07:19 Chainfire: i was thinking about this http://ekkescorner.wordpress.com/2012/01/07/git-and-mobile-development-branches/ Mar 17 09:07:53 although his situation is more complicated, because he has public / private / and client bits Mar 17 09:08:34 but anyhow ;_ Mar 17 09:08:37 wow Mar 17 09:08:41 that looks painful Mar 17 09:08:55 g00s that looks suspiciously like hard work Mar 17 09:09:04 in other words, it's missing the lazyness factor common to good code Mar 17 09:09:09 :) Mar 17 09:09:29 he probably like gantt charts too Mar 17 09:09:31 I don't get what this has to do with multiple apk / mobile versions either ? Mar 17 09:10:03 (though I must say, I'm on a single-user GIT using mostly linear development, so I rarely run into these situations) Mar 17 09:10:13 oh, for each pub/private/client branch he branches again for each os version. doesn't really go into it much though Mar 17 09:10:32 yeah Mar 17 09:10:37 that sounds like a dumb idea on Android Mar 17 09:11:06 ok, i was wondering if anyone else used that technique to good effect Mar 17 09:11:17 wrap stuff that needs to use different code on different API levels in methods that do all the checking, or instantiate an API-level specific version of an object holding all that crap Mar 17 09:11:57 I don't really add massive functionality to an app if it can't be supported on my lowest API level. If I really want to do something big and new, I raise the API level Mar 17 09:12:14 so there's usually only fairly minor stuff that is API level specific, easily wrapped in a few methods or special instance Mar 17 09:12:42 doing multiple APKs would be a massive pain Mar 17 09:12:59 there would need to be massive economic incentive for me to even consider such a solution Mar 17 09:13:12 (then again, if you're using a proper build system, maybe ...) Mar 17 09:13:15 interesting, thanks Mar 17 09:14:07 i thought it might be easier to have the bowels of my app in one repo; and then maybe the UI for (1) GB and (2) ICS+ as separate repos Mar 17 09:14:19 remember this guy is doing this on BB, and AFAIK, difference between OS versions on BB are massive over a small number of versions, not tiny over a large number of versions like on Androdi Mar 17 09:14:30 ok Mar 17 09:15:41 if you like messing with git... personally I'd just seperate the XML in layout-vBLA, and if the UI is completely different, also create MainActivity_vBLA and maybe have it launched by a selector activity. I've never personally had to seperate my activities into different versions, though Mar 17 09:16:09 wtf are you doing building apps for GB anyway ? Mar 17 09:16:19 you will find that 99% of your paying customers are on ICS+ Mar 17 09:16:34 even if its only 50% of the total Android market Mar 17 09:16:57 ah, right now, i would use minSdk=14 or something. but i have an older app i want to make much nicer, but not ditch the GB folks Mar 17 09:18:13 all right, sounds like i'll keep it together as one code base Mar 17 09:18:19 ah like that. Then maybe separating into two (sub-)GITs is not such a terrible idea. That is, if you have new stuff you want to back-port to GB at all Mar 17 09:18:30 not really Mar 17 09:18:32 cause you could just leave the current version on GB and only build the new improvement into ICS versions Mar 17 09:18:33 heh ;) Mar 17 09:18:55 if you raise the minlevel on the new APK, you can put it in Play like so that the old version stays available for GB users Mar 17 09:19:17 yeah, that sounds good too Mar 17 09:19:32 you'd have to switch the dev console into advanced mode if its still set to simple Mar 17 09:19:46 but it should be possible, just have both APK's "active" Mar 17 09:20:20 (I've never actually done this, but I have considered it several times) Mar 17 09:20:59 but be sure to properly tag your GB version in GIT so you can still fix something there if you really need to ;) Mar 17 09:21:23 Chainfire: about git, are you using [master] for your development work? i was using gitflow (not the scripts) Mar 17 09:21:47 master is only a convention Mar 17 09:21:54 depends on the project Mar 17 09:22:01 it's just a name of a branch Mar 17 09:22:03 the main branch is always called master for me Mar 17 09:22:24 projects that only see tiny code changes between releases ( < 100 lines) I just commit to master usually Mar 17 09:22:26 sure; i guess i should rephrase: eager or lazy branching :) Mar 17 09:22:35 ok Mar 17 09:22:49 more complicated projects have a development branch that gets merged only at release day Mar 17 09:22:57 and sub-branched for each feature / fix implemented Mar 17 09:23:32 but I don't do that unless I have a good reason, because 90% of the time when EGit craps out it's when switching/merging branches, and its hell when it does. Mar 17 09:23:44 hm Mar 17 09:23:50 is the working copy dirty? Mar 17 09:23:51 Ugh, egit Mar 17 09:23:54 (again, only for Windows users) Mar 17 09:24:12 Switching to command line made it so much easier Mar 17 09:24:22 stashing helps a lot Mar 17 09:24:53 well its not so much an EGit issues as it is a generic Eclipse issue, really Mar 17 09:24:57 i just yearned you can apply a stash on any branch, not the one that created it :| Mar 17 09:24:58 does EGit use JGit or a C client? Mar 17 09:25:08 a stash is just a diff Mar 17 09:25:13 you can apply it to anything Mar 17 09:25:19 jgit Mar 17 09:25:20 I've noticed (at least on Windows), that Eclipse tends to keep files open (or maybe the OS does) at the same time its trying to delete them Mar 17 09:25:36 most of the errors I see on Eclipse have to do with that: inability to delete files it still has open Mar 17 09:26:10 heh, nice. Windows explorer in infamous for that anyways Mar 17 09:27:01 making sure to use "refresh" on your project in Eclipse before committing/branching/merging, saying two hail-maries and drawing a pentagram around your office chair usually prevents the problem from occurring Mar 17 09:27:29 i'd probably just close the project :| Mar 17 09:27:32 I'm not comfortable enough with the cli to replace it, though Mar 17 09:27:45 g00s this is Eclipse, closing the project won't close the files Mar 17 09:27:50 strange, the graphical layout is completely different to what is showing on the device... Mar 17 09:27:55 there is no sanity to be found here Mar 17 09:28:19 Chainfire: try intellij yet ? Mar 17 09:28:40 nope, everybody says I should though Mar 17 09:28:44 you should Mar 17 09:29:03 the prevalence of Eclipse and its continued recommendation is a crime against humanity Mar 17 09:29:25 recommondation/bundling in the ADT Mar 17 09:29:30 intelliJ++ Mar 17 09:29:32 *recommendation Mar 17 09:29:37 i need to find an 'intellij for eclipse refugees' blog Mar 17 09:29:52 lol Mar 17 09:29:52 capella|zZzZ: recommends intellij in his sleep :) Mar 17 09:30:09 just switch and figure it out. you'll suck for two weeks but then your productivity will skyrocket Mar 17 09:30:10 Eclipse Mar 17 09:30:13 * capella|zZzZ BAD Mar 17 09:30:21 I used Eclipse before going Android, I remember pulling my hair out back then going "WHyyyyy?!!!?" . I was not amused when I started Android development that it used Eclipse Mar 17 09:30:38 one thing that keeps me from IDEA is the licensing Mar 17 09:30:47 you definitely get Stockholm Syndrome with Eclipse Mar 17 09:30:55 i used to love it and forgive it's annoyances Mar 17 09:31:13 well, i was using the clojure plugin for eclipse - so i would wind up using it in some way regardless Mar 17 09:31:46 I need to get a corporate license apparently, so I can scam the tax-man. But I run Eclipse in like 4 VMs simultaneously on one computer, across Linux, Windows and OS X Mar 17 09:32:09 I'd actually'd have to get 4 licenses, according to the IDEA guys ... Mar 17 09:32:10 Chainfire: the free version won't do? Mar 17 09:32:19 g00s: why couldn't you do closure in IJ? Mar 17 09:32:21 there's a licenced version? Mar 17 09:32:28 oh wait intellij Mar 17 09:33:07 /s/j/ Mar 17 09:33:17 JakeWharton oh I hadn't even really looked. I usually buy whatever I use. Is the free version sufficient for Android development ? Mar 17 09:33:34 It is Mar 17 09:33:46 Yep Mar 17 09:33:48 That's what I use Mar 17 09:34:13 i have to see where la-clojure is these days Mar 17 09:34:59 what does that add to it? Mar 17 09:35:05 You could also stop using ide-specific features Mar 17 09:36:14 this the intended blog ? Mar 17 09:36:15 http://www.canoo.com/blog/2011/10/18/android-and-idea-for-the-eclipse-refugee/ Mar 17 09:36:36 Chainfire: haha, i have to read this Mar 17 09:37:15 * Chainfire admits he actually likes Xcode Mar 17 09:37:21 yeah i do too Mar 17 09:37:34 Chainfire: is dslr controller on iOS also ? Mar 17 09:37:34 I dare you to say so in #iphone-dev Mar 17 09:37:53 ugh Xcode. it's great until it's not Mar 17 09:38:06 i pity people who are forced to work in it Mar 17 09:38:14 (read: iOS developers) Mar 17 09:38:26 Most iOS devs I know switched to AppCode Mar 17 09:38:32 (also from jetbrains) Mar 17 09:38:38 yeah I haven't run into the "until it's not" thing yet Mar 17 09:40:34 it probably requires a significantly large project to have it break down. the small stuff i've done in it has been great Mar 17 09:41:04 yeah my stuff is pretty much just C++ so far, not too much of the ObjC/UI yet Mar 17 09:43:18 i'm trying to get away from all that stuff Mar 17 09:43:35 which stuff ? Mar 17 09:43:44 C/C++/ObjC Mar 17 09:44:13 for the most part, I'd agree Mar 17 09:44:32 but some (core) things I've done, I really regret having done them in Java instead of C++ Mar 17 09:46:28 I think I broke the graphical layout tool Mar 17 09:46:36 ahahahaha Mar 17 09:47:21 Chainfire: i totally got rid of the "single source" idea Mar 17 09:48:22 Chainfire: i prefere a new implementation per plattform Mar 17 09:50:04 I mostly do too, but it depends on what I'm doing Mar 17 10:05:31 ah, stretchcolumns seems to fix it... Mar 17 10:15:34 hi. Can i give an apk signed with the debug certificate to other betatesters or should I start using a "real" certificate in this step already? Mar 17 10:17:08 I wondered that as well... the only problem I saw so far is that the debug certificate is limited to 1 year by default, which is a major hussle if you compile your own apps for normal use Mar 17 10:18:04 stummi: the only real problem ive run into with that, is that android wont let you upgrade if the keys dont match Mar 17 10:18:24 and its worse when you have 2 dev boxes, signing with different debug keys Mar 17 10:18:34 cant install the debug from another box without a complete uninstall Mar 17 10:18:47 okay Mar 17 10:19:25 it also depends on how much you keep in /data/, if a complete uninstall is a big bother Mar 17 10:21:32 you can share debug keys Mar 17 10:21:39 i got in the habit of keeping them in the repo Mar 17 10:22:17 we replaced the debug keys of our devs with one key in their $HOME/.android Mar 17 10:23:27 You could create a debug key that lasts like 5 years and use that Mar 17 10:23:35 Shouldn't be possible to upload that to play store Mar 17 10:23:46 2032 ;) Mar 17 10:24:12 SimonVT: something ive wondered, even if the play store forces you to make the key expire in 10+ years Mar 17 10:24:20 what happens to your app when those 10 years are up? Mar 17 10:24:29 well thats not the point Mar 17 10:24:30 currently, the os doesnt allow upgrades from the 'wrong' key Mar 17 10:24:35 By then Android will either be dead Mar 17 10:24:38 what happens to the batterie of your device in 10 years Mar 17 10:24:41 yeah, different, related question Mar 17 10:24:45 Or they'll let you change keys Mar 17 10:24:49 they'll make a migration strategy Mar 17 10:24:55 what happens to the certificates in your rom? Mar 17 10:25:01 hopefully Android will have died by then Mar 17 10:25:06 lol Mar 17 10:25:20 i had several customers that needed to throw their windows mobile devices to the trash because of certificates Mar 17 10:25:28 set the clock to that time, see what happens... Mar 17 10:25:41 not an option ;) Mar 17 10:26:00 ive seen related problems on the school computers before, due to idiots setting it up Mar 17 10:26:14 all the computers had software to undo unauthorized file changes at shutdown Mar 17 10:26:21 considering the Play store is signed with the system key and has access to internal APIs that silently un/re-install apps... they'll be fine Mar 17 10:26:23 that said, if you set your phone to 2038 Mar 17 10:26:26 btw i am still looking for an easy way to get the diagonal visible radius of a map in meters Mar 17 10:26:29 when DST came arround, windows shifted the clock forward an hour Mar 17 10:26:33 updated the registery Mar 17 10:26:40 thats an unauthorized change, undo at shutdown Mar 17 10:26:43 it may or may not crash due to that time shenanigans Mar 17 10:26:47 so the meters from the topleft point to the bottomright point Mar 17 10:26:49 gzip your /data/com.whatever/ dir, uninstall, reinstall with new cert, ungzip your data dir Mar 17 10:26:49 done Mar 17 10:26:49 next time you boot up, shift forward another hour, ask the user again Mar 17 10:26:50 any ideas how to get this? Mar 17 10:26:51 repeat Mar 17 10:27:10 so now the clock is drifting forward 1 hour per bootup, and nagging you with the same question at every bootup :P Mar 17 10:27:23 i just got a visio 2010 training dev - the guy makes my brain hurt Mar 17 10:27:47 i just want to export some visio shapes + metadata to an android device Mar 17 10:27:58 but i have no fcking clue how to create shaoes ;) Mar 17 10:28:11 JakeWharton: what if you just rename the dir? Mar 17 10:28:31 that'll work. was just an example. Mar 17 10:28:51 but thats obviously not a user-friendly choice, just a dev friendly one Mar 17 10:29:14 JakeWharton is talking migration to a new key Mar 17 10:29:31 As it could be handled by play store Mar 17 10:29:32 clever: the Play store can do this all automatically Mar 17 10:29:39 ah Mar 17 10:55:34 whats the difference between GeoPoint and Location? When shall I use what? Mar 17 10:55:38 *which Mar 17 10:57:37 location has more info Mar 17 10:57:46 use it when you need the extra info Mar 17 10:57:58 gps gives you a Location Mar 17 10:58:09 maps (v1 at least?) uses GeoPoint Mar 17 10:59:25 and since maps api v1 will be/is deprecated, you should use v2 Mar 17 11:01:08 last time i tried i couldn't get v2 apps working proper on my device. Maybe its better now I will try it some time later Mar 17 11:14:22 hi, Im trying to avoid lucky patcher from my app, but i dont want to just check if lucky patcher is installed Mar 17 11:14:44 and lucky patcher = ? Mar 17 11:14:54 Is a cracking tool Mar 17 11:15:02 that cracks the app and removes LVL Mar 17 11:15:23 someone that wants to do it, will do it Mar 17 11:15:38 yep, but I need some ideas :) Mar 17 11:15:59 add crc checks instead Mar 17 11:17:35 I think this will not work, LP patches the dex code and the apk will have the same crc Mar 17 11:18:35 http://forum.xda-developers.com/showthread.php?p=34828397 -> See ChelPus post (is the LP dev) It says crc is original Mar 17 11:19:28 but if they are bypassing lvl Mar 17 11:19:39 wouldn't that mean they sideloaded it Mar 17 11:20:42 thus you can check for the lazy ones who don't sideload it without setting getinstallerpackagename Mar 17 11:21:31 it may take them all of 30 seconds to google and reinstall via adb correctly Mar 17 11:21:33 :P Mar 17 11:22:34 oh nice, I dont know about getinstallerpackagename Mar 17 11:22:49 yeah its easy to get around Mar 17 11:23:25 thx Namidairo :D Mar 17 11:23:35 that's not really a solution Mar 17 11:23:56 yep, but is another layer of security Mar 17 11:24:19 I dont want to make a perfect solution, just a solution that makes a little hard than just run lucky patcher Mar 17 11:24:23 wet tissue paper thin Mar 17 11:32:15 When I upload my apk everything goes fine, but when I try to upload my extension file it always freezes on 'Processing' we can't figure out why. Mar 17 11:32:24 No errors or anything Mar 17 11:53:00 What library you use for SOAP? And why? Mar 17 11:55:58 they don't tell soaps at my local library Mar 17 11:56:09 :( Mar 17 11:57:45 devoper: i use wcf with rest and the resttemplate in android Mar 17 11:58:06 i got rid of soap, because xml parsers in android are much slower then rest parsers Mar 17 11:58:41 Did you benchmark yourself? Mar 17 11:58:46 yes Mar 17 11:58:49 Or are there numbers on the web to support that? Mar 17 11:58:52 Any numbers? Mar 17 11:59:14 rest and xml are not even APIs for the same problem set... how can you compare their speed? Mar 17 11:59:19 no hard numbers - just customers and our support guys complaining Mar 17 11:59:27 Ge0rG: i have wcf Mar 17 11:59:45 so the transport layer can be changed with 2 lines Mar 17 11:59:48 world cat federation? lolcats ftw Mar 17 12:00:02 windows communcation fondation Mar 17 12:00:47 don't forget to compare json with obj-C while you're at it... Mar 17 12:02:16 Leeds: JSON is much faster for me if I use WPA2 than D-Bus... Mar 17 12:02:59 then there's always the boost you can get from using pulseaudio instead of X11 Mar 17 12:03:16 So i you're suggesting soap proxy instead of using library Mar 17 12:03:32 devoper: i suggest not to use soap if it's possible Mar 17 12:04:04 well its not possible because some functions are not supported in REST version Mar 17 12:04:10 devoper: anyway - if you are forced to stay on soap, you can use the ksoap2 library Mar 17 12:04:40 k i'll give a shot Mar 17 12:05:05 devoper: note there won't be any handy proxy classes like in .net - you have to code this by yourself Mar 17 12:05:28 Hi all: I am following this instruction and created a mirror in my NFS dir. http://source.android.com/source/downloading.html ; When I point to this mirror and do a repo sync locally in my laptop I get an error Mar 17 12:05:51 Hi! I have an alertdialog with a positive and a negative button. Problem is that the buttons switch place when running android 4.2 compared to 2.2. I think the reason is that the android SDK interchanged where the positive and negative buttons are. What is a good solution to this? Or should I just leave it? Mar 17 12:06:29 device/samsung_slsi/arndale' does not appear to be a git repository ... Mar 17 12:06:34 selar1: google changed that Mar 17 12:06:41 selar1: If you're using an AlertDialog with .setPositiveButton and .setNegativeButton it will place them appropriatly itself. Mar 17 12:06:42 a repo sync on the server is successful Mar 17 12:06:50 can someone help me please ? Mar 17 12:07:14 bcv: Sorry, never used a repo mirror. Mar 17 12:07:37 http://paste.debian.net/242246/ is the error . Mar 17 12:08:08 kakazza: I am a very beginner in this. Is there any other easy way to pull the android source ? Mar 17 12:08:09 Well, _is_ it a git repository? Mar 17 12:08:11 monsti: kakazza : exactly. Google changed it. So is it okay that the buttons end up on different places depending on which SDK the device is running? I was thinking that it may confuse Mar 17 12:08:28 I will just leave them alone then? Mar 17 12:08:30 bcv: well, I never set up a mirror, I just synced from their server. Mar 17 12:08:33 * capella disagrees with alertdialogs determination of is left/negative/cancel or right in many situations Mar 17 12:09:21 selar1: it's not YOUR confusion ... it's default on the plattform Mar 17 12:09:31 alright Mar 17 12:09:33 thanks Mar 17 12:10:03 http://stackoverflow.com/questions/12695556/android-alertdialog-button-positive-button-negative-order Mar 17 12:12:19 I don't see how that's the easiest solution. .setPositiveButton etc in the AlertDialog.Builder should do just fine Mar 17 12:18:54 hey people! does anyone have a clue why this http://paste.lisp.org/display/136071 doesn't work ? i.e., the onLocatioNChanged() method is never called even though I fix manually the geo location via emulator contro +/- telnet ? Mar 17 12:19:20 ApI shouldve just called em left/middle/right and left devs decide what's logically "positive/negative" actions and where theyd like them placed Mar 17 12:19:55 or not switched them between APIs :P Mar 17 12:20:03 Eh, no Mar 17 12:20:11 If it was up to developers, there'd be no consistency between apps Mar 17 12:20:56 so... "YOU MUST CONFORM?" Mar 17 12:21:09 Yes Mar 17 12:21:13 heh Mar 17 12:21:18 Consistent behavior across apps gives a much better user experience Mar 17 12:22:04 well I could troll and suggest that consistent garbage is still garbage but Im just playing so I wont :) Mar 17 12:22:56 capella: it's important that every app looks and feels the same, eventually you wont even know what app your using :) Mar 17 12:23:33 hmmmm ... hasta think about that ! Mar 17 12:25:33 Apps shouldn't necessarily look the same, but they should behave the same Mar 17 12:25:48 "User Experience" is what got Firefox Mobile's main menu |Quit| option killed Mar 17 12:26:00 Now I have to hit back 9 times to get out Mar 17 12:26:25 heh - was easier to write my own addon to restore it :) Mar 17 12:26:27 Or you hit the home button once Mar 17 12:26:38 home isn't quit Mar 17 12:26:56 The home button on my GS3 is real stiff ... feels like im breaking it everytime it press it Mar 17 12:27:10 he meant home and over to app manager Mar 17 12:27:24 Leeds :( Mar 17 12:27:34 Then force close. which still feels wrong Mar 17 12:28:32 If an app needs a quit button, I wouldn't trust that app Mar 17 12:28:54 I dont trust an OS to shutdown "later" Mar 17 12:29:17 did I forget to commit a change for example Mar 17 12:29:29 but maybe thats old school Mar 17 12:32:08 Oh I know ! Im the type who doesnt like cars whose headlights turn off after I lave the car and they decide its time :P Mar 17 12:39:46 you don't trust other programmers Mar 17 12:40:20 cause I is one Mar 17 12:49:19 i tend to feel the same way Mar 17 12:49:30 then again, those car companies do not want their batteries to die Mar 17 12:52:21 I guess you mean they dont want my battery to die ... Mar 17 12:56:10 Both competing thoughts... Android does have a beautiful design ... but being a tech means a certain amount of control freak is built into one's psyche Mar 17 13:15:39 imagine you make cars Mar 17 13:15:58 you will make sure they do not drain batteries and give you bad press which result in fewer sales Mar 17 13:16:09 but yes controlfreak and sceptic :) Mar 17 13:16:59 anyone ever made a custom view that had animations on its canvas? say you make a tetris and animate the blocks being destroyed Mar 17 13:18:40 https://play.google.com/store/apps/details?id=com.shazam.android <-- funny installs graph.. people download it on weekends? Mar 17 13:20:06 When they're at the club and want to know a song maybe? Mar 17 13:20:15 shazam? Mar 17 13:22:14 This page is awesome along those lines (music search) www.musipedia.org Mar 17 13:24:07 I'm starting to learn about Android services and can't seem to come up with good search terms for information about what I want to know Mar 17 13:24:33 if I've got a service running in the background, is there a way that I could have the user click an icon and have it fire an activity? Mar 17 13:25:08 ie: a user clicks an icon which causes the service to start the voice search activity Mar 17 13:40:19 hey guys, lets say you have a gridlayout with many cells and would like to have a zoom in/out function for that... how would you start or what topics would you look up? most examples on the internet are image zooming so far... Mar 17 13:52:42 Hello dears, I would like to have my background image be tiled. I'm using android:tileMode="repeat". It doesn't work. Why? Mar 17 13:54:36 It works in Windows 95, btw. Mar 17 13:55:14 I love my customers... http://pastebin.com/uphAX135 Mar 17 13:55:52 wow Mar 17 13:55:58 what is the app ? Mar 17 13:56:00 mmmmm Mar 17 13:57:04 'make this option free' ? Mar 17 13:57:25 Ge0rG: lol ;) Mar 17 13:57:44 that's why i don't sell my apps on google playstore Mar 17 13:58:18 StingRay_: https://play.google.com/store/apps/details?id=de.duenndns.forwardedcall Mar 17 13:58:49 lol Mar 17 13:59:31 wow, it actually is on blackmart... Mar 17 13:59:41 in an outdated version that does not work on 4.1+ Mar 17 13:59:58 Ge0rG: funny app Mar 17 14:00:09 Quacked: it depends; people really need that function Mar 17 14:00:48 yeah, I can understand the need Mar 17 14:00:50 that guys e-mail though Mar 17 14:00:55 shocking Mar 17 14:01:07 you even have a free version Mar 17 14:01:11 he think he stupid Mar 17 14:01:44 Ge0rG: is you name really Georg Lukas? Mar 17 14:03:48 Quacked: yes it is Mar 17 14:04:43 I wonder if I can get it removed from blackmart, though Mar 17 14:05:03 doubt it Mar 17 14:05:05 Ge0rG: thats just too cool Mar 17 14:05:16 thats not fairr Mar 17 14:05:20 anybody ever tried to DMCA the shit out of blackmart? Mar 17 14:05:27 (your name that is) Mar 17 14:05:44 Ge0rG: the posts / link / items are community maintained I think Mar 17 14:05:48 Ge0rG: blackmart is a specific app/page? Mar 17 14:06:03 so doubt what good it would do Mar 17 14:06:04 Quacked: yeah... kind of google play for warez Mar 17 14:07:30 I see Mar 17 14:07:30 http://www.crazyforandroid.com/2012/10/download-blackmart-alpha-0-49-93-android-apk/ Mar 17 14:07:44 Ge0rG: whats your reasoning for your price btw? Mar 17 14:07:54 just curous Mar 17 14:07:56 curious* Mar 17 14:08:15 Quacked: justification is niche Mar 17 14:08:19 Quacked: the app is targeted at business users who forward their business line to mobile Mar 17 14:08:34 you either dont know what it is so dont care, or REALLY REALLY want it Mar 17 14:08:34 Quacked: business users are ready to spend some money on useful tools Mar 17 14:08:42 StingRay_: +1 Mar 17 14:08:42 that would be my guess Mar 17 14:09:20 or you want it SO SO SO bad that you e-mail the dev and complain/swear/border on threaten Mar 17 14:09:43 hehe Mar 17 14:09:56 StingRay_: if they really want it so badly, cashing out some single-dollar amount can't be that bad. Mar 17 14:09:56 Ge0rG: good thinking.. was it hard to make? Mar 17 14:10:08 hm guys, once again my list button problem (list with 2 buttons each row), I made an adapter for the list in which I set the button onclicklisteners... however they are supposed to open up a new intent which is not possible within the adapter class. how do i do that? Mar 17 14:10:22 :P cant be niche - its gonna be a free feature !! Mar 17 14:10:41 Quacked: I made it for my own needs back then; took maybe a weekend of hacking... it was a bad idea to integrate a "request device support" feature that sends me some logs -> requires manual checking for the right signals, and SNR is very low Mar 17 14:10:46 ray122: you pass in context ? Mar 17 14:11:18 Quacked: unfortunately, there is only an internal API for the data I need, so I reverted to reading logcat tea leaves Mar 17 14:11:35 I do Mar 17 14:11:41 StingRay_: I do Mar 17 14:11:48 and you want to start an activity ? Mar 17 14:11:56 StingRay_: yeah a new one Mar 17 14:12:01 context.startActivities(intents) Mar 17 14:12:03 StingRay_: when clicking the button Mar 17 14:12:25 or singular context.startActivity(intent) Mar 17 14:13:05 but when I create the intent it comes up with an error (in eclipse): new Intent(this, MenuNewProfile.class); constructor undefined Mar 17 14:13:13 Ge0rG: hehe Mar 17 14:13:22 ray122: "this" is an adapter Mar 17 14:13:29 oh... Mar 17 14:13:32 right I see Mar 17 14:14:11 context instead... well once more thanks :) Mar 17 14:14:23 indeedi Mar 17 14:14:25 :) Mar 17 14:22:02 Adb Transfer Protocol Error. Too many open files Mar 17 14:22:06 anyone encountered this? Mar 17 14:23:13 what is the irc-channel for ios? Mar 17 14:23:20 ~development Mar 17 14:25:09 First result in Google... Mar 17 14:25:17 Also #iphonedev Mar 17 14:25:49 IWhen I upload my apk everything goes fine, but when I try to upload my extension file it always freezes on 'Processing' we can't figure out why. Mar 17 14:25:57 Still not had any luck with this :( Mar 17 14:27:39 Upload to where? Mar 17 14:27:43 Store? Mar 17 14:27:45 sorry google play Mar 17 14:28:07 Can't help you with that. But have you tried different browsers? Chrome, Firefox, IE, Opera, Safari etc Mar 17 14:28:21 Just to verify that it's not your browser. Mar 17 14:28:52 kakazza: I've only tried with chrome as I assumed it would be fine as its also by google but worth a try anyway Mar 17 14:29:12 I'll try now :) Mar 17 14:29:28 Which browser do you upload with? Mar 17 14:29:54 I want to create a splash screen using an ImageView and an SVG in the res/drawable folder (logo.svg). I've created this layout: http://pastebin.com/wgCbRx92 - but the ADT advises me about "the following classes could not be found: ImageView"... any hint? Thanks :) Mar 17 14:30:54 elegos: don't use splashscreen please Mar 17 14:31:01 nobody wants splashscreens Mar 17 14:31:13 osxorgate: you cant say that Mar 17 14:31:14 osxorgate: I need it to load content displaying the progress Mar 17 14:31:27 there are many reasons to use them Mar 17 14:31:30 that being one Mar 17 14:32:02 elegos: not sure you can have a non-viewGroup as the root of a layout Mar 17 14:32:04 meh Mar 17 14:32:16 should be possible Mar 17 14:32:22 is it ? Mar 17 14:32:42 * StingRay_ runs off to try Mar 17 14:32:45 slternatively look at Mar 17 14:32:45 I'd insert a linear layout and inside it an imageview Mar 17 14:32:53 osxorgate: is svg a supported extension for image files in android? Mar 17 14:33:10 AlCapwn: could be i dont know Mar 17 14:33:13 elegos: Have you done that? Mar 17 14:33:21 loffa: trying right now Mar 17 14:33:35 elegos: okey Mar 17 14:33:41 no they need to be ViewGroups Mar 17 14:33:50 can have an ImageSwitcher Mar 17 14:33:57 not an imageView though Mar 17 14:34:04 or I couldn't get it to work Mar 17 14:34:18 adt dont support root conversion to it either, in layout editor Mar 17 14:36:27 StingRay_: isn't an ImageSwitcher supposed to scroll between images? Mar 17 14:36:37 dunno never used it Mar 17 14:36:49 suppose it can do many things Mar 17 14:37:08 but it too is of type ViewGroup Mar 17 14:37:28 just based of viewSwitcher Mar 17 14:37:35 according to docs Mar 17 14:38:36 is it possible to align vertically a layout element inside a vertical linearlayout? Mar 17 14:39:46 elegos: you would want to use FrameLayout no ? Mar 17 14:39:57 or if you wanted more elements RelativeLayout Mar 17 14:40:15 then your not contrained to a single axis Mar 17 14:41:17 ok, from my experience whatever layout I use, items are displayed one after another if you don't specify elsewise Mar 17 14:41:35 not really Mar 17 14:41:43 in frame or relative they have a draw order Mar 17 14:41:47 but thats it really Mar 17 14:42:04 well not in a frameLayout Mar 17 14:42:46 I'd like to place a square logo in the verical-center of the display, using max(display width, display height) to get the maximum size of the logo itself Mar 17 14:43:07 rather than display w/h, parent layout's w/h Mar 17 14:44:24 yeah, imageView and relativeLayout Mar 17 14:44:55 or imageView in a frameLayout with scaleType of fitCenter Mar 17 14:44:58 i think Mar 17 14:45:14 thanks for the hint :) Mar 17 14:45:25 btw officially: android doesn't support SVG natively Mar 17 14:45:43 this is a January 2013 blog talking about it: http://blog.fordemobile.com/2013/01/display-svg-inside-imageview.html Mar 17 14:45:53 i wish somebody would code a svg to shaape converter Mar 17 14:46:25 kakazza: Just tried Safari same result :( Mar 17 14:46:26 current svg implementations need a C library Mar 17 14:46:34 well dont svg support various spline methods ? Mar 17 14:46:48 like b-s NU etc ? Mar 17 14:47:10 cause that would be a big overhead I would think Mar 17 14:47:16 for a little mobile device Mar 17 14:49:18 It keeps freezing at this point with my extension files- http://screencast.com/t/vdALh2YyPYy Mar 17 14:50:00 I've also emailed google but not heard back , but being as I'm the only one that seems to have this problem I'm guessing it something on my end going wrong. Mar 17 14:50:38 The weird part is my apk always uploads fine Mar 17 14:53:04 why is it that you cant set app free for a while and then back to $ ? Mar 17 14:53:30 you can though ? oh wait, yeah never seen that Mar 17 14:53:34 Quacked: probly an anti-scam thing Mar 17 14:53:46 seen them drop to $0.01 Mar 17 14:53:52 Quacked: ive seen similar stuff on apple, the dude put out a 'bug' fix, that completely neutered the app Mar 17 14:53:54 or something low Mar 17 14:54:01 Quacked: then he made a seperate for-pay app Mar 17 14:54:31 Quacked: even if the system blocks a free turning into $$$, the dev can still pull nasty tricks like that Mar 17 14:55:37 clever: yeah, I was actually thinking of doing that to my free app :p Mar 17 14:57:32 Anyone have any suggestions about my app, I really want to get it submitted! Mar 17 14:58:34 apple741: not sure thats anything anyone can help you with Mar 17 14:58:39 you said it's only you Mar 17 14:58:55 and putting an picture there that says "processing" Mar 17 14:59:02 not great to even speculate Mar 17 14:59:12 yeah I understand Mar 17 14:59:19 all I could suggest Mar 17 14:59:24 monitor the socket Mar 17 14:59:33 and see if there are any probs Mar 17 14:59:52 or, I would think it could be an error with that apk Mar 17 15:00:02 all just wild ideas Mar 17 15:00:49 Thanks StingRay_ I appreciate that :) Mar 17 15:00:56 Will keep trying Mar 17 15:01:16 I take it you know what I mean by monitor the tcp sockets ? Mar 17 15:01:58 cause that could rule out a upload prob, but also maybe capture returns from google that are not obvious to browser Mar 17 15:02:09 really dont know what else to suggest Mar 17 15:11:12 StingRay_: Not really lol , trying to google it now :) Mar 17 15:14:41 hi room~ :) Mar 17 15:16:23 anyone can see my type? :\ Mar 17 15:16:54 libra? Mar 17 15:17:01 pisces? Mar 17 15:27:20 no one chat here? Mar 17 15:27:23 srsly? Mar 17 15:27:43 * StingRay_ looks around Mar 17 15:29:00 I'm not here Mar 17 15:29:55 I'm writing an app for a MyBB Spicefuse shoutbox. MyBB is a fucking bitch. It's only giving my app a captcha and not my desktop and I can't find out why. Mar 17 15:31:11 There we go. It's the useragent. Mar 17 15:31:15 any way to avoid findViewById() by linking a variable directly to the component (e.g. a ImageButton)? Mar 17 15:31:56 ImageButton imageButton = (ImageButton) findViewById(R.id.myButtom); ? Mar 17 15:32:01 or something like that? :P Mar 17 15:32:06 @groton, why? Mar 17 15:35:28 NullEntity: yeah, that is want to avoid, to write every time code like that. Is there a way to connect a class member variable to a UI component? Like on iOS apps development Mar 17 15:36:47 I don't know of any. It's not that bad though, you only need to do it when the class is initialized. So declare a private ImageButton and when your activity's started, set it to the findViewById(blah) Mar 17 15:37:24 NullEntity: i see, well, let's stick with this badness then :) Mar 17 15:37:43 Welcome to Android development :P Mar 17 15:40:51 Hiya guys, please see this --> http://i.imgbox.com/acwU8oUb.jpg Mar 17 15:41:19 i use viewstub for dropdown menu. did i use it on wrong purpose? Mar 17 15:44:15 because i have some difficulties when i try to call imagebutton on that stuff. Mar 17 15:45:01 looks ok Mar 17 15:46:34 i've got nullpointerexception when i setOnClickListener Mar 17 15:46:56 even while i use OnTouchListener Mar 17 15:47:00 groton: you can use android annotations and @ViewById Mar 17 15:47:17 but I can't vouch for android annotations yet, I'm still toying around with them in my first project Mar 17 15:47:20 xviv: well if the button variable is null, then dont matter what you set on it Mar 17 15:47:27 you will get nullPointer Mar 17 15:49:16 i want to assign button variable with imagebutton on xml but i can't use findViewById since i'm using fragment. Mar 17 15:49:55 btw, i'm working on custom listview and set this listener in my custom adapter. Mar 17 15:50:10 well your statement / semi question makes no sense to me at all :) Mar 17 15:50:43 like casue of 1. You can 2. fragments with view have findViewById etc Mar 17 15:50:43 would you mine if i upload the script and show you? Mar 17 15:53:34 here is the script --> http://tny.cz/95fbc334 Mar 17 15:55:01 i'm new in OOP and Android developing. i create that code by modifying anyone's code in github. And try to grasp it. Mar 17 15:57:34 I need some help. Are there any objects that can hold an HTML structure so I can access specific elements? Mar 17 15:57:45 I guess something like an XML reader. I don't really know. Mar 17 16:00:55 @NullEntity, i guess that such a WebviewClient Mar 17 16:01:14 xviv: rlListItem is a bit irrelevant Mar 17 16:01:31 you should use onItem*click on the listView Mar 17 16:01:51 StingRay_, i use it for linear layout. Shoud i remove it? Mar 17 16:02:18 What I'm trying to do is parse some data out of a web page so I can display a captcha and send the post data myself. Mar 17 16:02:36 how to make custom layout for listview then? i see that default listview just showing one textview :| Mar 17 16:03:07 xviv: did you write any of this code ? Mar 17 16:03:20 cause your question is a bit spurious Mar 17 16:03:33 yes, i did. But based on anyone's code. Mar 17 16:04:01 i would go through the training on d.android.com Mar 17 16:04:11 will get you further quicker Mar 17 16:04:22 i have said. i'm new in OOP, Java and Android dev :| Mar 17 16:04:24 rather than stopping every minute or 2 and asking in here Mar 17 16:04:29 yeah Mar 17 16:04:33 perfect then Mar 17 16:04:40 go to d.android.com Mar 17 16:04:44 and do the training Mar 17 16:05:19 and maybe some java tutorials Mar 17 16:05:25 but I dont really know of any Mar 17 16:06:14 thank you for your advice StingRay_ :) Mar 17 16:06:39 I really appreciate that, i guess i can learn by making something because i have objective to be done. Mar 17 16:07:29 i did some function in apps but if you have free time and wanna help me, you can see my project in github :) Mar 17 16:07:50 https://github.com/xqdzn/CloudUpp Mar 17 16:08:39 Hey hey Mar 17 16:09:39 Is it better to have the "main main" action button take up the entire footer space, or to color the footer differently and place the button with say a 15px padding on top of this? Mar 17 16:10:02 I reckon the former is a lot simpler, whereas the latter better signals that this is a button? Mar 17 16:13:48 @boytoy, i'm not a pro but i'd like to try to help you. What you mean with "main main" ? Mar 17 16:14:29 just.. the main.. lol Mar 17 16:14:40 my way of emphasizing i guess =) Mar 17 16:14:53 so, are you talking about footer for button or layout? Mar 17 16:15:07 sec Mar 17 16:15:12 lemme draw something up Mar 17 16:21:45 xviv: http://i.imgur.com/fDTjPMZ.png Mar 17 16:22:13 boytoy: #android-designers Mar 17 16:22:20 i want a details fragment to show up when i select an item from a listview. i see people using parcelable to do this. is there any other way? Mar 17 16:22:24 So, you're drawing your custom button. Right? Mar 17 16:22:46 thanks StingRay_ Mar 17 16:23:02 you making an app for ownage? Mar 17 16:23:05 backpackz: seems odd thing to do Mar 17 16:23:10 xviv: Yes Mar 17 16:23:49 as in making something parcel for just opening another fragment view Mar 17 16:24:08 whats the data source of the list ? Mar 17 16:24:18 xviv: so which one is better? Mar 17 16:24:45 a simple array of strings and an imageview Mar 17 16:24:56 so what do you want to pass ? Mar 17 16:25:24 a string and an image Mar 17 16:25:32 which one what? i thought Sting is right. You better join #android-designers Mar 17 16:25:50 backpackz: well cant you just pass the item number ? Mar 17 16:25:56 theres like 3 people there Mar 17 16:26:26 or create a fragment and have a method that accepts one of your items Mar 17 16:28:14 sounds like a plan Mar 17 16:31:44 backpackz, did your curently apps is open source? because i guess i'm doing something like your curent apps Mar 17 16:32:20 my app is not open source Mar 17 16:33:27 so, may i ask you some question about yours? Mar 17 16:34:02 i saw you're using listview, did you make custom adapter to manage your listview too? Mar 17 16:37:42 This is a really stupid question and I can't figure out the answer. I'm using the default LoginActivity and I'm trying to create a new intent. What context do I need to pass? I can't pass this because LoginActivityTask isn't a context. Mar 17 16:38:01 xviv, yes i did Mar 17 16:38:39 so loginActivityTask is not an activity ? Mar 17 16:39:31 I don't know. I'm pretty new to this and I'm using the sample login activity. At least passing "this" like the docs for creating a new intent say Mar 17 16:40:05 If i were you I would go though the training stuff on http://d.android.com Mar 17 16:43:29 I am trying to unregister device at GCM, I call GCMRegistrar.unregister(context); but the onRegistered() method in my GCMIntentService is never called Mar 17 16:43:46 Acquiring wakelock is the last thing in LogCat Mar 17 16:44:34 Ooooh yeah! Got saving and loading to work within 2 hours! Mar 17 16:45:14 well, still some issues, but at least most of it works Mar 17 16:47:34 what does that dollar sign do? backpackz: reference the innerclass Mar 17 17:00:30 hello Mar 17 17:01:03 is there anybody that is willing to help me with ExpandableListView? Mar 17 17:01:36 Hi, I'm thinking of writing an app to simulate a filesystem when the phone is plugged in via USB. Is there any way to do this with a non-hacked phone, or does the Android OS always take priority? Mar 17 17:04:04 there's not really a way to do it with stock android Mar 17 17:04:26 there's probably some hooks for providing your own files via MTP for newer versions of Android, though Mar 17 17:05:27 zinx: Ok thanks, I'll carry on looking into it Mar 17 17:05:59 It won't actually be serving files, but data that's generated on the fly, made to look like files. Mar 17 17:07:03 question about GoogleAccountCredential from the playservices sdk -- is the instance created by GoogleAccountCredential.usingOAuth2(...) create a basically unique instance, that's aware of previously authorized credentials from other activities? Mar 17 17:08:10 Is it possible to set programmatically the height of each group of an ExpandableListView so that, if I have 4 group, each group occupies, at most, 1/4 of the layout height, regardless of child number? Mar 17 17:10:13 gianpaolo72: would that not mean having a scroll in a scroll ? Mar 17 17:10:20 which is kinda bad Mar 17 17:10:46 oh you're right Mar 17 17:10:47 stupid me Mar 17 17:10:59 also why dont you just have a max child number ? Mar 17 17:11:12 the max + 1 = show more Mar 17 17:12:08 can use getViewType() for doing things like that Mar 17 17:13:32 I have this requirement to show 4 lists and they *must* occupy 1/4 of the layout height. I guess ExpandableListView was not the good choice, so Mar 17 17:13:44 Hey guys, so I'm trying to understand a few lines of code and I think I do but I wanted to be sure. So I've pasted the code and commented on them what I think it's doing. Could someone please check that I'm getting it right? http://pastebin.com/qYN06b3e Mar 17 17:15:58 is there a better way to find the cause of a nullpointer? logcat doesnt give me enough information Mar 17 17:16:12 coco89: what's the question? Mar 17 17:16:20 backpackz: sure it does Mar 17 17:16:22 coco89: tell me the line number Mar 17 17:16:27 and pretty easy to work out Mar 17 17:16:34 as in the linenumber Mar 17 17:16:39 monsti: Am I understanding the code correctly (all of it) Mar 17 17:16:49 backpackz: The log will show you exactly where it encountered the null pointer, so it should be easy enough from there really Mar 17 17:16:49 what object.method you calling where the object is null Mar 17 17:17:40 coco89: from my point of view it's ok Mar 17 17:17:41 inside ArrayAdapter.java. thats a file i cant edit or view Mar 17 17:18:20 backpackz: so something that your putting into it is null Mar 17 17:18:41 monsti: ah awesome, what about getClass() i'm a bit confused about that Mar 17 17:18:49 backpackz: It's usually because you're referencing something you haven't actually initialized. For example, something that's set up in a try{}catch{} block, and you're ignoring the fact an exception has happened etc. Mar 17 17:19:52 coco89: thats the class for the pending event - in your case the current activity Mar 17 17:20:00 of couse you can have a differen activity Mar 17 17:20:44 Can I use source and assets from the AOSP in my own (for-profit) app? Given that the app itself will also be under Apache, and any repurposed source files are properly attributed Mar 17 17:21:06 you were right .did a search for arrayadapter. apparently i was referencing an xml file that i had modified earlier Mar 17 17:21:08 My reading of the Apache license says yes, I'd just like to be sure Mar 17 17:21:14 jrajav: yes Mar 17 17:21:23 C0deMaver1ck: the same stuff is used in notifications Mar 17 17:21:26 zinx: Thanks Mar 17 17:21:39 sry coco89 Mar 17 17:21:44 cool Mar 17 17:22:07 monsti: why is the pending event the current activity? Mar 17 17:22:25 coco89: because getClass goes to "this" wichi is the activity in your case Mar 17 17:22:36 youc an use e.ge. a FooActivity.class Mar 17 17:22:54 Ahh right Mar 17 17:22:57 ... java is strange in a loto of ways ... compared to C# Mar 17 17:22:57 what are we diong with the class? Mar 17 17:23:30 coco89: in case of an event this is the activity that's put to the front Mar 17 17:23:42 the pending event Mar 17 17:24:07 the notification manager works similar Mar 17 17:24:20 in case the user clicks to an item - an activity get's started Mar 17 17:25:09 I see, so the activity of the class? Mar 17 17:25:26 getClass() returns the class of the "this" instance Mar 17 17:25:37 which is - in your case - the activity that's currently opened Mar 17 17:25:45 ahh Mar 17 17:25:48 Foo.class gehts the classtype of Foo Mar 17 17:25:51 -h Mar 17 17:28:21 monsti: I think I get it :) Mar 17 17:28:23 thanks a lot! Mar 17 17:31:25 getClas returns the _class_ of the activity that's currently open so it would be MainActivity if the class is called that? Mar 17 17:32:00 I may be confusing myself between classes and activities Mar 17 17:32:04 in my head they're the same thing :P Mar 17 17:32:04 lol Mar 17 17:34:38 is there a convenient utility method that lets me know if I'm inside the main thread? Mar 17 17:35:52 if (Looper.myLooper() == Looper.getMainLooper()) { ??? Mar 17 17:36:01 Something like Thread.currentThread() == Looper.getMainLooper().getThread() I'd imagine Mar 17 17:36:13 ^ not all threads have a looper Mar 17 17:36:42 Dunno if it breaks if there is none Mar 17 17:36:50 SimonVT: returns null if there isn't one Mar 17 17:36:52 so it still works Mar 17 17:37:00 Alright then Mar 17 17:37:01 (just looked it up :p) Mar 17 17:37:19 capella / SimonVT -- great, thanks Mar 17 17:37:48 uhm... services scare me a little. Do you have a good tutorial where it's explained (1) how to setup a timer to execute a method every X time, how to call that method manually via an activity call and how to access the service as a singleton? Mar 17 17:38:33 credit chainfire Mar 17 17:39:00 I hope to god it's just the emulator and debug outputs that are causing my app to be slow =I Mar 17 17:39:42 NullEntity: are you using the Intel's HAXM and host GPU? Mar 17 17:40:19 Nope. Guess I should do that then? Mar 17 17:40:49 you can, but HAXM can be installed only if you've got an Intel CPU havint VT-x module available and enabled in BIOS/EFI Mar 17 17:40:57 habing* Mar 17 17:41:03 oh well Mar 17 17:41:06 having** Mar 17 17:41:26 I have an AMD CPU. I guess I'm stuck with crappy performance then? :P Mar 17 17:41:35 yep I think so Mar 17 17:41:40 whats AMD ? Mar 17 17:41:50 emulator == slow Mar 17 17:42:00 ask AMD to develop a similar module lol Mar 17 17:42:09 btw AMD is good for gaming only - I have to assume Mar 17 17:42:23 That's mostly what I do. Mar 17 17:42:27 elegos: dont think so Mar 17 17:42:29 :) Mar 17 17:43:31 Intel's processors are better for high-load math operations like statistics etc Mar 17 17:43:47 even if I'm curious about the future of RISK/ARM architecture Mar 17 17:44:11 elegos: you would not concider games/logic math heavy ? Mar 17 17:44:21 Found the setting for using host GPU though. Helped a lot. Mar 17 17:44:45 StingRay_: it varies a lot from game to game - if you're talking about physic calcs not using PhysX... yes Mar 17 17:45:04 (in games using advanced physics with crap loads of particles) Mar 17 17:45:33 so AMD is good if your game looks sparse and not lots going on ? Mar 17 17:45:34 :) Mar 17 17:45:56 buy a GF Titan and you are done for fast calculations :P Mar 17 17:46:19 I'm saying that advanced calculations are not made running a game Mar 17 17:46:30 you will never access all the power of a CPU in a game Mar 17 17:46:42 elegos: that really depends Mar 17 17:46:44 that depend on the type of game... Mar 17 17:46:52 and the programers doing it... and company Mar 17 17:47:24 well, my personal experience is that on my quad-core usually games use at best 2 cores Mar 17 17:47:35 (disabiling hyper-threading for playing) Mar 17 17:47:49 games usually use GPU Mar 17 17:47:53 well my personal experience is the games that I've worked on I have be CPU bound more than a few times Mar 17 17:48:13 tyoc213: that may change in a near future :D Mar 17 17:48:17 more so that GPU bound Mar 17 17:48:20 http://www.euclideon.com/technology-2/ Mar 17 17:48:22 elegos, not really not Mar 17 17:48:29 tyoc213: yes, really yes Mar 17 17:48:35 I hope not Mar 17 17:48:47 why not? you'd save 300 bucks Mar 17 17:49:36 because... power... you need to have power at home... if you want to do other thigns than gamming if that thing is the solution to all rendering problems Mar 17 17:49:59 still you would need to have power at home... like a Titan if your little company want to go a little high in calculations ;) Mar 17 17:50:21 so just saying if everybody wont save money, then they will offer only to companies like google Mar 17 17:50:30 MS and guys who will pay for it Mar 17 17:50:54 so I hope not, not not even take power from users... yeah construct better algorithms, but low your power :P Mar 17 17:51:01 not Mar 17 17:51:37 oh well, from my personal point of view, if you can avoid rendering using points of colors and using ray casts to decide what to show and what not, you can have virtually unlimited graphics detail at little CPU cost Mar 17 17:52:17 i.e. a full HD monitor displaying ~2 megapixels out of +inf in the virtual world Mar 17 17:52:20 o yap, but not all is graphics and display ;) Mar 17 17:52:40 well, you actually have crap models in games due to real time rendering Mar 17 17:52:52 you just avoid the rendering process and puff it's all better and faster Mar 17 17:53:01 btw Mar 17 17:53:05 :) Mar 17 17:54:12 returning to my problem: any link to a service tutorial explaining how to execute it at android start, how to periodically execute a method and how to execute service's methods from an activity, and lastly broadcast results? Mar 17 17:54:33 P.S. I really hope Euclideon technology arrives in the game industry <3 Mar 17 17:54:57 figuring out how to efficiently calculate/draw a scrolling penrose tiling was pretty fun Mar 17 17:55:19 elegos: there have been many attempts at such things Mar 17 17:55:44 i even remember RenderWar having procedural texture generation and patch based geometry Mar 17 17:55:49 RenderWare* Mar 17 17:56:05 StingRay_: yep, but Euclideon demos demonstrate their technology is successful :) Mar 17 17:56:24 elegos: there have been many VOXEL based engines too Mar 17 17:56:29 one of the biggest problems was, having virtually infinite points, the need of infinite RAM Mar 17 17:56:52 but it uses very little RAM, according to them Mar 17 17:57:09 also, collision detection, but they said they figured out that Mar 17 17:59:13 just looking now Mar 17 17:59:23 I notice a few major things missing so far Mar 17 17:59:32 as a seasoned games artist myself Mar 17 17:59:56 those demos are of 2011 Mar 17 18:00:04 there is no shadow engine yet in there Mar 17 18:00:13 well yeah thats a biggy Mar 17 18:00:16 thanks. bye Mar 17 18:00:32 also very simplistic shading models Mar 17 18:00:54 not even sure how advanced shaders would work since it would have no fragment Mar 17 18:01:00 only pixel based Mar 17 18:01:01 reading their blog they say they're implementing all those things Mar 17 18:01:26 btw there's already an implementation of their technology (geo-something) Mar 17 18:01:47 based upon photos, they realised 3d models with that technology Mar 17 18:01:51 (AFAIK) Mar 17 18:02:08 well there are many point based tech Mar 17 18:02:13 used in both games/vfx Mar 17 18:02:18 more so in vfx tbh Mar 17 18:02:32 like RenderMan PR has brickMaps Mar 17 18:02:47 infinate quality elements Mar 17 18:02:56 models or advance surface shading etc Mar 17 18:11:22 i just remembered i asked this question because my listview was on a fragment and if i also remember correctly Im not supposed to use intents to pass the data from the listview to another fragment? Mar 17 18:14:28 Hi, im getting this error: "R cannot be resolved to a variable". I have googled it and tried all the suggestions I can find. Mar 17 18:15:02 intelliJ++ Mar 17 18:16:27 haqe17: try to see if you have no errors in your xml's or others that make the generated R file Mar 17 18:16:44 and clean and build all Mar 17 18:17:18 i have none tyoc213 Mar 17 18:18:31 hey guys, how exactly is the onNewIntent method called? I can't see it being called anywhere? http://oi48.tinypic.com/2z71kso.jpg Mar 17 18:18:45 if you have no R.java generated file, then try to see why, start a new example project :)... or if it was there before... try to see what you ahve changed in code that make it not able to be generated Mar 17 18:19:29 coco89: you missed parts of the trainin on d.android.com Mar 17 18:19:36 training* Mar 17 18:19:43 oh Mar 17 18:19:47 or you ignored it Mar 17 18:19:48 :) Mar 17 18:19:51 :P Mar 17 18:20:33 I have a feeling you're not going to tell me Mar 17 18:20:35 lol Mar 17 18:22:46 Are there any special steps to get maven to see a ServiceTestCase? All ActivityTests are seen and run fine, but it doesn't run any service tests at all. Mar 17 18:23:19 coco89: it a question where the answer is something you need to linearly progress to Mar 17 18:23:33 or you just gonna be in here asking loads of questions all the time Mar 17 18:23:46 giving the impression you dont want to go though the learning process that google have Mar 17 18:23:48 :) Mar 17 18:24:19 StingRay_: I guess, where should I start? I'm worried about time management :P Mar 17 18:25:01 well attempting to do m,n and o while not doing a,b,c,d… is a massive waste of both your time and anyone you ask in here Mar 17 18:25:42 when you learn something, ask yourself questions till you dont have any left, then you move to the next step Mar 17 18:25:57 thats always the most effective way to learn Mar 17 18:26:17 * StingRay_ is a tutor/instructor and have studied both learning and teaching :) Mar 17 18:26:37 yeah i guess, thanks for your advice Mar 17 18:26:53 btw not an instructor/tutor in android development! !! but the idea is the same Mar 17 18:27:46 yeah for sure! Mar 17 18:27:51 If you're in a hurry, the answer to everything is 42 Mar 17 18:28:01 why 42? Mar 17 18:28:12 ok he's young Mar 17 18:28:16 very young Mar 17 18:28:17 heh Mar 17 18:28:17 :) Mar 17 18:28:20 and 21 is only the half of the truth Mar 17 18:28:48 coco89: your 15-18 right ? Mar 17 18:28:55 23 Mar 17 18:28:57 StingRay_, So how'd you get involved in Android Development? Mar 17 18:29:15 jda2000: it's something I didn't know and I was bored Mar 17 18:29:42 also used to hate programmers in both VFX tech and Games dev Mar 17 18:29:53 so thought it best to see a little into the world of coding Mar 17 18:30:07 StingRay_, Really?! I'm impressed. Mar 17 18:30:17 impressed? why ? Mar 17 18:31:00 StingRay_, It's a rare thing to find someone who will tackle a difficult subject just for the fun of learning. Mar 17 18:31:26 I learned a bit of law an latin too Mar 17 18:31:39 for the LAW MAXIMS Mar 17 18:31:40 :) Mar 17 18:32:03 but I have done equally unintellegent things too, so it evens out Mar 17 18:32:21 StingRay_, That's cool. Mar 17 18:32:50 actually I'm quite dumb tbh Mar 17 18:33:08 but thats a big advantage when learning Mar 17 18:33:27 I'm so dumb I have to think about things in the simplest of ways Mar 17 18:33:29 :) Mar 17 18:33:35 * monsti loves when hackes hack hackers Mar 17 18:33:43 StingRay_, Such modesty! I notice you are one of the more helpful people around here. I was thinking you worked for Google. Mar 17 18:34:08 |is of the body| Mar 17 18:35:23 jda2000: come into #maya and ask vfx/games art TD questions etc. thats my professional experience subject, also I'm an Autodesk ATC instructor Mar 17 18:35:39 I actually know what I'm on about in that subject Mar 17 18:35:47 here is like a 90% guess :) Mar 17 18:36:15 StingRay_: you're an ATCO? Mar 17 18:36:37 Authorized Training Center Mar 17 18:37:05 in other words I have an instructor number from autodesk and a list of things I can deliver authorized training on Mar 17 18:37:10 Maya, Mudbox etc Mar 17 18:37:17 Oh i see Mar 17 18:37:29 at the end of the day tis a number, some paper and a db entry Mar 17 18:37:29 Grah. This is such a bitch. I'm trying to log into a website and save the cookies only through the app. So sending a POST request with the right data. Except sometimes, it asks for a captcha. From what I can tell, the captcha is generated through Javascript so I can't read it just from the HttpRequest. But if I use a WebView, I can't access the cookie store or DOM. Any ideas? Mar 17 18:45:41 hi folks. i'm simply trying to set the text of an inflated TextView: http://ideone.com/42ObTJ but the text isn't changed :/ Mar 17 18:46:17 am inflating it in the wrong way somehow? it's not crashing or anything, so it seems the inflation was successful. Mar 17 18:46:23 *am i. Mar 17 18:46:31 NullEntity, How about a proxy to modify the page on the way to a browser so you can see the captcha and yet controll the outcome? Mar 17 18:46:48 s/ll/l/ Mar 17 18:46:53 estan: are you actually attaching the textView to a view that you can see ? Mar 17 18:46:57 just making sure Mar 17 18:46:58 :) Mar 17 18:47:26 jda2000, the problem is that I need the Javascript to be evaluated. Mar 17 18:47:34 Or bitch at the owner to fix it :v Mar 17 18:47:40 NullEntity, yes by a real browser Mar 17 18:47:40 but he hates changing shit Mar 17 18:48:11 NullEntity, but you also need your own logic to run. Mar 17 18:48:25 StingRay_: yes. it has some static data in it to begin with, which i can see :) Mar 17 18:48:33 NullEntity, Which you must insert on the fly. Mar 17 18:49:14 estan: hang on, your creating/inflating it Mar 17 18:49:19 NullEntity, My other idea is that the web site really doesn't want you to be doing whatever you are trying to do. Mar 17 18:49:25 so how can you see it before that time ? Mar 17 18:49:52 The problem is that it doesn't work if you have Javascript disabled .-. Mar 17 18:49:54 estan: maybe you should paste more Mar 17 18:50:03 I'll just bitch at someone to fix it Mar 17 18:50:41 NullEntity, I crave to kknow why you can't enable javascript? Mar 17 18:50:52 s/kk/k/ Mar 17 18:51:15 I'm using AsyncHttpRequests. From a WebView, I can't access the DOM. Mar 17 18:51:33 capella|near: you are pretty colorful with your nick statuses Mar 17 18:52:19 * g00s is waiting for capella|far Mar 17 18:54:44 StingRay_: this is the minimal test case: http://ideone.com/bJXv0O (and the layout XML at http://ideone.com/WTZrZG) Mar 17 18:55:06 NullEntity, Well, if you can see the javascript code, I don't think it would be to hard to parse. Mar 17 18:55:32 heh Mar 17 18:55:48 estan: ok your setContent is inflating it to current activy view Mar 17 18:55:57 NullEntity, Maybe you can figure out what it would calculate if the captcha was valid. Mar 17 18:56:08 and then your inflating it to a variable that is not attached to anything that can be seen from the view Mar 17 18:56:51 estan: so take out your inflate Mar 17 18:56:59 afk Mar 17 18:56:59 TextView tmp = (TextView) findViewById(R.id.tmp); Mar 17 18:57:02 StingRay_: alright. it's a clear case of PEBKAC :) thanks. Mar 17 18:57:54 worked great. and makes sense. Mar 17 18:57:54 if for some reason you did want to inflate yourself to View layout, you would also setContentView(layout) Mar 17 18:58:05 yep. Mar 17 18:59:19 anyone fancy helping me with my issue? Mar 17 19:00:12 Ash__: no1 will really answer that Mar 17 19:00:22 you know why right ? Mar 17 19:00:26 heh Mar 17 19:00:29 lol Mar 17 19:00:31 no1 could ever know if they could Mar 17 19:00:37 true Mar 17 19:00:44 so would have to say, errr NO thanks though Mar 17 19:01:18 if i explain my issue would that help Mar 17 19:01:32 or a transaltion of what you just said would be "can some1 please ask me what my problem is" Mar 17 19:01:42 HAHAHA Mar 17 19:01:52 u got attitude mate Mar 17 19:02:08 actually no … I'm attitudeless Mar 17 19:02:30 Step 1) Ask question Mar 17 19:02:31 Step 2) Wait for answers if available Mar 17 19:02:39 cheers Mar 17 19:02:41 Step 3) ???? Mar 17 19:02:44 Step 4) PROFIT Mar 17 19:02:46 goto 10 Mar 17 19:03:00 Step 10) leave in a huff Mar 17 19:03:04 goto 10 ! you're killing me ! Mar 17 19:03:21 * capella|near sighs ... misses BASIC Mar 17 19:03:36 redo from star? Mar 17 19:03:36 i have a viewpager which has mutiple pages with gridviews in populated by a custom adaptor Mar 17 19:03:49 *curson blinks* Mar 17 19:03:50 the lists populate fine and show the correct images etc Mar 17 19:04:14 but when i click in and out of a item and then click another item im getting invalid index Mar 17 19:04:34 jda2000, thanks, I think that'll work. Looks like I can get the URL out of the Javascript./ Mar 17 19:06:02 I just sprinkle Log.d messages everywhere cause Im too lazy to use the debugger Mar 17 19:06:05 NullEntity, You must realize though, that if they did their job correctly you won't be able to manipulate their web site in a 100% automated method. Mar 17 19:06:56 Well, it's not. I'm still having the user submit the Captcha. I don't see why I shouldn't be able to be. I'm just sending user submitted data from a form. Mar 17 19:07:13 That way I can use the cookies later for sending AJAX requests. Mar 17 19:09:09 And I don't see why anything wouldn't be able to be automated anyway. It's all POST/GET requests. Mar 17 19:09:25 i started compiling /framework/base but its still at "target DEX: framework" and wont go any further, is it normal for it to take soo long? Mar 17 19:10:01 NullEntity, i like your name, kinda want to take it, lol :D Mar 17 19:10:39 :P Mar 17 19:10:44 I'm not very creative Mar 17 19:10:47 NullEntity, The part about figuring out what's in the captcha image would be the most difficult to automate. But you know that. Mar 17 19:11:25 I'm not automating it. Just presenting the image for the user without using a WebView. Mar 17 19:11:50 why do i see these two buttons in the design view but not when i run the app? http://pastebin.com/pFePyz8Z Mar 17 19:12:10 posted my issue on stack: http://stackoverflow.com/questions/15465019/viewpager-with-gridview-invalid-index-error Mar 17 19:12:17 NullEntity, I hear that some people send all the images to sweatshops in India where they a cracked for a few pennies each. Mar 17 19:15:29 jda2000, https://www.mturk.com/mturk/welcome Didn't see any for captchas though Mar 17 19:16:57 hi Mar 17 19:17:00 guys Mar 17 19:17:20 Hi Mar 17 19:18:46 how can i force an activity in landscape view? Mar 17 19:18:53 so it could not rotate? Mar 17 19:19:13 via the manifest file Mar 17 19:19:21 or Mar 17 19:19:21 there is an orientation property Mar 17 19:19:23 setRequestedOrientation(ActivityInfo.SCREEN_ORIENTATION_LANDSCAPE); Mar 17 19:19:56 thank you! Mar 17 19:20:27 because when i rotate, the SurfaceView fails and the application stops responding Mar 17 19:21:40 norbi: you rather force users to use an orientation that they dont want ? rather than handle the config change ? Mar 17 19:22:37 StingRay_ anyway the application needs a landscape view... its a school project, i need to work with the camera and the UI is landscape Mar 17 19:22:56 ah, suppose that and games are ok Mar 17 19:23:02 that stinks so hard in android Mar 17 19:23:06 I just hate apps that dont rotate Mar 17 19:23:07 but i tried to force in manifest with android:screenOrientation="landscape" Mar 17 19:23:13 camera and portrait/landscape Mar 17 19:23:16 but it still rotates Mar 17 19:24:08 the camera app rotates ;) Mar 17 19:24:24 that waht stinks Mar 17 19:24:29 welcome to my problems for the last 4 weeks .... Mar 17 19:25:09 monsti: u create a fake surface holder ? for your app ? Mar 17 19:26:19 i am in portrait or landscape then i call the cmera app via intent for getting an image to the sd-card Mar 17 19:26:22 after hta t Mar 17 19:26:24 here is some random stuff happening Mar 17 19:26:50 my app is in portrait or landscape (dependent on the weather) and the image is portrait or landscape Mar 17 19:27:28 is that not a bit odd ? Mar 17 19:27:48 rather than rotating the image to the correct orientation Mar 17 19:27:49 well - yeah ;) even this sucks on different hardware Mar 17 19:27:57 my S3 behaves different then the nexus7 Mar 17 19:28:05 cause I call camera app and save image Mar 17 19:28:05 now the stupid app rotates and not giving error on rotate :D but i wanted exactly the oposite Mar 17 19:28:06 :D Mar 17 19:28:10 i wanted to stop rotate:D Mar 17 19:28:11 and read orientation Mar 17 19:28:12 the image on the nexus 7 is reversed (180 degrees flipped) Mar 17 19:28:49 yea Mar 17 19:28:54 i have the same problem Mar 17 19:28:58 image has to be mirrored Mar 17 19:29:03 the S3 gives me the image and has (sometimes) in the exim info "rotate my by 90 degrees" Mar 17 19:29:24 this is a problem since 2.x i learned from the internet Mar 17 19:29:49 btw. i have no ram to rotate the 8mpixel image ;) Mar 17 19:31:57 if i have made chagnes to /framework/base/telephony, what do i need to compile? Mar 17 19:32:04 well dont you read it in with the correct orientation and use bitmapOptions to get a optimized version ? Mar 17 19:34:59 StingRay_: i can rotate the image by a matrix - but with 8mpixel imgs this sucks ;) Mar 17 19:35:04 i have no 80mb ram Mar 17 19:36:21 i mean your not using bitmapFactory.Options ? Mar 17 19:36:36 cause loading a 8mp image seems like a bit of a waste Mar 17 19:36:39 now i have the camera on my SurfaceView, yay! Mar 17 19:36:42 i want the image rotated but not scaled ;) Mar 17 19:36:49 i wonder how can i implement face detection Mar 17 19:36:50 a 8mp image is what the user wants Mar 17 19:37:07 monsti: they can display it on screen though Mar 17 19:37:15 yeah the gallery can Mar 17 19:37:27 well if you pinch zoom yeah Mar 17 19:37:29 but i don't want to code a gallery (with partial loading) Mar 17 19:37:45 i just want the image not sucking Mar 17 19:38:11 "take a picture" but in the end it's "take a pickture and fix some random stuff that might happen on different devices" Mar 17 19:41:05 monsti: were you serious, last evening, when you said you gave up on single code base per android version ? Mar 17 19:41:15 yes Mar 17 19:41:24 no C++ - no C Mar 17 19:41:31 we rewrite the stuff from scratch Mar 17 19:41:38 oh Mar 17 19:43:31 we have a lot of generated code - e.g. sql/dtaabase model, objects for ORM mapper, DTO objects for the rest services in .net/java Mar 17 19:43:43 so it's not that hard Mar 17 19:45:24 monsti: So you're not rewriting per se, but rather regenerating? Mar 17 19:45:26 ok. we were talking yesterday about independent parallel development branches of an app ; each branch targeting a version of android rather than one code base targetting all versions of android Mar 17 19:46:15 jfpoole: basically i draw the table for the SQL server database - the other stuff is just one click ;) Mar 17 19:46:33 including the sqlite database, the data transefer objects, the orm entities, etc Mar 17 19:46:43 g00s: That sounds like a bad idea for platforms that are so similar. Mar 17 19:46:43 when I fire an AsyncTask they pile up in the DDMS threads, is that normal? Mar 17 19:46:45 this took me a while to get so far ;) Mar 17 19:46:49 :) Mar 17 19:46:58 monsti: Neat. Mar 17 19:47:15 it's the sybase powerdesigner with some simple templates Mar 17 19:48:31 Is PowerDesigner the same as PowerBuilder? Mar 17 19:48:37 no Mar 17 19:49:06 * jfpoole hmms. Mar 17 19:49:14 PB is some rapid development tool with dataaware dialog Mar 17 19:49:18 Surprised I haven't heard of it considering it's on v16. Mar 17 19:49:24 * jfpoole used to work for Sybase. Mar 17 19:49:38 PD started in 1994 Mar 17 19:49:47 i have to import what if i want to implement Camera.FaceDetectionListener ? Mar 17 19:49:47 now it's SAP Mar 17 19:50:26 monsti: Powerbase -> Sybase -> SAP? Mar 17 19:50:32 it says Camera cannot be resolved to a type Mar 17 19:51:11 jfpoole: i started with PD with 11.x it already was a sybase product Mar 17 19:51:21 Gotcha. Mar 17 19:51:36 jfpoole: PD can create alter table statements - that's why i love it Mar 17 19:51:57 e.g. from a database "1.2" to a "5.7" and even from5.7 to 3.4 ;) Mar 17 19:52:13 something i hate fooling around with notepad.exe Mar 17 19:52:28 guys i've created this class: http://pastebin.com/JPtWS81k Mar 17 19:52:29 Powerbase made a lot of interesting RAD tools like that. Mar 17 19:53:01 well it's expensive about $6k ;) Mar 17 19:53:08 but it gives me Multiple markers at this line - The type frontFaceDetectionListener must implement the inherited abstract method Camera.FaceDetectionListener.onFaceDetection(Camera.Face[], Mar 17 19:53:08 Camera) - Camera cannot be resolved to a type Mar 17 19:53:19 Volume was always their problem. Mar 17 19:53:33 That and Microsoft started handing tools out like candy. Mar 17 19:53:42 anyone? Mar 17 19:54:07 my invalid index issue:http://stackoverflow.com/questions/15465019/viewpager-with-gridview-invalid-index-error Mar 17 19:54:36 jfpoole: well - my new collegues with visio and sql server started crying when i showed them PD ;) Mar 17 19:54:45 norbi: Eclipse? Mar 17 19:55:37 You can look up the docs on d.android.com or use "Organize Imports" in pretty much any IDE. In your case, Camera should be underlined in red or something, if you hover over it, you should get suggestion on what to do, like importing the proper class. Mar 17 19:56:20 kakazza yea, eclipse Mar 17 19:56:50 kakazza it says that i should create the Camera interface.. and i have no intention in doing that Mar 17 19:57:41 do i need to import again the import android.hardware.Camera; in that class? Mar 17 19:57:59 but even if i do it says i should implement a method Mar 17 19:58:04 you'll need tons of permissions for the camera Mar 17 19:58:42 actually just one Mar 17 20:04:24 well - a small ton ;() but you need it Mar 17 20:10:48 can i extend activity in a listener? Mar 17 20:21:23 what can be this mean: java.lang.NullPointerException ? Mar 17 20:25:24 Are you guesscoding? Mar 17 20:26:17 kakazza yea, kinda, im in learning phase of android Mar 17 20:26:48 Also Java, right? Even if it takes some extra time, I'd suggest picking up a Java book. Mar 17 20:27:48 kakazza i know some java, i have here 100 java and android books, still when im reading i understand them all but on coding i fail Mar 17 20:29:46 I could go into what a NPE is, but either read them up in one of the few good books or google "What is a Nullpointerexception". I bet there are some good answers on StackOverflow. Mar 17 20:32:43 Hey guys, newbie here having (almost) finished my first app! The last problem I have is that my menu shows twice on a galaxy nexus emulator, and when I click on either of them, the menu is clipped against the edge of the screen as can be seen here: http://i.imgur.com/NRhugS0.png Mar 17 20:35:32 kakazza yea thanks, its clear now, but still cant figure out where is that problem in my code, cause LogCant wont tell, im generating some Log.d exceptions but they wont appear in logcat Mar 17 20:36:17 With a NPE you usually see a StackTrace with the sourcefile and line mentioned in LogCat Mar 17 20:38:14 kakazza yea but it says nothing meaningfull for me: 03-17 20:36:46.003: E/AndroidRuntime(1066): at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2180) Mar 17 20:39:54 There should be a part in the stacktrace mentioning your class. Mar 17 20:40:29 like 'at com.example.myapp.Foo.call(MyFirstClass.java:27) Mar 17 20:41:31 kakazza i cant see any line like that Mar 17 20:43:19 now the original app, that worked before wont work anymore Mar 17 20:56:33 kakazza ok, figured out, setDisplaySurface throws an exception, now trying to figure out why, when its param is the holder and its called onCreateSurface Mar 17 20:57:11 and the IOException is giving back null message Mar 17 20:57:12 ... Mar 17 20:57:30 How can I open the window which asks with which application the intent should be opened? (http://i.stack.imgur.com/6Knpl.jpg) Mar 17 20:58:05 tofra: from an app ? Mar 17 20:58:08 I'm creating a launcher, and if it isn't the default laucher, it should ask to select the launcher.. Mar 17 20:58:09 yes Mar 17 20:58:11 not sure you can Mar 17 20:58:19 it's a systemn/user thing Mar 17 20:58:25 Lockiosk does it.. :D Mar 17 20:59:17 well it probably does it by registering as an app manager Mar 17 20:59:30 then clears defaults on apps that answer that action Mar 17 20:59:35 just guessing Mar 17 20:59:40 let me check the intent options.. maybe I can open my own app, and then supplying a parameter.. Mar 17 21:00:07 hmm, also a good point.. delete the prefference and then open the app again.. Mar 17 21:00:29 how can i add front faced camera to the avd? Mar 17 21:00:45 and back camera Mar 17 21:00:54 norbi: in the setup options Mar 17 21:01:01 ? Mar 17 21:01:03 StingRay_? Mar 17 21:01:12 norbi: ? Mar 17 21:01:21 in the avd settings Mar 17 21:01:24 ? Mar 17 21:01:28 StingRay_ im editing the AVD and the back camera is grayed out Mar 17 21:01:59 do i need to use emulated or webcam? Mar 17 21:02:33 based on what ? Mar 17 21:02:42 who knows what you need Mar 17 21:02:43 :) Mar 17 21:02:58 I know what I need if thats any help Mar 17 21:03:12 StingRay_ i dont know whats the difference Mar 17 21:03:20 what does emulated do? Mar 17 21:03:29 nothing Mar 17 21:03:39 but does not return null as a device Mar 17 21:03:47 so blank framebuffer Mar 17 21:03:50 I think Mar 17 21:04:24 so Webcam0 means that i should have an attached webcam to pc and that would be used ? Mar 17 21:04:42 uhu Mar 17 21:05:17 StingRay_ i got it :D thx, and how can i set a back camera if its grayed out, why it is grayed out? Mar 17 21:05:35 maybe cause your already running the avd ?????? Mar 17 21:05:57 StingRay_ but front isnt grayed out Mar 17 21:06:20 and im not using the avd, if u mean using by starting it Mar 17 21:06:43 well depends what device you choosen Mar 17 21:06:51 read up on avd creation Mar 17 21:07:03 7.0 WSVGA 1024*600 Mar 17 21:07:26 same device i have and it does have back camera, since its a galaxy tab 2 7.0 :D Mar 17 21:12:55 I have the 1.7JDK installed system wide and 1.6 installed "locally" in /home/user/dev/jdk6. I set JAVA_HOME to /home/user/dev/jdk6 but it still picks up 1.7. How do I force it to use 1.6? Mar 17 21:13:18 or can I force make to use 1.7? Mar 17 21:14:24 are there not 3 things to consider / Mar 17 21:14:25 ? Mar 17 21:14:36 JAVA_HOME, JAVA_BIN , PATH Mar 17 21:14:51 I really dont know btw, more a question than anything Mar 17 21:15:29 I would assume both *BIN and PATH contain or should contain %JAVA_HOME% Mar 17 21:16:02 StingRay_: thanks I'll give it a shot Mar 17 21:16:36 if this is linux you might have to play with that 'alternative' rubbish Mar 17 21:16:48 ya it's linux Mar 17 21:17:02 ubuntu ? Mar 17 21:17:10 it sucks cause I do develop 'desktop' java with jdk7 Mar 17 21:17:14 ubuntu 12.10 Mar 17 21:17:26 have a look at this then - https://help.ubuntu.com/community/Java Mar 17 21:17:28 so whats java -version give you ? Mar 17 21:18:13 StingRay_: java version "1.7.0_15" / IcedTea7..... Mar 17 21:18:39 yeah i remember alternative thingy setting up one of my linux mint things that had openJDK install Mar 17 21:18:46 while switching to oracle Mar 17 21:19:04 is the oracle version a must? Mar 17 21:19:14 yeah, I think it is Mar 17 21:19:28 cause I kept getting soo many basic complie java errors Mar 17 21:19:37 so I had to switch Mar 17 21:20:15 i wonder if they will do this on android too http://thenextweb.com/google/2013/03/17/after-testing-a-new-grid-menu-on-its-homepage-google-experiments-with-no-navigation-bar-on-all-its-sites/ Mar 17 21:20:42 the convergence of chrome OS and Android have to be underway Mar 17 21:21:30 guys how can i set the textview from main activity from a listener class? Mar 17 21:21:42 not inside the main class Mar 17 21:24:59 g00s: na Mar 17 21:25:36 unless some1 comes up with the inspired idea to make the soft keys actual hardware buttons …. oh …. wait Mar 17 21:26:37 StingRay_ any idea how can i modify textview value outside from an activity? Mar 17 21:26:55 outside ? Mar 17 21:27:16 dunno, broadcast listener maybe Mar 17 21:27:21 StingRay_: you mean, something like a hw menu button that popped up something like a grid XD XD XD Mar 17 21:27:44 g00s: do you remember opie ? Mar 17 21:27:50 no Mar 17 21:28:06 really ? Mar 17 21:28:08 wow Mar 17 21:28:32 first thing to do with a windows mobile 3.x phone was attempt to put linux and opie on it Mar 17 21:28:34 :) Mar 17 21:29:37 StingRay_ im overriding the onFaceDetection method of the FaceDetectionListener interface and i want to modify textview from the main activity inside this method, how can i do that? Mar 17 21:29:44 g00s: http://tinyurl.com/bqljwga Mar 17 21:30:22 that turned my xda exec into the WORLDS best phone / small micro laptop Mar 17 21:30:32 never heard of it ever before Mar 17 21:30:42 how old are you ? Mar 17 21:31:19 opie wasn't before my time ;) Mar 17 21:31:27 you sure :) Mar 17 21:32:36 Anybody know how I can fix my problem? :) Mar 17 21:33:48 johnhamelink: that just looks pants Mar 17 21:34:01 hmm? Mar 17 21:34:08 StingRay_: the first mention i could find http://web.archive.org/web/20070504212706/http://www.linuxdevices.com/links/LK3806469853.html Mar 17 21:34:16 yeah, never heard of it :D Mar 17 21:34:16 and besides my opinionated visual description … I dont know Mar 17 21:34:21 aah :P Mar 17 21:35:33 opie was the best … really was Mar 17 21:37:00 is there any static textView ? i want write strings on to my screen in static way Mar 17 21:37:07 wth Mar 17 21:39:26 ok night all…time for some sleep Mar 17 21:52:26 MainActivity.consola.setText("FaceDetection", "face detected: "+ faces.length + " Face 1 Location X: " + faces[0].rect.centerX() + "Y: " + faces[0].rect.centerY() +"\n"); Mar 17 21:52:40 normally this says cannot modify consola cause its not static Mar 17 21:53:04 and i have no idea how to change the text or add text to that stupid text view from a class Mar 17 21:53:09 any sugestions? Mar 17 21:58:27 what is consola supposed to be? Mar 17 21:58:50 a public attribute? Mar 17 21:59:45 I would suggest you read a Java book, then try android Mar 17 22:00:32 Joozey consola is a textview that i want to use for console purpose, to write some infos into it why the application runes on the device and not in avd Mar 17 22:00:55 Joozey im reading java book in parallel and ive learned the basics Mar 17 22:01:56 then you should know that objects called from a class instead of an object should be static in order to access them Mar 17 22:03:02 Joozey i do know that, but what i dont get why the textview isnt static, why cant modify it statically Mar 17 22:03:18 only activity can modify textview Mar 17 22:03:38 why do you want the textview to be static? Mar 17 22:04:04 Joozey and that feels stupid to me, since someone may want to extend an api class and do some output from there Mar 17 22:06:33 UI modifications may only be done on the UI thread Mar 17 22:06:55 if you are on the UI thread, you can pass along the activity to search for the textview object Mar 17 22:07:08 in any other object you want Mar 17 22:08:19 Joozey yea but when im overriding a method, there i cant pass the activity... Mar 17 22:09:07 norbi: i think you mix up several different things Mar 17 22:10:33 ultrixx maybe i am ... Mar 17 22:11:25 ultrixx i have this class, here i want to setText of the textview http://pastebin.com/euMSfRuK Mar 17 22:13:53 you want to textview.settext() where Log.d is? Mar 17 22:15:05 ultrixx yes pls Mar 17 22:15:24 ultrixx i tried to replace that but it seems the only method yet is to live debug on device... Mar 17 22:15:27 I'm trying to make the android 4.1.2 source and I'm getting this --> http://pastebin.com/yF4SX67r Mar 17 22:15:38 well then provide your class with a reference to the textview Mar 17 22:15:39 Um.. what's the standard way to update a FragmentPagerAdapter with orientation changes? Mar 17 22:16:47 i suppose you initialize the textview in your main activity, right? Mar 17 22:16:56 I'm basically just doing new mFragment = new Fragment(); in the getItem(), which I suppose is the main issue. My problem is that after orientation changes, using mFragment results in an NPE Mar 17 22:21:24 ultrixx yes i have the textview initialized in the mainactivity Mar 17 22:22:16 ultrixx can you edit that pastebin to show me exactly cause im getting a Nullpointerexception Mar 17 22:23:37 norbi: good, then write a setter method and a class variable in your face recog. class and provide it with the reference to your textview Mar 17 22:27:56 Is possible to organize inside drawable things like @drawable/mycontrol/bg ¿? I ask because I created a folder there and do some like android:background="@drawable/mycontrol/bg.png" and Im getting errors in that line Mar 17 22:28:13 no Mar 17 22:28:18 Any idea why my AsyncTask doesn't seem to be getting called? https://gist.github.com/anonymous/5eb33ae3d891d86dad30 Mar 17 22:28:44 JakeWharton: so in what way I could organize items? Mar 17 22:28:52 use prefixes Mar 17 22:28:54 ultrixx ive created a constructor with textview param then passing the textview to it and set the class variable Mar 17 22:28:55 ok Mar 17 22:29:05 tyoc213: use prefixes Mar 17 22:29:13 ok Mar 17 22:29:24 @drawable/bg_mycontrol Mar 17 22:29:51 norbi: does it work? Mar 17 22:30:09 that would be the other way I think, thx, I will do it from now on Mar 17 22:30:49 utlrixx in avd gives no error yet Mar 17 22:31:00 ultrixx now im sending it to device Mar 17 22:31:02 lets see there Mar 17 22:31:31 ultrixx since avd cant use the camera for face detection it should write anything to console Mar 17 22:31:32 but Mar 17 22:31:41 i wonder if it does on device Mar 17 22:33:00 hmm it works :d it says: face detected .... Mar 17 22:33:01 :D Mar 17 22:33:13 but it eats the device Mar 17 22:33:17 nom nom Mar 17 22:36:01 hmm Mar 17 22:36:05 wont start up anymore Mar 17 22:36:22 it can be some thread that wasnt handled wont shut down or smth? Mar 17 22:36:45 it says app isnt responding Mar 17 22:50:06 eeek, so excited http://puu.sh/2jxHF. Got everything (mostly) working! Mar 17 22:58:06 NullEntity: cool :-) btw, you might have a problem with the asynctask implementation. Basically, you'll want to handle situations where the asynctask is running, while your activity has been destroyed (for whatever reason, maybe orientation change, etc.) Mar 17 22:58:10 how can i draw a rectangle to that surfaceview on wich is the camera? Mar 17 22:58:21 i want a rectangle over the detected face Mar 17 22:58:53 when i put a fragment on a tab, the buttons at the bottom go off screen. how can i stop that from happening? Mar 17 23:00:07 is there a smartphone in the market that can replace hd cams with 1080p/i quality and wifi other than the nokia windows phones? is it the galaxy camera 3g?! Mar 17 23:01:05 I get that "Now is the time to make the switch to the new Developer Console!" over and over in dev console.. is that normal? Mar 17 23:01:13 It won't go away. A refresh and it's back. Mar 17 23:02:23 bah, there's no way to detect when a soft keyboard is shown or hidden Mar 17 23:02:26 absurd Mar 17 23:02:47 Does Nokia have any plans of releasing an android phone or are they locked in a binding contract with microsoft??!? Mar 17 23:02:59 i would seriously buy a lumia with android Mar 17 23:03:33 Quacked: they are turning off the old developers console Mar 17 23:04:51 pragma-: yes, you can detect it Mar 17 23:04:51 This is a "luxury" phone? seriously?! http://www.vertu.com/en/collections/vertu-ti.aspx Mar 17 23:06:13 pragma-: http://developer.android.com/reference/android/inputmethodservice/InputMethodService.html#isInputViewShown%28%29 Mar 17 23:06:37 * Bleeptech wonders WTH is wrong with Log.d(TAG, DEBUG---------- @string/server_string = + R.string.server_string) Mar 17 23:06:51 blognewb: i'd rather get google glass Mar 17 23:07:54 Bleeptech: you have no quotes in there ... Mar 17 23:08:19 10000$ Mar 17 23:08:29 https://www.youtube.com/watch?v=_ncxTws4Ctc Mar 17 23:08:30 amongst other things Mar 17 23:09:23 Napalm: nope Mar 17 23:11:24 pragma-: nope? Mar 17 23:11:44 doesn't work Mar 17 23:11:53 bankai_: I want to print the current contents of R.string.server_string. Mar 17 23:12:52 It also barfed when I tried @string/server_string.. Mar 17 23:13:38 String msg = context.getString(R.string.foo); Mar 17 23:14:05 Log.d("TAG", msg); Mar 17 23:15:49 if i want to draw over the camera something do i need another surface holder also or only another surfaceview above the camerapreview? Mar 17 23:21:24 capella: Thank you.. Trying now Mar 17 23:22:06 use the appropriate context ... or add: Mar 17 23:22:08 Context context = this; Mar 17 23:25:05 Napalm: yeah, theyre turning off the old console, but I dont want to see that bloody message every day till 15th of april Mar 17 23:25:57 capella|away: better to use context than getResources()? Mar 17 23:26:06 Quacked: try clearing your cookies Mar 17 23:26:25 Napalm: it's probably an Opera browser thing Mar 17 23:26:27 thanks Mar 17 23:26:39 Just wanted to know if it was there always for everybody or just me Mar 17 23:28:12 context.getString() calls getResources().getString() internally Mar 17 23:28:37 guys, help me out here pls Mar 17 23:29:18 if i want to draw a point over lefteye on camera preview, normally android dev says that i dont have to create another surface Mar 17 23:29:28 i mean another surfaceview Mar 17 23:30:17 but the camera is already using the surface view and how can i lock it to draw over a rectangle or somehting? Mar 17 23:30:22 JakeWharton: what does that mean? Mar 17 23:30:30 they do exactly the same thing Mar 17 23:30:48 ok :) Mar 17 23:31:03 I tend to always use getResources() for some reason Mar 17 23:31:11 What's the best way to manage my activities? LoginActivity as the started activity and calling ChatActivity after the user's logged in or ChatActivity calling LoginActivity before letting the user chat? Mar 17 23:31:37 the latter Mar 17 23:31:59 99.9% of the time they'll already be logged in so you don't want to waste a redirect through LoginActivity Mar 17 23:32:15 yeah, that's right. Thanks. Mar 17 23:34:00 or how can i put one surface over the another Mar 17 23:34:01 ? Mar 17 23:34:21 anyone ever seen "javabinder failed binder" ? Mar 17 23:34:24 noone can help me out with this? even with a link to an example\ Mar 17 23:35:21 from what I gather I exceed the internal cache, but trying to figure out what uses that cache. Mar 17 23:35:39 norbi: I don't think you can have two surfaces on screen Mar 17 23:35:57 I don't know details of getting a hold of the camera preview Mar 17 23:36:05 's surface Mar 17 23:36:44 p_l so theoretically i should hold the camera surface, draw over it then start over? Mar 17 23:36:59 sounds like a plan Mar 17 23:39:39 p_l but thats what i should do? Mar 17 23:40:08 ah, reading through the docs, you pass *your* surface to preview, then you can paint on it within callback Mar 17 23:40:21 or you make preview display to texture and use that texture Mar 17 23:51:29 I'm really struggling with my android build, I'm getting this --> http://pastebin.com/yF4SX67r Mar 17 23:51:32 hm. the last argument i get in onItemClick(AdapterView parent, View view, int position, long id), is that the same ID as returned by public long getItemId(int position) in the Adapter for the ListView? Mar 17 23:51:48 p_l so i should override onDraw in the callback? Mar 17 23:52:27 I've looked up as much as I can but all I get is instructions for Cyanogenmod, not sure where I can find my configuration file or maybe I have to make one? Mar 17 23:53:42 any help is appreciated Mar 17 23:56:25 Coded1: wrong channel, mate, read the topic Mar 17 23:59:18 bankai_: sorry about that, thanks for the heads up Mar 18 00:03:26 guys, (View)draw(null); will give Nullpointerexception or it will run fine? Mar 18 00:04:14 try it .... report back Mar 18 00:08:29 why im getting error inflating class? Mar 18 00:08:33 in xml? Mar 18 00:23:18 Hi everyone ! Mar 18 00:23:43 Are there any of you using Appinventor for creating android app ? Mar 18 00:24:50 is there any way to run valgrind on an app that normally would be executed by activitymanager? I have valgrind able to run on native apps, but I want to check for leaks in a dynamically loaded .so file loaded via java native interface (JNI), I see that am start just sends a message via /dev/binder to something else that loads the vm for the app, can I run an app standalone so I can invoke it from valgrind (valgrind cannot remote attach to a Mar 18 00:27:15 my thought was if the activity manager could be restarted I could invoke it from valgrind too, if I couldn't run an app standalone in a separate activity manager Mar 18 00:29:08 Hmm... How the hell do I get "this" as a context in a java file Mar 18 00:29:31 Bleeptech: extend that class from Context Mar 18 00:30:59 Context context = this; Mar 18 00:31:32 after created this custom view http://pastebin.com/QUCZScFC im getting fatal signal 11, why is that? Mar 18 00:32:31 capella: Been trying that and chasing my tail.. Eclipse wants me to change "Context context = this; to "FuncName context = this;" Mar 18 00:32:53 cast it ;) Mar 18 00:33:24 use intelliJ :D Mar 18 00:33:50 capella: :P~ Mar 18 00:33:53 (but that's my answer to everything) Mar 18 00:34:11 capella: i'd tried doing android/java devel for years, on and off. I tried intellij and suddenly my life is easy enough for me to build my first app today :) Mar 18 00:34:23 \o/ Mar 18 00:34:35 * Bleeptech casts 2D10 at capella.. Mar 18 00:34:48 So I'd recommend it to anyone who can't get "into" android development Mar 18 00:34:54 * capella wonders what that means Mar 18 00:35:16 whats wrong with eclipse? Mar 18 00:35:16 (I've been developing for 6 years, never done java before now) Mar 18 00:35:50 Quacked: I think for me the UI was too alien and it was too big of a learning code on its own Mar 18 00:35:51 Let's start with the need for a "clean" button Mar 18 00:35:58 *curve Mar 18 00:36:29 capella: instead of Project - Clean? Mar 18 00:36:53 I'm not a big fan of traditionally "java-based" IDEs like netbeans/aptana/eclipse but for me intellij breaks the mould and makes me want to use and IDE (I'm normally a vim user) Mar 18 00:36:55 no, just the need for the functionality in the first place Mar 18 00:37:01 aha Mar 18 00:37:34 * Bleeptech hides under a class declaration.. Mar 18 00:37:52 Oh crap.. I've started an IDE flame war... Mar 18 00:38:14 where? Mar 18 00:38:26 nobody's flamed, it's all good ^^ Mar 18 00:39:13 Bleeptech: did you try this? Context context = (Context) this; Mar 18 00:43:11 swoolley: Error: Cannot cast from UserFunctions to Context Mar 18 00:44:59 Bleeptech: is this an anonymous class inside your activity? Mar 18 00:46:00 It's a library.. com.example.foo.library Mar 18 00:46:26 your missing my point Mar 18 00:46:27 com.example.foo.library.UserFunctions Mar 18 00:46:42 Bleeptech: pass in your Context into your constructor Mar 18 00:46:58 or extend the UserFunctions class into your own and pass it in Mar 18 00:47:06 Is that legal in this state? Mar 18 00:47:09 LOL Mar 18 00:47:51 So I need to back out and add the Context to the Activity that calls this? Mar 18 00:48:01 what? Mar 18 00:48:06 an Activity is the Context Mar 18 00:48:17 omg Mar 18 00:48:19 read the docs Mar 18 00:49:29 Been reading the docs.. Dyslexia makes them a P.I.T.A.. Mar 18 00:49:37 http://developer.android.com/reference/android/app/Activity.html Mar 18 00:49:54 look at the inheritance chain at the top Mar 18 00:50:17 Activity > ContextThemeWrapper > ContextWrapper > Context > Object Mar 18 00:51:32 Pass the Context from the Activity that calls this, to this Mar 18 00:53:24 OK.. More reading.. Guess I'll feed my face while I'm at it.. Mar 18 00:54:29 how can i stop onDraw from drawing and only draw when i ask for it Mar 18 00:54:31 ? Mar 18 00:56:00 Why did Google go for Eclipse in all the training sessions and that? Popularity? Mar 18 00:58:27 * Bleeptech went for Eclipse because he's running Fedora 17 for a desktop.. Mar 18 01:03:49 zzzz Mar 18 01:03:50 gnite Mar 18 01:04:31 goodnight missus calabash Mar 18 01:04:43 Bleeptech: what does f17 have to do with eclipse? wouldn't intellij, netbeans, etc also run? Mar 18 01:05:42 zztr they definitely should Mar 18 01:06:18 shhhhh... dont tell him Mar 18 01:06:31 how can i call onDraw() when i want to? Mar 18 01:07:03 i used this: drawingSurf.setWillNotDraw(true); Mar 18 01:07:18 now how can i draw the drawingSurf when i want to? Mar 18 01:08:34 * Bleeptech has intellij downloading. Mar 18 01:09:23 Bleeptech: i had the paid version because they did a 75% off sale - got appcode as well while i was at it :3 Mar 18 01:10:31 s/had/have/g Mar 18 01:15:28 hi all..i hv a questions about 4.2.2 file structure..where can i find the complete eXplanation about them? Mar 18 01:20:15 75% off with source was what - like 120$ ? Mar 18 01:24:56 oh no - thats com'l rates Mar 18 01:36:05 hm. how would i parse a date like "2013-03-18T01:03:51+01:00" using SimpleDateFormat, should "yyyy-MM-ddTHH:mm:ssZ" work, eventhough there's a colon in the timezone. Mar 18 01:36:22 e.g. "+01:00", not "+0100". Mar 18 01:38:00 how can i pass faces to a view? Mar 18 01:38:25 if i try to set class variable with faces from facedetection the application crashes Mar 18 01:39:11 that probably is caused by frequently changing the class variable faces and the view cant draw the face cause on the time it was changed Mar 18 01:39:13 i guess Mar 18 01:39:35 in eclipse how do i make a short cut global? Mar 18 01:39:49 i bind cmd/ctrl R to the run but it only works in windows Mar 18 01:39:50 eclipse is nice for somethings Mar 18 01:39:54 and not nice for somethings Mar 18 01:40:05 there doesn't seemto be an option to run everywhere Mar 18 01:40:11 Aptana and Windriver are some of the ones, that got it right with it Mar 18 01:40:49 the one for Android? Mar 18 01:40:50 hell no Mar 18 01:41:18 but I haven't used it to much of an extent :/ so there is more testing to do Mar 18 01:41:18 fml Mar 18 01:41:55 so can you have a global shortcut? Mar 18 02:19:10 hi there, is there any good package to replace com.android.camera.action.CROP since CROP is not in the API list of various SDK version? Mar 18 02:37:51 If I have a linear layout, in which I have 4 image views and 4 text views, how do I change the text size(and image size) to be smaller when the combined strings exceed the width of the display and basically start wrapping around? Mar 18 02:38:27 Hey guys, I'm having an issue with Pager Adapters, I followed the tutorial, and I'm getting an error that tells me to change away from the support class. If I fix that, it tells me to use the support class on another line, let me pastebin this Mar 18 02:39:02 how can i check if a point is not empty? Mar 18 02:40:44 http://pastebin.com/Uy3jZkE0 Mar 18 02:40:46 thanks so much! Mar 18 02:43:10 guys, line 40 gives me fatals signal 11 http://pastebin.com/7hwGgGRQ Mar 18 02:43:17 can you check it out for me please? Mar 18 02:43:42 ollienx: probably a problem with mixing support and non support fragments Mar 18 02:44:52 I can give you my fragment class, hang on Mar 18 02:45:30 http://pastebin.com/R5aqHXS2 Mar 18 02:48:09 wow Mar 18 02:48:25 Nothing but 4 textviews and 4 imageviews and my app is already using over 7 megabytes of ram... Mar 18 02:48:40 it's going to end up like my previous which went over 13 Mar 18 02:48:43 how large are the images? Mar 18 02:48:56 they are erm 36x24 I think Mar 18 02:50:03 and I've seen 3d games use waay less than this Mar 18 02:50:14 ram i mean Mar 18 02:53:57 ideas? Mar 18 02:54:06 what happens if you comment out the imageviews Mar 18 02:56:52 nothing much Mar 18 02:56:55 still 7mb Mar 18 02:57:08 odd Mar 18 02:57:20 the only code you have is textviews and imageviews you say? Mar 18 02:57:42 Well, I do have code that does other things, but overall it was a lot of UI stuff **** ENDING LOGGING AT Mon Mar 18 02:59:58 2013