**** BEGIN LOGGING AT Mon Oct 15 03:00:02 2012 Oct 15 03:01:10 I've worked it out with some fiddling. Oct 15 03:02:56 when i install and run my app, eclipse uses an older version of my layout files than i'm actually using. how can i fix this? Oct 15 03:08:11 uninstall/reinstall or make clean Oct 15 03:08:14 I'd try both Oct 15 03:09:08 i am trying to understand the notepad samp[e code but it looks complicated is it just me? Oct 15 03:10:11 yea remove the app from your device or emulator... Oct 15 03:11:49 i don't understand it Oct 15 03:11:56 especially the provider Oct 15 03:12:05 or why a provider is even needed Oct 15 03:12:37 whomp: maybe right click project name and Android Tools -> Fix Project Proterties ?? Oct 15 03:13:27 well, i will dig in the code and learn it Oct 15 03:13:34 no use bitching Oct 15 03:15:09 convivial: it is more complicated than necessary Oct 15 03:15:19 but it's all useful to know Oct 15 03:16:44 i hate content provider Oct 15 03:16:53 :) Oct 15 03:19:22 ill try that, thx Oct 15 03:19:38 i rarely use content providers Oct 15 03:19:58 I concur Oct 15 03:20:21 how does GPU accelerated video decoding work on android, is there a common API every device implements, or does each app have to special support each device? Oct 15 03:21:23 clever as far as I know its abstracted Oct 15 03:21:32 that bit of work is on the hardware vendors Oct 15 03:22:51 ron_frow_: ah, any info on what the class is called or something?, so i could look into it more Oct 15 03:23:16 what do you mean Oct 15 03:23:35 what kind of info a hardware vendor would need to implement it Oct 15 03:23:48 as far as decoding... are you referring to just playing video? Oct 15 03:23:58 you just use regular classes to render video Oct 15 03:24:21 i'm thinking along the lines of getting full support for an existing app like netflix Oct 15 03:24:23 hardware vendor = samsung is responsible for wiring up the video drivers to allow hardware accelerated decoding Oct 15 03:24:48 and for hardware, raspberrypi.org, theres an open port of android for it Oct 15 03:25:01 just curious what would be needed to link the gpu decoding to the apps Oct 15 03:25:22 netflix depends on DRM stuff more than GPU Oct 15 03:25:26 yeah Oct 15 03:25:31 well I found VideoView supports a very limited number of formats and now am looking into trying to get ffmpeg with NDK to replace it Oct 15 03:25:46 android recently implemented widevine drm shit in their video stuff Oct 15 03:26:21 Leeds: i suspect that broadcom could implement a TPM module within the GPU, secure enough to make netflix happy, but not sure if they think its worthwhile Oct 15 03:26:25 when porting stuff to a panda deriviative, you had to figure out how to get the powervr drivers in and tied into the android kernel crap Oct 15 03:26:36 uhh netflix already has an android app, no? Oct 15 03:26:37 Leeds: do you know anything about how netflix's DRM works? Oct 15 03:26:57 clever: nope - no netflix here, just torrents Oct 15 03:27:06 heh, ffmpeg probably doesn't have DRM either Oct 15 03:27:10 ron_frow_: but the raspberrypi doesnt have a complete port yet, some of the android stuff isnt working Oct 15 03:27:23 * Leeds reminds, #android-dev for app dev Oct 15 03:27:35 who what? Oct 15 03:27:35 Leeds: mixing both here, i like netflix because it just works, but the buggers filter what content i can view Oct 15 03:27:40 dont you mean android-root? Oct 15 03:27:46 even though android-root is kinda ghetto Oct 15 03:28:09 ron_frow_: this is -dev (or possibly SPARTA!) Oct 15 03:28:24 ba Oct 15 03:28:24 Hi Oct 15 03:28:26 bah Oct 15 03:28:34 I havent had any luck getting porting assistance anywhere Oct 15 03:28:37 black sheep? Oct 15 03:28:38 clever: there is a trusted execution model inside new processors, but not enough supports it yet for netflix to move to it for hidef Oct 15 03:28:48 look at android-porting, android-platform, android-building Oct 15 03:28:51 clever: not really a tmp, more ... ring -1 Oct 15 03:29:02 a lot of the responses and answers are mine =( Oct 15 03:29:17 clever: s/tmp/tpm/ Oct 15 03:29:20 morning jimmy_lo_chien_f Oct 15 03:29:21 dragorn: does netflix only use the drm for hidef, or for all of its content? Oct 15 03:29:36 Leeds, morning Oct 15 03:29:59 clever: they want to use it for all I imagine, but definitely won't let hidef go (afaik from friends in the company) Oct 15 03:30:33 dragorn: what do you mean by ring -1? Oct 15 03:32:00 this is my "hello world" of irc. Hello, IRC Android Developers world Oct 15 03:32:36 clever: they add more or less a level of execution below normal privileged exec Oct 15 03:33:01 dragorn: ah, the cpu rings, wasnt thinking about that level Oct 15 03:33:34 so they are just making use of virtual memory features to lock away the video stream? Oct 15 03:33:55 clever: you set up your trusted exec environment and then drop into it, and it can't go back to normal code areas and normal areas can't access it Oct 15 03:34:16 so yeah - locked memory and code regions Oct 15 03:34:26 yeah, i know a bit about ring0(kernel) and ring1(userspace) Oct 15 03:34:28 or so it seems, I haven't had to use it and don't personally care Oct 15 03:34:36 my janki-detector is detecting shady usages of this knowlege Oct 15 03:34:44 id expect that kind of access would require root Oct 15 03:35:11 depends what the secure space can access. I don't see why it would any more than doing 3d code to a buffer would need root Oct 15 03:35:39 dragorn: ive heard of some virus's that work in a fasion similar to xen, ring0==virus, ring1==kernel, ring2==userspace Oct 15 03:35:52 and then ring0 patches over everything, so the kernel thinks its in ring0 Oct 15 03:35:54 clever: that's a virtualization layer that has increased rights Oct 15 03:36:21 not an execution jail that (by design anyhow) can't talk to other levels Oct 15 03:36:27 shouldnt the higher levels (ring0/ring1) have a way to access ring2 and below? Oct 15 03:36:35 or can only ring0 access the others? Oct 15 03:37:21 i guess it depends on what perms each ring1 was given, but id be surprised if ring1 even had perms to make lower levels Oct 15 03:39:08 if one was going to build a computer from scratch with the purpose to do some hobby android development, would that person want to build the computer like an extreme gaming console, or more of a media manipulation machine? Oct 15 03:40:04 in other words what should me focus be on/ graphics cards or processor speeds? Oct 15 03:41:16 you mean as the development system for building android apps? Oct 15 03:41:39 * dragorn uses a 3 year old laptop w/out issues Oct 15 03:41:40 i am not a programmer as you can tell from my question, but i am at a point in my life where i have some more money and free time and would like to learn how t develop for android. Oct 15 03:42:09 oh ok, yes specifically i want to focus on kernels and firmware Oct 15 03:42:13 your only real factor is ram. eclipse eats a lot. 4 gig is good. 8 is fantastic. Oct 15 03:42:25 ah. as in custom rom building. Probably ask in #android-root Oct 15 03:42:52 i was looking at a system with 64.. you now to be "future proof" :-p Oct 15 03:42:53 android-root is useless Oct 15 03:43:16 hipcatjack - checkout the android-porting mailing list, and there are resources you can find with google Oct 15 03:43:26 ron_frow_: perhaps but it's pretty established that this isn't the place for rom hacking stuff. Though at this time of night I doubt anyone cares too much. Oct 15 03:43:29 effectively its a linux kernel with a very custom linux userland Oct 15 03:44:08 hey do you know where environment variables like LD_LIBRARY_PATH are set in android globaly? Oct 15 03:45:21 oh ok my apologies, i just assumed #anddoid-dev would be the right place to ask Oct 15 03:45:55 what with the development intentions and all for my new system Oct 15 03:46:08 i mean after android has booted the LD_LIBRARY_PATH variable contains values Oct 15 03:46:19 where exactly did the values enter the variable? Oct 15 03:46:33 and more importantly, how can i put my stuff into it Oct 15 03:46:37 permanently Oct 15 03:46:43 for all apps Oct 15 03:46:46 globally Oct 15 03:46:55 like a boss Oct 15 03:47:02 outofideas I cant tell if you are asking android-porting questions or if you want to do ndk stuff Oct 15 03:47:27 ron_frow_: the latter, more or less Oct 15 03:47:58 i just want to fix some java glitch namely that you cannot change the library path at runtime Oct 15 03:48:07 well you can, but the linker doesnt care Oct 15 03:48:40 i found no /etc/ld.so.conf or anything Oct 15 03:48:53 no /etc/init.d Oct 15 03:48:57 no /etc/profile Oct 15 03:48:58 nothing Oct 15 03:49:30 outofideas: don't get Android confused with GNU/Linux Oct 15 03:49:41 fair point Oct 15 03:49:56 Leeds: do you know where the variable is initially defined? Oct 15 03:50:08 nowhere you can touch it with your app Oct 15 03:50:09 i am outofideas Oct 15 03:50:19 yeah... you can do stuff with ndk's Android.mk Oct 15 03:50:20 no i am root Oct 15 03:50:26 i just want to get it work on my device Oct 15 03:50:31 I dont know how much tho Oct 15 03:50:32 at least Oct 15 03:50:39 #android-root then Oct 15 03:50:56 Leeds: that channel is about acquiring root Oct 15 03:50:59 not about using root Oct 15 03:51:04 no it isn't Oct 15 03:51:08 but they might actually know Oct 15 03:51:10 of course it is Oct 15 03:51:24 the topic explicitly says so Oct 15 03:51:26 it really is Oct 15 03:51:45 can you paste the topic or shall i do it? Oct 15 03:52:14 .... Oct 15 03:57:05 is this 'java glitch' referring to your shell script not setting LD_LIBRARY_PATH for ./binary? Oct 15 03:57:27 tm604: the shell script can set it, the linker doesnt care Oct 15 03:57:27 so I have a custom view in the actionbar, which is a spinner... I'm trying to make the text bold for the spinner item, but can't figure out how.. any ideas? Oct 15 03:57:33 thats the glitch Oct 15 03:57:51 tm604: the linker uses the environment it got when the app was launched, it doesnt care about any changes you make Oct 15 03:57:52 you still doing writer.writeBytes("LD_LIBRARY_PATH=/my/libs:$LD_LIBRARY_PATH && cd /my/bin && ./binary\n"); ? Oct 15 03:58:01 although it should Oct 15 03:58:12 tm604: what you mean still? Oct 15 03:58:44 "still" as in "does your code look something like that" Oct 15 03:59:13 tm604: yes Oct 15 03:59:25 that's not going to set LD_LIBRARY_PATH for ./binary though, is it? Oct 15 03:59:29 tm604: well i tried Runtime.exec(cmd, env) etc Oct 15 03:59:35 tm604: i dont see anything exporting the variable in that line of code Oct 15 03:59:42 i tried ProcessBuilder.environment() and manipulating that Oct 15 03:59:51 tm604: so the variable may wind up private to the shell, and never sent to binary Oct 15 03:59:57 clever: you dont need the export keyword actually Oct 15 03:59:58 look at the difference between THING=test && bash -c 'echo $THING' and THING=test bash -c 'echo $THING' from your local shell. Oct 15 04:00:02 clever: exactly my point Oct 15 04:00:07 no Oct 15 04:00:11 i tried export as well Oct 15 04:00:17 also it is sent to the binary, i verified Oct 15 04:00:25 look Oct 15 04:00:26 guys Oct 15 04:00:29 it is not about the fucking binary Oct 15 04:00:31 it is about the linker Oct 15 04:00:36 as i said Oct 15 04:00:43 the linker is ran within the binary, using the binary's env Oct 15 04:00:49 wrong Oct 15 04:00:54 i have android on a trim slice. it's pretty bare bones. this is android shipped by nvidia. my time zone is wrong. it's using gmt. how do i adjust the time zone in android? Oct 15 04:00:59 outofideas: calm the fuck down, please Oct 15 04:01:02 the linker uses the environment it got assigned when the app was launched Oct 15 04:01:14 clever: thats the glitch i am referring to Oct 15 04:01:21 outofideas: and the variable isnt being assigned when it got launched Oct 15 04:02:08 clever: is that a question? Oct 15 04:02:12 outofideas: THING=test && bash -c 'echo $THING' Oct 15 04:02:21 outofideas: what does this output? Oct 15 04:03:49 try putting an "export " in front of the LD_LIBRARY_PATH Oct 15 04:04:00 clever: i tried with a shell script #!/system/bin/sh \n echo $LD_LIBRARY_PATH Oct 15 04:04:06 kevinb: i tried that Oct 15 04:04:08 you do have a point Oct 15 04:04:12 or putting it before binary Oct 15 04:04:16 the export keyword is not redundant Oct 15 04:04:26 cd /my/bin && LD_LIBRARY_PATH=/my/libs:$LD_LIBRARY_PATH ./binary Oct 15 04:04:28 but it is not the reason this here does not work Oct 15 04:05:00 as i said i changed the library path in all thinkable ways, successfully, at runtime Oct 15 04:05:10 the real problem is that the linker does not care about your runtime changes Oct 15 04:05:28 ah, then maybe its because your not using the linux linker Oct 15 04:05:31 and therefire i am now trying to ensure it contains what i want it to before the app launches Oct 15 04:05:37 therefore* Oct 15 04:05:39 your using the android linker, which may ignore LD_LIBRARY_PATH Oct 15 04:06:08 i am just invoking the binary Oct 15 04:06:21 outofideas: run ldd on binary, from the system that compiled it Oct 15 04:06:31 outofideas: do you see an absolute path without any => on one of the lines? Oct 15 04:06:42 sort of like this, /lib/ld-linux.so.2 (0xb7fa0000) Oct 15 04:06:48 clever: no Oct 15 04:06:55 ok, pastebin the output of ldd Oct 15 04:07:16 clever: no wait you dont understand, we are far past that point and what i am describing is a known issue Oct 15 04:07:28 clever: it works when i do it in adb shell, it does not work when i do the exact same thing from the app Oct 15 04:07:43 that doesnt make sense Oct 15 04:07:49 clever: exactly Oct 15 04:07:59 it is a glitch Oct 15 04:08:13 clever: http://fahdshariff.blogspot.de/2011/08/changing-java-library-path-at-runtime.html Oct 15 04:08:33 java path and LD_LIBRARY_PATH are very different things Oct 15 04:08:33 clever: the proposed options on that site do not work in the dalvikvm Oct 15 04:09:21 i've subclassed view to make my own button, and i set the width using a setWidth() method… how do i make a width property that can be used to animate with ObjectAnimator? Oct 15 04:09:35 outofideas: where is your original codesnippet that calls Runtime.getRuntime().exec(...) Oct 15 04:09:39 can you repaste that Oct 15 04:09:57 ok just a second Oct 15 04:10:06 i will post real code Oct 15 04:10:31 clever: hush, it's entertaining watching him talk absolute nonsense at length! Oct 15 04:13:26 process = Runtime.getRuntime().exec("sh"); writer = new DataOutputStream(process.getOutputStream()); cmd = "export LD_LIBRARY_PATH=" + libPath + ":$LD_LIBRARY_PATH && cd " + dir + " && " + cmd; writer.writeBytes(cmd); writer.flush(); Oct 15 04:13:43 outofideas: yeah, that code is wron Oct 15 04:13:48 I found the right way to do it Oct 15 04:14:00 first, read this Oct 15 04:14:07 http://annoyingtechnicaldetails.wordpress.com/2012/03/21/ld_library_path-and-environment-is-essential-in-android/ Oct 15 04:14:10 then, go here Oct 15 04:14:19 https://github.com/guardianproject/olsr-mesh-tether/tree/master/src/net/szym/barnacle Oct 15 04:14:26 the code is all there for your taking, enjoy Oct 15 04:14:29 fnord`: i read that already, the link is purple Oct 15 04:14:39 let me read it again Oct 15 04:14:40 well, you apparently didn't understand it Oct 15 04:14:54 but kudos for finding it Oct 15 04:15:11 i found all public information there is Oct 15 04:15:13 :) Oct 15 04:15:22 ok Oct 15 04:15:24 now fnord` Oct 15 04:15:39 so when you tried the .exec() version with envp and directory, did you still hit the same problem? Oct 15 04:15:44 see, i tried that, i did that, been there, done that, it does not work Oct 15 04:15:59 "export LD_LIBRARY_PATH=" + libPath + ":$LD_LIBRARY_PATH && cd " Oct 15 04:16:03 no, you didn't do what the code does. you debauched it and created your own defective copy Oct 15 04:16:11 this peice of code adds a path, without clobbering the android special paths in the variable Oct 15 04:16:13 do *exactly* what he does Oct 15 04:16:17 fnord`: wrong Oct 15 04:16:23 so it fits with the first link, but i havent checked the code in the second Oct 15 04:16:42 outofideas: so, obviously he has the same use-case as you -- are you calling him a liar? Oct 15 04:16:48 fnord`: you have to understand that this glitch doesnt occur with all kernels Oct 15 04:17:04 ah ok - you may have something then Oct 15 04:17:06 heh, kernels Oct 15 04:17:07 fnord`: the cmd = "export LD_LIBRARY_PATH=" + libPath + ":$LD_LIBRARY_PATH && cd " + dir + " && " + cmd; writer.writeBytes(cmd); works on many devices btw Oct 15 04:17:13 which kernels does it occur with? Oct 15 04:17:17 like the kernel gives a shit about LD_LIBRARY_PATH Oct 15 04:17:43 fnord`: i have no statistics, but if you read around on the web then it is apparent it works for many people Oct 15 04:18:00 fnord`: and that it doesnt for others Oct 15 04:18:15 I should point out that the author of this code does not execute sh and then write to its stdin like you do Oct 15 04:18:23 Leeds: the kernel updates the linker environment.. Oct 15 04:18:29 how do you know its the kernel and not just different shells!? Oct 15 04:19:22 the who in the what now? Oct 15 04:20:03 Leeds: have you seen what they did to google.com ? :O Oct 15 04:20:03 nah, don't care Oct 15 04:20:12 fnord`: when i tell you that i used Runtime.exec(cmd, env); ProcessBuilder.envirnment(), System.load(); Runtime.loadLibrary(); all successfully which i verified, which in the case of the latter two logcat even logs, will you believe me? the problem is not changing the environment, the problem is the linker not caring. Oct 15 04:20:22 Leeds: its 2 or 3 pages long! Oct 15 04:20:33 yeah its pretty cool clever Oct 15 04:20:53 clever: remember when it was a logo, a search box, and two buttons? Oct 15 04:21:21 Leeds: not really Oct 15 04:21:35 remember... altavista? Oct 15 04:21:35 Leeds: what i dislike more, is that it replaces the result links, with a link to a google redirect Oct 15 04:21:38 the instant i click it Oct 15 04:21:40 yep Oct 15 04:22:03 i remember having to install winsocks on win 3.11 to even get networking Oct 15 04:22:04 what is it now? (google.com) looks about the same (with NoScript blocking) Oct 15 04:22:31 shmooz: massive animated HTML5 comic book Oct 15 04:22:37 very pretty indeed Oct 15 04:22:54 I guess I have to unblock the scripts Oct 15 04:23:01 shmooz: im assuming he meant the animated logo Oct 15 04:23:05 but not sure if I can trust it Oct 15 04:23:13 fnord`: do you understand the problem? Oct 15 04:23:58 fnord`: also do you realize there is no reason executing sh and writing to it other has some kind of fundamental not-working to it other than superstition? Oct 15 04:24:05 outofideas: you might as well just use static linking Oct 15 04:24:20 and..we've come full circle Oct 15 04:24:22 again Oct 15 04:24:23 fnord`: yes that would definitely work but that is an option i dont want to consider yet Oct 15 04:24:25 but, but... Oct 15 04:24:31 lol sampullman yes Oct 15 04:24:36 there's a glitch in Java which only happens on some kernels! Oct 15 04:25:02 Leeds: yes, you say it like its something you cannot conceive of Oct 15 04:25:10 yeah, it's nonsense Oct 15 04:25:20 Leeds: its a possibility within the constraints of the universe as we know it Oct 15 04:25:26 if he considered other options it would stop him from bitching, and we can't have that ;) Oct 15 04:25:37 Leeds: actually its pretty obviously whats happening if you read anything about it.. lol Oct 15 04:25:39 anyway Oct 15 04:25:47 it's* Oct 15 04:26:01 what's* Oct 15 04:26:20 either suffice Oct 15 04:26:38 Leeds: you didnt even realize the kernel controls the linking environment... lol why are you even opped? Oct 15 04:26:39 the best part of this is the climax Oct 15 04:26:52 Leeds: its time for you to stfu Oct 15 04:27:02 and then, finally, we will run nmap on android (not that it hasn't been done already) Oct 15 04:27:03 whoa buddy Oct 15 04:27:05 Leeds: all my points stand and everything you said was reduced to nonsense Oct 15 04:27:08 sorry Oct 15 04:27:17 somebody has to tell this arrogant git Oct 15 04:27:22 meh Oct 15 04:27:30 enough Oct 15 04:27:36 phew Oct 15 04:27:40 * Leeds waits for abuse Oct 15 04:27:40 thank goodness Oct 15 04:27:55 outofideas: you are acting like you paid for an expensive dinner and found a roach in your soup Oct 15 04:27:57 * fnord` nmaps #android-dev Oct 15 04:31:34 so i have a viewpager/actionbar tab setup with some fragments, and the first time i swipe to the second tab/fragment, it flashes the original fragment briefly when the page is fully transitioned. what could cause this? Oct 15 04:31:52 it works fine except for the first time Oct 15 04:34:10 sampullman: i'm going to bet that .. your code caused it. paste Oct 15 04:34:23 i'd bet that too Oct 15 04:34:42 what should i paste? the fragmentactivity, or the fragments, or all of it? Oct 15 04:34:51 paste the adapter Oct 15 04:37:09 ok: http://pastebin.com/GUaFZgty Oct 15 04:37:42 so on the first swipe to the right,it flashes the first fragment? Oct 15 04:37:46 yeah Oct 15 04:38:02 it doesn't do it if the tab is selected (first) Oct 15 04:38:13 and once any transitions happen, it never occurs again Oct 15 04:40:57 it seems to happen on the emulator too, although it's too slow to actually see the original layout Oct 15 04:40:59 it just blinks Oct 15 04:42:05 gotta check the docs on one of these methods. Oct 15 04:42:49 yeah Oct 15 04:43:25 you're calling setCurrentItem() twice Oct 15 04:43:42 because, your first swipe causes the ViewPager to call it internally, I think. Oct 15 04:43:49 then you're calling it again in onTabSelected Oct 15 04:43:59 i sort of thought that was the case Oct 15 04:44:08 is listview overkill for just a few items? Oct 15 04:44:14 so i commented it in onTabSelected, but it still occurs Oct 15 04:44:17 no, please use the ListView. Oct 15 04:44:22 ok i will Oct 15 04:44:24 oh weird Oct 15 04:44:41 So onTabSelected is not a part of your testcase anymore? Oct 15 04:44:52 it is, i added it back Oct 15 04:45:03 because logically, it would do that for all swipes, not just the first one Oct 15 04:45:06 but can I consider it not a part of your problem..? Oct 15 04:45:31 yeah, i just tested it again Oct 15 04:45:38 not the issue :/ Oct 15 04:53:19 here's how I did it Oct 15 04:53:21 https://gist.github.com/3890867 Oct 15 04:54:28 no tabs :( Oct 15 04:54:37 sampullman: ^ Oct 15 04:54:39 i've used viewpager plenty of times Oct 15 04:57:39 I found a problem with your code on line 70 Oct 15 04:57:42 do you see it? Oct 15 04:58:38 should be mTabs.get(i).getTag() == tag Oct 15 05:06:42 nah, it's comparing pointers to two TabInfo objects Oct 15 05:06:44 i think that's ok Oct 15 05:10:25 oh yeah Oct 15 05:10:53 I figured it contained tabs because of its name Oct 15 05:11:07 yeah, it's somewhat confusing Oct 15 05:11:11 i copy pasted that code Oct 15 05:11:17 should change it Oct 15 05:14:53 holy crap!, i tried running api level 4 in the emulator to see if my app was compatible Oct 15 05:14:56 fast!!! Oct 15 05:15:01 lol Oct 15 05:15:11 sampullman: just copy this Oct 15 05:15:14 api level 16 is laggy to the point of being un-usable Oct 15 05:15:17 https://github.com/JakeWharton/ActionBarSherlock/blob/7c82d1f332c3b59c5082dfbecef38ddecd0f3026/samples/supportdemos/src/com/example/android/supportv4/app/ActionBarTabsPager.java Oct 15 05:15:20 pretty much clever Oct 15 05:16:23 fnord: whoah, i thought that's where i got the code. thanks Oct 15 05:16:38 you got the code there? Oct 15 05:18:56 HacDan: yep, everything that ive writen so far still works on api 4 :) Oct 15 05:19:19 have you tried any of the x86 emu images? Oct 15 05:19:21 and i may do all of my emulator testing on 4, just for the speed, and to save from having to re-test on 4 later Oct 15 05:19:29 the 15 i mentioned is x86 Oct 15 05:19:37 and the x86 speedups are installed Oct 15 05:19:55 any way to verify if they are working? Oct 15 05:19:57 i mixed that code with some other stuff i found Oct 15 05:20:03 i guess it was a bad brew Oct 15 05:20:07 clever: not that I know of Oct 15 05:20:32 api 4 seems to just need less cpu cycles, so even though its emulating arm, it can run faster Oct 15 05:21:40 hmmm, seems i forgot to disconnect that socket in onStop() Oct 15 05:21:46 logcat shows that its still tickin! Oct 15 05:26:09 fnord: same issue :/ Oct 15 05:32:51 sampullman: i'm running his code in the ActionBar Fragments demo app Oct 15 05:32:55 and I don't get that result Oct 15 05:33:41 * fnord` yawns Oct 15 05:33:41 * Jdbye slaps fnord` around a bit with a large trout Oct 15 05:33:49 i know. i've used viewpagers/tabs before, and have never seen this issue Oct 15 05:34:10 sampullman: does it happen on all devices..? Oct 15 05:34:12 im using a custom viewpager, but it's really not doing anything fancy Oct 15 05:34:28 oh oh Oct 15 05:34:32 it happens on my device (4.1) and the emulator (2.3.5) Oct 15 05:34:42 i think i see where the problem is now =O Oct 15 05:36:09 ...the suspense is killing me Oct 15 05:36:22 it's in your custom viewpager of course Oct 15 05:36:37 If you're really copying jake's working code verbatim, how is there any other possibility? Oct 15 05:36:50 well..stuff happening in my fragments Oct 15 05:36:59 other than that, i understand your point Oct 15 05:37:09 paste the viewpager if it's not that big Oct 15 05:37:58 it's really not complicated: http://pastebin.com/EEvxpcaj Oct 15 05:38:30 if i want to manage a tcp socket long-term, between multiple activitys, should i use a thread or a service? Oct 15 05:38:37 if the issue is in there i need to do some serious self reflection Oct 15 05:38:59 clever: service Oct 15 05:39:06 clever: use a service. there isn't a safe way to pass threads between activities Oct 15 05:39:12 ah Oct 15 05:39:31 and then the service can pass simple objects back&forth with the current activity? Oct 15 05:39:31 sampullman: it will only take you one second to change "MyViewPager" to "ViewPager" and re-run the code Oct 15 05:39:38 doing that Oct 15 05:39:51 ok cool, once I realized that I decided to stop hypothesizing :) Oct 15 05:40:24 clever: yes Oct 15 05:40:42 youll need to use a service *and* a thread Oct 15 05:40:51 fnord: same issue, unfortunately Oct 15 05:40:54 and a handler Oct 15 05:41:10 and probably a broadcastreceiver Oct 15 05:41:20 sampullman: whats that leave us with Oct 15 05:41:40 my horribly bloated fragment classes Oct 15 05:41:52 sampullman: so that just leaves the issue of when do i stop the service, it feels like onStop() in one activity will kill things before the second can take over Oct 15 05:42:13 eh? no it wont Oct 15 05:42:27 services are independent of activities Oct 15 05:42:45 i dont need it to run when the user leaves the app completely Oct 15 05:42:54 dont want to eat cpu/network when they are outside the app Oct 15 05:43:21 so id normaly be stopping it from onStop(), right? Oct 15 05:43:42 sure, if there are no more activities on the stack Oct 15 05:43:52 how do you check that? Oct 15 05:43:58 you should know.. Oct 15 05:44:02 logic Oct 15 05:44:14 it depends on your apps flow Oct 15 05:44:21 what about conditions like the user hitting the home button, or a phone call coming in? Oct 15 05:44:42 those would call onStop(), where i would need to stop the service Oct 15 05:44:43 onStop() is a guaranteed call Oct 15 05:45:02 yep, but the problem, if i have 2 activitys, and the first starts the second Oct 15 05:45:09 wont the first also get onStop()'d? Oct 15 05:45:21 yes Oct 15 05:45:24 isn't that what you want? Oct 15 05:45:34 the second activity needs to take over control of the service Oct 15 05:45:39 and not reconnect things Oct 15 05:46:03 both activitys are within the same app Oct 15 05:46:09 clever: there's no reason you can't do that Oct 15 05:46:19 you need to read the docs on services Oct 15 05:46:30 you can bind or send intents to them Oct 15 05:46:35 i am, thats where i saw this problem Oct 15 05:46:47 the starts dont increment any refcounts, and it only takes 1 stop to kill it Oct 15 05:46:56 services are singletons btw. calling startService a million times on the same service will create only one instance. Oct 15 05:47:02 yep Oct 15 05:47:11 but the problem is that calling stop once will kill it Oct 15 05:47:21 so i need to be carefull of when i stop it Oct 15 05:47:43 what is it going to do? Oct 15 05:47:45 is it better to subclass elements of the activity, put code in the activity itself, or have an external helper class that listens to all the events and act upon it for the whole activity ? Oct 15 05:47:46 a tcp socket Oct 15 05:48:04 TheSnide: depends on the scope of the app Oct 15 05:48:09 fnord`: the socket is controling a remote computer, and each activity is a different menu with different controls Oct 15 05:48:21 sampullman: say, a small game Oct 15 05:48:40 i'm trying to implement several different menu (each in a diff activity), but all sharing the socket Oct 15 05:49:00 TheSnide: im gonna go out on a limb and say you'll want at least a few other classes Oct 15 05:49:16 unless it's..Single Button Mash Game Oct 15 05:49:35 sampullman: i'm currently doing it in several activity innerclass Oct 15 05:50:05 personally, i like to keep my files small when possible. it's totally up to you, though Oct 15 05:52:45 fnord`: hmmm, can you pass an IBinder between activitys? Oct 15 05:52:59 clever: no, you'd bind in each activity Oct 15 05:53:25 so you basically never want the socket open when the activity isn't in the foreground? Oct 15 05:53:34 correct Oct 15 05:53:52 if you don't call startservice, the service will shut down when no activities are bound to it Oct 15 05:53:57 automatically Oct 15 05:54:05 instead of using multiple activities, use one activity and fragments Oct 15 05:54:15 codebutler: if i only used binds, but how instant is that? Oct 15 05:54:15 I do this in TapChat. with multiple activities. Oct 15 05:54:26 how instant is what? Oct 15 05:54:44 codebutler: if one activity un-binds, then starts a second which binds, will the service have already died? Oct 15 05:54:54 no, that will work ok Oct 15 05:55:12 ah, that should be ok then, i'll have to test it when the code gets that far Oct 15 05:55:14 the new activity's onCreate is called before the old activity's onDestroy Oct 15 05:55:55 but onDestroy doesnt always happen when you switch to another un-related app, from what ive read Oct 15 05:55:57 sorry... I use onStart/onStop, not onCreate/onDestroy. Oct 15 05:55:58 only onStop() Oct 15 05:56:04 ah Oct 15 05:56:28 i'll have to play with things more to see how the order of events works out cross-activity Oct 15 05:56:53 fnord`: do fragments still effect the history stack used by the back button? Oct 15 05:58:02 see addToBackStack() Oct 15 05:58:14 ah, so i would manualy push onto the stack? Oct 15 05:58:22 yes Oct 15 05:58:53 i see now how i can do it either way, 1 activity+fragments or many activitys :) Oct 15 05:59:36 the one activity route is probably easier Oct 15 06:00:12 some parts are more logicaly seperated then others, i could maybe mix the 2 up Oct 15 06:00:27 one activity for a group of related fragments Oct 15 06:00:43 whenever it makes logical sense Oct 15 06:01:10 found out my issues with the canvas and what not :/ Oct 15 06:01:24 i'll need to get that far in the code to know for sure though, but now i have a decent plan Oct 15 06:01:26 apparently I wasn't clearing the canvas every frame. Oct 15 06:02:12 the text wrote over itself, so it looked like chinese letters after 30 digits between 0-9 were printed on the same pixels Oct 15 06:02:53 somehow, that seems racist Oct 15 06:04:48 Android is culturally bias. Oct 15 06:05:15 So is the IOs Oct 15 06:05:23 Siri, in particular. Oct 15 06:05:47 iOS Oct 15 06:16:49 https://play.google.com/store/apps/details?id=com.snrblabs.grooveip&hl=en Oct 15 06:16:52 how do I make my own for free? Oct 15 06:20:24 Well Oct 15 06:20:28 You start of learning java Oct 15 06:20:42 Then you start of learning how to set up your development environment Oct 15 06:20:47 Then you might have a chance Oct 15 06:21:40 I can do java, but where do I find out how the google voice network works? Oct 15 06:22:03 why is this the only app like this? Oct 15 06:25:09 "start of" Oct 15 06:26:05 sampullman: ok, but on the subclassing button/surface ? Oct 15 06:26:17 it really depends Oct 15 06:26:42 most apps tuto are subclassing Oct 15 06:26:54 but i'm more used to compose Oct 15 06:27:11 your question is too vague Oct 15 06:27:42 sampullman: ok, i'll take some time later to rephrase it, thx Oct 15 07:47:11 \ello Oct 15 07:48:00 Quick question - if I want a method to only run once when the given activity is created, rather than every time onCreate() is called (like say, when the orientation is changed), how would I go about doing that? Oct 15 07:48:18 Is there some sort of method called onFirstCreate(), or would I need to do it manually with flags? Oct 15 08:03:20 https://www.youtube.com/watch?v=HsaSKbbzuf4 hmm Oct 15 08:16:26 Tee_Pee: if onCreate is called then the activity instance was just created Oct 15 08:17:12 Tee_Pee: see Figure 1 on http://developer.android.com/guide/components/activities.html#ImplementingLifecycleCallbacks Oct 15 08:19:32 aye, I understand, but this is a fragment, and it's an OnCreateView(), and it's called every time the orientation is changed. Oct 15 08:19:46 I've solved it in the meantime though, now I'm struggling with dynamic imageview resizing. Oct 15 08:45:36 hmpf... I am trying to fade in images when they're loaded from the internet, and the principle is quite simple - start off with hidden imageview, set the data from the URL, animate fade in, restore visibility of the imageview after the animation Oct 15 08:45:46 and all of that is nice and dandy, except for the last one. Oct 15 08:46:16 how can I detect that the imageview has finished animating? I can add an animationlistener to the animation itself, but then I don't have a handle on the imageview that got animated Oct 15 08:53:58 Is i use socket.h inside a jni C program, will it use the actual C lib, or will it be depended on dalvik's socket implementation? Oct 15 08:55:19 Hi, I have a problem with firing onKeyDown event.. as I understand focus goes to some view and won't come back till I click back button. how can I keep the focus always on activity to catch all the keydown events? Oct 15 08:56:00 Tee_Pee: if the animation listener is created in a context where a handle to the imageview is available, you can access it from the listener Oct 15 08:56:19 but that's irrelevant, you're looking for animation.setFillAfter(true) Oct 15 08:56:46 I'm creating the animation inside of the gridview adapter... Oct 15 08:57:07 animation.setFillAfter(true) Oct 15 08:59:09 hmm, almost. I seem to have issue elsewhere, that did solve the visibility problem, thanks. Oct 15 09:01:54 Question Oct 15 09:02:15 in case my question is not clear let me know :) Oct 15 09:03:34 Whenever I do imageView.startAnimation(fadeInAnim); every single imageview in the gridview restarts its own animation... how the hell Oct 15 09:09:12 *sigh* I have what should be a very simple problem, and indeed, is likely to be a stupid problem. It's a simple HTML page that's supposed to be tablet accessible, and on android, and only on android, I get strange screen flickering when hiding 2 overlaid position:fixed elements. Oct 15 09:09:51 works on ie, firefox, chrome, ipad, but neither android native or dolphin show the page without this strange pop-in-out-flicker issue. Oct 15 09:10:16 anyone ever hear of a flicking problem that was android only like that? Oct 15 09:10:29 I know this isn't exactly app dev, but it's the closest I could think of. Oct 15 09:11:59 I've actually made up a sample page if anyone wants to take a gander at what should be an incredibly simplistic CSS-and-or-Javascript fix. I just can't figure out why it's android browsers only. Oct 15 09:12:02 are they properly z-ordered? Oct 15 09:12:15 grogdor: yes. let me give you the page link: http://quietwalker.dyndns.org/android_example/example.html Oct 15 09:13:07 I force the body to z-index: 25, just in case, I then create a background black layer with opacity - the fade out effect - at z-index: 100, and then I create a modal on top, at z-index: 200. Oct 15 09:13:29 I set javascript on the modal and the opacity so that clicking on them will fade them out. Oct 15 09:13:37 (and clicking on the body will fade them in) Oct 15 09:13:47 I say fade, but to make it simple, I'm using jquery's .hide() Oct 15 09:13:52 and .show() Oct 15 09:15:51 It's pretty much got me boggled. Oct 15 09:16:03 I tried many things and they all end up the same way. Oct 15 09:16:15 Any reason why a viewcontroller implementing UIWebViewDelegate not get methods fired, I've both connected them in the IB, tried using webview.delegate = self, and [webview setDelegate:self] ? Oct 15 09:16:52 RandomSort: that ... sorta sounds like iphone dev talk ^^; Oct 15 09:17:05 my mistake Oct 15 09:17:10 especially referencing interface builder :) Oct 15 09:17:10 hehe Oct 15 09:17:14 also you are quite right Oct 15 09:17:34 I just think I've mentally assigned this channel the label "app development" Oct 15 09:17:51 i wonder why Oct 15 09:17:53 hehe Oct 15 09:18:16 it doesn't seem that far-fetched :P{ Oct 15 09:18:31 If you're sure everything has been hooked up right ... the thing that always catches me is ... spelling. Sometimes I don't do the capitalization properly :) Oct 15 09:18:40 ^^; Oct 15 09:19:21 check, too, and make sure it's calling ... uh.. what's that one post load method? ... Oct 15 09:20:06 add like an NSLog or something to webViewDidFinishLoad, ensure that it's actually running. Oct 15 09:20:43 Yeah, I've added the logs to all thre methods, wehich is why I'm quite certain its not working at all, but the page loads fine, so it kindof is a crappy situationen Oct 15 09:20:51 heh. Odd. Oct 15 09:20:52 Thank you for your help, though I misplaced the platform :) Oct 15 09:20:59 Yup, no problem. Oct 15 09:21:31 Hi. I would love some help towards making a layout roughly corresponding to this http://imgur.com/x8Mj8 if anyone could help! Oct 15 09:22:24 You are my hero Quietwalker!, typos ftl :( Oct 15 09:22:30 Hehe :) Oct 15 09:22:34 That gets me at least 3x a project. Oct 15 09:22:40 Congrats :) Oct 15 09:22:52 Why does an object oriented languge not tell me that I have failed to implement the interface I've said I wanted to implement Oct 15 09:23:16 when i switch activities in a tab host can i somehow force it to kill off the,now, inactive activities? =/ Oct 15 09:23:32 Actually, there is a reason for that ... I think it has something to do with the possibility of mixins and such. Oct 15 09:23:57 but yeah, it nails me every project, and I always waste time before I realize it Oct 15 09:26:01 Ohwell, I guess my stupid android issue has got everyone stumped :( Oct 15 09:26:51 nah, it's just so stupid that i'm not wasting time thinking about it Oct 15 09:27:32 Hi guys, where can I find the source code for the GCM jar file? Oct 15 09:28:31 pragma-: It ~is~ stupid, that's the problem. It's just a stupid css or javascript issue, one would think. Not even worth a dev's time- just pass it to the web guys, right? But it won't go away. Oct 15 09:28:35 anyone know if i can install the sdk/ndk on a new machine just buy copying those folders onto a different pc? or is that liable to mess stuff up Oct 15 09:29:55 You should be able to, but you might make it harder for Eclipse to locate the SDK :) Oct 15 09:33:18 anyone got updog here Oct 15 09:33:56 is it possible to trigger focusChange event? Oct 15 09:34:45 Tracks: not much, what's up with you, dog? Oct 15 09:45:44 hi all Oct 15 09:45:56 i would checkout android-2.3.6 sources... Oct 15 09:46:02 running "repo sync android-2.3.6_r1" i get this error Oct 15 09:46:09 error: project android-2.3.6_r1 not found Oct 15 09:46:11 any idea ? Oct 15 09:49:15 hmmm... I have a rather annoying issue... in my app I start off with a homescreen, from which the user goes to a login screen Oct 15 09:49:40 Once logged in, I don't want the back button to log them out, so I finish() the two previous activities, leaving the now Control Panel activity on top Oct 15 09:50:21 This is fine... but the issue arises when the user does log out manually via the menu... They might have started an unknown number of activities in the app (friend list, wall, settings etc) Oct 15 09:50:44 and I obviously can't just start the Homescreen activity after the logout, as the back button would log them straight back in Oct 15 09:50:54 use fragments Oct 15 09:51:34 I am, but I still have more than one activity after the user logs in Oct 15 09:51:45 Unless you are referring to something else? Oct 15 09:52:50 I have a ContentActivity, which has 3 fragments (Wall, My Photos and Friends), but e.g. tapping on a friend name will bring up a new activity showing his or her pictures. Oct 15 10:12:43 anyone know how to get "superscript" (i think its called) in a textview, like when you type 2nd and the nd becomes smaller and higher up? Oct 15 10:13:11 amibitious Oct 15 10:13:13 -i Oct 15 10:13:16 i don't know Oct 15 10:13:24 :) Oct 15 10:16:36 http://developer.android.com/guide/faq/commontasks.html#selectingtext Oct 15 10:17:32 I have added Write External Storage Permission in my manifest file but i still get permission denied when trying to create a file Oct 15 10:17:34 any ideas ? Oct 15 10:19:15 Is it possible to use calculated columns in queries to content providers? Oct 15 10:24:39 tagrudev: are you trying to write on the internal storage instead of the external? Oct 15 10:35:33 DashCC, nope Oct 15 10:39:12 tagrudev: do you have proper path? Oct 15 10:40:34 i've subclassed view to make my own button, and i set the width using a setWidth() method… how do i make a width property that can be used to animate with ObjectAnimator? Oct 15 10:43:25 hi Oct 15 10:43:51 can you ask google to remove links from their search engine if they lead to pirated content? or is that a fight against windmills? Oct 15 10:44:11 RobinB: you can - by sending a DMCA complaint if in USA Oct 15 10:44:15 windmills? Oct 15 10:44:25 Snuffel: read some classics :) Oct 15 10:45:00 p_l: hmm, might have to do that Oct 15 10:45:29 oh it's german Oct 15 10:45:50 spanish actually Oct 15 10:45:55 http://en.wikipedia.org/wiki/Don_Quixote Oct 15 10:46:24 right Oct 15 11:08:36 hey guys Oct 15 11:09:30 hope anyone can help. i have a big problem with rom manager. all the time i select the option backup from current nand or similar, gave in a name and an backup was createt with this name Oct 15 11:09:52 i saw a dir with this name and all important backupfiles, romimage and so on where in it Oct 15 11:10:04 but since a time, rom manager sucks totaly Oct 15 11:10:30 if i create a backup now, the createt dir is only a few megabytes big Oct 15 11:11:00 and it creates another dir calledblobs with is some hundreds mb big Oct 15 11:11:13 so i don t have the createt backup in one dir Oct 15 11:11:24 so i can t save it on my computer for security Oct 15 11:11:50 i can t understund why backup manager don t makes the damn backup in the dir you named Oct 15 11:11:55 that sucks sooo much Oct 15 11:12:00 is there a solution? Oct 15 11:16:14 Anyone know a good icon for browse catagories? Oct 15 11:17:15 pktba try android-root Oct 15 11:23:47 hello all Oct 15 11:24:32 i have a little question. How can I uniquely identify an app installed on an android device. I know that the package name is unique within the play store - but what if on retrieves an app from an alternative store. Oct 15 11:25:25 I could create a hash of the apk file but I don't think that I can do this e.g. for protected apks Oct 15 11:25:41 In my experience you can have two different applications installed with the same packagename Oct 15 11:26:02 exactly - but what can I do to uniquely identify those apps Oct 15 11:29:44 I don't think I understand what you need to do Oct 15 11:40:34 Is this the way to go if you want to get a float value from an input? float r = Float.valueOf(inputR.getText().toString()); Oct 15 11:41:10 what if getText() returns null Oct 15 11:41:22 or something that isn't a float Oct 15 11:42:32 You can test for null, and I'm guessing that valueOf throws an NotANumberException or something of that ilk Oct 15 11:45:19 is it possible to get the md5 hash of an apk file ? Oct 15 11:50:08 hi, i have problem. i need. my app give error when call mapactivty from startactivity but no problem call activity from startactivity? message : Could not find class 'com.foursquare.CheckinAktivite'... Oct 15 11:51:34 Is there a standard approach to how do show PopupMenu on pre-honeycomb devices? Oct 15 11:51:48 okanck: are you trying to open an activity from the foursquare app? Oct 15 11:52:40 hello all, I have a question about custom view group. I extends a view group and then add a child ImageView and set adjustviewbound to be true. However, I found it doesn't work. I override the onLayout only. Is there anything missed? Oct 15 11:52:48 lapdis whats the problem? Oct 15 11:54:33 appel1: yes Oct 15 11:55:57 PopupMenu does not exist in pre-honeycomb devices. Neither in the compatibility package or in sherlock. Before I code my own version that shows a spinner with the same alternatives in pre-honeycomb devices, I want to know if there is a better approach Oct 15 11:56:29 umm Oct 15 11:57:12 to be clear, I want to show a popupmenu when the user clicks an arbitrary view, the popupmenu should extend from that view. Very easy to code on ics-devices Oct 15 11:57:12 Oh I see, sorry I was confusing popupwindow with popupmenu since I do popupwindow to do my overflow menu which works on my froyo phone Oct 15 11:57:48 okanck: is it really called 'com.foursquare.CheckinAktivite' and not 'com.foursquare.CheckinAktivity' ? Oct 15 11:59:42 appel1: my class name s "CheckinAktivite" in com.foursquare Oct 15 12:00:02 okanck: do you really own the domain foursquare.com ? Oct 15 12:00:40 ohh no. Oct 15 12:01:22 im not Oct 15 12:01:29 appel1: Oct 15 12:02:57 another question. Am I right if I say that the signature of an App + version + packagename is quite unique even througout the play store Oct 15 12:05:16 Pinas: unique? Oct 15 12:19:53 hello Oct 15 12:20:06 what is happenning? Oct 15 12:22:39 me nexus s running jb won't respond, i updated to jb, added a bunch of widgets, turned on gmail sync, added an exchange account, added another widget, went to sleep, next day dead, if i charge it just gets fairly warm, put a new samsung oem battery in and charged it for an hour just gets a bit warm but no response, i guess it is dead? Oct 15 12:23:02 opps this is dev, sorry Oct 15 12:46:18 looking at the SpriteText api demo Oct 15 12:46:22 who wrote this drek? Oct 15 12:49:50 I am displaying a google map, the map switches between traffic view and satellite view on menu option selection. When the app opens the default is traffic view, on selecting satellite the map view switches to satellite, but I cant switch back to traffic view. I have to clear the application data for that. Oct 15 12:51:36 subhojit777: you mean a mapview? Oct 15 12:52:17 Leeds, yup Oct 15 12:52:24 hi there! I have problems to stop current application, as well as to stop external application. If I use finish() the current application is still running and the external application doesn't stop when killed by id. Oct 15 12:52:44 Leeds, google maps api for Android Oct 15 13:04:30 opariti: that's correct. This is by design. Oct 15 13:04:45 opariti: Do not try to force-kill your own application. Android has a different lifecycle than what you're used to. Oct 15 13:05:40 as long as you properly handle the lifecycle of your components, and appropriately free memory when the device warns that it's low, everything will run nicely. Oct 15 13:06:00 lov: I understand, the problem is that I want to control the app behavior in a synchronous mode. is there any callback availabel for an app shutdown (not deleted)? Oct 15 13:06:14 opariti: You really don't want to do this. Trust me on this. Oct 15 13:06:28 Is there a reason why you feel like you must do this? Oct 15 13:06:43 Situation - I have a gridview with loads of entries (300+ items) of images that are downloaded by the adapter from the internet. As I've seen, android shows as many items as can fit on the screen, and recycles the ones from top to show the new ones as the user scrolls, this is great. However.... Oct 15 13:07:18 subhojit777: strange. I'd assume that there's an option in there somewhere. Oct 15 13:07:55 If I just spam scroll to the bottom, what I'll see is some 20 images, thumbnails rapidly changing, as the adapter downloads and sets the images for whatevers slots that gridview item went through, eventually stopping once it reaches the last image for that entry Oct 15 13:08:04 lov: I agree with you - that's why I posted the question. Tha reason is that I'm not using for phone but for a tablet multi package orchestrating machine. I don't want to kill, just use finish, but needs to know when the system stops running it Oct 15 13:08:23 What I am thinking is essentially coding Oct 15 13:08:48 coding it in such a way that it only starts loading images after the user has stopped scrolling Oct 15 13:09:00 is there a way to achieve this? Oct 15 13:09:06 Tee_Pee: yeah, this is one way to do it. Oct 15 13:09:15 You can also perform lazy loading of the images. Oct 15 13:10:08 This is all happening inside of the adapter's getView() method... do I somehow modify that to only fire after say, 200ms have elapsed since the last scroll event? Oct 15 13:10:24 opariti: There's no way to programatically finish an application. You can forcefully kill the dvm, but that's not necessarily optimal. Oct 15 13:10:33 I'm also not sure whether you want to forcefully kill the application, or check whether it's running. Oct 15 13:10:40 @Tee_Pee http://stackoverflow.com/questions/8304446/android-detect-listview-fling Oct 15 13:12:09 hi, i am trying the viewpager/pageradapter combo and my test project was successful. but in my current project the screen for the view is just black. no error. nothing in the log. any idea? Oct 15 13:14:06 lov: sure, I understand. the finish() seems like notofying the system about an app to be stopped and removed from the user's task stack. It will really remove it if the system needs resources; what if I have several threads (from different packages), all marked as finish and need to shut them down in the order I want, not system's? Oct 15 13:14:35 hmm... so what, I have an isFlinging bool in my adapter, which I set to true in the fling listener, and just surround the code within getView in if(!isFlinging) ? Oct 15 13:15:11 opariti - look into startActivityForResult() Oct 15 13:16:02 If you have activities A and B, and A starts B via startActivityForResult() Oct 15 13:16:16 whats the best way to draw text to the screen with gles20 Oct 15 13:16:37 in A you'll have a protected onActivityResult() method which will check the passed resultCode variable Oct 15 13:16:38 opariti: finish() is only useful for contexts, not the application itself. It doesn't notify the system that the APPLICATION is stopped, it only finishes a particular context, like an Activity or a Service. Oct 15 13:17:00 Tee_Pee: interesting. I there any Intent to stop an activity (I'll have a look anyway, but it comes in my mind ...) Oct 15 13:17:06 opariti: no. Oct 15 13:17:23 generally, applications do not affect other applications' lifecycles. Oct 15 13:17:24 lov: thansk for the explanation Oct 15 13:17:31 What you can do is register a broadcast receiver, and send a broadcast intent. Oct 15 13:17:39 That broadcast receiver can perform a variety of actions. Oct 15 13:17:53 You can have your activities register broadcast receivers programatically for a "shutdown" broadcast, if you want Oct 15 13:18:01 nope, but in activity B you can say "setResult(69)" and the activity that called it can check if the resultCode is 69 and call finish() itself from its onActivityResult() Oct 15 13:18:06 you can also register a central one that will let your threads know that it's time to quit. Oct 15 13:18:22 lov: indeed, I've donbe that for an install scope on other package deleted. I'll think about Oct 15 13:18:32 yeah, it's what I do myself Oct 15 13:19:04 I have an application that's structured in the following manner - Home-Login-Control Panel - *Various* Oct 15 13:19:24 when the user logs in and reaches the CP, I don't want the back button to throw him back to the login screen, so I finish() the home and login activities Oct 15 13:20:05 however, when the user actually logs out via menu, I want to get him back to the homescreen, but I do not want the back button now to throw him back to wherever he was before, so I have to kill ALL the other activities Oct 15 13:20:13 broadcast is the easiest way to do this Oct 15 13:20:20 Tee_Pee, lov: thanks guys, really useful hints. +1 Oct 15 13:25:43 I am using android:layout_width="?attr/actionBarSize" in a layout and now I get a RuntimeException "You must supply a layout_width attribute" Oct 15 13:27:51 hi, i am trying the viewpager/pageradapter combo and my test project was successful. but in my current project the screen for the view is just black. no error. nothing in the log. any idea? anybody?! Oct 15 13:28:31 it means that the adapter received no data Oct 15 13:28:35 it's empty Oct 15 13:30:27 hi Oct 15 13:30:36 I'm trying to connect to my samsung s3 with adb connect Oct 15 13:30:45 but it doesn't work, it says: unable to connect to Oct 15 13:30:50 any ideas what might be wrong Oct 15 13:30:56 the device is listed in adb devices Oct 15 13:31:12 I've enabled the usb debugging Oct 15 13:31:35 but the device is nevertheless connecting as media device Oct 15 13:31:38 could that be a problem? Oct 15 13:32:34 Tee_Pee: http://developer.android.com/guide/topics/manifest/activity-element.html#lmode Oct 15 13:32:53 Tee_Pee: consider modifying your task stacks. Oct 15 13:34:05 evelyette: hmm. So it shows up with "adb devices". Oct 15 13:34:08 evelyette: try rebooting it (seriously) Oct 15 13:35:42 lov - aye, was gonna look into that a bit later... right now I am still tempering with this gridview... Using the listener did exactly what I needed... images won't load when the user is flinging... the problem is, they now won't load after the user STOPS scrolling. I need some way to tell the adapter "ok, it stopped, do your thing now" Oct 15 13:35:54 yes, there is. Oct 15 13:35:58 keep investigating :P Oct 15 13:36:24 lov, I will restart it ... btw: why is usb debugging required to copy applications to the phone ? Oct 15 13:36:32 if i want to have a listview populated with *items from an sqlite database, where each item has some data and an xml.row.layout. i should use arrayadapter and populate an array with objects of ItemClass -an object for each item? Oct 15 13:37:35 According to the documentation onScroll is only fired after the scroll has ended... Oct 15 13:37:38 @Tee_Pee you can call notifyDataSetChanged on your adapter after flinging stops Oct 15 13:37:42 this isn't what I'm seeing :p Oct 15 13:37:46 lov, it's still being connected as media device, any ideas ? Oct 15 13:37:57 aye, about to try that Oct 15 13:38:40 evelyette: did you install the drivers for sgh-l747 Oct 15 13:38:50 sdaq, why should I do that? Oct 15 13:39:18 evelyette: go to samsung support and look up that driver Oct 15 13:39:27 evelyette: afterwards it should connect Oct 15 13:41:39 Ok, that did it, but I'm still not out of the woods lol Oct 15 13:42:28 now when I stop flinging, if there are already loaded images visible, they'll flicker when notifyDataSetChanged() is called Oct 15 13:42:55 evelyette: usb debugging is required to install applications as a security measure. Really, usb debugging just has adbd run / accept connections. Oct 15 13:43:10 Tee_Pee: you'll figure it out :P Oct 15 13:43:26 Tee_Pee: you should probably use a CursorAdapter Oct 15 13:43:29 that's encouraging :p Oct 15 13:43:32 er Oct 15 13:43:38 tech1: you should probably use a CursorAdapter Oct 15 13:45:34 i would change edittext background Oct 15 13:45:40 Ok, last question, I hope that this will be possible as it seems to be the simplest solution - Is it possible to run the getView function of an adapter manually? Oct 15 13:45:50 no Oct 15 13:45:58 how do you load your images? Oct 15 13:46:10 hold on, pastebining... Oct 15 13:46:17 from web, from sdcard, from memory? Oct 15 13:46:30 i would remove background image of EditText and make it equal to TextView, i'm tring to set a style with no success Oct 15 13:46:34 have you any idea ? Oct 15 13:46:54 i would to enable copy&paste on TextView, so my idea is to use EditText instead of it Oct 15 13:47:07 kr1d - web Oct 15 13:47:10 http://pastebin.com/XRunvGmb <------The adapter Oct 15 13:48:07 i see lov. it says Cursor is an interface. i have not used interfaces before but i understand they provide methods to classes. would these methods provide the adapter with the sqlite item data, instead of ifI had a class -i would use the class fields to hold the data Oct 15 13:48:32 http://pastebin.com/jLP6nY2b <------the gridview listener Oct 15 13:49:30 i guess the flicker is because of your fade animation Oct 15 13:50:51 Most likely. Let's see what I can do about that one... Oct 15 13:51:18 does it still flicker if you do it without the fade animation? Oct 15 13:51:26 about to check Oct 15 13:52:58 yup, it's the animation. Oct 15 13:53:52 so do the animation only if your view has no image yet Oct 15 13:55:53 why does my gles20 app have two gl contexts? Oct 15 13:55:57 do have some kind of caching for your images? Oct 15 13:56:51 As in local files, not yet... but I do cache them in a bitmap... map. Oct 15 13:57:54 You really ought to cache to disk to minimize your load times. Oct 15 13:58:02 of course Oct 15 13:58:03 Not to mention every time your views get recycled, you'll have to re-fetch. Oct 15 13:58:14 hence the "not yet" :p Oct 15 14:01:52 it seems that almost every program uses some kind of adapter Oct 15 14:03:12 well yeah, anything dynamic needs an adapter Oct 15 14:03:21 it's the bridge between your app and your data Oct 15 14:03:39 it is like the mvc controller i think Oct 15 14:04:53 anyone done any adobe air Oct 15 14:04:54 ? Oct 15 14:05:19 is that like weed? Oct 15 14:05:24 hehe Oct 15 14:05:34 similar Oct 15 14:05:40 comes in these little adobe cannisters Oct 15 14:05:44 really blows your head off Oct 15 14:06:42 Tee_Pee: viewpager/pageradapter: but instantiateItem is called and it returns a valid view. any idea why it show a black screen despite the valid view? Oct 15 14:08:32 it can do android ios etc, lookd interesting Oct 15 14:10:44 m1hael: Without seeing any code nor logs? Not a single clue. Log every single line of your adapter if need be and see where it goes wrong. Oct 15 14:10:59 gaz`: so can phonegap. Oct 15 14:11:39 Tee_Pee: thanx. will do that. Oct 15 14:12:30 gaz`, canisters that blow your head off? no thanks. Oct 15 14:12:37 gaz` - my employer had me working 2 months in this gallery application using Phonegap and Sencha Touch. In those two months I could have created that same app for the android, iOS and Windows Phone with approximately 100000000000000000000000000000000000000000000000000000x better performance. Oct 15 14:12:43 Cross-platform is bullshit. Oct 15 14:13:15 If you used that peice of crap olympics app that was put out over the summer, that was adobe air. Oct 15 14:13:37 i hate adobe Oct 15 14:13:40 ups ;-) Oct 15 14:13:45 It was sluggish, not hardware accellerated, took several seconds just to open, looked non-native (even a bit Apple like) Oct 15 14:13:47 mean doenst like Oct 15 14:13:49 ^^ Oct 15 14:13:51 Tee_Pee: oh. i forget to call container.addView(my_new_view); Oct 15 14:13:54 had the impression that the system will do that for me =) Oct 15 14:14:24 :) Oct 15 14:14:59 hehe Oct 15 14:15:11 well iadopted this project Oct 15 14:15:13 so i kinda have to Oct 15 14:15:57 damn i hate it when u finish real work then u cant be bothered to do your personal work Oct 15 14:16:53 tell me about it Oct 15 14:16:59 anyway, here's a tricky one from me Oct 15 14:17:24 Gridview, items load, all is dandy... except Oct 15 14:17:35 (bear with me, it's a tad tedious to explain) Oct 15 14:18:11 Say I have 10 rows loaded, then flicked over another 10, and loaded a third set of 10, meaning I have <---loaded---><--gap--><--loaded---> Oct 15 14:19:19 Now if I go to that gap, the images will start loading, but say I scroll down to the bottom loaded section while the gap is loading - some of the views from the top of the gridview will be recycled to the bottom and filled with the loaded data, but they'll swiftly be replaced by the new data that was supposed to go into the gap views Oct 15 14:19:26 Hey guys Oct 15 14:20:10 I suppose this boils down to me checking if the given view is recycled before assigning the image data to it, which begs the question - is that possible? Oct 15 14:21:50 hi, i am using viewpager/pageradapter. my app loads only some data when going through the screens of the viewpager. i want to load the detail data of the single screens when it is shown. any idea how to do that? Oct 15 14:21:58 is there some listener i could use? Oct 15 14:25:41 hmm, so the kindle fire hd and the nexus 7 have the same aspect ratio? Oct 15 14:26:06 why does it feel like things are weird on the nexus 7. like text sizing seems like it needs to be tweaked for the nexus 7. Oct 15 14:26:20 which i thought was maybe because of a weird aspect ratio, but i guess not Oct 15 14:28:22 B Oct 15 14:38:51 m1hael onpageselected listener? Oct 15 14:39:27 lasserix: just found it. thanx. gonna try it. Oct 15 14:42:46 Well, it's not 4 in the morning anymore, so time to try again! This problem doesn't even involve a native app, just html, css, and javascript! I have a popup div (lightbox-style) that flashes when I hide it when viewed in android browsers, but not in any other. Oct 15 14:42:50 anyone ever see this? Oct 15 14:43:30 Question on listView and how android handles it Oct 15 14:43:34 : Oct 15 14:43:42 I've got an example page to show it in action here: http://quietwalker.dyndns.org/android_example/example.html ... click on the green text to show the modal, click anywhere else to hide it. My TF101 displays flashing, and it's irritating. :) Oct 15 14:43:50 Quietwalker i don't know well enough but ive seen similar question asked and is a result of having to flag enabled javascript or something Oct 15 14:43:54 When it loads it up, it only generates the Views it needs. Oct 15 14:44:10 And it looks like it adds the componenet views to some sort of cache/pool Oct 15 14:44:19 lasserix: Hmm. Let me search around for jquery flags for android? Oct 15 14:44:27 for example, I have some progressbars in my elements, Oct 15 14:44:50 I don't really know enough sorry Oct 15 14:44:58 And I'm having an issue keeping the correct one updated when I'm scrolling because the AsyncTask has a reference to one of them Oct 15 14:45:00 Quietwalker: Stackoverflow? Oct 15 14:45:14 And then I would asume android recycles that reference to create the view for the elements further down. Oct 15 14:46:05 lov: Considered it. I'm pretty sure it has something to do with the position: fixed tags ... when there's more than one object on a page with position 'fixed' and they have some overlap Oct 15 14:47:42 lov: I think that it's actually this issue: http://code.google.com/p/android/issues/detail?id=6721 but ... I'm not entirely sure. Oct 15 14:47:45 Quietwalker: I meant stackoverflow.com :P Oct 15 14:48:18 lov: lol Oct 15 14:48:54 lov: I know what you meant, I considered posting it there. Oct 15 14:49:13 I was just hoping someone had a casual workaround here :) Oct 15 14:49:27 I mean, lightbox style inline popups are pretty common. Oct 15 14:54:28 is table layout abhorred in android programming as it is in html ? ? Oct 15 14:54:37 Looney: not if it's for tabular data :D Oct 15 14:55:18 its sort of icon preview at startup screen Oct 15 14:55:50 so, It will pass but I wanted to know about the general notion Oct 15 14:56:09 people can kill programmer for using table in html :-P Oct 15 14:56:18 i use tables Oct 15 14:56:33 there is nothing wrong with using tables. it's using tables for layout that is wrong. Oct 15 14:57:42 Hmm. You don't use tables in HTML for a number of reasons, but most are ideological. It strongly links content with display (with all that entails), it makes it harder for screen readers, it ruins the semantic nature of the page ... Oct 15 14:57:57 but in an application, these don't seem to have much of an impact. Oct 15 14:57:59 and I am talking about table layout in Android, are they considered ugly like html tables Oct 15 14:58:06 true Quietwalker Oct 15 14:58:19 There is nothing wrong with using an HTML table to display tabular data. Oct 15 14:58:27 he's not talking about HTML tables though Oct 15 14:58:37 I know, I was addressing you Oct 15 14:58:40 he's talking about the TableLayout. I don't see any problems. Oct 15 14:58:52 TableLayout I used once and found it cumbersome Oct 15 14:58:56 but use tables for layout, people will kill you (HTML) Oct 15 14:58:56 that's in 2 years of android dev Oct 15 14:59:05 Heck, most of my early java gui apps were all gridbags and such. Oct 15 14:59:07 and they should Oct 15 14:59:31 doing such a thing amounts to willful ignorance. it's like using AbsoluteLayout in android. Oct 15 14:59:42 unfortunately, I don't think android has a gridbag layout *thinks* Oct 15 14:59:49 Looney: I like table layout just fine Oct 15 14:59:50 or maybe they do now? Oct 15 14:59:50 absolutelayout, gotta check it out Oct 15 14:59:57 hehe Oct 15 15:02:06 looney: I am ... assuming that you've already looked at gridlayout? Oct 15 15:02:35 not really, or perhaps I might have Oct 15 15:02:39 and picked tablelayout for the extra functionality? Oct 15 15:03:29 what extra functionality can table layout yield Oct 15 15:03:31 Quietwalker: did you write those gridbaglayouts by hand? Oct 15 15:04:13 hrnt: Yes, yes I did. It was neat, and programmatic. Coming from an old win32-then-mfc environment, it was pretty lightweight in my mind :) Oct 15 15:04:13 i seem to recall that the early java IDEs _loved_ to make incomprehensible gridbaglayouts Oct 15 15:04:39 looney: I think you can have blank cells in a table layout, not in a grid layout - it has to be sequential. Oct 15 15:04:54 sdaq, lov after googleing some more I con conclude that the driver for Linux isn't necessary ... and the connection should work, but it still doesn't. THe adb cannot connect, it says: "unable to connect". Any ideas ? Oct 15 15:05:05 using eclipse how do I get my build onto the physical device. I've found instructions telling me to email the apk to myself, download it on the device or similar method. Seems there ought to be a more direct way. Is there ? Oct 15 15:05:10 hrnt: Yeah, I sorta eschewed IDEs for a long time. :) Oct 15 15:05:30 evelyette: I did not realize you were using linux Oct 15 15:06:02 i remember i tried some visual tool to create the UI, then looked at the generated code, went "WTF" and stopped using java IDEs for quite a long time :) Oct 15 15:06:03 well, my icons will be sequential without gaps/ blank cells Oct 15 15:06:14 kinch: adb install should work, if you're connected to your device. Oct 15 15:06:24 kinch: just google for "adb install" and you should find something to walk you through it. Oct 15 15:06:29 thanks Oct 15 15:06:31 yup Oct 15 15:07:01 odd this is not in the eclipse UI... Oct 15 15:07:01 personally, I usually just set up my build in eclipse, and then have it push right to my device when I'm in the process of testing. Oct 15 15:07:19 evelyette: run 'adb devices'. if it shows up as '????' then it's a permission issue, search for 'android adb permission' and you'll find the rules you need to add to udev Oct 15 15:07:38 I think the current stuff though requires a little trickery to get it to push after the initial push, in eclipse. Oct 15 15:07:46 otherwise you have to stop and start the instance. Oct 15 15:07:56 (which is pointless, just have it issue the install command) Oct 15 15:08:06 dragorn, the device shows up normally Oct 15 15:08:45 dragorn, List of devices attached Oct 15 15:08:45 4df2ef5e5b255fb5 device Oct 15 15:09:05 evelyette: then it's connected to the device... if you can't actually run adb commands after that, I kind of suspect that the device is wacky Oct 15 15:10:08 dragorn, but the adb connect should say that it's already connect, and if I try to run commands, it says: error: device not found Oct 15 15:10:22 dragorn, it's not whacky, I just bought it Oct 15 15:10:37 well some vendors crap up the devices pretty heavily Oct 15 15:10:46 sounds like either a device issue or a permissions issue to me Oct 15 15:10:50 it's s3, it should be a known problem if that were true Oct 15 15:10:55 though usually permissions would manifest differently Oct 15 15:11:10 I'm interested in how to debug this to figure out what's wrong ? Oct 15 15:11:14 you can try adb kill-server to shut down the server Oct 15 15:11:39 ok I restarted, but the same problem Oct 15 15:11:54 * daemon not running. starting it now on port 5037 * Oct 15 15:11:54 * daemon started successfully * Oct 15 15:11:54 error: device not found Oct 15 15:13:00 oh, I guess I was being unfair to eclipse. I did a run on my test project, and it showed up automatically on the device Oct 15 15:13:51 kinch: yeah, but you may have to restart the session to get any code changes out, sorta a pain to start up the VM each time. Oct 15 15:32:42 hi, I'm loading all the images at the begiinin of the game into the memory, and I get OutOfMemory exception Oct 15 15:33:00 I'm doing that with BitmapFactory.decodeResource ... is there any better way of doing that ? Oct 15 15:35:17 is there an attribute for the width/height of an action item?? Oct 15 15:35:51 evelyette: you probably don't want to load all of your resources into memory at once, especially if they're large, or there are a lot of them Oct 15 15:37:22 evelyette: If you haven't read this, then I recommend taking a look at it as well: http://developer.android.com/training/displaying-bitmaps/load-bitmap.html Oct 15 15:37:39 and really all of Displaying Bitmaps Efficiently :) http://developer.android.com/training/displaying-bitmaps/index.html Oct 15 15:37:40 ok I will thanks Oct 15 15:38:00 Hope it helps :) Oct 15 15:38:19 The Training and API Guides are good, I recommend you look through them and read the relevant bits when you can. Oct 15 15:39:20 mdwright: I'm stalking you Oct 15 15:41:49 heya Oct 15 15:42:14 This may be a stupid question, but when constructing an sqlite database for an app, should i add forign keys to tables? Oct 15 15:42:29 I don't know, should you? Oct 15 15:42:32 (this is a design decision) Oct 15 15:43:07 so its a personal prefrence? Oct 15 15:43:15 RichardS: it depends on your needs Oct 15 15:43:49 then i shall do without the extra hasstle then :) thanks for the input Oct 15 15:44:08 if i understand it correctly, the google autocomplete api does NOT allow to filter results by radius nor does it sort it in way that makes sense. Oct 15 15:44:17 e.g. https://maps.googleapis.com/maps/api/place/autocomplete/json?sensor=true&input=zool&components=country:DE&types=geocode&location=52.5295378,13.4016231&key=AIzaSyDMs4oAtZE29eXf-kiwUhIZ9i7i9ZtUKy8&radius=100000 Oct 15 15:44:28 i am asking for an autocompletion for "zool" starting from berlin and the second entry is spanish: "Zoologico de Berlín, Hardenbergplatz, Berlín, Alemania" and the first one the wrong one, "eberswalde" (the first should be "zoologischer gartin in berlin") Oct 15 15:44:30 RichardS: Haha, glad we could helps :) This seems to be a reasonable answer: http://stackoverflow.com/questions/83147/whats-wrong-with-foreign-keys Oct 15 15:44:46 am i missing something here or is the autocompletion api from google really that useless? Oct 15 15:45:29 Thanks for the link :) Oct 15 15:46:58 troessner: this is the places autocomplete api, yes? Oct 15 15:47:12 because looking at their documentation it looks like they accept both a location and a radius Oct 15 15:48:03 https://developers.google.com/places/documentation/autocomplete (under optional parameters) Oct 15 15:48:06 mdwright, they don't, not really. the docs are really bad there. Oct 15 15:48:09 mdwright, http://stackoverflow.com/questions/12704448/how-can-i-force-google-autocomplete-to-not-include-any-results-that-out-for-requ Oct 15 15:48:21 quoting the top answer: The location and radius parameters only act as a bias to the results, there is currently no way to restrict results to a specific radius. Oct 15 15:48:39 what i see from experimenting with the api this indeed seems to be the case Oct 15 15:49:13 Ah, yeah, looks like it isn't all that helpful then. Guess that's why it's an experimental api :/ Sorry I couldn't have been more help Oct 15 15:50:04 mdwright, the thing i dont get is: as it is right now the whole autocomplete api is useless for me like that. i can't see why anybody would use it Oct 15 15:50:14 hence, i suspected an error on my side Oct 15 15:50:19 i just can't find one Oct 15 15:50:51 i mean, what's the point of autosuggestions for a location api if you can't display the nearest results first? Oct 15 15:52:44 I just started another project ("my first app" on developer.android.com), and tried to run it. I can see it is downloaded on the device, in that the new project is in the Apps list in settings, but I do not see the icon. I have tried uninstalling my original project and the new project, and re-running. It still doesn't show up. What might I be doing wrong ? Oct 15 15:53:52 troessner: just for the record, google maps itself returns the same autosuggest results as the autosuggest api Oct 15 15:54:16 hello all Oct 15 15:54:17 so I'm guessing they're just exposing existing functionality to developers, this isn't meant to be a general purpose solution Oct 15 15:55:25 mdwright, ah, funny, you're right, it also lists the spanish result there Oct 15 15:55:28 :( Oct 15 15:55:29 wtf Oct 15 15:56:49 kinch: does your main activity respond to the andriod.intent.action.LAUNCHER category? Oct 15 15:56:55 in it's manifest that is Oct 15 15:57:17 example manifest that does (note the first intent-filter): http://developer.android.com/guide/components/intents-filters.html#npex Oct 15 15:57:24 it ought to, I just made the project from the "new project button" Oct 15 15:59:09 Well, I'd double check just in case :) Oct 15 15:59:52 If it doesn't, probably report a bug to the tools guys. I can't imagine that's the case, but better safe than sorry. If it does have that, then we can look elsewhere. Oct 15 16:00:32 Anyone know of a good "browse" icon, as in brown catagories for use in an action bar? Oct 15 16:02:51 hello guys.. any devs from romania here? Oct 15 16:03:41 greets, how do i do a setTitle on DialogFragment Oct 15 16:04:01 the space where the title should be is just empty text Oct 15 16:04:19 is the title a specific auto-created view I can target? Oct 15 16:05:15 I have two listview in one activity and want to navigate through them using dpad. how to change focus to listview Oct 15 16:05:24 DysonReturns: You've subclassed DialogFragment and overridden onCreateDialog, yes? Oct 15 16:05:36 onCreateView, yes Oct 15 16:05:56 not sure what is happening. Made a new project again, did a run, and now it shows up on the device Oct 15 16:06:15 getDialog().setTitle(..) Oct 15 16:06:29 mdwright & SimonVT, thanks Oct 15 16:06:34 ==SimonVT Oct 15 16:06:56 knew it was about to comefrom your side too :) Oct 15 16:26:32 so...I forgot what I came here for Oct 15 16:26:33 ok Oct 15 16:30:13 one question. Is it possible to know which installed apps are copy protected i.e. located in /data/app-private/ ?? Oct 15 16:34:37 "adb shell" then "ls -l /data/app-private" Oct 15 16:34:42 Pinas: as a user? as an app? Oct 15 16:35:00 That'll show you chmod on all the files in the dir Oct 15 16:35:19 mdwright - both, for now I'd like to try it as a user Oct 15 16:35:37 hello guys.. any devs from romania here? Oct 15 16:36:01 why you ask Azra-el Oct 15 16:36:15 i ask because im actively looking for engineers? :) Oct 15 16:36:27 pm ? ? Oct 15 16:37:02 RubiksHnK[A] thx but as a "normal" user you don't have the permissions to list the content of this folder Oct 15 16:37:42 Azra-el: please don't advertise jobs/contracts here Oct 15 16:37:45 * lov points to the topic Oct 15 16:38:38 Then that turns it into somewhat of an #android-root question. But adb root while you're in your bootloader. Then run through the other commands. Oct 15 16:42:30 hmm, I can't say I agree with the decision to have the first lesson in the training course be to type in raw xml to make a simple UI. pain in the but Oct 15 16:42:31 t Oct 15 16:43:26 kinch: What is this lesson? Oct 15 16:43:47 dev training tutorials @ developer forum Oct 15 16:45:30 RubiksHnK[A], the getting started project at developer.android.com/training Oct 15 16:46:17 kinch: it's A) learning by doing and B) exposing the layout xml content Oct 15 16:46:34 sure.. Oct 15 16:46:47 you can also copy/paste :P Oct 15 16:46:58 making ui in code is more of a pain in the butt Oct 15 16:47:04 Thanks kinch, I'll keep that till I have some free time. Oct 15 16:56:05 Hi Oct 15 16:56:20 Please help me with kernel building Oct 15 16:57:13 Is anyone allive? Can anybody help me? Oct 15 16:57:48 how can i create a footer for a GridView where the GridView has a column count of 2, but id like this static footer to "span" two columns. If i user mergeadpater or just add a dummy view to my dataset myself, then fill_parent applied to the footer view will only ever take up a full column (which is half of the screen) and i want it to span two columns Oct 15 16:57:53 android or linux Oct 15 16:58:05 I have compiled linux for myself Oct 15 17:03:03 h Oct 15 17:03:04 hi Oct 15 17:03:29 is it possible to move to the end of a scrollview programatically ? Oct 15 17:04:17 hi all, this android dev newb is trying to integrate https://github.com/koush/android-websockets into his first android project. am i expected to build it, and get a .jar file which i then copy to my project's libs directory? i've tried building it, but i can't see the .jar file anywhere and was wondering if i'm trying to do this completely the wrong way Oct 15 17:04:35 mrenouf: hi :) Oct 15 17:08:38 antgel: looks like a library project, http://developer.android.com/tools/projects/projects-eclipse.html#ReferencingLibraryProject Oct 15 17:08:53 TheTrash: thanks, i'll check out the link :) Oct 15 17:09:31 Hi. How to run android simulator on ubuntu 64 bits? Oct 15 17:11:39 Gavilan2: you start it. What's the problem? Oct 15 17:12:51 First issue is that he calls it a simulator Oct 15 17:13:32 http://android-developers.blogspot.com/2012/10/new-google-play-developer-console.html Oct 15 17:14:11 whoa, this MK802 actually boots and runs Angry Birds! I am in awe! Oct 15 17:14:32 Adb cant starts. It suggest getting ia32-libs. I tried, but those libs have a dependency ia32-libs-multiarch that is not installable..... Oct 15 17:14:36 anyone here get systrace to work in windows? Oct 15 17:15:05 gavilan2: try sudo apt-get -f ia32-libs Oct 15 17:15:32 TheTrash: first things first - i need to import it with File -> Import -> Android -> Existing Android Code Into Workspace? because that's what i have now done. in Properties -> Android, "Is Library" is now ticked. *but* there are red crosses next to some source lines. did i do something wrong or is the code of this library flawed? Oct 15 17:16:06 Sdaq: same error... or warning.... Oct 15 17:16:46 Gavilan2: what version of ubuntu Oct 15 17:17:58 TheTrash: i feel i'm nearly there but my console shows [2012-10-15 19:16:04 - android-websockets] Unable to resolve target 'android-8'. any idea what i might have missed? Oct 15 17:18:05 Gavilan2: 12.04? Oct 15 17:19:58 Info at http://pastebin.com/eXjdncqt Oct 15 17:20:23 i have to go, will come back to this tomorrow. thanks Oct 15 17:21:12 i try to insmod a kermel module and get error Oct 15 17:21:25 Gavilan2: see here http://source.android.com/source/initializing.html Oct 15 17:21:41 insmod: init_module 'module.ko' failed (Exec format error) Oct 15 17:21:45 AR_: probably wrong channel, see topic Oct 15 17:21:56 it says for 10.04-11.10 you can install ia32-libs Oct 15 17:22:11 but for 12.04 (what you have) it is not in the list Oct 15 17:22:13 it is for android, g00s Oct 15 17:22:26 Hodapp: the mk802 is pretty competent Oct 15 17:22:28 AR_: but it isn't application development Oct 15 17:22:48 oh so you guys dont know how to actually program ok Oct 15 17:22:54 dragorn: I was more worried that I was going to get a really non-legit version of it Oct 15 17:23:11 Hodapp: well who knows ;P I don't trust the 802 firmware much Oct 15 17:23:48 I'll try it out on my Mac at home where I likely won't need any extra drivers for ADB (so I hope) Oct 15 17:24:20 trying to cleanly destroy my game app. I exit the thread safely, then finish() the main Activity, but something still keeps it in the process list (using Adv Task Killer). It's a pretty default game loop. My assumption is that my game panel (SurfaceView) isn't destroyed. Recommendations? Oct 15 17:26:28 Just because the process still exists doesn't mean the app is still doing work Oct 15 17:26:34 hi guys, question, is there any way (from within the running android app) to get a list of all the classes stored in the apk? Oct 15 17:26:43 reduz: no Oct 15 17:26:45 In will keep the process in memory Oct 15 17:26:50 reduz: why would you want that? Oct 15 17:28:07 Komak57: My recommendation is you read up on how android works, and why it's a good idea to keep stuff in memory Oct 15 17:28:20 Sdaq: oh... thanks... i tried the 12.04 thing, but got a umable to locate pachage error.... Oct 15 17:28:42 :( i think i'll need to wait for mainstream support..... Oct 15 17:28:52 loke, because i may have to do different builds of an app with support for different functionalities, and would be nice if i could automatize that by just symlinking the needed classes before building the project, then detecting within the apps which ones are there Oct 15 17:28:56 Gavilan2: the fact that he uses a task killer suggests he doesn't know even the basic things. Oct 15 17:29:08 ? Oct 15 17:29:26 Gavilan2: it was meant for SimonVT Oct 15 17:29:31 Oh... ok Oct 15 17:29:48 loke, also i noticed this - http://developer.android.com/reference/dalvik/system/DexFile.html , is it not possible to somehow open classes.dex ? Oct 15 17:29:52 reduz: I'd suggest you re-think your trategy Oct 15 17:30:30 reduz: Well, even if it was possibly, it's still not a good way of solving your underlying problem Oct 15 17:31:15 reduz: couldn't you just attempt to dynamically instantiate an object and catch the class not found exception - that'd let you know if it was available? Oct 15 17:31:43 Quietwalker, nope, because i don't know beforehand what i want to isntantiate Oct 15 17:31:49 Quietwalker: No need to instantiate (it'll cause the dexer to fail). Just do Class.forName() Oct 15 17:32:06 yeah, I want to use Class.forName, but i don't know the class names beforehand Oct 15 17:32:13 Different issue... my android tends to get slow after a while, like good old windows 95... any idea how to prevent that? Oct 15 17:32:20 reduz: how will you know what class name to use if you can't know before hand? Oct 15 17:32:30 config file or user input? Oct 15 17:32:42 I think the issue are backbround processes xonsuming cpu or network.... Oct 15 17:33:23 Quietwalker, i want to just scan the available classes and see which ones inherit from a specific one. I mean it's just a plugin system i can't believe there isn't a way to do it Oct 15 17:33:52 Hey gang -- looking to pick up a tablet for testing apps on a non-phone device. Is the Nexus 7 the best / go-to device, or is there something better to look into? Oct 15 17:33:52 Gavilan2: Background processes dosn't consume resources Oct 15 17:33:58 Gavilan2: ...unless you want them to Oct 15 17:34:06 I know that's all subjective, but i'm just looking for some general ideas Oct 15 17:34:49 Ai dont want them to... how to achieve that?? Oct 15 17:35:03 Uninstall them Oct 15 17:35:16 Don't support crappy apps Oct 15 17:35:19 Without uninstalling them :) Oct 15 17:35:20 reduz: Have you taken a look at serviceloader? Oct 15 17:35:30 reduz: I think it will provide the pattern you're looking for Oct 15 17:35:37 reduz: http://developer.android.com/reference/java/util/ServiceLoader.html ? Oct 15 17:35:50 Then live with your choice Oct 15 17:36:01 -_- Oct 15 17:36:07 lol Oct 15 17:36:20 SimonVT, you are now labeled "not use friendly" XD Oct 15 17:36:52 Quietwalker, oh this seems like it Oct 15 17:36:54 Last issue. Android emulator in mac doesnt respond to user input. A real device works properly.... any ideas? Oct 15 17:37:04 http://i0.kym-cdn.com/photos/images/newsfeed/000/011/296/success_baby.jpg?1251168454 Oct 15 17:37:27 hmm, I've just never bothered to use the Android emulator Oct 15 17:37:51 And this isn't a user channel, it's a dev channel.. You're expected to have a clue Oct 15 17:37:51 the Android emulator has been causing me problems recently as well. Just try to stick to testing on your device Oct 15 17:38:26 Im asking devs issues mostly... Oct 15 17:39:18 never tried to run the emulator on a mac. Oct 15 17:39:30 it sucks there too Oct 15 17:39:35 probably :) Oct 15 17:40:00 not probably, definitely :) Oct 15 17:40:10 :( Oct 15 17:40:31 even with the reality distortion kext loaded Oct 15 17:40:32 Quietwalker, where do i create this META-INF/services/file in the android project? Oct 15 17:40:54 Ever tried the cross mobile dev frameworks? What do you think about them? Oct 15 17:41:46 there are a lot of frameworks. thoughtworks just released one too. on a spectrum of mobile web / mobile app / hybrid … Oct 15 17:43:11 Which do you think are the best? Oct 15 17:43:37 i dont have an opinion. you can check this out Oct 15 17:43:38 http://martinfowler.com/snips/201210151007.html Oct 15 17:43:52 and visit the link in that article for a good summary on the approaches Oct 15 17:45:41 Gavilan2: http://codebutler.com/2012/10/10/configuring-a-usable-android-emualtor/ Oct 15 17:45:48 you may find this helpful Oct 15 17:45:55 That,s great, thanks Oct 15 17:46:19 Do you know if i can fins the talk in you tube or somewhere? Oct 15 17:51:19 hi Oct 15 17:51:57 anyone? Oct 15 17:52:27 what is the equivalent of udev on android in the role of populating /dev based on uevents ? Oct 15 18:00:36 hey guys Oct 15 18:01:03 i somehow seem to be too stupid to register a broadcastreceiver Oct 15 18:01:12 anyone willing to help ? :) Oct 15 18:03:55 no? :P Oct 15 18:14:34 anyone not afk? :) Oct 15 18:15:18 Aeefire: just ask your question instead of asking meta-questions. Oct 15 18:16:25 mkay, I want to create a simple broadcast receiver (which should get called by common "share" menus using android.intent.action.SEND in the manifest), but the receiver does not show up in any share menu.. Oct 15 18:16:55 http://pastebin.com/3c6U7tNi Oct 15 18:17:00 that's the receiver Oct 15 18:18:50 I've also tried setting the mimeType and stuff, but didn't help anything. Oct 15 18:21:27 I have a listview, and am using a custom adapter to fill it in. I can use layoutinflater.inflate() to inflate a view within the listview. But the listview contains a tableview, to which I want to add the elements. How do I do this? Can someone please help? Oct 15 18:29:35 here again, the question: http://stackoverflow.com/questions/12901763/broadcast-receiver-action-send-does-not-show-up Oct 15 18:31:26 Does anybody work with OpenGL ES? Oct 15 18:32:25 OpenGL ES, anyone? Oct 15 18:32:35 what about it? Oct 15 18:32:44 I have question. Oct 15 18:33:51 then ask your question :) Oct 15 18:33:55 broadcastreceiver anyone? ;) Oct 15 18:33:56 sogard: why not simply ask your question? Oct 15 18:34:01 I'm developing a 3D game for Android and I need to read the depths value from a texture that I have in the memory to achieve a 3D selection, but until now I'm having problems getting that value. Oct 15 18:34:09 ( http://stackoverflow.com/questions/12901763/broadcast-receiver-action-send-does-not-show-up :X) Oct 15 18:34:25 The problem is that I cannot get the value with glReadPixels. Oct 15 18:34:37 Aeefire: stop pestering; people will see and respond if they have an answer. That being said, I don't think you can use a BroadcastReceiver with ACTION_SEND Oct 15 18:34:46 Aeefire: I suspect you need to use an activity Oct 15 18:35:06 sogard: bind the texture to an FBO and then use glReadPixels Oct 15 18:35:11 but other apps use them too... i don't think all of them have a service running all the time (or similiar) Oct 15 18:35:23 what does that have to do with a service? Oct 15 18:35:29 hi romainguy_ Oct 15 18:35:33 you are the op around Oct 15 18:35:35 It's bound, but the function alway returns 0 or 0.0. Oct 15 18:35:46 always* Oct 15 18:36:03 oracle spy! Oct 15 18:36:05 sogard: can you share your code? Oct 15 18:36:11 one of my nick is banned from this channle Oct 15 18:36:16 Yes, of course. Oct 15 18:36:18 *channel Oct 15 18:36:22 i don't really get what you mean. I want my app do be able to receive data via other's "share menu"... that should be realiziable with a broadcast receiver, shouldn't it? Oct 15 18:36:22 no idea why Oct 15 18:36:53 Aeefire: you need to put your on an element Oct 15 18:37:20 Looney: and what is your other nick? Oct 15 18:37:29 ah lol... i thought i could do it "in the background" too.. hmpf, thanks still Oct 15 18:37:37 Xane-Person Oct 15 18:37:44 Aeefire: that would be a terrible user experience Oct 15 18:37:56 perhaps someone was using it while I was not around Oct 15 18:37:59 Looney: there is no Xane-Person on the ban list for #android-dev Oct 15 18:38:01 its just for personal use so i wouldn't care :) Oct 15 18:38:08 thanks still Oct 15 18:38:14 cool Oct 15 18:38:23 Aeefire: then set the theme of your activity to @android:style/Theme.NoDisplay or similar Oct 15 18:38:29 some day ago, I could not connet to freenode Oct 15 18:38:33 Xane-Person: were you just not identified? Oct 15 18:38:55 because I got error saying Xane-Person banned in #android-dev Oct 15 18:39:08 it sounds like you hadn't identified with NickServ yet Oct 15 18:39:11 but its solved now and I am happy Oct 15 18:39:14 thanks for the hint. Oct 15 18:39:14 it is Oct 15 18:39:17 http://pastebin.com/PE7yWP7m Oct 15 18:39:23 it has been for a while Oct 15 18:39:26 This is the important part. Oct 15 18:39:58 14:49 -NickServ(NickServ@services.)- Xane-Person is not registered. Oct 15 18:40:07 check again, Looney :) Oct 15 18:40:17 ok Oct 15 18:40:33 wow Oct 15 18:40:39 problem resolved Oct 15 18:41:29 I see you found my stackoverflow question.:D Oct 15 18:41:37 You're quick. Oct 15 18:46:34 still not working.. bla. Oct 15 18:46:54 is setting the mimeType for an intent-filter a must? Oct 15 18:48:58 romainguy, http://www.youtube.com/watch?v=Kgrt7XZ-BQw ? Oct 15 18:50:16 Aeefire: you can set it to */* Oct 15 18:50:37 sogard: that won't work Oct 15 18:50:44 sogard: OpenGL ES 2.0 does not let you read from the depth buffer Oct 15 18:51:03 evancharlton thanks, found out about a second before you said it :D Oct 15 18:51:36 That's how I knew it. That's why I posted the question on stackoverflow asking for another way to do it. Oct 15 18:51:53 Any ideas how I could read that texture? Oct 15 18:52:32 you could render your scene into a color buffer using a fragment shader that outputs the Z value of each fragment as a color Oct 15 18:52:45 that's how I did it to implement a depth of field effect Oct 15 18:53:54 Okay then, I'll do it like that. I need this to be able to place minions on a tilted 3d surface. Oct 15 18:54:11 With the use of the touchscreen, of course. Oct 15 18:55:47 Btw, can I ask you for a tip? Oct 15 19:04:11 Hello Oct 15 19:04:30 Please, I don't know how can I debug my program with adb logcat Oct 15 19:04:48 I use this command : adb logcat Test:V *:S Oct 15 19:04:54 But nothing are print Oct 15 19:05:09 i just use : adb logcat Oct 15 19:05:17 You need to first connect you devices. Oct 15 19:05:29 that too Oct 15 19:05:30 See if your devices is connected using this: adb devices Oct 15 19:05:43 If it is, it will show up. Oct 15 19:05:53 tech : but a lot of message are print Oct 15 19:06:09 I can't to debug my program because others programs print there error/warning Oct 15 19:06:12 oh you want to filter them Oct 15 19:06:36 Use eclipse, it filter logcat automatically. Oct 15 19:06:42 filters* Oct 15 19:06:51 or ddms Oct 15 19:06:55 sogar : I program with vim only Oct 15 19:06:58 Yes. Oct 15 19:07:16 And don't use eclipse Oct 15 19:07:21 theres also a python script which can color them or something. need to try that one myself Oct 15 19:07:25 i dont use eclipse Oct 15 19:07:38 all hail the vi Oct 15 19:07:44 no emacs Oct 15 19:08:25 Try adb logcat Test:S *:S Oct 15 19:08:28 tech1: can you give me this script ? Oct 15 19:08:28 I tried with grep Oct 15 19:08:28 adb logcat | grep Test Oct 15 19:08:33 I meant Test:D Oct 15 19:08:39 D is for debug. Oct 15 19:08:46 V is for verbose. Oct 15 19:08:52 (Test is my project's name) Oct 15 19:09:05 I know, of course. Oct 15 19:09:45 It print nothing Oct 15 19:09:57 only "beginning of /dev/log/system" Oct 15 19:10:01 im looking for the script. i bookmarked it Oct 15 19:10:03 Try using the exact name of you app: Oct 15 19:10:22 Ths name is "Test" (for my terminal) Oct 15 19:10:30 adb -d logcat com.example.test:V *:S Oct 15 19:10:59 http://jsharkey.org/blog/2009/04/22/modifying-the-android-logcat-stream-for-full-color-debugging/ Oct 15 19:11:19 http://sprunge.us/BYC Oct 15 19:11:27 (my AndroidManifest.xml) Oct 15 19:12:10 what Android phones, even older ones, are known for being built like tanks? Oct 15 19:12:27 Sorry, I was disconnect to internet Oct 15 19:14:23 Hodapp: ? (sorry, I'm not english) Oct 15 19:17:00 Hodapp: if you mean hardware that is physically durable, then you can look for things that are milspec certified Oct 15 19:17:38 I don't know how to get logcat to work. Oct 15 19:17:46 greetings Oct 15 19:18:10 I'd need a stock 4.1.1 mms.apk and odex ASAP Oct 15 19:18:11 Thatks for the help, Romain Guy. Oct 15 19:18:29 forum.xda-developers.com Oct 15 19:18:42 Gaulois94: To say that something is built like a tank is to say that it is very strongly-built, durable, and capable of surviving a variety of adverse conditions. Oct 15 19:18:47 There you can find/ask for the thing you need. Oct 15 19:19:11 thank you sogard Oct 15 19:19:40 Hodapp: yes but what is the relation with my problem ? Oct 15 19:19:52 fnord`: Well, I'm less concerned about milspec, and more about which people have observed to be rather long-lived. Oct 15 19:20:12 Gaulois94: you... indicated that you didn't understand what I said. What I asked is unrelated to your problem. Oct 15 19:20:43 Ah, ok :) Oct 15 19:21:46 Hodapp: well, my girlfriend has now hurled 2 Droid A855s against the wall and screencracked them, and dropped 1, and none of them stopped working after that Oct 15 19:21:51 Well, nobody use logcat in console ? Oct 15 19:21:54 fnord`: noted. Oct 15 19:22:22 fnord`: ...but how did she get a 2nd and a 3rd to throw/drop? Oct 15 19:22:26 Gaulois94, I do Oct 15 19:22:35 Hodapp: i bought them on amazon :D Oct 15 19:22:43 This time I just bought the glass Oct 15 19:22:48 I'm going to replace the screen Oct 15 19:22:58 ThunderBird89: how can you filt the messages ? Oct 15 19:23:08 I want to see only my app's error Oct 15 19:23:30 My code is that : Log.w("Essai", "Coucou les Zéros !"); Oct 15 19:23:32 TextView x = null; Oct 15 19:23:34 x.setText("Va planter"); Oct 15 19:23:37 I usually dump everything so I have the most data available, and the load it up, say, Notepad++ and do a search/regex Oct 15 19:23:40 (it is just a test, I know where is the problem) Oct 15 19:24:01 but nothing are print with : adb logcat Test:V *:S Oct 15 19:24:14 (Test is my project's name) Oct 15 19:24:35 just use adb logcat, then. the default settings should let everything through Oct 15 19:24:44 it'll be a hell lot of data, though :) Oct 15 19:25:07 hello guys.. any devs from romania here? Oct 15 19:25:07 can someone help me out with a 4.1.1 MMS.APK and .ODEX? Oct 15 19:25:25 I can't seem to download a proper ROM image to extract them Oct 15 19:25:25 ThunderBird89: but a lot of message are print Oct 15 19:25:26 for any app Oct 15 19:27:16 I'm from Romania. Oct 15 19:28:08 (And I have a other problem Oct 15 19:28:16 I use a acer liquid gallant duo Oct 15 19:28:36 bla.. i want to save an inputstream to a file... is there any way to get the right size (atm i am using a byte[], but this allows only static sizes?!) Oct 15 19:28:37 ant and adb see et can use my device corretly Oct 15 19:28:50 but I can't the mount the phone's storage on my archlinux... Oct 15 19:29:00 Anyone use this device ? Oct 15 19:33:15 Does anybody know if/how I can get a sponsorisation for the game I am developing? Oct 15 19:33:37 maybe it depends if it's any good :) Oct 15 19:35:55 Of course it depends on that. Oct 15 19:35:59 you can try kickstarter, while people still take projects there seriously Oct 15 19:36:22 I know they do, but I don't need such a great sponsorisation. Oct 15 19:36:42 I wanted to try a little exclusivity with a smartphone manufacturer. Oct 15 19:37:08 I tried contacting Samsung but they don't get in touch with you. Oct 15 19:37:42 I imagine that you will find it difficult doing it that way unless you have a proven track record Oct 15 19:37:49 do you have other apps already out there? Oct 15 19:38:12 No, that is what makes it hard to speak with someone. Oct 15 19:38:45 But this is when I need it. After I launch my first game this sponsorisation will be redundant. Oct 15 19:38:57 if it's good Oct 15 19:39:19 do you have a demo of it we can try? Oct 15 19:39:31 Yes, well, if it wasn't good I wouldn't search for a sponsorisation. Oct 15 19:39:42 No, no demo yet. Oct 15 19:40:02 why do you need money? Oct 15 19:40:07 But we can keep in touch if you're curious. Oct 15 19:40:29 Because my mate I am working with would need an Android phone and a laptop. Oct 15 19:41:18 http://tumblr.com/xnv1ftj9m8 Oct 15 19:43:14 tell him to work in a bar for a few weeks Oct 15 19:43:17 a small question: my app have a widget. in android 4 all works fine, in android 2.3 there isnt widget. why?? Oct 15 19:43:24 that should get enough to buy a cheap second hand laptop Oct 15 19:44:15 He doesn't have enough time. He's in college. Oct 15 19:44:28 use college computers Oct 15 19:44:53 Don't get me wrong, it's not a neccesity, Oct 15 19:44:59 It would only help. Oct 15 19:45:27 I would concentrate the time on writing the app rather than searching for sponsorship Oct 15 19:45:31 just my opinion Oct 15 19:45:34 But thank you for you help! Oct 15 19:45:47 That's what we are doing. Oct 15 19:45:48 sogard: people usually have a working development machine before they go looking for venture capital. Oct 15 19:46:00 haha Oct 15 19:46:44 if you can't be bothered to work to afford one, no vc or sponsor is going to want anything to do with you Oct 15 19:47:30 moreso if you don't have a product. while it's true people get seed funding before coding anything, they'd still ask you "what other projects have you done?" Oct 15 19:47:51 so, here's the order things go: 1. dev machine 2. app 3. vc Oct 15 19:48:01 Proving wasn't the problem. Oct 15 19:48:24 Look, I was only tackling the idea. Oct 15 19:48:59 There is an app, but it's not ready to be a demo. Oct 15 19:49:43 I asked out of curiosity, not out of necessity. Oct 15 19:51:13 Thanks for the help, guys! Oct 15 19:51:30 ttyl Oct 15 19:52:17 my app have a widget, that widget works in android 4 but i cant see it con android 2.3, why? Oct 15 19:53:32 lol sogard Oct 15 19:54:34 xanScale: It's probably dependant on a later API version Oct 15 19:54:42 What widget is it? Oct 15 19:55:17 I can't believe sogard even bothered contacting samsung... Oct 15 19:55:20 in 2.3 there isnt in widget list Oct 15 19:55:32 offering them exclusivity on his non-existant game.... Oct 15 19:55:45 please can they give him some money for a laptop to develop it Oct 15 19:56:09 Dwarf i dont understand your question Oct 15 19:56:28 What widget is it? Oct 15 19:56:42 The name of the widget Oct 15 19:57:18 is an app contain a widget. http://code.google.com/p/trafficdroid/source/browse/ Oct 15 19:57:40 And said widget is? Oct 15 19:58:50 "Trafficdroid - Tratta stradale" Oct 15 19:59:29 QUERY: Is there an off-line version of the Android training/documentation material that you can take along where you have no Internet? Oct 15 20:02:03 Baylink: ANSWER: yes, it's in the SDK - if you run the SDK manager tool then you can choose to download a local copy that you can then browse using your fav browser Oct 15 20:05:32 Dwarf found solution. because app are in SD. if i push "move to phone" all works fine Oct 15 20:05:39 Hmmm. "Which I can then move over to my tablet, so I can read it there." Hope it's a PDF. :-) Oct 15 20:05:40 there is a more elegant solution? Oct 15 20:06:57 Alright great :D Oct 15 20:08:12 Dwarf the only way to have app in SD and widget working? Oct 15 20:08:53 Dwarf there is a way to have app in SD and widget working? Oct 15 20:09:55 I don't know, xanScale, I just began making apps today Oct 15 20:10:10 lol Oct 15 20:11:18 I get an error on line 11 saying "unbound prefix"? http://pastebin.com/aL42WBUE Oct 15 20:11:45 I want to set this animation to a button, first it scales it to whatever I said and then it rotates it 2 seconds into the scaling Oct 15 20:11:55 the anims are inside a set..what's wrong? Oct 15 20:12:16 project is under the 4.1 SDK Oct 15 20:14:06 works on 2.2 Oct 15 20:15:56 i love archos :) Oct 15 20:16:13 they removed the firmware update for my tablet :) Oct 15 20:18:34 ok, you need to set the whole thing inside another set for android > 2.2 Oct 15 20:19:06 nope, cross that; fuck Eclipse Oct 15 20:20:01 just noticed my log of this channel is about 96MB Oct 15 20:20:12 alright, sell it Oct 15 20:20:13 and i dont stay connected 24/7 Oct 15 20:24:39 WOW... my android seriously sucks >_> I'm back bufferring and I'm only getting 1-2 fps? Oct 15 20:25:42 Komak57: profile :) Oct 15 20:25:47 profile? Oct 15 20:27:13 Profile the app to figure out why it's so slow. http://developer.android.com/tools/debugging/systrace.html Oct 15 20:28:17 ._. it's a pretty cheap android device... almost all games are slow. But constantly drawing to the canvas takes quite a bit of time. Is there a way to draw directly to a bitmap instead? Oct 15 20:28:58 perhaps I should be looking for BitBlt Oct 15 20:35:38 hrrm Oct 15 20:37:29 so in a listview if you start a fling with a getLastVisiblePosition of say 10, then drag to 8, then release for the fling, when the scroll state changes from touch_scroll to fling the getLastVisiblePosition jumps from 8 to 10? Oct 15 20:37:40 why?!?! Oct 15 20:38:11 Can anyone recommend a code sample for communicating with a service in the same process (extending Binder) ? I wrote some sample code, and have been searching online, but the code doesn't appear to be able to connect to the service. Oct 15 20:40:39 If my application happens to have it's service instantiated in the background, my service won't be running on the main thread right? Oct 15 20:40:53 It runs in the application's host process on it's thread? Which happens not to be the main thread? Oct 15 20:40:55 hwrd|work: Acc to the docs, services do run in the same thread. Oct 15 20:41:03 * maslen is a nub though. Oct 15 20:41:30 /me thinks it's better always just to use a separate thread no matter what. Oct 15 20:41:57 You do not consider battery life to be important? Oct 15 20:42:16 maslen: What do you mean? Oct 15 20:42:22 android:process="name" on your will put your service in its own process Oct 15 20:42:28 maslen is right, service calllbacks run on the main thread. Oct 15 20:43:04 But what if a different app is in the foreground and your service starts running. It won't run on the UI thread right? It will run on the main thread of YOUR application which isn't the main thread? Oct 15 20:43:26 I kind of decide how much attention a process is going to hog, and if it's heavy enough, I'll create a thread to lighten the load. Oct 15 20:43:43 Sure, that makes sense. Oct 15 20:43:50 hwrd|work: yes, your app Oct 15 20:44:27 Okay, so a service isn’t guaranteed to run on the UI thread, only the main thread of your application (which may happen to be the UI thread) Oct 15 20:44:43 fnord`: Do you have any code samples for an Activity communicating with a Service ? Oct 15 20:45:05 maslen: official documentation has everything that you would need Oct 15 20:45:16 Hi everyone, i want to ask - i applied a ScrollView onto my activiity but i want it to be .. for example 4000 dp high. it dont work if i right-click and adjust the activiti's height . Oct 15 20:45:39 fnord`: I pulled the example from there, but it was raising exceptions about leaked services, and not connecting. Oct 15 20:45:54 maslen: take a look in commonsguy's cw-android repo on github. he probably has a good one. Oct 15 20:46:15 thanks, I am now Oct 15 20:54:43 hello Oct 15 20:56:39 fnord`: It doesn't appear to work properly either :(. Oct 15 21:02:39 * maslen is going to pastebin his sample Oct 15 21:05:28 Oh loader, my loader Oct 15 21:05:58 Guys, help how can i adjust the activits height for ScrolllView to for example 4000 dp or so, so it is LONG LONG scrollable window ?? Oct 15 21:09:37 WallnPall: er, what? Oct 15 21:10:00 WallnPall: have you tried setting the min height of the underlying view to be 4000dp? Also ==evancharlton Oct 15 21:11:07 yes i tried, but right after i asked a question i saw one thing, wait, and i tell you result, otherwise yes i tried and its not working Oct 15 21:12:23 WallnPall: do I dare ask what you're trying to do? Oct 15 21:12:53 but to answer your question, no, your activity cannot be larger than your screen, but you can make your root element a scrolview Oct 15 21:13:10 (and even if there is some way to make your activity larger than your screen, you shouldn't) Oct 15 21:14:03 Can someone help me understand why this code doesn't display the toast (simple example with services): http://ideone.com/tc0Cf && http://ideone.com/2FS9U Oct 15 21:14:36 guys .. Oct 15 21:15:08 if i shouldnt create my activity than is screen ... why the hell do we need whole ScrolllView component ? Oct 15 21:15:20 larger* Oct 15 21:17:34 there is a way to see inside app if the app are in SD or phone? Oct 15 21:19:17 fnord`: Could you take a look? Oct 15 21:22:04 WallnPall: something tells me you're mixing up your terminology Oct 15 21:22:20 WallnPall: your content can be larger than your screen, which is why ScrollView exists Oct 15 21:22:27 yes Oct 15 21:22:28 okay Oct 15 21:22:38 so i want to adjust the geight of the "content" Oct 15 21:22:44 height Oct 15 21:22:46 * Oct 15 21:23:46 a) why? why are you trying to make your content artifically large? b) What's stopping you? Oct 15 21:25:19 a) because i cant fit all the komponents into screen, and its better scrollable b) when i adjust the height of "view", current layout " or "acticvity" nothing hhappens Oct 15 21:25:26 Can anybody please tell me why my onclicklistener is not responding to clicks? http://pastebin.com/MkhskXHv Oct 15 21:26:03 Do dialogs the user uses controls in traditionally have a close button? Oct 15 21:28:23 freeone3000: cancel, yes. See http://developer.android.com/design/patterns/confirming-acknowledging.html and http://developer.android.com/design/patterns/settings.html Oct 15 21:28:34 mdwright: Thanks. Oct 15 21:28:35 qkzoo1978: use onClickListener() Oct 15 21:28:48 qkzoo1978: more here http://stackoverflow.com/questions/2367936/listview-onitemclicklistener-not-responding Oct 15 21:29:24 Great! Thank you! Oct 15 21:29:38 yw :) Oct 15 21:47:03 Hello, has anyone implemented this View on Android ? http://cdn3.raywenderlich.com/wp-content/uploads/2012/02/RotaryWheel.png Oct 15 21:49:47 hello, for some reason when I launch an app using the android-support-v4.jar, the vm is unable to find that library (I get a ClassNotFoundException) Oct 15 21:50:08 I've added it to the build path of my project in eclipse, is there anything I need to do to get it to be picked up by the emulator? Oct 15 21:51:53 hm, windows 8 is #1 on amazon for sw. i thought everybody said it sucked :P Oct 15 21:52:28 doesn't mean they're not going to get it Oct 15 21:52:42 R4md4c: wow, i just need to do the same, have you find anything ? Oct 15 21:52:48 they can't say it sucks Oct 15 21:54:01 g00s: it does Oct 15 21:54:58 r0ver: Cool!, All I found a tutorial that could help me on creating it, but I thought asking if there is an already implemented one http://mobile.tutsplus.com/tutorials/android/android-sdk-creating-a-rotating-dialer/ Oct 15 21:55:06 heh, and walmart seems to be selling it before the release date Oct 15 21:55:39 I have a copy of it Oct 15 21:55:45 through msdn Oct 15 21:55:50 Wouldn't be that suprising. Technet and MSDN subscribers have had it for a full month. Oct 15 21:58:31 *! . My screwup was that the service wasn't defined in the android manifest. Oct 15 22:03:40 does anyone have icon designer recommendations? Oct 15 22:03:50 I'm not looking for anything too fancy. Oct 15 22:10:02 whitby: Inkscape ? Oct 15 22:10:59 how do i modify existing layoutparams? Oct 15 22:11:13 oi Oct 15 22:11:17 hi; Oct 15 22:11:21 -; Oct 15 22:11:27 um nevermind Oct 15 22:11:43 romainguy: recall any fixed bugs in libdvm MarkSweep.cpp? Oct 15 22:11:53 I don't work on the VM Oct 15 22:12:07 thats a completely external project, no? Oct 15 22:50:22 whitby: i use inkscape also; you can find some things at the noun project too Oct 15 22:50:52 also http://www.yay.se/resources/android-native-icons Oct 15 22:52:04 The Noun Project looks useful. Oct 15 22:52:06 Thanks a bunch. Oct 15 22:57:07 I have a group of icons and I want to layout them like in this photo, any idea how can I do that ? Oct 15 22:57:58 http://cdn4.raywenderlich.com/wp-content/uploads/2012/02/final.png ^^ Oct 15 23:01:23 you will need to search the web for someone else's implementaion or write your own custom view/layout Oct 15 23:03:06 fnord`: I cannot find a one who implemented at least on what I've searched but I am trying to write my own so I want to know how to layout the icons that I have to be like the photo I dont think that shape will help me Oct 15 23:03:34 if you're just doing it for one project, then you should just generate 8 images of that dial Oct 15 23:03:46 I mean, if you're in a rush Oct 15 23:03:53 if you want to make something nice plan to spend a week or two Oct 15 23:04:08 you'll probably want to use trigonometry & patience Oct 15 23:04:30 or! I have an even better idea Oct 15 23:04:35 you generate 1 image of the dial Oct 15 23:04:38 and one image of the shadow Oct 15 23:04:45 the shadow simply moves over the dial Oct 15 23:04:49 and you don't deal with any individual icons Oct 15 23:05:12 hello guys.. any devs from romania here? Oct 15 23:06:12 R4md4c: do you see where I'm going with this? Oct 15 23:06:31 You can stick the background and the overlay image in a FrameLayout so they overlap and use RotateAnimation to move the pointer Oct 15 23:07:35 fnord`: Yeah but the user should choose from the icons inside the dialer, so I need to interpret the shadow position on which icon it points to, am I right ? Oct 15 23:08:00 R4md4c: yeah Oct 15 23:08:22 just divide the number of degrees or radians into 8 segments Oct 15 23:08:35 er, the angle, if you will Oct 15 23:11:56 I'll look into Inkscape, that seem to be a popular option. Oct 15 23:12:02 seems* Oct 15 23:13:50 sadly they haven't had a release in a long time. its not a well managed project Oct 15 23:13:57 Mad i wont be able to compile aosp form my ssd Oct 15 23:14:08 to limited of space Oct 15 23:15:01 fnord`: Do I overlay the images using absolute positioning ? Oct 15 23:15:43 nope Oct 15 23:16:01 R4md4c: just put them both in a FrameLayout together. Read the docs for FrameLayout so you understand why it works. Oct 15 23:21:01 i dont understand this http://phandroid.com/2012/10/15/google-could-be-tackling-malware-problem-with-baked-in-google-play-scanner-plus-other-imminent-play-store-changes/ Oct 15 23:21:19 if they can scan the apk when it is uploaded, why would they scan it again when you download it ? Oct 15 23:22:30 sideloading! Oct 15 23:22:45 does the play store handle anything installed in that way ? Oct 15 23:26:06 So Im having some memory problems in my Android app Oct 15 23:26:14 Oh noes Oct 15 23:26:25 If I get a memory dump of the thing, Eclipse MAT reports some interesting "suspect leaks" Oct 15 23:26:38 The class "android.content.res.Resources", loaded by "", occupies 2,858,696 (32.91%) bytes. The memory is accumulated in one instance of "java.lang.Object[]" loaded by "". Oct 15 23:26:49 Has anyone seen something like this before? Oct 15 23:27:08 As soon as the application starts, it eats up 6MBs of RAM -- so something isnt right Oct 15 23:27:22 Now, to be fair, it does have a lot of bitmap resources, but it doesn't load all of those out of the gate Oct 15 23:41:18 In my android application I have a JNI library that generates some data in a loop, on the Android side I use the Java Regex classes(Pattern and Matcher) to match a pattern which is user-defined. I have two class variables of type String which I set via JNI and then use the Regex classes to perferm to regex search. You see, I am missing in on an optimisation which will greatly speed up the Oct 15 23:41:19 generation process, but it is such that what I currently do to return the data just wont work. Oct 15 23:41:43 *perform Oct 15 23:42:51 I was thinking of creating a thread which's job will be to match to a regex pattern and return the data from JNI in large quantities(array or something). Oct 15 23:43:09 you can also do regex with pcre or something Oct 15 23:43:11 in jni Oct 15 23:43:16 er, in native Oct 15 23:43:21 and only return the matches Oct 15 23:43:30 unless you specifically need the java flavor of regex Oct 15 23:43:36 Yes, I have compiled libpcre for Android(I had to hack it to work though). Oct 15 23:43:55 but, it will add more size to the already included openssl library I provide. Oct 15 23:44:03 your biggest cost is almost always going to be translating from native to java, so try to avoid that Oct 15 23:44:17 so? I doubt 100k will make or break anyone Oct 15 23:44:32 ..and spongycastle Oct 15 23:44:51 you're living in a world where modern core google apps are 10+ meg Oct 15 23:45:33 i'd consider that a pretty good benchmark. There aren't many devices which have severely limited app storage anymore. Oct 15 23:45:42 yeah, I agree. Oct 15 23:45:48 I'd be more interested in performance and battery than worrying over 500k of code Oct 15 23:45:55 $0.02 anyhow Oct 15 23:47:36 Are there any ports of pcre I can use? I had to do some hacks in order to compile the library which I don't even know if it works. Oct 15 23:47:40 My scale: 3MB? awesome! 5MB? average. 10MB? tolerable. Oct 15 23:48:16 but it's relative to functionality. For example, a 10MB flashlight app is a problem. :-) Oct 15 23:48:54 all i can suggest is searching a bit re: pcre ports Oct 15 23:49:05 mrenouf|work: It might have a remote shell application as well Oct 15 23:50:06 'flashlight' is 1k:-) Oct 15 23:50:10 16k Oct 15 23:50:53 dragorn:Adding pcre solves one problem but imposes another. I need to update the UI with the progress, but since I will be using pcre to check for a regex pattern, it means I will be in JNI for extended periods(either terminated by user or a match is found). Oct 15 23:51:06 o think it's my smallest app. Oct 15 23:51:20 firefox is biggest Oct 15 23:51:49 diki: run your jni function in a java thread Oct 15 23:52:10 a runnable or you mean the other one? Oct 15 23:53:21 so long as you shim the interaction with the UI you can just make it a standard java thread, or at least, I've had success doing so Oct 15 23:53:24 A redesign of my Java code is in order then, right now it is written specifically to work with how my library is built Oct 15 23:53:35 well, yes, presumably you'll have to redesign some things Oct 15 23:53:56 but it's an option, if your pain point is the JNI translation and java-space pcre Oct 15 23:54:54 From java to JNI is easy, but from JNI to java..not so much. Oct 15 23:55:23 having a minor problem with android.intent.category.BROWSABLE, not sure what the best solution is Oct 15 23:55:51 my app needs to do openid login, so i open the login page in the default browser, and when thats done, i call myapp://test to return the user back to the app Oct 15 23:56:13 but the problem, is that its spawning a second instance of the Activity, and it doesnt close the page in the browser Oct 15 23:56:30 if the user hits back a few times, it can get back to the 1st activity, and then everythings buggered Oct 15 23:57:32 clever: I've seen that problem before. You can tweak your app main activity settings to make it reload an existing activity Oct 15 23:57:51 dragorn: which settings should i be tweaking? Oct 15 23:58:15 clever: android:launchMode Oct 15 23:58:34 clever: you can try android:launchMode="singleTask", but you probably want to look at the docs Oct 15 23:58:40 ah Oct 15 23:58:48 clever: (i had to go look it up on my code) Oct 15 23:58:49 yeah, once i know the name of it, i know where ot look in the docs for more info Oct 15 23:59:06 on the entry? Oct 15 23:59:08 clever: you could also embed a webview in yourself Oct 15 23:59:10 clever: activity Oct 15 23:59:30 i wanted to avoid using a webview because of cookie problems ive seen everywhere in my ipod touch Oct 15 23:59:40 every app has its own webview and its own set of cookies Oct 15 23:59:49 so if i open the youtube app, i need to login Oct 15 23:59:55 if i open youtube in the browser, i need to login again! Oct 16 00:00:04 and if i open youtube links in gmail, i need to login a 3rd time!!! Oct 16 00:00:13 fair Oct 16 00:00:50 it would be better, if you could embed the browser of the end-users choice into the page Oct 16 00:01:06 but that wouldnt be easy, for either party Oct 16 00:01:16 and super dangerous if you shared cookies Oct 16 00:01:17 but yeah Oct 16 00:01:38 the whole point was to share cookies, so they only have to login once Oct 16 00:01:54 right but if you let apps get at the cookie store outside of the browser context Oct 16 00:01:55 bad times Oct 16 00:02:05 yeah, you would need to protect it properly Oct 16 00:02:21 anyhow, launchmode, if you never need to have 2 copies of your main activity Oct 16 00:02:21 draw the browser inside the app, but not let the app access anything private Oct 16 00:02:30 maybe open the browser as a view that isnt full-screen Oct 16 00:02:32 i had the problem where plugging in usb would re-launch my main activity Oct 16 00:02:36 for permissions negotiation Oct 16 00:03:02 i dont see any reason to ever have 1 instances running at once Oct 16 00:05:51 singleTop looks best so far Oct 16 00:06:32 i forget what problem I had with that Oct 16 00:06:35 but try it and see Oct 16 00:07:21 in my case, the activity will always be the one on the top of my task, because it just spawned the browser Oct 16 00:07:26 so i just need to catch onNewIntent and handle it Oct 16 00:07:52 but i should still keep the onStart handling code too, incase the device is crappy and kills my task to run a browser Oct 16 00:11:00 In terms of code, what needs to be changed between using AIDL or a child of Binder? Oct 16 00:12:09 maslen: in my case, the Binder child simply returns a ref to the service, and nothing else Oct 16 00:12:55 maslen: i used this example, http://developer.android.com/guide/components/bound-services.html#Binder Oct 16 00:13:11 got my mapview to handle ~800 points without outright choking and dropping dead Oct 16 00:13:40 clever: what's trickier here is that the service needs to be able to call back into the activity Oct 16 00:13:55 maslen: i plan to add that to mine as well Oct 16 00:14:06 i'm thinking something along the lines of service.setActivity(this); Oct 16 00:14:15 that's what I did. Oct 16 00:14:24 probly making all of my activitys a subclass of ServiceUser or something Oct 16 00:14:32 Lol. Oct 16 00:14:36 Mind if I PM you? Oct 16 00:14:53 sure, but ive only been writing android code for under 48 hours :P Oct 16 00:16:08 E/AndroidRuntime( 206): Caused by: android.app.SuperNotCalledException: Activity {com.angeldsis.angeldsisremote/com.angeldsis.angeldsisremote.AngelDSISActivity} did not call through to super.onResume() Oct 16 00:16:13 oops Oct 16 00:16:14 * clever slaps self Oct 16 00:24:28 dragorn: hmmm, doesnt seem to have worked as the docs said Oct 16 00:24:31 let me try the other types Oct 16 00:25:33 not sure if it means the top of the stack for that task Oct 16 00:25:40 or the top of the stack for the whole os (the browser, not me) Oct 16 00:27:29 singleTask worked, onNewIntent called :) Oct 16 00:30:31 clever: yeah something about singletop didn't do the magic for me Oct 16 00:30:55 the docs arent clear on what it means by top of the stack Oct 16 00:31:21 but singleTask seems to be working, just need to get the right code into onNewIntent to redraw things properly Oct 16 00:32:02 and running api version 4 helps MASSIVELY Oct 16 00:33:22 dragorn: would you happen to know why onDestroyed never seems to get called/ Oct 16 00:33:33 everything ive seen close the app, does it 'improperly' Oct 16 00:33:56 clever: you can use finish() to destroy yourself, that should call it on the way out Oct 16 00:33:58 clever: afaik Oct 16 00:34:20 clever: generally you don't exit in android, you let the system decide if it's out of ram and kills you Oct 16 00:34:39 i was expecting it to call onDestroyed before doing so Oct 16 00:34:55 you'll get onPause Oct 16 00:35:00 beyond that nothing is promised Oct 16 00:35:43 so far, ive seen it get killed by doing 'adb install' and by using force close from the apps list Oct 16 00:35:56 ive yet to see any way to close it properly, beyond adding a quit button myself Oct 16 00:35:58 if you have the ram it can stay around for a long time Oct 16 00:36:11 brb Oct 16 00:36:12 clever: don't use 'quit buttons' Oct 16 00:36:22 fnord`: yeah, thats why i havent bothered adding one Oct 16 00:36:26 the whole point of the model is, the system knows best. If the system doesn't say you need to die, it's more efficient to leave you running than incur a full startup Oct 16 00:36:48 dragorn: yep, but why does it kill it improperly for events like 'adb install' ? Oct 16 00:36:49 clever: http://stackoverflow.com/questions/2033914/quitting-an-application-is-that-frowned-upon/2034238#2034238 Oct 16 00:36:57 he explains it well Oct 16 00:37:08 I find myself having to implement quit buttons on almost everything, but that's because almost all my code involves background services which you don't want to leave running Oct 16 00:37:25 ie USB drivers, other expensive things Oct 16 00:37:27 dragorn: onpause/stop should stop them, i would think Oct 16 00:37:40 dragorn: well if you're writing nerdware that's one thing I guess Oct 16 00:37:41 clever: no, the whole point of background services is they're decoupled from the UI lifecycle Oct 16 00:37:56 if you're writing software for mere mortals then you don't even want the to know there is a background thread. Oct 16 00:38:14 fnord`: except android can't reliably keep a background thread w/out doing notification BS anyhow Oct 16 00:38:21 otherwise they get elected too often for killing Oct 16 00:38:23 in my case, i'm using the service to share a thread between many activitys Oct 16 00:38:43 but i dont need the thread to continue past onStop Oct 16 00:39:00 clever: well for one thing adb install is a special case most users won't encounter Oct 16 00:39:11 it's basically a force kill Oct 16 00:39:24 does normal app installs/updates from the play store do the same? Oct 16 00:39:34 the lifecycle docs say you get pause, anything else is a courtesy Oct 16 00:40:49 i guess the others dont matter much Oct 16 00:40:58 the service is in process and dies along with the rest, no leaks Oct 16 00:41:13 just be sure to save things in pause :) Oct 16 00:41:14 bbl Oct 16 00:58:08 hey all Oct 16 00:58:30 as a new grad offered a job doing mobile dev in SF, how could i justify a counter offer for salary? Oct 16 00:59:32 say the salary won't pay for upkeep for your harem. Oct 16 01:00:25 no, dont ever bring up personal reasons like that :) your best bet is to position yourself above your competition; maybe loo kat glassdoor, ehatever Oct 16 01:00:58 see what other companies are giving their RCGs Oct 16 01:01:00 they gave me a really good offer, 112k Oct 16 01:01:10 its way about average starting salary for a new grad software engineer Oct 16 01:01:17 plus 5k signing bonus, 8k for relocation Oct 16 01:01:23 where in the country though ? Oct 16 01:01:34 San Francisco Oct 16 01:01:39 lol Oct 16 01:02:11 /me hands jfisk1987 a village people CD. Oct 16 01:04:29 jfisk1987: what are you expecting to pay for rent ? Oct 16 01:04:38 SF is expensive, probably $1400 Oct 16 01:04:50 single bedroom , is like 3100 Oct 16 01:05:23 id have a roommate Oct 16 01:05:27 well, i was just looking at a map, i hope i can try to find it again Oct 16 01:05:55 jfisk1987: if it's a good offer, why try to counter-offer? :) Oct 16 01:06:36 JesusFreke: Because the worst they can say is no Oct 16 01:06:55 like you mention, 112k starting is pretty damn decent Oct 16 01:07:45 the worst they can say is, OK, we'll go with the other guy, bye' Oct 16 01:08:51 It just seems overly.... greedy. granted, this is America. home of the free market Oct 16 01:09:22 salary negotiation is standard fare though Oct 16 01:09:50 I've never negotiated. but maybe I'm "doing it wrong" Oct 16 01:09:52 * JesusFreke shrugs Oct 16 01:10:33 its not the end if you dont negotiate either. if you kick ass, just ask for a raise Oct 16 01:10:58 yeah I know, but ive heard its good practice to always ask for a bit more just to see what theysay Oct 16 01:11:15 well, i always ask what their range is before giving my range ;) Oct 16 01:11:20 but every time I've moved jobs (except the first), it was a significant bump in salary over my previous job. significant enough that I was happy :) Oct 16 01:11:46 jfisk1987: and you have apps on the market right ? Oct 16 01:12:10 g00s: yeah I have an app thats actually in negotiations to be sold Oct 16 01:12:12 well, i made an assumption you are doing some android stuff Oct 16 01:12:23 so im thinking i would justify the increase based on my experience Oct 16 01:13:03 i made my app originally for android and the newer version ported it to iphone and cut the android version, sine it wasnt for profit and i didnt have time to keep up the maintainence on both Oct 16 01:15:50 jfisk1987: try reading through some of these http://www.hnsearch.com/search#request/submissions&q=salary+&start=0 Oct 16 01:16:14 like this one http://www.kalzumeus.com/2012/01/23/salary-negotiation/ Oct 16 01:30:48 hmm, is there any way to shut down from 'adb shell'? I see that I can reboot, but I'd rather turn the device off, and as it's an MK802 I don't know how else to achieve this Oct 16 01:35:50 Hodapp: doesn't it have something like halt or shutdown? Oct 16 01:36:04 BtbN: No on both. Oct 16 01:36:10 init? Oct 16 01:36:31 huh, no init, no telinit Oct 16 01:36:51 reboot -p Oct 16 01:38:34 hmm, it's still displaying Android, but I can't do anything in the shell session I had open or start any new ones... I guess that counts as halting Oct 16 01:39:25 reboot -p makes it shutdown very hard, without deinitlizing anything Oct 16 01:39:44 no idea if that's good for the phone Oct 16 01:39:49 eep Oct 16 01:40:08 I just want a way to make sure everything's synced to disk so I don't mess up the FS Oct 16 01:40:16 sync Oct 16 01:40:31 that command is definitely present? Oct 16 01:40:36 should ber Oct 16 01:40:37 -r Oct 16 01:40:56 no idea if it need root Oct 16 01:41:09 pretty sure I have it at this shell Oct 16 01:42:10 good, sync is available Oct 16 01:50:14 http://hodapple.com/files/linux-dmesg-mk802.txt - dmesg from an MK802 if anyone's curious Oct 16 02:10:37 Hey quick question. If I write an application for Android, how easy would it be to port the exact same thing to iOS? and can I create the application for PC as well? I know I will have to rewrite the controls for different devices, but as far as generally porting the application to different OSs how hard is it? Oct 16 02:11:08 Would I have to completely rewrite my app for a different OS? Oct 16 02:11:35 zymaster: depends on your application. It can go from significant chunk of code getting reused, to a complete rewrite Oct 16 02:12:38 p_l: I intent to write a 3-D game which runs on a multiplayer server. Probably going to take a little over a year to develop so I don't want to have to rewrite the whole thing, that would be a nightmare. Oct 16 02:13:07 zymaster: then you're in pretty lucky situation, compared to some other applications Oct 16 02:13:23 p_l: in what way? Oct 16 02:13:41 sorry for asking stupid questions but I;ve never developed for anything other than PC before Oct 16 02:14:32 you can code a lot of it in c which is portable between android and ios native frameworks Oct 16 02:14:44 c and opengl es Oct 16 02:14:49 the network code (with some small changes) and game logic should be in general easily portable between Windows, OSX/iOS (those two don't differ that much), Linux and Android Oct 16 02:15:41 graphics code will require some intensive tweaking, and possibly some wrappers and conditional compilation (GLES on mobile devices, GL on PC/Mac, tweaks to make it run sensibly on different hw etc.) Oct 16 02:17:07 device i/o will require rewrite (except for porting between iOS and OSX, where differences should be small). Audio will require severe rewrites as well, unless SDL works properly (then it might alleviate a bit from the input devices) Oct 16 02:18:08 p_l: Ok at least it should be fairly easy to port from Windows to Linux to OSX since they all run the standard JVM Oct 16 02:21:12 zymaster: depending on JVM is counterproductive in this case, IMHO Oct 16 02:30:32 p_l: why wouldn't Java be a good idea? It's much more crossplatformable and Android is Java so there would be a lot more code that could be copied. Oct 16 02:32:44 can we boost earpiece volume or is that restricted? Oct 16 02:32:53 speaker volume is doable Oct 16 02:34:14 Volume+ onle boost speakers Oct 16 02:34:20 only* Oct 16 02:37:26 im starting a computer club at school and some people are interested in developing software for their android products and i was wondering what tools, books/references do you all use? Oct 16 02:38:14 eclipse IDE Oct 16 02:38:23 download the API Oct 16 02:38:31 follow instructions Oct 16 02:38:42 sekyourbox: see i tried that and i constantly get errors Oct 16 02:38:45 ill try again Oct 16 02:39:22 http://thenewboston.org/list.php?cat=6 Oct 16 02:39:58 the android adt from google right? for eclipse Oct 16 02:40:06 what errors? Oct 16 02:40:22 follow the video Oct 16 02:40:25 Orii: commonsware has good ebooks, might be able to get a package deal for the club... or be naughty and share a bit, since there's no DRM, but I wouldn't suggest that Oct 16 02:40:47 Orii: uninstall and start at step 1 in the video Oct 16 02:40:54 its a mac but it should get you there Oct 16 02:41:03 zymaster: a lot of the code I mentioned as portable would be still portable in C (if written well). It's also the code that will deal with least-variable APIs Oct 16 02:41:22 my question? Oct 16 02:41:24 :D Oct 16 02:41:28 oh nevermind. weird. yeah the other day i tried it and it gave me errors Oct 16 02:41:31 works fine now Oct 16 02:41:32 thanks Oct 16 02:41:38 Orii: needs a reboot Oct 16 02:41:43 the remaining stuff on portability scale is dealing with difference in APIs etc (which is where, on android, java shows up) Oct 16 02:41:44 ;) Oct 16 02:42:37 what languages do you all use? im willing to work with java but i would really prefer use another. Oct 16 02:42:41 Java Oct 16 02:42:52 Java Oct 16 02:42:57 if you're introducing people to Android programming, you *must* use Java Oct 16 02:43:32 damn....hey i thought ruby was being used a lot in mobile application development Oct 16 02:43:43 not at all in the slightest whatsoever Oct 16 02:43:45 Orii: where … did you hear that ? Oct 16 02:44:01 it might be used a lot for server-side support for mobile apps... Oct 16 02:44:02 a while ago....when i was first reading of ruby Oct 16 02:44:07 havent really touched it since Oct 16 02:44:28 * Leeds senses a little blind-leading-blind situation Oct 16 02:44:37 well alright java it is Oct 16 02:44:53 though what other languages could i use? Oct 16 02:44:57 Java Oct 16 02:44:58 well, i am sorry that the computer club at school will damage people's intellects with Java Oct 16 02:44:59 nothing else Oct 16 02:45:24 g00s: hehehehe Oct 16 02:45:43 it could be worse, they could be starting out on VB i guess Oct 16 02:45:44 at least Android APIs aren't so braindamaged most of the time Oct 16 02:45:46 my problems with java slightly stems from dislike of oracle and the huge pain it takes to install on freebsd so im sure i can suck it up for my peers Oct 16 02:46:25 I'm pretty sure that Android development isn't actually supported in any way on freebsd Oct 16 02:46:30 you're really coming at this wrong Oct 16 02:46:38 omg, morgan kaufman wants $89 usd for this damn ebook ... Oct 16 02:47:04 Leeds: lol no this is a past experience Oct 16 02:47:07 nothing to do with now Oct 16 02:47:25 though why couldnt i use eclipse on freebsd to development? Oct 16 02:48:09 you'd have to run under Linux emulation, and any time there was any issue with anything, the only valid response would be "you're on a completely unsupported platform, good luck, bye" Oct 16 02:48:54 well good thing development would be done in general on either linux or windows machines Oct 16 02:49:50 if you're starting the club... blind leading blind applies Oct 16 02:50:30 learning together and it just isnt for android development either. just a few want to work with it. Oct 16 02:52:47 [2012-10-15 22:50:34 - DeviceMonitor] Sending Tracking request failed! Oct 16 02:52:51 my hobby: watching acts of vandalism on youtube that I didn't get to do when I was a kid Oct 16 02:52:52 just got that error Oct 16 02:54:36 http://www.youtube.com/watch?v=_3uqkFhnmb0 Oct 16 02:54:48 Orii: is this first exposure to programming for many ? Oct 16 02:56:31 g00s: yes Oct 16 02:56:36 not just programming though Oct 16 02:56:42 basic stuff Oct 16 02:56:47 then all the way to pentesting Oct 16 02:56:55 whatever they are interested in we will do Oct 16 02:57:33 Orii google "teaching java with android programming" i believe there are a few courses with websites that do more or less what you are doing, you can use the lectures notes etc Oct 16 02:57:43 great Oct 16 02:58:41 Orii: cool. well, not android specific, but i saw this the other day for beginners http://worrydream.com/LearnableProgramming/ Oct 16 03:00:01 the key is to come with a list of feasible projects, because you'll learn most by actually coding. Start off with simple things (sound boards, fortune teller, tic tac toe etc) and as the club progresses you can work on more complicated projects (android app interface for the school, assuming you are in college, you can do stuff like auto notify when class seat opens during registration Oct 16 03:00:01 etc etc) **** ENDING LOGGING AT Tue Oct 16 03:00:01 2012