**** BEGIN LOGGING AT Wed Oct 03 02:59:59 2012 Oct 03 03:00:07 giantpune: I think aosp is only setup for fastboot installation Oct 03 03:01:01 bummer Oct 03 03:01:34 I take it your device doesn't have fastboot? Oct 03 03:01:54 it has fastboot, but it it doesnt work right Oct 03 03:02:14 hm. weird. locked bootloader? Oct 03 03:03:00 we're not exactly sure what the issue is yet. we can install our own kernel and recovery by manually writing the partition images, but anything written with fastboot doesnt boot Oct 03 03:03:24 what format are the system.img that are produced by the aosp build system? Oct 03 03:03:30 leslie no its not really Oct 03 03:03:32 yeah, I didn't have much luck when I tried compiling it for my galaxy nexus Oct 03 03:03:44 i was expecting a ext4 filesystem or something, but it doesnt appear to be one Oct 03 03:03:52 giantpune you go to out/target/product/procuct Oct 03 03:03:53 hm, ron_frown ? Oct 03 03:04:04 and you will have system/ boot/ cache/ etc Oct 03 03:04:13 oh, nice Oct 03 03:04:14 you just need to image in correct format and cp -R with permissions Oct 03 03:04:51 maybe I should have another go at compiling it Oct 03 03:05:15 i have the /system folder there and the system.img. but the system.img is not a partition, so i cant mount it and read it. and the /system folder has all the files with generic uid/gid/permissions belonging to me. Oct 03 03:05:38 if you read the building source for pandaboard it talkes about permissions and partitions Oct 03 03:05:39 i need to know the proper attributes for each file right now and im not quite sure where to get them from Oct 03 03:05:49 it deosnt REALLY matter so long as the fstabs and boot scripts map correctly Oct 03 03:17:01 ActivityManagerService is a healthy 15k lines these days... LOL Oct 03 03:17:17 haha Oct 03 03:17:22 I was digging around in that today Oct 03 03:18:14 yikes Oct 03 03:18:31 what are you guys working on that you jump into the android source? Oct 03 03:19:15 trying to understand a tricky bug/corner case Oct 03 03:19:32 also, I'm a masochist. Oct 03 03:19:43 speakingcode I've ported android to custom omap hardware, and maintain it Oct 03 03:20:24 lets just say there are some things I've luckily not had to mess with, liek surfaceflinger Oct 03 03:20:36 but a *LOT* of the other java I've at least dug through Oct 03 03:20:46 ah ok Oct 03 03:20:54 well if you're doing a port that makes sense. what is omap? Oct 03 03:21:11 also when the docs aren't clear (or are flat out missing), reading the code can really help Oct 03 03:23:10 is there anyway that i can automate the identify process through mirc Oct 03 03:23:56 omap is a TI soc that a *LOT* of modern devices run Oct 03 03:24:11 its pretty much ti omap, tegra, and samsung's exynos processors Oct 03 03:24:28 ron_frown: you heard ti is sidelining omap for mobile, right ? Oct 03 03:24:38 I've got some badass quad exynos reference hardware on order Oct 03 03:24:41 cant wait to play with it Oct 03 03:24:54 g00s Ive heard that, and also heard that it was a bit of misinformation Oct 03 03:24:58 or exaggeration Oct 03 03:25:28 well, they are still pushing it for other solutions. originally people said it was going to be abandoned altogether, which was incorrect Oct 03 03:26:26 doesnt really matter for me anywya to be honest Oct 03 03:26:42 I suspect and actually EXPECT the exynos platform to be better Oct 03 03:26:48 thats because … you are the destroyer ! Oct 03 03:26:59 yes, yes I am Oct 03 03:28:28 interesting; ms will have its own phone. and nokia isn't letting carriers load crapware on the 920 Oct 03 03:28:39 sounds good to me :) Oct 03 03:34:38 ron_frown: did you see that android phone stuffed in the entertainment weekly magazine ? Oct 03 03:34:48 no Oct 03 03:34:50 see, i'm clairvoyant ! Oct 03 03:35:02 i said last year they would start putting android phones in cracker jacks boxes Oct 03 03:35:07 this is close enough Oct 03 03:35:08 XD Oct 03 03:35:33 theres nothing wrong with that Oct 03 03:36:06 well, except they could wind up in the landfill … thats not so good Oct 03 03:36:55 is it possible to move an app from an account to another ? Oct 03 03:37:05 to transfer it Oct 03 03:37:28 no Oct 03 03:37:47 what account are you talking about>? Oct 03 03:39:19 panegyric: developper account Oct 03 03:39:36 panegyric: google play developper account Oct 03 03:40:09 oh no Oct 03 03:40:09 why do you want to do that, just curious Oct 03 03:40:46 OMG, now I can see why this hasn't been fixed yet. It's not exactly trivial. Oct 03 03:40:56 g00s I think the point is that android is portable Oct 03 03:41:09 and flexible in thtat it could be modern day tech, or stuff thats quite a bit older Oct 03 03:41:53 the wakelock is released when the PendingIntentRecord "finishes". Oct 03 03:42:15 now, if only it used ipkg and had strict separation between stuff vendor can add and stuff updateable by google... ;) Oct 03 03:43:02 panegyric: because, some apps were published from a personal account and we want to switch to a common account Oct 03 03:43:10 ahh! finally. Oct 03 03:43:14 g00s, http://bitgrind.com/android/android-4.1.1_r4/com/android/server/am/PendingIntentRecord.html#255 Oct 03 03:43:19 it used to be worse. you couldn't even update stuff like google maps before, iirc Oct 03 03:43:24 what do you mean a common account? Oct 03 03:43:36 g00s, there's a special case for broadcast intents, the broadcast is done synchronously Oct 03 03:43:38 a team of developers on one account? Oct 03 03:43:47 panegyric: another account on which 2 persons have full access Oct 03 03:43:54 sadly, the service case does not appear to have been changed Oct 03 03:43:54 panegyric: yes Oct 03 03:44:04 ron_frown i know this is a bit of a vague and loaded question, but any speculation on how mimimal the hardware could be and run android? suppose a very stripped down version Oct 03 03:44:06 does it matter maxagaz? Oct 03 03:44:14 personal account/ common? Oct 03 03:44:41 panegyric: it shouldn't matter for you ? Oct 03 03:44:57 well why doesit Oct 03 03:45:06 panegyric: you're happy to give your colleagues access to your gmail account? Oct 03 03:45:19 mrenouf: yeah; its not all that bad to do it the safe way, i understand your trepidation about updating privileges though Oct 03 03:45:22 oh i didnt know youre giving your colleagues access to it Oct 03 03:45:45 panegyric: not my colleague, but partner Oct 03 03:45:48 why do your colleagues need access to it? Oct 03 03:45:54 life partner? Oct 03 03:46:00 or development partner? Oct 03 03:46:01 maxagaz: try contacting Google about it? Oct 03 03:46:05 panegyric: de partner Oct 03 03:46:09 dev Oct 03 03:46:16 "Contact us from both the original email address and the new email address requesting to transfer applications. We require emails from both accounts so that we can confirm ownership." Oct 03 03:46:21 hehe, because the type of partner makes a difference :/ Oct 03 03:46:42 maxagaz you better beat your colleague to it Oct 03 03:46:50 ^ leslie Oct 03 03:47:28 anyone here married to another dev? Oct 03 03:47:57 i swear i just had something pop up on google's site in chrome saying "download chrome for a better experience" Oct 03 03:48:11 so? Oct 03 03:48:21 ron_frown i got some zipit z2's, they are little flip screen guys with 312 mhz intel PXA270 , 32mb ram and 8mb flash , and 802.11b/g, built in color screen and qwerty kb. would be nice to get a stripped android on em or somethin Oct 03 03:48:31 i get that all the time in chrome Oct 03 03:48:45 oh Oct 03 03:48:49 you'd think they'd selectively target it :P Oct 03 03:49:01 i see it in chrome more than ff Oct 03 03:49:02 on another matter, gmail put an email from the US government in my spam folder :P Oct 03 03:49:29 312mhz is pretty slow for it Oct 03 03:49:44 zipzits are cool Oct 03 03:49:48 can you gtalk? Oct 03 03:50:35 gtalk on the z2? Oct 03 03:50:36 I'm pretty sure you wouldn't fit Android in 32MB of RAM and 8MB of flash Oct 03 03:50:42 you can't target different browsers in adwords Oct 03 03:50:50 doogan it wasnt adwords Oct 03 03:50:55 i was signing into google apps for business Oct 03 03:51:02 and it was under the username/password form Oct 03 03:51:06 dunno panegyric i flashed em Oct 03 03:51:09 i got like 5 of em Oct 03 03:51:24 what do you mean you flashed them? Oct 03 03:51:33 Since you have unsuccessfully attempted to change your password three times, your account has been locked. Please log off and contact Customer Service. Oct 03 03:51:33 FUCK Oct 03 03:51:34 oh i was thinking a display ad Oct 03 03:51:37 i replaced the OS on em with debian linux Oct 03 03:52:05 g00s, the more I look at this, the more I think my use case is fine. It seems like the corner cases are where the service can't be immediately started for whatever reason. Oct 03 03:52:31 otherwise it's more or less started up immediately before returning Oct 03 03:52:43 wait, canadiancow, you don't use the same password for everything? Oct 03 03:52:48 ;-) Oct 03 03:52:54 speakingcode what do you mean you flashed them? Oct 03 03:53:15 Like this: http://bitgrind.com/android/android-4.1.1_r4/com/android/server/am/ActivityManagerService.html#11507 Oct 03 03:53:39 panegyric i replaced the OS on them with debian linux. flashed the rom that holds the system image, like flashing a droid with cyanogenmod Oct 03 03:55:14 any other NDK hackers had success with compiling static libraries against GNU libc, then mashing them all together into some monstrosity of a shared library that JNI can use? Oct 03 03:55:59 why did you flash it speakingcode? Oct 03 03:56:06 I want to bring an existing codebase to Android, but doing so would involve porting like 50% of GNU userland to Android... Oct 03 03:56:49 I actually really hate how difficult it is to port thigs from GNU/Linux (that already have an ARM port) to Android Oct 03 03:56:55 It is a major weakness in the platform Oct 03 03:57:26 Why build a system on Linux and then provide a completely useless userland? Oct 03 03:57:28 panegyric so i can have full use of it and install 'any' software i want, run scripts, sniff the air for packets, etc Oct 03 03:57:39 haha Oct 03 03:57:39 that may be because Android doesn't attempt to *be* 'GNU/Linux' Oct 03 03:58:06 But why does it make it so hard to port things over from GNU userland? Oct 03 03:58:23 why waste time making it easy? Oct 03 03:58:31 uhh like what Oct 03 03:58:33 Implying it would be a waste of time Oct 03 03:58:36 I've added a TON of shit to android Oct 03 03:58:40 Me too Oct 03 03:58:50 I want to port something that has Guile and Scheme as dependencies Oct 03 03:58:56 C/C++ isn't bad Oct 03 03:59:07 lemme guess, the jni Oct 03 03:59:08 Where there is a will, there is a way after hacking the NDK Oct 03 03:59:53 other than "performance" and reusing code, what advantages does the ndk provide? Oct 03 04:00:03 grothendieck: a bit of a problem is the linker... which is annoying Oct 03 04:00:28 speakingcode: I only use it to port existing software libraries to Android Oct 03 04:00:33 Mostly related to mathematics software Oct 03 04:01:00 I've ported gobs of shit Oct 03 04:01:03 grothendieck: try generating static libraries, then linking those libraries (possibly unpacking them first) as object files for new DLL Oct 03 04:01:07 but not specifially apps Oct 03 04:01:12 like adding functioanlitu to the os itself Oct 03 04:01:40 p_l: I know for sure that Guile will not compile against Bionic Oct 03 04:01:49 ron_frown how is that advantageous over say, extending the os? other than not having to recompile Oct 03 04:01:54 grothendieck: then your only chance is to patch Guile Oct 03 04:02:01 I'm wondering what would happen (and will find out soon) if I just link it statically against GNU libc Oct 03 04:02:05 Ugh :( Oct 03 04:02:53 whats Bionic? Oct 03 04:02:55 if you patch Bionic, you can expect the availability of your modification (outside of Nexus devices and latest CM) to happen sometime a year-two later (for any significant market penetration), and that's assuming you get in now Oct 03 04:03:01 what Oct 03 04:03:05 you mean the nda? Oct 03 04:03:06 ndk Oct 03 04:03:26 Bionic is the hacked up version of BSD libc that Android uses Oct 03 04:03:29 grothendieck: if you link it statically against gnu libc alls hit will break Oct 03 04:03:37 imagine porting a game that used common audio/graphics abstractions Oct 03 04:03:42 p_l: thanks for your help Oct 03 04:04:08 you could easily implement VERY similar c++ and be done with it Oct 03 04:04:21 i remember when the ipod photo first came out, flashing that putting linux on it and running videos...everyone was so amazed...and it reallly would just play a sequence of frames (that it broke movies down into) Oct 03 04:04:21 ron_frown: I have no idea what you are talking about? Oct 03 04:04:32 Very similar C++ to what? Oct 03 04:04:37 ron_frown yeah, so portability. but are there any other advantages? can ndk do other things the java environment can't? Oct 03 04:04:42 grothendieck i think he is talking to me Oct 03 04:04:45 oh Oct 03 04:04:49 that makes more sense ;) Oct 03 04:05:07 uhh.. I think it carries same restrictions and permissiosn Oct 03 04:05:07 i'm android noob Oct 03 04:05:08 speakingcode: better control over execution model, not being bound so much to DVM, etc. Oct 03 04:05:14 so its not like you get a magic key to the entire os Oct 03 04:05:23 ron_frown yeah, that's what i thought Oct 03 04:05:29 but you have the potential of performance gains Oct 03 04:05:41 and porting existing c++ is more convenient Oct 03 04:06:00 so there is no compelling reason to choose ndk over java system if i'm not porting, or desperately need to maximize performance Oct 03 04:06:01 I use ndk libraries to do serial communications and abstracted i2c shit Oct 03 04:06:18 precisely... its almost put exactly like that in the about for the ndk Oct 03 04:06:22 not even necessarily existing C++, but if you want to write a game that will be portable also to iOS or even generic Linux/MacOS Oct 03 04:06:36 then you would want to write it in C++ and make minor platform-specific modifications Oct 03 04:06:43 instead of re-write the engine on each platform you want to release on Oct 03 04:06:44 I know of at least one application that has probably *very* significant code share between Android and iOS version. Another application (that I was working on) was slowly moving towards sharing core business logic as one source between Windows, Linux, OSX, iOS and Android Oct 03 04:06:47 funy how android made c++ more portable than java :-) Oct 03 04:06:53 Yes Oct 03 04:07:01 Funny how Android is so married to Java Oct 03 04:07:36 grothendieck: well, I suspect it was Java or bust :/ Oct 03 04:07:48 although, i will say the java in android CAN be very portable, aside from UI, if you architect it right and don't use android components to do things plain ole java has a way to do Oct 03 04:08:22 speakingcode: Android enforces a very specific design pattern Oct 03 04:08:24 we dont really touch BB anymore at work but when we did a lot of code was shared between bb and android Oct 03 04:08:28 and it is hard to get away from that Oct 03 04:08:51 I dunno, basing it on Java did open it up to a bigger range of libraries Oct 03 04:09:41 It provides a reasonably effective security model Oct 03 04:09:46 whereverything is sandboxed under its namespace Oct 03 04:09:54 and lots of devs know Java Oct 03 04:10:00 I understand their reasoning for making the API in java Oct 03 04:10:03 grothendieck: except that's not really used on Android (java security) Oct 03 04:10:08 lol Oct 03 04:10:14 you know that, and I know that Oct 03 04:10:23 apparently under Android, the VM isn't a security boundary Oct 03 04:10:50 if the JVM doesn Oct 03 04:10:52 what was probably more important for choosing java was portability between different cpu families without explicit developer support (unless you use NDK) Oct 03 04:11:02 stop you, then the useless shell of a shell will! Oct 03 04:11:13 hah Oct 03 04:11:22 just install busybox, problem solved :p Oct 03 04:11:24 and a) big corpus of people "trained" in java b) less tooling to build Oct 03 04:11:26 but what portability is there anyway? ARM and I think now MIPS on some low-end devices Oct 03 04:11:29 experimental x86 support? Oct 03 04:11:41 it's not experimental anymore Oct 03 04:11:46 It's not like Debian doesn't already run on all of those platforms and like 100 more Oct 03 04:11:49 oh Oct 03 04:11:57 neat Oct 03 04:12:15 grothendieck do you know bluestacks? Oct 03 04:12:19 No Oct 03 04:12:22 grothendieck: the issue is having people actually compile and upload binaries for all of those, and afaik at least one of possible platforms might be bigendian... Oct 03 04:12:39 There are big-endian and little-endian MIPS architectures Oct 03 04:13:07 why is it so hot in SF :( Oct 03 04:13:07 it's an android emulator for windows (and i think mac too now) - it implements the kernel api's in .net (on windows) and reuses the userland stuff - so basically a fast android app player for windows Oct 03 04:13:25 p_l: isn't Java always big endian? Oct 03 04:13:38 speakingcode: are you trying to give me a stroke?!! Oct 03 04:13:46 "implements the kernel APIs in .NET" Oct 03 04:13:49 * grothendieck vomits Oct 03 04:14:01 well, it's a lot faster than the android dev emulator, heh Oct 03 04:14:04 lol Oct 03 04:14:08 That's sad then Oct 03 04:14:14 even with the x86 image? Oct 03 04:14:23 well, dunno about the x86 image Oct 03 04:14:30 using KVM and passign some opts to QEMU on Linux makes a big difference Oct 03 04:14:32 but, heh. it's for "normal people" Oct 03 04:14:38 the x86 emulator with gpu emulation is speedy for me Oct 03 04:14:49 KVM speeds it up a lot Oct 03 04:14:58 we use it for usability testing at work Oct 03 04:14:58 no kvm here, mac Oct 03 04:15:23 the hardware acceleration brought it up an order of magnitude for me Oct 03 04:15:24 it was impossible to get marketing people up n running with the emulator n figuring out how to install the app n such Oct 03 04:15:31 lol Oct 03 04:15:33 I can only imagine Oct 03 04:15:35 leslie: java abstracts that, but for example C, doesn't Oct 03 04:15:51 yeah, I know that Oct 03 04:16:02 also, typed APIs Oct 03 04:16:24 >marketing Oct 03 04:16:27 possibly the main reason for MS' push for .NET as main app environment on windows Oct 03 04:17:11 I'm going to re-write Android API in LISP Oct 03 04:17:17 see you in 5 years everybody Oct 03 04:17:46 I'm sorry, did you just say Lisp? Oct 03 04:17:46 grothendieck: I think you mean "((((see you in (year 5) (people all)))))" Oct 03 04:17:50 lol Oct 03 04:18:10 * Leeds makes no claim to either know Lisp, or balance parens Oct 03 04:18:24 http://xkcd.com/297/ Oct 03 04:19:23 hah Oct 03 04:19:29 * p_l slaps grothendieck and Leeds with a Symbolics 36000 Oct 03 04:19:33 *3600 Oct 03 04:20:34 s/slaps/crushes/ Oct 03 05:09:57 m Oct 03 05:10:19 i need help patching a smail Oct 03 05:10:27 2 of them Oct 03 05:11:17 can anyone please help me patch 2 smails Oct 03 05:11:37 i have no idea how Oct 03 05:11:49 lol wut Oct 03 05:12:30 i need two .smalis patched Oct 03 05:13:04 why ? Oct 03 05:13:06 what g00s said! Oct 03 05:13:08 they are for framework.jar Oct 03 05:14:05 Got questions/comments? Need help? Come hang out in #smali on freenode. Oct 03 05:14:16 thanks Oct 03 05:14:23 alex_PP: isn't that #smails :P Oct 03 05:14:44 #snails ? Oct 03 05:15:19 no #smali Oct 03 05:15:51 no idea then Oct 03 05:16:40 so, you have 2 .smali files Oct 03 05:16:43 and 2 patches? Oct 03 05:16:52 or 1 .smali file and a .patch file? Oct 03 05:17:15 i might need 3 smalis patch for sure 2 Oct 03 05:18:01 i see your 3 smali patches and raise you 1 smails patch ! Oct 03 05:18:10 i have a link with instructions on how to patch the 2 maybe 3 of them Oct 03 05:18:27 but don't understand how Oct 03 05:18:35 to use patch run patch file.smali patch_file.patch Oct 03 05:19:11 my smalis are from framework.jar Oct 03 05:19:11 link for the instructions? Oct 03 05:19:31 i don't have .patch files Oct 03 05:21:19 also, why are you trying to rewrite framework.jar? Oct 03 05:22:19 i am trying to port miui to my phone Oct 03 05:23:00 my pastebin with the instructions http://pastebin.com/mGYrnvYe Oct 03 05:26:30 the link i got it from Oct 03 05:26:30 http://forum.xda-developers.com/showpost.php?p=28885450&postcount=2 Oct 03 05:26:32 going 2 let dogs outside brb Oct 03 05:26:32 hi guys Oct 03 05:26:32 I wonder if I can use git command instead of "repo sync" to get to android source code. Oct 03 05:26:32 repo is pretty much a wrapper around git anyway, AFAIK Oct 03 05:26:32 o2oo do you know how to patch smalis without a patch file Oct 03 05:26:40 patch smalis ? Oct 03 05:26:46 yea Oct 03 05:27:05 you mean the decoded APK files ? Oct 03 05:27:37 Leeds, but I really only want to fetch out the source code, not to modify or commit any changes. Oct 03 05:27:45 from the instructions: For start of diff you should have both base and miui files you want to modify, and a diff tool Oct 03 05:27:53 they are from framework.jar because i am try to use cm9 to port to miui Oct 03 05:28:07 theblakester: this channel is for app development, not 'ROM hacking' Oct 03 05:28:18 i give up on all this Oct 03 05:28:21 what a mess Oct 03 05:28:29 o2oo: and is it so hard to use repo for that? Oct 03 05:28:36 and where's the source for miui Oct 03 05:29:24 this ain't hacking i just need help patching smalis Oct 03 05:30:19 theblakester: and nobody in #smali can help you? Oct 03 05:30:32 dead Oct 03 05:30:53 i got some one Oct 03 05:31:05 outa here Oct 03 05:31:26 Because using repo will get a lot of .git files. I don't want them Oct 03 05:32:29 and you're saying that git doesn't create .git files? Oct 03 05:33:05 anyone ever had the problem of the usb debugging icon not showing up? Oct 03 05:33:06 I heard that git archive could get the source code out with .tar.gz format. Oct 03 05:33:15 but I haven't tried Oct 03 05:34:09 newtony2: yeah, it never shows up for me unless I enable USB debugging and plug the phone in Oct 03 05:34:40 newtony2: or maybe there's some context missing in your question? Oct 03 05:35:05 well usb debugging is enabled and its conncted lol Oct 03 05:35:58 is there a way to have two android UI's running at the same time ? as in, running android for two users :) Oct 03 05:36:07 directly, or through a hub? tried different USB ports? original cable or not? Oct 03 05:36:20 the phone displays "usb connected" in status bar but no debugging... direct Oct 03 05:36:31 different cords and ports Oct 03 05:36:34 johnnny22: can you explain that better? Oct 03 05:36:51 newtony2: stock OS? Oct 03 05:36:59 it doesnt show up on the phone. i had to revert back to a stock rom from cm9 Oct 03 05:37:04 sampullman: i'd like to be able to do a bit what you can do with a normal OS.. lock the account and login another user (or switch active sessions) Oct 03 05:37:25 newtony2: erm... you know that some third party OS builds have the actual debug notification be optional? Oct 03 05:37:30 sampullman: both accounts would have distinct apps installed on the system. ;) Oct 03 05:37:43 because it can get annoying to have it show up every time you plug your phone in... Oct 03 05:37:45 yeah it doesnt show up in device manager either Oct 03 05:38:03 johnnny22: I think vmware have some enterprise solution stuff for that sort of thing Oct 03 05:38:18 Leeds: thats too bad :o/ Oct 03 05:38:21 newtony2: see, that's a different issue - and presumably a windows one, so nothing I care about Oct 03 05:38:56 not a windows issue becausere it doesnt work on my deb machine eith Oct 03 05:39:08 not a windows issue because it doesnt work on my deb machine either Oct 03 05:39:33 ooh, more context... I'm out Oct 03 05:40:05 Leeds: what they do doesnt look like what i'm thinking about Oct 03 05:40:07 i think. Oct 03 05:40:18 thanx leeds Oct 03 05:40:21 Leeds: if you're talking about My VMware Oct 03 05:40:56 johnnny22: I'm talking about something I remember seeing reported press releases about... don't even remember a name... Oct 03 05:41:06 johnnny22: im pretty sure the actual answer to your question is: no Oct 03 05:41:07 and when I say I'm out, I mean it's lunchtime and I'm hungry :) Oct 03 05:41:18 what?? it's almost midnight Oct 03 05:41:30 sampullman: yeah, i'd think to. Haven't seen such solution. Oct 03 05:41:46 sampullman: but, it's based on linux all this stuff, right ? Oct 03 05:41:49 um, but there is also another not-useful answer, which is that people have apparently found code in ICS/JB which would seem to be the start of a multi-user setup, and have tried to enable it, and not got very far Oct 03 05:42:07 aww Oct 03 05:42:14 Android uses Linux uids for app sandboxing, so Linux multi-user stuff doesn't translate Oct 03 05:42:16 yeah, im not actually completely sure it's not possible Oct 03 05:42:49 there are different "users" in android, in the linux sense Oct 03 05:42:57 so it's not a xwindow thingny ? Oct 03 05:43:02 system/root/radio/etc.. Oct 03 05:43:08 also no download mode for odin an recovery is stock screwed Oct 03 05:43:36 anyways, i just think it would be cool if such a feature was built-in Oct 03 05:43:41 if it's possible it would require root and a lot of source code moding Oct 03 05:43:47 like that, mom and dad could share the phone ;) Oct 03 05:43:49 google certainly doesn't support it Oct 03 05:43:52 Android also doesn't use X at all in any way Oct 03 05:43:57 I got a general question, if you got a user table where each user got some roles appended to them, lets say "swedish" and "seller". I also got another table with some items where each item needs some roles to access them, lets say one item needs the role swedish witch make the item availible for all user with the role swedish assigned and another item needs the role swedish AND seller witch make the item availible only for sellers in sweden. Oct 03 05:43:57 what is the best solution to achieve this? how would the db look like? Oct 03 05:44:00 newtony2: #android-root Oct 03 05:44:03 what, so mom doesn't see dad's porn stash? Oct 03 05:44:11 kewl thx Oct 03 05:44:27 sampullman: yeah exactly :P lol Oct 03 05:44:43 or so sister could use mom's cell ;) Oct 03 05:45:01 newtony2: it's in the channel topic, which you read when you joined the channel... right? Oct 03 05:45:07 without worrying about any access to her account from her mom. Oct 03 05:45:17 nor any worries about apps installed. Oct 03 05:45:39 to be honest, even if I had to reboot to switch users, i'd go with it ;) Oct 03 05:45:53 there may be some custom rom that implements the functionality you're looking for using multiple launchers Oct 03 05:46:29 maybe one day i'll look into it more ;) Oct 03 05:46:40 but wait! there's more: http://www.redmondpie.com/how-to-enable-the-hidden-multiple-user-accounts-feature-in-android-jelly-bean/ Oct 03 05:47:44 wut Oct 03 05:47:45 i bet it will be fully functional in the next release Oct 03 05:47:58 right, that's the stuff I was talking about Oct 03 05:48:10 guess they got further than I thought Oct 03 05:49:04 * Leeds -> deli :) Oct 03 05:50:17 can't wait for it to be ironned out ;) Oct 03 05:51:53 both those apps look cool Oct 03 05:57:06 huh , where is the n7 in this chart http://phandroid.com/2012/10/02/study-showing-android-tablet-market-share-jumping-to-48-ipad-down-to-52/ Oct 03 05:58:04 it's no in there Oct 03 05:58:10 think that study was done before its release Oct 03 05:58:12 oh "The survey did not include Google’s Nexus 7 or Amazon’s Kindle Fire HD, however, as they were not yet introduced." Oct 03 05:58:17 right Oct 03 05:59:01 48% is wayy higher than anything i've seen anywhere else Oct 03 05:59:48 should I be manually passing the ".db" extension as part of the database name to SQLite open helper? Just noticed that it doesn't seem to be added automatically Oct 03 06:01:38 spifff: yes Oct 03 06:01:39 spifff, You don't need the .db extension Oct 03 06:01:46 what? Oct 03 06:01:52 I mean, you don't need to *call* your db "something.db" Oct 03 06:01:57 It can just be "something" Oct 03 06:01:57 ah, yes Oct 03 06:02:01 lut4rp: yeah it just seems to be the convention Oct 03 06:02:08 but you have to provide the full file name Oct 03 06:02:14 Yep Oct 03 06:02:17 cheers :) Oct 03 06:02:31 sampullman, I realized what you were thinking as soon as you said "what?" :) Oct 03 06:02:52 heh, i realized what you probably meant just after that Oct 03 06:47:03 how to get rid of the exclamation mark next to my project's name in eclipse ? Oct 03 06:47:21 what does it say when you hover over it? Oct 03 06:47:49 Snuffel: it says nothing Oct 03 06:51:26 http://stackoverflow.com/questions/5895860/android-eclipse-exclamation-mark-next-to-project-name Oct 03 06:52:18 clean build? Oct 03 06:55:51 anyone using sherlock actionbar ? Oct 03 06:57:43 yep, tagrudev Oct 03 06:58:04 there is a header and tabs, how do you edit the content of the header Oct 03 06:58:18 the title, you mean? Oct 03 06:58:40 well yeah I want to edit the title and icon and maybe add an option in the right corner Oct 03 06:59:19 actions are added via menus Oct 03 06:59:43 the title and icon can be set in the xml definition of the activity, or in code Oct 03 07:00:21 is there an article or documentation about it ? Oct 03 07:00:51 http://developer.android.com/guide/topics/ui/actionbar.html Oct 03 07:01:23 be aware you'll have to do things a little different. like getSupportActionBar() instead of getActionBar() Oct 03 07:01:41 but for the most part, the API is identical Oct 03 07:02:54 ty leslie Oct 03 07:18:05 did it ty again leslie Oct 03 07:18:19 nice :) Oct 03 07:18:35 Morning all Oct 03 07:19:01 btw, tagrudev, http://jgilfelt.github.com/android-actionbarstylegenerator/ you may find that useful Oct 03 07:20:06 hey DysonReturns Oct 03 07:20:47 evenin' guvnor Oct 03 07:20:50 leslie, hi. how can I check if a drawable resource exits or not? Oct 03 07:21:34 er, I dunno, reflection on the R class maybe Oct 03 07:21:54 ah ok Oct 03 07:21:57 leslie, that's just what I was going to do next :D Oct 03 07:22:13 just guessing. what's it for, superlinux-hp ? Oct 03 07:23:55 leslie, you know, you want to see if a drawable file is there after is saved in the project installation context Oct 03 07:24:35 yeah, I didn't get any of that Oct 03 07:28:01 wait Oct 03 07:28:08 why do you need to check if a drawable resource exists? Oct 03 07:28:14 Just curious Oct 03 07:28:46 anyways Oct 03 07:28:58 if(getResources().getIdentifier("icon", "drawable", "your.package.namespace") == 0) // try this? Oct 03 07:29:10 stackoverflow'd Oct 03 07:29:26 yeah I pm'd you pretty much the same thing he did lol Oct 03 07:30:52 then if that returns 0 like dyson said you just do the Drawable d = getResources.getDrawable(yaypath) or what have you Oct 03 07:43:53 how does one parse a json response in andrdoid? Oct 03 07:45:19 org.json package dark_element Oct 03 07:46:03 Ivru suppose i have a function that handles all the rest api requests Oct 03 07:46:12 or use an object mapper like jackson ot gson Oct 03 07:46:46 any idea why (ed)ubuntu 11.04 won't recognise my galaxy nexus? Oct 03 07:46:55 Ivru now some api response is a "[ …]" or "{…}" is there a cleaner way to handle this or i have to wrap everything in try catch and try both JSONArray and JSONObject? Oct 03 07:47:02 alex_PP ^ Oct 03 07:48:11 dark_element: no, you'll have to do it by your own. It's also your job to know what kind of json response you're getting : array, objects, ... Oct 03 07:48:47 Ivru I wanted to abstract out the request part Oct 03 07:49:07 Ivru guess ill have to pass a flag to request or do try catch to check out all options Oct 03 07:49:13 Ivru which is better in your opinion? Oct 03 07:49:53 the same service can return either an array, either an object ? Oct 03 07:50:04 (same service with same request) Oct 03 07:50:31 Ivru not same service I am using a single function to make http requests providing it with api route to hit Oct 03 07:51:36 dark_element: you can make client and giving it as parameter a class that will take care of the parsing Oct 03 07:52:41 Ivru ok thanks! Oct 03 07:52:46 kind of a factory Oct 03 07:52:51 duckblaster: that's a fairly common problem, a quick google search should solve it Oct 03 07:55:46 which is more prior? onStart or onCreate in an Activity? Oct 03 07:56:25 RTFM ! Oct 03 08:00:25 superlinux-hp: activity lifecycle Oct 03 08:00:45 i'll try it.. it's just this or this Oct 03 08:01:00 superlinux-hp: http://developer.android.com/images/activity_lifecycle.png Oct 03 08:02:10 good god... Oct 03 08:02:42 hey, there must have been a time when you were first starting out, right Ivru ? Oct 03 08:04:21 leslie, https://actionbarsherlock.googlegroups.com/attach/338a3ac5a8590b3d/Screenshot_2012-04-14-09-29-01.png Oct 03 08:04:35 hmm that's not accessible Oct 03 08:05:08 leslie, http://screencloud.net/v/p5Si Oct 03 08:05:13 very strange way of sending it, but it worked, tagrudev Oct 03 08:05:33 hmm Oct 03 08:05:34 i want to get this dropdown on the right side Oct 03 08:06:19 tagrudev: play around with the showAsAction attribute, I can't remember offhand Oct 03 08:07:56 hi, i got: "run-as: Package 'com.example.blah' is unknown, tried to pull /data/system/packages.list, but there's no such a file on my phone (samsung stratosphere), any ideas? Oct 03 08:08:30 cube: wrong channel I think Oct 03 08:09:47 leslie: yeah. When I was reading the documentation Oct 03 08:10:39 leslie: well, it's part of development I think, need that to run adb shell in behalf on my app user Oct 03 08:11:15 hmm Oct 03 08:12:09 or lets tackle it differently Oct 03 08:12:40 i need to get a copy of my app's db, how do you tackle that? Oct 03 08:12:55 do I really need to put logic into my app? Oct 03 08:13:17 no, it should be possible. do you have the correct package name? Oct 03 08:13:37 yeah, double checked it Oct 03 08:13:44 hmm Oct 03 08:13:50 on my other phone it works as a charm Oct 03 08:14:11 dunno what to suggest then Oct 03 08:14:29 I mean, rooting would fix it, but that's like bring a gun to a knife fight Oct 03 08:14:58 leslie: unfortunatelly I can't root that one Oct 03 08:15:04 ahh Oct 03 08:15:07 I thought that maybe it's this http://code.google.com/p/android/issues/detail?id=16391 Oct 03 08:15:31 but as I wrote, there no such file (/data/system/packages.list) on my phone Oct 03 08:15:43 ok, will try to figure something out Oct 03 08:15:46 leslie: thanks for help Oct 03 08:16:02 no worries Oct 03 08:38:14 Hi, i got some problems about a phone number, The number is 02941275XX with XX 2 real numbers Oct 03 08:38:33 i'm using this number to start an Intent ( ACTION.CALL ) Oct 03 08:39:50 on android 2.3 ( Spica Phone ) it works, but i'm trying it on my Nexus 7 i get : 02.941275e+8 Oct 03 08:39:56 i'm using String type Oct 03 08:40:15 i don't understand why is in truncated like a double Oct 03 08:40:22 it* Oct 03 08:40:34 weird. does the nexus 7 even have a dialer? Oct 03 08:41:04 i don't think so , but instead of calling i can register the number in my contacts Oct 03 08:41:14 ah, yeah Oct 03 08:41:15 and i get 02.XXXXXXe+8 Oct 03 08:41:32 i've tried on a phone emulator v 4.0.3 Oct 03 08:41:35 same probleme Oct 03 08:41:35 strange Oct 03 08:43:24 02.941275e+8 ---what number went in? Oct 03 08:43:45 have you tried affixing tel: to the start? Oct 03 08:45:17 hello Oct 03 08:45:27 hi Oct 03 08:45:56 how could I repo Jelly bean 4.1.1_r6 but don't get its history version control files Oct 03 08:46:22 Grub_-: yeah, try leslie's tip, "tel:02941275XX", I see that's what we're doing in our apps. Oct 03 08:46:29 I don't want that big size of unuseful .git files Oct 03 08:46:42 who know? Oct 03 08:48:38 o2oo: might have to use the git command directly Oct 03 08:49:42 could only one git command do that ? Oct 03 08:50:26 no, I think it'd be one command per repository. unless you can figure out some way to modify the repo command to do what you want Oct 03 08:50:26 I know "git archive" could archive a repository into a tar.gz file. Oct 03 08:50:46 there's more than one repository Oct 03 08:51:15 yes, I noticed that, so I wish if anyone have done that Oct 03 08:51:45 11GB's size. So big Oct 03 08:52:15 actually Oct 03 08:52:23 repo might support the --depth argument Oct 03 08:53:32 if you set that to 1, it should be the latest ones only I think Oct 03 08:54:24 speed also slow... Oct 03 08:54:31 300kB/s Oct 03 08:54:39 not much can be done about that Oct 03 08:54:52 when could it download complete…..OMG Oct 03 09:12:19 Anyone know how to fix "ERROR: Unknown option '--output-text-symbols'" Oct 03 09:12:25 It shows up in my Console. Oct 03 09:18:40 is there anyway better than flashing firmware again to unbrick the phone :-P Oct 03 09:18:55 no Oct 03 09:19:25 so this means that I have to unlock the bootloader again :-( Oct 03 09:20:38 well, time to reboot to Windooze for firmware flashing then Oct 03 09:21:04 I don't think so Oct 03 09:21:20 as long as the firmware is official, you shouldn't have to, I think Oct 03 09:21:34 but I could be wrong Oct 03 09:22:53 you mean unlocking the bootloader part, right ? ? Oct 03 09:23:57 <[deXter]> yep, shouldn't need to unlock it if you're flashing official firmware Oct 03 09:24:03 <[deXter]> but if it's in the official format Oct 03 09:24:29 <[deXter]> so if it's designed to be flashed from CWM for example, it won't work Oct 03 09:24:33 I think that I rooted the phone using the official RUU Oct 03 09:24:48 lets see how it turn out Oct 03 09:25:07 gotta reboot, will let you know what happened Oct 03 09:57:52 \_\ Oct 03 10:26:08 there is a thing confusing me.. when I call "new File(path)" does this automatically create and writes new empty file on the disk? Oct 03 10:26:34 cos all i want is to check if this file exists or not Oct 03 10:26:53 no, it doesn't, superlinux-hp Oct 03 10:27:03 ah ok Oct 03 10:27:10 superlinux-hp: try getFileList() Oct 03 10:27:13 or someting like that... Oct 03 10:27:21 ok i'll see Oct 03 10:27:30 you can just do new File("filename").exists() Oct 03 10:27:38 ah ok Oct 03 10:28:06 it depends on where you store the files, anyway... Oct 03 10:28:33 internal, external storage, ... Oct 03 10:42:13 Hello, I have a surface view derived class. After I call forceLayout / requestLayout, I found that no onLayout have been called. Why is that? Oct 03 10:51:38 how do I find out which version of pcre the android git repository started from? Oct 03 10:51:55 or which version it originated from? Oct 03 11:00:44 Hi, I'm having some weird issues in my app... it works fine on Android 2.2, but on A.4 on new mobiles (Samsung) I'm getting Unable to resume activity - Failiure delivering result ResultInfo. I'm trying to use camera image, that is saved to temp file, Oct 03 11:01:18 seems like image is not saved yet, and that mobile is too fast, as on slower and old once works fine every time Oct 03 11:01:24 but it confuses me quite a lot Oct 03 11:14:41 hey! can I make an uninstall code for my application? cos I sometimes get that silly error insufficient storage space? Oct 03 11:19:43 Uninstall.... code...? Oct 03 11:22:34 You can adb uninstal my.package.name Oct 03 11:22:39 adb uninstall Oct 03 11:40:37 Did anyone here ever implement tesseract or tess-two in their project? Oct 03 11:59:54 can i write my android code as a commandline java application? i mean not UI based backend code, to be able to test/debug it Oct 03 12:01:09 rather than having to go through the emulator every time Oct 03 12:02:09 I am unable to import ActionBarSherlock in my eclipse workspace. It says no projects to import. I have just downloaded the latest version from the site and my jdk and jre version are set to 1.6 and 1.7 respectively . Please help me out with this Oct 03 12:04:20 digitalfallacy: "If you’re using the Eclipse Development Environment with the ADT plugin version 0.9.7 or greater you can include ActionBarSherlock as a library project. Create a new Android project in Eclipse using the library/ folder as the existing source. Then, in your project properties, add the created project under the ‘Libraries’ section of the ‘Android’ category." ?? Oct 03 12:05:36 sylon: not... really... if you have a lot of generic code I guesss you could dev it as a separate java app and export it as a jar to your android project, but that's not exactly a convenient workflow. Oct 03 12:06:52 HDroid: no basically i am trying to write some code thats not android related but will run on android later, can't i just use some unit tests or a console app to code it? then copy it into my android app or use a package Oct 03 12:07:34 sylon: sure, just do a regular java app and export the jar when you're done. Oct 03 12:15:52 HDroid: I imported the library folder as existing source .. but after importing it says AndroidManifest.xml missing, but its there in the source Oct 03 12:17:15 That's not what the text says? Oct 03 12:17:41 http://developer.android.com/tools/projects/index.html#LibraryProjects Oct 03 12:37:30 hi Oct 03 12:38:04 digitalfallacy: after that I needed to import AndroidManifest.xml and other missing things by hand Oct 03 12:38:04 I got a problem with my .9 file. Not sure if somebody here has met this before, and are able to help me out Oct 03 12:38:23 if somebody can told what I'm doing wrong, I'm glad to hear that Oct 03 12:39:22 I got a .9 file, which is showing correct in draw9patch.bat, but after I load it to my app, the line is not a line anymore Oct 03 12:39:52 The actual effect on my nexus 7 is available at http://justpaste.it/1dip Oct 03 12:41:02 you can notice the bottom line of the button Oct 03 12:42:35 I really don't know if the issue is in the .9 file, or in my code Oct 03 12:53:24 HDroid: vavirta : i was able to import successfully with target platform as api 14 and after adding the lib in build path Oct 03 12:53:54 HDroid: vavirta : i mean new project > from existing source Oct 03 13:01:54 Question: I noticed different devices have different allowed camera preview resolutions, but every device I have tried so far always has half of the native resolution as a valid preview size. Is that universal? Oct 03 13:02:01 Can I trust it to always work? Oct 03 13:02:18 hi. can tablelayout give coloring between spacing? Oct 03 13:02:26 hi. can tablelayout give coloring between spacings only? Oct 03 13:03:16 root66: no, not really. Oct 03 13:04:00 It kind of makes sense that it would always be supported. Can you give me anything to suggest otherwisE? Oct 03 13:08:22 huawei 8860 - native resolution preview Oct 03 13:13:14 root66: what do you mean by valid preview size? In what circumstances would an error occur (please mention what calls you're making and any relevant information) Oct 03 13:15:50 superlinux-hp, just set a background? Oct 03 13:16:18 mrenouf, aint fuzzy? Oct 03 13:34:49 I added ActionBarSherlock to the build path of my project .. now when i try to run my project it says could not find actionbarsherlock.apk Oct 03 13:35:47 am i missing something ... do i need to do anything else to include ActionBarSherlock to my project Oct 03 13:38:01 hi, Oct 03 13:38:18 does anyone knows how to end a call? thx Oct 03 13:39:58 BruFFy: you can't control the telephony layer. Oct 03 13:40:54 isn't there a broadcast call or something? Oct 03 13:41:32 can't believe they forgot that :s Oct 03 13:42:21 Pretty sure it was deliberate, otherwise malware can mess w/ calls. Oct 03 13:42:55 starting a call would be bad but that's allowed :s Oct 03 13:43:16 this is intentional. Oct 03 13:43:26 Telephony is a Pretty Fucking Big Deal on a telephone Oct 03 13:43:34 heh Oct 03 13:43:34 so the ability for anyone to fuck it up is really kind of a big deal Oct 03 13:43:58 You may notice that you have trouble recording voice calls in progress as well. Surprise, this is also intentional. Oct 03 13:44:30 You're allowed to directly call numbers, if the user gives you permission, but that just involves being allowed to send a particular intent. Oct 03 13:44:41 After that, you have no control about the in-call status. This is by design. Oct 03 13:44:48 is starting a call allowed? or does it just take you to the dialer with the number? Oct 03 13:44:57 yeah, it's allowed if you have some permission Oct 03 13:45:00 k Oct 03 13:45:02 I forget which one Oct 03 13:45:02 starting allowed Oct 03 13:45:08 not even google's stuff does this which is actually rather annoying Oct 03 13:45:11 basically you can send an intent to the dialer to both dial and start the call Oct 03 13:45:25 but not to end it :( Oct 03 13:45:25 oGMo: I honestly prefer that things not automatically click "call" for me Oct 03 13:45:40 just populating the dialer with the number is sufficient for me Oct 03 13:45:48 it's a nice way to know that you're not dialing a 900 number or something. Oct 03 13:45:53 and how does a BT device end a call? Oct 03 13:46:00 sure .. wish maps had an option though ;/ Oct 03 13:46:02 regardless Oct 03 13:46:04 BruFFy: through direct frameworks support for BT. Oct 03 13:46:16 this happens at a layer that regular applications don't have access to Oct 03 13:46:20 also some stuff intercepts incoming call status before it's picked up, but Oct 03 13:46:25 it says please Oct 03 13:46:41 you'll notice that there are certain intents which require permissions that require signatureOrSystem Oct 03 13:46:50 for example, media headset button events Oct 03 13:47:12 i've tried it but no luck with that for now Oct 03 13:47:12 BruFFy: what you're trying to do is not possible, and this is intentional. Oct 03 13:47:24 i want to sleep Oct 03 13:47:34 If you do somehow find a way to screw with telephony, that's a pretty huge bug and you should report it right away via b.android.com Oct 03 13:47:57 hell no i need to be able to end a call :) Oct 03 13:48:04 no, you really don't. Oct 03 13:48:04 assuming there are non-nefarious purposes for discovering such things :P Oct 03 13:48:11 is it possible to hack core for this? Oct 03 13:48:22 if you're willing ot make a custom rom, sure it's possible Oct 03 13:48:22 BruFFy: if you install a custom firmware on your device, yes, this is possible. Oct 03 13:48:29 where is hackkitten Oct 03 13:48:29 for own user ofcourse Oct 03 13:48:32 if you can make your own rom you can sign your app w/ the system key Oct 03 13:48:38 oGMo: I thought of a clever idea. Oct 03 13:48:48 oGMo: Create an app which has permissions to modify the user's contacts, and to directly dial Oct 03 13:49:01 have them create a contact for a 900 number, with a "name" of some 800 number. Oct 03 13:49:04 profit??? Oct 03 13:49:18 (oh, dial the 900 number and the 800 number "name" shows up in the dialer) Oct 03 13:49:24 lov: oh nah .. i mean, maybe there even are already .. i just use maps as my addressbook more or less heh Oct 03 13:53:48 can you send sms messages by code? Oct 03 13:54:47 yes it's possible but ending a call not :s who can understand Oct 03 13:55:56 if they are worry people might do bad stuff they should only allow games no phone control at all Oct 03 13:56:37 yes those are definitely the only two valid options =P Oct 03 13:57:50 why not beeing able to stop a stupid call, start a call, send sms as much as you want, no problem but oooh stop a call.... Oct 03 13:57:52 BruFFy: http://developer.android.com/reference/android/telephony/SmsManager.html Oct 03 13:58:01 BruFFy: because imagine if malware was able to force stop a 911 call? Oct 03 13:58:15 BruFFy: allowing arbitrary applications arbitrary control of telephony is a BIG FUCKING DEAL Oct 03 13:58:22 what if malware force to call 911 all the time .. Oct 03 13:58:28 rather regulated afaik Oct 03 13:58:51 just ask permission and it should be ok Oct 03 13:58:55 ah yes. Oct 03 13:59:00 Because users actually look at the permissions Oct 03 13:59:01 I think telephony isn't a big f'ing deal. Oct 03 13:59:05 anyway, whatever. Oct 03 13:59:39 Also, the SIM is aware of the emergency number so it would be pretty easy to write an exception for it. Oct 03 13:59:49 idd Oct 03 14:14:43 I am creating file in activity and it stores as /mnt/sdcard/My.txt but in emulator Linda File Manager its not getting created Oct 03 14:15:04 I does not show up in DDMS file explorer either Oct 03 14:15:08 is the file actually being created? Oct 03 14:15:09 (hint: no) Oct 03 14:15:22 lov: thats what I want to test....why its not getting created... Oct 03 14:15:24 how are you "creating" the file. Oct 03 14:15:31 if you're just creating a File instance, that's not sufficient Oct 03 14:15:40 that just creates a File object which references the path you gave it; nothing more. Oct 03 14:15:43 lov: no ....really creating file Oct 03 14:15:50 mms_: pastebin your relevant code, please. Oct 03 14:15:58 ok Oct 03 14:16:55 http://pastebin.com/xnRBg8j3 Oct 03 14:17:28 consider logging in that catch(IOException) part. Oct 03 14:17:41 step through with the debugger, make sure that you're actually writing, flushing, and closing. Oct 03 14:17:46 verify what filename is. Oct 03 14:18:10 verify that the external storage is actually accessable. Oct 03 14:18:14 Verify that you have the WRITE_STORAGE permission. Oct 03 14:19:45 oh I did not add any permission to manifest Oct 03 14:21:36 mms_: learn to log your exceptions. Learn to use the debugger. Oct 03 14:22:11 yep doing it now Oct 03 14:23:36 lov: added Oct 03 14:25:33 Hello everyone, I have some trouble with bluetooth, maybe someone could look at? Thanks Oct 03 14:26:27 mms_: good for you? Oct 03 14:26:33 Boundless: just ask your question. Oct 03 14:26:43 I see the txt file now Oct 03 14:27:18 I am trying to connect arduino bluetooth module, and I have only one paired device in my htc phone. So I have a loop for (BluetoothDevice device : pairedDevices) and I am saving a device to Device1 inside the loop Oct 03 14:27:33 after that I am making a tmp = Device1.createRfcommSocketToServiceRecord(MY_UUID); Oct 03 14:27:49 and then try to mmSocket.connect(); Oct 03 14:27:57 program runs well but it simply does not connects Oct 03 14:28:14 try { // Connect the device through the socket. This will block // until it succeeds or throws an exception mmSocket.connect(); log.setText(log.getText().toString() + "Connected\n"); Oct 03 14:28:15 are you sure that the device it finds is actually the correct device? Oct 03 14:28:22 Yes Oct 03 14:28:25 also, pastebin plz. Oct 03 14:28:32 I am printing the name and address of that device Oct 03 14:28:43 And it seems to be good Oct 03 14:28:50 Sorry going to paste it there Oct 03 14:29:24 http://pastebin.com/Z8jfAaGj Oct 03 14:29:36 please take a look at Oct 03 14:29:37 :) Oct 03 14:30:54 Boundless: consider using Logcat for logging, instead of a textview. Oct 03 14:31:26 Anyway, Device1 is actually showing as the correct device, yes?> Oct 03 14:31:27 I've checked logcat but anyways I am just beggining to develop for android and I can not see anything there Oct 03 14:31:51 Byt the way I have tried to connect same device with BlueTerm - it works fine Oct 03 14:32:08 yes found a way to stop call without hacking :) Oct 03 14:32:53 lov Oct 03 14:32:59 lov: maybe you see what is wrong there? Oct 03 14:33:02 Well Oct 03 14:33:11 there's a couple things that might be issues but likely aren't. Oct 03 14:33:15 First, you're doing this all in the UI thread. Oct 03 14:33:24 Consider spawning off a new thread, and using a Handler to update your logging textview. Oct 03 14:33:44 Second, I don't know if you have the Bluetooth permission, but I'd assume that you'd just fail right away Oct 03 14:34:07 I have added bluetooth and bluetooth_admin permissions Oct 03 14:34:16 ok, it's probably not the permissions then Oct 03 14:34:21 try doing this off of the UI thread. Oct 03 14:35:03 I have no idea, how to do that, I must create a new class and simply call that from UI thread? Oct 03 14:35:18 not necessarily Oct 03 14:35:24 you can create an anonymous inner class Oct 03 14:35:24 1 sec Oct 03 14:35:30 thnx Oct 03 14:40:20 Boundless: http://pastebin.com/gpFGJ8Qe Oct 03 14:42:17 Thanks lov, I am going to check that Oct 03 14:47:46 lov, I got error on 23 line which says insert ";" to complete field declaration Oct 03 14:47:55 I can not get what is missing there Oct 03 14:48:02 damn I don't like java syntax so much Oct 03 14:48:10 hi. which can set the imageview picture? Oct 03 14:48:18 which method? Oct 03 14:48:24 oh whoops Oct 03 14:48:27 insert the ; on line 21. Oct 03 14:48:38 setBackground? Oct 03 14:49:09 superlinux-hp: probably one of the setImage* methods Oct 03 14:49:15 use the one that's appropriate for you. Oct 03 14:49:35 thanks yes it is the onse Oct 03 14:49:47 lov, but there are ; in the end of the line Oct 03 14:49:51 at 21st line Oct 03 14:49:56 ahmedammar, salaam bro.. join other arabs on #linuxac Oct 03 14:50:05 er? Oct 03 14:50:11 superlinux-hp: no advertising, please. Oct 03 14:50:26 Boundless: I didn't include one at the end of line 21 :P Oct 03 14:50:30 unless you've modified this Oct 03 14:50:32 lov, I am not! Oct 03 14:50:37 but anyways.. Oct 03 14:50:38 10:50:02 < superlinux-hp> ahmedammar, salaam bro.. join other arabs on #linuxac Oct 03 14:50:59 that's advertising? Oct 03 14:51:06 how it looks now: http://pastebin.com/v6eE4AS6 i got only one error now Oct 03 14:51:06 i just want people to know that there is a gathering made for arabs. Oct 03 14:51:08 basically. it doesn't have to be commercial. Oct 03 14:51:18 hmm Oct 03 14:51:24 topic doesn't say that actually, come to think of it Oct 03 14:51:34 * lov shrugs Oct 03 14:51:34 ok. Oct 03 14:51:39 sowwy Oct 03 14:51:52 oh cmon lov, if he said join the other whites in #linux-white you would have praised it and you know it! ;-p Oct 03 14:52:00 it's alright, I just don't want people to start advertising their own channels, because then we have to figure out how MUCH someone can advertise, what's allowed, what's not. Oct 03 14:52:08 speakingcode, LOL! Oct 03 14:52:20 speakingcode: #linux-white is called freenode :P Oct 03 14:52:32 haha Oct 03 14:52:59 seriously! I have to save this conversation Oct 03 14:53:04 it's funny Oct 03 14:53:33 Lov thanks for the code but anyways Oct 03 14:53:39 it tells me the code Oct 03 14:53:44 the name* Oct 03 14:53:50 * lov shrugs Oct 03 14:53:54 I'm not too familiar with bluetooth, sorry. Oct 03 14:53:58 You could always try stackoverflow. Oct 03 14:54:00 correct name and does not connect (bt blinks only) Oct 03 14:54:03 thanks Oct 03 14:54:48 when i used to have some phone, maybe motorolla razr, i could never get the bluetooth to connect with my girlfreind Oct 03 14:54:57 so i just kinda abandoned bluetooth altogether Oct 03 14:55:46 Hey guys, test my crazy python script! https://gist.github.com/3797328 Oct 03 14:55:55 i dunno if it's better now but that used to be a pain. one person would have to make themselves discoverable and the other would have to set to look, and sync up at just the right time Oct 03 14:56:15 It wraps 'adb' to add device selection Oct 03 14:57:52 mrenouf|work: so the only thing it does is add device selection? Oct 03 14:58:48 lov: yeah, isn't it great! ;-) Any other ideas? Oct 03 14:59:13 multi-window adb logcat with ncurses was another idea, but that's just not gonna happen (no time) Oct 03 14:59:42 I find it handy cause I always have emulators and several devices plugged in Oct 03 15:00:53 it grabs build.prop to show useful details so you can tell your devices from one another (especially emulators) Oct 03 15:01:27 yeah, I tend to just have one device plugged in at a time Oct 03 15:01:39 so, not very useful for me, but I can see it being very useful if you have a battery of emulators. Oct 03 15:01:42 lov, then no need :-) Oct 03 15:01:45 yep Oct 03 15:02:00 I figured someone else with free time might want to hack more stuff into it Oct 03 15:02:24 I'd love to have a console version of "DDMS" in eclipse that acts as a dashboard of sorts Oct 03 15:02:46 just scratching an itch. most python code I've written in the last year... lol Oct 03 15:03:40 hi, I'm having problems using GLSurfaceView in Nexus 7 devices. Oct 03 15:04:00 everything in my code works well in other devices, but I only get a black screen on Nexus 7 Oct 03 15:04:05 is this a known bug? Oct 03 15:04:12 your code is a known bug Oct 03 15:04:15 known to you Oct 03 15:04:27 :p Oct 03 15:04:28 I'm just displaying some textures, not something much complex Oct 03 15:05:06 mrenouf|work, adb has lots of that functionalityfrom the commandline... Oct 03 15:05:08 why does it work on plenty of other different devices then? Oct 03 15:05:24 mrenouf|work, there's also the ddmlib stuff in the sdk Oct 03 15:05:40 mrenouf|work, more java than python... Oct 03 15:06:41 speaking of which, I should add a logcat command to my sbt plugin, show the latest few messages Oct 03 15:08:50 pfn, yeah... native adb would probably be better than adb shell grabbing build.prop. but it works. I don't plan to add any more to it. Oct 03 15:09:50 adb.real? Oct 03 15:27:22 Can I use Fragment in API 8 even though it was introduced in API 11? Oct 03 15:27:25 * Hodapp restarts Eclipse for the Nth time because it just shit in its own project directory again and then left locks on the files failing the build. Oct 03 15:29:52 xarxer: yes, use the support library Oct 03 15:30:29 f2prateek: That's cool.. thanks! Oct 03 15:30:55 f2prateek: If this is possible with fragments, why don't they do it for all classes in all later API's? Oct 03 15:33:47 Hi I have scrollview inside my listview item. the scroll is not smooth and hard to scroll. what could I do about this? Oct 03 15:35:14 a scrollview inside a listview !? Oct 03 15:36:13 Ivru: yes Oct 03 15:40:07 vudu: you're trying to scroll each item indiviudally as well as the entire list? Oct 03 15:40:13 *individually Oct 03 15:42:52 f2prateek: the items have some part that has a textview in it. the area is small and the text is relatively large for the area. so I had to use scroll view. the scroll view does not cover the all listview item but %40. Oct 03 15:43:46 vudu: you can just wrap each list item around the content so it will resize to fit in the large text Oct 03 15:44:49 vudu: since the listview handles its own scrollling, it probably conflicts with its items scroll view whcihc is making it slow Oct 03 15:46:55 vudu: listviews do not go in scrollviews, and scrollviews do not go in listviews ಠ_ಠ Oct 03 15:48:12 thanks Oct 03 15:48:29 I will have to ask for new design I guess Oct 03 15:55:53 I have Screen Rotation ebaled in my Samsung Galaxy S2. But display.getRotation() always return zero when device is in different angle (landscape, portrait, ...) Oct 03 15:55:55 any idea Oct 03 15:57:47 JakeWharton: we need a tutorial on how to build a project with ABS and the new android build system http://tools.android.com/tech-docs/new-build-system ths :) Oct 03 15:57:50 thx* Oct 03 15:57:58 you write it Oct 03 15:58:31 i still prefer Maven for the time being anyways Oct 03 15:58:39 I don't succeed in Oct 03 15:58:45 the Gradle build has some serious limitations Oct 03 15:58:51 it's why I ask you Oct 03 15:59:45 neoakira: uh, what? Oct 03 15:59:51 you could try maybe asking nicely Oct 03 16:00:06 I have Screen Rotation ebaled in my Samsung Galaxy S2. But display.getRotation() always return zero when device is in different angle (landscape, portrait, ...) Oct 03 16:00:34 sorry for my english :) Oct 03 16:01:12 + could you write it ? please Oct 03 16:01:19 You asking him to ask nicely but what about this "JakeWharton: you write it". I dont find that any nicer. Oct 03 16:03:00 I don't have time and as I'm not using the Gradle (nor will I be for a while) I'm not qualified to. The project is set up to be consumed using Ant (the current recommended building system) and Maven (a real, full featured build system). Oct 03 16:04:02 hello all, how to implement movable items in ListView (GridView) like as in playlist of native Android player? Oct 03 16:05:25 binglels, movable as in swappable? Oct 03 16:05:38 i.e. "manual sort" Oct 03 16:07:13 Relative layout does not account the a child view's bottom margin. I would rather need to set bottom padding for the relative layout. Oct 03 16:07:41 my guess is you'll be using the drag&drop framework.. its farily straightforward, you just need to implement a few callbacks for drag events.. http://developer.android.com/guide/topics/ui/drag-drop.html Oct 03 16:08:21 speakingcode manual sort Oct 03 16:09:27 does anyone have any suggestions for using photos as view backgrounds? Best to measure the available space…process the bitmap…and cache for next time? Oct 03 16:09:30 actually i think it's mostly one callback, onDrag(View v, DragEvent event); Oct 03 16:10:08 and within it you'll have some cases for the different drag events Oct 03 16:10:33 OnDrag too high api :( Oct 03 16:12:24 http://stackoverflow.com/questions/8802969/implement-drag-drop-in-gingerbread Oct 03 16:13:32 has anyone here dealt with the feedback issue of simultaneously recording and playing back of audio? if so, could you give me some incite? Oct 03 16:13:39 thanks i found some links Oct 03 16:14:11 but its not so easy for implementing :( Oct 03 16:15:37 nope it's not Oct 03 16:16:00 see this for ex. https://github.com/thquinn/DraggableGridView/blob/master/src/com/animoto/android/DraggableGridViewSampleActivity.java Oct 03 16:16:38 https://github.com/thquinn/DraggableGridView/blob/master/src/com/animoto/android/views/DraggableGridView.java this Oct 03 16:16:40 not first Oct 03 16:17:12 many many code Oct 03 16:17:17 code's lines Oct 03 16:23:12 Hey guys, are there any channels particularly dedicated to discussing android security and related research/hacking stuff? Oct 03 16:23:32 trying to root Samsung Galaxy W (2.3.6) using Recovery method. Problem is I can't get "su" it returns "permission denied" using win7 SDK installed drivers also (rather certain) Oct 03 16:24:07 jojo-330: read channel topic, go to #android-root... whatever happens after that Oct 03 16:24:41 Leeds: thanks. Oct 03 16:25:09 what's time of when between pressing on Item(View) and calling OnLongListener? Oct 03 16:26:50 even tho this is the wrong chan. noone has helpful info ? ;) Oct 03 16:27:35 jojo-330 #android-root Oct 03 16:28:04 jojo-330: go to #android-root please. Oct 03 16:28:13 This channel is for android app development, not rooting. Oct 03 16:28:13 Hey jojo-330, try #android-root Oct 03 16:28:15 nowhere in particular? Oct 03 16:28:29 pr3fatum: uh, this channel I guess. Oct 03 16:28:30 jojo-330: #android-root could probably help you Oct 03 16:28:31 Maybe #android-root Oct 03 16:28:41 but I don't think there's an explicit #android-security channel Oct 03 16:28:42 * lov shrugs Oct 03 16:28:45 you can always start one :> Oct 03 16:29:02 lov, thanks. i just joined #androidsecurity but it seems pretty.....empty... Oct 03 16:29:16 i'll try asking in android-root too :) Oct 03 16:29:22 wonder if #android-root users expedite app dev questions on this channel as if it was the devil... Oct 03 16:30:04 bubbleguuum: mostly it's people posting in #android Oct 03 16:30:46 pr3fatum: depending on your questions, you could probably discuss it here Oct 03 16:30:56 #android-root is more of a "hey guys I have a how do I install on it Oct 03 16:31:32 lov: don't forget "I fucked up my phone by installing the wrong firmware, HELP!" Oct 03 16:32:08 yes, this too. Oct 03 16:32:40 fair enough. i'm pretty much looking into where to start upon trying to hack android (possibly jellybean). i'm on a computing security uni course and i'm possibly taking this on as a project Oct 03 16:33:46 You've gotta define "hack" here. Oct 03 16:34:02 Are you talking about gaining route? Circumventing sandboxing? What? Oct 03 16:34:05 s/route/root/ Oct 03 16:34:08 is there a faster way to "adb kill-server; adb start-server" Oct 03 16:34:19 sdaq: is that particularly slow? Oct 03 16:34:19 sdaq: make a shell script :P Oct 03 16:34:26 most adb commands imply adb start-server Oct 03 16:34:29 too much typing Oct 03 16:34:30 so you could always do adb kill-server; adb shell Oct 03 16:34:45 lov: perfect thanks Oct 03 16:40:04 has anyone here dealt with or knows how to deal with the feedback issue of simultaneously recording and playing back of audio? Oct 03 16:42:26 Untopped_ you mean echo effect? Oct 03 16:43:20 its can be when mode is VOICE_MUSIC Oct 03 16:43:41 bingels: yea, basically how to minimize it without having to decrease the quality of the audio Oct 03 16:44:16 you can use VOICE_CALL Oct 03 16:44:32 but sensitivity of microphone's lower Oct 03 16:44:48 well what I meant was you'd need to install a terninal app Oct 03 16:44:54 i dont know why this happens Oct 03 16:45:08 er. ignore that Oct 03 16:46:07 bingels: this would be using MediaRecorder correct? what would be the difference between voice recording using MediaRecorder and voice recording using AudioRecord? Oct 03 16:46:20 does anyone have experience doing USB Debugging over ethernet? Oct 03 16:46:47 Untopped_ by AudioRecord you can handle raw audio PCM data Oct 03 16:47:19 MediaRecorder can write to file Oct 03 16:49:31 bingels: I am looking to just store the audio in memory for temporary use. In my experience with MediaRecorder, you have to set an output file so it is more for asyncronous audio recording and playback Oct 03 16:50:25 I am trying to do both synchronously Oct 03 16:50:51 AudioTrack and AudioRecord can use in asyncronous mode, in both threads Oct 03 16:52:30 well maybe not comepletely synchronous but close to it Oct 03 17:03:04 hi, to use setAudioSource on VOICE_CALL:I = 0x4 what permissions must my app have? Oct 03 17:03:26 ok I have never implemented the drag and drop feature yet, I have a playing video in VideoView which I'd like the user to be able to drag from the bottom either to the middle or the top of the screen Oct 03 17:04:49 and I need to use the old way of doing it because I'm supporting 2.2 and above, I started off with the TouchEvent/TouchListener examples but how can I implement a DropTarget ? Oct 03 17:08:02 hi guys, is there a way to check if service is already running? Oct 03 17:09:06 why do you need to check? Oct 03 17:14:11 does adb from platform-tools not working in 64-bit ubuntu? Oct 03 17:15:28 works for me Oct 03 17:15:44 it's possible it's changed, but certainly in the past everything was build 32-bit - so you'd need multilib support Oct 03 17:16:22 pfn, when the main activity is started i start the service, but when i choose another activity and back to the first one, it causes a conflict Oct 03 17:16:29 yeah i think i need apt-get install ia32-libs Oct 03 17:17:40 that was it, it runs now Oct 03 17:18:05 ah yes Oct 03 17:22:38 ai'm creating a custom viewgroup that creates a bunch of children, and has to recreate them every time it gets invalidated. what's the right method in the viewgroup from which to do the child view adding? Oct 03 17:23:07 That sounds horribly inefficient Oct 03 17:24:13 hi, to use setAudioSource on VOICE_CALL:I = 0x4 what permissions must my app have? Oct 03 17:24:54 SimonVT: it'll need to happen infrequently Oct 03 17:26:50 Create a custom method then Oct 03 17:27:14 oh, i see. and then call invalidate to display it? Oct 03 17:27:33 Sure Oct 03 17:27:46 And requestLayout Oct 03 17:27:51 http://www.reddit.com/r/shittyaskscience/comments/10v04c/what_is_the_mathematical_proof_that_8d/ Oct 03 17:32:18 hello Oct 03 17:33:23 how does one go about querying views and fragments without using ids? Oct 03 17:36:40 Anybody know of an open-source drawer pattern implementation that's similar to Facebook's? I need something that keeps the action bar fixed up top, but allows the drawer to swipe in and out beneath. Oct 03 17:36:55 Oops, not Facebook. YouTube. Too early. :( Oct 03 17:37:23 Chronax: https://github.com/jfeinstein10/SlidingMenu Oct 03 17:38:02 Google have updated their design guidelines to say that they recommend the Action Bar doesn't slide across, in any case :) Oct 03 17:41:26 dark_element: you can get a fragment using a String tag if it's been registered with the FragmentManager Oct 03 17:41:39 sampullman ok Oct 03 17:42:36 Chronax: there's also simonvt's menu-drawer Oct 03 17:55:19 f2prateek: Yeah, thanks. That one is great, but I think it hides the action bar. Oct 03 17:56:22 It can do both Oct 03 17:56:38 where are these entertainent weekly's being distributed ughhh Oct 03 17:56:48 i want to set up a magazine cluster Oct 03 17:59:39 SimonVT: Is there an option or something that I missed? Oct 03 17:59:42 To keep the action bar up top? Oct 03 18:00:16 Check out the samples Oct 03 18:03:03 hi, to use setAudioSource on VOICE_CALL:I = 0x4 what permissions must my app have? Oct 03 18:03:08 SimonVT: I'll take another look. That's a really nice implementation, btw -- thanks! Oct 03 18:04:37 It's going to be even better this weekend when I get time to update it Oct 03 18:04:39 or well, smoother Oct 03 18:04:42 on JB at least Oct 03 18:05:05 Oh, that's great news. Oct 03 18:05:11 Should I wait for that update, or can we just drop the new jar in? Oct 03 18:05:40 It's a lib project, but there wont be any changes to how you use it Oct 03 18:06:04 just git pull Oct 03 18:07:52 SQLiteOpenHelper is thread safe if i only keep one instance of it right? Oct 03 18:08:57 that's not the definition of thread-safe Oct 03 18:09:15 pfn, when the main activity is started i start the service, but when i choose another activity and back to the first one, it causes a conflict Oct 03 18:09:18 if it doesn't say it's thread-safe, it is not thread-safe Oct 03 18:09:23 Duailibe, be specific, causes what conflict Oct 03 18:09:29 startService does not start a service multiple times Oct 03 18:09:31 thus, no conflict Oct 03 18:09:39 yes! Oct 03 18:09:53 how can i check if service is already started to dont start again? Oct 03 18:10:12 pfn: well, questions stands anyway Oct 03 18:11:36 guess i'll just download the source and see, but answers from here and there suggests it does provide a lock mechansim, and will every only create 1 db "connection" Oct 03 18:11:53 Bensa, a class that does not declare itself to be thread-safe is not thread-safe Oct 03 18:11:58 Bensa, the question does not stand Oct 03 18:12:07 it does, cos im not gonna withdraw it : Oct 03 18:12:08 :D Oct 03 18:12:31 Duailibe, you won't be starting it again, because it's already started Oct 03 18:12:49 Duailibe, is your question: if the service has already been executed once, do not execute again Oct 03 18:12:52 that's different Oct 03 18:13:02 maintain a flag in your service to prevent multiple invocation Oct 03 18:13:17 maintain a flag in your caller's bundle to prevent multiple invocation Oct 03 18:13:24 maintain a flag in your imagination to do the same Oct 03 18:13:26 whatever Oct 03 18:20:34 does anyone know how to debug android over ethernet? Oct 03 18:21:28 there's an ssh client you can use Oct 03 18:21:33 forget name off top of my head Oct 03 18:21:56 over ethernet? Oct 03 18:22:01 enable adb over tcpip Oct 03 18:22:08 and debug over wifi Oct 03 18:22:56 Hey! Oct 03 18:23:31 pfn thanks for the explanation! i will try here Oct 03 18:25:48 has anybody had an issue where the dev console says "Needs at least 2 screenshots." even though there are > 2? Oct 03 18:37:54 Hi Oct 03 18:38:21 I have a problem: when i create a MediaPlayer object i can't make setVolume work, it means that whatever the value is the app is mute, how can i fix this? Oct 03 18:39:34 bingels: I found one solution that solves the feedback issue. By changing the parameter of AudioTrack to STREAM_VOICE_CALL, the audio is outputted through the headset speakers instead on the built in speakers. It kind of works but the way I want it to but now I am looking for ways to handle the feedback issue using the phone's speakers Oct 03 18:49:48 What's the simplest way I can get started with contributing to Android? Oct 03 18:50:10 http://s.android.com Oct 03 18:50:11 :) Oct 03 18:50:22 check out the source Oct 03 18:50:24 make a patch Oct 03 18:50:25 submit it Oct 03 18:50:56 Yeah, sounds like every other FOSS project. Except, I'm looking for something easy to start with. Oct 03 18:51:15 I don't think Android itself would be "easy", would it? Oct 03 18:51:17 lut4rp: http://b.android.com/ -- pick a bug Oct 03 18:51:19 well what do you want to do? Oct 03 18:51:21 or that Oct 03 18:51:42 find a feature that's missing, and add it Oct 03 18:51:45 or fix a bug Oct 03 18:51:46 or... Oct 03 18:52:16 The problem is, I don't know what I *can* do :P Oct 03 18:52:24 do you use android? Oct 03 18:52:30 like you can do anything you want :P Oct 03 18:52:36 Yes Oct 03 18:52:38 use a device until you find something you dont like Oct 03 18:52:39 have you wrote an app? Oct 03 18:52:40 then fix it :P Oct 03 18:52:41 * lut4rp has a GSM Galaxy Nexus Oct 03 18:52:49 thepoosh, Plenty :) Oct 03 18:53:00 ok, what do you wanna change? Oct 03 18:53:50 is it ok to post a link to an online course that i think looks cool but i have nothing to do with? Oct 03 18:53:58 it's about machine learning n nueral networks Oct 03 18:54:12 yes? Oct 03 18:54:15 thepoosh, Don't know. Maybe b.Android.com is a good idea after all. Oct 03 18:54:26 You know how when you connect a USB cable and tell the device to go into mass storage, then rotate the device and it will stop going into mass storage mode and be back where you started? Fix that. Oct 03 18:54:29 it already has all sorts of bugs Oct 03 18:54:40 I'm using eclipse 4.2.0 on OSX, I'm trying to find where I can add a release key for android development. I've installed keytool. Could anyone point me in the right direction? Oct 03 18:54:42 I have a very strange device, and I have now idea how to set up adb. It is a laptop running 4.0.4, and it has 3 USB ports.But they are not micro ports or anything. They are full sized USB-A ports.How in the world do you connect that to your development machine? Oct 03 18:54:50 also - are you talking about hinton's coursera ? Oct 03 18:54:56 lut4rp: you can always try and fix the latest security bug they found in the galaxy devices Oct 03 18:55:09 I have a male-male USB-A adapter, but I'm not certain if the android laptop CAN be tethered on those ports.Has anyone seen anything like this? The laptop has ports that auto detect flash drives and USB mice. I'm not sure if you can connect two computers that way... Oct 03 18:55:14 Jonathan_Eyre, male male cable? Oct 03 18:55:18 uh Oct 03 18:55:22 have you tried it? Oct 03 18:55:23 :P Oct 03 18:56:48 Jonathan_Eyre: sounds like a job for ADB over network Oct 03 18:57:24 Anyone else in here in Dublin, Ireland? Oct 03 19:01:46 Do you people write code from requirement specifications or vague user stories and do you have QA testing the final product just before testing to be released? Oct 03 19:02:19 luyang: it's racist to refer to us as "you people" Oct 03 19:02:29 depends on the project :) Oct 03 19:02:42 Ankhwatcher: I look up to y'all =) Oct 03 19:03:17 Ivru: but I am curious whether people think it's the responsibility of developers to ensure there are no bugs or whether that should be equally the QA's responsibility Oct 03 19:03:20 luyang: I'm just kidding around Oct 03 19:03:58 luyang: QA is here to check if there are still bugs Oct 03 19:04:26 Ivru: what if there's a release and there's a big bug related to misunderstanding or corner cases? Oct 03 19:04:29 Who's to blame? Oct 03 19:05:00 your organization Oct 03 19:05:15 luyang: oh I know the answer to that one: you blame the device manufacturer. Oct 03 19:05:30 but seriously though... =) Oct 03 19:06:25 I'm trying to find out what's most common... how late the QA are involved etc... how long release cycles... responsibilities divided among devs, qa, management... Oct 03 19:06:36 I guess the developer does we ask him to do. Oct 03 19:06:50 what* Oct 03 19:06:50 but if you just ask him to rewrite something Oct 03 19:06:55 luyang: the developer makes a best effort to test their own code Oct 03 19:07:05 QA is there to call them on their bullshit, and to be rigorous about testing corner cases Oct 03 19:07:09 yes... best effort is good... Oct 03 19:07:16 yeah but testing the wrong thing won't help Oct 03 19:07:17 I'm using eclipse 4.2.0 on OSX, I'm trying to find where I can add a release keystore for android development. I've installed keytool. Could anyone point me in the right direction? Oct 03 19:07:33 lov: what if QA doesn't understand the system well enough to understand or find corner cases? Oct 03 19:07:42 klafka: right click your project -> android tools -> export signed application package Oct 03 19:07:48 luyang: then you need better QA, period. Oct 03 19:07:56 can you pull out the autoincremented database key from an sqlite database or is it only for internal use and not available to you? Oct 03 19:07:58 or a better communication Oct 03 19:08:08 Ankhwatcher: yes and yes Oct 03 19:08:11 awesome thank you lov Oct 03 19:08:16 lov: sounds good... but that would require us teaching them our systems... but we have development to do Oct 03 19:08:39 luyang: if you don't have time to tell QA how to test your code, that's a failing with project management Oct 03 19:08:41 luyang: are you working on apple map ? Oct 03 19:08:43 that time is necessary Oct 03 19:08:44 haha Oct 03 19:08:56 lov: they've blamed the dev team when the bugs sneak into production.. is that fair? Oct 03 19:09:38 lov: say there are multiple data sources involved... and the QA don't actually check that stuff has been saved to the database... just visually inspect the interfaces... Oct 03 19:10:03 say there's a whole server component which doesn't work properly and the qa never checks its log Oct 03 19:10:07 then your QA sucks Oct 03 19:10:21 Ivru: no not apple map... server side web developmen yada yada =) Oct 03 19:10:45 Ivru: you might be right... the only problem is the devs get the blame since they are the ones with competence :P Oct 03 19:10:49 lov: that's asking me to use my existing keystore, when i try and create a new keystore it own't let me Oct 03 19:11:22 Ivru: aaaah, now I get the joke... a serious bug sneaking into production.. apple maps! LOL Oct 03 19:11:44 klafka: uh, you need to make your own keystore. Oct 03 19:11:49 See the android docs on how to make your own release key Oct 03 19:11:56 you don't do it through eclipse iirc Oct 03 19:12:16 Ivru: do you think the QA should understand programming? Or is "acting user" enough? Oct 03 19:12:18 luyang: in that case you need a better job. Oct 03 19:12:32 lov: true true =)... just getting my feelings confirmed here! Oct 03 19:12:35 you need to be able to communicate what QA must test at a minimum Oct 03 19:12:46 lov: but they will test exactly what I tell them Oct 03 19:12:48 if you're not allowed to say "QA needs to test xyz" then you're basically not in control of your own software. Oct 03 19:12:49 lov: you can do it through eclipse if you install Keytool for Eclipse, but it's old and unloved software and I'm not sure I would recommend it. Oct 03 19:12:52 and sometimes even then it will break Oct 03 19:13:28 I gave them a long list of a registration process on our site... it was still a little broken even though it went through qa silently Oct 03 19:13:57 it was fixed super quickly though but the attitude towards our team was negative... but we didn't find this bug in our testing environment Oct 03 19:14:11 pressure on our team increased Oct 03 19:14:29 but qa just wanted us to give stronger assurances on patches etc =) Oct 03 19:14:39 it doesn't matter. Oct 03 19:14:47 If QA finds stupid mistakes that your team made, it's your team's fault Oct 03 19:14:56 if QA lets a release through that has critical errors, IT IS QA'S FAULT. Oct 03 19:15:07 Amen! Oct 03 19:15:08 obviously you don't want to be making stupid mistakes in the first place Oct 03 19:15:14 Exactly! Oct 03 19:15:16 but they're supposed to check this stuff. Oct 03 19:15:24 if they don't, then there's no point to having a QA. Oct 03 19:16:37 lov: good point! I just hope our situation will improve. Oct 03 19:18:12 luyang: look at the upside, at least you don't work in QA. Oct 03 19:18:14 luyang: leave! http://i.imgur.com/e71pN.gif Oct 03 19:18:16 haha Oct 03 19:18:24 Ankhwatcher: haha! :) :) Oct 03 19:18:47 Ivru: omg! haha Oct 03 19:19:39 is there a channel like this for iphone? Oct 03 19:20:01 probably Oct 03 19:20:19 15$/year Oct 03 19:20:27 *if there is such a channel, what's the name? :> Oct 03 19:20:31 how does anyone get anything (or nothing) done without a channel like this? Oct 03 19:21:29 Ivru: ! :) Oct 03 19:21:30 Waynes: it's called googleit Oct 03 19:21:43 I think it might be called #iphonedev or similar Oct 03 19:21:57 srsly... First result : #iphonedev on freenode. Oct 03 19:22:00 hey, how to decompile an apk with android? Oct 03 19:22:13 and ##apple xD Oct 03 19:22:37 Juest: look for dex2jar and jd-gui Oct 03 19:22:57 apktool or something like that? Oct 03 19:23:36 my phone is armv6l btw Oct 03 19:23:47 haven't used it recently, but it would fully unpack an APK (including binary resource -> XML) then disassemble dex files with baksmali. It could then repack it back Oct 03 19:24:11 Why can I never spell the word Intnet right? Oct 03 19:24:12 ah nice, because i want to modify the res parts of the apk Oct 03 19:25:57 Waynes: is that the simplest tool i can use? :P Oct 03 19:25:59 well Oct 03 19:26:14 what's the simplest decompiler/compiler i can use on android? Oct 03 19:26:32 im on ics-x86 right now, and i have GB-armv6l Oct 03 19:28:11 Juest: you get something called "dex2jar_something.bat" and there you drag your apk file on and it is converted to a jar file Oct 03 19:28:46 well, im on android directly, no windows pc Oct 03 19:28:51 neither linux\ Oct 03 19:28:53 it's "iphonedev" btw, only tried iphone-dev, praise uniform channel names Oct 03 19:29:54 Waynes ^ Oct 03 19:31:10 is there apktool for android? Oct 03 19:31:29 probably not Oct 03 19:32:06 oh, im looking for an app to compile/decompile apks on android directly Oct 03 19:32:15 leslie ^ Oct 03 19:32:56 apktool is java, you could probably make it work on Android itself Oct 03 19:32:58 Juest: for linux you can just run dex2jar_something.sh Oct 03 19:33:17 *it's just plain dex2jar.sh Oct 03 19:33:21 never tried it on linux though Oct 03 19:33:29 Waynes: you don't understand, im on android not linux....] Oct 03 19:33:52 Juest: http://code.google.com/p/android-apktool/ Oct 03 19:33:58 Juest: Well, that's your problem x) Oct 03 19:34:22 Juest: well, you can make a DVM version of the relevant Jars Oct 03 19:34:34 ummmm, Oct 03 19:34:47 but im on android ics-x86 Oct 03 19:34:51 not windows not linux Oct 03 19:35:03 It's such a pain that these damn operating systems don't have a uniform api Oct 03 19:35:09 Juest: you might have some luck with running sun jvm on it, I guess Oct 03 19:35:12 ... "some" Oct 03 19:35:30 lol, android runs Dalvik VM Oct 03 19:35:48 shouldn't be necessary, just convert it to dex format and you can run it on the device from the shell Oct 03 19:35:49 to modify apks, what i need oracle/sun JVM or Dlavik? Oct 03 19:35:52 dalvik* Oct 03 19:35:54 then you can use that to run dx, make an android version of dx, then use that to generate android version of apktool Oct 03 19:36:21 i just need an apk that can decomplie and compile apks Oct 03 19:36:38 Juest: look into baksmali. I don't know if there are any applications that support compile/decompile on the device itself. Oct 03 19:36:45 Juest: JVM. DVM uses different bytecode, so you'd first need to recompile (in fairly obscure, unsupported way) the necessary classes for use with DVM (not that hard, but you need to know a bit about internals) Oct 03 19:36:47 There are tools like AIDE which can do development/compilation. Oct 03 19:37:05 lov: AIDE includes most of the necessary tools to get apktool running on Android, I think Oct 03 19:37:09 apktool is quite a bunch of code, quite likely that they use some api which is not supported on android Oct 03 19:37:12 im new on this.... Oct 03 19:37:18 it'd be easy enough to make something simple, because smali is just java too Oct 03 19:39:05 i just want to complie / decompile on android, Oct 03 19:39:14 Juest: as far as I know, decompilation on android directly is not possible. Oct 03 19:40:53 so when i create anew app i'm not seeing it automatically create a proguard.cfg, yet the documentation says it should be automatically created Oct 03 19:41:42 I'm having issues passing this as EditText Oct 03 19:41:46 Oct 03 19:41:59 Should I switch this to TextView to make it function as intended? Oct 03 19:42:15 lov: why is not possible? Oct 03 19:42:23 Juest: it's possible, it just hasn't been done. Oct 03 19:42:27 You'll have to port the apktools to arm Oct 03 19:42:38 along with smali? Oct 03 19:42:42 Juest: you really want to do this on your computer Oct 03 19:42:42 (and baksmali) Oct 03 19:42:45 seriously Oct 03 19:42:46 lov: oh, and im on ics-x86 :P Oct 03 19:42:48 lov: smali and baksmali should work fine on the phone Oct 03 19:43:03 ya, is all this stuff big? Oct 03 19:43:06 Juest: look, we're not going to suddenly change our minds and decide that there's some package that lets you do this. Oct 03 19:43:14 You're more than welcome to investigate this yourself Oct 03 19:43:19 instead of saying "b-b-b-b-but" Oct 03 19:43:51 b-b-b-b-but Oct 03 19:44:00 Juest: I work daily with baksmali/smali and routinely find myself deleting gigabytes of old files i was working with Oct 03 19:44:09 If that gives you any indication Oct 03 19:44:20 well, i have such a small storage device Oct 03 19:44:30 Maybe this isn't for you, then Oct 03 19:44:43 Anyone have a clue about my hello hackkitten :) Oct 03 19:55:03 hi hackkitten :) Oct 03 19:55:14 hi guys :3 Oct 03 19:55:38 * Hodapp pets hackkitten Oct 03 19:55:50 omg a kitten? Oct 03 19:56:30 * hackkitten purr :3 Oct 03 19:56:57 * C0deMaver1ck gets hack kitten to hack the apple maps app Oct 03 19:57:10 lol Oct 03 19:57:16 "Hello Kitty" Oct 03 19:57:28 It's a hacking kitten is it not? Oct 03 19:57:36 lol Oct 03 20:02:52 when you're setting zoom on a mapview is more closer or further? Oct 03 20:03:38 ah, more is closer Oct 03 20:05:22 hey y'all Oct 03 20:05:33 is there an analogue to NSStreamDelegate in android/java-land? Oct 03 20:05:33 mheld: hi there Oct 03 20:06:20 (I want to have a class pub/sub to two sockets and it makes sense to do that asynchronously) Oct 03 20:07:03 mheld: maybe you should use the java select facility Oct 03 20:07:25 NIO? Oct 03 20:07:34 indeed. Oct 03 20:08:18 also more traditional model is to just fire up a thread to handle the interaction, but given how careful you have to be with threaded programming, it's probably not great advice. Oct 03 20:08:37 yeah, any time there's threads involved I get a little uneasy Oct 03 20:09:02 Is there a way to get a dialog to draw at the top of the screen instead of in the center? Oct 03 20:09:40 mheld: but watch out, froyo had bugs in its NIO selector implementation; maybe you will have to skup 2.2 Oct 03 20:09:47 oh shit Oct 03 20:09:47 *skip Oct 03 20:09:49 that's no good Oct 03 20:10:06 would the nexus 7 be a good choice for starting dev on tablets or is there something better in the same price range? Oct 03 20:10:11 if you aren't corporatively mandated to support 2.2, you can just screw the guys less than 2.3.4 Oct 03 20:10:12 2.2 is still the most-installed version of android Oct 03 20:10:16 oh Oct 03 20:10:21 maybe it's 2.3? Oct 03 20:10:22 mheld: no it's not. 2.3.4 is Oct 03 20:10:31 that's nicer :-) Oct 03 20:10:48 lol Oct 03 20:10:55 55 % is on that, 25 % is on 4.0+, the rest in 2.2, 2.1, 3.x, 1.x, in ever decreasing fractions Oct 03 20:11:02 Gingerbread is the most used android Oct 03 20:11:45 unfortunelly Oct 03 20:11:47 and on GB http://code.google.com/p/android/issues/detail?id=15055&q=nio%20selector&colspec=ID%20Type%20Status%20Owner%20Summary%20Stars Oct 03 20:12:33 ew, crap Oct 03 20:15:38 If I fell into coma tonight and awoke 10 years later, I wonder if all the pain related to programming stuff would have gone away in the meantime Oct 03 20:15:59 alankila: hahahahahahahahaha Oct 03 20:16:06 touchingly naive, isn't it Oct 03 20:17:28 alankila: if you want coding to get simpler I recomend travelling backwards, not forwards in time. Oct 03 20:18:00 well programming languages have got more effective in maintaining complexity at least. Oct 03 20:18:07 the harder it is, the more programmers you need, right? Oct 03 20:18:21 that the total system is more complex tends to make it more interesting. Oct 03 20:19:56 I managed to get my dialog to the top of the screen, but it's gone too far up, any suggestions on how to bring my dialog down a bit? Oct 03 20:24:04 ah, i think I have a solution WMLP.y = Gravity.END + 60 is my first guess. Oct 03 20:27:12 Gravity.END is probably not a pixel count, but some constant Oct 03 20:27:18 + 60 likely turns it into utter nonsens Oct 03 20:27:40 nope yep, it definitely didn't work Oct 03 20:28:07 (see, android folks? This is why I hate that Gravity.END is not an enum.) Oct 03 20:28:11 besides it should have been Gravity.TOP if it was going to work Oct 03 20:28:51 oh I read the note wrong Oct 03 20:28:53 I have complained here before about the pain caused by the lack of proper enumeration in android API constants Oct 03 20:28:58 such a dolt Oct 03 20:29:35 this code should (might) work WMLP.gravity = Gravity.TOP; WMLP.y = 60; Oct 03 20:30:17 and it did! damn near perfectly Oct 03 20:31:22 and with y turned up to 80 it looks perfect Oct 03 20:31:26 wonderful Oct 03 20:31:50 I dread to think what this will look like in landscape though... Oct 03 20:40:22 Ankhwatcher: you should use dips, not px for your offset Oct 03 20:44:19 romainguy_: do I get a choice when setting LayoutParams for a dialog? Oct 03 21:02:09 SimonVT: Is there a good way to build the menu-like drawer on the left like YouTube does it? Is there a syntax by which a menu can be turned into a ListView or some static way to build those actionable items in a drawer? Oct 03 21:03:31 In case you guys are interested, the Android and Google+ Developer Relations team are broadcasting a live show on the new Google Play Services APIs live on YouTube right starting in a couple minutes: http://www.youtube.com/watch?v=NPD6rrVFaI0 Oct 03 21:03:50 I'm using Jeff Sharkey's SeparatedListAdapter with a ListFragment. I let the users add tasks to the list and complete them by clicking on them, which then removes them from the list. It works fine if I have more than one task listed, but if there's just one and I remove it, the task stays displayed on the list unless I leave the Fragment and come back to it. Oct 03 21:04:07 We're going to try using IRC as a back-channel for the broadcasts in future, so if you're watching along and have any questions ket me know and I'll pass it on to the guys on air. Oct 03 21:04:16 there's no way to easily to subscribe to a socket in java (and delegate the updates to a class)? Oct 03 21:05:12 retomeier: thanks for the heads up Oct 03 21:05:20 How can I make sure that the list is updated to show as empty? I have adapter.notifyDataSetChanged() after it checks for new list items. Oct 03 21:10:58 Anybody know if there's a standard way to build list items for a drawer, where each item will either launch a new activity and others will display fragments? Oct 03 21:12:03 fireshaper: Historically I've solved that by putting an "empty" view beneath my ListView in a layout. Then I either show or hide the list or empty view accordingly. Oct 03 21:13:42 My question is probably stupid but here goes... I have downloaded the sdk and got it all set up and then noticed when I download the actual android source that it includs an sdk folder in it. Is that sdk included with the source a complete sdk and can it be used by eclipse like the actual sdk I downloaded separately and already have working? I am just looking to save some valuable real estate in drive space. Oct 03 21:15:45 Compare folder/file sizes and counts of the SDKs. Oct 03 21:18:24 Chronax: Can you put an empty view under the view that the ListFragment creates? Oct 03 21:20:08 Sure you can. And then you inflate both it and the listview and you do something like: listView.setVisibility(View.INVISIBLE); emptyView.setVisibility(VIEW.VISIBLE); Oct 03 21:20:55 I'd put that in some kind of method called showListView or something. Whenever you encounter an error or have an empty list, you just call hideListView() or whatever. Oct 03 21:21:16 Is there any standard way to build a list of menu items in a Drawer like YouTube does in their app? Anybody? Oct 03 21:21:54 Feel like there must be some kind of easy way to do this, instead of rolling my own listview. Oct 03 21:23:50 hello, I have this simple question Oct 03 21:24:00 are the resources already in Application ? Oct 03 21:24:07 or I needed a specific context like Activity? Oct 03 21:27:24 mi6_x3m: You can use any context, which could be Application or Activity. Oct 03 21:27:40 Chronax: okay, so the Application already can access the text resources Oct 03 21:27:46 Yes. Oct 03 21:27:53 I am avoiding the activity since it creates memory leaks Oct 03 21:27:57 when the activity is destroyed Oct 03 21:27:59 Good! Oct 03 21:28:12 okay thanks Chronax Oct 03 21:28:30 You can do application.getResources().getString... Oct 03 21:28:38 yeah yeah I know, thanks! Oct 03 21:28:39 Just as you could with an Activity context. Oct 03 21:28:48 just need to know if the resources are available in the root context already Oct 03 21:29:02 because the theme for instance is not Oct 03 21:29:11 Yep, they are. Oct 03 21:29:37 Wish somebody would answer my question about drawer action items. :( Who can I bribe with beer? Oct 03 21:30:27 are the properties shown by /system/bin/getprop exposed to android applications? Oct 03 21:31:15 Chronax: can you paste it? Oct 03 21:31:34 Chronax: The list still shows the task that I completed unless I leave the fragment and come back to it, or refresh the fragment by changing the device orientation Oct 03 21:32:09 fireshaper: Right. You need to roll up the sleeves and write some code to hide the whole list when there are no items. Oct 03 21:32:13 As I described earlier. Oct 03 21:33:19 mi6_x3m: There's nothing to paste, really. Just get a reference to your Application object, and use its getResources().getString() Oct 03 21:33:50 Chronax: paste YOUR question Oct 03 21:33:52 so I can win beer Oct 03 21:37:26 mi6_x3m: Hah. ;) Oct 03 21:38:07 hi Oct 03 21:38:16 multitouch is not working Oct 03 21:39:19 i specified i override onTOuchEvent(MOtionEvent), and ev.getPointerCount() always returns 1 Oct 03 21:39:27 why? Oct 03 21:39:38 it is just a simple linear view with textview Oct 03 21:41:49 Chronax, Yeah, I did that. Made a ListView and a TextView, one with the id for a list and the other for empty, I set the adapter for the list view and when an integer is set to 0 (which it is according to my debugging) it is set to show the empty and hide the list, but it doesn't Oct 03 21:42:48 unless I refresh the fragment by leaving it and coming back Oct 03 21:43:12 I even tried setting the adapter again Oct 03 21:43:47 convivial, I don't have a good lead, but it might have something to do with your return value (boolean) Oct 03 21:44:19 oh, i vetch that is ittities Oct 03 21:44:26 fireshaper: That's very strange. Can you invalidate the view? Oct 03 21:44:33 listview.invalidate() ? Oct 03 21:44:38 Not really sure what would be causing that. Oct 03 21:45:49 Chronax, invalidating the list view has the same results Oct 03 21:46:37 fireshaper: Something else must be going on. There's no reason that shouldn't work. Oct 03 21:47:00 nope, that was not it Oct 03 21:47:01 But if there are more than one item in the list view it removes them Oct 03 21:47:15 man…. why can't it just work Oct 03 21:47:24 This only happens when there is one item in the list Oct 03 21:47:24 everything always have a problem with android Oct 03 21:47:32 convivial: deal with it Oct 03 21:47:41 SimonVT (or whoever): Is there any way to turn the items in say... a menu.xml into a drawer ListView like illustrated here? http://www.android-app-patterns.com//category/navigation Oct 03 21:47:43 there are worse things ;D Oct 03 21:48:27 not paid enough to deal with it\ Oct 03 21:48:42 convivial: haha Oct 03 22:09:16 goodnight all Oct 03 22:23:18 chrisward: Oct 03 22:23:39 Chronax: sorry, is there are a difference between getDefaultSharedPreferences for an activity context Oct 03 22:23:42 and the application context Oct 03 22:25:42 mi6_x3m: Application context and activity context are not always the same thing Oct 03 22:25:54 hwrd|work: yeah I guess so Oct 03 22:26:07 then perhaps you can explain me the difference between getApplication () / getApplicationContext() Oct 03 22:28:28 mi6_x3m: There isn't really too much of a difference, it's more semantic than anything else... Oct 03 22:28:38 I recall a good stack overflow question on this… let me see if i can dig Oct 03 22:28:57 mi6_x3m:http://stackoverflow.com/questions/5018545/getapplication-vs-getapplicationcontext Oct 03 22:30:16 hwrd|work: Ah! very nice, thank you Oct 03 22:31:16 mi6_x3m: No problem. Oct 03 22:34:35 when i run collections.sort() on a list, which a listview uses as its source of data, the listview is not updated, even after calling notifyDataSetChanged on the adapter. how can i fix this? Oct 03 22:35:14 Chronax, I had to add a new method to the separatedlistadapter class called clear() that I call when there are no tasks Oct 03 22:35:22 That was the only way I could make it work Oct 03 22:36:37 whomp_: .notifyDataSetInvalidated(), probably. Oct 03 22:38:13 freeone3000, that doesn't work Oct 03 22:38:25 it seems like something is weird about how it passes references around Oct 03 22:40:22 heh, updated the wrong spinner ^_^ Oct 03 22:42:37 That will usually make things not work. Oct 03 22:50:34 how can i programmatically hide the software keyboard? i tried shifting the focus away from edittext but it didn't work Oct 03 22:55:14 whomp_: Make your text item uneditable. Oct 03 22:56:04 do I need root to develop apps for my phone? Oct 03 22:56:21 No. Oct 03 22:56:39 Well, unless your app itself requires root, but there's very few things that do. Oct 03 22:57:44 if I make something cool and want to sell it for a dollar, how does that work? Oct 03 22:58:16 write the app, get a developer account, upload app and set price at $1 Oct 03 22:58:24 d.android.com Oct 03 22:58:32 http://d.android.com Oct 03 22:58:38 do I get a dollar, or does android get a percentage? Do i own ther rights? Oct 03 22:58:48 70/30 Oct 03 22:59:00 slave labor!! Oct 03 22:59:08 then don't write apps Oct 03 22:59:08 :P Oct 03 22:59:11 :) Oct 03 22:59:25 how do the taxes work? Oct 03 22:59:50 great question, i have no idea Oct 03 23:00:12 what if my app is free, and allows an upgrade through the app which doesn't go through android? Oct 03 23:00:20 Google doesn't like that Oct 03 23:00:24 lol Oct 03 23:00:29 they will shoot me? Oct 03 23:00:32 sekyourbox: Google API has in-app purchase support. Please use it. Oct 03 23:00:33 possibly Oct 03 23:00:36 through your phone Oct 03 23:00:52 sekyourbox: Taxes are your responsibility, as a business. Oct 03 23:01:31 is the purchase support a requirement? Is there any secure random APIs? Oct 03 23:01:33 you won't receive a 10-99 or anything Oct 03 23:02:07 sekyourbox: Purchase support isn't a requirement, obviously, but they do offer their own API, it goes through the store, and it's linked with Play Licensing. It's also tons easier than implementing your own. Oct 03 23:02:12 sekyourbox: And probably more secure. Oct 03 23:02:46 sekyourbox: Of course, if you're selling on venues other than Google Play, you'll have to look into other options. Oct 03 23:03:34 through the developer portal of the play store you can manage in-app purchases and subscriptions Oct 03 23:04:00 I want to send cards to certain businesses where people can purhcase it there, enter a code, and get the "full version" Oct 03 23:04:11 sounds good Oct 03 23:04:58 I need to make a secure scheme.. Shoudl I rely on an outside source for the authentication, or should I use a secure random api with a single seed Oct 03 23:05:24 one way hash, or something of the sorts Oct 03 23:05:53 "secure" how? (And what's a scheme?) Oct 03 23:06:21 https://en.wikipedia.org/wiki/Scheme_%28programming_language%29 Oct 03 23:06:23 lol Oct 03 23:06:48 So you need to generate secure combinations in a lisp? Oct 03 23:06:55 scheme /sk?m/ (Noun) A large-scale systematic plan or arrangement for attaining some particular object or putting a particular idea into effect. Oct 03 23:07:14 no, I just ment scheme, not the language Oct 03 23:07:44 sekyourbox: Do you want to cryptographically secure communications with a remote server? Oct 03 23:07:45 joke Oct 03 23:08:03 Well, I could just set it up with the app. Less overhead Oct 03 23:08:12 Set *what* up? Oct 03 23:08:21 an unlock code Oct 03 23:08:24 his scheme to take over the world! Oct 03 23:08:38 pinkey, you ruining it Oct 03 23:08:38 sekyourbox: Oh no. Then there's no way to link codes to payments. Oct 03 23:08:59 well, they pay for the card at the store and then the app is activated Oct 03 23:09:11 maybe a little scratch off spot Oct 03 23:09:14 sekyourbox: What store? Like... a physical store, with bricks, and things? Oct 03 23:09:24 yes, physical store Oct 03 23:09:33 2 options, online, or at the store Oct 03 23:09:46 2 options: Oct 03 23:10:56 can you have the installer prompt the user for setup customizations, or does that need to be launched on first run? Oct 03 23:11:35 you could have a preferences menu with an item that will let them input a code Oct 03 23:11:53 I need some help, I have an apk in the Google Play Store, there is a phone I want to target, so I wanted to uploaded a phone specific version of my app to the Google Play Store, is that allowed? Oct 03 23:13:38 sekyourbox: You almost certainly want to secure communications with a remote server, in order to prevent code re-use. Oct 03 23:15:22 th3sp00n, http://developer.android.com/tools/device.html Oct 03 23:16:13 sekyourbox: you could use a second "key" apk which only validates the license, and provide people with single-use cards that allow *one* download (checked by code embedded in URL) of the key Oct 03 23:17:02 every key apk could also keep an id which you could use to track any leaks Oct 03 23:21:16 fireshaper: but is there a way to specify in the AndroidManifest.xml which phone the apk can run on? Oct 03 23:22:40 p_l: I like your idea Oct 03 23:22:51 no need for userID thouhg Oct 03 23:22:55 though* Oct 03 23:23:17 any way to build a one-time use code into an app? Oct 03 23:23:25 some tricky coding tricks or something? Oct 03 23:23:30 sekyourbox: which way? Oct 03 23:23:38 as in, how should the code be used? Oct 03 23:24:12 hmmm, a one way one time backwards hash lol Oct 03 23:24:16 I guess its not possible Oct 03 23:24:25 not wihout a server Oct 03 23:24:35 sekyourbox: well... depends Oct 03 23:24:37 so then you have the activation server overhead Oct 03 23:24:44 :( Oct 03 23:24:48 the problem is that there are drawbacks in case of DRM, always Oct 03 23:25:48 * p_l ponders if people would pay for alternative licensing system Oct 03 23:28:21 th3sp00n, The more I look, I don't think you can? check here http://developer.android.com/guide/google/play/filters.html Oct 03 23:29:26 hello, anyone that could please help me or at least have an idea with the following problem i'm having. I connected my galaxy tab 7 plus to test on device directly and some samples demos from the android sdk works without problems but when i try to test a simple helloworld, it fails to do so, saying the famous messages "Failed to install *.apk on device * : timeout.. thanks Oct 03 23:30:05 kain23, do you have USB debugging set on your device? Oct 03 23:30:22 fireshaper: thanks, I was afraid of that. Oct 03 23:30:45 fireshaper, yes i do, i also reset the adb server, the device, my laptop. and also change the timeout for the ddms and nothing Oct 03 23:31:16 kain23, if you run adb devices do you see your device? Oct 03 23:31:21 yes Oct 03 23:32:29 fireshaper, yes. the strange thing is that for some apps it works without problem and for others it doesn't Oct 03 23:32:52 Have you tried rebuilding the app in eclipse? Oct 03 23:32:59 clean and rebuild* Oct 03 23:33:24 fireshaper, and on the logcat the only error i see is "watchdog, @!sync". also done that (clean and rebuild) Oct 03 23:33:34 Can anyone recommend the best method for accomplishing fast realtime multiplayer for a game? Oct 03 23:34:03 Or atleast fast enough to not be noticable Oct 03 23:34:06 tell them to go and get a Frisbee, and play with that instead. Oct 03 23:34:08 kain23, I have no idea why? :\ sorry Oct 03 23:34:40 Was the frisbess comment directed at me or someone else? Oct 03 23:35:16 fireshaper, haha no problem thanks for your time! that's why i came here because i looked on the internet and most of the answer was to increase the timeout time, or reboot devices... i'll keep looking. Thanks! Oct 03 23:36:27 AlexRamallo: UDP. Either they'll get the packet in time, or they won't get the packet at all. Note that if play is laggy, "not getting it at all" is very likely, especially with mobile networks the way they are. Oct 03 23:38:38 Thanks for the suggestion, but I was asking about whether to use wifi/bluetooth and how to implement client/server setup. I'm reluctant to use WiFi because I want people without internet to be able to play from anywhere (also, I'd need to at least have a matchmaking server) and bluetooth just seems to impractical for this sort of application. Oct 03 23:39:12 AlexRamallo, you weren't asking that... Oct 03 23:39:30 Yeah I worded my question incorrectly... Oct 03 23:39:48 Bluetooth works for about five feet. It's really inconvienent for gaming. Oct 03 23:39:58 Why not use Wifi/Data? Oct 03 23:40:13 Because then players would need some type of network to be able to play together Oct 03 23:40:25 What type of game is this? Oct 03 23:40:53 It is (or, rather, will be) a fast-paced 2D shooter. Oct 03 23:41:24 You *might* want WiFi direct, if you're insistent on having no network infastructure. (But having no net infastructure makes me question how prevelant smartphones will be.) Oct 03 23:41:38 so you are planning on the users to only want to play locally? Oct 03 23:42:25 Well I don't want to completely remove the possiblity of playing over network. I'd just want the possiblity to play locally without one. Oct 03 23:43:02 Making it over network is relatively easy. I've never done anything like this without a network connection though, which is why I'm lost Oct 03 23:43:23 You need a network connection still. You just need an ad-hoc one. WiFi Direct lets you do that. Oct 03 23:43:53 Is that supported on all devices with WiFi? Oct 03 23:44:05 AlexRamallo: API 14 or later. Oct 03 23:44:36 So it isn't a hardware thing like NFC? (I'm not that...experienced when it comes to networking) Oct 03 23:44:53 It's a hardware thing, in that they need a wifi radio, but ad-hoc networks are part of the wifi standard. Oct 03 23:45:36 Oh, I always thought it needed special hardware. Oct 03 23:46:32 I guess I should start looking into adhoc wifi/wifi direct. Thanks for the info. Oct 03 23:47:03 might want to start here http://developer.android.com/guide/topics/connectivity/wifip2p.html Oct 03 23:47:26 Thanks :D Oct 03 23:54:00 evening Oct 03 23:54:56 I just got my galaxy nexus. rebooted to fastboot. Seems windows cannot see it even with the drivers installed. I see the 'Start' icon on the screen, but nothing seems to do anything - buttons, screen presses, nothing. Oct 03 23:55:09 Is there a way to reboot without doing a battery pull? I know the GSii you could hold the 3 buttons Oct 03 23:55:15 i get confused by this for some reason… i want to make a char type that stores a number… i don't care what the ascii representation of it is, i just want to use the number 3 and come up with 111 binary value Oct 03 23:55:28 ultra-: char x = 3; Oct 03 23:55:35 that's it? Oct 03 23:55:43 ultra-: char is an int. But why do you want a "char" type instead of a byte or a short? Oct 03 23:55:50 Err. char is an integer. Oct 03 23:56:24 freeone3000: perhaps i'm not understanding what i want from the get-go… what i'm doing is sending the numbers 0-255 over udp, which i know i can do in a single byte Oct 03 23:56:34 ultra-: char is two bytes. Oct 03 23:56:37 ultra-: You want byte. Oct 03 23:56:38 so i suppose i want to send an array of byte types? Oct 03 23:56:54 rather, make an array of byte[] and send that Oct 03 23:57:03 ultra-: Well, yes, that's what DatagramPacket accepts. Oct 03 23:57:11 ok thanks Oct 03 23:58:44 what about when returning the bytes from an enum? let me pastebin a short example… it says i'm using ints, but i'm not sure how to use bytes... Oct 03 23:58:45 http://pastebin.com/PVA0H3BP Oct 03 23:59:06 oh, probably (byte) 0 between the () Oct 03 23:59:21 yep Oct 04 00:05:29 anyone got experience with gcm? Oct 04 00:06:35 specifically unregistering with the non google server… i have issues with the gcm unregister happening in some background thread thus when i logout my api key is getting deleted before the request to my server is made Oct 04 00:08:03 managed a workaround but im worried about the same device being able to get multiple registration ids thus getting duplicate notifications Oct 04 00:08:41 is there a nicer way to manage it or do i need to store device id on my server as well? Oct 04 00:12:58 i have a LinearLayout with a height of wrap content, and it's matching its parent instead :( Oct 04 00:13:14 hmm Oct 04 00:13:28 is it vertical or horizontal orientation? Oct 04 00:13:33 vertical Oct 04 00:14:00 can it do that Oct 04 00:14:27 hmm, sure it can why not. Oct 04 00:18:08 oh theres a margin on a child view Oct 04 00:18:09 sigh Oct 04 00:23:14 Have you tried the new developer option "show margins and view bounds" in Jelly Bean? Oct 04 00:23:21 I <3 Oct 04 00:25:16 how many of you develop for Jelly Bean only? Oct 04 00:25:49 yeah that is sweet Oct 04 00:26:04 one of the cooler parts of JB Oct 04 00:26:36 fireshaper, don't really care about min-sdk beyond honeycomb, at work we code for 2.2 min Oct 04 00:27:32 min sdk of key lime pie here Oct 04 00:27:33 i have an activity that acts a bit like a dialog in that it calls finish() as soon as it is paused. is there some reliable way of knowing in onPause() if i'll be returning to the calling activity? As opposed to the user having pressed the home button or switched to a different task or something like that Oct 04 00:28:22 spifff, do your finish logic in onBackButtonPressed instead? Oct 04 00:28:33 gutano, that's what I figured most people would say Oct 04 00:29:46 gutano: yeah i'm considering that… what I'd really like is for the calling activity's onActivityResult() to be called even in the case where the user switches tasks. But that doesn't seem to happen, so it seems like I have to move that logic into the called activity even though it doesnt really belong there... Oct 04 00:30:36 mrenouf, no lol Oct 04 00:30:44 i was using hierarchyviewer T_T Oct 04 00:31:20 but nah that feature doesnt show anything useful here Oct 04 00:31:48 spifff, are you just worried about loss of data when they leave the activity? Oct 04 00:31:52 doogan, what's the api level for KLP? Oct 04 00:32:15 i could tell you, but then... Oct 04 00:32:18 fireshaper, i have minSdkVersion="14" Oct 04 00:32:44 I think you meant doogan Oct 04 00:32:56 how many of you develop for Jelly Bean only? Oct 04 00:33:09 definitely meant you :P Oct 04 00:33:16 oh that lol Oct 04 00:33:31 i'm still supporting back to api level 7 Oct 04 00:33:49 tho on checking the google platform dash, it's down to 3.4% Oct 04 00:34:21 canadiancow, is there a reason you don't want to support gb on your apps? Oct 04 00:34:34 fireshaper: i'm trying to keep track of how long the user was in the parent activity for analytics purposes, and the child/called activity is meant to count as part of that time Oct 04 00:34:46 fireshaper, theres another version for lower Oct 04 00:34:58 canadiancow, gothca Oct 04 00:35:02 gotcha* Oct 04 00:35:55 spifff, okay Oct 04 00:37:15 it would be nice if there were lifecycle events for the current task... Oct 04 00:39:26 How can I change the color of an item in a listView when it is being touched? I was using a gridview and the color was sky blue, with the listview it is orange Oct 04 00:40:36 I like blue better Oct 04 00:42:51 andy14, http://stackoverflow.com/questions/5248210/how-to-highlight-listview-item-on-touch Oct 04 00:42:55 check that out Oct 04 00:45:22 fireshaper: do you know why the listView's default is orange? The gridview's default was blue. It seems everythign should be blue to go along with the theme I am using Oct 04 00:49:17 display.getRotation() is always returning 0 Oct 04 00:49:19 any idea Oct 04 00:51:52 your display isn't rotated Oct 04 00:52:40 I turned the phone to landscape. I also have screen rotation enabled Oct 04 00:53:41 well rotation and orientation are orthogonal concepts Oct 04 00:53:49 i think there was a blog post about it Oct 04 00:54:12 you are right may be because I am using glsurfaceview, the display is not rotating Oct 04 00:54:50 My issue is that pitch and roll acts weird in landscape so I need to compensate. But I cant detect when the app is in landscape mode Oct 04 00:55:17 I think you are talking about the one screen deserves another blog Oct 04 00:55:20 I read it Oct 04 00:58:52 andy14, I'm not sure Oct 04 00:59:39 andy14, see if this helps at all: http://brainflush.wordpress.com/2009/03/15/understanding-android-themes-and-styles/ Oct 04 01:15:53 how can i hide the software keyboard programmatically? Oct 04 01:17:52 InputMethodManager imm = (InputMethodManager) get SystemService(Context.INPUT_METHOD_SERVICE); Oct 04 01:18:24 hi, yesterday I asked a question about android 9-patch, did not get any luck though Oct 04 01:18:34 imm.hideSoftInputFromWindow(widget.getWindowToken(),0); Oct 04 01:18:37 ^^ +1 Oct 04 01:18:50 check again if i can get more luck Oct 04 01:18:53 http://justpaste.it/1dip Oct 04 01:19:04 thats how I was able to hide the keyboard ^^ Oct 04 01:19:15 yeah, I found other methods didn't work as expected as well Oct 04 01:19:29 see this image, which is screen captured from my nexus 7 Oct 04 01:20:16 If I loaded the .9 image with draw9patch.bat, everything is fine Oct 04 01:22:01 Whomp, I once had that problem, too. As I remember I had to do this in a different Runnable Oct 04 01:22:13 or even in the runOnUIThread method Oct 04 01:22:28 Sorry, can't tell you more since I don't have the code here right now Oct 04 01:23:57 whomp_, those 2 lines of code are for your question Oct 04 01:25:01 now my problem is finding a list of permanent rstp links that work with mobile :( Oct 04 01:25:35 i feel so official now with my galaxy nexus Oct 04 01:25:47 also wtf, at&t tried to switch my data plan from data pro to... data pro when i called them Oct 04 01:25:56 I want one but I'm too poorz Oct 04 01:26:05 even for a $199 nexus Oct 04 01:26:24 moto gave me the finger so i upgraded and gave moto the finger Oct 04 01:27:01 nexus devices are basically the best you'll get in terms of updates Oct 04 01:27:02 jellybean is nice. the one complaint i have so far about the galaxy nexus is the screen. the pentile is bad. when the whole screen is a single shade of color its really apparent the screen is weird... Oct 04 01:27:24 maybe this will work with ADB as well, eclipse had massive issues with my atrix... would disconnect all the time Oct 04 01:27:26 pentile ? Oct 04 01:27:41 yeah it has only 2 colors per pixel instead of 3... or something like that. its cheaper but looks worse Oct 04 01:27:47 it looks juicy for $199 or even $249 Oct 04 01:27:48 my atrix had a pentile Oct 04 01:27:53 shmooz: RGBG instead of RGB Oct 04 01:28:12 it was not too noticable but it wasn't that good of screen Oct 04 01:28:13 or something like that Oct 04 01:28:25 ASUS makes good stuff Oct 04 01:28:32 its better on galaxy but it could be improved. i do notice the samoled Oct 04 01:28:40 I want their transformer Infinity Oct 04 01:28:44 the softkeys blend right into the case frame Oct 04 01:28:47 I have an asus laptop Oct 04 01:28:51 shmooz: http://digit.algravitas.com/wp-content/uploads/2012/05/rgb-vs-pentile-amoled-2110.jpg Oct 04 01:28:58 its pretty good. i wish their website was in english and not google translated english Oct 04 01:29:55 so the one on the right is amoled pentile ? why is that better ? Oct 04 01:30:03 it's not Oct 04 01:30:23 rgb they all look equal size Oct 04 01:30:30 amoled is a backlight Oct 04 01:30:30 shmooz, thanks Oct 04 01:30:44 pentile is a type of color scheme in displays... bad wording Oct 04 01:30:45 whomp_ my pleasure :) Oct 04 01:31:04 jellybean is pretty smooth Oct 04 01:31:16 wonder what my battery life will be... i have a extended one shipping from korea Oct 04 01:31:17 Mgamerz: one of the benefits of amoled is being able to turn individual pixels on and off Oct 04 01:31:31 yeah so its a true led backlit and not edge lit Oct 04 01:31:42 yup Oct 04 01:31:55 diverting topic, have you guys seen the Galaxy Note II's camera? Oct 04 01:32:17 no, Galaxy Note II is out ?? WOOHOOOO ! Oct 04 01:32:21 no not yet Oct 04 01:32:23 nope. isn't it the same as the S3? Oct 04 01:32:38 oh man if I was rich Oct 04 01:32:40 eh, not sure Oct 04 01:32:41 let me see Oct 04 01:32:46 I'd have one or two of each Oct 04 01:33:04 * Mgamerz gets link Oct 04 01:33:22 it must be out in the UK and turkey Oct 04 01:33:33 its always out there before US/Canada Oct 04 01:34:07 thats cause american carriers are ass Oct 04 01:34:12 it's been out in the UK since the 1st Oct 04 01:34:25 shmooz, one thing - what is widget supposed to be in your example? Oct 04 01:34:46 http://www.droid-life.com/2012/10/03/next-nexus-dubbed-lg-optimus-g-nexus-program-changing-to-allow-for-any-manufacturer-to-participate/ Oct 04 01:35:23 weird. i can't seem to find the pictures Oct 04 01:35:52 man every time one of these new things come out I drool too much Oct 04 01:35:58 I gotta remember its garbage in a year Oct 04 01:36:28 whomp in my program its textSearch which is a EditText Oct 04 01:36:29 well Oct 04 01:36:29 I made it so its hidden by default, and when you click on it it shows the keyboard Oct 04 01:36:35 guess i'll not post the photos since i can't find them Oct 04 01:37:51 because EditText was popping up the keyboard by default Oct 04 01:38:00 theres a way to set it to not do that Oct 04 01:38:11 i think its focusable? Oct 04 01:38:22 ahh perfect Oct 04 01:38:24 thx Oct 04 01:38:25 i had this issue and you can change it so it doen't do that Oct 04 01:39:40 I show it again when by imm.showSoftInput(textSearch, InputMethodManager.SHOW_IMPLICIT); Oct 04 01:46:15 I use sensors to get rotation in x,y,z for the device but the data is very unstable Oct 04 01:46:20 Any idea Oct 04 01:46:34 the data is precise and is sensative to the slightest movement Oct 04 01:46:40 its normal for it to jitter Oct 04 01:47:00 like if you use google sky map its nearly impossible to hold still Oct 04 01:47:31 it's unfortunate. Oct 04 01:47:46 the thing is not dejottered optimally Oct 04 01:48:08 thats how it works Oct 04 01:48:13 it should be preferring gyros for most angular rate info. Oct 04 01:48:16 if they made it so it didn't move it'd be pretty inaccurate Oct 04 01:48:24 hmm ic. I find it is easier to use Sensor.TYPE_ORIENTATION even though its depreciated. But I have a new problem roll and pitch sort of breaks in certain angle Oct 04 01:48:37 you can make your own dejitter thing, like if delta x/y/z > somevalue Oct 04 01:48:42 otherwise the user isn't moving it much Oct 04 01:48:58 ya i am sort of planning to use filter Oct 04 01:49:09 im digging the big screen on this Oct 04 01:49:15 typing is so much easier with my manhands Oct 04 01:49:16 Manavan: accelerometer and magnetometer based orientation both have a singularity when you pass the axis Oct 04 01:49:54 o don't mean a simple dejitter, I mean it should be using a proper kalman filter, Oct 04 01:50:26 SpeedEvil: So is the roll pitch issue cant be fixed in Sensor.TYPE_ORIENTATION ? Do I need to use accelerometer, magnetometer with remapcoordinate function? Oct 04 01:50:41 I am unsure. Oct 04 01:51:25 I know the underlying sensor architecture, what can be done with those sensors in other systems, and the required maths, Oct 04 01:52:15 I do not yet know the android infrastructure to interface properly to the sensors and the performances of the derived sensors, Oct 04 01:52:25 ic Oct 04 01:52:45 I do know that Google sky map should not jitter the way it does if it's using the gyro sensor, Oct 04 01:54:44 hmm Oct 04 01:55:02 it seems like I have to fully understand it to get the yaw pitch roll working correctly Oct 04 01:55:50 I dug into this deeply for autopilots. Oct 04 01:56:08 but don't know the android side yet Oct 04 01:56:22 do you have a good online source where I can real up on the principles Oct 04 01:56:55 mm...- Oct 04 01:57:29 perhaps search on open pilot Oct 04 01:57:46 kalman gyro magnetometer Oct 04 01:58:58 thanks will do Oct 04 02:00:23 it seems like android fires the orientation event too much that I have to slow it down using a wrapper Oct 04 02:00:53 perhaps Oct 04 02:01:04 openpilot no space, mean Oct 04 02:02:04 looks great. Oct 04 02:02:10 did u work on it or you use the project Oct 04 02:03:55 openpilor is amazing! Thanks I think I found a new interest Oct 04 02:19:32 anyone able to get adb devices to show a nook tablet? using ubuntu... udevadm info -q all -n /dev/bus/usb/002/036 shows my device as a Nook Tablet. 51-android.rules file has SUBSYSTEM=="usb", SYSFS{idVendor}=="18d1", MODE="0666" Oct 04 02:19:47 adb devices shows... nothing Oct 04 02:23:05 hm, this looks like it could be interesting http://www.informit.com/store/product.aspx?isbn=0133154831 Oct 04 02:23:24 a book on Android UI Oct 04 02:23:44 hm, not due out for a while though :( Oct 04 02:26:32 Ok, so im trying to use this "addFilesToExistingZip" , using a list of files found in a folder on SD card, Oct 04 02:27:07 but because the "addFilesToExistingZip" code im using from Stackoverflow is a pure java implementation, im not quite sure what/if i need to change to make it android friendly, Oct 04 02:27:20 when it starts up, its telling me it cant rename my current zip to the tmp zip file Oct 04 02:27:33 and I do have WRITE_EXTERNAL_STORAGE declared in my manifest Oct 04 02:27:59 im using the "addFilesToExistingZip" from http://stackoverflow.com/questions/3048669/how-can-i-add-entries-to-an-existing-zip-file-in-java Oct 04 02:34:48 G'day all, here is a good one for you. I don't even know where to start with google. I have just reloaded Ubuntu 12.04 keeping my /home partition intact. Now eclipse or the shell won't run adb. The $PATH is there in my $HOME/.profile to platform-tools but the shell and eclipse can't find it even though the $PATH is correct and adb exists in the correct place. Any ideas? Oct 04 02:36:23 Did you check permissions? Oct 04 02:36:53 whats the error msg Oct 04 02:37:16 Bryden, certainly did ls -la reports them as all rwx under my user and group Oct 04 02:37:36 Mechdave: did you install the 32-bit compatibility? Oct 04 02:38:10 adb devices bash: /home/dave/android/android-sdk-linux/platform-tools/adb: No such file or directory Oct 04 02:38:26 Leeds, Aha! Thanks will try for that one Oct 04 02:38:39 humm Oct 04 02:38:43 That is one thing I have not yet installed :) Oct 04 02:41:50 hrrm... no such file doesn't sound like ia32-libs issue.. quad check path, go 777 until you get it working Oct 04 02:44:17 will need ia32-libs as well, just think you have other issues as well yet Oct 04 02:44:40 Thanks all, I had forgotten to install the 32 bit libraries. Am installing ia32-libs-multiarch now Oct 04 02:45:44 IDE's like ANDROID_HOME to be set, but this just aids in autodetection (rather than manual configuration) Oct 04 02:46:44 also 'which adb' should tell you if it's on your path or not (seperate from the "does it work" question) Oct 04 02:47:00 gutano, is ANDROID_HOME meant to point to the android-sdk-linux directory? Oct 04 02:47:09 yeah Oct 04 02:47:30 gutano, cheers, will set that using .bashrc :) Oct 04 02:54:55 which adb returns the location of adb. So I now know all is set up correctly, just that the 32 bit libs aren't installed. Ubuntu is looking for a 64 bit adb where there is only a 32 bit available hence Ubuntu doesn't recognise the 32 bit adb as being present when it is trying to run it Oct 04 02:55:38 Thanks all, adb now runs with 32 bit libs installed :) Oct 04 02:55:40 more to the point, it's looking for a 32-bit linker to launch the binary with Oct 04 02:56:19 Leeds, Yeah, that is what I was trying to say... In a very round about fashion :) Oct 04 02:56:33 i need to trigger a method in my activity every minute or so while it's in the foreground… the easiest way seems to be to have a Handler and do a sendEmptyMessageDelayed(), however lint complains that the handler should be static. is a non-static handler really a problem in this case? Or how are you meant to prevent it from leaking? Obviously the Handler (or the Runnable I post to it) needs to reference the activity... Oct 04 02:56:45 anyway, glad it's working... I do wonder if there's an actual reason why the tools are still built 32-bit only Oct 04 02:57:18 Would it be because android runs on 32 bit devices? Oct 04 02:57:56 um, no **** ENDING LOGGING AT Thu Oct 04 02:59:58 2012