**** BEGIN LOGGING AT Mon Jul 09 02:59:58 2012 Jul 09 03:19:42 tmho: I've worked with static api Jul 09 03:51:25 i have webview inside a fragment, how do I get the html code for parsing so that I can choose what content to show Jul 09 04:36:12 hey guys... i'm writing an app with min-sdk-version set to 8, and target-sdk set to 15. i was doing menus the old way, and now i'm trying to run my app in a device that has no Menu button, so i want to use the action bar. what is the best way to do this? i tried using the ActionBarCompat sample included, but it doesn't even build for me Jul 09 04:36:37 i'm using the 8 sdk to build Jul 09 04:38:29 Which ActionBarCompat sample? Jul 09 04:39:32 it's in android-sdk\samples\android-16\ActionBarCompat Jul 09 04:39:55 doesnt build? getting errors? Jul 09 04:40:16 Yuyo: That's the problem, you're doing a sample from API 16 Jul 09 04:40:29 Yuyo, ActionBar's aren't in API 16 Jul 09 04:40:41 Yuyo, Also, ActionBar's are not in the support package Jul 09 04:40:57 they removed the action bar from api 16? Jul 09 04:41:05 Yuyo, But ActionBarSherlock supports ActionBar's back to API 8 (and earlier) Jul 09 04:42:09 i'm trying to run my app in the nexus 7 (api 16), and it doesn't have the menu button, it does have the action bar though Jul 09 04:43:08 checking out actionbarsherlock Jul 09 04:45:28 any chance to get help with webview Jul 09 04:45:52 Spit out your question ;p Jul 09 04:46:23 im displaying webview in a fragment Jul 09 04:46:39 theres a login screen and after succesfully logging in im getting a response in json that i need to parse Jul 09 04:46:47 how do i save it in a string Jul 09 04:47:48 Yuyo, I mean ActionBar's aren't in API 8 Jul 09 04:48:56 Ologn: oh ok, that makes more sense :) Jul 09 04:49:33 Is the WebView only there as a login system? Jul 09 04:49:51 Yuyo: the Nexus Q doesn't have an overflow menu Jul 09 04:50:03 so there's no way to access the traditional options menu Jul 09 04:50:24 if you're running an app anything in the options menu must be an action item or you won't be able to get to it Jul 09 04:50:30 Ologn: this is in the android developer guide about the action bar though... doesn't it sound like they're saying there's a way to provide an ActionBar when available? Jul 09 04:50:34 "Note: Even if you're not developing for Android 3.0 or higher, you can build your own action bar layout for a similar effect. For an example of how you can support older versions of Android with an action bar, see the Action Bar Compatibility sample. Jul 09 04:51:50 JakeWharton: is there a way to provide menu items to the devices that support it, and the actionbar to the devices that support it? and still have the min version set to 8? Jul 09 04:52:05 Yuyo: Well as they say in Perl, TMTOWTDI . The Green Droid library is yet another option. Jul 09 04:52:09 the action bar uses the options menu Jul 09 04:52:15 also, don't use GreenDroid Jul 09 04:52:24 Yuyo, Jake knows more about this than anyone Jul 09 04:52:36 GreenDroid was amazing, it's just fallen out of maintenance Jul 09 04:52:47 Knossos: yes. later on ill implement the login with http post Jul 09 04:52:55 but for now its there for login Jul 09 04:54:21 JakeWharton: then why wouldn't the actionbar in the nexus 7 pick up my menu items? Jul 09 04:54:25 If I were you, I would definitely avoid using WebView just for login purposes. Make a web service that you can interact with. Jul 09 04:54:38 Yuyo: are you calling setShowAsAction on them? Jul 09 04:54:43 or specifying it in XML? Jul 09 04:55:16 nope Jul 09 04:55:53 Nexus 7… i thought you said Nexus Q Jul 09 04:56:14 I've been hacking on a Q today Jul 09 04:56:19 need to reorient my mind Jul 09 04:56:23 :) Jul 09 04:56:33 Managed anything fun with it Jake? Jul 09 04:56:47 Knossos: https://plus.google.com/108284392618554783657/posts/bSSyfCVvGFC Jul 09 04:57:32 Cool, so you can deploy your own apps on the Q Jul 09 04:57:34 Self-promo - http://www.reddit.com/r/androiddev/comments/w98al Jul 09 04:57:55 JakeWharton: i see theres MenuItemCompat in the support package... can i use that in the xml? Jul 09 04:58:06 For anyone interested in porting (open source or not) "OpenGL" C++ apps to Android Jul 09 04:58:14 Yuyo: you can use that if you want to declare it in code Jul 09 04:58:22 or you can just declare it in XML and not have to worry Jul 09 04:59:06 my menu is defined in an xml file.. but the action bar is not shown Jul 09 05:00:02 what's your targetSdkVersion? Jul 09 05:00:43 Very cool Jake, I love that you actually typed on it over the shell Jul 09 05:01:07 target was set to 14 Jul 09 05:01:26 was? Jul 09 05:01:40 i changed it to 16 now, but haven't tried it with that change Jul 09 05:01:43 for the action bar to show up you need to have a targetSdkVersion of 11 or higher (preferably 14+) and using a Holo theme Jul 09 05:02:21 oh wait... my theme is using NoTitleBar... that sounds wrong lol Jul 09 05:02:37 yes, the action bar is the title bar in the Holo themes Jul 09 05:07:02 Hi, surfaceCreated is not being called. Can someone look at my code? http://pastebin.com/2r0e6iDw http://pastebin.com/uDUNvMAm http://pastebin.com/w500h80c Jul 09 05:15:37 JakeWharton: i wanted to set my theme to a Holo theme in values-v11, while have a NoTitleBar as default... but apparently i cant use that theme because my min sdk version is 8 Jul 09 05:15:59 read this: http://android-developers.blogspot.com/2012/01/holo-everywhere.html Jul 09 05:18:31 hey hi , I was trying to run a project based on navigation its showing an exclamation mark on my project and in console it says error in xml Jul 09 05:18:46 but I can not see any error in any of the xml Jul 09 05:19:55 JakeWharton: yeah that's what i did, but it says that @android:style/Theme.Holo is not found Jul 09 05:20:05 what SDK are you compiling with? Jul 09 05:20:11 you need to compile with 3.0 or newer Jul 09 05:20:20 again, preferably the latest Jul 09 05:21:59 if i compile with sdk 16, will my app still run in 8? Jul 09 05:26:34 of course Jul 09 05:27:02 as long as you dont use r16 features ... you'd need to mitigate where you can and cannot use features based on the phone OS running Jul 09 05:27:09 phone OS running on Jul 09 05:27:41 cool Jul 09 05:28:24 wow, lots of deprecation warnings hehe Jul 09 05:28:47 TheTrash, ping Jul 09 05:29:02 balls jellybean roms have shit battery performance Jul 09 05:30:11 is there anything that shows which CPU architectures (ie armv6) are on what percentage of android devices today? Jul 09 05:32:52 still not showing the action bar... Jul 09 05:36:18 QubeZ: now that i changed the sdk that i'm compiling with to 16, i can't run my app in the sdk 8 emulators Jul 09 05:36:51 Yuyo: set minSdkLevel in your AndroidManifest to 8 Jul 09 05:37:24 Yuyo: like Jul 09 05:37:38 that is right below Jul 09 05:37:50 inside manifest Jul 09 05:37:53 yeah had that already.. nevermind, the launcher was crapping up Jul 09 05:38:04 Yuyo: type.. inside :) (thxt QubeZ) Jul 09 05:38:55 thanks Jul 09 05:39:11 hmm still no action bar in the nexus 7 Jul 09 05:39:14 wtf Jul 09 05:39:33 are you using actionbarsherlock? Jul 09 05:39:53 Yuyo: are you using a fullscreen theme? Jul 09 05:40:01 Yuyo: making your app full screen = no actionbar Jul 09 05:40:33 Yuyo: if on older sdk it showed the title, it should show the actionbar instead of title.. if it did not show the title, actionbar won't show Jul 09 05:41:05 Yuyo: I mean a NoTitleBar theme Jul 09 05:41:31 dammit, i was using requestWindowFeature(FEATURE_NO_TILE) in my base activity class... thanks Jul 09 05:41:48 Yuyo: I think that is the problem :) Jul 09 05:43:59 cool that worked Jul 09 05:44:48 now i need to figure out how to hide the action bar, and show it when the user touches the top of the screen... like the kindle app Jul 09 05:45:11 kindle app or kindle device? Jul 09 05:45:13 it does matter =) Jul 09 05:45:40 i hope they don't make a phone that gets popular Jul 09 05:45:56 they = who? Jul 09 05:46:05 amazon I'm guessing Jul 09 05:46:06 the app Jul 09 05:46:07 Amazon Jul 09 05:46:12 Yuyo: actionBar.hide(); ? ;-) Jul 09 05:46:18 I fucking hope apple gets their ass bitch slapped to hell over their patent trolling Jul 09 05:46:35 i wonder if ms and apple have some sort of cease fire Jul 09 05:47:02 i'm going to say no Jul 09 05:47:10 JakeWharton: re: Q input. I'd consider using MonkeyRunner to feed input Jul 09 05:47:15 yeah I dont think apple puts up with SHIT Jul 09 05:47:35 but i think ms vs apple would be like MAD Jul 09 05:47:48 but I hope that gets them in hot water... I'd REALLY like to see software patents go away Jul 09 05:47:53 its killing innovation Jul 09 05:48:13 apple can release shit, and then not improve/update, and then sue people when they build something that builds on top of it but makes 10x better Jul 09 05:48:53 mdwright: yeah, good idea. I'll have to give that a go this week. I just wanted something quick and dirty as a proof of concept :) Jul 09 05:49:09 unfortunately, 99% of the people on the street don't really care what apple does Jul 09 05:49:15 Yeah. I'm thinking of picking up a Q for the same thing :) Jul 09 05:49:23 g00s: you spelled Microsoft wrong Jul 09 05:49:37 no but they are attracting some bad publicity, federal judges are making comments like software patents are bs Jul 09 05:49:49 Posner Jul 09 05:50:01 If you don't want to go through the Jython interface, you can hook into the chimpchat libs directly -- or just speak the protocol, it's dead simple Jul 09 05:50:36 jake did you guys get your nexus 7 at the conference? Jul 09 05:50:38 or have to wait Jul 09 05:50:43 at the conference Jul 09 05:50:46 nice Jul 09 05:50:48 how you like it Jul 09 05:50:51 the q looks like it rolls well Jul 09 05:51:04 g00s: the Q is *heavy* Jul 09 05:51:06 I love it. Use it all the time when watching TV or mat work Jul 09 05:51:12 -m Jul 09 05:51:16 ince Jul 09 05:51:20 cant wait Jul 09 05:51:26 what I've been wanting Jul 09 05:51:30 10" seems retarded Jul 09 05:51:33 7" for me sounds perfect Jul 09 05:51:34 so much nicer than the 10" Jul 09 05:51:35 yeah Jul 09 05:52:05 supposedly there will be a nexus 10 just for you ron_frown Jul 09 05:52:16 I dont wan tit Jul 09 05:52:23 anyway Jul 09 05:53:32 i dont want either; but i'll get one for testing Jul 09 05:53:46 this is google's last chance into the tablet space, lets see what happens Jul 09 05:53:53 last chance? Jul 09 05:53:53 I've literally got ~8 10" tablets =) Jul 09 05:54:01 where do you make this stuff up from? Jul 09 05:54:04 and an iconia 7" Jul 09 05:54:42 and custom hardware with custom android that has both 7 and 10" screens (or whatever else I'll support) Jul 09 05:55:39 just be glad you guys dont have to fuck about with that stuff, panel timing is confusing Jul 09 05:55:55 or rather can be depending on hardware vendors datasheets Jul 09 05:56:19 its nice if you *can* get the datasheets ;) Jul 09 05:58:09 lvds/vga shoul dbe easy to get datasheets for Jul 09 05:58:17 as I understand DISI is much diff Jul 09 05:58:29 a LOT harder without a NDA and big bucks Jul 09 05:59:49 ron_frown: how was your day of hard labor ? Jul 09 05:59:52 :) Jul 09 06:00:42 got my new deck all framed up, sturdy as fuck, but got some simpson strong ties to install and soem cross braces Jul 09 06:01:09 gotta hang my stringers, and then lay my decking, and then handrails etc Jul 09 06:01:26 bought a boat today, so that labor was all yesterday =) Jul 09 06:02:08 :) Jul 09 06:02:11 sell the boat Jul 09 06:02:19 quit your job Jul 09 06:02:30 ditch your boss and your landlord Jul 09 06:02:41 then you don't have to complain any more about work ;) Jul 09 06:02:50 I dont have a landloard Jul 09 06:02:52 I own Jul 09 06:03:01 house all paid off ? Jul 09 06:03:13 I sure as FUCK would not be doing a bunch of work on my house if I was renting... lol Jul 09 06:03:18 not all paid off Jul 09 06:03:29 if I didnt live here I'd have it paid off... Jul 09 06:04:07 how close is the lake ? Jul 09 06:04:56 my house is about 20mi from 3 diff lakes Jul 09 06:05:03 ;) Jul 09 06:05:17 thats ok tho.. I woudnt want ot be super close Jul 09 06:05:31 just close enough where I could pop on over on a hot summer day and scoot around Jul 09 06:08:20 I like the Log.wtf(String tag, String msg) function =] Jul 09 06:11:53 WOW THATS FANTASTIC Jul 09 06:12:27 lol Jul 09 06:12:49 they have it as "What a Terrible Failure" :P Jul 09 06:13:11 so, I can't get a dialog box to work. no clue why. I followed the guide and everything Jul 09 06:13:26 bad ui context? Jul 09 06:13:43 eg, passing in a applicatin context vs activity context? Jul 09 06:13:44 not too sure Jul 09 06:13:52 whats the context you pass in Jul 09 06:14:00 might be better off making it a dialogfragment Jul 09 06:14:05 and using support lib Jul 09 06:14:13 if you can get a fragment manager, its the right context =) Jul 09 06:15:10 damn it Jul 09 06:15:18 the changes to this IOC container is making stuff confusing Jul 09 06:15:41 sadly, I am using 2.3.4 (api level 10) and dialogfragment is as of api level 11 Jul 09 06:15:50 2.3.3* Jul 09 06:15:54 arstechnica just gave the n7 rave review Jul 09 06:16:41 agargiulo I beleive the support lib back ports that functionality to what... 1.0 Jul 09 06:16:41 yeah Jul 09 06:16:50 1.6 Jul 09 06:17:12 was trying to avoid that but I guess now. Jul 09 06:17:14 thanks Jul 09 06:17:20 it's vastly superior Jul 09 06:17:27 plus you get a bazillion other goodies Jul 09 06:17:28 I hope so =] Jul 09 06:18:05 Hi, surface created is not being called? Could someone look at my code? http://pastebin.com/2r0e6iDw http://pastebin.com/uDUNvMAm http://pastebin.com/w500h80c I got disconnected earlier. Jul 09 06:18:11 is it a lot to do to switch to the dialog fragment thing? Jul 09 06:18:40 1 dialog, no Jul 09 06:18:46 crapload of dialogs? maybe =) Jul 09 06:18:57 ron_frown: it's only one dialog Jul 09 06:18:58 you can reuse the layouts Jul 09 06:19:08 you just override a dialogfragments onCreate Jul 09 06:19:22 then instantiate and show with a reference to a dialogfragment Jul 09 06:19:30 how? Jul 09 06:19:33 which means your app has to be a FragmentActivity Jul 09 06:19:38 it's expensive to buy detergent from amazon :-/ Jul 09 06:19:41 agargiulo google documentation has good source sample Jul 09 06:19:46 lazy jake may actually have to go buy it in a store Jul 09 06:19:54 JakeWharton: lol Jul 09 06:19:56 ron_frown: thanks Jul 09 06:20:12 anyway, I'll look at this tomorrow. I should get to bed soon, work in <10 hours. Jul 09 06:20:17 night all Jul 09 06:21:17 i lied, was being too specific. it's really cheap! Jul 09 06:22:43 HAHAHAHAAH Jul 09 06:22:47 I work in < 10hr Jul 09 06:22:47 anyone? Jul 09 06:22:59 frequently I crash like 5hr before work Jul 09 06:24:38 ron_frown: this is for you http://www.forbes.com/sites/melaniehaiken/2012/07/05/how-stress-and-sleep-loss-are-shortening-your-life/ Jul 09 06:25:54 I got no stress anymore Jul 09 06:26:00 and my sleep loss is that I just cant sleep Jul 09 06:26:10 I'll finally get tired and crash at like 2am Jul 09 06:26:16 then 550 like clock work I wake up Jul 09 06:26:50 I've heard there are people that just do that Jul 09 06:26:52 not a common thing Jul 09 06:26:54 Question in a expandableList When i scroll i get in the logcat a Keyevent and that is Slowing down the scroll how can i solve that Jul 09 06:27:32 i'll sleep when i'm dead Jul 09 06:27:39 besides... I heard some statement that said that if you were born after a certain year, the avg lifespans are likely to be > 100yr Jul 09 06:27:40 or rich Jul 09 06:27:53 I can spare a bit of time +) Jul 09 06:28:05 JakeWharton - you are probably a dreamer like myself Jul 09 06:28:24 technology, software, etc is just running through my head all the time Jul 09 06:28:52 For sure, I've had the last 5 days off of work and I think I've gotten about two weeks worth of work done in that timespan. Jul 09 06:29:17 haha http://i.imgur.com/XUuWV.gif Jul 09 06:29:20 hopefully not for work =) Jul 09 06:29:31 eh, most of it was for work Jul 09 06:29:37 i'll just work on all my open source projects at work this week Jul 09 06:29:45 it balances out Jul 09 06:30:42 nice Jul 09 06:30:55 I didnt write nearly as much code this week as I would have liked Jul 09 06:31:02 but I was working on my house projects Jul 09 06:31:13 got my mind off work which was good Jul 09 06:31:48 me either I can't get this code to work. surfaceCreated not called. http://pastebin.com/2r0e6iDw http://pastebin.com/uDUNvMAm http://pastebin.com/w500h80c Jul 09 06:32:23 the lack of any intelligence in the default android build system annoys me to no end Jul 09 06:32:28 and I used the term build system loosely Jul 09 06:32:52 most specifically in the realm of dependency management Jul 09 06:33:04 I seem to remember a project you were looking into Jul 09 06:33:20 this is our work stuff which is stuck on ant Jul 09 06:33:32 same here Jul 09 06:33:47 god one of the most annoying things is library project referencing same lib as the consumer Jul 09 06:33:52 "here ant, let me tell you how to do your job" -me every day Jul 09 06:34:02 and ant+whatchamacallit app just grenades Jul 09 06:34:06 ALREADY ENCOUNTERED THIS CLASS Jul 09 06:34:06 ron_frown: making stuff with your hands is therapeutic i think. i loved to do stuff in our metal working shop; good stress reliever Jul 09 06:34:09 so fucking ignore it =) Jul 09 06:34:46 you know what I find thereaputic? Jul 09 06:34:48 c++ Jul 09 06:34:50 haha Jul 09 06:34:53 omg Jul 09 06:35:02 seriously, our dependencies are acyclic so just because two things point to a single common library project doesn't mean you should include them twice Jul 09 06:35:08 its very elegant in a very dirty way Jul 09 06:35:08 iOS + static libraries = duplicate symbols Jul 09 06:35:09 I dont know Jul 09 06:35:18 thats how I see it in my head Jul 09 06:36:24 jake isnt that more of a bug with that obfuscator? Jul 09 06:36:29 proguard? Jul 09 06:36:45 we don't use proguard Jul 09 06:36:47 d Jul 09 06:36:48  Jul 09 06:38:42 balls Jul 09 06:39:10 I agree you shouldnt JUST use IOC for service location, but I'll be damned if I understand why its being deprecated for that Jul 09 06:39:46 what do you mean service location? Jul 09 06:40:09 IUserRegistrationService service = Kernel.Get() Jul 09 06:40:27 then in ioc container you map interface to default implementation to use Jul 09 06:40:45 instead you now are supposed to do Jul 09 06:41:05 [Inject] \r\n public IUserRegistrationService Users {get;set;} Jul 09 06:41:34 and then kernel.Inject(someclass) Jul 09 06:42:01 you have to explicitly inject? Jul 09 06:43:02 well this class is a real deep abstract implementaton that gets consumed by .net framework, so I dont have the means to get the instance from the framework Jul 09 06:43:10 I basically tell framework this is the implementation of the provider Jul 09 06:43:22 If I wanted to create a nexus 7 android emulator, would I just input the resolution and api? Jul 09 06:43:30 joholz: and density Jul 09 06:43:34 normally you'd do something like have base class have reference to kernel, and then tell it props to inject Jul 09 06:43:41 then you can automatically populate instances Jul 09 06:43:49 actually works quite beautifully +) Jul 09 06:43:56 that still sounds a lot more tedious than Java dependency injection Jul 09 06:43:56 JakeWharton, Thanks Jul 09 06:44:31 well if I could use it as a service locator, I'd just call a static instance of my kernel and get the implementation Jul 09 06:44:44 and if it was something not lowlevel, i'd just inject it and be done with it Jul 09 07:00:28 damn it Jul 09 07:00:32 I hate apps that tell you there are updates Jul 09 07:00:36 but then dont auto update Jul 09 07:00:41 you gotta go download it manually from their site Jul 09 07:03:05 hello, is the webview same as the one in android chrome? Jul 09 07:04:34 probably Jul 09 07:04:44 its webkit, which is what chrome is Jul 09 07:05:11 chrome runs v8 javascript engine, and depending on device and os version, the webview is potentially v8 Jul 09 07:06:23 i thought webview was the same as chrome on jb; but chrome gets updated independently Jul 09 07:09:32 yep Jul 09 07:09:46 I think chrome is MAINLY the addative stuff Jul 09 07:09:55 tabs/syncing etc etc etc Jul 09 07:10:06 on iOS chrome is UiWebView :D Jul 09 07:52:01 hi Jul 09 07:53:56 does it exist an event that we can trigger when a listView start/end drawing ? Jul 09 07:55:37 ? Jul 09 07:55:45 firstdeveloper not to make assumptions Jul 09 07:55:53 but I would guess if you are trying to do that, you are doing something wrong Jul 09 07:56:18 ha ok Jul 09 07:56:59 i wanted to display a loader while the listview was not yet displayed Jul 09 07:57:13 do you know the best way to do that ? plz Jul 09 07:57:27 like a progress bar? Jul 09 07:57:40 yeah :) Jul 09 07:57:44 firstdeveloper: have a look at the c-geo source code, they are doing it in an elegant way Jul 09 07:58:29 Ge0rG: ok Jul 09 07:58:34 yeah honestly, you do that while you load data Jul 09 07:58:44 chances are you virtualize the loading of the data into the list Jul 09 07:58:51 eg, the entire set of views doesnt load at the same time Jul 09 07:59:04 otherwise that would use a monster amount of memory Jul 09 08:00:14 typically you have some type of cursor based loader, and it notifies you when it's got data Jul 09 08:00:31 ron_frown: yes, i know but what do mean by "virtualize the loading of the data into the list" ? Jul 09 08:01:10 eg, the list says give me views for these indexes Jul 09 08:01:13 as you scroll up and down Jul 09 08:01:24 eg all the data is not RENDERED at the same time Jul 09 08:01:40 so you start progress before you load the data, increement progress as data loads if you have access to that Jul 09 08:01:42 yes Jul 09 08:02:42 ron_frown: Ha ok I get it :) I have to do it in the "getView()" of my Adapter right? Jul 09 08:02:58 no Jul 09 08:03:03 :O Jul 09 08:03:06 say you download a list of data, or load it from the database Jul 09 08:03:29 you'd say set progress to 0, start downloading, as items come in, increment, at 100% hid Jul 09 08:03:30 load it from the database Jul 09 08:14:22 Hi everyone Jul 09 08:14:31 I'm having problems in read shared_prefs file Jul 09 08:14:38 from another app Jul 09 08:14:43 this is the error Jul 09 08:15:02 W/SharedPreferencesImpl( 1355): Attempt to read preferences file /data/data/com.test.test1/shared_prefs/sisSharedPrefs.xml without permission Jul 09 08:15:19 the file is created with WORLD_WRITABLE flags Jul 09 08:15:32 so it should be readable and writeable from other apps Jul 09 08:17:17 ron_frown: ok perhaps I describe my problem badly. When I run my activity, the ListView set its adapter. But on the emulator, the screen is dark, pedding the setting of the adapter, and at the end the listView displays its content. I want to show a loader (circular progress bar) while this pending time. thanks Jul 09 08:17:26 Whats the best way to store a ip adress in android app and when the app close or open again it dont change to the old ip Jul 09 08:18:24 hi everyone Jul 09 08:18:28 When I run my activity, the ListView set its adapter. But on the emulator, the screen is dark, pedding the setting of the adapter, and at the end the listView displays its content. I want to show a loader (circular progress bar) while this pending time. thanks Jul 09 08:44:14 i have this .so library that I'd like to decompile to figure out what it does Jul 09 08:44:29 i'm using readElf to look at the symbols Jul 09 08:44:55 two issues Jul 09 08:45:12 1) seems the symbol names are long and it's not printing the entire name Jul 09 08:45:36 2) is it possible to actually decompile it? I suspect I'll just end up with raw ARM assembly Jul 09 08:46:02 2) probably your suspicion is right Jul 09 08:46:51 1) objdump -T Jul 09 08:52:30 I have got 2 different fonts: One fine for smaller/ mobile phone/ displays and one more robust and better readable for tablets Jul 09 08:52:42 how can I distinguish in code which one I should use? Jul 09 09:08:37 hey, I am trying to set a layout where I have a header view, footer view and a ScrollView with more views in the middle. I tried doing it with a RelativeLayout and aligning the footer to parentBottom but it hides the content of the ScrollView. How do I do it properly? Thanks Jul 09 09:14:09 is there a way to check if there is a new package or update Jul 09 09:25:08 is there any way to bind to a local service immediately? i tried doing bindService and then waiting but it seems doing a wait on the main thread just doesn't work at all Jul 09 09:25:37 stork: unfortunately, no. Jul 09 09:25:55 lame Jul 09 09:27:01 hm, I'm reading the doc at http://developer.android.com/reference/android/media/MediaPlayer.html and I'm trying to work out how to show the current state of the buffer that the media player is using. Any tips? Jul 09 09:27:13 oh how horrible Jul 09 09:27:59 I just cannot see how to incorporate OnBufferingUpdateListener.onBufferingUpdate() Jul 09 09:30:55 so instead i need to use some sort of fucking messaging system Jul 09 09:30:58 that's great Jul 09 09:37:30 spobat: http://www.barebonescoder.com/2010/05/android-development-using-custom-fonts/ Jul 09 09:37:58 thanks! :) Jul 09 09:38:26 spobat: np you'll still have to determine what screen size it is Jul 09 09:38:37 yep i found sth :S Jul 09 09:38:38 :) Jul 09 09:39:01 yeh, looking at the commonsware page "1600+ pages and growing" Jul 09 09:39:17 when i subscribed to these, it was around 100 words per page Jul 09 09:39:42 usually less :) Jul 09 10:14:14 does anyone know what could be the reason android.view.Surface.isValid() returns true and _inmediately_ android.view.SurfaceHolder.lockCanvas() returns null ? Jul 09 10:16:36 LinearLayout | GrepCode http://goo.gl/X1dpg <-- What does the "statement" (not sure if it is one) at line 1245--1258 do? what parts of the code are directly affected? Jul 09 10:17:01 hi all Jul 09 10:17:12 what density have galaxy s 2 ? Jul 09 10:17:18 hdpi or mdpi ? Jul 09 10:22:06 ech0s7: dpi = ~217, so hdpi Jul 09 10:23:07 joel135, where have you get this value ? Jul 09 10:23:31 http://members.ping.de/~sven/dpi.html input 480, 800, 4.3 Jul 09 10:24:44 wikipedia has also great comparison of android devices Jul 09 10:24:46 http://en.wikipedia.org/wiki/Comparison_of_Android_devices Jul 09 10:26:20 thanks Jul 09 10:26:30 how bad of an idea is it to optmize for ics? Jul 09 10:26:32 and up Jul 09 10:26:55 funktronic: you mean minSdk = ics ? Jul 09 10:27:53 g00s: no but using something like a htc one x as a base Jul 09 10:28:09 as in "it should work well on this device" and should work on others but it's okay if it's a little slow etc.. Jul 09 10:28:18 lol Jul 09 10:28:28 using the htc one x as the standard? Jul 09 10:28:52 heh. i'm using an original droid-1 :) Jul 09 10:29:14 its pretty slow, and i think there is something to be said for developing on crappy stuff Jul 09 10:29:46 i have a htc one x and the 2nd google phone whatever it's called Jul 09 10:30:00 n1 ? Jul 09 10:30:19 has anyone looked into my question? Jul 09 10:30:26 g00s: the one after that Jul 09 10:30:41 nexus 2w Jul 09 10:30:43 err es Jul 09 10:30:46 funktronic: depends on what you're doing Jul 09 10:30:46 errr .. nexus s Jul 09 10:31:07 nothing wrong with working on One X Jul 09 10:31:20 but your app should work smoothly and look nice on Nexus S at least Jul 09 10:31:25 Nexus One preferrably Jul 09 10:31:37 that's bare minimum if you want it to be widely distributed Jul 09 10:31:49 yeah it's fast.. jus tnowhere near as pretty as it is on the htc Jul 09 10:32:25 what i was hoping for was "donate $100 to the red cross and then you can use the nexus prime as your baseline" Jul 09 10:32:35 hmm, just to display a preview of the camera i need to subclass a SurfaceView and implement the SurfaceHolder.Callback interface? Jul 09 10:33:22 funktronic: those are all huge shovels of phones Jul 09 10:33:29 not everyone wants to carry those huge screens with them Jul 09 10:33:36 if you're not going to consider that Jul 09 10:33:43 Mavrik: i lol'd hard enough at that that i had stuff come out of my nose Jul 09 10:33:59 you'll get alot of flak on Market because your app won't work nicely on smaller screens ;) Jul 09 10:34:09 yeah we have a very limited beta now Jul 09 10:34:17 everyone is using 2.3 Jul 09 10:34:28 unless you're doing something very CPU intensive the performance should be fine Jul 09 10:34:32 i'm tempted to just buy them all new phones Jul 09 10:34:40 just check that your app looks OK on those cheapo HVGA screened phones :) Jul 09 10:34:51 that's the thing. it parses a ton of JSON and has a sqlite backend Jul 09 10:35:07 all written by a contractor. i've rewritten a huge chunk of it but i htink i may have to redo the db part next Jul 09 10:35:28 i had an obsession for about 3 days about getting the scrolling to be as it is on the iphone Jul 09 10:36:38 i know panels/gui stuff is different on android than java/swing, but are the graphics/paint classes similar/the same? Jul 09 10:38:33 devtekbeta: not really Jul 09 10:38:46 devtekbeta: pretty much whole GUI framework is very different Jul 09 10:39:20 ah i see. thanks for the info Jul 09 10:43:24 hi, I'm trying to display some text followed by an image. I can use a textview and an imageview in a relative layout which works fine as long as there is only a single line of text. If there is more than one line of text, the imageview gets squashed out off the right side of the screen. Is there a way to have the image follow the wrapping of the text and display itself on the next line as well? Jul 09 10:57:55 spuz: not entirely sure what you're aiming for, but seems using layout_weight on the textview (in a linearlayout) would do it. Jul 09 10:59:29 HDroid, do you mean give the textlayout a weight of say 3/4 and the image 1/4? Jul 09 11:00:03 More like textview 1 and imageview none so the textview pushes it to the right. Jul 09 11:00:04 I will have to see what effect that gives Jul 09 11:00:07 Does anyone know why the original "Gallery" app is so fast? I tried many methods but the result is much more laggy than the original "Gallery" app. Jul 09 11:00:22 I'm assuming right is where you want the image.. Jul 09 11:00:38 HDroid, I want the image to come right after the text Jul 09 11:00:50 so not on the right side of the screen, but just to the right of the text Jul 09 11:00:59 Then set the imageview's weight to 1, I guess. Jul 09 11:01:12 ok, I'll have to have a play with that later Jul 09 11:01:26 Not sure what that will do to the image inside, though.. might need to set that to align left again. Jul 09 11:01:47 But that's possible. Jul 09 11:02:31 If that leads to problems, you can also use an empty view with layout_weight="1" right of the imageview, it'll always push the imageview as far to the left as is possible then. Jul 09 11:08:37 LemonadeCarl: it recycles views much like listview does. Jul 09 11:08:46 The source is available, you can study it. Jul 09 11:13:32 gallery app might use renderscript Jul 09 11:13:34 i think im wrong, but its possible Jul 09 11:13:37 its open source, why not look? and what version of thegallery app? Jul 09 11:22:54 what did i do when eclipse complains about errors that do not exist? Jul 09 11:23:01 i tried restarting eclipse with no luck Jul 09 11:23:53 clean + rebuild Jul 09 11:24:52 now that you are talking about Eclipse... has anyone tried version 4.2 ? is it any better ? :) Jul 09 11:25:17 i decided to use 3.8, but 4.2 was demoed at i/o Jul 09 11:26:45 I see, I just ask because version 4.2 has entered testing in Arch Linux, and it's going to replace 3.7.2 soon :S Jul 09 11:28:12 it's usable. not great, but usable. Jul 09 11:28:44 thilden: and the need for clean project is still there ? Jul 09 11:29:38 xroberx: can't remember; i've just tested it for about 30 mins and decided to go back to 3.7 for now Jul 09 11:29:47 ok Jul 09 11:36:28 hi. I have ALL the SDK API's from API 3 till API 16 downloaded on Linux. how can I save time and copy the common things to Windows? Jul 09 11:41:41 hi. I have ALL the SDK API's from API 3 till API 16 downloaded on Linux. how can I save time and copy the common things to Windows? Jul 09 11:41:56 hmm, is it possible to share the same debug key on several computers? Jul 09 11:43:01 i mean, it's simple enough to copy it over.. but will it have any negative consequences Jul 09 11:43:04 ? Jul 09 11:43:53 Shouldn't cause any problems, apart from the headache of keeping it in sync. Jul 09 11:46:27 HDroid: can you answer my question? Jul 09 11:46:47 superlinux: no, sorry, being a sysadmin is way past me ;) Jul 09 11:47:15 Not sure if it'll actually save time, unless you're on dialup. Jul 09 11:47:16 tapas: no, some people commit it to version control Jul 09 11:47:22 so everyone in the company can use the same debug key Jul 09 11:48:07 HDroid: the SDK manager does not resume the downloads. that's why Jul 09 11:50:05 superlinux: copy and try? Jul 09 11:51:32 Utopiah: i think there is more to it. for example registering/recording that the downloads are installed Jul 09 11:52:38 superlinux: sorry I dont know that's why rather than thinking too much or expecting answer I would just copy the folder and try Jul 09 11:53:01 ok. Jul 09 11:53:03 understood Jul 09 11:54:48 so this nice shiny 'create icon set' dialog in eclipse... you can't set a transparent background for the icons? *really* ? Jul 09 11:55:03 stork: are you sure? Jul 09 11:55:11 you used tobe able to when it was webbased Jul 09 11:55:12 oh wait, yes you can - you just set 'shape' to none Jul 09 11:55:15 my bad Jul 09 12:14:18 does anyone know something about this: http://stackoverflow.com/questions/9792446/android-java-lang-illegalargumentexception ??? Jul 09 12:14:29 I'm getting crazy, and it only happend in Android 4 Jul 09 12:15:58 if you see one of the last comments it says: sorry, I'm stumped on that one. If you google dequeueBuffer failed (No such device) you'll see that it's a pretty common "not a fucking clue what's going on issue". Jul 09 12:16:38 I'd dig it up in the source at this stage. Jul 09 12:16:48 http://pastesite.com/39435 Jul 09 12:16:48 meh Jul 09 12:17:36 so i need a rooted device to input key events remotely Jul 09 12:17:38 ? Jul 09 12:18:21 Evidently... heh. Doh! Jul 09 12:20:28 is reame here? Jul 09 12:20:36 readme Jul 09 12:20:52 Who's asking? Stevie Wonder? Jul 09 12:21:04 im rdping so cant see list easily Jul 09 12:21:13 rdping on my phone Jul 09 12:21:18 Well I don't see him Jul 09 12:21:25 ok ty :) Jul 09 12:21:32 and lol :) Jul 09 12:22:41 xroberx> which device is this ? Jul 09 12:24:16 Chainfire: SE Xperia NEO V running Android 4.0.4 Jul 09 12:24:32 official ? Jul 09 12:24:37 Chainfire: yes Jul 09 12:24:51 Chainfire: OTA update Jul 09 12:24:57 interesting Jul 09 12:25:02 have you tried on a different device ? Jul 09 12:25:18 because dequeueBuffer asks the GPU for a buffer to draw into for later swapping, if I'm not mistaken Jul 09 12:25:24 it's not something you should run in to Jul 09 12:25:31 Chainfire: I don't have any other devices running Android 4 unfortunately Jul 09 12:25:56 oh Jul 09 12:26:01 you are running this in a loop ? Jul 09 12:26:26 make sure you do not exceed 60 f public void upClick(View target) { Jul 09 12:26:26 lvImages.smoothScrollByOffset(-3); Jul 09 12:26:26 } Jul 09 12:26:31 woops Jul 09 12:26:49 Chainfire: yes, a separate thread that does the update and draw for a game Jul 09 12:26:51 try framelimiting... ie... Thread.sleep(20); Jul 09 12:27:19 Chainfire: also, the error does not happen in the emulator running Android 4 Jul 09 12:27:30 thats because the emulator doesn't run on a real gpu Jul 09 12:27:40 and if it does, its a moar spectular one Jul 09 12:27:57 humor me, try the Thread.sleep thing at the end of the loop, see if that resolves the error Jul 09 12:28:09 ok. let me see Jul 09 12:32:36 Chainfire: no way, I still get the error (\n = new line): TAG -> SurfaceTextureClient , TEXT -> dequeueBuffer failed (No such device) \n TAG -> SurfaceHolder , TEXT -> Exception locking surface \n TAG -> SurfaceHolder , TEXT -> java.lang.IllegalArgumentException at android.view.Surface.lockCanvasNative(Native method) Jul 09 12:33:20 well thats too bad Jul 09 12:33:49 either way, as I understand it this has something to do with your GPU running out of buffers to draw to... nothing more I can say to help :/ Jul 09 12:35:30 Chainfire: forgot to say this only happens onPause(), where I wait for the game thread to stop and the onResume() I create a new thread Jul 09 12:37:22 Chainfire: also I'm pretty sure the code is fine, because I got it from a book written this year Jul 09 12:37:41 Beggining Android 4 games developmet Jul 09 12:38:57 so err Jul 09 12:39:14 onPause() happens, and only then do you receive the error when that code is run ? Jul 09 12:41:23 yes, also getHolder().getSurface().isValid() returns true before calling getHolder().lockSurface(), so it _should_ work Jul 09 12:41:47 xroberx: "The code is fine, I found it on some random location but it's totally ok" is usually a bad excuse. Jul 09 12:41:53 I have books with code that doesn't compile. Jul 09 12:42:04 and random tutorials on the internet aren't guaranteed to cause anything but frustration. Jul 09 12:43:13 xroberx> why are you still rendering if onPause() has been called ? :) and if it only happens at such a time while you shouldn't be rendering anyways, why not do the ultimate bandaid and try/catch the error... you won't need the render anyway, will you ? :) Jul 09 12:43:36 lov: I know, but I read all the explanations of the code and they are ok. Also the book is written by the author of libgdx, a well-known library used by the community Jul 09 12:44:26 xroberx: you wouldn't believe the amount of typos that make their way into print! ;) Jul 09 12:44:30 Chainfire: no no, I don't render when onPause() is called, I actually stop the thread onPause() so it stops rendering, the problem is triggered onResume() Jul 09 12:44:56 ah that makes a little bit more sense ;) Jul 09 12:45:07 code1, lov: ok, but then how come it works fine on any other device I have tried it including all the emulator versions ? ;) Jul 09 12:46:00 also, please notice that the bug is triggered in a native method (lockCanvasNative()) Jul 09 12:46:31 xroberx: no idea, my comment was in response to " I'm pretty sure the code is fine, because I got it from a book". ;) Jul 09 12:46:59 xroberx: manufacturer "optimizations" and such make their way into things. Jul 09 12:47:18 xroberx: The best thing I can suggest, honestly, is going to source.android.com, pulling ICS, and grepping for that string in the frameworks code Jul 09 12:47:37 I don't have enough experience w/ graphics to tell you why you're getting that error. Jul 09 12:47:56 alternately, ask the developer of libgdx; he's found more than a few issues with Android ;) Jul 09 12:48:23 wow, it works now, thanks to Chainfire, he told me to put a Thread.sleep() at the _end_ of the loop, but I put it at the start (before lockCanvas()) and now it works fine :) !!! Jul 09 12:48:54 Chainfire: where did you get that idea from ? Jul 09 12:48:54 actually that was only a test ;) Jul 09 12:49:03 you should test if its only needed the first call after onResume Jul 09 12:49:36 let me see Jul 09 12:49:37 as I said, dequeueBuffer gets a GPU buffer Jul 09 12:49:44 those are very limited resources Jul 09 12:49:50 some GPUs have only as many as two Jul 09 12:50:04 and while one is being swapped to the screen, the other can be used Jul 09 12:50:37 so if something trips up and requests them too often, a Thread.sleep((1 second / X fps) in ms) could fix the issue Jul 09 12:50:52 but its still not something you should be running into. that's also why I think its just lucky that worked Jul 09 12:51:17 this should not be stuff a non-framework developer needs to worry about Jul 09 12:55:02 Chainfire: you are right, the delay is only needed once, so I just delay the start of the thread in a new Handler().postDelayed() and now everything is fine :) Jul 09 12:55:44 when this whole thing happens, what activity is being switched to ? Jul 09 12:55:53 your own second activity, or the home screen ? Jul 09 12:56:00 or.. what causes the onPause/Resume ? Jul 09 12:56:08 the home button Jul 09 12:56:11 to go back to the home screen Jul 09 12:56:22 which is SE proprietary ? Jul 09 12:56:42 Chainfire: SE = Sony Ericsson Jul 09 12:57:02 I know that Jul 09 12:57:12 I mean is the homescreen something built by SE, or stock Android ? Jul 09 12:57:14 ahhh Jul 09 12:57:23 the homescreen built by SE Jul 09 12:57:45 for extra credit... try installing a different home screen from market. see if the problem still happens at all. Jul 09 12:58:25 Chainfire: you think the home screen built by SE might be resource intensive in terms of GPU usage ? Jul 09 12:59:07 possibly. it would be good to know if its the SE homescreen. Because the OEM's skin/launcher/etc stuff often uses much lower level calls and manipulations than us mere mortal 3rd party developers can reach Jul 09 12:59:33 if a different launcher does not present you with the issue... than SE's homescreen is bugged. Jul 09 12:59:40 quite likely Jul 09 12:59:42 ok, I'll try to install a different launcher when I have the time Jul 09 12:59:58 yeah its not something you need to do, just for funsies/interest Jul 09 13:00:05 anyways, glad you got your problem solved :) Jul 09 13:00:26 Chainfire: I'm very happy, you saved my day, thank you :) Jul 09 13:00:49 you should update the stackoverflow Q with the answer though Jul 09 13:01:01 ok Jul 09 13:03:29 anybody using samsung galaxy note for developing apps? Jul 09 13:04:32 wp-developer: note enabled apps? or just apps in general Jul 09 13:04:52 any applications android based Jul 09 13:05:05 wp-developer: are you just curious or do you have some note specific question? Jul 09 13:05:13 are you note-curious? Jul 09 13:05:15 i want to buy a android based phone for developing apps which one shd i buy Jul 09 13:05:20 any of them. Jul 09 13:05:26 any android phone is suitable for developing apps. Jul 09 13:05:44 comedy option: just use the emulator. Jul 09 13:05:58 lov is galaxy note good Jul 09 13:06:03 i'd tell you galaxy nexus, but if you're in the US, you can't buy one :P Jul 09 13:06:04 yes it's good Jul 09 13:06:12 it's not likely to get updated to jellybean but its good Jul 09 13:06:18 you can buy one in the u Jul 09 13:06:18 s Jul 09 13:06:21 lov or is it complicated Jul 09 13:06:48 is note updated to jelly bean Jul 09 13:07:45 another question i get this error in debug when application hangs E/MediaPlayer(1074): error (-19, 0) ,not on emulator Jul 09 13:08:23 wp-developer: I don't really care what device you get and neither does anyone else. Just get whatever phone you like. Jul 09 13:08:45 wp-developer: regarding your error, that's basically 0 information to go on. Try asking on stackoverflow or something./ Jul 09 13:08:54 Hello, I have custom view in action bar and it has EditText but I do not receive key events it some reason Jul 09 13:09:20 ls Jul 09 13:09:22 erps Jul 09 13:11:44 OnKeyListener works so no problem with it and also findViewById works also. but some reason I won't receive key events from EditText that is in action bar Jul 09 13:11:53 hello all Jul 09 13:12:48 i have one question. Is there an easy possibility to "deodex" a file directly on the device ?? So i have a .apk and the corresponding .odex file and I want to creat a "normal" .apk (with classes.dex file) out of it Jul 09 13:14:48 Pinas: probably, but that's not really in the scope of this channel. Jul 09 13:14:58 go to #android-root or something Jul 09 13:15:19 oha thx I did not knew that there is such a chan Jul 09 13:29:49 Hello guys, does anyone has a link for images to show navigation dots? I need like 4 dots images (with transparent background) for navigating pages, but I'm not an expert in Gimp or Photoshop to build them. Jul 09 13:31:47 Number5: viewpagerindicator.com Jul 09 13:31:59 bourke, thnx my friend :) Jul 09 13:32:07 np Jul 09 13:32:55 Wow, this is cool, thank you very much! Jul 09 13:33:32 i cant believe that's a site Jul 09 13:33:51 why wouldnt it be Jul 09 13:33:58 because its four dots Jul 09 13:33:59 jakewarton is the fucking man Jul 09 13:34:05 oh wow that's JakeWharton's Jul 09 13:34:06 lol Jul 09 13:34:12 you typed his name? Jul 09 13:34:14 spelled it wrong Jul 09 13:34:18 when you could have down j Jul 09 13:34:23 or ja Jul 09 13:34:23 j0hnsm1th: Jul 09 13:34:26 jab416171|Cloud: Jul 09 13:34:27 jak Jul 09 13:35:54 oh android... Jul 09 13:36:00 i "sent" a text when i was out of service Jul 09 13:36:05 siad it would send when a connection was available Jul 09 13:36:10 ive had a connection for about 30 minutes now Jul 09 13:36:16 has it sent? of course not Jul 09 13:40:26 cn i make android application on tablet also Jul 09 13:40:31 canadiancow|work, first world problems :p Jul 09 13:40:39 i mean basically need for testing a device Jul 09 13:41:00 currently using emulator Jul 09 13:41:06 yes, you can make an android app on any android device Jul 09 13:41:08 wp-developer, you can develop Android applications on anything that runs Android.. o.O Jul 09 13:41:29 wp-developer: i'll give you a good on an a Motorola Droid Jul 09 13:41:43 $100, gently used, no scratches, great battery condition Jul 09 13:42:03 Lol @ gently used Jul 09 13:42:09 Also wipe clean Jul 09 13:42:13 i used it like 3 times Jul 09 13:42:29 oh was that the one you americans got shafted with at i/o 2010? Jul 09 13:42:31 it was a freebie, i made a few phone calls on it during a fre emonth of service Jul 09 13:42:39 while all the cool people got a nexus one Jul 09 13:42:40 canadiancow|work: we also got an Evo that year Jul 09 13:42:47 well so did hte non-americans Jul 09 13:42:50 that was even more annoying Jul 09 13:43:02 the droid was a better evice than the evo Jul 09 13:43:10 I recently got the Galaxy SIII Jul 09 13:43:12 do i need to enable something for lint to show me which resources are unused? Jul 09 13:43:12 not if you dont have verizon or sprint... Jul 09 13:43:19 tapas: lol Jul 09 13:43:22 And I had a play about with the new Intel phone at the London Hackathon event Jul 09 13:43:35 canadiancow|work: what? Jul 09 13:43:43 was that the one at bletchley Jul 09 13:43:44 lint and unused resources hasnt worked too well for me Jul 09 13:43:45 tapas: http://code.google.com/p/android-unused-resources/ Jul 09 13:43:48 i wrote that a long time ago Jul 09 13:43:55 it needs some updating, but it's still good for most projects Jul 09 13:44:08 canadiancow|work: ah nice.. Jul 09 13:44:13 tapas: he is lieing Jul 09 13:44:20 i wrote that a long time ago and he forked it Jul 09 13:44:37 oh wel ;D Jul 09 13:44:44 jackass Jul 09 13:44:44 you guys box that out amongst yourselfes :D Jul 09 13:45:17 tapas: did you see that picture of the Nexus 7 on Engadget like an hour before they anounced it? Jul 09 13:45:38 Sheesh canadiancow|work, taking credit for mikedg's work Jul 09 13:45:43 * canadiancow|work quits Jul 09 13:45:51 how come it had a black back? but the ones at I/O all had white? Jul 09 13:45:56 i wish someone could explain that to me Jul 09 13:46:20 mikedg, sometimes things come in different colours \o/ Jul 09 13:46:43 well, did the original license mandate giving credit to the original author Jul 09 13:46:48 >] Jul 09 13:46:50 ? Jul 09 13:46:56 if not, then there's no need to complain :D Jul 09 13:47:04 tapas: im kidding, canadian cow wrote the whole thing Jul 09 13:47:34 what do 'breadcrumbs' look like on android? is there a visual indicator? Jul 09 13:47:42 ok, cool.. Jul 09 13:53:02 mikedg, Jul 09 13:53:27 j0hn Jul 09 13:54:15 lol still not using the tab?! Jul 09 13:54:20 mikedg even at I/O not *all* of them had a white back Jul 09 13:55:28 what!@#$% Jul 09 13:55:33 of the ones given away? Jul 09 13:55:57 I'm not entirely sure, I've seen people walking around with black N7's, but of course they might have been Google personnel Jul 09 14:01:55 anyone ever used smali/baksmali directly from java code ? Jul 09 14:02:57 i little birdy told me the ones given out were all white Jul 09 14:03:16 why mikedg... did you want a black one? Jul 09 14:03:46 Hi, i want to program a 2d game which is better? Canvas, android engine or opengl Jul 09 14:03:55 Thanks Jul 09 14:03:58 i think most engines use opengl Jul 09 14:04:11 so the difference is wehther you want to deal with opengl directly (you dont), or through an abstraction layer (you do) Jul 09 14:04:48 What is an abstraction layer? Jul 09 14:05:17 sigh Jul 09 14:05:18 nevermind Jul 09 14:05:33 Sigh? Jul 09 14:05:54 But then xanvas or androud engine! Jul 09 14:05:58 ? Jul 09 14:07:33 Angri birds is programmed which what? Jul 09 14:08:30 i want to say "do i look like i work for rovio", but im afraid of the responses i'll get Jul 09 14:08:48 mmh, I'm unable to connect with adb to my phone after update to ics :E Jul 09 14:09:10 a new feature? ;) Jul 09 14:10:24 did you turn on usb debugging? Jul 09 14:11:21 Hi All Jul 09 14:12:19 A question if i may? Is the Bluetooth 4.0 API closed source? Just i had a weird response from a supplier of Bluetooth Heart Rate monitors Jul 09 14:12:55 is Bluetooth 4 a software api thing or hardware based? Jul 09 14:13:08 as for requirements Jul 09 14:14:18 Well its using the features of new hardware that are described in the Bluetooth 4.0 standard. At a guess the supplier needs access to the software api to communicate Jul 09 14:14:45 Basically the hardware uses Lowpower Bluetooth devices Jul 09 14:15:49 This is the comment from the supplier: Android has not yet opened up their API to allow for access to the Bluetooth 4.0 sensor in the phone. Once they do we will begin working on it and allowing our app partners to do the same Jul 09 14:18:00 if i have res/drawable/blah.png and res/drawable-v14/blah.png in a lib project, and i only override res/drawable/blah.png in the main project, would the lib project's v14 be used? or would it just eliminate it, becuase that resource (R.drawable.blah) has been overridden at all? Jul 09 14:20:00 In cases where a resource ID is defined in both the application and the library, the tools ensure that the resource declared in the application gets priority and that the resource in the library project is not compiled into the application .apk. This gives your application the flexibility to either use or redefine any resource behaviors or values that are defined in any library. Jul 09 14:20:02 unclear :( Jul 09 14:20:20 canadiancow|work: so make a test project and submit a patch to documentation Jul 09 14:20:36 yea but i dont know if the behaviour im seeing is "as intended" or a bug Jul 09 14:20:57 submit a Google+ post? Jul 09 14:22:11 the docs make it sound like it's the id that gets discarded Jul 09 14:22:14 so all lib project reosurces Jul 09 14:22:18 but im not seeing that behaviour Jul 09 14:22:36 or maybe i need to just clean Jul 09 14:24:06 luyang: Any thoughts? Alternatively is someone able to point me at the published API? Jul 09 14:25:02 Cragdor: sorry I was just curious as I wanted to get a heart rate gadget to my galaxy s2 but it required bluetooth 4 Jul 09 14:26:17 luyang: I think there are some other Bluetooth Heart Rate monitors out there, that don't though they eat the battery of both the device and the phone. Hence the preference to Bluetooth 4.0 Jul 09 14:27:11 Cragdor: perhaps you're right.. have you checked the http://www.bluez.org/ thing Jul 09 14:27:56 luyang: nope is that the bluetooth stack being used? Jul 09 14:28:08 I don't know Jul 09 14:28:17 it seems to be the linux kernel bluetooth stack Jul 09 14:28:22 it mentions 4 here http://www.bluez.org/profiles/ Jul 09 14:28:51 but I dunno if that could be possible to incorporate using NDK or something Jul 09 14:28:56 deep waters here ;) Jul 09 14:29:25 might be worth checking out before ruling it out? Jul 09 14:29:31 bluez is used in android Jul 09 14:29:38 but its not fully implemented Jul 09 14:29:41 :( Jul 09 14:30:00 ok Jul 09 14:30:14 perhaps one can add bits via ndk, or does that violate some kind of security constraints? Jul 09 14:31:02 seems like source code can be found here Jul 09 14:31:02 http://git.kernel.org/?p=bluetooth/bluez.git;a=summary Jul 09 14:31:11 hi Jul 09 14:31:27 does galaxy S3 is 1280*720? Jul 09 14:31:44 have you tried samsung's website? Jul 09 14:31:47 because when i launch my app that's say 480*800. does someone know Jul 09 14:32:04 ther is something to write in manifest Jul 09 14:32:26 or ther is a way to change display inside phone? Jul 09 14:32:37 i have no idea what you're talking about Jul 09 14:32:59 is there a benefit to not using showDialog or onCreateDialog on API Level 10? I only have one alertdialog in the app. Jul 09 14:33:23 plazi91: I dunno if you have to specify xlarge somewhere Jul 09 14:33:34 luyang no stop go away Jul 09 14:33:44 it's not xlarge Jul 09 14:33:50 canadiancow|work: wo Jul 09 14:34:05 get back to work Jul 09 14:34:13 canadiancow: when i launch my app. my app say i'm in 480*800 but samsung website say 1280*720 so there is something to write on manifest to specify the resolution Jul 09 14:34:15 people, why the need to argue? Jul 09 14:34:50 what does "my app say i'm in 480*800" mean Jul 09 14:35:01 480x800 dpi Jul 09 14:35:12 1280x720 real pixels Jul 09 14:35:13 err Jul 09 14:35:18 480x800 dip Jul 09 14:35:33 or something Jul 09 14:35:33 do you use api calls to get those numbers Jul 09 14:35:37 but it's not 480x800 dp Jul 09 14:35:44 it's 640x360 dp Jul 09 14:35:52 yeah, dunno Jul 09 14:35:54 thats why im trying to figure out where this 480x800 is coming from Jul 09 14:36:07 its, a screen Jul 09 14:36:24 canadiancow|work: well, either way, he's expecting dip==real pixels Jul 09 14:36:31 which is wrong Jul 09 14:36:38 i dont know what hes expecting :P Jul 09 14:36:43 i have a short question: i have a image-downloader... its part of the async-task reference-code.... when i add a local image-resource (local-network) then it never shows this picture.... is there a additional permission missing in my manifest to access 192.x.x.x ip ranges? Jul 09 14:36:43 fuck rom manager is the shitties app ever Jul 09 14:36:45 lol Jul 09 14:36:47 i cant believe i paid $5 for this shit Jul 09 14:36:52 it doesnt even recognize that i fucking paid Jul 09 14:36:54 ppl use rom manager? Jul 09 14:36:54 it crashes all the time Jul 09 14:37:02 well i bought it like two years ago Jul 09 14:37:15 ppl used rom manager 2 years ago? Jul 09 14:37:42 i still use it Jul 09 14:37:53 what does it actually do? Jul 09 14:37:53 its convenient for getting cyanogenmod Jul 09 14:38:11 * Jug6ernaut yawns @ cyanogenmod Jul 09 14:38:43 I dunno, CM is okay imo Jul 09 14:38:58 Jug6ernaut: you don't like cyanogenmod? Jul 09 14:39:13 I don't use most of their stuff, but they provide stock android builds for lots of platforms Jul 09 14:39:29 close to stock Jul 09 14:39:29 pre ics it was pretty good, they have a long way to catch up with ics Jul 09 14:40:16 Jug6ernaut: what's your favorite post-ics rom Jul 09 14:40:23 canadiancow|work: isn't that koush's app? Tell him that it sucks Jul 09 14:40:31 also, patches welcome. Jul 09 14:41:10 erek aokp Jul 09 14:41:30 lov, is it open source? Jul 09 14:42:05 I'm trying to write a class which extends view with a custom constructor. It's trying to call View() with all my custom arguments. Is this a 'feature' of Davik or something else to do? Jul 09 14:42:07 yeah koush loves for you to bring him patches he earns more money with, while trying to stiffle all competition... Jul 09 14:42:14 canadiancow|work: christ, probably. Jul 09 14:42:25 theneb: huh? Jul 09 14:42:38 theneb: it sounds like something has gone horribly wrong. Can you pastebin some code, please? Jul 09 14:43:18 Sure Jul 09 14:43:19 http://pastebin.com/Y4kcD3T5 Jul 09 14:43:25 canadiancow|work: well, it was on github. Jul 09 14:44:10 theneb: I'm assuming there's more, but how are you instanciating this class? Are you setting it in any layout xml? Jul 09 14:44:27 I haven't actually yet made any calls to it, just created it. Jul 09 14:44:42 Let me grab the error Jul 09 14:44:56 can someone give me a hand with dialogs for gingerbread? Jul 09 14:45:05 http://pastebin.com/3HfUp249 Jul 09 14:45:37 small question - what is the best search term when i want to get some information about tabs in an app (when search for android tabs i mostly get offers for android tablets) :) Jul 09 14:46:06 http://developer.android.com/guide/topics/ui/actionbar.html#Tabs Jul 09 14:46:23 jea but actionbar is not available on 2.3.3 Jul 09 14:46:38 sure it is Jul 09 14:46:40 http://abs.io Jul 09 14:46:47 no idea why i cant access content from urls like 192.168.0.203? Jul 09 14:47:05 that's a local ip address Jul 09 14:47:13 i know... im in local lan Jul 09 14:47:24 and have apache running my machine Jul 09 14:47:29 +on Jul 09 14:47:34 does it work from another machine? Jul 09 14:47:36 so it should be available? Jul 09 14:47:38 jep Jul 09 14:48:00 every pc in my lan can access my apache.... Jul 09 14:48:10 android doesn't care where the information comes from Jul 09 14:48:10 wongk I can use the action bar on a 2.3 smartphone ??? Jul 09 14:48:20 Pinas: you sure can Jul 09 14:48:29 ? Jul 09 14:48:33 canadiancow|work even gave you a link Jul 09 14:48:41 wongk im not getting even a access-log entry Jul 09 14:48:53 wongk: action bar with the ActionBar APIs, which were added in Android 3.0 (API level 11) ??? Jul 09 14:48:57 finfin82: tcpdump? Jul 09 14:48:59 holy fuck Jul 09 14:49:01 just go to the link Jul 09 14:49:10 from my android wongk? Jul 09 14:49:14 okok sry Jul 09 14:49:18 finfin82: yeah, are you rooted? Jul 09 14:49:33 im not rooted since last repair ;) Jul 09 14:49:39 oh Jul 09 14:49:48 im not sure what to tell you then :P Jul 09 14:50:03 uh... i have no idea what i can check.... Jul 09 14:50:18 i have a archos-tablet and nexus-s Jul 09 14:50:28 both show the same issue Jul 09 14:50:34 theneb: I need more from that javac error. You seem to be creating your own View class or something? Jul 09 14:50:47 theneb: OH. Jul 09 14:50:53 herp derp Jul 09 14:50:53 https://code.google.com/p/android-imagedownloader/ <-- that is the reference code i took wongk Jul 09 14:50:55 lov: Found it Jul 09 14:50:59 theneb: you need to call one of View's constructors Jul 09 14:51:01 If I don't call super Jul 09 14:51:04 :) Jul 09 14:51:06 right. Jul 09 14:51:16 just added some local urls... Jul 09 14:51:25 Makes sense, just a different error message for something like that. Cheers anyway :) Jul 09 14:51:33 That said, I would strongly consider modifying your class to use xml attributes to reference movie names and such Jul 09 14:51:57 generally you want to lay your views out in xml Jul 09 14:55:19 wongk adb shell# ping shows, that i can ping my server Jul 09 14:57:17 finfin82: do you have wget? Jul 09 14:57:22 someone has some good resources on saving battery life from a developers perspective? Jul 09 14:57:36 make your app usable with the screen off Jul 09 14:57:51 i mean like about sleep states and such Jul 09 14:57:56 wget not found wongk Jul 09 14:57:59 dont hold wake locks Jul 09 14:58:15 dzan: http://developer.android.com/training/monitoring-device-state/index.html Jul 09 14:58:26 oh thanks wongk didn't found it for some reason Jul 09 14:58:32 thx mikedg too i'll google wakelocks Jul 09 14:58:34 there was a googl eio talk Jul 09 14:58:40 on being a good citizen Jul 09 14:58:51 thing is if I have this sockets listening all of the time the phone will be able to go to sleep rigth? Jul 09 14:58:57 but does it consume more then because it's listening? Jul 09 14:59:24 and if the socket would respond to heartbeats like every 30seconds would that wake up the phone entirely? or just to some level Jul 09 14:59:31 the screen wouldn't have to be on ofc Jul 09 15:00:34 using the network every 30 seconds will kill your battery with extreme prejudice Jul 09 15:00:53 even if it doesn't turn on the screen? Jul 09 15:01:00 yes Jul 09 15:01:05 ( i'm reading the api docs too btw ) Jul 09 15:01:12 and wongk what about just listening on a socket? Jul 09 15:01:20 without interaction Jul 09 15:01:35 that would depend on how often/how much data there is Jul 09 15:01:43 but assuming there is no data Jul 09 15:01:46 just the listening Jul 09 15:01:52 then it wouldn't be a large hit Jul 09 15:01:53 is it different then a normal sleep Jul 09 15:02:07 that's how gmail, k-9, and other apps work Jul 09 15:02:25 yes i know :) but it still consumes more then not having a socket open to listen right? Jul 09 15:02:38 i don't have empirical data Jul 09 15:02:49 i googled but i need some technical documentation on how the listening on a socket works with cpu sleep states Jul 09 15:03:08 probably have to look more in linux documentation kernel stuff then android stuff? Jul 09 15:03:19 i'm not sure you'll find something that detailed Jul 09 15:03:35 yeah i tried for a while didn't come up with something Jul 09 15:04:02 but just listening on a socket does decrease battery life I guess because there has to be something 'running' to accept the data Jul 09 15:05:06 & that sucks because if you don't use a known protocol NAT's will get you in trouble if the server initiates a connection and your devices wasn't heartbeating Jul 09 15:09:37 Hi Jul 09 15:11:15 I am trying to get this native shared library (https://bitbucket.org/mayastudios/spatialite-android/overview) working in an Android project, but I stay stuck Jul 09 15:11:42 As mentionned on the webpage, I have success in the compilation of the shared libraries and I get some so files in the libs folder Jul 09 15:12:28 But I can't find what to do with those .so files, I have tried to copy them into the libs folder of my app, but if I tray a System.loadLibrary, it is not found Jul 09 15:12:57 I am probably doing something wrong as I've never played with ndk before :/ Jul 09 15:18:00 Skurlat: place them into libs/armeabi or libs/x86 Jul 09 15:18:18 it is already in such folders Jul 09 15:18:21 look at the logcat output when you attempt to use System.loadLibrary; there might be more information there. Jul 09 15:18:29 it just say not found Jul 09 15:18:46 idk attach strace :P Jul 09 15:19:02 Unsatisfied link error Jul 09 15:19:18 ok will have a look to idk (don't know what it is yet) Jul 09 15:19:43 woops Jul 09 15:19:55 didn't knew the meaning of idk Jul 09 15:20:11 so yes 2 min I will attach strace Jul 09 15:21:51 lov: here it is : http://pastebin.com/MXVnH6En Jul 09 15:25:18 i really need to do something aobut this bug on my phone Jul 09 15:25:21 i cant answer calls =\ Jul 09 15:27:27 Skurlat: you have a linker error. You're going to have to use some tools to figure out what it is, sorry. Jul 09 15:29:09 there is one thing that I don't understand, do I need to have an Android.mmk file in my lib folder to "declare" the prebuilt shared library or not ? Jul 09 15:29:22 Android.mk* Jul 09 15:29:57 ?hm what is the "best" possibilite to allow the user to switch between two different views (I wanted to use tabs but somehow the dont look nice) everything for android 2.3.3 (I'd use the ActionBut but the app must be for API 10) Jul 09 15:30:16 Pinas: ActionBarSherlock Jul 09 15:30:29 also, consider using the ViewPager in the compat library Jul 09 15:30:35 Skurlat: no Jul 09 15:30:39 Skurlat: you need only place the .so there Jul 09 15:30:46 Skurlat: android is FINDING your lib, it's just unable to properly link it Jul 09 15:30:49 you have a linker error Jul 09 15:30:54 you need to figure out that one Jul 09 15:31:04 which is why I suggested using strace; it will probably give a SOMEWHAT more useful error Jul 09 15:31:10 (although not necessarily) Jul 09 15:31:16 ok thx Jul 09 15:31:18 consider also using the "hello world" builds of the ndk to verify that everything is sane Jul 09 15:31:28 okay Jul 09 15:31:30 if even those don't work, then something is more fundamentally wrong Jul 09 15:31:51 thx for the tips Jul 09 15:32:03 lov - that looks great. So I do normal coding as I would work for android 4.x and ActionBarSherlock will take care about mapping it to the right stuff when on Android 2.3. Right ? Jul 09 15:32:23 Pinas: more or less, although you'll be coding against ABS classes instead of the real classes. Jul 09 15:33:21 OK! I now knew how to copy from Linux SDK to Windows SDK to save the time Jul 09 15:34:34 lov: ok thank you :) Jul 09 15:35:22 all you have to do is just copy folders which, from the android-sdk , does not contain executables similar to the folder platform-tools. Jul 09 15:38:31 I tried to use ActionBarSherlock, but it's complaining about a jar mismatch for the android support v4 library. Jul 09 15:38:49 delete the jar from ABS Jul 09 15:39:01 and replace it with r9 Jul 09 15:40:32 what's the "android way" to allow a user to add a sync account when installing an app? Jul 09 15:40:44 other than manually going to settings Jul 09 15:42:20 for example you may copy th Jul 09 15:42:39 for example you may copy the system images folder Jul 09 15:42:58 lk16 look at how facebook or skype do it Jul 09 15:43:04 i think that's quite reasonable Jul 09 15:43:17 i would but i don't own an android phone Jul 09 15:43:18 wow. i just said facebook did something reasonably. Jul 09 15:43:32 buy one Jul 09 15:43:35 ... Jul 09 15:44:13 lk16: do you expect to develop this w/o owning a phone? Jul 09 15:44:14 you want to do things "the android way" but you have no idea what "the android way" is Jul 09 15:44:23 the emulator can be decent Jul 09 15:44:27 but you will never learn the platform with it Jul 09 15:44:36 if you want to write apps, then just go write apps Jul 09 15:44:42 if you want to write good apps, buy a phone Jul 09 15:45:04 well it's for work and we haven't gotten access to phones yet for testing Jul 09 15:45:27 you better tell them to expedite that process Jul 09 15:45:30 yea Jul 09 15:45:50 i mean honestly, im very glad you asked a question that began with 'what's the "android way"' Jul 09 15:46:02 but you really need a device to answer questions like that Jul 09 15:46:51 fuck i wish i could make a test in-app purchase without fudging the versionCode, signing with release keys, and spending real money Jul 09 15:47:39 ios makes a shit ton of money Jul 09 15:47:41 android does not Jul 09 15:47:48 i think i rather make my apps the ios way Jul 09 15:47:53 so they make money Jul 09 15:47:58 why does Eclipse open a new emulator each time I try to run the app Jul 09 15:48:09 mikedg: +1 Jul 09 15:48:15 but thats not even true Jul 09 15:48:21 i mean i guess it depends on the app? Jul 09 15:48:41 but ive heard various companies say their revenue per user is higher on android Jul 09 15:48:48 although they have more ios users than android Jul 09 15:49:01 but its not like oh i have twice as many users on ios who each spend twice as much Jul 09 15:49:10 i have 50% more on ios who spend the same Jul 09 15:49:20 at this point, it will take lots of convincing to win me over to Android… the "let's make an app the right way" experience is pretty frustrating Jul 09 15:49:29 really? Jul 09 15:49:37 i found it to be the opposite Jul 09 15:49:46 "lets do it the android way" and you implement native shit and it's done Jul 09 15:49:53 i.e. all sorts of special and seemingly awkwards shims for backwards compat. because of a bunch of lazy-ass carriers and device makers Jul 09 15:49:53 "lets make it look like ios" and you spend >9000 hours trying to do it Jul 09 15:50:04 http://xkcd.com/37/ Jul 09 15:50:05 oh Jul 09 15:50:06 oh, no, I'm all for making simple native apps Jul 09 15:50:10 I just mean MAKING AN APP AT ALL Jul 09 15:50:19 that works the way it should on the maddening range of devices and OS versions Jul 09 15:50:48 it's a combinatorial problem on Android Jul 09 15:50:51 evancharlton: i read the comic, i laughed. i came back and moved the hypen, and i rofl'd Jul 09 15:50:55 i'm a lazy ass-carrier Jul 09 15:51:07 jcromartie it's really not that bad Jul 09 15:51:15 most of the people ive seen complain are setting targetSdkVersion to like... 3 Jul 09 15:51:20 and then wondering why it doesnt look good on anything Jul 09 15:51:33 or they hardcode shit to 320x480 Jul 09 15:51:38 OK so my targetSdkVersion should be? Jul 09 15:51:42 I put 14 Jul 09 15:51:46 works for me :) Jul 09 15:51:47 minSdkVersion=10 Jul 09 15:51:49 i took a photo of that comic and then sent it to engadget Jul 09 15:51:56 and I'm trying to add the right android support jar Jul 09 15:52:07 you almost certainly want v4, r9 Jul 09 15:52:17 yeah Jul 09 15:52:37 it has my bugfix in it :) Jul 09 15:52:49 my bugfix that probably wont affect anyone, including me Jul 09 15:52:49 :( Jul 09 15:53:36 but hey, you made a dent Jul 09 15:54:03 I need to get my project under decent source control so I can see the bits that are changing Jul 09 15:54:12 lol Jul 09 15:54:17 but basically, I'm still trying to get my app set up using Fragments and ABS Jul 09 15:54:23 too bad ABS is not just part of the ADK Jul 09 15:54:28 adk? Jul 09 15:54:30 it seems to be practically required Jul 09 15:54:39 Android Development Kit Jul 09 15:54:47 i dont think that's what adk stands for Jul 09 15:54:50 a=accessory Jul 09 15:54:52 http://developer.android.com/tools/adk/index.html Jul 09 15:54:53 oh Jul 09 15:54:54 right Jul 09 15:55:08 android SDK then Jul 09 15:55:13 but abs is not necessary Jul 09 15:55:34 one could argue that giving a 2.3 user an actionbar would be confusing Jul 09 15:55:38 becuase it's not native on the platform Jul 09 15:55:55 they'll learn Jul 09 15:56:04 that is true Jul 09 15:56:25 but i think it comes down to just how big you want the support lib to be Jul 09 15:56:29 their fault for using obsolete platforms! (says the one who got ics update today) Jul 09 15:56:34 >using 2.3 Jul 09 15:56:36 >2012 Jul 09 15:56:41 if you're on ICS, you're ahead of most Jul 09 15:56:47 The action bar was a pattern since like 2.2 Jul 09 15:56:48 i mean jeallybean isnt technically out yet Jul 09 15:56:50 well, so how would I present something like a root-level menu of app sections Jul 09 15:56:51 I know, which is sad Jul 09 15:56:52 like Google+ Jul 09 15:56:55 SimonVT: yes, yes it was Jul 09 15:57:06 jcromartie: that's a tough one Jul 09 15:57:13 oh wait, nvm, i forgot that most android users are plebs who can't afford a phone that gets regular updates Jul 09 15:57:17 there is an open source thing to do something similar (arguably better than g+) Jul 09 15:57:31 jk Jul 09 15:57:35 scottandrus: my friend just bought an iphone 4s for $59 Jul 09 15:57:42 yes, it came attached to a contract Jul 09 15:57:50 canadiancow|work: wouldn't it be ABS + Fragments (a menu fragment and a content fragment?) Jul 09 15:57:52 nice, i didn't know you could get it for that price on a contract these days Jul 09 15:58:06 jcromartie, well you can implement however you wish Jul 09 15:58:17 scottandrus it was a sale Jul 09 15:58:30 but the point is that in north america, "phones are free" Jul 09 15:58:36 theres no "cheap" or "expensive" Jul 09 15:58:41 true Jul 09 15:58:57 the prices of most phones are trivial these days, it's all about the data Jul 09 15:59:44 We have this funny thing here where they can't just advertise FREE PHONE (oh, with a contract), but they have to put the total price Jul 09 15:59:57 but what is the "total price" Jul 09 16:00:09 here, you can get a plan that gives you X features for $Y/month Jul 09 16:00:14 with that plan, you can either get a free phone, or not get one Jul 09 16:00:23 so the cost of the phone is "free" Jul 09 16:00:24 Kinda like a minimum price Jul 09 16:00:28 because the rest is the smae with or without the phone Jul 09 16:00:54 If you buy phone for 100, with 20/mo plan that lasts 6 months. Total price is 220 Jul 09 16:01:32 well that would be ridiculous here Jul 09 16:01:35 3 years at $40/month Jul 09 16:01:44 TOTAL COST >$9000 Jul 09 16:01:50 and 40 would be cheap Jul 09 16:02:06 and its not really accurate Jul 09 16:02:09 the phone is not costing you $220 Jul 09 16:02:16 the phone is 100, the sertvice is 20 Jul 09 16:02:46 regardless Jul 09 16:02:48 Fine Jul 09 16:02:51 i think subsidized phones are stupid Jul 09 16:03:01 The "to buy this phone, under these terms, it will cost you at least" price Jul 09 16:03:10 until consumers are the manufacturers customers, we will get shafted Jul 09 16:03:54 Idk, im fine with paying 150 for a 600+ retail phone Jul 09 16:04:05 id like to see it done differently though Jul 09 16:04:10 20/month unlimited Jul 09 16:04:12 drop the plans by $10/month or whatever Jul 09 16:04:19 then offer financing on a phone Jul 09 16:04:24 but make it very obvious what's what Jul 09 16:04:40 so you get a $600 phone for $100 on a 2 year ocntract, and you're paying $500 over two years, itemized on your bill Jul 09 16:04:42 possibly with interest Jul 09 16:04:51 but then it will show people the true cost of phones Jul 09 16:04:55 even if the total cost does not change Jul 09 16:05:16 then prices will come down Jul 09 16:05:19 i mean look at the galaxy nexus Jul 09 16:05:21 its pretty fucking good Jul 09 16:05:25 $350!!!! Jul 09 16:05:46 thats super cheap Jul 09 16:05:57 but to most people, OMG $350? MY PHONE WAS FREE! Jul 09 16:06:01 I don't get it. You have to pay for the services separately Jul 09 16:06:06 here in .fi you can get a galaxy S3 either for 594EUR + 0.90EUR/month or 24.75EUR/month with no upfront fee. Jul 09 16:06:11 (24 months) Jul 09 16:06:22 24.75*24 is 594EUR, not a coincidence Jul 09 16:06:29 You're talking about merging the pricing between provider and hardware Jul 09 16:06:40 no, im talking about the opposite of that Jul 09 16:06:57 right now, the subsidize hundreds of dollars off phones, making everyone think theyre free Jul 09 16:07:01 but they just build it into the plan price Jul 09 16:07:08 so if you bring your own phone, you get less value for your money Jul 09 16:07:12 im suggesting they split it out Jul 09 16:07:15 they can still sell it Jul 09 16:07:19 they can still finance it over a contract term Jul 09 16:07:28 but rather than having your free phone and your $50/month service Jul 09 16:07:40 it owuld be a free phone and $40/month service and $10/month phone finance repayment Jul 09 16:08:15 because until consumers realize the cost of these devices, shit is going to suck Jul 09 16:08:31 ok Jul 09 16:08:37 hello my new best friends Jul 09 16:08:37 :3 Jul 09 16:08:44 retail cost of the galaxy nexus at launch was around $600 or something Jul 09 16:08:50 clearly there was a ton of profit in that Jul 09 16:08:56 but carriers were paying significantly less Jul 09 16:09:21 but for me to go out and buy one, i got shafted, because im one in a million who actually buys a phone Jul 09 16:09:25 Is there really a ton of profit though? These phones are stacked Jul 09 16:10:09 well theyre selling it for 350 now Jul 09 16:10:15 i think it was 650 when i bought it Jul 09 16:10:16 Quad core processors, led screens, that's gotta get up there Jul 09 16:10:26 did the cost of components drop by $300 in 6 months? Jul 09 16:10:28 canadiancow|work: 350? from google? Jul 09 16:10:35 650 might be a bit fluffed Jul 09 16:10:40 We kiiinda have this here as well :p On some carriers. I'm sure some of the subsidizing comes from plans as well, but some have plan: X phone payment: Y during the lock-in Jul 09 16:10:53 i buy second hand from those who got it subsidized, then go to a cheap telco (they exist here, they don't give you phones) Jul 09 16:12:32 yea im on a "cheap telco" Jul 09 16:13:48 Verizon, love them. Except how they screwed me over with the bionic Jul 09 16:17:20 does android have anything built in for doing autocomplete? Jul 09 16:17:59 AutoCompleteTextView ? Jul 09 16:18:01 hey look at that, AutoCompleteTextView Jul 09 16:18:04 :) Jul 09 16:18:12 cray Jul 09 16:18:38 OK so in the Sherlock samples, a class inherits from SherlockListActivity, and overrides onCreateOptionsMenu Jul 09 16:18:50 but in my app, that won't compile because it says that onCreateOptionsMenu is final Jul 09 16:19:11 so, what's wrong: the ActionBarSherlock sample code, or my code? Jul 09 16:19:31 Anyone have experiences with NFC programming on Android? :3 Jul 09 16:21:35 JakeWharton: hey, your sample code sucks! Jul 09 16:21:36 canadiancow|work, google play also has a kind of action bar on earlier android phones Jul 09 16:21:47 JakeWharton: p.s. I'm just trying to get your attention Jul 09 16:21:49 hey, is there a way to set the pressed state of a button automatically to the same drawable with a 50% dark overlay or something like that? Jul 09 16:21:58 -_- Jul 09 16:22:06 Zharf, i know Jul 09 16:22:12 fix your imports Jul 09 16:22:15 or do i need to make a two resources for each button Jul 09 16:22:20 jcromarite sounds like you're not using the support classes Jul 09 16:23:06 JakeWharton, so intellij doesnt have build.properties file, right? where do i set proguard.config=proguard.cfg? Jul 09 16:23:22 or do i not need to since i specifiy where it is when i export a signed apk? Jul 09 16:24:01 project.properties Jul 09 16:24:16 Zharf, ah ok. Jul 09 16:24:17 build.properties is old Jul 09 16:24:20 right Jul 09 16:24:30 the file is funny though Jul 09 16:24:34 it says DO NOT MODIFY Jul 09 16:24:45 and then a little below that it says uncomment this to enable proguard Jul 09 16:24:48 Is it unlikely an Android dev would know python? Jul 09 16:25:08 parco, if all they've ever done is android, probably :p Jul 09 16:25:32 Meh bummer Jul 09 16:25:38 why Jul 09 16:25:42 so I have a RelativeLayout with two Views inside, and I have one using android:layout_alignParentLeft="true" and one with android:layout_alignParentRight="true" but they're both aligned to the left. THe one I want aligned right just has an arrow pointing to where it should be, but isn't there... any tips? Jul 09 16:25:59 parco, a good developer generally has at least some sort of understand of various languages, in my opinion Jul 09 16:26:11 so how, for example, would i handle errors where proguard says Warning: com.actionbarsherlock.app.SherlockMapActivity: can't find superclass or interface com.google.android.maps.MapActivity Jul 09 16:26:17 well I wrote that app that based off python and its hard to find users Jul 09 16:26:33 Well users that can create scripts Jul 09 16:26:56 yeah I'd say pretty hard to find people for that Jul 09 16:27:03 Zharf, yea its definitely not hard. Imo I can't stand it Jul 09 16:27:20 python that is Jul 09 16:27:28 I can't stand it either ;) Jul 09 16:27:42 Tuples and dicts, so much different than anything else Jul 09 16:27:45 tnzr, for the one that's aligned right add right_of="@id/theleftid" Jul 09 16:28:51 luxurymode: hmm still no luck Jul 09 16:29:09 lemme see your xml Jul 09 16:29:41 one moment Jul 09 16:35:59 luxurymode: can I /msg it to you? Jul 09 16:36:03 sure Jul 09 16:36:12 thx Jul 09 16:36:51 luxurymode: so inside that RelativeLayout with @id="middle" Jul 09 16:36:52 Does android include a library for handwriting recognition? Jul 09 16:53:03 so unless you hold a partial wakelock network packets won't be received when a listening socket is open right? Jul 09 16:53:49 Hello everyone! I need some hints regarding the usage of SurfaceView. I read the documentation but I am not sure to understand correctly. Jul 09 16:54:16 shibakaneki: what do you need to know? Jul 09 16:54:42 As I understand, I create a Thread that will be in charge of refreshing the SurfaceView. However, when I do it ( in the run method I call the onDraw of the SurfaceView ), the SurfaceView is not refreshed Jul 09 16:54:54 I had to call postInvalidate in order to refresh it Jul 09 16:55:46 shibakaneki: ah, i've only used it for doing camera previews etc. Jul 09 16:56:11 I followed a tutorial on SurfaceView that doesn't use the postInvalidate and nobody seems having to call postInvalidate Jul 09 16:56:14 oh ok Jul 09 16:57:12 anyway, thank you for trying to help me CodeFriar ;) Jul 09 17:00:35 shibakaneki: don't use postInvalidate Jul 09 17:00:42 pastebin your code. Jul 09 17:00:48 ok Jul 09 17:00:55 The idea is that your thread has a reference to the SurfaceHolder, and will loop continuously drawing to its canvas Jul 09 17:01:09 (until you're told that the surfaceholder is no longer valid, in which point you'll stop) Jul 09 17:03:19 here is my code: http://pastebin.com/6pGnA1yQ Jul 09 17:03:52 yes that is what I understood. But if I remove the postInvalidate(), the view is not refreshed. Jul 09 17:04:17 SQLite. i found some documentation that says there is no date "data type (or affinity if you prefer)" but then found an example using DATE? It supposedly has no boolean, what should I set for Boolean datatype? Jul 09 17:04:19 I think there is a little thing that I didn't understand Jul 09 17:04:53 shibakaneki: you need to use the SurfaceHandler references that you're given. Jul 09 17:05:35 woah. Jul 09 17:05:36 mSurface.onDraw(c); Jul 09 17:05:36 no Jul 09 17:05:42 ? Jul 09 17:05:49 no no no Jul 09 17:05:52 that's why this isn't working. Jul 09 17:05:56 You don't call the surface's onDraw! Jul 09 17:06:02 You actually render directly to the canvas! Jul 09 17:06:06 I had a bad impression regarding that Jul 09 17:06:28 hum then that tutorial I followed is wrong... Jul 09 17:06:31 move all of your touch events and drawing code to your thread Jul 09 17:06:33 yes, yes it is Jul 09 17:06:43 I recommend you find another one Jul 09 17:06:48 in traceview is there a way to filter by thread? Jul 09 17:06:50 hehe i recommend it too :D Jul 09 17:06:52 or look at the Android API demos Jul 09 17:06:58 they have a few examples of using a SurfaceView Jul 09 17:07:09 I will check that, thank you for your help!! Jul 09 17:07:16 not it becomes more logical in my head Jul 09 17:07:27 GeeksOnHugs: for boolean, use 0 and 1 ints. Jul 09 17:07:38 I thought it was a bit wrong to call onDraw in a thread that is not the UI thread Jul 09 17:08:06 is there something I can use instead of android:attr/listPreferredItemPaddingLeft that's available on Froyo/GB? or should I just hardcode it? Jul 09 17:08:18 I'll rework all of that, thx lov Jul 09 17:09:27 are there issues trying to use an options menu and a context menu in the same activity with ABS? Jul 09 17:09:53 so my app keeps changing the account to use for in-app billing Jul 09 17:09:58 to one of mine that does not have a credit card Jul 09 17:10:02 i think i need to use fully qualified android equivalents for the context menu classes Jul 09 17:10:09 anyone know how to force it to use a certain account? :( Jul 09 17:11:53 canadiancow|work - wrong channel for that type of question, try the #android channel Jul 09 17:12:15 not if i want to force it programtically ;) Jul 09 17:12:24 Ah I see, it's your own app? Jul 09 17:12:35 well its all apps really Jul 09 17:12:40 but im only testing in-app billing in my app Jul 09 17:12:44 so thats the only one i care about Jul 09 17:13:06 Just remove the bad account from the device? Jul 09 17:13:49 but i want the account :( Jul 09 17:13:54 canadiancow|work: use a test phone. Jul 09 17:14:03 having issues with proguard being unable to find superclasses that are used inside of my library project which my app depends on. anyone know how i can fix these proguard issues? Jul 09 17:14:08 whatever i just added my credit card to that account too Jul 09 17:14:24 Transaction Amount/Currency: 2.00 CAD Jul 09 17:14:24 Merchant Name: GOOGLE SELLER Jul 09 17:14:25 ffs really? Jul 09 17:14:29 they charge money to add a card? Jul 09 17:14:39 Well set another account to be the default. As I said, it's a confg issue really, nothing to do with the app AFAIK Jul 09 17:14:48 is there a way to tell which current fragment is loaded? Jul 09 17:14:49 yea i can set the default in the play store app Jul 09 17:14:55 but when i go in to in-app billing, it resets it Jul 09 17:15:01 mwillbanks: not really :( Jul 09 17:15:05 :( Jul 09 17:15:06 i mean they're all "loaded" Jul 09 17:15:33 yeah more or less, what I am looking for is the id of the fragment that will pop when I call popBackStack Jul 09 17:15:40 i guess i'll have to implement the backStackListener Jul 09 17:15:48 backstacklistneer isnt even useful Jul 09 17:15:53 the callback has no information Jul 09 17:16:42 Anyone had experience of writing apps that go fullscreen and prevent any access to anything except a single app? I'm working on a kiosk app, and need to prevent users from shutting it down Jul 09 17:17:01 major ouch; problem is that i'm using the actionbar tabs and want to pop the backstack only for items that are inside of the tab but not otherwise... with popBackStack returned the fragment it popped Jul 09 17:17:15 might just have to re-implement the functionality Jul 09 17:17:51 What would I do if I'd want to make an application where you can download additional features, and the features will be automaticly added Jul 09 17:18:22 what are these 'feautres' Jul 09 17:18:29 code? or content? Jul 09 17:18:52 code Jul 09 17:19:12 that can be tricky Jul 09 17:19:19 you can dynamically load classes Jul 09 17:19:33 ah thank you Jul 09 17:19:43 all i need is a term to search really Jul 09 17:20:01 Smashcat: you can never override the home button from working Jul 09 17:20:39 mdwright: I've seen apps that do it on non-rooted Android devices, so I know it's possible, just trying to find example code for it Jul 09 17:21:53 Transaction Amount/Currency: .99 CAD Jul 09 17:21:54 Merchant Name: GOOGLE *Zynga Inc Jul 09 17:21:55 yay it worked Jul 09 17:22:23 Deifyed: you can also use Services and export them from another APK Jul 09 17:22:33 How do I set a onclick action for different tabs in one class/activity? Jul 09 17:22:58 that's how most of them are done, because custom loading isn't supported by the "common" tools like Eclipse Jul 09 17:23:10 p_l|backup: ill look into it, thank you :) Jul 09 17:26:25 Deifyed: it's not particularly hard. Jul 09 17:27:56 What is the correct way to put the google apps framework on the emulator? Jul 09 17:28:27 I mean services framework Jul 09 17:29:12 select a Google APIs target when you create the virual device Jul 09 17:29:42 thanks Jul 09 17:30:40 anyone ever use something similar to this: http://www.in4dealz.com/deals/MK802-Android-4-0-Mini-HD1080P-2160P-Thumb-Drive-Android-4-0-TV-BOX-IPTV-Smart-HD-Player-512MB-RAM-4GB-Memory-600017/19 Jul 09 17:34:15 I know its a very simple issue.... or at least I assume it is. However, I can't for the life of me figure out why I need to press my 'button' twice to get setText() to work. Jul 09 17:34:16 http://pastebin.com/v2yX7ykP Jul 09 17:34:57 Google isn't my friend either as I haven't been able to find an answer. Why would I need to press an onClick even twice to get the operation to show on the device? Jul 09 17:34:57 When is mfdCalcEngine called? Jul 09 17:35:05 Rescue9: you shouldn't need to. Jul 09 17:35:19 you SHOULD probably call invalidate() or postInvalidate() on the textview, however. Jul 09 17:35:26 (invalidate() only if you're in the UI thread) Jul 09 17:35:47 lov it's called in the activity_main.xml Jul 09 17:36:01 android:onClick="mfdCalcEngine" Jul 09 17:36:27 How do I set a onclick action for different tabs in one class/activity? Jul 09 17:36:39 you're setting an onclick listener in an onclick listener? Jul 09 17:37:29 How do I set a onTabSelected for different tabs in one class/activity? Jul 09 17:37:44 lov so the code looks functional the way it is? Jul 09 17:39:10 onTabSelecteddoesnt specify the tab Jul 09 17:40:36 http://arstechnica.com/apple/2012/07/uk-judge-galaxy-tab-not-cool-enough-to-infringe-ipad-design/ Jul 09 17:40:49 zharf stfu Jul 09 17:41:41 o.O Jul 09 17:43:47 Rescue9: Eh.. So clicking R.id.button1 sets an onclick listener on R.id.button1 that sets the text? Jul 09 17:44:05 Rescue9: read my comments. Jul 09 17:44:11 call invalidate() or postInvalidate() after you set the text./ Jul 09 17:44:22 ..... Jul 09 17:44:23 wait.\ Jul 09 17:44:27 lov I did... nothing. Jul 09 17:44:37 You're setting an onClick listener in an onclick listener?! Jul 09 17:44:42 13:36:16 < Rescue9> lov it's called in the activity_main.xml Jul 09 17:44:43 13:36:31 < Rescue9> android:onClick="mfdCalcEngine" Jul 09 17:44:53 android:onClick specifies an on click listener. Jul 09 17:44:54 Aaaaaah.... Jul 09 17:45:03 It's making sense now. Jul 09 17:45:06 your new listener is overriding the old one Jul 09 17:45:09 which is why it happens twice Jul 09 17:45:10 there you go Jul 09 17:45:12 er Jul 09 17:45:15 happens after the second click Jul 09 17:45:32 <--- total noob. Just learning. First android app actually. Jul 09 17:45:48 Thank you so much for the push in the right direction. Now I at least know where I can start to fix it. Jul 09 17:46:13 SimonVT: thanks for your help too. I didn't respond, but I saw your text. Jul 09 17:48:51 Boooya! Success. Thanks guys... think I'll lurk for a while Jul 09 17:49:12 I have an animation of 50 frames that i'm trying to show, on android 2.2 it runs fine, but on the newer versions I get an out of memory exception. Jul 09 17:54:12 okand_: use less memory, problem solved. Jul 09 17:54:17 * lov puts on his shades Jul 09 17:54:31 yea but im only trying to load some images Jul 09 17:55:06 how am I supposed to create an animation with more than 30 frames? Jul 09 17:55:41 do you recycle bitmaps once you're done with them Jul 09 17:56:09 its from xml Jul 09 17:56:18 oh Jul 09 17:56:22 http://pastebin.com/ds2fC66X <-- am I right claiming that this LinearLayout uses more space than what's available when a label is present at the top of the screen? Jul 09 17:56:28 Hi, is it possible to make a phone call directly in my application without using the external android-call-intent? Jul 09 18:00:23 Can anybody help me find an app? Jul 09 18:00:24 "a label"? Jul 09 18:01:35 I am looking for an app that would record phone calls and send them to an email address and it would be even better if it would allow certain phone numbers but it needs to be a secret Jul 09 18:02:12 anyone has any ideas on what to do when using a webview whith jquery mobile. The problem are timepickers, when i click on the time i "also" click on an underlying selector Jul 09 18:02:25 write it, natethegreat1419 Jul 09 18:02:59 do you have a link for it? Jul 09 18:02:59 SimonVT: usually the name of the activity/app. see the grey part just below the status bar at http://goo.gl/AWcmZ Jul 09 18:04:34 SimonVT: a little googling shows that it's called "Title Bar" Jul 09 18:05:11 Well, then you are wrong Jul 09 18:05:32 natethegreat1419: can't be done Jul 09 18:05:42 also, you're probably in the wrong channel Jul 09 18:05:48 dang that sucks Jul 09 18:05:53 Oh sorry Jul 09 18:06:10 does anybody know which channel is one more appropriate? Jul 09 18:07:52 I've got a scheduler portion of my app, and I'm trying to make sure that if the time of the event in the database changes, any alarms set for that app will still be correct should the time change. What is the best way to do this? Jul 09 18:08:25 I was considering using the alarmManager and redelivering the pending intent to refresh the time, but then I saw the AlarmClock class Jul 09 18:08:39 and considered that the user might want to use their own alarm app. Jul 09 18:11:42 SimonVT: my logic was: h_p = height of parent, h_t = height of title bar, h_l = height of LinearLayout. for the LinearLayout not to be too big, the following condition must be met: h_t + h_l <= h_p. fill_parent gives h_l = h_p, subtraction by h_p gives h_t <= 0, which cannot be true. where am I wrong? Jul 09 18:11:51 you know how the back button changes to a down/close button hwen the keyboards open? Jul 09 18:11:55 how long has that been there Jul 09 18:12:54 joel135: The titlebars parent and your views parent is not the same Jul 09 18:13:10 just call getparent until there are no more parents Jul 09 18:13:14 then you win Jul 09 18:13:23 Your layout is inflated into a framelayout that is positionen below the title bar Jul 09 18:13:29 positioned* Jul 09 18:16:25 SimonVT: thanks for helping me and everyone else out over and over again :) Jul 09 18:17:57 SimonVT is the awesome Jul 09 18:18:12 he's V better than SimonT (who is not here atm) Jul 09 18:18:47 I so am Jul 09 18:18:50 awesomer Jul 09 18:19:09 SimonT messaged me once that he changed his nick to avoid confusion ;d Jul 09 18:19:23 He got ALL the irc notifications Jul 09 18:19:46 lol Jul 09 18:22:47 has anyone worked with extending Views to create animations involving bitmaps? Is the idea to convert all your working into dips and to avoid px completely? Jul 09 18:24:08 it depends what youre doing Jul 09 18:24:15 working in anything other than pixels in code is annoying Jul 09 18:24:44 Is there any good way to make logging only active when debugging is enabled? I don't want to SPAM logcat when not debugging. Jul 09 18:24:45 it .. is? Jul 09 18:25:46 Dahliz91: if (BuildConfig.DEBUG) Log.d(TAG, blah); Jul 09 18:26:02 SimonVT: thx Jul 09 18:26:13 i actually made my own Log class with the same interface as android.util.log Jul 09 18:26:26 that just wraps the calls to android.util.Log in that check Jul 09 18:26:32 so i dont have to do it in >9000 places Jul 09 18:26:45 What would be the best way to have an alarm go off at a time specified by a database entry? So, if the entry changed in response to the server, it would still go off at the proper time? Jul 09 18:27:13 I did as well. I do that, plus format it a bit. Pass some extra parameters etc Jul 09 18:27:24 I'm thinking of just redelivering a pendingIntent via the AlarmManager if there is an update to the time, but I'm not sure if that's the best way Jul 09 18:28:11 canadiancow, yes all the functions in the android API take px, and i made my animations based off some moving bitmaps look all pretty at 240dpi on my galaxy s2, then i ran it on a galaxy nexus at 320dpi and all the dimensions where wrong. then i discovered that when doing Bitmap background = BitmapFactory.decodeResource(getResources(),R.drawable.background); the bitmaps scaled depending on the desnity, so all my carefully planend move Jul 09 18:28:11 ment at 240dpi where shorter Jul 09 18:28:41 you can put the resource in drawable-nodpi Jul 09 18:28:43 then it wont scale Jul 09 18:28:55 or in assets/ Jul 09 18:30:19 canadiancow: gt8 idea! Jul 09 18:30:24 I'm using the android gui to try and install an "api 10" sdk platform. I've done this before for api 7 and 8, but in the list of available packages, I don't see an "SDK platform" entry under the "API 10" set. What should I do to get an sdk that lets me code against api10? Jul 09 18:30:39 i think 10 is deprecated like 5 and 6 Jul 09 18:30:48 wait no that's 9 Jul 09 18:30:51 you dont see a 10? Jul 09 18:30:52 good to know, i do want it to scale - so that necessitates me converting all my code to dips using "(int) (x*scale + 0.5f);" -- since ive never done animation, let alone on the android platform, im wondering if this is a good way to go about things Jul 09 18:31:04 kbs: you should see an SDK Platform under 10 Jul 09 18:31:09 kbs: try packages->reload Jul 09 18:31:09 canadiancow|work: I do see an "API 10" section, but it doesn't contain an entry that says "SDK platform" Jul 09 18:31:10 kbs: Try Packages > Reload Jul 09 18:31:15 canadiancow|work: beat me to it :) Jul 09 18:31:27 mdwright: and canadiancow|work yep. tried that one, but no luck. Let me do once more. Jul 09 18:31:49 i see 3,4,7,8,10,11,12,13,14,15,16 Jul 09 18:32:07 canadiancow|work: he sees 10, just not SDK Platform under it Jul 09 18:32:17 but it should be there Jul 09 18:32:24 yea all the ones i listed are full though Jul 09 18:32:27 hm. I see 15, 13, 10, 8, 7 -- reload doesn't pull up an sdk platform entry. That is weird. Jul 09 18:32:36 Is it possible I have some old repository url or something? Jul 09 18:32:45 do you have the latest version of the tools? Jul 09 18:32:53 yeah you have to update tools first Jul 09 18:32:58 aha Jul 09 18:33:01 it's this weird three-step process Jul 09 18:33:19 I see, ok. Thanks for the tip folks :-) I'll try updating the tools first and proceed. Jul 09 18:33:33 kbs: cool. let us know if you still have problems Jul 09 18:33:50 so unless you hold a partial wakelock network packets won't be received when a listening socket is open right? Jul 09 18:34:59 mdwright: thanks -- the tools version I have is indeed out of date, I'll go down that path. thank you for the pointer, saved me much headache :-) Jul 09 18:41:52 anyone know of a drop-in replacement for org.json that's not as slow Jul 09 18:42:19 Drop-in as in API-compatible? Jul 09 18:42:44 nice. api10 available, and I didn't realize I can also now play with jellybean. *happy* Jul 09 18:45:20 TheTrash: yes Jul 09 18:46:48 I am not aware of one. Jul 09 18:52:36 I have subclass of DialogPreference which shows an EditText for previewing changes to the app text. The keyboard auto shows on ICS, how can I prevent that? I put in focusable(inTouchMode) to false in xml to no avail Jul 09 18:53:20 EddieRingle: you just got F'd in the A Jul 09 18:53:37 JakeWharton: was just taking to evancharlton about it Jul 09 18:53:50 funny, was just about to go on a Hubroid coding spree too Jul 09 18:53:57 hey Jul 09 18:53:57 darn Loaders are still crap to work with Jul 09 18:53:58 EddieRingle wat happened? Jul 09 18:54:06 canadiancow|work: https://github.com/blog/1187-github-android-app-released Jul 09 18:54:20 lawl Jul 09 18:54:28 canadiancow|work: knew it was coming Jul 09 18:54:32 just didn't know when Jul 09 18:54:39 hello all. Is Shared Preferences persistent? If I set something then reboot the phone will it still be saved? Or is it only stored while the phone is running(and not low on memory)? Jul 09 18:54:40 is that abs? Jul 09 18:54:44 I'm having trouble with Matrix.mapPoints Jul 09 18:54:47 It's been like 8 months Jul 09 18:54:48 canadiancow|work: of course Jul 09 18:54:50 glad it's finally out Jul 09 18:54:58 JakeWharton: yeah, took them too long Jul 09 18:55:00 im not super impressed with how it looks Jul 09 18:55:06 i like hubroid better :P Jul 09 18:55:13 Does it require and array like [x,y,x,y,x,y] or [[x,y],[x,y],[x,y]] Jul 09 18:55:20 canadiancow|work: yay Jul 09 18:55:38 canadiancow|work: I don't like the actionbar gradient, at least not from the screenshots Jul 09 18:55:38 so i got a question, my team has developed an android app that is about ready for testing.. what I'm trying to figure out is whats the best practice for releasing an app to an alpha test group (specific individuals), does becoming a market publisher provide any mechanisms for this? or is it providing a download url to an apk in developer mode? Jul 09 18:55:48 lawls, forced closed on first run Jul 09 18:55:55 lol Jul 09 18:55:57 im just installing it Jul 09 18:56:02 it doesn't work on my phone D: Jul 09 18:56:05 works great on the 7 Jul 09 18:56:26 issue UI is really clean Jul 09 18:56:47 wheres the fucking login button Jul 09 18:56:48 yeah, FCs like mad Jul 09 18:56:58 nm Jul 09 18:57:00 Hi, can anyone tell me please how can i switch back to an activity which is still open? Jul 09 18:57:07 No enterprise support sadly Jul 09 18:57:17 perhaps its because of Hubroid Jul 09 18:57:28 No pull-to-refresh <3 Jul 09 18:57:37 Krid: are you the kid who posted on reddit Jul 09 18:57:39 I do some funky authentication stuff that might conflict with them Jul 09 18:57:44 JakeWharton: no >3! Jul 09 18:57:58 <4 Jul 09 18:58:09 can you not view changes or anything? Jul 09 18:58:10 3.1 Jul 09 18:58:11 JakeWharton canadiancow|work: lol, Hubroid makes the official app crash Jul 09 18:58:13 reddit? no Jul 09 18:58:16 success Jul 09 18:58:18 JakeWharton, +1 with enterprise Jul 09 18:58:23 oh someone asked like the same question on redit today Jul 09 18:59:11 didn't have to log in though Jul 09 18:59:15 anyone on best practice for releasing an android app alpha to specific individuals for testing? Jul 09 18:59:30 is my only method a straight apk download link? Jul 09 18:59:40 straight apk download link Jul 09 18:59:57 canadiancow|work: yeah, UI is icky Jul 09 18:59:57 I'm working on an android-app which is not supposed to be released on android market / google play.. How can I still receive crash-reports from the users? Jul 09 19:00:06 XeruX: email Jul 09 19:00:07 no quick info screen for stuff either Jul 09 19:00:31 michaelgamble: might also want to check out HockeyKit Jul 09 19:00:58 my problem is: from my application, i call ACTION_CALL Intent. With a PhoneStateListener i now want to switch back to my application on offhook Jul 09 19:01:35 JakeWharton: why isn't it easy to reset a loader? Jul 09 19:05:33 what do you mean reset? Jul 09 19:05:40 *poof8 Jul 09 19:05:45 mLoader = new MyLoader(); // reset! Jul 09 19:05:49 you can call forceLoad to reload Jul 09 19:06:21 evancharlton, syntax error. mLoader is final Jul 09 19:06:35 recreate() Jul 09 19:07:01 startActivity(new Intent(getClass(), this)); System.exit(1); Jul 09 19:07:25 +1 Jul 09 19:07:26 JakeWharton: the documentation is pretty vague Jul 09 19:07:41 you would think I could just call reset() and then restartLoader() Jul 09 19:07:49 but I have to jump through hoops Jul 09 19:10:31 .jumpHoops() Jul 09 19:10:57 yeah, something like that Jul 09 19:11:03 jumPoops(); Jul 09 19:12:24 hey say i create a sky box but the textures are all rotated wrong. does this mean i need to remap the texture coordinates or do rotations on the planes? Jul 09 19:13:56 (warning: noob here) what's a Device Administrator app? Jul 09 19:17:17 whoo: https://github.com/github/android/issues/72 Jul 09 19:17:24 hey, is it possible to use Binder between app code in different packages? Or is the ContentProvider system special? Jul 09 19:17:51 EddieRingle: don't steal other people's namespaces >:( Jul 09 19:18:06 orospakr: yes, that's why Binder exists... Jul 09 19:18:07 evancharlton: I honestly thought I was using a special one with hubroid appended Jul 09 19:18:17 I think it got overwritten awhile ago Jul 09 19:18:38 evancharlton, excellent. I've seen claims to the contrary (something about security policy). Jul 09 19:18:49 on the bright side, users of Hubroid don't have to add their accounts all over again Jul 09 19:19:07 lawl ;O Jul 09 19:19:12 (found the answer.. :-) Jul 09 19:19:32 Now we can just link to that issue when people ask why their namespace should be their own domain Jul 09 19:19:43 heh Jul 09 19:19:55 thought I used com.github.eddieringle or something Jul 09 19:21:30 argh something is setting a padding on one of my listview cells Jul 09 19:21:34 and i cant figure out whats doing it :( Jul 09 19:22:02 I'm trying to upload a large video (~20mb) to facebook with the SDK, but I'm getting an out of memory exception when trying to add it to the bundle as a byte[] Jul 09 19:22:18 then dont do that? Jul 09 19:22:23 just give the intent the uri Jul 09 19:23:32 is there docs for the facebook intent? Jul 09 19:23:34 are there* Jul 09 19:25:46 JakeWharton: hubroid still appears at the top of GitHub's repo search for "github android" Jul 09 19:25:54 must take advantage of that Jul 09 19:26:01 that'll last about 24 hours Jul 09 19:26:27 JakeWharton: any way to log yourself out of the GitHub app? I changed my pw on the web and now the github app doesn't seem to know how to deal with that Jul 09 19:26:40 tnzr: Settings -> Accounts Jul 09 19:26:42 tnzr: clear data in the app's settings? Jul 09 19:26:43 or that Jul 09 19:27:04 i don't see that in the app Jul 09 19:27:10 oh Jul 09 19:27:13 tnzr: System settings :P Jul 09 19:27:13 i see :) one moment Jul 09 19:27:31 JakeWharton: their source code looks too complicated Jul 09 19:27:35 I'm sticking to hubroid :3 Jul 09 19:28:24 JakeWharton: try it on a tablet yet? Jul 09 19:28:32 i've only used it on my 7 Jul 09 19:28:57 all fixed, thanks guys Jul 09 19:31:12 JakeWharton: no tablet specific UI, it appears Jul 09 19:31:17 even on my 10" Jul 09 19:31:40 hello all. I have a app where when it starts I want to select the activity to start. I made a simple dummy activity that is the MAIN....and this works. When the app starts it launches the dummy MAIN activity that then reads a config file and depending on whats set launches the appropriate 2nd activity. My issue now though is if the user hits the back button...it goes back to the ugly dummy MAIN a Jul 09 19:31:41 ctivity. Is there a way I can stop this? Jul 09 19:32:10 EddieRingle yea i noticed that too Jul 09 19:32:25 canadiancow|work: there's a niche I can target! :P Jul 09 19:32:46 if by "niche", you mean "people who want a good app", then yes Jul 09 19:32:48 yes there is Jul 09 19:32:57 fuck people need to learn how to 9patch Jul 09 19:33:12 IF YOU HAVE A STATELISTDRAWABLE, DONT MAKE THE PADDING DIFFERENT ON THE PRESSED STATE Jul 09 19:33:13 ~_~ Jul 09 19:35:31 anyone ever developed an android app using scala Jul 09 19:35:31 ? Jul 09 19:35:51 that questions seems to be getting asked a lot lately Jul 09 19:37:09 i just started my "indepth" study of scala and the concepts i have seen so far are quiet intriguing Jul 09 19:37:28 just wanted to know if using scala on android is painless Jul 09 19:41:45 Scala compiling into native bytecode of Dalvik? Or is there a conversion to Java code? Jul 09 19:41:49 i can't imagine it's painless, android and the tools are java based Jul 09 19:42:05 canadiancow|work: I like my icon better, too :3 https://dl.dropbox.com/u/3274458/Android/hubroid/icon_512_final.png Jul 09 19:42:27 clayjar: last i heard it compiled to java bytecode, very much like java does :p Jul 09 19:42:38 oGMo: cool. Jul 09 19:42:45 Found the link: http://code.google.com/p/scalaforandroid/ Jul 09 19:42:47 i don't think scala has EVAL, so it doesn't really matter Jul 09 19:43:30 ah they've further reduced the overhead of the library too, which is nice Jul 09 19:46:27 I wonder if golang would be a good language for Android dev.. Jul 09 19:46:52 clayjar: i hear java is a good language for android dev :P Jul 09 19:46:53 Hi, surfaceCreated is not being called by my code. Can someone *please* look at my code? I've been stuck here all weekend. http://pastebin.com/2r0e6iDw http://pastebin.com/uDUNvMAm http://pastebin.com/w500h80c Thanks. :) Jul 09 19:47:24 g00s: X-) I know, I only mentioned it because someone mentioned Scala. Jul 09 19:47:48 clayjar: you can ask pfn if he is around about scala Jul 09 19:48:01 he is Mr Scala on android Jul 09 19:48:52 i'll just stick w/ java. Jul 09 19:49:27 best market comment ever Jul 09 19:49:30 Because of this app my ex took me back, I got a pay rise allowing me to buy a mansion and my sick dog had a miraculous recovery and she is now immortal. If I could, I would bring a very attractive friend with me to have a threesome with the developer to show my gratitude to him. Jul 09 19:49:57 brx_, i need that app! Jul 09 19:50:10 j0hnsm1th: https://play.google.com/store/apps/details?id=com.szlab.solarcharger&feature=search_result#?t=W251bGwsMSwyLDEsImNvbS5zemxhYi5zb2xhcmNoYXJnZXIiXQ.. Jul 09 19:50:13 :D Jul 09 19:50:21 some of the comments are hilarious Jul 09 19:53:02 i love the rating dichotomy Jul 09 19:53:02 someone knows if there is some benchmarking i can find about battery consumption on a clean device with against without a partial_wakelock running ( doing nothing, just having the wake_lock ) ? Jul 09 19:55:55 It was nice meeting you at IO, pfn! Jul 09 19:56:04 Or, before IO anyway. Jul 09 19:56:15 Whoa whoa. No IRL crossovers allowed. Jul 09 19:56:22 ugh...the graphical layout shows my layout to be perfectly fine, but it's all hosed on my device Jul 09 19:58:27 there was another stupid app like that brx_ Jul 09 19:58:34 it did nothing, but like 50k people gave it 5 stars Jul 09 19:59:46 sweet canadiancow Jul 09 20:00:05 the comments are always really cool to browse in those comical apps Jul 09 20:00:13 you cant buy witt Jul 09 20:02:59 Hi, surfaceCreated is not being called. http://pastebin.com/2r0e6iDw http://pastebin.com/uDUNvMAm http://pastebin.com/w500h80c Jul 09 20:03:27 canadiancow|work: was it the hello world android sample :D Jul 09 20:03:43 no Jul 09 20:05:57 the code, is short, it might be a simple fix Jul 09 20:09:31 do the official android docs have any tips on making animations/transitions smoother? Jul 09 20:10:54 yay xav replied to my tools question :) Jul 09 20:10:57 <3 googlers who help me Jul 09 20:11:37 just dont really like the response :( Jul 09 20:12:04 someone knows if there is some benchmarking i can find about battery consumption on a clean device with against without a partial_wakelock running ( doing nothing, just having the wake_lock ) ? Jul 09 20:14:11 okay, thanks, that worked. Jul 09 20:14:14 Yay! Jul 09 20:14:16 :-) Jul 09 20:14:22 Thank you, FlashCode. Jul 09 20:14:52 The documentation (User's Guide) should make that clearer... Jul 09 20:16:49 Does the following make sense? "I can make an app with only one Activity. Work (draw UI, network communication) that needs to be done is managed by fragments, and the activity only manages which fragments are shown." Jul 09 20:16:59 yes Jul 09 20:17:04 many things do it aht way Jul 09 20:17:32 dzan: if you are doing nothign why do you need a partial wake lock Jul 09 20:17:47 OK, because I was not sure about only using one single activity. Thanks Jul 09 20:21:49 your activity should be pretty barebones if you do that Jul 09 20:22:10 im out Jul 09 20:22:11 how do you use a custom view in the xml? com.mysite.myapp.CustomView? Jul 09 20:22:18 themirror: yup Jul 09 20:23:50 mikedg: then i don't know why my surfaceCreated is not being called, http://pastebin.com/2r0e6iDw http://pastebin.com/uDUNvMAm http://pastebin.com/w500h80c Jul 09 20:23:56 it's not much see Jul 09 20:24:21 mikedg: TouchPanel extends SurfaceView Jul 09 20:24:58 mikedg: can i cast to custom class like TouchPanel? Jul 09 20:28:43 mikedg, i will be doing things Jul 09 20:28:51 i'm curious on the extra battery drain it has without doing things Jul 09 20:36:22 I"m writing an addon for firefox mobile. As a result I need to run a virtual android device using the android sdk. I have the device up. How can I get firefox installed on it? Should I download the firefox-mobile.apk somewhere? Jul 09 20:38:21 deadmund: seen this?http://delog.wordpress.com/2012/03/20/install-firefox-in-the-android-4-0-emulator/ Jul 09 20:38:42 brx_: I have now :) Jul 09 20:42:12 CYANOGEN-MOD 10, where is it?!?!?!?!?!?!?!?!?!? Jul 09 20:42:41 so this thread scheduling .. it seems that it completely ignores priorities? Jul 09 20:43:00 a thread with lowest priority can completely dominate the core and make the ui unusuable Jul 09 20:43:55 My ddms has the 'file explorer' grayed out in the device menu. Any suggestions? Trying to install firefox mobile (fennec) into my android 2.3.3 vm Jul 09 20:45:03 oh, I had to select a process :P (I think that might be considered a bug in ddms. I would expect the device menu to be active without selecting a process) Jul 09 20:45:46 does anyone have some details on Project Butter? I know at Google I/O, it was explained well what it did, but I was just wondering if there was some significant change at the kernel, i.e. an implementation of hard realtime microkernel, etc.. ? Jul 09 20:46:41 http://www.youtube.com/watch?v=Q8m9sHdyXnE Jul 09 20:47:28 candiancow|work, thanks for the link. Jul 09 20:48:42 in the future, if you want to know aobut somethin gfrom google i/o, go to the google i/o site Jul 09 20:50:31 firefox is REALLY slow on this vm android device Jul 09 20:50:46 * clayjar thinks "jank".. just learned a new word. Jul 09 20:51:48 hm.. yeah no way to get this thread scheduler to coooperate Jul 09 20:52:16 someone knows how applications like whatsapp and skype do the pushing? they have an open tcp or udp socket sending heartbeats? Jul 09 20:52:21 ( otherwise NAT issues ) Jul 09 20:53:20 http://developer.android.com/guide/components/fragments.html#Example <-- why does TitlesFragment launch a new activity at the end? wouldn't it be 'better' to have TitlesFragment call its parent activity and make it replace itself with a DetailsFragment? Jul 09 20:53:29 dzan: when the app starts it pings the server (I believe) and gets whatever is being 'pushed' Jul 09 20:54:01 deadmund, doesn't make sense i also get messages when the phone is in standby Jul 09 20:54:29 dzan: maybe it does ping it server periodically as well Jul 09 20:54:46 scottandrus: in t3h deepw3b br0 Jul 09 20:54:51 Hi guys, just want to know which app creator do you guys use? That have in app purchase and multiplatform support? Thanks Jul 09 20:55:31 eclipse Jul 09 20:55:38 booo Jul 09 20:55:54 wongk: you're going to get busted for saying the e word here Jul 09 20:56:05 bring it! Jul 09 20:56:56 I'm looking into Gamesalad and corona for rapid prototyping. Jul 09 20:57:06 But didn't know if they are good or not Jul 09 20:57:18 g00s: what's wrong with the greatest java ide there is? Jul 09 20:57:47 lk16: hehe, *i* don't have any problems with it :P Jul 09 20:57:59 multiplatform app creator? do any of those actually work? Jul 09 20:59:01 brx_: That's the reason I'm asking. Wondering if someone here have used them Jul 09 20:59:32 ive never heard any discussion here on them in the past mdpai, here its mostly android sdk discussions Jul 09 20:59:55 I keep hearing great anecdotes about these app creators, but somehow I never seem to be able to find anyone who'se actually used one and has something positive to say. Jul 09 21:00:12 brx_: Ok noted Jul 09 21:00:39 Well people who use these app creators must know that by using these multiplatform app creators, they are bound to limitations Jul 09 21:01:14 That's the risk I'm willing to take for rapid prototyping for multiplatform Jul 09 21:02:16 mdpai for what its worth I hear people mention phonegap a lot... but always in the sense of "seems promising to work with", never in the sense of "I used it and it was great" Jul 09 21:02:30 I have a positive thing to say about app creators: They have exit buttons Jul 09 21:02:32 Phonegap IMO is a broken approach Jul 09 21:02:42 * Chainfire hasn't even looked at it Jul 09 21:02:53 It was designed as a testing ground for HTML5 apps, sort of. Jul 09 21:02:57 i think if you consider "mobile" to be a platform, you're broken already Jul 09 21:03:08 you can't develop for "mobile" Jul 09 21:03:13 Titanium is a better approach as it has better integration with native. Jul 09 21:03:15 you can do "mobile web" or "android" or "ios" Jul 09 21:03:19 But it's still lowest common denominator. Jul 09 21:03:48 Can be suitable for some apps, but for me it's usually a dead end. Jul 09 21:04:35 phonegap, is that the thing that uses javascript and stuff? Jul 09 21:04:42 ye Jul 09 21:05:30 JakeWharton: GitHub just got VC, looks like Jul 09 21:05:32 yeah it depends on what you want to make Jul 09 21:05:35 not sure how I feel about htat Jul 09 21:06:43 canadiancow|work: I develop for mobile, how broken am i? And because i conjecture that you also develop for mobile, by your own logic you are therefore broken. What then? Jul 09 21:06:53 no Jul 09 21:06:56 i develop for android Jul 09 21:06:59 because "mobile" isn't a platform Jul 09 21:07:06 Mobile is a business target :P Jul 09 21:07:23 i have never seen a good "mobile app" (i.e. written once, run everywhere) Jul 09 21:07:28 isn't mobile whatever runs on a mobile phone? Jul 09 21:07:28 "Our company has been profitable for years, is growing fast, and doesn't need money. So why bother?" Jul 09 21:07:33 if you dont need money... Jul 09 21:07:40 no Jul 09 21:07:42 worked for java.... Jul 09 21:07:48 what does "mobile" mean Jul 09 21:07:58 "something that moves" :) Jul 09 21:08:10 are you mobile candiancow Jul 09 21:09:16 not atm Jul 09 21:09:19 but in general, yes Jul 09 21:10:31 Are you in a chair, per chance? Jul 09 21:10:36 Does the chair have wheels? Jul 09 21:10:45 Because you're potentially mobile if that is the case. Jul 09 21:11:02 read as "are you a chair per chance" Jul 09 21:11:21 a chair is also a platform ... mobile platform... hmm Jul 09 21:11:29 but does it support HTML5 Jul 09 21:11:30 i think this is one of the best presentations on mobile implementation strategies i have seen so far. http://martinfowler.com/articles/multiMobile/ Jul 09 21:11:39 I dunno but it's definitely broken. Jul 09 21:11:41 is it cross-platform? Jul 09 21:11:52 which implies canadiancow is overweight... Jul 09 21:11:54 Therefore, because i develop a sweatmark on my office chair, i develop for mobile Jul 09 21:12:25 and canadiancow develops for mobile as well Jul 09 21:13:29 I have several app sections which download stuff from the internet. In all, I would like to show a "loading screen" (just a progress bar and some text). For this, I have an XML file. But if I want each section of the app to be a fragment, how should I implement the loading/info screen? I want the logic to be in one fragment (Section 1, Section 2...), so I cannot put the logic into a LoadingFragment and replace it with Section1Frag Jul 09 21:13:29 ment etc. Should I put the ProgressBar/TextView on top of section1_fragment.xml and just hide the rest until I need it? Jul 09 21:13:39 EddieRingle: just saw that (github raises funding). i wonder if they will turn into something like collabnet Jul 09 21:13:55 g00s: I think the lack of VC is what made them awesome Jul 09 21:14:08 sometimes, that is the case Jul 09 21:14:19 the second you have to listen to someone else is the second your vision goes downhill Jul 09 21:14:27 * g00s thinks about mint.com Jul 09 21:14:29 see: every public company (barring a few) Jul 09 21:15:02 why did they do it Jul 09 21:15:03 i dont get it Jul 09 21:15:08 their second paragraph said "we dont need money" Jul 09 21:15:14 so why the fuck are they taking it Jul 09 21:15:17 so they could expand to more clients, from what they say Jul 09 21:15:24 I'm looking for a good way to implement a sort of navigation-controller-style application flow, a la iOS. Specifically, I'd like the top action bar to have a "back" button. What's the best way to do this? Subclass the action bar? Jul 09 21:15:26 so...they DO need money? Jul 09 21:17:58 canadiancow> I'll happily take 100 milion in VC on any project I'm working on Jul 09 21:18:08 getting paid ... Jul 09 21:18:18 i just dont like how they worded it Jul 09 21:18:35 "we dont need it, we're just sell-outs" Jul 09 21:18:51 well at least they're honest about it Jul 09 21:18:51 you so mad Jul 09 21:19:07 if i had my own profitable company that paid me as much as i make now, i dont know if id want funding Jul 09 21:19:12 thats a lot better than all the guys who take the money and pretend they're not sellouts Jul 09 21:19:17 i wouldnt want to have to deal with investors Jul 09 21:19:58 sure dealing with investors is a pain, but the money'd be worth it for the initial surge Jul 09 21:20:21 in general capital injection gives you a lot of security you didn't have before Jul 09 21:20:27 even if you could continue without Jul 09 21:20:36 but github isnt exactly sitting there losing money Jul 09 21:20:39 they seemed pretty profitable Jul 09 21:20:51 what are you basing that on Jul 09 21:20:56 the blog post Jul 09 21:21:04 and my general opinion of their business model Jul 09 21:21:10 and how much they charge for shit like github enterprise Jul 09 21:21:53 i wonder how popular dvcs in larger enterprises Jul 09 21:22:00 no advertising...probably less than you think man Jul 09 21:22:02 we use it Jul 09 21:22:11 plus competitors like beanstalk Jul 09 21:22:15 canadiancow|work: larger enterprises :) Jul 09 21:22:16 much better imo Jul 09 21:22:21 how large is "larger" Jul 09 21:22:30 where is said blogpost ? I keep seeing references to it but no links Jul 09 21:22:31 deutch telecom, at&t Jul 09 21:22:35 oh Jul 09 21:22:57 we know google uses p4 :) Jul 09 21:23:55 git is good Jul 09 21:24:23 git = git is terrible Jul 09 21:24:33 excelent point Jul 09 21:24:38 I'll stop using it immediatley Jul 09 21:24:41 :) Jul 09 21:24:44 lol Jul 09 21:26:56 git = git is terrific Jul 09 21:27:01 lawyer'd! Jul 09 21:27:04 git off my lawn Jul 09 21:29:01 I guess more it would be more accurate to say git = git is tolerable Jul 09 21:29:31 ive never used something i like more Jul 09 21:30:04 Jul 09 21:30:47 dont get it Jul 09 21:31:37 but your mom did Jul 09 21:33:23 I wonder if ex-Acorn people use git... (British Slang . a foolish or contemptible person.) Jul 09 21:34:19 oh snap! Jul 09 21:34:20 h Jul 09 21:34:21 ahaha Jul 09 21:34:30 well played SimonVT Jul 09 21:37:31 oh canadiancow is pissed now Jul 09 21:37:41 SimonVT: look what you did ! Jul 09 21:38:04 JakeWharton: Bummed I missed you at IO. Have any recommendations for putting a map in a fragment / ABS tab? Jul 09 21:38:17 I found a few solutions, but they're pretty hacky. Jul 09 21:38:34 not really Jul 09 21:38:46 nothing other than what's already known Jul 09 21:38:54 ImageView + static maps API Jul 09 21:38:59 :( Jul 09 21:39:05 I need interactivity. Jul 09 21:39:24 there's SherlockMapActivity Jul 09 21:42:21 Right, but I need the map inside a tab / fragment. Jul 09 21:42:23 le sigh. Jul 09 21:42:30 don't know that Jul 09 21:42:38 that's totally a framework/support library limitation Jul 09 21:45:34 i have a string-array defined in my strings.xml, i populate a spinner with that string array, before i do that i want to pass through a string for one of the items in the array, so i have %1$s in the array.. how do i pass my value to fill it? Jul 09 21:46:20 You have to get the string array and do it manually Jul 09 21:46:21 I'm having trouble getting a multiple line TextView to use ellipsize to give ellipses at the end of 2 lines if the text is too long Jul 09 21:46:43 mainly that setting marlines to 2, and then ellipsize to end is not doing it Jul 09 21:46:47 maxlines* Jul 09 21:47:23 wow, so much fame here ! Jul 09 21:47:51 g00s: I think canadiancow just realised we wouldn't stop messing with him, so he left :p Jul 09 21:47:53 irc never die ! Jul 09 21:49:51 ugg, do it manually Jul 09 22:00:36 Steve Wozniak on Microsoft Surface: 'Steve Jobs came back reincarnated at Microsoft' ; i always found the woz a fascinating character Jul 09 22:00:53 he's just a geek; calls it like it is Jul 09 22:01:31 except surface is silly Jul 09 22:01:36 it will be like $700 Jul 09 22:01:59 If I remember correctly Microsoft had a table surface previously which you could use for card payments and so on Jul 09 22:02:10 danharibo: remember what the xoom cost when it came out :) Jul 09 22:02:21 remember how much of a success xoom was? Jul 09 22:02:24 g00s: ? Jul 09 22:02:27 surface is meh Jul 09 22:02:28 oh yeah Jul 09 22:02:37 The Xoom isn't being released in the future Jul 09 22:02:46 they sold, like, hundreds of xooms! Jul 09 22:02:48 This was the surface before http://dvice.com/archives/2008/04/microsoft-surfa.php Jul 09 22:02:54 are they reusing the name Surface? Jul 09 22:02:58 luyang: yes Jul 09 22:03:01 I was like… that has existed long ago Jul 09 22:03:09 reusing product names is just weird Jul 09 22:03:36 it's ok, they're just reusing everyone else's ideas, they figured reusing their own would only be fitting Jul 09 22:03:36 most of the public wouldn't know what a surface was though, only people who read tech mags/blogs Jul 09 22:03:45 oGMo: :) Jul 09 22:03:49 luyang: http://www.collegehumor.com/video/1180480/microsoft-surface-parody Jul 09 22:04:16 I don't see a video Jul 09 22:04:40 could it be due to the many blocked things by ghostery Jul 09 22:04:47 who knows Jul 09 22:04:58 I refuse to give up Ghostery Jul 09 22:05:05 it's the best browser plugin Jul 09 22:05:29 http://www.ghostery.com/ Jul 09 22:05:30 apparently not Jul 09 22:05:42 I don't know why you're pimping something that quite obviously just failed you Jul 09 22:05:55 is ghostery like collusion ? Jul 09 22:06:07 OK so I pause blocking Jul 09 22:07:45 g00s: I dont know… ghostery blocks all the trackers Jul 09 22:08:30 g00s: background: http://www.ted.com/talks/gary_kovacs_tracking_the_trackers.html Jul 09 22:08:36 the collegehumor site started playing a video on lego millenium falcon Jul 09 22:08:42 legos ftw! Jul 09 22:08:53 luyang: thanks Jul 09 22:09:03 you're welcome Jul 09 22:14:17 g00s: you're right collusion is a good related plugin too Jul 09 22:22:08 hi. internal storage question. is there a portable way to create new subdirs in the internal storage and set the file permissions to be private? Jul 09 22:22:23 it looks like 1) the internal file storage api lets you make files private but does not let you make subdirs Jul 09 22:22:37 and 2) there are no portable APIs for making files private if you make them iwth other java APIs Jul 09 22:25:30 ahh, Contact has a getDir for that. nevermind. Jul 09 22:53:53 Anyone know why my seekbar is disappearing when i try to change it's invalidated state from a non-ui thread? Jul 09 22:54:42 Setting invalidate using the runOnUiThread method btw. Jul 09 23:24:18 hey, has anyone here used the powervr sdk to do opengles development? Jul 09 23:29:01 hmmm how would I change the theme on the text edit action mode? Jul 09 23:30:53 canurabus: http://www.reddit.com/r/androiddev/comments/waq8s Jul 09 23:31:33 canurabus, that has another SDK to do opengl - SDL Jul 09 23:31:53 is there a big code push atm? repo sync always gives me more stuff to download Jul 09 23:32:04 yep Jul 09 23:32:06 JB Jul 09 23:32:16 should I be excited Jul 09 23:32:21 I cant see anything in the commit logs interesting Jul 09 23:32:30 if its really JB AOSP I will need new pants. Jul 09 23:32:33 Ologn, I know what SDL is... I'm just trying to emulate OpenGLES on my desktop. Jul 09 23:33:24 Why does openRawResource() return InputStream and openFileInput() return FileInputStream? Jul 09 23:33:38 Can I cast one of them to the other for the same effect or something? Jul 09 23:33:39 canurabus, ah. I've usually just sent code to an Android emulator. Haven't tried other methods. Jul 09 23:33:53 Kake_Fisk: A FileInputStream is a more specific kind of InputStream Jul 09 23:34:10 you should always be able to cast a FIS to a IS but not necessarily the other way around Jul 09 23:34:22 Yeah, okay. Thanks Jul 09 23:36:30 thanks r3pek, looked at the mailing list and am now frantically looking for new pants. Jul 09 23:36:59 canurabus, although I talked to a guy once who used Angle. I think AMD and Nvidia have their own OpenGL ES on Windows hooks as well. Jul 09 23:38:10 no binaries for Nexus S though Jul 09 23:38:11 canurabus: Mali has GLES libraries that run on top of modern GL. Mesa has one too Jul 09 23:38:11 Gah Jul 09 23:39:28 gparent: lol :) yes, please do :P Jul 10 00:01:26 JakeWharton: Jul 10 00:02:33 JakeWharton: Jul 10 00:02:36 new File("./") will get the current directory? Jul 10 00:02:37 JakeWharton: Im having a question/problem with ABS. It's probably just going to be a question though Jul 10 00:02:53 Or working directory or whatever it is called Jul 10 00:03:01 do we have a changelog of 4.1->4.1.1 ? Jul 10 00:03:46 canadiancow: 4.1.1 of android ? Jul 10 00:03:52 yes Jul 10 00:04:05 There's a 4.1.1* Jul 10 00:04:07 ? Jul 10 00:04:10 egad Jul 10 00:04:11 i guess i could just download the whole thing and do a git diff Jul 10 00:04:16 what's with all the highlights Jul 10 00:04:17 Since when? Jul 10 00:04:26 an hour ago? Jul 10 00:04:32 Heh Jul 10 00:04:42 Is it a new api version also? Jul 10 00:04:47 dont think so Jul 10 00:05:45 was there ever a 4.1? Jul 10 00:06:02 jellybean? Jul 10 00:06:12 the i/o release? Jul 10 00:06:33 that wasn't a final build Jul 10 00:06:55 ok. not what i was asking though :P Jul 10 00:07:05 fuck my fucking macbook keeps kernel panicing when it fucking boots Jul 10 00:07:08 and people wonder why i hate apple Jul 10 00:07:12 OH MACS NEVER CRASH Jul 10 00:07:14 NEVER Jul 10 00:07:15 EVER Jul 10 00:07:18 Jul 10 00:07:45 they don't crash in 'merica Jul 10 00:08:46 and everything i read online says "reinstall lion" Jul 10 00:08:48 like ffs Jul 10 00:08:58 for years, it was making fun of windows "oh just reinstall the os" Jul 10 00:09:40 canadiancow: ive only seen a mac kernel panic like.. once.. Called apple about it and they are like "kernel.. panic? what?" Jul 10 00:09:48 mine is doing it on boot Jul 10 00:09:54 yeah my brothers did too Jul 10 00:10:00 what are you talking aboot willis Jul 10 00:10:49 at least i can get into the recovery Jul 10 00:10:51 i'll try to repair the disk Jul 10 00:10:55 JakeWharton: you said that so much like a white boy Jul 10 00:10:57 because thats like the only reasonalbe option there Jul 10 00:11:01 he is a white boy... Jul 10 00:11:13 its "what u talkin' about willis" Jul 10 00:11:13 canadiancow: do ya have a time machine backup of recently (before the failure)? Jul 10 00:11:28 i dont even know what time machine is Jul 10 00:11:41 my main partition on that machine is the bootcamp partition :P Jul 10 00:11:49 the only reason i ever try to get into mac is for aosp stuff Jul 10 00:11:51 canadiancow: its a pretty nifty data backup util.. you could of used it to replace your kernel with a wokring kernel Jul 10 00:12:26 do you get any useful output in verbose mode or no? Jul 10 00:12:49 verbose mode? Jul 10 00:12:55 whats the warranty on these things Jul 10 00:13:09 yeah, you can boot your mac in a console mode, boot stuff spits out to the screen, may even be lucky and get a prompt Jul 10 00:13:15 how Jul 10 00:13:21 ummm.. Jul 10 00:13:26 watevs i'll google it Jul 10 00:13:33 command V Jul 10 00:13:40 or command S for single user mode Jul 10 00:13:55 i get slightly more with verbose than without Jul 10 00:14:03 interesting Jul 10 00:14:41 panic(cpu 0 caller 0xffffff800064ba7b): "Unable to find driver for this platform: \"ACPI\".\n"@/SourceCache/xnu/xnu-1699.26.8/iokit/Kernel/IOPlatformExpert.cpp:1504 Jul 10 00:15:10 oh eww.. looks like a kext took a crap on ya Jul 10 00:15:12 fuck everyone suggests "reinstall mac os x" Jul 10 00:15:21 DialogPreference, why you crash unless I subclass you :( Jul 10 00:15:43 You can also restore from a recent Time Machine backup to clear the problem, which is from a faulty driver that Apple recently issued: Jul 10 00:15:45 really? Jul 10 00:15:47 apple caused this? Jul 10 00:15:50 ffs Jul 10 00:15:58 exactly what I said ^^; Jul 10 00:16:45 QubeZ: if i typed it like that I could get the double "aboot" pun in Jul 10 00:16:54 If you can find what the driver was.. I cant see why you cant just replace the kext canadiancow Jul 10 00:17:12 yea it looks like one option involves another working mac Jul 10 00:17:20 and im sure i can find someone with a working mac :P Jul 10 00:17:23 What? just extract it from an OS X disc Jul 10 00:17:42 Whats the working mac option..? I have a mac.. I think its running 10.6 Jul 10 00:17:50 and my bro has a 10.7 Jul 10 00:17:57 http://reviews.cnet.com/8301-13727_7-57451440-263/thunderbolt-update-plaguing-macbook-pros-with-kernel-panics/?tag=txt;title Jul 10 00:18:38 Thats rediculous Jul 10 00:18:53 cant you just get the combo updater, chroot into the faulty mac from a recov environment and apply it? Jul 10 00:19:15 i cant boot into safe mode Jul 10 00:19:20 i dont know... can i do that from recovery? Jul 10 00:19:38 I dont know, can you? I dont use OS X anymore Jul 10 00:19:48 I cant see why not unless you cant get a Terminal Jul 10 00:19:53 can i get a terminal? :P Jul 10 00:20:00 I DONT FSCKING KNOW! GOD! Jul 10 00:20:06 this is what we get for acow using a Mac Jul 10 00:20:18 windows is my primary OS on that thing Jul 10 00:20:22 I think this convo belongs in #mac >.> Jul 10 00:20:30 nah, it's an apple rant Jul 10 00:20:31 so it's ok here Jul 10 00:20:33 :) Jul 10 00:20:39 windows as primary os? ohh... danger! :D Jul 10 00:20:53 i hate the terminal on windows.. Jul 10 00:20:58 On a mac as well Jul 10 00:21:06 I'm on a boat Jul 10 00:21:14 canadiancow: what is your recov? is it your OS X disc? Jul 10 00:21:21 JakeWharton: good one :) Jul 10 00:21:24 no its like... one of the three boot options Jul 10 00:21:27 os x, windows, recovery Jul 10 00:21:36 ohh Jul 10 00:23:20 canadiancow: hmm.. I wonder if an OS X vm could help you here.. >_> Jul 10 00:23:27 assuming you had a box with the right plugs Jul 10 00:23:58 dude! you can get a terminal in recovery environment Jul 10 00:27:22 JakeWharton: Im having a question/problem with ABS. It's probably just going to be a question though Jul 10 00:29:53 ok Jul 10 00:52:07 Can I make my app listen for request from given host or internet service? Jul 10 00:52:31 you can send data to it from a web service Jul 10 00:52:52 http://developer.android.com/guide/google/gcm/index.html Jul 10 00:54:40 exatly what I want.. to send that from web service Jul 10 00:55:24 Hope this is not payed :) Jul 10 00:55:34 Jabo thanks Jul 10 00:56:41 np Jul 10 01:48:41 there's no version 4.1 drop down on the bug report form Jul 10 01:51:51 oh noes Jul 10 01:52:22 HOW DO I FILE BUGS Jul 10 01:52:40 My mom sent me a PDF and it crashed Adobe Reader 16 Pro. I must file this immediately Jul 10 01:55:11 And I filed it incorrectly anyways. Like an idiot. Jul 10 01:55:35 4.1 does not have any bugs Jul 10 01:55:40 its user error Jul 10 01:56:52 JakeWharton: source is out, fixit yourself Jul 10 01:57:10 It is? Jul 10 01:57:15 it's not a bug, it's a feature request Jul 10 01:57:16 yup Jul 10 01:57:24 my repo sync failed because of a stupid .DS_Store file Jul 10 01:57:37 s/failed/stopped/ Jul 10 01:57:55 that's a good one: "4.1 does not have any bugs" Jul 10 01:58:25 JakeWharton: hmm. what happens if you put .DS_Store into your .gitignore filters? Jul 10 01:58:43 global .gitignore? Hmm... Jul 10 02:00:04 Unrelated, the individual git projects get in this weird state where they don't report that they're on any branch but have changed files Jul 10 02:00:11 or you could just discipline yourself to never actually open Finder windows into your source tree :) Jul 10 02:00:16 No matter what combination of cleaning, resetting, and checkouts they remain modified Jul 10 02:00:31 wacky Jul 10 02:00:34 i have a handy alias to nuke all .DS_Stores :) Jul 10 02:00:45 i press the red button often Jul 10 02:01:11 if only it killed the idiot who made them Jul 10 02:01:19 filesystem metadata much? Jul 10 02:04:19 Is it possible for me, in XML, to set the height of one element to another's height? Jul 10 02:04:35 Normally I'd think no, but people here know more than I do. Jul 10 02:05:01 no Jul 10 02:05:08 but you can define a style Jul 10 02:05:45 But the style has to have a… constant width right? Jul 10 02:06:13 *height Jul 10 02:06:19 oh, you want something dynamic. like ; whatever this one winds up being, make this one the same Jul 10 02:06:27 ctate: http://codr.cc/s/9f669b60/ Jul 10 02:06:39 crazy right? Jul 10 02:06:43 hwrd|work: relativelayout might be of help Jul 10 02:06:52 g00s: exactly. Jul 10 02:07:00 wabz: Both of my elements are in a relative layout. Jul 10 02:07:10 are they next to eachother? Jul 10 02:07:15 It's really easy just to do element1.setWidth(elsment2.getWidth()) Jul 10 02:07:28 wabz: No, they are on top of each other. Trying to do some gone/visible magic. Jul 10 02:08:14 if one of them is the source of truth you can probably align_top/align_bottom Jul 10 02:08:47 SOS http://stackoverflow.com/questions/11404281/surfacecreated-not-called Jul 10 02:09:33 hwrd|work: You probably need to extend your viewgroup and do some magic in onMeasure Jul 10 02:10:10 SimonVT: Yeah. That's what I was afraid of. I think i'm just going to do a.setHeight(b.getHeight()) :-) Jul 10 02:10:27 Or that :p Jul 10 02:10:37 can you send a non-broadcast intent to a static receiever? Jul 10 02:13:48 Use GridLayout Jul 10 02:15:28 I'm not sure who that was directed to… just general advice Jul 10 02:15:28 gridlayout makes each cell equal in size? Jul 10 02:15:53 I don't remember to be honest. If i'm being dishonest… yes, yes it does. Jul 10 02:20:21 JW: sometimes your comments make me worried about my use of ABS, but I can't really argue with results Jul 10 02:21:11 question, with http://developer.android.com/reference/android/app/AlertDialog.Builder.html#setMessage(int) the messageID is what exactly? Jul 10 02:21:52 :) Jul 10 02:22:05 I'm mostly serious Jul 10 02:22:10 Sometimes Jul 10 02:22:25 Whats the color code for transparency? Jul 10 02:22:36 agargiulo: it's a resource id - R.string.foo Jul 10 02:22:44 0x00696969 Jul 10 02:23:00 thanks! Jul 10 02:23:05 ..lol Jul 10 02:23:09 also, android.R.color.transparent Jul 10 02:23:09 ;p Jul 10 02:23:14 wabz: thanks Jul 10 02:23:18 0x00anything will work Jul 10 02:23:28 there are some bugs around 0x00000000 though so don't use that Jul 10 02:23:47 can someone help me with this? http://stackoverflow.com/questions/11404281/surfacecreated-not-called Jul 10 02:24:05 agargiulo: messageId is anything that you want Jul 10 02:24:17 you declare it when sending and then you react to it on the receiving side Jul 10 02:24:22 it's just a way to differentiate events Jul 10 02:24:26 wait Jul 10 02:24:29 totally ignore what I just said Jul 10 02:24:35 I thought you were talking about Handlers Jul 10 02:24:50 lol Jul 10 02:24:54 messageId is a string resource ID for the AlertDialog's message body Jul 10 02:25:09 e.g., R.string.hey_bro_you_cant_click_that Jul 10 02:25:48 R.string.u_cant_touch_this Jul 10 02:27:03 thanks Jul 10 02:27:09 ctate, romainguy: my so post: http://stackoverflow.com/questions/11404281/surfacecreated-not-called Jul 10 02:30:58 i absolutely cannot get this git repo in AOSP back to a working state Jul 10 02:31:09 if I rm -rf it will a repo sync bring it back? Jul 10 02:32:10 AOSP? Jul 10 02:32:22 android open source project Jul 10 02:33:05 what happened to the repo? Jul 10 02:33:43 a bunch of files in it are marked as changed (with changes) and HEAD is pointed to an arbitrary SHA rather than a branch Jul 10 02:33:53 nothing I do will restore it to a clean working dir Jul 10 02:34:16 git reset --hard HEAD, git reset --hard m/master, git reset --hard aosp/master, git checkout -- *, rm -rf * && git reset --hard HEAD Jul 10 02:34:29 i'm not in the middle of a rebase either Jul 10 02:35:29 no clue sorry Jul 10 02:35:37 I'm not /that/ good with git yet Jul 10 02:36:38 this is the second time this has happened and I don't remember how I corrected it last time Jul 10 02:38:05 oh god, X forwarding to get android sdk manager is interesting Jul 10 02:38:52 Has anyone in here attempted to get the Galaxy Nexus to fake having a hardware menu button so that the overflow button won't show in apps like gmail and the play store? I'm trying to figure out if it's possible without screwing things up. Jul 10 02:39:17 Wrong channel Jul 10 02:39:21 Also, why would you do that :F Jul 10 02:39:31 what's wrong with the overflow button? Jul 10 02:39:43 It's not needed if you have the navbar modded to have a menu button Jul 10 02:39:58 change its targetSdkVersion to 10 Jul 10 02:40:05 minor I know, but it's what I'm hoping for. Jul 10 02:41:18 as for the "wrong IRC channel", what is the right one? I'm new to irc and I've already bounced around a bit. Jul 10 02:42:04 JakeWharton: Wouldn't that be for writing a program? I'm guessing this would require moding device configs. Jul 10 02:42:37 you have to pull the apk, use apktool to extract it, modify the manifest, re-apk and push it back to your device Jul 10 02:42:41 and you have to be rooted to do that Jul 10 02:44:23 thanks jake, that's probably the best info I've heard yet. Jul 10 02:46:36 can you guys at least upvote my stack overflow post if you can't help? http://stackoverflow.com/questions/11404281/surfacecreated-not-called Jul 10 02:47:14 JakeWharton: i saw that but a checkout then reset fixed it Jul 10 02:48:09 JakeWharton: but repo generally leaves you on a specific tagged commit rather than a specific branch AFAIK Jul 10 02:48:35 hmm true Jul 10 02:49:57 is there a point to using strings.xml for something that only appears once? Jul 10 02:50:06 yes, localization Jul 10 02:50:11 centralization Jul 10 02:50:20 okay Jul 10 02:50:23 other words that end in '-zation' Jul 10 02:50:28 hehe Jul 10 02:51:10 JakeWharton: Jul 10 02:51:21 ..... Jul 10 02:59:08 heh, my first computer http://i.imgur.com/2S3WR.jpg … for real :) Jul 10 02:59:45 Does anyone know of a library that can write .wav files for me? More specifically the header portion of the file. **** ENDING LOGGING AT Tue Jul 10 02:59:58 2012