**** BEGIN LOGGING AT Wed May 01 02:59:58 2013 May 01 03:15:07 Hey guys. I am looking for an Android layout which will allow me to scroll vertically and horizontally, while viewing grid, tablelayout, or something similar. Right now I have a TableLayout within a Horizontal ScrollView and a ScrollView. Which only allows me to scroll in one direction at a time. I'm looking for something smooth, like the browsers. May 01 03:28:46 you wan two way view by lucas rocha May 01 03:29:04 https://github.com/lucasr/twoway-view May 01 03:29:52 hmm, is it just me or are Android talks kinda sparse on IO this year May 01 03:31:44 Thanks JakeWharton, will try it out. May 01 03:38:54 Can I call an asyncTask that is inside an activity from an intent receiver? How ? May 01 03:51:51 hello i use sqlite and making android app using eclipse and now i'm stuck to retrieve 1 row user data from database. would anyone willing to help me please ? May 01 03:52:46 futzhu: cursor.moveToNext()? May 01 03:54:23 mheld: yes that is. I do not understand how to retrieve only 1 row data from table user using db.query(.....) :'( May 01 03:54:43 futzhu: cursor.moveToFirst() May 01 03:54:50 futzhu: then you extract data out of there May 01 03:55:29 so you do cursor c = db.query("select * from TABLE where x=y limit 1") May 01 03:55:37 c.moveToFirst() May 01 03:55:55 then c.getString(c.getColumnIndex("field name")) May 01 03:55:58 something like that May 01 03:56:18 you'll probably want to make sure that those are the right methods/parameters, but that's generally how you query and get data out of a cursor May 01 03:56:21 I am trying to stop my player and getting the following error attachNewPlayer called in state 16? http://pastebin.com/2SVsLmHV May 01 03:57:01 mheld: ok thanks mate that is very helpful :) May 01 03:57:31 futzhu: no prob May 01 03:57:48 futzhu: initially, c is pointing to nothing even though you've queried for it May 01 03:58:07 futzhu: to iterate through the cursor you'll wanna do something like May 01 03:58:48 c.moveToFirst(); for(int i=0; i c.close() May 01 03:58:58 gotta close those cursors May 01 03:59:02 or else they'll leak! May 01 03:59:09 mheld: May 01 03:59:26 best to wrap 'em in a try/catch/finally clause May 01 03:59:31 mheld: ok i will try it now :) May 01 04:01:48 Daejeo: might wanna find out what state 16 is -- there's a java file out there somewhere with all the constants May 01 04:01:51 it'll tell you what state 16 is May 01 04:10:33 mheld: hey i got an error: the method query (string, string[], string, string, string) in the type SQLite database is not applicable for the argument (string) May 01 04:10:42 JakeWharton, unfortunely that library you linked me to only navigates in one direction. May 01 04:11:07 "An AdapterView with support for vertical and horizontal scrolling." May 01 04:11:19 JakeWharton, it scrolls vertically in portrait, and horizontal in landscape. May 01 04:12:06 hmm May 01 04:12:09 well that's dumb May 01 04:13:07 Yea, I was quite excited when I was looking at it. May 01 04:13:09 it's not very well named, but works well as a horizontal scrolling adapter-backed view. May 01 04:14:05 you are now the third person to whom i've recommended the library as something which does two-way paging May 01 04:14:09 shame on me May 01 04:14:31 futzhu: you'll prolly wannna use rawquery if you don't wanna use the magic query method May 01 04:14:50 and he'll probably wanna use documentation in near future May 01 04:14:53 Hmm, unless I'm missing something. However, looking at the code and using the sample app. It doens't seem like it does both. May 01 04:15:05 futzhu: I'd highly recommend using .query() though -- it does some magic that makes things faster May 01 04:15:46 mheld, not to mention skips those pesky sql injection problems :P May 01 04:16:03 ha, yes. that too May 01 04:17:48 mheld: sorry i really dont understand with this so for example if i want to select 1 user from database customer and table user how i write the code? db.rawquery('select * from user where id=1 limit 1') <- is this correct ? May 01 04:19:28 JakeWharton: http://blog.gorges.us/2010/06/android-two-dimensional-scrollview/ May 01 04:19:56 futzhu: that looks right -- assuming that user is the name of your table and id is the name of your field May 01 04:20:11 Works like a charm, found it sort of hidden in an answer. May 01 04:20:29 cool. don't think i'd ever put two dimension scrolling into my app in any capacity though May 01 04:20:33 perhaps you have a valid use-case though May 01 04:20:59 JakeWharton: we use two-dimensional scrolling for our tv guide ;-) May 01 04:21:23 I'm trying to display 2d table. A good example would be periodic table of elements. (Doing something very similar) May 01 04:21:29 though it's more like a listview that's inside a viewpager page May 01 04:21:40 listview + viewpager makes sense to me May 01 04:21:53 unbounded 2d scrolling scares me May 01 04:23:42 zettazete: is what you need different from what the gallery app does when zoomed into a photo (for example)? May 01 04:28:44 I need to get a new macbook air May 01 04:28:51 my baby is slowly dying May 01 04:28:58 I'm over apple hardware May 01 04:29:14 I liked the whole unix like os with a nice gui May 01 04:29:25 but the os has gotten slower and slower May 01 04:29:33 and I primarliy do android/windows app dev May 01 04:29:56 yeah, I can't give up OS X yet May 01 04:30:13 a) there isn't anything else out there that I like as much and b) I still do iOS dev May 01 04:30:29 I wish plan9 was prettier and Just Worked(tm) more May 01 04:30:44 i wish for a ChromeOS version of the android-sdk May 01 04:33:15 have you guys used android query? https://code.google.com/p/android-query/ May 01 04:33:54 plan9?! are they even working on that anymore? May 01 04:34:13 I've been using linux since very very early slack days May 01 04:34:24 and its never been even remotely acceptable as a workstation os May 01 04:34:34 but I htink its finally starting to get there May 01 04:35:01 i'm so happy you're all having this conversation. same time/place tomorrow right? promise? May 01 04:35:43 arnorhs_: I have used and I did not like it May 01 04:36:28 JakeWharton: which parts? May 01 04:36:31 just the whole thing? May 01 04:36:48 it tries to do too many things at once and as a result provides a mediocre experience across the entire thing May 01 04:36:50 it's pretty monolithic, i like smaller libs myself May 01 04:36:56 ah, yeah May 01 04:36:57 i can see that May 01 04:37:32 I think there's potential in a more terse way to find and manipulate views. I'm a big fan of fluent APIs for quickly traversing, creating, and mutating a set of objects May 01 04:37:48 but that should be spun out into its own project and iterated on May 01 04:40:02 yeah, i agree May 01 04:40:38 that part is actually what caught my eye, b/c it's so verbose to do all the view finding and typecasting May 01 04:43:53 maybe it's time to spin up an android OS proj based on some of those ideas May 01 04:59:11 mheld: i got same problem with futhzu, what is fieldname mean? May 01 05:00:08 What is the reason for namespaces being like a reverse domain May 01 05:00:32 I understand least specific to most specific, but I don't understand why you would do com. May 01 05:00:51 it's because domains are a universal namespace May 01 05:01:20 presumably you wouldn't put things in com.obscuregame.someandroid May 01 05:01:20 So why the TLD? Is it specific to icann? May 01 05:01:34 because I own obscuregame.com May 01 05:01:50 how do you know May 01 05:01:54 so as long as people follow the rules, namespaces can never collide May 01 05:02:05 really tired, that came out wrong May 01 05:02:07 I paid the fee to the domain registrar May 01 05:02:10 why does that matter* May 01 05:02:15 oh May 01 05:02:16 oh May 01 05:02:18 I see May 01 05:02:41 suppose you have a cool library that draws fluffybunnies, and I need a fluffybunny lib May 01 05:03:19 your lib and my code won't collide. Cause your lib is in org.korvin.fluffybunny or something May 01 05:11:11 I prefer com.anniepoo.nappyrabbit anyways May 01 05:19:11 lol May 01 05:23:11 yes, I always put my code in com.google.* May 01 05:23:25 it makes me feel impressive May 01 05:23:29 8cP May 01 05:24:38 I used to work for Apple (pre OS X days). There was a rule that only Apple could tail patch an OS call May 01 05:25:34 I'm discussing something with another engineer, and she suggests tail patching ... I point out you aren't supposed to tail patch, and actualy said 'only apple is allowed to tail patch' May 01 05:25:45 .... she pointed out that we WERE Apple May 01 05:32:07 yogix: join #maho May 01 06:05:50 there are many applications on the market, but like in regular linux developers should try to reuse similar pieces of code bunching them into libraries, is there some open repository of those libraries for android one can use to increase developing process or every developer make software from scratch ? May 01 06:07:33 elkng, people mostly use maven May 01 06:07:56 elkng, which pulls packages from its global repository May 01 06:08:16 how good is maven when compared with regular ant buid system May 01 06:09:01 Looney, it doesn't really do quite the same thing May 01 06:09:18 oh, ok May 01 06:09:32 so, it cannot replace ant May 01 06:09:57 it can May 01 06:10:14 it just does much more and does it differently :) May 01 06:10:21 nice May 01 06:10:23 it has more declarative approach to configuration May 01 06:10:40 (which, of course, can not be optimal for some people) May 01 06:10:43 so, its better than ant ? ? May 01 06:11:25 *sigh* May 01 06:11:36 does android sdk support its usage May 01 06:11:52 by giving its build file like ant May 01 06:12:44 hello, I am passing a spinner an array list of objects by using the arrayadapter. each object has 2 fields, an ID and a Title. In my object class I have implemented the toString() method which returns the Title string. In my onItemSelected function however, is there anyway to access the ID? I am using parent.getSelectedItem().toString() however that only returns the Title May 01 06:12:53 maven is a build system. ant is a scripting language May 01 06:15:06 that explains, why maven is better than ant JakeWharton May 01 06:15:51 they're designed and used for different things. comparing them directly is a bit unfair May 01 06:16:47 I just use smali scripts and a host build of dalvik to build my projects May 01 06:17:39 ok May 01 06:18:55 or is there anyway for parent.getSelectedItem to return the object ? May 01 06:19:13 depends what parent is May 01 06:25:22 JakeWharton: hm current implmentation of the onItemSelected function, parent is of type AdapterView May 01 06:25:51 then if you want the object, call getItem on your adapter with the specified position May 01 06:28:33 hm eclipse is throwing an error when i do int foo = parent.getItemAtPosition(pos).object_id May 01 06:29:23 even though there is a object_id in my object May 01 06:30:06 parent != your adapter May 01 06:30:10 getItemAtPosition != getItem May 01 06:31:14 oh right, you mean on the adapter itself May 01 06:34:06 I was following some tutorial and they implemented the onItemSelected and onNothingSelected on another class, SpinnerActivity, then in the main class they were doing spinner.setOnItemsSelectedListener(new SpinnerActivity()); so I was wondering how to access it in the class May 01 06:48:17 thanks JakeWharton May 01 06:51:54 good morning, trying to implement gcm. registration is fine send message says ok, but i do not receive the message. onMessage is not triggered. what could be the problem? May 01 06:54:20 hmm, that's strange. i've exited my app, then the unregister should be triggered. but now i got a message... hmm weird May 01 06:58:42 i can keep the same registration id for app lifetime right? so i could only register once and then use this registration id? May 01 07:07:10 if i have an array of byte arrays(byte[1024][16] buffer) that I store received data in - I know that each byte array of data is exactly 16 bytes but I donw know how many arrays of data I receive. Is there any way to "stop" iterating the array after the last stored message in the array ? May 01 07:07:17 and does this make any sense at all ? May 01 07:24:57 I'm having a serious wtf moment... Crashing an S3 and RAZR by *installing*an*application* ... not running, just installing freezes them and then they go into a reboot cycle until properly, and completely reset. May 01 07:25:27 Has anyone had this problem before? The logcat shows only something about "data corruption" and then everything crashing down like dominos May 01 07:25:58 greymalkin: never seen that happen, but data corruption is never good May 01 07:26:50 I've git-bisected my way to the problem, but reverting the change did nothing (and it was a simple style change in a resource) May 01 07:27:13 it still hangs the phones May 01 07:27:52 and you're just seeing this on one device? May 01 07:30:32 what's the exact error message? May 01 07:31:38 and are you rooted and doing/did anything with root related to installing or uninstalling? like deleting the apk manually or anything? i've had users get weird behaviors when they delete an APK but leave the odex around May 01 07:34:57 one min... gotta look up the error message May 01 07:36:03 F : stack corruption detected: aborted May 01 07:36:21 interesting May 01 07:36:25 The phone is stock, unrooted, and I've had to factory reset a few times to get back to being able to reinstall. May 01 07:37:18 That's the RAZR. I haven't gone through the reset process on the S3 yet because I hadn't looked it up yet. May 01 07:38:49 the error message looks to be part of bionic, which is the android libc implementation. i'm betting that some native code in the package manager is failing May 01 07:39:03 there might be another related error message in there May 01 07:39:17 Then it goes into a death spiral where all services spontaneously shut down, the ViewRootImpl complains for a few tens of exceptions about no longer being able to contact the rendering service (which died) and then finally: May 01 07:39:32 Zygote : Exit zygote because system server (473) has terminated May 01 07:40:41 can you share the APK? i'm curious to try it May 01 07:41:26 Nope, the only other messages are X service died, the exceptions from ViewRootImpl, and some InputEventReceiver messages about closed input channels. May 01 07:42:01 I would love to, but my client would have to sign off on it. I'm completely boggled by this, and honestly didn't believe him when he said it was happening. May 01 07:42:09 Especially since the application doesn't even run. May 01 07:42:26 And it doesn't matter if it's loaded by attachment to email (his way) or directly through adb. May 01 07:42:51 yeah if it was just one device i'd suspect that device was just messed up, maybe failing nand memory if the factory reset didn't help. but two devices is quite curious May 01 07:43:28 Five. Two RAZRs, two S3s and one unidentified. May 01 07:44:14 i'd bet it's something in the AndroidManifest.xml, or something referenced from there May 01 07:44:45 as i don't think the package manager would read much else. but i suppose it's possible it has trouble even parsing the apk May 01 07:48:14 how can I make "beta" version of my app in play store? afaik, I have to change my package name in manifest, by then, I'll have to change all pakacge names in all .java files and also in directories... which is pain in ass. Is there some easier way? May 01 07:49:17 you can make your app into a library project and have two projects that use the library, one your main app and one the beta May 01 07:49:22 still a pain though May 01 07:49:34 kevinb: If interested, this *appears* to be the change that did it: http://pastebin.com/JmZQHQQw May 01 07:50:06 greymalkin: parent="... line should be parent="@style/.. May 01 07:51:09 Pitel_IPEX: Note that you don't need to have the java files in the same package; You can either fully specify them if they're above, or use the '.' prefix if they are deeper. May 01 07:51:24 (when referencing them in the manifest, that is) May 01 07:51:43 really weird if that is the missing @style is the issue, and surprising it hasn't been run into and fixed before. but the xml is converted into binary and at least partially parsed in native code May 01 07:51:55 kevinb: Ah, good catch. Although I reverted this commit, and it's still killing it, so I'm not 100% sure that's the issue. May 01 07:52:50 Pitel_IPEX: personally i do betas by distributing outside the play store (and keep my same package name). but with google's new policy of not allowing apps installed from the play store to install updates outside of the play store the setup isn't ideal May 01 07:53:12 Oh, and the application installs flawlessly on all the GNex we've tried, too. May 01 07:54:00 are the nexuses 4.2 and the other devices 4.0/4.1 ? May 01 07:54:02 kevinb: well, I was going to just send .apk to my colleagues and friends via email, but it would be more easier for them to install it for play store. May 01 07:54:39 s/for/from/ May 01 07:54:43 Yeah, that also lends itself to a bionic error. May 01 08:04:45 im trying to build my project from command line, seems to go ok but i dont see any apk in bin/ anyone? May 01 08:05:18 kevinb: it would be cool if Play had a beta channel; users could select stable (default)/ dev. Stable allowed ratings / reviews, dev only allows feedback May 01 08:05:29 and some facility for a/b testing too May 01 08:05:41 Gaz`: What are you running in command line? May 01 08:05:49 "ant" May 01 08:05:52 ah. May 01 08:05:58 try 'ant debug' May 01 08:06:00 Should be 'ant debug' or 'ant release' May 01 08:06:04 hmm now i see an error google-play-services_lib\build.xml May 01 08:08:03 g00s: yeah. my current setup, which i really liked, has a Settings > Check for updates thing that shows a dialog with the most recent changelog and a button to go to the play store if a stable update is needed, and a menu where the user can opt-in to betas. users that go looking for it, or read about it, can get the betas easily, but it's not really asking for people not interested in it to find it. and then i get enough data from beta May 01 08:08:03 market releases are rather stable (usually) May 01 08:08:06 slightly closer, damn ant is a pain - Target "nodeps" does not exist in the project "library". May 01 08:08:21 GAH! May 01 08:08:48 kevinb: cool ! May 01 08:09:00 but now i need to figure out what won't violate the new Play rules. like if a user manually side loads a beta APK once but then later updates from the Play Store, can i still automatically install beta updates for them? i wish facebook didn't mess up beta updates for everyone. May 01 08:09:26 anyone seen this one "arget "nodeps" does not exist in the project "library"." ? May 01 08:09:48 Nope... removing that commit entirely still didn't fix the problem... May 01 08:10:43 greymalkin: what if you go back to the commit before that one, can you compile a new working APK? May 01 08:11:08 Every time and without a hitch. May 01 08:11:53 what if you fix that commit so it has @style/ and then compile an APK (no commits after that one)? if that works then maybe you made the same mistake somewhere else in a future commit May 01 08:12:54 Well, the future versions were all just version bumps and a change to a date constant; But I'll give that a try after I test my current working theory. May 01 08:13:02 (odd version name requested by client) May 01 08:14:38 god i hate developing May 01 08:15:04 aw May 01 08:15:10 Gaz`: Just a hunch, but I don't think you'll get much sympathy from this channel ;) May 01 08:15:46 hehe May 01 08:16:32 just trying to be able to build my app out with a .bat, as the client wants 2 versions, with diff packages May 01 08:17:27 Just wait until you have a client that wants to resell the app with different skins (and different packages)... that'll put hair on your brain. May 01 08:17:38 yeh thats what it is May 01 08:17:42 essentially 2 apps May 01 08:18:06 ive managed to get a red cross next to android dependencies in eclipse now May 01 08:18:07 :-x May 01 08:18:48 Gaz`: what the hell are you doing :) May 01 08:18:56 just trying to use ant May 01 08:18:58 (no god, i assume) May 01 08:19:01 *good May 01 08:19:01 but its rubbish May 01 08:19:06 I hope that you get paid for 1.5 app or more greymalkin :-P May 01 08:19:20 main issue is this nonsense Target "nodeps" does not exist in the project "library". May 01 08:19:47 does your project use a library project? May 01 08:19:52 yes May 01 08:20:16 make sure the ant files are up to date in that project May 01 08:20:21 quite a few if i try with "nodeps" argument then it will show me compile errors everywhere ive used them May 01 08:20:23 (android update project --path /path/to/library) May 01 08:20:31 yeh i did that seemed to go ok May 01 08:21:19 Looney: T&M ... worked out to about 3-4 apps charge due to the first reskinning took nearly as long as the app... then the others got progressively smoother. May 01 08:22:39 hope that you weren't underpaid like most freelancers are May 01 08:23:24 I hope so too :) May 01 08:23:31 i remember being super proud of my ant stuff in j2me ;) May 01 08:23:57 kevinb: No joy. Adding the @style prefix did nothing to improve the Droid's mood. May 01 08:25:02 (nor did normalizing the version number) May 01 08:25:13 greymalkin: weird. sounds like the problem is elsewhere and for whatever reason that commit is just triggering it. maybe try deleting everything from the manifest and adding things back one by one May 01 08:28:29 I'm going to go back to the last working commit and try just starting fresh from that... May 01 08:33:20 getting myself into deep water here too i updated all the lib projects my app relies on but now eclipse cant compile my program May 01 08:36:09 p_l|omoikane: do you use ghostery / disconnect.me / DNTMe ? May 01 08:41:18 Gaz`: i usually dont mix ant/eclipse. I use eclipse to beuild everything, and then for a release, go to the command line, clean , and build with ant HAVING CLOSED ECLIPSE May 01 08:41:45 eclipse will notice shit changing and do weird things sometimes May 01 08:41:57 (when its not the one who is building) May 01 08:44:52 Ahah! I guess I just got lucky a few times on that "last good commit"... it finally crashed it, without changes. May 01 08:47:00 It's getting so that I can do a factory reset on this thing with my eyes closed. May 01 08:51:03 I guess I posted it in the wrong channel at first. Here we go again: I don't know if it's more of an Eclipse question, or android, but it's atleast related to development. I'm trying to add a new Fullscreen Activity, but it says it requires atleast version 4 of the SDK, and that the current version is 1. When I check the manifest, it's set to min 16, and target 16? May 01 08:53:43 g00s ah i see May 01 08:53:50 makes sense.. it just did a debug build from cli May 01 08:53:53 im stunned :) May 01 08:54:25 strangely if i try release it has compile errors May 01 08:54:36 Multiply: maybe check your project.properties May 01 08:54:38 file May 01 08:54:46 hi all, I want to create an application that runs in the background, what is the best way to do that, is it called a persistent service? May 01 08:55:17 hmm now it stopped workign again i think ur right about eclipse g00s May 01 09:02:31 g00s, my project.properties only include the "target" definition. Should I include a min here aswell? May 01 09:02:43 no May 01 09:03:42 g00s, It says android-17 here, tho. May 01 09:05:09 hm, not sure then May 01 09:05:20 g00s, If I check the manifest xml, it clearly stats min, and target SDK 16. May 01 09:05:25 states* May 01 09:05:34 Well crap. I've gone all the way back to the last stable release and it's still doing it. May 01 09:05:52 I think there's been a change in the SDK/NDK that has broken my app. May 01 09:07:19 hmm my sliding menu is now complaining it cant find support lib, but thats in abs surely, unless they dont link properly from cli? May 01 09:08:41 Gaz`: all that shit works, recheck everything … and then do it again. May 01 09:09:06 so u basically need to update all your lib projects at command line yeh? then try build your main one May 01 09:09:52 i was never great with ant build files May 01 09:10:56 does anyone have experience with services? May 01 09:11:03 and writing a service? May 01 09:11:44 g00s, It seems like an eclipse restart sorted it out. Odd. May 01 09:13:08 g00s do u know if u need to refernece the support lib somewhere May 01 09:13:15 its complaining it cant find it May 01 09:13:16 ;/ May 01 09:13:23 Gaz`: damn it Gaz` May 01 09:13:32 yeh sorry man May 01 09:13:45 this is like develop 101 May 01 09:13:47 this last 6 weeks has been hell May 01 09:13:53 learn the fucking build system ! May 01 09:13:59 well these tools could just work :) May 01 09:14:05 then it would be fine, well annoying May 01 09:18:53 hey, any idea why the first item of my spinner does not react to onItemSelected ? May 01 09:20:09 everything other than my first item in my spinner list does not seem to react May 01 09:21:32 learn the build system heh May 01 09:26:13 Is it possible to have multitouch through MotionView with webview? May 01 09:27:38 Gaz`: :) May 01 09:31:41 think i got it working! takes ages :) May 01 09:31:54 now to add some audible response heh May 01 09:33:31 never work for the dutch is all i can say May 01 09:33:49 11+ hours every day now for the last 6 weeks running including weekends May 01 09:41:34 does the list view only support 1 sub item for each main item? May 01 09:41:47 hey guys. i set my app to stop working if(year!=2013 || month>=4). what is the way for client to bypass this? if any? May 01 09:42:45 change system clock? May 01 09:43:12 but client do not know why the app suddenly stopped working May 01 09:43:25 someone might figure it out May 01 09:43:29 unzip, decompile, remove this line, recompile. May 01 09:43:57 also changing whole system clock will affect other app in phone? May 01 09:43:58 Proguard May 01 09:44:14 hokkaido, you mean we can look into code inside .apk? May 01 09:44:27 basilisk, whats that? May 01 09:45:25 code obfuscating tool to prevent people snooping into and modifying your code. May 01 09:48:02 Hello May 01 09:48:06 Are there Android Apps developer willing and available to spend their 2 minutes talking about the tools you use to detect and solve bugs during development? I am looking for analysis tools specific for Android and any suggestion would be appreciated! Thanks!! May 01 09:49:47 i dont have bugs, so i can't help :D May 01 09:50:18 i'm not kidding; i only had one bug ever, that was an onClick listener that wasn't hooked up in an obscure activity XD May 01 09:53:51 Nobody here uses tools like FindBugs or similar? May 01 09:54:43 i use find bugs and checkstyle on most stuff May 01 09:55:49 lol g00s May 01 09:55:49 i also turned on a load of extra warning in the eclipse settings May 01 09:56:05 Gaz`: i'm completely serious ! :D May 01 09:56:09 hokkaido, Zharf basilisk i just copy pasted the .apk in /bin and gave it to client. is that the right way or not? May 01 09:56:14 basilisk thats pretty safe enough prob, presume its for when they dont pay :) May 01 09:56:49 but, i go slowly and review my code carefully along with my rubber duck May 01 09:57:37 i believe figuring out ant build files is tougher than java May 01 09:57:57 Gaz`: maybe the gradle tool will be announced at i/o May 01 09:58:24 there is a session on whats new with the build tools May 01 09:58:29 nice May 01 09:58:30 Gaz`: tell me about it. I have setting up maven for the last 48 hours May 01 09:58:39 i just want a retards gui for building out May 01 09:58:57 Gaz`: thats eclipse :/ May 01 09:59:10 hehe yeh not in this case tho May 01 09:59:18 is listview suitable for adding multiple subitems to an item? May 01 09:59:43 im trying to able to pass in a name for apk and a package to make it into, altho these things usually take a few hrs to figure out the first time May 01 09:59:55 basilisk, what are you struggling with? May 01 10:00:28 alex_PP: right now, stuck on the manifest-update goal May 01 10:00:46 m2e-android doesn't recognise it May 01 10:01:30 i gave up with m2e for builds May 01 10:01:33 or is that for expandable list view May 01 10:01:40 oh, just to clarify, its all fine and dandy from the command line. can't get it to work from eclipse though May 01 10:01:54 i just use it for dependencies and build on the command line May 01 10:02:28 alex_PP: and in eclipse you just have a normal non-maven android project? May 01 10:02:58 it's mavenised, but run now and debug never work May 01 10:03:28 so every time you need to run, you switch to the command line? May 01 10:03:32 yeah May 01 10:03:45 gah, there must be a better way! May 01 10:04:00 but i do that for a lot of stuff, so it doesn't bother me May 01 10:04:38 don't forget, your debug builds don't really need all the manifest stuff updating like a realse build May 01 10:04:54 you could just ignore it May 01 10:05:17 thank you alex_PP May 01 10:05:17 yeah. I am just checking out the possibilities with maven. first time working with it May 01 10:05:23 the android api feels overwhelming :( May 01 10:06:22 alex_PP does it detect all of the common bugs that may happen during development? May 01 10:07:42 erm May 01 10:07:51 not sure what a common bug is May 01 10:08:00 it warns you when you do silly things May 01 10:08:26 common bugs...what bugs do you care about during development? May 01 10:09:18 erm May 01 10:09:37 all of them? what bugs do you care about? May 01 10:10:53 what is erm? a common bug could be a null pointer exception May 01 10:11:47 erm is me thinking May 01 10:12:09 lol ok May 01 10:18:04 is decompiling so easy that any non it person can do it? May 01 10:18:17 by reading on google etc May 01 10:19:48 Abhijit: It might be. They'll have a lot of problems actually doing anything with the decompiled program though May 01 10:20:14 ok. some relief for me May 01 10:20:36 fighting piracy is a big waste of time May 01 10:20:43 does InputStream.read() ever timeout ? May 01 10:22:22 yeah May 01 10:22:27 if I start a service like this May 01 10:22:30 startService(new Intent(this, GPSLoggerBackgroundService.class)); May 01 10:22:42 How can I stop it? May 01 10:23:01 should this work:+ May 01 10:23:03 stopService(new Intent(this, GPSLoggerBackgroundService.class)); May 01 10:23:15 or do I have to keep the intent? May 01 10:25:00 damn i have to send the korean romhacker "guru" a test apk :( May 01 10:25:10 i hate fucked up firmwares May 01 10:25:55 is listview suitable for adding multiple subitems to an item? May 01 10:26:05 yes May 01 10:26:10 you have to use a custom adapter May 01 10:26:13 anyone knows? I can't seem to find anything about adding multiple subitems May 01 10:26:14 oh right May 01 10:26:15 and a custom layout May 01 10:26:24 I see May 01 10:26:28 and then you can access the IDs in the layout with findViewByID May 01 10:26:43 it's simple but you have to write some code May 01 10:26:57 indeed, sounds like a lot of code May 01 10:28:19 welcome to java May 01 10:28:44 things like androidannotations save a lot of boilerplate code, but still May 01 10:29:05 i wonder if expandable list view will serve the same purpose May 01 10:29:48 ok seems to work stopping my service. the onDestroy method was not implemented correctly May 01 10:30:17 does InputStream.read() ever timeout and if not, how do I make sure that it does? May 01 10:58:35 wow expandable list view is so complicated May 01 10:58:38 I'm trying to develop a truly fullscreen app, for a few tablets around the company, that needs to only have this app open. I'm using SystemUiHider, with the flag SYSTEM_UI_FLAG_HIDE_NAVIGATION - It says the limitation is when there's the least user interaction, they pop back. Can I disable this behavior? May 01 10:59:01 Is it possible to change it to a swipe, or deactivate it altogether? May 01 11:04:23 multiply> no May 01 11:04:41 Damn. No other option to disable the soft buttons? May 01 11:05:04 depending on what you are using as base, you may be able to disable the soft buttons (system wide) by changing something in the build.prop May 01 11:05:54 I forget what exactly it was, but I think it was some emulator related property May 01 11:06:28 due note that if you're using an N7 or N10 or something as base, you can fairly easily make a custom ROM without the normal home app, and install your app as the home app May 01 11:06:56 that's what I do when building custom solutions ... May 01 11:12:20 Chainfire, I might have to look into that. May 01 11:12:48 Chainfire, for now I suppose I have to go with the fullscreen + softbuttons look. May 01 11:27:06 Hi! Are there Android Apps developer willing and available to spend their 2 minutes talking about the tools you use to detect and solve bugs during development? I am looking for analysis tools specific for Android and any suggestion would be appreciated! Thanks!! May 01 11:30:19 subtask: i wrote a generic exception handler May 01 11:30:28 and write the stack trace to a file May 01 11:30:29 What bugs? ;-) Log and Logcat... May 01 11:30:44 yeah i did this because logcat sucked my balls May 01 11:33:08 subtask: somethink like that - but i DONT suggest using this project - http://code.google.com/p/android-remote-stacktrace/http://code.google.com/p/android-remote-stacktrace May 01 11:33:11 sry May 01 11:33:12 http://code.google.com/p/android-remote-stacktrace/ May 01 11:38:12 What are the most common bugs you experienced during android app development? May 01 11:38:38 im trying to use aapt to adjust a package in my build xml but im getting this error - Missing attribute libraryResFolderPathRefid May 01 11:38:46 subtask: there is no answer to that question May 01 11:39:16 Like NullPointerException or OutOfMemory error? May 01 11:39:27 subtask: like "No answer" May 01 11:40:06 so I wonder if you can suggest me some tools that may detect this kind of errors just looking at the source code May 01 11:40:44 subtask: there is no generic solution to NullPointerRef errors - so the probability in running into an error is poinntless May 01 11:41:23 im happy when i get a null pointer, not happy when i get OOM May 01 11:41:35 Gaz`: yes ;) May 01 11:41:47 OOMs are not easy to solve May 01 11:42:04 subtask: just lern to code ;) that's the best solution May 01 11:42:40 subtask: Use assertions/error checking, and tests for complex stuff, and the code will scream at you when it does not behave. May 01 11:43:30 you can use unittests May 01 11:47:39 no one here uses tools like findbugs? May 01 11:48:23 there is android lint May 01 11:48:30 the most useless tool ever May 01 11:48:37 it claims errors where there are none May 01 11:51:57 is there a way to check the package name of an app installed? (non programatically) May 01 11:52:25 subtask id like a good memory analyser, i cant find anty clues in MAT May 01 11:52:30 any* May 01 11:53:11 saw something so promising called "little eye" but it just falls short of being useful for finding leaks imho May 01 11:53:16 what is MAT? May 01 11:53:41 for analysing mem dumps from ddms May 01 11:53:45 try it, its kinda cool May 01 11:54:12 but u need a phd in MAT to find anything useful May 01 11:54:15 the memory analyzer in eclipse? May 01 11:54:30 its a plugin for lookign at the hprof files May 01 11:54:33 graphically May 01 11:55:08 I'm new to google maps: do I need API for bussiness if I want to enable map in debugging mode and what API_KEY do I need to use in my Manifest file for SupportMapFragment May 01 11:55:28 thank you Gaz` May 01 12:00:55 hmm why does my app say its using 7 meg on phone, even tho apk is 3 meg? uncompressed or something? May 01 12:01:23 scloune search for google maps api key theres a site they have - i will be looking into that soon too as im moving to release (within hr) May 01 12:01:44 Gaz`: the database is also added to the used space May 01 12:02:23 yeh but nothing has beeen done its a fresh install May 01 12:03:53 Hah windows is complaining about memory! im using 14 gigs ;/ May 01 12:05:00 Gaz`: the secret formula - "RAM of your old system" * current Windows Version number May 01 12:24:08 hello, I get his error when trying to install ADT for eclipse under ubuntu: May 01 12:24:25 annot complete the install because one or more required items could not be found. May 01 12:24:27 Software being installed: Android Native Development Tools 21.1.0.v201302060044-569685 May 01 12:25:10 hmm seems to take way longer to build from cli than eclipse May 01 12:25:13 hey Unknown0BC May 01 12:25:31 hello Gaz` hows the gassy ? May 01 12:25:38 Long tome to see... May 01 12:25:39 not bad :) see ur on android now May 01 12:25:51 i still hang in #j2me - idle mostly May 01 12:25:52 :) May 01 12:26:13 sounds like u need to look up the dependencies May 01 12:26:23 and install everything :) ubuntu livin! May 01 12:26:27 Gaz`, yeah i'm just starting with Android now... May 01 12:26:27 :) May 01 12:26:33 good luck May 01 12:26:35 lol May 01 12:26:39 can anyone recommend how to get started with maven for android projects? May 01 12:29:30 Arent a lot of people developing under Ubuntu ? May 01 12:31:38 not me May 01 12:32:12 drudge: I am getting started myself May 01 12:32:41 so far, I have android-maven-plugin installed and I can build the projects from the command line May 01 12:32:51 integration with eclipse is a pain though May 01 12:33:37 my program fails at else clause, someone help please http://pastebin.com/g46LaP4W May 01 12:34:22 xperiaa: when you say "fails" - presumably you mean it makes your phone explode and turns your dog into a goldfish? May 01 12:35:10 just program crash :P, need logcat too? May 01 12:35:43 yes, of course May 01 12:35:45 basilisk: i'm using intellij idea May 01 12:36:15 I hear configuring maven on intellij is a bigger pain May 01 12:36:33 logcat: http://pastebin.com/hyrXsZp0 May 01 12:37:36 basilisk: i'm trying to follow http://www.ashokgelal.com/2012/12/setting-up-intellij-idea-12-with-maven-actionbarsherlock-roboelectric-androidannotations/ May 01 12:38:40 drudge: how has your experience been so far? May 01 12:39:56 drudge: you should read http://books.sonatype.com/mvnref-book/reference/android-dev.html May 01 12:41:05 basilisk: thanks, this might help. the part i'm getting stuck on is getting the stuff into the local repo to reference from my project May 01 12:41:21 basilisk: i'm trying to make managing deps easy for our team because right now, not so much May 01 12:43:10 drudge: I haven't tried that yet May 01 12:47:25 can I set tahoma font on one place and use it in whole app? May 01 12:53:27 scloune: my solution for this is to create a custom textview and use it everywhere May 01 12:56:27 anyone know how to change the apps name at build time, the text under the icon? May 01 12:56:50 trying to pass it into ant May 01 12:57:12 Gaz`: it's in the manifest, it's the label of the *activity* May 01 12:57:33 yeh but i need to be able to pass a new one in from commandline May 01 12:58:33 basalisk thanks May 01 12:59:47 jesus wepty May 01 13:00:17 aapt should handle this....? May 01 13:00:19 but doesnt May 01 13:04:42 Gaz`: you want different names based on production/development environment? May 01 13:14:11 Gaz`, which IDE are you using for Android development ? May 01 13:20:34 { System.out.println("test"); } May 01 13:45:31 Morning all. May 01 13:45:37 Morning ;-) May 01 13:46:22 I really need some help with an Android/Google Play problem ... May 01 13:47:14 My App needs to supply it's users with one unique licence/serial code from our own database. May 01 13:48:20 So as a customer you basicly buy the App + License code (for the data inside). May 01 13:49:02 But since an app can't check which user actually bought the app ... is this even possible? May 01 13:50:12 anyone here know what I'm talking about? May 01 13:52:39 Google Licencing only lets you check wether the user actually payed for the App ... but doesn't seem to give you a unique user ID/token May 01 13:53:04 so there's no way for me to check the match of user and licence code May 01 13:59:25 use a login to your service? May 01 14:00:10 msg NickServ identify May 01 14:00:17 yeah that would be one sollution May 01 14:00:57 p_l|omoikane : but it would have to be mandatory then ... May 01 14:01:12 is it possible to make scrollable edittext box? May 01 14:05:25 if I want to run some bash script every time phone boots, where should I put it ? is there something like /etc/rc.d/rc.local or something ? is there something autoloaded in /system/etc directory or in other places ? May 01 14:05:31 p_l|omoikane .. and still .. if someone re-installs the app, he could login to a new account and get a new code .. for the same purpose May 01 14:05:45 I'm trying to trackdown why my onItemClickListener isn't working for my list view May 01 14:06:25 tried setting the rows to have focusable = true and without May 01 14:07:40 Sirolf: in general, those are the cases I prefer to have external payment method. Though I guess you could use in-app payments May 01 14:09:41 p_l|omoikane: yes I've thought about external payment methods .. but is really allowed on Android? May 01 14:10:59 in other words... is it allowed to submit a free app in which you login to buy data from our own servers ? May 01 14:11:44 and this would not be very customer friendly if you have to type in your payment credentials May 01 14:14:04 In SearchView, Is there a way to disable the overlay that displays the words entered to the SearchView field? May 01 14:14:30 I just whish google play market would have an option to give the developer a unique token for every purchase.. May 01 14:16:01 eglSurfaceAttrib not implemented ? do i need to? May 01 14:16:11 i am not using it May 01 14:21:45 what is the process called something like com.*.vending in android 2.2.1 ? I killed a few processes including that one and all keys including "power" stopped working and dark screen, I had to unplug battery to make it work again, in that situation is there some combination of keys to power phone off or reboot it in case of emergency when everything stopps working ? May 01 14:22:28 Sirolf: you could use in-app payments for license to access the data May 01 14:22:41 then you can generate account-associated id easily May 01 14:23:12 hmm May 01 14:23:18 yeah I'm looking into that now .. May 01 14:24:55 p_l|omoikane: do you think I could let ppl pay for the app ... and then automaticly access the in-app payment system which "sells" one-time free content so I can use the account-associated id ? May 01 14:25:47 Sirolf: I don't think so, but make the app "free" but require in-app purchase for the data May 01 14:26:05 I assume it's some kind of "client" for externally-downloaded paid database? May 01 14:26:22 something like that May 01 14:26:38 it's a navigation app which uses licenced charts May 01 14:26:56 but is it bad for files on the phone to unplug battery ? when on regular PC power turned off data on filesystem can be damaged May 01 14:27:14 and basicly the customer buys the license to the chart data so he will be able to use it on our PC software as well May 01 14:27:56 he'll have to Login to our database for that ofcourse May 01 14:28:20 Sirolf: ooooh, aviation? :D May 01 14:28:30 marine May 01 14:28:31 :-) May 01 14:28:34 oh, poo May 01 14:28:38 ;) May 01 14:28:40 lol May 01 14:28:47 maybe someday aviation too ;-) lol May 01 14:29:03 so at least you seem to understand my challange now right? May 01 14:29:07 yeah May 01 14:30:04 Sirolf: I'd go with in-app purchase and the app letting you display the license key, *or* go with "purchase license for charts on our website" May 01 14:30:07 I think you can use any form of authentication as long as it doesn't download or modify an apk May 01 14:30:20 googles new tos for the marketplace May 01 14:30:54 you can use external payment too, as long as it's not for stuff delivered through Play Store (so no external payments for the app itself, but for the data it downloads from internet? sure) May 01 14:31:04 p_l|omoikane: yeah ppl can already puchase the charts (codes for it) on our website ... May 01 14:31:19 the problem lies with ppl buying the app and supplying them with a new code :-) May 01 14:31:33 Well you could use google checkout May 01 14:31:43 I'm not sure how that might work though May 01 14:31:45 hmm May 01 14:32:03 google checkout doesn't deliver customer ID I think May 01 14:32:41 I know the in-app purchase is probably the way to go on the long run May 01 14:33:08 but for our first apps we'd like to release a series of dedicated chart areas May 01 14:33:33 so by buying the app you buy the chart ... and only that chart... make it very simple and light and cheap May 01 14:33:40 but I guess it's not that simple ;-) May 01 14:35:02 Sirolf: have them input the key they already own? May 01 14:35:16 basically, make the existing payment system work for the app? May 01 14:36:34 but then people may have to enter their payment info in our app May 01 14:36:59 and it would have to be securely stored in our servers or something May 01 14:37:08 that's something the big companies do May 01 14:37:23 like Amazon, EA (Origin) ... etc. May 01 14:37:46 yeah, welcome to the hell that is getting that stuff squared :) May 01 14:37:59 hehehe yeah I know May 01 14:38:13 the beauty about the play store is that googles handles that part for you :-) May 01 14:38:18 costs 30% tho May 01 14:39:07 maybe I'll look for another 3rd party who might be able to handle a secure payment system for us May 01 14:39:27 which is no trivial task May 01 14:39:48 monsti what do you mean? May 01 14:39:50 e.g. i won't enter any creditcard information into my cell phone! May 01 14:39:59 indeed! May 01 14:39:59 ;-) May 01 14:40:20 well .. in your google account you will right? May 01 14:40:20 so ;) how do i pay instead? May 01 14:40:23 paypal May 01 14:40:25 playstore May 01 14:40:30 yeah May 01 14:40:31 anything i forgot? xDDD May 01 14:40:53 the trick is - do your payment outside of your app May 01 14:40:56 how do you pay playstore? May 01 14:40:59 that's what we do May 01 14:41:05 is it possible to make scrollable edittext box? May 01 14:41:18 how do you do that monsti? May 01 14:41:42 Sirolf: we have an enterprise application - the app is only a very small part May 01 14:41:43 through a normal webshop? May 01 14:41:52 yes that's one way May 01 14:42:04 you "sell" the ID outside of the playstore May 01 14:42:11 but ... you have to deal with money, too May 01 14:42:23 so paypal or creditcards will be an option May 01 14:42:26 fcourse ... but what else if not by a webshop? May 01 14:44:21 you can have in-app purchases with play May 01 14:44:34 yeah but that's not the question May 01 14:44:56 well, sorry. What was the question? May 01 14:44:59 what do YOU use then monsti? May 01 14:45:02 Sirolf is not willing to share 30% with google May 01 14:45:06 oh, I see May 01 14:45:11 no it's not about the money monsti May 01 14:45:13 is it possible for onBackPressed to use if and else clauses? May 01 14:45:15 it's about cross platform May 01 14:45:45 well it depends on your buisness model May 01 14:45:48 yeah, you can sell keys May 01 14:46:03 e.g. whatsapp sells for one $ - but to millions of users May 01 14:46:16 we sell for much more but for only 20 users May 01 14:46:53 I remember TBBT theory episode, heh May 01 14:47:07 so you can do some maths and try calculate where's a gain of developing your own payment May 01 14:47:22 fcourse May 01 14:47:34 but how would one sell keys through play? May 01 14:47:46 you sell a user account May 01 14:47:55 a user/passwort May 01 14:48:08 hmm May 01 14:48:13 make this free - and the user can reg via the app May 01 14:48:31 and on your website (maybe a cell phone version, too) there is the money handling May 01 14:48:40 yeah okay May 01 14:48:47 but that's not very user friendly right? May 01 14:49:14 well it's better then "you have to pay $5 before you can see what's going on" May 01 14:49:49 like with in-app purchase you mean? May 01 14:50:16 hmm May 01 14:50:25 that name has a "meaning" in terms of google playstore May 01 14:50:47 I need back button to exit the app when LED is on (then back button has to turn off the LED and exit) and when LED is off (then back button has to check if the led is already off). How do i achieve this? May 01 14:51:06 i got the LED on and back to work May 01 14:51:12 but when its off and back not May 01 14:51:24 androidman ... just override onBackPressed() in your activity May 01 14:51:54 dont forget to call super.onBackPressed() somewhere May 01 14:52:50 Sirolf: do some calculations - maybe a version 1.0 is worth sharing the money with google/apple/microsoft May 01 14:53:15 Sirolf: you own payment/website and communication framework is a major project May 01 14:53:44 we won't sell our app in playstore (!) May 01 14:54:03 monsti: yes ... version one will be with dedicated data to the app ... next version will be able to load all kinds of data ... an outside-play payment method will probably be very interesting then May 01 14:54:38 we already have it running for PC ... May 01 15:06:05 anyway ... thank you monsti and p_l|omoikane for helping me ;-) May 01 15:06:35 I'm a glassman May 01 15:07:29 mikedg: did you get the hardware or the money or both? May 01 15:07:37 hardware May 01 15:29:19 is using the Singelton pattern for db access considerd a good practice? May 01 15:29:26 SIngleton* May 01 15:30:35 if there are no background threads - yes May 01 15:30:48 make sure that you pass the context as parameter May 01 15:33:28 How can i make an EditText set as readonly? May 01 15:36:19 then it would be an "Edit"Text May 01 15:36:20 lol May 01 15:37:25 use a TextView? May 01 15:37:30 superlinux-hp: set enabled to false May 01 15:39:05 mikedg, my design is about converting between two coordinate systems. May 01 15:40:04 mikedg, so i don't want to bloat it . and also get lost. May 01 15:40:20 ok then.. i'll see May 01 15:41:39 monsti: ah, thanks! May 01 16:08:03 after doing getResources().getConfiguration().fontScale = 2, what would I do to effect those changes? May 01 16:14:13 dangit i always forget this one. how do you make a listview overflow scroll the whole activity and not act like a nested frame with its own scrollbar? May 01 16:26:35 Is there any way to avoid having the bitmap of an ImageView briefly disappear when applying property animations to the view…e.g. scaling? May 01 16:34:40 LuxuryMode: best I could come up with to do that is it set it invisible until I start the animation. May 01 16:35:03 nope, I misread your question. May 01 16:35:05 set the entire view to invisible? May 01 16:35:13 haha yea no May 01 16:45:58 What would be the best way of making all the cells of a TableLayout to be exactly 100dp x 100dp programmatically. May 01 16:57:39 hi, the text of an item of a spinner does not wrap. what should i do? the "\n" is not working. May 01 17:29:08 Hi! Are there Android Apps developer willing and available to spend their 2 minutes talking about the tools you use to detect and solve bugs during development? I am looking for analysis tools specific for Android and any suggestion would be appreciated! Thanks!! May 01 17:34:44 subtask, I haven't needed anything more than logcat. May 01 17:41:51 What layout can I use to create a 2d table/grid. With set width and height. Then be able to navigate it with a custom two way scrolling. May 01 17:42:25 zettazete: have you looked at how the gallery app does photo panning? May 01 17:46:36 codebutler, I suppose I phrased my question wrong. (Which your answer may lead me somewhere else.) I guess, I'm looking for a layout which has set height and width "cells". The grid is a good example, but it does not play well with my TwoDScrollView script. May 01 17:47:22 are you trying to do view recycling etc, or just a fixed grid that you load once? May 01 17:48:22 I have a fixed grid. May 01 17:48:53 ok, if you let that thing measure its dimensions, you should be able to just place it in some sort of pannable container May 01 17:50:45 Ah, which sounds like I'm going to be making my own layout type. May 01 17:51:13 the layout shouldn't matter. a grid view with WRAP_CONTENT for w/h should work fine? May 01 17:51:44 Hmm, let me experiment with it some more. May 01 17:53:22 sorry about a repeat question. Is there a "good" way to store users keys/credentials securely on a device? Aim is to secure beyond basic android/permissions-based security; but not involve user entering yet another random password to "unlock" the app. I'm currently doing some underhanded skullduggery with the keystore daemon, ideas for a better approach? May 01 17:54:27 ActionBarSherlock May 01 17:58:48 hooray May 01 17:59:01 i fixed the issue with going over the method limit on our debug builds May 01 17:59:35 i just modified adt to use a new build property called proguard.config.debug to specify a debug proguard config, and it just runs proguard then May 01 18:00:08 then just made a debug proguard config that only performs shrinking, no obfuscating or optimizing May 01 18:03:13 also, as a result, for the first time in months we can run our debug builds on gingerbread and froyo devices May 01 18:03:52 what is this behemoth of an app? May 01 18:04:02 it's not a behemoth May 01 18:04:06 it's the libraries we have May 01 18:04:11 they have all this extra cruft in them May 01 18:04:22 proguard strips over 3000 classes May 01 18:05:21 hi May 01 18:05:28 anyone using scala on android? May 01 18:10:03 dangit i always forget this one. how do you make a listview overflow scroll the whole activity and not act like a nested frame with its own scrollbar? May 01 18:10:44 speakingcode-wor: uh... May 01 18:10:58 evanc: ? May 01 18:11:14 what on earth are you asking? Do you have an example? May 01 18:11:27 that sounds like something you most definitely should not be doing May 01 18:11:41 activity.. has a layout. with a listview in it, with more contents than can fit on the screen... i.e. overlfow May 01 18:12:00 by 'defualt' the listview itself has a scroll bar, but not the whole view of the activity May 01 18:12:10 i.e. it acts like a nested frame May 01 18:12:16 you probably want to add header/footer views to the listview May 01 18:12:29 i want it to not do that. i want the whole activity to scroll, not the listview contents independently May 01 18:12:59 is there no way to just specify overflow behavior? May 01 18:13:04 ListView is only going to scroll its content.. May 01 18:13:09 Like any view out there May 01 18:13:28 hey, when createing a new and if the explanation of desired behavior is insufficient for one's understanding, one may simply ask for clarification, no need to speculate or make assertions on the demeanor of the inquirer May 01 18:27:48 If you're doing it wrong, someone's gonna tell you May 01 18:28:10 hello dudes May 01 18:28:17 certainly, but i didn't say i'm doing anything, i asked a question about the ability to control a certain behavior May 01 18:28:46 so anyway, thanks SimonVT for your effort to understand and give input May 01 18:35:01 http://ncvisualbash.somee.com/?t=1&s=2&l=1&q=33101 May 01 18:36:58 I'm trying to create an AlertDialog but this line: AlertDialog.Builder adb=new AlertDialog.Builder(TabView.this); gives me an error "TabView cannot be resolved to a type". Does anyone have any suggestions on how to fix this? May 01 18:37:26 Fix your imports May 01 18:39:06 SimonVT: I tried import android.app.*; with no luck. I'm not sure what other package it would be under. May 01 18:40:15 Oh May 01 18:40:24 AlertDialog.Builder takes a Context as parameter May 01 18:40:32 Which is your Activity May 01 18:40:42 Oh, well that would do it then. May 01 18:40:45 Thanks. May 01 18:47:44 hello guys May 01 18:47:48 i have a problam :) May 01 18:48:03 certainly May 01 18:48:38 http://pastie.org/7749293 this if url is a local one like http://192.168.1.200/blah/blah it takes years to resolve May 01 18:48:50 in case there isnt a dns. is there a solution for this ? May 01 18:49:05 android 4.0.4? May 01 18:49:09 the only solution i found was to add a static dns record at mikrotik May 01 18:49:24 but this wasnt a real solution May 01 18:49:33 answer my question! May 01 18:49:38 me ? May 01 18:49:41 yeah ;) May 01 18:49:46 2.3 < May 01 18:49:51 2.3 + May 01 18:49:57 i mean i tested with 2.3 May 01 18:50:00 in 4.0.4 there was a dns resolverbug May 01 18:50:13 and what was the workaround? May 01 18:50:21 it's very likely that your problem can be fixed with some dns tuning to your local router May 01 18:50:32 i fixed it May 01 18:50:38 or maybe the webserver is trying to resolv the connected IP May 01 18:50:49 with local router config but not all clients have that capable routers May 01 18:50:55 and it sends a 192.x.x.x ip to the internet May 01 18:51:14 in 4.0.0 there was no solution :( May 01 18:51:17 yell it happens only with android and withhin my application May 01 18:51:24 well* May 01 18:51:28 the only thing that worked was to add an ip instead of a dns name May 01 18:51:34 browser seems to work and ipods dont have prb May 01 18:51:41 where monsti ? May 01 18:51:47 in 4.0.4 May 01 18:51:49 you use httpurlconnection ? May 01 18:51:56 in any dns lookup May 01 18:52:23 dns lookups are some nasty thing May 01 18:52:26 they are cached May 01 18:52:44 and there is a lot of voodoo happening behind the scenes May 01 18:53:08 this happened with what addresses? May 01 18:53:20 if it happens with all then how could you browse the internet? May 01 18:53:42 if it's cached - it's cached May 01 18:54:14 but some shitty configured routers might send a 192.x.y.z IP to the internet May 01 18:54:37 maybe that is what happened to me May 01 18:54:47 just imagine a $30 router from china - it might be the source of your evil May 01 18:54:57 and you can't do anything May 01 18:55:01 actually the one router was a TPLINK May 01 18:55:08 you can try using a terminal emulator May 01 18:55:11 the other is a mikrotik May 01 18:55:19 and do some nslookup/ping frm connsole May 01 18:55:22 the tplink didnt have a dns server May 01 18:55:26 yeah May 01 18:55:32 so tell the admin to fix this shit May 01 18:55:38 it was a router thats why maybe May 01 18:55:51 with mikrotik i added a dns record and seemed to work May 01 18:55:56 if this is the problem, you can easily reproduce it with any linux distro May 01 18:55:59 Hmm May 01 18:56:10 any ideia why this widget layout works http://pastie.org/7749395 but when I move the ImageView element to the end it just fails to work? it make no sense to me :-/ May 01 18:56:13 Any good ideas on how to change the background color of a RelativeLayoutwhile its pressed? May 01 18:56:18 i added 192.168.1.200 to resolve to 192.168.1.200 :P May 01 18:56:26 yeah ;) May 01 18:56:27 and it worked! May 01 18:56:38 so the problem is not in your code May 01 18:56:50 ah Parhs i added some button in my UI May 01 18:56:53 "Test Url" ;) May 01 18:57:01 heh May 01 18:57:02 and i just open the webbrowser of the device May 01 18:57:07 it's stupid May 01 18:57:11 but it works May 01 19:00:33 Brian|CS: I haven't tested specifically with a relativelayout; but have you tried using a selector based color? May 01 19:01:00 Brian|CS: you can use an onClickListener to any View May 01 19:01:16 monsti: But the onclick only fires when you release May 01 19:01:21 i want it to change while it's pressed too May 01 19:01:22 Brian|CS: you can also use a layered template as background - check the style of the default button May 01 19:01:36 kbs: I'm reading up on selector colors right now May 01 19:01:52 Brian|CS: ok then check the button style - a button has 4-5 simple png/9patch images May 01 19:02:18 Brian|CS: and the selector decides which one to show - you can also set the background of any layout as selector May 01 19:02:35 very easy May 01 19:03:12 Brian|CS: yep. Go that route. Basically, add a new xml file under res/color/my_background.xml In there, add your selector-state based colors; then set background for your relativelayout to @color/my_background, etc. May 01 19:03:15 monsti: I think that is what I was looking for. May 01 19:03:17 Thanks! May 01 19:03:25 hi May 01 19:04:00 Brian|CS: you can even do crazy things e.g. on press show a gradient/shape based background ;) May 01 19:04:02 i have 6 sec sound, what should i use to play? mediaplayer or soundpool? May 01 19:04:27 monsti: how is that crazy ? May 01 19:05:23 StingRay_: well it depends if you have done WPF before May 01 19:07:15 monsti: I'm getting weird crashes when I set my layout background to be a selector May 01 19:07:16 :S May 01 19:10:06 yeah fix it ;) May 01 19:10:13 try single steps May 01 19:10:23 an image ... a selector with one image ... May 01 19:14:46 i had to change the values in the selectors to defined colors May 01 19:14:47 then it sorta works May 01 19:14:49 but it doesnt change May 01 19:14:50 when I press May 01 19:18:21 check the button May 01 19:18:43 there are multiple states May 01 19:19:01 and of course the order of entries in the selector file matters May 01 19:19:14 Is there anyway to detect size changing is part of a dragging to avoid repeated calling of onSizeChanged May 01 19:21:57 Brian|CS: there's always the possibility that you need to explicitly toggle its clickable state. I think there's some sort of optimization in the hierarchy that prevents pressed state changes from propagating into view/viewgroups that aren't explicitly marked clickable. May 01 19:22:22 android:clickable="true" May 01 19:22:47 (or set an onClickListener) May 01 19:24:40 I wanted to detect when the Touch Drag end. Is it MotionEvent.ACTION_CANCEL? May 01 19:25:32 ACTION_UP May 01 19:30:57 hi, does anyone know whether it's possible to run the android emulator in hidpi mode on a macbook pro with a hidpi display? May 01 19:31:17 it's working fine, and I can set it to scale using the launch options May 01 19:31:40 but it's simply drawing 72dpi and then scaling it May 01 19:35:12 you can set the emu to whatever dpi/scale you want when you start it May 01 19:36:48 MDijkstra: you can try androvm, you can set the DPI and the resolution May 01 19:40:34 StingRay_: that doesn't actually enable hidpi drawing, it just scales the low-res version down further May 01 19:41:13 monsti: cheers May 01 19:42:09 in the emu def you can set display, eg xhdpi and then in the start options you can set the scale ratio ? that not what your wanting ? May 01 19:42:31 if emu is set to display xhdpi thats what you should get, scale not being a factor May 01 19:51:10 StingRay_: the problem is that the emulator itself is running in 'compatibility mode' May 01 19:51:44 StingRay_: so it sees a 72dpi display, even though it has double that amount May 01 19:52:04 or at least, that seems to be the case May 01 19:52:55 could i use onLayout to detect size changes instead of onSizeChanged. The previous one has a boolean flag "changed" I could use May 01 19:53:52 Why cant you use onSizeChanged? May 01 19:54:01 If changed is true, onSizeChanged has been called May 01 19:54:21 oh ic May 01 19:55:04 has anyone here dealt with Android Open Accessory 2.0 over USB? May 01 19:55:09 i'm having trouble with audio May 01 20:18:59 Hey all, this may be off topic (let me know) but I'm trying to figure out the best way to set up my android / eclipse project with Git. Mainly with managing 3rd party libraries, etc. I want to be able to seamlessly push / pull between two workstations without much manually tooling in between. Is that possible? May 01 20:19:12 (again, if this is too off topic, just let me know where it's better suited) May 01 20:23:38 seems like trying to login to the dev console ends up in an infinite redirect loop and my browser stops it May 01 20:23:49 anyoen else have this problem? May 01 20:24:09 fakingfantastic: one of the best things about git is that it doesn't force a particular workflow upon you May 01 20:24:55 <|0xD34D|> Zharf: I had that about 30 minutes ago, clearing my cache and cookies cleared it up May 01 20:25:13 ok May 01 20:25:31 MDijkstra: yeah, my concern isn't so much about Git. I'm completely comfortable with Git. It's more how to to manage the dependancy libraries, and how to handle stuff in the eclipse project settings files May 01 20:25:51 How do I go about using this feature of GridLayout? http://developer.android.com/reference/android/widget/GridLayout.Alignment.html May 01 20:26:37 fakingfantastic: ah. pretty much the only thing you can do is put every dependency in its own repository May 01 20:26:48 and pull them both May 01 20:27:02 something like git-submodules isn't possible as I know May 01 20:27:07 *as far as I know May 01 20:27:15 Ahh ok, it is as crazy as that - that's what I did with the last project May 01 20:27:23 hello, how can i move the indeterminate progress bar in the title to the right? i'm using actionbar sherlock (screenshot: http://wstaw.org/m/2013/05/01/device-2013-05-01-222547.png ) May 01 20:27:30 since the dependencies are not children of the root project May 01 20:27:33 And you can turn 3rd parties into jar's just as long as they don't have assets, right? May 01 20:27:43 yep May 01 20:28:19 you could build some lightweight wrapper around git May 01 20:28:22 is there a way to make a view take a percentage of screen other than using match_parent and weights? May 01 20:28:25 kind of like google has done with repo May 01 20:28:46 MDijkstra: not sure I'm familiar with that? May 01 20:29:13 fakingfantastic: well, submodule support in git is slightly limited, some some projects build a wrapper around it May 01 20:29:30 fakingfantastic: ie, a tool that will automatically do a git pull for several projects May 01 20:29:56 I have a top level parent view and many child views. I want to communicate (by firing an event) something from a top level parent view to one of the bottom level child view. Whats the best way to do this? May 01 20:30:44 Manavan: mmm. are you putting logic in your views or am I missing something? May 01 20:31:40 MDijkstra: ahh right on May 01 20:33:11 fakingfantastic: I personally prefer to manage dependencies manually, but I don't have a lot of fast-moving dependencies May 01 20:33:40 MDijkstra: it's funny you should say that, I was just thinking to myself, "How often do you really need to update the dependancies" May 01 20:35:36 it'd be nice to have something like http://gembundler.com/ or http://cocoapods.org/ for android. As far as I can tell Ivy/Maven don't really compare May 01 20:36:10 MDijkstra: I am working on an existing app and there is view related logic in view (custom classes extending like FrameLayout). You have any suggestion on how i can communicate from this parent view to one of the child view. I want to fire an event that any subscriber (like the child view) can do something with May 01 20:37:00 What i am trying to avoid is nested looping through all children in parent view. May 01 20:37:08 Manavan: what would the child view need to do with an event? May 01 20:37:25 it need to update its Text (It is a textview extension) May 01 20:37:43 ah, right. May 01 20:38:11 well, generally one would design the views to not contain any application logic and to simply delegate everything to a controller May 01 20:38:14 specifically = ellipsizing text based on parent size change. Currently onSizeChanged is used but its being fired too many times. May 01 20:38:28 that way you're not tied to the actual hierarchy of the views on screen May 01 20:38:46 and can design any scheme to manage events, etc May 01 20:39:14 MDijkstra, I agre but this app is already built and doesnt follow the mvc pattern u advising May 01 20:39:57 yeah, I realize I'm not being very helpful May 01 20:40:18 you might be able to hack around the issue by creating some custom event listeners May 01 20:40:41 ie, have the parent view define some inner interface OnStuffHappened May 01 20:41:03 then somehow communicatie the child views to the parent, store them May 01 20:41:22 and call the methods defined in the interface when stuff happens May 01 20:41:30 ya but since I needed to communicate to nested child view, i will need to pass the event down the heirechy rite May 01 20:42:10 yep, but I'm pretty sure you'll have to implement this manually since you're kind of fighting the framework May 01 20:42:24 which is pretty much setup to do something resembling MVC May 01 20:44:10 right. thanks May 01 20:44:46 but I'm not 100% sure... there might be an easy way to communicate this particular event to a child view May 01 20:44:52 possibly by a relayout May 01 20:45:50 is there a way to make a view take a percentage of screen other than using match_parent and weights? May 01 20:46:35 Manavan: have you tried .requestLayout()? May 01 20:47:46 MDikstra, doesnt thaty fire onLayout events May 01 20:49:13 well, it does 'schedule a layout pass of the view tree', according to the docs May 01 20:49:39 Good afternoon. Is there any good methods for developing Android in HTML/CSS/JS & translating it into JavaVM bytecode? May 01 20:49:47 Thanks I will look into it. May 01 20:51:38 FFForever: no - you have to learn to code ;) May 01 20:52:02 monsti, Java isn't my fortay.. I guess I'm back to Rhodes ;) May 01 20:52:07 FFForever: but there is some tool from hell - called phonegap May 01 20:52:38 Phonegap is ugh... like you said straight from the dungeons of hell. It really shouldn't be used for production apps. May 01 20:52:54 yeah ;) like html5 May 01 20:53:08 it's always some "document" and no app May 01 20:53:12 LinkedIn Android App isnt it HTML5 May 01 20:53:40 Hey now.. HTML5 is pretty cool. IIRC originally it was HTML5, but it was turned into native objc/java apps for their respective platforms. May 01 20:55:11 FFForever: well, android's JS engine is pretty fast May 01 20:55:21 Hi. Anyone know how to compile the old ADW Launcher from source? Or any Android program for that matter May 01 20:55:38 Thinking of trying to edit it and make some changes someday... too few goot open-source launchers May 01 20:55:57 hello, how can i move the indeterminate progress bar in the title to the right? i'm using actionbar sherlock (screenshot: http://wstaw.org/m/2013/05/01/device-2013-05-01-222547.png ) May 01 20:56:09 MDijkstra, No doubt that it's fast, but when using things like GMaps, advanced css transitions, etc it tends to have poor performance. May 01 20:56:09 FFForever: in any case, it's probably faster to run the javascript directly rather than adding another conversion process May 01 20:56:29 FFForever: yeah, there's little you can do about that May 01 20:56:48 FFForever: hope that google improves CSS transition support in newer versions of android ;) May 01 20:56:50 Quick question. What format is supposed to have a "CODE" header (magic number)? All I know is that it's supposed to be a texture. May 01 20:56:54 and/or chrome May 01 20:57:04 We could keep our app limited to only JB based devices, but that's cutting out what.. 60%+ of the current android market? May 01 20:58:06 FFForever: well, of course animation performance wasn't awesome on android before that May 01 20:58:12 Can anyone explain (a howto link is better :-) ) to me how I can put some static lib ( .a ) files into my android project ? May 01 20:58:20 whether you were using java or javascript May 01 20:58:56 I thought transitions started picking up performance around 2.3 when google released the nexus/live wallpapers. May 01 20:59:26 kind of, but 4.0+ is when they got reasonably fluid May 01 20:59:56 and live wallpapers were added in 2.1 or 2.2 May 01 21:01:33 Anyone in here using a nexus 4? I'm thinking about upgrading to one from the HTC Desire HD (I know.. I know...) and getting into Android development. May 01 21:02:14 I have one May 01 21:02:51 FFForever: yes May 01 21:02:54 How do you like it? Is it a reliable device? I tend to be a bit rough with electronics and I don't "baby" them. I'm hoping that it'll withstand at least a year or two of abuse. May 01 21:02:55 So I'm doing some work with opengl creating image filters.. all go well but say after the second filter my whole display starts to go crazy May 01 21:03:15 the TextViews text turn into white blocks, the screen starts to change colors and crap May 01 21:03:38 It's either going to be a N4 or S4, not sure which one yet. The N4 has the advantage of being reasonably priced without a contract. May 01 21:03:40 saw this problem on stackoverflow the underday but can't find it again .. anyone ran into this? May 01 21:04:02 the n4 has no HW buttons May 01 21:04:06 FFForever: it doesn't seem to scratch very easily May 01 21:04:07 that what sucks most May 01 21:04:11 at the least the front May 01 21:04:23 but I wouldn't drop it May 01 21:04:38 since both the front and back are made of glass May 01 21:04:53 monsti, O? Is it like the Kindle where it always has the soft buttons at the bottom? May 01 21:05:06 but the front glass on the N4 is much more scratch-resistent than the GN was May 01 21:05:15 I use a Note 2 with an extended battery and TPU May 01 21:05:33 I can use it as a shield if I'm ever attacked with a sword May 01 21:06:16 overall I'm pretty happy with my N4: no real complaints about it May 01 21:06:19 I find the Note 2 to be a bit too big for my taste. Have you ran into any problems with the screensize & apps properly responding to the size? May 01 21:06:31 FFForever: the missing HW buttons eats about 1cm of the display May 01 21:06:35 they could've made the back a little more grippy May 01 21:06:37 that's very annoying May 01 21:06:43 sorry what is N4? May 01 21:06:47 nexus 4 May 01 21:06:49 Manavan, Nexus 4. May 01 21:06:50 oh! May 01 21:06:59 I am an android newbie lol May 01 21:07:04 the phone google innvented 1/2 year ago ;) May 01 21:07:07 FFForever: yeah. it has a quad core 1.something GHz proc May 01 21:07:09 so it's almost outdated May 01 21:07:21 FFForever: it pretty much flies through any task May 01 21:07:32 Is there any good alternatives to the N4 with HW buttons? I'm trying to look for a phone < 400 that's unlocked. May 01 21:07:46 Any of you guys write test automation for User Interface or is it not practical May 01 21:07:48 you could get the S3 I suppose May 01 21:07:50 a S3 is close to 400 euros May 01 21:08:03 Do people use IntelliJ in production? or do most use Eclipse? May 01 21:08:07 Manavan: i use mvvm so i don't need it ;) May 01 21:08:10 SirSkidmore: I tried IntelliJ, but I hate it May 01 21:08:12 well May 01 21:08:13 not hate it May 01 21:08:18 it was just a bitch to set up May 01 21:08:22 and I'm a lazy fuck who likes things that just work May 01 21:08:24 and eclipse worked May 01 21:08:26 so I stuck May 01 21:08:27 I've been trying to pick up Android dev, but IntelliJ has been using some odd behaviour May 01 21:08:34 SirSkidmore: I guess most use Eclipse since it's the default May 01 21:08:35 luckily I'm an independent developer, and that means I can do what I please May 01 21:08:36 :D May 01 21:08:44 but IntelliJ has some proponents May 01 21:08:46 espcecially in creating new Activities May 01 21:08:47 also, monsti, thanks for the advice on the selector May 01 21:08:52 It's exactly what I needed May 01 21:09:03 SirSkidmore: Activities are lame. It's all about the fragments May 01 21:09:07 #nexus7forlife May 01 21:09:07 np May 01 21:09:10 I just hate the default look of Eclipse May 01 21:09:25 lol i hate the default crash of Eclipse May 01 21:09:29 and I tried to install "Eclipse Colors" or whatver and it completely broke everything May 01 21:09:31 the default memory sucking May 01 21:09:37 the bloated updates May 01 21:09:49 the random keyboard lockups May 01 21:09:49 I hate the fact that it's so incredibly slow, but with a new laptop it's okay May 01 21:10:06 yeah :) May 01 21:10:13 and it's even slower in osx May 01 21:10:26 and it takes forever to build/deploy May 01 21:10:37 I just wish I knew why it breaks when I try to change the theme May 01 21:10:41 monsti: I'm on OSX May 01 21:10:49 I just bought myself a brand new MBP and while it's still not very fast May 01 21:10:53 it's at least tolerable now May 01 21:10:56 yeah ;) install win7 64 bit May 01 21:11:01 and it's 20% faster May 01 21:11:14 i don't understand why May 01 21:11:35 same hardware - same eclipse version May 01 21:11:47 SSD? May 01 21:12:00 the OS X IO scheduler is notoriously bad May 01 21:12:06 any idea about this issue dudes? http://4thline.org/projects/mailinglists.html#nabble-td3011461 May 01 21:12:21 OSX at least used to have a sucky memory allocater (compared to linux/win), could contribute to slowness I guess. May 01 21:12:28 same hardware = same hardware ;) May 01 21:12:43 monsti: well, I mean, the windows IO scheduler is probably better than the OS X one May 01 21:12:53 but an SSD would mask that to an extent May 01 21:12:56 that's why I asked May 01 21:13:05 i have the _same_ ssd ;) May 01 21:13:28 16gb ram, ssd, 3.6ghz, i7 May 01 21:13:40 ah yeah, the 15" retina mbp? May 01 21:13:43 a big penis and in osx it's 20% cut May 01 21:13:56 no a gamer netbook and a hackint0sh May 01 21:14:07 i pay less and i want more May 01 21:14:11 http://imgur.com/HgS7v7C May 01 21:14:19 I wish I knew why it looked like this, all sucky May 01 21:14:21 haha May 01 21:14:48 monsti: ah dunno, hackint0sh could make it a bit slower I guess May 01 21:14:49 SirSkidmore: get the cocoa or carbon version ? May 01 21:15:10 I installed the Mac ADT bundle May 01 21:15:15 MDijkstra: no guessing ;) the hackint0sh outperforms mac hardware in any tests May 01 21:15:40 It looked fine until I tried to install: http://eclipsecolorthemes.org/ May 01 21:15:44 MDijkstra: and think about it ;) the same hardware for the CPU, the harddisk, and the ram - where do you see the slowness ;) May 01 21:15:52 SirSkidmore: i use eclipse 3.8.2; seems to be a bit faster. it uses the same JDT as 4.2.x May 01 21:15:56 MDijkstra: it's just the label and the aluminium body May 01 21:15:57 how do i calc the dpi of a tv, e.g. one thats 1920 x 1080 and 42" diagonal? May 01 21:15:58 monsti: the harddisk is most definitely not the same May 01 21:16:12 MDijkstra: yes my samsung 840 is faster ;) May 01 21:16:12 monsti: since macs have integrated ssd's May 01 21:16:31 monsti: but may not have an optimized driver, etc etc May 01 21:16:34 that's why mbp guys add the 840 as 2dn drive May 01 21:16:41 g00s: hmm May 01 21:16:50 ugh. that's a pain... haha May 01 21:16:51 lol? it's faster - a benchmark measuers it faster ;) May 01 21:16:56 my machine is a crappy MBP from 2009 with only 4G of ram, eclipse runs just fine. if you have a better machine and it slow, something is wrong ;) May 01 21:17:05 I think it might be the ADT version May 01 21:17:15 I'll just isntall vanilla Eclipse and see what happens May 01 21:17:16 no, we would have the same ADT May 01 21:17:25 g00s: the comparison is mbp with osx vs. same mbp with win7/64 bit May 01 21:17:31 and win7 is the winner ;) May 01 21:17:33 Well, Google's bundled ADT May 01 21:17:44 SirSkidmore: get the 3.8.2 platform runtime, then ONLY add ADT. thats the best May 01 21:17:47 they zip the SDK and Eclipese together May 01 21:17:49 okay May 01 21:18:04 3.8.2 was much faster May 01 21:18:07 ADT will drag in JDT and Web tools May 01 21:18:22 the dep manager will not leave you with a broken thing May 01 21:18:47 i just install adt and a svn client May 01 21:19:26 SirSkidmore: http://download.eclipse.org/eclipse/downloads/drops/R-3.8.2-201301310800/ May 01 21:19:31 Platform Runtime Binary May 01 21:19:40 Cocoa c86_64 May 01 21:19:44 x86 May 01 21:20:05 oh, i would nuke your ~/workspace May 01 21:20:16 before you run the older eclipse May 01 21:20:25 I don't have anything in my workspace :3 May 01 21:20:36 delete it May 01 21:20:37 I've always used intelliJ for Java, albeit not much May 01 21:20:42 okay May 01 21:20:59 why not use IntelliJ then ? May 01 21:21:21 if thats what you are used to, lots of people like it for android dev May 01 21:21:38 g00s: It's been a pain so far May 01 21:21:58 I was going to try it out again today, but then thought that the easiest direction may be just to deal with Eclipse May 01 21:22:01 much prefer it over eclipse ;0 May 01 21:24:10 xorgate: just out of curiosity how do you create new activities? May 01 21:24:26 cmd-1 stand on package -> NEW May 01 21:24:39 or alt-1 in win May 01 21:24:57 or just by hand May 01 21:25:02 it's not that much typing May 01 21:28:28 xorgate: the last time I tried, I had a lot of issues trying to follow along with the tutorial May 01 21:30:04 the only thing that confused me was the libraries May 01 21:30:11 but i reckon that's not an issue yet May 01 21:30:18 tried idea, never looked back May 01 21:30:24 I'll step through it again May 01 21:30:53 amything in particular going wrong? May 01 21:33:26 Well, I'm about to grab a bite to eat May 01 21:33:33 I'll let you know when I get back :) May 01 21:43:55 Hello May 01 21:47:56 aloha May 01 21:48:15 what is this chat for? May 01 21:48:25 only for people who are experts at android? May 01 21:48:53 heh, not even remotely May 01 21:49:11 so you are all newbs like me? May 01 21:49:13 ;) May 01 21:49:26 jake is the only expert May 01 21:49:34 :O May 01 21:54:23 JakeWharton walked into a bar May 01 21:54:25 and made a library May 01 21:54:35 badumsh! May 01 21:54:49 ha! May 01 21:54:51 :P May 01 21:55:19 :3 May 01 22:01:37 Is this considered instantiating an object -> mylogo = (ImageView) findViewById (R.id.thelogo) May 01 22:01:56 myLogo in this case would be an instance of an object right? May 01 22:02:00 an imageView object? May 01 22:03:10 it depends on what layout you inflated May 01 22:03:22 you are grabbing a reference to an object that was inflated inside a layout May 01 22:04:15 xorgate, I see so it's not really instantiating an object May 01 22:04:26 no that is done for you in setContentView May 01 22:04:32 you can, though May 01 22:04:45 I have a layout which I'm trying to center text into. It looks fine in the Graphical Layout but as soon as it goes into the GridLayout it is not centered anymore. http://pastebin.com/Qj5WZUbj May 01 22:04:45 and dynamically generate views in code May 01 22:04:59 xorgate, so what it actually is doing is just grabbing references. So should i need to comment it I cuold just write grab the references ? May 01 22:05:19 CocoStorm i'd not write anything there, it's blindingly obvious :) May 01 22:05:32 xorgate, I need to comment everything :) May 01 22:05:33 lol May 01 22:05:41 xorgate, so it's just grabbing the references May 01 22:06:23 yes May 01 22:06:32 you will write it a million more times May 01 22:06:58 hmm, i guess menu actions contributed to the Actionbar by fragments in ViewPagers is still broken on 4.0.x, of course. forgot about that. May 01 22:07:17 xorgate, ah I see so //grab the references for the views May 01 22:07:19 thanks :) May 01 22:08:26 Is there any benefit to passing BitmapFactory.Options for sample sizes when loading a color drawable from a resource? May 01 22:08:41 xorgate: I must be a moron because it's working fine haha May 01 22:08:56 hwrd|work what method allows that? May 01 22:09:05 I think when I originally tried I forgot to add it to the manifest May 01 22:09:20 xorgate: https://developer.android.com/reference/android/graphics/BitmapFactory.html#decodeResource(android.content.res.Resources, int, android.graphics.BitmapFactory.Options) May 01 22:09:33 SirSkidmore ah yes that should happen automatically when you use those IDE functions May 01 22:09:54 yeah, I wasn't :P May 01 22:10:13 hwrd|work that's for bitmaps not colors May 01 22:10:59 decoding a colordrawable will give you a bitmap… will it not? May 01 22:11:10 hwrd|work: no it won't May 01 22:11:14 it will give you a ColorDrawable May 01 22:11:52 xorgate: cool, so the tutorial is running great :) May 01 22:12:14 greatarino May 01 22:12:25 romainguy: xorgate Thanks! I think the answer to my question is no then. May 01 22:14:29 no the answer is the question is moot :) May 01 22:15:13 anybody want to private chat and help a newbie with some simple questions? May 01 22:15:21 just do it here May 01 22:15:29 to embarrassed to ask here :3 May 01 22:15:46 don't be embarrassed May 01 22:15:52 :3 May 01 22:16:03 we've all been beginners :) May 01 22:16:03 Newbieto: it's okay, I'm a moron with this stuff, just ask :) May 01 22:16:19 * SirSkidmore probably wouldn't even still be into programming if it weren't for IRC May 01 22:16:24 everyone except romain he made it all :) May 01 22:16:31 thank you guys May 01 22:16:48 xorgate: I had to learn Android too at first :p May 01 22:17:14 i just need some pointers on what to study for my app. don't know where to begin May 01 22:17:48 start at the beginning May 01 22:17:52 anyways i just need my app to be like a ebook with links like those of HTML pages where you click and it redirects you to another page of the "book" or content May 01 22:17:54 ~it's a very good place to start May 01 22:18:01 if you don't know where to begin, start off by reading some books May 01 22:18:04 like thinking in java May 01 22:18:07 i read two books already May 01 22:18:13 then look at d.android.com May 01 22:18:32 but i find no info on how to do internal links like HTML in an ebook like app May 01 22:18:52 maybe i read the wrong books May 01 22:18:58 you look at books for the foundation May 01 22:19:00 not as a howto guide May 01 22:19:01 Newbieto: don't worry, I think I know where you're coming from. I read a lot of books but it took me a long time to figure out how to actually apply it to a real world application May 01 22:19:17 the dummies part of the title ....that was probably the prob May 01 22:19:42 if anything, ask concrete questions May 01 22:20:05 romainguy: looking forward to your i/o talk on custom views May 01 22:20:13 what subjects should i study to do internal links in an app? lets say I have a paragraph and some words have blue text which you click and texts you to another page May 01 22:21:01 g00s: we won't be able to cover much, sessions are pretty short May 01 22:21:22 Newbieto 'internal links' is not a thing in android apps really May 01 22:21:27 still waiting for the 'filty rich clients on android' book :D May 01 22:21:38 as soon as I have the time... May 01 22:21:45 i don't know what to call it May 01 22:22:14 Newbieto if anything it's a TextView with a blue text May 01 22:22:45 but since you ask this, did you look at the tutorials? May 01 22:22:56 from the developer site? May 01 22:23:04 Newbieto, data structures and documents May 01 22:24:24 ok :) May 01 22:24:26 thanks May 01 22:26:26 What would you do to update an list whenever the sqlite database is updated ? May 01 22:26:45 (by you I mean anyone that is avaible and wanting to help hehe) May 01 22:27:01 is there anything built-in to provide for a sliding menu? As in when I pull the screen, a menu slides out on the left? May 01 22:27:12 Or will I need to know some graphic design stuff for thtat? May 01 22:27:25 there's a slidingmenu library May 01 22:27:51 simon mentioned thats also going to be in the support lib at some point May 01 22:28:04 great pfn thanks! May 01 22:28:08 https://github.com/jfeinstein10/SlidingMenu May 01 22:28:11 * g00s kicks back and waits to see what new developer goodness happens at i/o May 01 22:29:06 get to work May 01 22:29:44 romainguy: how do we get a refund since the 40 minute sessions are so short and i want to complain about something May 01 22:29:49 i'm actually writing my first tablet optimized app; i think its a pita May 01 22:30:09 mikedg: 40 min sessions ? May 01 22:30:12 very convenient that the last day for refunds was april 30th and the schedule just came out May 01 22:30:38 g00s: yup, 40 minute sessions for everything at i/o May 01 22:30:44 wait May 01 22:30:52 was it 50 last year, plus 10 for walking around ? May 01 22:30:54 mikedg wants to complain about something I/O related? May 01 22:31:33 if i dont complain who will? May 01 22:31:46 or 40(beef)+ 10(questions) + 10 (walking) May 01 22:31:59 whoa, now here's a weird one. May 01 22:32:00 g00s: except we would do 60 minutes really :p May 01 22:32:02 last year they were 60 mins May 01 22:32:05 my phone just remounted read-only the root filesystem May 01 22:32:11 with 15 mins between sessions May 01 22:32:27 mikedg: ooohhh May 01 22:33:20 g00s, watch https://developers.google.com/events/io/sessions/326148829 May 01 22:33:45 canadiancow: \o/ May 01 22:33:57 dude, there's a big bee behind you May 01 22:34:01 oh theres ane vent now? May 01 22:34:05 i noticed May 01 22:34:12 s/now/in two weeks/ May 01 22:34:21 how do i watch it May 01 22:34:28 oh may 17th May 01 22:34:29 in my Android.mk, how can I point to an include directory so that in my C files, I can do #include instead of #include "someheader.h" May 01 22:34:50 I know that I can use LOCAL_C_INCLUDES, but that doesn't accomplish what I want. May 01 22:35:03 hokkaido: isn't that like gcc -I flag :| May 01 22:35:16 oops, sorry hokkaido … HorizonXP May 01 22:35:52 g00s: yeh that's what I thought May 01 22:36:32 LOCAL_CFLAGS += -g -std=c++11 -I$(TOP)/external/stlport/stlport doesn't seem to do what I want either tho May 01 22:36:37 canadiancow: actually, this looks good. i'm glad you are doing it (with code). May 01 22:39:39 wait it says with code? May 01 22:39:52 :P May 01 22:40:02 lol May 01 22:40:04 "Take advantage of the Android platform to create a world-class app. We will use Gmail as an example, walk through platform features, and provide example code." May 01 22:40:07 everyone should +1 that page by the way May 01 22:40:28 it's sitting at 5 right now, which is depressing, because there are 9 people on my team May 01 22:40:34 i think i have to disable ghostery, abp, noscript, and a bunch of other shit to hit that +1 May 01 22:40:44 :) May 01 22:41:23 and log in, dang May 01 22:41:41 what is the "most recommended" Android book from you guys? May 01 22:41:47 Or is it just "Read the Docs"h May 01 22:41:49 hah May 01 22:42:14 i think as a beginner , it is useful to get a good book which systematically goes through the topics. May 01 22:42:22 the website has improved a bit though May 01 22:42:42 i guess, Reto or Big Nerd May 01 22:42:48 i learned android from d.android.com and this channel May 01 22:42:58 and the award for the most useful answer goes to: g00s! May 01 22:42:59 books are far too static May 01 22:43:04 canadiancow: same. but I'm still a beginner May 01 22:43:14 canadiancow: I think a lot of people can learn that way, I just really like the feel of books May 01 22:43:22 books are out of date when they're released May 01 22:43:36 But it's still enough to get a basis, I think May 01 22:43:45 does anyone know if android_atomic_add differs from device to device, when referring to ARMv7 based devices? May 01 22:44:23 try androvm May 01 22:44:32 you have the intel arm emulator May 01 22:44:46 monsti: me? May 01 22:44:58 yes ;) May 01 22:45:07 SirSkidmore: what you could do, is read the website for the next 2 weeks. if at i/o android 5 is released, the books will probably all be out of date. if its just 4.3, than you should be fine with a book, and then look at the API diffs May 01 22:45:08 call me old fashioned I guess, I also still handwrite letters, and use wooden pencils and fountain pens :P May 01 22:45:19 intel spends money on making that very accurate May 01 22:45:20 g00s: I'll do that then :) May 01 22:46:02 hint: if its still called "Jelly Bean" … books are probably still OK ;) May 01 22:46:24 monsti: will do. all I know is that I have a module that uses RefBase/smart pointers, and seems to be failing on android_atomic_inc/dec on certain devices May 01 22:46:28 well 4.1 -> 4.2 isn't that big step ;) May 01 22:46:36 g00s: thanks, I appreciate it :) May 01 22:46:44 monsti: it will only work on GNex and Nexus 4 May 01 22:47:02 monsti: which leads me to think that each manufacturer has implemented those functions slightly differently May 01 22:47:24 HorizonXP: yes that might be possiblee May 01 22:47:24 Anyone here good at picking colors for color palettes? May 01 22:47:37 I've got the idea for what I want my color palette to look like, but so far it looks shitty May 01 22:47:38 Brian|CS: afaik in the demos there is a color picker dialog May 01 22:47:59 monsti: but if I'm linking to them dynamically.... May 01 22:48:06 then again, those functions are extern inline May 01 22:48:13 so i don't know May 01 22:48:24 Brian|CS: and there are no ICS profils like on osx devices - colors are shitty by definition May 01 22:48:45 monsti: Well like, I have an icon which has colors in it May 01 22:48:47 and I'm trying to like May 01 22:48:50 Brian|CS: http://colorschemedesigner.com/ is this what you're looking for :) May 01 22:48:51 HorizonXP: well every manufacturer can bring his hown /lib/fooo stuff May 01 22:48:51 "expand" thsoe colors into the app May 01 22:49:34 monsti: right May 01 22:49:42 monsti: i'll have to investigate more May 01 22:52:44 is there a reason why you access pointers in C by dlopen? May 01 22:53:37 is there a provider for gmail? MAIL_RECEIVED or something or do i have to poll manually ? May 01 23:04:03 monsti: No? May 01 23:06:25 hwrd|work: so i don't geht it why you have issues May 01 23:06:37 ?? May 01 23:06:40 lol May 01 23:07:49 monsti: I'll show you the adb logcat output May 01 23:07:56 yes May 01 23:08:43 mikedg: where is the wink code? May 01 23:10:51 HorizonXP: i am asking a stupid question May 01 23:11:10 did you declared the extern function as "extern C" in any header files? May 01 23:11:11 where's the documentation for drawable precedence when you have variants in different -Xdpi dirs? May 01 23:13:54 hwrd|work: sry i still don't get the reason for the crash May 01 23:14:03 sry HorizonXP ;) May 01 23:14:04 monsti: What crash? May 01 23:14:07 oh May 01 23:14:10 uggghhhh May 01 23:14:14 tab tab ;) May 01 23:14:22 hwrd|work: unnnnnngh hahaha May 01 23:14:46 hwrd|work: there is a crash - ok - that's what the logtrace tells me May 01 23:14:49 sry HorizonXP May 01 23:14:54 damn ;) i have to go to bed May 01 23:15:00 monsti: i'm not sure what's causing it either May 01 23:15:09 the line that causes it is ... May 01 23:15:18 HorizonXP: so gdb and investigate May 01 23:15:43 ok send me dirty C++ code pixxxx May 01 23:15:52 pfn: favors next highest and scales down. only scales up when nothing else exists May 01 23:16:15 monsti: sp audioEncoder = ... May 01 23:16:26 int *x = (*int)0xdeadbeaf; *x++; // crash in C May 01 23:16:47 monsti: it crashes when it's trying to create that object May 01 23:16:59 the "object" has parameters May 01 23:17:11 also the location of that source has a "this" May 01 23:17:15 bankai_, what are you asking about gmail? May 01 23:17:21 investigate it by printfs or by gdb May 01 23:17:30 should be not that hard to find May 01 23:17:51 bankai_, http://android-developers.blogspot.com/2012/04/gmail-public-labels-api.html is probably your best bet May 01 23:19:20 monsti: you'd think so May 01 23:19:29 monsti: but this exact code will work.. sometimes May 01 23:19:40 but a lot of the time, it will crash May 01 23:19:45 it's not regular May 01 23:19:52 and sometimes it crashes in different locations May 01 23:20:03 canadiancow: cheers, i was hoping to do a broadcast receiver, but seems it's not possible. That's ok, i'll just poll and loop May 01 23:20:03 hence why I showed you two crash logs May 01 23:20:20 bankai_, may i ask what you're trying to do? May 01 23:20:24 HorizonXP: that's because C++ is coded by people who can smell thet type of errors May 01 23:20:54 How can I change a button's image to a "loading" icon when it's pressed ? May 01 23:21:11 hwrd|work: you did some bad things before ... you might have a race condition ... there might be some threading issue ... there might be some C/C++ pointer issue .... May 01 23:21:12 setBackground... May 01 23:21:26 sry HorizonXP May 01 23:21:27 canadiancow: doing a widget May 01 23:21:33 hwrd|work: i am anoying you ;) sry May 01 23:21:39 ContentObserver actually might be what i want May 01 23:21:48 bankai_, you wont be able to get message information May 01 23:21:51 just label names and counts May 01 23:21:54 yep that's cool May 01 23:22:24 monsti: yeah May 01 23:22:30 monsti: i have to investigate it more May 01 23:27:26 HorizonXP: it can also be some out of memory thing May 01 23:28:25 HorizonXP: in C++ a member variable might be "Foo mBar;" and creating a Foo instance will require zillios of ram May 01 23:28:43 and you don't "see" this by a code review ;) May 01 23:29:13 yeah that crossed my mind too May 01 23:29:43 I wonder if there's a way to allow the app to have more memory May 01 23:30:04 Lol @ smelling type errors monsti May 01 23:30:10 C++ isn't THAT brutal May 01 23:30:13 I mean it's no Java May 01 23:30:18 But it's also no C May 01 23:30:19 yes ;) May 01 23:30:35 thats because i asked about extern "C"'s in .h files ;) May 01 23:31:16 HorizonXP: do you port some opensource library? May 01 23:34:30 I think c++ is complicated/compounded by the fact that everyone does things different ways May 01 23:34:45 sometimes implementation is in headers alone May 01 23:35:00 sometimes files are c/h and others are cpp/hpp May 01 23:48:14 Hey I have a question, I am making a live wallpaper and want an image to scale to the entire width of the home screens is there a way to detrmine how many home screens there are? May 01 23:54:44 Ahamay: http://stackoverflow.com/questions/6086040/get-number-of-home-screens-in-android May 01 23:54:52 I know it's sorta rude to just post a stackoverflow May 01 23:54:58 but from all the seraching I just did that was all Ic ould find May 01 23:55:04 and it seemed like noone else was responding May 02 00:16:40 JakeWharton, indeed, thanks May 02 00:17:27 Brian|CS: what's wrong with the accepted answer? May 02 00:17:34 nevermind May 02 00:17:37 reading backwards May 02 00:18:36 wait wait wait May 02 00:18:40 that name May 02 00:18:42 it is familiar... May 02 00:19:17 Are you THE JakeWharton? May 02 00:19:43 He's locked up in my trunk May 02 00:20:01 For reals though May 02 00:20:02 like May 02 00:20:02 I'm just here for the free refreshments May 02 00:20:08 You are the man May 02 00:20:09 lol May 02 00:20:29 I wish I could make something as awesome as ABS. May 02 00:21:47 ASS? May 02 00:23:28 JakeWharton, you should send him a signed t-shirt May 02 00:23:42 You can, and should, make something. Each thing will be better than the last. May 02 00:24:57 make babies with beautiful women May 02 00:25:00 one of them will become famous May 02 00:25:03 and yo can quit your job May 02 00:25:16 lol May 02 00:25:26 trying to decide if a one way first class for $75 and 20k miles is worth it May 02 00:25:51 for 1hour? no May 02 00:26:23 mikedg: where is blink source? May 02 00:27:25 mikedg, what airline, and where May 02 00:27:39 JakeWharton: i'm still working :| May 02 00:27:49 at real work May 02 00:27:58 it's wink anyway May 02 00:28:14 semantics! I talked up the awesomeness of wink and it was nowhere to be found May 02 00:36:48 does JW have glass as well? May 02 00:37:50 no. we have a couple for hacking on May 02 00:38:01 and there's one or two personal ones May 02 00:38:44 i'll be developing for it and hacking on it but i'm not an early adopter of that kind of tech. maybe in a year or two. May 02 00:41:19 indeed May 02 00:44:08 JakeWharton opinions on it? May 02 00:49:55 can anybody share any pointers or links to help me tailor my apps to change according screen sizes? The android docs just mention that it should be done, not really how to do it. May 02 00:51:12 how to do it design wise? May 02 00:51:18 or programmy wise May 02 00:52:01 Honestly, I'm interested in either method May 02 00:52:51 Is it just a matter of declaring something like for a large layout in the xml? May 02 00:53:28 I'm very new to android and java, I think I might not be searching for the correct terms because I can't really find much on the subject. May 02 00:53:40 the docs do say quite a bit about what you should do, but their examples are overly simplistic May 02 00:54:26 are there docs other than developer.android.com? May 02 00:54:44 stackoverflow :) May 02 00:55:06 I had bought a book, but it just explains the java language as it pertains to android programming. It barely mentions UI design May 02 00:55:31 mainly dealing with events and whatnot May 02 00:55:48 burritoHeaven: put your layout in drawable-large or drawable-sw600dp May 02 00:55:54 not entirely sure on the second one off the top of my head May 02 00:56:02 and i meant layout-balblabla May 02 00:56:07 its too late May 02 00:57:19 layout-sw600dp May 02 00:58:08 burritoHeaven: you saw http://developer.android.com/training/multiscreen/index.html May 02 01:07:19 so, you would create a directory named "layout-large" in your /res directory for large layouts and include the large variant layout in there? May 02 01:07:47 hm, this is interesting - a payment system that lets you pay by touch (fingerprint). you register the fingerprint with the service, then you can buy something anywhere this touchpad is. May 02 01:08:00 g00s: hmmm... broken ;) May 02 01:08:15 g00s: at least for common readers May 02 01:08:51 p_l|omoikane: i dunno. what if you can leave your phone and wallet home? plenty of places i have lived, thats thats great. now you can pay walking into a store with nothing May 02 01:08:54 some stores had something like that, it was shown to be compromised with a bit of Scotch tape May 02 01:09:27 JakeWharton, meh, where's your online apidoc for abs... May 02 01:09:51 g00s: as for ghostery and such - read about permacookie, and weep at how they do nothing ;) May 02 01:10:31 p_l|omoikane: you mean evercookie ? May 02 01:11:20 g00s: permacookie was the name I have seen it under May 02 01:11:44 yeah, security will be interesting. but the situation with card scimmers is getting pretty bad May 02 01:12:59 g00s: the problem with fingerprint scanners is that they are circumvented oh so easy... and it doesn't protect you against certain scamming attacks May 02 01:13:15 g00s: btw, have you covered your CC2/CVV yet? ;D May 02 01:13:37 yeah, I got nailed. May 02 01:14:35 p_l|omoikane: no i haven't :( May 02 01:15:02 p_l|omoikane: maybe this helps with permacookie https://addons.mozilla.org/en-US/firefox/addon/self-destructing-cookies/?src=hp-dl-upandcoming May 02 01:15:25 g00s: no, that doesn't help with permacookie, because permacookie is about not storing anything on the client May 02 01:15:44 oh, so evercookie and permacookie are different things May 02 01:16:10 g00s: and do cover your CVV on your cards... the easiest skimming method is to pretend you're playing with your smartphone while in the queue, and photo people's cards May 02 01:16:40 oh, i have mine in a farraday cage until checkout :D May 02 01:16:57 who the hell idly plays with their credit card in line May 02 01:17:24 its not worth it May 02 01:17:39 g00s: it's not about idly playing, it's about catching it when you're putting it into reader or giving to cashier (for non-microchip cards) May 02 01:17:45 I've got an uncanny ability to memorize cc # 's at the slightest glance May 02 01:17:50 but why May 02 01:18:00 not like you can REALLY get away with buyng a bunch of shit with one May 02 01:18:24 ron_frown they do it over a length of time May 02 01:18:33 ron_frown: main use is not buying much, but using it to verify for various services. Or various small purchases etc. May 02 01:19:09 ron_frown they were making small purchases a few times a month on mine, Idk how long it had been going on May 02 01:19:32 I havent seen my bank statements in YEARS May 02 01:19:39 unless bank calls me, I'd never know May 02 01:19:48 bank shut my card down May 02 01:19:48 p_l|omoikane: did you see this? http://www.cbc.ca/news/canada/manitoba/story/2013/04/23/mb-smartphones-skimmer-credit-card-winnipeg.html May 02 01:20:03 that's how i knew May 02 01:20:26 Hi guys, I have a compound question May 02 01:20:37 they said they believed somebody had been making small fraudulent purchases over a period of time May 02 01:20:55 I know there's a way for force orientation to horizontal May 02 01:21:08 but does horizontal mean horizontal for all phones? May 02 01:21:18 what if theres a phone which is wider then taller May 02 01:21:20 g00s: yeah, but to actually use the data from PayPass and such, there's funnier method - you have two phones connected over network, one is used to skim the card, while the other pays May 02 01:21:26 they had gotten all my card details and were purchasing a jar of vasoline and a bag of ping pong balls once every two weeks May 02 01:21:31 and horizontal would be like vertical on it May 02 01:21:39 g00s: it avoids the count check when the real card is used again May 02 01:21:47 burritoHeaven: ... sounds kinky May 02 01:21:53 idk.. May 02 01:25:40 kill me May 02 01:28:41 * JesusFreke kills mikedg May 02 01:28:56 thanks May 02 01:28:59 i needed that May 02 01:28:59 np May 02 01:32:04 pfn: ABS docs are on d.android.com May 02 01:32:17 if you read the ABS website it tells you this May 02 01:34:10 hey guys May 02 01:34:44 ACTION_NDEF_DISCOVERED.equals(getIntent().getAction()) <- If ACTION_NDEF_DISCOVERED is an intent, the what does the getIntent() do? May 02 01:35:01 what does getIntent().getAction() do May 02 01:35:25 ACTION_NDEF_DISCOVERED is a string May 02 01:36:04 JakeWharton, really :S how is it a string May 02 01:36:39 http://developer.android.com/reference/android/nfc/NfcAdapter.html#ACTION_NDEF_DISCOVERED May 02 01:36:40 The docs say ACTION_NDEF_DISCOVERED is an intent May 02 01:37:09 see also: https://developer.android.com/reference/android/content/Intent.html#getAction() May 02 01:37:11 both strings May 02 01:38:04 JakeWharton, I don't understand how they are both intents and strings May 02 01:38:25 http://developer.android.com/guide/topics/connectivity/nfc/nfc.html#ndef-disc May 02 01:39:04 it's not an intent May 02 01:39:09 it's an action inside of an intent May 02 01:40:03 JakeWharton, I see, but it describes it as an intent May 02 01:40:15 yes May 02 01:40:21 an intent with that constant as its action May 02 01:41:18 hmm, ics share already decreasing, maybe i should put minSdk = 17 :P May 02 01:41:30 JakeWharton, what's an action exactly? May 02 01:42:03 something we aint getting any of cause we are on irc May 02 01:42:10 Heyoooooo May 02 01:42:13 "The action describes the general way the rest of the information in the intent should be interpreted -- most importantly, what to do with the data returned by getData()" May 02 01:42:25 So when the docs say " inside of a ACTION_NDEF_DISCOVERED intent" they don't mean it's an intent :S May 02 01:42:35 they mean an intent with that action May 02 01:42:42 JakeWharton, Ah I see May 02 01:43:30 JakeWharton, that's super confusing! May 02 01:43:34 But I think I get it May 02 01:47:43 thanks JakeWharton May 02 01:51:26 so we have a bimodal distribution, GB is hanging on better than ICS is! May 02 01:51:37 ABS will see more life i think :D May 02 01:56:30 anyone else having issues getting to their developer console thing? i keep getting a redirecting error all day May 02 01:57:30 mine works May 02 01:57:36 clear your caches, cookies, etc May 02 01:57:47 hmm May 02 02:10:12 looks like a daily reconnect stack trace May 02 02:18:40 Any good ways for formatting block text to display in an android app? May 02 02:19:57 Anyone know where I can find the XML formatting rules that ADT uses for projects? Trying to create a similar tool for a different IDE/command line. May 02 02:24:40 have a look how intellij does it May 02 02:27:29 bankai_: I'm going off this information: http://tools.android.com/recent/xmlformatter May 02 02:27:54 It sounds like there is a tool for different project resources (strings, attrs, layout etc) which is why I thought it might be better. May 02 02:42:36 Welp May 02 02:42:47 once again I get to wait hours to see my app int he market May 02 02:42:52 #1dayprojects are the best May 02 02:42:53 :P May 02 02:43:23 JakeWharton, but they aren't really abs docs... mostly around the various overrides and getSupportX calls May 02 02:48:39 when you do Ball ball = new Ball() for example.. is that instantiating a class or object? May 02 02:50:08 you're creating an instance of that class..which is an object May 02 02:50:20 balls! May 02 02:50:58 so you're instantiating a class? :D May 02 02:51:48 a class is a definition May 02 02:51:59 an object is an instance of such a definition May 02 02:53:32 so you're instantiating a class May 02 02:54:11 homework question ? May 02 02:54:23 I think at this point he's just trolling May 02 02:54:39 noo May 02 02:54:43 i juts need to comment on it **** ENDING LOGGING AT Thu May 02 02:59:58 2013