**** BEGIN LOGGING AT Mon Feb 13 02:59:58 2012 Feb 13 03:01:57 getEntry failing because entryIndex 162 is beyond type entryCount 102 Feb 13 03:01:58 que? Feb 13 03:02:03 my app wont start Feb 13 03:03:41 xorgate: that's the exception message? Feb 13 03:03:50 its in logcat Feb 13 03:03:59 WARN/ResourceType(10681) Feb 13 03:04:15 dunno what about my resources would be wrong Feb 13 03:05:26 you've cleaned your project? Feb 13 03:05:51 i rebuilt it in idea Feb 13 03:07:54 also getting a bunch of WARN/Addapter(10654): info.icon:2130837541 Feb 13 03:09:42 hm works on emu though Feb 13 03:13:36 kinda hate it when a reboot fixes it Feb 13 03:20:10 Hey, git question. Feb 13 03:20:17 When you use git merge. Feb 13 03:20:29 Like say I have three branches, master, a and b. Feb 13 03:20:31 I switch to b. Feb 13 03:20:39 Then use git merge a. Feb 13 03:20:53 Would that merge a into b in branch b, and leave a and master alone? Feb 13 03:21:16 Or would it merge a into b, delete a. Feb 13 03:21:21 Or merge a into master, or whatever. Feb 13 03:25:06 chrome beta is fantastic, I can't wait until all apps look this good! Feb 13 03:25:55 num1: url? Feb 13 03:26:16 https://market.android.com/details?id=com.android.chrome&hl=en Feb 13 03:26:28 ta Feb 13 03:26:49 only for ICS, only for limited countries, no flash... pretty good otherwise Feb 13 03:26:55 The network stack would be cool to look through, but I wish I had sources to the UI so badly Feb 13 03:26:57 fuck flash Feb 13 03:27:09 is ics on nexus one? Feb 13 03:27:14 the source is out there Feb 13 03:27:15 switching between tabs is beautiful Feb 13 03:27:17 I don't think so Feb 13 03:27:24 I think the nexus S has it though Feb 13 03:27:32 Leeds really? where? Feb 13 03:27:51 well, 'chromium' for Android: http://chromium-browser-source.commondatastorage.googleapis.com/chrome_android.v0.16.4130.199.tgz Feb 13 03:28:34 Leeds you might've just made my week Feb 13 03:28:35 thanks Feb 13 03:28:35 neekers: CM9 might support N1 Feb 13 03:28:53 num1: I don't know how much of the end product is there Feb 13 03:29:03 see FAQ1 http://code.google.com/chrome/mobile/docs/faq.html Feb 13 03:29:38 thanks again, reading through all of it. Sounds pretty hopeful though, like they plan to open source soon Feb 13 03:30:24 I really do not understand the country limiting Feb 13 03:30:52 not least because it took about 2 minutes after release for someone to rip the APK and distribute it globally - all it means is that those of us outside the blessed countries don't get updates Feb 13 03:31:18 it makes no sense at all Feb 13 03:31:46 all I can think of is they licensed some patents and are only allowed to distribute within certain countries Feb 13 03:31:57 the only thing I can imagine is that there is some policy which says that apps/sites/services *must* not be available in areas for which they aren't localised Feb 13 03:32:00 but that doesn't make sense since chromium is… open source Feb 13 03:32:33 which for a beta... you need to put a big warning which says "only available in some languages" - that's okay, at least for me as an English-speaker :) Feb 13 03:32:45 that would make sense, but I assume the amount of effort required to translate it is tiny compared to the effort to build it in the first place Feb 13 03:32:48 why not just go all th eway Feb 13 03:33:18 but translating something half done is a waste of effort, trust me Feb 13 03:33:57 right, so you say "limited languages and we're working on more" - but that doesn't mean you have to block it from all countries whose languages aren't provided Feb 13 03:34:16 not to mention that I live in a bilingual (or possibly trilingual, it's not clear) place, one of whose languages is English Feb 13 03:34:26 the localised locks on the market catch me out every-time, everyone forgets cambodia. i have to keep a UK sim to put in every-time i want to install something new and exciting Feb 13 03:35:20 that's annoying alex_PP :/ Feb 13 03:35:45 very Feb 13 03:35:54 I hate all the locks that are based on the country you're from Feb 13 03:36:05 there was a time when even google maps updates wouldn't work Feb 13 03:36:23 the ones for paid apps /kinda/ make sense, since google has to make sense with the payment processors from the countries Feb 13 03:36:31 market enabler worked on my old phone, but i can't be arsed to root this one Feb 13 03:36:40 but if I want to publish an app, it should be easy to just let everybody download it no matter what Feb 13 03:36:51 haha Feb 13 03:36:55 when you publish you cna select all countries Feb 13 03:37:05 yeah but only all market countries :( Feb 13 03:37:09 actually, the default is 'everywhere' - except for countries where there is no market at all Feb 13 03:37:15 there's a box for the rest of the world too Feb 13 03:37:23 then you get weird stuff, like the situation in Taiwan Feb 13 03:37:31 hm… is that new? Feb 13 03:37:47 yep there it is Feb 13 03:38:18 checked it, looks like ukraine and cameroon were missing out Feb 13 03:38:50 'the situation in Taiwan' being that the law says you have something like 14 days to refund pretty much anything... so rather than extending the refund time for just Taiwan, Google have turned off paid apps Feb 13 03:38:58 haahahahah Feb 13 03:40:03 14 days is a bit crazy Feb 13 03:40:09 ah, 7 days for downloaded stuff, on the basis that you can only buy it sight-unseen Feb 13 03:40:27 but more than 15 min would be nice Feb 13 03:41:04 the old 24 hours was nice Feb 13 03:41:19 back before the big game companies demanded a much smaller window Feb 13 03:41:40 15 minutes kills me all the time, I usually buy stuff on the subway, and can never seem to get connectivity in time to get a refund for shitty apps Feb 13 03:41:51 24 hours was fantastic Feb 13 03:42:12 The window is only 15 minutes? Cool, I'm going to start writing paid apps Feb 13 03:42:23 lol Feb 13 03:42:31 I've hit a weird one recently - an game which has in-app unlocking, and offers you a discount on an unlock once you're about halfway through the free portion Feb 13 03:42:33 don't get too excited, that's what ratings are for Feb 13 03:42:43 hm… that's cool Feb 13 03:42:54 which doesn't work if you happen to be on an intercontinental plane at the time... Feb 13 03:43:13 what does it mean to have a db transaction in "exclusive mode" versus "immediate mode" ? Feb 13 03:43:49 used to know, gimme a sec Feb 13 03:44:09 one will allow dirty reads, i think Feb 13 03:44:39 I've been reading the Android dev guides, and some of them say don't put a lot of stuff in onCreate(), put it later in the Activity lifecycle chain Feb 13 03:45:23 I don't think most people follow that...most of my stuff is in onCreate()...I might start migrating instructions to later in the life cycle, see if crashes happen less... Feb 13 03:45:42 so the default is "deferred" which doesn't start the transaction until your first read/write operation Feb 13 03:45:59 immediate starts the transaction right when you BEGIN IMMEDIATE Feb 13 03:46:04 Ologn the idea is you can lazily load some things on the fly to improve the impression of performance Feb 13 03:46:25 and exclusive, alex_PP is right, doesn't allow dirty reads. Feb 13 03:46:48 dirty read is when a transaction is in progress, someone else reads the db? Feb 13 03:46:52 yep Feb 13 03:46:57 http://www.sqlite.org/lang_transaction.html Feb 13 03:47:17 well i guess exclusive is for me Feb 13 03:47:39 cheers fellas Feb 13 03:47:51 careful with it, exclusive means you have no opportunities later to speed things up by adding more threads Feb 13 03:48:33 i have a db and want to update it from the internets Feb 13 03:48:39 ron_frown : yes. The kind of stuff I'd move to onStart and onResume would be calls to SQLite, network calls and such Feb 13 03:48:45 so it's ok to halt things in order to do this Feb 13 03:48:50 stupid, the chromium for android sources don't include any of the UI stuff :( Feb 13 03:48:57 wlel just keep in min Feb 13 03:48:58 mind Feb 13 03:49:06 those lifecycle events have specific purposes Feb 13 03:49:25 you could always start up the static data loads etc in oncreate with a asynch callback Feb 13 03:49:36 stuff that actually needs to be refreshed on resume and on paush Feb 13 03:49:38 pause Feb 13 03:49:39 do it there Feb 13 03:49:55 personally my onCreate()s only do things like set up listeners and findViewById and get the activity into a "constructed" state. Feb 13 03:50:12 then I save any heavy lifting or populating data for onStart() and onResume() Feb 13 03:50:31 onStart() gets it into a "ready Feb 13 03:50:33 " state Feb 13 03:50:49 http://developer.android.com/guide/practices/design/responsiveness.html Feb 13 03:50:55 and onResume() gets it into the "crap I'm about to go onstage, start the animations and shit" state Feb 13 03:51:27 "Activities should do as little as possible to set up in key life-cycle methods such as onCreate() and onResume()" ... and the paragraph around that, although I won't paste it all... Feb 13 03:51:57 I got some ANRs and had never known that advice until ANRs started popping up for an app Feb 13 03:52:27 Ologn you're right, don't do any processing directly in those methods, because they use the UI thread Feb 13 03:52:51 if you have to hit the database or network or do computations use a background thread Feb 13 03:53:48 Yaa, I use ASyncTasks to do that stuff usually Feb 13 03:55:14 careful with AsyncTasks, if you rely on them too much things will break Feb 13 03:55:36 actually scratch that, that's FUD Feb 13 03:55:46 the times they break are fairly rare Feb 13 04:10:29 p_l, it's not so much backups Feb 13 04:10:40 I .gitignore things like IDE files Feb 13 04:10:46 so all those disappeared :( Feb 13 04:10:56 ouch Feb 13 04:11:38 oh well Feb 13 04:11:41 got rid of all the other crap too Feb 13 04:11:52 i should take this opportunity to reclone since my .git dir has problems too Feb 13 04:12:23 fire Feb 13 04:12:33 whoops, wrong window Feb 13 04:16:06 oi Feb 13 04:18:52 When Android 2.1 says that's it's rewriting a method to replace an invalid opcode would that cause problems if a class has already used reflection to get a Method instance for that same method? Feb 13 04:19:30 I've always wondered about thatstuff Feb 13 04:20:03 I'm getting InvocationWhateverExceptions when performing subsequent animations on a view using my compat Animation framework backport Feb 13 04:20:07 I think it doesn't matter, the loaded class is modified in place, doesn't matter if it's been loaded from reflection Feb 13 04:20:09 oddly enough, the first animation works perfectly Feb 13 04:20:36 InvocationTargetException Feb 13 04:20:38 InvocationTargetException is a wrapper, whats the getCause() ? Feb 13 04:21:01 that just means the reflected method call threw an exception of *some* type Feb 13 04:21:20 look the stacktrace to "Caused by: ... " Feb 13 04:22:36 it's a caught and logged exception Feb 13 04:22:39 i'm tracking it down Feb 13 04:26:54 clever girl Feb 13 04:27:05 02-13 04:24:56.078: W/System.err(725): Caused by: java.lang.NullPointerException Feb 13 04:27:18 hmm Feb 13 04:28:40 well Feb 13 04:28:46 that fixed the errors being logged Feb 13 04:28:54 but every animation after the first doesn't work Feb 13 04:28:58 so i guess that's progress Feb 13 04:29:50 i didn't realize that was a wrapper Feb 13 04:29:50 ohey JakeWharton. Thanks for ViewPagerIndicator and ActionBarSherlock. They're helping me out a lot Feb 13 04:30:04 you're welcome Feb 13 04:30:10 be sure to let me know if you release an app that uses them Feb 13 04:30:24 i like seeing what people create Feb 13 04:30:32 absolutely, I'll give you a pull-request when we launch next month Feb 13 04:30:42 excellent Feb 13 04:33:17 so just yesterday, I finally realized that there is a settings shortcut built into the status bar pulldown on ICS Feb 13 04:33:42 I had either been using a launcher icon or paging through the apps to get to it :-( Feb 13 04:33:54 was very used to the menu->settings on GB Feb 13 04:35:50 haha it's easy to miss Feb 13 04:36:22 my favorite new part is if you drag an icon from the tray you can get directly into "App Info" and force close it Feb 13 04:36:57 that and the uninstall Feb 13 04:37:05 still not as easy as iOS's double tap, but a huge improvement over trying to close apps by fishing through the levels of settings Feb 13 04:37:09 uninstall is AWESOME Feb 13 04:37:12 I spotted that right away Feb 13 04:37:15 yep the uninstall is there too, SUPER convenient Feb 13 04:37:23 Can someone explain to me how to create a Indeterminate Progress Dialog using the new method. Feb 13 04:37:25 ? Feb 13 04:37:43 uninstall as well as 'app info' Feb 13 04:37:43 using the dialog fragment? Do i have to add the dialog to a layout file? I can't just instantiate a progress dialog on the spot? Feb 13 04:38:00 Also convenient, the market icon in the app drawer on the Gnex Feb 13 04:40:10 hwrd_work, why bother with a fragment in that case Feb 13 04:40:26 pfn: Because isn't showDialog deprecated? Feb 13 04:40:34 pfn: Do I have to use a DialogFragment now? Feb 13 04:40:36 is it? Feb 13 04:41:05 interesting Feb 13 04:41:07 so it says Feb 13 04:41:33 seems kinda lame Feb 13 04:41:43 but easier to manage, I guess Feb 13 04:42:39 pfn: totally lame. but this is because i have to learn a new way to do it… used to the old way Feb 13 04:42:46 learning curveball i guess. Feb 13 04:42:57 interesting. a bit more code and a lot less portable Feb 13 04:43:58 I guess the thinking is on a phone you might want it to fill the screen, but on a tablet you probably want the dialog to just be another fragment on the screen Feb 13 04:43:59 num1, multitask button -> swipe right = force-close Feb 13 04:44:04 doing it this way lets you do both Feb 13 04:44:12 pfn I'm not so sure of that Feb 13 04:44:21 num1, confirmed by googlers on android team Feb 13 04:44:30 pfn actually this is pretty easy to test so give me about an hour, but I heard it only hid the app from the switcher Feb 13 04:44:43 well nvm, that's awesome news! Feb 13 04:44:48 as long as it doesn't have a foreground object Feb 13 04:44:52 pfn: Why is this easier to manage? Feb 13 04:44:56 e.g. foreground service Feb 13 04:45:03 hwrd_work, fewer callback craziness Feb 13 04:45:22 pfn: hmmm…. I see. Feb 13 04:46:31 hey guys, I keep getting this "R cannot be resolved to a variable" error. I've tried the solutions listed here: http://stackoverflow.com/questions/885009/r-cannot-be-resolved-android-error Feb 13 04:46:35 but the error still pops up Feb 13 04:46:52 import your.package.name.R Feb 13 04:46:56 including deleting the R.java files so it regenerates, checking my imports for android.R, and other stuff Feb 13 04:47:01 and don't use the default package Feb 13 04:47:23 pfn: oh, you have to import com.package.name.R? Feb 13 04:47:39 only if you activity is in a diff package than your manifest specifies Feb 13 04:47:41 if you're in a different package, yes Feb 13 04:47:56 ohhhh Feb 13 04:47:57 fixed it1 Feb 13 04:47:59 fixed it! Feb 13 04:48:08 thanks guys - I always thought it was something there that I had to delete Feb 13 04:48:11 when in fact I had to add something Feb 13 04:49:14 * pfn suggests learning more about java Feb 13 04:49:23 maybe read the free book thinking in java Feb 13 04:49:40 pfn, I coded java in the console at school, so I understand it. Feb 13 04:49:52 however, I'm extremely new to API's and development and android (or any device) Feb 13 04:50:19 Snuupy, a basic question like needing to import a class indicates a fundamental lack of java experience Feb 13 04:51:54 pfn: we weren't taught importing anything, though were were taught the logic. Feb 13 04:52:10 yeah, so you don't have java experience per se Feb 13 04:52:19 my original statements still stand Feb 13 04:52:24 no, I haven't used java much before Feb 13 04:52:28 only in class. Feb 13 04:53:14 trying to start a WXGA 3.1 emulator on my elderly desktop Feb 13 04:53:22 ugh Feb 13 04:53:32 uhh Feb 13 04:53:37 anyone have a 10" Tab running Honeycomb? Feb 13 04:53:40 now it's not starting up Feb 13 04:53:49 * pfn still does Feb 13 04:53:56 What is the best way to to make sure the screen doesn't shut off if someone hasn't touched the screen? I want to make sure that one can watch my app without the screen shutting off. Feb 13 04:54:15 pfn, would you mind installing the latest APK (beta 6) from http://beta.abs.io/ and seeing if you get this: http://dl.dropbox.com/u/1008889/ActionBarSherlock001.png Feb 13 04:54:31 TheChaoticGood, acquire a wakelock for screenon, I think Feb 13 04:54:36 I'm trying to confirm on a stock 3.1 emulator Feb 13 04:55:03 pfn: do you know of a clear tutorial for this? im very noob. Feb 13 04:55:05 TheChaoticGood there's a permission you'll need for it, PERMISSION_SCREEN_LOCK or something similiar Feb 13 04:55:27 http://developer.android.com/reference/android/Manifest.permission.html#WAKE_LOCK Feb 13 04:55:39 I was wrong, wake_lock, you'll need to use the PowerManager Feb 13 04:55:58 you can get if with a call to getSystemService Feb 13 04:56:03 get it* Feb 13 04:56:47 hmm is there any documention on how to implement this? Feb 13 04:56:51 JakeWharton, animation is not-like-native but otherwise behaves like a normal action mode bar Feb 13 04:57:05 TheChaoticGood http://developer.android.com/reference/android/os/PowerManager.html Feb 13 04:57:16 pfn, which part of the animation? Feb 13 04:57:22 menu items? Feb 13 04:57:25 JakeWharton, how the icons drop into place Feb 13 04:57:26 thanks guys, fill try this out. Feb 13 04:57:33 and the check instead of x on honeycomb Feb 13 04:57:33 ah I just fixed that tonight :) Feb 13 04:57:37 incidentally, this is why the android sources haven't been merged back into the mainline linux kernel yet Feb 13 04:57:38 yeah that's the ICS style Feb 13 04:57:42 I know Feb 13 04:57:44 so… take advantage of it! Feb 13 04:58:03 pfn, can you switch to the light theme on the main list and check Feb 13 04:58:07 JakeWharton, it works, just not-native is my observation Feb 13 04:58:08 i forgot to mention they were using the light theme Feb 13 04:58:36 yep, fubar Feb 13 04:58:38 works fine on dark Feb 13 04:58:42 how odd Feb 13 05:00:17 should be inheriting from Theme.Holo.Light.NoActionBar Feb 13 05:00:43 maybe the .NoActionBar themes didn't exist on honeycomb Feb 13 05:00:50 for light Feb 13 05:01:32 public static final int Theme_Holo_Light_NoActionBar Feb 13 05:01:32 Since: API Level 13 Feb 13 05:01:37 :o Feb 13 05:01:41 thanks pfn Feb 13 05:04:26 Ello' Feb 13 05:04:32 hey Feb 13 05:05:07 I'm looking for someone who's created an Android game, or someone who's worked with AndEngine. Feb 13 05:06:06 do you have a question or did you just want ot share experiences? Feb 13 05:06:11 canadiancow, around? Feb 13 05:07:08 omg Feb 13 05:07:10 stop beeping me Feb 13 05:07:13 :( Feb 13 05:07:23 lol Feb 13 05:07:26 heh Feb 13 05:07:34 @num1 I have questions(s) Feb 13 05:07:37 some fucktard in #AndEngine just did it too Feb 13 05:07:45 rip out as much of your app as you can that doesn't relate to the bug Feb 13 05:07:48 and then send me the sources Feb 13 05:07:49 * p_l meanwhile noticed that he managed to so far kill two local ISPs with DoS Feb 13 05:07:54 kc102 usually if you just ask someone will know the answer, no need to look for an "expert" Feb 13 05:07:55 ... by chance -_-; Feb 13 05:07:59 some other time Feb 13 05:08:01 goodnight Feb 13 05:08:25 Well, I'm attempting to code in AndEngine however I copied some apparently fully working code from the examples and it goes kaboom when I attempt to run it. Feb 13 05:08:44 And my other attempts to follow tutorials and such result in failure as well. Feb 13 05:08:55 I'm not even sure what I'm doing wrong. Feb 13 05:09:02 I've followed the instructions to the letter. Feb 13 05:09:45 So, if someone has created an Android game in another AndEngine-like thing I'd love a name and perhaps some mentoring. Feb 13 05:10:06 Or some mentoring in AndEngine since I've been facerolling it for around 4 hrs with no luck. Feb 13 05:11:23 :S Feb 13 05:12:07 anyone made an app for play book? sim is very slow and seems like touch isnt working on my app.. Feb 13 05:12:22 kc102 it's pretty frustrating when you're trying to learn and even simple things fail, we've all done it. Stick around a while and hopefully someone will see ya and help out. If not come back in a few hours when another set of people is around. Feb 13 05:12:38 kk Feb 13 05:13:04 Do you have any idea of alternatives to AndEngine, num1? Feb 13 05:13:58 kc102 I haven't gotten into any gamedev yet :) I know someone who's in love with cocos2d-android you might try that Feb 13 05:14:06 Okay, tyvm! Feb 13 05:14:10 np Feb 13 05:14:58 woah mxweas is in the #android-dev channel! Blasphemy! Feb 13 05:16:27 Spinners Feb 13 05:16:31 bane of my existence Feb 13 05:16:36 die die die spinners Feb 13 05:16:38 heh Feb 13 05:18:17 Spinners gonna spin! Feb 13 05:19:35 heh Feb 13 05:19:39 I'm thinking of putting an boolean in my base themes to denote whether it's dark or light and then using a ContextThemeWrapper to un-suck the coloring of the default spinner layout on pre-3.0 Feb 13 05:21:02 the more and more I develop for newer platforms the more hideous the old ones look Feb 13 05:21:07 even GB, which I used to love Feb 13 05:21:28 after a month of GNex I've pretty much sworn off anything pre-ICS Feb 13 05:21:42 me too Feb 13 05:21:43 it just so so so much nicer looking Feb 13 05:22:31 coupled with the huge screen Feb 13 05:22:34 win-win combo Feb 13 05:23:01 is it safe to swap "sdcard" and "sdcard-ext" by editing /vold.fstab on most phones? Feb 13 05:23:41 @num1 The latest cocos2d things I can find are from 2010. o.O Feb 13 05:23:43 Hi , I have Intel processor Android device.. How can I install Market application in that? Feb 13 05:24:00 steal the APK from a phone, load it on manually Feb 13 05:24:04 pray it works Feb 13 05:24:18 what is the name of apk file for market? Feb 13 05:24:23 banpdtr_ you thank dalvik for being virtual and running .dex files regardless of intel/arm/whatever :) Feb 13 05:24:24 market.apk Feb 13 05:24:43 kc102 heh sorry, that wasn't a very good suggestion then Feb 13 05:24:58 np, was jw if there was some hidden, newer version ^^ Feb 13 05:26:02 Can I use onPause() with webview? Feb 13 05:26:37 TheChaoticGood, be more specific as to what you're trying to accomplish Feb 13 05:28:17 Im watching a tutorial on how to use wakelock. he is having me go to right click/source/Override/Implement MEthods and insert onPause Feb 13 05:28:29 But when I look i don't see on pause on the list Feb 13 05:28:44 what class? Feb 13 05:28:52 so I guess i could just type in the code, but wasn't sure if it would work since its not on the list. Feb 13 05:28:55 is it safe to swap "sdcard" and "sdcard-ext" by editing /vold.fstab on most phones? Feb 13 05:28:56 TheChaoticGood you have to do if from within your Activity class Feb 13 05:28:58 webview Feb 13 05:29:13 WebView is not an activity Feb 13 05:29:24 so yeah, no onPause Feb 13 05:29:27 public class HelloWebAppActivity extends Activity Feb 13 05:29:59 ok if i click on the activity it loads Feb 13 05:30:03 thanks guys Feb 13 05:30:07 on your other question, eclipse will warn you if override a method without @Override or mark a method @Override which isn't actually overriding anything Feb 13 05:30:29 it'll warn you if you override without @override? That's awesome! Feb 13 05:30:42 the default settings should, yeah Feb 13 05:30:50 coool thanks Feb 13 05:31:03 Eclipse puts a little triangle next to the method if it's overriden Feb 13 05:31:07 make sure you have Java 1.6 compliance set in your project or workspace Feb 13 05:31:10 *an override, rather Feb 13 05:31:12 yeah, that too Feb 13 05:31:38 and diff color for interface implementations vs. overridden class methods Feb 13 05:31:57 clicking it brings you up a level to that overriden/implemented method Feb 13 05:32:05 it also crashes randomly Feb 13 05:32:09 Market app for X86-Android device is crashing.. :( Don't know why.. :( Feb 13 05:32:11 I must've never noticed Feb 13 05:32:21 wha? never had problems for me Feb 13 05:32:22 eclipse? you must be thinking of XCode Feb 13 05:32:35 :P Feb 13 05:32:38 anyone got a playbook? Feb 13 05:33:38 #blackberry-dev Feb 13 05:33:41 maybe? Feb 13 05:34:27 good point Feb 13 05:34:58 I was just guessing as to that channel's existence Feb 13 05:35:11 RIM only sold like 4 of those devices anyways so... Feb 13 05:36:25 But they are trying again, now with 100% more Android!!11!1 Feb 13 05:37:12 I feel like the Dilbert comic is secretly RIM Feb 13 05:37:35 Shipped a tablet without email or BBM? definitely something Dilbert's company would do Feb 13 05:38:20 JakeWharton: haha Feb 13 05:38:30 JakeWharton: you should ask scott adams that Feb 13 05:38:39 LOL! the blackberry company didn't include email or BBM? Feb 13 05:39:00 it's that the sole reason buy from them Feb 13 05:39:06 isn't* Feb 13 05:39:14 the original OS didn't have it because their server-side infrastructure was set up to only support one-device per account or something Feb 13 05:39:24 you had to bridge your tablet with your phone so it could act as a proxy Feb 13 05:39:29 nice Feb 13 05:39:34 something crazy like that Feb 13 05:41:02 JakeWharton: http://dilbert.com/contact_us/ :D Feb 13 05:42:03 here's a fantastic take on chrome beta for android http://www.extremetech.com/mobile/117785-how-google-will-use-chrome-for-android-to-control-oems Feb 13 05:42:29 JakeWharton: apparently scott adams is running for president as an independent... Feb 13 05:42:43 (US president, that is) Feb 13 05:42:55 they think this is google's way of controlling OEMs, once people hear about how cool chrome is they'll put pressure on to make "with google" phones because only those will have chrome Feb 13 05:46:25 gkatsev, sent Feb 13 05:46:54 YESSS! A SUCCESS! WHOO! Feb 13 05:47:03 lol, awesome. You must ping me if he replies Feb 13 05:48:41 @num1 I got sit working :D Feb 13 05:48:56 kc102 congrats! What did the problem turn out to be? Feb 13 05:49:09 The way I was importing the libs. >> Feb 13 05:50:53 iw ill Feb 13 05:58:40 X86 device is not detected with "adb".. what could be the problem ? Feb 13 06:08:05 shit Feb 13 06:08:09 wrapping the spinner won't work Feb 13 06:08:17 context used is specified by the implementor Feb 13 06:11:20 anyone here submit their app to the blackberry app world? Feb 13 06:15:31 Anyone know how to force Eclipse to auto-run the apk on my phone? I clicked the check box for use on future tests but it still asks me every time. Feb 13 06:23:32 How do i change the name of my app in eciplse? Feb 13 06:25:50 res/layout/mainxml, thechaoticgood Feb 13 06:28:31 the name of the projecT? Feb 13 06:29:17 kc: o don't see the name of my app there Feb 13 06:31:52 it's in strings.xml Feb 13 06:31:59 if you're referring to the name of the APK on the device Feb 13 06:32:10 the string is specified in the manifest Feb 13 06:32:19 hi guys. I have made my own View, and it should be draggable. I have successfully overrided onTouchEvent(MotionEvent), and i can see motion events, but how can i actually change position of this View? I see setTop(), setLeft(), etc methods in docs, but all these methods are since API 11, but i use API 7.0 Feb 13 06:32:32 how can i change position of View in API 7.0? Feb 13 06:33:11 modify the layout params Feb 13 06:36:06 dfrank also be careful which layout you're in, that won't fly in a linear layout Feb 13 06:36:33 JakeWharton, num1: thanks Feb 13 06:36:47 night all Feb 13 06:38:21 night JakeWharton Feb 13 06:43:54 yay uploaded an androdi app to app world Feb 13 06:44:51 I just added some code for wakelock. Now my app crashes... Feb 13 06:45:31 did you request the permission in your manifest, TheChaoticGood? Feb 13 06:45:49 I also changed the name of my app in my android manifest and now im getting errors in my code I didn't get before that has nothing to do with wake Feb 13 06:45:52 yes I did Feb 13 06:46:57 Feb 13 06:47:30 hmm OK wtf Feb 13 06:47:44 now my app works for no reason. i didn't change the code... Feb 13 06:47:47 o_O Feb 13 06:48:21 when changing resources always do a clean build like 4 times Feb 13 06:48:27 with eclipse Feb 13 06:48:34 what do you mean resources? Feb 13 06:48:40 xml files Feb 13 06:48:43 images Feb 13 06:48:45 ok Feb 13 06:48:46 assets Feb 13 06:48:50 strings Feb 13 06:48:56 strings in xml that is Feb 13 06:49:00 TheChaoticGood are you talking about random force closes for no reason? Feb 13 06:49:15 it wouldnt start. it just crashed at launch Feb 13 06:49:17 now it just works Feb 13 06:49:20 ... Feb 13 06:49:29 so i think he was right Feb 13 06:49:33 i just got to rebuild it a few times. Feb 13 06:49:37 TheChaoticGood I strugled with that for a long time. Finally figured out why. Feb 13 06:49:46 why is that? Feb 13 06:50:01 TheChaoticGood: The R class is getting out of sync and it points to random string values or those 0x000 values in R. Feb 13 06:50:10 I've had it point to the incorrect XML before. Feb 13 06:50:16 weird Feb 13 06:50:29 its a bug right Feb 13 06:50:40 The easiest fix it so just copy and paste a layout file and leave the default name so it throws an error. Feb 13 06:50:52 Then rename it to something valid, run it, and then delete it. Feb 13 06:50:58 Fastest way to fix it. Feb 13 06:51:10 also look at what error was in logcat, probably had a resourcenotfound error Feb 13 06:51:50 ok thanks guys Feb 13 06:52:09 I've wasted so much time fighting that bug lol. Feb 13 06:52:23 Finally after weeks I realized what was happening. Feb 13 06:53:04 What bug? Feb 13 06:53:06 Dalvik 1? Feb 13 06:53:13 The R class gets out of sync Feb 13 06:53:24 Ah. Feb 13 06:53:27 And the values point to incorrect XML's. Feb 13 06:53:46 Very annoying. Feb 13 06:53:53 that's what cleaning is meant to fix Feb 13 06:54:01 But it never does. Feb 13 06:54:03 Leeds did u submit for ur playbook? Feb 13 06:54:06 So i called the project one thing when i started it... now its grown so i want to change the name of the app. whats the best way to do that Feb 13 06:54:12 ? Feb 13 06:54:29 TheChaoticGood just change the name in the xml. Feb 13 06:54:30 just got my submission in Leeds, hope they approve fast Feb 13 06:54:54 you don't have to have it approved by tomorrow, just submited Feb 13 06:55:09 thats what i read at least Feb 13 06:55:13 Gaz` as long as it was submitted before the 13th, doesn't matter when it gets approved Feb 13 06:55:16 Gaz`: just replied to your G+ :) Feb 13 06:55:18 you still get a playbook Feb 13 06:55:26 I want a playbook! Feb 13 06:55:35 Feb 13 06:55:36 what if it doesnt get approved? Feb 13 06:55:41 then yo udont get one Feb 13 06:55:41 short answer - can't get the simulator working, but the conversion tools seem to work, so what the hell, submit anyway Feb 13 06:55:50 if you fix whatever reason they denied it and resubmit Feb 13 06:55:56 and if it gets posted Feb 13 06:55:59 you still get a playbook Feb 13 06:56:08 Leeds yeh i got sim working but it was too slow and touches not working i just got some guy to test in blackberry chan and it was working fine so maybe we are in luck Feb 13 06:56:16 as long as the original submition was before the 13th Feb 13 06:56:21 ok great im pretty sure im in then Feb 13 06:56:35 Playbook vs. Flyer? Feb 13 06:56:50 not sure yet im assuming playbook will be better somehow Feb 13 06:56:58 but then i always been kind of hung up on QNX Feb 13 06:57:32 I'm wondering if they're going to make me redo one of my screen shots Feb 13 06:57:44 because I used the one from my phone Feb 13 06:57:50 not even tablet looking Feb 13 06:57:59 hehe Feb 13 06:58:07 they gotto expect a bit of that, some of my promo material just says android Feb 13 06:58:21 I ended up getting a nother one off my tablet, but it has the Honeycomb bar at the bottom Feb 13 06:58:43 yeh! Feb 13 06:58:47 hope i get one that would rock Feb 13 06:59:05 if it says android it won't get approved Feb 13 06:59:14 anywhere that an end user will see Feb 13 07:00:07 yeh Feb 13 07:00:10 well its on my video Feb 13 07:00:27 i can remove that if they dont like, decent trailer tho and it is basically android still surely Feb 13 07:01:03 im in manffest.xml and i don't seet the name of my app. Feb 13 07:01:26 im looking at AndroidManifest.xml right? Feb 13 07:01:50 yeh Feb 13 07:01:55 might be referred to as that Feb 13 07:02:08 u can change the xml value in stirng.xml or just change that to a string Feb 13 07:02:18 android:label="MyApp" Feb 13 07:02:19 package= Feb 13 07:02:30 ok wow i must be tired Feb 13 07:02:37 Did see that Feb 13 07:03:30 don't change the package name unless you really want it as a new app Feb 13 07:03:41 what do you mean Feb 13 07:03:45 if you change package you have to upload it as a new app, not an update Feb 13 07:03:55 the package in the manifest that is Feb 13 07:03:57 * Gaz` rubs his hands together in anticipation of playbook Feb 13 07:04:03 yeah i want it as a new app Feb 13 07:04:12 and then any users who had your app wouldn't get the updates, and if it was paid they would have to pay again Feb 13 07:04:29 i have not uploaded it yet Feb 13 07:04:34 still not ready for the public Feb 13 07:04:37 well then you can do whatever you want Feb 13 07:04:51 when change the android:name i get an error Feb 13 07:05:18 Iguess no spaces. Feb 13 07:08:08 you want label Feb 13 07:08:09 unless playbook icks up theres almost no reason to develop for it ;/ Feb 13 07:08:35 damn it that R eror again. Lol... Feb 13 07:08:47 TheChaoticGood: I hate that error lol Feb 13 07:09:58 ok.... so i guess i have to pay attention Feb 13 07:15:35 hi ALoGeNo Feb 13 07:18:35 i might just finish my backgammon game and submit that too hehe Feb 13 07:19:01 still battling that R bug :/ Feb 13 07:20:08 is there a way to get the estimated time of arrival using google map api? Feb 13 07:22:43 TheChaoticGood: delete all imports containing the R Feb 13 07:22:47 eg. android.blah.r; Feb 13 07:22:52 don't delete the R.java file Feb 13 07:22:56 but check if it's there Feb 13 07:22:59 if it's there, leave it Feb 13 07:23:15 * brainv slaps Snuupy Feb 13 07:23:22 * Snuupy slaps brainv Feb 13 07:23:33 * brainv slaps Snuupy Feb 13 07:23:35 * brainv hide Feb 13 07:23:43 * Snuupy slaps brainv anyway Feb 13 07:27:47 heh Feb 13 07:27:54 * brainv slaps neekers Feb 13 07:28:44 * neekers pulls out his pencil sharpener and sharpens the point on brainv's head Feb 13 07:29:20 * brainv titi ni marcus maliit Feb 13 07:30:01 brainv: got a playbook? Feb 13 07:30:11 anyone here got a playbook on OS2 with an android player? Feb 13 07:31:50 JoeTheGuest you still there? Feb 13 07:34:24 hey guys, how should I size things so that they fit both small and large screens? I'm thinking DP but that doesn't seem to do well... Feb 13 07:37:14 i don't have an import for R Feb 13 07:38:16 I feel like a guy with an axe, a bunch of random code, and glue. Lots of glue. Feb 13 07:38:38 kc102, Do you know how to Fix that R bug. Got it again.. Feb 13 07:38:48 somehow i didn't remember how i fixed it last time Feb 13 07:38:52 Read up. Feb 13 07:38:57 I think you need to rebuild Feb 13 07:38:58 like 5 times Feb 13 07:39:02 how do i do that Feb 13 07:39:11 No idea, look in menus. Feb 13 07:39:15 Maybe right click. Feb 13 07:39:30 i only know how to run :/ Feb 13 07:42:59 TheChaoticGood: OPEN ALL THE THINGS (MENUS), if it isn't there then restart Eclipse? Feb 13 07:43:30 i restarted it 3times Feb 13 07:44:09 No idea. Feb 13 07:57:55 is there a good guide for android programming from start to finish for someone that already knows Java? Feb 13 07:58:02 by guide, I mean book Feb 13 07:58:18 pcbang: Unlocking Android was good for a start, IMHO Feb 13 07:58:31 pcbang: http://commonsware.com/ Feb 13 07:58:37 but it doesn't cover new apis (it was done for 1.5 iirc) Feb 13 07:58:39 thanks p_l Feb 13 07:59:38 wow, that is a crazy cover for a book Feb 13 08:00:09 TheChaoticGood: sometimes a missing R file indicates an error in an xml layout file. also check logcat Feb 13 08:00:25 pcbang: it had a nice dedication inside related to that Feb 13 08:01:12 Snuupy i got help in #blackberry and #blackberry-dev Feb 13 08:01:15 pcbang: do not buy a 2 1/2 year old android book. Feb 13 08:01:19 for testing etc Feb 13 08:01:24 Gaz`: uhh alright, thanks Feb 13 08:01:36 prob best to use weighting Feb 13 08:01:42 and fill parent etc Feb 13 08:01:44 rather than dp Feb 13 08:01:46 altho im not sure Feb 13 08:03:42 Gaz: Do you know how to Fix the R bug? Feb 13 08:04:43 Hi. Anyone here developed a multiplayer backend by using Nodejs for an Android game? I'm in need of some guidance. Feb 13 08:16:38 TheChaoticGood: R bug? Feb 13 08:16:57 Is your R gone? :-) Feb 13 08:18:14 hi Feb 13 08:18:27 afternoon Feb 13 08:19:38 how to have a layout separated in two, 50% for top and bottom, and center a text in each part ? Feb 13 08:21:06 maxagaz, relative layout Feb 13 08:21:29 align top-part to parentTop, bottom part to parentBottom, center middlepart in parent (vertically), wrap_content height Feb 13 08:21:42 and align the bottom/top parts below/above the center part Feb 13 08:21:55 oh wait, center text in each part Feb 13 08:22:04 not in between Feb 13 08:22:27 you can center the text with gravity="center_vertical" Feb 13 08:23:05 within a linearlayout with 2 views with layout_weight="1" Feb 13 08:23:07 I use the graphical editing of xml in Eclipse, then edit by hand when I need to - the tags and functionality are just like css/html pretty much Feb 13 08:23:41 eclipse - R cannot be resolved Feb 13 08:23:56 Description Resource Path Location Type Feb 13 08:23:59 R cannot be resolved to a variable HelloWebAppActivity.java /HelloWebApp/src/testdev/HelloWebApp line 28 Java Problem Feb 13 08:24:07 TheChaoticGood: you probably have an error in your xml Feb 13 08:24:16 such as? Feb 13 08:24:50 TheChaoticGood, eclipse will usually tell you Feb 13 08:25:07 possibly check the 'problems' window Feb 13 08:25:27 i just copiedthe error i got Feb 13 08:25:38 TheChaoticGood: [Mon 12:00am] TheChaoticGood: sometimes a missing R file indicates an error in an xml layout file. also check logcat Feb 13 08:25:41 R cannot be resolved to a variable HelloWebAppActivity.java /HelloWebApp/src/testdev/HelloWebApp line 28 Java Problem Feb 13 08:25:58 look further for more errors Feb 13 08:26:10 this is more a sympthom Feb 13 08:26:27 iivvoo: he doesnt know how, he is working on hello world. Feb 13 08:27:22 TheChaoticGood: you're not importing any R, are you? Feb 13 08:27:38 no, Feb 13 08:27:52 thanks guys for the help but i got to get up in 6 hours. fill be back tonight Feb 13 08:34:34 hi guys, can someone help me with recompiling the google-oauth-java-client to a jar? I'm trying to figure out if a bug in it is causing problems in my app. i just can't deal with the error msg mvn is giving me Feb 13 08:37:07 Anyone here experienced w/ AndEngine? I'm having issues w/ camera binding. Feb 13 08:37:30 kc102: are you implementing a game? Feb 13 08:37:39 Do you mean creating a game? Yes. Feb 13 08:37:59 kc102: I am not sure about andengine, I am using (trying) libdgx Feb 13 08:38:06 Ah. Feb 13 08:38:34 Well, in roughly 7 1/2 hours I've gone from nothing working for a really strange reason to sprite moving around on background but camrea won't follow Feb 13 08:38:49 This is from 0, as well. Feb 13 08:39:05 the camera here means the hardware camera? or does it mean the world camera? Feb 13 08:39:52 world camera Feb 13 08:39:55 kc102: I think you need to update the camera every time when your sprite move Feb 13 08:40:03 It's set to follow it. Feb 13 08:40:04 Hmm. Feb 13 08:41:10 kc102: what do you mean set to follow it? You set the position of camera to be that of the sprite? Feb 13 08:41:21 There's literally a follow entity function. Feb 13 08:41:49 mBoundChaseCamera.setChaseEntity(face); Feb 13 08:42:07 kc102: oh I don't know about it, did you try set the position of the camera explicityly? Feb 13 08:42:20 There isn't a function for that, afaik. Feb 13 08:42:46 I think it has to do with my method of sprite movement cause in an example it works fine. Feb 13 08:43:21 maybe, I am not sure about andengine Feb 13 08:43:28 ^^ Feb 13 08:43:34 kc102: btw, are you familar with game engine? Feb 13 08:43:38 How's libgx? Feb 13 08:43:42 Uhm, game engine? Feb 13 08:44:21 Isn't that a 2D game creator for PC? Feb 13 08:44:22 kc102: yes, I think they are hard to use :P I am not quite a game person..this is my first time to use game engnie Feb 13 08:46:41 hey guys! Feb 13 08:47:10 Hello my favorite water filter. Feb 13 08:47:15 i'm looking for something like those useful charts in the dev page for plat versions and screen sizes... Feb 13 08:47:40 lol, yeah also discovered that some time ago, but that doesn't exist in my contry Feb 13 08:48:10 the thing is, i'll develop for tablet only, and i wanted to get that kind of charts, but for tablet only Feb 13 08:49:20 Can't you just make your stuff work on any screen size? Feb 13 08:49:35 no :-7 Feb 13 08:50:01 lol, k Feb 13 08:50:05 it's a game, and its designed for 2 people fighting over de screen. if it's too small, it wont work... Feb 13 08:50:43 we can figure out some kind of port after... but it will require some serious interface adjustments and redesign... Feb 13 08:50:49 iivvoo: thanks! Feb 13 08:50:53 so tablet only for now :-D Feb 13 08:54:14 it'd be really nice to be able to retrieve conditional charts, like using filters... "i want the chart for devices with feature X and Y" like camera.. GPS, etc Feb 13 08:55:11 it also w'd be nice to have charts for the market, like the distribution of apps by plat version Feb 13 08:55:57 how to check if the app is already running when I launch it, so that it doesn't need to reload data in memory ? Feb 13 09:07:35 is it possible to change the ring tone on the fly, i.e. when receiving a android.intent.action.PHONE_STATE notification about the phone ringing? Feb 13 09:08:01 maxagaz: what type of data? app global or for a specific activity? Feb 13 09:10:52 Anyone know how to scale an ImageView with pivot in center? http://stackoverflow.com/questions/9252468/zoom-an-imageview-with-center-pivot Feb 13 09:12:24 Probably going to want to use a canvas instead. Might be easier. Feb 13 09:14:14 JoeTheGuest: Then the Touch area won't be scaled :( Feb 13 09:14:49 appel1: for a specific activity Feb 13 09:14:51 Then use a ViewGroup as the base and put an imageview in it. Feb 13 09:15:12 Seimawn2 then just run the numbers and do image.layout on it Feb 13 09:15:15 To adjust the imageview size Feb 13 09:15:54 JoeTheGuest: Its no problem to scale it, but the problem is that I want it to scale with pivot in middle … when I measure it it gets scaled with pivot on uppe left Feb 13 09:16:15 Then your math needs adjusting. Feb 13 09:16:18 both on a real phone and in the simulator Feb 13 09:16:20 oops Feb 13 09:16:23 (returns false) Feb 13 09:16:35 gnah, my mastery of my irc client history is subpar Feb 13 09:16:43 hi, i have in my manifest.. but still mkdirs() fails Feb 13 09:16:45 JoeTheGuest: Can you help with code please? Feb 13 09:16:50 maxagaz: you could use onSaveInstanceState / onRestoreInstanceState or if you want it to be shared across multiple instances of the activity then a static field with lazy init perhaps. Feb 13 09:17:45 Seimawn2 I don't really have time tonight, it's 2:17 and I have a class in the morning. Feb 13 09:18:00 JoeTheGuest: okk Feb 13 09:18:10 Seimawn2 It might be helpful to draw it on a piece of paper and think of it that way. Feb 13 09:18:28 JoeTheGuest: Trying right now :/ Feb 13 09:18:45 tapas: where are you trying to create a dir? Feb 13 09:19:01 MDijkstra: Environment.getExternalStorageDirectory().getAbsolutePath() + "/SITA/" + productId Feb 13 09:19:22 Seimawn2 from the top of my head you will probably want to be thinking about the middle points and moving relative to that. Feb 13 09:19:26 tapas: Did you call mkdir() ? Feb 13 09:19:39 So like a 4x6 image would have 2 and 3 for the middle points on the side. Feb 13 09:19:47 Seimawn2: no, just mkdirs() as that's supposed to create all directories necessary if i read the documentation correctly Feb 13 09:20:08 JoeTheGuest: yea, I think I know the theory, but dunno how to get it into code :( Feb 13 09:20:25 is there a way to get a more descriptive error than ust the value false? Feb 13 09:20:37 tapas: Get rid of .getAbsolutePath() Feb 13 09:21:00 new File( Environment.getExternalStorageDirectory() + "/SITA/", productId); Feb 13 09:21:11 Seimawn2: ok, why is that a problem though?\ Feb 13 09:21:25 tapas: You don't need it Feb 13 09:21:38 ok, doesn't make a difference, still fails.. Feb 13 09:22:03 tapas: the only thing I can think of is that you're getting a dual forward slash Feb 13 09:22:11 for refeference: http://pastesite.com/31585 Feb 13 09:22:14 because getExternalStorageDirectory() already includes one Feb 13 09:22:34 damn, eclipse doesn't allow me to copy from the log Feb 13 09:22:42 tapas: Where does it fail? Feb 13 09:22:52 tapas: and the exception? permission denied or? Feb 13 09:23:01 line 9 Feb 13 09:23:05 no exception Feb 13 09:23:20 i jsut get false.. i would be glad about getting an exception :D Feb 13 09:24:01 hrm, have a meeting in 5 mins, brb ;) Feb 13 09:24:26 Seimawn2 Try working with half of the new dimen. so that you can split the new measurements evenly. Feb 13 09:24:29 tapas: Check this out .. http://pastesite.com/31586 Feb 13 09:24:37 tapas: That works for me Feb 13 09:24:54 JoeTheGuest: Do I have to override onLayout? Feb 13 09:25:16 Seimawn2 im not sure about that. Feb 13 09:26:00 tapas: You get false if the directory exist Feb 13 09:26:27 Seimawn2: well, i do check whether it exists in my posted code snippet Feb 13 09:26:33 before trying to create it.. Feb 13 09:27:09 it doesn't.. also i checked with a file manage =r to see if it exists.. Feb 13 09:27:11 no dice.. Feb 13 09:27:28 tapas: btw, you are aware that SITA is probably not the correct location for your app data? Feb 13 09:27:44 tapas: Copy my code and try Feb 13 09:28:15 appel1: no i was not.. i guess there's additional chacks in android to determine whether the path is "good"? Feb 13 09:28:19 Seimawn2: ok.. Feb 13 09:28:32 tapas: not really, you should be able to put files there. Feb 13 09:29:19 Seimawn2: fails, too.. Feb 13 09:29:24 tapas: but your supposed to put app data in /Android/data/package name/files http://developer.android.com/guide/topics/data/data-storage.html#filesExternal Feb 13 09:29:31 i wonder whether it's my emulator config.. Feb 13 09:29:40 appel1: it's too much data.. several megabytes Feb 13 09:29:42 tapas: what about permission? Feb 13 09:30:01 appel1: i have that setup in the manifest Feb 13 09:30:05 if not i'd get an exception Feb 13 09:30:14 Feb 13 09:30:17 tapas: ok Feb 13 09:30:23 Feb 13 09:30:37 tapas: you don't have to put big files at the root of the sdcard, there are no such restrictions Feb 13 09:30:38 tapas: http://pastesite.com/31588 Feb 13 09:31:26 Seimawn2: the productId is part of the path.. it will be a directory containing the product data lateron.. Feb 13 09:31:43 Seimawn2: i will try your code nonetheless.. i sense though i missed something else which is fundamental Feb 13 09:32:08 tapas: the advantage of putting files in the correct locaiton on the sdcard is that if your app is uninstalled newer versions of android will delete it. Feb 13 09:34:03 appel1: it fails in that location, too Feb 13 09:34:51 tapas: Try create it when you want to store the data…not before Feb 13 09:35:13 Seimawn2: you mean, with a real file.. not just as a path? Feb 13 09:35:23 tapas: that's expected, was just a comment for when you solve your initial problem =) Feb 13 09:35:32 appel1: ok Feb 13 09:36:09 tapas: what does getExternalStorageState return? Feb 13 09:36:15 tapas: You create your File object and send the Path and the File as parameter .. the you run File.mkdirs() before you save Feb 13 09:36:56 Seimawn2: hmm, sounds backwards.. why can't i just create the directory? Feb 13 09:36:58 appel1: hold on Feb 13 09:37:32 tapas: Try that first, if you get it to work, you can refactor after that Feb 13 09:39:38 appel1: "removed" Feb 13 09:39:45 hmm Feb 13 09:39:55 tapas: that explains it then Feb 13 09:40:07 appel1: wy is it removed though>\ Feb 13 09:40:21 let's see if i can disable mounting of the SDCARD as usb-storage in this mac Feb 13 09:40:23 tapas: this was using the emulator right? Feb 13 09:40:28 appel1: yes.. Feb 13 09:42:35 tapas: for the hardware settings for your avd, is there a SD Card support? if so ensure it isn't set to false. Feb 13 09:42:50 yes, it's a 32mb sdcard Feb 13 09:43:09 tapas: is "SD Card support" set in the Hardware list? Feb 13 09:43:26 tapas: it is yes by default so if it isn't listed the problem is something else Feb 13 09:43:58 appel1: there's no such thin in the hardware list Feb 13 09:44:04 tapas: ok Feb 13 09:44:58 tapas: have you mounted the sdcard as usb storage? Feb 13 09:45:35 appel1: does the emulator even support that? i'll check Feb 13 09:45:57 tapas: don't think so :) but it is the only thing left I can think of :\ Feb 13 09:46:14 appel1: thanks for the pointer.. it seems the default for SC card support was false Feb 13 09:46:27 i just explicitly set it to enabled and now it seems to work.. Feb 13 09:46:39 external storage state: mounted :D Feb 13 09:46:53 tapas: oh, weird, the documentation says the default is yes.. Feb 13 09:48:08 appel1: hmm Feb 13 09:48:15 tapas: perhaps you're using an old version and they've changed that? :) Feb 13 09:48:22 tapas: good thing you got it working anyways Feb 13 09:48:27 dunno.. i just downloaded the SDK 5 days ago ;D Feb 13 09:48:32 heh Feb 13 09:48:44 anyways.. next thing is to find out why logging from my real device stopped working in eclipse.. Feb 13 09:49:14 cause thefile creation on my real device doesn;t work either, and i don't have the SD card mounted as USB-storage Feb 13 09:49:24 s/file/directory/ Feb 13 09:49:53 tapas: is your device listed if you run "adb devices"? Feb 13 09:51:03 appel1: nope.. it apears in eclipse's device list though.. Feb 13 09:51:09 oh it just popped up Feb 13 09:51:12 appel Feb 13 09:51:16 80A354043040743694 device Feb 13 09:51:19 have you hear of android commander Feb 13 09:51:29 tapas: and still adb logcat doesn't work? Feb 13 09:51:37 need some help,, it says i need to edit the bootimage Feb 13 09:52:07 that's #android-root Feb 13 09:52:19 appel1: trying it manually.. one moment Feb 13 09:53:00 leeds that for me Feb 13 09:53:01 ?? Feb 13 09:53:18 MacDrunk: of course Feb 13 09:53:25 appel1: ok, it seems i mustn't have the emulator running to see the output from the real device.. Feb 13 09:53:28 appel1: thanks again Feb 13 09:55:14 tapas: if you have the emulator running you can use adb logcat -d to connect to the usb device and -e for the emulator instance Feb 13 09:56:08 appel1: oh sweet Feb 13 09:56:33 appel1: yesterday eclipse still did that automatically.. today something must have changed ;D Feb 13 09:56:48 appel1: running adb logcat through grep is good enough for me, though :D Feb 13 09:57:20 What's the proper way to cache images to phone memory in android? Feb 13 10:16:43 Hi, I just got up a LAN network for ICS in qemu-kvm. I just wonder if someone can tell me how to add nameservers manually in cli... it does not resolv URLs very well right now, but it works with IPs directly. Feb 13 10:25:26 I'm working on a custom view where I'm drawing a triangle using Path at the very left top of the view, but it seems like when I do path.moveTo(0,0), it starts 2-3 pixels to the right of that place Feb 13 10:25:32 for some reason.. Feb 13 10:25:57 because when I have a view ( in XML ) right below the custom view, and fill it with a background, it does not start at the same horizontal position. Feb 13 10:27:17 Are there any plans for a class on using SurfaceViews for game development? Feb 13 10:28:56 anyone done SOAP calls from Android? Feb 13 10:30:16 hey guys, I'm having a headache of a time. I'm trying to take someone elses code and convert it from a list view to a realtive layout with a text view. All is working.. but the array of inputs isn't being changed? I changed lines 25 and 28 in my attempts to update this text view.. http://pastebin.com/W1rtBip3 Feb 13 10:31:03 sorry I can really only show snippits, the layout changes, all is good except I'm failing to get the array items into the text view Feb 13 10:31:20 Hey folks, would anyone mind having a brief look on some code of mine? I'm trying to write a service that automatically downloads an update for my application and saves it to the disk. Then, on success, it shall indicate that there is an updated version available by setting a preference. Unfortunately, on a friends phone we end up with a broken file. I'm still new to Java and Android so any hint is appreciated: Feb 13 10:31:20 http://pastie.org/private/uzbmtr2hxrmlihffbg9j5g Feb 13 10:33:20 pehlert: why not just let the built-in upgrade mechanism in android market do its thing? :) Feb 13 10:33:47 appel1: Because it's not a market application but something we intent to use internally Feb 13 10:33:48 is there a resolv.conf or something like that where I can add nameservers? Feb 13 10:37:35 pehlert: ok. How is the file broken? Feb 13 10:38:21 i should have known better than to rejoin this channel in the middle of splittiness :/ Feb 13 10:39:00 appel1: Well, when I try to open/install it, it displays an error that the package is corrupt Feb 13 10:40:35 pehlert: so is it missing data on the end or is it corrupted all over the place? Feb 13 10:41:17 hmmm... so I think my question is how do I set a SimpleCursorAdapter into a relative layout? Feb 13 10:41:39 appel1: I didn't get a chance to check the size, yet.. I hardly have access to that phone unfortunately. I was hoping there might be some striking mistake I made :-/ Feb 13 10:46:06 ok. i know i'm about to facepalm as soon as i ask, but here goes... :/ Feb 13 10:46:23 can anyone tell me why line 7 gives me a MalformedURLException? http://www.greenviolet.net/paste/1329129930.html Feb 13 10:47:55 lewellyn: Are you sure it's not a compiler exception that asks you to catch the possibly raised MalformedURLException?! Feb 13 10:48:17 perhaps. see? this is what happens in the wee hours :/ Feb 13 10:48:33 lewellyn: Surround it with try {} catch {} Feb 13 10:48:43 Heh Feb 13 10:48:46 yeah. just did that. :/ Feb 13 10:48:51 * lewellyn facepalms, as predicted. Feb 13 10:49:04 hey, at least i managed to post a minimal test case ;) Feb 13 10:49:34 Heh, no worries. Feb 13 10:50:48 i knew the number of lines was suspect. time to grab cookies and brandy... Feb 13 10:51:02 also, i bet this channel's had a bit of an uptick of playbook devs the past week ;) Feb 13 10:55:56 anyone got a clue what type response could be?? Feb 13 10:55:57 response.put("HTTPStatus",httpResponse.getStatusLine().toString()); Feb 13 10:56:18 I've created a custom view (a border-line thingy), and I would like to re-use it (rotated/flipped).. how? Feb 13 10:56:21 pehlert: btw, perhaps the download failed with an exception and you just missed it in the logs? Feb 13 10:56:58 appel1: But when it did, it shouldn't have indicated that there is a new version available, or am I missing something? Feb 13 10:58:52 pehlert: indicating? I only see you setting a preference if you've downloaded a new version? Feb 13 10:59:13 appel1: That's what I meant by "indicate" Feb 13 10:59:23 Cannot upload a screenshot for my app on google market, "Unable to parse response. If you have a browser extension or add-on installedwhich changes the JSON response, please disable and refresh this page"... tried with 3 browsers :-D Feb 13 10:59:31 pehlert: btw, keeping the wake lock during the whole lifetime of the service isn't very kind to battery life :) Feb 13 10:59:34 Anyone else gotten that problem? Feb 13 10:59:45 pehlert: never mind :D saw the stopSelf now ;) Feb 13 10:59:51 how u take screenshots ? Feb 13 11:00:03 on my Galaxy S2 I press home + power button Feb 13 11:00:09 no PrntScrn button or any button on my fone Feb 13 11:00:10 hold in home button and quickly press power button Feb 13 11:00:15 no buttons at all Feb 13 11:00:22 appel1: Heh, yeah ;)) I think this is the proper technique, right? I wasn't 100% sure about it Feb 13 11:00:29 how to take screenshot of full screen game > Feb 13 11:00:55 check your phone manual :-D Feb 13 11:01:11 pehlert: I'd just target api level >= 9 and use the built-in DownloadManager.. but I'm lazy and mostly just code stuff for myself ;) Feb 13 11:01:37 appel1: I can definitely do that! I just wasn't aware of it Feb 13 11:01:43 That sounds fantastic Feb 13 11:02:07 pehlert: unless you need your app to work on older phones :\ Feb 13 11:02:22 pehlert: and it doesn't explain why your current downloads fails Feb 13 11:02:23 API Level 9 is 2.3, right? Feb 13 11:03:38 Hum, I possibly need this to work on 2.2 :( Feb 13 11:09:47 oaskdoskd Feb 13 11:11:19 pehlert: hm, perhaps you need to explicitly flush the buffered output stream before calling close? the documentation doesn't state that close flushes as it does on BufferedWriter Feb 13 11:12:02 appel1: Hum, that sounds like a good idea Feb 13 11:12:14 I expected the probably to be somewhere there Feb 13 11:14:35 we program java class, make some xml and zip in .apk ? done ? Feb 13 11:17:28 wtf? Feb 13 11:21:06 appel1: Nope, that's not it. BufferedOutputStream inherits close() from FilterOutputStream which explicitly states in it's documentation: "The close method of FilterOutputStream calls its flush method, and then calls the close method of its underlying output stream. " Feb 13 11:23:22 I managed to send an intent to a service. But when I try to do the same with an activity, I fail. Is there an example I can look at? It appears to me onNewIntent should get called, but no matter what I try, it never happens. Feb 13 11:26:28 Whats a good way to clear items from my screen? I got this pesky list that wont go away Feb 13 11:27:40 working on a custom view.. how can I rotate what I've been drawing by 180 degrees? canvas.rotate(180) does nothing Feb 13 11:36:37 before doing everything in the most possible wrong way, i'll ask: :D Feb 13 11:37:04 say i want to store a simple preference for my application and have it initialized with a default value on the first run Feb 13 11:37:12 what's the android paradigm to use here? Feb 13 11:37:30 sharedPreferences Feb 13 11:39:25 hi :) in adb, what dows installing an app with forward-lock actually do? Feb 13 11:39:59 does anybody know the folding seperators are achieved in the native contact list? Feb 13 11:40:34 so when you are on the 'C' contacts, the C separator stays at the top of the list until you hit 'D' Feb 13 11:41:24 is this done with addHeaderView() in the ListView? Feb 13 11:46:10 kjc: no Feb 13 11:46:28 It's done manually looking at the position of the first item in a section Feb 13 11:46:43 grrr. Feb 13 11:46:44 $ du Feb 13 11:46:45 du: permission denied Feb 13 11:46:47 XD Feb 13 11:46:58 what kind of linux system is that? :D Feb 13 11:47:10 How would you create a left, top and right border around a view with a certain thickness? Feb 13 11:47:49 cyrilmottier_: but they are clearly distinct from normal ListView items Feb 13 11:48:03 hey Feb 13 11:48:07 they are headers i take it? Feb 13 11:48:24 can someone give a very small complete android code ? Feb 13 11:48:41 with java , xml packed in zip .apk ready to execute Feb 13 11:48:55 no i mean pre compiled ready to compile Feb 13 11:48:55 kjc: yes Feb 13 11:49:14 ok Feb 13 11:50:23 ck-ev do you want source code that you can compile or do you want the precompiled .apk that needs to be installed to a device? Feb 13 11:51:45 .apk is not final compiled executable ?? Feb 13 11:51:53 it is Feb 13 11:52:00 but which one do u want Feb 13 11:52:05 apk is final thing , then u just hav to install it Feb 13 11:52:09 yes Feb 13 11:52:15 apk is install only Feb 13 11:52:38 what do u do after writing dalvikJAvA in notepad ., Feb 13 11:53:26 wake up from the nightmare Feb 13 11:53:27 i actually use an IDE called Eclipse Feb 13 11:53:28 I tried to add /system/etc/resolv.conf in ICS, but it did not take. Where can I manually configure a nameserver? (I don't use wifi, I'm using wired lan) Feb 13 11:53:44 Anybody know a good way of getting a semi-transparent view overlayed on an imageview? the only hit google is giving me is a sliding drawer but i don't need it to slide or anything Feb 13 11:54:14 dark-side: do you mean a button or something? Feb 13 11:54:26 i just want a raw source to modify, compile n play with in fone :( Feb 13 11:54:31 an icon and some text Feb 13 11:54:57 probably linearlayout with an imageview and a textview and a semi-transparent background Feb 13 11:55:00 is the icon and text separate or is it inside an image Feb 13 11:55:13 and i installed androidx86 in asus laptop but it cant connect to wifi Feb 13 11:55:19 it should be over the top of the image as each image has a seperate description Feb 13 11:56:53 i hate androids audio recording functionality (and lack of) Feb 13 11:57:02 ah i think i've got an idea, i had my align's wrong, i shall give this a bash Feb 13 11:57:18 TextViews already have drawableTop, drawableBottom, etc properties i suggest u use them instead of linear layout, image and then text Feb 13 11:57:49 kcvgj Feb 13 12:00:29 Dark-Side: linear layout with picture and textview inside of it, as you suggested Feb 13 12:00:45 and then you can set linear layout's transparency with android:alpha Feb 13 12:05:30 the java part Feb 13 12:28:45 anyone did any youtube streaming application? Feb 13 12:29:03 in particular, getting it to display as texture on any 3d engine or custom surface? Feb 13 12:44:35 <_lpc> hello, would it be possible to recompile only the wifi driver (bcm4330) for my galaxy s2 and replace the current one or do i have to recompile the whole kernel? Feb 13 12:48:43 I added my own javascript interface to my webview and am calling two functions which natively create/dismiss a progress bar. Now in Android 2.2 this is working fine. But in Android 2.3.3 it crashes leading to Issues in Android.WebKit.LoadListener Feb 13 12:54:36 hey! Feb 13 12:55:03 look, theres the best Koder ever :D Feb 13 12:55:04 anyone managed to call a soap WS from android, without using KSOAP? Feb 13 12:55:08 jupp! Feb 13 12:56:44 no SOAP users here ? ;D Feb 13 13:02:05 Is there any method to override where getLayoutParameters() doesn't return null? :) Feb 13 13:02:15 why cant do i get: unknownhost exception?? I can browse to that URL without a problem..!! Feb 13 13:02:20 the code: http://pastebin.com/kAq2vjiS Feb 13 13:02:44 bestKoderEver: internet access permission? Feb 13 13:04:28 storkme: thanks (sharedPreferences) Feb 13 13:06:21 np Feb 13 13:06:55 MDijkstra mm.. might be the DNS.. Feb 13 13:08:59 bestKoderEver: do you have the permission to access the internet? Feb 13 13:10:12 hmmm. I have a simple curse adapter. I have it call a database and fill a relitive layout sub list view.. now I need to make it dissapear... this.group_list.getCursor().close(); fails.. ideas? Feb 13 13:11:24 MDijkstra yes, its been set, have you sent some soap msg to WS? Feb 13 13:11:31 nope Feb 13 13:11:50 can you connect using normal means to the internet? Feb 13 13:12:02 bestKoderEver: paste the line defining your internet permission in the manifest? Feb 13 13:12:13 paste the entire manifest Feb 13 13:12:22 maybe you aren't using the uses-permission ... Feb 13 13:12:43 * ck-ev\r4 slaps bestKoderEver around a bit with a large trout Feb 13 13:12:56 it's extremely unlikely that the internet connection on the device is fine, but in-app the internet doesn't work Feb 13 13:13:02 like is there an unset list adapter? hah Feb 13 13:13:46 ck-ev\r4, I wonder why you're here if it's only to troll/make fun of people - and with different nicks from day to day Feb 13 13:14:36 like seriously any ideas? I've been stuck for 2 hourrs Feb 13 13:19:38 L4nce0: I would try to make an empty adapter and load into my listview... Feb 13 13:19:57 but I am new to this myself ;-) Feb 13 13:20:19 Mikellip, hah yeaah, theres a lot about this program "i" wouldn't do. Yay for inhearited projects Feb 13 13:20:41 Well I have a solution >.> it's so hackish I'm ashamed Feb 13 13:21:02 I call it all again and give it an empty array so nothing appears Feb 13 13:21:15 yeah that's how I'd do it Feb 13 13:21:34 Well deadlines are deadlines, and this works lol Feb 13 13:21:41 I know what you mean :) Feb 13 13:22:18 I'm seriously annoyed how long this is taking, 4 years in a CS degree, and learning others programs they never taught us haha Feb 13 13:22:35 i'm confused.. i want to get te unix time representing now Feb 13 13:22:47 Timestamp has no empty constructor Feb 13 13:23:00 and Date() seems to have no method to get to the seconds from the start of the epoch Feb 13 13:24:19 check the android.os.SystemClock functions maybe Feb 13 13:24:26 Mikellip http://pastebin.com/8TmQCEbk Feb 13 13:24:28 tapas, Date d = new Date(); d.getTime() / 1000; Feb 13 13:24:33 ah well. Date.getTime() returns milliseconds Feb 13 13:24:33 thats my manifest Feb 13 13:24:36 so i can just divide.. Feb 13 13:25:02 Zharf: thanks Feb 13 13:25:31 MDijkstra this is the manifest i use.. if i put the IP number in the url it works.. but if i put www.some.com then it wont find the host: s extremely unlikely that the internet connection on the device is fine, but in-app the internet doesn't work Feb 13 13:25:46 oops sorry! Feb 13 13:25:55 my mirc is nuts.. Feb 13 13:26:12 MDijkstra http://pastebin.com/8TmQCEbk Feb 13 13:26:22 bestKoderEver: try instead Feb 13 13:27:37 Mikellip why? whats the difference ? /> closing tag? Feb 13 13:28:03 nah, that seems alright Feb 13 13:28:03 yes Feb 13 13:28:08 won't matter Feb 13 13:28:20 Ok :-/ Feb 13 13:28:21 and if the IP directly works, it's not related to permissions Feb 13 13:28:21 jupp... Feb 13 13:28:29 When I push an update to android market do I have to bump the versionName and versionCode? This is just a couple of bug fixes and my current versionName="1.0" and my versionCode="110". Feb 13 13:28:33 probably the way your SOAP lib is resolving the host, then Feb 13 13:28:54 check if any weird characters/newlines in your request maybe Feb 13 13:29:22 MDijkstra but im not using soap.. im using hardcore HttpPost Feb 13 13:30:10 ok anyways..ill go with the ip for now.. :P Feb 13 13:30:23 Does IP work? Feb 13 13:30:26 I think I know what the problem is, but let me see Feb 13 13:32:35 yes ip works.. Feb 13 13:32:56 oh, missed that :) Feb 13 13:33:01 then i get a respond.. but i dont know what type this is: Feb 13 13:33:03 response.put("HTTPStatus",httpResponse.getStatusLine().toString()); Feb 13 13:33:17 is it some kind of hash? map..? Feb 13 13:33:21 bestKoderEver: your code example isn't using hardcore httppost btw Feb 13 13:33:33 but httpurlconnection Feb 13 13:33:51 which is a different library altogether Feb 13 13:35:35 bestKoderEver: I hear it can be a bit weird Feb 13 13:35:54 bestKoderEver: I'd switch to the apache http library also included with androdi Feb 13 13:36:04 MDijkstra im trying two different way, this is the other way. the hard one.. but the responce type is not set right.. : http://pastebin.com/BJzDEgLE Feb 13 13:37:04 bestKoderEver: getStatusLine().getCode Feb 13 13:37:12 or something like this Feb 13 13:37:17 Hello Feb 13 13:37:21 #del2mar Feb 13 13:37:33 how different Feb 13 13:37:43 in fact i don't event know what's your problem Feb 13 13:37:49 is the gallery control amungs different versions of android? Feb 13 13:38:30 amungs? Feb 13 13:38:42 amongst Feb 13 13:39:12 I bassically want to have a listview of images Feb 13 13:39:26 and when you click on 1 of the images I want somethign to happen Feb 13 13:39:43 im investigating whether or not I can use a gallery for this instead of a listview Feb 13 13:40:03 Anybody, is there a resolv.conf or similar in Android 3 or 4? Feb 13 13:40:36 mantas322: look at the api Feb 13 13:40:47 it'll tell you how long its been in Feb 13 13:41:23 since api level 1 Feb 13 13:44:56 looks like the gallery control is capable of everything I need here. Feb 13 13:48:23 how can one add SOAPAction to apaches HttpPost ? Feb 13 13:48:40 i know its a wierd question :p Feb 13 13:50:09 When I'm in control and it's nothing a lot of companies etc will use I just skip SOAP and do a normal web api Feb 13 13:52:05 what happens to PendingIntents when an app gets terminated? Feb 13 13:52:54 I'm assuming they are independent and as soon as they fire the relevant activity/service will be constructed? Feb 13 13:53:54 yep Feb 13 13:53:58 the reference remains valid Feb 13 13:54:03 You can reach your SOAP API of course with a regular HTTP post (or even get), and you can set your Accept header to application/soap+xml to receive a XML response Feb 13 13:54:04 thx Feb 13 13:54:25 dang`r`us: I would say nothing because PendingIntents are not stored by the application itself but rather by the system Feb 13 13:55:14 when comparing intents for equality, is the extras bundle part of the comparison? Feb 13 13:55:24 <{oOZe}> hey guys, can someone help me with a table with ImageViews and a touchlistener ? Feb 13 13:55:41 dang`r`us - out of curiousity Feb 13 13:55:49 what in the world is the reason for needing to do that =) Feb 13 13:56:27 ron_frown, scheduled notifications - when the app gets terminated, I still want to be able to remove those scheduled intents, for that I need to access the pending intent Feb 13 13:56:36 it's not that uncommon, is it? Feb 13 13:56:44 and to do _that_ I must create a new one which equals() to the old one Feb 13 13:56:55 the docs for pendingintent mention this specifically Feb 13 13:56:59 unless I'm mistaken Feb 13 13:57:02 btw Feb 13 13:57:15 that the system manages pendingintents, and not the activity that handed them off Feb 13 13:59:14 MDijkstra, ah, cool Feb 13 13:59:29 I change a compatibility library from the google one to a custom one that supports map fragments, however I get pathclassloader errors now Feb 13 13:59:30 I figured that, but wasn't sure I was reading the docs right Feb 13 13:59:41 it can#t seem to find fragment activity I am extending Feb 13 13:59:52 anybody have any ideas how I can fix it? Feb 13 13:59:56 btw, can I activate the screen to notify the user that a new notification has been added? Feb 13 14:00:04 as in, un-blank it Feb 13 14:02:02 how do I change the pathclassloader ? Feb 13 14:02:09 mh, PowerManager, eh Feb 13 14:02:42 dang`r`us -yes, I've done it before, but dont recall how Feb 13 14:03:07 and I had diane shake her finger at me for doing it =) Feb 13 14:03:21 who/what is diane? Feb 13 14:03:48 <{oOZe}> anyone pls give me a hint how i can get the current view under my finger when im in the event.Action_Move, i m only able to get the view touched in the firstplace .. Feb 13 14:03:48 diane hackbord Feb 13 14:03:51 hackborn Feb 13 14:03:55 a android engineer Feb 13 14:03:57 an Feb 13 14:04:07 I see Feb 13 14:26:20 is it safe to mutate intents passed to me e.g. in onStartCommand ? Feb 13 14:27:10 hmmm Feb 13 14:27:39 Okay, so I have 1 class, you press a button and it changes to a new layout. Now my listeners for the new buttons aren't reacting... Feb 13 14:28:15 how can I make it listen for buttons on the new layout? why isn't it doing it anyways? Feb 13 14:28:54 why do i get a : HTTP Error 415 Unsupported media type ?? http://pastebin.com/q6z9kDdz Feb 13 14:31:20 because I forget to link it in the XML! Feb 13 14:31:26 probably Feb 13 14:32:04 Hi! I want to add a small feature to my application where the user should be able to display a button on top of the system, i.e. even when different activites from other apps are running. I am using TYPE_SYSTEM_OVERLAY to achieve this. However, if I set an OnClickListener on the button, it does not get activated. Instead, the event is routed to the activity behind the button. Any help here? Feb 13 14:32:23 e.g. if you want to make listeners "listen" to dialgos you also have to do something likeButton asdasd = (Button)dialog.findViewById(R.id.asdasd); Feb 13 14:34:16 Aeefire, the issue is the last programmer wasn't exactly well orginised.. Feb 13 14:36:51 Gallery is not behaving! When switching to another element, it does not get rendered properly until I switch to yet another element, and then back again Feb 13 14:37:08 l4nce0 i don't really get what you mean now Feb 13 14:37:16 The part of the element that does not get rendered properly is a custom view (for borders around the element) Feb 13 14:37:20 hello, how do you figure out what dpi your device is? Feb 13 14:37:20 any ideas? Feb 13 14:37:46 Aeefire, don't worry about it, I fixed it. the last programmer put listener framework in the code and didn't bother to link it in the xml Feb 13 14:40:19 oh, I got the solution on SO - http://stackoverflow.com/questions/4750814/creating-a-system-overlay-where-the-home-buttons-still-work :) (I had to use TYPE_SYSTEM_ALERT instead) Feb 13 14:40:54 this is awesome, in a few hours, knock on wood, this ap will be ready for the market ;) Feb 13 14:43:24 L4nce0 you don't actually have to "link it IN the xml" .. depends on the listener hehe Feb 13 14:44:35 true true.. this project shows me there are many confusing wtf ways to program android. Still not sure why we have half the textviews in their own XML, but yeah! Feb 13 14:44:53 Maybe I'm supposed to be doing that? Feb 13 14:45:08 what do you mean with Still not sure why we have half the textviews in their own XML, but yeah! Feb 13 14:45:37 you mean every textview has its own .xml ? Feb 13 14:45:44 you might want to call that OOP Feb 13 14:45:45 lol Feb 13 14:45:58 depends how much it is needed and senseful, however. Feb 13 14:46:12 Aeefire, yeah they are .. I'll have to ask him later why.. Feb 13 14:46:42 http://en.wikipedia.org/wiki/Object-oriented_programming Feb 13 14:46:53 Well the ap has 2 screens and 1 list view.. and 10 .xmls for textviews Feb 13 14:47:03 harhar Feb 13 14:47:17 maybe the tutorial just wants to show that it is possible :) Feb 13 14:47:20 how to apply that patch ? http://www.android-x86.org/download/ethernet.diff.tar.gz?attredirects=0&d=1 Feb 13 14:47:24 no .apk file Feb 13 14:47:32 unpack it? Feb 13 14:47:35 <{oOZe}> hey guys ive got a table with 8x16 imageviews which i want to change color when touched/swiped on, i implemented a ontouchlistener for each imageview, but on move only the first one touched changes the color. any hints ? Feb 13 14:47:36 make that 12. Not really sure what any of them are for ;) Feb 13 14:47:39 Ehm... We got this assignment in school where we're supposed to load the images on the sdcard into a gridview and later on do some stuff Feb 13 14:47:55 however, the gridview is really lagging when I scroll, and I'm *only* requestion the smallest thumbnails possible. Feb 13 14:47:59 unpack where ?? Feb 13 14:48:00 n20, ... that's a great way to ge a rtfm responce =o Feb 13 14:48:12 oooh there we go! Feb 13 14:48:13 you are doing android at school? how cool's that Feb 13 14:48:14 lots of .diff files in folders Feb 13 14:48:35 L4nce0: Yes, probably. Feb 13 14:48:42 n20 did you optimise the images? I mean opening a 10mb pic when you just needed to run photoshop, optimise for mobile devices.. Feb 13 14:48:43 ck-ev\r4 : .tar.gz is a linux package if i remember right... like .zip Feb 13 14:48:56 but i believe there are also tools to unpack it in win Feb 13 14:49:06 L4nce0: Nope, we're to open the gallery without pre-manipulating the images Feb 13 14:49:14 The V2 ethernet patch for Honycomb Feb 13 14:49:16 fun.. Feb 13 14:49:21 L4nce0: So it can be those X MB large images :( Feb 13 14:49:28 I tried adding an asynctask into the adapter Feb 13 14:49:31 I got a solution.. Feb 13 14:49:37 It wasn't allowed. :( Feb 13 14:49:56 what do you mean with... "it wasn't allowed" ? Feb 13 14:50:14 n20, all I'm giving you is Bitmap image = BitmapFactory.decodeStream(this.getResources().openRawResource(img), null, o2); Feb 13 14:50:29 n20 => http://www.vogella.de/articles/AndroidPerformance/article.html Feb 13 14:50:30 * {oOZe} is weeping Feb 13 14:50:45 "The V2 ethernet patch for Honycomb" http://www.android-x86.org/download http://www.android-x86.org/download/ethernet.diff.tar.gz?attredirects=0&d=1 Feb 13 14:50:52 how to install/apply that patch ??? Feb 13 14:51:00 .. actually I don't think that's enough... I did that for the same reason, it's a bitch to write. will you get marked down for slow? Feb 13 14:51:04 how top install those .diff files ? Feb 13 14:51:36 L4nce0: *looks into it* Feb 13 14:51:39 Aeefire: L4nce0 thanks Feb 13 14:51:52 just ping me if you can't get further =) Feb 13 14:52:08 better ping him yea... i am not very much into asynctasks :P Feb 13 14:52:22 how top install those .diff files ?? Feb 13 14:52:27 "The V2 ethernet patch for Honycomb" http://www.android-x86.org/download http://www.android-x86.org/download/ethernet.diff.tar.gz?attredirects=0&d=1 Feb 13 14:52:33 stop spamming plz Feb 13 14:52:44 <{oOZe}> i would say ive got also an school project... someone would care ? ;) Feb 13 14:53:08 Well off to write some some security ciphers lol Feb 13 14:53:33 how to run ethernet cable internet in android-pc ? Feb 13 14:53:33 ck-ev\r4 : http://bit.ly/zo0ydJ Feb 13 14:53:41 {oOZe}, more that you used An incorrectly ;) I think half this room is college level Feb 13 14:53:44 ok Feb 13 14:53:51 rest are afk Feb 13 14:54:23 roflz Feb 13 14:54:24 <{oOZe}> L4nce0 i see english is not my mothertounge, so sorry for that .. Feb 13 14:54:43 don't care about all that grammar-nazi-bitching :D Feb 13 14:55:02 {oOZe}, just giving you crap =) an only if the next lettel is a vowl is ze rule Feb 13 14:55:04 and u cant even spell honeycomd u typed lmgtfu honycomb Feb 13 14:55:31 ck-ev\r4 is a troll and should really be banned, he keeps comming back with different nicks Feb 13 14:55:38 was rude to me in private chat etc :) Feb 13 14:55:52 <{oOZe}> L4nce0 : oO ;) Feb 13 14:56:14 eh just /ignore Feb 13 14:56:14 I mean, this can't be your first troll haha Feb 13 14:56:16 <{oOZe}> i just need some hints how to implemet my touchable table correctly Feb 13 14:56:47 he is on ignore :-D Feb 13 14:56:58 I notice when people use his nick and I haven't seen him ;-P Feb 13 14:57:05 btw: is it possible to bundle and apk with a directory structure that gets installed to the sd card? Feb 13 14:57:12 Mikellip troll Feb 13 14:57:14 Rodfpkkgh Feb 13 14:57:26 i never PMed u Feb 13 14:58:33 and stop waiting dreaming i never will Feb 13 14:58:47 u can leave freenode mirc n internet now Feb 13 14:58:55 n20: are you reusing the views if possible? Feb 13 14:59:36 ck-ev\r4 "The V2 ethernet patch for Honycomb" http://www.android-x86.org/download http://www.android-x86.org/download/ethernet.diff.tar.gz?attredirects=0&d=1 ====>>> i copy & pasted it from you. LOLZ Feb 13 14:59:52 <{oOZe}> why does my Touchlistener only return the the first view touched... isnt it possible to get further views during the touch event like the current raw koords? Feb 13 15:01:40 <{oOZe}> i dont want to store all my imageviews coordinates ina array to check equality during the touchevent Feb 13 15:02:29 I have a problem. Two PendingIntents compare as equal if they contain similar intents (which only differ by their extras bundle). is there anything I can set on the intent to make them nonequal? Feb 13 15:03:10 the requestCode, maybe? docs say "currently not used" though Feb 13 15:15:37 Hello everyone Feb 13 15:15:53 Does anyone have a good reference that explains when Android destroys a process that it creates? Feb 13 15:16:20 I have an activity that I run in its own process -- but it seems like that process is not destroyed when the activity closes Feb 13 15:17:49 Cpudan80: look at the activity lifecycle at http://developer.android.com/reference/android/app/Activity.html Feb 13 15:18:33 Cpudan80: you shouldn't, in general, attempt to micromanage activity lifecycle Feb 13 15:18:36 Cpudan80: runs its own process as in Runtime.exec? Feb 13 15:18:39 as android cleans them up when it needs memory Feb 13 15:19:05 Cpudan80: if you want to start/stop a background task on demand, use a service Feb 13 15:19:48 my onMeasure() method (custom view) relies on the width/height of the view, but does not work when inflating the custom view in a gallery until I switch back and forth between the elements Feb 13 15:19:49 Ge0rG: I have studied this in detail Feb 13 15:20:10 Cpudan80: are you starting a service or are you starting a native command via exec() Feb 13 15:20:12 Cpudan80: or other Feb 13 15:20:13 dragorn: no, it runs its own process as in the process attribute in the activity xml is set to :foo Feb 13 15:20:41 It just seems odd that the activity in the :foo process is done, yet the :foo process is still hanging out Feb 13 15:20:57 Cpudan80: ah; an independent service process. If you start is as a permanent process, it will run until you ask it to die with unbind and stopservice, or until the system needs ram Feb 13 15:20:57 Cpudan80: how is it 'done'? Feb 13 15:21:10 ie, did you call finish()? Feb 13 15:21:17 Cpudan80: it's not odd at all, you explicitly told android to make an independent service process Feb 13 15:21:38 Cpudan80: depending how you initiate the service in your bind, it will keep running forever until the system is out of ram Feb 13 15:21:42 dragorn: Its not a service. It's an activity with the process attribute set Feb 13 15:22:05 Cpudan80: how are you terminating the activity? Feb 13 15:22:07 MDijkstra: Ehh -- the user just backed out of the activity with the back button Feb 13 15:22:19 Perhaps that is the problem... Feb 13 15:22:21 Cpudan80: why would you do that? I'm not even sure that's completely valid. I suppose if it works it must be. Feb 13 15:22:23 well, no Feb 13 15:22:28 the back button is valid Feb 13 15:22:55 Cpudan80: either way, android likes to keep around processes for a little while Feb 13 15:23:20 Cpudan80: in case it needs to start another activity with that process set Feb 13 15:23:21 hah... ok, so it is valid, but my confusion is reasonable... "allowing the system to create instances wherever they are used (provided permissions allow it), something that is almost never necessary or desirable. " Feb 13 15:23:22 dragorn: Because the main process is running under the gun for memory usage, so I put this little one off activity that doesn't interact with the main thing into its own process Feb 13 15:23:24 Cpudan80: nothing to worry about Feb 13 15:23:50 Cpudan80: why would you do that? Feb 13 15:23:57 MDijkstra: do what? Feb 13 15:24:09 try to micromanage the way android manages memory? Feb 13 15:24:20 it'll automatically clean up stuff if it needs more Feb 13 15:24:39 and afaik, it'll also clean up components inside processes Feb 13 15:24:53 MDijkstra: It's a very large app -- we've done what we can to optimize it, yet we're still under the gun Feb 13 15:25:05 We need to pull our service out into a different app and do IPC Feb 13 15:25:27 But - that's a bigger challenge than what I can do today - so for now we decided to put certain activities in their own processes Feb 13 15:25:35 eh? I'm pretty sure services are always last to go Feb 13 15:25:48 regardless of what process they are in Feb 13 15:26:13 MDijkstra: Right now the whole thing is in one process. Including the service. The main app runs out of memory frequently Feb 13 15:26:14 same for activities, I'm pretty sure moving them into another process isn't supposed to matter to the collector Feb 13 15:26:37 MDijkstra: The idea was to separate the thing to give the main piece the user interacts with more breathing room Feb 13 15:26:56 The service should be in its own separate process -- but that is more work than I can do today Feb 13 15:27:07 Cpudan80: you're still not making a lot of sense to me, every process shares a global pool of memory Feb 13 15:27:21 Cpudan80: it shouldn't matter at all which process you run it in Feb 13 15:27:42 without knowing your actual goal, sounds like something where the heavy lifting needs to be done on a remote server and the app turned into a local display Feb 13 15:27:44 unless you're filling up the address space, which should be pretty much impossible on current android devices Feb 13 15:28:07 given there's 1gb of physical RAM and at least 2gb of virtual address space Feb 13 15:28:09 hi guys, is there any free android ebook for beginners? for real beginners, i would like to know exactly the structure, classes and application structure of an android application and how to start from hello world to a more complex application Feb 13 15:28:11 MDijkstra: Well, we see OOM exceptions generally when the user goes to take a picture ... Feb 13 15:29:01 norbi: there's some decent tutorials on the developer site; I think 'hello android' is relatively well regarded but I don't think it's free Feb 13 15:29:17 Cpudan80: yes, that's android cleaning up the activities because it needs memory Feb 13 15:29:19 MDijkstra: We're trying to get around the 24 MB per process memory limit --- that might be different in the latest version of Android, we're building against Froyo Feb 13 15:29:39 MDijkstra: Sure, except it fails miserably and crashes Feb 13 15:30:04 With the error "VM won't let us allocate [such and such]. KABOOM" Feb 13 15:30:30 ahhhh Feb 13 15:30:33 dragorn: can you please post a link? Feb 13 15:31:02 norbi: developer.android.com I think. for the book, amazon, or google Feb 13 15:31:19 MDijkstra: So did they change the memory model in the more recent builds? It's possible I can convince the higher ups to move to a different framework.... Feb 13 15:31:28 That's going to take some serious teeth pulling Feb 13 15:31:36 Cpudan80: don't know, have never had problems hitting the memory limit Feb 13 15:31:50 Cpudan80: how are you taking a picture? Feb 13 15:31:51 Like I said, it's a big application Feb 13 15:32:40 Cpudan80: well, you could be making it worse by getting the picture back in intent-data Feb 13 15:32:57 instead of letting the camera app write it to disk for you Feb 13 15:33:09 hmm Feb 13 15:33:16 Yeah we dont use the camera app for some reason Feb 13 15:33:18 I forget why Feb 13 15:33:26 right Feb 13 15:33:36 When use RawCameraCallback and get the byte[] and then save it to the SD card Feb 13 15:33:59 I think we put some extra stuff in with the byte[] (some kind of boilerplate text) then save it Feb 13 15:34:43 err sorry, not RawCameraCallback -- PictureCallback Feb 13 15:34:54 cold coffee <3 Feb 13 15:34:59 anyway, even for big apps, with smart caching you shouldn't have these issues Feb 13 15:35:03 and your workaround seems valid Feb 13 15:35:20 that android chooses to keep the processes around for a while shouldn't matter much, should it? Feb 13 15:35:35 MDijkstra: no, I guess not, just seemed odd Feb 13 15:36:10 Cpudan80: it probably keeps them around for a while if it doesn't need the memory immediately Feb 13 15:36:22 well - let's hope so Feb 13 15:36:36 I just hope I dont get OOM with those other things hanging around Feb 13 15:36:48 we shall see! Feb 13 15:37:07 android will always clean stuff if free memory drops below a treshold Feb 13 15:37:34 in the order stopped activities-paused activities-services-current activity Feb 13 15:37:41 yeah, we've managed to get our app probably about ... ehh 80% stable Feb 13 15:37:48 that might not be entirely accurate Feb 13 15:37:49 the remaining 20% involves picture taking and such Feb 13 15:37:52 but should be close enough Feb 13 15:38:00 So that's why Im moving the picture taking activity to its own process... Feb 13 15:40:22 Cpudan80: why not just outsource it to the camera app? Feb 13 15:40:56 There was some reason why we didnt do that Feb 13 15:41:08 I'd have to go back through my SVN logs to find out exactly why Feb 13 15:41:58 Cpudan80: I assume you are already using proguard to reduce the app's footprint? Feb 13 15:42:45 yes Feb 13 15:43:23 Since we released the app into the wild blue yonder, we decided to obfuscate it :-) Feb 13 15:45:03 * Ge0rG does not obfuscate any of his apps. but then, most are OSS anyway Feb 13 15:46:00 proguard is the bomb Feb 13 15:46:12 MyBigLongClassNameIsVeryLong -> a Feb 13 15:46:15 saves space Feb 13 15:46:16 loads faster Feb 13 15:46:23 yeah Feb 13 15:46:36 be very very careful when setting this up tho, but great Feb 13 15:46:47 I updated mine to 4.7 too (tools have 4.4) Feb 13 15:47:13 It's incredibly annoying that android's retrace tool does not work Feb 13 15:47:23 retrace works if you update to 4.7 Feb 13 15:47:40 fpillet: I have the latest, it doesnt work with the log messages Feb 13 15:47:51 You have to clean those up so it's just the stack trace Feb 13 15:48:04 Which is annoying, to say the least Feb 13 15:48:21 I setup ACRA in our product for crash reporting, extract the stack trace from the report in the google docs form and retrace seems to accept it Feb 13 15:48:56 right but you have to pull the trace out yourself Feb 13 15:49:01 You shouldn't have to do that Feb 13 15:49:17 I want my error reporting service to include the log information Feb 13 15:49:29 not just the stack trace Feb 13 15:50:58 check out ACRA Feb 13 15:51:01 it does all of it Feb 13 15:51:21 and there are some tools around it to help, too Feb 13 15:51:41 interesting ... Feb 13 15:51:49 Yeah this looks like something I could use Feb 13 15:52:04 Very flexible Feb 13 15:52:07 hello, i want Feb 13 15:52:10 Wonder why the guy who wrote our error reporter (like a week ago) didnt just use this ... Feb 13 15:52:11 Doesn't have to be a google docs form Feb 13 15:52:12 hrm... Feb 13 15:52:21 I'll have to inquire about that separately Feb 13 15:52:50 I wrote my own error reporter last week-end, then on sunday stumbled upon ACRA Feb 13 15:53:18 Just switched to using it, much more complete Feb 13 15:53:19 Cpudan80: reading the log requires a special permission that some users object to since the log may contain private data and allows an app to spy on the user (what apps he uses and when and so on) Feb 13 15:53:41 I understand that - my app is not for wide release Feb 13 15:53:49 appel1: yes but you can enable it for beta tests builds and remove the permission for release builds Feb 13 15:53:59 If you dont like the permissions my app wants, then oh well Feb 13 15:54:01 that's what we'll do - I have customized my ant builds to do just that Feb 13 15:54:02 Dont use it Feb 13 15:54:20 appel1: The people who pay us to develop it dont care what the permissions are Feb 13 15:54:30 I cringe a bit when reading an app wants that permission... and when they want contact data etc... bleh Feb 13 15:54:30 Cpudan80: ok then Feb 13 15:54:31 The app gets installed on phones that, ultimately, get ran over by cars Feb 13 15:54:38 So - no worries there! Feb 13 15:54:55 haha Feb 13 15:55:17 sometimes maybe a truck or a moped Feb 13 15:55:21 but usually a car Feb 13 15:55:25 this must be depressing. ,oO( and somehow reminds me of futurama's bender ) Feb 13 15:56:15 "Download this free photo app" Permissions: internet, contact data, sensitive log data, make calls/send sms, ... :-D Feb 13 15:56:56 :D Feb 13 15:57:04 ;-) Feb 13 15:57:08 Mikellip: yeah, just noticed that a swedish app called "Bredbandskollen" reads the log and puts a copy of it world-readable on the root of the sdcard ;) Feb 13 15:57:24 really?? Feb 13 15:57:25 the permissions system is broken by design, because it does not allow you to make the decision in the context where the data is actually needed Feb 13 15:57:30 Mikellip: sounds like the official Flickr app Feb 13 15:58:21 Yeah I really hate installing those apps that I feel shouldn't use those permissions at all Feb 13 15:58:35 Still some apps I don't want to live without, arf ;-) Feb 13 15:59:06 Mikellip: that app is created by the foundation that runs the swedish top domain, and their support didn't even understand why I thought it was an issue.. not impressed Feb 13 15:59:28 hi there Feb 13 15:59:29 appel1: wow, that's crazy... Feb 13 16:00:42 * Ge0rG is actually trying to find a sane way to email the phone's radio log. Feb 13 16:00:44 has anyone managed to create an AVD to test the Samsung Galaxy Note ? I tried creating an AVD with the following settings: Android-2.3.3(API 10), 800x1280 resolution, 320dpi, but whenever I try to run a game, it doesn't fit the whole screen Feb 13 16:01:14 can't you scale it down with the manual setting? Feb 13 16:01:20 Mikellip: since most users don't care about privacy or security most devs don't seem to either ;) Feb 13 16:01:31 hrmph..! Feb 13 16:01:37 appel1: ho ho! Feb 13 16:02:14 It's usually the bigger the corporation, the more strange permissions they want Feb 13 16:02:54 appel1: the beta version of our app actually requests the read_logs permission. At runtime, if the app runs a bug report or crash report, and that permission is available, logcat is pulled and added. Feb 13 16:03:05 SimonVT: yeah, I really want to try out the official flickr app but I refuse to install a photo gallery app that requires the permission to send sms messages :\ Feb 13 16:03:12 I'd really love to see android move more towards a permissions optional approach. Feb 13 16:03:25 appel1: Apply hanlon's razor. Feb 13 16:03:27 lov: sounds like a good approach :) Feb 13 16:04:15 lov: they could go with the Apple approach were all apps have permission to everything (except the gps where the user can choose). Feb 13 16:04:43 oh god. Feb 13 16:04:56 lov: Workaround: targetSdkVersion="n-1" :p It'd take years for that to be the standard Feb 13 16:04:58 so the funny thing is that iOS and Android aren't the same and don't have the same design philosophies. Feb 13 16:05:13 SimonVT: implementation is left as an exercise to the freetard. Feb 13 16:05:42 appel1: android was designed from the ground up for applications to use other applications and expose themselves to other applications Feb 13 16:06:03 which is why the whole permissions model exists; if your app provides some special power, you want to let the user choose whether to let other apps use that power. Feb 13 16:06:25 that said, I think that the "all or nothing" approach leads to trouble, but it's really a Hard Problem to solve at this point Feb 13 16:06:36 so while I'd love conditional permissions don't hold your breath :P Feb 13 16:09:48 <_lpc> hello, would it be possible to recompile only the wifi driver (bcm4330) for my galaxy s2 and replace the current one or do i have to recompile the whole kernel? Feb 13 16:10:02 you have to go to #android-root Feb 13 16:11:41 <_lpc> thank you Feb 13 16:12:36 _lpc: #android-root is probably the better place to ask. I'm sure if you played around with insmod you could try recompiling only the wifi driver but anything at this level becomes tricky. Feb 13 16:12:46 does anyone know if the Android Emulator has any resolution limitations ? Feb 13 16:12:58 I'd send you to #android-platform but that's just me and zinx again ._. Feb 13 16:14:26 <_lpc> lov thats why id need someone to backup me up in case somethign goes wrong :) Feb 13 16:15:13 _lpc: I'm not that person, sorry. Feb 13 16:16:55 Hi! I am trying to align 2 objects A and B within a relative layout. Everything works when I use RIGHT_OF and set ID for objects, but I get a result which looks like [A][B]. I.e. right side A aligned to left side B. Is it possible to make the right side A to align to right side B? so it looks like : [--A--[B]] Feb 13 16:17:01 I have this piece of code, http://pastebin.com/z03dGDtN and it's supposed to draw a chart in my activity and it does so properly. Both lines start getting drawn and everything with correct values, but at some point they just stop. Feb 13 16:18:12 theTroy: layout_alignRight Feb 13 16:18:21 sometimes it takes them a while, sometimes they stop prematurely without having gone far Feb 13 16:18:26 what could be the problem? Feb 13 16:18:30 SimonVT: I just realised, spent a day trying to make it work and just seen it in the docs >.< thanks! Feb 13 16:18:43 the functions that're being called inside are valid functions that return valid data Feb 13 16:19:52 So... about URI.parse() and Intent.ACTION_VIEW: I keep failing with "geo:lat,long?z=zoom" as shown here: http://paste.pocoo.org/show/550330/ Feb 13 16:21:21 Sicp: couldn't the thread be put to sleep? Are you saying Log.d() keeps reporting but your code stops drawing? Feb 13 16:21:38 no shoerain, Log.d stops as well Feb 13 16:22:02 and I get this, "D/dalvikvm(1619): GC_EXTERNAL_ALLOC freed 76K, 53% free 2578K/5379K, external 2022K/2137K, paused 54ms" in the end Feb 13 16:22:09 Sicp: attach a debugger. See if you're deadlocked or something. Feb 13 16:22:17 I'm suspecting that Feb 13 16:22:45 Sicp: I'm not going to dig through your code but you should try just going through this with the debugger attached and see if you get "stuck" somewhere. Feb 13 16:22:57 debugger attached? Feb 13 16:23:00 you mean a breakpoint.. Feb 13 16:23:09 .... yes Feb 13 16:23:15 because the debugger is already there Feb 13 16:23:18 also, what do your sendAndReceive methods do? Feb 13 16:23:25 Sicp: you can hit the "pause" button to immediately break your thread Feb 13 16:23:28 and see where it's at Feb 13 16:23:39 (make sure you've selected the right thread; you may wish to name it!) Feb 13 16:23:43 executeCommand("top -n 1 | awk '{ sum+=$10 } END {print sum }' "); Feb 13 16:23:45 that's what they do Feb 13 16:23:48 and they work for a while Feb 13 16:24:27 oh, uh Feb 13 16:24:40 well either top or `ps aux` Feb 13 16:24:42 both work Feb 13 16:24:49 what is your "repaint" method Feb 13 16:25:04 it just came with the AChartEngine Library Feb 13 16:25:10 http://stackoverflow.com/questions/8878573/android-dynamic-chart. Feb 13 16:25:16 -. Feb 13 16:26:18 Sicp: alright Feb 13 16:26:24 hm, what does this mean: 80A354043040743694 offline Feb 13 16:26:36 it's connected and i got USB debugging enabled.. Feb 13 16:26:37 means i have your serial number Feb 13 16:26:39 and now i can hax you Feb 13 16:26:41 oh noes Feb 13 16:26:54 tapas: it means that ddms sees that there's a device there but thinks that adbd is offline Feb 13 16:27:06 try unplugging and replugging the device and/or rebooting it Feb 13 16:27:13 lov: ok, thanks.. Feb 13 16:27:51 i have rooted the device and have a shell installed on it.. is it possible to run adbd manually? Feb 13 16:27:58 Sicp: that stackoverflow code also has a race condition and is liable to fail Feb 13 16:28:23 Sicp: create view in onCreate and make it volatile. Feb 13 16:28:34 volatile.. Feb 13 16:28:37 running adbd manually doesn't seem to help Feb 13 16:28:41 it just hangs.. Feb 13 16:28:50 ok, a reboot it is then Feb 13 16:28:56 there's no provision for already running threads either; if your activity is getting destroyed and recreated you need to make sure that your thread is stopped too Feb 13 16:29:18 anyhoo Feb 13 16:29:23 the activity doesn't get destroyed, the lines just stop moving Feb 13 16:29:26 it stops painting Feb 13 16:30:37 ok, well Feb 13 16:30:42 1) make sure that oncreate/onstop aren't called more than once Feb 13 16:31:04 ok, a reboot did it Feb 13 16:31:06 2) attach the debugger and step through, maybe pause the polling thread when it gets "stuck" Feb 13 16:31:26 1a) Make sure that the screen never turns off :> Feb 13 16:32:44 I think what I'm going to do is get both values in one hit Feb 13 16:32:53 Bash is powerful enough Feb 13 16:32:58 blaargh there's no Maps on this kindle with CM9, sigh. Feb 13 16:33:08 I'm stuck on step 6 of this tutorial: http://developer.android.com/resources/tutorials/notepad/notepad-ex2.html mRowId is a Long, while mDbHelper.updateNotes(...) needs a long ... I'm trying to follow the tutorial faithfully though, so I want to ask if the tutorial is wrong or if i did a mistake somewhere before i just cast it to long Feb 13 16:33:15 Sicp: that doesn't solve the underlying problem but sure. Feb 13 16:33:23 it avoids it :) Feb 13 16:33:32 Sicp: I honestly doubt it but good luck Feb 13 16:33:48 nevermind, i made a mistake Feb 13 16:34:20 Syzygy_: Java will use Autoboxing to convert Long to long automatically, etc. Feb 13 16:34:44 yeah, i wrote mRowID instead of mRowId ... Feb 13 16:34:46 (as long as the Long isn't null, in which case it's a NPE!) Feb 13 16:35:03 stupid mistake Feb 13 16:35:11 <{oOZe}> when can i getLocationOnScreen of an imageview ? in onResume() ? Feb 13 16:50:38 wonder who highlighted me sometime in the last week Feb 13 16:51:19 the world may never know! Feb 13 16:51:23 me Feb 13 16:51:25 ah, it was canadiancow|work. Sure, go ahead and /msg me if it's still relevant Feb 13 16:51:26 i did Feb 13 16:51:30 lol Feb 13 16:51:36 now i have to remember what it was... Feb 13 16:51:39 :) Feb 13 16:51:46 or the world may end up knowing Feb 13 16:53:30 ok, moving here from #android: about tasks and activities. I am trying to open one activity multiple times with different intents. Feb 13 16:53:51 later I would track open activities and allow the user to switch between them Feb 13 16:54:10 I tried various launchMode's (even multitask, which was the closest) Feb 13 16:54:43 I tried standard launchMode, but then onCreate/onNewIntent is not called for any further intent, but my activity is resumed Feb 13 16:54:55 i have a problem : my app works fine when the screen locks or i navigate to differetn activity. i get to the previous state but in that shor time periond when screen goes balck just before locking it slef and i navigate back to acitvity it resets everything Feb 13 16:55:05 ok lov, you were right Feb 13 16:55:06 num1: did u mean any special code by "launching the activity from the task? Feb 13 16:55:22 can we just do AsyncTask over sendAndReceive()? Feb 13 16:55:25 we, i mean I Feb 13 16:55:44 digitarald: you probably shouldn't try to track activities that were already launched, etc Feb 13 16:55:50 digitarald I had misunderstood you at first. I thought you wanted an activity that could be open multiple times, each instance in a different task. Feb 13 16:56:01 if you want the user to switch between things, consider one activity that tracks multiple things. Feb 13 16:56:02 digitarald I was confused, because that is the default behavior :) Feb 13 16:56:05 i.e. use a viewpager, etc. Feb 13 16:56:28 num1: one activity per task might be the best, as it does not interfer with history Feb 13 16:56:30 can ADT unlock the screen on app launch? Feb 13 16:56:47 dang`r`us: I'm sure you could hack it in but by default no it does not. Feb 13 16:56:47 digitarald I think you might be overthinking your application Feb 13 16:56:48 if they get stacked in one task, it will clear the top when switching, I'd guess Feb 13 16:56:58 sigh Feb 13 16:56:58 digitarald: step back. Feb 13 16:57:02 digitarald: what are you trying to do? Feb 13 16:57:07 i.e. what task are you trying to solve Feb 13 16:57:15 because odds are you're going about it the wrong way. Feb 13 16:57:52 hello, is the videoview supposed to make the video fit to the window? I have videos that have tiny aspect ratio and yet they still get fit to screen. the VV is set to wrap content. Feb 13 16:57:55 dang`r`us: if you're lazy, http://developer.android.com/reference/android/app/KeyguardManager.KeyguardLock.html Feb 13 16:57:57 lov num1: thats what most threads said about people trying to tackle multitask issues :) Feb 13 16:57:59 activity A holds a webview with some magic glue. Feb 13 16:58:30 A can be launched from various points in the application, but with different intents that load different websites Feb 13 16:59:10 brb sorry Feb 13 16:59:16 I want them all to stay open after the user closed the app and went back to the App Home Feb 13 16:59:22 define "stay open" Feb 13 16:59:41 not get destroyed Feb 13 16:59:44 ... Feb 13 16:59:44 lov, hmm .. thanks, but I'm not sure how that helps me (I want the screen to turn on and the app to become visible - not primarily concerned with unlocking a pin code protection) Feb 13 16:59:56 well, A, if the activity isn't in the foreground there's no guarantee that android won't destroy it. Feb 13 17:00:03 hi all! advise json parser Feb 13 17:00:05 B, I'm not sure what you're trying to accomplish here. Feb 13 17:00:23 slavabulgakov: http://developer.android.com/reference/android/util/JsonReader.html Feb 13 17:00:29 is "vnd.android.cursor.item/event" still the thing to use when creating calendar intents? (on my ICS beta I get ActivityNotFoundException) Feb 13 17:00:46 dang`r`us: http://developer.android.com/reference/android/provider/CalendarContract.html Feb 13 17:00:53 Calendars have official support as of ICS Feb 13 17:01:13 digitarald: you have an Activity with a webview, I get this part. Feb 13 17:01:21 why you need to keep it forever, that I don't understand. Feb 13 17:01:27 lov, I found that - but I actually wanted to launch a calendar activity. Maybe it's time for me to re-read the docs then ... Feb 13 17:01:46 digitarald: are you just not handling the saveInstanceState stuff correctly? Feb 13 17:01:50 lov: thanks! Feb 13 17:01:56 not forever, but at least I don't want to get a new activity instance when I call it with a different intent Feb 13 17:02:24 last sentence: I want to! Feb 13 17:02:46 Could anyone help me understand why when I switch away from my main layout, and then back, my Gallery doesn't have any pictures in it? Feb 13 17:02:50 ContactsContract.Intents.Insert I guess Feb 13 17:03:00 Is this default behaviour? Feb 13 17:03:13 using launchMode "standard" for the activity, it does not call onCreate/onNewIntent Feb 13 17:03:14 digitarald: use singleTop or something Feb 13 17:04:11 oh splendid, that's only for contacts, not for events Feb 13 17:04:36 can someone help me with my question please Feb 13 17:04:52 lov: I experimented with different launchMode, understand the basics task and activity management. Feb 13 17:04:58 I used singleTop and onNewIntent Feb 13 17:05:07 but that reduces A to one instance Feb 13 17:05:10 i love how strange eclipse sometimes is Feb 13 17:05:10 xD Feb 13 17:05:47 so, am I right in my conclusion that under ICS, there is no official mechanism for launching a system activity to create calendar events? Feb 13 17:05:54 lov: I just not reproduce the correct behaviour from Android the launchMode docs: "Every time there's a new intent for a "standard" activity, a new instance of the class is created to respond to that intent." Feb 13 17:06:32 I don't get a onCreate call when I call it with a new intent … Feb 13 17:06:58 thinking, could I launch an activity in a specific (dynamically determined) task? Feb 13 17:07:10 there's supposed to be onNewIntent Feb 13 17:07:13 but I never got that to fire Feb 13 17:07:14 digitarald: yes, probably. Feb 13 17:07:22 I'm pretty sure you can specify which task group to launch it in Feb 13 17:07:24 * lov shrugs Feb 13 17:07:32 digitarald: look up onNewIntent Feb 13 17:07:34 or wyhatever it is Feb 13 17:07:37 lov: I can do so per activity in the manifest Feb 13 17:07:43 does any one know what method is call when the screen goes balck but just before it locks ? it like 2 sec time period Feb 13 17:07:46 onNewIntent is only called for singleTask and singleTop Feb 13 17:07:46 you'll get a different call, not onCreate, when an activity that already exists is invoked Feb 13 17:08:05 in that shor time period my app doesnt work properly Feb 13 17:08:18 Androidnewbe: ..... onPause/onStop? Feb 13 17:08:19 lov: it is called, but on the activty that already exists Feb 13 17:08:23 digitarald: right. Feb 13 17:08:29 though is should start new instance Feb 13 17:08:33 s/is/it Feb 13 17:08:43 * lov shrugs Feb 13 17:08:45 sorry, lunchtime Feb 13 17:08:50 have a good one Feb 13 17:09:01 and thanks a bunch for helping out Feb 13 17:09:05 I solved it, lov Feb 13 17:09:16 it was just by synchronizing the method that was being called Feb 13 17:09:21 and the two instances of this call Feb 13 17:09:24 lov: android.util package does not contain Json class. why? Feb 13 17:09:26 http://code.google.com/p/android/issues/detail?id=17137 Feb 13 17:09:27 meh Feb 13 17:09:30 it's been running for 5 minutes now Feb 13 17:09:30 lov but that is wierd because it doesnt work in that case but it does in all other cases i have only implemented onResume and onPause so it should be ok right ? Feb 13 17:09:32 I win :) Feb 13 17:09:41 slavabulgakov: Feb 13 17:09:47 slavabulgakov: do you see the little search bar in the top right hand corner? Feb 13 17:09:52 I want you to click it Feb 13 17:09:52 and type "json" Feb 13 17:09:56 and see what autocomplete results show up Feb 13 17:10:02 then click one! :D Feb 13 17:10:24 Logic, it's the new black Feb 13 17:10:38 Androidnewbe: I have no idea why anything special is happening to you here nor do I know what you're actually doing. Feb 13 17:10:41 Good luck! Feb 13 17:11:02 SimonVT any idea ? Feb 13 17:11:14 Androidnewbe: I have no idea why anything special is happening to you here nor do I know what you're actually doing. Feb 13 17:11:55 well i dont think i have to go i to detail in this case Feb 13 17:12:40 because the app works in all other cases when i hit the home button etc Feb 13 17:12:41 * storkme just wrote his first bit of ndk code, fuck yeah. Feb 13 17:13:04 When your error report is "my app doesn't work", you really do have to elaborate Feb 13 17:14:31 yeah Feb 13 17:14:39 we don't really like playing guess-and-check, Androidnewbe :) Feb 13 17:16:12 evancharlton i mentioned already that my app works fine when the screen locks or i navigate to different activity. i get to the previous state but in that short time period when screen goes balck just before locking it self and i navigate back to acitvity it resets everything Feb 13 17:17:16 this is wierd because the same method of the acitvity life cycle are called in other cases so why would't it work in that case Feb 13 17:17:52 it's like something special is happening in that one case Feb 13 17:18:20 any way go figure innit Feb 13 17:18:56 Anyone with AndEngine experience here? Feb 13 17:19:01 Then figure out what's special about that case.. What lifecycle calls are made? Feb 13 17:19:17 lov: http://xmages.net/i/3364463 Feb 13 17:19:59 slavabulgakov: So you decided not to do that lov told you to? Feb 13 17:20:19 http://developer.android.com/search.html#q=json&t=0 Feb 13 17:20:35 SimonVT that is the thing i only use onPause and onResue so same method are used what ever happens Feb 13 17:21:28 Androidnewbe: So you don't save/restore state in your activity? Feb 13 17:21:55 i do in hose two metods Feb 13 17:22:04 since they are call always Feb 13 17:22:10 SimonVT: thanks! Feb 13 17:22:24 Anyway, too much guessing game, sorry.. I need food as well Feb 13 17:23:17 i just wanted to know if there is some less obvious calls made in that shor time that i might be unaware of Feb 13 17:26:32 How can I load an url with webview ? Feb 13 17:26:32 slavabulgakov I'm in a good mood http://www.json.org/javadoc/org/json/JSONObject.html Feb 13 17:26:40 I want to load an url when someone presses the menu button Feb 13 17:26:41 alex- fire an intent Feb 13 17:26:43 Action.VIEW Feb 13 17:26:46 erm... Feb 13 17:26:48 please don't Feb 13 17:26:55 why not? Feb 13 17:27:01 the menu button should open the menu Feb 13 17:27:09 true, but the menu is on a website Feb 13 17:27:37 I'm slightly confused, so there's a button on the website you want to have open a url? Feb 13 17:28:04 no Feb 13 17:28:08 the menu button should open an url Feb 13 17:28:21 you are talking about the physical key on the phone? Feb 13 17:28:22 you asked why; the menu is on a page Feb 13 17:28:24 yes Feb 13 17:29:19 okay this makes a little more sense Feb 13 17:29:22 so you have two options Feb 13 17:30:04 the first is to make you MySettingsActivity extends Activity and embed a WebView that loads the page Feb 13 17:30:13 that will let the settings screen feel like it's still a part of your app Feb 13 17:30:19 the second is to fire off an intent Feb 13 17:30:24 I already have: if (keyCode == KeyEvent.KEYCODE_MENU && event.getRepeatCount() == 0) { Feb 13 17:30:27 both are covered here http://developer.android.com/reference/android/webkit/WebView.html Feb 13 17:30:28 for the keypress action Feb 13 17:30:35 which android version are you targetting? Feb 13 17:30:51 2.3.3 Feb 13 17:30:56 But maybe later on more versions Feb 13 17:30:58 afaik KeyEvent.blah stopped being the right answer back in 2.0 Feb 13 17:31:03 I'm just developing the app for my phone atm Feb 13 17:31:14 there's an activity callback, onOptionsMenu{something} you should use Feb 13 17:31:25 How long until after I "activate" an update apk is it available on the market? Feb 13 17:31:35 explodes a few minutes Feb 13 17:31:49 cooo Feb 13 17:31:51 thanks Feb 13 17:32:33 alex- onCreateOptionsMenu looks to be the callback you should use Feb 13 17:33:01 Why not this function? Feb 13 17:33:07 it's uglier Feb 13 17:33:24 there's another reason that I'm forgetting Feb 13 17:33:24 That's only called the first time iirc Feb 13 17:33:35 SimonVT: nope Feb 13 17:33:40 onPrepare.. would be called every time Feb 13 17:33:41 SimonVT you're probably right Feb 13 17:33:46 num1: so what would the syntax be? Feb 13 17:33:56 man, my boss seriously does not seem to understand what scrum is Feb 13 17:34:20 Tell him it's him + r Feb 13 17:34:20 jasta haha, I just got a ticket with a week's worth of work, all itemized out within the ticket, we're a "scrum" place too Feb 13 17:34:23 he just sent this e-mail talking about transitioning from "stand-ups" to a sprint-based model. wtf does that even mean? Feb 13 17:34:55 alex- you just override the method Feb 13 17:35:04 but either way that doesn't answer your question Feb 13 17:35:17 jasta: wat Feb 13 17:35:21 afk for now Feb 13 17:35:37 however you manage to catch the callback, either fire off an intent with the Action.VIEW on the url or wired up to your SettingsActivity Feb 13 17:35:40 hey evan Feb 13 17:36:15 lol it means you have to give your status report while sprinting between desks Feb 13 17:36:27 motivates you to keep them short, obviously :P Feb 13 17:42:55 jasta: ask him how you can leverage synergies for web 2.0 win win paradigms Feb 13 17:45:10 jasta: "act like a start-up" Feb 13 17:46:59 Question, I'm opening up an activity and then doing startActivityForResult on the zxing, what's happening is: I get to my activity -> onCreate(); is run -> i click button -> startActivityForResult() -> get back to my activity -> onCreate(); is run -> startActivityForResult() -> get back to my activity ->onCreate(); is not run. Feb 13 17:47:18 any ideas why the startActivityForResult is causing my activity to run onCreate() ? Feb 13 17:47:22 if the activity already exits Feb 13 17:47:24 exists* Feb 13 17:47:49 Bear10, because unless you have the appropriate launchflags, a new one is created Feb 13 17:48:32 Bear10, see http://developer.android.com/guide/topics/manifest/activity-element.html#lmode Feb 13 17:48:55 pfn, to prevent that what flag would i need "singleTop" ? Feb 13 17:48:56 will try it Feb 13 17:49:09 Bear10, rtfm is in place here :) Feb 13 17:49:23 mastro, yeah i figured but what's weird is that the bug was suddenly introduced Feb 13 17:49:25 it never happend before Feb 13 17:49:26 lol Feb 13 17:49:46 Bear10, I doubt so :) you may not have noticed before Feb 13 17:49:59 * pfn agrees Feb 13 17:50:28 okay well singleTop didnt do it, will try singleInstance Feb 13 17:51:09 Going back to the starting activity should not cause onCreate to run Feb 13 17:51:13 this is all within a single app? Feb 13 17:51:21 pfn, no the zxing is run via intent Feb 13 17:51:32 so its my app -> intent to zxing -> result back to my app Feb 13 17:51:40 It might, depending on what is happening Feb 13 17:51:45 maybe your app exited Feb 13 17:52:03 pfn, weird though i'm doing a startActivityForResult(); and the whole backstack history is there Feb 13 17:52:15 and when its called a second time, onCreate is no longer run Feb 13 17:52:29 num1 lov: I am writing a small prototype to test androids task behaviour. Any idea how Android determines when an intent is "new", so it should open a new activity instance and not resume an old one? Feb 13 17:52:40 Just remember to save/restore state, then you'll never know Feb 13 17:53:22 so screen A -> screen B... onCreate() -> i click on a button -> startActivityForResult -> zxing -> screenB... onCreate() -> click on button -> startActivityForResult -> zxing -> screenB... onCreate()... not run Feb 13 17:53:31 thats the work flow Feb 13 17:53:46 I noticed that the when I run the emulator and press Ctrl + F11 / Ctrl + F12 the orientation flips from portrait to landscape - and so does the (Hello World) program text - but when I flip it back to portrait the text remains in the landscape orientation - what gives? Feb 13 17:53:49 Are you changing orientation? Feb 13 17:53:56 SimonVT, nope Feb 13 17:54:07 in neither of the 2 apps Feb 13 17:55:09 Doesn't zxing force landscape? Feb 13 17:55:24 no dont' think so but thats what im using anyways Feb 13 17:55:34 well i mean it scans in any orientation Feb 13 17:55:57 I have no idea really. Either way, save state in onSaveInstanceState and restore it in onCreate Feb 13 17:56:25 There's probably a reason for Android doing this that I'm not seeing Feb 13 17:58:55 Anyone here ever work w/ AnimatedSpites in AndEngine? I'm having trouble with them. Feb 13 18:06:04 Bear10, you mean your activity --> other activity (start for result) --> your activity (onCreate)? Feb 13 18:06:12 yeah Feb 13 18:06:31 Bear10, that's perfectly fine, your activity has been killed to give memory to the other. Feb 13 18:06:32 but then if i do another start for result, it doesnt run the onCreate on my activity (which is what i would expect) Feb 13 18:06:43 Bear10, your activity may be killed anytime Feb 13 18:06:54 Bear10, it's up to you to handle properly Feb 13 18:07:54 Bear10, you are doing it wrong... remember you already started activity for results by saving your instance state and do not start it again Feb 13 18:08:15 what do you mean do not start it again? Feb 13 18:08:20 i'm not starting anything again... Feb 13 18:08:43 Bear10, I'm assuming you execute a "startActivityForResults" from within your onCreate method Feb 13 18:08:47 no Feb 13 18:08:53 onClick of a button Feb 13 18:09:15 Bear10, well then I do not understand your sentence: "but then if i do another start for result, it doesnt run the onCreate on my activity (which is what i would expect)" Feb 13 18:09:23 i run my app -> click button it runs zxing -> returns to my activity -> runs onCreate(); on my activity... still inside my activity -> i click the button again -> starts zxing -> returns to my activity -> doesn't run onCreate()) Feb 13 18:09:57 because it calls onresume Feb 13 18:10:03 Bear10, it doesn't run onCreate the second time because Android have decided not to kill your activity Feb 13 18:10:14 but it decides to kill it the first time around? Feb 13 18:10:20 it happens Feb 13 18:10:22 anyway to prevent this? Feb 13 18:10:28 um don' Feb 13 18:10:31 whoops Feb 13 18:10:38 Bear10, you can't, and you shouldn't ever think about it Feb 13 18:10:45 there's really no way of telling whether it'll kill your activity or not Feb 13 18:10:45 because onCreate i load a userlist, and i dont want to have to load this again after scanning something Feb 13 18:10:54 so do it in the onresume method Feb 13 18:10:57 Bear10, http://developer.android.com/guide/topics/fundamentals.html Feb 13 18:11:31 store it in some kind of preferences (whether a bundle or a sqlite db) if you don't want to scan it again Feb 13 18:11:57 Bear10, you shouldn't rely on the system to keep your activity alive.. the system my decide to kill your activity any time and you should develop to be prepared about that Feb 13 18:12:07 mastro, alright Feb 13 18:12:08 Bear10: Look in to onSaveInstanceState and the Bundle you get in onCreate Feb 13 18:12:17 SimonVT, i am on that right now Feb 13 18:12:24 ^ well it depends on how large the scan is Feb 13 18:12:25 but if its a new activity the onSaveInstanceState will still be there? Feb 13 18:12:35 i mean assuming android killed my app? Feb 13 18:12:38 research Feb 13 18:12:42 Bear10, if you need to save something to use when your activity is created again use onSaveInstanceState Feb 13 18:12:47 as SimonVT told you Feb 13 18:12:59 Bear10: Android can reclaim the memory used by your app. If it does this, it lets you save some state in onSaveInstanceState Feb 13 18:13:02 Bear10, read the doc Feb 13 18:13:09 okay thanks Feb 13 18:13:12 When the activity is recreated by Android, that state is passed to onCreate Feb 13 18:13:24 using savedinstancestate would be a good idea though, hint Feb 13 18:14:03 Bear10, http://developer.android.com/reference/android/app/Activity.html#onSaveInstanceState(android.os.Bundle) Feb 13 18:14:20 mastro, yeah i am reading that i just wasnt sure if its killed itd still count Feb 13 18:14:48 Bear10, it's there for that purpose Feb 13 18:14:50 im worried that a 100+ item list might be too much to store in there Feb 13 18:15:04 Bear10, android store them to file Feb 13 18:15:09 oh Feb 13 18:15:21 awesome will do this then Feb 13 18:15:22 thanks Feb 13 18:15:48 Bear10, as long as you are passing native types (double, long, boolean, String) and / or Parcelable objects you'll be fine Feb 13 18:15:55 yep parcelable Feb 13 18:21:13 num1: back Feb 13 18:23:30 num1: which function did you say? Feb 13 18:24:04 mastro, SimonVT, will work on it tomorrow thank you for your time and guidance. Feb 13 18:38:19 Is it possible to display a page in android style? Feb 13 18:38:28 what do you mean? Feb 13 18:38:29 So it copies the style of the phone? Feb 13 18:38:42 alex- can you elaborate Feb 13 18:38:48 Ehm, if the style is black with white letters, like in the menu's, the page will also be displayed like this Feb 13 18:39:06 oh - hmm one sec Feb 13 18:39:16 like this: http://cdn.unixmen.com/wp-content/uploads/stories/android/settings.png Feb 13 18:39:25 but if anyone has his phone another theme, it should switch to that theme Feb 13 18:39:39 do some research into themes: you can build your own, etc. Feb 13 18:39:40 http://developer.android.com/guide/topics/ui/themes.html Feb 13 18:39:53 eplewis89: yes, but how am I supposed to know what the theme of the user is? Feb 13 18:39:57 Of his androi Feb 13 18:39:59 d Feb 13 18:40:06 The user doesn't select the theme Feb 13 18:40:11 ^ Feb 13 18:40:30 It's up to each app to select which theme is used in that app Feb 13 18:40:45 No, I mean that the app selects the theme of the phone Feb 13 18:41:01 is that even possibru? Feb 13 18:41:07 idk Feb 13 18:41:09 That's what I'm asking Feb 13 18:41:24 i think you have your answer: no Feb 13 18:41:25 Err, do you mean manufacturer theming? Feb 13 18:41:45 ^ the manufacturer (ie motocrapola) takes care of the theming for you Feb 13 18:41:47 Anyone here work w/ AndEngine? I'm having trouble getting my AnimatedSprite to move. Feb 13 18:41:47 yes Feb 13 18:42:10 So if the user has an phone with black background and white text menu's, he also will have this in the app Feb 13 18:42:18 yup Feb 13 18:42:20 They do that by changing the default themes (Theme, Theme.Light, and in ICS, Theme.DeviceDefaults and Theme.DeviceDefaults.Light) Feb 13 18:42:22 and if he has white background and black text menu's, same Feb 13 18:42:27 you got it Feb 13 18:42:34 So just use the default themes Feb 13 18:42:44 best thing to do is to start theming for ICS! Feb 13 18:43:06 For ICS? Feb 13 18:43:11 I want the browser to take care of it Feb 13 18:43:24 because Google is trying to unify the phones and remove a lot of differentiation (in theme, bloatware, etc) Feb 13 18:43:44 ok your question makes no sense, can you rephrase what you're trying to do? Feb 13 18:45:23 oh wait, you mean an html page? Feb 13 18:45:36 trying to display html page in android theme? Feb 13 18:45:57 alex-? Feb 13 18:46:25 what is ICU? Feb 13 18:47:14 eplewis89: yes Feb 13 18:47:15 intensive care unit Feb 13 18:47:25 php page Feb 13 18:47:37 alex-: you can't Feb 13 18:47:44 too bad Feb 13 18:47:57 jrr: are you sure? Feb 13 18:47:59 well, you might be able to by sending up a ton of crap from resources, but that's probably a bad idea Feb 13 18:48:08 http://stackoverflow.com/questions/9247151/compiling-icu-for-android-uint64-t-does-not-name-a-type Feb 13 18:48:14 everythingWorks: yes, he's right, for certain contexts :) Feb 13 18:48:30 what does this have to do with android here? :P Feb 13 18:48:43 everythingWorks: why don't you ask that person? Feb 13 18:49:21 http://en.wikipedia.org/wiki/ICU Feb 13 18:49:36 First google hit: ICU - International Components for Unicode Feb 13 18:49:38 alex- you can theme to one android style in your CSS but i doubt you can make it device specific, so the best thing to do would be to theme it according to ICS specs. good luck! Feb 13 18:50:00 shall I theme it in css? Feb 13 18:50:02 icu-project.org Feb 13 18:50:05 first hit as well Feb 13 18:50:13 Offers a portable set of C/C++ and Java libraries for Unicode support, software internationalization (I18N) and globalization (G11N). Feb 13 18:50:45 alex- that's more of a web thing, but yeah if you theme it in CSS and work with HTML5 you should have a good looking android site. I think you can detect whether the user is on an android phone as well Feb 13 18:50:55 He only may be on an android phone Feb 13 18:50:59 That's why there is an app Feb 13 18:51:08 The login system is phone specific Feb 13 18:51:10 is there any way to determine if an IntentService is running from another activity? Feb 13 18:51:13 What is the most efficient way of disabling or doing something when someone presses a hardware button? Feb 13 18:51:28 capturing it via onkeypressed Feb 13 18:51:33 Hi ppl, How can I tell proguard to not obfuscate a particular method of a class? Feb 13 18:51:35 Anyone here work w/ AndEngine? I'm having trouble getting my AnimatedSprite to move. Feb 13 18:51:43 should i perhaps allow it to handle some intent that checks a static boolean in the class that's set to true when it's running? Feb 13 18:51:43 class name can be obfuscated but not the method name in it Feb 13 18:52:18 vivekm, -keepclassmember Feb 13 18:52:30 vivekm, there are already examples of that in the bundled proguard.cfg Feb 13 18:52:33 eplewis89: any example of code? Feb 13 18:52:43 -keep class mypackage.myclass { Feb 13 18:52:44 eplewis89: I currently have if (keyCode == KeyEvent.KEYCODE_MENU && event.getRepeatCount() == 0) { Feb 13 18:52:44 public void foo(java.lang.String); Feb 13 18:52:44 } Feb 13 18:53:16 -keepclassmembers class mypackage.myclass { public void foo(java.lang.String); } Feb 13 18:53:25 none of these works :( Feb 13 18:53:31 alex- yeah give me a moment Feb 13 18:53:44 works for me Feb 13 18:55:46 alex- sorry it's dispatchKeyEvent Feb 13 18:55:52 alex- http://pastebin.com/H7PqiHae Feb 13 18:56:12 eplewis89: why is that more efficient than if (keyCode == KeyEvent.KEYCODE_MENU && event.getRepeatCount() == 0) { Feb 13 18:56:13 ? Feb 13 18:56:26 eplewis89: erm I mean public boolean onKeyDown(int keyCode, KeyEvent event) { Feb 13 18:56:48 @pfn, does it matter that my class is a nested class? Feb 13 18:56:49 it's called anytime you get a key even - could be volume, back, menu, etc. Feb 13 18:56:52 I just rechecked it doesnt Feb 13 18:56:53 event* Feb 13 18:57:14 you'd also have to check onKeyUp() if you're doing onKeyDown() Feb 13 18:57:37 dispatchKeyEvent gets fired each time a key event occurs Feb 13 18:57:44 ah Feb 13 18:57:56 any annotation/alternative way to mark a function? like @keepthisfoo Feb 13 18:58:10 alex- hopefully that helps, good luck Feb 13 18:58:45 vivekm, no idea Feb 13 18:59:28 huh I'm using intent.putParcelableArrayListExtra(), and it appears to work fine, but when I go to pull it out using getParcelableArrayListExtra() it's always null Feb 13 18:59:35 eplewis89: http://pastebin.com/GTFRytt3 Feb 13 19:00:07 @pfn, thx. I will publish w/o foo :) Feb 13 19:01:12 alex- looks good, put some debug in there and check it out. Feb 13 19:01:35 eplewis89: - The method getId() is undefined for the type KeyEvent - KEYCODE_SEARCH cannot be resolved to a variable Feb 13 19:01:45 ah.... hmm Feb 13 19:01:52 eplewis89: I always have errors when I use code Feb 13 19:01:56 event.getKeyCode() Feb 13 19:02:03 not event.getId() Feb 13 19:02:06 my bad! Feb 13 19:02:24 eplewis89: and what about KEYCODE_SEARCH cannot be resolved to a variable ? Feb 13 19:02:35 KeyEvent.KEYCODE_SEARCH Feb 13 19:02:53 need that KeyEvent call in front, refer to static var in KeyEvent Feb 13 19:03:21 ah Feb 13 19:03:23 thx Feb 13 19:03:41 np! my bad for not giving you complete code Feb 13 19:03:59 Whats the name of this `popupdialog`? http://imageshack.us/f/715/neuesbildl.png/ Feb 13 19:04:04 the one containing the two items Feb 13 19:04:05 webview.loadUrl("http://google.nl/"); I get: webview cannot be resolved Feb 13 19:04:18 alex-> #Java Feb 13 19:04:22 i can't help you there Feb 13 19:04:31 everythingWorks: ?? Feb 13 19:04:46 import WebView? Feb 13 19:04:48 everythingWorks Action dialog? Feb 13 19:05:13 everythingWorks http://www.londatiga.net/it/how-to-create-quickaction-dialog-in-android/ Feb 13 19:05:16 is there any good android tutorial? i am kind of a noob, but must of the tuts are so basic they don't explain any best-practices or how to utilize activities Feb 13 19:05:34 cougarten: http://developer.android.com/resources/browser.html?tag=tutorial Feb 13 19:05:40 ^ best Feb 13 19:05:54 oh wow, easier than i thought Feb 13 19:05:55 also read the entire dev site! Feb 13 19:06:30 thanks :] Feb 13 19:07:00 anyone know the default location in the filesystem where third party apps should store info? Feb 13 19:07:10 sdcard/android/...? Feb 13 19:07:12 everythingWorks: on top of the script it's imported Feb 13 19:07:24 eplewis89: you can get it from API Feb 13 19:07:32 What's good for spitting urls by parts? i.e. http://www.subdomain.imdb.com/abcd/efgh/url?k1=v1&k2=v2 to smaller pieces. It'd be cool to have something like urlparse() from python. Feb 13 19:08:02 p_l thanks i'll research it Feb 13 19:08:17 shoerain: you mean like new URL(String)? Feb 13 19:08:53 alex: then you wouldnt get an error ;) Feb 13 19:09:01 MDijkstra: but it seems like URL#getHost() would return me subdomain.imdb.com and not just imdb.com Feb 13 19:09:09 urlparse is a pretty non-object-oriented way of doing that Feb 13 19:09:30 I mean, OO or not, an existing implementation would be nice. Feb 13 19:09:41 shoerain: well yeah, because what you put in the 'host' part of the domain is dependent on the url scheme Feb 13 19:10:43 shoerain: ie, subdomain.imdb.com in its entirety is the host Feb 13 19:10:44 Also, really? urlparse seems pretty object oriented. you would do u = urlparse(url); print u.scheme, u.hostname Feb 13 19:10:46 not imdb.com Feb 13 19:10:53 how can i set up unit tests for a library project? Feb 13 19:11:32 ive created a new project which uses the library project, and added tests to it, but then it cant find the target package, running the app works by itself Feb 13 19:11:40 shoerain: no, it's not, it's about as object oriented as a random PHP method Feb 13 19:12:01 "object oriented" is such a racist phrase Feb 13 19:12:16 it's not like only asians make objects Feb 13 19:12:16 if i turn off "is library project" and run the library, then it puts the code on the device, but then i get a null pointer exception if i run the tests Feb 13 19:12:17 especially in python, where the definition is much less clear Feb 13 19:12:43 but I still don't get the logic in having urlparse() for python Feb 13 19:12:58 but then not having stringjoin() Feb 13 19:13:14 MDijkstra: well, lemme rephrase that then: it seems that I'd have to write an RE or something (splits(".")?) to break up the url after creating url. Feb 13 19:13:32 is it possible to put more then one item in a LL cell? Feb 13 19:13:40 MDijkstra: meh whatever, python has a lot of cruft too but I'm digressing. Feb 13 19:13:53 shoerain: nah, you can just split on '.' Feb 13 19:14:03 no need to resort to RE's Feb 13 19:14:52 ie, String components[]=host.split("."); Feb 13 19:14:54 is it alright to pass SQLiteDatabase.delete() something like "uuid not in ('tons','of','things','here',...)" where the not in clause might be a very long list? Feb 13 19:14:58 or is there some better way to do that? Feb 13 19:15:01 then just get the last two Feb 13 19:15:17 MDijkstra: yeah, i mentioned splits(".") also, but alright. Feb 13 19:15:41 MDijkstra: except that java's String.split() expects a regex, and "." is not the smartest regex for the use case :> Feb 13 19:15:49 Ge0rG: fair enough :) Feb 13 19:16:14 \. Feb 13 19:16:18 \\. Feb 13 19:16:19 gah Feb 13 19:16:33 rawwwww strings pleeeeease Feb 13 19:17:00 rawr Feb 13 19:17:34 or I guess you could just do [.] Feb 13 19:17:46 is is really funny to use somestr.split(".") and to end up with an empty array... Feb 13 19:17:58 * Ge0rG still hasn't forgiven java for not having String.join() btw. Feb 13 19:18:29 heh, which reminds me, I should try writing an android app in jython Feb 13 19:18:31 should be fun Feb 13 19:18:56 * Ge0rG wrote one in scala. it was fun most of the time Feb 13 19:19:29 i bet scala would be more fun than jython for android Feb 13 19:19:52 scala for android? Feb 13 19:20:14 yes? Feb 13 19:20:51 Ge0rG, any link? Feb 13 19:21:06 so am i right in saying c2dm needs to be authed with your google account? Feb 13 19:21:09 nvm, got something.. Feb 13 19:21:33 aboudreault: regarding that one app: http://aprsdroid.org/two-years/ Feb 13 19:23:13 seems as if all of the android tools turned to shit after r14 if you are doing anything with library projects Feb 13 19:23:30 birbeck: you need to fix your project files Feb 13 19:24:02 ...? Feb 13 19:24:32 yeah, because google likes to break your builds. Feb 13 19:25:00 It's true tho Feb 13 19:25:11 Ge0rG: there are tons of documented bugs regarding library projects post r14 Feb 13 19:25:24 with thousands of watchers and no comments from google Feb 13 19:26:01 so yes, they do, they completely broke android tools Feb 13 19:37:48 i cant get my project to launch in the emulator. I pressed the run button in eclipse und everything seems fine, just nothing happens when the emulator has booted up Feb 13 19:38:29 cougarten: did you declare your activity in the manifest? Feb 13 19:39:01 eplewis89, yes, i even tried following the hellowold tutorial to rule out any mistakes Feb 13 19:39:16 what's the url of the tut? Feb 13 19:39:30 * eplewis89 does the king tut Feb 13 19:39:55 http://developer.android.com/resources/tutorials/hello-world.html Feb 13 19:40:33 that tutorial doesn't have anything relating to the manifest.... >.> Feb 13 19:40:49 where are these so called bugs Feb 13 19:40:52 pfn: I finished my app Feb 13 19:41:11 wow that was fast Feb 13 19:41:29 is it awesome? Feb 13 19:41:31 cougarten: http://developer.android.com/guide/topics/manifest/manifest-intro.html Feb 13 19:41:35 well, I was basically rewriting an app I already put on the market Feb 13 19:41:44 just for good times Feb 13 19:41:55 eplewis89, well it creates a standard activity. but running an example app like lunar lander fails in the same way Feb 13 19:42:02 I see, is it working well? Feb 13 19:42:07 seems to be, yeah Feb 13 19:42:08 ...weird what does the debug say Feb 13 19:42:24 Hehe, Log.wtf Feb 13 19:42:35 if(user.isamonkey()) Feb 13 19:42:51 i think there's also log.stfu Feb 13 19:43:01 synic, considerably easier and faster to do with scala? Feb 13 19:43:09 is this a problem? "Emulator] emulator: WARNING: Unable to create sensors port: Unknown error" Feb 13 19:43:13 oh yeah. And much easier on the hands Feb 13 19:43:26 try to run your app and see what happens Feb 13 19:43:27 no question, any apps I do in the future will be in scala Feb 13 19:43:31 inorite? Feb 13 19:43:32 unless the company *requires* java Feb 13 19:44:07 at which point I will bitch like a little kid Feb 13 19:44:17 pfn i hate using a viewpager on tablets Feb 13 19:44:20 its retarded Feb 13 19:44:21 please fix Feb 13 19:44:29 eh? Feb 13 19:45:01 watumean? Feb 13 19:46:35 its just so jarring to see that giant panel float across the screen Feb 13 19:48:04 you mean in qicr, what would you rather it do instead? Feb 13 19:48:07 I'd keep the viewpager in Feb 13 19:48:22 just because jarring mikedgs ounds like a positive attribute. Feb 13 19:48:49 teleport Feb 13 19:50:29 so you'd prefer a different animation then? Feb 13 19:52:13 id prefer a different animation, fading perhaps, and no swiping Feb 13 19:52:15 just tabs Feb 13 19:52:34 I kinda agree with mikedg, ViewPager is more suited for phones :p Feb 13 19:53:31 I dunno if I agree, but I'll keep it in mind Feb 13 19:53:42 i dont care what you agree Feb 13 19:53:43 im the user Feb 13 19:54:39 haha Feb 13 19:54:51 hello world! Feb 13 19:57:34 I just wish some of the Android developers would turn their attention to fixing the horrific emulator instead of releasing a new version of Android every week. Feb 13 19:59:39 any help on my ADV problem? i fail at the hello world tutorial whet it says "When the emulator is booted, the Eclipse plugin installs your application and launches the default Activity" Feb 13 19:59:50 device boots, but all i see is the home screen Feb 13 20:00:18 is it possible to make a SErvice running in a different process from my app be visible only to my app ? Feb 13 20:00:38 cougarten: Problem is the emulator is so slow that the debugger gives up. You have to relaunch the app again (sometimes if you unlock the home screen it works) Feb 13 20:01:00 SmashCat, where can i find my app, should it be in the drawer? Feb 13 20:01:10 So I'm encouraged to use Maven instead of downloading .jars to attach to my project? Feb 13 20:01:13 cougarten: Should be running Feb 13 20:01:26 Or should I be using jarjar? Feb 13 20:01:45 cougarten: but otherwise you can find it in the apps folder - or just relaunch it from the IDE Feb 13 20:02:09 SmashCat, i did not quite get it yet. but i cant find my app in the apps list either Feb 13 20:02:34 cougarten: If there's any way you can just plug in an android device though, do that instead of using the emulator - it's garbage Feb 13 20:03:28 SmashCat, oh ok :) Feb 13 20:04:00 cougarten: :-) Just make sure you enable debugging in the options on the device and it's a much much better way to work Feb 13 20:09:30 do anyone knows an app that lists http audio or video streams and allow to play them in whatever app able to play them, broadcasting an ACTION_VIEW (or similar) intent ? Feb 13 20:17:32 is there a way to print an Intent's extras? Feb 13 20:17:48 basically stringify a Bundle Feb 13 20:17:49 just toStringing the intent prints out the extras, doesn't it Feb 13 20:18:04 getBundle.tostring would work too Feb 13 20:18:23 Bundle b = intent.getExtras(); if(b != null) { for(String key : b.keySet()) { log.severe(String.format("%s: %s", key, b.get(key))); } Feb 13 20:18:23 } Feb 13 20:18:35 I have a Thread that registers a BroadcastReceiver when it begins running, and unregisters right b4 it stops running. But this is proving very problematic. is this a bad idea for some reason? Feb 13 20:19:04 Wavesonics, what about it is problematic exactly Feb 13 20:19:07 depends on what you're doing Feb 13 20:19:14 and why is the thread registering it... that's plain weird Feb 13 20:20:00 pfn, it prints Intent bla bla has extras :) Feb 13 20:20:10 and the Bundle toString is pretty useless too Feb 13 20:20:19 pfn, hhmmm ya... well it appears to be calling register/unregister in the proper order, but when another instance of the thread is spooled up (NOT concurrently) it says the receiver wasn't unregistered proper.y Feb 13 20:20:21 bubbleguuum, thanks I'll try that Feb 13 20:20:33 ya i think im just gonna take it out of the thread and put it in the service that spun up the thread Feb 13 20:20:40 Can somebody recommend a good resource where to root the Droid Bionic? I am having difficulty after getting the latest update from Verizon... Feb 13 20:21:14 motocrapola, and i repeat... Feb 13 20:22:36 Hey, someone can help me =S I followed all this tutorial http://developer.android.com/resources/tutorials/views/hello-mapview.html , but I can't see the android image. Downloaded of course Feb 13 20:23:24 Wavesonics, if your thread outlives your service then it'll say it wasn't unregistered Feb 13 20:23:30 eazyigz: You're in the wrong channel for that. Try #android Feb 13 20:23:45 pfn, ah now thats interesting. that could be possible Feb 13 20:24:10 Wavesonics, because the determination point is when your service exits, not when your thread exits Feb 13 20:24:27 right! Feb 13 20:24:30 does anything look unreasonable about this line?: cr.delete(Responses.CONTENT_URI, Responses.RESPONSE_UUID + " not in (" + total + ")", null); Feb 13 20:24:34 think i had a bug ending the service! Feb 13 20:24:41 total = "'a','b','c','d'" etc. Feb 13 20:25:18 i'm getting a "bind or column index out of range" exception, for some reason :| Feb 13 20:32:46 on second thought, i wonder if doing something like "not in(?,?,?,?,?...)" with those items specified in the selectionArgs argument would work Feb 13 20:34:12 The fuck.. inkscape wont let me save Feb 13 20:34:45 Save => nothing happens.. save as => nothing happens.. close => "you should save before closing" => click save => nothing happens Feb 13 20:34:58 :\ take a screenshot, maybe? Feb 13 20:35:06 i've found inkscape to be notoriously buggy, too Feb 13 20:35:20 SimonVT: step away from the keypboard. :) Feb 13 20:35:27 -p Feb 13 20:35:40 maybe the save dialog's hiding somewhere behind another window @_@ Feb 13 20:35:57 pfn, that was it. had an erronous stopself() in my service Feb 13 20:36:06 Taking a screenshot ruins the point.. I want the raw image files :p Feb 13 20:36:08 neekers: :( Feb 13 20:36:15 And it's not hiding anywhere Feb 13 20:37:00 https://bugs.launchpad.net/inkscape/+bug/873954 Feb 13 20:38:22 There we go Feb 13 20:38:26 Open an existing image Feb 13 20:38:28 save as Feb 13 20:38:40 Apparently that fixes saving new images Feb 13 20:41:09 poor SimonVT, hes having a hard day... :) Feb 13 20:41:27 and its only monday Feb 13 20:42:01 my fault for expecting that I'd be able to save my work without issues :p Feb 13 20:43:05 heh Feb 13 20:43:40 it's like with word processors, i hit save like every 30 seconds. have never trusted them and never will. :) Feb 13 20:44:14 * pfn tests out his lag timer Feb 13 20:45:14 first try = fc, wonderful, heh Feb 13 20:48:08 oh, tried to format the long as a float, oops Feb 13 20:48:28 where the heck is g00s... Feb 13 20:48:46 who knows neekers Feb 13 20:48:59 How do I remove the title bar in my application? Feb 13 20:49:04 i've got a job for him and hes on a 72 hour coffee break... Feb 13 20:49:40 http://www.youtube.com/watch?v=oIAftrAjbOQ Feb 13 20:49:48 this is more or less how I do my development Feb 13 20:50:02 alex-, set a notitlebar theme, or requestfeature no title Feb 13 20:50:09 Which one is the best? Feb 13 20:50:26 lov: barreling downhill at full speed? Feb 13 20:51:14 in a plastic android suit while skiing Feb 13 20:51:16 but yes that too Feb 13 20:51:46 Do you also record videos while holding your phone in portrait? Feb 13 20:53:43 pfn: Which option is the best? Feb 13 20:53:53 SimonVT, I stupidly do Feb 13 20:54:09 i.toFloat is a no go, complains toFloat isn't a member of AnyVal Feb 13 20:54:10 oops Feb 13 20:54:17 look guy if you're taking a PORTRAIT of someone maybe PORTRAIT is an appropriate orientation. Feb 13 20:54:50 heh Feb 13 20:55:30 I'm trying to use a ShareActionProvider that shares images, but if the user selects facebook I want to use my own share to facebook activity. How do I suppress the Facebook intent receiver from the list of actions while showing the rest? Feb 13 20:56:11 which is the thread that call onSensorChanged ? Feb 13 20:57:02 How can I add an icon to my app? Feb 13 20:58:26 alex-: do you mean as the icon for your app, or just as a resource that your app can use? Feb 13 20:59:26 in either case, you'll need to copy the image into res/drawable (or whichever subdir is appropriate for your drawable, e.g. drawable-hdpi for high-pixel-density images, etc.) Feb 13 21:00:05 alex-: if you mean as the icon for your app that shows up in the launcher, look in your AndroidManifest.xml for the tag; you specify the icon for the app via the android:icon attribute on that tag Feb 13 21:00:20 e.g. android:icon="@drawable/my_icon" Feb 13 21:00:24 you really shouldnt put any bitmap images in res/drawable Feb 13 21:00:29 use one of the density qualifiers Feb 13 21:00:35 ^ agreed Feb 13 21:01:33 Escherial: thx Feb 13 21:01:43 and what for hiding the title bar Feb 13 21:01:46 in which file do I have to do that Feb 13 21:01:49 alex-: it's all in the docs too, for future reference :3 Feb 13 21:02:20 you can do it in either your AndroidManifest or the Activity you want to hide it from Feb 13 21:02:25 alex-: same, AndroidManifest.xml. you can control it on a per-activity basis either on the definition for the activity in your manifest, or in code whenever Feb 13 21:02:45 Nah, if I use requestWindowFeature(Window.FEATURE_NO_TITLE); I get: Window cannot be resolved to a variable Feb 13 21:02:45 meh shouldn't twitter have the source of it's app released by now? i want to copy their design ;P Feb 13 21:03:01 you should probably import the right class then Feb 13 21:03:09 thx Feb 13 21:03:13 how do I know if I need to import it? Feb 13 21:03:40 Well, if you ever want to use a class not in your package Feb 13 21:04:05 alex-, if you use the class you need to import it, unless it's in the same package as you. A good clue is when eclipse complains about resolving stuff Feb 13 21:04:44 holde, hah I would love to look through that code too, so I know what not to do :P Feb 13 21:05:04 shit 4 pm Feb 13 21:05:17 what do you hate from this app num1? Feb 13 21:05:18 The twitter app has the legacy menu button on ics.. Don't do like them Feb 13 21:05:31 num1: ah Feb 13 21:05:46 If you understand how it works it's quite easy to create an app Feb 13 21:06:29 But what about webview.loadUrl("http://google.nl/"); I get: webview cannot be resolved but if I import, still the same error Feb 13 21:08:56 Hmm I think I did something wrong in my code, the app crashes on start Feb 13 21:09:33 Hmm...I just got fund transfer authority on Admob, and sent $50 to my account. Then I put in a $10 campaign, but it says ad pending approval. I wonder if it will say that for every campaign I subsequently do, or just the first one(s). Feb 13 21:11:04 How can I change my app name? Feb 13 21:11:06 I'm pending approval for my first Inmobi ad as well (developer end, not advertising). That went in 12 hours ago, I wonder which will be approved first (if they're both approved). Feb 13 21:11:12 alex- change it where? Feb 13 21:11:13 I named it something wrong (project name) Feb 13 21:11:16 ok, who is task/activity expert? I can not get Android to switch back to my intent-activated activity even using the same intent? It creates a new activity. Feb 13 21:11:30 Ologn: idk, when I install it, I see another name than I want Feb 13 21:11:31 how does Android tell that Intents are the same and resumes an existing activity? Feb 13 21:12:45 alex- : In your AndroidManifest.xml, within the application tag, look for android:label Feb 13 21:12:53 num1_ and luv tried to help Feb 13 21:12:58 alex-: Try changing that to what you want and see what happens... Feb 13 21:13:09 Ologn: any idea about my challenge? :) Feb 13 21:13:22 Ologn: android:label="@string/app_name" > Feb 13 21:14:08 digitarald: Activities work like a stack, if you launch activity B from activity A, then you finish activity B, then activity A will take control Feb 13 21:14:16 Ologn: where is @string/app_name ? Feb 13 21:14:54 alex-: Usually in res/values/strings.xml Feb 13 21:15:03 SmashCat: what if I don't finish B, just add to the stack by launching A again; A and B in a different task? Feb 13 21:15:16 thanks Feb 13 21:15:18 Why would you do that though? Feb 13 21:15:24 My application crashes now on boot, what do I have to do? Feb 13 21:15:47 alex-: Although if you translated your app to say, French, you might have a res/values-fr/strings.xml file as well. But just plain values is the default. Feb 13 21:15:53 digitarald: You need to store the state of the activity yourself, so that when it's back in control you can continue from where you were Feb 13 21:16:00 02-13 21:14:51.863: E/dalvikvm(238): Unable to open stack trace file '/data/anr/traces.txt': Permission denied Feb 13 21:16:12 What does this error means? Feb 13 21:16:16 holde, I just don't like how they didn't design for small or big screens. they do a respectable job of using WebViews and populating them but I wish it were much more seamless Feb 13 21:16:21 SmashCat: A already has multiple instances and persists state fine, thats not the problem Feb 13 21:16:34 and as was pointed out, they use the options menu which doesn't look very ICS Feb 13 21:16:48 but I want to reactivate it, go back to an activity instance I have stored as reference Feb 13 21:17:00 I have its intent, but firing it does create a new A instance Feb 13 21:17:15 alex-: it means that you're deadlocking on the UI thread, and for some reason you don't have permission to write into the file that lists all of your thread stacktraces. Feb 13 21:17:21 make sure that traces.txt is world writable Feb 13 21:17:21 * pfn wonders what a good period for running a lag timer ping is Feb 13 21:17:27 every 30 seconds every minute or longer Feb 13 21:17:29 lov: where is traces.txt? Feb 13 21:17:32 alex-: Also, while testing, you can just place the string in the Manifest itself. Like "Whatever". Also, letters are all right for a file name, if you name your project like "Fab@*lUs' '@!P" it might not work, don't know the exact OK characters off hand Feb 13 21:17:33 ..... Feb 13 21:17:37 16:16:15 < alex-> 02-13 21:14:51.863: E/dalvikvm(238): Unable to open stack trace file '/data/anr/traces.txt': Permission denied Feb 13 21:17:50 digitarald, if you have an activity already in the stack, and you want to reactivate it Feb 13 21:17:52 you have two options Feb 13 21:17:53 and Android "standard" launchMode should reuse an existing activity when it has the same intent Feb 13 21:17:56 Ologn: can i use spaces? Feb 13 21:17:56 glhf diaf Feb 13 21:18:01 digitarald: I think your approach is probably wrong. You shouldn't need to keep adding to the stack all the time Feb 13 21:18:07 the first is to call it with FLAG_CLEAR_TOP, which will finish all activities on top of it Feb 13 21:18:22 the second is to call FLAG_BRING_TO_TOP <-- I'm pretty sure this is what it is called Feb 13 21:18:33 lov: can't find that file Feb 13 21:18:33 num1_: which would destroy all my other A instances … Feb 13 21:18:36 yes, I saw that Feb 13 21:18:49 let me try it. I have a small test app that encapsulates the behaviour Feb 13 21:18:51 but like SmashCat, I, and a few others have said before. It sounds like you don't know enough about the stack to properly do whatever you're trying to do. Stop overthinking it Feb 13 21:18:57 alex- : I don't recall offhand. You have to look it up. If it works without spaces, but not with, then you might not be able to use spaces. Or might need to do something special. You have to look up whats OK and not. Feb 13 21:19:13 Ologn: ok Feb 13 21:19:17 <{oOZe}> n8 Feb 13 21:19:49 lol, nate? neight? Feb 13 21:19:58 argh, let me push that code to github to make my point Feb 13 21:20:00 n8 is an interesting way of saying bye Feb 13 21:20:41 I'm now stuck in the crashing of my app Feb 13 21:20:46 I can't find /data/anr/traces.txt Feb 13 21:22:09 alex- : /data/anr/traces.txt is probably on your emulator or device Feb 13 21:23:25 alex-: Use adb to copy the trace file to your computer, or adb shell onto the emulator/device and read the trace file Feb 13 21:23:49 what is adb? Feb 13 21:24:59 alex-, adb = android debug bridge Feb 13 21:25:02 alex-: go read http://d.android.com Feb 13 21:25:03 it's in platform-tools Feb 13 21:25:03 the whole thing Feb 13 21:25:06 alex- we've all been there, start reading up on android's dev site Feb 13 21:25:07 http://developer.android.com/guide/developing/tools/adb.html Feb 13 21:25:07 ^^^ Feb 13 21:25:28 We were there, then we googled Feb 13 21:25:47 " alex-: go read http://d.android.com the whole thing" agreed Feb 13 21:27:29 I don't really understand it Feb 13 21:31:36 alex-, there should be a tutorial or four that walk you through it Feb 13 21:31:46 also at d.android.com Feb 13 21:32:27 adb pull Feb 13 21:32:31 Where do I have to type that? Feb 13 21:33:45 What is the difference between 'default' and 'internet' in the APN type | Almtesh Feb 13 21:34:25 alex-: windows command prompt. Start > Run > cmd Feb 13 21:34:30 num1_: my test thingy https://github.com/digitarald/lab-android-multitasking Feb 13 21:34:56 supl is for GPS, so far I know Feb 13 21:35:48 drezel: in which folder is adb? Feb 13 21:35:57 digitarald, sorry I'm at work, maybe someone else is around who can look through it for you. Feb 13 21:36:13 alex-: its in your android sdk folder under \tools Feb 13 21:36:17 no worries, I am at work too … having github open is ok here ;) Feb 13 21:36:36 but thanks for the hints Feb 13 21:36:57 it might be \platform-tools actually Feb 13 21:37:29 thx Feb 13 21:37:33 num1_: whom could I poke for task/activities questions, can you point at someone? :) Feb 13 21:38:34 heh I'm a bit of a migrant. all I know is you're in the best public channel on freenode for these kinds of questions Feb 13 21:40:07 digitarald: consider asking on stackoverflow. Feb 13 21:40:48 lov: good idea, might be the first question I ask there Feb 13 21:41:10 hopefully not all people telling me that I need to step back and rethink my architecture ;) Feb 13 21:42:28 a monkey has a hold of my phone Feb 13 21:44:31 just a heads up, it probably will be :P or at least, there will be questions for clarification. In your question be sure to explain why you are doing what you want to do Feb 13 21:44:53 also post a link here if you don't mind Feb 13 21:46:56 Hi, anyone had much experience with admob? I am wondering if it is possible to have several publisher ID's in a single app, or does ToS prevent it? Feb 13 21:49:31 is there a .get method or a way to tell code wise if your app is deployed on a large or small screen, etc? Feb 13 21:49:56 yes Feb 13 21:50:11 generally not necessary though Feb 13 21:50:17 if you use layout-xlarge and whatnot Feb 13 21:52:10 hmm maybe im wrong Feb 13 21:52:15 Lots of reasons to do it in code :p Feb 13 21:52:16 i thought there was Feb 13 21:52:25 SimonVT: care to share? Feb 13 21:52:30 i havent needed it yet :P Feb 13 21:53:26 context.getResources().getConfiguration().screenLayout & Configuration.SCREENLAYOUT_SIZE_MASK == Configuration.SCREENLAYOUT_SIZE_WHATEVER Feb 13 21:53:49 I use a ViewPager on phones, FragmentTransaction.replace on tablets Feb 13 21:54:01 I guess I could just check if viewpager is null instead Feb 13 21:54:23 hmm searching for xlarge didnt bring up the COnfiguration class Feb 13 21:54:37 http://developer.android.com/reference/android/content/res/Configuration.html Feb 13 21:54:48 yes Feb 13 21:54:55 i found out after you copied that line :P Feb 13 21:54:59 ^_^ Feb 13 21:55:03 but searching the dev site for "xlarge" didnt bring it up Feb 13 21:55:15 thanks SimonVT. Feb 13 21:55:55 Yeah, I basically am trying to port my phone app to tablet.. I have two fragments, but I need to fix some listeners to do certain things based upon what device they are on Feb 13 21:56:25 is there any attribute to prevent a spinner from wrapping its contents? Feb 13 21:56:31 zerkz, good luck! I've had fun reading code by Mark Murphy (creativecommons) and Android (a lot of the native apps are open source) Feb 13 21:56:48 both of them have some good idioms for handling tablets and handsets with the same code base Feb 13 21:57:12 Gsingh, someone else had the same problem last night. He couldn't find anything but your milage might vary! Feb 13 21:57:23 lols Feb 13 21:57:27 its very annoying Feb 13 21:57:33 thanks. It's my first app I'm trying to push out before I graduate college. Feb 13 21:57:56 I was looking for something like single line like in textview Feb 13 22:06:23 How does one search for something like the LinkedIn profileless picture? (fit of stupidity/cluelessness) Feb 13 22:13:24 shoerain: google image search? Feb 13 22:13:30 anyone use Parse? Feb 13 22:13:43 folivora_: are you just taking a survey? Feb 13 22:13:43 evancharlton: not sure of the words to search D: Feb 13 22:14:11 question, I have a background service, but I want it to update an activity with its progress. The problems is when I send an intent to the activitly it forces the activity to the front Feb 13 22:14:22 I only want it to update if it has focus Feb 13 22:14:28 any tips? Feb 13 22:14:55 No, just curious if anyone else uses it and if they like it. I just started a new project with it to test it out. Feb 13 22:16:07 BankZ: pending intents Feb 13 22:16:12 BankZ: have the activity register for callbacks Feb 13 22:16:30 BankZ: if it's in the same process, just have it set a flag or something in a public static value Feb 13 22:16:34 * lov shrugs Feb 13 22:16:56 shoerain: .. just drag the image into the search box Feb 13 22:19:09 BankZ: check this, http://www.websmithing.com/2011/02/01/how-to-update-the-ui-in-an-android-activity-using-data-from-a-background-service/ Feb 13 22:20:12 neekers: thank you Feb 13 22:33:10 i have two buttons...im trying to get one to align left one align right...can anyone point out what im doing wrong? http://pastie.org/3376826 Feb 13 22:35:33 s/gravity/layout_gravity/ Jug6ernaut Feb 13 22:35:39 gravity would be the text in the button Feb 13 22:36:16 ahh Feb 13 22:43:40 If my app is using GL10 everywhere, and I want to use OpenGL ES 1.1... do I just change the calls to be GL11? What else do I need to do? (Or do I need to do something completely different?) Feb 13 22:46:39 er Feb 13 22:46:59 nevermind Feb 13 22:47:00 having some problem showing the action bar sherlock on a gingerbread device Feb 13 22:47:07 it only shows in landscape mode, not portrait Feb 13 22:48:06 any ideas? Feb 13 22:50:20 you broke it Feb 13 22:50:35 JakeWharton fix my bug yet? Feb 13 22:50:51 create a reproducible test case yet? Feb 13 22:51:45 no Feb 13 22:51:49 i got your message late last night Feb 13 22:51:50 sorry Feb 13 22:51:55 heh Feb 13 22:51:55 i'll see what i can do though Feb 13 22:52:05 you wanna bet ive got some if (ICS) code somewhere? Feb 13 22:52:06 :P Feb 13 22:52:10 haha Feb 13 22:52:13 action providers are simple though Feb 13 22:52:16 which is what i don't get Feb 13 22:52:51 etuleu, are you using v3 or the v4 betas? Feb 13 22:53:15 3.5 Feb 13 22:53:52 4 > 3 Feb 13 22:53:54 QED Feb 13 22:53:55 should I care about calling unregisterForContextMenu after calling registerForContextMenu? Feb 13 22:53:55 I'm trying to use Theme.Sherlock.Light Feb 13 22:53:55 are you using Theme.Sherlock? compiling with Android 3.2? targetSdk of 11 or greater? Feb 13 22:54:04 ok Feb 13 22:54:04 will I leak the context if I don't call unregister? Feb 13 22:54:11 Hello, got a OOP-related question. Feb 13 22:54:26 num1_, doubtful. you'll just keep receiving events Feb 13 22:54:37 I have activity, it has list on it, and it can be started in two modes. Feb 13 22:54:51 one mode start another activity after clicking item, and second i returning result. Feb 13 22:54:56 JakeWharton, that's what I suspected, thaks Feb 13 22:55:14 part`: class DATAAnswer extends Answer { public DATAAnswer() { throw new DontAskToAsk(); }} Feb 13 22:55:20 what is best solution for it. Intent+boolean+if, or subclasses with separated onitemclicklistener? Feb 13 22:55:37 SeligArkin: just let me finish. :) Feb 13 22:55:56 part`: spanning a question on multiple lines invites such jokes. :P Feb 13 22:56:19 i think of subclasses, since i don't like ifs so much. Feb 13 22:56:21 heh Feb 13 22:56:24 JakeWharton, what could change between portrait and land? Feb 13 22:56:34 part`, I think if statement, because I hate duplicated code :P Feb 13 22:56:51 nothing should unless you have values-land/ with a style of the same name in it Feb 13 22:57:02 num1_: there will be no duplicate code. Feb 13 22:57:21 I don't have values-land Feb 13 22:57:37 one class with all activity things in it, and two subclasses overriding method getOnItemClickListener() Feb 13 22:58:00 I guess it depends on how different your modes are, what you're saying seems like it makes sense Feb 13 22:58:01 disadvatange is that i have to add two activities into manifest. Feb 13 22:58:11 sounds like an OnItemClickListenerFactory to me Feb 13 22:58:22 * num1_ ducks out Feb 13 22:58:42 canadiancow|work, i totally broke action providers from XML in 4.0-wip Feb 13 22:58:44 don't pull Feb 13 22:58:55 ok Feb 13 22:58:56 well im at work Feb 13 22:59:05 so as long as you fix it in the next 40 mins, im good Feb 13 22:59:06 :P Feb 13 22:59:16 hmm Feb 13 22:59:27 i sort of know how to fix it I think... Feb 13 22:59:40 setExclusiveCheckable(boolean) isn't public on native menu item Feb 13 23:00:08 so I either reflect on it or use setGroupCheckable to hack it Feb 13 23:00:47 hey JakeWharton I'm too lazy to look at the docs. Does ActionBarSherlock have the contextual action bar too? Feb 13 23:00:52 for selecting multiple items Feb 13 23:00:59 v4 does Feb 13 23:01:10 that's the beta version right? Feb 13 23:01:14 yes Feb 13 23:01:17 cool thanks Feb 13 23:01:24 there will be anew one tomorrow too Feb 13 23:01:30 I'm on a tabled and I am trying to shrink the dialog down so that it is only as big as the biggest view in it. However all my dialogs end up being the same size no matter what. Are dialogs set a default minimum size? I'm using a tablet. Feb 13 23:01:30 awesome Feb 13 23:01:31 a release candidate, actually Feb 13 23:02:27 I think I remember someone saying v4 uses the native action bar if you're on ICS and uses your emulation if it's pre-honeycomb? Feb 13 23:02:50 pre-ICS Feb 13 23:02:52 yes Feb 13 23:04:27 hey JakeWharton, are you looking for work? Feb 13 23:05:34 just got a new job! moving to San Francisco in two weeks Feb 13 23:06:06 haha nevermind then, was about to offer a different job in SF Feb 13 23:06:13 congrats! Feb 13 23:06:36 thank you Feb 13 23:06:40 JakeWharton: google finally come to their senses and hire ya? :P Feb 13 23:06:58 haha no Feb 13 23:07:18 JakeWharton: congrats Feb 13 23:07:23 who's the lucky bride? Feb 13 23:07:33 JakeWharton, how's the housing hunt now? 2 weeks, time is running down! Feb 13 23:07:37 thanks. Square Feb 13 23:07:41 pfn, just signed a lease this morning Feb 13 23:07:48 damn, lease sight-unseen? Feb 13 23:07:50 where at? Feb 13 23:07:55 SoMa Feb 13 23:08:01 o.O I interviewed with square like two weeks ago! Feb 13 23:08:05 I guess that's convenient, and exepsnvei Feb 13 23:08:11 turned me down :( congrats again, that's a fantastic place Feb 13 23:08:14 * pfn wonder how he did that Feb 13 23:08:40 pfn, it's expensive but I wanted somewhere close to the office for the first year at least Feb 13 23:08:56 JakeWharton, if they drink at work, I guess that'll make stumbling home easy Feb 13 23:09:04 precisely! Feb 13 23:09:50 num1_, i think I was there exactly two weeks ago... Feb 13 23:10:09 is it possible to boot a rom using the sdk? Feb 13 23:10:18 er? Feb 13 23:10:26 i have a backedup rom and i want to load it onto my pc..i need some numbers... Feb 13 23:10:39 like a nandroid backup? Feb 13 23:10:52 im not so sure Feb 13 23:11:05 its been a while since i touched android sdk with eclipse or anything Feb 13 23:11:06 JakeWharton, Monday right? I think they had three or four people there interviewing at once Feb 13 23:13:19 fellayaboy, with some tweaking you /might/ be able to run the rom on the emulator. It depends on how crazy your phone is though. the smart folks at #android-root might know something about how to do it Feb 13 23:13:27 no not an nandroid backup, a clockwork recovery one Feb 13 23:13:43 #android-root Feb 13 23:13:48 to be honest I don't know what the difference is Feb 13 23:13:56 JakeWharton, congrats! maybe I can give you that beer I owe you also :) Feb 13 23:14:06 thanks num1 Feb 13 23:16:33 if I use SCREENLAYOUT_SIZE_LARGE in as an condition... will it include screenlayouts that are XLARGE as well? Feb 13 23:16:52 etuleu, maybe if we figure out your current issue Feb 13 23:17:13 still having it? Feb 13 23:17:41 zerkz, bitwise, no Feb 13 23:18:05 those constants are just 1, 2, 3, 4 for small, normal, large, xlarge, respectively Feb 13 23:18:15 & the mask and then compare >= large Feb 13 23:18:29 ok, i see. Makes sense then. I did forget that it was an int. Feb 13 23:24:19 hm i got a listview inside an alertdialog... background color of the listview is white..every time i touch the listview the whole listview gets black and i dont know why Feb 13 23:25:25 set cacheColorHint to #00000000 Feb 13 23:25:49 romainguy, wrote a piece on this very subject: http://android-developers.blogspot.com/2009/01/why-is-my-list-black-android.html Feb 13 23:25:53 i just happen to be reading it today Feb 13 23:25:57 again Feb 13 23:26:14 cue dramatic exit for dinner Feb 13 23:26:35 i'll have a try, thx JakeWharton Feb 13 23:29:40 does anyone know how to resize a dialog to be as big as its biggest child? Feb 13 23:31:26 Gsingh, content_width="wrap_content" ? Feb 13 23:32:07 no condescention intended, I don't know if that'll work or not Feb 13 23:33:13 num_1: already tried that but dialog always remains same size Feb 13 23:33:41 hm... you're using a custom contentView I assume? Feb 13 23:34:19 also you might want to try doing it programaticially http://stackoverflow.com/questions/2634850/android-dialog-width Feb 13 23:34:34 this guy wanted the opposite effect you want, but maybe the same solution will wor Feb 13 23:34:35 k Feb 13 23:36:07 is there a service somewhere that would list a selection of apps that send a particular implicit intent ? Feb 13 23:36:25 bubbleguuum, I wish! I think OpenIntents has something along those lines Feb 13 23:36:41 but there's no central registry of any kind Feb 13 23:36:51 too bad, that would be very useful Feb 13 23:37:19 my app can handle a specific Intent but I cannot find an app that send it! Feb 13 23:37:35 I mean a rela app, not a test app that I can do myself Feb 13 23:44:19 canadiancow, you're famous! http://jalopnik.com/5884800/ Feb 13 23:47:12 bubbleguuum, what are you catching? Feb 13 23:50:08 num1: ACTION_SEND intent on http:// scheme (among other scheme but this is the one I want to test) and audio/* and video/* mime-types Feb 13 23:50:41 correction: ACTION_VIEW Feb 13 23:52:45 bubbleguuum, you ought to be able to open any app that linkifies text and tap the link Feb 13 23:52:51 text yourself a url with the http scheme Feb 13 23:53:00 bubbleguuum, ^ Feb 13 23:53:42 num1_: I'm looking for a real app that do something useful, like a radio app that would emit that Intent on the stations it lists. Feb 13 23:53:55 the messaging app is real good sir Feb 13 23:54:00 but I see your point Feb 13 23:54:12 or even a podcast app Feb 13 23:54:25 how about the wikipedia app? Feb 13 23:54:30 or "Hacker News" Feb 13 23:54:39 G+ opens links using the browser Feb 13 23:54:46 so does the email app Feb 13 23:55:05 got it! the facebook app Feb 13 23:55:07 that's "real" Feb 13 23:55:50 we're talking about audio or video streams here Feb 13 23:57:01 why did you build something you don't have a use for ;) Feb 13 23:57:18 but seriously, I can't think of anything sorry. And there really isn't a central place you could look it up Feb 13 23:57:21 hello, I'm doing a translation for my app. I finished the translation file and added it to /res/values-fr. When I try to export the app using Android-Tools in eclipse, I get the followng error message: Export Aborted because fatal lint errors were found Feb 13 23:57:51 Akuma, assuming you're using eclipse, open the "problems" tab and see what the lint error is Feb 13 23:57:54 When I look at the errors it says: Resource '/Project/res/values-fr' does not exist Feb 13 23:58:05 but I have that directory Feb 13 23:58:10 and the files in it also exist Feb 13 23:58:23 this sounds stupid, but delete the error, clean your project, and see if it happens again Feb 13 23:58:43 I did that Feb 13 23:58:48 same prolem Feb 13 23:58:56 num1_: there's a use but other apps that could send this intent don't know about it yet :p Feb 13 23:59:58 the Intent system is cool but it is zero for discoverability Feb 14 00:01:00 bubbleguuum: http://www.openintents.org/en/ Feb 14 00:01:21 yup it's a good start Feb 14 00:01:39 JakeWharton, sorry I was away for a bit; yeah still having this issue Feb 14 00:01:58 it's really strange; I guess I haven't tested enough on < ICS devices Feb 14 00:02:03 bubbleguuum: I dunno, MIME types are about as 'unregulated' as intents Feb 14 00:02:04 can two broacast recievers receive the same intent? Feb 14 00:02:22 etuleu, it shouldn't be anything cause by ABS directly Feb 14 00:02:26 BankZ, that's the idea behind broadcast receivers Feb 14 00:02:37 but that's not to say something isn't happening indirectly Feb 14 00:02:51 JakeWharton, yeah I'm pretty sure I'm doing something stupid; but I can't figure out what Feb 14 00:02:54 are you using Theme.Sherlock.Light directly or is that the parent of your custom theme? Feb 14 00:03:12 I am subclassing it, but I tried directly also in desperation Feb 14 00:03:40 does it happen with the regular Theme.Sherlock? Feb 14 00:03:43 do you have any -land folders? Feb 14 00:03:53 what does the activity declaration in the manifest look like>? Feb 14 00:03:54 yes it happens with regular also Feb 14 00:04:03 I have a global theme set as well Feb 14 00:04:06 can that affect somehow? Feb 14 00:04:23 activity theme will override application theme Feb 14 00:04:32 yeah that's what I thought Feb 14 00:05:18 Hi guys! Feb 14 00:06:40 oh wow there's JakeWharton from ActionBarSherlock here :) Feb 14 00:07:01 the one and only. Feb 14 00:07:02 JakeWharton, your work is in my TODO :D Feb 14 00:07:35 I'm here to discuss with you of a strange behavior a just noticed on Galaxy Note Feb 14 00:07:38 what are my options for a web browser emulator that I can run on my desktop to see what my mobile websites will look like on android phones. Feb 14 00:08:03 if a Service is killed/stopped by the system (memory pressure) on Galaxy Note 2.3.x Feb 14 00:08:12 when it's restarted, onCreate() is called Feb 14 00:08:17 but not onStartCommand() ! Feb 14 00:08:31 hello, I'm doing a translation for my app. I finished the translation file and added it to Project/res/values-fr. When I try to export the app using Android-Tools in eclipse, I get the followng error message: Export Aborted because fatal lint errors were found Feb 14 00:08:36 When I look at the errors it says: Resource '/Project/res/values-fr' does not exist Feb 14 00:09:09 it makes kind of no sense to me to notice that, do you know other devices where scheduled automatic Service restart only calls onCreate and not onCreate then onStartCommand ? Feb 14 00:10:22 Akuma, salut Feb 14 00:10:38 salut Feb 14 00:10:45 Akuma, indeed the way how the error is reported is kind of strange Feb 14 00:11:09 supercurio, onStartCommand should be called since 2.1 (iirc), with a null intent if it was restarted Feb 14 00:11:42 supercurio, maybe samsung messed something up? Feb 14 00:11:53 well, especially considering that the directory values-fr exists along with strings.xml and other relevant files Feb 14 00:11:53 zcat, yep, it must be a bug they added, quite severe Feb 14 00:12:09 zcat, I'll report this to my Samsung contacts Feb 14 00:12:21 zcat, maybe it calls onStart() instead? lets try Feb 14 00:12:35 ok JakeWharton im home Feb 14 00:13:22 honey, i'm home! Feb 14 00:13:26 zcat, I'm thinking about a timer to call onStartCommand if it wasn't the case after something like onCreate + 1s . But it's messy Feb 14 00:13:37 fetch me my slippers and my pipe Feb 14 00:18:36 zcat, doesn't call the old onStart(Intent intent, int startId) either, just onCreate Feb 14 00:19:19 supercurio, odd. (Don't have my ATT Note yet to test. :) Feb 14 00:19:28 so, guys, if you're using Services and rely on the system to restart them on Galaxy Note.. don't be surprised about the failure :p Feb 14 00:19:45 ICS is imminent. "early March" Feb 14 00:19:55 zcat, aha yes, even if I doubt they fixed bugs in an US variant. In general more bugs are added :D Feb 14 00:20:26 Anyone online who can help me with map bounds using AndEngine? Feb 14 00:20:28 anyway I'll make sure they fix this one Feb 14 00:20:39 this error is driving me nuts, I can see no valid reason for it, when I compile in debug it runs fine and only when I try to export a signed package does it give me a problem saying that res/values-fr doesn't exist Feb 14 00:20:43 supercurio, fwiw, sometimes it takes over a minute before a service is restarted Feb 14 00:21:04 zcat, yes indeed, it depends on how many times and often it was killed before Feb 14 00:21:27 zcat, but the service is really re-created, listed as active in settings/running services Feb 14 00:21:36 zcat, except it's not started Feb 14 00:22:01 with mapviews, how do you guys switch production keys with debug keys? Feb 14 00:22:41 zcat, you know, I use someting like that to start a service only conditionally: http://pastie.org/private/f6go3njt9w9qhtighld8ca Feb 14 00:23:37 zcat, instead of using static variables or stuff like that, it should be the proper way but not really on buggy implementations Feb 14 00:24:30 Akuma, lint has been introduced recently, you probably hit a bug Feb 14 00:24:48 Akuma, lint can be disabled right? Feb 14 00:25:30 yea, I was just making sure I didn't do something stupid to screw up the whole thing Feb 14 00:25:39 if it's a bug i'll just disable it Feb 14 00:25:42 Akuma, also, I just checked project preferences, you can try unchecking "Run full error check when exporting app" Feb 14 00:25:52 yea Feb 14 00:26:00 Akuma, if the project builds in Eclipse there's no error Feb 14 00:26:13 Akuma, lint is just here to give a few tips, not add blocking errors Feb 14 00:26:13 I have the same proble with every project that has values-xx in it Feb 14 00:26:22 I see Feb 14 00:26:24 good to know Feb 14 00:26:47 Thanks for the tip, greatly appreciated Feb 14 00:26:50 Akuma, I would recommend reporting the issue on the proper Android mailing list then, so the guys working on it will know abou tit Feb 14 00:27:03 Akuma, well, test it before thanking me ;p Feb 14 00:27:05 Anyone here who uses AndEngine and has coded sprite collision? Feb 14 00:27:11 yea, I'll do that Feb 14 00:27:29 yea, disabling it solved it Feb 14 00:27:34 Akuma, cool Feb 14 00:27:39 Thanks again Feb 14 00:27:48 you're welcome Feb 14 00:28:07 lint is still worth it so I'm sure it will be nice to have that fixed Feb 14 00:28:37 hopefully, I was just pulling my hear trying to find a non existent problem in my code Feb 14 00:28:38 lol Feb 14 00:29:01 Akuma, yea, I thought immediately about a bug because I seen that before as well Feb 14 00:29:33 Akuma, nothing blocking, but often: reporting errors or warning at lines I changed files saved a couple days ago etc Feb 14 00:30:10 yea Feb 14 00:31:05 There are no built in "pushpins" for maps? You have to create your own? Feb 14 00:31:23 BankZ: you have to male Feb 14 00:31:25 oops Feb 14 00:31:27 make your own Feb 14 00:31:35 through overlays Feb 14 00:32:25 blah, i nop do graphics Feb 14 00:32:36 hrm, need to find one Feb 14 00:34:50 JakeWharton, I figured it out I am hiding the top part of the action bar because I want to see only the tabs Feb 14 00:34:56 it's my fault :) Feb 14 00:35:10 I did it in a bad way by just changing the ABS source Feb 14 00:36:58 LF help w/ AndEngine. Feb 14 00:37:59 kc102: that's not a very good way to get help :) Feb 14 00:38:05 JakeWharton, can I hide the top part of the action bar ? Feb 14 00:38:12 without hacking the abs? Feb 14 00:38:18 Well, whenever I ask for specifics I get no answers. Feb 14 00:38:26 So I figure ask broadly and see if anyone bites. Feb 14 00:38:54 so you can 'trap' them into helping further? No, that's not going to help, not everybody knows everything Feb 14 00:39:25 ,,, Feb 14 00:39:27 Not trap. Feb 14 00:39:34 I can ask. Feb 14 00:39:41 If they know any method of setting up map bounds. Feb 14 00:40:29 kc102: quickest way is to get a small runnable example that speaks of the problem you speak. Feb 14 00:40:36 to get help, rather. Feb 14 00:40:41 Yeah, I've been trying. Feb 14 00:40:42 etuleu, like in tab nav? Feb 14 00:40:46 I have examples. Feb 14 00:40:50 yes Feb 14 00:41:00 Code just isn't coming together the best because of the various things I'm using. Feb 14 00:41:09 supercurio, awesome. let me know if you have any questions Feb 14 00:42:02 JakeWharton, your answer impresses me, as a dev I tend to receive less questions than more ;) Feb 14 00:42:34 JakeWharton, so yea versy impressed by your effort on this lib, with the whole community management Feb 14 00:43:18 JakeWharton, as it's always challenging to take time for communication & still have time to work on the code itself Feb 14 00:43:33 yeah i usually do emails in batches Feb 14 00:43:40 i'll take 15 or 20 min a day and just hammer out replies Feb 14 00:43:59 hehe same here, with short answers Feb 14 00:44:27 Still I'm about 500 emails late :p Feb 14 00:45:20 I started the new year with an empty Gmail inbox Feb 14 00:45:31 i think it's been hovering between 20-30 every day since, though Feb 14 00:45:53 JakeWharton, can people send you emails trhough your apps? Feb 14 00:46:02 no Feb 14 00:46:07 well there's the email developer thing on the market Feb 14 00:46:14 I added that recently, to improve support, but it generate too much mails Feb 14 00:46:30 i don't have any real apps anyways Feb 14 00:47:30 recently I switch to payment system using in-app billing Feb 14 00:47:44 instead of using the previous app selling method Feb 14 00:48:05 the issue is that many people are frustrated because they can't buy, for many reasons Feb 14 00:48:23 so I added a simple button to contact me for purchase help/infos: error :D Feb 14 00:48:46 that's a mistake but kind of necessary (otherywise you get unfair ratings on market) Feb 14 00:49:18 yeah Feb 14 00:49:26 they're almost unavoidable anymore Feb 14 00:49:35 To solve the issue I'm starting working on that, an alternative payment system for developer (if anyone interested, you're welcome) https://docs.google.com/document/d/1Dt_oj2qJIibw4xQFDgWWU2-LPfDBold8hYSsqEVYUt8/edit Feb 14 00:49:43 anyone have a pushpin that works with a MapView they want to send me? Feb 14 00:49:45 750k activations a day a decent percentage is bound to be complete morons Feb 14 00:50:04 JakeWharton, yes that's expected Feb 14 00:50:50 JakeWharton, but also a lot cannot buy because of their country, because of internal market errors (really ^^) because google don't like their credit card, if they have one Feb 14 00:51:19 I wish Android Market would just accept PayPal Feb 14 00:51:29 but as it's not coming I'll have to do it myself Feb 14 00:51:48 hence the project linked previously Feb 14 00:52:24 paypal has an Android SDK for in-app purchases Feb 14 00:52:43 how does that work vs. the google 30% fee? Feb 14 00:52:45 yes Feb 14 00:52:58 pfn it works because Google isn't a greedy bitch like apple :P Feb 14 00:53:00 JakeWharton, but you need a server implementation as well Feb 14 00:53:30 JakeWharton, so what I'll do is write the server implementation (Google App engine) and the component you put in your app Feb 14 00:54:01 JakeWharton, re-using the same design as Google in-app billing, which is good Feb 14 00:54:38 I'm not a fan of alternative market, adding often as many issues as they solve Feb 14 00:55:27 JakeWharton, do you think I can somehow remove the top part of the action bar? Feb 14 00:55:28 pfn, it's up to you to do verification, that's about it Feb 14 00:55:29 and the requirement to install another app to install your app is often a no-go Feb 14 00:56:12 does it do that on ABS 4 ? Feb 14 00:57:19 etuleu, yes Feb 14 00:57:33 JakeWharton, ok going to use your beta :) thanks! Feb 14 00:57:55 etuleu, grab the beta6 support-lib and then just download a .zip of the 4.0-wip branch for the library itself Feb 14 00:58:23 did you separate the support lib? Feb 14 00:58:30 yeah Feb 14 00:58:32 easier to maintain Feb 14 00:58:36 cool! Feb 14 00:59:34 JakeWharton, did you published an analysis or your thought about ActionBarCompat ? Feb 14 00:59:48 no Feb 14 00:59:52 there's not much to say Feb 14 00:59:54 it's very basic Feb 14 01:00:18 doesn't support tabs, list navigation, split action bar, animations, action modes, hiding/showing, 90% of the regular action bar API Feb 14 01:00:33 and ABS v4 supports all of those things and 100% of the ICS action bar API Feb 14 01:00:38 JakeWharton, I guess you too assume they're never gonna backport ActionBar to older APIs Feb 14 01:00:54 JakeWharton: is v4 out? I haven't been paying attention Feb 14 01:00:55 i don't think it's worth their time Feb 14 01:01:02 evancharlton, very close, but not yet Feb 14 01:01:05 RC1 tomorrow Feb 14 01:01:27 nice Feb 14 01:01:28 JakeWharton, I hope they sponsor your project in some ways Feb 14 01:01:42 they open sourced ICS Feb 14 01:01:45 that was enough haha Feb 14 01:01:58 ;) Feb 14 01:04:14 any ideas how to cut PCB easily and quickly? Feb 14 01:04:26 trying to make some shapes for a project Feb 14 01:04:34 lasers Feb 14 01:04:45 decorative project, non-electronic :) Feb 14 01:05:35 hack saw + sandpaper Feb 14 01:07:03 buy a cheap jig saw from home depot Feb 14 01:10:01 needs to be done tonight though :o Feb 14 01:19:56 JakeWharton my simplified version is going well :) Feb 14 01:24:55 canadiancow, excellent Feb 14 01:26:58 i need superglue Feb 14 01:27:02 someone email it to me Feb 14 01:27:16 * drezel send an email Feb 14 01:31:48 oh jake Feb 14 01:31:49 i foudn the bug Feb 14 01:31:50 lol Feb 14 01:31:58 i still think it's ABS-related, but this makes it much easier Feb 14 01:32:08 parcelable is the one that's faster than serializable right? Feb 14 01:32:11 ? Feb 14 01:32:15 aah Feb 14 01:32:23 when drawing graphics in android (for an action game) does it make sense in the activity classes onpaint method to validate state and draw my graphics in custom methods where I pass the canvas object? Feb 14 01:32:28 err JakeWharton Feb 14 01:32:49 i just sent you an email Feb 14 01:32:53 or is that in practice just not the way you're supposed to do it Feb 14 01:33:52 canadiancow, will look in a bit, thanks Feb 14 01:34:01 already message me when you're looking Feb 14 01:34:05 it might need some explanation Feb 14 01:34:41 Can anyone tell me how to use images from the assets folder? Feb 14 01:35:02 Is it through XML and apply and id or can I use android.graphics.Bitmap? Feb 14 01:39:36 Hi people. I've enabled fast scrolling in an expandable list view, but when I drag the scroll button, the list doesn't scroll. Feb 14 01:40:19 uh Feb 14 01:40:35 oh, sorry, misunderstood your "expandable list view" Feb 14 01:40:47 np Feb 14 01:41:16 canadiancow, this works?!? Feb 14 01:41:26 no Feb 14 01:41:28 that's what breaks it Feb 14 01:54:51 hey anyone know if you can use visual voice mail on ICS with verizon? Feb 14 01:57:10 How do I go about learning about getting an ICE kernel to work on a device that only gb sources are released Feb 14 01:57:45 i'm going to become rich and famous when I invent a superglue where the lid doesn't superglue itself to the bottle after use Feb 14 01:57:52 lol Feb 14 01:59:15 haha Feb 14 02:00:06 Anyone by chance familiar with how to correct the issue where the Android market won't Open your app, i.e., pressing the open button responds with: Feb 14 02:00:19 "Sorry, the requested item could not be found on this device and could not be launched." Feb 14 02:00:32 Screenshot: http://android.nextapp.com/content/fx/external/InstallFail.png Feb 14 02:00:55 nope Feb 14 02:01:05 Consistently affects only that app (FX File Explorer), have seen it with other dev's apps as well, but this one is a major problem. Feb 14 02:02:04 I am running a sharedUserId, and installLocation="auto" Feb 14 02:03:23 i think i got a free galaxy nexus Feb 14 02:03:26 Anyone else here have an app that uses a sharedUserId? I want to test downloading it. Feb 14 02:03:30 due to a provider's screwup Feb 14 02:03:37 hays: the kernel and the framework are loosly coupled.... Feb 14 02:03:50 you should be able to run ICS on top of a GB kernel.... Feb 14 02:04:09 I'm helping organize an android-dev university course, can you folks spam out some unexpected-but-critical skills you think should be covered? Feb 14 02:04:26 Inversion of Control Feb 14 02:04:38 rndmcnlly: i assume this is for app developers? Feb 14 02:05:15 gandhijee: for 3rd/4th year comptuer science students who might consider a career in app development Feb 14 02:05:22 canadiancow, grab me one too Feb 14 02:05:28 lol Feb 14 02:05:36 im going tio have to deal with this though Feb 14 02:06:34 ABSv1 was released March 3rd Feb 14 02:06:38 er Feb 14 02:06:39 7th Feb 14 02:06:46 perfect date for a v4 this year Feb 14 02:07:42 Has anyone any idea on how to resolve the resource (R) class errors in Eclipse? Feb 14 02:08:17 The documentation say's it builds the resource variable when compiled but eclipse won't let me run because it can't find the variable Feb 14 02:11:32 fuck fuck fuck Feb 14 02:11:37 didnt realize tomo was vday until today Feb 14 02:11:46 busted! Feb 14 02:11:50 any idea why SCREENLAYOUT_SIZE_MASK is returning 15 on my Droid 1? :| Feb 14 02:11:54 i'm crafting some shit Feb 14 02:11:57 I thought it was suppose to be 1,2,3,4. Feb 14 02:12:04 how are you using it? Feb 14 02:12:27 using it as a conditional/logical comparsion to give support to tablets ( large and xlarge) Feb 14 02:12:34 i meant specifically Feb 14 02:12:49 if ((getResources().getConfiguration().SCREENLAYOUT_SIZE_MASK >= Configuration.SCREENLAYOUT_SIZE_LARGE)) { Feb 14 02:12:56 zerkz, that's not how it works Feb 14 02:13:03 getResources().getConfiguration().screenLayout & Configuration.SCREENLAYOUT_SIZE_MASK Feb 14 02:13:22 I don't get the point of using the mask Feb 14 02:13:23 compare that result to the sizes Feb 14 02:13:24 canadiancow: it's terrible here - every half-decent restaurant in town jacks their prices through the roof... we went for a nice hotel buffet on Sunday, and we're just going to grab some sushi or something tonight (being Tuesday here already) Feb 14 02:13:34 heh Feb 14 02:13:42 pfn, because both the size and the shape of the screen are stored in the int Feb 14 02:13:43 im just having difficulty finding a resaturant Feb 14 02:13:46 (config.screenLayout & SCREENLAYOUT_SIZE_XLARGE) == Feb 14 02:13:46 SCREENLAYOUT_SIZE_XLARGE Feb 14 02:13:51 YEA WE MIGHT BE ABLE TO SQUEEZE YOU IN AROUND 10 Feb 14 02:13:51 gandhijee: I guess loosely coupled is the key Feb 14 02:14:06 zerkz: for reference, 15 = 0b1111 <-- a mask that will select out the last four bits of the screenlayout data Feb 14 02:14:15 JakeWharton, but _SIZE_MASK returns the bits that match the mask, which can be more than one value Feb 14 02:14:22 gandhijee: I mean I have the kernel source for my phone and the ICS source from google. but pressing the make button won't give me somethign that will work, will it? Feb 14 02:14:33 JakeWharton, i.e. XLARGE also contains the bits for LARGE, no? Feb 14 02:14:34 ScreenLayout is composed of two ints, correct? The size is the mask, and the SCREENLAYOUT_LONG_MASK is to tallness i believe. Feb 14 02:14:42 hays: no it will not Feb 14 02:14:47 they're not stored bitwise Feb 14 02:15:19 a screen cannot be both large xlarge Feb 14 02:15:22 +and Feb 14 02:15:23 hays: no, you need to dig in to the framework Feb 14 02:15:26 w00t got a reservation at a reasonable time Feb 14 02:15:57 rndmcnlly so I need to do some bitwise operators? Feb 14 02:16:28 zerkz: JakeWharton had the recipe you want (value & mask) Feb 14 02:16:48 I think I see how it works now Feb 14 02:16:50 thanks Feb 14 02:16:56 np Feb 14 02:16:56 if ((getResources().getConfiguration().screenLayout & Configuration.SCREENLAYOUT_SIZE_MASK) >= Configuration.SCREENLAYOUT_SIZE_LARGE) { /* do stuff */ } Feb 14 02:17:36 gandhijee: did into the framework to do what Feb 14 02:18:04 fix it up for you phone, implement the hal stuff Feb 14 02:18:14 prolly some stuff in gralloc Feb 14 02:18:32 Is this C work? Feb 14 02:18:35 JakeWharton, hmm, interesting, thanks for clearing that up Feb 14 02:18:39 how do I figure out what to work on? Feb 14 02:19:54 personally, at work, I space out constants like this Feb 14 02:20:18 hays: what? Feb 14 02:20:23 I would use 10, 20, 30, and 40 because eventually someone is going to be all "I need a medium-but-not-too-large size..." Feb 14 02:20:34 and then i'm screwed if I used 1,2,3,4 Feb 14 02:20:37 thats what enums are for Feb 14 02:20:49 enumbnuts Feb 14 02:20:51 neekers: trying to figure out what to go work on to get ICS working with my phones GB kernel Feb 14 02:21:01 neekers: like a TODO list, or some kind of guidance Feb 14 02:21:33 guess that's why they deprecated those screen sizes Feb 14 02:21:41 or, well, not deprecated i guess Feb 14 02:21:52 they made something more useful which implicitly deprecates them Feb 14 02:21:55 using -sw/-s only works on 3.2+ which is kinda sucky Feb 14 02:22:03 yeah Feb 14 02:22:06 since that means they're useless for 2.2/2.3 tablets Feb 14 02:22:13 depends on what you're loading Feb 14 02:22:14 e.g. kindle fire, galaxy tab1 Feb 14 02:22:21 dell streak Feb 14 02:22:31 JakeWharton any progress on mine? :P Feb 14 02:22:40 CHILL CANADIAN Feb 14 02:22:45 FINE Feb 14 02:22:46 ...cow Feb 14 02:22:47 pwnz0red Feb 14 02:22:50 I'LL GO WORK ON WORDS WITH FRIENDS :( Feb 14 02:22:53 well not really Feb 14 02:23:04 pfn, https://github.com/JakeWharton/ActionBarSherlock/blob/4.0-wip/library/src/com/actionbarsherlock/internal/ActionBarSherlockCompat.java#L1038 Feb 14 02:23:29 terrible, but it works :) Feb 14 02:23:51 of course for layouts and crap I have to try and fit them in the old-style buckets Feb 14 02:24:13 hays, this might be a good starting point, http://marakana.com/s/video_tutorial_android_internals_building_a_custom_rom_pt_1_of_2,269/index.html Feb 14 02:25:03 hays there is no guaranty that ICS will run out of box on gingerbread kernel Feb 14 02:25:17 i don't expect one would in the first place Feb 14 02:26:04 there isn't even that expectation Feb 14 02:26:40 damnit cow Feb 14 02:27:21 wut Feb 14 02:27:58 JakeWharton, interesting hack Feb 14 02:28:47 canadiancow, how do I even know if this is working? Feb 14 02:28:54 i need different layouts or something Feb 14 02:29:01 ok so you want my projet? Feb 14 02:29:14 nah i'm on it Feb 14 02:29:27 god damn i just moved to another room for you Feb 14 02:29:32 android:background="#FFFF0000" Feb 14 02:29:40 = savior Feb 14 02:30:12 there better be something stupid on tv to distract me while i work Feb 14 02:30:24 * pfn just continues doing if screenLayout & _SIZE_XXX == _SIZE_XXX Feb 14 02:30:24 ok, works on 2.1 Feb 14 02:30:33 it worked on everything except ICS Feb 14 02:30:37 * pfn ponders why add to the confusion with _SIZE_MASK Feb 14 02:30:56 pfn, comparison Feb 14 02:30:59 >= large Feb 14 02:31:16 I suppose that's a good reason Feb 14 02:33:14 canadiancow|work, this should be built-in to the action bar! Feb 14 02:33:20 but I know the problem Feb 14 02:33:40 yes it should be Feb 14 02:33:41 but it isnt :P Feb 14 02:33:43 and ok :) Feb 14 02:34:01 I should write this down and send a patch to Gerrit Feb 14 02:35:39 I just realized who you are JakeWharton Feb 14 02:35:49 I'm making an app with action bar sherlock at the moment Feb 14 02:36:10 Very nice work on the library stuffs Feb 14 02:36:18 canadiancow|work, fixed Feb 14 02:36:22 cr5315, thanks! Feb 14 02:36:27 <333333333 Feb 14 02:36:31 you coming to io? Feb 14 02:36:35 not sure yet Feb 14 02:36:39 i'll be living there Feb 14 02:36:46 well Feb 14 02:36:47 then ok Feb 14 02:36:50 i'll buy you a drink Feb 14 02:36:53 haha Feb 14 02:36:53 ok Feb 14 02:37:00 or i will find some company to buy us both one Feb 14 02:37:06 samsung had a nice fucking party lsat year Feb 14 02:37:08 REAL alcohol Feb 14 02:37:13 unlike the official io afterparty Feb 14 02:37:18 did you see the fix? it's hilariously awesome Feb 14 02:37:20 which has like crap beer and shit beer Feb 14 02:37:22 no Feb 14 02:37:23 link Feb 14 02:37:38 https://github.com/JakeWharton/ActionBarSherlock/commit/c7262257aa759aa09391dd6cda82bbc537158859 Feb 14 02:38:30 major facepalmage Feb 14 02:38:39 probably should have been a hyphen in that Feb 14 02:39:03 hyphen in what? Feb 14 02:39:13 facepalm-age Feb 14 02:39:19 oh Feb 14 02:39:30 why doesn't eclipse have a 'ignored return value' warning? Feb 14 02:39:31 and yeah, oops Feb 14 02:39:31 C compilers whine about that all the time Feb 14 02:39:54 mrenouf, I thought there is such an option... Feb 14 02:40:05 well, in C it's a bit more vital Feb 14 02:40:05 JakeWharton Feb 14 02:40:06 are Feb 14 02:40:06 you Feb 14 02:40:07 kidding Feb 14 02:40:08 me Feb 14 02:40:08 :P Feb 14 02:40:12 since return values often signal error conditions Feb 14 02:40:16 how am i the only person who's had this problem Feb 14 02:40:23 I've had some similar dummie moves, like string.replace("foo", "bar") Feb 14 02:40:26 with no assignment Feb 14 02:40:28 whereas in java, there should be exceptions Feb 14 02:40:36 mrenouf, shame on you, string is immutable :p Feb 14 02:40:37 I guess no one is using collapsible action item callbacks Feb 14 02:40:45 :( Feb 14 02:40:45 pfn, yeeeaars ago :-P Feb 14 02:41:12 mrenouf, and for that matter, given the interesting in chaining method calls, lots of stuff retrns a value unnecessarily Feb 14 02:41:23 i love that pattern Feb 14 02:41:26 true Feb 14 02:41:34 something with an F Feb 14 02:41:55 I gotta say I hated it... the first time I saw StringBuffer in action Feb 14 02:42:07 but I was young and foolish then Feb 14 02:42:07 * pfn still hates chaining method calls in general Feb 14 02:42:26 and weak with the Eclipse Feb 14 02:42:28 so much that I generally just refuse to do it Feb 14 02:42:34 I write API wrappers that do nothing but use the builder pattern Feb 14 02:42:36 how to debug my app? it's my first app ever and right now it crashes on launch ind i can not find the mistake by commenting stuff out Feb 14 02:42:47 manager.endPoint().this(3).that(45).otherthing("Hello").fire() Feb 14 02:42:49 cougarten, LogCat! Feb 14 02:43:03 hah, I think I gave in once in my app... I actually changed method calls on my alertdialog builder... Feb 14 02:43:10 s/changed/chained Feb 14 02:43:15 mrenouf, gives me an uncought exeption of a group and a bunch of errors Feb 14 02:43:20 JakeWharton, NullPointerException, line 17: manager.endPoint().this(3).that(45).otherthing("Hello").fire() Feb 14 02:43:26 :-P Feb 14 02:43:28 haha Feb 14 02:43:31 yeah those are fun Feb 14 02:43:41 mrenouf, yeah, that is utter ass Feb 14 02:43:42 thats the only downside Feb 14 02:43:44 there needs to be a macro to toggle chaining onto separate lines and back Feb 14 02:43:53 there is Feb 14 02:44:00 assign to local Feb 14 02:44:22 Quick fix, it's not a toggle really. THe opposite is "inline" Feb 14 02:44:55 hmm I think it might only work on the outer most return value :-( Feb 14 02:45:17 macro that says: assign all intermediates to a local and null check them Feb 14 02:45:26 that would rock. then you fix it, and put it back Feb 14 02:45:42 Fluent Feb 14 02:45:49 yep Feb 14 02:46:07 never can remember that term Feb 14 02:46:12 I always just call it the builder pattern Feb 14 02:46:28 of course, some language feature like: blah.?foo().?getBar() would be nice Feb 14 02:46:34 groovy <3 Feb 14 02:46:44 I get that in Play Framework 1.x templates Feb 14 02:46:52 super useful Feb 14 02:46:55 .?what? Feb 14 02:47:00 equiv of: return (blah == null) ? null : foo.getBar() ... etc Feb 14 02:47:02 oh, you mean like stopping on failure? Feb 14 02:47:19 mrenouf, i have no idea where to start with the logCat stuff Feb 14 02:47:21 typo, but you get the idea Feb 14 02:47:21 that's the Maybe monad ;-) Feb 14 02:47:23 Play dropped Groovy for Scala-based templates for 2.x Feb 14 02:47:28 not sure what the scala equiv is Feb 14 02:47:33 something like .getOrElse( Feb 14 02:47:50 getOrElse.. that sounds a little threatening Feb 14 02:47:52 Option(foo) map { ... } getOrElse { ... } Feb 14 02:47:52 cougarten, it should be displaying your "crash" as an uncaught exception. Usually in red text, scroll up near the end and you should see what caused your app to exit Feb 14 02:47:53 gtfoOrElse Feb 14 02:47:59 haha Feb 14 02:48:11 DrPenguin, doThisOrElse(); // I mean it! Feb 14 02:48:13 mrenouf, there is red all over the place :/ Feb 14 02:48:24 and if you want to chain it, just return an Option in your else part Feb 14 02:48:40 Option(foo) map { ... } getOrElse { Option(bar) } getOrElse { Option(baz) } ... Feb 14 02:48:42 "I was recently researching your company..." *clicks spam* Feb 14 02:48:42 mrenouf: http://25.media.tumblr.com/tumblr_lx5lqyG19e1qaa7gwo1_400.jpg Feb 14 02:48:50 mrenouf, and a yellow uncought exeption of some group Feb 14 02:49:07 I made a taskqueue tool like that. It looks like doOperation().onUiThread() or doOperation().onBackGroundThread() Feb 14 02:49:08 but that's different from chaining... Feb 14 02:49:27 it returns a helper which does the actual executer submission Feb 14 02:49:42 anyone know of any good "layout for dummies" resources Feb 14 02:49:50 conference session reocrdings, websites, anythings Feb 14 02:50:13 there's the ever popular "world of listview from I/O 2010" Feb 14 02:50:15 gandhijee: question.. is it easy/possible to change the bootscreen image the kernel displays from ramdisk? Feb 14 02:50:17 I added some code so that I could use WakeLock, it seem to work fine once and even complied, but not that I try it again the app crashes in the emu. How can I fix it? Feb 14 02:50:21 but thats just listview Feb 14 02:50:23 gandhijee: Ive changed the bootloader one... Feb 14 02:50:29 mrenouf, i found the error, thanks Feb 14 02:50:40 TheChaoticGood: finding out what the problem is would be a good start, logcat it Feb 14 02:50:41 gandhijee: trying to figure out how to change the other has been a trial Feb 14 02:50:43 pfn, https://github.com/playframework/Play20/blob/master/samples/scala/computer-database/app/views/list.scala.html#L61 Feb 14 02:51:08 im looking at logcat and i don't really understand. I see Fatal Exception Main Feb 14 02:51:12 JakeWharton, indeed Feb 14 02:51:20 I admit learning layouts, weights, gravity, padding and margin was a major PITA coming from Web dev (GWT to be exact) Feb 14 02:51:25 unable to instatite activity componet Info Feb 14 02:51:26 If you dont understtand then, then pastebin it, and ill teach you how to understand it Feb 14 02:51:30 it was annoying having to basically learn to walk again Feb 14 02:51:35 thank you sir Feb 14 02:51:46 pfn, not as elegant as ?. but I like the fact you get control of the else Feb 14 02:51:55 well, elegance aside, it's not as terse at least Feb 14 02:52:10 you can always alias getOrElse to : or something Feb 14 02:54:58 I love writing stuff like: return a > b ? 1 : a < b ? -1 : 0; Feb 14 02:55:09 Drpenguin: http://collabedit.com/p4pvf Feb 14 02:55:10 mrenouf: WHAT IS WRONG WITH YOU Feb 14 02:55:11 to me that is simple, but I guess it's frowned upon? Feb 14 02:55:13 *jk* Feb 14 02:55:35 mrenouf, only frowned upon by java programmers or something Feb 14 02:55:41 heh Feb 14 02:55:43 well.. atleast from what I understand, the ? operator is frowned upon in general.. but if you comment your code good then I say screw em Feb 14 02:55:48 pfn: also by C guys ^^; Feb 14 02:56:00 My app seems to have lost the will to load stuff from the internet Feb 14 02:56:10 mrenouf, the fp crowd loves that shit Feb 14 02:56:17 cr5315, do you have PERMISSION_INTERNET ? Feb 14 02:56:19 cr5315: got the right permissions ? Feb 14 02:56:19 I do Feb 14 02:56:32 woops, beat me to it :P Feb 14 02:56:46 It was working fine yesterday, but now it won't work in emulators or on my phone Feb 14 02:56:48 I've started a new sample app before and spun my wheels for a while before realizing I didn't put it in. Just fails to resolve any hostnames. guh Feb 14 02:56:56 cr5315 are you checking your response codes? Feb 14 02:56:58 cr5315, emulator issues? Feb 14 02:57:12 and what do you mean by not working? just times out or crashes? Feb 14 02:57:15 t0mless, logcat shows that it's loading the stuff Feb 14 02:57:27 It's a webview Feb 14 02:57:32 that's not showing the pages Feb 14 02:57:34 if you start the emulator without a network connection, then connect to wifi for example it can remain offline Feb 14 02:57:45 TheChaoticGood: according to your st, it says it cant find the class testdev.HelloWebApp.HelloWebApp... WTF are you editing it as Im looking at it? stuf is changing in it Feb 14 02:57:57 I've tested it on my actual phone as well and it doesn't work on there either mrenouf Feb 14 02:59:01 have you verified that the content you're loading is actually available? Feb 14 02:59:11 Yes Feb 14 02:59:18 * t0mless shrugs Feb 14 02:59:23 I don't use webview so no idea Feb 14 02:59:33 oh sorry i was trying to chat. somehow my cursor ended up in the window... sorry Feb 14 02:59:48 TheChaoticGood: nah its cool, it just freaked me out **** ENDING LOGGING AT Tue Feb 14 02:59:56 2012