**** BEGIN LOGGING AT Wed Jan 02 02:59:59 2013 Jan 02 03:11:11 I set my Activity in the manifest to singleTask. Do I have to set a flag to make a Intent recall that instance rather than restarting it? Jan 02 03:17:32 I am horribly noobish at java... Jan 02 03:17:49 do i need to import stuff in each java file? Jan 02 03:18:16 yes, anything not in your package namespace Jan 02 03:18:26 you can cheat and use eclipse auto-import if you're in eclipse Jan 02 03:18:42 shift-ctrl-o Jan 02 03:19:13 alright thank you Jan 02 03:30:03 I like that about Eclipse Jan 02 03:30:13 one of the few features I wish was in IntelliJ Jan 02 03:30:38 also the way it'll allow you to quick-add catch blocks for exceptions Jan 02 03:30:54 Eclipse wouldn't be such a horrible editor, if it weren't so laggy Jan 02 03:31:27 oh god yes it would Jan 02 03:31:37 you dont realize how shitty something is, if you havent used much of anythign else Jan 02 03:32:11 ron_frown: exactly Jan 02 03:32:27 True, i haven't used many other full IDEs. However, my main problem with eclipse is its lag. It's menu's are also confusing as heck, but i try to ignore those Jan 02 03:33:13 Hmm, can anyone tell me where I'm going wrong with my AIDL? The problem being a Null Pointer Exception (Line 30 in the pastebinned code) http://pastebin.com/v11BWhQ0 Jan 02 03:33:15 the ui isnt real consistent... idea of perspectives is just crap... intellisense sucks... its slow Jan 02 03:33:21 crashes a lot Jan 02 03:33:29 and worst of all... its clear there is some issues of locking Jan 02 03:33:36 I cant tell you how many times I've started ac ompile Jan 02 03:33:39 it pops a dialog Jan 02 03:33:49 and it never recovers... its not frozen frozen Jan 02 03:33:57 but its like a window thats not visible has focus Jan 02 03:36:52 not only that, but Eclipse is notorious for having issues compiling Jan 02 03:36:59 like not updating the apk Jan 02 03:37:04 or actually rebuilding the code Jan 02 03:37:09 or actually cleaning the project Jan 02 03:37:12 Eclipse is downright buggy Jan 02 03:37:21 remind me why eclipse was chosen? Jan 02 03:37:27 the delay on the intellisense is frustrating beyond belief Jan 02 03:37:41 Jak : because there is no definitive Java IDE Jan 02 03:39:11 I find few things to complain about with IntelliJ Jan 02 03:39:20 I like the responsiveness of the intellisense Jan 02 03:39:28 though I do wish it'd be case-agnostic Jan 02 03:39:39 eh, i'll probably go without an IDE but i'm too lazy right now :P Jan 02 03:39:55 just wanna slop something together to try it out Jan 02 03:40:13 Pfhoenix: You can become one of the developers for Eclipse if you're so inclined :) Jan 02 03:40:45 All we need is Canonical to dump a few hundred k into Eclipse Jan 02 03:48:55 another day, another eclipse vs intellij discussion :) Jan 02 03:49:05 did you guys finally come to some conclusion this time? Jan 02 03:49:18 of course Jan 02 03:49:46 but, to be fair, the discussion only starts up when some poor sap makes public the issues they're having with Eclipse =) Jan 02 03:50:12 :) Jan 02 03:50:49 I think it would be considered more of an embarassment than an honor to say you dev for Eclipse :) Jan 02 03:51:17 strangely enough, there are a lot of people proud of that fact Jan 02 03:51:28 I chalk it down to being ignorant of the alternatives Jan 02 03:51:31 Nah Jan 02 03:51:41 Not everyone has a company to foot the bill for an IDE Jan 02 03:51:56 If you're doing non-glorious bug fixes, I completely respect that Jan 02 03:52:04 I know I don't Jan 02 03:52:13 but there are free alternatives that are superior to Eclipse anyways Jan 02 03:52:22 ok, so eclipse compiled the java :P Jan 02 03:52:26 but didn't package the apk Jan 02 03:52:39 so it's not like you're forced to use Eclipse if you don't want to pay for an IDE Jan 02 03:53:04 Bit of a nub question: Is it cool to buy an android dev license, and release out free 'test' apps to the market, like tip calculators, flashlights, and the like? Jan 02 03:53:19 Basically, to get a feel for how it all works Jan 02 03:53:23 sure if you want to Jan 02 03:53:33 It's only $25 or so, iirc, I can afford that Jan 02 03:53:54 same, but I'm waiting until this project is ready for market Jan 02 03:54:14 I don't actually own an Android device, I just dev for research or fun :) Jan 02 03:54:25 that's... odd Jan 02 03:54:27 how do you test Jan 02 03:54:27 bleh, looks like i have to use my slow ass browser to find the docs on how to export apk from eclipse :3 Jan 02 03:54:34 avd? Jan 02 03:54:51 Well, since I'm researching, I'm using a Galaxy tablet 2 I borrowed from my lab :) Jan 02 03:55:51 i want user to be able to launch my activity from the web browser (chrome) ... anyone have a link for search term for me ? Jan 02 03:56:35 in paticular i don tknow how to get the URL once my activity is launched .. say my scheme is foo://, how do i get the path in foo://somepath ? Jan 02 03:57:49 bleeehhhh Jan 02 03:57:53 stupid udev rules Jan 02 03:57:57 lol Jan 02 03:58:00 i thought this wasn't a problem on arch :| Jan 02 04:01:22 k0nichiwa: https://github.com/commonsguy/cw-advandroid/tree/master/Introspection/URLHandler . the recommendation is to use http://yoursite.com/somepath instead of "foo". this is good because 1) the link works even if the app is not installed (you can have it go to a page suggesting they install it) and 2) you likely don't own "foo" and multiple developers may pick the same prefix but handle them very different. Jan 02 04:02:16 kevinb thanks Jan 02 04:02:35 hopefully the sample code will show how ot figure out what the full URL was used to launcyh your activity Jan 02 04:08:15 YESSSSSSS Jan 02 04:08:17 it works :D Jan 02 04:08:27 and this is my first attempt at an android app :P Jan 02 04:08:31 gratss Jan 02 04:09:07 anyone versed in the WebView component? How do I change the popup menu options? I think its called the context menu. Jan 02 04:11:31 ok, i'm gonna go eat some food... Jan 02 04:11:42 then restart from scratch, having it do what i want :P Jan 02 04:11:56 right now it's just a daydream that floats "Testing" accross at random xD Jan 02 04:12:17 what do you guys recommend for a database of strings? Jan 02 04:12:25 load an xml file into an array or sqlite? Jan 02 04:12:50 I'd say it depends on the size of the DB Jan 02 04:13:59 well.... Jan 02 04:14:07 promise i won't get bashed on no matter what? Jan 02 04:14:08 :P Jan 02 04:15:13 nope, but you'll never know if you don't ask Jan 02 04:15:31 haha, well it's gonna be bible verses Jan 02 04:15:44 whichever Jan 02 04:15:45 hand picked, so small right now, but I have no idea how big it'll get Jan 02 04:15:59 something you should know - strings are immutable Jan 02 04:16:34 this means the more you create new strings, the less you should actually use them for performance reasons Jan 02 04:16:34 how can you debug an activity when it is launched by some other process, say a web browser ? Jan 02 04:16:54 k0nichiwa : you should still be able to attach the debugger to the process from your IDE Jan 02 04:17:08 Eclipse and IntelliJ can both do that Jan 02 04:17:46 ah, attach the process, thx Jan 02 04:18:03 how do you stop at a breakpoint, tho ? Jan 02 04:18:08 Pfhoenix, so i can't unload strings at all? Jan 02 04:18:12 do you put in a sleep statement to give yourself time to attach ? Jan 02 04:18:23 or heck, can i "create" strings on the fly if they are immutable? Jan 02 04:19:54 frankdrey: Do you know what immutable means :) ? Jan 02 04:20:02 I don't think strings get GCd at all Jan 02 04:20:10 cannot be changed once they are created? Jan 02 04:20:18 k0nichiwa : stopping at a breakpoint happens automatically Jan 02 04:20:24 provided your debugger is attached Jan 02 04:20:30 yup Jan 02 04:21:06 but aren't strings simply char arrays? Jan 02 04:21:11 nope Jan 02 04:21:23 they reference char[]s Jan 02 04:21:27 should i use char arrays then? Jan 02 04:21:35 well, it depends entirely on what you plan on doing Jan 02 04:21:49 if you plan on loading text and keeping it loaded the entire lifetime of the app Jan 02 04:21:59 then you might as well just load it all into Strings Jan 02 04:22:12 hmmm... Jan 02 04:22:13 but if you need that text to change, you'll want to reconsider Jan 02 04:22:23 nah, i could load it all i guess Jan 02 04:22:44 or... Jan 02 04:22:48 loading a full MB of text, just once, should be fine Jan 02 04:22:55 but this is a daydream Jan 02 04:22:59 is that a good idea? Jan 02 04:23:08 you don't want to loading a meg of text, and then change that repeatedly over the course of the app Jan 02 04:23:14 *load Jan 02 04:23:25 yeah Jan 02 04:23:45 maybe i should load about 20, and if needed, load more Jan 02 04:23:53 into new strings Jan 02 04:23:57 all depends on how you want your app to work Jan 02 04:24:00 frankdrey: Use sqlite :) Jan 02 04:24:13 well, it'll be verses flying accross the screen Jan 02 04:24:35 i'd say that it'll be good loading chunks Jan 02 04:24:36 yeah, if you're going to be wanting to access a lot of text, using an SQLdb will be helpful in the long run Jan 02 04:24:39 so im looking at this example of an actiivty that supposedly can handle urls in a web browser https://github.com/commonsguy/cw-advandroid/blob/master/Introspection/URLHandler/AndroidManifest.xml Jan 02 04:24:58 because they might not keep it on long enough for all to fly accross Jan 02 04:25:07 yeah, probably will do that Jan 02 04:25:17 i've tried http://www.this-so-does-not-exist.com and tried long pressing it also Jan 02 04:25:26 nada, just tries to open in the browser Jan 02 04:25:26 then again, i don't want to keep track of which verses were shown and which weren't Jan 02 04:25:40 i also tried http://www.this-so-does-not-exist.com//something ... again didnt work Jan 02 04:25:43 so maybe i /should/ load them all and have it select at random Jan 02 04:25:49 ok, i'll think about this over some tea :P Jan 02 04:25:53 can soemone look at the manifest and tell me what kind of url this thing shoudl be able to open ?? Jan 02 04:25:58 https://github.com/commonsguy/cw-advandroid/blob/master/Introspection/URLHandler/AndroidManifest.xml Jan 02 04:26:39 kevinb, do you know ? Jan 02 04:26:47 k0nichiwa : if you're trying to capture https intents, you're going to have to fight the user having their browser set for that Jan 02 04:27:15 Pfhoenix, thats not my goal learning how to capture a custom sheme like foo://mything Jan 02 04:27:22 i jus tfound this example of how i might do it Jan 02 04:27:30 is there something exra require dif it's http ? Jan 02 04:27:36 a link to http://this-so-does-not-exist.com/something should work but typing it in might not. and it will prompt for browser or your app Jan 02 04:27:50 well i made a little web page w/that in it Jan 02 04:28:00 type link Jan 02 04:28:02 didnt work Jan 02 04:28:31 hi all, i am using a simple_list_item_multiple_choice with my array adapter Jan 02 04:28:54 is there any way for me to intercept the checking of the checkbox separately from the onlistitemclick event? Jan 02 04:29:04 because when the checkbox is clicked, it should be checked Jan 02 04:29:06 kevinb, Pfhoenix thinks there is something extra / difficult involved if the scheme is http Jan 02 04:29:17 so i guess ill give it a try w/ foo or something Jan 02 04:29:21 but if the rest of the item is clicked, it should display more information about the item Jan 02 04:29:35 does anyone know a way to split the two events? Jan 02 04:31:28 What do you call the list of items, such that if you go into the settings app? I'd like to recreate that sort of style, and i figure there's gotta be a standard way of oding it Jan 02 04:32:30 nope still doesnt' work ... im on 2.3.7 Jan 02 04:43:13 Jak : I think it's a PreferenceFragment Jan 02 04:44:40 oooh, i think that's it, thanks Jan 02 04:45:49 i have 26 meg of pegs i want to stick in my assets Jan 02 04:45:55 just a demo app Jan 02 04:46:01 probably wwouldn't want to ship an app like that Jan 02 04:46:08 will eclipse install that for me so i can tes tit ? Jan 02 04:46:57 why not Jan 02 04:47:00 so long as you have the space Jan 02 04:47:15 im getting failed to install unable to open sync connection Jan 02 04:47:25 i have about 200 meg or more pleanty of internal storage Jan 02 04:47:48 maybe i need to relaunch adt Jan 02 04:48:03 i guess i could manually adb push it Jan 02 04:49:39 adb is how adt does it Jan 02 04:49:44 doubt its gonna change much Jan 02 04:49:49 k0nichiwa: I accidentally truncated the last 3 letters of your first message :) Jan 02 04:51:31 maslen, ? Jan 02 04:54:20 maslen : you ever sort out that issue you were having? Jan 02 05:01:21 is it common for devices to have an internal storage that isn't external storage? Jan 02 05:01:38 or does external storage refer to removable cards and the like Jan 02 05:01:50 because I know with my N7, they're the same thing Jan 02 05:09:59 Pfhoenix: Just did a short bit ago Jan 02 05:10:25 I wasn't returning the correct thing when the service was being bound Jan 02 05:11:02 ah =) Jan 02 05:11:14 I think I had mentioned that I probably had a type issue somewhere :) Jan 02 05:14:00 yep Jan 02 05:14:26 well... I had :) Jan 02 05:14:46 so, how common is it for a user to have external storage "emulated" locally when external storage isn't available? Jan 02 05:15:48 very common Jan 02 05:16:00 to your app, it shouldn't make a difference Jan 02 05:16:51 JakeWharton: Bit of a nub question: Is it cool to buy an android dev license, and release out free 'test' apps to the market, like tip calculators, flashlights, and the like?Basically, to get a feel for how the process works? Jan 02 05:17:00 app release* Jan 02 05:17:19 yeah. i mean, i don't see why not. Jan 02 05:19:57 what about an app requiring external storage access to save files? Jan 02 05:20:04 is that generally a bad idea? Jan 02 05:20:29 why do you need external storage for that? Jan 02 05:21:29 Pfhoenix: As far as I know, the only bad part about using external storage on an SD card is that you lose any OS-level security features Jan 02 05:25:08 Darn someone else with my name registered it first ;( Jan 02 05:26:17 i think u should let the user choose whether to use sdcard or internal storage Jan 02 05:26:29 (is writing to intenral storage even possible, dont know =) .. Jan 02 05:27:47 Is "Developer name" under what my app is listed under? Jan 02 05:28:07 For example, if I took "Ebay" would it say that this app was made by "Ebay" ? Jan 02 05:32:10 maslen: yes. Jan 02 05:32:12 i would think you coudl tell by looking around the marketplace Jan 02 05:32:28 k0nichiwa: I don't think you understand how new I am to using Androids Jan 02 05:33:11 Nice. So I just registered my developer name as my last name, which is incidentally the same as a relatively-well known company Jan 02 05:33:25 Your last name is ebay? :) Jan 02 05:33:30 * JesusFreke ducks Jan 02 05:33:37 :) Jan 02 05:33:58 Time to publish an App ;) Jan 02 05:34:01 You're not registering the name, fwiw. Jan 02 05:34:05 ? Jan 02 05:34:13 The developer name isn't unique or anything Jan 02 05:34:16 and you can change it Jan 02 05:34:40 Well.. I got an error when I tried to have it as my name that "The business name entered is already taken" Jan 02 05:34:48 Oh, weird. Jan 02 05:35:09 Maybe they are unique Jan 02 05:35:15 I didn't think they were though Jan 02 05:35:16 I have extended RelativeLayout to create a custom compound control. Now I am trying to reference it in the designer, and I get a very small bounding box, but Ican't see any of the control's layout in the desginer. How do I do this? Jan 02 05:37:34 kind of werid to see an activity destroyed w/o anything in the logcat Jan 02 05:37:40 you'd think i'd at least see some error Jan 02 05:37:58 o there was =) Jan 02 05:39:56 damccull: are you doing anything funky in the control? Jan 02 05:40:06 device specific code, or spawing a thread or anything? Jan 02 05:40:13 spawning* Jan 02 05:40:40 If so, check the return value of isInEditMode, and only run that code when that return false Jan 02 05:41:06 JesusFreke the xml for the control is is a relativelayout with 9 ImageViews arrayed in a 3x3 grid. In the constructor I inflate the layout and get a reference to each grid. There are additional methods that allow me to set the images of the imageviews Jan 02 05:41:37 But all the imageviews have a default image Jan 02 05:41:50 which isn't shown, either in designer, or running apparently Jan 02 05:41:59 good morning my dear friends Jan 02 05:44:06 JesusFreke: I wonder what my chances of being bought out are :) ? Jan 02 05:44:21 maslen: probably slim to none :) Jan 02 05:44:26 JesusFreke i just found out that if I comment out MyClass(Context c, AttributeSet a) constructor, then I see the classname in the control area in desginer, but no graphics. With that uncomented, I see nothing but a very small bounding box Jan 02 05:44:42 Oh well. Not my goal anyways. Jan 02 05:45:16 damccull: does your view work when it's actually shown as part of an activity? Jan 02 05:45:38 JesusFreke, does'nt seem to. Just a big blank white spot Jan 02 05:45:59 well, if it doesn't work normally, you can't expect it to work in eclipse :) Jan 02 05:46:59 hmm Jan 02 06:05:23 hi, ImabeButton ib; ib.setScaleType(ScaleType.FIT_CENTER); ib.setMaxHeight(5); ib.setImageResource(R.drawable.options); still draws the image in it's original size and expanding the button. why is setMaxHeight() not working? Jan 02 06:14:43 How can I make my AIDL-based services execute in a different process? Jan 02 06:15:32 i varguely recall that for services you specify in the manifest whether they exec in same or diff process Jan 02 06:17:12 I really hate how service <-> app communication works in android Jan 02 06:17:38 I like python's multiprocessing a lot more myself :) Jan 02 06:18:05 threading itself aint so bad Jan 02 06:18:13 JakeWharton you around player? Jan 02 06:18:18 barely Jan 02 06:18:27 will otto enable communications between services and app reasonably well? Jan 02 06:18:28 ron_frown: I'm playing with things that might crash and burn (aka, raise an unexpected exception) Jan 02 06:18:32 or not designed for that at all Jan 02 06:18:48 not designed for that, but it should work if they're in the same process i suppose Jan 02 06:19:12 so separate processes will me continue execution even if one of those things abruptly dies Jan 02 06:19:34 (or at least, that's my understanding of the model) Jan 02 06:20:11 Ah, found it. You were correct k0nichiwa: It's just a modifier to the manifest Jan 02 06:21:03 Time to see what breaks now :) Jan 02 06:26:00 Hmm, i have a preference, and i'm using an onPreferenceClickListener, and i'm wanting use a switch to check between the different preference items. How do i get the key of an Preference item? Jan 02 06:27:46 Is there a problem with passing a `null` object over AIDL? Jan 02 06:29:00 Somehow (magically), a few methods are successfully called, until it gets to one that passes in null - that one causes _reply.readException() to raise a NPE Jan 02 06:29:11 (NullPointerException) Jan 02 06:31:03 how to fix this error in eclipse "import com.example.project.R cannot be resolved" Jan 02 06:33:34 maslen : null is always a valid value for a reference Jan 02 06:33:47 Pfhoenix: Right, that's why I'm surprised ;( Jan 02 06:34:25 I really don't care for Java's love of throwing exceptions instead of doing a sensible alternate action Jan 02 06:35:00 that's what the catch block is for Jan 02 06:35:23 why throw an exception if I try to cast a null reference? Jan 02 06:35:28 just spit out a null result Jan 02 06:35:41 hmm, while debugging, how can I switch to debugging the Service instead of the foreground Application? Jan 02 06:35:44 is it a serious no-no to execute "SELECT * FROM table"? Jan 02 06:35:56 even if I do want all of the columns? Jan 02 06:35:56 RustyShackleford: yes Jan 02 06:35:56 RustyShackleford : I'm onto you. Jan 02 06:36:10 RustyShackleford: It means you're probably designing something poorly Jan 02 06:36:17 RustyShackleford: list the columns explicitly Jan 02 06:36:26 OR it means you need all the columns Jan 02 06:36:28 RustyShackleford: It's always best to list the columns explicitly though, if you're tempted to use * Jan 02 06:36:36 Pfhoenix: casting null isn't invalid Java Jan 02 06:37:11 Yeah... I need to figure out how to debug the process the Service is running in, instead of the app :( Jan 02 06:37:18 there are even cases where I've had to do that to satisfy contructor argument typing Jan 02 06:37:28 JakeWharton : you sure? I'm pretty sure I was getting untrapped exceptions for trying to cast a null reference Jan 02 06:37:38 Pfhoenix: positive Jan 02 06:37:39 Pfhoenix: That doesn't make sense. Jan 02 06:38:06 let me work up a quick test Jan 02 06:41:45 it crashes Jan 02 06:41:57 this is in IntelliJ and Eclipse Jan 02 06:42:16 class A, class B extends A, class C extends A Jan 02 06:42:29 Pastebin :) ? Jan 02 06:42:33 sure =) Jan 02 06:42:50 Pfhoenix: http://ideone.com/rE6VuY Jan 02 06:43:27 stupid tabs/spaces Jan 02 06:44:59 Pfhoenix: ideone.com/RZYCUe Jan 02 06:46:19 i have an imageview inside of a viewpager. i'm overriding ontouch in the image view to prevent interception of touch events by the parent viewpager when the user has more than one finger down. sometimes, when the touch is lifted, the app crashes with "pointerIndex out of range". I'm a little stuck, any ideas? Jan 02 06:50:26 eclipse is complaining about not being able to switch on a string," for a source level below 1.7", however android argues, how do i fix? Jan 02 06:51:06 I wonder if that works because o is already null? Jan 02 06:51:30 when I have a valid reference and try to cast it to a child class, that's when I get the crash Jan 02 06:52:02 yep, that's it Jan 02 06:52:12 if the reference is null, casting it gets a null Jan 02 06:52:31 try setting Object o = new Integer(1); Jan 02 06:52:42 and enjoy the crashing. Jan 02 06:52:57 right, because an Integer is not a String nor a Boolean... Jan 02 06:53:31 but neither is null Jan 02 06:53:38 Jak_o_Shadows: you can't switch on Strings Jan 02 06:53:39 a failed cast should result in null Jan 02 06:53:53 no, a failed cast should throw a ClassCastException Jan 02 06:54:11 and that's where we disagree =) Jan 02 06:54:20 you are doing something invalid Jan 02 06:54:29 how could you expect it to not throw an exception? Jan 02 06:54:43 JakeWharton: I'm figuring out what preference is getting tapped on. Jan 02 06:54:59 Java is type-safe for a reason Jan 02 06:55:00 im having a problem with assets that have "_" in the file name Jan 02 06:55:13 Jak_o_Shadows: you cannot switch on Strings with Android Jan 02 06:55:18 it coudl be a url encoding thing or a modified utf8 thing Jan 02 06:55:30 Yeah, looking up alternatives now Jan 02 06:55:36 if/else Jan 02 06:55:41 the compiler already does a lot of things for me if I try to do something invalid Jan 02 06:56:31 JakeWharton: Android doesn't support Java 7 (or w/e it's up to now?) Jan 02 06:56:38 maslen: correct Jan 02 06:56:47 Interesting. Thanks Jan 02 06:56:58 maslen: Android 1.0 - 2.2.x is Java 5-based, Android 2.3+ is Java 6-based Jan 02 06:57:19 if you want a nice glossy picture Jan 02 06:57:24 I guess I'm a 2.3+ person then Jan 02 06:57:43 although preferably, I'd be a 4.3+ person :) Jan 02 06:57:56 backwards compatability sucks. Jan 02 06:58:18 android:minSdkVersion="17" and go nuts Jan 02 06:58:29 I don't find backwards compatibility to be that hard, really Jan 02 06:58:31 * maslen starts chomping on almonds Jan 02 06:58:36 and wait to see no sales =) Jan 02 06:58:46 Pfhoenix: I dev for research and run, remember :) ? Jan 02 06:58:52 I'm aiming for minSdkVersion 10 Jan 02 06:58:58 fun* Jan 02 07:00:59 theming is the biggest problem I've found in terms of backwards compatibility Jan 02 07:02:10 man I want a tablet Jan 02 07:02:14 Nexus 7 maybe Jan 02 07:03:19 think they are at the point where they can replace a laptop? Jan 02 07:03:31 leslie: how so? theming hasn't really changed since 1.0. If you make a style it usually looks good on 99.9% of devices Jan 02 07:03:32 not even close Jan 02 07:03:37 ugh im using URI's to provide a path into my assets and its acting weird on "_" in the "host" part Jan 02 07:04:08 JakeWharton, the difference between 2.3's theme and 4.0+'s Holo theme Jan 02 07:04:51 oh, that doesn't bother me Jan 02 07:05:00 most devices have some asshat OEM that uglified their default theme anyway Jan 02 07:05:14 every app should be providing styles for common things like buttons and edittexts Jan 02 07:05:32 yeah. with any luck, it won't be a problem soon though, since Holo is meant to be on 4.0+ devices Jan 02 07:05:46 right, it's in the CTS Jan 02 07:05:59 too bad stock holo apps all look uggo Jan 02 07:06:52 I don't think they're terrible. but at least it provides a level playing field in terms of customisation. Jan 02 07:07:19 without having to worry if OEMs have modified the default Jan 02 07:07:37 RustyShackleford : not quite Jan 02 07:07:55 but it's more an issue of peripheral usage than productivity apps at this point Jan 02 07:08:08 I do love my Nexus7 Jan 02 07:08:15 it won't be replacing my laptop, though Jan 02 07:08:59 tablet completely replaced laptop for me - but then I mainly used the laptop as an access device anyway, which the tablet does well... for work, I use a desktop machine Jan 02 07:09:12 MOAR POWER! Jan 02 07:09:30 leslie: true. a solid base is essential Jan 02 07:09:42 i don't think I need a full fledged laptop. I'll do all my dev stuff at home Jan 02 07:10:10 just something to bring to school Jan 02 07:10:24 now, I haven't played with remoting into my home system via my N7 Jan 02 07:10:35 can you use a keyboard with a Nexus 7? Jan 02 07:10:36 but to be productive (such as development), you really need a mouse and keyboard Jan 02 07:10:40 bluetooth Jan 02 07:10:45 or USB Jan 02 07:10:52 not sure about bluetooth mouse Jan 02 07:10:57 i could do without the mouse Jan 02 07:11:05 Leeds : yeah, get yourself an OTG cable with a USB hub Jan 02 07:11:10 or simply root your device Jan 02 07:11:13 which I'm not willing to do Jan 02 07:11:24 yeah I'm too much of a wimp to root my phone Jan 02 07:11:37 i don't want to soft-brick it Jan 02 07:11:50 no need to root, Android has supported both BT and OTG HID devices well for a while now Jan 02 07:11:57 its the no going back part that scares me Jan 02 07:13:14 I can't wait for my OTG cable to show up Jan 02 07:13:18 should be sometime this week Jan 02 07:14:39 then I can truly be productive Jan 02 07:14:52 like playing ChronoTrigger without using the damned virtual controls Jan 02 07:15:12 http://www.kickstarter.com/projects/phonejoy/phonejoy-play-turn-your-phone-into-a-console *ahem* Jan 02 07:15:56 i dont see how thats gonna work leeds Jan 02 07:16:02 theres 50000 models of smartphones Jan 02 07:16:12 it works, I've played with their prototype Jan 02 07:16:32 wtf Jan 02 07:16:37 how do you get a prototype! Jan 02 07:16:43 lemme guess, you work there lol Jan 02 07:17:12 nope, they had a launch event to drum up some interest Jan 02 07:17:22 ah Jan 02 07:17:26 figurs Jan 02 07:17:29 i always miss out Jan 02 07:17:39 were you *in* Hong Kong at the time? Jan 02 07:18:11 usa Jan 02 07:18:52 ... that has got to be the awesomest gaming peripheral idea for a mobile device ever. Jan 02 07:18:57 you cant use kickstart to start a business if i recall Jan 02 07:18:59 which sucks Jan 02 07:19:09 cuz i need help building my web/software dev business Jan 02 07:19:14 Bitgod : that's a semantic difference Jan 02 07:19:19 no, it's for a specific project Jan 02 07:19:45 then what will help me w/ funds Jan 02 07:19:50 im not entitled to a loan Jan 02 07:20:05 and they've tightened up their rules, so you need to explicitly define the risks to your project, can't post based on renders, etc. Jan 02 07:20:56 Bitgod: family? Jan 02 07:21:25 none Jan 02 07:21:29 if you've got a good idea for a unique company, you should be able to raise basic funding... if the idea is something like "make cool apps", not so much Jan 02 07:21:32 only one left is my aunt and shesn ot rich Jan 02 07:21:44 look up bootstrapping... Jan 02 07:22:21 man I miss my bike =( Jan 02 07:22:38 bootstrapping? Jan 02 07:22:47 thats a term used for bootloaders eh Jan 02 07:23:05 it was a general use term before that Jan 02 07:23:05 approximately... you start up your company in your spare time while doing other work to pay your rent Jan 02 07:23:19 haha Jan 02 07:23:19 pulling yourself up by the bootstraps Jan 02 07:23:24 refers to "pulling yourself up by your bootstraps" - i.e. getting going without outside help Jan 02 07:23:40 if you can do it, its a much more sound business prospect Jan 02 07:24:00 yeah, because you're starting with 100% equity and no debt Jan 02 07:24:11 kickstarter is interesting but any other forms of investment usually wants hefty returns or stake in your company Jan 02 07:24:21 kickstarter only let people from us and UK start a project for funding Jan 02 07:24:27 can you do it from other places? Jan 02 07:24:51 http://www.kickstarter.com/discover/categories/open%20software?ref=sidebar Jan 02 07:24:58 i could put up a software project Jan 02 07:25:05 Maziz: you need to at least have a business entity in UK/US to run it though, yes - as I said, the phonejoy guys are based in Hong Kong, but they have a US company Jan 02 07:25:10 like im working on a wrestling simulator on android Jan 02 07:25:17 ~_~ Jan 02 07:25:19 since android lacks one Jan 02 07:25:20 just get it the fuck done Jan 02 07:25:26 k Jan 02 07:25:26 I've got an interesting app idea Jan 02 07:25:26 and release on the store Jan 02 07:25:28 Hi, in the new ADT/Eclipse SDK for android. How do I find the manifest file etc? Or at least the file-liste for the project? Jan 02 07:25:31 then any money you make Jan 02 07:25:32 you keep Jan 02 07:25:35 ron_frown: what happened to your kickstarter? :) Jan 02 07:25:35 but still thinking where to start Jan 02 07:25:53 still putting otgether the proposals etc Jan 02 07:26:07 hoping they will still be viable by the time I am done Jan 02 07:26:10 heres my issue Jan 02 07:26:18 i suck at design layouts for 10.1" tablets Jan 02 07:26:27 like WHICH controls should be used mostly? Jan 02 07:26:32 I am also hoping to have a nice solid proof of concept of my software before raising capital so I can say look software is done, I just need to take care of some engineering fees for the hardware Jan 02 07:26:38 i have a main screen, left side has 6 buttons Jan 02 07:26:43 right side has the game logo Jan 02 07:26:43 Bitgod: you're lucky, since 10.1" tablets are a tiny minority of Android devices Jan 02 07:27:05 Anyone? Jan 02 07:27:06 should i remove the 6 buttons and add a tab like control instead Jan 02 07:27:07 ron_frown: but thats just a prototype right? Jan 02 07:27:07 etc Jan 02 07:27:11 sure Jan 02 07:27:17 Leeds: i dont have a phone size device to dev on Jan 02 07:27:19 so i cant do phone Jan 02 07:27:21 ron_frown: that's the thing with the phonejoy guys - what they're saying is "we're done with the design, we have working prototypes, what we need is a chunk of cash to get mass production started" Jan 02 07:27:25 but its a heres what I can do, heres what i HAVE done Jan 02 07:27:32 and my pc doesnt do emulators well, its a i5 3.2GHz w/ 6GB of ram Jan 02 07:27:52 see my thing is I've already got two embedded architectures and corresponding very custom versions of android under my belt Jan 02 07:28:03 this is just more of the same, except endeavors done on my sole behalf Jan 02 07:28:14 Leeds: (to me) what's scariest is the amount of work that goes into a stable release versus a "proof of concept" Jan 02 07:28:20 last time i ran a emulator from android Jan 02 07:28:25 it took 2hrs to load lol Jan 02 07:28:27 so wtf Jan 02 07:28:29 maslen: yeah that Jan 02 07:28:31 I've got one android app I am gonna release hopefully in 1wk or so Jan 02 07:28:34 maslen: that's life Jan 02 07:28:40 Yeah :( Jan 02 07:28:40 which was get the business partners feet wet etc Jan 02 07:28:46 get some revenue hopefully Jan 02 07:29:12 and then knock out the prototypes Jan 02 07:29:17 Hmm, how can I have bidirectional communication across processes (when using AIDL) ? Jan 02 07:29:27 anyone using sliding menu? Jan 02 07:29:29 I've got some .net software as a service ideas too Jan 02 07:29:34 I have one-way communication working. Now I need the Service to be able to send am essage back Jan 02 07:29:43 https://github.com/jfeinstein10/SlidingMenu Jan 02 07:29:44 (god damn you JakeWharton for getting a REAL job... ;-) Jan 02 07:29:50 ron msg pls :/ Jan 02 07:29:52 trying to figure out a way to get it to build using ANT Jan 02 07:30:03 the number of countries that google supported for paid app is not that many Jan 02 07:30:03 can I output a JAR with this git repo? Jan 02 07:30:14 priv msg is not a very good way of communitcating with me Jan 02 07:30:15 any idea people from countrys not supported can publish paid apps? Jan 02 07:30:16 I rarely check em Jan 02 07:30:32 Maziz: hell of a lot more than they used to support, but it's not been growing fast recently Jan 02 07:30:37 where do I find the Manifest file? Jan 02 07:31:08 ron Jan 02 07:31:17 android emulators through sdk is slow as shit Jan 02 07:31:18 literally Jan 02 07:31:23 uhh do some googling Jan 02 07:31:28 Bitgod: try a laxative Jan 02 07:31:29 enable haxm and get an x86 image Jan 02 07:31:29 and i need to test my app on a 4.x emulator Jan 02 07:31:34 Is there a particular reason why the filtering part of the broadcast reciever, the intent.getAction() == action part wouldn't work? Using Log.d, they seem to be the same, but apparently not Jan 02 07:31:39 since i dont have a fuckin phone Jan 02 07:31:41 my shit USUALLY takes less than 2hr Jan 02 07:31:45 wow, the emmulatr just crashes Jan 02 07:31:48 soon as it loads Jan 02 07:31:49 CRASH Jan 02 07:31:50 anyone? Jan 02 07:31:57 apparently I should be able to simply issue ant debug Jan 02 07:31:57 http://developer.android.com/tools/building/building-cmdline.html Jan 02 07:32:00 but there is no build.xml. Jan 02 07:32:10 make one Jan 02 07:32:10 How do I compile SlidingMenu to a *.jar? Jan 02 07:32:15 android init or whatever Jan 02 07:32:40 command android not found. Jan 02 07:32:53 ok Jan 02 07:32:54 ron_frown Jan 02 07:32:56 you need to do some googling Jan 02 07:32:58 whats a common screensize Jan 02 07:33:00 for most phones Jan 02 07:33:03 I dont know Jan 02 07:33:05 do some googling Jan 02 07:33:05 haha Jan 02 07:33:15 thats going to be my go to answer tonight, newbs be warned =) Jan 02 07:33:26 if only there was...documentation. Jan 02 07:33:33 that outlined this succinctly and correctly. Jan 02 07:33:40 I havent had problems with it Jan 02 07:33:41 * ron_frown shrugs Jan 02 07:33:45 ron_frown: RTFM high five! Jan 02 07:34:22 I generlaly like to help where I can, but honestly a lot of this shit is VERY straighforward and could have been straightened in about 1min of google Jan 02 07:34:49 ron_frown: How long have you been working with Android? Jan 02 07:34:56 JESUSCHRIST Jan 02 07:35:01 why is it that the Eclipse from ADT does not create a build.xml? Jan 02 07:35:03 even editing a emulator image on android sdk Jan 02 07:35:05 crashes Jan 02 07:35:08 MY PC IS NEW Jan 02 07:35:08 Is this as format for an orthogonal build tool? Jan 02 07:35:15 Bitgod: Windows or Linux? Jan 02 07:35:20 win 7 Jan 02 07:35:25 that's suprising Jan 02 07:35:30 android vdm Jan 02 07:35:41 ron_frown: The problem is, any programmer just comes and starts android, without bothering to learn java or anything beforehand Jan 02 07:36:07 yep Jan 02 07:36:11 emulator 'starts' Jan 02 07:36:12 maslen: since 1.6 Jan 02 07:36:13 then crashes Jan 02 07:36:18 casually tho Jan 02 07:36:18 emulator-arm.exe has stopped working Jan 02 07:36:26 Windows can check online for a solution to the problem. Jan 02 07:36:28 Jak_o_Shadows - programming specifically Jan 02 07:36:35 Bitgod google Jan 02 07:36:41 k Jan 02 07:37:10 Yeah, i jumped in from python + scattering of other, to android, and i feel like i have no idea what is going in with java sometimes Jan 02 07:37:15 I didnt have any one to hold my hand through the learning process Jan 02 07:37:26 Jak_o_Shadows: I have some really nice slides for Java :) Jan 02 07:37:26 I'm a seasoned platform dev by no means but my owns Jan 02 07:37:32 reverse engineering a lot Jan 02 07:37:34 me too, i've never wanted to learn java, and still don't :( Jan 02 07:37:42 ah Jan 02 07:37:47 memory must be under 1GB Jan 02 07:38:06 is it normal for bootup to take a long time tho Jan 02 07:38:09 but in the end, after extensive experience with other languages, it's not a huge deal Jan 02 07:38:18 exactly Jan 02 07:38:32 java is just like a shitty half ass versioned of c# +0 Jan 02 07:38:33 =) Jan 02 07:38:45 but on android i've done a lot of googling on things like "how to sort a list" Jan 02 07:38:49 i come from vb.net and some c# Jan 02 07:38:53 just released a pet project of mine https://play.google.com/store/apps/details?id=com.creativeperson.cheddar would love some feedback Jan 02 07:38:54 so java isnt impossibly hard Jan 02 07:39:03 ron Jan 02 07:39:03 there was this dude we hired... he's been a software guy for like 20 years Jan 02 07:39:07 ithe emulator boot up Jan 02 07:39:14 I am not shitting you when I say he told me he doesnt know much if any sql Jan 02 07:39:17 but the loading time is taking 5mins so far... Jan 02 07:39:20 how in the fuck do you not learn sql Jan 02 07:39:23 wtf? sql is easy shit Jan 02 07:39:25 even ive done it heh Jan 02 07:39:25 it everywhere =) Jan 02 07:39:30 ron_frown: One year, twenty times. Jan 02 07:39:33 unless you're in the web business, sql may not be that common Jan 02 07:39:37 I resisted learning SQL for a few years, but it really is nicer than flatfile dbs Jan 02 07:39:40 maslen - precisely Jan 02 07:39:46 there's 'learning sql' and 'learning sql' - the easy bit is easy, but it can get immensely complex at times Jan 02 07:39:54 jak: yeah even sqlite is better than flatfiles heh Jan 02 07:40:02 FFS Jan 02 07:40:02 i feel, knowing mysql very well, that i don't actually know sql that well at all Jan 02 07:40:07 desaster: I taught a recent HS students SQL in about 30 minutes. Jan 02 07:40:09 can someone ANSWER me Jan 02 07:40:14 THE EMULATOR IS RUNNIG Jan 02 07:40:20 but im stick at the Android logo! Jan 02 07:40:25 for 5mins now its just glowing Jan 02 07:40:26 getting intimately familliar with the architecture of rdbms', I've come to the conclusion that they pretty much suck balls for what we want them to do Jan 02 07:40:30 SQlite is useful for storing data that's too large/complex for a flat file Jan 02 07:40:31 theres just not many options =) Jan 02 07:40:34 Bitgod: it takes a while Jan 02 07:40:37 jak Jan 02 07:40:50 so im gonna wait 30mins every time i want to do a app test? Jan 02 07:40:53 Bitgod read on hardware accelerated vm and haxm Jan 02 07:40:53 Bitgod: More patience. Jan 02 07:40:53 wow thats fucking dumb Jan 02 07:40:59 Bitgod you boot it once Jan 02 07:40:59 even a NES has more power and takes 1 ms to load Jan 02 07:41:02 oh... Jan 02 07:41:06 okay then Jan 02 07:41:14 the emu you are running is emulating an arm processor Jan 02 07:41:17 and emulation is slow. Jan 02 07:41:19 Bitgod: You'll either launch the emulator at the beggining of your dev. Or like me, you'll borrow a device from someone else :) Jan 02 07:41:24 which is why I said HAXM Jan 02 07:41:33 maslen: yeah my friends are crackberrie lovers Jan 02 07:41:36 so i doubt im borrowing one heh Jan 02 07:41:38 but if you'd listened you would have googled and realize it was good stuff Jan 02 07:41:41 -ie +y Jan 02 07:41:43 or use the x86 image and have it run decently Jan 02 07:41:50 what is HAXM Jan 02 07:41:59 haxm is x86 virtualization etc Jan 02 07:42:03 ron_frown: What do you look for when hiring a recent graduate? Just wondering Jan 02 07:42:13 how does running a x86 android emulator Jan 02 07:42:24 In VMware player/Vbox Jan 02 07:42:25 link w/ your project in intellijidea or eclipse Jan 02 07:42:29 ? Jan 02 07:42:41 to be honest... I just ignore any schooling they've done... because in my book I've seen degrees falsely qualify people more than its legitimate Jan 02 07:42:58 ron_frown, good man! Jan 02 07:43:00 ron_frown: And HR doesn't kill you? Jan 02 07:43:12 i dont look at 'degrees' either Jan 02 07:43:17 too many people give too much credit to degrees Jan 02 07:43:20 i care more about what the person is capable of Jan 02 07:43:38 I'm uneducated and yet, I'm a destroyer... I've got 3 coworkers that are all graduates and couldnt code themselves out of a wet paper bag Jan 02 07:43:44 * Zharf didn't graduate ;) Jan 02 07:44:04 * Bitgod did but his college went out of business, rendering his 4yr degree useless as toilet paper Jan 02 07:44:06 point being, a lot of times school doesnt build a toolbox full of tools, they teach you how to approach the problems Jan 02 07:44:11 one solution doesnt always fit all Jan 02 07:44:12 someone who has gone through a proper degree course should have had certain instincts instilled in them which will mean they *think* in certain ways Jan 02 07:44:34 it doesn't mean that someone who *doesn't* have a degree can't think well, but a degree is a sign Jan 02 07:44:35 so... Jan 02 07:44:44 the load company wants me to pay my college fees Jan 02 07:44:47 i told them fuck off Jan 02 07:44:51 leeds I believe the inverse Jan 02 07:44:51 since the degree by law is invalid heh Jan 02 07:44:58 sometime people just get degrees for the same of the paper Jan 02 07:44:58 I think degree = cant think for themselves in general =) Jan 02 07:45:10 obviously I cant make those sort of discriminations Jan 02 07:45:17 same - sake Jan 02 07:45:18 ron_frown: Most companies won't hire you without a degree these days Jan 02 07:45:20 now back to my question Jan 02 07:45:26 ron_frown: I did say "proper degree course" - which may well exclude most US degrees by default Jan 02 07:45:37 I value compsci concepts.. .I know graduates and non grads alike that dont know SHIT about advanced data structures etc Jan 02 07:45:39 and when to use them Jan 02 07:45:40 and finnish Jan 02 07:45:44 how does running a x86 Android Emulator work with Eclipse/IntellijIDEA? Jan 02 07:45:50 err i meant underline sorry heh Jan 02 07:45:51 fuck Jan 02 07:45:52 google Jan 02 07:45:54 google Jan 02 07:45:58 ron_frown: I know one guy who's getting a degree purely so he doesn't have the problems of being hired - he had most of the knowledge before he stepped in. Jan 02 07:46:03 can we change this channel then? Jan 02 07:46:04 Bitgod: unfortunately, it doesn't, so you'll have to suffer, and we'll all laugh Jan 02 07:46:10 ok Jan 02 07:46:16 then development sucks on android Jan 02 07:46:20 if ur forced to buy a phone Jan 02 07:46:27 it does... can I recommend BB10 instead? Jan 02 07:46:35 thats unfortunate as the market share for android doesnt appear to be slowing down Jan 02 07:46:49 a degree can get your foot in the door Jan 02 07:46:52 im still waiting for the fucking arm emulator to finish laoding Jan 02 07:46:56 ron, I HAD ONE Jan 02 07:46:59 and I do see value in that one Jan 02 07:46:59 4yrs of it Jan 02 07:47:02 $80K Jan 02 07:47:07 the college went out of business Jan 02 07:47:11 so my degree is null Jan 02 07:47:14 i asked a lawyer Jan 02 07:47:19 what's the best way to create an android library project that outputs a Jar? Jan 02 07:47:20 ron_frown: He's into security - exploitation/RE/web pentesting Jan 02 07:47:26 it seems some of these open source ones, simply...do not. Jan 02 07:47:31 Bitgod: That's rough. Jan 02 07:47:31 so im not prepaying the load Jan 02 07:47:33 loan Jan 02 07:47:40 fanny mae can bite me heh Jan 02 07:47:41 Bitgod: phones are fairly cheap, and besides, the emulator doesn't run in vmware or , there's an option in the sdk manager Jan 02 07:47:43 welcome to bad credit hell! Jan 02 07:47:53 loan companies USUALLY arent the schools Jan 02 07:47:58 ron: and? Jan 02 07:48:01 they did provide the service therefore you are effed =) Jan 02 07:48:04 im not paying for a degree i cant use Jan 02 07:48:11 not the financer's fault =) Jan 02 07:48:18 Bitgod: I know that you legally can't declare bankruptcy on student loans. That's going to haunt you. Jan 02 07:48:21 anyway Jan 02 07:48:46 I generally like to get to know a person, and see what they like Jan 02 07:48:59 probation? Jan 02 07:49:08 how many staff you have anyway Jan 02 07:49:21 I'm not the hiring folk here, but I do provide input on candidates Jan 02 07:49:29 here we have maybe 10 engineers Jan 02 07:49:39 last employer I was a lead, and we had 100 engineers Jan 02 07:50:10 I really hate the new Ecilpse/ADT. Jan 02 07:50:15 Dont find anything in it. Jan 02 07:50:23 How the fuck do I build an apk? Jan 02 07:50:27 Bitgod: ... can't you have your transcript transferred to another university just for final exams? Jan 02 07:50:29 Feeling a bit lost.. Jan 02 07:50:33 bin dir Jan 02 07:50:34 granden: File>Export ? Jan 02 07:50:35 I'm an intj and so if I detect that in another person, I kinda tend to go for those folks Jan 02 07:50:53 intj - intelligent? Jan 02 07:50:59 http://en.wikipedia.org/wiki/INTJ Jan 02 07:51:02 personality type Jan 02 07:51:18 * p_l doesn't exactly give heed to that categorisation... Jan 02 07:51:32 i see Jan 02 07:51:38 I didnt either until I took the test and see what it said about me Jan 02 07:51:40 Bitgod: Yeah, you should be able to transfer to another uni, bring your transcripts and course syllabus, and they should be willing to transfer in about half of your degree. Your other approach might be to see if you can go straight for an Master's degree, even though it's no longer acreddited Jan 02 07:51:40 hmph, INTJ, but project lead? thought that was more Entj Jan 02 07:51:43 and it hit the nail on the head BIG TIME Jan 02 07:51:55 didnt say project manager Jan 02 07:51:56 entj was sorta ok for me Jan 02 07:52:04 well guys Jan 02 07:52:06 ah, k Jan 02 07:52:07 thee emulator sucks ass Jan 02 07:52:09 its loaded Jan 02 07:52:18 its stuck on android logo but i got a clock and taskbar Jan 02 07:52:20 but no response lol Jan 02 07:52:28 bitgod seriously you are like 5 minutes from a /ignore for me Jan 02 07:52:36 my friend has a android phone but its 2.2 Froyo Jan 02 07:52:40 so i cant use that for 4.x dev Jan 02 07:52:41 not saying that's going to end your world or anything Jan 02 07:52:43 but fuck dude Jan 02 07:52:44 google Jan 02 07:52:51 I DID Jan 02 07:52:59 there are ways to get a 4.0 emu running reasonably with x86 image and haxm Jan 02 07:53:05 as I've said about 10x prior Jan 02 07:53:12 maslen: Ah, ok. But that builds for google play I guess? But its okej. But I need to beta test it on some device first. Jan 02 07:53:12 hmm Jan 02 07:53:16 ill try that ron hold Jan 02 07:54:11 ron_frown: INTJ seems to describe me fairly well (looking at Wiki). Where is that test :) ? Jan 02 07:54:37 ron_frown: interesting Jan 02 07:54:49 http://www.humanmetrics.com/cgi-win/jtypes2.asp Jan 02 07:54:56 ron Jan 02 07:54:58 its installed it says Jan 02 07:55:02 in SDK manager Jan 02 07:55:11 I'm not going to hold your hand through this Jan 02 07:55:15 read on creating x86 image Jan 02 07:55:29 yes im working on it now Jan 02 07:56:09 for me knowing my personality types has really made me come to peace with my problems in the workplace etc Jan 02 07:56:32 hmm Jan 02 07:56:41 knowing who you are.. Jan 02 07:56:47 i should take it later Jan 02 07:56:54 eg, if something isnt challenging, or I'm basically told what to code and how to code it, or I cant question anything Jan 02 07:56:57 its like torture for me Jan 02 07:57:02 and thats pretty typical Jan 02 07:57:10 there are jobs that are good/bad for that Jan 02 07:57:25 woo, finall Jan 02 07:57:52 and I'm intp rather, not intj Jan 02 07:57:55 haha Jan 02 07:57:57 *finally Jan 02 07:58:11 my StorageManager class is ready for use Jan 02 07:58:19 http://software.intel.com/en-us/articles/installing-the-intel-atom-tm-android-x86-emulator-image-add-on-from-the-android-sdk-manager/ Jan 02 07:58:22 i did all that Jan 02 07:58:27 but im not getting it in my dropdown Jan 02 07:58:31 even though its installed o_O Jan 02 07:58:33 I'll integrate Android's StorageManager for OBB crap next Jan 02 08:00:32 ron_frown: ISTJ :) Jan 02 08:00:54 cool cool Jan 02 08:01:09 The problem is, when I see tests like that, I immediately start thinking about the answers they want, instead of blindly answering them honestly :) Jan 02 08:01:20 thats true Jan 02 08:01:28 but if you dont know the answers they want Jan 02 08:01:33 FIXED Jan 02 08:01:33 I did it 3 times, and got 3 different answers (an equivalent test anyway), but i trust the first one the most Jan 02 08:01:40 i had to run the installer .exe by hand eh Jan 02 08:01:41 heh* Jan 02 08:01:58 I took that test once as a part of a job hiring thing Jan 02 08:02:18 and I totally bullshitted, giving the answers I thought employers would want to see, not knowing its a personality profile Jan 02 08:02:29 Bitgod: are you using an ancient SDK or something? Jan 02 08:03:04 hmm Jan 02 08:03:09 ron_frown: Looking through the "16 types" though, none of them seem to be negative. Which makes me a bit skeptical Jan 02 08:03:14 how to take the test more honestly Jan 02 08:03:30 the point isnt bad/good Jan 02 08:03:33 its just traits Jan 02 08:03:43 eg, I am not social... i dont give a fuck about people Jan 02 08:03:44 haha Jan 02 08:03:53 true. Jan 02 08:04:04 i'd say thats generally not a desirable trait Jan 02 08:04:16 but some of my strengths are Jan 02 08:04:32 So I wouldn't want to work under you.. but you'd get the job done Jan 02 08:04:46 which might make it worth it to the company. Jan 02 08:06:15 you know what I'd say... I'm good at recognizing genuine talent and the DESIRE to learn Jan 02 08:06:28 yeah, I've been an INTJ my entire life Jan 02 08:06:31 I dont expect anything more than the next guy out of employees Jan 02 08:06:41 I just dont WANT to manage Jan 02 08:06:46 I'm a dreamer =) Jan 02 08:07:14 hmm Jan 02 08:07:15 dreamers are fine if they know how to channel that into being productive Jan 02 08:07:20 ron_frown its up Jan 02 08:07:25 only nexus 7 though ran it Jan 02 08:07:36 bit faster? Jan 02 08:07:38 people that can't get a job done, when they reasonably should be able to, just piss me off Jan 02 08:07:59 yeah, so any ideas how I can send a message from my Service to an Activity? Jan 02 08:08:11 maslen: broadcast intent? Jan 02 08:08:19 Leeds: I have no idea what those are. Jan 02 08:08:29 what pisses me off is the inclination to do a half assed job, and then having to come back and clean it up... I understand shortcomings in a design... but my boss has told me things like Jan 02 08:08:31 then this would be a good time to take to Google and learn Jan 02 08:08:39 MUCH faster Jan 02 08:08:44 clicks are slow but i got a ui Jan 02 08:08:46 it doesnt have to be efficient, or be done right, it just has to work Jan 02 08:09:00 and to that I just want to slap the shit out of him, for telling his employees that, and for believing that Jan 02 08:09:01 or if your service already has access to your Activity, post a message Jan 02 08:09:20 ron_frown: I'd rather have inefficient code that can be cleaned up vs fast code that doesn't :( Jan 02 08:09:27 I need to get into woodworking or auto part manufacturing where elegance, simplicity and beauty are appreciated Jan 02 08:09:29 ron_frown : only he's basically right, while being wrong Jan 02 08:09:35 it only has to work Jan 02 08:09:42 but in order to work, it has to be right Jan 02 08:09:45 to some degree Jan 02 08:10:10 Hi people! I have a stack trace from a crash, but I see this in it: at gr.ergobyte.galinos.activities.aq.onPostExecute(SourceFile:1) How can I map 'aq' to my real class ? Jan 02 08:10:23 lets put it this way, we spend like 80% of our time going back and fixing shit we wrote ages ago because 1) we just make it work, 2) he cant see the value in unit testing because its doing something 2x Jan 02 08:10:29 it has to be right enough, efficient enough, to get the job done with the minimum time spent on it Jan 02 08:10:30 Pfhoenix: It does. And I tried adding a method to the AIDL-defined interface to pass in the reference, but it doesn't seem to send it correctly - the local variables are gone Jan 02 08:10:45 weird Jan 02 08:10:56 what about a global reference to your Activity? Jan 02 08:11:02 from your Service Jan 02 08:11:09 heh. Separate processes now Jan 02 08:11:14 oh. Jan 02 08:11:25 And I figured that part out (I think) :) Jan 02 08:12:09 ron_frown one thing that pisses me off Jan 02 08:12:20 it only uses intel x86 on Nexus 7 emulated device Jan 02 08:12:20 choose wisely Jan 02 08:12:20 odd Jan 02 08:12:28 why the fuck does that matter Jan 02 08:12:34 is it an andorid device Jan 02 08:12:36 cuz i need 4" not 8" Jan 02 08:12:37 the rest is meh Jan 02 08:12:37 7" Jan 02 08:12:43 as an aside, what I've never liked about the Jung personality tests is that most people that are borderline introverts aren't really introverts Jan 02 08:12:50 haha Jan 02 08:12:54 we're fine with other people like ourselves Jan 02 08:12:56 non-idiots. Jan 02 08:13:12 we just recognize that most people ARE idiots, and we decide to not spend our time with them Jan 02 08:13:33 got it, i just edited the nexus 7 to be 4" solved :P Jan 02 08:13:51 why not just use Nexus 4 settings? Jan 02 08:13:54 I freak out in the grocerystore hahaha Jan 02 08:14:01 Pfhoenix: there was none :p Jan 02 08:14:02 you do realize that all you're doing is changing screen resolution, right? Jan 02 08:14:09 yes Jan 02 08:14:10 which is fine Jan 02 08:14:13 no hardware is being simulated Jan 02 08:14:18 oh Jan 02 08:14:20 so the name of the AVD template is irrelevant Jan 02 08:14:42 all you're doing is setting resolution, pixel density, and memory constraints Jan 02 08:14:50 hmm Jan 02 08:14:50 ron_frown : then you must truly be an introvert =) Jan 02 08:14:52 wiat you mean if I name my avd my octocore 10.1 its not oging to pretend to be 8 cores? Jan 02 08:14:57 can you download new templates Pfhoenix? Jan 02 08:15:01 cuz nexus 4 isnt there Jan 02 08:15:06 Bitgod : you don't need to, you can create your own Jan 02 08:15:10 and i did Jan 02 08:15:14 just google the specs for the Nexus 4 Jan 02 08:15:15 then use it Jan 02 08:15:20 and it wouldnt let me use intel x86 emulator Jan 02 08:15:30 then I guess life hates you Jan 02 08:15:31 which is the point of HaXM Jan 02 08:15:39 yes it does :\ Jan 02 08:15:51 I recommend giving up for now and playing more Chrono Trigger Jan 02 08:15:53 like I am. Jan 02 08:15:58 lol good game :D Jan 02 08:16:03 incorrect. Jan 02 08:16:07 amazing game =) Jan 02 08:16:07 wtf? Jan 02 08:16:11 yes sir :) Jan 02 08:16:26 doesnt Chrono mean time? Jan 02 08:16:37 yep Jan 02 08:16:42 explains the Cronograph watches Jan 02 08:16:43 got it :D Jan 02 08:16:57 and chronology Jan 02 08:17:07 and chronometer Jan 02 08:17:08 ah good thought desaster Jan 02 08:17:51 and cronjobs Jan 02 08:17:54 all stems from Chronos Jan 02 08:18:03 makes sense Jan 02 08:18:04 the greek god of time Jan 02 08:18:20 im the geek god of bits Jan 02 08:18:28 (well my nick is named it but i act dumb :/) Jan 02 08:18:33 and pieces? sure Jan 02 08:19:04 alright, this Magus punk isn't going to pound himself. Jan 02 08:22:30 Leeds: Everything I'm seeing refers to broadcast receivers, not "broadcast intent" Jan 02 08:22:35 How to I start my eclipse/android project in an emulator? Pressing green play button nothing happens Jan 02 08:22:45 broadcast intent is the other peice of the puzzle Jan 02 08:22:46 broadcast receivers receive broadcast intents... Jan 02 08:22:54 Ah. Jan 02 08:22:56 fire off broadcast intent and catch it with a receiver Jan 02 08:23:08 try saying that fast 5 times Jan 02 08:23:30 leeds have you dont any platform dev? Jan 02 08:23:52 And is that really the best way to communicate from the Service to the App (if the App already has a connection to the Service)? From a logical standpoint, that seems like it would be less efficient than a "direct" connection Jan 02 08:23:55 some bits of aosp you'll have one class broadcasting to itself liek NUTS Jan 02 08:24:00 (Sounds like lots of broadcasting) Jan 02 08:24:05 well not to itself, but with the INTENTION of being caught by itself Jan 02 08:24:38 ron_frown: not Android platform, no... Jan 02 08:25:08 ron_frown Jan 02 08:25:13 i thank you for pushing me forward Jan 02 08:25:18 thx to you i didnt give up :D Jan 02 08:25:19 maslen: if the service and the activity are part of the same app and running in the same process, I think you can just call between them... but it's not platform pure :) Jan 02 08:25:25 there you go Jan 02 08:25:31 Leeds: they're in two different processes now Jan 02 08:25:43 Before, they were in one process, which made communication a bit simpler Jan 02 08:25:47 one question, related to actual dev.... Jan 02 08:25:51 l Jan 02 08:25:52 k Jan 02 08:25:53 should i make 2 seperate apps? Jan 02 08:25:57 one for tablet Jan 02 08:26:01 no Jan 02 08:26:02 one for portrait based phones Jan 02 08:26:03 absolutely not Jan 02 08:26:10 cuz when i move my app to portrait Jan 02 08:26:13 read up on fragments and layout orientations etc Jan 02 08:26:15 it looks like shit Jan 02 08:26:16 no, you should not do that Jan 02 08:26:19 okay Jan 02 08:26:31 you can have diff layouts for diff resolutions as a worst case scenario Jan 02 08:26:38 thats what i was hopin for Jan 02 08:26:50 i assume there is java code to determine what mode im in Jan 02 08:26:54 portrait vs landscape Jan 02 08:28:22 Also, what does it mean "platform-pure" ? Jan 02 08:28:52 you can but you dont really need to know Jan 02 08:29:27 OH SHIT NICE Jan 02 08:29:31 the emualtor has api demos Jan 02 08:29:34 * Bitgod dances Jan 02 08:29:42 Bitgod: My experience was that some of them were broken Jan 02 08:29:56 yeah i just tried one and it crashd heh Jan 02 08:30:28 you *really* want to read about the Activity lifecycle at developers.android.org Jan 02 08:32:31 Pfhoenix: Any specific aspect of it? Or is that for Bitgod? Jan 02 08:32:59 for Bitgod Jan 02 08:33:12 it covers layout stuff as well Jan 02 08:33:21 it's one of the best docs on that site Jan 02 08:34:30 Good night. Thanks for the help, advice, and knowledge. Jan 02 08:34:47 (I'll leave this final bit to tomorrow) Jan 02 08:35:53 night Jan 02 08:36:51 ok guys Jan 02 08:36:52 http://pastebin.com/AvLfpZUf Jan 02 08:36:54 this look okay? Jan 02 08:37:09 to check orientation, i followed the dev site but want to make sure i did it okay Jan 02 08:38:02 Bitgod: you would use ORIENTATION_LANDSCAPE and ORIENTATION_PORTRAIT instead of the magic numbers 1 and 2 Jan 02 08:38:13 oh Jan 02 08:38:20 these constants are also in the Configuration class Jan 02 08:38:24 ok so i cant use integer Jan 02 08:38:28 so what type do i pick Jan 02 08:38:30 you can Jan 02 08:38:33 o ok Jan 02 08:38:39 and you must Jan 02 08:38:44 but you don't do type == 1 Jan 02 08:38:45 if (type == ORIENTATION_LANDSCAPE) { Jan 02 08:38:47 and type == 2 Jan 02 08:38:48 cant resolve symbol Jan 02 08:38:59 but type == COnfiguration.ORIENTATION_LANDSCAPE Jan 02 08:39:03 ah... Jan 02 08:39:44 what's the difference between "@+id/foo_id" and "@android:id/foo_id" Jan 02 08:39:58 hello guys, since the new android emulator update.. I am unable to make gps emulator works... Did I forget something ? Jan 02 08:40:00 if (type == Configuration.ORIENTATION_LANDSCAPE) { Jan 02 08:40:11 configuration is cant resolve smybol Jan 02 08:40:15 symbol Jan 02 08:40:29 auto fix your imports Jan 02 08:40:50 http://stackoverflow.com/questions/5025910/difference-between-id-and-id-in-android Jan 02 08:41:20 or import android.content.res.Configuration by hand (but I guess you are using an IDE, so why not let it fix that) Jan 02 08:41:45 does anyone know what would cause the screen to go blank black and unresponsive with only the status bar in an ICS build? Jan 02 08:42:13 tim, i dont see a way to fix in intellijidea Jan 02 08:43:28 Bitgod: not using intellij idea but there are for sure people here knowing the shortcut for that Jan 02 08:43:50 ill google Jan 02 08:44:10 how the hell did you code beforehand without import fixing :) Jan 02 08:44:22 got it Jan 02 08:44:25 alt-enter Jan 02 08:44:31 mostly google :P Jan 02 08:44:37 ctrl + alt + 0 i found Jan 02 08:44:43 alt-enter for me hehe Jan 02 08:45:12 yeah alt+enter if you are with your cursor in the error line Jan 02 08:45:16 because it quick fixes that line Jan 02 08:45:32 oh ok Jan 02 08:45:35 but ctrl + alt + 0 should fix and sort your importds whereever you are Jan 02 08:45:51 ah good stuff to know Jan 02 08:49:10 when defining an id for a list view for instance. Jan 02 08:49:31 what is the difference between defining your own id and defining one originating from the android namespace? Jan 02 08:50:08 do I always need to use android:id="@android:id/list" when defining an ID for a listview? Jan 02 08:50:13 etcetera: because if you want to create a new id, you must use +id Jan 02 08:50:41 "android:id="@android:id/list" overrides all references to that id? Jan 02 08:50:42 Bitgod: even I dont see it in the dropdown Jan 02 08:50:46 timroes: ^ Jan 02 08:50:51 whats the solutions? Jan 02 08:51:04 if you want to reference to some android id (e.g. because you want to use the default list style or access the text view within it, you need to use @android:id Jan 02 08:51:16 etcetera, @android:id/list is used with ListActivity Jan 02 08:51:34 etcetera, that way the ListActivity knows which element is the listview it wants Jan 02 08:51:55 etcetera: ids are mainly just integer numbers. so with @android:id/list you will give the view that id and you can use it wherever you want, but if something else (from the android system) uses that at the same time, you will get collisions Jan 02 08:51:56 I don't understand, what's the purpose, it's easily confused? Jan 02 08:52:09 very easy: your own view: +id Jan 02 08:52:14 you want to use some android stuff @android:id Jan 02 08:52:25 define: "some android stuff" Jan 02 08:52:38 http://developer.android.com/reference/android/app/ListActivity.html for example :) Jan 02 08:52:40 there is the ListActivity class Jan 02 08:52:50 now you want to access the listview inside that activity Jan 02 08:53:06 how do you do it? you haven't written that activities layout: @android:id/list Jan 02 08:53:19 they have written the layout and used @android:id Jan 02 08:53:53 the ids resolve to just numbers, a way of identifying things. the android framework has and needs it's own ids and allows you to use them and makes you use them for some things. For example the ListActivity will look for the listview at android:id/list . if you are using a non list activity then you just would be finding and configuring the listview yourself, so you can either do ListView list = (ListView) Jan 02 08:53:53 findViewById(android.R.id.list); or ListView list = (ListView) findViewById(R.id.list) Jan 02 08:55:50 etcetera: another example you create your own layout with a list, you will use @+id/mylist as an id. now you need to set an adapter in code that takes an layout for each list item, you just want the default 1 textview list item, that is already included into android you use android.R.layout.simple_list_item1 in the adapters constructor to set that. If you now want to access the textview in a listitem you will use android.R.id. Jan 02 08:59:42 ah so it's just basic naming conventions. Jan 02 08:59:54 namespacing. Jan 02 08:59:58 the framework has already defined list id. Jan 02 09:00:07 for your list objects you use your own id. Jan 02 09:01:15 yeah namespacing is exactly yhe right word :) Jan 02 09:01:40 and you can arbitrarily reference any list view within a list activity by just calling @android:id/list Jan 02 09:01:47 but how do you get a reference to the list? Jan 02 09:01:51 android:id is androids namespace (in code the ids land in android.R class) and id is yours, so they land in your.package.path.R class Jan 02 09:02:10 there's the listView member for the ListActivity. Jan 02 09:02:12 (ListView)findViewById(android.R.id.list); Jan 02 09:02:17 ah. Jan 02 09:02:24 in general but i guess listactivity has a method for that Jan 02 09:02:45 nice. Jan 02 09:02:45 getListView() Jan 02 09:03:03 is the method you can use, but in general you get views with findViewById Jan 02 09:03:15 nice Jan 02 09:03:18 makes sense. Jan 02 09:07:23 its hit or miss whether adt installs the new version of my so or not Jan 02 09:09:54 adt is hit or miss, go figure :) Jan 02 09:10:09 g00s: you use intellij/ Jan 02 09:10:18 no, still using eclipse Jan 02 09:12:44 what's the difference between v4 and v13 support packages? Jan 02 09:13:03 Is it possible to remove this top bar? https://dl.dropbox.com/u/2214049/android.png Jan 02 09:13:08 Where the logo/app-name is. Jan 02 09:14:03 android:windowActionBar="false" Jan 02 09:14:47 granden: from a design perspective you most surly don't want to do that, if you aren't creating a game Jan 02 09:16:13 timroes: Ok, why not? Jan 02 09:16:28 I'm not using it at all. All I got is a webview acctually. Jan 02 09:16:35 ah okay, so you are doing webapp Jan 02 09:16:37 then okay Jan 02 09:16:49 but if you design a real android app, make sure you read that http://developer.android.com/design/index.html beforehand Jan 02 09:17:05 Yes, this is just a pretty shitty app just to have something :) Jan 02 09:18:30 I added what etcetera told me in my activity_main.xml Jan 02 09:18:34 still not showing. Jan 02 09:19:25 still showing* Jan 02 09:20:46 granden: use android:theme="@android:style/Theme.Holo.Light.NoActionBar" in your activity in you manifest file Jan 02 09:21:15 or Theme.Holo.NoActionBar (depending if you want holo or holo light, but I guess when you only have a webview, there is no real difference) Jan 02 09:28:05 timroes: Ok, if I want backward compability like 2.2 froyo or 2.3 or what it is. Jan 02 09:28:09 Will Holo work? Jan 02 09:28:20 not out of the box Jan 02 09:28:24 but there are libraries for it Jan 02 09:29:50 Ok, seams pretty heavy just for a webapp though. Jan 02 09:31:48 hi there. Can someone here please help me with an ADB and WinUSB API related question? Jan 02 09:32:49 I have implemented the basic ADB protocol, and using my own winusb driver for the device, I can send commands and read responses, but I want to be able to do this over Google/Samsungs driver, but libusb refuses to open the device (Error 5 - access denied), not even AdbTest.cpp works??? Jan 02 09:33:39 i.e. adbtest.cpp uses the proper adb api, and that also gets access denied on the interface, however adb.exe works like a charm, even with my own compiled api dlls. Jan 02 09:33:43 Very frustrating :( Jan 02 09:35:05 granden: easiest version I guess would be make a code switch in your onCreate method. Something like if(Build.VERSION_CODE >= Build.VERSION_CODES.HONEYCOMB) setTheme(android.R.theme.style.Theme_Holo_NoActionBar); } Jan 02 09:35:59 else { setTheme(android.R.style.Theme_NoTitleBar); } Jan 02 09:36:14 actually i don't know if Theme.NoTitleBar does also hide the actionbar on holo devices, you could try that first Jan 02 09:37:45 timroes: Ok, thanks Jan 02 09:38:08 Will give it a try Jan 02 09:46:09 What is Holo Devices? Jan 02 09:46:45 granden: Holo is a theme within android Jan 02 09:46:46 10.055” 2560 x 1600 (300 ppi) Jan 02 09:46:50 is 2560 the width? Jan 02 09:46:54 nexus 10 Jan 02 09:47:07 it's the long side Jan 02 09:47:13 ok so width Jan 02 09:47:15 :P Jan 02 09:47:23 clever: A Jan 02 09:47:25 width or height depends on which way you have it up Jan 02 09:48:30 well i have the res folders setup Jan 02 09:48:47 one for galaxy 2, galaxy 3, nexus 4, nexus 7, neuxs 10 Jan 02 09:48:58 that should cover 90% of phones/tabs Jan 02 09:49:08 oh and note 2 Jan 02 09:49:25 Bitgod: still at it huh Jan 02 09:49:41 maz, i made 9 different folders under res Jan 02 09:49:43 layouyt ones Jan 02 09:49:46 one for each type :D Jan 02 09:50:18 what identifier you use? Jan 02 09:50:37 screen width, height, and then orentation Jan 02 09:52:01 heh Jan 02 09:52:27 why Jan 02 09:52:42 just asking Jan 02 09:52:52 am i dumb for having 9 different layouts? Jan 02 09:52:59 one for all the nexuses Jan 02 09:52:59 Bitgod, which one of those devices has the smallest screen? Jan 02 09:53:05 no idea Jan 02 09:53:46 i think galaxy s2 / nexus 4 Jan 02 09:54:00 yes Jan 02 09:54:10 NITR0GEN: any suggestion to better manage resolution folder? Jan 02 09:54:33 this is critical to me anyway Jan 02 09:54:35 no ideas :) Jan 02 09:54:43 but, have you taken into considerations some smaller screens? Jan 02 09:54:50 (like, REALLY small) Jan 02 09:54:53 ZTE Racer for example Jan 02 09:55:05 JESUS Jan 02 09:55:09 lol Jan 02 09:55:10 i need to make 4000 layouts?! Jan 02 09:55:11 thats not small. a watch is small :) Jan 02 09:55:14 4001 Jan 02 09:55:22 Bitgod: Motorola motoactv Jan 02 09:55:23 :(((((((((((((( Jan 02 09:55:34 D: Jan 02 09:55:37 horrible Jan 02 09:55:48 so wtf do i do Jan 02 09:55:51 this is the difficulty of android development Jan 02 09:55:55 timroes gave me idea on multi screens Jan 02 09:55:57 but WTF do i do! Jan 02 09:56:11 too many fucking sizes Jan 02 09:56:11 176*220 Jan 02 09:56:14 this i why apple owns Jan 02 09:56:15 :< Jan 02 09:56:32 Bitgod: no you don't, most apps i guess have 4 or 6 layouts Jan 02 09:56:44 ok even still Jan 02 09:56:46 2 (port,land) for smartphone, 2 (port,land) for tablet Jan 02 09:56:52 lets say i make the layouts Jan 02 09:56:55 hows the design bitgod? Jan 02 09:56:57 how does the code know what to pick Jan 02 09:57:02 automatically Jan 02 09:57:02 and perhaps they different between 7" and large tablets Jan 02 09:57:06 does it require specific component placement? Jan 02 09:57:07 resource system Jan 02 09:57:11 why are you caring about exact pixel numbers? Jan 02 09:57:12 read the links i gave yo... Jan 02 09:57:20 Bitgod: you gotta be proactive Jan 02 09:57:29 SpeedEvil, optmized user ui Jan 02 09:57:30 else you won't do much in a day Jan 02 09:57:42 besides spamming le channel Jan 02 09:57:45 better read that stuff, before ranting about how good iOS is Jan 02 09:57:57 i didnt say ios was good Jan 02 09:57:59 the phones are Jan 02 09:58:02 theres not 500000 models heh Jan 02 09:58:18 this is the hardest part of layout now heh Jan 02 09:58:20 if you optimise for only current sizes, your app will break when new resolutions come out Jan 02 09:58:33 as you could see very good with iOS :) Jan 02 09:58:35 dont worry, samsung is the only one making a profit from android; soon there will be just a handful :D Jan 02 09:58:38 and the iPad Jan 02 09:58:42 ok so what resolutions do you recommend? Jan 02 09:59:00 pls be honest Jan 02 09:59:01 you are not designing against any resolution, you mainly do relative desingin Jan 02 09:59:10 so i only need 2 folders? Jan 02 09:59:15 key is being relative Jan 02 09:59:15 one land, one port? Jan 02 09:59:18 be like the water Jan 02 09:59:19 XDD Jan 02 09:59:19 got it Jan 02 09:59:21 relativelayout Jan 02 09:59:25 http://developer.android.com/guide/practices/screens_support.html Jan 02 09:59:36 yeah and if you want sometimes to support tablets (in the way of making a good tblet ui) you will have two more for the tablet layouts Jan 02 09:59:37 Bitgod: have you read for example the docs? http://developer.android.com/training/multiscreen/index.html Jan 02 09:59:55 ok got it Jan 02 09:59:59 appel1 startd to yes Jan 02 10:00:14 http://www.motorola.com/us/consumers/8GB-or-16GB-MOTOACTV/79070,en_US,pd.html Jan 02 10:00:19 does anyone even have one of those? Jan 02 10:00:25 it would be funny to make a app for it p Jan 02 10:00:26 :P Jan 02 10:00:28 I want one Jan 02 10:00:36 but not at that price alas Jan 02 10:03:00 good url appel1 Jan 02 10:03:11 apparently android pics the correct layout based on res folder Jan 02 10:03:12 thx :D Jan 02 10:03:21 im gonna focus on 4, 7, and 10 only Jan 02 10:03:24 land and port Jan 02 10:03:27 fuck the actual dpi for now heh Jan 02 10:03:55 good luck Bitgod Jan 02 10:04:08 thx Jan 02 10:04:14 what's the app? Jan 02 10:04:57 wrestling simulator Jan 02 10:05:00 since none exist in android Jan 02 10:05:07 will use sqlite Jan 02 10:05:16 like football manager? Jan 02 10:06:52 * SpeedEvil imagines a multitouch game like fruit ninja, but with more homoerotic grunting, and photorealistic oiled bodies. Jan 02 10:07:09 yes Jan 02 10:07:30 title is project slam Jan 02 10:09:39 does TV's have portrait mode? Jan 02 10:09:45 or landscape only? Jan 02 10:09:51 when it comes to android Jan 02 10:10:30 yes Jan 02 10:10:33 Bitgod: http://developer.android.com/training/tv/index.html Jan 02 10:10:45 you may need to rotate your tv sometimes Jan 02 10:11:04 :D Jan 02 10:12:12 Maziz: why? Jan 02 10:12:23 oh your kidding :P Jan 02 10:16:52 k Jan 02 10:16:56 if i make a app for tv view Jan 02 10:17:06 can one of you test it on a tv? :D Jan 02 10:18:28 Bitgod: why won't you test it yourself? Jan 02 10:19:06 i dont have a tv Jan 02 10:19:15 you have an pc Jan 02 10:19:17 and the android emulator Jan 02 10:19:30 i guess ur right :p Jan 02 10:19:38 im gonna do it tomorrow Jan 02 10:19:42 its 5:19am, i need sleep now Jan 02 10:19:47 night all, *hugs* Jan 02 10:21:04 night Jan 02 10:26:49 i'm trying to change surfaceview of MediaPlayer while playing content but I get a tons of "Error (1,-2147483648)". In documentation it's said that we can setDisplay in any state. Jan 02 10:31:01 hi Jan 02 10:43:29 android-apt-compiler: [Project_Slam_40] invalid resource directory name: C:\Users\Bitgod\IdeaProjects\Project_Slam_40\res/drawable-10in-land Jan 02 10:43:30 OK WTF Jan 02 10:45:15 you are so lame :p Jan 02 10:45:30 uh how Jan 02 10:46:15 how do you find these things? heh Jan 02 10:46:34 Hello I'm developing a widget and cannot send the pending intent more than once. First time works fine, but then I get Cannot send pending intent error in the logs Jan 02 10:46:55 onNewIntent() ? Jan 02 10:46:58 capella Jan 02 10:47:05 all i did was make new folders w/ qualifiers Jan 02 10:47:09 for multiscreen Jan 02 10:47:23 try dropping the "-" from the folder names Jan 02 10:47:53 10in is not a qualifier Jan 02 10:48:15 oh Jan 02 10:48:17 icant rename them? Jan 02 10:48:32 http://developer.android.com/guide/topics/resources/providing-resources.html#table2 Jan 02 10:49:08 Is there a way to pop up a menu when the user long-presses ANYWHERE on the screen during an activity? I've found it for specific elements, but am wanting a simpler ui Jan 02 10:50:37 android-apt-compiler: [Project_Slam_40] invalid resource directory name: C:\Users\Bitgod\IdeaProjects\Project_Slam_40\res/layout-normal_land Jan 02 10:50:41 now whats the excuse :/ Jan 02 10:50:47 oh hold on lol Jan 02 10:51:10 how can i make the Chronometer a counting down timer? Jan 02 10:51:31 capella, what do you mean with onNewIntent() ? Jan 02 10:51:42 fixed Jan 02 10:53:12 ghiottone may have misread that ... you get an error message when you send it? Jan 02 10:56:03 bitgod: so now you owe jake wharton $tree-fity ? You're going broke fast :) Jan 02 10:56:16 capella, yes: Cannot send pending intent: Jan 02 10:56:58 oh - i had a problem receiving intents were going into active ativities through onNewIntent() vs onCreate(0 Jan 02 10:57:06 capella, android.content.IntentSender$SendIntentException Jan 02 10:57:36 capella, mmm I think I get them through onCreate() as the first time it works fine Jan 02 10:58:04 capella, but is there some cleanup I need to do after I process the intent? it seems that I cannot fire it a second time Jan 02 10:58:41 I tried to make it unique with a custom action and with setData as I have a ListView in the widget and every item has its intent Jan 02 10:58:50 if you're calling finish each time, then they should through onCreate(), I'd agree Jan 02 10:59:13 My activity was staying resident until the next call Jan 02 11:00:15 but maybe the way you create the intent? (I cant see your code) Jan 02 11:00:16 stackoverflow had this for example http://stackoverflow.com/questions/7194661/cannot-send-pending-intent-from-widget-sendintentexception Jan 02 11:00:22 capella, if the user pushes the home button I won't get a chance to do finish() Jan 02 11:02:16 and distinguish between source of intent and receiver ... my receiver was staying resident, getting initial intent request from onCreate() then subsequent from onNewIntent() ... Jan 02 11:03:32 sounds like your intent source may not be building it properly if you get error |Cannot send pending intent| Jan 02 11:05:01 capella, does it mean that I have to implement onNewIntent too? Jan 02 11:05:09 here is the relevant code http://nopaste.info/c91a26c770.html Jan 02 11:06:07 as I'm using ListWidget, it uses RemoteViews and factory Jan 02 11:10:09 I'm suggesting you're not building the intent properly as the log suggests ... is all ... can you log them as you build them for review? Jan 02 11:10:28 or does the log show the contents? Jan 02 11:13:41 capella, how do I log an intent? Jan 02 11:17:01 log the pieces parts as you build them in your getViewAt()? Jan 02 11:17:14 basic debugging stuff ... Jan 02 11:22:04 capella, thanks it looks like I've found the problem. I was updating the intents again from an async task and it had the ONE SHOT flag Jan 02 11:22:06 what does that error mean? http://img.itc.cn/photo/oCuqi5yGKGN Jan 02 11:24:31 bet its eclipse ... try clearing the workspace? "clean"? restart IDE etc etc etc ? Jan 02 11:24:55 ghiottone \o/ Jan 02 11:25:15 capella, thanks! :) Jan 02 11:25:21 >) Jan 02 11:28:05 capella, yes it's eclipse, i have restarted restarted it, just got that error sometimes.. Jan 02 11:28:48 If I have exported an apk with keystore and all for the google play. Can I run that apk directly as well on a phone not going through the store? Jan 02 11:29:07 too bad the official android documentation references eclipse first and then command-line instructions in a blurp later Jan 02 11:29:19 sending more and more clueless beginners towards the path of eclipse fails Jan 02 11:29:30 pro-tip: you don't have to use eclipse. Jan 02 11:29:37 zhangxaochen the fact that eclipse has so many spurrious occuring odd errors is why I use intelliJ Jan 02 11:30:22 pragma++ Jan 02 11:31:45 another pro-tip: a lot of eclipse's tools are available as stand-alones Jan 02 11:31:54 i.e., MAT Jan 02 11:32:20 pragma+++ been playing with that Jan 02 11:32:25 personally, I use vim to edit .java source and ant to build Jan 02 11:33:07 heh - screw code completion ... I know how to type :p Jan 02 11:33:14 yeah, MAT is very nice for tracking allocations and inspecting the heap to find excessive memory use or leaks Jan 02 11:33:35 it's how I realized I was duplicating strings all over the place Jan 02 11:33:57 whipped up a StringPool class using a HashMap, problem solved. Jan 02 11:34:17 nice Jan 02 11:34:52 also moved to using a custom CharArray class to avoid creating strings all the time Jan 02 11:34:56 char[] > String Jan 02 11:34:56 i rely on code completion a lot.. is that bad? Jan 02 11:35:15 and the xml ui designer Jan 02 11:35:22 not really - personal preference Jan 02 11:35:37 I edit the XML by hand also Jan 02 11:35:46 If you can't mentally imagine your RelativeLayouts... Jan 02 11:36:08 'course, I used to code by toggeling binary into a front panel Jan 02 11:36:10 LinearLayouts shouldn't even be an issue at all. Jan 02 11:36:26 zhangxaochen: it's always better to know HOW something is working, because you will be able to fix it if it doesn't. But ofc that doesn't mean, you have to write everything by hand, when there are tools doing that work for you. Jan 02 11:36:39 Auto-generated code is evil. Jan 02 11:37:03 Every single byte and bit is lovingly craft with my tears and blood. Jan 02 11:37:09 How can I align two Views' center? Jan 02 11:37:41 timroes, cant agree more Jan 02 11:38:48 heh - squished another fennec bug Jan 02 11:38:51 zyngawow: set the layout gravity to center... Jan 02 11:39:14 isn't zynga out of business yet? Jan 02 11:39:50 duh Jan 02 11:39:55 random name is random Jan 02 11:39:57 and shitty Jan 02 11:40:43 pragma-: I dont think you understan what I mean. http://puu.sh/1IqEd Take this 2 textviews, how can I align them so they have the center at the same horizontal point? Jan 02 11:41:57 does anyone knows how to make a Chronometer a countdown? Jan 02 11:43:53 Is it safe to assume if an app runs in the emulator it will be safe to export it to the google play ? Jan 02 11:44:06 I dont have any physical device to test it on. Jan 02 11:47:04 granden: for certain levels of 'safe', yes Jan 02 11:47:38 I mean, even if you had an android device to test on, that still wouldn't guarantee it runs on the majority of other devices Jan 02 11:48:49 Thats true. Jan 02 11:51:18 So, only have to find out how to export it for the market then. Is it only to follow the export step by step or can I just run it? Jan 02 11:51:24 or do I have to do something else* Jan 02 11:51:27 not just run it a) Jan 02 11:52:13 granden: depends on your app. If you have high framerates (e.g. a game) you should test it on a real device to see anyhow how fast it would be. If you have very low level network traffic (working directly on sockets) wouldn't be a harm to test it on a real device, since (a) you can also test via mobile network and (b) the emulator has nearly no latency (settings doesn't work for me) and have an unbelievable high MTU, that no r Jan 02 11:52:45 Ah Jan 02 11:52:50 also for all the hardware stuff you cannot emulate in emulator you should test it on a real device ofc Jan 02 11:53:30 But a really really low level app, an webapp. So should be fine. Jan 02 11:53:47 But dont know if I have manage to remove the bar in the app. Now the emulator wont start. Jan 02 11:53:57 In the preview it is not showing at least. Jan 02 11:54:50 Weei, it boots. Finally. I really hate the emulators for the android. Jan 02 11:57:08 why? Jan 02 11:57:32 i like it. I just don't like the android AVD managers UI Jan 02 11:58:32 ok the AVD manager then something Jan 02 11:58:34 the emulator is slow and tends to spaz out Jan 02 11:58:39 for some reason sometimes the emulator does not load Jan 02 11:58:50 and if I have started an emulator and want to rerun the app Jan 02 11:58:53 it is not working Jan 02 11:59:05 is it possible to set the ActionBar to a custom xml? Jan 02 11:59:06 i cant seam to get the new version of the app to it during run Jan 02 11:59:08 pragma-: for me the intel image is even faster than my real device Jan 02 11:59:10 need to power downt and up Jan 02 11:59:33 well, i haven't tried the intel image Jan 02 11:59:41 i'm still using the arm images Jan 02 12:00:10 okay but then don't complain :D Jan 02 12:00:14 ofc arm emulation is slow Jan 02 12:00:24 but virtualization is fast Jan 02 12:00:44 yeah Jan 02 12:01:02 hi all having really hard time with json, how would i parse something like https://gist.github.com/4434032 in the easiest way, i just want the value of src Jan 02 12:01:04 timroes: Wasnt it you who earlier told me how to hide the lbar near the top? Jan 02 12:01:07 zyngawow: yes Jan 02 12:01:11 where it has the app logo and name? Jan 02 12:01:30 is there a simple way where i don't have to create another class as just extract result["value"]["item"]["src"] Jan 02 12:01:30 granden: yeah might be Jan 02 12:02:09 That if else statement. Cant get it to work. Will give it another try if you mind helping out again. And I could report the error messages I get. Jan 02 12:02:17 zyngawow: actionBar.setCustomView(R.layout.whatever); Jan 02 12:03:15 granden: yeah post your error message here and your code Jan 02 12:03:34 (with here I mean ofc on pastebin, but paste the link here :D) Jan 02 12:04:35 http://pastebin.com/AyBaH0fn Jan 02 12:04:45 I did a pastebin, was a few lines of code. Jan 02 12:06:56 replace Build.VERSION_CODE with Build.VERSION.SDK_INT (and yeah i know I told it wrong beforhand, thats why the docs are your friend) Jan 02 12:07:20 What is the default action bar style? Jan 02 12:09:28 Ok, now I will give it a go then. Jan 02 12:10:12 Hmm it still shows the action bar. Jan 02 12:11:14 you should also use android.R.style... Jan 02 12:11:24 and do it BEFORE the setContentView Jan 02 12:11:35 if you do it afterwards the gui is already build, so setting a theme won't help then Jan 02 12:11:43 ah, stupid of me Jan 02 12:12:33 Thank you very much. Works great now. Jan 02 12:12:53 hi all having really hard time with json, how would i parse something like https://gist.github.com/4434032 in the easiest way, i just want the value of src Jan 02 12:13:23 How does a custom action bar view have to be? Jan 02 12:19:15 Hmm, I have a login form in a webview. Jan 02 12:19:25 And after I login it asks if the browser should save the data. Jan 02 12:19:33 Could I remove that option at all so it never saves? Jan 02 12:19:42 and not asks. Jan 02 12:20:58 granden: what have you tried? Jan 02 12:21:16 meadhikari you'll have to iterate over the items array, JSONObject root = new JSONOBject(json); JSONArray arr = root.getJSONArray("items"); for(int i=0;i meadhikari I have not tested that code but something along those lines ;) Jan 02 12:21:52 appel1: Tried the setSavePassword Jan 02 12:22:01 still asks me if it should save though. Jan 02 12:23:38 granden: on what WebSettings instance do you call setSavePassword? and when? Jan 02 12:23:42 hmm now it did not. Perhaps I changed it after running it. Jan 02 12:23:55 thought it was before launching the emulator. Jan 02 12:25:30 svearike, how would i load the json from url, i am really novice please help me here :) Jan 02 12:46:32 Hey guys, if I have activity A and activity B, and I want to preload some data for activity B while I'm still in activity A, what would be the best way to implement the download such that if the user wants to start activity B while the preload isn't finished yet, I can finish loading the data in activity B (picking up where I left off)? Jan 02 12:47:29 use a separate class to download the data in a thread Jan 02 12:47:37 i.e., a non-activity class Jan 02 12:47:53 and have the actitives query the class for the data Jan 02 12:48:46 so you're saying I could initialize class Preloader from activity A, then have Preloader do its thing, and then once I'm in activity B I can query Preloader for the data? Meaning, the separate class would persist even though I've switched activities? Jan 02 12:49:19 you can make the Preloader class static Jan 02 12:49:38 and part of the Application, not an Activity Jan 02 12:50:39 Ahh Jan 02 12:50:43 so extend Application? Jan 02 12:50:43 How do I know if my apk is built in release or debug mode? Jan 02 12:51:26 granden: I believe it's in the manifest Jan 02 12:51:44 so should set it to false? Jan 02 12:52:15 Yes, or remove the attribute entirely, since the default value is false Jan 02 12:52:31 ah, dont have it at all Jan 02 12:54:36 So using File->Export does all I have to do to send the app to google play? Jan 02 12:54:55 Except the upload and such. Jan 02 12:58:11 hello Jan 02 12:59:21 i made my app as RECEIVE_BOOT_COMPLETED but is crash's and i would like to know why but when i see the crash i dont have adb via usb working Jan 02 12:59:46 is there a way i can make my webviewclient force to download a specific resource? lets say i have mp4 links which sometimes should be directly opened via media player and sometimes downloaded (would it simply work with header's in html or can i do it in android itself) Jan 02 13:04:12 In network usage activity, there is a button "show app setting" in some apps (some has it grayed out)... how can make my app use this button? Jan 02 13:06:01 After an apk have been submitted to google play, how long until it appears in the store? Jan 02 13:06:09 When could people start searching for it. Jan 02 13:06:18 granden: couple of hours, usualy Jan 02 13:07:21 And no way to find a direct link I could give to people? Jan 02 13:07:46 Pitel_IPEX: http://developer.android.com/training/basics/network-ops/managing.html#manage-usage Jan 02 13:12:54 appel1: thanks! Jan 02 13:13:32 granden: the url is https://play.google.com/store/apps/details?id= Jan 02 13:14:06 ok, tried it and not working. Jan 02 13:14:13 Guess it has to be indexed for that as well then. Jan 02 13:14:29 is there any way to detect manual system time change user might do? Jan 02 13:22:04 why relativeLayout.setEnabled(false) seems do nothing? Jan 02 13:26:16 hi, i put my widgets in a layout, hoping to disable all the widgets by disabling the wrapping layout, but that doesn't work, how could i achieve that ? Jan 02 13:28:55 how to remove underline from xml TextView Autolink ? Jan 02 13:39:00 Anyone willing to help a complete n00b get eclipse setup for a first android hack? I'm trying to get a project set up for com.android.music just so I can tinker and learn some android programming. Jan 02 13:39:32 I imported it somehow, but, I get 375 errors out on a fresh clone from git. :/ Jan 02 14:01:46 how to change color of a button when it is clicked? Jan 02 14:17:24 how many deltas are in a second, or have i missed the point completely? Jan 02 14:18:13 doh, nvm found out Jan 02 14:33:13 squ: http://stackoverflow.com/questions/3882064/how-to-change-color-of-button-in-android-when-clicked Jan 02 14:33:38 archfool, what sort of errors are they? Jan 02 14:35:43 JamesLeeds, not possible without PNG? Jan 02 14:36:29 I'd like to make a drawable with style attributes Jan 02 14:37:18 like state_pressed="drawable.xml" Jan 02 14:39:44 you can make a drawable xml where you set up all state Jan 02 14:52:48 ixc, can I setup text color there? Jan 02 14:53:48 http://stackoverflow.com/questions/4692642/android-customized-button-changing-text-color Jan 02 14:54:03 google, top hit ;) Jan 02 15:04:31 thats what I was looking for! Jan 02 15:11:05 Helo im having trouble on debugging my app on start up of the phone, the app receives an boot_complete intent but it crashes and i cant view why cause adb stops logging after i unlock the screen and for a few minutes Jan 02 15:12:16 does your app require a boot_complete start ? Jan 02 15:12:29 if not just disable and do manually after adb up Jan 02 15:12:54 Sorry. was afk. Jan 02 15:13:59 JamesLeeds: "R Cannot be resolved to a variable" Jan 02 15:14:44 heh ... eclipse Jan 02 15:14:45 press cmd+shift+o Jan 02 15:15:37 StingRay_: the app boots ok if i start it up, but not during boot as it should. Jan 02 15:18:08 is there any way to list all logcat? Jan 02 15:19:21 could you not write a little file based logging class ? and track it that way ? Jan 02 15:19:57 never looked at doing boot complete intent stuff so cant really help there Jan 02 15:20:00 :( Jan 02 15:20:21 i think not since my prob is from manifest Jan 02 15:20:42 "Android System Info" app shows logcat Jan 02 15:20:50 from the device Jan 02 15:20:55 capella: all log cat? Jan 02 15:21:06 all the OS has Jan 02 15:21:13 mine goes back days Jan 02 15:21:21 capella: thanks Jan 02 15:21:33 Several Apps i've had do that Jan 02 15:23:15 mine goes back 2 min :S (since device started) so i may assume that it gets redone on system boot Jan 02 15:24:04 ah Jan 02 15:24:19 but it should catch activity after boot including your crash Jan 02 15:24:47 i will reboot and see Jan 02 15:25:42 hello, is there anyone that can look at this logcat ? : please look here : http://logcat.miui.us/19290 Jan 02 15:26:32 correct link http://logcat.miui.us/1929001 Jan 02 15:28:53 anders3408 just looks like a pointer to a partition that is either not there or still going through init Jan 02 15:29:11 anders3408: worked :) perfect solution Jan 02 15:29:54 i have looked in recovery.fstab and that is the correct partitions it uses Jan 02 15:33:48 dmesg logcat : http://logcat.miui.us/1930001 Jan 02 15:33:53 I have a lot of questions about connecting my Android tablet to a USB device. How do I go about debugging that? Can I view the list of connected devices somehow? Is it possible to view LogCat from my developing computer and still have the USB device connected to my tablet? Jan 02 15:34:18 Better yet, is there a really good tutorial on this? Jan 02 15:35:03 jonathan_eyre depends if current rom support tcip adb I would think Jan 02 15:35:09 cm10 does etc Jan 02 15:36:48 LinkedBlockingDeque.pollLast is thread safe and removes the last item right ? Jan 02 15:37:08 So if I connect adb over tcip, then I can LogCat while having my USB device connected. Is there a way to see what devices are connected? Jan 02 15:38:30 bah looks like someone screwed up Jan 02 15:48:49 can i set the sample rate of sensors manually? i see there are 4 levels inside the sdk Jan 02 15:50:04 is vertical left and right or up and down? Jan 02 16:04:13 I'm setting a web chrome client for my web view, but none of the callbacks fire (onJsAlert, onConsoleMessage). Any ideas about how to diagnose why this isn't working? Jan 02 16:08:03 jonathan_eyre: do you have ADB drivers for the tablet? Do you have TCIP debugging available on the tablet? Do you have an IDE on your development computer? Jan 02 16:08:31 jonathan_eyre: if yo usaid yes to all of those, learn to use the IDE on your computer to investigate the connected devices (through TCPIP or USB) Jan 02 16:09:07 Tonisius Jan 02 16:09:10 http://developer.android.com/tools/help/adb.html Jan 02 16:09:13 RTFM please Jan 02 16:10:53 How do you tell if TCPIP debugging is available on the Android Tablet? Everything else works. I've been using LogCat successfully for months. It's just debugging in USB Host mode that I'm not understanding, yet. Jan 02 16:11:08 DId you answer my questions? Jan 02 16:11:15 ah Jan 02 16:11:22 Yes, I don't know, Yes. Jan 02 16:11:22 DOes your rom support it? Jan 02 16:11:36 What rom are you using? Jan 02 16:11:37 If I knew that, things would be simpler. Jan 02 16:11:49 is "TCP debugging" enabled? Jan 02 16:12:04 4.0.3 eng Jan 02 16:12:04 jonathan_eyre: I'd imagine if you connect adb over USB then switch to tcp, then plug something supported into the USB port, adb will just keep working Jan 02 16:12:05 it's under the Developer options where you enable debugging Jan 02 16:12:18 WHat Leeds saod Jan 02 16:12:20 said Jan 02 16:12:38 Okay, "TCP debugging" is not an option. USB debugging is. Jan 02 16:12:42 if TCP DEbugging is not available under the debugging options, ADB over TCP is not enabled or available Jan 02 16:13:01 TCP debugging isn't a standard option Jan 02 16:13:21 adb wireless :somePort Jan 02 16:13:25 "ADB Over Network" is another name it would be available Jan 02 16:13:26 you just run "adb tcpip 5555" to start it Jan 02 16:13:26 I think that's it Jan 02 16:13:34 ah Jan 02 16:13:52 AmandaC: yeah, tcpip 5555 is the default everything I know uses. Jan 02 16:14:04 * AmandaC is still waking up Jan 02 16:14:07 I ran adb tcpip 5555, and it seemed to put the device in offline mode. Jan 02 16:14:11 you can set it via a prop in adb shell, or I think they finally added a kick-to-tcp via adb w/ a normal command? Jan 02 16:14:24 dragorn: both Jan 02 16:14:33 jonathan_eyre: well, if the command failed, it would say so Jan 02 16:14:37 jonathan_eyre: after that you do adb connect phoneIp:5555 Jan 02 16:14:38 jonathan_eyre: once you've run it, you need to tell the adb daemon on your PC to reconnect to the device over tcpip Jan 02 16:14:42 after you do the adb tcpip 5555, do a adb devices Jan 02 16:14:45 jonathan_eyre: you'd then do 'adb connect ip:port' Jan 02 16:14:52 heh lets all answer :) Jan 02 16:15:05 Yay community support! :P Jan 02 16:15:06 http://stackoverflow.com/questions/2604727/how-can-i-connect-to-android-with-adb-over-tcp will help too - ignore the bit about it needing root; it doesn't (or hasn't in a long time) Jan 02 16:15:08 dragorn: HEY, I was answering him before you guys decided to wake up, after he had already asked Jan 02 16:15:17 Tonisius: yes, I was more mocking myself Jan 02 16:15:26 Okay, I think that makes sense. Jan 02 16:15:26 I was adding to it Jan 02 16:15:58 Now I go out into the world to do some real damage. Jan 02 16:16:00 Tonisius: to be honest, you weren't answering all that well... Jan 02 16:16:13 I was asking questions Jan 02 16:16:13 :P Jan 02 16:16:46 jonathan_eyre: be careful, that tcp opening, opens your tablet to the rest of the world, don't get butthurt Jan 02 16:17:01 a valid point Jan 02 16:17:15 * AmandaC trusts all devices on her LAN, personally Jan 02 16:17:27 AmandaC: yeah but don't forget it's in tcp mode and go out Jan 02 16:17:31 I trust everybody. Jan 02 16:17:41 But that's because I now have it setup so my theiving neighbors only get kittenwar Jan 02 16:17:56 Honestly the probability of anyone looking for open adb ports outside of a hacker con is pretty small Jan 02 16:18:01 but good practices and all that Jan 02 16:18:23 AmandaC: a friend spent a long time building the GayPornTernet Jan 02 16:18:32 AmandaC: obviously any website gave you gay porn Jan 02 16:18:41 AmandaC: but you could also check email. But all your email was gay porn. Jan 02 16:18:52 dragorn: oh my Jan 02 16:18:53 and all ftp servers Jan 02 16:18:57 the way AmandaC likes it Jan 02 16:19:14 as I recall he only coded up spoofed imap/pop/http/ftp Jan 02 16:19:26 dragorn: see, I wouldn't do that, it could be some kid with his DS going "Yay free internet! :D" Jan 02 16:19:27 but still a pretty hilarious achievement. I liked that he went the extra mile and spoofed email. Jan 02 16:19:43 AmandaC: I think if you're going to build the gaypornternet, courtesy towards others isn't high on your list ;P Jan 02 16:19:46 dragorn: I thikn I should do that Jan 02 16:19:58 set up a public wifi hotspot for all the neighborhood kids... :D Jan 02 16:20:05 I used to have code that spoofed the DS game download kiosks Jan 02 16:20:05 call it FreePPNet Jan 02 16:20:22 PP all the time, :D Jan 02 16:20:22 so it could shove game demos over wifi Jan 02 16:20:23 A friend getting a trojan/keylogger is what I call a fun diversion. I try to get rid of viruses manually so that I learn what they target. Jan 02 16:20:57 Just the other day a coworker got shutdown from a virus and I was like, "Oh, they still make viruses? It's been forever!" Jan 02 16:21:00 I'm a wifi security guy who does android on the side... android security makes me cry, usually. Jan 02 16:21:11 heh Jan 02 16:21:15 Also, is there a way to trigger an event when a new bluetooth device is available? or if the list of paired devices has changed, etc? Jan 02 16:21:34 is vertical left and right or up and down? Jan 02 16:21:47 Tonisius: there's a broadcast when the device has connected to a paired device Jan 02 16:21:52 dragorn: don't you just love all the plain text that goes over the airwaves of all the android devices? Jan 02 16:22:09 Bitgod: ... up and down Jan 02 16:22:14 thx Jan 02 16:22:15 evanc: even if that device isn't connected? my IOIO board is never connected, unless an app connects to it. Jan 02 16:22:33 dragorn: so what you're saying is, you run Lookout. Jan 02 16:22:41 Tonisius: I love that there's the option "ssl when available" or "ssl (accept all)" Jan 02 16:22:42 Tonisius: I doubt it Jan 02 16:22:56 Tonisius: and that the answer to every "how do I do ssl in code" question is "bypass cert validation" Jan 02 16:23:00 I either use plain text that I don't care if anyone sees, or I don't use plain text. Sometimes I email bogus passwords around just for fun, just to get hackers excited for a moment. Jan 02 16:23:09 lov: That makes me totally safe, right!? Jan 02 16:23:20 your megahurtz are a-ok Jan 02 16:23:23 lov: actually the lookout guys are good people, they're trying, but... Jan 02 16:23:26 your gibson is, frankly, secure Jan 02 16:23:31 Tonisius: look through the ACTION_* constants here: http://developer.android.com/reference/android/bluetooth/BluetoothAdapter.html Jan 02 16:23:54 evanc: thanks, that's what I was ultimately looking for Jan 02 16:23:56 dragorn: I'm sure they are, but there's really only so much they can do. By the point that the app is installed, it's probably too late. Jan 02 16:24:03 Tonisius: good luck! Jan 02 16:24:20 I always try and look through documentation, but I sometimes don't know where to start Jan 02 16:24:25 lov: I agree, plus the copy protection bit makes it so they can't scan it at all Jan 02 16:24:43 dragorn: the only time I ever do that is during developent Jan 02 16:25:07 Tonisius: You actually got the IOIO to talk BT? Jan 02 16:25:15 dragorn: then I build out my own certificates, never been the one to go out and buy one on the market, they seem a little too costly for Jan 02 16:25:15 I've got a stack of half a dozen BT adapters, never got mine to talk it Jan 02 16:25:16 dragorn: who still uses the copy protection bit, anyway? Jan 02 16:25:34 dragorn: ? IOIOMint comes with BT already configured, it has v3.x on the board already Jan 02 16:25:35 I ended up building my own BT stuff Jan 02 16:25:58 Tonisius: I have the original IOIO boards, flashed to support BT. Never got them to actually do anything. Jan 02 16:26:25 get one of the apprved ones. I got the IOIO because it had everything on it already, which was more important to me, than having the standard board. Jan 02 16:26:40 I may go for the PIC< and flash ioio on it once I get someone to print out a board for me to use Jan 02 16:26:46 Tonisius: I don't really care anymore, I rolled my own hardware Jan 02 16:27:11 I'm building a media dock, it's all done, except that the s3's default media is ALWAYS the built in mp3 player Jan 02 16:27:53 even if I have pandora, DI, spotify, when I use the KEYCODE_MEDIA_* keycode broadcasts, it always just moves on to the mp3 player, and stops all current music Jan 02 16:27:57 and it only happens on the S3 Jan 02 16:28:17 better call samsung? Jan 02 16:28:22 I have the HTC Evo, Evo 3d, and HTC Hero, and they act accordingly Jan 02 16:28:44 but yeah, my media dock right now is 7 buttons, and 2 knobs Jan 02 16:28:57 Tonisius: via the bt audio controls? Jan 02 16:29:02 currently trying to get USB Audio passed through Jan 02 16:29:03 or via other actions Jan 02 16:29:14 dragorn: via USB accessory/adb or bluetooth Jan 02 16:29:32 not using the BT media control signals Jan 02 16:29:49 So there's an API introduced in 2.2(?) that lets apps bind to the audio controls, not sure if it's BT control specific or in general Jan 02 16:29:52 AV2CDP i think is the prorfile, I'm not using that. I'm using the KEYCODE signals, and doing an ordered broadcast. Jan 02 16:29:53 but unless every app binds to it Jan 02 16:30:03 dragorn: wait, there is? Jan 02 16:30:14 they all sub to the broadcast and act semi-randomly Jan 02 16:30:21 I thought they were just listening to the keycode broadcasts Jan 02 16:30:25 yeah; i forget what it's called, but it's almost a moot point Jan 02 16:30:25 correct Jan 02 16:30:35 b/c unless all the audio apps are written right Jan 02 16:30:44 they default to broken behavior Jan 02 16:30:45 but, on the S3, it ignores it for some reason Jan 02 16:31:01 but the same apps, same versions on different OS's act accordingly Jan 02 16:31:16 I forget the api name or I'd give you a link, but it basically was a primary-app system, "i am the active audio app, i will consume the audio event keys" Jan 02 16:31:22 just the S3 is being picky Jan 02 16:31:28 your workaround may be to send alternate events to your broker app Jan 02 16:31:29 yeah, the MEdiaManager Jan 02 16:31:32 then send directed intents Jan 02 16:31:32 or the AudioManager Jan 02 16:31:43 I don't know if you can detect what app is active Jan 02 16:31:45 my app is sending the intents Jan 02 16:31:52 but you're sending broadcast, right? Jan 02 16:32:08 if you can determine that, say, pandora is the app to send to, try sending the intent specifically to pandora Jan 02 16:32:19 and see if a) it picks it up and b) no-one else does Jan 02 16:32:24 downIntent.putExtra(Intent.EXTRA_KEY_EVENT,downKE); Jan 02 16:32:26 sendOrderedBroadcast(downIntent,null); Jan 02 16:32:47 aren't those broadcasts protected by the system anyway? Jan 02 16:33:09 lov: if that were the case, none of the other phones would act correctly Jan 02 16:33:26 the S3 is the exception, it's not acting as expected Jan 02 16:33:31 lov: you're thinking of the power button Jan 02 16:33:36 no, I'm not. Jan 02 16:33:49 that's the only button that's protected from what I recall, it's a lower level signal Jan 02 16:33:50 certain intents are only broadcastable via system_server Jan 02 16:34:04 I'd be really surprised if the media button events weren't on that list Jan 02 16:34:20 media buttons work through widgets, and bluetooth Jan 02 16:34:37 wdgets are not locked down, there are plenty of them available on the Marketplace Jan 02 16:35:15 hello Jan 02 16:35:26 hmph Jan 02 16:35:32 that's surprising tbh Jan 02 16:35:42 lov: if you can help find a notice about it, tha twould be awesome, then I can stop researching this, and start working on the Cyanogen models I have, and modify them to work better. Jan 02 16:36:00 I don't think that it's something that'd be in the release notes anywhere Jan 02 16:36:04 anyone knows the solution to http://stackoverflow.com/questions/8857590/android-countdowntimer-skips-last-ontick? i also come across that problem Jan 02 16:36:26 when this is done, I will start tearing down my Hero, and configure it with all the etra buttons it has :D Jan 02 16:37:07 zhangxaochen: http://stackoverflow.com/a/12283400 Jan 02 16:37:19 if you need different behavior, just make your own thread. Jan 02 16:38:50 i have a list that has titles where i want. I have added checkbox or radio depending on group.. Jan 02 16:38:53 Tonisius: Yes, you're sending a bcast. I'm proposing you don't send a broadcast but instead send it directly to pandora (or whatever) Jan 02 16:39:03 is there a way to force in radio one to be chosen only ? Jan 02 16:41:10 o/ Jan 02 16:43:34 FFS Jan 02 16:43:45 im trying to get my fucking logo to show up on portrait mode small Jan 02 16:43:48 and on landscape, big Jan 02 16:43:51 but its not letting me Jan 02 16:43:58 dragorn: sending directly to "pandora" would require that pandora expose a service? Jan 02 16:43:59 lov, yes i saw that post, but there are 2 seconds between the last tick and onFinish() if the interval is 1000ms Jan 02 16:44:13 They don't document that information, how would I go about handling that? Jan 02 16:44:25 I really like having hardware keys available on a system that can't be seen. Jan 02 16:44:42 reason I'm doing it this way, is because this is going to be a car stereo when i'm done Jan 02 16:44:45 pls help Jan 02 16:44:48 else im forced to go to ios :/ Jan 02 16:44:51 I like the power and abilities of the S3, Jan 02 16:45:27 Bitgod go to ios then :) Jan 02 16:45:34 Bitgod: go to IOS, because it's so much cheaper and easier to program for, because they have a tiny fraction of mobile users out there. Jan 02 16:45:35 Begging gets u nowhere :p Jan 02 16:45:38 no, but why the FUCK is it so hard Jan 02 16:45:50 Bitgod: because it's free Jan 02 16:45:50 to get a logo to be ONE SIZE on PORTRAIT Jan 02 16:45:58 Bitgod it's not Jan 02 16:46:01 and ONE SIZE on LANDSCAPE Jan 02 16:46:06 Bitgod: try using percentages. Jan 02 16:46:08 it really isnt Jan 02 16:46:09 it looks fine on landscape Jan 02 16:46:13 different layouts? Jan 02 16:46:13 but if i go to portrait Jan 02 16:46:18 my logo is hidden behind buttons Jan 02 16:46:20 what Anoia said Jan 02 16:46:29 Bitgod: you'd face the same problems on IOS Jan 02 16:46:30 have fun Jan 02 16:46:31 uh i have different layoyts Jan 02 16:46:43 Tonisius: no. try sending the same key intent, but not as a broadcast Jan 02 16:46:45 which are designed to have different layouts on different orientations Jan 02 16:46:52 Hey don't you owe me money? :) Jan 02 16:46:55 dragorn: how do I direct it at pandora only? Jan 02 16:47:15 also, my service starts up the apk Jan 02 16:47:26 Tonisius: I'd just send it to their main class, same as if you were launching them, and see what happens Jan 02 16:47:36 but it uses the intent of loading, is there a way to keep the app in memory of the service I'm running, so I can KILL it? Jan 02 16:47:57 I launch via intent, how do I go about launching it in my service, so I can keep it up Jan 02 16:47:57 http://picpaste.com/landscape-OTAi4SSj.png Jan 02 16:47:58 look Jan 02 16:48:00 got an example? Jan 02 16:48:14 http://picpaste.com/portrait-kdISDMCA.png Jan 02 16:48:46 Bitgod: you'd have the same problem if you were writting the app in HTML5 Jan 02 16:48:50 it's all about layout. Jan 02 16:48:55 I HAVE LAYOUTS Jan 02 16:48:58 LOOK AT THE RES FOLDER Jan 02 16:49:00 yeah, I see Jan 02 16:49:02 layout-normal-land Jan 02 16:49:04 layout-normal-port Jan 02 16:49:07 your layt is wrong is what I'm saying Jan 02 16:49:10 whats f'n hard Jan 02 16:49:11 HOW Jan 02 16:49:18 landscape != portrait Jan 02 16:49:24 *sigh* Jan 02 16:49:27 oh deer Jan 02 16:49:35 take a rest, you need to step away from the computer, RIGHT NOW Jan 02 16:50:26 I remember I was hammering my head on why my threads weren't running, and I noticed I was doing the "run" manually, instead of using the "start()" Jan 02 16:50:42 android:orientation="horizontal" Jan 02 16:50:45 Bitgod: come back in 30 minutes, after you have cleared your head, don't bother looking at your layout items, and relax Jan 02 16:50:49 android:orientation="vertical" Jan 02 16:50:54 and each .xml is different Jan 02 16:50:55 so WTF Jan 02 16:51:00 :< Jan 02 16:51:05 don't bother spamming the channel, take a rest Jan 02 16:51:12 i just woke up... Jan 02 16:51:14 seriously we told you it's not the orientation, we said LAYOUT Jan 02 16:51:15 Bitgod: the real WTF is that you're putting orientation on a RelativeLayout Jan 02 16:51:17 and had 4 cups of coffee Jan 02 16:51:28 Bitgod: try having another Jan 02 16:51:30 Bitgod: it's not helping you Jan 02 16:51:35 again, it's just like CSS Jan 02 16:51:43 you NEED to configure each item, not the whole layout itself. Jan 02 16:51:51 the orientation is just a profile of your layout Jan 02 16:52:11 you need to treat it like CSS/HTML Jan 02 16:52:31 if you've designed websites, you know all your work right now would have the same exact effect on any web page. Jan 02 16:52:56 I am using viewPager and I have set simpleGesture onTouch event, but while clicking button on a view some time it crashes with java.lang.IllegalArgumentException: pointerIndex out of range error. Jan 02 16:52:56 ah fuck it Jan 02 16:52:59 ill stick to pc dev Jan 02 16:53:01 * Bitgod pets his C# Jan 02 16:53:10 not like u make $ on the market lol Jan 02 16:53:20 Bitgod: right, if you say so. Jan 02 16:53:27 * Tonisius rolls inthe money he makes Jan 02 16:53:30 tonic its true Jan 02 16:53:35 people pirate apks Jan 02 16:53:36 Bitgod: alright, have fun! Jan 02 16:53:38 what ever makes you happy in the end. Jan 02 16:53:40 my bud made one, took 5 months Jan 02 16:53:43 Tonisius: I do that too, I left a few coins on the bed Jan 02 16:53:45 sold it for $2.99 on market Jan 02 16:53:46 Bitgod: no one cares Jan 02 16:53:54 it was on pirate sites in 1 week Jan 02 16:53:54 so why bother :/ Jan 02 16:54:01 Bitgod: it's why people use validation periods, and use off market authentication Jan 02 16:54:06 Bitgod: welcome to software development Jan 02 16:54:26 Bitgod: because the PC programming is not as pirate proof either Jan 02 16:54:32 * Tonisius glares are the pirates in the bay Jan 02 16:54:39 Bitgod: do y6ou know how long they put into DNF? I bet it's on The Pirate Bay! :O Jan 02 16:54:48 dnf? Jan 02 16:54:56 Duke Nukem Forever Jan 02 16:55:03 AmandaC: I think it's against rules to mention that site Jan 02 16:55:04 oh, ok Jan 02 16:55:21 what, mentioning sites against the rules? Jan 02 16:55:23 Tonisius: not really, no Jan 02 16:55:25 Where are we, in China? Jan 02 16:55:28 yeah Jan 02 16:55:30 evanc: oh, good Jan 02 16:55:38 Bitgod: make it open source :) Jan 02 16:55:45 sonOfRa: uhm, depends on which cluster your on, yes, you could be in china Jan 02 16:55:49 no thx i need a income Jan 02 16:55:52 youre* Jan 02 16:55:54 now if you come in and ask about where to get pirated apps, I'll probably give you a swift /kb Jan 02 16:56:06 you won;t make a living from phone apps Jan 02 16:56:10 I get plenty of income for my Acura, house, and etc <3 Jan 02 16:56:37 Bitgod, open source/free software don't have to be gratis Jan 02 16:56:44 Bitgod: I can't help you, and you PM'ing me for help when you're bragging about how there is no money in Android isn't helping. Jan 02 16:57:05 Anoia: not from android apps ;) Jan 02 16:57:07 where is verdagon :/ Jan 02 16:57:09 he'd help me Jan 02 16:57:12 I develop, my skills are worth money. Jan 02 16:57:15 he got me started on intellijidea Jan 02 16:57:51 you guys are all so pessimistic :D Jan 02 16:58:20 mind you, I write/sell commercial Win32 software and that barely covers costs :) Jan 02 16:58:32 it really depends what you are doing. In the company I am currently in there are I guess around 7 people in the mobile development department, just doing mobile (mostly just android) stuff as full paied employees? Jan 02 16:59:09 Tonisius, not in China! Switzerland :D Jan 02 16:59:41 Anoia: anythjing I've heard of? :P Jan 02 17:00:01 probably not Jan 02 17:00:16 http://cctv.icode.co.uk/ Jan 02 17:00:56 I see Jan 02 17:01:32 THERE ARE NO BIRDS ON TYHAT TABLE! D: Jan 02 17:01:49 FASE ADVERTISING! D: Jan 02 17:01:53 Sorry, bit hyper. :P Jan 02 17:02:27 AmandaC: coffee does that to some people Jan 02 17:02:28 :3 Jan 02 17:02:39 I need me some milk tea, that should be good Jan 02 17:02:44 AmandaC: well, I;m on... Jan 02 17:02:49 Tonisius: I don't drink coffee, it doesn't taste good. :P Jan 02 17:02:50 well, noen at the moment Jan 02 17:03:01 what's the best way to store defaults? I have an RSS reader and I want to have a set of news sources already available? xml file or what i've done here http://pastebin.com/ifHnnR0r Jan 02 17:03:38 refresh, developer office, bird :p Jan 02 17:04:25 porten: where do you store configured news sources? Jan 02 17:04:30 Anoia: heh. :P Jan 02 17:04:36 if a database, why no just popluate that? Jan 02 17:05:25 Anoia: RIght now I have a static hashmap Jan 02 17:05:53 porten: how are you planning to save the sources over the lifetime of the app? Jan 02 17:06:00 but this seems wrong, I'm wondering if I should change it to something else Jan 02 17:06:29 just like desktop apps, local variable data is not shared between instances Jan 02 17:06:58 Anoia: good question, I haven't thought about that Jan 02 17:07:20 the normal method is a database, so just prepopulate that with defaultsd Jan 02 17:08:32 Anoia: alright, i'll look into that Jan 02 17:09:53 never published an app yet on the market Jan 02 17:10:04 should get one done in next few months Jan 02 17:10:09 but it is scary Jan 02 17:10:25 all these numbers 800,000 + apps etc Jan 02 17:10:49 95% which are just crap that can drowned a good effort/useful app Jan 02 17:11:06 Anoia: Great, exactly what I was looking for Jan 02 17:11:54 Its a great feeling when you push publish for the first time though! Jan 02 17:12:07 yeah but i did something a bit silly Jan 02 17:12:33 2 years ago I dropped out of the top of my career that had spent 16+ years in Jan 02 17:12:48 six figure salary etc Jan 02 17:12:56 and decided to do something I knew nothing about Jan 02 17:13:02 how smart was that lol Jan 02 17:13:04 to persue your passion of socks? Jan 02 17:13:16 I know about socks Jan 02 17:13:20 we published our first app less than a month ago and have around 8000 downloads, we were expecting around 100 in the first month! Jan 02 17:13:40 Juice paid app ? Jan 02 17:13:48 how long ago was that? Jan 02 17:14:28 JuiceSSH that a question for me ? Jan 02 17:14:31 StingRay_: I did something similar. Got tired of working for someone else Jan 02 17:14:37 No free with in-app purchase Jan 02 17:15:05 though the way it has worked for me is that I mostly play games and get drunk these days, though life like this is far more enjoyable and memorable, if nothing else. Jan 02 17:15:59 well I "was" one of the top instructors for autodesk Jan 02 17:16:11 3d artist / TD in games and film Jan 02 17:16:13 StingRay_: Was for you - i've been in IT for 15yrs - mainly linux sysadmin and am now fairly high up however i'd love to start my own company doing dev stuff Jan 02 17:16:35 then i decided, I want to learn how to write android apps Jan 02 17:16:36 :) Jan 02 17:16:37 However i think i'd get bored unless I was choosing what was developed Jan 02 17:17:22 is it possible to make a C program (running as root) that intanciate a dalvik VM and get a valid JNIEnv from it, that would allow the C side to call arbitrary java calls ? Jan 02 17:17:46 i could still return to 3d graphics for console games / film vfx if I want, but I just got bored Jan 02 17:18:03 far more fun to "DO" something that at the time of conception you cant! Jan 02 17:18:49 although I think I have learned development in a backwards gappy way Jan 02 17:18:50 :) Jan 02 17:20:08 bubbleguuum: unlilkey on a standard device Jan 02 17:22:23 I'll have you know that my previous troubles in connecting adb (after following the d.android site meticulously) were in no way due to the fact that I tried to connect adb over tcpip without specifying the IP address. Jan 02 17:24:12 is it possible to remove the requirement for the "layout_width" & "layout_height" attribute from children of my custom layout? or change the data type they accept? Jan 02 17:24:22 Anoia: indeed, it doesn't seems obvious how to do this or if it is possible. Maybe looking at the zygote process source code will shed some light on how the system create a dalvik instance.. Jan 02 17:24:43 bubbleguuum: why do you want to do this? Jan 02 17:25:41 that's to run special code that needs to run as root but for which most implementation would be in java. Jan 02 17:25:59 I see Jan 02 17:26:33 Even on a rooted phone it seems you cannot cahnge an app's uid and euid to be root (uid = 0) Jan 02 17:29:14 because of signatures Jan 02 17:29:29 freedomcaller: no Jan 02 17:29:36 thanks ^_^ Jan 02 17:29:43 0px it is :D Jan 02 17:29:47 freedomcaller: just have your custom layout ignore them Jan 02 17:29:52 ^^ Jan 02 17:32:19 Hi. I have a problem with my youtube promotion video. I put google play link to-the-description. When I click the link in desktop, it forwards to right place in google play. If I click it in Youtube player-of my android phone, it goes to front page of google play. Any solutions? Has someone experienced the same?-https://www.youtube.com/watch?v=c8tht61rMeU -> should go to https://play.google.com/store/apps/details?id=com.in Jan 02 17:35:15 Sorry the google play link was https://play.google.com/store/apps/details?id=com.indiumindeed.diamondvalley Jan 02 17:46:20 zhangxaochen: the interval isn't EXACTLY 2000ms. Jan 02 17:46:42 lov, about 2000ms Jan 02 17:46:47 zhangxaochen: the clock isn't precise. You're probably at a state where there's, say, 1970ms left on the clock. Jan 02 17:47:01 at that point, instead of giving you a 2s tick, it just finishes. Jan 02 17:47:10 it's a cruddy implementation, but that's how it works. Jan 02 17:47:20 Is there a definite mode that is "USB Host" vs "USB Accessory" on a tablet? Does the tablet decide which mode to be in automatically? http://developer.android.com/guide/topics/connectivity/usb/index.html Jan 02 17:47:49 jonathan_eyre: it probably depends on the tablet Jan 02 17:48:25 lov, not "it just finishes", if there is 1970ms left, then there is a 1970 gap between the last tick and onFinished Jan 02 17:48:48 right. Jan 02 17:49:00 I see hwere it says in Host mode, the device does this. In accessory mode, the device does that. But I don't see how to tell which mode the device is in... Jan 02 17:49:06 You may want to just look at the source yourself, and/or attach a debugger. Jan 02 17:49:26 Since this is causing you problems, consider using your own implementation with your own thread or something. It's a pretty simple class. Jan 02 17:50:46 jonathan_eyre: In host you enumerate the USB device and talk to it w/ one API, in accessory mode you use the USB gadget API Jan 02 17:50:56 jonathan_eyre: so I think you pretty much pick what your device will be driven by Jan 02 17:50:59 i added a 30ms on the millisInFuture to fix that at last... not very precise Jan 02 17:51:04 How does a custom action bar view have to be? Jan 02 17:51:34 jonathan_eyre: you don't get full control of the USB device in accessory mode (b/c it's not a device, it's a comms channel to essentially a PC) so the API is totally different Jan 02 17:51:42 cant parse that Jan 02 17:52:44 So it sounds like you can do either, and it's up to the OS/App what to do with what is connected. Jan 02 17:53:08 jonathan_eyre: accessory mode implies your USB gadget has a USB host chip and supplies power Jan 02 17:53:16 jonathan_eyre: and speaks the USB accessory comms API Jan 02 17:53:49 jonathan_eyre: Host mode implies your android has a host port (or otg port), supports host mode, supplies power, and basically gives you a raw usb API like libusb Jan 02 17:53:59 jonathan_eyre: so you basically implement the USB driver in your app on android Jan 02 17:54:35 The reason I ask is that my tablet has three USB ports. I just realized that I could have an adb connection on one, and my additional usb device on another. I'm thinking that Android goes through the trouble of letting you do adb over TCP/IP because many/most android devices have only one usb port to work with. Jan 02 17:54:56 jonathan_eyre: yes, most likely. It depends how your ports are pinned internally. Jan 02 17:55:14 jonathan_eyre: if they're on 2 USB controllers, then you can put one in host mode and one in device mode Jan 02 17:55:23 if they're one controller with an internal hub, no Jan 02 17:55:49 if you have a host mode full-size port and then micro device ports, then you should be able to do both at once Jan 02 17:56:23 doing adb over tcp works really well though Jan 02 17:56:45 just remember to turn it off or it'll contribute towards eating your battery; seems to keep the wifi awake all the time (for obvious reasons) Jan 02 17:56:55 I have 3 USB type A connections on the side... Jan 02 17:57:14 so full-size like a PC? Jan 02 17:57:25 how do you connect for adb; is there also a micro port? Jan 02 17:58:24 * Ge0rG was really glad to find out about http://code.google.com/p/usb-serial-for-android/ some time ago... though the driver support is really limited Jan 02 17:59:01 One of the USB ports is a combo of some sort. It allows development as well as connecting USB devices. Jan 02 17:59:24 jonathan_eyre: you probably have one or more dedicated host ports, and a device port. Jan 02 17:59:52 jonathan_eyre: in which case you should be able to retain adb over usb on the device port while doing host stuff on the other port Jan 02 17:59:56 Ge0rG: yeah that might save me some time Jan 02 18:00:03 Ge0rG: I finally released my wifi pcap code Jan 02 18:00:28 dragorn: congrats on that :) Jan 02 18:00:37 * Ge0rG still got no usb-serial code in his app ;) Jan 02 18:00:44 Ge0rG: http://kismetwireless.net/android-pcap/ if you're interested Jan 02 18:00:48 git repo is there too Jan 02 18:00:57 http://www.meritline.com/usb-3-0-type-a-male-to-a-male-connector-adapter---p-75346.aspx Jan 02 18:01:08 Wow, honestly I had to get my connector from China. Jan 02 18:01:10 dragorn: no time unfortunately. need to re-implement desfire communication in android :( Jan 02 18:01:29 Ge0rG: nice Jan 02 18:01:50 Is it possible to remove the title bar from the application without changing the theme from default? Jan 02 18:02:09 I see methods for programatically doing this, but how about via xml? Jan 02 18:02:13 dragorn: nah, desfire is not nice. using all kinds on not-quite-official tweaks, like DES encryption in CBC-decryption mode Jan 02 18:03:44 has anyone here done a full android project exclusively in xtend instead of java? Jan 02 18:03:52 Hi, how do i add a seperator under a textview? Jan 02 18:05:11 dkuypers define and use a drawable ? Jan 02 18:05:28 how to capture pressing return key when editing an edittext? Jan 02 18:05:51 Using drawableBottom ? Jan 02 18:06:05 zhangxaochen textChangeListener combined with capture onKey maybe ? Jan 02 18:08:31 hi. on my nexus 7 this line throws an exception: sock = new Socket(host, port); Jan 02 18:09:08 qknight and the exception is ? Jan 02 18:09:15 NULL Jan 02 18:09:22 https://gist.github.com/4436556 this is mz manifest Jan 02 18:09:30 qknight--: the same monster that steals your socks from the dryer is stealing your socket connections Jan 02 18:09:31 no one cares what your manifest is Jan 02 18:09:38 pastebin the stacktrace Jan 02 18:09:44 hi lov Jan 02 18:09:49 hi canadiancow Jan 02 18:10:18 canadiancow: oh, i thought maybe there is a permission problem so that sockets are not allowed or something Jan 02 18:10:35 well that's hard to tell without a stack trace Jan 02 18:10:39 canadiancow: do your utters produce mapel syrup or hockey pucks? Jan 02 18:10:40 canadiancow: how to get a stacktrace? e.getStackTrace()? Jan 02 18:10:52 go read d.android.com Jan 02 18:11:01 like the whole site Jan 02 18:11:15 even the legalese in the LICENCE file? Jan 02 18:11:20 yep Jan 02 18:11:30 * AmandaC snickers Jan 02 18:12:31 heh Jan 02 18:12:38 im still trying to read the whole site Jan 02 18:12:44 StingRay_, what's the value for the return key? Jan 02 18:12:48 well you'll know when you've read enough Jan 02 18:12:50 i get a android.os.NetworkOnMainThreadException Jan 02 18:12:57 :/ Jan 02 18:13:31 qknight android.os.Network "OnMainThread" Exception Jan 02 18:13:50 Then you have to use threads (AsyncTask for example) Jan 02 18:13:57 gee i wonder what that could mean Jan 02 18:14:02 Because networking is not allowed on the UI/Main thread Jan 02 18:14:10 ha! thanks so much Jan 02 18:14:12 qknight--: look at the logcat output. When you get your stacktrace, pastebin that. Jan 02 18:14:13 ;-) Jan 02 18:14:21 INCLUDING all of the "caused by" parts. Jan 02 18:15:17 hmmmm http://www.youtube.com/watch?feature=player_embedded&v=cpWHJDLsqTU Jan 02 18:17:46 qknight--: For debugging purposes you can use http://www.privatepaste.com/3d3d3da991 to allow networking on ui thread.Especially if you are a beginner and first have to figure out if the networking part itself is working before you mess it up with threading :) Jan 02 18:18:23 onKey doesn't capture the return button, i mean the button at the bottom of the device, not inside the screen Jan 02 18:18:42 is it e.printStackTrace(); < zhangxaochen you mean the "back" button ? Jan 02 18:19:01 lov: i can't see 'caused by' lines Jan 02 18:19:18 zhangxaochen: http://developer.android.com/reference/android/app/Activity.html#onBackPressed%28%29 Jan 02 18:19:33 you can override that Jan 02 18:19:55 qknight--: they may not exist Jan 02 18:20:09 qknight--: that will emit a stacktrace, but only if you're actually capturing the exception. Jan 02 18:20:42 i capture it Jan 02 18:21:03 qknight--: then yes, e.printStackTrace will emit the stacktrace to stdout, which will emit to logcat as stdout or something. Jan 02 18:21:22 dkuypers, it's generally a bad idea to use onBackPressed Jan 02 18:21:26 qknight--: Is it still about the NEtworkingOnMainThread exception? Jan 02 18:21:31 yes back button... i didn't know the exact name. thx StingRay_ & dkuypers Jan 02 18:21:52 lov: https://gist.github.com/4436646 here is the trace Jan 02 18:21:58 dkuypers: yes Jan 02 18:22:01 canadiancow: If he wants to capture that event, this is how it goes. I'm not saying that he should do it :) Jan 02 18:22:20 qknight--: i already told you the problem you are having, didn't I? Jan 02 18:22:30 dkuypers: i think so Jan 02 18:22:34 qknight--: then yeah, it's because you're doing networking on the main thread. Jan 02 18:22:41 You need to use another thread to do networking, so that you don't block the UI thread. Jan 02 18:22:48 Look into AsyncTask, or just write a new Thread yourself. Jan 02 18:22:53 question folks Jan 02 18:22:58 thanks Jan 02 18:22:59 Just ask Jan 02 18:23:12 if I am using phonegap ...how would I be able to mimic background of the app? Jan 02 18:23:23 deanclkclk: I don't know, ask in #phonegap Jan 02 18:23:46 what does this mean : E/DirectVolume( 97): Invalid 'PARTN' value Jan 02 18:24:04 anders3408: it probably means that the OEM left their logging in at error level Jan 02 18:25:07 lov : it keeps saying this : http://logcat.miui.us/1932002 Jan 02 18:25:20 now i tried with 3 diffrend boot.img , one that i have been told working, one that i used in a port that worked and one that compiled from source now Jan 02 18:25:34 also here is a dmesg log : http://logcat.miui.us/1933001 Jan 02 18:25:43 lov can you help where to start ? Jan 02 18:26:04 it is a cm9 build that im trying to get working, it is from a new device, so new device tree also Jan 02 18:26:07 anders3408: start at #android-root if you're dealing with custom firmwares Jan 02 18:26:15 this channel is mainly meant for application development Jan 02 18:26:25 you PROBABLY won't get any relevant help here Jan 02 18:26:38 also, #cyanogenmod Jan 02 18:28:53 dkuypers, then how to check if the IME is in front when the back key is pressed? Jan 02 18:30:52 so i want to build an irc client for android, can anybody give me a sugestion of where to start and maybe what packages to use Jan 02 18:36:45 hotdogz: probably with the RFC for IRC, such as it is Jan 02 18:36:58 I'd recommend that you get a simple IRC client engine working before you work on the frontend. Jan 02 18:37:36 How does a custom action bar view have to be(the XML)? Jan 02 18:38:38 Got a question regarding v4-support FragmentStatePagerAdapter.getItem(..) & ViewPager. It seems like the ViewPager calls destroy() on fragments that are hidden. My code depends on references to those pages. Is there any way to prevent the ViewPager from destroying? Or notifying me? I only have three pages Jan 02 18:40:21 I'm too lazy to implement irc protocols, so I just nab a library Jan 02 18:40:37 a library would also be fine Jan 02 18:40:58 You could take a look at PIrcBotX(check the license) Jan 02 18:41:58 Question about intercepting dialed nukb Jan 02 18:42:05 Numbers Jan 02 18:43:01 tofi9: getItem is only called once per fragment Jan 02 18:44:10 ok thanks for the input all Jan 02 18:44:16 There are programs that have no app icons that run simply as a service and intercept dialed numbers to start the main activity thread i am having trouble finding a good tutorial on jow to do such a thing Jan 02 18:44:20 Nevermind, that's one without State in the name Jan 02 18:44:53 droidbuster: remove the intent filter for launcher in your manifest, define broadcast rx filters in manifest Jan 02 18:45:26 droidbuster: however not providing a way to launch the app to view state / remember it's installed is pretty antisocial Jan 02 18:45:33 so i'd suggest against that Jan 02 18:45:52 Dragorn ok and this is how certain private msg boxes work to hide texts and such Jan 02 18:46:36 Well tue idea is based off the apps that block and make a secret sms call box etc Jan 02 18:47:00 dragorn: it's something that "scumbag" apps do, where you don't want people to know it's installed because then your spouse/SO will know that you're a total scumbag Jan 02 18:47:11 considering it goes over the SMS network it's not exactly secret so what's the point Jan 02 18:47:14 lov: yeah i suppose so Jan 02 18:47:33 well, the idea is that it intercepts the SMS messages and doesn't display them in the main SMS app repo Jan 02 18:47:48 Or parents monitoring their r kids Jan 02 18:48:03 i'm doing a sms app at the mo Jan 02 18:48:05 Yes with the highest priority Jan 02 18:48:14 Or monitor kids Jan 02 18:48:18 but yeah, look for broadcast events that the dialer will send when you tap numbers and go beep boop blorp Jan 02 18:48:30 True Jan 02 18:48:33 with filter/rules/extras and encryption Jan 02 18:50:00 SimonVT: my test was to go from page 1 -> page 2 -> page 3. When I got to page 3, I saw that page1.onDestroy() was called. Jan 02 18:51:07 Thats where i stumble lov Jan 02 18:51:20 SimonVT: I was using FragmentPageAdapter. But changed to FragmentStatePageAdapter after reading http://code.google.com/p/android/issues/detail?id=19211 Jan 02 18:51:33 I havent found out how to listen for dialed nimbers Jan 02 18:54:18 droidbuster: look at the dialer app in the android source. Jan 02 18:54:30 hello Jan 02 18:55:07 vlc has a telnet interface and I want my app to send commands Jan 02 18:55:18 its just socket programming right? Jan 02 18:55:23 probably. Jan 02 18:55:34 you tell us :> Jan 02 18:55:43 eye eye Jan 02 18:55:47 I'm assuming that this is the VLC Android app? Jan 02 18:55:59 do you know if it actually runs a telnet server to be connected to? Jan 02 18:56:09 well I want to control vlc on a desktop with my app Jan 02 18:56:12 oh Jan 02 18:56:14 I believe it does Jan 02 18:56:16 oh ok Jan 02 18:56:20 yeah, this is totally cromulent Jan 02 18:56:22 it has an http server as well Jan 02 18:56:26 yeah it's just sockets. if you can get a rest interface, however, you'd be better off Jan 02 18:56:28 as long as your device can reach your desktop via the network Jan 02 18:56:29 use the http server Jan 02 18:56:32 ^^ Jan 02 18:56:43 that will be way more reasonable than telnet, in most cases Jan 02 18:56:51 TIL: what cromulent means Jan 02 18:56:52 otherwise when users set wifi to turn off when the screen turns off, etc, it'll break your link Jan 02 18:57:28 in general anything you can do to avoid holding a permanent socket open will make your life better. Jan 02 18:57:53 sdaq: it is a particularly excellent words because it is a neologism that was introduced as a joke about neologisms Jan 02 18:57:57 s/words/word/ Jan 02 18:58:16 cromulent: pertaining to google chrome? Jan 02 18:58:20 Is it possible to have different text styles on the same textview? Jan 02 18:58:21 Ty lov and dragorn Jan 02 18:58:25 alankila: no ._. Jan 02 18:58:34 dragorn: am I supposed to send http headers and requests to control vlc via the interface? Jan 02 18:58:39 Like this: https://lh3.googleusercontent.com/-Lnu9AhcfQP8/UFiP321SCEI/AAAAAAAANGE/SGJxtxE_Cpc/s1280/3.png Jan 02 18:58:57 lov: i wiki'd it Jan 02 18:58:58 sdaq: if they have a web interface it's probably something like a REST interface, or at least, CGIs you call Jan 02 18:59:21 zyngawow: I don't see where there's separate textviews in that. Jan 02 18:59:22 dragorn: thanks, brb Jan 02 18:59:26 sdaq: I don't know how VLC operates really, so that's an exercise for the reader :P Just in general, if you can do momentary connections Jan 02 18:59:29 or rather a textview with different styles Jan 02 18:59:29 zyngawow, do you work for zynga? Jan 02 18:59:33 zyngawow what lov said Jan 02 18:59:34 No Jan 02 18:59:45 sdaq: you'll have an easier life than if you have long-term sockets open Jan 02 19:00:01 I mean, different styles(bold) on the same textview(is it the same textview?) Jan 02 19:00:13 zyngawow no it wont be Jan 02 19:00:23 so, thats 3 textviews Jan 02 19:00:34 zyngawow: see Spannable Jan 02 19:00:39 zyngawow: yeah, use a Spannable Jan 02 19:00:46 you can also actually use HTML in your text resources Jan 02 19:00:56 though I can't find the documentation on that now Jan 02 19:01:29 for that you want Html.fromHtml() Jan 02 19:01:57 Also.. can you help me customising the top Action Bar? How can I make it so the background is a ceratin color? Someone suggested making my own actionbar xml, but I dont know how Jan 02 19:02:23 maybe look at using ActionBarSherlock Jan 02 19:02:24 learn? Jan 02 19:02:29 or yeah, what lov said Jan 02 19:03:26 lov: I tried... I just dont know how to do it. There isnt much documentation for doing it though XML Jan 02 19:04:10 I don't know either, but I haven't really had the chance to play with frontend stuff lately, sorry. Jan 02 19:04:24 ABS++ Jan 02 19:04:28 You could definitely take a look at something like ActionBarSherlock like stevel said, since that's basically a compatibility layer Jan 02 19:04:28 http://lmgtfy.com/?q=action+bar+background+color Jan 02 19:04:43 see every single result on page 1 Jan 02 19:05:41 Or, you know, the docs: http://developer.android.com/guide/topics/ui/actionbar.html#AdvancedStyles Jan 02 19:10:57 http://codepad.org/0QVQpjZC, why the output of println(txt=="") is still false even when the editText is delete to empty? Jan 02 19:12:33 http://pastebin.com/rZPkDG82 2 short questions, i guess pretty simple for someone more experienced :) Jan 02 19:14:09 zhangxaochen: because == doesn't work like you think for strings. Jan 02 19:14:17 zhangxaochen: I would STRONGLY recommend that you learn Java before you learn Android Jan 02 19:14:43 lov: I think thats exactly what I missed out Jan 02 19:14:48 learning java :) Jan 02 19:14:51 nicole24: always close the cursor when you're done with it. Be polite. Jan 02 19:15:25 hi, I have a custom web view which allows you to upload images using an input box with accept="image/*;capture=camera" -- it is working perfectly fine, except the image which gets uploaded is always flipped horizontally…anyone know why this might be? Jan 02 19:15:43 nicole24: generally, you'll get the cursor from your query, do something with it, then close it. You can reuse the variable NAME if you want, but the cursor OBJECT itself can't be reused. Jan 02 19:15:49 lov, i think the JVM has only one copy for "" and the == should work Jan 02 19:16:04 tplaner_: is it always front cam? Jan 02 19:16:06 zhangxaochen: whether or not that's the case, that's not the contract for strings. Jan 02 19:16:17 you're not guaranteed to always get the same object. Jan 02 19:16:27 you might just so happen to, but there's no guarantee. Jan 02 19:16:43 marcab: they can choose which camera, no way to prevent that on non-jailbroken phones as far as I'm aware Jan 02 19:17:10 jailbroken? Jan 02 19:17:15 rooted Jan 02 19:17:19 whichever term you want Jan 02 19:17:23 zhangxaochen also are you wanting onTextChanged ? ir afterTextChanged ? Jan 02 19:17:43 tplaner_: right -- so it's flipped regardless of which cam is used? Jan 02 19:17:51 marcab: correct Jan 02 19:17:58 you want to see my intent handler? Jan 02 19:17:59 kk -- pardon for wasting your time :p Jan 02 19:18:07 oh, np =] Jan 02 19:18:16 I found this wrt REST client with android http://neilgoodman.net/2011/12/26/modern-techniques-for-implementing-rest-clients-on-android-4-0-and-below-part-1/ Jan 02 19:18:41 sdaq, that's a good article imo Jan 02 19:18:47 lov, there is no guarantee? i remember i've read it somewhere.. Jan 02 19:19:17 jeppy what if I am using ice cream sandwich and up? Jan 02 19:19:32 lov thx i will be polite with cursor :) , so its not possible to do 2 or more rawQuery with cursor, i felt little bit stupid writing making few cursors in same class but i guess from what you said thats the only way... what about 2nd question? :) Jan 02 19:19:35 StingRay_, you mean i should use afterTextChanged instead? Jan 02 19:20:05 zhangxaochen well if you want an editable that is the NEW elements yes Jan 02 19:20:11 I dont know what your after Jan 02 19:20:23 but was my 1st mistake Jan 02 19:20:25 nothing in after Jan 02 19:20:33 what mistake? Jan 02 19:20:33 nicole24: well, the idea is that your cursor is only valid for the query that it was returned for. There's no way to "reuse it" for another query. Jan 02 19:20:47 using on rather than after Jan 02 19:21:01 You can use it for however long as you need it for, but you should close it when finished, so that you don't end up leaking things. Jan 02 19:21:34 regarding your second question, you can do this with final, but better would be to have the onClick function actually get the DB reference, rather than passing a reference. Jan 02 19:22:12 sdaq, i believe he references special cases where needed Jan 02 19:23:17 zhangxaochen your wanting something to trigger when the field is empty ? Jan 02 19:23:43 lov i tried with final but it does not work, any very short example to show? Jan 02 19:23:46 StingRay_, no, not to trigger Jan 02 19:24:18 well either way after gets you an Editable Jan 02 19:24:43 so editable == null || editable.length() == 0 Jan 02 19:24:56 nicole24: actually, if you're calling this from within an Activity, you can just have openOrCreateDatabase within the onClick function. Jan 02 19:26:39 hmm i know, thx lov & StingRay_ Jan 02 19:28:01 is jelly bean based on java 7? Jan 02 19:29:24 jeppy: no version of android supports java 7 Jan 02 19:29:47 thanks jf :D Jan 02 19:30:22 lov okay thx, i will try now Jan 02 19:31:29 how do I setup USB Debugging with ADT on linux? Jan 02 19:31:56 I feel like I didn't have to do anything the last time I setup the sdk on linux Jan 02 19:32:32 In eclipse I see a device, but all the fields have question marks Jan 02 19:39:23 Hi all, does anybody know if the Droid Razr M is considered hdpi or xhdpi? Jan 02 19:40:54 lov i got 2 warnings now - 1st the static method from .... should be accessed in a static way, 2nd variable can only be null at this location for this line - sampleDB.execSQL("DELETE FROM " + TABLE_NAME); Jan 02 19:42:38 this second warning i was getting all the time when i was trying this in onClick :\ Jan 02 19:42:53 nicole24: onClick is in the UI thread Jan 02 19:47:36 nicole24: well, think about what those errors are, and then fix them. Jan 02 19:47:57 consider asking in #java (and mention that this is NOT android specific, but a java specific issue) Jan 02 19:48:07 (they love to hear the word "android" and send people back here) Jan 02 19:48:33 to be clear, make sure you mention that your question is about using anonymous inner classes, and variables. Jan 02 19:48:59 for the game devs here http://www.fastcodesign.com/1671517/3-principles-for-the-future-of-gaming-from-a-google-game-designer Jan 02 19:49:45 warnings are pretty meaningless Jan 02 19:50:06 yeah, when the light turns yellow, you step on the gas Jan 02 19:50:07 think of it this way, errors mean no, warnings mean not right now Jan 02 19:50:26 just keep pushing, if it's really bad you'll get a no later on Jan 02 19:56:09 that's horrible, mikedg Jan 02 19:56:16 ? Jan 02 19:56:23 just keep pushing, if it's really bad you'll get a no later on Jan 02 19:56:26 don't do that Jan 02 19:57:32 if you dont have warnings, you arent working on a good enough project Jan 02 19:57:51 #java is full of morons Jan 02 19:58:25 No, if you don't have warnings, you're doing it right Jan 02 19:59:35 Can anyone explain what's required to make an AIDL-based service that runs in a separate process call into the Activity that binds to it? Jan 02 20:00:28 maslen: a second AIDL binding that the activity implements, I think Jan 02 20:01:58 mikedg's rules for relationships. Jan 02 20:02:09 How do you determine what screen-size bucket a device will fall into? Jan 02 20:02:14 maslen: you'll have to define callbacks Jan 02 20:02:36 maslen: I'd strongly recommend that you look at the Service classes in the Android source for good examples of how this is done, along with the complete bookkeeping you'll need to worry about Jan 02 20:02:42 If you don't need to use AIDL, consider not using it. Jan 02 20:03:14 lov: I specifically need it to be in another process. I was under the impression that a Service based on Extending Binder wouldn't work with that. Jan 02 20:03:59 AmandaC: So I have that: My ServiceConnection creates an instance of something that inherits from a second AIDL-based Stub, which has a reference to the Activity that bound the Service Jan 02 20:04:16 maslen: right, but wwhat I'm asking is whether you REALLY need to use AIDL for this, or whether broadcasts are sufficient? Jan 02 20:04:17 List> Jan 02 20:04:55 lov: I don't know enough to make that decision myself; but given the amount of methods involved, and the amount of times they'll be called, AIDL might be best. Jan 02 20:05:08 * maslen knows almost nothing about either mechanisms, tbh Jan 02 20:05:17 * lov shrugs Jan 02 20:05:30 AIDL involves a lot of bookkeeping, and is a pretty big PITA if you can get away with just using broadcasts Jan 02 20:05:33 basically Jan 02 20:05:40 do you need a Synchronous request? Jan 02 20:05:42 yes/no Jan 02 20:05:43 Yes Jan 02 20:05:50 ok, maybe you do need AIDL. Jan 02 20:06:50 AIDL isn't that difficult Jan 02 20:07:03 don't catch AIDL Jan 02 20:07:05 lagann: It doesn't seem to be. My difficulty is in setting up bidirectional communication Jan 02 20:07:14 I have one-way communication working Jan 02 20:07:23 (Activity->Service) Jan 02 20:07:23 if AIDL fits the problem, use it Jan 02 20:07:32 maslen: anyhoo, take a look at http://malsandroid.blogspot.com/2012/02/aidl-step-7-using-callbacks.html Jan 02 20:07:41 lagann: it's not DIFFICULT per se, but there's a lot of bookkeeping involved. Jan 02 20:07:48 You have to worry about the case of one process dying without unbinding, etc. Jan 02 20:08:11 lov: That title looks really, really, relevant Jan 02 20:09:12 maslen: I assume that it wants you to read 1-6 before 7 but you should be able to grok the general idea Jan 02 20:09:23 and again, you can take a look at the android source, to see how this is handled there Jan 02 20:10:57 maslen: look at the GCM sdk for an example Jan 02 20:10:59 lov: It looks very similar to what I have :( Jan 02 20:11:21 they pass in a callback through a binder for the service to call when gcm is done registering Jan 02 20:11:29 Right. That's what I do. Jan 02 20:11:38 ok. Jan 02 20:11:41 well there you go. Jan 02 20:12:04 But I get a null pointer Exception when I try to call from the Service Jan 02 20:14:33 well, figure out why it's null Jan 02 20:14:41 sorry, this is something of a complicated topic Jan 02 20:14:54 it's also not really handled by the official docs, which is really a shame Jan 02 20:15:00 Yup :( Jan 02 20:15:09 again, the very best thing you can do is look at sample code that others have written Jan 02 20:16:25 What I tend to do (following what AOSP has done) is to create a callback wrapper class for the AIDL callback interface that you're given in your service, and call against that to handle bookkeeping Jan 02 20:17:45 What you should end up being able to do is doing your onBind, etc, and in your onServiceConnection call YourFoo foo = YourFoo.fromBinder(service); foo.register(fooListener); Jan 02 20:17:57 where fooListener is an instance of your FooCallback which extends IFooCallback.Stub Jan 02 20:18:30 On the service side, your callback wrapper can handle the RemoteExceptions and BinderDeath notifications Jan 02 20:18:38 Hmm... would it be cool if I made a small sample project, just to demo this functionality? And (if you have the time), you'll take a look? Jan 02 20:18:57 like I said, there's a lot of bookkeeping for what you can very simply handle by sending a broadcast intent if you don't absolutely need synchronous calls. Jan 02 20:19:10 It's definitely worth making a sample project, but I can't take a look at it because I'm leaving shortly, sorry Jan 02 20:19:27 i've got a listview where each item contains some text and an array of image resource ids of variable length. should look like this: http://i.imgur.com/Ula3T.png - the problem: i don't know how many images each row will hold. how do i solve this? Jan 02 20:20:00 noganex: I'm not sure what the problem is here, sorry. Jan 02 20:20:37 lov: i don't know how to create a layout with X imageviews... Jan 02 20:20:42 oh. Jan 02 20:20:55 Well, either A) you don't, you use a custom class that draws all of the images for you Jan 02 20:21:06 or B) You handle inserting or removing ImageView objects at runtime in your adapter Jan 02 20:21:19 B is kind of inelegant but there's not a lot you can do. Jan 02 20:21:19 lov: custom class that extends View? Jan 02 20:21:32 noganex: sure, why not. Jan 02 20:22:24 or perhaps ViewGroup? Jan 02 20:24:04 Is there an easy way to figure out which drawable-*dpi folder a device will likely draw from? Jan 02 20:25:12 snowinferno: sure, you can simply ask the device for its dpi class Jan 02 20:25:43 snowinferno: ie, dpi class is an android parameter, not something set in hardware Jan 02 20:26:04 maslen: errr, i was wrong earlier, it's not the GCM library, it's the license library Jan 02 20:26:19 snowinferno: in general there's nothing stopping someone from running an xhdpi device on ldpi to get more usable screen space Jan 02 20:29:58 you could install something like https://play.google.com/store/apps/details?id=jp.co.taosoftware.android.dpiinfo&hl=en to look up the DPI Jan 02 20:30:03 Hi debs, I need a little help with positioning a view in my very first android app … Can anybody help me? I'm a little lost with all the layout thing ... Jan 02 20:30:18 I want to position it dynamically from code Jan 02 20:30:21 *devs Jan 02 20:33:18 aaronfc: don't know what your app does, but positioning from code is generally a no-no on android Jan 02 20:33:37 Maurits_: unfortunately I don't have one of the devices. I'm working on an app that will be used on both a tablet and a phone I know the phone will not be tweaked for a dpi other than the default. I wanted to see if I could just toss the phone-specific art in the hdpi folder and keep the tablet art in the xhdpi folder. Jan 02 20:33:57 snowinferno: no, it doesn't work like that Jan 02 20:34:12 snowinferno: DPI != screen size Jan 02 20:34:20 You wont find many xhdpi tablets Jan 02 20:34:23 snowinferno: DPI == screen density Jan 02 20:35:16 snowinferno: ie, an iPhone4 and an iPhone3G present the exact same usable screen space (480x320) but the iPhone4 has double the density Jan 02 20:36:20 I knew that density was not the same as screen size, I was hoping that the devices might fall into different density buckets Jan 02 20:36:46 they don't; and in any case the phone is more likely to go into the xhdpi bucket Jan 02 20:37:02 Maurits_: I'm trying to do a small game, and I got joystick implementation that I want to use. I just want to position that joystick over the "game" image, to overlap controls. Do you understand ? Jan 02 20:37:06 It's going to be running on I believe Xyboard and Razr M Jan 02 20:37:11 You don't tweak your layouts for densities, you tweak them for screen sizes Jan 02 20:37:22 And then you provide drawables for different densities so it'll look prettier Jan 02 20:37:45 that too, I also don't see the point of trying to save time by not resizing your drawables Jan 02 20:37:56 you can do that in a couple of minutes using automated tools Jan 02 20:38:32 ie, I just have a set of 'master drawables at high resolutions and then use imagemagick to resize everything Jan 02 20:39:21 aaronfc: ah, you could use a relativelayout as in: http://stackoverflow.com/questions/3294590/set-the-absolute-position-of-a-view-in-android Jan 02 20:40:07 Maurits_: can that be applied to a LinearLayout ? Jan 02 20:40:44 'cos I tried that in my linearlayout and my "margin" values are just being ignored … :( Jan 02 20:41:10 aaronfc: use a FrameLayout Jan 02 20:41:29 Hippo gnu deer! Jan 02 20:41:38 or framelayout, yeah Jan 02 20:41:51 ctate: gesundheit Jan 02 20:42:40 that's what I tried in my last try … frame layout but it's not working, can I just create a pasteBin with what I have? Jan 02 20:43:00 sure Jan 02 20:46:05 http://pastebin.com/BHGWVu9R Jan 02 20:46:38 here you have the main_activity.xml and where I add the joystick view. Jan 02 20:47:03 the topMargin value is just ignored Jan 02 20:49:11 aaronfc: try making it a relativelayout Jan 02 20:49:39 err Jan 02 20:49:58 add a relativelayout to the toplevel framelayout Jan 02 20:50:05 you mean the top level FrameLayout Jan 02 20:50:13 yeah Jan 02 20:50:18 happy new year ctate Jan 02 20:50:19 to be moved to a relative layout ? Jan 02 20:50:27 aaronfc: no, add it is a child Jan 02 20:50:32 *as a Jan 02 20:50:55 aaronfc: give it an id so you can get to it later Jan 02 20:51:25 using layout.findViewById(R.id.joystick_container) or something Jan 02 20:52:39 then simply add your joystickview to that Jan 02 20:53:15 using RelativeLayout.LayoutParams of course Jan 02 20:56:07 I feel really stupid, but I didn't understand how I should add the new RelativeLayer child ... Jan 02 20:56:23 when working with AOSP, do I need to download the NDK separately? Or is it already a part of the AOSP? Jan 02 20:56:33 I see a NDK directory but it looks like it only has the source Jan 02 20:56:36 it is not built Jan 02 20:57:36 aaronfc: just insert it in the layout .xml as a child of the root node Jan 02 20:59:27 is it safe to use a Loader in a Fragment which uses a ChildFragmentManager if the parent fragment calls setRetainInstance(true)? Jan 02 21:00:12 <[Nori]> Hello does there exist an app that can compile asm into apps? Jan 02 21:01:18 *Loader in a Child Fragment attached through a getChildFragmentManager() Jan 02 21:01:33 Maurits_: Oh god, it worked! :P Jan 02 21:01:49 meaning, do the child fragments get re-created upon rotation, or do they get retained as well? Jan 02 21:02:08 That sounds like a pretty easy thing to test Jan 02 21:02:11 [Nori]: sure, but you'll have to use the NDK Jan 02 21:02:26 <[Nori]> NDK? Jan 02 21:02:28 herriojr: depends on whether you call setRetainInstance(true) or not, no? Jan 02 21:02:53 [Nori]: http://lmgtfy.com/?q=android+ndk&l=1 Jan 02 21:03:00 evanc: basically, what I'm asking is about the lifecycle of child fragments since it isn't really documented Jan 02 21:03:57 <[Nori]> Evanc I mean on android Jan 02 21:04:07 SimonVT: possibly, I just wanted to see if someone knew off the top of their head before I go and implement a test Jan 02 21:05:27 Does the /system/etc/permissions/android.harware.usb.hosts.xml file have to be on the android device in order to use the android.hardware.usb.UsbManager? Jan 02 21:06:08 [Nori]: okay, so? Jan 02 21:06:44 [Nori]: all that tells me is you didn't even click the link I sent you Jan 02 21:06:57 <[Nori]> Does ndk run on android? I mean the program itself Jan 02 21:07:21 Maurits_: thank you :) Jan 02 21:07:25 (almost) no Android development is self-hosted; you have to use a desktop computer to build the software. Jan 02 21:07:30 np :) Jan 02 21:07:46 there's a toy Android-hosted dev environment that is pretty interesting, but it's not fully capable Jan 02 21:08:42 hmmm ... thought I saw a little C or C++ compiler app Jan 02 21:08:46 AIDE is capable Jan 02 21:08:47 and android devices currently aren't very practical as development devices Jan 02 21:08:51 but sort of ridiculous Jan 02 21:09:05 firmly in the "happy to have it, but no reason to use it" category Jan 02 21:09:16 well, this sort of thing should eventually be the preferred way of android development imo Jan 02 21:09:19 there's no reason you couldn't port the ndk using the ndk, I don't imagine. Jan 02 21:10:03 I believe desktop and smartphone, tablet OSes will eventually converge Jan 02 21:10:15 sure Jan 02 21:10:20 power is the big issue Jan 02 21:10:53 ctate: power as in battery life or power as in cpu cycles? Jan 02 21:11:09 compilation is extremely cpu intensive, and you just can't run a computer fast enough to be practical for larger projects if you don't have amp-hours to burn. Jan 02 21:11:33 oh, sure, might only be practical running from a charger Jan 02 21:11:41 you would want an external keyboard anyway Jan 02 21:11:42 chargers only supply 2 amps Jan 02 21:11:56 maurits_ there's the rub! Jan 02 21:12:00 well, current tablet chargers Jan 02 21:12:09 you'd need something like a laptop charger and battery etc Jan 02 21:12:42 hi im trying to do the first tutorial on the android website -- when i try to run the program on my galaxy s3 i get an "Installation failed due to invalid APK file!" error. Any idea what would cause this? Jan 02 21:12:44 sure, and of course android isn't there yet in terms of features to make it a practical desktop OS Jan 02 21:14:53 Here's a funny thought that doesn't really apply to the world. If a mobile OS is compiled on a PC, and a PC OS is compiled on a server compile farm, what compiles the server compile farm OS? Jan 02 21:15:10 <[Nori]> Yeah aide seems p good. I wanted to try out something low level though Jan 02 21:15:38 jonathan_eyre: it's called bootstrapping and the idea gets much more interesting than that. Jan 02 21:15:51 C compilers are written in C. And gcc in particular is used to compile the latest versions of gcc. Jan 02 21:16:04 I won't spoil the surprise :) Jan 02 21:16:30 Sequoia? Jan 02 21:17:30 hey, I'm experiencing a strange bug in my app where one color (random) takes over and starts displaying itself in place of other colors. So one time my app may have a lot of patches of red, another time, patches of grey. These are all custom defined colors that I am using in my app. What's going on?! thanks Jan 02 21:17:52 shad0w1e: your code is what's going on. you tell us. Jan 02 21:18:16 Shad0w1e: your code is doing exactly what you told it to do. Jan 02 21:18:20 Im not setting color programatically Jan 02 21:18:29 this is all via xml Jan 02 21:18:49 screenfail Jan 02 21:19:11 This is the equivalent of running in shouting,"I started cooking but everything's burnt! Did I add too much sugar?" Jan 02 21:19:19 heh Jan 02 21:19:44 I was wondering if theres something known that could cause such a symptom Jan 02 21:20:07 post your xml on pastebin or similar and see if anyone can guess from that Jan 02 21:20:31 the activity will appear fine. once things get messed up, all activities are messed up Jan 02 21:20:44 its as if a color got replaced Jan 02 21:28:00 How would I make a dialog box "hover" over an active window? I would like to have the active window maybe grey out, and a custom dialog with some text, a progress bar, and some buttons popup as an action occurs. Jan 02 21:28:22 jonathan_eyre: you need a theme, sec Jan 02 21:28:29 Is there a simple class for doing this? Jan 02 21:28:39 oh wait, I can' tget the theme name, because I lost it in my HDD failure Jan 02 21:28:48 jonathan_eyre: have your activity extend dialog, or assign it a theme which extends dialog Jan 02 21:28:51 I'm guessing AlertDialog won't do it... Jan 02 21:29:06 alert dialog can have a custom view Jan 02 21:29:13 My pop up activity will extend dialog? Jan 02 21:29:33 thats one possibility, or just give it a dialog theme Jan 02 21:38:28 I have a openFileChooser handler for my WebChromeClient in order to let the user upload a picture and it is working just fine, however if the user hits cancel without making a selection, the input button no longer works…do I need to somehow reset it when I handle the cancel activity result? Jan 02 21:54:43 Anybody know where I can find a working example of using MapView V2 inside a Fragment? Jan 02 21:54:46 oi Jan 02 21:55:46 I sublcassed ArrayAdapter for a custom adapter. Trying to use the ViewHolder pattern to make it more efficient. In single-pane mode (portrait) my listfragment works fine. If I turn it to landscape, suddenly I'm getting a cast error, like the tag is no longer a ViewHolder but one of my custom objects. What would cause this? Jan 02 21:57:26 heh. nm found my mistake Jan 02 21:57:38 Chronax whats the problem? Jan 02 21:59:07 I'm just beginning in android development. I copied the code from this stack overflow answer (http://stackoverflow.com/questions/5452940/how-can-i-get-android-wifi-scan-results-into-a-list) and I'm getting this error - "list_value cannot be resolved or is not a field" Jan 02 21:59:18 Also "row cannont be resolved or is not a field" Jan 02 21:59:22 How can I fix that? Jan 02 21:59:58 xorgate: The problem is that there are no examples. I'm not getting any map tiles and/or not seeing a map at all when I try to use the NEW MapView V2 inside a Fragment. Conversely, if I inherit from SupportMapFragment and just return super.onCreateView(...), I get a map with tiles. Jan 02 22:00:41 Chronax ah.. im using supportmapfragment and have no issues Jan 02 22:01:03 but it sounds like a auth issue, anything in logcat? Jan 02 22:01:32 Nothing in LogCat. Jan 02 22:01:47 and yeah, it sounds like that. I've also tried adding the apiKey attribute to the MapView directly with my new V2 key, no luck. Jan 02 22:02:45 I need some Google phrasing help. How would I set up a fluid layout where the corners are images and the center should be a repeating 1px image that stretches as necessary Jan 02 22:05:50 I'm doing this in my Fragment layout: http://pastie.org/5613130 Jan 02 22:05:59 does a "selector" for dimens exist? Jan 02 22:06:06 Can not see a map, even though my keys are set up correctly, I'm calling onCreate, onResume, etc on the new MapView object. Jan 02 22:06:08 state_pressed = "10dp" or something like that? Jan 02 22:12:23 nope Jan 02 22:12:29 Doesn't really make a lot of sense anyway, does it Jan 02 22:16:36 This new Maps V2 stuff is laughably broken and awful and undocumented. Jan 02 22:16:56 Chronax: You did remember to have the permission, right? Jan 02 22:18:31 Yeah, I've got the permissions in there. I was able to get the new SupportMapFragment to work. Jan 02 22:18:40 So I know I've got the permissions and keys set up correctly. Jan 02 22:18:46 But no luck with a new MapView in a Fragment. :( Jan 02 22:21:11 Okay, this is weird. Jan 02 22:21:46 I got it to work by calling MapView.onCreate(savedInstanceState) and MapView.onResume() FROM my Fragment's onCreateView() event. IT works, but the screen flashes during the MapView.onCreate call. Any ideas? Jan 02 22:29:51 Can you display a video with a MediaMetadataRetriever? or does it only decode thumb nails at various intervals? Jan 02 22:31:02 I've got a newbie question - I wrote my own class. How do I create a new instance of it? Jan 02 22:31:28 JoeyJoeJo myJoe = new JoeyJoeJo (); Jan 02 22:31:39 I hope it isn't static Jan 02 22:32:05 Thanks! Jan 02 22:33:48 So anyone? Jan 02 22:34:05 Does MediaMetadataRetriever only generate thumbnails seconds apart? Jan 02 22:34:18 or can you actually get frames at precise times Jan 02 22:34:41 because even with OPTION_CLOSEST I seem to be getting the same old frame over and over again unless a good second or so has passed Jan 02 22:34:47 then it'll give me the next frame Jan 02 22:35:11 is there a way to specify layouts for different screens? I have a layout showing differently on two devices with the same resolution and one set of artwork in the general drawable folder. The layout is all using dp. Jan 02 22:35:27 too many questions in this channel, not enough answers :P Jan 02 22:35:57 barque: I'm sorry, can you please phrase that statement as a question? Jan 02 22:36:33 http://developer.android.com/guide/topics/resources/providing-resources.html#AlternativeResources Jan 02 22:36:37 barque: from the docs: Jan 02 22:36:41 layout-normal, layout-large, layout-sw600dp, etc.. Jan 02 22:36:43 * evanc | When retrieving the frame at the given time position, there is no guarantee that the data source has a frame located at the position. When this happens, a frame nearby will be returned. Jan 02 22:36:43 Ok, when I use MediaMetadataRetriever, even at varying milliseconds I seem to be getting frames half-seconds or seconds apart Jan 02 22:37:00 barque: how often does your media have keyframes? Jan 02 22:37:07 well not that often really Jan 02 22:37:22 I'm trying to essentially decode the video... MediaPlayer isn't available to me Jan 02 22:37:38 because I would need SurfaceTexture to get the frames with that Jan 02 22:37:45 and that's API level 11 and I can't use that Jan 02 22:37:55 so I'm trying to use MediaMetadataRetriever as an alternative... Jan 02 22:38:04 but it seems that this is not an option... right? Jan 02 22:39:34 what's even worse is that with SurfacesTextures, attachToGLContext() is added in api level 16, which is a huge no-no for me. I have to support Android 2.0 at the very least. Jan 02 22:39:50 maximum I can discard is android 2.3.1 Jan 02 22:42:10 where's the best place to go for more tutorials after doing the initial helloworld application Jan 02 22:44:25 So anyway, I guess you guys concur that MediaMetadataRetriever is by no means for time-accurate video deocoding? Jan 02 22:44:31 If i execute async from onlicklistener and then do thread.sleep() in doInBackgroun() the ui thread blocks, why is that? Jan 02 22:46:25 you're getting an ANR? Jan 02 22:46:31 I doubt that Jan 02 22:46:54 No ctate, it just waits Jan 02 22:47:01 err Jan 02 22:47:26 make your sleep longer than 5 seconds, and see if it triggers an anr? :) Jan 02 22:47:45 (once you get an anr, the stack traces of all the threads in the unresponsive app are dumped to a file you can pull with adb) Jan 02 22:47:47 are you calling execute() or get() on your AsyncTask? Jan 02 22:47:54 I set it to 60000 millis, same Jan 02 22:48:02 .execute() JakeWharton Jan 02 22:48:02 okay, then the ui thread isn't blocking. Jan 02 22:48:05 Thanks for the help SimonVT Jan 02 22:48:14 I have an activity that copies a database from the assets dir to the database dir of my application if it does not already exists. How do I know read the copied database? (ie how do I get a database context of the copied database) Jan 02 22:48:21 ctate: ping Jan 02 22:48:30 FernandoMiguel: ACK Jan 02 22:48:44 ctate: you were the guy that did the adb backup tool, right? Jan 02 22:48:50 yes Jan 02 22:48:53 Hmm ill experiment some more Jan 02 22:49:02 ctate: where do I report problems? Jan 02 22:49:11 b.android.com Jan 02 22:49:15 I tried it on a Sony Sola, stock rom, running 4.0.4 Jan 02 22:49:22 it asked to unlock screen, which it was Jan 02 22:49:27 and made a zero byte file Jan 02 22:49:51 in the bug report make sure to supply exactly the command line arguments you used Jan 02 22:50:01 it's possible that in 4.0.4 the parsing was wonky Jan 02 22:50:05 k Jan 02 22:50:06 thanks Jan 02 22:50:11 note that adb backup is *experimental* Jan 02 22:50:11 filing now Jan 02 22:50:14 bah Jan 02 22:50:15 thanks Jan 02 22:50:50 i still take the bugs seriouslyi though :) Jan 02 22:51:07 ofc Jan 02 22:51:19 I do report bugs usually on several apps/services Jan 02 22:51:26 I expect them to be taken seriously Jan 02 22:51:45 but it's easy for users (and myself) to get bored about it Jan 02 22:51:47 most everything else isn't considered experimental :) Jan 02 22:51:54 if no feedback is proviced Jan 02 22:52:01 hey, i'm here! Jan 02 22:52:37 Serious bugs on that bug tracker: http://code.google.com/p/android/issues/detail?id=42221 Jan 02 22:53:21 SimonVT: typically that means the apk wasn't signed at all Jan 02 22:53:50 Yeah, his "workaround" from the comment is a tool that signs the apk Jan 02 22:54:08 so, uh, what's the bug being reported? Jan 02 22:54:12 ctate: https://code.google.com/p/android/issues/detail?id=42223&thanks=42223&ts=1357167247 Jan 02 22:54:18 thx FernandoMiguel Jan 02 22:54:23 np Jan 02 22:54:38 It was a joke Jan 02 22:54:44 I can't test more now, since I sent it for review, but I should have it back next week, if you need further data Jan 02 22:55:04 FernandoMiguel: it would be valuable to see what is *logged* when the backup is attempted. Jan 02 22:55:11 there is copious progress logging Jan 02 22:55:20 you can just attach that when you have time. thanks! Jan 02 22:55:58 will do Jan 02 22:56:04 if I forget, ping me next week :) Jan 02 22:56:11 roger that Jan 02 22:58:22 ohai ctate Jan 02 22:58:55 greetings, eh Jan 02 22:59:55 basically Jan 02 23:00:22 i should tell you aboot my holidays Jan 02 23:00:26 No thank you. Jan 02 23:00:34 :) Jan 02 23:00:37 im glad i brought my toque with me - it was really cold Jan 02 23:00:54 but after splitting a two-four with my cousin, i warmed up Jan 02 23:01:07 you already took the "eh" part of the joke though Jan 02 23:01:30 hee hee Jan 02 23:01:35 how can i set the ActionBar ListDropDown bg and TabBar bg to different drawables? Jan 02 23:01:43 there doesn't appear to be a way to do it programmatically Jan 02 23:02:02 there is setBg, setSplitBg, and setStackBg Jan 02 23:03:15 is there a setTheme or something? Jan 02 23:04:23 hm Jan 02 23:04:27 doesn't look like it Jan 02 23:07:12 i think Android treats the List nav and Tab nav as the same component Jan 02 23:07:17 with respect to the bg image at least Jan 02 23:15:36 ok so yeah, setRetainInstance() on a parent fragment who spawns children via getChildFragmentManager() does enforce the same setRetainInstance on its children Jan 02 23:16:42 Hi guys, I'm starting android development, what do you think about the minimum sdk I should start using for my first apps ? Jan 02 23:16:59 whatever supports the features you wish to use Jan 02 23:18:08 that's the point of my question, I do not have any special needs, but starting from the minimum sdk I use, I will use some features or others simplifying the app Jan 02 23:18:32 @xorgate: http://developer.android.com/about/dashboards/index.html Jan 02 23:19:07 rrr that was @aaronfc Jan 02 23:19:29 @aaronfc: I would start at 2.3.3+ Jan 02 23:19:40 woow that's sweet Jan 02 23:19:57 mmm would you dump Froyo ? Jan 02 23:20:01 @aaronfc: also check out the screen densities Jan 02 23:20:08 if I were starting right now, yes Jan 02 23:20:18 because by the time you finish it will be < 10% Jan 02 23:20:58 do you know why 2.3.2 is so little in use ? :S Jan 02 23:21:01 it's weird Jan 02 23:21:12 because most of those phones were upgraded to 2.3.3 Jan 02 23:30:04 same reason that ICS < 4.0.4 isn't much used, I guess, aaronfc Jan 02 23:30:24 ugh, must I call beginBroadcast each and every time I send a message across AIDL? Jan 02 23:31:07 ok, thank you both leslie and herriorjr :) Jan 02 23:31:15 i would support froyo in a new app until it became slightly annoying, then i would drop it Jan 02 23:31:35 android:minSdkVersion="17" Jan 02 23:31:39 NO REGRETS Jan 02 23:31:46 nice, evanc Jan 02 23:31:53 evanc, what are you working on? Jan 02 23:32:28 canadiancow: nothing, actually Jan 02 23:32:32 maslen: I am thinking no? Jan 02 23:32:36 that's not from a project Jan 02 23:32:48 maslen: I just grepped the LiveView plugin ( nearest code I have that use AIDL ) it doesn't have that anywhere in it? Jan 02 23:32:54 oh Jan 02 23:33:04 the highest i have is 14 as a min Jan 02 23:33:10 but i think there are some 15 apps floating around Jan 02 23:33:21 but then again, the code is a massive pile of shit, so maybe you're supposed to, and they just don't. Jan 02 23:34:19 evanc, I do not have any 17's device ! :P Jan 02 23:34:40 aaronfc, play.google.com/devices Jan 02 23:34:47 aaronfc: user error Jan 02 23:35:06 oh wow that link does not go where one would expect Jan 02 23:35:07 or maybe it does Jan 02 23:35:09 canadiancow: surely you're looking for /store/devices ? Jan 02 23:35:14 yeah Jan 02 23:35:50 xD Jan 02 23:36:14 * AmandaC hopes they implement old device cleaning soon Jan 02 23:36:16 I'm waiting for nexus 4 … but you know the stock problem ... Jan 02 23:36:18 hahaha Jan 02 23:36:32 AmandaC, yeah i have a nexus 7 that i lost still on there :p Jan 02 23:36:34 I've got three ghosts. Jan 02 23:36:39 and a nexus s that i signed into once Jan 02 23:36:44 oh no wait i own a nexus s Jan 02 23:37:09 canadiancow: they still have my Galaxy Tab 10 from I/O 2011 Jan 02 23:37:19 hmmm...mine's gone Jan 02 23:37:43 It's previous incarnation is gone though. ( I had to get mine replaced the second day, the backlight was leaking ) Jan 02 23:37:55 so I guess they do, it's just rediculously high Jan 02 23:37:57 mine had filesystem issues Jan 02 23:38:00 and its having them again Jan 02 23:38:03 luckily i have a nexus 10 now Jan 02 23:38:15 * pragma- updates screenshots at https://github.com/pragma-/networklog Jan 02 23:38:26 I hope they never give us pre-release samsung again, not unless it's got a nice big NEXUS on the back Jan 02 23:38:47 it's corrupted it's settings database twice now Jan 02 23:39:05 yeah i was unimpressed Jan 02 23:39:07 ( The second time was atfer I offloaded it on my mom ) Jan 02 23:39:13 try returning one of those from canada =P Jan 02 23:40:03 evanc: your longer name was better Jan 02 23:40:18 it appeared more distinguished Jan 02 23:40:30 I felt bad about givbing my mom the pile of shit that it is, so I bought her a N7 for chsitmas, and when I can get aroudn to it, I'm going to help her setup a dropbox sync thing so that she can just plop the files in a folder on her computer, it'll not get lost, and it'll be on her device instantly Jan 02 23:40:55 ( She likes renting books from the library, and reading them on her tablet ) Jan 02 23:42:41 I don't mind pre-release, as long as it isn't going to be abandoned in 5 months in favour of the GALAZY THING 2!!! Jan 02 23:43:18 i have a widget with a ListView in it, but its behaving like an AdapterViewFlipper instead Jan 02 23:43:28 ^ homescreen widget Jan 02 23:44:41 never mind, found the problem Jan 02 23:46:28 but the list view has no dividers for some reason... Jan 02 23:46:32 Dumb question. Could I put something like a MapFragment _inside_ a Fragment layout? Jan 02 23:46:36 they don't normally, I thought Jan 03 00:02:46 I use a ArrayAdapter on a Spinner with data from R.array.somearray. Can I rely on the position always being the same in onItemSelected(...) ? Jan 03 00:03:26 so if position=0 i know that it always is the first item in the array resource? Jan 03 00:03:44 I'm pretty sure ArrayAdapter maps to the same indexes as the actual array, dkuypers Jan 03 00:04:53 i want to add a progress bar on top of my main view when it's loading, remove it when it snot loading Jan 03 00:05:17 is there some way to do that ? Jan 03 00:05:32 myView.addView(prgbar) Jan 03 00:05:36 does a frame layout stack views on top of eachother ? Jan 03 00:05:46 myView.removeView(prgbar) Jan 03 00:05:48 stingray where would the progress bar be put ? Jan 03 00:05:53 what woudl its size be ? Jan 03 00:06:04 wherever you want depending on the view your attaching it to Jan 03 00:06:04 do i have to set layoutparams on it first ? Jan 03 00:06:15 if you wanted to Jan 03 00:06:53 you can't add a view to a view that's not a viewgroup can uyou ? Jan 03 00:07:01 when you say "myview" you mean the layout ? Jan 03 00:07:04 You can also use http://developer.android.com/reference/android/app/ProgressDialog.html and set setIndeterminate(true) Jan 03 00:07:15 no i dont want a dialog Jan 03 00:07:21 i dont want to make the view inactive while its loading Jan 03 00:07:25 k0nichiwa yes you can Jan 03 00:07:30 but even if you could not Jan 03 00:07:45 You can still style the ProgressDialog...and dismiss it...and recall it Jan 03 00:07:48 i dont want it indeterminat btw Jan 03 00:07:49 ((ViewGroup)myView).callViewGroupMethod Jan 03 00:08:04 thats insane Jan 03 00:08:20 anway why make it more complicated than it needs to be Jan 03 00:08:31 i want the progress bar full width and positioned at the bottom Jan 03 00:08:38 i suppose i need to set layoutparams on it ? Jan 03 00:08:47 depends on the parent Jan 03 00:08:56 the parent is a glsurfaceview Jan 03 00:09:00 as to what you would do Jan 03 00:09:16 Then just add a ProgressBar on the bottom of your app and hide it? Also the ProgressDialog will prohibit any interaction while your app is loading...if you want that Jan 03 00:09:22 for this purpose a glsurfaceview is just a view that has "draw" implemented basically Jan 03 00:09:40 dkuypers, i dont want it taking up space when it snot being used Jan 03 00:09:50 then just draw a progressbar too Jan 03 00:09:55 wherever you want Jan 03 00:10:23 Do you want to prevent any interaction with the UI while the thing is loading? Jan 03 00:10:31 i hate android, tring to figure out what the layoutparams need to be is going to be a pain Jan 03 00:10:39 dkuypers, no Jan 03 00:10:45 i want the UI sto remain active Jan 03 00:10:51 its not your typical loading situation Jan 03 00:10:51 Are you using a relativelayout? Jan 03 00:11:05 im using a frame layout, there is usually just one view in this activity Jan 03 00:11:13 but i can switch Jan 03 00:11:24 however if i add things to the layout it will resize the existing view Jan 03 00:11:38 which is not desirabvle i dont want the main view resized, i just want the progress bar stuck on top of it Jan 03 00:12:29 for iphone i'd just stick the view on top and set the frame, maybe implmenet layotuSubview Jan 03 00:12:59 hi guys Jan 03 00:13:20 how can i disable the home key ? Jan 03 00:13:30 you can't Jan 03 00:13:35 I belive you can use http://www.privatepaste.com/b0ccb28fe7 in a relative view Jan 03 00:13:39 Pr070cal why would you want to ? Jan 03 00:13:53 i read somewhere about running an app as a system app could i disable it then Jan 03 00:13:59 Pr070cal: no Jan 03 00:14:03 Pr070cal: you can obscure the soft keys on phones that use them, otherwise you cannot do this. it would be a potential denial of service. Jan 03 00:14:20 Pr070cal: well of course the lock screen can do it, for example. Jan 03 00:14:27 but that's up tot he window manager i believe Jan 03 00:14:43 jasta: on 4.2, the lock screen doesn't do it Jan 03 00:14:46 Pr070cal there are ways to take control of the home key Jan 03 00:14:48 whether it can, I don't know Jan 03 00:15:20 evanc: yes it does. Jan 03 00:15:35 on 4.2, it shows just the little lock home icon which you can use to access google now assuming you do not have security enabled Jan 03 00:15:41 but it definitely disables its normal operation Jan 03 00:17:21 im making a custom lock screen Jan 03 00:17:41 Pr070cal: for firmware replacement of the existing one? then you're in luck, of course. Jan 03 00:17:56 im betting its a window manager flag that permits the behaviour. i presume you have looked at the android source code? Jan 03 00:18:07 Pr070cal you can register as a homescreen Jan 03 00:18:20 and that way you get the home key trigger Jan 03 00:18:25 to do with what you want Jan 03 00:18:51 StingRay_, ok can i make a lock screen doing that ? Jan 03 00:18:59 No Jan 03 00:19:16 Well kind of, but thats not how the lock screen works :P Jan 03 00:19:20 well the only way I have used to capture home button is by registering as homescreen Jan 03 00:19:27 other than that, I dont know Jan 03 00:20:10 ok could you point me how to do that Jan 03 00:20:12 please Jan 03 00:20:23 StingRay_, addView is not a method in the View class http://developer.android.com/reference/android/view/View.html Jan 03 00:20:34 child Jan 03 00:20:59 k0nichiwa: Did you try http://www.privatepaste.com/b0ccb28fe7 in a relative view Jan 03 00:21:01 ? Jan 03 00:21:12 k0nichiwa I said cast to viewGroup Jan 03 00:21:17 dkuypers, i think frame layout is what i need Jan 03 00:21:23 you can't cast an object into a type that it is not Jan 03 00:21:29 ((ViewGroup)myView).addView(anotherView); Jan 03 00:21:30 a viewgroup is derived from a vew not vice-versa Jan 03 00:21:57 that will just give you a run time exception, bad cast Jan 03 00:22:05 k0nichiwa so your saying that dont work ? Jan 03 00:22:10 cause I do it lots Jan 03 00:22:12 did u fl unk out of devry or something ? Jan 03 00:22:16 to get parents Jan 03 00:22:31 and traverse view hierarchies Jan 03 00:22:47 anyway i think frame layout may be what i need, i think it stacks the views that are in it Jan 03 00:22:49 k0nichiwa: Well I was talking about using a relativeLayout as activity/fragment and add the only view you want in full size + the progress bar code Jan 03 00:23:12 StingRay_, well doesnt make sense to me, maybe you're working with the layout view of your activity or something Jan 03 00:23:25 relative might work also Jan 03 00:23:33 StingRay_, hi sorry how do i register as homescreen and capture home button Jan 03 00:23:41 frame layout + gravity may work Jan 03 00:24:05 phew, finally sorted my HTTPS, certificate and keystore issues Jan 03 00:24:06 http://stackoverflow.com/a/14131358/588306 Jan 03 00:24:15 when you set a views layout params you use the params for the viewgroup you want to put it in ? Jan 03 00:24:19 for anyone that saw my question earley Jan 03 00:24:22 earlier evem Jan 03 00:24:24 Pr070cal: you should google for "custom android launcher". see for example the links given in the answer at http://stackoverflow.com/questions/7107010/android-creating-custom-launcher Jan 03 00:24:26 how to display homeAsUpIndicator in nested PreferenceScreen? Jan 03 00:24:28 Pr070cal look at intent filters MAIN LAUNCHER HOME DEFAULT Jan 03 00:24:41 CATEGORY_HOME intent Jan 03 00:24:43 to allows to back to main PreferenceScreen Jan 03 00:25:08 s/allows to/allow go/ Jan 03 00:26:17 k0nichiwa: why are you sticking to the frame layout? anyway you can have if you wish to have a framelayout in there Jan 03 00:26:56 well im not sure relative layout will stack views on top of one another Jan 03 00:27:17 k0nichiwa yes it does Jan 03 00:27:27 and did I flunk ? no, never went Jan 03 00:27:28 :) Jan 03 00:28:03 k0nichiwa: Why wouldn't it? Jan 03 00:28:18 then do i just capture home as normal public boolean dispatchKeyEvent (KeyEvent event) Jan 03 00:28:28 StingRay_, oh u couldn't get into devry, sorry bout that Jan 03 00:28:57 hm just realized i can probalby just put the progress bar into my layout Jan 03 00:29:02 k0nichiwa erm.... yes that must be what I said Jan 03 00:29:05 i dont even have to add it, i can just make it invisible Jan 03 00:29:12 k0nichiwa you have a problem with me ? Jan 03 00:29:18 im just messn w/u Jan 03 00:29:26 k0nichiwa: I was talking about that for a while now :) Jan 03 00:29:44 i took issue w/ur claim u can go around casting views to whatever u want them to be Jan 03 00:30:02 not what I said Jan 03 00:30:33 view to viewGroup yes cause I do Jan 03 00:30:36 lots Jan 03 00:31:01 but I'm not really a coder, so maybe it's just working cause it knows that about me Jan 03 00:31:03 :) Jan 03 00:31:39 StingRay_, according to this http://developer.android.com/reference/android/view/ViewGroup.html Jan 03 00:31:44 a viewgropu is derived form view Jan 03 00:31:49 view is not derived from viewgroup Jan 03 00:31:53 only certain views are a viewgroup Jan 03 00:32:01 so in general it shouldn't be safe to cast a view to a viewgroup Jan 03 00:32:10 but maybe a lot of the widgets you use are actually viewgroups Jan 03 00:32:19 that is correct. ViewGroup is a kind of View. Jan 03 00:32:32 hang on Jan 03 00:32:33 speaking very generally, layouts are ViewGroups, and things that actually draw are Views. Jan 03 00:32:42 ah Jan 03 00:32:44 right Jan 03 00:32:47 that makes sense Jan 03 00:32:56 all layouts are viewGroups Jan 03 00:33:01 (there are exceptions but that's the broad picture) Jan 03 00:33:03 thats why what I do works Jan 03 00:33:04 :) Jan 03 00:33:58 hang on, I do it with buttons too Jan 03 00:33:59 i need another nexus 4 now Jan 03 00:34:10 or have done Jan 03 00:34:29 onClick(view) cast to viewGroup to getParent Jan 03 00:34:30 ctate you just turned k0nichiwa s word around ;) Jan 03 00:34:53 dkuypers: yes well :) Jan 03 00:34:56 has anyone ever gotten adb to work over bluetooth? Jan 03 00:35:01 my word around ? how is that ? Jan 03 00:36:28 You can either say that every square is a rectangle or that some rectangles are square or you can say that squares inherit properties from rectangle or squares are a kind of rectangle Jan 03 00:36:42 But in the end it all states the same Jan 03 00:57:11 StingRay_, i have this in my manifest Jan 03 00:57:11 Jan 03 00:57:34 circles are just squares with infinite corners Jan 03 00:58:06 squares are just circles with 4 corners Jan 03 00:58:18 so whats a triangle ? Jan 03 00:58:29 three angles Jan 03 00:58:33 pragma-: loop detected. Jan 03 00:59:35 StingRay_, but the app doesnt load now i have a service Jan 03 00:59:53 StingRay_, i was wondering if having this in the manifest is correct Jan 03 01:00:56 Pr070cal looking back at some test stuff I also had those with addition of: android.intent.category.DEFAULT android.intent.category.LAUNCHER android.intent.category.MONKEY <--- no idea!!! Jan 03 01:01:02 There is every need to fear, for the ArchFool is here! Jan 03 01:01:13 StingRay_: monkey was for monkey automated testing Jan 03 01:01:28 was/is. still exists Jan 03 01:01:38 this was longer ago than yesterday so I could not explain :) Jan 03 01:02:00 wtf why would findViewById(R.id.myview) give me the progress bar which has id R.id.progessBar1 ?? Jan 03 01:02:05 maybe ineed to do a compelte rebuild Jan 03 01:02:59 I'm a complete n00b at android development. I've downloaded com.android.music from git, and compiled it. How do I push it to my Android VM from Eclipse? Jan 03 01:03:03 i love it how eclipse decides to rebuild every project in my workspacw hen i tiell it to just clean the one ime working on Jan 03 01:03:26 k0nichiwa: I thought there was a checkbox for that. Jan 03 01:03:37 there is, i told it to clean just the one im working on Jan 03 01:03:41 archfool: that should not be your first project with android. step back and reset. Jan 03 01:03:52 and then it proceeds to rebuild every projec ti have in my workspace ( i have a bunch of sample code in it ) Jan 03 01:04:02 Phooey. I like to jump in over my head. ;) Jan 03 01:04:13 archfool: and that's fine. but you'll do so on your own, then. Jan 03 01:04:15 I just wanted to tweak the music player a bit for my wife. :) Jan 03 01:04:29 they comletely f'd eclipse up when they decided it shoudl rebuild automatically for you instead of you pressing a build button Jan 03 01:04:33 * archfool drowns in a gooey gingerbread sea Jan 03 01:04:59 btw, gingerbead is very old. Jan 03 01:05:13 and then they decided the IDE's judgement of what is syntactically correct should take precedent to that of the compiler Jan 03 01:05:30 like 2 years old. Jan 03 01:06:07 jasta: that's what the Samsung Galaxy Player 4.2 has on it Jan 03 01:06:26 then it runs a 2 year old operating system. Jan 03 01:06:29 And there are no ICS or JB ROMs for it, so, 2.3.5 it is. :( Jan 03 01:07:19 why any informed android consumer would buy anything other than nexus series phones is still a complete mystery to me :) Jan 03 01:08:02 they don't Jan 03 01:08:05 jasta: lol cdma Jan 03 01:08:05 hehe Jan 03 01:08:07 : ( Jan 03 01:08:14 ctate: by definition they can't be informed? :) Jan 03 01:08:21 no, they *aren't* Jan 03 01:08:32 StingRay_, ok thanks is it still Jan 03 01:08:35 or, to put it the right way around, the informed android consumers already buy nexus devices Jan 03 01:08:42 ctate == Catherine Tate? =runs and hides= Jan 03 01:08:47 but only a small fraction of the marketplace is what you'd count as "informed" Jan 03 01:08:48 evanc: if you were an informed consumer, you wouldn't sign up for CDMA either ;) Jan 03 01:08:55 archfool: "Christopher" Jan 03 01:08:57 jasta: heh Jan 03 01:09:00 jasta: 1st and for most: not available Jan 03 01:09:12 nexus line, except n7 is not sold here, for example Jan 03 01:09:13 au contraire, the informed customers skip the nexus4 and get a real device Jan 03 01:09:37 jasta: over the holiday several people told me independently that yeah they know Verizon is kinda evil but t-mobile doesn't cover their home/office, so.... Jan 03 01:09:44 okie! :D Jan 03 01:09:46 because the informed customers know that the nexus4 8gb has a maximum usable storage space of 5gb, no sdcard slot, etc Jan 03 01:09:46 StingRay_, hey thanks man that worked Jan 03 01:09:52 i will actually admit that the n4 and gnex are basically zero sum by comparison to me. Jan 03 01:09:56 i'd be fine with either one. Jan 03 01:10:13 and doesn't support usb otg Jan 03 01:10:15 pragma-: I'm sure there are dozens of people who care about that Jan 03 01:10:28 the N4 is much faster Jan 03 01:10:33 pragma-: oh man, and probably 50% of the "no sd card!" crowd care about USB OTG Jan 03 01:10:39 and many people think the screen is markedly better Jan 03 01:10:42 wait, the nexus 4 has no otg? Jan 03 01:10:44 ctate: yes, and has a ridiculously stupid glass back :) Jan 03 01:10:45 and the GPS is probably better Jan 03 01:10:51 speed is worthless when you can only have 3 current generation games installed at one time Jan 03 01:10:54 _ridiculous_. Jan 03 01:11:03 protip: don't drop things; it's unseemly. Jan 03 01:11:11 ;) Jan 03 01:11:16 ctate: actually, that's what makes the n4 so bad. Jan 03 01:11:18 it's the biggest con Jan 03 01:11:20 protip: don't put a slippery glass back on your device that causes it to slide off tables Jan 03 01:11:22 it's both more fragile _and_ slippery. Jan 03 01:11:26 so it's like it wants you to destroy it Jan 03 01:11:30 actually no, the biggest 'con' is the internal disk size Jan 03 01:11:45 (le sigh) Jan 03 01:11:46 OK... Android emulator has this nifty keyboard to the right. The OS pulls up a phone keypad for text entry. Why doesn't the nifty keyboard on the side work? Jan 03 01:11:46 ctate: how so? it has the same capacity as the gnex? Jan 03 01:11:57 at least my gnex and my n4 do @ 16GB Jan 03 01:11:58 right Jan 03 01:12:05 oh, i'm thinking of hte 8gb version Jan 03 01:12:09 jasta: my galaxy s3 has 32gb of internal storage and a 64gb sdcard Jan 03 01:12:20 micro-managing storage is a thing for nexus owners Jan 03 01:12:21 16gb is borderline Jan 03 01:12:31 pragma-: well i was implicitly comparing gnex and n4. if you want to do a comparison of nexus series versus not i'd be happy to show you the 10 page long con list ;) Jan 03 01:12:34 pragma-: bitching about SD cards is a think for XDA "developers" Jan 03 01:12:36 thing* Jan 03 01:12:50 evanc: try boasting. Jan 03 01:12:52 ctate: 16gb works well if you use google music or something similar. Jan 03 01:13:00 lol, cloud. Jan 03 01:13:11 (which i do) Jan 03 01:13:21 My ~/Music is 5.2G Jan 03 01:13:48 * AmandaC could get away with storing it on her device, but she'd rather have it accessible from all her devices without manually syncing them Jan 03 01:14:06 google music as a design model is just the obvious right thing to do. Jan 03 01:14:16 but im biased since i created five Jan 03 01:14:23 (and google stole it, ha!) :) Jan 03 01:15:02 jasta: obvious if data transfer is fast, free, and everywhere Jan 03 01:15:18 SpeedEvil: chicken and the egg, as it were. Jan 03 01:15:27 apparently the FCC is requiring airplanes to provide internet access Jan 03 01:15:45 service begets services begets service. Jan 03 01:16:05 pragma-: "requiring"? did you read the headlines or the articles? :) Jan 03 01:16:10 pragma-: gogo wireless pisses me off. I get so mad every time I see wifi, connect to it, and get offered to buy internet for like $30/hr Jan 03 01:16:13 not happening, guys Jan 03 01:16:36 jasta: service in basements, rural areas and many countries is going to remain a problem. Jan 03 01:16:51 hi so i heard in jb sendevent is deprecated with input to replace it. where can i find the sources for just that binary? Jan 03 01:17:04 jasta: I have a gigabyte a month transfer. Jan 03 01:17:53 jasta: oh, easing restrictions on providing wifi on airlines -- the airlines no longer need to request permission to provide the service Jan 03 01:18:33 flight attendants are such techno-phobes though Jan 03 01:18:35 admittedly, not a problem on WiFi. Jan 03 01:19:01 * pragma- doesn't move his seat to the upright position during take-off/landing! Jan 03 01:19:08 evanc: dude, just scam it. it's easy to get free gogo Jan 03 01:19:21 i figured out a massive vulnerability last time i was up there, and of course even before that there was ip over dns Jan 03 01:19:59 jasta: you'd think they could afford better blocking with the prices they charge. :P Jan 03 01:20:11 jasta: I usually just order a jack & ginger and sleep instead Jan 03 01:20:46 i usually just spend my time hacking gogo. it's fun. Jan 03 01:20:47 ;) Jan 03 01:21:07 AmandaC: the hack i found is pretty neat. they whitelist some google ips through their captcha... Jan 03 01:21:26 so if you use /etc/hosts and point appspot to one of those ips, google's front-end load balancers will happily direct you to where you need to go Jan 03 01:21:36 that got me access to google.com searches Jan 03 01:21:39 hah Jan 03 01:21:46 which i used to look for an appspot.com http proxy, and found one Jan 03 01:21:53 haha Jan 03 01:21:54 so i redirected that too, then configured chrome to use it, and bam. Jan 03 01:21:55 full access Jan 03 01:22:07 found all this while still behind their captcha :) Jan 03 01:22:13 you mean you're using Google as a router? Jan 03 01:22:18 basically Jan 03 01:22:30 funky Jan 03 01:22:54 before i found the proxy, i was hacking webcontent.google.com to look at pages by their text cache :) Jan 03 01:23:01 so i could read news and shit hehe Jan 03 01:23:03 :-) Jan 03 01:23:04 jasta: did they fix it by your return flight? :P Jan 03 01:23:16 AmandaC: no, i confirmed its still an issue months later. Jan 03 01:23:22 haha Jan 03 01:23:23 IP over DNS also works on gogo, but of course its really slow Jan 03 01:23:32 IP over DNS? Jan 03 01:23:44 but IP over DNS is more generally useful since you can use it in the airport too. but then i usually just etther (see previous discussion re nexus series phones) Jan 03 01:23:48 tether* Jan 03 01:24:39 i'm trying to figure out from within native (JNI) code whether a given function is running on the main thread. anyone know a good way to do this? Jan 03 01:25:27 (i was thinking i'd cache the value of pthread_self() in JNI_OnLoad and then compare later - if i call LoadLibrary from a static initializer block in java, is it safe to assume that it runs on the main thread?) Jan 03 01:28:19 anyone here use osx for android dev? Jan 03 01:28:38 StingRay_: blasphemy Jan 03 01:28:48 blasphemy u here ? Jan 03 01:28:57 * pragma- stares at StingRay_ Jan 03 01:28:57 got a quick question Jan 03 01:29:09 :) Jan 03 01:29:16 No, I'm saying that it is blasphemy to do so. Jan 03 01:29:21 i know Jan 03 01:29:26 I thought I was being funny Jan 03 01:29:38 you were. Jan 03 01:29:42 thanks :) Jan 03 01:30:27 and osx for a android dev environment is quite nice Jan 03 01:30:34 everything works Jan 03 01:30:39 cept googleTV Jan 03 01:30:41 :) Jan 03 01:35:47 is it just me or is viewpager (support lib) really buggy? Jan 03 01:38:26 freedomcaller, I'm not sure if it's just me or is it not updating menu items correctly with swipes, clicking on viewpagerindicator updates it fine though... so I ended up disabling the flinging :E Jan 03 01:38:26 wondering where there is an example such as this for 3.0/4.0+ http://code.google.com/p/krvarma-android-samples/source/browse/trunk/#trunk%2FPhoneStateSample%253Fstate%253Dclosed Jan 03 01:38:38 freedomcaller, but so far that's the only issue I've had with it Jan 03 01:39:26 its setting the children sizes to 0 for me, and when i load children using the java constructors it gets a stack overflow Jan 03 01:39:39 unless its just one view, then it loads the first 2 items but the rest are invisible Jan 03 01:40:56 stack overflow sounds you're doing something recursively Jan 03 01:41:05 sounds like you're doing it wrong, though I can't help your with that right now since I really should sleep, need to get to work in 4 hours Jan 03 01:41:05 like loading view a in view b which loads view a again Jan 03 01:41:48 lol nope wasnt doing that Jan 03 01:42:24 im assuming its bugging out because i have it placed in a custom viewgroup, but linearlayout works fine in my viewgroup Jan 03 01:42:56 paste some code Jan 03 01:43:09 its a lot of code if i gotta paste the custom layout manager Jan 03 01:43:46 try to find the place the error occurs, paste things around that Jan 03 01:44:14 well the error stoped when i used a lyout inflater instead of new View(context) Jan 03 01:44:31 but i stil have a width of 0 on the views Jan 03 01:44:37 hm Jan 03 01:44:53 gonna try the same code without my customlayout manager Jan 03 01:48:04 So is there a good forum or something to find people to test apps/games on their (different) devices? Jan 03 01:48:17 xda Jan 03 01:48:21 there are soem paytouse services that let you do it Jan 03 01:48:25 xda-developers.com Jan 03 01:49:19 freedomcaller: like they ship a crate of random devices to you? :p Jan 03 01:49:20 ctate, any hint as to how to get an activity to be launchable from web browser ? i've looked at an examle from mark murphy "urlhandler" Jan 03 01:49:35 it doesnt work, it sets the browsable category etc ... is there some permission the use rhas to set in settings ? Jan 03 01:49:41 no its some cloud thingy called deviceanywhere Jan 03 01:49:43 is there some permission that needs to be added to an app ? Jan 03 01:50:07 so does it actually run physical hardware or just emulation though Jan 03 01:50:41 k0nichiwa: hmm. I handle URL-based intents in my penroser app, if you want to take a look at how I do it. Jan 03 01:50:43 i dont know, ask them Jan 03 01:50:53 https://github.com/jesusfreke/penroser Jan 03 01:50:57 i stoped caring when they started talking about "quotes" for the prices Jan 03 01:51:11 oh shiat Jan 03 01:51:18 wow JesusFreke still exists? Jan 03 01:51:33 haha :p Jan 03 01:51:44 ok, removed my layout manager, and its still not working :-D Jan 03 01:51:49 still hacking on/maintaining baksmali Jan 03 01:51:52 JesusFreke, well i want to make a scheme like foo://somedata and let the user tap it in a web browser (or email) Jan 03 01:51:58 JesusFreke, is that what you did ? Jan 03 01:52:13 make me a rom for my g1 that gives it 1gb ram Jan 03 01:52:16 i found an example by mark murphy "urlhandler" but its not working for me on my device Jan 03 01:52:24 k0nichiwa: yes, although I'm not 100% positive that it works from within a web browser. I think it should though Jan 03 01:52:29 commons guy .. mark (?) murphy Jan 03 01:52:48 the manifest is the main thing Jan 03 01:52:54 It is able to handle an actual http url (using a custom domain I bought specifically for the app) Jan 03 01:52:57 if u coudl post what you have in your manifest that woudl definitely help Jan 03 01:53:07 k0nichiwa: https://github.com/jesusfreke/penroser Jan 03 01:53:12 thanks Jan 03 01:53:23 it uses a penroser: scheme Jan 03 01:53:49 or also hooks an http://penroser.com/preference url Jan 03 01:55:19 do children of a viewpager have to be a frame layout? Jan 03 01:55:58 no Jan 03 01:56:21 hmm, thats scrollview >.< Jan 03 01:59:15 also no Jan 03 02:02:01 scrollview can only contain one child View. ViewPager uses a PagerAdapter to create and destroy the Views which represent pages (often handled by a FragmentPagerAdapter) Jan 03 02:04:44 aww crap i had broken my isviewfromobject function Jan 03 02:10:10 now its working wonderfully :D Jan 03 02:35:42 hey guys, im having a problem implementing fragments within an app Jan 03 02:35:53 have a listview, when it has items its not showing within the fragment Jan 03 02:36:00 without items, the empty view shows fine Jan 03 02:36:08 there should be #android-dev-fragments Jan 03 02:36:13 the listview works correctly when its dropped into a root activity however Jan 03 02:36:13 lol Jan 03 02:36:18 lol i can imagine Jan 03 02:36:31 sooo many people have problems with fragments Jan 03 02:36:52 anythign in particular? Jan 03 02:37:05 i'm guessing its not helping that im using the support library version Jan 03 02:37:20 i use support lib and list views Jan 03 02:37:24 all seems fine Jan 03 02:37:27 I haven't worked with Fragments yet, but I am saying this because everytime I switch to this channel it's Fragments talk Jan 03 02:37:47 quite happy with using fragments tbh Jan 03 02:37:58 StingRay_, never came across that problem? my adapter actually has its getcount called, but getview never gets called Jan 03 02:38:15 im usually cool with them, but this has me stumped Jan 03 02:38:17 trogdor_the_burn is it being drawn then ? Jan 03 02:38:38 yeah, im assuming so, since the empty view shows if there's no adapter Jan 03 02:38:41 trogdor_the_burninator: sure getcount is returning correctly? Jan 03 02:38:45 quick question - I'm writing an app that pulls data from an API.. is it better to write a list adapter that pulls from the api directly, or is it better for a background service to put the data in a sqllite db and manage the API connectivity? Jan 03 02:38:45 yeah Jan 03 02:38:48 hm Jan 03 02:39:18 also as a side note, im using mono, so its all in c#. dont think thats the prob here though Jan 03 02:40:17 what else is in the fragment ? Jan 03 02:40:27 are you inflating ? Jan 03 02:40:40 nah, im using sherlocklistfragment Jan 03 02:40:49 had the same probelm when i manually inflated though Jan 03 02:41:09 its actually a fragment within another fragment, but still same problem when i remove the nesting Jan 03 02:41:27 frag in a frag wont work I dont think Jan 03 02:41:44 its supposed to since 4.2/latest support lib Jan 03 02:41:52 correct Jan 03 02:42:04 hmmm didnt know that Jan 03 02:42:25 yeah, kinda nifty. i havent come across a case where 1 level of nesting was enough Jan 03 02:42:46 i havent come across a case where i needed a fragment in a fragment Jan 03 02:42:49 though even then, sticking my list fragment at top level doesnt draw Jan 03 02:42:52 i almost did it in a small app recently just to try it Jan 03 02:43:20 updating sdks now :) Jan 03 02:43:35 out of the two apps i've worked on, both had some form of navigation so that the main content area was a fragment, and then within that, say you need a map or viewpager Jan 03 02:43:56 if you need a map, use a mapview...? Jan 03 02:44:11 yeah I wanted nested stuff, not for that reason but many others Jan 03 02:44:16 mapview is old school Jan 03 02:44:20 its all mapfragment now Jan 03 02:44:22 no Jan 03 02:44:24 use the new mapview Jan 03 02:44:30 ah Jan 03 02:47:44 yeah if you want your own views mixed in with a mapview, its easier to just use the mapview and write your own fragment **** ENDING LOGGING AT Thu Jan 03 02:59:59 2013