**** BEGIN LOGGING AT Fri Apr 05 02:59:58 2013 Apr 05 03:01:16 so if i want to get to a public function in the HomeScreen class, how do i do it? Apr 05 03:01:20 HomeScreen.this.changeDaf("112"); dosn't work Apr 05 03:01:27 http://googleappsdeveloper.blogspot.com/2013/04/more-ways-for-apps-to-write-to-drive.html Apr 05 03:03:18 i need to get the instance of the homescreen Apr 05 03:03:55 jug6ernaut_: yeah, I've thought for a while that a simple key/value store on drive would be nice Apr 05 03:04:34 Leeds agreed, I've been waiting for this :) Apr 05 03:04:42 I dont like the failedAuthException in drive/android Apr 05 03:04:55 they say fire an activity to allow access Apr 05 03:05:47 but what if your doing that from a service, you need to build your own anctivity, then fire the drive auth activity from the exception, then catch that…..blaaaa Apr 05 03:06:12 and looks like drive access routinely asks your user to reauth your app ? Apr 05 03:10:00 still better than drop box though Apr 05 03:10:10 y would it need to reauth? Apr 05 03:10:33 cause there is no guarentee that the token you store will be valid at the request time Apr 05 03:10:58 maybe Apr 05 03:11:07 I've never had to reauth with any of the apps I've ever used Apr 05 03:11:15 oh really ? Apr 05 03:11:36 was something I read about drive api, just sounded normal that they MAY ask the user to reauth your app Apr 05 03:11:48 but still better than dropbox Apr 05 03:11:51 you tried that / Apr 05 03:11:53 ? Apr 05 03:12:43 not yet Apr 05 03:12:45 "here sure upload a file, but you will never have direct access to it again…ahahhaaaaa" Apr 05 03:12:57 lol Apr 05 03:13:35 "but why not send a sharing link with the file location embeded soo far down that your friends wont have direct access either!…ahahhaa" Apr 05 03:14:08 "oh and just to make sure you dont parse to get a direct link, we will change it randomly everytime! ahahhaaa" Apr 05 03:14:20 * StingRay_ loves dropbox Apr 05 03:18:08 sorted out my issue Apr 05 03:18:36 turned out i had support v4 and non support imports causing errors Apr 05 03:18:47 thats why i wanted to get rid of support v4 Apr 05 03:25:29 how can i use setOnDismissListener with a dialogFragment? Apr 05 03:27:36 ari_aaron: i made an activity and set the theme to android:Theme.Holo.Dialog Apr 05 03:28:01 then it pops up like a dialog Apr 05 03:30:08 and how do i get the results? Apr 05 03:32:29 like a normal activity onActivityResult() Apr 05 03:32:41 but thats only for my way i think Apr 05 03:35:54 ari_aaron: it shows it here, the set positive and negative buttons for dialogs http://developer.android.com/guide/topics/ui/dialogs.html Apr 05 03:36:31 ari_aaron: i gave you the options already Apr 05 03:37:05 or some of the options Apr 05 03:37:55 and not a hard search term http://stackoverflow.com/questions/10905312/receive-result-from-dialogfragment Apr 05 04:03:16 Hey guys! New to droid development so sorry if this is obvious, but I've not been able to find anything helpful in several hours of searching. How do you use GridLayout with the support library in Eclipse? It just keeps erroring out: http://stackoverflow.com/questions/15816283/eclipse-and-android-sl-gridlayout-not-working-together-android-support-v7-wid Apr 05 04:03:41 not droid Apr 05 04:03:45 android Apr 05 04:03:53 droid - moto product Apr 05 04:03:53 Sorry, my bad Apr 05 04:04:09 * jug6ernaut_ hates when ppl say they have a droid Apr 05 04:04:15 and when they say they have an android also Apr 05 04:04:26 even more when its a sgs3 Apr 05 04:04:32 * jug6ernaut_ has a lot of hate... Apr 05 04:04:40 :) Apr 05 04:05:10 Heh. No SGS3 here, just a cheap LG. But I've found the development process fascinating. Apr 05 04:05:21 which LG? Apr 05 04:05:33 computerfreaker: that looks like an eclipse error Apr 05 04:05:44 but not entirely sure Apr 05 04:05:45 * jug6ernaut_ avoids the gridlayout Apr 05 04:05:58 I'm off my head on industrial headache tablets Apr 05 04:06:05 do0ob: LGL35G Apr 05 04:06:30 Thanks StingRay_ . At least that would explain why nothing seems to fix it. Apr 05 04:06:46 * computerfreaker has gotten really, really sick of reinstalling Eclipse after hosing it on tests Apr 05 04:07:27 jug6ernaut_: What do you use instead? I need a 3x3 grid for something and GridLayout /seemed/ perfect Apr 05 04:08:02 computerfreaker i found a way not to use it, relitivelayouts linear ext, i could never get a grid layout to work as i wanted it to. Apr 05 04:08:02 but really, I've spent probably... 8-10h+ on this already, and I'm more than ready to consider anything else if it can hold controls in a grid. Apr 05 04:09:00 jug6ernaut_:Meh, might just go with a RelativeLayout then, now that you mention it that sounds like much less of a pita than this GridLayout lunacy. Apr 05 04:11:18 computerfreaker: i think you need to add it as a library project or something Apr 05 04:12:23 g00s: tried that. Tried literally everything I could think of: added the .jar to my project's libs file, added the gridlayout project as a library project and referenced it in my own project, went so far as to uninstall/reinstall the SDK because I didn't think it liked my install location. Apr 05 04:12:43 http://stackoverflow.com/questions/15816283/eclipse-and-android-sl-gridlayout-not-working-together-android-support-v7-wid <--- everything I tried, I listed there Apr 05 04:13:01 All I managed to do was hose my Eclipse install multiple times. Apr 05 04:16:39 computerfreaker: this didn't work ? http://stackoverflow.com/questions/10278358/grid-layout-support-in-android-api-10 Apr 05 04:18:18 g00s: if I understand that correctly, MH/Janusz are saying the way to do it is import gridlayout as a library project and add it as a dependency of the main project? Did that multiple times, no luck Apr 05 04:18:34 The third-party implementation looks like an interesting alternative though Apr 05 04:19:11 so, you read android-sdk-macosx/extras/android/support/v7/gridlayout/README.txt ? Apr 05 04:21:18 i admit though - its too much bullshit for a beginner Apr 05 04:21:48 I'm on Win7, actually, but I read android-sdk/extras/android/support/v7/gridlayout/README.txt. Nothing helpful about getting the library into my project, just a reminder to use android.support.v7.widget.GridLayout instead of GridLayout in my XML Apr 05 04:22:37 And yeah, I'm still a beginner. This is my first real app. And I guess I'm in a bit over my head? Still eager to learn though, assuming it doesn't mean hosing /too/ many more Eclipse installs :P Apr 05 04:31:37 big nerd ranch publishes an android book … right before android 5 release. impeccable timing :) Apr 05 04:37:28 Meh. Tried to add the gridlayout library project to my main project (right-click->Properties->Android->Library->Add), seemed to be ok, came back to properties to double-check and now the library entry is showing a red X instead of the green check Apr 05 04:38:01 Maybe it /is/ an Eclipse bug. Can't imagine why else it would show the ok-status at first and the error-status on second look Apr 05 04:38:25 * computerfreaker will probably just use RelativeLayout and be content Apr 05 04:38:57 no - it wouldn't be eclipse. it should work Apr 05 04:41:24 Can Eclipse handle paths with spaces, then? I've got the SDK installed to C:\Program Files (x86) so the full path to the GridLayout is C:\Program Files (x86)\Android\android-sdk\extras\android\support\v7\gridlayout Apr 05 04:41:58 One thing I just noticed is that when Eclipse approves the library the path has forward-slashes, when it's erroring it's using backslashes in the path, might be related? Apr 05 04:43:20 well, having spaces in your paths is a good way to have a headache Apr 05 04:43:28 Program Files? Apr 05 04:44:26 Default SDK location when installing for all users. Apr 05 04:45:12 It started off in %APPDATA%\Android when I had the SDK install for just me, but that was one of the first things I targeted when this started. So I uninstalled/reinstalled, for all users this time Apr 05 04:45:56 If you think it would help, I could uninstall/reinstall again, maybe just C:\Android or D:\Android or whatever. Apr 05 04:47:04 i think it used to be an issue; not sure any more though Apr 05 04:47:58 I might as well do it then. If I'm going bughunting I might as well eliminate every point-of-failure I can find... Apr 05 04:49:30 And just to make sure I'm doing this right from within Eclipse: File->Import->Existing Android Code Into Workplace, set Root Directory to \extras\android\support\v7\, select the gridlayout project Apr 05 04:50:13 and then, in my main project, right-click->Properties->Android->add library->select the gridlayout project Apr 05 04:50:14 hmm, no ... Apr 05 04:50:55 ok. well, try that first. i haven't used this lib project in eclipse yet Apr 05 04:51:16 it has to be a simple problem Apr 05 04:51:43 That's what I've been trying all along, so I know something in there doesn't work. But I was hoping I was doing something obviously stupid, so you could thump me and I could fix it and be done with. :P Apr 05 04:51:52 Do I need to mess with the build path at all? Apr 05 04:52:05 *Java build path Apr 05 04:52:25 crap, you're going to make me fire up eclipse aren't you Apr 05 04:52:38 * g00s computer creeks and groans Apr 05 04:52:43 No need if you don't want to, I'd just drop back to RelativeLayout. But I'd be grateful if you're willing... Apr 05 04:52:44 Ok, I must be insane or something.. I changed my theme via manifest to Theme.Holo.Light. but my main activity is still for somereason themed as Holo.Light.Darkactionbar Apr 05 05:04:12 Can someone point me to the reference material that tells me how to include a fragment in another view? In this case I am starting in the standard sliding tab navigation that ADT creates for you. I have another XML layout I want to be the content of that. Apr 05 05:06:39 WACOMalt: something like this? http://developer.android.com/training/basics/fragments/fragment-ui.html Apr 05 05:09:22 is anyone experienced with using glsl (openglES 2.0) with android? Specifically, does anyone have experience debugging code? Apr 05 05:09:30 shader code* Apr 05 05:10:10 perfect, thank you computerfreaker Apr 05 05:10:38 np WACOMalt Apr 05 05:15:02 * computerfreaker hopes he didn't kill g00s' Eclipse/computer Apr 05 05:15:14 this is a pain Apr 05 05:16:18 Sorry :/ Not working for you either? Or just a massive pita to set up correctly? Apr 05 05:17:20 its ghetto. hold on, still working on it Apr 05 05:17:47 Sure, thank you! Apr 05 05:19:54 If it's that bad, would you suggest I avoid it entirely? Or is this just one of those unpleasant things I just need to deal with the best I can? (you can answer whenever, I'm in no hurry and don't want to distract you too badly) Apr 05 05:21:01 no, GridLayout itself is fine; its the lame build system / tools / instructions / etc Apr 05 05:21:38 So once I get past the hurdle of getting it into the project, I'm good to go? Apr 05 05:22:29 yeah Apr 05 05:22:37 I know its a long shot but, for some reason when I call "setCurrentItem(index,smoothScrollBoolean)" as Apr 05 05:22:41 setCurrentItem(x,true); My viewpager doesn't do the animation to get to the item..it just appears there immediately. I've tried a lot of things but for some reason it won't work. Does anyone have an idea what could be causing this? Apr 05 05:26:21 Hmmm... I am looking for a way to align a list of numbers on their decimal points horizontally. Any ideas? Apr 05 05:26:40 ex: 12.00032 1.987 7293.02 Apr 05 05:26:57 er, I mean vertical list, aligned horizontally Apr 05 05:27:29 so numbers with greater decimal points going in descending order? Apr 05 05:27:33 I know how to do it in Css+javascript :P but that doesnt help me much here. Apr 05 05:28:03 no, I mean I need each list item shifted left or right so that going down the list, all the decimal points line up Apr 05 05:28:04 WACOMalt: https://developer.android.com/reference/java/text/NumberFormat.html might be helpful at a glance, I'll keep reading it with you Apr 05 05:28:12 WACOMalt, Can we assume a fixed-width font? Apr 05 05:28:13 thanks Apr 05 05:28:55 WACOMalt: looks like the link I posted will work for proportional or fixed-width fonts, should do what you need Apr 05 05:29:14 Yes this certainly looks like it'll do the trick. Thanks yet again! Apr 05 05:29:51 Np ^_^ Apr 05 05:30:24 computerfreaker: i give up Apr 05 05:31:03 g00s: that bad? :/ Thanks for spending so much time helping me, though! Apr 05 05:31:34 i've been losing my patience with android for some time now ;) Apr 05 05:31:39 * computerfreaker mentally marks GridLayout as anathema and decides to use RelativeLayout instead Apr 05 05:31:59 its more of a setup issue in eclipse Apr 05 05:32:05 * StingRay_ is sick of android tooo!! Apr 05 05:32:15 lets all make a song about it Apr 05 05:32:35 Which is why most of the people I found who got it working were using IntelliJ? Because this is Eclipse being stupid, not Android so much? Apr 05 05:32:44 probably Apr 05 05:32:50 yeah, try intellij Apr 05 05:33:31 Although actually, I'm going to hold Android partially accountable too for the terrible lack of docs on this. I've been all over SO today but almost nothing on any official Android resource, from what I can tell. At least, until I got to here. Apr 05 05:34:24 i'll keep trying in my spare time Apr 05 05:34:24 Meh, not familiar with IntelliJ beyond its name, which is why I'm in Eclipse - I know slightly more about it. It's probably not worth the fuss... unless Eclipse breaks more stuff on me. Apr 05 05:34:59 Thanks, I appreciate it! Apr 05 05:35:09 The price is right with Eclipse. Apr 05 05:35:50 what's the Eclipse/GridLayout problem? Apr 05 05:36:19 kevinb: http://stackoverflow.com/questions/15816283/eclipse-and-android-sl-gridlayout-not-working-together-android-support-v7-wid Apr 05 05:36:28 if you think android's lack of docs for gridlayouts, you should see these viewpagers ive been working on for a month and a half :p ive created a lot on my own and have learned a lot but it took patience Apr 05 05:36:47 The tl;dr version is that, no matter what I do, I can't get GridLayout to instantiate in Eclipse. All I can do is hose my Eclipse install over and over again. Apr 05 05:37:07 MajorZero: a month and a half? Daaaaang, you've got some serious patience Apr 05 05:37:51 computerfreaker: you might try just doing the XML by hand. it's not that bad and the eclipse editor isn't that great Apr 05 05:38:19 * monsti is very great! Apr 05 05:38:52 i've used GridLayout with Eclipse, but rarely use the wysiwyg editor Apr 05 05:39:01 kevinb: I did try manually editing the layout xml, but even with the correct namespace set for the GridLayout Eclipse threw up on me. Didn't matter if I dragged-and-dropped the layout or edited it into the XML by hand, Eclipse didn't like it at all. Apr 05 05:39:26 well there is eclipse Apr 05 05:39:29 and lint Apr 05 05:39:47 and google in their great wisdom decided to over lint us! Apr 05 05:40:09 computerfreak: i take this as a learning experience :p ive helped a lot of people who wanted to implement something similar to what I'm doing. Its payed off though. Im going to be releasing something big soon :) Apr 05 05:41:26 kevinb: are you supposed to put the gridlayout-jar in the top level project libs/ ? Apr 05 05:41:33 no Apr 05 05:41:37 you need to import the lib project Apr 05 05:41:45 yeah, ok - thats what i am trying Apr 05 05:41:52 found bad intellij instructions :D Apr 05 05:43:24 * computerfreaker doesn't appreciate random dcs Apr 05 05:43:30 MajorZero: best of luck with your release! Apr 05 05:44:13 MajorZero: what you releasing ? Apr 05 05:44:18 rage ? Apr 05 05:47:39 computerfreaker: are you using linux? Apr 05 05:48:03 computerfreaker: ok, well got it working … Apr 05 05:48:25 first, did you say you were using java 7 ? Apr 05 05:48:32 StingRay_: a social networking application Apr 05 05:48:50 MajorZero Home ! Apr 05 05:48:58 oh god Apr 05 05:49:07 ive coded the entire backend, front end, everything from scratch. Its been such an incredibly journey Apr 05 05:49:22 preview ? Apr 05 05:49:28 do0ob: Win7 Apr 05 05:49:35 g00s: Yep, Java 7 update 17 iirc Apr 05 05:49:53 computerfreaker: well, use Java 6 JDK for one. Apr 05 05:50:08 ...now /that/ is something I never expected to hear. Apr 05 05:50:14 Does Java 7 break stuff? Apr 05 05:50:15 Ill have a preview this coming week. A beta test Im going to be launching at my school. Im almost done finalizing a deal with a hosting company for a dedicated server. Im so nervous but the investors ive spoken to in the area are excited. Apr 05 05:50:19 i use java 7 Apr 05 05:50:35 canadiancow: you do? the sdk requirements still say 6 Apr 05 05:50:44 6 will work Apr 05 05:50:52 i'm on 6 too Apr 05 05:50:52 afaik 7 just gives you new syntax that compiles to the same bytecode Apr 05 05:51:20 anyway i am le tired Apr 05 05:51:24 gnight Apr 05 05:51:26 i had problems with 7, oh well Apr 05 05:51:28 gnight canadiancow Apr 05 05:51:30 MajorZero: well I hope you can take even a fraction of 1% away from facebook, not a fan of facebook me Apr 05 05:51:32 Bye canadiancow! Apr 05 05:51:50 computerfreaker: linux + java 6 seems to be the solution Apr 05 05:52:35 do0ob: so my Win7 box won't be able to do this at all? I'm going to need to set up a Linux partition just for this? Apr 05 05:53:24 StingRay_ , We'll see :p i can tell you its going to be a first of its kind thing with two phases. First one being released soon, the other this summer. I have you guys to thank though for helping me when I was just starting up :-) Apr 05 05:54:09 the thought of using cygwin makes my skin crawl Apr 05 05:54:59 MajorZero: first in what way ? Apr 05 05:55:15 do0ob: I'm thinking more a bootable Linux partition and switching back and forth :/ Not overly excited about that, since 100% of my devwork up to this point has been on Windows. Apr 05 05:55:24 If that's what it takes to get this going I'll probably pass. Apr 05 05:55:50 I have that setup computerfreaker on my laptop Apr 05 05:55:57 and havn't booted into win7 since I got it Apr 05 05:56:50 computerfreaker: you can use windows just fine but the toolchain is native to linux so i never expect it to be perfect in windows Apr 05 05:57:32 xastey`: how was the transition from Win7 to Linux for you/were you familiar with Linux before making the switch? I've got a fairly solid Windows background but little Linux experience so I'm not sure how I'd do making the switch Apr 05 05:57:46 do0ob: got it, makes sense. Few ports of anything are 100% perfect... Apr 05 05:58:18 computerfreaker : yeah I've been using linux for years.. not as a desktop though .. I ended up installing lubuntu on my thinkpad 530 I recently got Apr 05 05:58:25 and its lovely Apr 05 05:58:43 I still have my main desktop as windows.. but its nice not going through hops to install software Apr 05 05:59:02 plus the setup was shorter then when I have to do a fresh install of windows Apr 05 05:59:42 StingRay_ as silly as it sounds, its going to be a social network that even people who dont like social networks, will like. Basically its going to provide you an incentive for just using it, and to obtain its benefits requires little to no input from the user. I cant divulge much about the main premise that its going to be relying on but the first goal is to gather users through a simple social network that focuses on a particular area (th Apr 05 05:59:44 ink how instagram just uses photos for people but this isn't like instagram, its doing something else) and then once i have those users, part two in the summer implements the portion where every1 can receive benefits from it. Apr 05 06:00:51 MajorZero: sounds interesting, I'm not a fan of FB or Twitter (privacy concerns, *especially* about FB) but your first line has me interested. Apr 05 06:01:19 xastey`: interesting idea, I'll have to keep that in mind. Thanks! Apr 05 06:01:57 MajorZero: well I dont think I will hit your demographic Apr 05 06:02:14 dont like anything that plans to make money off me :) Apr 05 06:02:14 the idea behind it is also that these two parts, albeit independent from eachother, will stimulate eachother. (ideally) users will want to use the social network for 2 reasons.either to reap the benefits from i mentioned earlier, for the mere social aspect of it. I really cant say much more now but expect it soon :) Apr 05 06:02:57 oh, actually its more like the other way around :p the whole point of this plan is to actually stimulate 2 markets :) Apr 05 06:03:24 well if it didnt make money from my actions or info Apr 05 06:03:32 you would not do it nor have investors Apr 05 06:03:36 :) Apr 05 06:04:10 and the word social rings alarms for me Apr 05 06:04:42 social in this day and age means an average of self centered slightly dumb mass of living waste Apr 05 06:04:44 :) Apr 05 06:04:56 god I love these headache tablets Apr 05 06:05:59 ^thats true. Social now adays is all about that. I can tell you its not going to be a zynga, or an instagram that aims to try to market peoples photos to companies. Its more for getting information out there. And that too can sound bad because no one likes advertisements but like i said, I cant give out the whole thing :p Apr 05 06:07:56 but in the end, to each his own Apr 05 06:08:15 does anyone know if you can enable GPU overdraw via a command on the device? (i.e., over adb) Apr 05 06:10:17 over adb, not programatically within your app? Apr 05 06:11:27 JakeWharton: doubt you can Apr 05 06:11:38 maybe poss on rooted device Apr 05 06:11:54 on a rooted device i can do anything, obviously Apr 05 06:12:25 MajorZero: correct, over adb shell, presumably as a command run on the device Apr 05 06:13:27 JakeWharton: do you mind the ui going through it's stuff ? Apr 05 06:13:34 yes Apr 05 06:13:34 cause you could fire settings intent etc Apr 05 06:13:36 oh Apr 05 06:14:05 Can i create an entire object that runs its stuff off the UI thread? Apr 05 06:14:19 JakeWharton: at least in the past, the settings provider would watch the settings.db for changes and reload the settings from the db, so you could use sqlite (with root) to change the value Apr 05 06:14:22 so that all its methods are run off the UI thread Apr 05 06:14:51 do0ob: thats default behaviour Apr 05 06:15:13 oh off ? as in not on ? Apr 05 06:15:23 away from the UI thread Apr 05 06:15:33 yeah sorry, I think I'm pilled up Apr 05 06:15:38 do0ob: manage a thread yourself Apr 05 06:16:04 kevinb: thanks, but that's not good enough for the case I'm thinking of. just won't be supported I guess. Apr 05 06:16:23 Just guessing here, but you could possibly encapsulate your own thread and process stuff there when your object's methods are called. Apr 05 06:16:58 so i wouldn't have to put it all in run()? Apr 05 06:17:22 JakeWharton: because of not having root or something else? sqlite3 can do it all from one shell command. (I'm assuming you're using this for some kind of automated testing) Apr 05 06:18:00 do0ob: hang on a sec... I'm fairly sure I saw one of the Android example projects do something like what you're describing (or, technically, a decent workaround to provide what you want) Apr 05 06:18:17 that would be helpful Apr 05 06:18:29 kevinb: yes, I want to programmatically enable it as an option for any device it's supported on. but i think it's best for now just to recommend you hook up a device that already has it enabled Apr 05 06:19:39 I think i'm getting confused with C++ where i created an object and moved it to a thread, java doesn't do that does it? Apr 05 06:20:30 do0ob: In the LunarView example project, the LunarView class should have roughly what you're looking for. run() is basically an infinite while loop that keeps polling various private variables. The LunarView's methods change those variables as needed and run() acts off that. Synchronized blocks keep the whole thing from exploding in race conditions. Apr 05 06:21:09 i'd want to avoid polling, that sounds horrible Apr 05 06:21:53 Not sure there's another way. I'm still not that experienced though (working on my first app) so that doesn't necessarily mean anything. Apr 05 06:22:11 i'm also working on my first app Apr 05 06:23:46 Meh. The polling really doesn't look great, I don't see any place where they yield processing time to another thread. But I'm not sure there's another way... Apr 05 06:24:17 Or maybe you could do multiple threads, one for each method, unless race conditions could become a problem (idk exactly what you're looking to do, if all threads are working on one thing it could be a problem) Apr 05 06:25:42 just pushing database inserts and updates into its own thread Apr 05 06:25:46 so computerfreaker , the eclipse GridLayout thing worked Apr 05 06:26:18 of course it was going to, but the hassle was more about the library project Apr 05 06:26:44 do0ob: maybe just do a separate thread for each method then? As long as you get a lock on the DB I don't think a race condition would be a problem, just need to make sure you don't get too many threads running at once Apr 05 06:27:00 g00s: how on earth did you get it working? Apr 05 06:28:39 well, i mostly just followed the directions … for example, i just copied and pasted the xml from that README - that eliminates any issues you would have with the namespaces Apr 05 06:29:06 the only thing i had to do in eclipse, is create a library project from the sources of the GridView, and then take the top level project and hook it up Apr 05 06:29:39 right-click->Properties->Android->add library->select the gridlayout project? Apr 05 06:29:45 yeah Apr 05 06:30:10 oh wait, its in Apr 05 06:30:32 right click -> Project -> Android -> Library -> Add Apr 05 06:31:04 weird, that it didn't matter if i had 'is a library checked or not Apr 05 06:31:48 That /is/ odd Apr 05 06:31:50 brb trying this Apr 05 06:33:05 When you created a library project from the GridLayout source, did you just File->Import->Existing Android Code Into Workplace, set Root Directory to \extras\android\support\v7\, and select the gridlayout project? Apr 05 06:33:17 so i'm running a few ads on adwords. is there any way for me to determine which ad caused an install? (versus ads that go to market and people leave) Apr 05 06:34:04 xorgate: what app is it? Apr 05 06:34:28 kevinb: FYI, https://twitter.com/romainguy/status/320061590575648768 Apr 05 06:34:56 JakeWharton: awesome, good to know Apr 05 06:36:11 I am trying to learn listview setups. Just passing content from a string array. I am getting an exception on run, here is my stacktrace: http://pastie.org/pastes/7323989/text here is my main activity: http://pastie.org/7324015 and here is my fragment XML with the listview in it: http://pastie.org/7324017 Please can anyone help me track down the exception? Apr 05 06:37:09 oh, also relevant, here is simplerow.xml from layouts: http://pastie.org/7324019 Apr 05 06:38:34 bitcoin app :) Apr 05 06:39:36 indeed :) Apr 05 06:39:56 your stacktrace does not look like a stacktrace Apr 05 06:39:57 well, if the layout winds up being good, it may get taken over by the main dev of armory for PC. Apr 05 06:40:08 I'm far from good enough to do the actual workings. Apr 05 06:41:02 beginning to think maybe most of the listview stuff should be in the fragment class rather than the main class? Apr 05 06:41:17 xorgate: you should probably change the icon, the current one is pretty dated Apr 05 06:41:44 it would have fit right in on windows 95 Apr 05 06:41:57 do0ob what would you suggest Apr 05 06:42:25 some color Apr 05 06:43:30 but you can go hire a designer if you really want a quality icon and header for the play store Apr 05 06:43:58 also why is there a mix of ICS like screenshots and gingerbread ones? Apr 05 06:44:01 mikedg has the best icons Apr 05 06:44:10 yeh starting to think my designer is more 'capable with photoshop' than 'designer' Apr 05 06:44:37 g00s: When you created a library project from the GridLayout source, did you just File->Import->Existing Android Code Into Workplace, set Root Directory to \extras\android\support\v7\, and select the gridlayout project? Apr 05 06:44:38 so, can anyone tell me wtf is going on with my listview? Apr 05 06:44:42 do0ob cause i have jelly tablet and g00s example? Apr 05 06:45:19 xorgate: so hide the header, style the spinners, make it look up market Apr 05 06:45:37 computerfreaker: yeah, i'm pretty sure ... Apr 05 06:45:59 the adt sees the properties file / manifest and knows its a library project Apr 05 06:46:17 Leeds: you're back ! Apr 05 06:47:26 xorgate: they are terrible :D https://play.google.com/store/apps/details?id=com.blau.android.gmoney Apr 05 06:47:46 g00s ah ok :0 Apr 05 06:48:06 g00s: now I'm a step closer :D "Exception raised during rendering: com.android.layoutlib.bridge.MockView cannot be cast to android.view.ViewGroup" Apr 05 06:48:19 computerfreaker: wth Apr 05 06:48:44 g00s: Dunno. But it's a step in the right direction, because it's /not/ the same error I've been staring at for the last two days. Apr 05 06:48:49 do0ob hm i should just use emu for shots then i guess Apr 05 06:49:51 that would be better Apr 05 06:50:01 can't you update your phone to ICS? Apr 05 06:50:17 g00s: actually, no, a step in the wrong direction. "The following classes could not be found: - android.support.v7.widget.GridLayout" Apr 05 06:50:53 AHH. Maybe.... Apr 05 06:51:46 In right-click->Properties->Android->Library, the reference to the support library's GridLayout project errored itself out again. I really do wonder if it's a path problem at this point... Apr 05 06:51:47 xorgate: you could go to digitalpoint and start a contest to create an icon and market header for your app, lots of creative people there, but don't be cheap with the price Apr 05 06:52:11 xorgate: whats the icon for ? Apr 05 06:52:31 as in contexual and functional description ? Apr 05 06:52:35 StingRay_ i privated it to do0ob but here it is anyway https://play.google.com/store/apps/details?id=com.codestare.wordsearch Apr 05 06:53:04 yeah it needs some loving Apr 05 06:53:11 :) Apr 05 06:53:26 i thought the wiki W was pretty clever though Apr 05 06:53:31 my idea OF COURSE Apr 05 06:53:32 spending money on adverts without polishing up the presentation is madness Apr 05 06:53:43 also if your gonna boost a screenshot that big, make sure it stands up to being that big :) Apr 05 06:54:04 StingRay_ what do you mean? Apr 05 06:54:14 the screenshot looks enlarged Apr 05 06:54:24 i mean, in context your word screen looks ok in the app Apr 05 06:54:36 blown to that size in a design sense it looks bland Apr 05 06:55:08 https://play.google.com/store/apps/details?id=com.melimots.WordSearch this is the current 'top' app btw.. awesome icon i think Apr 05 06:55:40 holy crap thats horrid Apr 05 06:56:04 well you should see the others ;) Apr 05 06:56:19 xorgate: I would rethink your in app drawables a bit and get a nice logo and your away Apr 05 06:56:31 thats what i said Apr 05 06:56:44 my in app drawables.. Apr 05 06:56:49 there's not many Apr 05 06:57:07 i know Apr 05 06:57:10 :) Apr 05 06:57:19 but what do you mean? Apr 05 06:57:36 i mean add a bit of "love" to the "design" Apr 05 06:57:51 well i'm a programmer i dont know what 'love' is Apr 05 06:58:23 love = look and feel additions Apr 05 06:58:26 i know when x > y is though Apr 05 06:59:32 opening your app now Apr 05 06:59:45 you're lucky Apr 05 06:59:49 the listview Apr 05 07:00:01 type and alignments are not nice Apr 05 07:00:09 i'm was a designer before i became a developer and it drives me insane how different my app looks on amoled vs lcd Apr 05 07:00:11 also the pallet is odd Apr 05 07:00:58 what I would do here is add more space / padding and smaller type, so the item stays same size but font is smaller Apr 05 07:01:20 StingRay_ 'odd' ? Apr 05 07:01:26 g00s: since the project reference is erroring out again, I think I'm going to try uninstalling and reinstalling the SDK one more time, to a path without spaces, and see what happens. Got a decently good feeling about it. Apr 05 07:01:36 Thanks for all of your help, I appreciate it. No way I'd be this close without that. :) Apr 05 07:02:06 xorgate: well there are such things as organized and relational pallets Apr 05 07:02:09 as in color Apr 05 07:02:38 StingRay_ ah like https://kuler.adobe.com/# Apr 05 07:02:45 exactly! Apr 05 07:02:54 in this case you want complimentary Apr 05 07:03:21 or monochromatic Apr 05 07:03:50 but the point is you still need chroma/luma (tones/levels) etc Apr 05 07:03:57 to match too Apr 05 07:04:11 in a complementary pallet it dont do that for you Apr 05 07:04:11 so you're saying i need a new designer :) Apr 05 07:04:26 no thats too simple Apr 05 07:04:34 hit him with a baseball bat first Apr 05 07:04:43 ouch Apr 05 07:04:53 cause that pizza loading thing is horrid Apr 05 07:04:59 or whatever it supposed to be Apr 05 07:05:13 looks like a bit of doritoes in mono Apr 05 07:05:16 haha Apr 05 07:05:29 well i can't say i disagree Apr 05 07:05:37 StingRay_: those are some fairly impressive meds, I take it? :P A baseball bat is quite the punishment, terrible palette or no... Apr 05 07:05:39 but it's all still a lot better than what I would come up with Apr 05 07:05:51 If I spawn Threads in a Service and create a Handler in that Service, do I need to spawn a new Looper or will the Service have it from its UI Context? Apr 05 07:06:01 * StingRay_ is a vfx/designer/3d artist of 17 years dont forget Apr 05 07:06:05 a friend suggested the game should be more 'playful' with (imo) kiddy style Apr 05 07:06:13 so on this subject I can speak with authority Apr 05 07:06:18 unlike android dev Apr 05 07:06:40 xorgate: thats a demographic choice Apr 05 07:06:50 that would drive design yes Apr 05 07:06:57 but not something a designer chooses Apr 05 07:07:39 hm hm interesting points Apr 05 07:07:45 cause we each choose what we want, and you want to choose the one that gives you the most audience Apr 05 07:07:52 given the type of game Apr 05 07:08:00 kiddy is maybe not something I would go for Apr 05 07:08:02 :) Apr 05 07:08:13 personally i prefer the minimalist style Apr 05 07:08:24 sure, I agree Apr 05 07:08:41 but minimalist != not a lot of design Apr 05 07:09:09 anyone? Loopers in a Service? Apr 05 07:09:27 StingRay_ definitely agree on that Apr 05 07:09:50 but my thoughtprocess also goes like 'fewer things = fewer things to fuck up' Apr 05 07:10:13 xorgate: and my 15 years in console game dev say you should have the words at the top in portrait, or at least have the option in prefs Apr 05 07:10:47 right you said that the other day right? Apr 05 07:10:48 someone did Apr 05 07:10:52 ya me Apr 05 07:11:06 add some more padding round the selector thingy Apr 05 07:11:21 clipping letters or leaving 1 pixel space is not a great look Apr 05 07:11:47 clipping letters? Apr 05 07:11:55 you know the selector Apr 05 07:12:02 when you drag Apr 05 07:12:31 it's width hits the boundaries of the letters Apr 05 07:12:43 ah ok i see Apr 05 07:12:46 really you need some space Apr 05 07:12:51 4+ pixels Apr 05 07:13:34 where the words are, you want the distance from the top word to the top edge the same as between words (vert) Apr 05 07:14:01 that too makes sense Apr 05 07:14:06 these are just opinions btw Apr 05 07:14:16 and i appreciate them Apr 05 07:14:19 I dont mean to seem condescending or anything ! Apr 05 07:14:27 I'm high as a kite Apr 05 07:14:29 kyte Apr 05 07:14:33 kite Apr 05 07:14:33 haha Apr 05 07:14:37 hmm Apr 05 07:14:41 good on ya Apr 05 07:15:36 you see the background col on the words (to search for) Apr 05 07:15:37 whenever i try delaying each step of an iterated forloop, with Thread.sleep, my ui stops responding..is there anyway I can delay each change that happens to my ui and still see the ui function? Apr 05 07:16:03 really that should be the same col in your listView Apr 05 07:16:16 and I would choose the lighter color Apr 05 07:16:33 MajorZero: any chance you can move the ui-changing code into a separate thread from the ui? That would solve your problem neatly, I think Apr 05 07:16:33 the gray Apr 05 07:16:43 ya Apr 05 07:16:44 Anyway, I'm out. Falling asleep at the keyboard (again). Night all! Apr 05 07:17:14 I would make the main board by default an off white color Apr 05 07:17:25 StingRay_ so you say the listview background should have the same color, versus being transparent and showing the background Apr 05 07:17:31 as staring at high constrast is not something I would ask of the user Apr 05 07:17:48 black! Apr 05 07:17:48 ok now it's actually a paper pattern Apr 05 07:18:04 computerfreak thats a negative :( I think i might look into android's countdowntimer Apr 05 07:18:17 xorgate: true with one important distinction Apr 05 07:18:18 high (lol!) contrast meaning 'black on white' ? Apr 05 07:18:26 paper does not GLOW at you Apr 05 07:18:41 see in dynamic range your white is about 10x that of paper Apr 05 07:18:50 just your eyes see white Apr 05 07:18:55 cause they are capped Apr 05 07:19:16 paper dont glow in the dark, but the screen would :) Apr 05 07:19:52 beginning to think design is something i can learn Apr 05 07:19:56 actually the same principal as when you look at a pool ball and see a white reflection of the strip light in it Apr 05 07:20:10 the pool ball is not 100% reflective Apr 05 07:20:21 and it dont have a perfect refactive index Apr 05 07:20:25 but you see white Apr 05 07:20:37 cause the light is giving off above white Apr 05 07:20:59 so when you see the reflection and the surface properties take away luminace, your still left with white Apr 05 07:21:09 but neways I dont mean really make it dark Apr 05 07:21:16 I mean make it a slight offwhite Apr 05 07:21:32 maybe even a preference for color schemes Apr 05 07:21:36 :) Apr 05 07:21:43 right Apr 05 07:21:56 my buddy suggested grabbing a pic from google images to use somewhere Apr 05 07:22:14 erm….. I dont quite know what to say about that Apr 05 07:22:44 unless you then have distinc containers around letters what would always allow seperation Apr 05 07:22:47 not a good idea Apr 05 07:22:50 so i play a puzzle with topic 'ham sandwiches' and i google search ham sandwiches and grab a pic, idunno maybe show it behind the word list or whatever Apr 05 07:23:09 xorgate: maybe if it was very faded Apr 05 07:23:20 again something I could maybe turn off in prefs ? Apr 05 07:23:22 :) Apr 05 07:23:28 haha Apr 05 07:23:42 yeh i see mostly problems with that idea Apr 05 07:24:01 hmm now i crave a ham sandwich Apr 05 07:24:45 not giving you the munchies i hope Apr 05 07:26:20 no I'm not high high Apr 05 07:26:23 I dont do drugs Apr 05 07:26:28 check out these donuts. http://voodoodoughnut.com/ Apr 05 07:26:39 I have a huge headache Apr 05 07:26:46 :( Apr 05 07:26:49 so on industrial codine + paracetamol Apr 05 07:26:52 doughnuts most overrated food ever Apr 05 07:27:33 lol by who Apr 05 07:27:45 StingRay_ i could make a post here https://forums.digitalpoint.com/forums/design.144/ i reckon Apr 05 07:29:01 you kinda want a logo thats simple, but can stand out Apr 05 07:29:09 general comments in those threads are not very helpful though Apr 05 07:29:16 'i like it' Apr 05 07:29:31 i just did one as a place hold for my app thats in dev atm Apr 05 07:29:33 http://sm.deanwray.co.uk/sm_logo.png Apr 05 07:29:40 yeah that's why i like the top app's icon Apr 05 07:34:15 computerfreaker: i ended up doing the most bootleg thing in the world and it works xD I used android's countdown timer to simulate a fake drag of my viewpagers on click of a button, for every tick..and it works Apr 05 07:34:15 StingRay_ at least some tips i can work on myself. thanks, much appreciated Apr 05 07:45:58 hey JuiceSSH Apr 05 07:55:52 ninharp: sup Apr 05 07:55:58 ninharp: how's it going? Apr 05 08:35:11 JuiceSSH, great! i implemented now the check to the donate app! works great Apr 05 08:35:41 the only problem i got is that i dont use the same key in both apps! is there a possibility to check against a specific key? Apr 05 08:36:07 now anyone could build a app with that package name to get rid of nag screens Apr 05 08:36:18 but who cares ... ;P Apr 05 08:37:25 ninharp that's why you check the key Apr 05 08:38:39 http://www.yoki.org/2010/07/31/creating-a-freepaid-app-pair-for-the-android-market/ Apr 05 08:43:12 xorgate, i see, but i cannot change the key if it is assigned! or how could i do this? Apr 05 08:43:38 the donate app is already published! before i got this idea ;P Apr 05 08:49:28 yeeeeer what about that sucker! Apr 05 08:50:12 hi ya'll Apr 05 08:50:45 yehaw Apr 05 08:53:18 Coke had something to do with that ... Apr 05 08:55:04 ok how does one control the color of a editText cursor in code in api9 and up ? Apr 05 08:55:12 I seem to get the impression it's impossible Apr 05 08:55:42 StingRay_: you're working against the natural order of things Apr 05 08:55:49 :) Apr 05 08:55:50 no Apr 05 08:55:57 I'm aiming for consistancy Apr 05 08:56:07 something that google seems not to give 2 shits about Apr 05 08:56:09 :) Apr 05 08:58:21 but it's a style thing Apr 05 08:58:41 a style thing that is api11 above yes Apr 05 08:59:03 hm yeh was gonna say something like that Apr 05 09:11:34 i'm left with having to create a drawable for a very dark theme that still has black text Apr 05 09:11:43 and thats not great really Apr 05 09:15:01 and then you run your app on schnizit skin, and it looks wonky Apr 05 09:16:47 i do what ? Apr 05 09:18:42 StingRay_: exactly Apr 05 09:19:53 you assume too much my friend :) Apr 05 09:20:21 what gives you any impression that my apps visual appearance can be controled my factors outside iteself ? :) Apr 05 09:20:32 my = by Apr 05 09:21:50 pixel perfect is for iOS dev ;) Apr 05 09:23:00 not at all Apr 05 09:23:22 pixel perfect is for an artist Apr 05 09:23:23 :) Apr 05 09:23:36 StingRay_: i asked #inkscape if 0.49 will be available on os x; no answer :( Apr 05 09:24:09 hmmm I really wish I could give you a license of illustrator Apr 05 09:24:56 you dont have PS either do ya ? Apr 05 09:24:59 my build system depends on inkscape for batch rasterization of vector images Apr 05 09:25:06 no, only Lr Apr 05 09:25:26 i really wish the project was healthier Apr 05 09:25:51 i guess thats one of the things in the china / ubuntu deal; they were going to work on new graphics apps Apr 05 09:26:02 hopefully good enough to compete with Adobe, but i doubt it Apr 05 09:26:32 really doubt Apr 05 09:26:41 anyhow, inkscape is fine under linux. i'm on os x though Apr 05 09:26:45 gimp could be better than PS Apr 05 09:26:55 but it lacks a major resource Apr 05 09:27:03 user testing + input Apr 05 09:27:11 there are only a few devs working on gimp Apr 05 09:27:21 exactly Apr 05 09:27:43 adobe have more cleaner x100 that active devs on gimp Apr 05 09:27:47 cleaners Apr 05 09:27:56 god I must be tired Apr 05 09:30:35 I actually want a new image editor Apr 05 09:30:48 and I think I could design a pretty amazing node based one Apr 05 10:06:35 Leeds: go on vacation? Apr 05 10:12:13 what would be the minimum-friction way to add a logcat-export to my app for android 4.1+? Apr 05 10:29:36 p_l: there ? Apr 05 10:32:35 yep Apr 05 10:33:39 p_l: i found a new FF extension called UnloadTab … that totally unloads (not just stops js) Apr 05 10:34:01 tree style tab has been kinda wonky under ff 20 Apr 05 10:36:08 androids SIP api is so lacking :/ Apr 05 10:46:56 Hi all Apr 05 10:47:10 having the same issue as described here: http://stackoverflow.com/questions/7694559/android-compatibility-library-listfragment-not-running-adapter-getview-metho Apr 05 10:47:31 however, the one with the problem (who managed to fix it eventually) never posted how he resolved the problem Apr 05 10:47:33 anyone have any idea? Apr 05 10:48:44 So basically, I have a SectionsPagerAdapter in a FragmentActivity that lets me swipe between tabs.. in the second tab, I am trying to show a listView with a custom row layout and adapter. It seems to work well except for the fact that the View getView() method in the custom adapter is never fired Apr 05 10:49:21 it works fine when not using the fancy SectionsPagerAdapter thingy, but for some reason, as long as I use it, I cant get it to fire the getView() method in my adapter, which means my items are never added to the listView Apr 05 10:55:04 Same problem as here... http://stackoverflow.com/questions/13841333/the-adapter-does-not-call-getview-when-using-listview-in-fragment Apr 05 10:56:02 and your sure there is something for getView to do ? Apr 05 10:56:08 as in you have data backing it Apr 05 10:56:13 and the count is correct ? Apr 05 10:57:20 StingRay_: Ive tested with simply supplying a populated String[] with 4 items Apr 05 10:57:41 paste your adapter Apr 05 10:57:43 pastebin Apr 05 10:58:06 I inserted a Log.d("MyApp", myString[0]); to make sure that the String[] that the Adapter gets actually has items in it Apr 05 10:58:46 StingRay_: I believe the problem has something to do with the SectionPagerAdapter and how I inflate the view for the listView layout Apr 05 10:59:09 hold on.. Ill paste code Apr 05 11:01:58 StingRay_: http://pastebin.com/GJ6MdEDu Apr 05 11:02:54 and the code for the adapter is basically similar to this: https://github.com/Untouchab1e/yubinotes/blob/master/Android/src/com/connectutb/yubinotes/ListNotesListAdapter.java Apr 05 11:03:00 and the View getView() method is never fired Apr 05 11:03:04 and this is a fragment ? Apr 05 11:03:26 StingRay_: this is in a static Fragment class, yes Apr 05 11:03:37 cause there is no view returned Apr 05 11:03:44 ah, thats a typoe.. Apr 05 11:03:45 so the list will bever be visible Apr 05 11:03:49 oh Apr 05 11:03:51 gonna say Apr 05 11:03:58 return rootView; should have been there on onCreateView Apr 05 11:04:03 it sould complain heavy about that Apr 05 11:04:08 just a copy/paste fail from my side Apr 05 11:04:44 can it be that I am supposed to pass something other than getActivity() to the adapter constructor? Apr 05 11:05:02 log the count of the adapter Apr 05 11:05:07 getCount() Apr 05 11:06:38 so override the getCount() method in my custom adapter? Apr 05 11:06:52 well you can if you want Apr 05 11:07:10 can return myInputArray.size(); Apr 05 11:07:45 right.. but I can see stuff if I do Log.d("MyApp", myInputArray[0]); Apr 05 11:07:50 so obviously it has at least one item Apr 05 11:07:58 indeed Apr 05 11:08:02 myInputArray[0] correctly shows "Banana" Apr 05 11:08:15 so now myAdapter.getCount() Apr 05 11:08:26 then myListView.getChildCount() Apr 05 11:08:52 without seeing full source rather than bits Apr 05 11:08:55 hard to say Apr 05 11:09:21 hmm.. interesting Apr 05 11:09:24 and I have had very little sleep, almost at my end of ability to keep eyes open Apr 05 11:09:28 myAdapter.getCount() is 0 Apr 05 11:09:38 so override getCount() Apr 05 11:09:49 with myArraylist.size() :) Apr 05 11:10:10 http://pastie.org/7326343 what on earth is going on? Apr 05 11:10:18 http://developer.android.com/reference/android/content/Intent.html states that this constructor is defined Apr 05 11:10:21 StingRay_: appreciate your help.. but how come getCount returns 0 when the array obviously has items in it? Apr 05 11:10:44 values is a String, uri is a URI Apr 05 11:10:53 matchButtonContext is a Context Apr 05 11:11:43 StingRay_: makes no sense to me at least :P Apr 05 11:13:45 StingRay_: works like a charm now Apr 05 11:14:16 thanks so much Apr 05 11:14:42 anyone? =/ Apr 05 11:14:53 I'm designing an app in which I periodically need to query a bluetooth device for new information. Basically every 4-6 hours it should see if it's connected to the bluetooth device and if so, query the newest data and store it locally for when the next time the app is resumed/started. What would be the most battery efficient way of accomplishing this Apr 05 11:17:41 lite_: alarm manger i think Apr 05 11:17:58 lite_: do you need to keep the bluetooth connection open all the time? Apr 05 11:18:42 Ge0rG, nope, I just want to see if the bluetooth connection is open and if so - request new data Apr 05 11:19:08 StingRay_, I was thinking of the alarm manager, would it be possible to save some data that the app then later would be able to access? Apr 05 11:19:27 lite_: "open" in which sense? if bluetooth is enabled on your device? if the other device is there? Apr 05 11:19:36 http://pastie.org/7326343 what on earth is going on? http://developer.android.com/reference/android/content/Intent.html states that this constructor is defined... Apr 05 11:19:38 if the other device is there Apr 05 11:19:54 lite_: you should use something like sqlite for storing data, that way you can easily display it later on Apr 05 11:20:31 Alright. So create and AlarmManager that queries the device every few hours and store the data using sqlite? Apr 05 11:21:49 WhereIsMySpoon: what are you calling that intent from ? Apr 05 11:21:53 or where Apr 05 11:21:58 lite_: create a service that is launched by the alarmmanager periodically and stores the data Apr 05 11:22:05 from an onClick inside an activity Apr 05 11:22:05 cause hard to say anything without code Apr 05 11:22:52 Ge0rG, seems logical and pretty straight forward - Thanks a lot :) Apr 05 11:24:21 StingRay_: http://pastie.org/7326462 Apr 05 11:24:25 updated it with context Apr 05 11:25:01 Ge0rG, should i start the service or bind it ? Apr 05 11:25:22 WhereIsMySpoon: yeah, why not paste the whole thing ? Apr 05 11:26:34 StingRay_: the whole class? sure, it's 250 lines tho Apr 05 11:26:38 lite_: those are question driven from design Apr 05 11:26:41 i jsut thought i'd give you the important bits Apr 05 11:26:43 lite_: you need to have a BroadcastReceived to be woken up by the AlarmManager; from that you startService(), and it can stopSelf() when its done Apr 05 11:26:59 bummer. yet another usb-serial library... http://www.prolific.com.tw/US/ShowProduct.aspx?p_id=230&pcid=41 Apr 05 11:27:09 thanks. youre awesome Apr 05 11:27:19 why can't the %#*&! just integrate their stuff into usb-serial-for-android?! Apr 05 11:28:27 StingRay_: http://pastie.org/7326504 Apr 05 11:29:19 Hello, I have a question: I am running Android 4.1.2 in the Emulator (via Eclipse). I have set up my laptop's webcam as camera (webcam0), but the Camera app crashes when I try to start it. Can anyone help me with this? Apr 05 11:30:17 tekken card tournament bitches Apr 05 11:33:20 WhereIsMySpoon: from a desgin stand I would implement onClickListener in the activity Apr 05 11:33:28 then you have no problems Apr 05 11:33:46 StingRay_: you mean instead of putting the android:onClick in teh xml? Apr 05 11:33:51 what's the difference? Apr 05 11:34:05 I am developing a c library and have run into a bit of a problem Apr 05 11:34:12 when I run mm -B Apr 05 11:34:20 everything works fine Apr 05 11:34:46 when I run make from the root of the android tree Apr 05 11:35:11 well no your a bit confused Apr 05 11:35:22 you not using any xml named attribs there Apr 05 11:35:30 your creating a new listener Apr 05 11:35:44 oh, yes sorry Apr 05 11:36:01 I get an error telling me that unable to find "annotated_dynamic.c" Apr 05 11:36:12 I can see that this file is from either valgrind or chrome Apr 05 11:36:13 so what do you mean, "implement it in teh activity"? Apr 05 11:36:25 but I do not have such a file Apr 05 11:36:34 how can I debug the build process Apr 05 11:36:49 i.e. see the exact Makefile that is being passed to make Apr 05 11:37:40 WhereIsMySpoon: yes Apr 05 11:37:52 StingRay_: what do you *mean* by that? Apr 05 11:38:17 myActivity extends Activity implements somthingsElse, evenMoreShit, onClickListener Apr 05 11:39:39 StingRay_: android.content.DialogInterface.OnClickListener ? Apr 05 11:39:56 is the fragment a dialog ? Apr 05 11:40:17 well neways … no Apr 05 11:40:33 View……..onClickListener Apr 05 11:41:44 right Apr 05 11:48:08 DevMike, "crashes" ? Could you be more specific? Apr 05 11:48:27 StingRay_: wait, no, i dont think i've explaiend this properly Apr 05 11:48:38 StingRay_: that onCLick is for the button i just created Apr 05 11:49:11 i have some buttons that are dynamically created and removed depending on filters set by the user Apr 05 11:49:28 ok Apr 05 11:49:31 and ? Apr 05 11:49:39 I needed to know that why ? :) Apr 05 11:49:41 StingRay_: so the onClicks need to be set individually Apr 05 11:49:48 I cant just set an onClick for the MatchActivity Apr 05 11:49:59 why ? Apr 05 11:50:19 because each button that is added will go to an activity that displays information specific to that button Apr 05 11:50:37 ok that dont answer my question Apr 05 11:51:04 StingRay_: :S i need each button to have its own onClick so that each one will do something slightly different Apr 05 11:51:10 I cant just set a class-wide onclick Apr 05 11:51:17 erm Apr 05 11:51:24 yeah you can Apr 05 11:51:31 how would that work o.o Apr 05 11:51:34 you "conditionally" do something Apr 05 11:51:38 based on x Apr 05 11:52:26 or you alter the data that your conditionally going to do simething with by any number of ways Apr 05 11:52:58 so what are the variants in what your doing to do ? Apr 05 11:53:49 when a button is pressed, an activity will be spawned that will display the activity that is related to the JSONObject that the button was made from Apr 05 11:54:43 all activities spawned by the buttons will have the same layout Apr 05 11:54:45 just different data Apr 05 11:56:51 ok and whats the unique field/key in the json data ? Apr 05 11:57:10 well neways thats irrelevant really Apr 05 11:57:16 ok Apr 05 11:57:24 myNewButton.setOnClickListener(this) Apr 05 11:57:33 myNew*.setTag(myjson) Apr 05 11:57:49 Override onClick(View v) Apr 05 11:58:09 myJsonObject = (jsomblaa)v.getTag() Apr 05 11:58:21 start my blaa blaa with blaa blaa Apr 05 11:58:27 ok getting really tired now Apr 05 11:58:32 but you understand that ? Apr 05 11:58:35 :) Apr 05 11:59:43 or you could even setTag(indexOfJson) Apr 05 12:00:02 setTag on a view/button takes an object btw Apr 05 12:00:10 the data I need is just the values String Apr 05 12:00:14 yea Apr 05 12:00:23 it makes sense i guess Apr 05 12:00:34 i just need to make the Activity that spawns generic enough Apr 05 12:00:55 so that it can take any data and make the page display it with just one onClick Apr 05 12:01:17 yeah well I think implement onClick will be neater Apr 05 12:01:24 and tag the button will be easier Apr 05 12:01:26 :) Apr 05 12:01:31 it does feel nicer Apr 05 12:01:38 its separated too Apr 05 12:01:56 thanks Apr 05 12:02:06 go get some sleep :P Apr 05 12:02:08 :D Apr 05 12:08:11 i have to finish my editText drawables Apr 05 12:08:26 and looks like android filters bitmapDrawables Apr 05 12:12:56 hello .. why i cant find my app at store if i dont put it in quotes ? "Simple Go" Apr 05 12:12:57 https://play.google.com/store/apps/details?id=gr.com.simple.go Apr 05 12:15:03 cause there are things ranked LOTS higher than your app name that have your app name in Apr 05 12:24:49 oh isee Apr 05 12:31:51 Hello, I have a ListView using an Adapter. I did listview.getCount() and I get that it exists 4 elements. How can I access to each view? Thanks Apr 05 12:32:23 same way the adapter does Apr 05 12:32:30 but why would you want to ? Apr 05 12:32:43 they are for display purposes really Apr 05 12:33:06 I get the ListView from the code, but I don't have access to getView method Apr 05 12:33:32 why do you want to access the adapter ? Apr 05 12:34:05 I need to get each View and find a tag Apr 05 12:34:39 you know how a listView works though ? Apr 05 12:34:43 and an adapter ? Apr 05 12:34:51 and views are recycled ? Apr 05 12:35:26 probably best if you explain "what/why" rather than "what/how" Apr 05 12:35:36 why do you want a tag ? Apr 05 12:37:12 Is there anyway I can use a decimal formatter for the decimal place only? I would like to have unlimited digits to the left side of the deimal is there anyway to do that? The only way I thought of to get the length of the double that I would like to format and then set "that meny"(length of double) #'s on the left side of the equation so that It will never go over and digitis to the left of the decimal will always be printed Apr 05 12:40:36 StingRay_: yes Apr 05 12:41:39 listView.getViewAtIndex() Apr 05 12:42:52 I don't have that method Apr 05 12:44:14 getChildAt Apr 05 12:44:27 It is always null Apr 05 12:44:41 but with getCount() I get 4 elements Apr 05 12:45:16 well that index dont realte to your backing data neways Apr 05 12:45:28 that relates to index of view hierachy Apr 05 12:45:37 and since it's recycling views all the time Apr 05 12:45:51 thats what I mean, I think your asking the wrong questions Apr 05 12:47:51 doing "mContent.getLayoutParams().width -= delta;" for resizing a view in an animation subclass is okay? Apr 05 12:51:41 I looked into String.Formatbut none of them would do what I need. I think I need to concationate "#"'s to the length of the double so it won't be cut of Apr 05 13:05:13 Hello, how can i show an soft keyboard with edittext on top when a click a button? The Edittext should never appear before the click. Apr 05 13:08:15 is there a way to specify my own Intent.putExtra? like say I want to do myIntent.putExtra("com.blah.etc", MyObject); Apr 05 13:09:06 paulovap, set the focus in the button's on click listener Apr 05 13:09:21 paulovap, then the softkeyboard should automaticly pop up Apr 05 13:09:37 ok nvm, found smth Apr 05 13:10:20 WhereIsMySpoon: MyObject needs to be one of the supported types. but otherwise you are free to add whatever extras you like Apr 05 13:10:30 paulovap: you make it visible, then you set the focus to it Apr 05 13:10:31 cketti: yea, i'll just toString it Apr 05 13:10:49 what data type is it Apr 05 13:10:51 tis only a json object Apr 05 13:10:56 oh yeah thats fine Apr 05 13:10:59 indeed :) Apr 05 13:11:04 M$ sql server 2012 has a 1.8GB service pack 1 ;) Apr 05 13:11:12 o.o Apr 05 13:11:12 LOL? Apr 05 13:11:27 did they re-write it? Apr 05 13:11:41 they put some air in exe files ;) Apr 05 13:11:43 WhereIsMySpoon: there's a size limit for intents, though Apr 05 13:11:45 lol Apr 05 13:11:48 maybe it includes some free data Apr 05 13:11:53 lol Apr 05 13:12:04 cketti: i just tested, it works fine Apr 05 13:12:11 mikedg_: thats what i was thinking Apr 05 13:12:12 lol Apr 05 13:12:13 20-30mb is actual database stuff Apr 05 13:12:20 yeah a qemu for itanium CPU and an emulator stored procedure Apr 05 13:12:24 the other 1.79gb is hacks to close security holes Apr 05 13:13:02 :D Apr 05 13:13:05 mssql was like the java of the late 90's early 00's Apr 05 13:13:10 no matter how uch they patched it, peope kept finding holes Apr 05 13:13:31 my/postgre sql ftw Apr 05 13:13:53 to the point that microsoft throttled tcp to prevent outbound worm scanning/spreading Apr 05 13:13:59 O.o Apr 05 13:14:00 they couldnt stop the worms so they crippled the os Apr 05 13:14:01 oh dear Apr 05 13:14:17 well if i can chose between oracle and mssql Apr 05 13:14:20 I think to this day it queues up any more than 10 pending at a time Apr 05 13:14:24 i always take mssql Apr 05 13:14:36 but no idea what they "invent" for 2012 ;) Apr 05 13:14:41 well that's like picking italy or germany in ww2 Apr 05 13:14:49 as always a sql server updates brings with us the OLD visual studio Apr 05 13:14:52 maybe its all of M$'s pr0n that comes with SP1 :D Apr 05 13:14:59 WhereIsMySpoon: loool ;) Apr 05 13:15:02 :p Apr 05 13:15:03 gates in action Apr 05 13:15:07 ahahahaha Apr 05 13:15:10 eww Apr 05 13:15:30 well in the end - the start button gave up ;) Apr 05 13:15:37 :P Apr 05 13:15:56 anyway, i feel this is a bit offtopic :p Apr 05 13:16:14 microsoft bashing is never off topic in a dev channel Apr 05 13:16:31 i use M$ sql for my android servers Apr 05 13:16:39 why? Apr 05 13:16:49 because thats what they taight in community college? Apr 05 13:17:02 *taught Apr 05 13:17:05 because i ship a 3mb msi file with my server software to an IT admin ;) Apr 05 13:17:13 oh, well ok then Apr 05 13:17:19 there is a time and a place, I guess Apr 05 13:17:19 that's all i have to do Apr 05 13:17:45 actually i can do other stuff but in the end this is what's matches with my customers Apr 05 13:22:02 damn i am on a 10TB (!) wire in our local university Apr 05 13:22:12 and this 1.8gb update is still loading Apr 05 13:22:35 10TB ? Apr 05 13:22:45 you sure that right ? Apr 05 13:22:51 sry GB ;) Apr 05 13:22:55 also how are you connected to it ? Apr 05 13:22:58 10TB would be nice xDDD Apr 05 13:23:05 by gbit lan Apr 05 13:23:14 so thats all your gonna get Apr 05 13:23:20 a fraction of it Apr 05 13:23:58 you would need a lot more networking power from your machine to take advantage Apr 05 13:23:59 :) Apr 05 13:23:59 yeah but that doesn't explain the 10minutes ;) Apr 05 13:24:49 as always 80% of the time is in the "99% done" phase ;) Apr 05 13:25:31 Help me rephrase this please: "Vibrate/play sound even if device is muted/set to vibrate only." :) Apr 05 13:25:59 "Make noise even if I told you to shut up!" Apr 05 13:26:07 :D Apr 05 13:26:21 sounds like some rape play Apr 05 13:26:22 annoy user and alienate people around me in the library ? Apr 05 13:26:42 "Make me the entertainer guy in a meeting." Apr 05 13:26:48 "omg wish I didnt buy this app, people at the funeral will never forgive me" Apr 05 13:27:14 its an alarm app :P Apr 05 13:27:26 ill let the user decide :) Apr 05 13:27:32 "Ignore system settings on mute" Apr 05 13:27:36 maybe that's what you want Apr 05 13:28:25 damn i need some coffee Apr 05 13:28:46 i could just imagine some1 delivering a eulogy, interrupted to the music "ah…ah…ah…ah…staying alive…staying alive" Apr 05 13:30:29 im starting to think I shouldnt have this option at all :P Apr 05 13:30:35 dam right ! Apr 05 13:31:12 "the coder found a way, to ignore the system configuration - do you want to beta test?" Apr 05 13:31:22 StingRay_: LOL Apr 05 13:31:25 XDDDD Apr 05 13:34:40 lol the installation of SP1 failed Apr 05 13:35:08 * monsti is preparing for a readmond homestay Apr 05 13:35:24 monsti: >.< Apr 05 13:35:43 only M$ Apr 05 13:35:43 Quacked: "Click this if you are an idiot" Apr 05 13:36:04 that's my favourite button! Apr 05 13:36:10 i think i like monsti's description best Apr 05 13:36:22 "do you want to beta test" lolz Apr 05 13:36:58 "¡ fiesta!" Apr 05 13:37:00 reminds my on my old amiga 500 Apr 05 13:37:16 in the end you have to install a hack for a crack of a patch Apr 05 13:39:57 monsti: your local pipe does not impact the narrowness of pipes upstream from you :P Apr 05 13:40:05 monsti: except this is 2013 :p Apr 05 13:44:13 WhereIsMySpoon: well some methods never change... Apr 05 13:44:18 D: Apr 05 13:44:22 no idea? :/ Apr 05 13:44:49 WhereIsMySpoon: in 2013 you install a patched rom from a chinese guy with a russion tool that modifies the adb driver from a filehoster Apr 05 13:45:01 :| Apr 05 13:45:14 monsti: and the resulting system will randomly half-reboot Apr 05 13:45:28 or magically fix any errors ;) Apr 05 13:45:31 and eat battery like it was going out of style Apr 05 13:45:46 i did this with a small samsung handy galaxy mini (early edition) Apr 05 13:46:44 i love the installation howtos of these guys Apr 05 13:46:53 the first step is always the same Apr 05 13:46:56 1) root your device Apr 05 13:58:36 damn i cant get the hang of objectanimators Apr 05 13:58:47 completely weird unexpected stuff is happening Apr 05 13:59:11 there is a really easy solution Apr 05 13:59:16 sorts everything out Apr 05 13:59:25 yeh Apr 05 13:59:37 target gingerbread Apr 05 14:00:12 :P Apr 05 14:00:59 * gaz` inflicts pain on StingRay_'s testicular using a frozen trout Apr 05 14:01:06 xD Apr 05 14:01:18 i like gingerbread o: Apr 05 14:01:28 god damn it im confused Apr 05 14:01:43 ok - let's face it Apr 05 14:01:52 * monsti renames Tuesday as Updateday Apr 05 14:03:35 guys, is it possible to get root using system("su"); in native code? Apr 05 14:03:55 no Apr 05 14:04:06 there is no "su" installed on vanilla devices Apr 05 14:04:15 you have to hack & root the device using 3rd party tools Apr 05 14:04:22 http://su.chainfire.eu/ Apr 05 14:05:17 (afte being rooted / having root authority already of course) Apr 05 14:05:18 monsti, ok, if I rooted it and I have su so if I call system(su) in C code then this process will have id 0? Apr 05 14:06:26 capella, thanks, this is supersu author's page Apr 05 14:06:38 ok guys, srs talk time Apr 05 14:06:48 yep - good reference on how to use .... Apr 05 14:07:50 all info I found is how to execute shell commands with root permission Apr 05 14:08:02 and? Apr 05 14:08:20 but I need to run my own process with id 0 Apr 05 14:08:47 ive got some srs dalvik vs jvm problem Apr 05 14:11:08 capella, I've already started to think that I have to write separate application and run it from main application using su -c Apr 05 14:11:18 codinho you'd be correct Apr 05 14:11:26 Chainfire, really? Apr 05 14:11:27 yah like that Apr 05 14:11:34 oh Apr 05 14:11:36 so sad Apr 05 14:12:24 ok is there any info about best approach of doing such things? Apr 05 14:12:29 fwiw: I learned how to su from that page and bumped into the gobbler req ... sees its been updated now .... nice ! Apr 05 14:12:55 if i got everything correctly then on the jvm if a failure to allocate memory happens, gc is provoked, weakhashmap entries should be cleared (whatever entries are eligible for that) and if memory is still insufficient an OOM error is thrown Apr 05 14:13:22 shouldnt this mean that in the catch block of the OOM error the weakhashmap size should be less? Apr 05 14:14:41 codinho write some native code to do whatever you need, or call back to Java (see how Am and Pm commands are implemented in Android, you can do this yourself as well) Apr 05 14:15:20 balls2thewall you're thinking of softreferences, not weakreferences, I think Apr 05 14:16:32 the reference type is irrelevant. im more concerned about the chain of events. when im in the OOM catch block can i assume that whatever references were eligible for clearing were cleared Apr 05 14:17:19 I thought softrefs were….the sticky kind Apr 05 14:17:20 no Apr 05 14:17:40 well i think it works like that in modern android Apr 05 14:17:45 older versions have issues Apr 05 14:18:08 if you are borderline you could essentially keep doing OOM with the same size allocations and eventually get it Apr 05 14:19:46 Chainfire, is it possible to put linux executable binary in android application? Apr 05 14:19:52 StingRay_ weakrefs get cleared if the object they reference disappear, softrefs give up the object whenever (useful for cache mechanisms) Apr 05 14:20:02 codinho yes Apr 05 14:20:30 could you please tell me where I can read about it? Apr 05 14:21:44 weakrefs get cleared in the first gc. softrefs get cleared after the weakrefs are cleared and memory still isnt sufficient Apr 05 14:21:52 sorry I'm really newbie in android sdk things, just want to figure out about it Apr 05 14:22:15 Hey, I got a question maybe you can direct me in the right direction... I have a ViewPager. Its made of one Fragments. Each Fragment is a ImageView with an image loaded using a switch case block, based on the position. If the position is 0 for instance, a certain image is loaded. If its position 1, a different image is loaded etc. I binded a TextView variable using getActivity().findViewById inside the fragment class so I can cha Apr 05 14:22:21 codinho I'm not sure if there is an article to read regarding this ... but you can use the NDK to build libraries and include those in your app. Start with that. Then it's just a matter of getting the NDK to output a normal executable instead of a library ... Apr 05 14:22:24 activity. So using the same switch case block in the Fragment class, once a picture is loaded, that TextView is also updated accordingly. So if image 0 is created, TextView gets the title of the image. Apr 05 14:22:37 My problem is, once a Frgment gets called in the Fragment getItem(int position) method in the parent Activity, its basically creating 2 Fragments, so it can load 2 images to memory. This messes up my switch case block. Apr 05 14:22:45 The images do get loaded in the right order and everything is ok, but I keep getting the next image title because of the double getItem() call, instead of the current item. Apr 05 14:23:13 Anyway to fix this? Apr 05 14:23:14 Chainfire, I'm already have my application which have native libraries Apr 05 14:23:33 Chainfire, so I just need to build binary and thats all? Apr 05 14:23:51 balls2thewall you are of course correct. not sure what I was thinking just now Apr 05 14:24:57 codinho yes, just let it build an executable instead of a library, and call that file through su ... Apr 05 14:25:05 you'll have to figure out the path somehow Apr 05 14:25:34 also you might need to chmod it, I'm not sure Apr 05 14:26:19 Chainfire, ok, I see, thanks a lot! Apr 05 14:32:59 Chainfire: what is the origin of chainfire Apr 05 14:33:41 Hello. I have a ListView using a BaseAdapter. getCount() returns 4 elements, because I have 4 rows. How can I access to each element? Apr 05 14:36:29 Browser: getItem(position) Apr 05 14:37:52 cketti: to do that, Should I do first getAdapter() ? And then with the Adapter getItem(position) ? Apr 05 14:39:35 you can use ListView.getItemAtPosition(). but be aware that adapter position != listview position if your listview contains header and/or footer views Apr 05 14:44:42 cketti: my APP stops working Apr 05 14:44:58 http://stackoverflow.com/questions/15835824/iterate-listview Apr 05 14:45:50 Don't touch the listview's views outside of Adapter#getView Apr 05 14:46:53 I need to get the height of an ImageView, so for that reason I am trying to iterate the ListView Apr 05 14:47:09 :S how do you make text big in a TextView? I tried tv.setTextAppearance(this, android.R.attr.textAppearanceLarge); (tv is a TextView) but the text appears to just be the normal size Apr 05 14:47:55 setTextSize() ? Apr 05 14:48:22 setTextSize(somthingHuge) ? Apr 05 14:49:00 * WhereIsMySpoon tries it Apr 05 14:51:31 Why is it so complicated to add a simple title to an image in a ViewPager?!? Apr 05 14:51:36 why make life so difficult? Apr 05 14:52:26 just because getItem gets called twice... why does it have to return the wrong position??? whats the idea here? Apr 05 14:52:48 vangi__: you maybe done something wrong ? Apr 05 14:53:29 it all works, it just returns the position of the next image because getItem gets called twice. So I get the right image, but it sets the title for the next image... Apr 05 14:53:51 it doesn't return the wrong position Apr 05 14:53:58 you're just doing it wrong :p Apr 05 14:54:18 well obviously :) Apr 05 14:54:31 I start teh app Apr 05 14:54:49 I get image from position 0 (I use a switch case) Apr 05 14:55:02 but the text i get is from position 1 Apr 05 14:55:56 I understand getItem gets called twice to load 2 images to memory Apr 05 14:56:21 vangi__, only set the text upon fragment visibility Apr 05 14:56:34 or control the textview from your pageradapter Apr 05 14:56:37 hey all... trying to figure out how to copy a file to my nexus 4. Any file. txt file, .apk file, anything. I've followed the guide which makes me a developer and i've mounted the drive in linux, but when i create a text file in the mounted folders, nothing appears on my phone Apr 05 14:56:38 not from your fragment Apr 05 14:56:53 You mean set it from the parent activity? Apr 05 14:56:56 rawblem, easiest to just use an mtp client Apr 05 14:57:18 vangi__, no Apr 05 14:57:24 rawblem: and if you use mtp, hope your not on a mac Apr 05 14:57:32 he said linux Apr 05 14:57:38 and mtp works ok on mac Apr 05 14:57:42 it's just so goddamn annoying Apr 05 14:57:43 pfn, I have the switch case set in onCreateView() Apr 05 14:57:52 StingRay_, i'm on fedora Apr 05 14:58:00 almost as bad Apr 05 14:58:02 :) Apr 05 14:58:05 rawblem, you put it in /sdcard Apr 05 14:58:16 pfn, in that switch case I set the image source, and the text itself Apr 05 14:58:39 vangi__, you can't do that, because you can't guarantee that only one fragment will have its view created at a time Apr 05 14:58:48 and particularly, it might not be the fragment that is currently visible Apr 05 14:58:54 hello Apr 05 14:59:43 pfn, so at which point do I set that TextView? Apr 05 14:59:53 vangi__, when the fragment becomes visible Apr 05 15:00:57 sometimes onResume works, sometimes it has to be through the pageradapter Apr 05 15:01:14 pfn, browsing on nexus4, i find the sdcard folder. When mounting in linux, it matches to /media/nexus4/Internal storage however... if i echo "blah" > /media/nexus4/Internal storage/blah.txt, it doesn't persist Apr 05 15:01:15 if I signed an apk using eclipse, can I use the same keystore to sign one using intellij? Apr 05 15:01:51 pfn, hmmm Apr 05 15:01:55 rawblem, how precisely are you mounting... you don't need to be a developer to mount... Apr 05 15:02:04 tnzr, yes Apr 05 15:02:10 why not Apr 05 15:02:18 pfn, http://www.theandroidsoul.com/how-to-mount-nexus-4-on-linux-for-transferring-files/ Apr 05 15:02:33 pfn, alight I'll try to see how to add it to the FragmentPagerAdapter Apr 05 15:02:40 involved tapping 7 times on build, adding some stuff to /etc/udev/rules.d/51-android.rules Apr 05 15:02:43 vangi__, the enabling developer mode was superfluous Apr 05 15:02:45 installing mtp tools Apr 05 15:03:01 er, rawblem Apr 05 15:03:03 finally, mount command is mtpfs -o allow_other /media/nexus4 Apr 05 15:03:10 enabling developer mode is absolutely unnecessary Apr 05 15:03:21 has anyone here used the soundcloud java wrapper? Apr 05 15:03:23 pfn, was step 1 in the page here ;) Apr 05 15:03:36 pfn, is there a way to get the current position of a returnd fragment inside the PagerAdapter? Apr 05 15:04:07 pfn, I mean FragmentPagerAdapter Apr 05 15:04:24 vangi__, there's a pageSelected callback or some such, use it Apr 05 15:04:56 Hello. I have a ListView using a BaseAdapter. getCount() returns 4 elements, because I have 4 rows with 6 images. I need to get the ImageView which has a specific tag. What is the best way to do it? http://stackoverflow.com/questions/15835824/iterate-listview Apr 05 15:05:01 pfn, ahh alright Ill check out this method! thank you!!!! Apr 05 15:05:22 rawblem, make sure you have a notification that says "Connected as a media device" when you connect the phone Apr 05 15:05:31 rawblem, also make sure you have your phone unlocked while interacting with it via mtp Apr 05 15:05:38 a pin/password lock will prevent mtp access Apr 05 15:06:00 rawblem, and moreover, this conversation belongs in #android, not -dev Apr 05 15:07:23 pfn, ok sorry... someone in #android pushed me to here ;) Apr 05 15:07:44 they were wrong Apr 05 15:23:11 am I correct in thinking that there isn't a way to send an intent which will pull up apps that can send me back ACTION_SEND_MULTIPLE responses? Apr 05 15:23:36 the closest I see is GET_CONTENT, which appears to only return ACTION_SEND responses, basically. Apr 05 15:24:05 (I mean, single chunk of data rather than multiple data) Apr 05 15:26:56 Hey guys i'm getting a FATAL EXCEPTION: AsyncTask #1 Apr 05 15:26:57 http://pastebin.com/CwJLtupj Apr 05 15:26:59 :S Apr 05 15:28:17 http://imgur.com/jacoj Apr 05 15:29:08 coco89, put a try catch and show us the exception Apr 05 15:29:10 lol kk Apr 05 15:29:28 http://pastebin.com/5xi5MgZU Apr 05 15:30:11 coco89, put a try catch in the asynk task and show us the exception Apr 05 15:30:32 He already pasted the excecption. Apr 05 15:31:50 he pasted " thread exiting with uncaught exception " Apr 05 15:32:31 I see at least two exceptions + an explaination why it failed. Apr 05 15:33:00 coco89: The stacktrace contains more than enough information. Short: You're probably trying to update the UI from a background thread. Apr 05 15:33:08 Toast, in this case. Apr 05 15:33:59 I really think the asynctask api needs to be altered to avoid implicit references to the enclosing activity Apr 05 15:34:16 kakazza, I've no idea what they mean, I've copied this from a tutorial online Apr 05 15:34:24 like exactly how i is Apr 05 15:34:26 *it Apr 05 15:34:26 it's incredibly common to create them as an inner class, which is essentially a bad idea. Apr 05 15:34:52 Not really, since they're not meant for stuff that's going to take very long Apr 05 15:35:08 coco89: I doubt it. The tutorial probably didn't use a Toast in doBackground. Apr 05 15:35:16 I think they are generally used for network operations, in practice -- and it's quite common to change orientation during that time Apr 05 15:35:33 either that, or at least put a note in the docs warning about it much more explicitly Apr 05 15:35:49 "AsyncTasks should ideally be used for short operations (a few seconds at the most.) If you need to keep threads running for long periods of time, it is highly recommended you use the various APIs provided by the java.util.concurrent pacakge such as Executor, ThreadPoolExecutor and FutureTask." Apr 05 15:36:08 yes, but it's entirely unclear from that what the actual problem is. Apr 05 15:36:20 Anyway, either use runOnUiThread or use ummm, what's it called... onProgressUpdate I think Apr 05 15:36:42 kakazza, it had it http://www.youtube.com/watch?v=5SP7a2thq6g Apr 05 15:37:30 Even sample code from the google api client has this sort of bug; so it's not exactly an obvious sort of thing Apr 05 15:37:47 coco89: I'm not going to watch that video. Apr 05 15:38:07 kakazza, you don't haev to lol I just wanted to show that I've copied it exactly Apr 05 15:38:11 Point to the time where he's using a Toast. I skipped through, I did not see a Toast. Apr 05 15:39:21 Anyway, the answer has been given already. Apr 05 15:39:40 http://youtu.be/USzAbMTK66s?t=3m47s Apr 05 15:39:48 And given the stacktrace, all Google results will return the correct answer. Apr 05 15:39:55 sorry it was the previous one Apr 05 15:40:36 I'm confused so what was the problem and how do I solve it :S Apr 05 15:41:18 17:33 coco89: The stacktrace contains more than enough information. Short: You're probably trying to update the UI from a background thread. Apr 05 15:41:19 17:33 Toast, in this case. Apr 05 15:41:31 Oh I see Apr 05 15:41:38 ah, I've taken them out and it works now Apr 05 15:41:39 Read the backlog, use Google. And his program probably works because his Toast is in the "else" branch, thus probably never executed in his videos. Apr 05 15:41:40 that's so strange :S Apr 05 15:41:49 It's not strange. Apr 05 15:41:51 why did he do a toast, it worked for him Apr 05 15:42:11 It's in his else branch from what I can see. His code probably crashes too. Apr 05 15:42:21 lol Apr 05 15:43:06 kakazza, thanks Apr 05 15:43:09 Google "toast asynctask doinbackground" or similiar. Apr 05 15:43:16 okay will do Apr 05 15:43:21 * coco89 will probably not use his tutorials again Apr 05 15:43:26 second bug this time! Apr 05 15:43:40 could it be because he's using an older version of android? Apr 05 15:44:09 The videos are from 2011, so some bugs are probably because of that. Like the NEtworkOnMainThreadException Apr 05 15:44:23 kakazza, you have a good memory Apr 05 15:47:13 But really, you should familiarize yourself with reading and interpreting strack traces. At least google them :) Apr 05 15:48:13 yeah for sure, I will do thanks Apr 05 15:49:43 brb food Apr 05 15:57:42 I've a problem coding native method http://nopaste.info/147cbe925a.html :( Apr 05 16:10:43 hello Apr 05 16:10:54 i've used eclipse adt Apr 05 16:13:00 sorry Apr 05 16:14:39 http://picpaste.com/Untitled-4vn48GPz.png Apr 05 16:14:46 but always stuck to that page Apr 05 16:14:55 yes i've updated Apr 05 16:15:02 but still Apr 05 16:16:15 is there a good 3rd party android profiler? Apr 05 16:20:02 I still don't know what it is about AsyncTask that's blocking when using HttpURLConnection Apr 05 16:21:03 you're probably using it wrong and causing blocking operations to happen on the UI thread Apr 05 16:21:16 pastebin some code, maybe someone will help Apr 05 16:21:34 JakeWharton: possible. Hold on... Apr 05 16:22:40 JakeWharton: https://github.com/jottinger/alcyone/tree/master/alcyone-control/android/src/main/java/com/redhat/osas/alcyone Apr 05 16:22:50 I've a problem coding native method http://nopaste.info/147cbe925a.html :( Apr 05 16:23:55 how can i pass the sdk.dir parameter of the ant build.xml file from an env var ? Apr 05 16:23:59 (on windows) Apr 05 16:24:11 the client updates three textviews in the UI; perhaps that's the source? What happens is that on the second call via the client, it blocks on getting the inputstream Apr 05 16:36:54 So I've tried modifying the code so that it reads my own web service but nothing is returned and i'm getting the following error http://pastebin.com/7AmJjUmA Apr 05 16:37:40 Do I not have a valid JSON thing or something Apr 05 16:38:03 your server is returning HTML, not JSON Apr 05 16:39:17 Leeds, I see I thought print(json_encode($output)); Apr 05 16:39:17 would output everything in json Apr 05 16:39:38 yeah, PHP? this isn't the place... Apr 05 16:39:53 heh okay Apr 05 16:39:54 brb Apr 05 16:40:44 You could just view your output in a browser Apr 05 16:41:57 gah, I still odn't know why requesting the inputstream fails on the second call Apr 05 16:45:43 coco89: print the output from the java/android code, Log.v(TAG,foo) Apr 05 16:45:48 coco89: verify its only json Apr 05 16:46:15 ok Apr 05 16:47:33 I have solved my previous problem making a package inside the tessLibrary instead of make a new library. but I really don't understend why I can't use 2 native library Apr 05 16:50:37 any eclipse users here? does anyone know why eclipse no longer allows me to hit the 'run' button if I've got an android xml file open? Apr 05 16:52:18 is your xml valid? Apr 05 16:58:13 real gradle support can't come soon enough Apr 05 16:58:47 then i might actually ditch intellij Apr 05 16:59:12 If, in XML, I give a TextView the 'includeFontPadding="false"', should the boundaries of the TextView not hug the letters in itself? For some reason I still see some blank space above the letters in my TextView, I'm using the Impact font as well. Apr 05 16:59:13 i just use 'cat' Apr 05 16:59:58 birbeck: i've enjoyed working in intellij, what are you planning to move to? Apr 05 17:00:26 back to eclipse when adt gets proper gradle support Apr 05 17:01:41 i've had success with maven, but i need a proper build tool. i was toying around with spoon yesterday, and i want to start generating my AndroidManifest.xml at build time Apr 05 17:07:18 time for annotations, I guess. Apr 05 17:19:37 Hey guys! Anyone familiar with the process required for getting the support library's GridLayout working in Eclipse? I tried importing it as a library project and adding a reference from my main project, but it's not working. Tried a bunch of other stuff too http://stackoverflow.com/questions/15816283/eclipse-and-android-sl-gridlayout-not-working-together-android-support-v7-wid Apr 05 17:31:26 awesome, so I've got rid of that error I had and now the webservice outputs json for real i guess Apr 05 17:31:39 but my textview still isn't showing anything from there http://pastebin.com/6M9iiahH Apr 05 17:31:40 :S Apr 05 17:36:06 how do you know therese is real data? the onPostExecute could just getting result as null Apr 05 17:36:14 *there Apr 05 17:36:56 oh shit it works Apr 05 17:36:58 :D Apr 05 17:37:00 whaaaaaa Apr 05 17:37:01 magic Apr 05 17:46:19 Any sufficiently advanced technology is indistinguishable from magic Apr 05 17:47:12 lol Apr 05 17:47:43 ikr Apr 05 17:48:02 So is any sufficiently difficult-to-find bug Apr 05 17:51:01 Meh. Anyone got any idea why, when I'm adding a reference to a library project, Eclipse will initially mark it as ok but subsequently refuse to create the reference? I think that's finally what this GridLayout thing boils down to. Apr 05 17:54:58 haven't used eclipse in a while, but don't you just add the support jar in the libs folder and it just works? Apr 05 17:55:55 Nope. :/ Didn't work for me, at least Apr 05 17:56:28 I was in here last night, general consensus was that I needed to add the gridlayout stuff as a library project in Eclipse and reference it from my main project. Apr 05 17:56:38 But for some reason Eclipse isn't making that reference. Apr 05 17:57:36 I wonder... Apr 05 17:57:47 * computerfreaker is about to reinstall Eclipse for the 5th time or so now Apr 05 17:58:32 honk? Apr 05 17:58:34 IDEA ftw? Apr 05 17:58:39 user error rtfm Apr 05 17:59:13 Not user error Apr 05 17:59:26 Lack of docs if I'm right... wager I'm still wrong though Apr 05 18:02:19 computerfreaker: i dont think the problem is eclipse ;) but use jdk 6 instead maybe Apr 05 18:02:56 g00s: my last desperate guess is that Eclipse isn't liking being on a different partition than the SDK. So... one last reinstall before I downgrade to JDK 6 Apr 05 18:03:06 like i mentioned last night, i was able to do this in eclipse, and copied & pasted the README xml - and it worked on my pos froyo phone Apr 05 18:03:23 >.> Apr 05 18:03:38 Honestly that's the only reason I'm still working on it. Otherwise I'd have given it up as broken. Apr 05 18:05:06 just booked my io airfare Apr 05 18:11:22 how can I do a file upload were the file is the post body with spring RestTemplate Apr 05 18:12:49 i just accidentally discovered how noise reduction works Apr 05 18:13:12 I am doing motion tracking based on color and its very cpu intensive to analyze every pixel, so I started doing every other pixel on every other line (dual interlaced) Apr 05 18:13:14 Is there anyway I can delete the java.lang and use the apache api instead Apr 05 18:13:44 I found that it reduced noise by ~%50 without hurting legitimate cluster detection Apr 05 18:13:53 I just reduced the number of pixels required in a cluster Apr 05 18:14:22 agy2154: apache API for what? Apr 05 18:14:53 Anyone know of library that provides a view that does something similar to what Chrome does with multiple tabs in the phone version? Apr 05 18:15:45 dreamreal, So I can use StringUtils. I want to repeat the #s in my decimal formatter to fit the whole numeber so i can only change the decimals. Apr 05 18:17:14 How do I referance my activity from a dialog fragment? I'm getting "No enclosing instance of the type HomeScreen is accessible in scope" Apr 05 18:17:48 agy2154: why would this mandate getting rid of java.lang? Apr 05 18:18:33 dreamreal, my bad i didn't know what I was really thinking Apr 05 18:21:08 ari_aaron: what have you tried? Apr 05 18:21:10 g00s: "java.lang.ClassCastException: com.android.layoutlib.bridge.MockView cannot be cast to android.view.ViewGroup" I'm going to try JDK6. Apr 05 18:21:43 i've never seen that error before Apr 05 18:21:45 ari_aaron: getActivity() Apr 05 18:22:32 all right, this is working at laaaaast Apr 05 18:24:27 Well, for whatever reason, apache's http components works, and HttpUrlConnection does not. I do not know why. Apr 05 18:26:15 How can I access the main activity from within a dialogfragment? I'm getting "No enclosing instance of the type HomeScreen is accessible in scope" Apr 05 18:26:28 http://pastebin.com/EhLQ58ZT Apr 05 18:27:29 ari_aaron: getActivity() Apr 05 18:27:33 ^ just before you pinged out Apr 05 18:28:04 it tells me it needs a Cast Apr 05 18:28:28 what exactly is HomeScreen Apr 05 18:28:39 my main activity Apr 05 18:29:05 the activity that is launching your fragment? Apr 05 18:29:10 public class HomeScreen extends FragmentActivity Apr 05 18:29:12 yah Apr 05 18:29:30 ...I don't think it's meant to be used with "this" that way, I could be wrong though Apr 05 18:29:31 then, cast away :) Apr 05 18:30:23 as an Object? Apr 05 18:30:43 ... what do you need it as? Apr 05 18:31:03 i want to call a function from it. Apr 05 18:31:23 getActivity.changeDaf(12); Apr 05 18:31:54 getActivity() in a fragment returns the parent activity. In your case, if you launch your DialogFragment from your HomeScreen activity, then getActivity() will return the instance of HomeScreen that launched your activity Apr 05 18:32:15 so why can't i call a function from that? Apr 05 18:32:17 (bonus level: insert generic warning about tight coupling) Apr 05 18:32:43 ari_aaron: did you cast it yet? Apr 05 18:33:00 I tried as an Object and it didn't work either. Apr 05 18:33:29 getActivity.changeDaf(12); <---- shouldn't that be getActivity().changeDaf(12); Apr 05 18:33:30 ? Apr 05 18:33:31 maybe you should learn how to program before trying to write an android app. Apr 05 18:33:39 the method is undefined for that object Apr 05 18:33:48 computerfreaker: that's what i meant Apr 05 18:33:55 i din't know java Apr 05 18:34:00 you should learn it Apr 05 18:34:06 it's going to come in handy. Apr 05 18:34:09 that's what i'm doing :) Apr 05 18:34:24 How is that method defined? Apr 05 18:34:38 I would recommend learning pure java before you try your hand at android development :p Apr 05 18:35:17 what do i need to referance to call a function from my main activity? Apr 05 18:35:32 actually wait... no, you can't do it that way at all, I don't think >_> Read up on intents, pretty sure inter-activity communication requires you to use one Apr 05 18:36:12 Cat it to your activity; ((HomeScreen) getActivity()).changeDag(12) Apr 05 18:36:21 *cast Apr 05 18:37:08 thanks, f2prateek! Apr 05 18:39:02 ari_aaron: just because that worked doesn't mean you should use it. The point of a fragment is to be able to be re-used by multiple activities, so it should work independently of it's container. If it does need to be coupled to the activity use an interface, or even better, use an eventbus. Apr 05 18:39:41 ok Apr 05 18:47:46 omgwtfbbq it works! Apr 05 18:47:57 g00s: you were right, Java 6 ftw! Thank you! Apr 05 18:48:01 omgwtfbbq? Apr 05 18:48:13 computerfreaker: seriously? O.o Apr 05 18:48:26 Yeah, seriously. Apr 05 18:48:34 glad you got it working ! Apr 05 18:48:36 o___O Apr 05 18:48:55 All that fuss with Eclipse paths and whatnot, I finally folded and installed Java 6 and uninstalled Java 7. It worked immediately afterward. Apr 05 18:49:01 i've had problems with JDK 7 & Android too, but i uninstalled it a while ago - Apr 05 18:49:20 i thought things changed since then Apr 05 18:49:34 I would probably never have suspected the JDK if you hadn't pointed it out as a failure point. Thank you! Apr 05 18:50:41 does anyone have a good site i could go to that has information on sorting objects in an ArrayList? Apr 05 18:51:59 pretty interesting how Evernote does usability http://www.fiercedeveloper.com/story/iterative-app-testing-how-evernote-refined-way-it-updates-features-and-desi/2013-04-05 Apr 05 18:52:16 http://lmgtfy.com/?q=java+sort+arraylist Apr 05 18:52:32 i was surprised to see that they spent so much on usability specialists (40K+) and then couldn't prototype the solution fast enough Apr 05 18:53:08 That website should refine their design Apr 05 18:53:21 fiercedeveloper? yeah, it looks like 90s Apr 05 18:54:03 i hope google releases a free A/B testing lib/service soon, like Amazon has for their android devs Apr 05 19:01:18 how does one disable the blue pressed-state background on the action bar up button? Apr 05 19:01:38 is it theme-related? Apr 05 19:02:18 Pretty sure it's disabled by default Apr 05 19:29:36 just asked this on #android, i was redirected here Apr 05 19:29:44 does SurfaceView always punch a hole in it's parent? Apr 05 19:29:55 even if setZOrderOnTop(true) ? Apr 05 19:30:23 Yes, I believe so Apr 05 19:30:32 and dev questions are relevant here more than #android Apr 05 19:30:47 #android is a sea of shitty end users Apr 05 19:31:03 come in from the cold, into a channel with marginally less "shitcock" comments Apr 05 19:31:08 lov: what is the purpose of setZOrderOnTop then ? Apr 05 19:31:20 i thought if it's an overlay, then it doesn't need to punch a hole Apr 05 19:31:43 can't put enough emphasis on the 'marginally' Apr 05 19:31:46 specifically, punching a hole makes the parent have a different format Apr 05 19:32:37 setZOrderOnTop seems to set panel flag (whatever that means) Apr 05 19:33:07 * girishr is new to android terms Apr 05 19:33:10 girishr: I think the question is whether the parent window gets rendered at all. To be totally honest, I don't know :( Apr 05 19:33:28 lov: it gets rendered alright :) Apr 05 19:34:00 hi everybody. Can anybody tell me what the best way is to take many small pictures with the back camera? Like having the preview, but not binding it to a SurfaceHolder but get the Bitmaps instead? And I don't need high quality photos, just photos with the size of the display resolution. How would I do this the best way? Apr 05 19:37:09 good afternoon does anybody knows a good fragments tutorial? Apr 05 19:37:20 to use with the support v4 library Apr 05 19:39:02 toxie: https://developer.android.com/training/basics/fragments/index.html Apr 05 19:39:09 ^^^ Apr 05 19:39:34 use the same way, except use 'SupportFragment' instead of 'Fragment' Apr 05 19:40:07 might want to re-do that sentence Apr 05 19:43:21 hows that SimonVT ? Apr 05 19:44:11 "SupportFragment" Apr 05 19:44:19 It's still just called Fragment Apr 05 19:45:07 SimonFragment Apr 05 19:45:14 good call. i'm all mixed up cause of abs and it's getSupportBlah methods Apr 05 19:45:35 ABS has one support blah method which matches the TWO in the support library Apr 05 19:46:19 good call. i'm all mixed cause of the getSupportBlah methods in the support library Apr 05 19:46:20 actionbarsherlock supports fragmentation Apr 05 19:46:26 ugh Apr 05 19:46:32 ;-p Apr 05 19:51:15 mikedg: did you find out if you can be part of the android fireside panel ? Apr 05 19:51:32 doesn't matter, gonna set everyone on fire anyway Apr 05 19:55:53 i'm doing a Collections.sort() using a custom comparator that just compares the name field of my objects, but my listview is sorting by the name and type field of my object... why would that be? Apr 05 19:57:00 maybe its coincidence Apr 05 19:59:57 yay, google fiber might be coming to austin :) Apr 05 20:03:08 tnzr: what, comCast isn't good enough :P Apr 05 20:07:14 haha Apr 05 20:07:18 well, Time Warner, but same thing yeah Apr 05 20:13:56 To all - any feedback would be greatly appreciated. I am unable to set up my listview so that I can click on it, and handle the event based on the item. I already specified that I want to enable long clicks and select a single item. I tried implementing several different onItemClick methods, but none of them seem to work. Does anyone know how I can get this to work? Apr 05 20:20:14 cool, i didn't know git can keep a file without tracking it Apr 05 20:21:11 seems handy for some of the .properties files that typically wouldn't be checked in maybe Apr 05 20:21:17 g00s: ? Apr 05 20:21:42 you mean ignored files? Apr 05 20:21:53 no: Apr 05 20:21:58 git update-index --assume-unchanged <> Apr 05 20:23:24 I usually check all my stuff into git Apr 05 20:23:27 but on a dev branch Apr 05 20:23:39 when I'm done with my work, I merge up, and rebase the dev-specific stuff out Apr 05 20:24:20 g00s: hmm? I don't get it Apr 05 20:24:42 it looks like that's just a way to tell git not to check for modifications to a particular file Apr 05 20:25:33 g00s: oh, I think I see what you mean Apr 05 20:25:39 "It turns out that git update-index --assume-unchanged Makefile will leave the Makefile in the repository, but will cause Git to assume that subsequent changes to the working copy are not to be tracked. " Apr 05 20:25:58 you check in the file ("keep it"), but don't care about changes to it ("without tracking it") Apr 05 20:26:04 yeah, I had read that Apr 05 20:26:15 I just wasn't clear on the terminology you were using :) Apr 05 20:27:05 but yeah, that's interesting. I hadn't seen that before Apr 05 20:27:07 :) Apr 05 20:27:24 the book actually describes pfn's way as one option, this as another Apr 05 20:27:55 yeah, that's pretty lame to do update-index --assume-unchanged, though Apr 05 20:28:01 because the file isn't version controlled at all Apr 05 20:28:16 it just doesn't track changes to the file, but acknowledges its presence in the repo Apr 05 20:29:36 if you need to change it you can say git update-index --no-assume-unchanged Makefile ; make the change; and then flip it back Apr 05 20:30:01 yeah, not much advantage to doing it that way, really Apr 05 20:30:03 anyhow, one trick :) Apr 05 20:30:10 and I'd rather have the indicator that my file has been changed Apr 05 20:32:10 what's the best HTTP lib these days? Apr 05 20:32:55 Depends Apr 05 20:33:40 AndroidHttpClient work ok for most cases? Apr 05 20:34:16 I use http-request https://github.com/kevinsawicki/http-request Apr 05 20:35:12 Hi, I'm trying to build some robot platform - how to easy read all android sensor info over USB cable to computer? Apr 05 20:45:13 Hey guys, so I think I've really screwed up my android manifest.. I've tried to setup a login activity before the actual app but to simplify things I've just set up an activity with a button which starts the main activity. Anyway, I've done it all but the app wont even run now, and it's gone from my phone :\ http://pastebin.com/E0zVrpjT Apr 05 20:45:56 coco89: just revert back to a known working version :D Apr 05 20:47:02 use that version control system I'm sure you've got set up :> Apr 05 20:47:28 * stork tips his Captain Retrospective Advice hat. Apr 05 20:47:51 lol, I have made a commit before everything Apr 05 20:47:57 but it's effort to start from scratch again Apr 05 20:48:12 should be possible to just revert one file. Apr 05 20:48:12 as in before attempting the login thing Apr 05 20:48:26 but everything seems right? Apr 05 20:48:56 can anyone see why my app wont launch? Apr 05 20:48:57 All you said was "it doesn't work". Not many details to work with. Apr 05 20:49:07 kakazza, it wont launch at all Apr 05 20:49:08 Did Eclipse throw an error? Does it compile? Apr 05 20:49:14 no errors Apr 05 20:49:30 So the Console tab said it's been deployed and installed successfully? Apr 05 20:49:31 nothing in logcat Apr 05 20:49:45 And Console? Apr 05 20:49:59 kakazza, it says installing, success!, done Apr 05 20:50:03 and that's it Apr 05 20:50:38 Then it was probably installed. Go through your Apps. Maybe you did something and it's been accidently renamed. Like now your app is called "Login" ;p Apr 05 20:51:12 Either way, can you uninstall it manually and try again? Eclipse should install and fire it up again. Apr 05 20:51:34 i can't find the app at all Apr 05 20:52:12 adb uninstall com.nfc.goldtag Apr 05 20:52:31 Also, is "nfc.com" yours? If not, you might want to reconsider. Apr 05 20:53:25 Does your app have an activity wired? Apr 05 20:53:54 an activity wired/ Apr 05 20:54:52 kakazza, uninstall it :\ Apr 05 20:54:59 activity in your manifest Apr 05 20:55:24 cbates, i've pasted my manifest Apr 05 20:58:04 looks right, should have launched your .Login activity Apr 05 21:01:06 cbates, I know right, I don't know what's going on Apr 05 21:01:56 kakazza, how do I uninstall it manually Apr 05 21:02:01 i'm a bit worried about diong that :S Apr 05 21:02:09 u may want to just restart eclipse Apr 05 21:02:19 coco89: I showed you. Apr 05 21:02:21 adb uninstall com.nfc.goldtag Apr 05 21:02:45 and then how would i reintall it Apr 05 21:02:56 Run as usual from Eclipse? Apr 05 21:03:17 sorry that was for coco89 Apr 05 21:03:39 ok Apr 05 21:08:16 kakazza, i've tried uninstalling Apr 05 21:08:18 it doesn't work Apr 05 21:08:27 maybe i've accidnetly renamed something that I shuoldn't have? Apr 05 21:08:30 but then again it all seems fine Apr 05 21:10:09 anyone? Apr 05 21:12:06 guys? Apr 05 21:22:10 nvm Apr 05 21:22:25 just for future reference guys had to change com.nfc.action.MAIN to com.intent.action.main lulz Apr 05 21:27:58 hi guys, im following this: http://www.edumobile.org/android/android-development/action-bar-search-view/ , but i dont want the (native?) search to open. I just want to update elements. How do i get that? Apr 05 21:28:59 hello, anyone using scala with android here ? Apr 05 21:29:05 Can I use the camera preview without having to show the preview actually? I am trying to access the Preview buffer via callbacks, but it says in logcat "app passed NULL surface", when I call setPreviewDisplay(). Does anybody know what I am doing wrong? Do I need to do something special with the SurfaceHolder? Apr 05 21:30:19 i told a client to install Log Collector in his Xoon, so we could see what was happening, but after installing it, the problem went away Apr 05 21:30:42 bitkiller: happens Apr 05 21:36:32 bitkiller: sounds like a success then :) Apr 05 21:38:18 i'm regarding as such Apr 05 21:38:49 and letting the bomb to the future Apr 05 21:39:48 it will fail anyway :) Apr 05 21:44:21 Is there a way to get images from camera preview without having to show the preview image? Apr 05 21:47:32 @coco89 think thats suppose to be "android.intent.action.MAIN" Apr 05 21:48:29 Any thoughts on why I'm getting a "Bitmap too large to be uploaded" error when I don't have a single image in my project with the give size in the error? Apr 05 21:54:06 How large is the bitmap Apr 05 22:03:29 SimonVT: Sorry, it says that it's 2400x3840 but I have no idea where it's getting that number. Is that an added number from images in my drawable directory or something? Apr 05 22:04:25 My largest image is 1200x1920, a background Apr 05 22:04:47 Where did you put that image Apr 05 22:04:55 Which folder Apr 05 22:05:10 Just drawable, should I change the name to drawable-xhpi? Apr 05 22:05:17 res/drawable that is Apr 05 22:05:17 drawable/ is mdpi Apr 05 22:05:31 Wow, I should've known that. Apr 05 22:05:34 Scaled to 2400x3840 on a xhdpi device Apr 05 22:06:02 Gotcha Apr 05 22:06:09 Thanks Apr 05 22:13:52 is there a way to determine if a process has died? Apr 05 22:14:34 a process, do you mean like an activity? Apr 05 22:14:44 hmm. well I would like more than just the activity Apr 05 22:14:57 I have a service that runs Apr 05 22:15:05 in which I validate based on the PID of the binder Apr 05 22:15:19 so I can get several binders, and as long as they come from the same process, then they are valid Apr 05 22:15:23 I see, you lose me there cause I haven't dealt with out of app processes myself, sorry. Apr 05 22:15:40 thanks. yeah google doesn't have much on this subject Apr 05 22:15:43 not sure if it is possible Apr 05 22:17:02 just curious (I have a somewhat similar situation) why the pid, rather than the package of the caller? Apr 05 22:17:24 evident: there's a stackoverlflow post about that Apr 05 22:23:52 Hi, quick question: I downloaded the open source code for the com.android.settings, and there are a lot of libraries I seem to be missing, like "com.android.internal.app" for AlertActivity class, among many others Apr 05 22:24:13 hello everyone :) Apr 05 22:24:40 i have a huge problem related with some compiling, could anyone help me ? Apr 05 22:26:18 JakeWharton: thank you :) I've been reading SO all evening already :) Found out that the SurfaceView really needs to be shown in the layout... but I can make it very small or maybe even have it invisible. At least I get the livestream of preview images now :) Apr 05 22:26:44 But what's not working yet is my onPreviewFrame in my PreviewCallback... this is only called once, but should be on every frame... Apr 05 22:29:22 Hi guys! Apr 05 22:30:00 i have built a robot, with a camera on it's head. The whole thing is controlled by an android application, in which video plays in the background (the RTSP stream from that camera). I have used vitamio libraries with ffmpeg, but i get 7seconds delay which is unacceptable. Even if i set "mVideoView.setBufferSize(0); and mVideoView.setVideoQuality(MediaPlayer.VIDEOQUALITY_LOW);" nothing Apr 05 22:30:00 changes and i debug i get info "[udp @ 0x4dc0c1c0] 'circular_buffer_size' option was set but it is not supported on this build (pthread support is required)". Could anyone help me with getting rid of that delay ? maybe compile libffmpeg.so with -enable-pthreads with http://github.com/yixia/FFmpeg-Android ? Apr 05 22:30:22 sorry for my english, and thank You for some help in advance Apr 05 22:31:34 does anyone have a workable sample of preferences? Apr 05 22:31:37 I need a way to inflate a layout (View), wrap the View with some other class, and then persist it back Apr 05 22:31:39 is this possible? Apr 05 22:34:19 hey y'all Apr 05 22:34:35 hello Apr 05 22:34:57 how would I make it such that activities were locked to portrait or landscape based on the size of the screen (normal vs sw720dp)? Apr 05 22:56:53 Hello Dudez Apr 05 22:58:08 how would you catch all network type exceptions without Apr 05 22:58:16 adding a catch at each one Apr 05 23:00:22 mheld Apr 05 23:00:32 did you try this? http://stackoverflow.com/questions/2124046/how-do-i-specify-different-layouts-for-portrait-and-landscape-orientations Apr 05 23:01:29 leor: I don't want it to have landscape unless it's a tablet Apr 05 23:01:35 then I want it to only be landscape Apr 05 23:03:25 mheld, here is one piece of the puzzle... Apr 05 23:03:30 http://stackoverflow.com/questions/2150287/force-an-android-activity-to-always-use-landscape-mode Apr 05 23:06:35 mheld, I have one other Apr 05 23:07:09 mheld, let me know if any of these work. Also, please let me know if you can help me out yourself... Apr 05 23:07:13 http://developer.android.com/reference/android/content/res/Configuration.html Apr 05 23:08:06 sirius, are you good with listview? Apr 05 23:08:20 siriuz * Apr 05 23:39:39 weird nullos http://tribes.tribe.net/nullos?current=tribephotos&set=y#tabs Apr 05 23:57:34 hrm, if I put 2 items in a framelayout, one that's visible and one that's not (for flipping 'tween them) is there any way to make the invisible one match the size of the visible one? Apr 06 00:06:29 hello, if i have an object i need to share inbetween the fragments of an activity - what is the prefered way to do it? singleton? accessible member of the activity? Apr 06 00:08:54 I've tried setting the second child to match_parent for both dimensions, but it seems to not be correct Apr 06 00:08:55 hmm, looks like I have some minHeight/minWidth set Apr 06 00:08:55 I guess I can use those Apr 06 00:41:59 how would I get the global x/y of a children Apr 06 00:42:37 so say I have an Activity->ListView with padding-> LinearLayout vertical-> some items down item I want to get the global x/y position Apr 06 00:46:10 i have built a robot, with a camera on it's head. The whole thing is controlled by an android application, in which video plays in the background (the RTSP stream from that camera). I have used vitamio libraries with ffmpeg, but i get 7seconds delay which is unacceptable. Even if i set "mVideoView.setBufferSize(0); and mVideoView.setVideoQuality(MediaPlayer.VIDEOQUALITY_LOW);" nothing Apr 06 00:46:10 changes and i debug i get info "[udp @ 0x4dc0c1c0] 'circular_buffer_size' option was set but it is not supported on this build (pthread support is required)". Could anyone help me with getting rid of that delay ? maybe compile libffmpeg.so with -enable-pthreads with http://github.com/yixia/FFmpeg-Android ? Apr 06 00:48:27 o well View.getLocationOnScreen.. lovely Apr 06 00:56:58 morning all Apr 06 01:05:14 leor: out of interest how can someone be good with listview? Apr 06 01:37:29 Wow, so this facebook thing turns your perfectly good android phone into an ad delivery device? Apr 06 01:38:18 http://i.imgur.com/Tgd2D.gif Apr 06 01:40:01 i have to write a android app, i reed some examplecode and found the following: "View view = new SingleLineView(this);" can someone tell me what the "this" in the parens means? put the object self as a param or what? In the Constructor of the SingleLineView is the type Context expected ... Apr 06 01:40:02 then it's the current context Apr 06 01:40:05 conext is a class, you can read about it on d.android.com Apr 06 01:40:05 as in what it holds and what i's for/use Apr 06 01:40:11 ok thanks Apr 06 01:40:29 well fragments can call methods on other fragments Apr 06 01:40:52 so in your littleFrag, ((frag_myBigFrag)getActivity().get***manager().find**byTag(tag)).hereHaveThis(littleFragObject); Apr 06 01:41:06 i think i just went blind Apr 06 01:41:10 i need to put that line on the Otto website as the #1 reason to use it Apr 06 01:41:12 haha Apr 06 01:41:13 But it also depends on what kind of object it is. Apr 06 01:41:22 JakeWharton: What I meant to ask you. Do you find yourself using @Singleton very often? Or in practice, how do you handle all these "Manager" classes? For example, do you have a Connection class doing all the Net IO? Apr 06 01:41:23 all of the classes which do network I/O (created by Retrofit) are @Singletons Apr 06 01:41:25 So there is no strict 'Singletons are evil' policy at Square? Apr 06 01:41:25 hell no. singletons are insanely useful Apr 06 01:41:27 I think so too. But there are a lot of blogs and articles claiming they are the root of all evil. But in Java, I often find myself wanting to have a Singleton. Apr 06 01:41:28 Just makes testing a bit complicated at times, because they retain state. Apr 06 01:41:29 that's why you use dependency injection :) Apr 06 01:41:29 I thought it's either or. Apr 06 01:41:30 definitely not Apr 06 01:41:31 the dependency injection framework manages singletons for you Apr 06 01:41:31 Either inject the dependency everywhere or have Singletons everywhere and empty parameter lists. Apr 06 01:41:32 Hum Apr 06 01:41:34 I think I should take a closer look at dagger again. Apr 06 01:41:36 indeed. we're working on a more complete sample that pulls together real uses cases Apr 06 01:41:36 I still do not feel 100% comfortable with it. Like having multiple Modules, I never got around the idea why I would want that. Apr 06 01:41:36 Is there anyway I can allow the user to zoom a relative layout? Apr 06 01:41:36 kakazza: in a small app you might only have one Apr 06 01:41:38 That's probably it. My apps have been very small, @Providing only 2-3 objects. Apr 06 01:41:40 that's totally fine. the advantage is that when testing you can override those dependencies with a TestModule and provide fake objects that you can inspect and verify interactions with Apr 06 01:41:41 Add it, complete with and everything Apr 06 01:41:43 Hmm, sounds great. Apr 06 01:41:47 When I started my last app, I told myself I'd only use one library. ABS. In the end, I caved in and am now using Otto, Dagger, ABS, http-request, croutons,... and never looked back. Apr 06 01:41:50 Heck, the otto sample pretty much replaced or made 60% of my code obsolete :D Apr 06 01:41:53 It also finally forced me to look into dagger. Apr 06 01:41:53 s/otto sample/tape sample/ Apr 06 01:42:08 awesome Apr 06 01:42:08 they've certainly helped our apps a ton Apr 06 01:42:27 I'm very happy with the available libraries that are available for Android, especially ever since you and Square began releasing code. Apr 06 01:42:32 Hello Apr 06 01:42:32 One last thing before I go. Eric Burke mentioned in his talk at QCon that Square tries to make their apps look the same regardless of your phone. Does that mean Holo or your own theme for 4.x or really the same for 2.2 to 4.2? Apr 06 01:42:35 we have our own themes and try to use as little from the platform as possible Apr 06 01:42:35 i need advice on how to structure my database operation classes and do work on asynctasks and return the result Apr 06 01:42:36 this ensures consistency and control over everything Apr 06 01:42:36 So a Holo-ish theme, even for 2.x? Apr 06 01:42:38 I wouldn't call it Holo-ish Apr 06 01:42:39 Distinct Apr 06 01:42:39 we take design cues from the default Holo themes, sure. but it's suppose to be Square-ish Apr 06 01:42:40 kakazza: thats HoloEverywhere Apr 06 01:42:40 ew Apr 06 01:42:43 What if I put all the database operation methods in one class, then create an asynctask inline which calls database operation methods Apr 06 01:42:43 I see, so you take Holo as an inspiration, but since it's your own theme you have no problem making it look the same everywhere. Does it feel strange to use it on something like HTC Sense where one would expect huge 3D-ish buttons on Dialogs etc? Apr 06 01:42:46 not really. if you use HTC Sense then our app is a break from making your eyes bleed Apr 06 01:42:48 or make an asynctask sub class with database operations in it, but how would i show results from this? Apr 06 01:42:50 Heh. Apr 06 01:42:52 Whats the best way to do database operations in the background and have results show up? Apr 06 01:42:53 by best i mean what creates the most readable and manageable code Apr 06 01:42:59 But you're not a fan of HoloEverywhere. Is it because you don't want Holo on 2.x like you didn't want the Overflow Menu to be in 2.x with ABS (as of 4.2.0) or is it because of something different? Apr 06 01:43:11 I don't want Holo on 2.x. I don't want STOCK Holo every, anywhere, in any app. And I don't want the 800MB of resources and custom classes and layouts it brings along Apr 06 01:43:19 kakazza: i don't use it, i just know of it Apr 06 01:43:19 you should use something like jeff gilfelt's theme generator and android-holo-colors.com to generate your own base style to work from and create a unique, branded look for your app Apr 06 01:43:22 HoloEverywhere is like one of the WordPress themes that's installed by default and billions of sites on the internet use Apr 06 01:43:37 There's nothing wrong with applying a holo-style theme on 2.x Apr 06 01:43:50 There's something wrong with using holoeverywhere Apr 06 01:43:54 I see where you're getting at. Apr 06 01:44:01 Thanks for the insight. Apr 06 01:44:10 hey …fame is fame Apr 06 01:44:13 :) Apr 06 01:44:14 right. holo-style != holo Apr 06 01:49:48 JakeWharton, Thought I should show this to you. http://www.youtube.com/watch?v=PfcOwdNp75k Apr 06 01:50:53 JakeWharton, That was a while ago. I found a solution but haven't implemented it yet Apr 06 01:51:51 ABS doesn't handle fragment transactions Apr 06 01:51:57 That's entirely the support library Apr 06 01:53:18 And that looks like ICS+, most methods are proxied directly to the framework .. very little ABS code is used Apr 06 01:53:28 dam I'm getting my name out there, youtube, maybe otto docs :) Apr 06 01:53:28 bugs in a giant nested state machine that's completely asynchornous? Apr 06 01:53:29 color me shocked Apr 06 01:53:29 hey guys Apr 06 01:53:31 is there a way to get the shutter speed that the camera is using for video frames as it's being recorded? Apr 06 01:53:31 StingRay_, Famous lmao. Apr 06 01:53:32 I know that it's saved in the EXIF data for photos Apr 06 01:54:54 Is there more code used of ABS other than the if/else branches which redirect to the native implementations? Apr 06 01:55:04 yes, but it's all on the main thread Apr 06 01:55:21 your problem is what's happening in the callbacks of the tab selection Apr 06 01:56:22 Does ABS do anything differently than the native implementations on ICS+ devices? Apr 06 01:56:36 no, it uses the native implementation and just wraps the objects Apr 06 01:56:37 Yeah Would it be best to try todisbable user input untill its finished loading or maybe disble the tab that the current user is on so it can't be clicked? Apr 06 01:56:40 Ok, great. Apr 06 01:57:00 It wraps menuitems, wraps stuff like tabs Apr 06 02:01:24 wraps them all with little bows on top Apr 06 02:07:10 JakeWharton: where in the life does @Subscribe ask producer for data ? I have one interface left that I use to propogate restored info after oom etc Apr 06 02:07:22 I think I found the problem. I was removing a tab when unselected AND replacing it at the same thime. Could that have caused my problem? Apr 06 02:07:24 StingRay_: immediately upon registration Apr 06 02:07:38 k cheers Apr 06 02:10:59 JakeWharton, StingRay_ http://www.youtube.com/watch?v=bpm0eVnFOTA Apr 06 02:11:55 woot Apr 06 02:12:09 :D Apr 06 02:22:22 fragments' usefulness only just barely outweigh their ridiculousness Apr 06 02:26:07 On an unrelated note, I hope Github pushes out a new release of their Android App soon. Apr 06 02:26:15 So many useful features since December 2012. Apr 06 02:26:22 Like Markdown rendering. :\ Apr 06 02:26:42 heh, I know their "Android" developer Apr 06 02:26:52 there probably won't be a new release for a bit Apr 06 02:27:08 Does anyone know a good place which has tutorials for learning how to use JSON? Apr 06 02:27:18 how to use in what regard? Apr 06 02:27:53 JakeWharton, like getting started. I'm aiming to learn how to connect to a SQL server. Apr 06 02:28:36 just doing that covers a lot of topics Apr 06 02:29:03 REST, JSON, HTTP, web server, web framework, database connection Apr 06 02:29:24 Why won't there be a release? And are you talking about Kevin Sawicki? Apr 06 02:30:06 he's working on other things. and yes Apr 06 02:30:06 And why the ""? Apr 06 02:30:15 because he's not really an Android developer for them Apr 06 02:30:33 Hmm, still. It's been so long, can't he just push out the current version? Apr 06 02:30:57 pushing the current version also means dealing with what happens after you push a new version though Apr 06 02:31:09 JakeWharton, I need to learn REST and JSON Apr 06 02:31:10 As in, new bug reports? Apr 06 02:31:17 bug reports, crashes, etc. Apr 06 02:31:28 :\ Apr 06 02:31:49 Guess I gotta build it myself then. Apr 06 02:32:13 mcv -pl :github-app -Dmaven.test.skip Apr 06 02:32:14 :) Apr 06 02:32:15 Do you know Kevin personally? Apr 06 02:32:20 yes Apr 06 02:32:45 Cool. Apr 06 02:32:57 Guess I really should move my ass to the SF area. Apr 06 02:33:04 All the cool kids are there! Apr 06 02:33:13 there's plenty of lame ones too Apr 06 02:33:45 heh Apr 06 02:33:51 mcv? Not mvn? Apr 06 02:34:56 Lucky. I'm in Chicago. Weather sucks now. Apr 06 02:35:07 agy2154, not really Apr 06 02:35:11 yay Chicago Apr 06 02:35:14 Anyway, I gotta go. Apr 06 02:35:21 Cheers, guys Apr 06 02:35:43 hesperaux, Well tommrow is going to be nice. Where are you located? I'm in North west part of the city Apr 06 02:35:58 rockford region Apr 06 02:36:03 70 miles west Apr 06 02:36:10 my g/f lives about 10 miles out of chicago though Apr 06 02:36:18 i'm in Uptown Apr 06 02:36:30 Yeah I know where rockford is. Its east of elgin right? I live near evenston / skokie Apr 06 02:36:36 kevinb, Lmao im in northpark. Apr 06 02:36:46 no, elgin is about 25-30 miles east of rockford Apr 06 02:36:59 hesperaux, yeah I ment easy sorry. Apr 06 02:39:14 JakeWharton, have you ever met Jack Dorsey? Apr 06 02:39:30 yes Apr 06 02:39:35 he's here every day Apr 06 02:39:43 kakazza: mcv = mvn clean verify Apr 06 02:41:07 Ah Apr 06 02:47:15 Intent.ACTION_PICK lets you start an Activtiy to pick a single object. Any equivalent to be able to select multiple objects? **** ENDING LOGGING AT Sat Apr 06 02:59:58 2013