**** BEGIN LOGGING AT Sat Apr 14 02:59:58 2012 Apr 14 03:48:32 evancharlton T_T Apr 14 03:51:19 freenode dropped, blame evancharlton Apr 14 03:54:06 samsung makes the worst software ever Apr 14 03:54:11 OH THERE'S AN UPDATE. WOULD YOU LIKE IT? Apr 14 03:54:11 sure Apr 14 03:54:19 *uninstalls old version, removing all settings* Apr 14 03:54:32 *installs new version* Apr 14 03:54:39 then 30 mins to scan my damn computer for media Apr 14 04:16:02 hello, i am having troubles mouting an sdcard to the android emulator, although i followed those steps : http://www.streamhead.com/android-tutorial-sd-card/ i am still getting : the sdcard permissions as d—— Apr 14 04:16:42 I also tried to remount and got : remount succeeded but sdcard is still read only mode Apr 14 04:16:43 Apr 14 04:31:50 asterisk-Tester: Why not create a new emulator and create the SD card along with the emulator? Apr 14 04:32:14 I usually create an emulator and automatically assign it a few dozen megabytes right off the bat Apr 14 04:32:48 Ologn: u mean without using mksdcard command ? Apr 14 04:36:21 Or from the command line, do an mksdcard, then load it as "emulator -sdcard sdcard.img" Apr 14 04:40:24 Ologn: I didnt understand the loading part ... ? Apr 14 04:40:54 How are you loading/mounting the sdcard? Apr 14 04:43:43 ah, as described here ; http://www.streamhead.com/wp-content/uploads/2009/10/android_sdcard_commandline_config.png (which is what you meant , right ?) Apr 14 04:49:15 Ologn: ok, i created a new avd and gave it 32 MB at creation, now when i run it the sdcard folder is not d----- anymore, it is : d--rwxr-x but i still cannot push files to it... Apr 14 04:49:38 getting : Failed to push the item(s). null Apr 14 04:50:03 asterisk-Tester, type "adb shell" Apr 14 04:50:39 Ologn: ok i got a prompt... Apr 14 04:50:43 asterisk-Tester, then once you're in the shell, do "ls /sdcard" to see if it exists Apr 14 04:51:08 Ologn: yes, i got /sdcard Apr 14 04:51:26 btw i am using eclipse to see the folder and push files in case that matters... Apr 14 04:51:29 asterisk-Tester, so then type exit to go back to your normal prompt Apr 14 04:51:41 ok Apr 14 04:52:38 asterisk-Tester, and then do "adb push file.txt /sdcard/file.txt" with file.txt being the file. Preferably a small one as the first test Apr 14 04:55:33 Ologn: thx it worked nad i am able to see the file in eclipse view, but couldnt push a file from there.... Apr 14 04:55:50 i am missing some eclipse config, or is this a known bug ? Apr 14 04:56:20 asterisk-Tester, not sure, I don't do that much myself Apr 14 05:03:10 how do you rename a package in eclipse ? Apr 14 05:06:01 F2 Apr 14 05:07:11 hmm ok I'm getting an error that MyProject/.project is out of sync with the file system Apr 14 05:07:17 do you know how to fix that ? Apr 14 05:07:27 refresh Apr 14 05:07:39 how ? Apr 14 05:08:03 Ologn: thx, any idea of how to create a folder ? specifically /sdcard/DCIM Apr 14 05:08:43 I am trying from cmd : ./adb emu mkdir /sdcard/DCIM but it is not working Apr 14 05:12:58 devslash: F5 on project Apr 14 05:13:57 he would have figured it out Apr 14 05:14:32 nah Apr 14 05:14:53 if you dont know how to right click things can be very difficult Apr 14 05:15:19 lol Apr 14 05:39:01 you tend to figure more stuff out when you are getting the right nutrition and sleep Apr 14 05:40:46 or lsd Apr 14 05:41:22 why not BOOOOOOTTTHHH!!!!! Apr 14 05:42:58 JakeWharton: sure; try it before your fasting runs and let us know how it works out :D Apr 14 05:43:20 shit Apr 14 05:43:22 i forgot about that Apr 14 05:43:38 I need to change my alarm before I forget Apr 14 05:44:23 I have KTC kernel source for my device. Also a 64bit Ubuntu machine and the directions for compiliing a CyanogenMod build, what do I have to do to builg AOSP for ICS? Apr 14 05:44:28 *HTC Apr 14 05:44:39 #cyanogenmod ? Apr 14 05:44:52 10-4 Apr 14 05:45:01 we mostly do just apps :) Apr 14 05:45:31 right on, I have a good idea for one. Apr 14 05:45:43 but, once I build my OS, then I'll learn the apps. :-) Apr 14 05:45:50 haha Apr 14 05:45:53 very ambitious Apr 14 05:46:04 I try. Apr 14 05:46:19 do you have a suggestion on what channel I should try? Apr 14 05:46:33 I got banned from #Tiamat, idk why... Apr 14 05:46:57 readme: you'll like this http://thejeshgn.com/2012/04/10/howto-stay-anonymous-online/ Apr 14 05:48:42 g00s: i kind of gave up on anonymity today when I posted my app in here with my real name Apr 14 05:48:53 but I like to be semi anon Apr 14 05:48:59 Tom Apr 14 05:49:11 hmmm.... Jake? Apr 14 05:49:23 it's you irc ident and "real name" Apr 14 05:49:25 *your Apr 14 05:49:28 haha Apr 14 05:49:51 JakeWharton: can i use abs with a light theme? dumb question, i know Apr 14 05:50:03 Theme.Sherlock, Theme.Sherlock.Light, Theme.Sherlock.Light.DarkActionBar Apr 14 05:50:06 the latter of which is my fav Apr 14 05:50:14 ooh Apr 14 05:50:17 k, thx Apr 14 05:50:34 and you can add .ForceOverflow to any of those to get an action item overflow on pre-HC Apr 14 05:51:03 there are also .NoActionBar variants for the first two Apr 14 05:51:16 hm, ok Apr 14 05:52:16 and... Apr 14 05:52:21 *drumroll* Apr 14 05:52:26 I just upgraded to r7!!!! Apr 14 05:53:01 abs doesn't come with the compat lib any more though, right ? i have to look closer Apr 14 05:53:09 it's a dependency Apr 14 05:53:12 but as a binary Apr 14 05:53:24 sure, but does it matter whether its r6 r7 or r8 ... Apr 14 05:53:54 the transition from r6 to r7 is paramount because Adam Powell hooked me up by setting supportInvalidateOptionsMenu to public Apr 14 05:54:07 before we relied on a bug in Dalvik Apr 14 05:54:14 O.o Apr 14 05:54:20 ok Apr 14 05:54:27 so this is a special situation Apr 14 05:55:30 it depends on your build system and how smart or dumb it is Apr 14 05:55:46 if you use Eclipse it doesn't really matter, you could have upgraded yourself Apr 14 05:55:56 if you use ant, you probably would have had to update the binary in ABS' libs/ folder yourself Apr 14 05:56:34 http://www.mobilewebdevconference.com/ Apr 14 05:56:36 anyone going to that? Apr 14 05:59:55 can't decide if I should keep drinking or not Apr 14 06:00:11 it would be cool if git blame could show my BAC at the time of commit Apr 14 06:00:55 should probably stop before point of no return Apr 14 06:00:56 "99,000 people a year die because their infections are resistant to antibiotics that have been overused in livestock." d'oh Apr 14 06:01:29 the joke is that when they say livestock, they mean you Apr 14 06:01:56 readme: of course, soy lent green Apr 14 06:02:10 * readme just watched planet of the apes for the first time Apr 14 06:02:23 which one Apr 14 06:02:26 the original Apr 14 06:02:30 nice Apr 14 06:02:35 did you see the new one? Apr 14 06:02:38 i did Apr 14 06:02:52 get your hands off me you damn, dirty g00s Apr 14 06:03:07 O.O Apr 14 06:03:08 wait, which new one Apr 14 06:03:13 Return to the planet of the apes Apr 14 06:03:14 the new Planet of the Apes Apr 14 06:03:16 or Rise? Apr 14 06:03:20 oh, rise? Apr 14 06:03:28 Rise just came out like 6mo ago Apr 14 06:03:35 oh right. Apr 14 06:03:51 i get border with all the ape movies Apr 14 06:03:51 yeah I have got osme movies to watch then Apr 14 06:03:53 *bored Apr 14 06:04:04 Rise was good Apr 14 06:04:11 I was surprised Apr 14 06:04:15 i was reluctant to watch it but I really liked the hunger games Apr 14 06:04:22 the ceo of that company was a horrible actor Apr 14 06:05:23 I'm 80% through the book Apr 14 06:05:24 but i must say, i am really waiting for Prometheus Apr 14 06:06:02 yeah me too Apr 14 06:06:25 nice Apr 14 06:06:34 i've got the audio books Apr 14 06:06:52 my reading level isn't high enough for teen fiction Apr 14 06:07:09 I'm reading so many series at once Apr 14 06:07:26 Song of Ice and Fire, Hunger Gamers, Dark Tower Apr 14 06:07:32 not to mention the one-offs Apr 14 06:10:53 How do you guys pack your apps in an installable file /j #opencv Apr 14 06:11:00 sry Apr 14 06:11:25 was any of that question for us? Apr 14 06:13:09 no, it was a mistake Apr 14 06:13:11 im sorry Apr 14 06:13:28 I was just wondering if opencv has been ported to android Apr 14 06:13:44 so i went to ask in #opencv :) Apr 14 06:15:11 anyone have an API level 14 device around? Apr 14 06:15:12 nice..it seems so :) http://code.opencv.org/projects/opencv/wiki/OpenCV4Android Apr 14 06:15:16 wait, i'll just use the emu Apr 14 06:15:42 JakeWharton: is your own device running lvl 15? Apr 14 06:15:48 yes Apr 14 06:15:51 both are now Apr 14 06:16:04 i should have had the forethought to not update one Apr 14 06:16:46 JakeWharton: can i ask you how you updated? Apr 14 06:16:54 I clicked the notification that popped up Apr 14 06:16:58 probably a stupid question, but im still kinda new Apr 14 06:17:17 hmm strange...i have tried to update as well but it says its up to date Apr 14 06:17:23 and its running 4.0.2 Apr 14 06:17:36 you you wanna control your updates, you need to root & flash Apr 14 06:17:42 you don't need to root Apr 14 06:17:46 you need to unlock your bootloader Apr 14 06:18:03 diverdude: VZM Galaxy Nexus? Apr 14 06:18:08 *VZW Apr 14 06:18:21 yeah im on samsung galaxy nexus Apr 14 06:18:31 what carrier? Apr 14 06:18:34 GSM or LTE? Apr 14 06:18:45 JakeWharton: well, I think I needed root to install safestrap on my droid 3.. I think I needed root when I flashed my G1.. but I guess there are devices where you don't. Apr 14 06:19:13 root just gives you root in the OS Apr 14 06:19:22 JakeWharton: hmm. I believe GSM, although not sure Apr 14 06:19:24 I know. Apr 14 06:19:37 * readme has been using linux for ~8 years Apr 14 06:20:11 although what I don't understand Apr 14 06:20:17 root allows you to flash through the OS once you've unlocked the boot loader I guess Apr 14 06:20:24 if what kind of code needs to be run on a device, to actually flash the bootloader Apr 14 06:20:36 i've always done it through ADB Apr 14 06:20:37 or whatever Apr 14 06:20:47 you can unlock the bootloader with adb? Apr 14 06:21:17 seekthumb just completely /refuses/ to align on the seekbar Apr 14 06:21:19 * readme has no idea what the actual unlocking procedure of various phones entails. Apr 14 06:21:21 adb reboot bootloader Apr 14 06:21:21 f Apr 14 06:21:25 fastboot oem unlock Apr 14 06:21:29 you're kidding, that's all it takes? Apr 14 06:21:32 yep Apr 14 06:21:40 but what prevents us from doing that on, any phone? Apr 14 06:21:49 that would be a signed bootloader Apr 14 06:22:10 they suck :) Apr 14 06:22:22 I need to get some beater devices and try this stuff. Apr 14 06:22:29 and people work some crazy voodoo to get around it Apr 14 06:27:34 there was a styling change between API 14 and 15 Apr 14 06:27:44 for action bar tabs Apr 14 06:28:42 i only installed cm9 on my phone about a week ago and still barely grasp actionbars :| Apr 14 06:28:55 have you ever done web dev? Apr 14 06:29:16 not extensively. I can do it, but I wouldn't consider myself to be a seasoned pro. Apr 14 06:29:36 hmm what other analogy can I make then... Apr 14 06:29:52 Just try the webdev analogy Apr 14 06:30:35 It's both the
and and it goes at the top of your template Apr 14 06:30:41 every page has it Apr 14 06:30:43 it's the global nav Apr 14 06:30:47 any takers on why this is: http://h3x.se/respot/holo_playback_seekbar_bug.jpg Apr 14 06:30:48 yeah I get that much Apr 14 06:31:07 then what's not to get? Apr 14 06:31:21 im using relativelayout as in this stack overflow post: http://stackoverflow.com/questions/9974361/android-layout-how-to-position-two-images-and-an-seekbar Apr 14 06:31:23 one of the things I don't really get is how to make the distinction when using action items (that are not in the overflow) Apr 14 06:31:29 should those ever be used for navigation? Apr 14 06:31:33 should they be contextual, tec Apr 14 06:31:34 etc* Apr 14 06:31:43 probably not contextual Apr 14 06:31:50 i've set maxHeight as well.. as pointed out in various places around the www. Apr 14 06:31:53 they're not really for nav Apr 14 06:32:08 they are for the most-used actions that a user would do on a particular screen Apr 14 06:32:12 there is some new nab stuff in compat r7 Apr 14 06:32:14 if i leave the SeekBar alone without the right and left times, it's perfectly aligned.. :S Apr 14 06:32:19 g00s: no Apr 14 06:32:29 JakeWharton: right, i read that but it didn't click right away Apr 14 06:32:34 not sure if that was supposed to be nav or tab Apr 14 06:32:37 now I get it better Apr 14 06:32:38 but no for both! Apr 14 06:32:42 *nav Apr 14 06:32:49 so, would "Help" be a valid action item, or bad? Apr 14 06:32:58 readme: that would be an overflow item Apr 14 06:33:08 g00s: nav how? there's TaskStackBuilder Apr 14 06:33:21 JakeWharton: i feel like most users will never use the overflow. Apr 14 06:33:31 and ergo never find my help screen Apr 14 06:33:41 JakeWharton: yeah that Apr 14 06:33:44 if you think 80% of your users will need help then make it an action item Apr 14 06:34:29 another thing that confused me at first, was that actionbar compatbility is not necessary at all Apr 14 06:34:41 it's more of a design decision, right Apr 14 06:34:48 since the actionbar is basically just the menu Apr 14 06:34:59 well it's the menu + a ton of other useful things Apr 14 06:35:17 list nav, tab nav, title, subtitle, icon, logo, custom views, split action items, action modes Apr 14 06:35:36 it also puts the menu items on the screen rather than buried in the options menu Apr 14 06:35:55 yeah, I understand that benefit clearly Apr 14 06:35:55 believe it or not, a lot of people don't press the menu key Apr 14 06:36:15 yeah, and often apps don't override it so you have to press just to find out. Apr 14 06:36:18 wasnt the menu key more or less deprecated in honeycomb/ics? Apr 14 06:36:20 I understand that controversy Apr 14 06:37:22 juanez: no, there are new devices which (stupidly) still have it Apr 14 06:37:33 JakeWharton: what do you think of apps that have a main navigation screen with a few icons on it and titles Apr 14 06:37:45 the dashboard pattern Apr 14 06:37:47 it works for phones Apr 14 06:38:04 I wouldn't use it to replace the actionbar, but I am thinking of using it for my app Apr 14 06:38:17 I like the content first approach Apr 14 06:38:32 when I open the app I should see the main content and focus of the app Apr 14 06:38:54 my app mainly shows you the main content when you receive a call https://play.google.com/store/apps/details?id=com.tomdignan.android.LEDCallerID Apr 14 06:38:59 but I like that idea Apr 14 06:39:16 I think I am going to do 1/2 main content 1/2 dashboard on my next update, for the main screen Apr 14 06:39:34 hi JakeWharton Apr 14 06:39:42 hello cow Apr 14 06:39:44 you're up late Apr 14 06:39:53 yea i wasnt feeling well earlier so i came home early Apr 14 06:39:56 and took a nap at 5pm Apr 14 06:39:58 a 6 hour nap Apr 14 06:40:01 so...yea Apr 14 06:40:04 well played Apr 14 06:40:43 fix ABS bugs Apr 14 06:40:50 so I can work on other things Apr 14 06:41:03 hey readme ive been thinking about making an app like that Apr 14 06:41:15 but more so it will flash "SPAM" Apr 14 06:41:21 so you can fuck with the telemarketers Apr 14 06:41:36 canadiancow: yeah, i'm working on something like that atm, but I wasn't thinking of making it flash spam Apr 14 06:41:39 just adding a feature Apr 14 06:41:45 my favourite is to say something like "Hello, you've received the FBI tele-fraud division. How may I direct your call?" Apr 14 06:41:53 yeah, i was torn about the dashboard pattern also Apr 14 06:42:01 oh, like an automatic answerer? Apr 14 06:42:08 i wound up removing it, and like the design guidelines say, put the data forward Apr 14 06:42:09 no i mean i want it to tell me it's spam before i answer Apr 14 06:42:10 so i can say that Apr 14 06:42:14 ahah Apr 14 06:42:19 s/received/reached/ Apr 14 06:42:22 see, most people would hang up Apr 14 06:42:31 it'll get you off their list ;) Apr 14 06:43:08 do you get lots of telemarketer calls Apr 14 06:43:10 JakeWharton i have my own work to do ! Apr 14 06:43:13 no not really Apr 14 06:43:16 every now and then Apr 14 06:43:35 lies Apr 14 06:44:46 im on a new team now, and i have to rewrite code that was written by people who didnt understand android Apr 14 06:44:52 I wonder if GitHub can handle showing the diff between API 14 and 15 Apr 14 06:47:23 canadiancow, there are already tons of apps liek that Apr 14 06:47:39 JakeWharton: http://code.google.com/p/android/issues/detail?id=28588 Apr 14 06:47:44 crowdsources the telemarketers too Apr 14 06:47:52 yes Apr 14 06:47:56 i starred it when you made it Apr 14 06:47:56 :( Apr 14 06:48:03 hey everyone, star this issue: http://code.google.com/p/android/issues/detail?id=28588 Apr 14 06:48:04 juanez: it doesn't matter how many apps there are or anything like that. The only thing that matters is whether there are users who will use your app Apr 14 06:48:17 adam will take care of it Apr 14 06:48:26 i hope so Apr 14 06:48:31 Dropbox came out a huge success even though there was already FTP, a huge and very relied on technology for storing files. Apr 14 06:48:40 Which sucks, but that's another convo Apr 14 06:48:48 readme, fair enough.. just thought id spare him the trouble ;) Apr 14 06:48:49 google drive Apr 14 06:48:49 not to mention other online file stores that use http Apr 14 06:49:56 id compare dropbox more to rsync tho Apr 14 06:49:59 :P Apr 14 06:50:28 or NFS Apr 14 06:50:37 NFS is such a pain Apr 14 06:50:41 yes it is Apr 14 06:50:47 i will never attempt to use it again Apr 14 06:50:51 me neither Apr 14 06:51:02 sshfs is pretty sweet though Apr 14 06:52:02 aerofs looks cool Apr 14 06:52:12 sshfs is pretty cpu intense though Apr 14 06:52:18 i've had bad experiences with sshfs Apr 14 06:52:25 so, not too cool on old hw Apr 14 06:52:28 wouldn't transfer any big files you care about :) Apr 14 06:52:49 NFS isnt too bad if you have an all linux environment its super easy to setup Apr 14 06:53:11 samba is a lot more configuration :s Apr 14 06:55:29 aerofs looks cool Apr 14 07:03:41 Why can't I change my nick while in here? >.> Apr 14 07:23:04 because you weren't identified Apr 14 07:25:25 i can't figure out what caused the tab change in API 15 Apr 14 07:25:34 it doesn't seem like the state-list drawable changed Apr 14 07:29:30 i have a link to share Apr 14 07:29:40 but i'm afraid i might kill some of you because it's mind-blowingly amazing Apr 14 07:30:29 * Ge0rG hides behind the channel zombies Apr 14 07:31:07 http://www.youtube.com/watch?v=rulElJITIVY Apr 14 07:31:24 best if the sound is cranked Apr 14 07:32:20 Epic. But not half as awesome as garbage collector simulator. Apr 14 07:35:45 where the fuck is inkscape 0.49 Apr 14 07:36:43 right before inkscape 0.50 Apr 14 07:37:01 wise ass Apr 14 07:37:01 the fuck Apr 14 07:37:03 :) Apr 14 07:41:34 has state_pressed always been around? Apr 14 07:42:17 IntelliJ 11.1 is so fast Apr 14 07:46:36 JakeWharton: does lint work as well in intellij as it does in eclipse ? Apr 14 07:46:51 I'm not sure how it works in eclipse Apr 14 07:46:54 but I get lint warnings all the time Apr 14 07:47:25 highlights yellow in the editor Apr 14 07:47:32 is it using the lint from your sdk install, or some pre bundled thing Apr 14 07:47:42 no clue Apr 14 07:47:44 lint integrated with eclipse some how Apr 14 07:52:22 I get about 200 lint errors in ABS Apr 14 07:52:27 about 90% are wrong Apr 14 07:52:54 I should tell Tor to use it as a good use-case Apr 14 07:53:03 or politely suggest Apr 14 07:58:09 shouldn't an action mode hide the action bar? Apr 14 07:58:21 including split/stacked variants Apr 14 08:10:48 shiiiiit Apr 14 08:11:06 I have another problem that I can't debug in hierarchy viewer because an invalidation fixes the problem Apr 14 08:11:08 oh the irony Apr 14 08:19:11 Quick question, I just got the HTC One S and the first thing I want to do is strip it of Sense and put in Android AOSP.. but where do I start? Apr 14 08:19:27 Cool Untouchable Apr 14 08:19:41 Catherall: what part? :) Apr 14 08:19:51 Your phone :-) Apr 14 08:20:00 Ah thanks, it wont be used until Sense is gone Apr 14 08:20:04 Do you want a custom ROM .... without Sense Apr 14 08:20:23 Catherall: well yes, but I would like to just put Android AOSP on it, myself :) Apr 14 08:20:32 and learn what needs to be done in order for it to work Apr 14 08:20:40 Do you want to compile it yourself? Apr 14 08:21:18 Ive been working on the Cyanogenmod team for a year or so, so I am very familiar with most of the process.. but yes, I would like to compile it myself and I have the Android source here, but I reckon there are more steps that need to be taken Apr 14 08:22:54 what device specific challenges am I facing is the question I suppose Apr 14 08:23:44 Lets see Apr 14 08:23:46 One minute Apr 14 08:24:43 Catherall: thanks Apr 14 08:27:31 You can start with that: http://forum.xda-developers.com/showthread.php?t=1583427 Apr 14 08:27:48 It is a "[Tutorial]Root, Unlock, Recovery and flashing a Custom ROM" Apr 14 08:28:03 Catherall: again, it doesnt really answer my question. I know most there is to know about rooting, unlocking and flashing Apr 14 08:28:14 but we are talking about ROM development and device specific aspects of it Apr 14 08:29:02 Ah, that is your prime goal Apr 14 08:29:02 antrat: thanks, but it doesnt really answer my question. I know most there is to know about rooting, unlocking and flashing,im talking about ROM development and device specific aspects of it Apr 14 08:29:08 oops Apr 14 08:29:32 but yea Apr 14 08:29:49 Have to tried the "Development" section for the ONE S on XDA, you sure have done ... Apr 14 08:29:57 yep Apr 14 08:32:47 Anything else is beyond my developer horizon when it comes to developing custom roms, drivers, etc Apr 14 08:32:58 http://androidforums.com/incredible-roms/195756-guide-howto-build-your-own-aosp-rom.html Apr 14 08:33:03 http://source.android.com Apr 14 08:33:24 phantasmoholic_: ah thanks Apr 14 08:46:24 Untouchab1e: I can tell that you don't know very much about rooting, unlocking and flashing Apr 14 08:46:41 pragma-: oh really.. Apr 14 08:46:44 It's quite obvious, yes. Apr 14 08:46:59 Less dicksizing, more code? Apr 14 08:47:18 freecandy: I can tell you don't have root Apr 14 08:47:19 Interesting.. considering Ive assisted the development of several root exploits for android, but whatever Apr 14 08:52:26 Untouchab1e: I still find rooting Samsungs the best ;P Apr 14 08:52:49 Samdung noob Apr 14 08:52:58 I have to pee. Be right back. Apr 14 08:53:57 Untouchab1e: Apparently we acquired a resident troll Apr 14 08:54:26 p_l: seems like it >_< Apr 14 08:54:35 a nice addition to the ignore list then I suppose Apr 14 08:54:48 p_1 anyways, how's life? Apr 14 08:55:30 somehow. Busy, looking for job, and maybe finally getting somewhere with android app developement in the summer Apr 14 08:55:57 is there a good file dialog API for android 2.2? Apr 14 08:57:31 there's the open intents stuff, but I don't know how widespread it is Apr 14 08:57:37 << working on the next billion dollar mobile app Apr 14 08:58:29 p_l: sounds good! any interesting jobs on the horizon? Apr 14 08:58:50 Untouchab1e: nope, just failed the google interview :) Apr 14 08:59:04 p_l: oh, sorry to hear it Apr 14 08:59:20 p_I : evn m kinda lookin fr a job Apr 14 08:59:25 I regret myself passing on their internship offers every day Apr 14 08:59:30 offer* Apr 14 08:59:42 p_l: Im sure something awesome will come your way though Apr 14 08:59:53 :) Apr 14 09:00:01 was da google interview tough ? Apr 14 09:00:33 Untouchab1e: anyway, check if HTC released necessary code to interface with hw in your phone, otherwise building AOSP can be ... painful Apr 14 09:01:09 p_l: thanks mate.. Ive been looking for it but havent found anything.. :/ Apr 14 09:01:10 fellownoob: Some of it was easy, some of it was hard. I think I failed mainly on one out of five interviews during on-site Apr 14 09:01:27 Im not especially happy with htc these days so Im not surprised, hah Apr 14 09:02:09 Untouchab1e: ouch. Without at least a binary drop-in (like some samsung libs etc.), you'll need to splice files from a dump of the firmware Apr 14 09:02:23 p_l: sounds like fun! Apr 14 09:02:53 yeah. But most of it should be already in repo thanks to Qualcomm's ubiquity (I assume this phone also goes with Snapdragon?) Apr 14 09:03:17 p_l: luckily it does, the new 28nm Krait Apr 14 09:03:27 Qualcomm exists? Apr 14 09:03:35 I'm using Html.fromHtml to format text in each view of a ListView, but it is being too slow for me (http://i.imgur.com/O1SfV.png). Would I be better off manually formatting using spans and etc, or is there a better solution? Apr 14 09:03:37 * freecandy fires up Eudora. Apr 14 09:03:38 p_I:hope u get a kickass job..all da best.. Apr 14 09:07:38 I have returned. Apr 14 09:07:44 Behold. Apr 14 09:16:13 hi Apr 14 09:16:35 does someone know how to publish an app on china'android markets ? Apr 14 09:19:06 1. Know chinese Apr 14 09:31:49 Hello, i have my main activity calling an intent activity to pick a contact number then do some processing and display a toast message. The problem is that after picking the phone number, if processing is taking some time a black screen is shown, then when processing is finished my main activity is displayed.... is there a way to get passed this black screen and display my main activity while processing the intent results ? Apr 14 09:36:51 mmm . . . toast. Apr 14 09:38:37 freecandy: :-) Apr 14 10:32:47 Hi all Apr 14 10:33:49 I am trying to set width and height of my TableLayout programatically but it doesnt work Apr 14 10:34:01 I use LayouParams Apr 14 10:34:36 the table contains 10 rows and each of them contains 10 views basically 10X10 table Apr 14 10:35:41 but the funny thing is that the table is visible but is much smaller that it should be and what i print the width and height it still says 0 even though i can see the table Apr 14 10:42:01 if I specify width in params do I still need to specify in setMinimumWidth ? Apr 14 11:01:39 Design issue. Im makign a framework for kind of tower defense games on top of andengine. So I want some Units. Playable units and non playable units. How would you deisgn this? A baseclass Unit and Playable and NonPlayable derives from that or use composition instead? Yesterday soemone said havign Foo and NotFoo was a hint that the design is bad. Apr 14 11:02:09 well its not really tower defense. were making a game for a competition as part of a class but in that class we have to make a framework for the type of game were doing. so in the game you control a policeforce and your opposition is demonstrators(we might allow it to be the opposite as well). so you control units that you can move around(touch and point,moves via pathfinding) and units Apr 14 11:02:10 that arew controlled by the computer Apr 14 11:04:18 hello Apr 14 11:04:22 anyone knows a possibilite to find apps wich require special permission (i want to check what apps actually do with this permissions) thx Apr 14 11:07:19 holy broken bullshit, batman Apr 14 11:07:40 android's browser doesn't have .toDataURL() Apr 14 11:07:45 for html5 canvas Apr 14 11:07:48 which it otherwise implements Apr 14 11:08:06 that is arguably one of the most important things canvas has Apr 14 11:08:51 apparently it has been reported since 2.1 too Apr 14 11:09:05 truely hard to believe Apr 14 11:09:50 I just spent a whole week working on a project in html5 with every single task in lockstep with android compatibility Apr 14 11:09:59 and now the whole project is shut down Apr 14 11:10:09 because they forgot to implement one of the simplest functions possible Apr 14 11:12:40 root66: thou shalt commit to the app ecosystem! Apr 14 11:15:02 hi Apr 14 11:15:19 Hi Apr 14 11:16:00 Pinas: I imagine the PackageManager class has something. Apr 14 11:16:05 http://developer.android.com/reference/android/content/pm/PackageManager.html Apr 14 11:16:50 TheTrash: its html5 Apr 14 11:17:00 so open source is kind of.. well.. it's open source Apr 14 11:17:04 TheTrash actually I don't want to write code, I'd like to have a list of apps which require this permission and can be downloaded from somewhere Apr 14 11:17:15 http://hookerbots.com/drawing/ Apr 14 11:17:32 i'll clean it up and post the php too Apr 14 11:17:42 root66: yeah I feel your pain, I was just making a stupid joke about Google wanting you to make native apps instead of rich webapps. Apr 14 11:17:48 but the project is dead in the water now that I find out android only halfass implements html5 canvas Apr 14 11:18:12 I worked freally hard, as you can see Apr 14 11:18:15 *really Apr 14 11:18:20 A rainbow, Mickey Mouse and a male reproductive organ, interesting. Apr 14 11:18:25 hahah Apr 14 11:18:33 Nice app Apr 14 11:18:38 I shared the link and thats what other people drew Apr 14 11:19:00 the first one is mine (the stickman with cheetos on his hands) Apr 14 11:19:24 after you doodle, press the arrow Apr 14 11:19:29 it redraws it step by step Apr 14 11:19:44 I was working on a Draw Something clone that was more gallery-centric Apr 14 11:19:53 and done in html5, obviously Apr 14 11:19:59 Ooh that's nice Apr 14 11:20:11 Hm nice idea Apr 14 11:20:25 A Draw something that's more social. Apr 14 11:20:30 yeah I know, but there's no way I am starting over in java after all this work Apr 14 11:20:32 "Look what Benny drew" Apr 14 11:20:57 well the thing I find most upsetting about DS is that people draw awesome things that you can never show anyone unless you have a rooted device with screenshot capability Apr 14 11:21:10 and who would even think to do that? Apr 14 11:21:13 it needs to be in the app itself Apr 14 11:21:20 Ohh it's that bad? Apr 14 11:21:29 yeah Apr 14 11:21:35 I saw a few funny shots on Reddit but never realized it was that hard. Apr 14 11:21:43 I see amazing drawings my friends did that I would love to save Apr 14 11:21:52 and you have ltierally half a second from when they finish until the screen changes Apr 14 11:21:58 Oof Apr 14 11:22:05 Yeah you might be on to something there. Apr 14 11:22:14 well zynga already bought them Apr 14 11:22:19 and will surely have Drawing With Friends soon Apr 14 11:22:42 the idea here is to have a better product already in-wait Apr 14 11:22:47 which knowing zynga shouldn't be hard Apr 14 11:22:55 scramble is the first game they released that doesn't reset my phone Apr 14 11:23:39 but now I might just throw the whole thing in the trash until honeycomb is the standard Apr 14 11:23:50 because it is the first android release to support .toDataURL Apr 14 11:24:02 and they are not pushing a fixed browser to older releases Apr 14 11:24:15 which is mindblowingly stupid if you ask me Apr 14 11:24:22 Apr 14 11:24:36 It's annoying.. but I guess it makes sense for them in a business perspective. Apr 14 11:24:55 sorry, makes sense for who? Apr 14 11:25:01 Google Apr 14 11:25:07 (and manufacturers) Apr 14 11:25:23 I'm surprised about Android's lack of momentum in that regard, though., Apr 14 11:25:32 google changed the market to the Play store with no problem Apr 14 11:25:35 Wasn't google planning on modularizing the system apps? Apr 14 11:25:36 even on my old inc2 Apr 14 11:25:44 so why not update the browser too? Apr 14 11:25:48 Yeah, that makes it sort of preposterous. Apr 14 11:25:50 in fact they already have once Apr 14 11:25:55 I noticed it has a new icon Apr 14 11:26:09 they will most likely be switching to chrome for android Apr 14 11:26:14 and updating that separately Apr 14 11:26:21 any idea when? Apr 14 11:26:31 will probably take another 6 months Apr 14 11:26:46 and btw adding .toDataURL is completely trivial. I could add that myself in 10 minutes taking into account I have to look up a base64 encoding function Apr 14 11:26:50 next release of android, I think Apr 14 11:26:52 "Tomorrow everything will be better" Apr 14 11:27:11 see the problem is, tomorrow, zynga could release their version of Draw Something Apr 14 11:27:20 I only have today, so to speak Apr 14 11:27:50 I foolishly didn't check to see that the function was there, since every other aspect of canvas worked perfectly Apr 14 11:28:03 there was no reason to think that once particular function would be missing Apr 14 11:28:17 like *the* function that gives you the png data Apr 14 11:28:23 the *most important* function Apr 14 11:28:28 :> Apr 14 11:28:44 I don't know if it's the most important thing for canvas Apr 14 11:28:48 for your use case, maybe Apr 14 11:29:06 ok, so its useful for games Apr 14 11:29:10 but lets not forget what its called Apr 14 11:29:11 CANVAS Apr 14 11:29:15 as in something you paint on Apr 14 11:29:21 and hopefully LOOK AT AGAIN LATER Apr 14 11:29:22 it's useful for games that want to make screenshots Apr 14 11:29:46 I mean, it's stupid that it's not there Apr 14 11:29:57 they named it canvas for a reason Apr 14 11:30:00 but to say all of canvas is now pretty much useless is going a bit too far Apr 14 11:30:09 I didn't say taht Apr 14 11:30:17 I just said my whole project is useless Apr 14 11:30:21 that's a non-argument, they could've called it derpderpderp Apr 14 11:30:25 and it'd still be what it is Apr 14 11:30:33 ok so Apr 14 11:30:43 I am going to invent this thing for keeping your hair up Apr 14 11:30:47 we'll call it PENCIL Apr 14 11:30:51 but it doesn't actually write Apr 14 11:30:54 sound familiar? Apr 14 11:31:11 the point is what it's actually used for Apr 14 11:31:21 which is mostly games Apr 14 11:31:30 that's not why it was created though Apr 14 11:31:36 being useful for games came way later Apr 14 11:31:41 and canvas is often used to describe a drawing surface for computer graphics Apr 14 11:31:52 in various libraries Apr 14 11:31:55 it's just that someone at google forgot why it was called canvas and forgot to implement a feature to utilize the image you drew Apr 14 11:32:25 it doesn't automatically mean its primary use is mario paint Apr 14 11:32:41 actually, that was exactly its primary use Apr 14 11:32:46 it was created for drawing Apr 14 11:32:52 'oh so google called it android, why doesn't it have better robotics support!?' Apr 14 11:32:56 and then become the stage that it is today Apr 14 11:33:03 that is a ridiculous comparison Apr 14 11:33:27 canvas was created out of the need for users to be able to draw things Apr 14 11:33:42 it was only later that it became viable as a gaming viewport Apr 14 11:33:43 yes, exactly, which is as far as the canvas name goes Apr 14 11:33:59 nope, and it doesn't let _users_ draw things Apr 14 11:34:04 it lets developers draw things Apr 14 11:34:15 ok captain symantic Apr 14 11:34:16 fair point Apr 14 11:34:37 you're trying to extrapolate a simple name to a ridicious degree Apr 14 11:34:38 kind of like how doesn't let users type input Apr 14 11:34:41 it lets developers ACCEPT input Apr 14 11:34:46 shut up Apr 14 11:34:49 just shut up Apr 14 11:40:29 root66: on a more constructive note, there are various javascript implementations and phonegap plugins which may help as a fallback until google implements it Apr 14 11:40:55 root66: You know English is full of words which don't mean what they're used to mean, right? Apr 14 11:42:26 hrm, in eclipse, my console shows me the DDMS, how can i get it back to show me that it is sending the package, etc? Apr 14 11:43:07 open the Console window Apr 14 11:43:17 Window -> Show View -> COnsole Apr 14 11:44:21 ok Apr 14 11:44:37 but thats the issue, in the console, it shows DDMS Apr 14 11:45:07 Insayne: Can you make a screenshot? Apr 14 11:45:23 sure Apr 14 11:46:36 www.insayne.net/DDMS.png Apr 14 11:47:22 maybe you just cleared the window accidentally. Apr 14 11:47:26 nope Apr 14 11:47:30 i just launched too Apr 14 11:47:50 ah nvm, i found it Apr 14 11:48:00 display selected console on the top right? :D Apr 14 11:48:02 see the blue screen icon? you can switch between DDMS and Android Apr 14 11:48:11 and I wanted Android back Apr 14 11:48:12 :D Apr 14 11:48:21 yep, that is "display selected console" :D Apr 14 11:48:36 Hi all Apr 14 11:48:49 thanks Apr 14 11:48:57 im glad :P Apr 14 11:49:40 I just came over this blog entry: Apr 14 11:49:40 http://android-developers.blogspot.de/2012/04/faster-emulator-with-better-hardware.html Apr 14 11:49:59 I tested it right now, but it does not seem to be more performant than before Apr 14 11:50:18 It's still awkwardly slow, as in contrast to the video. Apr 14 11:51:34 everythingWorks: maybe it doesn't work properly with your GPU.. too old perhaps? Apr 14 11:51:56 I thinking in refactoring my View-Model connection ... but I'm scared to make the thing worse: the model is na observable the View and Observer. Actyually the View.update(Observer o, Object data) { postInvalidate();} then View.draw(Model.getData(); super.draw()} ... Apr 14 11:52:00 Zider: Hm.. I don't think so. This machine is pretty new :) Apr 14 11:52:11 Zider: Is it smooth at you? Apr 14 11:52:52 I am thinking in change it is this way : View.update(Observer o, Object data){((Model)o).getData(); postInvalidate();} Apr 14 11:53:04 what do you think ? Apr 14 11:53:06 everythingWorks: I barely have any GPU at all in the system I use.. also, that's at work :P Apr 14 11:54:08 in that way I don't need a View.setModel(Model); Apr 14 11:54:21 well, probably my gpu is not supported :/ Apr 14 11:55:20 lov, are you alive ? Apr 14 11:55:23 everythingWorks: I'm assuming it needs a GPU with OpenGL 2.0 ES, since they mention that on the site.. I have no idea how new GPU you need for that tho. :P Apr 14 11:56:08 Zider: Im pretty sure a directx 11 card also can do ogl 2.0 Apr 14 11:56:16 I think its this sentence, that matters: Apr 14 11:56:21 Please note that there are a lot of GPUs out there, and we haven’t tested all of them for this beta release, so let us know if you have feedback or encounter issues. Apr 14 11:56:33 *writing report* Apr 14 11:58:33 hello Apr 14 11:59:52 I'm trying to use a class as a variable as in: "Class cls" but I can't seem to use that variable for instantiation. I'm using it like "cls myObject", any suggestion as to how to do it correctly? Apr 14 12:02:21 Kagetsuki: show code! :) Apr 14 12:02:40 Probably it's solved by just using "Class cls = x;" Apr 14 12:17:49 do you know any system to get a notification (mail, android notification ...) whenever someone purchase your app / in-app item ? Apr 14 12:18:02 I cant find any API for google checkout :( Apr 14 12:40:10 everythingWorks: Sorry for the late reply, relevant lines are just the method definition and the variable instantiation, I'll simplify: "public void myFunc(Class cls) { cls myObj = new cls(); }" Apr 14 12:40:56 so you want to create a new object of a given Class? Apr 14 12:41:21 yup Apr 14 12:43:13 http://ideone.com/jOjcc Apr 14 12:43:45 thanks, I'll give that a shot now Apr 14 12:44:40 okay :). Apr 14 12:47:57 hmm, how would I specify the type befor the variable name in the declaration? ??? myObject = cls.newInstance(); Apr 14 12:48:37 hrm, i am trying to do an array, but it won't let me... (I use : static final String[] test_array = new String[] { etc) and I am told test_array is an illegal modifier?! Apr 14 12:50:28 nvm, removed static and its good to go Apr 14 12:50:36 wth Apr 14 12:52:25 When would getAuthToken respond with a intent? Apr 14 12:52:38 I have tried to change my password and not update it on my phone and it was not triggered Apr 14 13:00:26 Is it normal for android-games not to target the bottomend? Apr 14 13:00:56 is it possible to change the size of a 2.2 emulator to that of a tablet or my custom size? Apr 14 13:01:22 wen i change the size , the emulator doesnt display anything ,although it starts Apr 14 13:02:03 Kagetsuki: just write "T" Apr 14 13:02:34 (If you want something, please write down my name, so i'll be notified) Apr 14 13:12:45 Is it normal for android-games not to target the bottomend? like just target the samsung 2 galaxy 1GHz proc 1GB RAM? Apr 14 13:17:32 mrBG: depends on the type of game Apr 14 13:17:47 angry birds, for example, targets about every android phone in existence Apr 14 13:18:47 mrBG: isn't that the top end? Apr 14 13:18:58 oh wait, NOT target Apr 14 13:19:04 never mind *rubs eyes* Apr 14 13:23:15 When would getAuthToken respond with a intent? Apr 14 13:23:18 can anyone tell me why when I try to sync do repo sync it keeps aborting and it looks like the check sum is messed up Apr 14 13:24:56 also im getting a warining telling me my repo is out of date and I should update but I have no idea how to do that Apr 14 13:24:58 hrm, on an actionbar (actionbarsherlock) how can I define navigational properties? (back, up) and the title ? Apr 14 13:26:12 Seriously Apr 14 13:26:15 xml is imagebutton Apr 14 13:26:18 code is imagebutton Apr 14 13:26:25 crashes, classcasexception. cannot cast imageview to imagebutton Apr 14 13:26:26 fine Apr 14 13:26:33 changes code to imageview, xml is still imagebutton Apr 14 13:26:34 code works Apr 14 13:27:21 Clean, refresh etc. (Eclipse @ OSX) doesnt help eitehr Apr 14 13:27:24 either| Apr 14 13:30:20 * Jug6ernaut see's osx & ignores Apr 14 13:36:00 any reason why the setVisibility() wouldnt work here? http://pastebin.com/Mz1dg9ep Apr 14 13:36:18 when I set the views to INVISIBLE they still get drawn Apr 14 13:47:38 Anyone who has experience with dimensions for an app widget preview image? I used the widget preview app in the SDK to generate one, and the dimensions are 576x144 pixels. Trimming away the empty horizontal edges gives me an image of 474x144 pixels (making it look a little bigger in the ICS widgets menu). Are there any exact dimension guidelines? Apr 14 13:52:00 3 items for the same thing: switch, togglebutton, checkbox. yay! t_t Apr 14 13:52:33 wut Apr 14 13:53:14 well not really Apr 14 13:53:57 i can probably come up with an example where only one of those is a good UI choice Apr 14 13:54:01 for each one Apr 14 13:54:33 Would you use a switch for a multiselect list? Then you're doing it wrong Apr 14 13:54:55 that was my thought for where only a checkbox makes sense :P Apr 14 13:55:07 i actually had a UI at one point where i had a bunch of buttons, but one needed an on/off state Apr 14 13:55:15 so the togglebutton fits in with the UI really well Apr 14 13:55:17 but the rest wouldnt Apr 14 13:55:49 so i was thinking about doign google code jam, but the fucking site errors when i try to get in Apr 14 13:57:31 you know what i like about the switch? Apr 14 13:57:36 setTextOff/On Apr 14 13:57:50 every ios dev ive met has re-implemented the ios version so they could change the text Apr 14 13:57:56 or the color Apr 14 13:59:28 Yeah, it's a nice widget Apr 14 14:00:03 is it really 14+ though? Apr 14 14:00:10 did HC only have checkboxes? Apr 14 14:00:22 api14 Apr 14 14:01:52 I'm thinking it'd be rather easy to backport tho Apr 14 14:02:06 probably Apr 14 14:02:29 i think i might like it in *With Friends for "sound" "notifications", etc Apr 14 14:02:52 I like how it can be dragged between the two states Apr 14 14:02:57 it looks pretty Apr 14 14:03:01 heh yea Apr 14 14:03:02 lol Apr 14 14:03:02 Tho I doubt very many does that Apr 14 14:03:26 simonvt: thats cool, didnt know it, just tested it on my phone, works^^ Apr 14 14:03:34 ^_^ Apr 14 14:04:02 I only figured it out after checking the code Apr 14 14:04:14 There's a constant named something with dragging Apr 14 14:04:18 Figured I'd try it :p Apr 14 14:04:32 so you know how for live wallpapers the preview shown is an image specified in the wallpaper's xml? Apr 14 14:04:49 well theres an htc device that basically does a viewpager through them, and tries to render each one, to display what it "really" looks like Apr 14 14:04:56 except if you use opengl, it fails Apr 14 14:05:06 so it just displays your preview image scaled up to fit the whole damn screen Apr 14 14:05:09 and it looks like ass Apr 14 14:05:09 haha Apr 14 14:05:27 Good ol' manufacturer modifications Apr 14 14:05:33 Never disappoints Apr 14 14:13:20 I have a question, How do I get the application context when using the ABS action menu.? cant seem to get the context Apr 14 14:19:37 . Apr 14 14:19:41 , Apr 14 14:19:45 ; Apr 14 14:19:59 c-c-c-combooo Apr 14 14:20:00 damn thing always says i cant type ont he channel eve when im auth'd Apr 14 14:20:05 was just checking Apr 14 14:21:17 i Apr 14 14:21:55 can you not just get an instance of the context in on create and assign that to a instance variable defined at the top of the program, then use this where you need it? Apr 14 14:23:56 stil cant see the toast Apr 14 14:26:50 are you calling .show() ? Apr 14 14:28:57 yes. and now it worked :D Apr 14 14:29:18 gdgd Apr 14 14:29:46 thx Apr 14 14:29:52 Hi, I just published a application just now in google play. When can I expect it to show up? Apr 14 14:30:52 6-24 hours usually Rrjois in my experience Apr 14 14:31:56 i just said 5 sentences and there was not 1 error in speech recognition. o.o Apr 14 14:32:40 Rrjois, ive never had it take 24 hours Apr 14 14:32:51 does it show up on the web yet? https://play.google.com/store/apps/details?id=com.package.name Apr 14 14:33:14 everythingWorks, that's because everythingWorks Apr 14 14:34:10 canadiancow, i tried with the name of the app. but it dint show up. I wil try the package name Apr 14 14:34:18 Any recommendations to any blog web framework with good mobile templates which can be used to show app help, instructions + FAQ stuff both on the web and on the device? Is this a common approach? Apr 14 14:34:49 if you make a mobile site, dont make it 320px wide Apr 14 14:34:50 please Apr 14 14:34:52 for the love of god Apr 14 14:35:15 why? Apr 14 14:35:37 ... Apr 14 14:35:39 becasue not all devices are 320dp wide? Apr 14 14:36:00 just go look at google+ Apr 14 14:36:06 THAT'S why you don't hardcode a width Apr 14 14:36:22 loving G+, and the redesign - but the current width restriction is horrid Apr 14 14:36:44 canadiancow, I just checked. Its not showing up. The package name is same as wat I have given in the manifest file right? Apr 14 14:36:48 yes Apr 14 14:36:52 how long's it been? Apr 14 14:37:12 canadiancow, few minutes. Apr 14 14:37:16 ah ok Apr 14 14:37:20 i'd check back after maybe 30 Apr 14 14:37:30 but it could be longer before it shows up on all devices Apr 14 14:38:13 canadiancow, yes I wil. Thanks for that.:) Apr 14 14:52:34 anyone know available code for some games? Apr 14 14:52:39 that you could learn from? Apr 14 14:52:50 preferrably an rts of some kind but any game would do Apr 14 15:13:44 hey all, I am trying to get an app that requires OpenSL ES on an emulator. It seems to be enabled (things run faster). however the app segfaults with the following output, and idea how to workaround this?: http://nopaste.dk/p4995 Apr 14 15:23:38 hey all. I'm working on opengl and I wanted to see if you guys knew of some good resources that explained how all the drawing and rotating stuff works. I'm having trouble figuring out how to read it Apr 14 15:28:14 Hi, I'm experiencing a ClassNotFoundException with Google Apis. I know the fix for external jars renaming lib to libs but I don't know how to fix the issue for Google Apis. Can you help me? Apr 14 15:32:32 anyone here familiar with using the NDK? Apr 14 15:34:21 I'm getting an UnSatisfiedLinkError when I run a sample NDK program and I can't figure out why Apr 14 15:35:34 Your app is not able to find your jni library Apr 14 15:35:46 Hiraghm: ^ Apr 14 15:35:56 JulienDev: now tell him why Apr 14 15:36:32 it's in my project/libs/armeadi directory? Apr 14 15:37:10 Hiraghm: armeabi not armeadi Apr 14 15:37:48 yeah I just typoed here Apr 14 15:37:55 it's armeabi Apr 14 15:38:25 let me dump the code to pastebin... Apr 14 15:38:52 Hiraghm: Are you using the emulator? Apr 14 15:39:13 No, an Evo-3D Apr 14 15:40:57 http://pastebin.com/pTZJ5TQD Apr 14 15:41:41 That's the activity class Apr 14 15:41:53 here's the library c-code: http://pastebin.com/kPuZpteX Apr 14 15:42:23 and here's the call I make to create the library $ /cygdrive/c/development/android-ndk-r7/ndk-build Apr 14 15:42:48 I'm targeting 2.2... could r7 be too new an NDK version? Apr 14 15:44:14 What is the name of your library file in armeabi folder Apr 14 15:47:03 does someone know the process name for the emulator in debian? Apr 14 15:51:51 libndkfoo.so Apr 14 15:58:56 shouldn't it be "libndkfoo.so"? Apr 14 15:59:16 no it sounds good Apr 14 15:59:59 If you well followed this guide I can't understand your problem http://mindtherobot.com/blog/452/android-beginners-ndk-setup-step-by-step/ Apr 14 16:01:52 hi, when it comes to TCP/UDP file transfer, which is better, using NDK or Java ? Apr 14 16:02:11 hello, if i want to start a long thread and update the ui, is it better to use AsyncTask or Handler/message mechanism ? Apr 14 16:03:53 Here's the error log... Apr 14 16:03:54 http://pastebin.com/nSiXHiK3 Apr 14 16:04:23 hey all, I am trying to get an app that requires OpenSL ES on an emulator. It seems to be enabled (things run faster). however the app segfaults with the following output, and idea how to workaround this?: http://nopaste.dk/p4995 Apr 14 16:04:33 gnu_d: the problem is network bound, not cpu bound, so no difference Apr 14 16:04:54 alankila: what about memory usage ? Apr 14 16:04:57 gnu_d: I would use java myself because it's generally speaking more convenient/easier to write Apr 14 16:05:10 gnu_d: why would there be a difference? Apr 14 16:05:19 yeah, that's the tutorial I'm following, JulianDev Apr 14 16:05:33 byte[] buffer = new byte[10240]; uses 10 kB on both java and c Apr 14 16:05:49 if you do stream operations against that, there are no allocations in either languages Apr 14 16:06:03 alankila: because C/C++ are know that are lighter ? Apr 14 16:06:10 s/know/known/ Apr 14 16:06:39 gnu_d: java's performance is within small integer factor to C's, for the official jdk it's less than 2, for dalvik it could be somewhat worse (3 or 4, I guess). Apr 14 16:07:31 memory usage is within similar factor, I'd guess, as there are more allocations in java programs in general. But for network traffic, who cares. The buffers are tiny and the cpu is probably not stressed too much either. Apr 14 16:09:24 it is heavy computation tasks that you should use native code for. In i/o, the cpu is generally so much faster related to what is needed to saturate your typical wifi/3g link that I doubt it matters. Apr 14 16:10:00 alankila: based on that, I guess it's safe, thanks for the verbose info :). Apr 14 16:10:03 Hiraghm: They prefix their method with Java_, you don't Apr 14 16:10:16 ahhh. thanks SimonVT Apr 14 16:11:02 I wonder how I came to leave that out... Apr 14 16:11:55 nope... still getting the error :( Apr 14 16:12:02 alankila: one sec, you are saying for devices (phone or tablets) using >3 Android, what about phones using >2 Android ? Apr 14 16:12:10 on the emulator too Apr 14 16:12:52 No... 3G, a mobile data link. I think it's equivalent to something like 2Mbit per second Apr 14 16:13:00 Not exactly sure, I got to admit. Apr 14 16:13:46 or was some other use case for my numbers unclear? Apr 14 16:18:06 even in the error, it seems to be loading the library :( Apr 14 16:18:21 it's like it's not finding the function, not the lib Apr 14 16:26:00 TC01: die Apr 14 16:30:03 Hello. I'm trying to set a statelist on a listview. The point is, each item in the listview contains two layouts (a relative layout within a relative layout). I want the statelist only to be applied on the second relativelayout. I can do this to set the statelist as a background, but it still keeps the standard Android statelist on the root layout (the orange effect in Android ICS). How can I turn that off? Apr 14 16:32:34 niles11_: http://developer.android.com/reference/android/view/View.html#attr_android:duplicateParentState Apr 14 16:32:59 you can put your state list on the parent list item and then set duplicateParentState to false on one of the relativelayout's Apr 14 16:33:03 i think that'll work Apr 14 16:36:10 niles11_: still around? Apr 14 16:36:22 yes, I'm trying to do what you said Apr 14 16:36:25 ignore it Apr 14 16:36:26 but I can't get it to work Apr 14 16:36:33 i just reread what you wrote Apr 14 16:36:37 ok :P Apr 14 16:36:48 you want it so that only one of the relativelayouts has a selector? Apr 14 16:36:58 well state change on press Apr 14 16:37:01 of a list item Apr 14 16:37:03 http://twentytwowords.com/2011/06/18/massive-pile-of-bison-skulls-waiting-to-be-ground-for-fertilizer-circa-1870/ Apr 14 16:37:39 pragma-: not sure if im suppose to be impressed or disgusted Apr 14 16:37:58 niles11_: still there? Apr 14 16:38:11 yes Apr 14 16:38:25 niles11_: i asked you a question Apr 14 16:38:45 maybe I can make things clear with a screenshot, I'll make one, 1 minute please.. Apr 14 16:38:53 ok Apr 14 16:40:27 do you know how to calculate how much CPU time is needed for one TCP request with n bytes ? Apr 14 16:54:04 I got the solution to my question from Napalm. I've set the 'List Selector' attribute of the ListView to "@android:color/transparent" which will do the trick for me! Thanks Napalm! Apr 14 16:54:08 I found my error... Apr 14 16:54:50 In ndkfoo.c, I have "jstring Java_com_xtimports_android_ndkfoo_NdkfooActivity_invokeNativeFunction(JNIEnv* env, jobject javaThis)" Apr 14 16:55:22 except I *had* ..._NdkFooActivity... and the class is NdkfoolActivity. doh. Apr 14 17:09:19 so if i wanted to put together a team of developers for my growing app, is there a site out there to find freelancers? Apr 14 17:10:07 parco: elance.com Apr 14 17:10:26 very cool, thanks Apr 14 17:10:34 there are several others Apr 14 17:10:41 i dont know them Apr 14 17:14:58 hi, could someone help me if i add the adView = new AdView(this, AdSize.BANNER,pubID); my app is crashing on android 2.3.3 Apr 14 17:16:21 Is there a way to invert the cell order in a tablerow ? Apr 14 17:18:03 hello, does anyone knows where to find "bad" android apps - i.e. Apps that steal information from a phone ? Apr 14 17:47:21 When i draw on canvas by drawText(), i want redraw again and how to clear my current canvas on surfaceview? Apr 14 17:49:13 clearing the entire canvas is easy. just draw a solid color to it as your first manipulation. It would be more efficient to only clear the part of the screen you need though.. you could just draw a rect over it and redraw the text, or draw a different color text over the old text (don't know if the latter will work) Apr 14 17:49:19 drawColor(int color) Apr 14 17:49:24 hello everybody! i have some problems getting extras of a broadcasted intent and i don't know whats wrong. here's the code, where you can see the problem, too. http://pastebin.com/vRZSXxi9 please help me, i'm going to get crazy Apr 14 17:51:15 readme: what is the best choice? Apr 14 17:51:19 you should store your intent keys as public static final string somewhere so you don't have typos in them Apr 14 17:51:37 ibere: i would just clear the screen with drawColor each frame for now as the first step Apr 14 17:51:44 you can get more sophisticated later when you are ready Apr 14 17:52:13 remember it's double buffered, so changes to each frame have to be made to the other as well Apr 14 17:53:08 if i use a Textview on surfaceview, this is possible? Apr 14 17:53:32 readme: that's true, but there is no typo in it, i checked it Apr 14 17:53:44 if you want that, you should nest your surfaceview inside another layout and handle the textview separately. you can't "put a textview in a surfaceview" though. Apr 14 17:53:55 but you can have a textview on the same screen, yeah. Apr 14 17:54:09 I don't recommend updating it a lot for something like a score Apr 14 17:54:14 hum... Apr 14 17:54:15 it's better to draw that on the canvas if the score changes a lot. Apr 14 17:54:51 hello Apr 14 17:55:31 be bery qwuiet Apr 14 17:55:39 i want draw the CountDownTimer using the drawText, but when he redraw, this is bad :( Apr 14 17:55:39 How I can know from an activity who start it ? Apr 14 17:56:02 http://pastebin.com/vRZSXxi9 Apr 14 17:56:07 chris_cross: are you sure you didn't change the package name of your app and accidentally install it twice? Apr 14 17:56:17 that happened to me the other day and stuck me for a few mins Apr 14 17:56:39 no i did not change the package name Apr 14 17:57:44 could it be something with the manifest? Apr 14 17:57:50 i have a simple layout with a picture and a textbox and im using this http://misha.beshkin.lv/android-swipe-gesture-implementation/ which works to add swipe however it doesnt read the swipe ON the image how could i go about getting it to read the entire screen for swipes? Apr 14 18:04:09 readme: i cant redraw the same drawText because the background is a bitmap. how should i proceed? Apr 14 18:04:24 would i be able to maybe overide the imageview.Onclick event? or am i not thinking this correctly Apr 14 18:04:41 im getting sad about this Apr 14 18:11:15 If i call this code, the notification is made immediately, but should be called in 20 seconds:http://ideone.com/8yoWT Apr 14 18:23:21 ibere: you can redraw the specific region of the bitmap Apr 14 18:24:47 http://developer.android.com/reference/android/graphics/BitmapRegionDecoder.html Apr 14 18:25:00 i`ll read, thanks! Apr 14 18:25:12 that might not be the best way Apr 14 18:25:17 i never actually did this Apr 14 18:25:29 but that's what you need to do. redraw only the part of the bitmap that is necessary Apr 14 18:26:41 http://stackoverflow.com/questions/4504027/draw-only-a-portion-of-a-drawable-bitmap Apr 14 18:26:44 there's the best way Apr 14 18:26:57 you can specify a subset of the bitmap with a Rect Apr 14 18:27:01 ibere: ^ Apr 14 18:31:33 everythingWorks: I don't think you read the documentation for the "when" parameter.. It's simply a timestamp Apr 14 18:32:08 SimonVT: I fixed it right now with an alarmmanager. Apr 14 18:32:21 readme did you ever figure out that C2DM unregistering thing? Apr 14 18:33:31 just have to have your server that is sending messages unregister devices after getting a failed message? Apr 14 18:34:13 you've got to send pings Apr 14 18:34:16 and if you don't get replies Apr 14 18:34:20 SimonVT: You are right, i don't get what this parameter means. Can you explain it in own word for me, please? Apr 14 18:34:22 you've got to consider it unregistered and remove it Apr 14 18:34:32 some q's on stackoverflow about that Apr 14 18:34:42 yea, I guess that is the best way Apr 14 18:34:44 otherwise you get this prob Apr 14 18:34:50 if someone never is "unregistered" Apr 14 18:34:54 and they reinstall the app Apr 14 18:34:54 but that sucks that if you get malware that registers your device Apr 14 18:34:57 they get double messages! Apr 14 18:35:15 and then doesn't unregister and still tries to keep sending messages to your device Apr 14 18:35:20 or double messages! Apr 14 18:35:22 yeah Apr 14 18:35:23 sheesh Apr 14 18:35:26 everythingWorks: You probably noticed how some notifications have a timestamp.. That's the "when" parameter Apr 14 18:35:26 you could even have triple Apr 14 18:35:36 C2DM leaves you to solve these problems I guess Apr 14 18:35:42 but they should have put some warnings in the docs Apr 14 18:35:53 Indeed Apr 14 18:35:55 SimonVT: Ah, now i get what it means! Is there any point why it shouldnt be the current time? Apr 14 18:36:05 or some way to send a message on app uninstall Apr 14 18:36:14 everythingWorks: Can be useful, e.g. for mail clients who wants to display when the mail was received, instead of when it was pulled to the device (in case you poll every 30 minutes or something) Apr 14 18:36:49 t0mless: yeah, imho when the app is uninstalled the framework should take care of that. Apr 14 18:37:22 SimonVT: sounds good :) Apr 14 18:39:09 hi guys, I'm kind of messing with bluetooth and was curious about the UUID.. is this something specific to a device (like I can use some lib to go and get it) or is it something you're supposed to generate yourself? Apr 14 18:40:48 it's going to be the same every time Apr 14 18:40:56 i know that sounds odd Apr 14 18:41:46 private static final UUID SPP_UUID = UUID.fromString("00001101-0000-1000-8000-00805F9B34FB"); Apr 14 18:41:46 odd because I generate it myself but it will be the same every time? Apr 14 18:41:55 it depends Apr 14 18:42:13 are you using a regular RFCOMM socket to connect to some device? Apr 14 18:42:31 I wrote code to connect to several devices and all of them required that line of code I just pasted. Apr 14 18:42:43 readme: that's the plan I think (in the future as I learn more about bluetooth) Apr 14 18:42:58 readme: ok.. can I consider it arbitrary for now,during testing? :) Apr 14 18:43:02 I haven't made 2 androids talk to each other, but if that is the case then you might be able to use your own uuids... Apr 14 18:43:17 oh ok Apr 14 18:43:20 well if you're going to connect to any sort of device, like a pulse oximeter, a smart watch, barcode reader etc Apr 14 18:43:23 use that one above Apr 14 18:43:23 that i pasted Apr 14 18:43:32 awesome thanks! Apr 14 18:47:18 Would it make sense for a GameUnit to extend a Sprite? Or just use composition? A GameUnit has-a Sprite but I wouldnt say it is-a Sprite. But it would on the other hand be convenient if I could pass it around instead of doing unit.getSprite(). Apr 14 18:47:59 you answered your own question. only use inheritance for is-a relationships. Apr 14 19:07:24 How can you send an email from a webview? Apr 14 19:22:00 dispatchTouchEvent doesnt override imageviews? any way to force the whole layout to use my gesture listener? Apr 14 19:29:15 hey guys, I play streaming audio with MediaPlayer. everything is just perfect, but when I have slow network connection and MediaPlayer is buffering, it blocks my UI thread. how do I make it buffer on a separate thread? Apr 14 19:36:07 Is there a way to drop a table when i am about to exit the app ? Apr 14 19:42:11 whats the best way of adding a table and table rows programmatically ? Apr 14 19:42:29 csst0111, Application.onTerminate method Apr 14 19:42:42 like if i want to test it into a layout ? Apr 14 19:57:53 how i can i set setOnTouchListener() to the layouts ontouchlistener? Apr 14 19:58:26 setOnTouchListener(pleasehelpme); Apr 14 19:58:47 its for a imageview Apr 14 20:12:15 sometimes requestLocationUpdates() takes for ever.. like 1min.. other times 5 seconds. Apr 14 20:12:57 that's nothing, sometimes loading an app's label takes 1min Apr 14 20:14:24 is it possible to add a layout (xml) to an existing one? Apr 14 20:38:05 hi, I have a sql-table "lecture_occupancy" with 3 field "_id", "lecture_id" and "occupy" I do this to enrol or pass a lecture: http://pastebin.com/hztZ0rZb but only enrol works, when I try to call passLecture the table is not updated Apr 14 20:53:43 hey guys, how do I pass complex data between activities? Apr 14 20:54:43 implement Parcelable Apr 14 20:54:51 pass as Intent extras Apr 14 20:54:54 afaik the only official interprocess comms would make it a parcel or a bundle Apr 14 20:55:10 or some other serializeable form wedged into an intent Apr 14 20:58:09 so if I wanted to pass a HashMap, I'd have to extend the HashMap and make it Parcelable? Apr 14 21:00:10 Parcels are for noobs Apr 14 21:00:42 How can I listen to an Orientation change? And additionally, how do I make sure the user ends up at the same place he was before? Apr 14 21:03:16 nobody knows? Apr 14 21:04:13 pragma, what would you prefer instead? Apr 14 21:04:20 Serializable? Apr 14 21:05:02 GadonJ: pragma is a troll, just ignore him Apr 14 21:06:51 GadonJ: what data types are stored in the HashMap? Apr 14 21:10:03 http://developer.android.com/reference/android/os/Bundle.html may be a good alternative Apr 14 21:17:15 readme, I'll have a few HashMaps but they'll mostly contain strings and integers Apr 14 21:18:02 GadonJ: what you need is an arraylist of hashmaps of arraylists of sets Apr 14 21:18:20 with autoboxing Apr 14 21:19:39 you could: not use hashmap, just store in a bundle, write code to serialize your hashmap into a bundle, or just serialize your hashmap into the intent's internal bundle.. using a couple static methods, that say serialize(Intent, HashMap) and deserialize(Intent, HashMap), each which take a pre-existing intent that you either created or received and the hashmap, and know which fields of the hashmap to pack and unpack. Apr 14 21:20:20 I don't see why hashmaps though.. why not just your own object? Apr 14 21:20:22 or use a singleton Apr 14 21:21:15 I don't think that's a good use of the singleton pattern Apr 14 21:21:28 Im pretty new to this Apr 14 21:21:31 sharing data between activites? Apr 14 21:21:41 the reason is, you're creating dependencies on your activity, such that now you need to have that singleton in its scope Apr 14 21:21:55 nah, data should not be shared using global state, unless its HUGE and is too slow to pass with the intent Apr 14 21:22:00 with the intent Apr 14 21:22:04 you get obvious dependencies Apr 14 21:22:05 all I wanted was something similar to PHP's associative arrays, and when I googled the equivalent it said HashMap lol Apr 14 21:22:14 you know that this activity requires *this input* to work Apr 14 21:22:20 and if it doesn't have that intent, with the extras you needed Apr 14 21:22:25 you can throw an illegalstateexception Apr 14 21:22:39 or you can be flexible Apr 14 21:22:45 but global state is the devil Apr 14 21:23:05 nah Apr 14 21:23:10 Imagine later when you want to pull the activity aside and insert some mock data for testing. Apr 14 21:23:12 that's just what people who can't code say Apr 14 21:23:56 there's nothing wrong with global state, the only prolem is when people don't know how to use it properly Apr 14 21:24:12 Like when people try to use it for a case like this. Apr 14 21:24:16 yes Apr 14 21:24:31 you don't even know what he's ddoing Apr 14 21:24:44 actually I do. I asked him and he's sending a couple strings and ints across. Apr 14 21:24:47 that's it Apr 14 21:25:04 just for one activity, or for multiple? Apr 14 21:25:25 in either case, i'd discourage using a singleton for either. Apr 14 21:26:04 If you want to have some global state for strings and ints, why not use SharedPreferences Apr 14 21:26:23 allow future expansion Apr 14 21:27:17 can you fully customize every aspect of a dialog with a theme? Apr 14 21:27:37 like what Apr 14 21:27:53 everything Apr 14 21:27:55 background Apr 14 21:27:56 font Apr 14 21:27:57 colors Apr 14 21:27:58 sizes Apr 14 21:28:00 buttons Apr 14 21:28:03 blah blah Apr 14 21:28:55 i have extended from Theme.Dialog and just madde my own dialog before Apr 14 21:29:25 i want to be able to pass a theme into an AlertDialog.Builder and have it do everything on its own Apr 14 21:29:49 themes are for noobs Apr 14 21:30:29 I want to program a calculator program for anadroid i have download the sdk Apr 14 21:30:37 what else would I need Apr 14 21:31:14 is it possible to entirely remove a View and all its children programmatically ? Apr 14 21:31:15 i have not done that before Apr 14 21:31:23 from the layout I mean Apr 14 21:31:33 foolove: check the samples provided with the SDK and start modifying one Apr 14 21:31:33 i.e, I want to remove a ViewSwitcher Apr 14 21:31:33 perhaps there is some bbuttonStyle attributes in the dialog theme Apr 14 21:31:41 is it possible ? Apr 14 21:31:56 sam should i install eclipse i want the application to be gui Apr 14 21:32:26 it'll be easier with eclipse, yeah Apr 14 21:32:48 Insayne: any reason it needs to be removed instead of just hidden with setVisiblity(View.GONE) Apr 14 21:33:03 ah, let me try that , and no, no reason really Apr 14 21:33:09 well then, you are in luck :) Apr 14 21:33:42 but it doesn't work on a ViewSwitcher Apr 14 21:33:47 does it ? Apr 14 21:34:02 ah it does! ocol Apr 14 21:34:04 cool :D ty Apr 14 21:34:21 can i use perl to program android applications or do i have to use java with eclipse Apr 14 21:34:45 foolove, java Apr 14 21:34:50 foolove: you can write perl with sl4a but you can't really do anything serious without ^ Apr 14 21:35:02 you're going to need to touch java.. unavoidable. Apr 14 21:35:25 readme im fine with doing that I will learn java and use eclipse Apr 14 21:35:32 apparently scala works Apr 14 21:35:34 http://code.google.com/p/android-scripting/ Apr 14 21:35:46 yeah, i want to learn scala soon Apr 14 21:35:55 would like to see someone do a non-trivial app in scala Apr 14 21:36:18 which eclipse do you guys recommend downloading Apr 14 21:36:32 http://www.eclipse.org/downloads/ Apr 14 21:36:39 there is just many there to choose from Apr 14 21:36:50 classic Apr 14 21:37:25 readme what is the difference between classic and the first download the Eclipse IDE for Java EE Developers, 211 MB Apr 14 21:37:40 I am just thinking size maybe more features not sure here Apr 14 21:37:49 foolove: dunno. classic is the one I use and it works, so I recommended it. Apr 14 21:37:53 but if classic has more tutorials I should probably go with that one Apr 14 21:37:57 ok readme thanks Apr 14 21:38:03 I try to fetch the longclick on a extendablelist group item, but it does return a very strange id which is not the id I expect, what might be the problem? http://pastebin.com/8KiLb4v5 Apr 14 21:38:22 does extendablelist support that function properly? Apr 14 21:38:54 my goal is to program a simple calculator for android Apr 14 21:39:32 how to catch error (1,-1002) (MediaPlayer) which is shown in a logcat, but doesnt passing to onError() method? Apr 14 21:39:39 you can probably do that by the end of the day if you try hard enough Apr 14 21:41:09 onError method has int what and int extra parameters, but both of them never give me a -1002 number Apr 14 21:41:36 I'm trying to handle network connection loss in my streaming music player Apr 14 21:48:10 you might want to look into using the ConnectivityManager to monitor the connection state, especially for users turning on airplane mode and such. Apr 14 21:48:20 because if you let the connection time out, that's going to mean a definite lag Apr 14 21:48:56 http://pastebin.com/8KiLb4v5 , in my SelectionListAdapter there is a function getGroupId which I overwrite and it returns the correct id, yet when I get the id in the onItemLongClick it is some different number, seems to be like addressing the wrong memory? Apr 14 21:53:27 Is ADT 19 available in Eclipse updates for anyone? Apr 14 21:53:28 how to make notification uncancellable from the notification center, but still cancellable from the cancel() method? Apr 14 21:55:29 is there like android programming groups?? like maybe in bigger cities Apr 14 21:55:45 solved that, i should've been using cancel (String, int) instead of cancel(int) Apr 14 21:55:47 or android dev meet ups Apr 14 21:58:40 man I wish I never had used extendablelist, that thing just sucks -.- Apr 14 21:58:40 foolove: there is always google IO Apr 14 21:59:09 you should hear what it says about you Apr 14 21:59:11 if you can manage to get a ticket Apr 14 22:02:45 hey all, is there a way to turn off jnicheck on the android emulator? since ics I understand it was moved in to the emulator and the commandline flags dont work Apr 14 22:04:23 pfn: is it that hard ? Apr 14 22:04:33 LA here, we have regular droidhead meetups. Try the internets. Apr 14 22:24:00 services are hard Apr 14 22:26:41 hi, Apr 14 22:26:54 are you? Apr 14 22:27:02 my name is jairo Apr 14 22:28:25 is possible recognize my android usb connection as joistick from windows Apr 14 22:28:28 ? Apr 14 22:29:19 using my device as joystick for windows emulate, or from other android tablet device Apr 14 22:38:50 jalmeida: i believe the way that is done (already done by others, check the market) Apr 14 22:39:00 is that you need to write a device driver for windows that acts like a joystick and reads data from adb. Apr 14 22:40:28 multithreading is kind of like inception Apr 14 22:40:42 especially when you have to post stuff to the UI thread Apr 14 22:41:37 how do you figure that Apr 14 22:43:27 new Thread(new Runnable() { public void run() { doSomethingInBGThread(); runOnUiThread(new Runnable() { public void run( doUIStuff();)}); } }).run(); Apr 14 22:43:35 is that not Threadception? Apr 14 22:44:08 heh Apr 14 22:44:16 i usually just use handlers Apr 14 22:44:22 to avoid that Apr 14 22:46:48 http://pastie.org/3789084 Apr 14 22:47:00 not really surprising what is underneath runOnUiThread Apr 14 22:47:32 nope Apr 14 23:10:24 is possible send keys to windows so from android usb device Apr 14 23:11:46 how do i reference "@android:id/list" as an ID using findViewById ? Apr 14 23:13:07 android.R.id Apr 14 23:13:11 thank you Apr 14 23:13:41 + .list Apr 14 23:13:57 yeah, that I figured out for myself, didnt know the resource stack Apr 14 23:14:02 sup all Apr 14 23:14:06 :P Apr 14 23:14:28 @Html.fromHtml being too slow: I've replaced it with a SpannableString and manually applying the styles - over 2x quicker now Apr 14 23:24:36 hrm, so I got an XML where i got my listview, i use: ArrayAdapter listAdapter = new ArrayAdapter( this, android.R.layout.simple_list_item_1, dungeons ); to update the list, but how on earth am I supposed to get an onclicklistener (or onclickitemlistener) going here? Apr 14 23:25:22 listadapter.setOnItemCLickListener Apr 14 23:25:32 oops Apr 14 23:25:47 listview.setOnItemClickListener() Apr 14 23:25:54 like this Insayne Apr 14 23:26:01 yeah, i dont have the listview though Apr 14 23:26:18 I can get it using: final ListView lv = (ListView) findViewById(android.R.id.list); Apr 14 23:26:50 Insayne, yes, you can Apr 14 23:29:04 how ? Apr 14 23:31:14 I use this: http://pastebin.com/HKuhBM2a Apr 14 23:31:33 getting: The method setOnItemClickListener(AdapterView.OnItemClickListener) in the type AdapterView is not applicable for the arguments (new OnItemClickListener(){}) Apr 14 23:32:27 so I am wondering, wth am I doing wrong here? :( Apr 14 23:32:54 importing the wrong listener? Apr 14 23:33:39 oh ? Apr 14 23:33:55 which one did you import? Apr 14 23:34:05 import android.widget.AdapterView.OnItemSelectedListener; Apr 14 23:34:21 which OnItemClickListener did you import Apr 14 23:34:34 not selected listener Apr 14 23:34:37 well, apparently... none Apr 14 23:35:07 and that was the issue Apr 14 23:35:10 I am an idiot :( Apr 14 23:46:30 hrm, I wanted to launch another activity, but using a variable, however it crashes (8 lines of code here: http://pastebin.com/0E1hC0Jf) Apr 14 23:47:17 basically, i set activity_to_launch = datclass.class and then try to startActivity, and boom, crash Apr 14 23:47:40 what's the exception? Apr 14 23:47:49 unable to start activity Apr 14 23:48:21 did you register your activities in your Manifest? Apr 14 23:48:25 yup Apr 14 23:48:31 pastebin the exception Apr 14 23:48:33 I can launch this manually Apr 14 23:48:49 its one line ? Apr 14 23:49:13 i wonder if its because i extend ListActivity instead of Activity Apr 14 23:49:20 it should be longer than one line Apr 14 23:49:33 http://pastebin.com/jEjgU0N7 Apr 14 23:49:34 should have a stack trace with it Apr 14 23:49:41 yes, til it goes to "11 more" Apr 14 23:49:47 and i dont know how to expand that :( Apr 14 23:49:59 yea Apr 14 23:50:05 null pointer exception Apr 14 23:50:09 in your Guide_Dungeon_Bastion_of_lok.java Apr 14 23:50:11 line 63 Apr 14 23:50:35 so what is null on line 63 of that file Apr 14 23:50:37 and why Apr 14 23:51:06 nav_title.setText("@string/DBL_Title_Bastion_of_lok"); Apr 14 23:51:11 its where I set a title Apr 14 23:51:17 why is nav_title null there Apr 14 23:51:27 no idea - its impossible to be null Apr 14 23:51:32 doubtful Apr 14 23:51:34 it never is null, its a @string Apr 14 23:51:50 why is nav_title null there <-- nav_title is not a string Apr 14 23:51:51 it's a view Apr 14 23:51:56 probably a textview Apr 14 23:51:58 That's... not how you set string resources in code Apr 14 23:52:10 also that Apr 14 23:52:12 its not ? Apr 14 23:52:22 its a text view, yes Apr 14 23:52:23 R.string.DBLblahblah Apr 14 23:52:28 hey guys. is the menu button deprecated in 4.0 ? Apr 14 23:52:35 but it would still work if his textview object wasn't null Apr 14 23:52:46 it just wouldn't set the text to what he wants Apr 14 23:52:48 Yes, devslash Apr 14 23:53:10 trying it out now Apr 14 23:53:29 are you trying to do that before doing findviewbyid or setContentView? Apr 14 23:53:44 before setcontentview Apr 14 23:53:50 i know it, cause I moved it Apr 14 23:54:00 that would be why your view is null then Apr 14 23:54:08 findViewById looks for views added to your current content with that id Apr 14 23:54:13 ah Apr 14 23:54:15 If you didn't add any views, there's nothing to find Apr 14 23:54:22 true Apr 14 23:54:32 I thought it was looking into the layout Apr 14 23:54:45 and how did you think it new what layout to look in? Apr 14 23:54:49 You could have 10 views with the same id in different layouts Apr 14 23:54:56 Or even in the same Apr 14 23:55:05 knew* Apr 14 23:55:30 I thought it would go through the entire layout, and i thought duplicate ID's weren't allowed actually Apr 14 23:55:39 not saying im right, im fully wrong, its what I just learned Apr 14 23:56:05 ty Apr 14 23:56:07 and it just picked a layout file at random to go through? Apr 14 23:56:20 yeah... didnt think it through Apr 14 23:56:25 hehe Apr 14 23:56:36 I getcha now tho ^^ Apr 15 00:00:10 anyone have much experience with action providers? Apr 15 00:00:31 genius question Apr 15 00:01:21 also, JakeWharton, is there anything unique I need to do to make a custom ActionProvider work with ABS? Apr 15 00:01:37 use the correct import Apr 15 00:01:49 no support prefix for anything? Apr 15 00:01:55 no Apr 15 00:02:01 bitchin Apr 15 00:08:45 can anyone tell me whats wrong with my xml ? everything looks fine to me http://pastebin.com/Vx22Qz87 Apr 15 00:09:50 you don't need the + signs for your ids android:list or android:empty Apr 15 00:09:51 JakeWharton, i have a probelm with ABS Apr 15 00:09:59 i really like actionbars Apr 15 00:10:05 so i tried to put an actionbar in my actionbar Apr 15 00:10:07 but it didnt work Apr 15 00:10:14 t0mless: it was working earlier Apr 15 00:10:26 i don't think thats the problem Apr 15 00:10:29 it was running Apr 15 00:10:55 well "what's wrong with my XML" isn't very specific Apr 15 00:11:15 i don't know whats wrong or id fix it myself Apr 15 00:11:34 when i try to compile i get an xml error but it just says something is wrong with your xml Apr 15 00:12:03 doesn't even give you a file/line number? Apr 15 00:12:07 no Apr 15 00:12:20 SoundEFects] Error in an XML file: aborting build. Apr 15 00:13:22 check diffs for all your xml files to see what changed? Apr 15 00:14:02 You got to be kidding me.. Apr 15 00:14:20 android:autoLink="all" <-- the reason my app was crashing with hw accel on in gpu accel emulator Apr 15 00:15:02 autoLink? Apr 15 00:15:07 like...phone and email? Apr 15 00:15:10 Yep Apr 15 00:15:19 tell romainguy Apr 15 00:15:38 one day i had a problem with hw accel (on every device), and i told romainguy Apr 15 00:15:43 and he siad it was a bug inandroid and he fixed it Apr 15 00:15:45 It's not reproducible on devices Apr 15 00:15:47 and he told me how to work around it Apr 15 00:15:50 oh Apr 15 00:15:53 then... psh :P Apr 15 00:16:02 Only on tablet sized emulators Apr 15 00:16:07 Removing that fixes all Apr 15 00:17:10 anyone work with opengl? I'm looking for a noob's guide - still having trouble understanding how things get drawn & so on… I read the android tutorial Apr 15 00:27:19 Would there be any issues with adding/removing a footerview for a ListView after I set the adapter? Apr 15 00:27:51 I'll need to do that so I only display the footer when loading more items, but http://stackoverflow.com/a/3961716/72944 seems to imply there'd be a problem Apr 15 00:28:45 I guess I can add it and toggle visibility. Apr 15 00:32:06 vadi2: are you using a custom adapter? if so add another type and then your adapter can throw back a loading view when it needs to Apr 15 00:32:22 you just invalidate it when you want add some more Apr 15 00:35:43 I'm using an ArrayAdapter Apr 15 00:43:46 TFox: Android used OpenGL ES Apr 15 00:44:04 that's what I meant. OpenGL ES 2, specifically Apr 15 00:44:52 The triangle tutorial covers a lot of the basics Apr 15 00:46:14 At the end it mentions the TouchRotateActivity, which also covers ground Apr 15 00:48:04 There's also examples like http://code.google.com/p/gdc2011-android-opengl Apr 15 00:48:20 And libraries like AndEngine simplify some things... Apr 15 00:49:12 what should my android:id/ be for a listview's imageview ? Apr 15 00:49:27 so I can display an icon next to the text of my list items Apr 15 00:49:50 if i add a background image to drawable-hdpi in my xml i add android:background="@drawable-hdpi/background"> it says it can't find the resource. what am i doing wrong ? Apr 15 00:50:09 devslash, use @drawable/background Apr 15 00:50:17 if your device is hdpi, it will use it Apr 15 00:51:41 you can create a drawable-nodpi/ (accessed the same way) as fallback (or main pool, and then hdpi ones) Apr 15 00:52:27 i don't have a folder called drawable. do i need to create one ? Apr 15 00:52:57 yes Apr 15 00:53:04 no Apr 15 00:53:21 well why not? if his project is for older androids ? Apr 15 00:53:23 http://developer.android.com/guide/topics/resources/providing-resources.html Apr 15 00:53:57 does it have to be png or can it be jpg ? Apr 15 00:54:00 simon, help me out Apr 15 00:54:03 devslash, can be jpg Apr 15 00:54:11 ok i created a drawable folder Apr 15 00:54:19 its drawable-nodpi Apr 15 00:54:23 not simply drawable Apr 15 00:54:54 devslash, @drawable/mypicture does not refer to the "Folder" res/drawable, but to a drawable object Apr 15 00:55:12 if your device is hdpi, it will pull (if the file exists) it from drawable-hdpi/ Apr 15 00:55:20 oh ok i see Apr 15 00:55:38 else it tries drawable-nodpi/ Apr 15 00:55:57 so you don't need a drawable folder (I think that used to be for older android SDKs) Apr 15 00:58:22 ok it worked but not quite as i expected. it applied the background to all of the objects but thats ok i guess Apr 15 00:58:59 now i have one thing left to do i want to create an action bar Apr 15 01:00:15 you gonna dev for ICS only? Apr 15 01:00:36 http://developer.android.com/guide/topics/ui/actionbar.html Apr 15 01:01:21 why would action bar imply ICS only? Apr 15 01:01:40 if anything it would imply HC or higher Apr 15 01:02:53 Insayne: is that ics specific ? Apr 15 01:02:58 oh i see Apr 15 01:03:05 I'm developing my first android app Apr 15 01:03:16 that is not ICS specific Apr 15 01:03:35 and you can use ActionBarSherlock or ActionBarCompat to use the ActionBar pre honeycomb Apr 15 01:03:47 t0mless, true Apr 15 01:04:07 i read up on the listactivity Apr 15 01:04:23 it gives the @android:id/empty to textview, so it populates it Apr 15 01:04:39 is there a similar ID i can use to populate drawables into an imageview ? Apr 15 01:04:53 or do I need to do that another way? Apr 15 01:05:21 t0mless, you got any idea regarding this? I am really lost, even googling and searching the android dev pages :( Apr 15 01:06:57 It will only "populate" the empty view you give the ID to Apr 15 01:07:16 if you want to make any more complex list item views, you need to extend BaseAdapter Apr 15 01:07:25 ah Apr 15 01:07:41 do you have a demo/sample by any chance that shows this ? Apr 15 01:07:57 there are tons Apr 15 01:08:03 Ologn: sorry, went afk for a sec. thanks! I'll check it out. Mostly I'm having trouble figuring out what steps are required to make my own objects, display them, and get them to respond to events and so on. Apr 15 01:08:13 yeah, I meant a current/good one that you would recommend so I learn it the right way Apr 15 01:09:27 go watch the ListView video from last years IO Apr 15 01:09:31 that's a good one Apr 15 01:09:34 how do you simulate a long press on the screen n the emulator ? Apr 15 01:09:34 okay Apr 15 01:09:45 devslash, long left click Apr 15 01:09:48 i tried clicking and holding the mouse Apr 15 01:09:49 devslash you.... long click.... Apr 15 01:10:13 what part of the google I/O 2011 ? Apr 15 01:10:21 hmm Apr 15 01:10:26 I mean on youtube, i dont find it Apr 15 01:10:51 isn't there still an IO page with all the videos? Apr 15 01:11:04 2010 the world of listView ? Apr 15 01:11:18 i bookmarked it :D Apr 15 01:11:24 an hour, but i bet i wont come out of it stupider Apr 15 01:11:27 ^^ thanks t0mless Apr 15 01:11:57 thats one of 'em Apr 15 01:12:06 there's another one by Romain Guy from 2011 too Apr 15 01:14:28 I'm using this code: http://www.androidsnippets.com/gesturedetector-and-gesturedetectorongesturelistener i added a system.out.println in onLongPress, onDown and onSingleTapUp but it doesn't appear when i do those gestures in the emulator Apr 15 01:19:07 romain guy is from 2010 Apr 15 01:20:01 weenas Apr 15 01:22:12 Insayne he did both talks Apr 15 01:22:30 is there any common practices on providing stack traces from applications during beta testing ? i.e. I have a couple of beta testers who are testing an application and should an error occur i'd like to collect some information and automatically send an email with the stacktrace or something along those lines Apr 15 01:22:59 devslash you should be using Log.d() not println.... Apr 15 01:29:51 though I think System.out.println still outputs to logcat Apr 15 01:30:06 as long as you're looking at logcat and not the eclipse console... Apr 15 01:54:03 Are you not allowed to pass NULL values in a Parcelable object? Apr 15 01:55:21 I don't believe you can, no. Apr 15 01:55:31 You might consider using booleans for an "isNull" effect. Apr 15 01:55:40 Or use sane "error values" like -1, or the empty string. Apr 15 01:56:34 hmmm yeah I might have to Apr 15 01:56:37 I just like using nulls Apr 15 02:01:23 i created a context menu that appears when you click on my list view. how do i make it apply to my entire view Apr 15 02:04:25 has anyone noticed that the android browser will cut off the last second of a wav clip played through the