**** BEGIN LOGGING AT Sun Mar 24 02:59:58 2013 Mar 24 03:06:18 vovkab: What's awkward is the I never imported the compatability libraries and it never gave me an error. Mar 24 03:07:04 abs has one in lib directory Mar 24 03:10:46 vovkab: is it safe to delete all the android files in my own project then since It will be getting them from the sherlockactivity? Mar 24 03:10:52 Nvm that was stupid Mar 24 03:11:48 agy2154: what android files? you should not touch sherlock at all, everything related to your project should be only inside your project Mar 24 03:12:52 I was wondering if I can delete like the android dependencies from my own project since I only have SherlockActivities so everything I will use will be taken from the dependiencies from the ABS library Mar 24 03:13:40 like what? :) Mar 24 03:14:05 All the objects Mar 24 03:14:16 Like Relativelayout / button / textview Mar 24 03:14:33 No, you still need the sdk dependency Mar 24 03:15:21 damn it Mar 24 03:15:36 ohh well. Mar 24 03:15:45 Why would you want to do that? Mar 24 03:16:14 f2prateek: save some space. Mar 24 03:16:24 what space? :) Mar 24 03:16:38 Dont they use some space on the client device? Mar 24 03:16:56 The files in my project Mar 24 03:17:09 like "android 4.2.2" Mar 24 03:17:21 Follow this guide to set it up https://www.youtube.com/watch?v=4GJ6yY1lNNY Mar 24 03:17:33 lmao I know I'm so stupid right now and I'm just realizing it Mar 24 03:18:20 f2prateek: I watch that video and set it up already. Thanks anways... I was just trying to discover new frontiers :) Mar 24 03:20:02 "] Found 2 versions of android-support-v4.jar in the dependency list," wtf Mar 24 03:20:33 the one in abs/libs and one you probably attached from sdk/extras to yours Mar 24 03:21:08 vovkab: ill update them both and see if it works Mar 24 03:21:52 fixed by updating... they now match Mar 24 03:25:15 yup its working perfectly. The action bar shows up on the device but it says [2013-03-23 22:23:18 - library] Could not find library.apk! Mar 24 03:29:51 make sure 'is library' is checked in Eclipse for ABS' project Mar 24 03:30:09 JakeWharton: it is checked Mar 24 03:32:14 heyy Mar 24 03:32:19 that's all i got Mar 24 03:32:21 whats the correct way of doing the following: Mar 24 03:32:23 i don't use Eclipse Mar 24 03:32:23 string uid = ((TextView) getView.findViewById(R.id.uid)).getText().toString(); Mar 24 03:33:14 eclipse is for the weak Mar 24 03:34:02 Lol what do you guys use... Mar 24 03:34:13 Intellij Idea :) Mar 24 03:34:13 I'm weak Mar 24 03:34:48 how much is it? Mar 24 03:34:57 community version is free Mar 24 03:35:21 whats the advantage over eclipse? can I export my project? Mar 24 03:35:30 VIM! Mar 24 03:35:33 * moshberm ducks Mar 24 03:35:51 it easier for you to google Mar 24 03:36:12 or just use what you can use... don't listen any one :) Mar 24 03:36:49 honestly the only diffrence i see is a flow chart Mar 24 03:38:09 the only difference is stepping out of hell and into the light Mar 24 03:40:39 jug6ernaut_: no really. Is there an actually diffrence or is it only the theme? Mar 24 03:40:59 different ways to do things... Mar 24 03:41:09 …between eclipse and intellij? Mar 24 03:41:15 jug6ernaut_: yeah Mar 24 03:41:27 "or is it only the theme" idk if thats even worth responding to Mar 24 03:41:57 jug6ernaut_: Well I mean minor things in addition to the theme. I honestly know nothign about it Mar 24 03:42:28 more efficient, less just stupid shit(compile errors, weird xml errors, never having to "clean" the project), less memory, faster compiles(imo never measured), much better auto complete. Mar 24 03:43:37 actually has integrated git/svn support Mar 24 03:43:54 jug6ernaut_: your convincing me to switch now... does it take time to adapt Mar 24 03:44:04 yea Mar 24 03:44:12 mainly with project setup Mar 24 03:44:17 configuration Mar 24 03:44:28 but once u get that stuff down its easy Mar 24 03:46:45 jug6ernaut_: ill probably switch first thing tomorrow. im almost %100 done with this project for life anyways Mar 24 03:47:02 ur never 100% down for life :P Mar 24 03:47:08 i wish that were possible :P Mar 24 03:48:10 jug6ernaut_: Im ending support for the app after this version Mar 24 03:48:20 ah Mar 24 03:48:40 jug6ernaut_: yeah im not going to be adding anything major. Time to go on to the next level. Mar 24 03:48:46 * jug6ernaut_ still has a few ppl buying his so has to support it :S Mar 24 03:48:52 Which is Windows mobile.. Just kidding Mar 24 03:49:04 lol Mar 24 03:49:09 * jug6ernaut_ did a little windows mobile dev Mar 24 03:49:26 * agy2154 will never sell an app for money on Google Play Mar 24 03:49:34 Ill only do Ads at most Mar 24 03:50:01 I have an app with 5k active with no ads and free Mar 24 03:50:01 eh Mar 24 03:50:17 * jug6ernaut_ has made like $100 in ads in like 2 years Mar 24 03:50:56 What network did you use? Admob? I heard mobfox is good? Mar 24 03:51:10 yea admob Mar 24 03:51:37 i don't plan to do ad supported apps anymore Mar 24 03:51:45 hardly worth my time Mar 24 03:52:19 man, dx is slow as hell. it's slower than javac in a lot of use cases. Mar 24 03:52:31 jug6ernaut_: Did you make more on your paid app (lol I was about to ask a stupid question which was... was the $/ users ratio higher on your paid app? lol) Mar 24 03:53:33 yes' Mar 24 03:53:45 i haven't calculated actually stats on paid/user for mine, but i believe its relatively high. Mar 24 03:54:36 lol Mar 24 03:54:54 jug6ernaut_: do you suffer from piracy? Mar 24 03:55:20 no idea, i don't monitor for it. I doubt its popular enough for piracy Mar 24 03:55:37 piracy = popularity Mar 24 03:55:42 yup Mar 24 03:56:08 * jug6ernaut_ doesn't make enough to live off of, not close, but enough where it matters to keep supporting hehe Mar 24 03:56:51 jasta: i'm hoping at the next i/o they announce tools get some major overhaul ;) Mar 24 03:58:45 * agy2154 wants to make the next million dollar app Mar 24 03:59:17 welcome to the list :P Mar 24 04:00:43 Won't ads be better though since your making money longterm and not once Mar 24 04:01:01 well Mar 24 04:01:14 I've made 20x off paid > ads Mar 24 04:01:18 so Mar 24 04:01:33 g00s: im kind of doubting it myself Mar 24 04:01:42 g00s: but i may take a peek and see if dx has any low hanging fruit Mar 24 04:01:43 agy2154: you need a fuckton of users to make it with ads Mar 24 04:01:55 ive been optimizing builds at work lately (its gotten way out of hand) Mar 24 04:02:23 and as much as it is helpful to avoid dexing, it also begs the question as to why dexing is slower than javac in the first place. Mar 24 04:02:40 granted, javac does basically no optimization and so dexing probably is picking up the slack there Mar 24 04:02:58 All my users are in the education field.... I don't know if they would actually pay Mar 24 04:03:01 but slower than parsing .java files? hmm ;) Mar 24 04:03:10 g00s: what do you mean... like accidently click on the ads? Mar 24 04:03:22 Whats the best banner network? Mar 24 04:05:06 agy2154 if they arnt willing to pay then ur probably targeting the wrong ppl(if ur look to make $ that is) Mar 24 04:05:27 jug6ernaut_: do you think college/ highschool students are willing to pay? Mar 24 04:05:34 lol Mar 24 04:05:38 highly doubt it Mar 24 04:05:43 unless its a game Mar 24 04:05:46 then maybe Mar 24 04:06:26 * StingRay_ has a $mil game idea, just lack skills to do it (well programming etc) Mar 24 04:07:11 it appears StingRay_ is one of the people who can't be arsed to learn programming for a million dollars ;) Mar 24 04:07:25 well, my brain has a limit Mar 24 04:07:36 * jug6ernaut_ has a few $ ideas, no time Mar 24 04:07:39 and for 17 years filled it up with vfx/cgi/game art Mar 24 04:08:35 at least its full of something :P, most ppl i wonder if they have anything up there lol Mar 24 04:08:59 * agy2154 i have an idea.. not million dollar idea but definatly thousands a month since its a service Mar 24 04:09:16 I'm not motaivated by it Mar 24 04:09:31 agy2154: what is it ? cause odds are it's out there Mar 24 04:09:36 or have you fully checked ? Mar 24 04:09:38 Nope Mar 24 04:09:39 not out there Mar 24 04:09:46 its out there for PC Mar 24 04:09:49 and linux Mar 24 04:10:10 I have another Mar 24 04:10:12 but its out there Mar 24 04:10:19 it could be a million dollar idea too Mar 24 04:10:25 im willing to tell this one Mar 24 04:10:29 "BAthroom ratings" Mar 24 04:10:48 find the nearest bathroom? Mar 24 04:10:53 or toilet Mar 24 04:11:16 crowd sourced? Mar 24 04:11:53 is there any reason I might need the android source for development? (including NDK / non-Java development). I was trying to build dropbear (which I finally did accomplish), and one of the guides I was reading said I needed to do that. however, I was able to build it with just the NDK (or the codesourcery toolchain) Mar 24 04:11:58 checking in a public toilet! :D Mar 24 04:12:44 yeah Mar 24 04:12:52 lol Mar 24 04:12:54 reviews and shit Mar 24 04:13:02 og* ? Mar 24 04:13:04 of* Mar 24 04:13:04 could it take off? What do i need a mySQL server? Mar 24 04:13:05 i rate this: 5 turds Mar 24 04:13:06 :) Mar 24 04:13:07 i think that would work Mar 24 04:13:13 5 star toilet Mar 24 04:13:32 Lmao ... Ill take a 360 view of the bathroom Mar 24 04:13:53 https://play.google.com/store/apps/details?id=de.mobilino.gotoilet.pro&feature=search_result#?t=W251bGwsMSwyLDEsImRlLm1vYmlsaW5vLmdvdG9pbGV0LnBybyJd Mar 24 04:13:59 ofcourse there should be an award system! Mar 24 04:14:31 lol Mar 24 04:15:13 ezekielnoob: yeah "shit points" Mar 24 04:15:36 i hope you go for it :D Mar 24 04:15:45 StingRay_: I mean i can make a better on than that right now.. Mar 24 04:16:11 not the point, just that would give you an indication of demand Mar 24 04:16:44 ohh Mar 24 04:19:57 Great I have to learn MYSQL now Mar 24 04:20:06 Does it have to go through PHP ? Mar 24 04:20:10 no Mar 24 04:21:09 agy2154: do yourself a favor, use postgresql instead ;) Mar 24 04:21:45 the thing i hate the most in mysql is the error reports Mar 24 04:21:50 it's pretty crappy Mar 24 04:22:24 mysql is e.z Mar 24 04:23:00 g00s: will do Mar 24 04:23:38 riccoski: na, there are some things that are hard Mar 24 04:24:58 with everything, depending on the complexity of your tasl ;0 Mar 24 04:25:01 xml is the hardest Mar 24 04:25:04 MongoDB! Mar 24 04:25:08 y Mar 24 04:25:13 Is there anyway I can connect to a mySQL database directly? Mar 24 04:25:16 xml is the devil Mar 24 04:25:25 lol Mar 24 04:25:31 @agy you just need the driver Mar 24 04:25:40 i read somewhere you cant connect directly to mysql with android but i dont know.. Mar 24 04:25:42 and a simple connection string Mar 24 04:25:45 xml is the best.. java is the devil... I don't none of the advanced stuff. Mar 24 04:26:00 xml is hard ass Mar 24 04:26:02 eXtremo: what do you mean driver?? Mar 24 04:26:10 sql challenge without using regex http://sqlfiddle.com/#!2/17abb/1 Mar 24 04:26:15 ezekielnoob: XML is streight foreword Mar 24 04:26:24 xml is the devil Mar 24 04:26:32 *angel Mar 24 04:26:36 JSON Mar 24 04:26:41 xml shouldn't even exist anymore Mar 24 04:26:41 xD Mar 24 04:26:44 ezekielnoob exactly Mar 24 04:26:55 nah these are just opinions Mar 24 04:27:02 jug6ernaut_: how do you make your layouts? Mar 24 04:27:06 he might have a case that xml would be the best option Mar 24 04:27:12 ezekielnoob: is JSON hard? Mar 24 04:27:15 nope Mar 24 04:27:18 agy2154 by walking through hell Mar 24 04:27:44 i think json is better than xml in my opnion.... it's a simple objecyt Mar 24 04:28:08 json>>>>>>>>>>>>>>>>>>>>>>>xml Mar 24 04:29:00 can I use JSON in android? Mar 24 04:29:12 JSON is a data format. You can use it anywhere. Mar 24 04:29:16 Just ask Dr. Suess. Mar 24 04:29:29 yeah Mar 24 04:29:50 like moshberm said Mar 24 04:31:59 http://www.youtube.com/watch?v=5WXYw4J4QOU Mar 24 04:32:06 On a boat, in a tree. Mar 24 04:32:15 JSON, JSON, 1, 2, 3. Mar 24 04:32:17 i think it's better if you use REST api or something Mar 24 04:32:18 Ok, I'm done. Mar 24 04:32:24 instead of connecting directly to mysql Mar 24 04:32:49 I feel like a scum. I know nothing. Mar 24 04:32:57 XML!!!! Mar 24 04:33:31 if you like json, you might like MongoDB Mar 24 04:33:53 is mongo a nosql db? Mar 24 04:34:01 yeah Mar 24 04:34:07 Not Only SQL Mar 24 04:34:18 i thought before it's NO SQL Mar 24 04:34:23 I never knew this stuff existed Mar 24 04:34:24 well nosql is enough for me to not like it :P Mar 24 04:34:31 what does google use for its serch engine Mar 24 04:34:48 no idea on their indexing... Mar 24 04:34:57 google uses google Mar 24 04:35:15 bing uses google too Mar 24 04:35:17 haha Mar 24 04:35:23 xD Mar 24 04:36:18 Bigtable Mar 24 04:36:24 i just found the answer Mar 24 04:36:36 sounds big. Mar 24 04:37:16 google has an open source nosql database Mar 24 04:37:20 i can't remember the name Mar 24 04:37:27 leveldb? Mar 24 04:37:51 thats t Mar 24 04:37:52 it Mar 24 04:38:07 I just heard about it the other day, lol Mar 24 04:38:11 on the nodeup podcast Mar 24 04:38:21 geeks Mar 24 04:38:26 nodeup? Mar 24 04:38:35 nodeup is a podcast about node.js Mar 24 04:39:20 node.js is a pretty funny thing Mar 24 04:39:28 I like it Mar 24 04:39:29 but it's cool knowing that it is JS Mar 24 04:39:45 well how about the scalability? Mar 24 04:40:14 * jug6ernaut_ yawns at everything js Mar 24 04:40:19 not that good. use vert.x instead Mar 24 04:40:33 node is for yahoos that only know js Mar 24 04:40:34 ezekielnoob: "it's webscale!" Mar 24 04:41:03 when did you guys first learn java? Mar 24 04:41:06 but it's pretty easy to deploy Mar 24 04:41:52 although i'm pretty sure Java/C realtime servers can do better Mar 24 04:42:09 * jug6ernaut_ is 100% sure Mar 24 04:42:43 * jug6ernaut_ loves seeing articles explaining how js is faster then c Mar 24 04:42:47 I'm like lol what Mar 24 04:42:55 where? Mar 24 04:42:59 are there any? Mar 24 04:43:08 jug6ernaut_: what? huh? Mar 24 04:44:03 articles trying to explain how js/python/scala/java ext are faster then c, which makes no sense Mar 24 04:44:18 C is the fastest Mar 24 04:44:26 that's why the speed of light is C xD Mar 24 04:44:46 well c is used to write all of this languages(afaik) so really it is impossible for them to be faster then c lol Mar 24 04:44:53 anyone experienced with gson? Mar 24 04:44:56 the jvm can approach C speeds in some areas. Mar 24 04:45:29 can and in some areas yes Mar 24 04:45:57 but from a theoretical and general point of view, c will always be faster Mar 24 04:46:05 yeah Mar 24 04:46:22 especially since the JVM's startup time is atrocious Mar 24 04:46:39 lol Mar 24 04:47:08 question about eclipse project setup, what does "Select Google APIs (Google Inc.) (API 17) for the Compile With." 'compatible with option' mean ? I mean where is that in project settings ? Mar 24 04:47:10 is this ? http://onlinevillage.blogspot.com/2011/03/is-javascript-is-faster-than-c.html Mar 24 04:47:10 also, I doubt that that will change any time soon since I'm pretty sure oracle has no one working on java currently. Mar 24 04:47:38 StingRay_ where u select sdk Mar 24 04:47:49 well yeah I select target Mar 24 04:47:50 u have to have downloaded that specific option Mar 24 04:47:54 but then is says do that Mar 24 04:48:00 taget 4.2 etc Mar 24 04:48:07 then select compatible with Mar 24 04:48:24 https://developers.google.com/drive/quickstart-android Mar 24 04:48:27 step 3 Mar 24 04:48:41 hmm Mar 24 04:48:47 maybe eclipse has changed since i last used it Mar 24 04:48:56 I've never seen that menu before Mar 24 04:49:28 target + compile with Mar 24 04:49:29 odd Mar 24 04:55:12 jug6ernaut_: never seen that to Mar 24 04:55:15 *yoo Mar 24 04:55:17 *too Mar 24 04:55:23 hi Mar 24 04:55:28 razieliyo: why hello Mar 24 04:55:35 I'm have some issue with atlas Mar 24 04:55:41 is there any well known issues with it? Mar 24 04:55:54 wtf is atlas Mar 24 04:56:02 Thats what I was about to say Mar 24 04:56:15 you might want to go to #map Mar 24 04:56:17 oh, hell, I went too fast lol Mar 24 04:56:28 lol Mar 24 04:56:31 it's about libgdx Mar 24 04:56:42 its a texturepacker Mar 24 04:56:55 ah Mar 24 04:56:59 I'm not the right guy Mar 24 04:57:10 fine, I'll wait Mar 24 04:58:22 "Shares of BlackBerry fell nearly 8 percent on Friday after reports of a flat response to the launch of its new Z10 smartphone in the vitally important U.S. market." Mar 24 04:58:45 oh, poor BB. but at MWC, there was a lot of excitement around FirefoxOS and Ubuntu phone Mar 24 04:58:50 i hope those take off Mar 24 04:58:57 bb and wp are both crumbs of the market Mar 24 04:59:10 its a two horse race (and really, unfortunately) Mar 24 04:59:36 firefoxos lol Mar 24 04:59:43 what touchwiz and android being the horses ? Mar 24 04:59:44 ubunto phone ~ Mar 24 04:59:48 :) Mar 24 04:59:52 android and ios as platforms Mar 24 04:59:52 touchwiz should die Mar 24 05:00:04 you mean samsung Mar 24 05:00:10 touchwiz? Mar 24 05:00:21 rather see samsung do well than sony Mar 24 05:00:25 samsung I'm ~ about, touchwiz should die Mar 24 05:00:43 dont care how decent an xperia is, i wouldnt give sony a buck Mar 24 05:00:51 not after their laundry list of 'fuck yous' Mar 24 05:01:01 and motorola really messed up Mar 24 05:01:09 * jug6ernaut_ will never buy another samsung device Mar 24 05:01:12 jug6ernaut_: i wouldn't laugh yet. android isnt good at low end phones. "More people have access to cellphones than toilets" ->> but these are crappy phones; they could easily be FFOS phones Mar 24 05:01:13 is blu good? Mar 24 05:01:23 sonybmg's rootkit, ps3 debacles (which one, haha) Mar 24 05:01:27 i thought motorola mobility would do good after google bought it Mar 24 05:01:45 g00s ill believe it when i see it :) Mar 24 05:01:50 ezekielnoob: maybe they still will, but they have a 12-18 month product pupeline Mar 24 05:01:59 wasnt the motorola purchase really a defensive move for patent concerns? Mar 24 05:02:07 and they need to fulfill those obligations Mar 24 05:02:09 i dunno, didnt follow the sale really Mar 24 05:02:16 they didn't update my atrix! xD Mar 24 05:02:18 android was a defensive move Mar 24 05:02:21 lol Mar 24 05:02:26 g00s there is obviously a lot of that i don't understand, but why didn't they just throw out there entire pipeline when googol bought them Mar 24 05:02:44 u still have the atria? u poor soul Mar 24 05:02:46 jug6ernaut_: because they had obligations to carriers :P Mar 24 05:02:48 atrix* Mar 24 05:02:54 ehh Mar 24 05:02:56 jug6ernaut_ yeah Mar 24 05:02:57 f carriers Mar 24 05:03:36 anyway looks like HTC one would be better than Galaxy S4 Mar 24 05:03:49 depends on its battery life Mar 24 05:03:56 no Mar 24 05:04:00 who got the best battery today? Mar 24 05:04:08 HTC makes you go through them in order to unlock the bootloader Mar 24 05:04:08 note 2 Mar 24 05:04:11 HTC is in poor shape too Mar 24 05:04:52 bc ppl are stupid and flood samsung Mar 24 05:04:55 seriously Mar 24 05:05:01 how can someone like the sgs3? Mar 24 05:05:04 i think only samsung is making money on android. and they keep adding shit to their UI - i expect everyone else to follow. the situation will get worse Mar 24 05:05:18 the sgs3 is like flash, horrible and yet crazy popular Mar 24 05:05:31 i think android have some worries about samsung Mar 24 05:05:37 i've read that article Mar 24 05:05:45 the sgs3 is awesome Mar 24 05:05:53 you're obviously jealous Mar 24 05:06:06 i have a note 2, what do i have to be jealous os? Mar 24 05:06:07 well yeah, google's original vision was that the OHA would be an egalitarian love fest of oems differentiating on hardware Mar 24 05:06:12 and the sgs3 is f-n ugly Mar 24 05:06:38 the last time the OHA website was updated, was like July 2011 Mar 24 05:06:44 fuck the samsung galaxy s 3 who would honestly pay that much premium for a shitty phone... the NExus 4 is the best android phone hands down Mar 24 05:07:07 Nokia Mar 24 05:07:13 Its all advertising... thats it Mar 24 05:07:13 n4's battery is fail from what i hear Mar 24 05:07:26 Hey nokia was actually good. I always wanted a n95 Mar 24 05:07:33 samsung also spends yeah - a fuckton on marketing Mar 24 05:07:41 lol Mar 24 05:07:47 lol, 5gb and 13gb phone -- "the best" Mar 24 05:08:00 should we talk about the s4 announcement hehe… Mar 24 05:08:25 HOLy shit Mar 24 05:08:28 http://www.businessinsider.com/samsung-advertising-budget-increases-5x-2013-3 Mar 24 05:08:41 they have to Mar 24 05:09:01 they are going to have to make ppl want a sgs4, bc if they see it next to a htc one they would be stupid to get the sgs4 Mar 24 05:09:15 htc one looks beautiful Mar 24 05:09:29 it's built like an iphone Mar 24 05:09:33 * jug6ernaut_ agree's Mar 24 05:09:40 ezekielnoob thats not a bad thing Mar 24 05:09:53 i didn't say it's bad Mar 24 05:09:58 iPhone 5 all the way. Mar 24 05:10:01 iphone 5 material looks great Mar 24 05:10:06 Best reliablility. Mar 24 05:10:08 I have 4 images using 4 seperate ImageView holders. Is there a way I can merge them inton one ImageView? Mar 24 05:10:26 Konst copy the byte data into a new bitmap Mar 24 05:11:29 So I can take 4 adjacent ImageViews and place them into one new image while keeping the posistions of the images the same? Mar 24 05:11:33 Konst: you can setDrawingCacheEnabled and then make a new bitmap out of them after the view is focued because you won't be able to do that i think in the on create Mar 24 05:12:01 yeah like then get the drawing cache to the new bitmap Mar 24 05:12:14 Thanks. Mar 24 05:26:27 ffs how hard should it be to find this "Select Google APIs (Google Inc.) (API 17) for the Compile With." that the wizard has an option for but I can find reference to in settings, manifest anything Mar 24 05:27:23 StingRay_: in eclipse it's Project Properties > Android > Build Target, in ant it's project.properties's "target" Mar 24 05:28:11 no the target is set Mar 24 05:28:21 tis the compile with I'm looking for Mar 24 05:28:31 build target is what it compiles with Mar 24 05:28:41 it is independent of the targetSdk in the manifest Mar 24 05:28:44 so whats your take on step 3 https://developers.google.com/drive/quickstart-android Mar 24 05:28:54 using the wizard the option is there Mar 24 05:29:05 in a new project Mar 24 05:29:25 3:3 3:4 Mar 24 05:29:38 Target SDK is for the manifest, Compile With/Build Target are ant or eclipse properties Mar 24 05:29:51 Question, is it a good idea to load a 208 item CSV into an array of some other data structure on app start instead of reading and searching through it every time you want an item? Mar 24 05:30:23 or* some other data structure Mar 24 05:31:07 I guess my real question is: How costly is it to have a two dimensional array containing 208 items all together? Mar 24 05:31:17 kevinb: so it's just a case of my project build target set to google apis Mar 24 05:31:22 ? Mar 24 05:31:27 StingRay_: yes Mar 24 05:31:33 oh Mar 24 05:31:42 mountain out of mole hill comes to mind Mar 24 05:31:45 well in my mind Mar 24 05:31:47 ::) Mar 24 05:32:09 thankyou Mar 24 05:32:35 np. it's a bit weird how there are multiple settings for sdk targets Mar 24 05:33:03 well I'm having a nightmare with getting gdrive working Mar 24 05:33:15 class not found etc, on my 4th try Mar 24 05:33:39 even though imports are fine in eclipse, build is fine, execution not fine Mar 24 05:34:17 are you using the emulator? it might not have all the google APIs Mar 24 05:34:27 na, nexus Mar 24 05:34:33 nexi Mar 24 05:34:42 well more than one nexus device Mar 24 05:34:54 hrm not sure then Mar 24 05:36:54 kevinb: do you know when the targetSdk and build target would ever be different ? i got confused the last time i used the wizard too Mar 24 05:38:14 hi g00s Mar 24 05:38:22 hey canadiancow Mar 24 05:38:27 they almost always should be the same. targetSdk changes behavior on the device, whereas build target really just gives access to newer APIs. For example if your target is 10 then you'll get the legacy menu button when running on honeycomb or later, but you could actually have a build target of JB and use native fragments or native action bar or whatnot Mar 24 05:38:32 still on the same continent canadiancow ? :) Mar 24 05:38:37 lol yes Mar 24 05:38:39 im in vancouver Mar 24 05:38:43 waiting for my connection to toronto Mar 24 05:38:51 i had... a lot of wine on the flight here Mar 24 05:39:49 hopefully your pilot didn't have as much wine ;) Mar 24 05:40:07 lol Mar 24 05:40:15 so i was watchign the movie "Flight" on the flight Mar 24 05:40:21 (on my n10 - best tablet ever!) Mar 24 05:40:30 which is about a drunk high pilot flying upside down and shit Mar 24 05:40:33 i havent finished it yet Mar 24 05:40:43 oh yeah, Danzel Washington Mar 24 05:40:49 i heard that was pretty good Mar 24 05:40:55 im liking it Mar 24 05:41:02 i'll probably finish it on my next flight before i go to bed Mar 24 05:41:07 s/bed/reclined chair/ Mar 24 05:41:11 kevinb: ok, thanks - i need to read this and ponder Mar 24 05:49:17 canadiancow: you not find the n10 sluggish ? Mar 24 05:49:29 o.O Mar 24 05:49:30 no Mar 24 05:49:39 i think chrome was the most sluggish thing i looked at on the n10 Mar 24 05:49:44 i use it for development, google play books, and google play movies Mar 24 05:49:45 not much else Mar 24 05:50:02 play has books and movies O.o Mar 24 05:50:10 lol Mar 24 05:50:14 anyway i gotta run catch my plane Mar 24 05:50:16 omg, I'm gonna give up with this google drive bollox in a min Mar 24 05:50:25 canadiancow: run cow run ! Mar 24 05:50:43 imagine seeing a cow running down the runway to catch a flight ... Mar 24 05:50:56 waaaaaaiiiit for meeeee Mar 24 05:51:10 err, waaaaaiiit for mooooo Mar 24 05:51:25 03-24 05:50:50.458: E/AndroidRuntime(23796): java.lang.NoClassDefFoundError: com.google.android.gms.common.AccountPicker ok that just means the class cannot be found ? Mar 24 05:52:01 along with 03-24 05:50:50.458: E/AndroidRuntime(23796): at com.google.api.client.googleapis.extensions.android.gms.auth.GoogleAccountCredential.newChooseAccountIntent(GoogleAccountCredential.java:171) Mar 24 05:52:02 meaning the class that can't be found is called inside the gdrive lib ? Mar 24 05:52:32 that's what it looks like. could there be another jar you need to include? Mar 24 05:53:14 well according to docs, drive api + google-play-srv etc Mar 24 05:53:19 thats there Mar 24 05:53:24 should I change the android:targetSdkVersion of ABS to match my projects targeted api level? Mar 24 05:53:38 gonna kick if from build path and DRAG to lib folder see if that makes a diff Mar 24 05:56:09 omg it works Mar 24 05:56:17 agy2154: doubt it Mar 24 05:56:31 agy2154: or rather I wouldn't Mar 24 05:56:59 Its so wired I did everything and it still says library.apk is missing but it works flawlessly Mar 24 05:57:01 looks like eclipse was not building play services lib, even though it was there Mar 24 05:57:17 This is the same issue im getting Mar 24 05:57:17 http://stackoverflow.com/questions/6337673/could-not-find-library-apk Mar 24 06:00:14 that awkward moment when you realise after spending ages trying to debug your java that you had a simple php error!! Mar 24 06:02:17 boooo php Mar 24 06:02:30 thats your first error :D Mar 24 06:04:15 ;) Mar 24 06:05:16 great... I found the answer to the problem after hours. The library was in my java build path Mar 24 06:07:02 how can i test what an application would look like on 2.2 on my nexus 7 Mar 24 06:07:09 is that possible? Mar 24 06:08:32 no Mar 24 06:08:37 actually i dont know Mar 24 06:09:05 why do you want to know? Mar 24 06:09:31 I've got a Droid Incredible I could sell you, I'm sure you can find the 2.2 ROM floating around. :P Mar 24 06:09:33 you can test diff device profiles dpi etc that are < device Mar 24 06:09:41 riccoski: I was hoping that I would have a faster alternative to the emulator Mar 24 06:09:47 but not different api versions I don't think Mar 24 06:09:52 Its my worst enemy Mar 24 06:10:04 agy2154: I have a few 2.3 devices Mar 24 06:10:27 StingRay_: I have some in my bedroom somewhere Mar 24 06:10:36 hi. question: how can i make a thread stay alive until an asyncTask spawned from that thread has finished? Mar 24 06:10:36 oh your fine then Mar 24 06:10:52 StingRay_: yeah Mar 24 06:10:56 ah Mar 24 06:11:02 I have one I brought two days ago for $15 Mar 24 06:11:08 i still failed to get my nexus 4 detected Mar 24 06:11:13 didnt try hard Mar 24 06:11:18 A kid at my school sold me all his phones when his contract ended Mar 24 06:11:32 For like $5 each they were 2.3.3 too Mar 24 06:11:45 I have a service (a GCMIntentService) that spawns an AsyncTask to do some more stuff. Now, sometimes the asynctask will take just too long, and when onPostExecute is called, the service thread is already dead :-/ Mar 24 06:11:45 He even sold me a motorola cliq for $15 Mar 24 06:12:40 i would have taken it from him if he offered me $15 :P Mar 24 06:12:49 which would cover the recycling fee maybe Mar 24 06:12:50 I took it.... Mar 24 06:12:59 It was in mint condition Mar 24 06:13:08 not bad for a testing device Mar 24 06:13:36 I want to play around with the ADK Mar 24 06:14:48 I dynamically made a button and gave it an ID "123", How do I retrieve that button by Id? Mar 24 06:15:23 findviewbyid Mar 24 06:15:28 fkjnf# Mar 24 06:15:34 agy2154: i was going to answer Mar 24 06:15:35 then R.id.123 Mar 24 06:15:48 riccoski: Did I give him the wrong answer? Mar 24 06:16:08 R.id.123 is wrong Mar 24 06:16:13 Shit Mar 24 06:16:16 unless he gave it that resource id Mar 24 06:16:19 I thought I actualy helped someone for once Mar 24 06:16:24 no but i need to help someone to make me feel pr0 even though reality im noob Mar 24 06:16:26 but I think he set the VALUE to 123 Mar 24 06:16:35 ohh Mar 24 06:16:47 he probably used @id though Mar 24 06:17:04 The button is dynamically generated. I am not using the XML file. Mar 24 06:17:06 but settings 123 as a id would be rather bad Mar 24 06:17:13 test /n test /n test /n Mar 24 06:17:16 I set the Id using the .setId(123) Mar 24 06:17:32 Konst: yeah, thats a bit …erm Mar 24 06:17:33 bad Mar 24 06:17:54 also if you HAVE to do that, tag it with a unique thing Mar 24 06:17:57 .getId()? Mar 24 06:18:10 setTag(123) etc Mar 24 06:18:14 I am just playing with it right now. Mar 24 06:18:21 then you can findViewByTag Mar 24 06:18:26 or with tag Mar 24 06:18:29 i forget Mar 24 06:18:36 I'll try. Mar 24 06:18:36 Yeah setTag would be way better Mar 24 06:18:46 when you getTag it casts as an object Mar 24 06:18:54 just fyi Mar 24 06:19:32 StingRay_: Automaticly into the object it is? thats cool... saves time. Mar 24 06:19:59 Did you know a month ago i never knew why people did (Button) find view by id . blah blah Mar 24 06:19:59 agy2154: well I mean it's not an in or String Mar 24 06:20:12 int* Mar 24 06:20:19 but rather an Integer Mar 24 06:20:22 I just actually realized that your casting the type of view Mar 24 06:20:31 I never knew htat Mar 24 06:21:07 I had my final exam on friday and I didn't typecast the object to the type of array right Mar 24 06:21:35 It was an ArrayList and I put (cats) when I should have done (ArrayList) Mar 24 06:21:49 where am i going wrong in trying to get the tag of my fragment from FragmentStatePagerAdapter? http://pastebin.com/7NfRfvXb Mar 24 06:22:00 I was storing cats to the arraylist i initialized and declared Mar 24 06:22:52 achmode: line ? Mar 24 06:23:03 and you getting null? Mar 24 06:23:14 yes Mar 24 06:23:22 107? Mar 24 06:23:23 the function on line 10 Mar 24 06:23:40 oh Mar 24 06:25:50 Ohh well, at least i'm making some progress. A month ago i didn't know what an object was. Mar 24 06:26:03 lol Mar 24 06:27:44 I still want to find out what Super does Mar 24 06:27:56 i saw that theres a bug involving notifyDataSetChanged and FragmentPagerAdapter http://code.google.com/p/android/issues/detail?id=19001 Mar 24 06:28:10 agy2154, i think it calls the super class Mar 24 06:28:32 * achmode haha i gave advice :D Mar 24 06:28:37 agy2154: thats cause you have refused to read any learning stuff Mar 24 06:28:52 StingRay_: yeah. Mar 24 06:28:58 achmode: my cant you just query the adapter index directly ? Mar 24 06:29:35 StingRay_ i dont know the function that does that but i can try Mar 24 06:29:42 getItem Mar 24 06:29:46 getItem(index) Mar 24 06:29:50 ohh I get it... so if I have a subclass with the same meathod... I can use the super class to replace the other meathod? Mar 24 06:29:51 returns your frag Mar 24 06:30:12 agy2154: go read :) Mar 24 06:30:22 StingRay_: alrighty :D Mar 24 06:30:51 agy2154, thought i saw you in here this morning helping people out Mar 24 06:31:33 achmode: maybe. lol I try to help. Give back. I know some things but I don't know the rest. I like to learn as i go. I;m going to start reading things. Mar 24 06:31:36 achmode: btw never used fragPageAdapter stuff but normally getItem/getItemAtIndex returns whatever object is in there Mar 24 06:34:44 well that worked, Im a little closer to updating the list now Mar 24 06:36:11 I found out what super does Mar 24 06:36:16 Its kinda stupid Mar 24 06:36:46 agy2154: do you have to type every thought that goes though your mind ? Mar 24 06:37:13 agy2154: wut Mar 24 06:37:24 g00s: dont Mar 24 06:37:26 please Mar 24 06:37:27 please Mar 24 06:37:29 plz Mar 24 06:37:32 :) Mar 24 06:38:12 * g00s goes back to reading his git book Mar 24 06:40:19 i think i'm the only one in 2013 that still struggles with git Mar 24 06:41:19 ok so i hit my button on Fragment A which notifies Fragment B through my Activity that it should call mProductAdapter.notifyDataSetChanged() but i get null for mProductAdapter Mar 24 06:47:01 mProductAdapter is ever !=null ? Mar 24 06:47:26 there is a time when mProductAdapter has a value Mar 24 06:49:53 the third tab doesnt update until i visit the first tab Mar 24 06:51:47 fixed :D Mar 24 06:52:46 the workaround reinstantiates all my tabs but i see no better way for now Mar 24 06:54:46 this is the last app i put tabs in Mar 24 07:45:41 Hi Mar 24 07:45:57 how do you deal with LCD vs AMOLED colour issues? Mar 24 07:46:32 My colours look exactly as i intend on AMOLED but on LCD it looks paler Mar 24 07:48:54 either colour calibrate your display (improbable) or cater for ALL colour variances across all display types and revisions or pick an average :) Mar 24 07:49:21 the average option is your only real choice :) Mar 24 07:49:23 How can i create colour variations? is anything built in to help with that? Mar 24 07:49:32 no Mar 24 07:49:45 cause it's variable to display/revision/user Mar 24 07:50:04 being a graphics designer with ocd can really suck sometimes Mar 24 07:50:29 well I'm a vex/games art td….so yeah Mar 24 07:50:51 * StingRay_ thinks about hooking his spiderPro to his phone and writing a colour app Mar 24 07:50:53 :) Mar 24 09:08:50 you should hold LCD as truth Mar 24 09:21:21 but then again there are 3 diff types of lcd display Mar 24 09:21:33 well 3 that have fair to medium colour variance Mar 24 09:23:36 LSD? Mar 24 09:31:30 +1 Mar 24 09:32:07 anyone here tried integrating gdrive ? Mar 24 09:32:28 I run the example app and even it fails Mar 24 09:33:01 http://pastebin.com/AGtueHNm Mar 24 09:33:10 all setup in dev console Mar 24 09:43:13 when i have a List with 2 items, after a List.remove(0) does the second item move up to position 0? Mar 24 09:49:20 i would think thats a very easy thing to test :) Mar 24 09:49:34 but yeah Mar 24 09:51:24 note to self, don't put padding or margins on a table row because it doesn't work Mar 24 09:53:17 stork: does table not have the adjust child bounds flag thing ? Mar 24 09:53:24 I forget exact name Mar 24 09:53:43 stretch/shrinkColumn? Mar 24 09:54:35 never used table view, but on viewGroups that have items, I seem to remember a flag that allows child layout params to be used Mar 24 09:55:01 oh wait, maybe it was allows draw beyond the itemView bounds Mar 24 10:14:26 hi. when i change my system's language from english to arabic or visa versa while the app is still running , the application crashes. what i am supposed to do here? Mar 24 10:14:41 what king of checks i should do. Mar 24 10:14:47 what kind of checks i should do? Mar 24 10:15:07 Your activities are recreated, just like during orientation change Mar 24 10:15:15 So if you handled that correctly, you should be good Mar 24 10:20:15 StingRay_: the Xperia Z has color calibration Mar 24 10:20:45 against what ? Mar 24 10:20:53 you mean it allows you to play Mar 24 10:21:04 not really calibration Mar 24 10:21:11 http://phandroid.com/2013/01/19/display-calibration-sony-xperia-z-zl/ Mar 24 10:21:54 yeah, using the biggest problem in all colour correction, the human eye Mar 24 10:21:55 :) Mar 24 10:23:24 when not exporting does eclipse sign with debug key ? Mar 24 10:23:35 or is there something I have to do to make that happen ? Mar 24 10:30:53 hi- noob question - if I'm using ADT, how can I regenerate the R java class file - I cleaned my project, and it went... Mar 24 10:31:13 xml problem may stop it from building Mar 24 10:31:18 check problems tab Mar 24 10:31:33 StingRay_: ok - will do... Mar 24 10:31:56 StingRay_: so - just to confirm , the generated R class is generated at build time, or only when you add or remove classes etc? Mar 24 10:32:00 question : these quota limits in "Google API's" like the 500,000 does that relate to a single user ? Mar 24 10:32:14 computa_mike: depends on dependancy Mar 24 10:32:26 build/clean should do it Mar 24 10:33:11 I think it's appended every build/ or if you add new (ids) etc Mar 24 10:33:42 eg. if you add a new xml, off it goes again (if you have auto build on) Mar 24 10:37:33 StingRay_: I think you might have something there - got a load of errors in the problems tab... funnily enough no little red icon in the tree view - I think the lesson for me there is to poke around more... Mar 24 10:38:28 wow, looks like the kde guys almost lost their git repository Mar 24 10:38:57 StingRay_: I have 32 errors (all relating to R not being there) and 1 error relating to a dodgy baseline attribute in an xml view somewhere... I think if I can fix that, then R should regenerate and it should be cool... Mar 24 10:39:12 indeed Mar 24 10:39:13 g00s: what happened to the KDE repo? Mar 24 10:39:34 ext4 file system corruption Mar 24 10:42:10 g00s: but they had good backups right (?) Mar 24 10:42:46 They're using git, they have lots of backups Mar 24 10:43:05 bunch of gits. Mar 24 10:45:28 yeah, they mirrored their corrupt repos ;) Mar 24 10:46:02 "If a commit object is corrupt, you can still make a mirror clone of the repository without any complaints" Mar 24 10:48:28 StingRay_: that's fixed now - thanks for the advice -\o/ Mar 24 11:02:50 anyone know of any form validation frameworks for android? sorta like zend_form validation stuff. Mar 24 12:40:00 hi, is there a way to remove/hide some lines in a cursor that goes in a fragmentlistview ? I'm using an cursoradapter and was thinking of overriding swapCursor() to filter some out but no way to remove lines from a cursor it seems Mar 24 12:40:20 i know it's best to just do this with the query but that's not an option here Mar 24 12:41:03 couldn't you write a wrapper adaptor? Mar 24 12:43:55 stork, yes but wouldn't it just be a lot easier/cleaner to remove them from the cursor some way? Mar 24 12:44:05 i'm not sure Mar 24 12:58:04 how to fix build/core/base_rules.mk:130: *** prebuilt/darwin-x86/toolchain/arm-linux-androideabi-4.4.x/lib: MODULE.HOST.STATIC_LIBRARIES.libbfd already defined? Mar 24 13:14:02 am i losing my mind or are strings really not immutable? Mar 24 13:15:25 how can I avoid a webview to have a horizontal scroll, scaling (zooming out?) the content? Mar 24 13:16:15 stork: How did you get that impression? Mar 24 13:16:19 nevermind, i'm just being stupid :) Mar 24 13:28:26 hey guys. I'm currently working with android's MediaPlayer class. I want to stream a track from an online source. So I'm setting the datasource and calling prepareAsync(). My current problem is: I want to be able to skip to the next track even if the MediaPlayer is currently preparing the previous track. My current solution is: I'm releasing the MediaPlayer if it currently is preparing another track, and afterwards I'm recreating a Mar 24 13:28:26 new MediaPlayer which will then prepare the new track. Mar 24 13:29:30 It does seem to be quite an expensive operation though. Releasing the Mediaplayer took like ~500ms-1000ms each time. So I'm currently releasing the old MediaPlayer in another thread. Mar 24 13:31:08 It does seem though, that android isn't happy with having several (~5) instances of MediaPlayer in the background all being released asynchronously. If i rapidly want to load a new track in the mediaplayer my app crashes. PrepareAsync throws an IllegalStateException :S Mar 24 13:31:54 Is there a better way of dealing with this situation? The best solution would be to somehow simply stop the MediaPlayer from preparing the old track. Using reset() doesn't work though :S Mar 24 14:28:56 ok, stupid question... how does R work? it looks like random memory addresses. Mar 24 14:29:56 It's a class Mar 24 14:29:58 That has other classes Mar 24 14:30:02 And variables Mar 24 14:30:39 how is it edited? Mar 24 14:30:41 I selected to "always use this device" once when launching an app from Eclipse. Now I need to launch it on a different device, but I can't seem to find how to get the device picker again.. anyone ? Mar 24 14:30:50 It's generated based on your resources Mar 24 14:32:45 What does that mean? Generated at compile time? Mar 24 14:32:59 yes Mar 24 14:33:05 moshberm_: editing it doesn't fulfill any purpose ... R is used to generate ids at compile time Mar 24 14:33:17 interesting... Mar 24 14:40:09 http://developer.android.com/guide/topics/resources/index.html Mar 24 15:07:02 Hi. I was wondering, is the stock soft keyboard (the one I see on a Nexus 4, for instance) part of the source code? Mar 24 15:09:30 Anyone have any example game code I could take a look at? Mar 24 15:10:13 and any idea on how to setup my mac to code : Mar 24 15:10:16 :P* Mar 24 15:15:34 d.android.com/training Mar 24 15:16:26 sonOfRa: I /do/ know the basics :P Mar 24 15:16:50 "and any idea on how to setup my mac to code" <- makes me think you don't Mar 24 15:17:30 the training has quite an elaborate section on opengl Mar 24 15:17:41 Does it? Mar 24 15:17:56 also, I have it setup on my laptop, just not on my mac Mar 24 15:18:08 yes. Mar 24 15:18:31 I don't see it :P Mar 24 15:18:56 you're not looking hard enough. Mar 24 15:23:54 Very helpful... Mar 24 15:24:27 If you have nothing constructive to say, I'd suggest you don't say it. Mar 24 15:26:06 here comes the spoonfeed Mar 24 15:26:07 open wide Mar 24 15:26:08 http://developer.android.com/training/building-graphics.html Mar 24 15:30:55 lulz Mar 24 15:31:06 you should have tricked him and put shit in the spoon Mar 24 15:31:13 its the only way to remove said spoon from mouth Mar 24 15:31:32 i was about to lemonparty him... Mar 24 15:32:12 does anyone here use dependency injection? i was wondering if there are any libraries that automatically hide your code for existing projects Mar 24 15:37:17 :) Mar 24 15:43:37 OK, I found the source code for the stock virtual keyboard. I am mostly interested in the "research" functions it has built in. does anybody know, how to activate those on a Nexus? Mar 24 15:45:03 http://imgur.com/cjn3b3U can anyone tell me if it's possible to achieve something like that with a single relativelayout? Mar 24 15:59:10 Should be possible stork Mar 24 15:59:22 wibby: research functions? Mar 24 15:59:45 evanc: "send feedback to google" Mar 24 15:59:51 those Mar 24 16:00:05 stork: I don't see anything impossible there Mar 24 16:00:05 can't for the life of me figure out how Mar 24 16:00:22 lining the views up with the top & bottom of the icon is easy enough Mar 24 16:01:44 Just put text2 below text1, to right of icon? Mar 24 16:02:03 And set gravity = center_vertical on the relativelayout Mar 24 16:02:28 stork: hm, you might need to wrap the textviews in a framelayout, and center the framelayout Mar 24 16:02:31 not sure though Mar 24 16:02:49 SimonVT may be right, though Mar 24 16:04:02 doesn't work in the eclipse layout viewer, i'll see what it looks like on an emulator Mar 24 16:04:55 Hey need help guys, im trying to get the id of the row clicked: http://pastebin.com/AV7y3qgb Mar 24 16:05:05 but it always gets the id of the first row.. Mar 24 16:05:10 :( Mar 24 16:05:39 onListItemClick(ListView l, View v, int position, long id) <- the id is right there Mar 24 16:05:58 The view you clicked on is also right there, so I don't know why you're calling findviewbyid Mar 24 16:06:26 oh because i want the user id which is in that view Mar 24 16:08:05 riccoski: v.getId() ? Mar 24 16:09:03 yeah, of course that's always going to get you the first item (at least until you start scrolling) Mar 24 16:09:45 riccoski: I'm not encouraging what you're doing here, but use String uid = ((TextView) v).getText().toString(); or something like it Mar 24 16:10:02 or at least do v.findViewById(..) instead of getView().findViewById(..) Mar 24 16:10:16 alrighty evanc i shall try, thanks! =] Mar 24 16:13:10 alas SimonVT, that didn't work. Mar 24 16:13:18 :( Mar 24 16:14:00 riccoski: to be clear, there are much better ways to get the data you want. You should expose it from the adapter, for example (have a public String getUserId(int position) method) Mar 24 16:15:28 ah it works, nice thanks evanc I think I understand ;D Mar 24 16:20:31 if an activity contents is likely to be more than the screenview should one always use scrollview? Mar 24 16:22:58 are longpresses still a valid gesture in android? or have they been shelved Mar 24 16:26:31 You generally shouldn't use them Mar 24 16:27:36 riccoski: yes, of course... Mar 24 16:28:13 cool thanks Mar 24 16:29:39 I just spent the last hour implementing this http://developer.android.com/reference/android/support/v4/app/FragmentStatePagerAdapter.html Mar 24 16:29:51 and then thought to look through v4 to see if there was already something there Mar 24 16:30:01 well i'm writing a payment app, in it is a list of stored cards, I was envisioning that a 'click' on a card would select it for payment, then you could do a long press for additional options (which incidentally is only 'delete').. what would you suggest replacing the longpress with? Mar 24 16:30:48 stork: why not use a swipe if the only action is delete. Like gmail or the new keep app Mar 24 16:31:09 would it be weird to do swipe + confirmation dialog? Mar 24 16:31:17 stork: yes Mar 24 16:31:25 in general don't use dialogs if not absolutely necessary Mar 24 16:31:35 better delete it, and give the user the possibility to undo it Mar 24 16:31:42 I must say this app is quite littered with them Mar 24 16:31:52 never use confirmation dialogs as long as there is another solution Mar 24 16:31:59 stork: i agree with timroes. dialogs are the last thing to you Mar 24 16:32:12 also regard the design documentation about dialogs Mar 24 16:32:34 and in most cases a delete undo is possible (e.g. mails) and you should always use it in that case Mar 24 16:32:44 the delete will require a backend call, so there's that. furthermore, the List is in a viewpager, so i'm not sure if that would work. Mar 24 16:33:05 just don't delte in the backend when the user deleted Mar 24 16:33:19 wait till the undo dismissed (e.g. it timed out) Mar 24 16:33:21 and then do the real delete Mar 24 16:33:27 just hide the stuff between away from the user Mar 24 16:34:56 to ensure robustness i'd probably need a service for that right? so that if they deleted it and then exited the app, the delete would still go ahead? Mar 24 16:35:16 delete it in the onPause method Mar 24 16:35:21 if its not a long running operation ofc Mar 24 16:35:37 it will be a bit, yeah Mar 24 16:35:39 but it sounded to me, like you only need to delete it somewhere on your device Mar 24 16:36:13 then you might want to use a service if the deletion might also be done, when the user leave the app Mar 24 16:36:31 that's one idea, then. Mar 24 16:37:21 deinfately a better one then confirmation dialogs :) Mar 24 16:37:43 ofc it will introduce a bit more coding work. but thats always like that, if you want to create a better app, you will need to spend more effort to it Mar 24 16:38:16 i'm still not convinced it'll work inside a viewpager though Mar 24 16:38:43 ah ofc won't :D Mar 24 16:38:56 you can only have one swipe gesture on the same axis Mar 24 16:39:12 so if you have a horizontal view pager you cannot put a horizontal swipe to delte gesture in a fragment inside it Mar 24 16:43:53 okay, so here's another question: if i want some sort of confirmation when someone clicks on my list item, but dialogs are out, what would you suggest? Mar 24 16:44:07 why would you want some confirmation Mar 24 16:44:10 the user clicked on it Mar 24 16:44:21 if it was accidentely give them the opportunity to undo their action Mar 24 16:44:43 if not, the user clicked there on purpose and she doesn't want to be distrubed by a dialog to confirm.. yeah i just clicked that.. Mar 24 16:44:56 that isn't necessarily possible in this case, since the click will do a backend call Mar 24 16:45:15 there are only rare cases you should use that kind of confirmation (e.g. its really not undoable, like an order process) Mar 24 16:45:27 this is one of those situations Mar 24 16:45:42 and even order processes work fine, see amazon's 1 click buy Mar 24 16:45:56 then your whole backend might need some rework :) Mar 24 16:46:13 but if you really think you need confirmation, do the confirmation dialogs Mar 24 16:46:22 but be aware of user letting you know that in your app ratings Mar 24 16:46:31 i'm open to other suggestions Mar 24 16:46:43 the other suggestion is: don't request confirmation :) Mar 24 16:46:54 I've been trying to figure out how to use a custom compound view as the items of a listview. I know how to inflate the control's view directly into the listview and handle everything from an adapter, but I want the listview to instantiate the class, let the class inflate the view and handle the events. Is that possible? I can't seem to find any information on it. Mar 24 16:47:01 the user is not distrubed by the confirmation being a dialog, but of the need of confirm what he just did Mar 24 16:47:19 so if you really need confirmation a dialog is a reasonable way Mar 24 16:47:25 if they use them on the google play store then i'm okay with using them in my app Mar 24 16:47:38 stork: do something like the gmail app's undo Mar 24 16:48:05 stork: yeah google play is a case confirmation is valid Mar 24 16:48:07 swipe something to the right on gmail to archive it; its list item is replaced with an inline undo toast-y lookin' thing Mar 24 16:48:09 since its kind of last step of order Mar 24 16:48:17 its the step: i am really sure i want to give that app all that permissions Mar 24 16:48:37 how about the step: "am i really sure i want to give this company £200" Mar 24 16:48:46 seems like the sort of thing a user might want to think about Mar 24 16:48:51 just in most cases i've seen confirmation dialogs out there, the confirmation is wrong (not the dialog) Mar 24 16:49:06 stork: yeah thats exactly what i would count last step in an order process :) Mar 24 16:49:32 and if its easy to reach (because you jsut come from a list view) you want to give the user a configrmation dialog for that Mar 24 16:50:13 are there other paradigms in a listview besides swipe and longpress that i could look into? Mar 24 16:50:18 totally valid use case. Just if the user already had a wizzard like fill in all my data, for 3 screens, creating a colored button saying Confirm in the last screen would be enough, since he is pretty sure its now coming to an end Mar 24 16:50:32 stork: yeah context menu via button Mar 24 16:50:36 like the google music app Mar 24 16:50:57 Hey guys, I'm reading the andriod documentation in order to develop an NFC 'writer' app to write to tags and it show an example of how to create a record but it doesn't show you what to do it with afterwards or what should be calling that method? http://developer.android.com/guide/topics/connectivity/nfc/nfc.html#well-known-text Mar 24 16:51:15 stork: http://1.bp.blogspot.com/-YoHe1MWTj04/TsZeuJ3IB2I/AAAAAAAABVA/3pbm2MSwlw0/s1600/google-music-app-android-4.0.9.png Mar 24 16:51:18 ah i see Mar 24 16:51:25 that's cool. Mar 24 16:51:28 you have an indicator to the right that will open the menu for it Mar 24 16:52:06 coco89: http://developer.android.com/guide/topics/connectivity/nfc/advanced-nfc.html#read-write Mar 24 16:52:50 timroes, I looked at that which is a great example but it's Mifare Ultralight Mar 24 16:52:59 timroes, I'm looking to specifically do Ndef Mar 24 16:53:32 pretty much the same just with the Ndef class :) Mar 24 16:53:38 http://developer.android.com/reference/android/nfc/tech/Ndef.html#writeNdefMessage(android.nfc.NdefMessage) Mar 24 16:53:50 before remember to uise connect and such Mar 24 16:54:14 Oh really Mar 24 16:56:44 timroes, what's the advantage of using that method Mar 24 16:56:59 in contrast to what? :D Mar 24 16:57:17 like a normal write method Mar 24 16:57:38 ohh Mar 24 16:57:42 no you have to call that oh nvm Mar 24 16:57:43 sorry Mar 24 16:57:47 :D Mar 24 16:59:13 timroes, I still can't see what's similar in the Mifare example, cos it seems pretty different to what I understand about Ndefs from the 'Basics' section Mar 24 16:59:57 could you elaborate on that a bit more? Mar 24 17:00:37 ndef is (afaik) just a specification how to store data on a tag. so you cretae an ndef message object and write it to some tag Mar 24 17:01:16 SimonVT: y'know your MessageDialog fragment snippet you sent me the other day... I've just seen on StackOverflow a post recommending using Fragment.onActivityResult as a way of passing data back from a fragment, what d'you think of that? Mar 24 17:02:01 hi Mar 24 17:02:18 somehow, changing the apptheme in the manifest isn't actually changing the theme of my application..help? Mar 24 17:04:42 timroes, I see, I think I understand I'm just getting confused especially from the Advanced section because there doesn't seem to be any methods creating a record and wrapping it in a message and writing ti to a tag Mar 24 17:05:16 yeah the nfc doc is really bad, I would agree with you Mar 24 17:05:48 in that example no Ndef message is used, there is just writen plain Mifare pages to the tag Mar 24 17:05:52 not a real ndef message Mar 24 17:06:03 but android in general recommend using ndef messages where possible Mar 24 17:07:28 timroes, Yep, they seem to have reminders to use ndef whenerever possible, it sucks they chose to do the example on mifare :D Mar 24 17:08:01 timroes, I'm going to give it a shot. thanks for the help! Mar 24 17:08:04 i guess they want to show how to write raw data (since that would not be covered anywhere else) but i think an example with ndef wouldn't hurt neither Mar 24 17:08:15 timroes, yeah true Mar 24 17:08:20 but remeber (like i mentioned all the times before) i never have done NFC :) Mar 24 17:08:25 stork: Wtf does dialogs have to do with onActivityResult Mar 24 17:08:31 so take my work with a fine grain of doubt Mar 24 17:09:58 timroes, sure no problem. You do know a lot about NFC for someone who hasn't done it before though Mar 24 17:10:00 :D Mar 24 17:10:54 you've been really helpful so thanks Mar 24 17:11:13 anyone? Mar 24 17:11:22 SimonVT: well, turns out since every Fragment has an onActivityResult method you can hi-jack it and use it as like 'onFragmentResult' without rolling your own interface(s) for it Mar 24 17:12:13 coco89: i've read the basic docs yesterday :) Mar 24 17:12:24 since my test package of nfc tags arrived during last week Mar 24 17:12:33 just haven't found time yet for more Mar 24 17:13:24 I guess Mar 24 17:13:55 I wouldn't use that approach Mar 24 17:15:16 well I just ran into the situation where I had multiple dialogs in a single activity, so I needed some way of discerning between the return values. This one seems elegant enough. Mar 24 17:15:23 Helsinkiii: pastebin the relevant bits of your manifest Mar 24 17:15:30 or rather, not too inelegant. Mar 24 17:18:10 timroes, Ah yes I remember you telling me they were arriving soon. Exciting stuff, It took me ages to understand the basics of everything I'm sure it wont even take you half as long :D Mar 24 17:18:22 http://pastebin.com/dcvzcMxQ Mar 24 17:18:23 You can just add an id to the interface Mar 24 17:18:27 evan, http://pastebin.com/dcvzcMxQ Mar 24 17:18:32 but then again i'm really new to android Mar 24 17:18:38 yeah i could do that easily enough Mar 24 17:33:07 Helsinkiii: I don't think that you can set an application to be dialog-themed, but I might be wrong about that Mar 24 17:33:41 I think that only makes sense on activities Mar 24 17:34:00 but anyway, the problem is that you need to use parent="@android:style/Theme.Holo.Dialog" Mar 24 17:46:14 hi guys Mar 24 17:47:13 anyone knows project called "AnCal" ? Mar 24 17:47:35 i have a problem with the reminder service. Mar 24 17:47:57 Should probably ask whoever made it to fix it then Mar 24 17:48:47 maybe someone could lookat some code. I dont realy understand how the data is loaded Mar 24 17:48:49 http://pastebin.com/BTLqGyy8 Mar 24 17:49:08 the count of the list is somehow always 1 Mar 24 17:49:26 but i dont understand how this code access the database Mar 24 17:50:49 BulleTime: DecodeBundleData, it looks like Mar 24 17:50:57 ps, that code is a mess Mar 24 17:51:25 evanc, nothing works Mar 24 17:51:28 yes its a mess:) Mar 24 17:51:34 evanc, i've tried all kinds, nothing changes Mar 24 17:53:00 Helsinkiii: I just did "android:Theme.Holo.Dialog" on my values-v14/styles.xml and it works Mar 24 17:53:05 on the tag Mar 24 17:53:33 data = this.getIntent().getExtras(); would that make any issues Mar 24 17:53:35 ? Mar 24 17:56:41 evanc,works. i have no idea what happened. erased it, repasted it Mar 24 17:56:50 evanc, thanks a lot man Mar 24 17:58:51 just wanting to knwo what people thing, i have an async task that at the end wants to schedule another one of itself for x seconds. Would alarmmanager, timertask or scheduledthreadpoolexecutor be the best here? Mar 24 18:04:21 ozeraser: I would use an AlarmManager instead of an AsyncTask if I needed to have some task repeated at a fixed interval... AsyncTask should generally be used for smaller tasks (but large enough that it will freeze the UI) such as reading a file from disk. Mar 24 18:06:12 yeah my asynctask is http get style that freezes the ui, i just wanted it to run at 6 seconds after it last finished.. so not every 6 seconds but when its done wait and the start up the async task Mar 24 18:07:17 suppose i could also do a handler maybe Mar 24 18:09:16 Hey guys, I'm trying to test out this NFC 'writer' app to write to tags but whenever I scan a tag, the android default's tag app appears instead with the usual 'new tag collected', 'empty tag' screen. How do I make my app take priority :S Mar 24 18:09:27 http://pastebin.com/FdQjUM5e Mar 24 18:10:08 ] Mar 24 18:10:09 ]]]]]]]]]] Mar 24 18:10:16 ? Mar 24 18:11:35 coco89: if you dont have any filters on the intent, other then the nfc ones, then i think android will ask which app should handle it Mar 24 18:11:42 but ive not looked at any of the nfc code yet Mar 24 18:12:03 wtf as if this backspace key is ever gonna go back into this laptop Mar 24 18:13:22 clever, I have the main intent filter and the NFC ones http://pastebin.com/EiCWgHiF Mar 24 18:15:01 coco89: dont know then Mar 24 18:15:40 clever, ah thats alright thanks anyway! Mar 24 18:18:17 coco89, you still not fixed this null intent form the other night? Mar 24 18:18:21 from* Mar 24 18:18:54 null intent? Mar 24 18:19:09 I think I had, that was for the reader app Mar 24 18:19:17 ahh cool Mar 24 18:20:40 I wanted to build the apps so that use Ndef and not Tech or Tag so I'm rewriting the writer app Mar 24 18:24:17 timroes, I've tested the writer app out but whenever I scan a tag, the android default's tag app appears instead with the usual 'new tag collected', 'empty tag' screen :S Mar 24 18:25:31 I've called enableForegroundDispatch so surely my foreground activity gets priority Mar 24 18:26:21 timroes, http://pastebin.com/FdQjUM5e Mar 24 18:27:03 where is your tech filter.. Mar 24 18:27:18 your enable foreground won't work, you (again) put null to the tech filter Mar 24 18:28:10 timroes, do I still need to use a tech filter when working with Ndef ? Mar 24 18:28:15 I need to be able to recycle views in a layout, does anyone have any suggestions as to how to approach this? Mar 24 18:28:36 coco89: ofc you need to tell the dispatch system what kind of tags you want to listen to Mar 24 18:28:41 that has nothing to do with ndef or not Mar 24 18:29:24 Has anyone experienced an issue with an application calling startService and then bindService working as long as the device is plugged into and set up on USB debugging or ran through the emulator. But as soon as i unplug the device and run the app it never binds, and never fails as the callback is never called. This is beyond me, only fails on Android 4+. Two different devices, one running Mar 24 18:29:24 4.0.4 and the other running 4.2.1 (Galaxy Tab and Nexus 7 respectively) Mar 24 18:29:50 timroes, Ah I see. Got it, I will put it back then Mar 24 18:30:00 I can't seem to find anything on tech filters in the documents Mar 24 18:30:00 I dont have to debug the app through eclipse at all. As long as its connected I can run the already installed app and it works perfectly. Mar 24 18:30:21 phreakshow: is the device in sleep mode when that happens, or just screen on and normaly working? Mar 24 18:30:36 coco89: http://developer.android.com/guide/topics/connectivity/nfc/advanced-nfc.html#foreground-dispatch point 1.3 Mar 24 18:31:09 screen on and normally working Mar 24 18:31:19 not what i was thinking of then Mar 24 18:31:36 phreakshow: only idea i can think of is to switch adb to tcp mode, and connect for logcat without usb Mar 24 18:31:43 timroes, ah thanks! Mar 24 18:32:07 my app runs a tournament and maintains tournament times etc in the background and since android loves to kill processes i have to use a service. The activity just binds and receives updates and the service sends notifications/toasts of changes. So the service/app are all in the same manifest Mar 24 18:32:49 im rather new to android development and have kindof fumbled my way through this with my extensive programming history behind me it wasnt too terrible, but can you explain how i can turn that on? Mar 24 18:33:35 and i think that would be awesome, its able to connect via wifi and use tcp/ip for logcat? .. that would be perfect in this sense Mar 24 18:33:51 phreakshow: yep, first run 'adb tcpip 5555' with the usb connected Mar 24 18:34:05 phreakshow: then unplug it and run 'adb connect 192.168.x.y' with the ip of the phone Mar 24 18:34:29 ok ty Mar 24 18:34:34 only security risk, anybody on the LAN could connect, and run things as the shell user Mar 24 18:34:43 and if its been rooted, they can su from there Mar 24 18:34:45 not concerned with that at all, private home network Mar 24 18:34:49 yep Mar 24 18:35:00 just turn it off before going to an open wifi Mar 24 18:35:09 and ive no idea what happens over 3g, my tablet doesnt have a cell modem Mar 24 18:35:46 since ive been using eclipse for logcat, how do i view logcat through adb? Mar 24 18:36:00 once you connect with adb like that, eclipse will work normaly Mar 24 18:36:04 and maybe output it to a file? dos doesnt have piping like linux/unix does >.> Mar 24 18:36:06 eclipse is just using adb in the background Mar 24 18:42:24 ok one more question Mar 24 18:42:37 how do i pipe adb logcat to a file lol Mar 24 18:42:50 i did adb logcat and omfg there is no way you can follow that in command prompt :P Mar 24 18:43:00 same as unix, adb logcat > file.txt Mar 24 18:43:10 is appcompat now officialy released somewhere? Mar 24 18:43:17 k, ty, didnt know you could do that in dos, awesome Mar 24 18:43:36 grep it by the tail Mar 24 18:43:36 android weekly wrote today about it in its newsletter, have missed some notices, and since nothing has been done to it within the last 3 month, i would wonder about that Mar 24 18:44:00 phreakshow: there are some perl and python scripts to filter it, to only your app Mar 24 18:44:03 that massively cuts down on the clutter Mar 24 18:44:09 but i dont know how to make them work on windows Mar 24 18:44:13 ok ty Mar 24 18:44:29 proclogcat is the main one you would want Mar 24 18:44:31 what's android weekly Mar 24 18:45:04 http://androidweekly.net/ Mar 24 18:45:39 cool Mar 24 18:45:48 is it worth a sub? Mar 24 18:46:01 i subbed it Mar 24 18:46:16 once a week it isn't bothering to much, and sometimes usefull information Mar 24 18:46:27 though i wonder where that information with appcompat came from today Mar 24 18:46:46 clever, almost done man, you have been an absolute wonderful help so thank you very much Mar 24 18:46:48 E/ActivityManager( 195): ANR in com.ahl.host.utility:remote E/ActivityManager( 195): Reason: Executing service com.ahl.host.utility/.AHLHostsService Mar 24 18:47:02 E/ActivityManager( 195): 0.2% 195/system_server: 0% user + 0.2% kernel / faults: 1 minor Mar 24 18:47:17 W/ActivityManager( 195): Killing ProcessRecord{41687350 19653:com.ahl.host.utility:remote/10070}: background ANR I/ActivityManager( 195): Process app.processName (pid 19653) (adj 0) has died. Mar 24 18:47:20 thats it in adb Mar 24 18:47:37 it mentions writing stack traces to /data/anr/traces.txt Mar 24 18:47:46 but dont know how to access that since device is not rooted Mar 24 18:48:09 phreakshow: you can just try to read it without checking for perms, adb pull /data/anr/traces.txt Mar 24 18:51:20 Anyone use Android & Google App Engine? I'm having some issues trying to get an auth token from the AccountManager/Google. I'm trying to use a "com.google" account to get an AuthToken for the authScopeType "ah" but I keep getting "Couldn't sign in - Please try again later". The log show an error: GoogleLoginService(15699): Returning error intent with: ComponentInfo{com.google.android.gsf Mar 24 18:51:20 .login/com.google.android.gsf.login.LoginActivity} .... It seems pretty obvious that I am supposed to call the login activity, however neither of my callbacks are called(success or error). All I see is a screen that says: "Couldn't sign in - Please try again later". Aside, I am able to get an auth token when I use the authScopeType "Manage your tasks" ... which doesn't appear to be useful Mar 24 18:51:20 for making requests to my app engine REST service. Anyone got any ideas? Mar 24 18:52:19 wow im an idiot Mar 24 18:52:34 im 99% positive i know what it is lol Mar 24 18:52:38 waitForDebugger() >.> Mar 24 18:52:43 phreakshow: lol Mar 24 18:52:47 because iw as trying to debug the service roflmao Mar 24 18:53:12 hello, can anyone please explain what i'm doing wrong here? the dialog is not dismissed when it should be... http://paste.ubuntu.com/5644112/ http://paste.ubuntu.com/5644113/ Mar 24 18:53:15 had that in onBind .. Mar 24 18:53:25 am.getAuthToken(accounts[0],"ah",options,activity,new OnTokenAcquiredCallback(),_error); Mar 24 18:53:27 jeezus christ ive wasted a week on this :( Mar 24 18:54:00 phreakshow: connecting over tcp would have probly allowed that to work without usb Mar 24 18:54:17 so the tcp part didnt help any, just reviewing logcat Mar 24 18:54:47 i do almost all of my debug over tcp, so i can simply pick the tablet up and walk away, no cable to fuss with Mar 24 18:58:55 Hey Mar 24 18:59:17 clever, yah it allowed it to work because of debugger being installed so thats fine Mar 24 18:59:20 but.. Mar 24 18:59:31 err nm no it didnt Mar 24 18:59:41 it caused it to fail because iw asnt running it through eclipse, let me rephrase Mar 24 18:59:48 had i debugged through eclipe it would have. Mar 24 19:00:01 but yah it was that line.. something i needed just not in production code :P Mar 24 19:00:06 I create buttons on my widget in the xml, but how can I change the string of those buttons onUpdate? I can use findViewById since its not a View Mar 24 19:00:20 tried to hand this app to my boss and he said.. it doesnt work.. im like wtf? ive tried it in all environments (on a development pc mind you) Mar 24 19:01:15 thank you so much man, you were awesome Mar 24 19:01:51 now to figure out wtf is with the browser .. doesnt work on emulator, now to test on device >.> Mar 24 19:17:50 How do i prevent the keyboard from being closed Mar 24 19:18:37 phreakshow: oh, one more thing thats usefull Mar 24 19:19:41 phreakshow: http://code.google.com/p/android-remote-stacktrace/ Mar 24 19:20:01 phreakshow: any uncaught exceptions on a non-dev system (your bosses phone) get sent via http to your box Mar 24 19:21:03 Hi. My app crashes with a NullPointerException when I use android:onClick on a AutoCompleteTextView on Android 2.3.4. Why is that? Mar 24 19:28:44 timroes, I've implemented the techArrayList by following the documentation. The other 'tag' app doesn't appear anymore which is great. However, although onNewIntent(Intent intent) is called (I confirmed by putting a Toast), within the if statement if (NfcAdapter.ACTION_NDEF_DISCOVERED.equals(intent.getAction())) within the onNewIntent method doesn't result to true for some reason. I've put a toast Mar 24 19:28:44 within that if statement which doesn't appear http://pastebin.com/J8gNHcm7 Mar 24 19:29:22 so basically it doesn't work lol Mar 24 19:29:46 coco89: so the tag you are scanning is formated with ndef data? Mar 24 19:30:08 timroes, I didn't format it with anything Mar 24 19:30:26 doesn't mean it isn't already formated :) Mar 24 19:30:40 you could use some default tag reader to see if ndef data is on it Mar 24 19:31:05 but in general, since you want to write to that tag, i think you don't want to listen to ndef data, but want to check for tech discovered Mar 24 19:31:14 clever, thanks again, one last questiona nd then i think im done with this app Mar 24 19:31:17 or tag discovered Mar 24 19:31:30 timroes, I see, but that means that I cannot write ndef messages to it ? Mar 24 19:31:32 i guess tag discovered would be best but again - never done it :D Mar 24 19:31:32 right? Mar 24 19:31:37 no it doesn't Mar 24 19:31:47 you can write to the tag whatever the tag accepts and you wish to Mar 24 19:32:04 but the foreground dispatch system must check for the right intent Mar 24 19:32:07 found out why webview isnt working.. height is set to 0. width is set to 800.. both are set to match_parent. in debug i checked the parents height and its 0 as well, the parent is as well set to match_parent and the parent of the parent of the webview is set to 1038 for height Mar 24 19:32:17 this is found by using getHeight() in debug, and getParent().. Mar 24 19:32:19 and if there is no ndef data on the tag, there won't be an NDEF_DISCOVERED intent Mar 24 19:32:34 so why is the height not populating? here i was thinking it was filling the entire screen just white in background .. Mar 24 19:32:38 just a tag discovered and then tech discovered Mar 24 19:32:46 timroes, I see, so I would have to either check for an tag or tech discovered Mar 24 19:32:47 ehh other way around Mar 24 19:33:02 yeah i would check for tech discovered Mar 24 19:33:12 but you can just log what intent is comming in that method Mar 24 19:33:19 to get a better image what is happening Mar 24 19:34:05 timroes, yeh i probably should. Would I need to change anything in the techArrayList? because all I have right now is this techListsArray = new String[][] { new String[] { Ndef.class.getName() } }; Mar 24 19:34:35 you will need to add the techs you want to support Mar 24 19:34:49 creating an string array for each inside the outer string array Mar 24 19:35:01 inner string array means the tag must fulfill ALL the specifications Mar 24 19:35:06 timroes, techs I want to support as in what I can send to it i.e Ndef etc? Mar 24 19:35:08 and outer string array is an or list Mar 24 19:35:39 phreakshow: id need to look at the layout xml to know Mar 24 19:36:03 coco89: just place a log output for the intent action in your onnewintent method right now Mar 24 19:36:23 i also wonder, why there isn't a ndef discovered since yo told the foreground system, you want to listen to ndef and not tech Mar 24 19:36:38 so if the tag contains no ndef data, i would say, the dispatcher shouldn't give it to you Mar 24 19:38:45 i am not seeing through that all, but i would say listening to Ndef is enough, since you want to write ndef tags, every tag you can write that to, will have the NdefTech (or NdefFormatable) Mar 24 19:39:01 clever, if i pastebin it would you have a minute to look? its a simple relative layout with sub frame layouts and includes under the frame layouts Mar 24 19:39:18 three includes all set up the same way, and each work but this one Mar 24 19:40:08 phreakshow: i can try Mar 24 19:41:50 timroes, sorry we got a powercut. The last thing I read was 'and outer string array is an or list' Mar 24 19:42:40 just place an log output in your newintent method and see what intents come in there to check for Mar 24 19:43:10 though I think you are saying you listen to NDEF_DISCOVREED i wonder why it catches also the TECH and/or tag dissocvered once Mar 24 19:51:07 timroes, great so my tag is tech discovered. I'm not sure what that means I can or can't do, but I can definitely use Ndefs when writing my 'reader' app right? Also, Do I need to change anything in the techArrayList? Mar 24 19:52:02 So when I write my 'reader' app I could filter out for ACTION_NDEF_DISCOVERED Mar 24 19:54:20 clever: http://pastebin.com/dkqY1Siv Mar 24 19:55:08 Is there a way to list all providers on the phone ? Mar 24 19:58:51 droidbuster: get all PackageInfo (from PackageManager) objects, inspect each ones "providers" item Mar 24 19:59:28 Evanc thank you Mar 24 20:05:18 coco89: just tested a bit, this foreground dispatching is pretty unreasonable in my opinion Mar 24 20:05:35 yep! Mar 24 20:05:38 (a) it doesn't matter at all what action the itnent filter have, you will ALWAYS receive an TECH_DISCOVERED Mar 24 20:05:54 (b) even the data filter (as its described in the documentation) isn't taken into account at all Mar 24 20:06:13 only the tech filter (that is not actually part of the intent filter) will be taken into account Mar 24 20:06:42 in fact you can even pass an empty intent filter to enableforegroundispatch Mar 24 20:06:57 even null works :D Mar 24 20:07:09 it seems like the intent filter is absolutetly nonsense Mar 24 20:07:32 though i guess (since the source code only hols an interface there) the implementation of NfcAdapter depends on the hardware manufacturer Mar 24 20:07:35 heh, no wonder I was getting so confused! :D Mar 24 20:08:07 yeh true Mar 24 20:09:42 clever, did u get a chance to look at the URL? Mar 24 20:09:45 okay pending intent is taken into account :) Mar 24 20:10:09 just checked it. so actually pendingintent and techlist will be taken into account, but intent filter is totally ignored Mar 24 20:10:15 coco89: what phone are you testing on? Mar 24 20:10:41 timroes, samsung galaxy s3, you? Mar 24 20:10:52 samsung galaxy nexus Mar 24 20:11:29 ah Mar 24 20:19:43 can anyone look at my layout xml that has a minute to see why the webview has a height of 0 because its parent has a height of 0, but its grandfather has a height of 1038 (in debug on the device..) and everything is set to fill_parent/match_parent Mar 24 20:19:44 ? Mar 24 20:22:37 phreakshow: don't ask to ask--just ask. Mar 24 20:22:53 pastebin your XML and paste the link in here; someone will look at it Mar 24 20:24:30 evanc, i already had Mar 24 20:24:42 clever: http://pastebin.com/dkqY1Siv Mar 24 20:24:57 sorry, I had directed at clever because he was assisting me, but he went afk it would appear Mar 24 20:25:04 how can I use a custom compound control as a listitem in a listview? Mar 24 20:25:51 phreakshow: oh, haha. thought you were saying the layout was clever. Heh, sorry. Mar 24 20:26:01 damccull: the same way you use a non-custom control? Mar 24 20:26:45 evanc I can inflate a layout into it, but how do I put a control, complete with java class, into it? Mar 24 20:27:25 damccull: what are you trying to do? I'm not sure why you're confused; can you show me your source? Mar 24 20:27:35 Are you asking how to use a custom widget in xml? Mar 24 20:28:17 Let me try again....I have a listview, which I can put a custom adapter on and in that adapter inflate an xml layout. Mar 24 20:28:46 But I have created a compound control using a layout, and a java class that inflates it Mar 24 20:28:53 put your custom view in the xml layout Mar 24 20:28:55 and I can manually add that to an activity, and it shows up Mar 24 20:29:12 but how do I add my control, with its built in functionality, to a listview? Mar 24 20:29:26 16:36 < evanc> put your custom view in the xml layout Mar 24 20:29:38 in xml Mar 24 20:29:48 And use it like you would any other view Mar 24 20:30:13 s/quality/qualify/ Mar 24 20:30:15 how does that get my view into the listview?:) Mar 24 20:30:18 damccull: your "and a java class that inflates it" makes me think you're doing it wrong Mar 24 20:30:29 I probably am Mar 24 20:30:30 damccull: because then it would get inflated just like any other row Mar 24 20:30:31 hold on Mar 24 20:31:49 http://pastebin.com/ztcSTmYq if I instantiate this and programmatically add it to my activity, I see it Mar 24 20:31:55 and I can use it Mar 24 20:32:16 but I want a list of those Mar 24 20:32:26 Soo.. Create an adapter that returns those? Mar 24 20:32:35 damccull: Mar 24 20:32:44 stick that in your listview row xml Mar 24 20:33:41 It's a liftfragment Mar 24 20:33:45 listfragment* Mar 24 20:33:58 that isn't relevant Mar 24 20:34:00 but thanks for the info Mar 24 20:34:03 heh Mar 24 20:34:29 I think you need to read up on how listview works if this is confusing you :/ Mar 24 20:34:30 you're really overthinking this. Try this: get your DeckViewControl in your activity without doing it programmatically Mar 24 20:34:35 ok so in my xml for the control, I put that fully qualified name? ie. the layout of the java control I just pastebin'd Mar 24 20:34:36 ? Mar 24 20:34:46 once you've figured out how to do that, the listview question will no longer exist Mar 24 20:34:53 damccull: yes Mar 24 20:34:56 ok doing it Mar 24 20:35:09 thanks for pointers. now I will continue to learn. :D Mar 24 20:37:56 omg this is driving me nuts :( Mar 24 20:38:12 i wonder.. i think i might know what it is and its stupid Mar 24 20:38:14 bet ya.. Mar 24 20:38:45 is it possible to throw exceptions from a binder service to a client? Mar 24 20:39:09 across process Mar 24 20:40:07 you could send a message that it processes and receives the exception and throws it Mar 24 20:40:16 bundle the exception as an object Mar 24 20:40:46 coco89: if you want someone to complain to: https://plus.google.com/113397378275554265041/posts he wrote the nfc docs :) Mar 24 20:40:58 Anyone got any good examples on a nice way to handle setting up a location in an app? For example when selecting a location in the "News & Weather" Google app. Mar 24 20:41:39 hah! figured it out! Mar 24 20:41:40 w00h00 Mar 24 20:41:46 timroes, oh brilliant :) thanks, will definitely have a word with him :D Mar 24 20:42:25 sleepster: can't you throw new RemoteException(realException); ? Mar 24 20:43:09 sorry didnt know if there was a solution like that seeing as they are two seperate processes .. lol.. still new to android :) Mar 24 20:43:20 my solution would work though :p Mar 24 20:43:50 evanc, no :( Mar 24 20:44:40 I tried Mar 24 20:44:51 Where can I learn about a good pre-coding planning process for programming stuff? Mar 24 20:45:32 sleepster: why doesn't it work? Mar 24 20:46:22 ok im off guys :) Mar 24 20:58:35 evanc, it tells me "*** Uncaught remote exception! (Exceptions are not yet supported across processes.)" Mar 24 20:58:37 :( Mar 24 21:00:09 Sounds like exceptions are not yet supported across processes Mar 24 21:00:19 hmm :( Mar 24 21:00:26 lol Mar 24 21:00:30 what is the recommended approach for handling errors across AIDL Mar 24 21:00:33 StackOverflow.com Mar 24 21:00:40 maybe I should make them C-Style interfaces huh? Mar 24 21:00:44 just return error codes Mar 24 21:01:09 timroes, have you managed to get a reader /writer app to work? Mar 24 21:01:31 yeah Mar 24 21:01:36 timroes, nice Mar 24 21:01:47 what exactly is your current problem? Mar 24 21:02:40 timroes, the documents give this method as an example. I'm not quite sure how to read from an Ndef Message Mar 24 21:02:42 http://pastebin.com/9UHrAh7Q Mar 24 21:02:59 what exactly do you wish to read from it? Mar 24 21:03:31 timroes, the string i wrote in the tag Mar 24 21:04:44 in what way did you write it to the tag? Mar 24 21:05:23 timroes, like so http://pastebin.com/r97f23QM Mar 24 21:06:08 i mean the message NdefMessage you wrote? Mar 24 21:06:22 oh sorry Mar 24 21:06:53 I had a createTextRecord() method like in the example in the documents Mar 24 21:07:09 http://pastebin.com/NbH8HTi3 Mar 24 21:11:15 haven't tried strings yet, only URLs, since its better for itnent handling imho if you need the tag afterwards. but what i would try is (a) don't use EXTRA_NDEF_MESSAGE Mar 24 21:11:28 its optional, and from my tests never filled with data :) Mar 24 21:12:42 so use something like http://pastebin.com/8n79VZFu Mar 24 21:12:52 ehh sorry wrong coppied Mar 24 21:14:49 http://pastebin.com/RJ77jNHu this i meant :D Mar 24 21:15:03 so you have the byte array you can decode to string again Mar 24 21:15:24 but that ofc only works if the tag has ndef functionally, that you will still need to check (before Ndef.get(tag)) Mar 24 21:16:17 ah, I see, thanks! I'll try it out. Also, surely it would have ndef functionality? What does it depend on/ Mar 24 21:17:21 on the tag Mar 24 21:17:45 but if you can write data to it it has ndef functionallity :) Mar 24 21:18:07 but if not also your write method will fail, so you might want to check if it has Ndef functionallity Mar 24 21:18:16 timroes, so i'll replace the method I showed you with the lines you gave me? Mar 24 21:18:34 if(!Arrays.asList(tag.getTechList()).contains(Ndef.class.getName())) { return; } Mar 24 21:18:43 yeah e.g. Mar 24 21:23:34 I wonder if I can throw a Parcelable exception? Mar 24 21:23:37 I wouldn't mind doing that Mar 24 21:26:18 hello can anyone help me out with facebook sdk integration in an app? Mar 24 21:27:45 HunterSeeker, you'll probably get more info by just asking your question ;) Mar 24 21:30:25 good idea :P. So i managed to get my user logged in, the problem is that i want some extra permissions in my current session. I am trying to do that using Session.NewPermissionRequest. The docs say that it is used in "chaining" but i dunno what that mean. Mar 24 21:31:15 since no one has replied on the other channel.. Here is my question again: Mar 24 21:31:34 I have defined ViewList http://dpaste.com/1033698/ Mar 24 21:31:43 but then I get Error inflate Mar 24 21:32:39 Maybe it's because you make up your own names for ListView, rather than just looking it up Mar 24 21:33:16 or is there a way by which i can elevate the permissions when the session is created? Mar 24 21:35:38 if i have 2 different layouts for orientations.. in profile I have 1 frameView with 1 fragment.. and in landscape I have 2 frameviews with 2 fragments Mar 24 21:35:44 thish is probably an idiotic question Mar 24 21:35:53 timroes, it complains about The method toByteArray() is undefined for the type Ndef Mar 24 21:35:57 which will it pick when I go from landscape to profile Mar 24 21:35:58 ? Mar 24 21:36:00 SimonVT: what do you mean making up names? Mar 24 21:36:06 I've replaced everything in the readIntentMethod with those four lines Mar 24 21:36:11 What's ListViewLayout? Mar 24 21:36:31 There's nothing in the sdk called that Mar 24 21:36:32 coco89: nfed.getNdefMessage().toBytesArray() Mar 24 21:36:36 sorry forgot this Mar 24 21:37:10 SimonVT: Oh, right. Strange I didn't notice this one. Btw, Eclipse didn't complain at all... Mar 24 21:37:10 ah Mar 24 21:38:14 is android fast enough at reading images from sqlite databases that it wouldn't present too slow of a user experience? Mar 24 21:39:07 ehm Mar 24 21:39:29 when I make a res-large-land why does eclipse force me to review what I'm doing on the 5.1 WVGA Mar 24 21:39:34 if I change it to a 10" tablet Mar 24 21:39:36 it changes back Mar 24 21:44:17 timroes, so I have an array of bytes how do i convert them to strings : Mar 24 21:44:18 :S Mar 24 21:46:24 testing.. 1.. 2...3 Mar 24 21:47:30 coco89: effort https://www.google.co.uk/search?q=android+bytes+to+string&aq=f&oq=android+bytes+to+string&aqs=chrome.0.57j0l3.3769&sourceid=chrome&ie=UTF-8 Mar 24 21:48:22 as in effort == simple google, irc != google Mar 24 21:48:25 why is this so messed up lol wtf Mar 24 21:49:47 alright Stingray.. can you help me.. I copied my activity_main into a folder called res-large-land Mar 24 21:50:02 everytime I try and change something in the graphic view.. like orientation or what device to be displayed on Mar 24 21:50:10 it jumps back to my 'original' activity_main Mar 24 21:50:58 P3nnyw1se: well does your device/display register as "large" ? Mar 24 21:51:16 no its not what I mean.. there is no device.. this is just the 'GUI' view in eclipse Mar 24 21:51:23 whenever I wanna change something in that copied activity_main Mar 24 21:51:27 it jumps back to the other one Mar 24 21:51:30 its really strange Mar 24 21:51:32 tip: create a string called screenm="small/medium/large" etc Mar 24 21:51:53 you use eclipse right ? Mar 24 21:51:55 place that string value in all your qualified folders Mar 24 21:52:03 and display them so you can test Mar 24 21:52:04 yeah but thats not what I mean :P Mar 24 21:52:18 when I open my newly copied activity_main Mar 24 21:52:26 and lets say I wanna change what device it should display on.. in Eclipse Mar 24 21:52:35 it jumps to my res/activity_main Mar 24 21:52:55 if I wanna change orientation .. in the gui maker in eclipse Mar 24 21:52:57 it does the same thing Mar 24 21:53:00 I literally can't change anything Mar 24 21:53:00 P3nnyw1se: you actually called the folder res-large-land ? Mar 24 21:53:13 oh no Mar 24 21:53:15 sorry no layout-large-land Mar 24 21:53:21 yes Mar 24 21:53:33 the copied xml file Mar 24 21:53:35 I think Mar 24 21:53:40 id being displayed on a 5.4 device.. something I didn't ask it to be Mar 24 21:53:42 and I can't change it Mar 24 21:53:42 lol Mar 24 21:54:25 its in eclipse, just to make that clear its not a virtual device Mar 24 21:54:35 well for that to show, you would need a screen that "qualifies" as large Mar 24 21:54:35 I can't edit the new xml file.. it just bounces me back to the original xml file Mar 24 21:54:41 and is in landscape Mar 24 21:54:46 but.. I'm not trying to show anything :( Mar 24 21:54:49 ok Mar 24 21:54:52 now i get it Mar 24 21:54:55 I'm just trying to like add a button.. or add a textfield Mar 24 21:54:56 anything Mar 24 21:54:58 you had a file open Mar 24 21:54:59 I can't do anything in the new xml file Mar 24 21:55:04 and you saved as ? Mar 24 21:55:13 into that folder ? Mar 24 21:55:15 I copied the old xml file into that new folder Mar 24 21:55:27 I have 2 of them.. but when I try to change something in the new xml file Mar 24 21:55:31 it sends me to the other xml file Mar 24 21:55:34 even if its closed.. it will just open it Mar 24 21:55:45 close/restart eclipse Mar 24 21:55:50 make sure both files are closed Mar 24 21:56:21 * StingRay_ just woke up, so brain only in low gear Mar 24 21:56:25 will try that now Mar 24 21:56:31 its weird seems like a bug Mar 24 21:57:54 timroes, so I've converted to bytes to string and I get something like b@246fd3d Mar 24 21:57:57 :( Mar 24 21:58:23 then you might have written it wrong. looks like the end of a toString representation of an object Mar 24 22:03:10 timroes, http://pastebin.com/enBLD5hX Mar 24 22:03:33 by the way, what's the advantage of having a URI instead of a string? Mar 24 22:03:57 coco89: did you read the top link i sent you ? Mar 24 22:04:03 from searching in google ? Mar 24 22:04:23 coco89: new String(b) was better :D Mar 24 22:04:25 actually I think the top 4 or 5 were all valid answers Mar 24 22:04:28 b.toString() isn't very good Mar 24 22:04:49 and an uri is better ifyou want to use the tag to start some app afterwards Mar 24 22:04:56 and just need to pass an id to your app Mar 24 22:05:05 string is good if you really need messages of some kind Mar 24 22:06:08 timroes, Yeah doesn't the AAR do that for you? Mar 24 22:07:20 timroes, also I kept new string(b) and the string is meant to be 'marco' but the Toast displays 'T enmarco' Mar 24 22:07:24 exactly that way Mar 24 22:08:20 P3nnyw1se: did that work ? Mar 24 22:08:32 or rather is it sorted now ? Mar 24 22:08:50 coco89: AAR only gives you some information on what app to start, and perhaps forward to market if app is not installed. but its not the main url on the tag that is used for parsing Mar 24 22:09:13 coco89: might be that there is more information on the tag then, i am really not sure, you will need to figure out another way to read the stuff Mar 24 22:09:41 ah I see Mar 24 22:09:42 for sure :) Mar 24 22:09:50 I'll see what's happening Mar 24 22:15:56 :( Mar 24 22:15:57 it didn't Mar 24 22:16:00 here is what literally happened now Mar 24 22:16:10 I open eclipse.. open my project.. I go to layout-large-land Mar 24 22:16:10 evening, I was wondering what the 'lifecycle' is of location updates when delivered through a PendingIntent to a BroadcastReceiver Mar 24 22:16:13 I click on the xml Mar 24 22:16:27 when I try and change orientation or what device I want it to be viewed on Mar 24 22:16:31 it loads the other xml page Mar 24 22:16:34 the one in layout Mar 24 22:16:44 ie, if I reboot the device it'll unregister the receiver, that's fine Mar 24 22:16:48 but is there another way? Mar 24 22:17:20 this just.. makes no sense Mar 24 22:17:20 at all Mar 24 22:19:32 what the hell is wrong Mar 24 22:19:40 stingray is there something I need to change in a copied xml file Mar 24 22:19:46 I mean when it goes in a different layout folder+ Mar 24 22:19:46 ? Mar 24 22:19:58 or should it theoretically work right away Mar 24 22:21:08 How can I set up a separate resource file (of which I may have many) that contains many other files. I thought about using a simple zip file, but I can't figure out how to work with files inside the zip without first extracting it to the filesystem. Mar 24 22:23:55 P3nnyw1se: well like I said b4, easy thing to do so you have some visual way to track things is create a values string xml Mar 24 22:24:15 and in your qualifier folders, have that string as the qualifier name Mar 24 22:24:21 and in your layout display it Mar 24 22:24:43 so you know from what resources the layout (and values) are pulling from Mar 24 22:25:32 but its everything I do Mar 24 22:25:37 I literally.. cannot change a thing Mar 24 22:25:40 in my copied xml file Mar 24 22:25:57 if I try.. it shifts over to the original xml file Mar 24 22:26:05 as if its trying to tell me I'm suppose to do it there Mar 24 22:26:27 how do you know it shifts ? Mar 24 22:26:32 out of interest Mar 24 22:27:44 it shifts window Mar 24 22:27:46 in my guimaker Mar 24 22:27:48 in eclipse Mar 24 22:28:12 did you "link" the file rather than copy ? Mar 24 22:28:36 nope its there alright Mar 24 22:28:44 a fully fledged identical copy Mar 24 22:28:52 rename it Mar 24 22:28:57 but it sure does behave likes its 100% linked to the other one Mar 24 22:29:00 humour me Mar 24 22:29:50 renaming to actvity_main2.xml right now Mar 24 22:30:02 closing all windows Mar 24 22:30:09 opening the main2.xml Mar 24 22:30:26 its being displayed on a 5.4 device Mar 24 22:30:34 what the hell Mar 24 22:30:39 now that I renamed it gives an error instead Mar 24 22:30:49 maybe cause it was a link ? Mar 24 22:31:01 local screen aspect ratio error something Mar 24 22:31:21 no recourses match the configuration Mar 24 22:31:22 wtf Mar 24 22:32:18 I dont get it Mar 24 22:32:40 it says no recourses match the configuration .. it won't let me change device on the preview button Mar 24 22:33:08 I cant change orientation on it either Mar 24 22:33:42 so was I not supposed to just copy the xml ? Mar 24 22:34:10 yeah copy /paste works fine Mar 24 22:34:21 it seems like the actual xml file works fine Mar 24 22:34:24 linking it rather than pasting won't work fine Mar 24 22:34:25 I can add buttons and stuff Mar 24 22:34:31 I didn't Mar 24 22:34:45 there is a complete copy here with a different name on it Mar 24 22:34:49 I can add a button in main2 Mar 24 22:34:52 and it wont appear in main1 Mar 24 22:34:59 but I can't use all the graphical features the eclipse plugin has Mar 24 22:35:02 I can't change theme e.g. Mar 24 22:35:07 or orientation etc Mar 24 22:35:14 it just goes 'no recourses match the configuration' Mar 24 22:36:56 deleted it.. copied a new one Mar 24 22:36:57 same story Mar 24 22:38:00 I can even tell it points to the right one Mar 24 22:38:07 on the top corner of the window Mar 24 22:38:17 large-land\activity_main2.xml Mar 24 22:39:17 giving up Mar 24 22:39:20 no clue what to do about this Mar 24 22:39:46 Anyone use Android AccountManager to get auth tokens for Google App Engine? Mar 24 22:41:04 any suggestions at this point are welcome Mar 24 22:41:17 do what I said with values Mar 24 22:41:34 as a test Mar 24 22:41:36 :) Mar 24 22:42:07 I dont understand do what ? Mar 24 22:42:10 refer to other values ? Mar 24 22:42:14 yes Mar 24 22:42:18 a string value Mar 24 22:42:38 that has diff resolved string for each qualifier folder Mar 24 22:42:42 but are you sure u know what exactly is the problem here ? :P Mar 24 22:42:44 like the name of the qualifier Mar 24 22:42:56 I've just added 2 buttons to the new xml file Mar 24 22:42:58 they added perfectly Mar 24 22:43:01 I even named them Mar 24 22:43:38 functionwise.. the new one has no issue xml Mar 24 22:43:45 I can manually add stuff too in it by writing Mar 24 22:44:29 hmmm Mar 24 22:44:32 Whats the error you are getting? I just joined Mar 24 22:44:40 hit enter a few more times, would ya ! Mar 24 22:44:43 I've tried copying my main_activity xml file Mar 24 22:44:48 into a layout-large-land Mar 24 22:44:49 folder Mar 24 22:44:59 and it works perfectly.. except when I try to use graphic features Mar 24 22:45:04 in eclipse.. like 'change orientation' Mar 24 22:45:13 instead of doing that.. it switches window to the old xml file Mar 24 22:45:45 it also fixed itself on a device in the preview Mar 24 22:45:47 5.4 tablet Mar 24 22:45:51 ok, that could be due to something else, for example: If you have a CameraPreview, you have to handle the orientation change event Mar 24 22:45:53 if I try and change that.. it switches to the old xml file Mar 24 22:46:06 what sort of functionality are you using in the layout? Mar 24 22:47:03 nearly nothing Mar 24 22:47:08 3 buttons.. 3 different views Mar 24 22:47:13 ok Mar 24 22:47:13 a background color Mar 24 22:47:14 and an image Mar 24 22:47:36 So, you don't get an error, you just see the old xml file? Have you tried cleaning your project? Mar 24 22:48:13 I've tried saving everything and closing and opening eclipse several times Mar 24 22:48:23 I see the new xml file .. I can add buttons too it Mar 24 22:48:27 I can do anything with it Mar 24 22:48:34 but I can't use any of the 'graphical' preview features Mar 24 22:48:41 like change orientation.. shift theme stuff like that Mar 24 22:48:45 then it just swaps over to the old xml file Mar 24 22:48:58 go to Project (At the top) and select "Clean..." .. select your project and clean Mar 24 22:49:46 Could just not use the graphical layout editor Mar 24 22:50:00 sometimes if you've only made XML file changes eclipse won't rebuild the project, if you add a space to a .java file it'll force a rebuild Mar 24 22:50:09 alright check this out Mar 24 22:50:20 I just made a test.xml Mar 24 22:50:22 with nothing in it Mar 24 22:50:25 in both folders Mar 24 22:50:27 same error Mar 24 22:50:29 also that graphical layout editor is a slut and as SimonVT said, don't use it ! it gives you a false perception of what your app is going to look like Mar 24 22:50:58 Are you getting an error? As in, an error in the logs? Or, the functionality just doesnt work as expected? Mar 24 22:51:13 if I have 2 files.. with the same name.. I get no error Mar 24 22:51:15 but Mar 24 22:51:27 if I change the one in layout-large-land Mar 24 22:51:30 to activity_main2 Mar 24 22:51:35 and try and switch device type Mar 24 22:52:10 it tells me 'no recourses match the configuration' Mar 24 22:52:12 and refuses to do it Mar 24 22:52:16 also refuses to change orientation Mar 24 22:55:24 alright so .. I remove 'large' Mar 24 22:55:30 and named the folder layout-land Mar 24 22:55:34 and now I can freely change device Mar 24 22:55:48 still can't change orientation away from land.. but I guess that makes sense.. considering the folder name Mar 24 22:56:03 I assumed Large was all big devices? but apperently it isn't Mar 24 22:57:12 define 'big devices' Mar 24 22:57:23 galaxy note, nexus 7, nexus 10? Mar 24 22:57:29 anything bigger than 'something' Mar 24 22:57:44 I couldn't change it from a 5.4 to a 10" device when I had 'large' in the folder name Mar 24 22:57:50 so is 10 not a large device!? Mar 24 22:57:53 is it a 'huge' device ? Mar 24 22:57:55 :P Mar 24 22:57:57 xlarge :p Mar 24 22:58:18 anyways it works nicely now it shifts between the 2 layouts Mar 24 22:58:22 when I change orientation Mar 24 22:58:26 also, since 3.2 there's a new, better system to determine this Mar 24 22:58:55 (you should still provide -large, etc for older devices if you need to support them though) Mar 24 22:59:29 but under the new qualifier system you can simply specify a minimum amount of dip for a given layout Mar 24 22:59:32 now its the XXXdp way to go right ? Mar 24 22:59:36 yeah Mar 24 22:59:52 my teacher though told me the problem with using the XXXdp Mar 24 23:00:02 was that he e.g. on his phone had a crazy high resolution Mar 24 23:00:08 so if I force him to see a lot of stuff on it Mar 24 23:00:11 it will get tiny Mar 24 23:02:16 well, no, that doesn't generally happen, as these are device independent pixel sizes Mar 24 23:02:39 Your teacher is wrong Mar 24 23:02:41 ie, the higher the dpi of a given devices, the bigger 1dp is Mar 24 23:03:36 so if I say like layout-600dp dont know if thats the correct folder name Mar 24 23:03:46 this is so 1dp always corresponds to roughly the same size on a device (in inches, or centimeters, or w/e) Mar 24 23:03:47 I wont end it forcing a lot of views on a tiny phone? Mar 24 23:04:47 well, it's more that the tiny phone running 2.2 would use the most basic layout (the one under res/layout/) Mar 24 23:05:02 whereas devices meeting certain screen sizes get fancier layouts Mar 24 23:05:21 (ie, you could have a dual pane layout for a 10" tablet in landscape) Mar 24 23:07:18 alright something newbish here Mar 24 23:07:32 in my landscape orientation Mar 24 23:08:27 for such a layout you'd want something like layout-w500dp for the two-pane layout Mar 24 23:08:47 ie, when the screen is at least 500dp wide Mar 24 23:09:23 maybe a little more, like 600dp Mar 24 23:09:33 I want 2 views to share a part of the screen equally.. those views holds fragments that shifts Mar 24 23:09:33 lol I'm tired sorry but I can't figure out how to make sure they will equally get half of the designated area Mar 24 23:10:02 hope you got all that ? Mar 24 23:10:47 it depends Mar 24 23:11:32 P3nnyw1se: put them in a horizontal linearlayout Mar 24 23:11:57 give both of them 0dp width Mar 24 23:12:07 and android:layout_weight="1" Mar 24 23:12:27 (and height of "match_parent") Mar 24 23:13:37 if you want them to share the vertical space instead, take a vertical linearlayout and set the vertical size to 0dp and the horizontal to match_parent Mar 24 23:14:12 alright did that Mar 24 23:14:42 oh yeah its vertical sharing Mar 24 23:14:46 not horizontal Mar 24 23:14:59 basically what you need to remember is that layout_weight distributes the *leftover* space Mar 24 23:15:41 alright I'm not sure I understand how that works with giving them both 1 in weight Mar 24 23:16:03 P3nnyw1se: it's the ratio of the leftover space they receive Mar 24 23:16:09 1:1 in this case Mar 24 23:16:22 you could make it 2:1 by setting the weight of one to 2 Mar 24 23:16:37 Hello, is it possible to hide an item of listview? i tried setVisibility(View.GONE) but it has no effect. Thanks Mar 24 23:17:40 and the width with 0dp ? Mar 24 23:17:42 ohhh wait Mar 24 23:17:49 so you start out by denying them any space ? Mar 24 23:17:53 that just ensures all the space is leftover Mar 24 23:17:54 and then forcing them to share what ther eis ? Mar 24 23:17:59 yep Mar 24 23:18:17 I'm pretty sure I wouldn't have thought of that method by myself Mar 24 23:18:30 you can also use that to give one a fixed size of say, 100dp Mar 24 23:18:39 and having the other take the leftover space Mar 24 23:18:45 doing my first android project.. but already I fear the fixed size Mar 24 23:19:11 anyone integrate google drive in their app Mar 24 23:19:28 I have some questions about the rather horrid documentation for the android api Mar 24 23:19:30 or lack of Mar 24 23:20:44 where is the chase and how do I cut to it Mar 24 23:22:50 mmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmm Mar 24 23:23:21 I might have started something I wont be able to finish here Mar 24 23:23:45 hi everybody Mar 24 23:24:11 now that I have 2 different fragments that I can populate.. how do I make that work with my fragmentManager? Mar 24 23:24:20 hi Mar 24 23:24:21 do I have an if/else that checks orientation? Mar 24 23:24:28 and then acts differently ? Mar 24 23:26:20 P3nnyw1se: have you checked out http://developer.android.com/guide/components/fragments.html ? it talks about interfaces for tablets and phones and how to place fragments Mar 24 23:26:46 yeah I'm trying to read 'designing for multiple screens' now Mar 24 23:27:04 I already made the view that swaps between fragments with onClick listeners Mar 24 23:27:11 wow downloading the adt bundle from the adroid developers website takes forever Mar 24 23:27:17 but I forgot about the fact I have to adapt this sudden orientation change Mar 24 23:27:20 to the java code Mar 24 23:27:31 170kb/s lol Mar 24 23:28:25 how do you query a provider to see what the provider can all do ? Mar 24 23:29:17 it's going at 3800 KB/s over here Mar 24 23:32:40 hmm Mar 24 23:32:47 bankai I can't find this specifically in the link you gave me Mar 24 23:32:50 maybe I'm just missing it Mar 24 23:33:29 ah Mar 24 23:33:30 (getResources().getConfiguration().orientation Mar 24 23:33:30 == Configuration.ORIENTATION_LANDSCAPE) { Mar 24 23:33:31 here it is Mar 24 23:35:04 I have a switch statement which 5 different buttons if one of them is clicked it changes a fragment Mar 24 23:35:25 how would you apply that best to having 2 fragment possibilities in landscape mode ? Mar 24 23:35:54 I'm thinking to ask if it is in landscape then having another switch statement if it is Mar 24 23:36:08 dunno if thats the way to go Mar 24 23:46:14 weird, it was going really slowly before but now it's 1.2mb/s Mar 24 23:46:27 now 1.6 Mar 24 23:47:04 it would be really cool if you could divide a switch statement with if/else statements Mar 24 23:47:07 :P Mar 24 23:47:59 i have a listview and i want the divider to be a 1 pixel line, now i made a shape drawable (line) and set the dividerHeight on the listview to 1px. No line is shown. https://gist.github.com/xorgate/1dc600fdd78d15f84995 what could be wrong? Mar 24 23:50:16 if I change activities and have a asynctask running and I don't wish for it to continue what is the correct way to kill it if I start a new instance of asynctask in a new activity :S? Mar 24 23:52:19 I still can't get a string from an Ndef message :( Mar 24 23:54:26 I can't understand why the gdrive api works the way it does! Mar 24 23:55:51 :'( Mar 24 23:58:41 seems to me like there should be a better gdrive api for android Mar 25 00:05:20 no way this is gonna work just like that Mar 25 00:05:21 but testing Mar 25 00:14:03 everybody gone to sleep ? Mar 25 00:14:50 no Mar 25 00:15:03 everyone quit/join/server drops Mar 25 00:15:48 :( Mar 25 00:15:58 its not working.. do you think you can look through 2 pages of java code Mar 25 00:16:00 apart from my shell account because it's awesome :D Mar 25 00:16:02 :P Mar 25 00:18:54 P3nnyw1se: not sure what your attempting to do Mar 25 00:19:06 StingRay_: its called a netsplit Mar 25 00:19:19 I'm trying to set the price of my google play app, I want it at $3, but it says in the console the price excludes tax, do I need to take this into account? Mar 25 00:19:48 apple741: tax varies based on country of the purchaser Mar 25 00:20:00 http://pastebin.com/VMAQ970a Mar 25 00:20:03 $3 what is it ? Mar 25 00:20:33 this.. worked.. 10 minutes ago.. it used to be a switch statement that just checked what button was clicked and swapped a fragment Mar 25 00:20:36 Stingray that part worked Mar 25 00:20:45 now I added a boolean check to see if its 'landscape' mode Mar 25 00:20:53 Napalm: I see so would I need to make it slightly cheaper to take that into account? Mar 25 00:21:07 so in the switch statement it does something else now.. adds 2 fragments to 2 other views Mar 25 00:21:15 but it stops working when I hit a button now Mar 25 00:21:17 fatal error Mar 25 00:21:43 StingRay_: Its a puzzle app (200+ puzzles) Mar 25 00:22:26 and it gives the fatal error Mar 25 00:22:31 even if in portrait aswell Mar 25 00:22:45 P3nnyw1se: whats buttons got to do with orientation ? Mar 25 00:22:45 and that part used to work :P before I added the boolean check Mar 25 00:23:11 because I want them react differently according to the orientation Mar 25 00:23:12 ? Mar 25 00:23:23 react ? Mar 25 00:23:30 portrait = 1 view .. landscape = 2 views .. when someone wants to change view Mar 25 00:23:36 I need to know if its landscape or not Mar 25 00:23:38 so I can add 2 fragments Mar 25 00:23:39 instead of 1 Mar 25 00:23:41 well yeah Mar 25 00:23:50 but why not do that with qualifier names ? Mar 25 00:23:55 so the system handles it Mar 25 00:23:59 rather than you checking ? Mar 25 00:24:15 mmmmmmmmmmm Mar 25 00:24:15 i thought your layout-land should have handled that, but you are using fragments so... Mar 25 00:24:22 netsplit Mar 25 00:24:29 so let me get it straight Mar 25 00:24:37 rename the buttons ID in the new xml Mar 25 00:24:45 and expand the switch statement ? Mar 25 00:24:55 huh ? Mar 25 00:25:06 no I said let android handle it Mar 25 00:25:08 wut, they wouldn't both exist at the same time Mar 25 00:25:11 with qualifier names Mar 25 00:25:34 clearly Mar 25 00:25:37 I missed something here Mar 25 00:25:47 myMainLayout (normal) contains 2 fragments Mar 25 00:26:00 myMainLayout (land) contains 3 fragments Mar 25 00:26:07 yes Mar 25 00:26:48 in the activity if(findViewByID(R.id.mythirdfrag) == null){don't create it, do something else} Mar 25 00:26:54 ^ Mar 25 00:27:14 if you can't find the third fragment, logically you are not in landscape Mar 25 00:27:14 myMainLayout does not contain that thirdfrag id Mar 25 00:27:53 thus based on systemm/android chosen layouts, there are no tests/swtiches/if landscape blaaa Mar 25 00:28:12 BECAUSE LAYOUTS ARE MAGIC Mar 25 00:28:16 Sorry got disconnected Mar 25 00:28:25 but.... the guide...... Mar 25 00:29:44 So if I set my app up at $3 in some countries the price will be even higher than this due to tax? Mar 25 00:30:37 I took this from the developer android guide Mar 25 00:30:38 == Configuration.ORIENTATION_LANDSCAPE) { Mar 25 00:30:53 if (getResources().getConfiguration().orientation Mar 25 00:31:01 swap those 2 lines Mar 25 00:31:09 then they go on to suggest I check the orientation Mar 25 00:31:11 when I wanna do something Mar 25 00:32:33 so Stingray in the onCreate I check if that third fragment is ALIIIIIVEEEE!!!!! Mar 25 00:32:37 and if it isn't Mar 25 00:32:41 I treat it as portrait ? Mar 25 00:32:54 yes and no Mar 25 00:33:20 I dont know what to conclude from that :P Mar 25 00:33:26 if I were doing it I would not want to treat something as port/land Mar 25 00:33:35 I would just want it to be that way Mar 25 00:33:43 maybe with just 1 thing that differs Mar 25 00:34:13 I have 5 different fragments the user can browse through.. on landscape view on bigger devices Mar 25 00:34:25 I want 2 of those fragments visible at the same time Mar 25 00:34:31 they interact a lot Mar 25 00:34:36 and it would serve a good purpose Mar 25 00:36:54 How do I login to my test account from my device? Mar 25 00:37:04 To test the IAP Mar 25 00:38:04 so nobody can spot an obvious error in this ? Mar 25 00:38:15 http://pastebin.com/VMAQ970a Mar 25 00:38:35 I accidently Freenode Mar 25 00:42:56 does DataSetObserver work on listviews? Mar 25 00:47:54 ah nevermind :) Mar 25 00:53:26 P3nnyw1se, what is dk.filmegear.filmgearsketch Mar 25 00:54:08 when i have adapters within adapters is it a general rule to call notifyDataSetChanged on the root adapter instead of on the adapter where the change took place? Mar 25 00:54:24 you have what ? Mar 25 00:54:37 adapter inception Mar 25 00:54:56 wow… no idea Mar 25 00:55:07 never needed to nest adapters in adapters Mar 25 00:55:30 whats the uses in your case ? Mar 25 00:55:37 my tabspageradapter holds tabs that have listview adapters Mar 25 00:56:03 FragmentPagerAdapter* Mar 25 00:56:43 adapter within an adapter ? is that ur own invention ? Mar 25 00:57:13 i was just wondering because when i was calling notifyDataSetChanged on the listview adapter, it would be null or there would be no change Mar 25 00:57:38 well if your list data set changes, that doesn't imply the tab data set changed Mar 25 00:57:47 call data set changed on the adapter for which the data changed ... duh Mar 25 00:57:51 wtf else would u do Mar 25 01:00:16 i had no idea it worked like that. would have saved me some time if i did Mar 25 01:00:32 well im assuming each tab has a listview in it Mar 25 01:00:38 yes Mar 25 01:00:49 and you're woding if a list data changes you should call data changed on the root Mar 25 01:00:58 yep Mar 25 01:01:14 but the tap adapter is just determininig what the tabs are Mar 25 01:01:24 so i dont think that would make sense, your set of tabs have not changed at all Mar 25 01:03:44 well thats whats been working for me and the guys here http://code.google.com/p/android/issues/detail?id=19001 Mar 25 01:04:32 i couldnt get the fragment to update itself when its inside a tab. had to remake the tab Mar 25 01:12:46 hello Mar 25 01:19:52 sounds like you guys hardly use tabs in your apps Mar 25 01:26:53 darn kids Mar 25 01:27:32 evidently a hardcore hacker, huh? lol Mar 25 01:28:02 thats all they do these days ddos Mar 25 01:50:15 Has anyone used maven with adt/eclipse before? Mar 25 01:50:34 I'm having issues getting dependencies working Mar 25 02:36:23 mh... i'm fetching data via http and "caching" it in a sqlite db. it looks like i could model the data with bookshelf->book model. do i gain something by using a model? Mar 25 02:36:44 seems to me like a lot androids api is using sqlite anyway Mar 25 02:52:50 how can i view the source code of a super class in eclipse? Mar 25 02:57:14 getting the android source ? **** ENDING LOGGING AT Mon Mar 25 02:59:59 2013