**** BEGIN LOGGING AT Thu Aug 29 02:59:58 2013 Aug 29 03:07:47 got a arm forth compiler im writing here, i assemble and link with armv6j-hardfloat-linux-gnueabi its fine but when i use arm-linux-androideabi it segfaults at the end of the link Aug 29 03:09:50 write(2, "*** [a4] Segmentation fault", 27*** [a4] Segmentation fault) = 27 Aug 29 03:09:50 w Aug 29 03:09:57 w00t segv! Aug 29 03:09:59 thats from strace make Aug 29 03:10:20 and i think its arm-linux-androidabi-ld thats segfaulting Aug 29 03:10:40 yet armv6j-hardfloat-linux-gnuabi-ld does not segfault Aug 29 03:12:01 oh. androids tools ar arm v7a. should i try with -march=armv7a ? Aug 29 03:14:18 nope. does not help. androids ndk tools segrault when building from my sources Aug 29 03:17:24 had -march=armv6 but noticed the ndk used v7a so set it to that and it still segfaults Aug 29 03:17:43 not sure if code compiled -march=armv7a would run on a PI :) Aug 29 03:35:20 Should I create a new alias for each application I write, or is using the same alias standard practice? Aug 29 03:36:58 Algorithm: alias? Aug 29 03:38:03 RyanM: when signing the app. I see that there is a keystore which I have read you should use for all your apps but I'm not entirely sure what the SOP for signing aliases is. Aug 29 03:42:15 Oh, for keys? It depends what your goals are. Just keep in mind that anyone updating the app will always need the private key, and you can never change your key once you release it. Aug 29 03:47:40 RyanM: Okay, thanks. So, if I understand correctly, you could have one keystore and a different alias for each app so only people responsible for a specific app have access? Aug 29 04:07:58 what's the lifecycle of a content provider like? Aug 29 04:08:07 how long do they stick around after use typically? Aug 29 04:10:35 i would think it would be similar to a bound service in another process Aug 29 04:11:03 if there are no active binders, the process hosting the cp may sit there Aug 29 04:11:09 cached Aug 29 04:11:12 or killed Aug 29 04:38:04 pfn curious, are you doing this in Scala? i'm sure you've noticed CPs have quite a bit of boilerplate. does scala help with that ? Aug 29 04:40:12 g00s, no, I'm enhancing keepassdroid, so I'm not converting it to scala Aug 29 04:41:11 https://gist.github.com/pfn/6374341 Aug 29 04:41:15 basically what I'm working with Aug 29 04:43:10 ladies... Aug 29 04:43:33 cp's = ? Aug 29 04:43:45 content provider Aug 29 04:43:58 isnt that the truth Aug 29 04:44:18 I'm not backing my content provider by sqlite, so it's relatively shortish Aug 29 04:44:26 still weighs in at 336 lines... Aug 29 04:45:44 I dont get the little android helpers for sqlite Aug 29 04:45:52 I mean it'd honestly be better if they gave you jack shit Aug 29 04:46:06 and you were responsible for including the java sqlite driver Aug 29 04:46:52 now the pain in the ass of my testing... writing a client app to work with my content provider :( Aug 29 04:47:42 pfn but does that cursor have to be shipped across process boundaries ? (PwCursor) ? Aug 29 04:49:51 g00s, yes Aug 29 04:50:31 found a fucking RETARDED bug in android today Aug 29 04:50:42 next button on keyboard in webview doesnt do shit Aug 29 04:50:52 and doesnt send keycodes Aug 29 04:51:03 sure you only ever see next on certain keyboards Aug 29 04:51:27 os tells it to focus View.FOCUS_FORWARD Aug 29 04:51:29 which doesnt work Aug 29 04:51:45 fixed that shit good Aug 29 04:51:49 I assume android does some magic to marshal cursor calls, so I don't need to do anything special Aug 29 04:51:50 hm, k AbstractCursor implements CrossProcessCursor, i always get confused by this Aug 29 04:52:13 g00s, indeed Aug 29 04:52:20 g00s, I assume it does all the marshalling for me Aug 29 04:52:57 pfn, i don't think so Aug 29 04:53:04 i think you have to fill the CursorWindow yourself Aug 29 04:53:12 try it, let us know how it works out Aug 29 04:53:16 if I use an AbstractWindowedCursor, sure Aug 29 04:53:18 but I'm not Aug 29 04:53:21 you try goos Aug 29 04:53:40 I've tried a few instrumented test cases, and they've worked fine so far, in the same process... Aug 29 04:53:49 now I need to write a test client app... Aug 29 04:54:01 then I can make keepassdroid useful on android... Aug 29 04:54:05 friggin' worthless thin Aug 29 04:54:06 g Aug 29 04:54:12 worst UX ever Aug 29 04:58:36 CPs are a pretty mad programming UX :P Aug 29 04:58:40 *bad Aug 29 04:59:02 i guess thats Programming Experience (PX) Aug 29 05:02:40 kinda begs for its own DSL Aug 29 05:04:20 ron_frown have you played around with vagrant yet ? Aug 29 05:04:48 uhh havent heard of that yet Aug 29 05:04:59 puppet / chef / vagrant, etc Aug 29 05:07:10 ? Aug 29 05:07:24 url? Aug 29 05:09:10 http://www.vagrantup.com/ Aug 29 05:10:37 I dont get it Aug 29 05:11:07 usually the way I roll, I run into a problem, and find a solution Aug 29 05:11:09 i guess i cant ask you about it then :P Aug 29 05:11:22 this kinda reminds me of shit like maven and shit Aug 29 05:11:33 I just havent needed any of that crap Aug 29 05:11:42 seem like solutions to problems that dont exist.... for me anyway Aug 29 05:14:26 i dont quite understand how its different than a regular vm yet, but i keep hearing people talk about it. i'm also trying to see if it would make life easier ;) Aug 29 05:14:45 i mean, like just having a repo of vms Aug 29 05:21:46 people like to cling on to everything without using any discernment Aug 29 05:21:51 I mean look at node Aug 29 05:21:56 g00s: its not different, it runs in virtualbox, the thing is you can include a vagrant file in a project and people can get all the infrastructure up and running for a project immediately Aug 29 05:21:59 node is definitely a neat little play thing Aug 29 05:22:04 but at the same time Aug 29 05:22:18 I've yet to see anything I couldnt do elsewhere and integrate with other systems like 50x better Aug 29 05:22:34 joyent love node Aug 29 05:22:45 people like to bust a nut over the latest and greatest Aug 29 05:22:56 even if the latest and greatest is pointless Aug 29 05:23:21 ugh, I can't have test-only assets in android tests? wtf Aug 29 05:24:17 I also file twitter and reddit into exactly the same categories there Aug 29 05:24:19 so what do I know Aug 29 05:25:04 heres what Id say about vagrant Aug 29 05:25:10 the main page says Aug 29 05:25:19 now you can never say it doesnt work on my machine again Aug 29 05:25:23 uhhh ok? Aug 29 05:25:35 so the solution is doing all work in a vm? Aug 29 05:25:50 and if you are going to do it in a vm, youc an EASILY build appliances in vmware Aug 29 05:28:28 deebo so, dumb question then - what is the difference between using vagrant and just putting a VM image some place that everybody can grab and start in vbox/vmware/etc ? Aug 29 05:29:57 is it the /recipe/ to create the original vm image to begin with? Aug 29 05:30:18 and instead of people grabbing vms, they get the recipe and vagrant creates it? Aug 29 05:31:09 g00s: the vagrant file is a recipe of the environment required Aug 29 05:32:59 hot, my cross-process content provider just works Aug 29 05:33:16 [info] testing com.hanhuy.android.keepshare.tests (tests: 1) Aug 29 05:33:16 [info] - testProvider Aug 29 05:33:16 [info] [com.hanhuy.android.keepshare.tests] Uninstall finished Aug 29 05:34:01 hm Aug 29 05:34:39 https://gist.github.com/pfn/6374562 Aug 29 05:34:43 pretty reasonable exercise Aug 29 05:35:14 are you sure thats running in a different process :P Aug 29 05:35:18 of course Aug 29 05:35:33 content providers don't default to multiprocess Aug 29 05:35:43 and this is a separate app I just wrote Aug 29 05:36:06 content provider is in com.keepassdroid.dev (package); test app is com.hanhuy.android.keepshare Aug 29 05:37:25 u0_a48 16272 12636 228324 18996 ffffffff b7ee8997 S com.keepass.dev Aug 29 05:38:15 u0_a49 16486 12636 232888 23316 ffffffff b7ee8997 S com.hanhuy.android.keepshare Aug 29 05:38:18 different uid and pid Aug 29 05:43:23 now I hope my Binder assumption holds up Aug 29 05:56:50 excellent, looks like it holds water Aug 29 06:39:21 https://github.com/pfn/keepassdroid/commit/8b226a533849d198df0311c45dda2d2c3c89beab Aug 29 06:39:24 sweet Aug 29 06:40:44 man, that's so much code... Aug 29 06:44:51 why not implement insert? Aug 29 06:45:00 and update Aug 29 06:45:14 then you could limit selects to passowrd a 3rd party inserted Aug 29 06:45:42 *passwords Aug 29 06:54:24 alex_PP, future enhancement maybe, I'm not interested in adding now Aug 29 06:55:05 pfn why is target only 14 Aug 29 06:55:41 I didn't want to move it any higher for now, just minimum to let my stuff build Aug 29 07:04:03 not like there's any nice features for going higher, I think. Aug 29 07:04:10 :choose_window Aug 29 07:04:25 not for keepassdroid at least Aug 29 07:04:42 notifications Aug 29 07:06:04 Hi everyone, is there any way to make InstrumentationTestRunner return a proper return code ? If I got a OOM or ClassNotFound or other exceptions, it return 0 !! Hope for some tips. Thanks. Aug 29 07:06:14 those are gonna go in my app that will be a client of the content provider I'm contributing, canadiancow Aug 29 07:06:52 fish47, setup your own test listener and parse the result yourself Aug 29 07:07:36 canadiancow, I'm not gonna spend effort to enrichen their notifications, they're too hard to get to Aug 29 07:08:08 canadiancow, I'm gonna have some awesome rich notifications in my client app, though Aug 29 07:08:12 pfn: Thanks, you show me a path to go. Aug 29 07:08:48 fish47, see my test runner in android-sdk-plugin Aug 29 07:08:58 and do something similar Aug 29 07:25:28 Play store really needs to just check if the device supports GLES3 on the running device instead of using device code Aug 29 07:34:30 Sonicadvance1: it does if the manifest does it Aug 29 07:34:59 if the publisher restricted it to device, then well.. Aug 29 07:35:15 wonder if unity did Aug 29 07:35:23 Ill have to test with my app Aug 29 07:39:04 http://developer.android.com/guide/topics/manifest/uses-feature-element.html#glEsVersion <--- Aug 29 07:39:31 yea Aug 29 07:40:25 the following part about Google Play filtering includes info on how to check what your APK filters against Aug 29 07:40:44 thinking about just setting it to three and telling non gles3 devices to suck it Aug 29 07:41:19 although then that would be annoying when I support Tegra 4... Aug 29 07:41:45 Oh NVIDIA. Aug 29 07:42:26 bunch of bastards, not able to fit keplar in to the mobile TDP :p Aug 29 07:42:53 I'm just frustrated that they always seem to leave something out. Aug 29 07:43:08 Take Tegra 2. It's the only ARMv7 device that doesn't support NEON. Aug 29 07:43:53 yea. Tegra 4 doesnt support a gles3 feature that only requires driver support... Aug 29 07:46:17 *sigh* @ Tegra Aug 29 07:47:05 lol Aug 29 07:47:24 I just started taking an OpenGL class in school Aug 29 07:47:29 Are there any upcoming phones or tablets that are going to use the Tegra 4? Aug 29 07:47:38 Maybe I'll write that game I always wanted to...in OpenGL ES Aug 29 07:47:54 bunches jfpoole Aug 29 07:48:06 Ologn is it a CG class with application to GL or really a GL course ? Aug 29 07:48:10 just check glbenchmark it shows most of them Aug 29 07:48:35 g00s, CG where we'll be writing OpenGL programs Aug 29 07:48:47 still trying to get someone yo donate me a project shield Aug 29 07:49:00 to* Aug 29 07:49:22 The teacher is head of the CS department...I had him before, he is good...he wrote Schaum's outline of Computer graphics and other books Aug 29 07:50:11 [A Aug 29 07:50:15 should be exciting Aug 29 07:51:04 Huh. GFXBench main site is pretty slick. Aug 29 07:51:14 My game idea is an OpenGL ES C++ codebase for Android...maybe I'll start with tower defense, then move on to something like Age of Empires Aug 29 07:51:32 Yeah, good luck with that. Aug 29 07:51:38 I'm taking an AI course which discusses pathfinding and the like as well so that will help Aug 29 07:52:11 Well, I have to code something for the class...so I'll see how far I get Aug 29 07:53:19 can anyone tell me why the android ld segfaults when linking my .o files (android ndk, asm sources) Aug 29 07:53:47 same sources assemble and link just fine using the crossdev arm toolchain in gentoo Aug 29 07:55:08 Ologn which uni ? Aug 29 07:55:50 g00s, Queens College in New York Aug 29 07:56:00 nice ;) Aug 29 07:56:13 i went to school in Rochester Aug 29 07:56:19 me too Aug 29 07:56:23 which school? Aug 29 07:56:25 rit Aug 29 07:56:36 Oh, I went to UR...in 1991/1992 Aug 29 07:56:43 good school :) Aug 29 07:56:51 Did you eevr go to Nick Tahoe's? Aug 29 07:57:02 why does that sound familiar Aug 29 07:57:13 "Home of the garbage plate" Aug 29 07:57:31 hehe Aug 29 07:57:39 i remember Dibella's , Wegmans Aug 29 07:57:46 man, Dibella subs omg Aug 29 07:58:06 Oh I used to go to Wegmans near UR Aug 29 07:58:33 They show you the campus in the spring...when you get there it is nice for a week, then it is under 5 feet of snow until May Aug 29 07:58:51 Or it seems like feet of snow any how... Aug 29 07:58:58 haha Aug 29 07:59:06 guess nobody here does any ndk dev :/ Aug 29 07:59:31 people in rochester were crazy; they drove better in snow and wore shorts unless it was below 0 (on campus, anyhow) Aug 29 07:59:34 I440r, I do Aug 29 08:00:03 I440r, what happens when you do a simple hello world NDK compile? Aug 29 08:00:13 Ologn, can you tell me why arm-linux-androideabi-ld segfaults when linking my project while armv6j-hardfloat-linux-gnueabi-ld does not? Aug 29 08:00:20 Can media player change the source ? Aug 29 08:00:33 im not developing C code. im not even linking in libc or startup files Aug 29 08:00:40 -nostdlib -nostartfile Aug 29 08:01:08 the problem is the linker from the android ndk segfaults when trying to write out the linked objects Aug 29 08:01:21 i hope i never have to use the NDK Aug 29 08:01:43 The NDK is not so bad, as long as you don't have to do certain things... Aug 29 08:01:55 like bluetooth Aug 29 08:01:58 ...like deal with non-UTF-8 languages... Aug 29 08:02:13 yay for no iconv support Aug 29 08:03:22 I don't mind the NDK for the most part, but the bugs drive me nuts. Aug 29 08:03:37 I wish Google would put more resources into it. I *think* it's just two engineers. Aug 29 08:03:41 Im actually dealing with a sigsegv due to non-utf8 stribgs Aug 29 08:04:05 those two engineers are overworked Aug 29 08:04:12 they should hire me to help Aug 29 08:04:23 :) Aug 29 08:05:03 doing anything with strings in C is painful as hell anyway Aug 29 08:05:05 jfpoole, do those bugs extend to the development tools themselves not working? Aug 29 08:05:38 I440r: Yes. Aug 29 08:06:06 actually just passing a non-utf8 string in to Java and it is xausing issues :p Aug 29 08:06:24 I440r you're better off writing a forth interprter on the jvm :P Aug 29 08:06:41 Sonicadvance1, I pass it back as byte arrays Aug 29 08:06:41 Sonicadvance1, what's the use case for that? Aug 29 08:06:47 jfpoole, any reason why i would not be able to run an executable on my android that was created usingarmv6j-hardfloat-linux-gnueabi-as/ld ? Aug 29 08:06:50 fun seeing all the lua projects that try to play nice on android Aug 29 08:06:53 g00s no. im not Aug 29 08:07:00 Sonicadvance1, not converting Strings in Java to UTF before working with them? Aug 29 08:07:20 I440r, different libc Aug 29 08:07:33 Mavrik, -nostdlib -nostartfile Aug 29 08:07:38 Or sometimes I pass non-UTF-8 words back as jobjectArray's of jbyteArrays Aug 29 08:07:46 so... any OTHER reasons? :) Aug 29 08:07:46 I440r, then no. Aug 29 08:07:50 :) Aug 29 08:08:32 Mavrik, Im pulling the strings from files. The strings representing game titles. the encoding is often SJIS Aug 29 08:09:16 mhm Aug 29 08:09:32 I try to never pass arbitrary encodings to C, it's just too painful to deal with Aug 29 08:09:55 gona be a bitch running gdb/strace on my android phone to actually DEBIUG this code tho :P~ (lol would anyone actualy DO that?) Aug 29 08:10:26 nah, other way around. I getting the strings in C and passing to java Aug 29 08:10:41 Sonicadvance1, oh. Aug 29 08:10:45 I440r: You're far enough off the beaten path that I'm not surprised it's crashing. What assembler did you use to produce the object files? Aug 29 08:10:53 Sonicadvance1, you need a box of cookies to get you over that then. Aug 29 08:11:15 Android is the only supported OS where we dont have iconv to convert the strings to utf8 before handling Aug 29 08:11:32 armv6j-hardfloat-linux-gnueabi-as Aug 29 08:11:35 Sonicadvance1: What character set are the strings in when you get them? Aug 29 08:11:47 i.e. the one provided by the gentoo crossdev toolchain Aug 29 08:11:49 I440r: That's not part of the NDK is it? Aug 29 08:11:52 Oh. Aug 29 08:12:03 Yeah. Use the NDK-provided assembler. Aug 29 08:15:23 jfpoole, cp1252, SJIS, UTF8, or UTF16 depensing Aug 29 08:15:39 depending Aug 29 08:16:10 Hm. Aug 29 08:19:19 ha, omg i came across an insane bug in vim Aug 29 08:19:49 lets put it this way, i'm having a moment of crisis of faith in this pos Aug 29 08:20:08 any one familiar with mediaplayer help Aug 29 08:20:25 I am building an audio player my code is free of bug Aug 29 08:20:43 it runs well with no error and exception but I can not hear any output Aug 29 08:22:57 how can i check if the emulator is having correct sound setting Aug 29 08:23:50 "my code is free of bug" Aug 29 08:23:53 i love that Aug 29 08:24:51 DrSheep: hm Aug 29 08:25:15 DrSheep: can you help? Aug 29 08:25:30 DrSheep, Yea, my code is free of bugs as well, it just doesn't work on any Adreno hardware Aug 29 08:25:33 :P Aug 29 08:28:46 adreno.. spamming all the time @logcat ;-) Aug 29 08:28:57 having tons of messages in there about some updates Aug 29 08:29:54 this is my code Aug 29 08:29:55 http://pastebin.com/JiUdMtSP Aug 29 08:35:33 heya guys, quick question - I have a method which calls Intent.ACTION_CALL to call a phone number. It works nicely, and even on a test tablet device it'll fall back to adding the phone to the contacts. Aug 29 08:35:50 I want to know though if I can rely on that in all devices that do not have phone capabilities or will it crash more often than not? Aug 29 08:46:42 Tee_Pee:quesition: where is the raw folder located? Aug 29 08:46:58 res/raw Aug 29 08:47:37 Tee_Pee: yeah is it there by defualt Aug 29 08:47:48 I created it by myself Aug 29 08:48:12 Does audio files should be in "resources/raw" or in assets ? Aug 29 08:48:20 So what's the problem? Aug 29 08:48:59 Tee_Pee: I am trying to play an audio file from raw folder but can not get any output Aug 29 08:49:06 bluesm_ - I've used them from the assets folder Aug 29 08:49:13 but I see no r eason for them not working from raw Aug 29 08:50:05 int resID=getResources().getIdentifier(fname, "raw", getPackageName()); MediaPlayer mediaPlayer=MediaPlayer.create(this,resID); mediaPlayer.start(); Aug 29 08:50:07 Tee_Pee: how can i check if my emulator is having correct sound config? Aug 29 08:50:10 Tee_Pee: I could use "assetManager.list( )" method with the assets. But not with raw Aug 29 08:50:21 shadej - that code should work Aug 29 08:50:40 source: http://stackoverflow.com/questions/7499605/how-to-play-the-audio-files-directly-from-res-raw-folder Aug 29 08:51:42 hi, anyone here with experience in android low level api ? specifically ScreenshotClient ? Aug 29 08:52:01 http://stackoverflow.com/questions/3289038/play-audio-file-from-the-assets-directory Aug 29 08:53:31 Tee_Pee: the code you gave does not work either Aug 29 08:53:47 there is no any error message or exception Aug 29 08:53:55 but nor correct output Aug 29 08:54:41 shadej - try verifying that you actually properly load the file Aug 29 08:54:57 couldn't really help you without any code to test with Aug 29 08:55:08 I haven't worked that much with audio files either Aug 29 08:55:42 perhaps it's your emulator, try to create a visual cue that the file is playing Aug 29 08:55:50 or try testing on an actual device Aug 29 08:56:28 Tee_Pee: my code http://pastebin.com/CBdtzkt8 Aug 29 08:56:33 it is very short Aug 29 08:57:56 gimme a minute Aug 29 08:58:02 ok Aug 29 08:58:16 what are you playing, an mp3 file? Aug 29 08:58:32 Tee_Pee: yeah Aug 29 08:58:41 in that case your name ought to be greeting.mp3 Aug 29 08:58:43 not greeting. Aug 29 08:58:55 try that, I'll try to run the code myself in the meantime Aug 29 08:59:19 Tee_Pee: I have tried that but let me check again Aug 29 09:00:32 Tee_Pee: it raises an exception when I add the .mp3 Aug 29 09:02:43 hmpf Aug 29 09:02:45 it worked for me Aug 29 09:02:48 without the mp3 Aug 29 09:02:50 How can I create Uri from the path ? assets/u1.ogg ? Aug 29 09:03:16 I'm testing on an actual device though Aug 29 09:03:28 I just put a mp3 file into res/raw Aug 29 09:03:38 refreshed to make sure R.raw.greeting exists Aug 29 09:03:44 and ran it through your code Aug 29 09:04:16 http://pastebin.com/1v6HCeqy Aug 29 09:04:29 perhaps it's your emulator and perhaps the mp3 file is corrupt Aug 29 09:04:53 that being said, what you can try as a last ressort is to skip the int resID=getResources().getIdentifier(name, "raw", getPackageName()); step Aug 29 09:05:11 just write directly mp=MediaPlayer.create(this,R.raw.greeting); Aug 29 09:08:44 um, does anyone know Aug 29 09:08:56 is setAlpha(0) equivalent to setVisibility(INVISIBLE)? Aug 29 09:09:07 Mavrik: I don't think so Aug 29 09:09:14 in fact, I think it's probably worst you can do Aug 29 09:09:30 annoying. Aug 29 09:10:24 Mavrik: I am not sure, but iirc the butter talk correctly, just setting alpha to 0 will give you invisibility of the object, but it will still be rendered, resulting in an overdraw you don't need Aug 29 09:10:45 mhm, I'm trying to find relevant draw code in source Aug 29 09:10:49 not having much success Aug 29 09:11:51 morning all Aug 29 09:14:47 hmm, and my ListView item animations aren't animating the dividers, blergh Aug 29 09:36:40 What's to use for REST client and XML to Java Object/ Aug 29 09:36:47 ?* Aug 29 09:37:10 What? Aug 29 09:42:44 Hello, just curious,anyone know if Google Play Store updates the App you upload in a specific way ? (as in, does google push out the update to everyone or just a single person) Aug 29 09:48:24 It goes out to everyone. Aug 29 09:50:37 Unless you do a staged rollout, where you can choose to push it out to 5%, 10%, 25%, 50% or 100% of people Aug 29 09:51:46 Alright,weird. Some people in our company only got the App Update after 2 weeks, one still is mising his Update Aug 29 09:52:10 is there any documentation about this that I can show to my supervisors (which didnt trust me,in my initial judgement that it is like you guys said) Aug 29 09:52:21 Did they originally install it from the Play Store, or from an APK you distributed? Aug 29 09:52:29 I'm using android.support.v7.actionbar and my options menu doesn't show on 2.x devices, only 4.x. is there anything obvious I might have missed? Aug 29 09:53:04 Play Store 99% JuiceSSH Aug 29 09:53:09 but I wasnt with the company back than Aug 29 09:55:26 In that case it's not something i've run into before Aug 29 09:55:55 i am trying to play a mp4 file located on a website using a MediaPlayer object. I am given the error: (1,-2147483648) when prepairing the MediaPlayer object - any advices ? Aug 29 09:56:09 well,thats not suprising as well Aug 29 09:56:23 we get the app from our supplier,I forward it,it gets resigned and uploaded Aug 29 09:56:26 being testet on a 4.2.2 emulator btw Aug 29 09:56:39 too many people having their hands in the process :/ Aug 29 09:57:13 But if I could get written documentation (somewhere) regarding this, I'd love to have it. Otherwise my Supervisor will never take it serious :/ Aug 29 10:01:36 hey guys, ive been testing my app using genymotion, looks fine in even half hd and full hd, but then when client tries it on his hd samsung, everything is really small, why would it display something different to my emulators? its like on the emulators everything has nicely worked but on device things are tiny etc Aug 29 10:02:40 seems like its mostly samsungs that it happens on, i dont know a way to get a specific emulator for a device like samsung s3 or whatever tho ;/ Aug 29 10:08:25 Whoever though it was a good idea to throw an expression if asking for a substring beyond the actual string length needs to chill down. Aug 29 10:09:04 throw an expression? like scowling? Aug 29 10:09:17 lol, *exception... Aug 29 10:10:45 we could do that, android could show a frowny face whenever an application crashes Aug 29 10:15:36 Is it possible to inject a javascript object into a namespace? I tried the following but my object is not accessible: mWebView.addJavascriptInterface(new JavaScriptFacade(), "window.android.facade") Aug 29 10:16:48 and then call window.android.facade.someMethod('foo'); from javascript Aug 29 10:18:51 anyone know how to get an apk to the device on samsungs remote test lab Aug 29 10:34:58 For the same TextView I get getLineCount() 2 on Android 4.x but 3 on Android 2.x - anyone else seen this? This is after the TextView is layed out... Aug 29 10:36:07 it's got minline and maxlines set to 2 and ellipsize at the "end" Aug 29 10:45:05 Is there a way to open a PDF in the pdf app but always starting at page 1? Aug 29 10:45:28 there is no "the PDF app" Aug 29 10:46:10 Bear10: make a new pDF Aug 29 10:46:33 Leeds, well any PDF reader, i'm referring to something generic Aug 29 10:46:48 SpeedEvil, that's the only way huh, or disabling the configuration / setting in most apps of restore on last page viewed Aug 29 10:46:52 <_flow_> Are gradle builds supported with eclipse or do I have to use Android Studio? Aug 29 10:47:32 You could build an open source PDF app with 'go to page' support in some manner Aug 29 10:49:02 SpeedEvil, yeah makes sense, thanks :) Aug 29 10:50:27 If I want to connect a android phone with a pc app using internet, is there any service that makes this easy? (I mean, phone & pc pair and then the pc can send data to the phone & vice versa whenever it is needed) Aug 29 10:54:13 Bear10: point is there is no standard PDF reader, so even if you found a way which works for one device/app, it wouldn't necessarily work for any other combination Aug 29 10:54:44 Leeds, yeah i understand that, but if there was one that did support such functionality, i'd just have my client install it and use it Aug 29 10:54:46 as it's an inhouse app Aug 29 10:55:12 ah... well, I don't know if it's possible with any, sorry... Aug 29 10:55:25 can I use GCM for this? Aug 29 11:03:24 `phasip: For PC/Server to device, yes. For device to PC/Server you need to use other ways, typically an outgoing REST call to your PC/Server (or mediator, if both device and PCs are typically NAT'ed or similar). Aug 29 11:03:28 phasip: For PC/Server to device, yes. For device to PC/Server you need to use other ways, typically an outgoing REST call to your PC/Server (or mediator, if both device and PCs are typically NAT'ed or similar). Aug 29 11:06:07 goodmorning Aug 29 11:07:30 So I'm having some lifecycle challenges (service/activity/fragment). Whenever I select my app from the taskbar, everything is ok. But when I "restart" it from the launcher, things get restarted (e.g. the service). Any magic flags in the manifest I can set that will make restarting behave as selecting the running instance from the taskbar if running already? I've tried launchMode singleTask and more, but Aug 29 11:07:32 I'm basically guessing. Aug 29 11:08:19 hello Aug 29 11:11:02 Right, building iconv as a static library worked out pretty well Aug 29 11:17:36 upgrading to CM10.2 nightly, here goes nothing... Aug 29 11:19:39 DisplayMetrics' widthPixels will always return the shortest length, right? Aug 29 11:26:01 hi, i like to add a javascript interface to my webview that is at window.plugins.hereIsMyInterface. I tried to addJavascriptInterface(new JSObject, "plugins.hereIsMyInterface") but that doesnt work.. is it possible somehow? Aug 29 11:40:54 i am trying to play a mp4 file located on a website using a MediaPlayer object. I am given the error: (1,-2147483648) when prepairing the MediaPlayer object - any advices ? Aug 29 11:50:07 hello. This are three activities . http://i.imgur.com/tgM3phf.png .You select category then product then preferences. and click button to add it (returns to products). How could this be easier to exit from these three if you want ? Aug 29 12:14:47 kjeldahl: I have been looking at the GCM documentation and wonder if it actually is possible with either peers communication with eachother or having one server per peer. (I want the user to have one computer and one android device that communicate) Aug 29 12:17:03 phasip: If you PC can act as a server (accept incoming connections from the internet), you can do bi-directional push with GCM. Push to device using GCM, push to PC using REST. Of course device can also do pull from PC, but PC needs GCM to address device. Aug 29 12:17:19 If youR PC... Aug 29 12:17:45 hi, anyone here with experience in android low level api ? specifically ScreenshotClient ? Aug 29 12:18:20 Oh well, then I guess that won't work since it may be that both android and pc is behind a nat. Maybe I'll try to use stun Aug 29 12:18:39 If your PC can not accept incoming connections (e.g. no permanent internet connection, or NAT'ed), then you need a server to sit between (thatæ Aug 29 12:18:53 ..that's how most of these services work). Aug 29 12:19:44 How would you improve this app design? http://i.imgur.com/j3QaJSJ.png Aug 29 12:20:11 what does thumb mean? Aug 29 12:20:14 is it "done"? Aug 29 12:20:21 hi Aug 29 12:20:33 i need some advice plz Aug 29 12:20:40 kjeldahl: Allright, thanks! Aug 29 12:20:50 hokkaido, id that for me? Aug 29 12:20:51 phasip: yw Aug 29 12:20:52 is* Aug 29 12:20:56 zyngawow: yes Aug 29 12:20:57 I've never made a shopping list so I don't know what I would say about that Aug 29 12:21:09 I use colornote for shopping lists Aug 29 12:21:11 hokkaido, thumb? No, it is not finished yet. Aug 29 12:21:25 while shopping I can check things "done" Aug 29 12:21:33 colornote is ok but has some really annoying problems, imo Aug 29 12:21:50 hokkaido, ah, yes, that is a products list. Clicking the thumb you move it to the actual shopping list Aug 29 12:21:53 but I've used it for like two things in total, ever Aug 29 12:22:01 Zharf: it is not perfect, but it is sufficient for me. didn't want to spend time for looking for other free alternative. Aug 29 12:22:01 * Zharf doesn't normally make notes Aug 29 12:22:22 hokkaido, I don't think anything is ever "sufficient" (or "good enough") :) Aug 29 12:22:36 heh, ok. Aug 29 12:22:44 I find a Holo-ish design for a shopping list app a bit dull Aug 29 12:22:55 phasip: STUN or similar also require that both devices are online at the same time, not considering the complexity of getting a solid STUN implementation working across mobile networks... Aug 29 12:22:56 i have multiple activities, i want all activities to communicate with a single bussiness logic, and i want the logic to be able to send notifications to activities? how can i implement the logic? Aug 29 12:23:10 So yeah, any design improvements? Aug 29 12:24:05 bound service or global class? Aug 29 12:24:10 why is it that I get all my job offers when I already have a job Aug 29 12:27:39 kjeldahl: So basically I am screwed if I don't want to set up my own server? Aug 29 12:27:52 What could be the reason that an apk that I exported would not work on the real phone? Aug 29 12:27:57 (But work properly on the emulator) Aug 29 12:28:25 signing keys? Aug 29 12:29:10 oh, and the app just crashed upon working, and in another phone there was no message either. It just didn't run. Aug 29 12:29:16 I'll read about signing keys now. Aug 29 12:30:01 phasip: Yes. But a server is $20/month these days, so it's not that big of a deal if you ask me. At least assuming you're not doing latency-sensitive/high-bandwidth stuff. Aug 29 12:31:00 wait should I include this generatd keys file in the application or something? Aug 29 12:33:00 neuro_sys, your app starts and crashes at some random time? Aug 29 12:33:19 How to get the audios in order ? And play them one after the other / Aug 29 12:33:43 PatrickBic: It crashes immediately upon clicking on the icon. Aug 29 12:34:12 On one phone it gives the regular crash message. An another phone there's simply nothing happens as the icon is clicked. Aug 29 12:34:22 I'm cleaning my project, rebuilding and re-exporting now. Aug 29 12:34:43 kjeldahl: I just fund this: http://r2src.github.io/dyad/doc/ =) Aug 29 12:35:26 Dumb question, but if you get the official dev account (I dont have one yet, my company does,do not have access), do you get more information that isnt open to the general public? Aug 29 12:36:30 and additionally,questions regarding problems you may have with the app store Aug 29 12:36:38 phasip: Looks fine. But it's still making boatloads of assumptions about what is possible or not on the mobile networks, which typically vary a lot depending on the carrier. Aug 29 12:38:36 can someone telle me how I would go about importing this https://github.com/chrisbanes/ActionBar-PullToRefresh/ into my workspace to use with my android project? I always have trouble using this stuff when its not just a simple .jar library file Aug 29 12:45:20 I feel like writing hatemail to google about localization Aug 29 12:45:29 I DO NOT WANT ANY DOCUMENTS IN FREAKING FINNISH Aug 29 12:46:40 because....? Aug 29 12:46:46 because it's a crappy language Aug 29 12:46:51 wow Aug 29 12:46:52 hey Aug 29 12:46:53 the technical terms make no sense Aug 29 12:46:55 can you help me Aug 29 12:46:57 hi, it is possible to place multiple elements in AndroidManifest.xml with the same name but with the different targetPackage? Aug 29 12:47:16 smikloso .. have you tried yet? Aug 29 12:47:23 no :/ Aug 29 12:47:26 ... Aug 29 12:47:47 im not sayin i know...im just saying your answer would be solved by tring Aug 29 12:47:50 trying Aug 29 12:48:03 but can you help me Aug 29 12:48:11 someone ...anyone ....please Aug 29 12:48:21 understood, i ll let you know about the results Aug 29 12:48:27 lol Aug 29 12:48:27 :) yes yes Aug 29 12:48:28 ok Aug 29 12:48:39 can someone telle me how I would go about importing this https://github.com/chrisbanes/ActionBar-PullToRefresh/ into my workspace to use with my android project? I always have trouble using this stuff when its not just a simple .jar library file Aug 29 12:48:54 and yes i've tried Aug 29 12:49:16 :) Aug 29 12:49:20 how do i use public projects that have no jar file in my application Aug 29 12:49:27 I don't use craplipse so I don't know Aug 29 12:49:36 man it is crappy. Aug 29 12:49:38 but gotta love it Aug 29 12:50:02 i say crappy cause somethings are only resolved by restarting eclipse Aug 29 12:50:17 and i'll mislead you Aug 29 12:50:20 it'll Aug 29 12:50:49 SuperMandroid: you just import the project as a normal project, then you got onto your own projects properties -> android and there is a list at the bottom where you can include other projects into your project Aug 29 12:50:55 SuperMandroid: I haven't looked at the link but you should be able to import it as a project, set that project to be a library in it's project properties and then add it as a dependancy for your project Aug 29 12:50:58 SuperMandroid: *as a normal android project Aug 29 12:51:23 Ankhwatcher: no there is a special android-library setting in the androids section of the projects settings... Aug 29 12:51:27 he need to use this Aug 29 12:51:51 oh Aug 29 12:51:55 If you have class that extends activity, but you have a function in it, that can be called from Outside... can you new ClassName().function_to_be_called(); Aug 29 12:51:58 and we should have clicked the link 8-) Aug 29 12:51:58 is that legit? Aug 29 12:52:05 Doing it without intent Aug 29 12:52:05 its an intellij project Aug 29 12:52:13 SuperMandroid: no idea how to do it Aug 29 12:52:34 ohcibi: that shouldn't make that much difference, it just means the source code is moved around Aug 29 12:52:40 i though i could import it as a normal project like i have with other libraries but eclipse never show anything in the list when i'm selecting this directory Aug 29 12:52:47 'm currently developping a launcher application using an horizontal scroll. My problem is that the list of my applications is defined in a gridview. I know I can't insert a gridview in a scroll view. So I tried to use a page viewer. I finally managed to implement my pageviewer but my fragments don't display the gridview. I already have an adapter that allows me to view my applications list in fragments Aug 29 12:53:06 Ankhwatcher: what? if the other project was an android-lib project he had to set it up in this settings-section... has nothing to do with moving code around Aug 29 12:53:41 Ankhwatcher: and yes, it does make a difference, hence this section Aug 29 12:53:57 Ankhwatcher, Mind helping me? Aug 29 12:53:59 how can I put a gridview in viewpage Aug 29 12:54:05 ? Aug 29 12:55:04 Josh-: you could cast the Activity you have into the right type in order to access the function, is that what you mean? Aug 29 12:55:33 can you help me Aug 29 12:55:35 Ankhwatcher, Nope, Say you got class A extends Activity{ void randomfunc() {} } Aug 29 12:55:50 And you go in another class and do new A().randomfunc(); Aug 29 12:55:52 hagui: put the gridview in a fragment Aug 29 12:56:00 ohcibi: eh? can't you just import this stuff https://github.com/chrisbanes/ActionBar-PullToRefresh/tree/master/library into a new library project? Aug 29 12:56:02 then put the fragment in a viewpager Aug 29 12:56:05 I mean, Usually up until now, I have seen people using intent for such things. Aug 29 12:56:48 so copy and paste everything into a new folder? Aug 29 12:56:48 i did that but i can't put it in pageviewer my page view is puted in a fragment Aug 29 12:57:09 Ankhwatcher: maybe there is a misunderstanding.. i dont know how to import intellij-projects into eclipse anyways... I just said that if it was a normal android-library project for eclipse he had to include it in the androids section of the projects settings Aug 29 12:57:23 but that was before i realized that its no eclipse project Aug 29 12:57:31 so i have a tab fragment in Action bar and in one of this fragment i have a view page Aug 29 12:57:55 in this view pager i would like to put a gridview Aug 29 12:58:00 fuck intelliJ projects man, it's just source code Aug 29 12:58:06 ^ :D Aug 29 12:58:22 Ankhwatcher, I get run time error on doing such thing, Thats why I am asking. Aug 29 12:59:06 Ankhwatcher: true 8)) i just clicked on the link, and your right, this folder shoud be importable as lib-project which can then be added to other projects Aug 29 12:59:27 No one there except nseidm1 to help hagui ? Aug 29 12:59:31 @nseidm1: you can take a look in http://stackoverflow.com/questions/18506286/how-to-use-a-gridview-in-pageviwer Aug 29 13:00:38 Josh-: well what is the error? Does the function have to display UI or anything like that? Aug 29 13:00:52 ohcibi: my point exactly Aug 29 13:00:59 SuperMandroid: clone the project, in eclipse say import projects -> general -> from existing, find that folder Ankhwatcher had linked on your system and maybe say copy sources to workspace if you want to keep the project inside your workspace Aug 29 13:01:27 SuperMandroid: after that you can include the project at project properties -> android -> library Aug 29 13:01:41 hi can you help me please Aug 29 13:04:35 hey thanks i was just doing all of that but not some other stuff has come up because I use actionbarsherlock and even tho its supported I gotta do some digging. anyone have a simple pull to refresh library thats simple without all the extras? Aug 29 13:07:38 nseidm1: can you precise your answer to hagui ? I'm interested as well :) Aug 29 13:10:56 * ypcress feels not heard Aug 29 13:14:02 can any one answer my question please Aug 29 13:14:04 Could you explain me this answer ? Aug 29 13:14:05 http://stackoverflow.com/questions/3288513/how-to-play-audio-files-one-after-the-other Aug 29 13:14:32 I wonder how to do "FunctionPlayFile" functions Aug 29 13:14:35 *function Aug 29 13:14:56 http://stackoverflow.com/questions/18506286/how-to-use-a-gridview-in-pageviwer Aug 29 13:19:15 hagui: put the grid view in a fragment, ViewPagers use fragments Aug 29 13:19:44 For anyone using Android Studio, I have an issue with a class that I have created, but I get the error "Unable to resolve superclass of xxx". The class is created, specifically it is a Custom ViewPager Adapter. I create an object of the custom class, but when I later try to call a new and pass variables to the object, everything fails Aug 29 13:19:45 you'll want to override the parent view container to intercept touch events Aug 29 13:19:55 then you can dispatch touch events to the desired child specifically Aug 29 13:20:31 I have seen solutions with Eclipse where people play with the order of src and gen folders, or with the libs folder, but I don't see how this is done with Android Studio Aug 29 13:21:51 Hi, I'm developing a simple app with the android sip api. Can i call a normal phone number from my app? Aug 29 13:25:47 SuperMandroid: it does not work Aug 29 13:25:57 hello Aug 29 13:26:04 is this bottom bar custom ? Aug 29 13:26:04 https://lh6.ggpht.com/NfoqA5kd8mPAeL4P18qpbWkz2aTecus_XYaII8DHfNq4iJ1KA4jX0e1x83x_e_5fvdSu=h900-rw Aug 29 13:26:20 yes Aug 29 13:26:35 or no Aug 29 13:26:37 maybe Aug 29 13:26:58 it couldnt be a split action bar Aug 29 13:27:09 smikloso ..you tried it as well? Aug 29 13:27:11 then yes Aug 29 13:28:02 anyone got a nice and simple pull to refresh for listview? Aug 29 13:28:27 i tried to put multiple instrumentation elements into android manifest, installed it and wanted to start one of them but it just fails ... android.util.AndroidException: INSTRUMENTATION_FAILED Aug 29 13:28:37 lo Aug 29 13:28:39 lol Aug 29 13:28:40 oh yea Aug 29 13:28:41 https://github.com/chrisbanes/Android-PullToRefresh Aug 29 13:29:17 dark-side it says that is depreciated....should i still use it? Aug 29 13:29:22 https://github.com/chrisbanes/ActionBar-PullToRefresh Aug 29 13:29:35 thats the newer one Aug 29 13:29:41 actionbar-pulltorefresh is what im having a problem with Aug 29 13:29:57 it is interesting that it does not complain while building that app ... like "you put more than one instrumentation into manifest, dont do it, it is bad idea" Aug 29 13:30:01 depends how you want your app to look really Aug 29 13:30:11 pull to refresh is so last year Aug 29 13:30:20 Why Android Studio is Downloading Gradle? Aug 29 13:30:21 its explains how to pull into maven and gradle but not how to use it in eclipse Aug 29 13:30:26 there is a jar missing Aug 29 13:30:47 I thought android used ant for building Aug 29 13:30:55 Hey guy's looking for a little advice with regards to GPS and android, just how accurate are the GPS chipsets inthe android devices like the s3, indoors mine seems a little flaky. I am working on a APP that uses gps and needs to be indoors, now i am beging to relise in terms of accuracy this is a bad idea! is their any other way i can locate a device accuralty using another telecommunication Aug 29 13:31:08 library / bin / library.jar Aug 29 13:31:14 is not there Aug 29 13:31:22 for https://github.com/chrisbanes/ActionBar-PullToRefresh Aug 29 13:31:39 crised: not anymore Aug 29 13:31:56 SuperMandroid: one of the forks is eclipse isn't it? Aug 29 13:32:09 Dark-Side: So it uses Gradle now? Aug 29 13:32:24 Android Studio does Aug 29 13:32:32 Anton2k: gps is useless indoors. it uses satelites for positionsing Aug 29 13:32:43 *positioning Aug 29 13:32:57 Dark-Side: So I guess Intellij uses it too? Aug 29 13:32:58 i dont see any forks Aug 29 13:33:05 crised: pretty much Aug 29 13:33:13 SuperMandroid: also, there is no spoon Aug 29 13:33:26 Dark-Side: :) Aug 29 13:33:28 SuperMandroid: there are 207 forks... Aug 29 13:33:55 lol Aug 29 13:33:56 ok Aug 29 13:34:01 i'll see if i can find something Aug 29 13:34:38 what could I use indoors havcher? as a means of finding out a devices location? Aug 29 13:35:22 could a make shft min gps thing be setup or is the phones chipset locked onto certain satilies if so can they be changed? Aug 29 13:35:38 Anton2k: wifi Aug 29 13:35:40 Why do I get an error on this line? text.setTypeface(Typeface.createFromAsset(context.getApplicationContext().getAssets(), "fonts/CAMBRIA.TTC")); Aug 29 13:36:05 really? Dark-Side? i just dont see hwo that could work like GPS though i have thought about it Aug 29 13:36:30 how would that work? signal strenth? Aug 29 13:36:33 somebody experience with sip / voip? Aug 29 13:36:51 you'd have to know where the routers are but yeah pretty much you can triangulate your position based on signal strength Aug 29 13:37:12 Lots of people have done that sort of thing before Aug 29 13:38:17 I would really need to read more about it, i take it i would need 3 big routers Aug 29 13:38:37 also it would need to be accurate as in GPS accurace Aug 29 13:38:57 It needs the routers to know about positioning too. Aug 29 13:38:58 wifi triangulating is what i should be searching for? Aug 29 13:39:37 http://www.youtube.com/watch?v=OV-9OPnu3cM Aug 29 13:39:44 cheers guys Aug 29 13:40:43 ok so i dont see anything that say eclipse at https://github.com/chrisbanes/ActionBar-PullToRefresh has anyone used this with eclipse and can testify that it does integrate? Aug 29 13:41:18 How does android studio treat assets? Aug 29 13:41:50 I mean, if I had /res/fonts/font.ttf, is the asset fonts/font.ttf? Aug 29 13:42:04 this is my error : Aug 29 13:42:04 The container 'Android Dependencies' references non existing library 'E:\workspace\myprojectworkspace\library\bin\library.jar' Aug 29 13:42:30 library is suppose to be the pull to refresh library. but where is the jar Aug 29 13:47:23 nvermind Aug 29 13:48:08 wow who knew wifi triangulation could be so cool! Aug 29 13:48:21 there are already companies out there with bespoke products and apps!!! Aug 29 13:49:48 Anton2k: Google Maps offered it for over a year now, for indoors navigation Aug 29 13:51:10 lol i wonder what indoor navigation is used for Aug 29 13:51:17 the blind? Aug 29 13:51:36 thats the only thing that come to mind Aug 29 13:52:03 SuperMandroid: finding yourself in the maze called a shopping centre Aug 29 13:52:21 ahhh nice Aug 29 13:52:22 I've heard of applications that take your shopping list and give you optimized tour Aug 29 13:52:57 down to exact shelf Aug 29 13:53:17 scary Aug 29 13:54:18 I am porting android to a device, i can see from getevent and getevent -p that the device exists & the events are being received.. but yet android is not showing it on the touchscreen.. what could be causing this? Aug 29 13:56:12 Anyone familiar with downloadable Cell ID tower databases other than opencellid? Aug 29 13:59:01 indoor street views is a good application of AGPS Aug 29 13:59:08 aka triangulation Aug 29 13:59:41 i'd call it po-man's GPS but some buildings are faraday cages Aug 29 13:59:58 and downtowns with lots of tall buildings (i'm glaring at you Chicago) Aug 29 14:00:04 Is it possible to register a IntentFilter programatically and make it receive BCs if its activity is paused / in background ? Aug 29 14:01:15 that depends on the broadcast as you can specify sending to even stopped packages Aug 29 14:02:02 crqaz1, how? Aug 29 14:07:44 is there a google drive api for reading/writing arbitrary files? Aug 29 14:09:38 * pfn reads Aug 29 14:10:27 pfn, A small question, If you want to use these android related file I/O functions, openFileInput and openFileOutput Aug 29 14:11:00 Regardless of reference(s), You have to have your class Extend Activity Aug 29 14:11:02 Am I right? Aug 29 14:11:30 Is there any way to detect whether or not an activity is being "recreated"? Example: Activity A calls activity B. Activity B calls finish() and A is right there below it, just as I left it. Aug 29 14:12:05 But sometimes, if B does some intensive work, goes further down the rabbit hole, coming back to A will cause it to load for a few seconds Aug 29 14:12:45 gah Aug 29 14:12:50 compound drawables are useless Aug 29 14:13:03 pfn, Kindly help! Aug 29 14:13:39 Tee_Pee, onCreate gets called Aug 29 14:13:46 Tee_Pee, and onDestroy is called beforehand Aug 29 14:14:42 hmm... the thing is, my onCreate querries my server for the information needed. Aug 29 14:14:48 When this "recreate" happens, it doesn't. Aug 29 14:15:09 It's like all the info is there, but the OS just paged it onto the storage and it's taking time to reload it into the main memory. Aug 29 14:16:15 that is rather not possible Aug 29 14:16:25 but you can always just run traceview and see for yourself which methods are restarted Aug 29 14:16:38 * Josh- pokes Mavrik Aug 29 14:16:39 I am porting android to a device, i can see from getevent and getevent -p that the device exists & the events are being received.. but yet android is not showing it on the touchscreen.. what could be causing this? Aug 29 14:16:42 Help me too, please Aug 29 14:17:20 In Android Studio how should I import the samples? Aug 29 14:17:26 Open Projects or Import? Aug 29 14:17:51 I know that it shouldn't be possible, but I'm getting this weird bug that can only be attributed to that. Aug 29 14:19:31 Tee_Pee: I think you should avoid server talk inside onCreate Aug 29 14:20:09 dump it into a service, and have a way to see if you need to refresh information Aug 29 14:20:16 Mavrik, what are you talking about, compound drawables are great Aug 29 14:20:34 pfn, the way how they align annoys me beyond limits Aug 29 14:20:35 :( Aug 29 14:20:37 Josh-, no, you don't extend activity unless your class is an activity Aug 29 14:20:42 drawables in general are awesome Aug 29 14:20:45 Mavrik, use padding Aug 29 14:21:00 Mavrik, drawable padding and view padding fixes up most of your alignment issues Aug 29 14:21:01 pfn, Then I am unable to make use of those functions Aug 29 14:21:06 Please, let me paste my code. Aug 29 14:21:11 Josh-, no, they are functions on Context Aug 29 14:21:11 padding only works when the textview size isn't dynamic Aug 29 14:21:21 Josh-, is-a is different from has-a relationships Aug 29 14:21:29 Aye, I know, I imported it, yet I am having error Aug 29 14:21:31 Give me a sec. Aug 29 14:21:37 Josh-, learn more java first Aug 29 14:21:39 having a common UI pattern of centered text with image to the left can't be done wihen the cell can resize Aug 29 14:21:55 pfn, Sir, I know that, but, Would you be a bit more topical, thanks. Aug 29 14:21:59 no Aug 29 14:22:04 I'm not going to teach you basic java Aug 29 14:22:23 pfn is a lotion, was requested to be more topical Aug 29 14:22:42 He is usually like that, thinking others don't know AT ALL about programming and are asking here. Aug 29 14:22:44 Its usual. Aug 29 14:23:00 Found a very strange bug. I store diary entries in a sqlite database. I have implemented ArrayAdapter to interface this database. I can add new items to the database and the dataset in the adapeter (a arraylist) get the correct data. However, the ListView seem to duplicate values from earlier entries.... what to do? Aug 29 14:23:06 I wasn't supporting your position unfortunately Aug 29 14:23:27 gabbsmo, implement your own adapter Aug 29 14:23:37 you'll have to sooner or later if you want any syling Aug 29 14:23:44 *styling Aug 29 14:23:49 pfn, http://ideone.com/tgReJH Aug 29 14:24:07 Extending my class to activity, removes the error of openInputFile and openOutputFile functions. Aug 29 14:24:15 Mavrik I did, here's a gist https://gist.github.com/gabbsmo/6378767 Aug 29 14:24:36 But If I don't extend them, I get, "cannot resolve method" Aug 29 14:25:03 I have imported Context as well, which is shown at http://developer.android.com/reference/android/content/Context.html#openFileInput(java.lang.String) Aug 29 14:25:14 gabbsmo, ehm, you probably shouldnt extend arrayadapter here, since it has it's own arraylist Aug 29 14:25:22 gabbsmo, extend BaseAdapter instead Aug 29 14:25:30 Josh-: do you have a question? Aug 29 14:26:46 hmm. Aug 29 14:26:51 gabbsmo, since now you have a mess because arrayadapter has it's own arraylist somewhere and it's returning some data from there :) Aug 29 14:27:18 nseidm1, The question is pretty simple, Why openFileInput is giving me problems when appropriate reference is there. Aug 29 14:27:32 Mavrik thank's will look into it Aug 29 14:27:35 But extending my class with Activity magically takes away the problem. Aug 29 14:27:42 because you don't have context Aug 29 14:28:26 so i finally got this ActionBar-pulltorefresh working but i notice on items where i have an onclick listener, the pull down is not detected. how should i pass the pull event to the parent view? I can presume its possible because when scrolling through a listview of course i can scroll. but how is it passed through my view with clicklistener and to the listview to scroll? anyone understand Aug 29 14:28:26 what I'm asking? Aug 29 14:28:38 nseidm1, Gotcha, Activity Extends context Aug 29 14:28:41 * Josh- facepalms Aug 29 14:28:49 I am sorry and thank you very much Aug 29 14:29:18 cool Aug 29 14:29:55 nseidm1, Oh lastly, If you have a class like that and you just go and create its instance and call a method from it, Is it ok? Aug 29 14:30:08 er no Aug 29 14:30:21 I mean, If it had extended Activity, Creating instance of Activity isn't really possible, You have to use Intent to StartActivity Aug 29 14:30:23 Context is special, it describes the context in which the app runs Aug 29 14:30:30 Hmm Aug 29 14:30:33 you always have to get Context-derived classes from the OS Aug 29 14:30:50 you need to pass context into RDiskIO Aug 29 14:30:52 since Context describes stuff like your local storage location, permissions, etc. Aug 29 14:31:05 Josh-, also, you really can't run an android app without a valid context Aug 29 14:31:10 so you just have to obtain it somewhere. Aug 29 14:31:21 depending on where you're accessing the methods Aug 29 14:32:16 Well, I am using this class Simply to Read and write from file, so I will be using it in ANOTHER activity. Aug 29 14:32:37 Like Activity does stuff, On click of a button, (possibly) Creates instance of this class, calls read or write ends. Aug 29 14:32:52 new IOClass().read(); <== Sorta like. Aug 29 14:33:14 How do i Unit Gps service --- mock the gps coordinates in junit ? Aug 29 14:33:21 Josh-, well, new IOClass(context).read(); Aug 29 14:33:30 Josh-, you CANNOT do I/O without info from context Aug 29 14:33:45 and even if you find a way, you SHOULDN't. Aug 29 14:33:58 I'm creating a voip app, is it possible to test it and call a normal phone number? Aug 29 14:34:03 Mavrik, Ok ok! Aug 29 14:34:04 : D Aug 29 14:34:07 Thanks for making me aware. Aug 29 14:34:50 Josh-, yeah, so basically the pattern is to pass context around :) Aug 29 14:34:59 preferrably right at the methods you need it so you don't leak memory Aug 29 14:35:21 Aye. Aug 29 14:37:44 Using Android Studio, How can I run a sample in the emulator? Aug 29 14:37:49 Should I open it? Aug 29 14:37:54 or import the prjoect Aug 29 14:39:48 Mavrik: works now, I'll have to blame my own ignorance and a bad code example. Aug 29 14:39:50 hello Aug 29 14:40:00 gabbsmo, happy to help :) Aug 29 14:40:44 Macrik: new gist FYI https://gist.github.com/gabbsmo/6378970 Aug 29 14:41:07 how is possibile that the same xml sax parser works in the different way from android to desktop? Aug 29 14:41:24 gabbsmo, yep, that looks right :) Aug 29 14:41:45 under, it's relying on locale settings that differ? Aug 29 14:43:15 the one on android parses in a different way (wrong) the one on pc works correctly, they also both use same lib (the android one don't use android.sax) Aug 29 15:01:09 guys i'm migrating my project to gradle/android-studio and i'm facing this issue during aapt execution: "Gradle: No resource found that matches the given name (at 'icon' with value '@drawable/logo_icon')." it was working on eclipse. Any thoughts? Aug 29 15:03:01 i just updated Android Studio and now all my android sdk references are erroring.. i readded the SDK but with the same result.. not sure what to do Aug 29 15:04:00 Where can I download a starting app for Android to test it? Aug 29 15:04:13 amazingly sdk samples do not work, neither in eclipse or studio Aug 29 15:06:46 oh gradle gradle gradle Aug 29 15:07:25 Mavrik, Thank you very much. Aug 29 15:19:40 Please give me some thoughts: Image you have a Restful app that receives like 20 User Objects from the Server and stores them in a UserS Obejct. Do would you (as they are relevant to any Activity) pass them there the activity? Note: At some point you get a GCM update notice so you have to update the Users (maybe there is a new user) Aug 29 15:19:58 *How would you Aug 29 15:20:15 * throw Aug 29 15:20:41 Use a Singleton to store them? Aug 29 15:21:07 in android, you generally wouldn't use a singleton for any reason Aug 29 15:21:29 android's application lifecycle is very different from that of a typical computer program Aug 29 15:21:45 zinx I read about that but how would you do it then? Aug 29 15:21:56 Correctly? Aug 29 15:22:03 yes Aug 29 15:22:14 no, that's my suggestion for doing it :P Aug 29 15:22:43 sorry, but solving problems depends entirely on the problem to solve and the small details of the problem, i can't really help you without fully understanding it, and i don't have the time to do that at the moment :/ Aug 29 15:23:13 im creating an adapter that uses multiple row layouts dyanamically, can someone tell me if I'm heading in the right direction thanks! http://pastebin.com/AJJyg4wb Aug 29 15:26:01 the for loop in onCreate() simply puts in dummy data, in the real world a parsed server responses will be added to the adapter Aug 29 15:29:52 hi everyone. Could you give some advice to make a calendar (like Datapicker) but on older version (2.2)? Thanks... Aug 29 15:30:40 Anybody else having hell with the new version of Android Studio on Fedora-19??? I fire it up and watch cpu load on all 8 cores go off the chart and then it reboots. Aug 29 15:31:13 is there a way to tell when StartActivity() was called from within the started activity? Aug 29 15:31:17 In fact if I vanish now that's what happened.. About to try again. Aug 29 15:31:39 T-IS, timesquare on github has a good one Aug 29 15:31:45 Ankhwatcher: You mean like the time it was activated? Aug 29 15:32:06 yeah Aug 29 15:32:13 I'm trying to implement a timeout Aug 29 15:32:53 I'm trying to tell the difference between the app being resumed after the user browsed away and the user launching the activity Aug 29 15:32:54 Ankhwatcher: assign NOW() to a variable and check against that? Aug 29 15:34:11 Here is what I have at the moment: http://pastebin.com/6dARbq0t Aug 29 15:34:12 Ankhwatcher: NOW() may not be the right one for Android.. Been bouncing between Java, php & mysql here, but teh principle is the same. Aug 29 15:34:24 systemCurrentMillis() Aug 29 15:34:27 the problem is once it times out I can't seem to get back in Aug 29 15:35:52 despite calling finish() or onDestroy() onCreate isn't being called Aug 29 15:35:57 Ankhwatcher: Hell if I know.. LOL.. I finally got my json fixed last night. Aug 29 15:37:08 Why is it that i try my app on genymotion in an emulator which is 1920x1080 and everything looks perfect, looks like it does on my 480x800 nexus one, only all nicely scaled up and crisp, but then when i try it on my htc flyer 1024x600, the scaling seems off, everything is way too small etc? Aug 29 15:37:46 That was when my hell started.. Got to a good point to take a break and told Android Studio to upgrade to 0.2.6.. Now it dies horribly.. Aug 29 15:37:59 ei recover. Are you sure that timesquare works on older version? Aug 29 15:38:09 it workes back to 2.2 iir Aug 29 15:38:11 Bleeptech: terrific Aug 29 15:38:41 recover: that wouldn't solve it for me sadly, have a look at my link Aug 29 15:38:50 i just cant fathom this out :( Aug 29 15:39:28 Ankhwatcher: Yeah, Tell me about it.. And I can't figure out if it's an actual error in AS or if it's just hitting the CPU so hard the power supply is glitching.. LOL.. Aug 29 15:40:21 But, It's a new REBOOT command now.. Aug 29 15:40:27 thanks recover... Aug 29 15:40:59 * Bleeptech is momentarily masochist and tries again.. Aug 29 15:41:06 Wish me luck.. Aug 29 15:41:55 oh hey it's Thursday Aug 29 15:42:06 the weekend is a day closer than I thought Aug 29 15:46:45 And it bombed out and took the machine with it again.. Too bad.. I was starting to like AS.. Aug 29 15:53:47 I took my test! Aug 29 15:54:08 I want to save photo's via the Camera API. I already have a sqlite database for the related metadata. What is best/most simple, storing the photo on the file system or as a BLOB in the database? Aug 29 15:54:40 file system Aug 29 15:55:32 Intent takePictureIntent = new Intent(MediaStore.ACTION_IMAGE_CAPTURE); takePictureIntent.putExtra(MediaStore.EXTRA_OUTPUT, destinationUri); might be of help to you Aug 29 15:55:50 photo, blob, sqlite... Aug 29 15:56:51 you want to save it on the file system, use the java.io.File class Aug 29 15:58:29 ohcibi, jaynewstrom, JakeWharton: any motivations? Aug 29 15:59:10 your relational store needn't be conflated with very large binary data Aug 29 15:59:17 store a path (or something you can infer the path from) in the DB Aug 29 15:59:20 gabbsmo: what? for not storing a blob inside a sqlite? give me a break 8-)) Aug 29 15:59:56 ohcibi really, why not? Aug 29 16:01:06 gabbsmo: there is no point in storing them into your database anyways, except your database beeing in a distributed network (cloud in modern speech) Aug 29 16:01:39 @gabbsmo it's bad for database performance and in general not good practice Aug 29 16:02:25 well file system is the documented way so I guess I'll go with that Aug 29 16:21:24 hi guys i have made an image to show this issue im having, can anyon explain why im having this problem ? https://www.dropbox.com/s/st7mtbmjli1i5ys/weird_issue.jpg Aug 29 16:23:47 JakeWharton is the man to ask :) can u take a peek at my image jake and let me know your thoughts? im supposed to get this out today :-/ Aug 29 16:25:32 * Bleeptech come back from rebooting after trying to start Android Studio.. Aug 29 16:28:33 anyone? pls :-D Aug 29 16:28:47 im going out of my mind with this, and ive picked the time when everyone is asleep Aug 29 16:29:13 zz Aug 29 16:29:24 someone is alive Aug 29 16:29:36 https://www.dropbox.com/s/st7mtbmjli1i5ys/weird_issue.jpg Aug 29 16:29:41 thats my issue CocoStorm :) Aug 29 16:30:02 Heh don't count on me I've only looked into Android development since .. April? :D Aug 29 16:30:13 Gaz`, Are you using Fragments? Aug 29 16:30:19 yes Aug 29 16:30:32 its some weird manifest or resources issue or something Aug 29 16:30:51 rather than remake tons of the screens specifically for big screens, id rathe rjust work out why it works so well in hd and make it do that in all resolutions Aug 29 16:30:57 * Bleeptech has been at this since Jan and spent 1/2 his time fighting the dev tools. Aug 29 16:31:39 things have been going smoothly for me til lthis weird issue Aug 29 16:31:43 Bleeptech, heh aren't we all :P Aug 29 16:32:52 CocoStorm: Probably not.. Anybody actually doing this for work probably has better hardware than I have.. Aug 29 16:33:03 Gaz`, I have yet to tackle the issue of different screen sizes. It's on my to-do list for the next few weeks :D Aug 29 16:33:08 the manifest stuff and compatibility is the most confusing for me Aug 29 16:33:28 i dont even know how to google this issue either Aug 29 16:33:33 s/weeks/days I doubt it's gonna be that hard Aug 29 16:33:35 And anybody that can get their machine to be stable running this has a better power supply than I do.. LOL.. Aug 29 16:33:58 Hi! I want to show a baloon/itemized overlay at the pin on the map automatically when current position is shown, not when the user taps the pin. How can I do that? Aug 29 16:36:02 Why do I get an error on this line? text.setTypeface(Typeface.createFromAsset(context.getApplicationContext().getAssets(), "fonts/CAMBRIA.TTC")); Aug 29 16:36:07 On Android Studio Aug 29 16:36:21 u prob dont need context. Aug 29 16:36:32 zyngawow: do you have the error? Aug 29 16:36:34 (getApplicationContext().getAssets() Aug 29 16:36:43 nseidm1, sure Aug 29 16:36:45 Gaz`: try http://developer.android.com/guide/topics/manifest/manifest-intro.html Aug 29 16:36:50 could e a million reasons tho u should print out and see what vars are null Aug 29 16:37:01 Gaz`, I probably do Aug 29 16:37:25 thx Bleeptech Aug 29 16:37:32 nseidm1, http://pastebin.com/edPNt4NX Aug 29 16:37:36 so frustrating that it works perfectly on one device and nother another, even same OS Aug 29 16:38:09 double check fonts/CAMBRIA.TTC Aug 29 16:38:15 make sure it's the correct path Aug 29 16:39:06 It is Aug 29 16:40:24 you have a fonts folder in the assets dir? Aug 29 16:45:10 Yeah, android studio stuff Aug 29 16:45:11 fixed Aug 29 16:50:54 Where could I find a Holo-ish check mark? Aug 29 16:51:33 Hi all, I have a broadcast receiver, how can i start an activity? even if the device is in sleep mode? Aug 29 16:52:20 FrancescoV google wake mode Aug 29 16:52:26 wake lock sorry Aug 29 16:58:16 hello Aug 29 16:58:23 Does carshes and ANR works generally / Aug 29 17:03:52 Icons for hdpi should be 72x72px, but I'm suposed to show them on a 32dp size according to the metrics. How do I do that? Aug 29 17:05:56 zyngawow: dp == density-independent pixels doesn't it? Should auto-scale. Aug 29 17:06:11 "Should". Doesnt Aug 29 17:07:26 zyngawow: So you're saying it works like "Truth in advertising" or "integrity in politics"? Aug 29 17:07:29 LOL Aug 29 17:11:47 Also.. Google provides icons for "xhdpi" at 64x64 Aug 29 17:24:50 this dpi thing has me baffled Aug 29 17:25:28 anyone really understand it, and also how the supporting multiple screens thing works Aug 29 17:25:33 i thought i did Aug 29 17:26:21 yes Aug 29 17:26:59 zyngawow, what are you talking about Aug 29 17:27:04 like where are you getting these numbers Aug 29 17:27:11 there are different kinds of icons that need to be different sizes Aug 29 17:27:54 Hi. I downloaded the ADT ide. Is it the same or different from Eclipse? Aug 29 17:28:30 Just check for updates Aug 29 17:30:57 panda81, it's the same with plugins Aug 29 17:31:04 canadiancow can you explain this for me please, if possible, im very confused right now https://www.dropbox.com/s/st7mtbmjli1i5ys/weird_issue.jpg Aug 29 17:31:11 I am unable to push file to sdcard though pull works Aug 29 17:31:25 I have check mount output it shows rw for sdcard Aug 29 17:31:32 CocoStorm: Thanks. I was looking for the Eclipse perspectives and it's not there Aug 29 17:32:41 wait, I see it now Aug 29 17:32:56 see what Aug 29 17:33:04 http://pastebin.com/p1PmyBwr Aug 29 17:33:19 I found it in Windoww->Open Perspective Aug 29 17:34:46 well Gaz` you shoudlnt have the right arrows on list items Aug 29 17:34:53 tabs should be at the top, not the bottom Aug 29 17:35:09 and you've shown me screenshots. those are enough for me to tell you "something is wrong" Aug 29 17:35:13 i cant tell you any more than that Aug 29 17:35:30 I can tell that he's using the exact same layout on tablets and on phones Aug 29 17:35:38 And for some reason he thinks resolution matters Aug 29 17:36:00 yeh aside from the obvious ios design, my main confusion is why does it scale nicely up to 1920x1080 and also 480x800 but then in 1280x720 and 1024x600 it looks too small Aug 29 17:36:17 you havent shown us anything Aug 29 17:36:20 yeh well *why* does it look like that in the hd emulator, unless the emulator is lying somehow? Aug 29 17:36:20 why does WHAT scale Aug 29 17:36:29 wtf is "hd emulator" Aug 29 17:36:39 the whole screen looks nice on the far left yeh, thats supposedly 1920x1080 emulator Aug 29 17:36:41 Shouldn't you test on real device Aug 29 17:36:51 Resolution doesnt matter Aug 29 17:36:59 so im wondering how that is possible, or if the emulator is just broken Aug 29 17:37:01 On the left you have a 4.something screen Aug 29 17:37:05 Then a 10" screen Aug 29 17:37:12 Then a 3.7" screen, than a 7" screen Aug 29 17:37:19 Of course it's not going to look the same across those sizes Aug 29 17:37:20 yes Aug 29 17:37:25 hmm Aug 29 17:37:40 so why then does it look like that on the far left one/ Aug 29 17:37:41 ? Aug 29 17:37:45 should it all appear tiny ? Aug 29 17:37:54 No? Aug 29 17:37:55 shouldnt* Aug 29 17:37:57 It's a phone Aug 29 17:38:02 Small screen compared to a tablet Aug 29 17:38:35 i see Aug 29 17:38:42 yeh im struggling with the dpi concept Aug 29 17:38:45 sp is a physical size Aug 29 17:38:48 dp is a physical size Aug 29 17:39:06 If it's 1 inch on a phone it'll still be 1 inch on a tablet Aug 29 17:39:25 1 inch on a 4 inch screen is a lot, on a 10 inch screen.. not so much Aug 29 17:39:47 the thing is if I test on a s3, its all small too, even that that has a phone sized screen Aug 29 17:40:03 even though* (sorry im very tired now after this madness) Aug 29 17:41:17 ok so the only possible solution is to make seperate xml files for different dpis? Aug 29 17:41:28 how is possibile that the same xml sax parser works in the different way from android to desktop? Aug 29 17:41:35 For different screen sizes Aug 29 17:41:46 Or rather, device categories Aug 29 17:42:14 phone, 7" tablet, 10" tablet.. Aug 29 17:42:26 If needed, small phones and large phones as well Aug 29 17:42:43 i see Aug 29 17:42:55 still a bit confused but i guess i will just do that Aug 29 17:43:14 You've been here for years.. You should know this by now Aug 29 17:43:17 in the past my apps didnt seem to suffer like this Aug 29 17:43:24 i know, ive made like 45 apps too Aug 29 17:43:29 and never once had this problem Aug 29 17:43:59 ridiculous really Aug 29 17:44:13 all my other apps work fine on my tab and my n1 no issues Aug 29 17:44:18 Does compiling in non-debug mode automatically remove all print/trace statement Aug 29 17:44:41 thats why im so confused :) Aug 29 17:45:14 anyone know of a good cheap XHDPI tablet for development? Aug 29 17:46:25 the new nexus 7 Aug 29 17:46:46 if you want 10" then maybe the nexus 10 but that might be refreshed soon Aug 29 17:47:05 that only comes from google right? Aug 29 17:47:25 in the US i think some best buys have them. in other countries I don't know Aug 29 17:47:38 oh wow Aug 29 17:47:47 you can buy nexus 7s pretty much anywhere i think Aug 29 17:47:50 I got mine from amazon Aug 29 17:48:04 could it be someow my apps were always running in compatibility mode Aug 29 17:48:05 hmm Aug 29 17:50:07 are you sure nexus 7 is xhdpi Aug 29 17:50:45 doesn't the nexus 7 have the highest screen density of all tablets atm or something liek that? Aug 29 17:50:55 I'm pretty sure it's xhdpi Aug 29 17:51:04 really? Aug 29 17:51:18 yeah its pretty big Aug 29 17:51:29 ok ok it wasnt on my xhdpi list Aug 29 17:51:39 its listed as tvdpi Aug 29 17:51:43 the old nexus 7 was tvdpi, but the new one is xhdpi. xhdpi is a density, not a resolution. Aug 29 17:51:54 yeah Aug 29 17:52:08 its high res for a 7" device Aug 29 17:52:22 1920 - its GOT to work Aug 29 17:52:23 thanks guy Aug 29 17:52:25 guys Aug 29 17:54:38 General question.. Does anybody think it wierd that I'm using '// ################################...' as a visual marker in my code to make it easier for me to read? Aug 29 17:55:19 nobody cares Aug 29 17:57:08 I'm just wondering if anybody else is doing something similar.. Or if they have a better way of making these java/xml messes more readable. Aug 29 17:57:22 Can I develop an app that uses mongodb ? Aug 29 17:59:51 darkpassenger: http://stackoverflow.com/questions/6887887/mongodb-on-android Aug 29 18:00:33 Bleeptech: We just read it. Proper style is enough to maintain readability Aug 29 18:01:03 Hello, has anyone here worked with ADK before? I keep getting "exited USB accessory mode" from UsbDeviceManager on my Nexus S when I plug in my Arduino Mega 2560 + UsbHostShied 2.0, can anyone help me? Aug 29 18:01:21 Bleeptech: yes, I find that a bit strange. Aug 29 18:03:06 damn they should put density type on the packaging Aug 29 18:03:10 You are getting that message too? Aug 29 18:03:13 JesusFreke: Well.. You know how it goes.. style/indentation and syntax highlighting only goes so far when pitted against ADD and dyslexia. "Dyslexics Untie!" Aug 29 18:03:17 http://pastebin.com/p1PmyBwr ... I am unable to install/push files. I can pull though. Aug 29 18:04:19 mms_: Probably need to root the device to get write permissions. Aug 29 18:04:39 Bleeptech: its rooted. It has CM Aug 29 18:05:04 mms_: try adb root Aug 29 18:05:39 also, adb remount Aug 29 18:05:52 (note: I can't see your paste :)) Aug 29 18:05:53 adb root what ? Aug 29 18:05:57 adb root Aug 29 18:05:59 mms_: Or 'adb shell' then 'su' and copy the files over from sdcard. Aug 29 18:06:05 Bleeptech: If no one else is reading your code, do whatever you want Aug 29 18:06:20 the root command restarts the adb daemon as the root user Aug 29 18:06:29 the remount command remounts the system partition as rw Aug 29 18:07:08 ok http://pastebin.com/AhvFgLxL Aug 29 18:07:55 mms_: yes, your system partition is mounted as readonly Aug 29 18:08:05 run adb root to restart the adb daemon as root Aug 29 18:08:07 and then adb remount Aug 29 18:08:09 I am copying to sdcard Aug 29 18:08:11 to remount the system partition Aug 29 18:08:14 and not system partition Aug 29 18:08:25 nevermind then :) Aug 29 18:08:29 :-) Aug 29 18:10:41 Hellow. I really need help getting my SyncAdapter to work. I've followed http://developer.android.com/training/sync-adapters/index.html to the word, and done lots of searching on SO, but to no avail. Aug 29 18:10:48 *Hello Aug 29 18:11:30 whats wrong why I cannot write to sdcard ? Aug 29 18:11:39 ok http://pastebin.com/AhvFgLxL I am unable to copy to sdcard Aug 29 18:12:34 I have a ContentProvider, Authenticator, SyncAdapter etc. along with the associated services and XML files, and I'm using ContentResolver.requestSync to manually request a sync. Aug 29 18:13:29 But it looks like my SyncAdapter is never run. Aug 29 18:14:39 Hi guys, whats the best way of dealing with databases when developing and android app ? web database ? local database ? remote database ? Aug 29 18:14:51 mms_: 'adb push filename /mnt/sdcard' does nothing? Aug 29 18:14:54 i dont know whats the best design effort to be done in my app concerning persistance Aug 29 18:16:57 ill be storing small images and text basically Aug 29 18:18:34 if it's a cache, you probably want to store them on external storage Aug 29 18:18:58 Moose! :D Aug 29 18:19:45 um... anyone? Aug 29 18:19:48 Hints? Aug 29 18:20:06 Any way I can see what's going on behind the scenes? Aug 29 18:20:28 aviraldg: I haven't even got the clues to trade in on a hint.. Aug 29 18:21:44 Can I turn on logging for Android's internals that actually start SyncAdapters somehow? Aug 29 18:21:52 Might give me a hint. Aug 29 18:22:07 I remember it was possible, just not how. Aug 29 18:22:46 squak Aug 29 18:22:58 aviraldg: 'adb logcat > log.out' and read/grep through log.out? Aug 29 18:23:27 I know :P nothing there. Aug 29 18:24:57 so id better store images on a server Aug 29 18:25:11 and store the path in my database Aug 29 18:26:53 aviraldg: Then start going through your code and adding Log.d(); calls.. I'm at ~ 10% log calls in the files i'm actively working on just to make sure that things are working right. Aug 29 18:27:34 Already done; Everything until the point where I call requestSync() gets logged. Nothing after that. Aug 29 18:28:27 darkpassenger: Store your images and the name/path remotely.. ?? That way all the user needs is login info in case their device dies. Aug 29 18:28:33 Is it possible to add "variables" to string values? For example: Are you sure you want to delete %a? Where %a is something done programmatically Aug 29 18:28:36 Anyone here use the droid mini? Aug 29 18:28:44 No logs from any of the SyncAdapter related services or from it. Aug 29 18:29:40 aviraldg: Then the only other thing I can think of it to copy/@Override requestSync() and add logging calls there. Aug 29 18:30:50 readyjar: I'm on a RAZR-M.. That was as 'mini' as I could find @ Verizon... LOL Aug 29 18:31:42 I'm looking for a new phone but not wanting to spend 200+ dollars on it Aug 29 18:31:51 (verizon as well) Aug 29 18:32:24 zyngawow: https://developer.android.com/guide/topics/resources/string-resource.html#FormattingAndStyling Aug 29 18:32:52 readyjar: RAZR-M.. :D Fit's in your pocket and it's the 'free' upgrade in a moto phone. Aug 29 18:33:27 I read sketchy reviews on that Aug 29 18:33:29 Also, don't do that String.format(res.getString( crap they do.. Just use res.getString Aug 29 18:33:56 im looking for a new phone but i dont wanna spend 60$+ a month to get a decent amount of data bandwith Aug 29 18:34:30 readyjar: It's fairly stable.. LOL.. Only real problem I've had is voice command with playing .mp3's.. Aug 29 18:34:32 im in canada so the lowest prices are high as fuck.. Aug 29 18:35:19 finally, getting out of this hellhole Aug 29 18:35:35 crappy town Aug 29 18:36:15 * Bleeptech tells the phone 'PLAY FRANK ZAPPA' and gets Pink Floyd - Ummagumma.. Aug 29 18:36:20 haha Aug 29 18:39:35 Bleeptech: Ah I wouldn't use that anyways. I really just need the basics out of a smartphone Aug 29 18:41:27 readyjar: I use it for music when I'm driving with a handsfree headset.. I just need to assign playlists and not yell play/artist/album at it.. Aug 29 18:42:58 i want to be able to yell "raprock" at my phone and have Rage Against the Machine come right up Aug 29 18:53:37 I have a set of ImageButtons that are colored squares (for color selection). How could I give the user feedback on which one is selected? Aug 29 18:54:21 zyngawow, what do you mean Aug 29 18:54:41 zyngawow: Create another set of squares that looks pressed, replace the pressed one with the pressed image Aug 29 18:54:54 CocoStorm, like, right now, it's just the square, wether it is selected or not Aug 29 18:54:57 nooo Aug 29 18:55:04 zyngawow: you want to use a selector Aug 29 18:55:10 readyjar, how can I make a colored square look pressed? Aug 29 18:55:15 ohh Aug 29 18:55:23 And I'm using backgrounds for the color Aug 29 18:55:31 I'm new to android :) Just using logic from other places Aug 29 18:55:41 zyngawow: thats ok, you can still make a selector Aug 29 18:56:13 zyngawow: how are your current backgrounds referenced? in the layout or do you set them in code? Aug 29 18:56:19 Napalm, layout Aug 29 18:56:30 ok then selector is fine Aug 29 18:56:40 well either way, just layout is easier Aug 29 18:56:46 Selector? As in color picker? Aug 29 18:56:52 zyngawow: no Aug 29 18:57:09 zyngawow: http://developer.android.com/guide/topics/resources/color-list-resource.html Aug 29 18:57:52 zyngawow: and also http://developer.android.com/guide/topics/resources/drawable-resource.html#StateList Aug 29 18:59:28 Napalm, oh, so I could just set for example a cross image for the selected ImageButton Aug 29 18:59:35 yes Aug 29 19:00:35 for example doing android:src="@drawable/myselector" Aug 29 19:01:18 * Bleeptech is seaching java for a 'JustDieAlready()' to function to terminate an app. Aug 29 19:01:34 zyngawow: correct Aug 29 19:01:52 Bleeptech: System.exit(1); Aug 29 19:02:37 android:state_pressed="true" is only triggered while it is pressed, right? Aug 29 19:02:53 The ideal thing would be to have it stay like that until another button is pressed Aug 29 19:03:32 zyngawow: thats your button state not the selector Aug 29 19:03:43 zyngawow: sounds to me like you want a RadioGroup Aug 29 19:03:51 Ah Aug 29 19:03:52 Yeah Aug 29 19:03:58 * zyngawow is dumb Aug 29 19:04:11 zyngawow: then you would use android:state_checked="true" Aug 29 19:04:27 Napalm: Thank You! :D Aug 29 19:05:05 Bleeptech: np, but you shouldnt really use it production Aug 29 19:05:46 Napalm: Not planning too.. Just want a way to kill this $@#%#@!! thing while I'm working... Aug 29 19:07:27 can i somehow style the cursor that appears when attaching a mouse to my tablet? Aug 29 19:07:53 PatrickBic: from what I can tell, thats a no Aug 29 19:08:32 PatrickBic: little tip, if you want to handle the mouse events properly you need to implement onGenericMotionEvent() Aug 29 19:08:40 the only thing i found is some asus tablet has a possibility to change it Aug 29 19:08:54 Napalm, well i thought of overlay's and painting my own cursor. Aug 29 19:08:58 I broke something. Compiling outputs Gradle: String types not allowed (at 'src' with value ''). Aug 29 19:09:13 Bleeptech: that won't always work how you expect on Android... Aug 29 19:09:14 but that would require injecting events, => INJECT_EVENT permission => only phone manufactor gets it Aug 29 19:09:15 zyngawow: what did you put in your android:src Aug 29 19:09:29 Napalm, on the folder? Aug 29 19:09:29 the app might just restart in some situations Aug 29 19:09:57 Android deliberately makes it hard to close your app Aug 29 19:10:06 RyanM: true, during onCreate of an activity for example Aug 29 19:11:09 Napalm, I didn't add nothing, I just changed the ImageButtons to RadioButtons Aug 29 19:11:13 RyanM: Yeah, But it's working for this... I just wanted a quick and dirty way to tell a non service app to DIE! Aug 29 19:11:33 anything* Aug 29 19:11:38 dat grammar Aug 29 19:11:52 zyngawow: its the content of your android:src attribute Aug 29 19:11:54 Hi all, I've just built a dynamically linked executable for my tablet with the NDK and an android.mk file. Can anyone tell me how can I compile this executable to be statically linked (no shared libs)? Aug 29 19:11:56 RyanM: 'finish()' was killing the window and leaving the app running.. Aug 29 19:11:57 tahnks Aug 29 19:11:58 hmm, where's that google drive android api--do I just have to manage all my upload/downloads manually Aug 29 19:12:01 hmm Aug 29 19:12:18 * zyngawow is dumb again Aug 29 19:12:22 Fixed Napalm Aug 29 19:16:48 Hello. Can anyone help me with v7 support library? Aug 29 19:17:12 any NDK experts out there? Aug 29 19:18:32 Hi. I want to use the same layouts for small and large, but use different paddings and sizes... Is it possible to so this with a single layout? Aug 29 19:18:36 l3iggs: whats up Aug 29 19:18:44 Gavilan3, paddings are easy, use values/dimensions.xml Aug 29 19:18:51 l3iggs, as far as I know, JNI only allows the use of shared libraries Aug 29 19:18:51 Gavilan3, so values-large Aug 29 19:18:59 and since the NDK uses JNI Aug 29 19:19:42 really? Aug 29 19:20:03 Does that work for sizes in dips too? Aug 29 19:20:39 i know i can build a static library with include $(BUILD_STATIC_LIBRARY) Aug 29 19:21:26 but when i'm trying to build a standalone executable with "include $(BUILD_EXECUTABLE)" Aug 29 19:21:43 it spits out a "ELF 32-bit LSB executable, ARM, version 1 (SYSV), dynamically linked (uses shared libs), stripped" Aug 29 19:32:53 hm, i wish ByteBuffers were self describing. if i put and int/long then float, the sink should be able to discern which gets() to do for the appropriate type Aug 29 19:33:07 g00s, that bloats it up Aug 29 19:33:14 g00s, you might as well not even use a bytebuffer Aug 29 19:33:17 g00s: that would be cool Aug 29 19:33:36 louielouie, unless you mean you never plan on passing the data to anything else Aug 29 19:33:39 er Aug 29 19:33:42 g00s, Aug 29 19:33:47 unless you plan on using it completely internally from only a single process Aug 29 19:33:51 well, then they could have TypedByteBuffer Aug 29 19:33:58 or something Aug 29 19:34:07 FWIW, Parcelables are the kind of the same Aug 29 19:34:08 g00s, it doesn't work unless you serialize that information also Aug 29 19:34:12 and packed data can't afford that Aug 29 19:34:23 unless you implement that protocol in every client of your data Aug 29 19:34:32 i'm in this crappy area between ByteBuffers and Protobufs Aug 29 19:34:37 should be trivial enough to extend bytebuffer to do that... Aug 29 19:34:44 yeah, maybe Aug 29 19:34:55 but without passing a type to getXXX you can't get a typed result from a single get() Aug 29 19:35:03 unless you plan on casting anyway... Aug 29 19:35:23 you can't just do long l = typedbuffer.get(); String s = typedbuffer.get(); etc. Aug 29 19:35:29 you aren't gaining anything there Aug 29 19:36:02 g00s: i'm using ByteBuffers with a USB device - they pretty much just talk in byte arrays, so it turns out to be a nice wrapper/helper class around those Aug 29 19:36:13 yeah Aug 29 19:37:10 louielouie doing usb on android ? Aug 29 19:37:13 is it possible to use an emulator to stream sound files online ? Aug 29 19:37:22 g00s: yup Aug 29 19:39:03 any NDK experts in here? Aug 29 19:39:47 l3iggs define expert Aug 29 19:41:23 ENDICKY experts? Aug 29 19:42:28 I got it running for cocos2d-x Aug 29 19:42:33 my expertise levels stop pretty much there Aug 29 19:42:52 by following a ray wenderlich tutorial Aug 29 19:43:03 sorry, got disconnected Aug 29 19:43:19 l3iggs: it sounds like your not calling include $(CLEAR_VARS) Aug 29 19:43:20 you still there? Aug 29 19:43:39 l3iggs_, all I said is that I got it to run for cocos2d-x Aug 29 19:43:43 and to define what you meant by expert Aug 29 19:44:01 looks like our line got static again. everyone still here? :) Aug 29 19:44:03 l3iggs_: have you looked at the build scripts? \build\core Aug 29 19:44:08 does anybody know how to build a native app without stripping the binaries? is there some global option i can set? Aug 29 19:44:29 yeah. i'm looking through them now Aug 29 19:44:29 i need it "global" because i'm building a rom, and i dont want anything stripped, because i'm doing some debugging Aug 29 19:44:48 kevin|WORK: yes, one moment Aug 29 19:45:44 JakeWharton were you part of the Maximum Awesome Project for vim :P Aug 29 19:45:46 anyway, i call "include $(CLEAR_VARS)" 6 times in my android.mk Aug 29 19:46:02 g00s: no. I program in IDEs like a sane person Aug 29 19:46:22 JakeWharton sure, me too. but i still use it for little things Aug 29 19:46:31 5 times to define prebuilt_static_libraries and once for the beginning of the executable section Aug 29 19:46:34 just installed Max Awesome bc i secretly love vi Aug 29 19:46:39 i use Sublime 3 as my text editor Aug 29 19:46:39 Napalm: thanks. i've been looking for awhile and cant find anything. i'd also need to configure the global compile flags to produce debugging information (-g) Aug 29 19:46:52 i know the only thing you need to for vim: how to quit! Aug 29 19:47:49 l3iggs_: the makefiles are kind of confusing, i agree. each section where you're specifying a LOCAL_MODULE to build, you do that to start clean Aug 29 19:48:14 :q Aug 29 19:48:31 yeah, i got that part i think Aug 29 19:49:24 i was having trouble linking in prebuilt libraries until i figured out I have to define them fallowing a "include $(CLEAR_VARS)" Aug 29 19:50:18 so that part seems to work, i just need to somehow tell the linker to statically link in my libs instead of dynamically link them Aug 29 19:52:11 l3iggs_: i've only used dynamic libs, but you should try LOCAL_STATIC_LIBRARIES like in http://stackoverflow.com/questions/6118355/linking-static-libraries-in-android-ndk?rq=1 Aug 29 19:54:06 MediaPlayer error (1, -1004) anyone who knows what this indicates ? Aug 29 19:54:14 yeah, i think LOCAL_STATIC_LIBRARIES in that example tells where to find the library in question Aug 29 19:54:56 i'm trying tell the linker to statically link the final output binary Aug 29 19:54:57 kevin|WORK: sorry kev, i look at some previous code to try and find it.. I thought I had that working but nadda, checked the core build scripts and it seems its TARGET_STRIP which in invoked as as PRIVATE_STRIP_CMD in build-binary.mk only when module-is-installable is true Aug 29 19:55:35 kevin|WORK: module-is-installable is defined in definitions.mk which just determines if the output file is located in $PROJECT/libs// Aug 29 19:56:27 kevin|WORK: but.. heres the trick before its stripped build-binary.mk tests if module-is-copyable .. if it is, it makes a copy of the output before its stripped Aug 29 19:57:33 do you know is there any indicator or ui on the top bar, ( not the spin loader ) that can indicate a call request? Aug 29 19:57:51 kevin|WORK: the comments in definitions.mk state this is uppose to be used with ndk-gdb.. so by the sounds of it.. your in luck Aug 29 19:57:54 something that ca make visible a call request ? Aug 29 19:58:30 Napalm: alright, i'll check that out. thanks a lot Aug 29 19:58:37 PREBUILT_SHARED_LIBRARY Aug 29 19:58:39 tada Aug 29 19:59:15 kevin|WORK: check docs/ANDROID-MK.html and read PREBUILT_SHARED_LIBRARY Aug 29 19:59:54 kevin|WORK: and docs/PREBUILTS.html Aug 29 20:00:07 perfect Aug 29 20:01:33 anyone have experience massaging /etc/udev on centos 5.x? Aug 29 20:01:38 I'd really rather not run adb as root Aug 29 20:01:54 kevin|WORK: read docs/PREBUILTS.html section IV. Debugging prebuilt binaries Aug 29 20:02:18 What's the best way to set up unique ID's for an android based database? Aug 29 20:03:10 The only way I can think of how to do it atm is by +1 to a number which is saved as the ID every time something is added to the database Aug 29 20:03:45 if the column is marked as integer primary key or autoincrement it will increment on its own Aug 29 20:03:58 as long as you don't pass in an explicit value when inserting intot he table Aug 29 20:04:52 How does it auotincrement it's own? Been trying to look at other examples of databases and didn't see how the made an unique ID Aug 29 20:05:16 i dunno, some kind of sqlite magic Aug 29 20:05:26 or something Aug 29 20:06:39 The primary key likely needs to be an integer, and autoincrement is ++ Aug 29 20:07:25 Do you know of any examples showing how this works? Aug 29 20:07:44 using a mediaplayer i am getting the following errors: (1, -1004) and a IOException: prepare failed.: status 0x1 - anyone who has any advice ? Aug 29 20:07:56 how do I mark the column as a integer primary key mmathis Aug 29 20:08:06 when you create the table Aug 29 20:08:23 it's just a sqlite thing: http://www.sqlite.org/faq.html#q1 Aug 29 20:08:43 so something like CREATE TABLE table_name (_id integer primary key... Aug 29 20:10:19 troloyolo: google "android mediaplayer assets". First result. Aug 29 20:10:33 troloyolo: i think that's some sort of network error. comb through these and make sure you have the INTERNET permission in your manifest https://www.google.com/search?q=android+mediaplayer+-1004&oq=android+mediaplayer+-1004&aqs=chrome..69i57j69i64l2.3620j0&sourceid=chrome&ie=UTF-8#q=android+mediaplayer+%22-1004%22&safe=active Aug 29 20:10:46 unless you're not the person who's been asking this for two days Aug 29 20:10:52 in which case I have no idea. Aug 29 20:11:34 louielouie: ive granted INTERNET permissions in the manifest. Im worried it wont work on an emulator Aug 29 20:12:08 I see, big thanks for the help, didn't know what was going on Aug 29 20:12:18 How do I test it to make sure it's working? Aug 29 20:12:18 i should mention that it is working as intended when playing files located on the emulator Aug 29 20:15:16 gtank mmathis how do I test it to check what ID is coming up? Aug 29 20:16:33 louielouie: i changed the method a little - i no longer the mediaplayer error, a NetworkOnMainThreadException is occuring when the activity is started Aug 29 20:17:00 i would suppose that is because the method actually works, however i cant do that in an emulator Aug 29 20:17:06 markyosullivan it's just another column, you can select it in a query Aug 29 20:17:51 or did you mean something else? Aug 29 20:18:00 so just cursor.getColumnIndex("_ID") yeah? Aug 29 20:18:09 that's what I mean :) Aug 29 20:18:45 yeah, unless the default is "_id" - i can't remember which at the moment Aug 29 20:18:56 or, wait, whatever you called it Aug 29 20:19:02 stupid comment :) Aug 29 20:19:45 what the heck is going on, not im getting a IOException where the localizedMessage is null.. Aug 29 20:19:47 is there a guide to android manifest files? i want to understand the embedded reference syntax.. Aug 29 20:20:04 now that i'm over being annoyed that it's not basically Spring Aug 29 20:20:20 hm, yeah, the default is _id - http://developer.android.com/reference/android/provider/BaseColumns.html#_ID Aug 29 20:22:46 gtank: how do you get it so it updates only 1 row? datab.update("PaymentTable", vals, "_ID=?", null); , is that right? Aug 29 20:25:10 your where clause Aug 29 20:25:14 markyosullivan: you'd need to specify an _ID there instead of null Aug 29 20:25:51 i think it's a string array? Aug 29 20:27:12 Hmm, been trying to figure this out the past couple of days Aug 29 20:27:33 you could also just build that string as "_ID=7" (for example) and keep the next arg null Aug 29 20:29:21 I'm trying to transfer data between activities Aug 29 20:30:06 trying to update one of the rows, but it's queried in a separate activity, so going to try and transfer the ID over as a string which I could use in the last parameter yeah? Aug 29 20:31:23 please use a constant that references "_ID", and not the string literal itself :) Aug 29 20:32:02 ah, yeah, that's a thing too :) Aug 29 20:32:23 i usually have a class that implements BaseColumns and has my own extra column names as well Aug 29 20:33:51 so if i understand your problem, you need to keep track of which row you just updated in an activity other than the one that does the updating? Aug 29 20:33:55 so when your app has data in sqlite, is it standard to just query your database anywhere in your app code or do most people isolate their data access to a single class or set of classes designated for data access? Aug 29 20:34:44 sobel: i'd isolate; lets you handle schema changes better, handle synchronization if that's an issue Aug 29 20:34:46 all sorts of nice Aug 29 20:35:23 If I have a function that I want to run every 6 hours, how do I go about doing this? Aug 29 20:35:31 gtank: i'm big on isolation but spoiled by enterprise databases that let me isolate quite a bit from the app with sql functions Aug 29 20:35:32 canadiancow: I'm just transferring the information from the _ID column into a string which I'll use to populate a string which will be used to filter out which ID I'm editing Aug 29 20:35:45 Anthaas: https://developer.android.com/reference/android/app/AlarmManager.html Aug 29 20:35:47 does that make sense? Not sure if it did :( and maybe it wont work Aug 29 20:36:04 Alarm Manager would work Anthaas Aug 29 20:36:08 AlarmManager? I thought it would have been along the lines of a service or a pending intent... Aug 29 20:36:18 Interesting. This works when the app is closed too? Aug 29 20:36:25 Anthaas: "Note: The Alarm Manager is intended for cases where you want to have your application code run at a specific time, even if your application is not currently running. For normal timing operations (ticks, timeouts, etc) it is easier and much more efficient to use Handler." Aug 29 20:36:25 Yep Aug 29 20:36:30 next dump question. is it JDBC or some other method? Aug 29 20:36:35 dump=dumb Aug 29 20:36:45 Interesting, thank you. Aug 29 20:36:55 no problem Aug 29 20:37:03 Anthaas: you wanting users to enter data for your app to trigger it going off? Aug 29 20:37:17 do note that they will be cleared if it is turned off and rebooted Aug 29 20:37:29 RyanM: I didn't know that Aug 29 20:37:35 so you'd want to start on boot and re-register them if needed Aug 29 20:37:44 I have data on a database which is downloading using RSS. I want the app to update the local copy of the data by redownloading the data every 6 hours Aug 29 20:37:51 Obv. 6 hours will be adjustable by the user Aug 29 20:37:52 oh Aug 29 20:37:57 use a syncadapter Aug 29 20:38:10 If only I was advanced enough to do all that Aug 29 20:38:24 I'm such a noob when it comes to Android Development Aug 29 20:38:28 https://developer.android.com/training/sync-adapters/index.html Aug 29 20:38:30 I shall read the docs on it. Aug 29 20:38:32 Oh thanks. Aug 29 20:38:44 is the best thing to do just keep developing apps to get better at Android development yeah? Aug 29 20:39:01 Ummm Aug 29 20:39:11 Thats now how I learnt things, but it really does matter more about what suits you. Aug 29 20:39:19 +1 Aug 29 20:39:26 I personally found functionalities that I wanted to learn, and developed a dummy app which did that for me Aug 29 20:39:27 markyosullivan: I'd recommend a combination of developing apps, reading the guides on d.android.com, and watching Google I/O sessions Aug 29 20:39:27 personal disposition is the biggest factor in learning rate Aug 29 20:39:39 That way, I can use the dummy apps as a reference when developing. That is how I learnt. Aug 29 20:39:45 once you have the basic skills, tools, and other fundamental prereqs are met, anyway Aug 29 20:40:08 Also, the amount I have learnt since coming into this IRC is a lot Aug 29 20:40:16 +1 dummy apps, sandbox coding, generally fooling around with new stuff in low-risk arenas Aug 29 20:40:30 I've made a practice class which I do to try and test what I'm trying to do, is that good practice? Aug 29 20:40:39 fwiw the postgresql community here (freenode) is also awesome Aug 29 20:40:42 If someone asks a question that interests you, but you don't know the answer, always read and research what gets suggested to that person, and feel free to also ask questions Aug 29 20:40:52 +1 Anthaas Aug 29 20:41:03 Anthaas so sound really experienced Aug 29 20:41:10 how much programming experience do you have? Aug 29 20:41:16 markyosullivan: generally trying things is the best way. if you have an app almost complete, maybe it's not the best place to try something new. it costs only disk space to start a new project (or fork an existing one) to try something. Aug 29 20:41:21 You can't really say if it is good practise. If it suits what you are trying to do then sure, if not then not really. I prefer to have my attempts separated so I can reference them later Aug 29 20:41:26 And I always try to go back and improve. Aug 29 20:41:32 +1 Aug 29 20:41:49 I have about 3 and a bit years experience. Aug 29 20:41:53 wow Aug 29 20:41:54 Not all that much in the scheme of things Aug 29 20:41:59 Building on "go back and improve." You have to have standards. If you think something is janky, it probably is. Ask around for better solutions. Aug 29 20:42:00 I've been coding less than a year Aug 29 20:42:09 But I am a good student as it were. Aug 29 20:42:09 only started Java in Sept 2012 Aug 29 20:42:16 I want to use the camera in my application, but i do NOT want the photos taken to trigger the google+ auto-backup/instant upload. What is the proper way to achieve this? Store the photos in some obscure location? Im taking photos by starting the camera application Aug 29 20:42:27 I personally find Java a GREAT language to teach OOP concepts, because you are forced into it. Aug 29 20:42:31 Started Android development around June 2013 Aug 29 20:42:39 These "semi-OOP" languages, like PHP don't force you to learn OOP. Aug 29 20:42:40 I'm a uni student btw Aug 29 20:42:44 Same Mark Aug 29 20:42:49 Im about to start my Bachelors year Aug 29 20:42:51 You are? Aug 29 20:42:53 Just completed a year in placement. Aug 29 20:42:57 Yeah :D Aug 29 20:42:57 Awesome! Aug 29 20:43:02 liefer: Include an empty file named .nomedia in your external files directory (note the dot prefix in the filename). This will prevent Android's media scanner from reading your media files and including them in apps like Gallery or Music. Aug 29 20:43:12 (from http://developer.android.com/guide/topics/data/data-storage.html) Aug 29 20:43:37 Anthaas: I tend to agree, but I might add that one should learn and use at least two strong OO languages (C++ would count here, where PHP as you mentioned, doesn't) to get a clear sense of why the flavor of the OO matters in a language, as well as where one has to set aside all the OO philosophy and do something sensible Aug 29 20:43:39 We got taught java in first year, apparently we do an android module later in semester 2 in 2nd year. I'm getting a head start :) Though I wanted to build an app primarily to show potential placement employers Aug 29 20:44:00 placement employers Aug 29 20:44:01 ? Aug 29 20:44:11 3rd year of uni (year in industry) Aug 29 20:44:11 RyanM: oh, cool. Thanks. But its not so much that i want to hide the photos from gallery etc, i just dont want them uploaded Aug 29 20:44:13 sounds European Aug 29 20:44:14 is that like a co-op/internship type of thing? Aug 29 20:44:17 ah, cool. Aug 29 20:44:54 sobel: I agree that more than one language is important, which is probably my biggest downfall. I know a bit of C++, but not enough. I plan on getting stuck into it soon though Aug 29 20:44:59 liefer: ah. as long as the user isn't taking photos with the camera and then sharing them with your app, that shouldn't be an issue. How are you calling the camera? Aug 29 20:45:03 C# is too similar to Java to be worth my while just yet I think Aug 29 20:45:04 But if I make a little bit of money with my app, of course I'd be happy :) Though to get 1000 downloads before Christmas would be great Aug 29 20:45:29 liefer: Should be something like this: http://stackoverflow.com/questions/5991319/capture-image-from-camera-and-display-in-activity Aug 29 20:45:41 RyanM: using an intent, as per http://developer.android.com/guide/topics/media/camera.html#intents Aug 29 20:46:04 RyanM: Yes, a year in placement is where you work as a junior employee of a company for a year, normally paid around £16,000 and are there primarily to learn, but after a while to contribute to the company for experience. The aim of which is to make you more employable after graduating. Aug 29 20:46:20 I started learning Python before I changed what I wanted to do over summer. Was originally going to learn Python but then thought about what I could show potential employers, making an app really interested me and that's what I went for :) Aug 29 20:46:23 liefer: Yeah, you should be fine as-is. Are you having issues? Aug 29 20:46:25 markyosullivan: I spent my placement year as an Android developer, getting 1000+ downloads isnt as easy as it sounds. Aug 29 20:47:07 It's mainly the idea and trying to get your app out there is what I'm guessing is the biggest challenge Anthaas Aug 29 20:47:13 is that true? Aug 29 20:47:14 Anthaas: Yeah, that sounds similar to my university's co-op program, except it's done in blocks throughout school rather than all at once. Aug 29 20:48:08 RyanM: The actual camera part works great. The camera app is started, photo is taken, and i receive the result. Afterwards, though, i see that the photos taken have been uploaded automatically to google+. I do not want this (expecting the user to take many pictures, most/all of which are unlikely to be shared) Aug 29 20:48:19 markyosullivan: i'm at a startup that just launched a new android thing, getting people's attention is hard Aug 29 20:48:20 markyosullivan: Uhh, the idea is partially yes. You have to provide something new, or something that is easily seen as better than a current solution. You also have to make it user friendly, non-intrusive, and have some reason for the user to keep coming back. In some ways, doing this for a client which has a large customer base is the easiest way. Aug 29 20:48:23 i'd love to have 1000 users Aug 29 20:48:38 markyosullivan: What course/Uni if you don't mind me asking? Aug 29 20:48:48 What is it gtank? Aug 29 20:49:23 Anthaas I'm at University of Ulster Jordanstown studying Computer Science Aug 29 20:49:36 markyosullivan: NI? Aug 29 20:49:40 Yes :) Aug 29 20:49:48 markyosullivan: BSc? Aug 29 20:49:54 Yep :) Aug 29 20:49:58 markyosullivan: Awesome. Aug 29 20:50:06 What about yourself? Aug 29 20:50:16 Psh BA in CS is just silly lol Aug 29 20:50:23 MEng Software Engineering at Uni of Huddersfield Aug 29 20:50:34 readyjar: Could have been MSc Aug 29 20:50:41 markyosullivan: it's a library that for getting feedback from users, lets them record short audio messages Aug 29 20:50:47 Anthaas: Well he said 3rd year, so not likely Aug 29 20:51:02 readyjar: Im 3rd year and am on MEng.... Aug 29 20:51:22 Anthaas: Didn't say it's not possible, just not likely. Aug 29 20:51:27 readyjar: :P Aug 29 20:51:49 I do want to learn more about concurrency etc though. Aug 29 20:52:00 Sounds interesting gtank, when did you launch it? Aug 29 20:52:03 Although I do enjoy Android development, I'd prefer to be a more general developer. Aug 29 20:52:16 brb Aug 29 20:52:16 ha! literally yesterday Aug 29 20:52:22 Anthaas: I've considered going for a masters but I'm not 100% sure how it'd work Aug 29 20:52:39 transferring from BSc to a Masters Aug 29 20:52:42 markyosullivan: Ive been asked to skip my MEng and go straight to Ph.D Aug 29 20:52:44 And its simple Aug 29 20:52:51 Its literally a matter of changing the title and doing an extra year. Aug 29 20:53:09 I thought you'd have to apply to transfer over? Aug 29 20:53:11 RyanM: Perhaps im just being difficult here. Ideally, i'd like the photos to be available to other apps, gallery etc, but i want to avoid the auto-backup/instant-upload. Perhaps i should just hide the photos altogether using a .nomedia file, as you suggested Aug 29 20:53:12 yeah, the folks i know who are in PhD programs for CS tend to just breeze right through a masters Aug 29 20:53:17 gtank: I could download it? Aug 29 20:53:34 Nah, normally just a matter of saying can I be moved onto the MEng. Aug 29 20:53:37 markyosullivan: sure! it's at audobox.com Aug 29 20:53:40 Anthaas: do you want to do a Ph.D? Aug 29 20:53:46 (assuming that .nomedia would actually avoid this) Aug 29 20:53:48 Youll find the modules are very similar if not identical to the MEng/MSc Aug 29 20:53:57 Possibly, I'd prefer to at least finish Masters first though Aug 29 20:54:02 gtank: do you not have it on the Google store? Aug 29 20:54:13 well, it's a library rather than an app Aug 29 20:54:16 Anthaas: Masters interests me, Ph.D... not so much Aug 29 20:54:19 ah Aug 29 20:54:20 My Uni course also comes with chartered engineer status. Aug 29 20:54:21 I see :) Aug 29 20:54:30 That's awesome Aug 29 20:56:31 Anthaas: do you need to be a chartered engineer to do software engineering? Aug 29 20:56:48 (i'm US, so kind of a strange idea for me) Aug 29 20:56:59 gtank: the only problem I can see with audio feedback is trying to understand different peoples accents Aug 29 20:57:15 markyosullivan: oh, thanks for checking it out :D Aug 29 20:57:20 No, not at all. My course grants me the chartered engineer status. Aug 29 20:57:32 gtank: went on to the website, was curious :) Aug 29 20:57:38 I believe it is through the BCS (British Computing Society) Aug 29 20:57:50 markyosullivan: we're thinking about trying to offer transcription, so maybe that would be a less of a problem Aug 29 20:58:34 gtank: would be good if the app using it was region locked so they could understand the majority of the users but if it's a world wide app there could be problems Aug 29 20:58:59 brb. Aug 29 20:59:21 but when we were using this in our last app (it was a random little feature before it was a library) we could pretty much understand everyone who spoke english at all Aug 29 20:59:35 That's good :) Aug 29 21:00:10 I can definitely see people using it Aug 29 21:00:25 we do check locales anyway, though- maybe switching over to text mode outside your "base" region would be a good feature Aug 29 21:00:29 I still can't see to get this unique ID working correctly Aug 29 21:00:57 oh, yeah, we got a bit off topic there (thanks for the complement though) Aug 29 21:01:02 what exactly are you trying to do? Aug 29 21:01:03 using the Cursor.getColumnIndex("_ID") method and I can't get it to print as a toast Aug 29 21:01:26 it's fine, always interesting hearing about what other people are working on Aug 29 21:01:27 did you try it with "_id" instead? Aug 29 21:01:52 Hi! How can I make the baloons for pins on a Google Map visible when the positions are known? E.g. the user shouldn't need to touch on a pin to show the overlay? Aug 29 21:02:04 uh-oh, just had an embarrassing moment there Aug 29 21:02:14 realised I had spelt it wrong Aug 29 21:02:16 might work now Aug 29 21:02:34 ha, hate it when that happens Aug 29 21:03:49 Was hoping to get this app released for the 1st, this kept me delayed for 3 days without making progress Aug 29 21:04:30 should probably have done other things instead of trying to figure out what was wrong with it, like changing the design of a couple activities but I think I'm making progress now Aug 29 21:04:36 meck0: can you just drop a marker? https://developers.google.com/maps/documentation/android/marker Aug 29 21:04:59 gtank printed the _ID column as a toast... it's blank? Aug 29 21:06:25 gtank, I have the marker (current position), but I was on your link that "info window" may be what I'm searching for! Aug 29 21:08:10 worked it out Aug 29 21:08:34 markyosullivan: here's a bit of code where i'm getting a column on the basis of _ID Aug 29 21:08:34 https://gist.github.com/gtank/a41a721c177546cc04dd Aug 29 21:08:41 oh, never mind then :) Aug 29 21:08:43 what was wrong? Aug 29 21:08:52 was cause I was trying Cursor.getString(Cursor.getColumnIndex(_ID)) instead of Cursor.getInt Aug 29 21:09:04 then I just converted the int to string to print it as toast Aug 29 21:09:37 Actually, it's staying as 0 even though I added a new row Aug 29 21:10:03 still zero on the new row? Aug 29 21:10:17 zero for the toast Aug 29 21:10:29 the toast came up twice, don't think my Database is set up right. Aug 29 21:10:56 hm Aug 29 21:10:58 http://pastebin.com/P6hwG9f2 Aug 29 21:11:13 so the android guide about setting up sqlite is actually good- http://developer.android.com/training/basics/data-storage/databases.html Aug 29 21:11:33 if you do it that way it is a lot harder to make little type or typo sorts of mistakes Aug 29 21:12:33 though it doesn't look like that's your problem Aug 29 21:12:50 Is my database okay? Aug 29 21:13:38 yeah, that looks fine Aug 29 21:16:43 Will the ID's automatically be unique? Aug 29 21:17:38 sort of Aug 29 21:17:47 the sqlite faq says Aug 29 21:17:48 "If you declare a column of a table to be INTEGER PRIMARY KEY, then whenever you insert a NULL into that column of the table, the NULL is automatically converted into an integer which is one greater than the largest value of that column over all other rows in the table, or 1 if the table is empty." Aug 29 21:17:55 (http://www.sqlite.org/faq.html#q1) Aug 29 21:18:09 but i think you could mess it up manually if you wanted to Aug 29 21:19:18 not if its a proper database Aug 29 21:19:29 a primary key will never be null Aug 29 21:20:04 I tried uppercase _ID maybe I have to change it to lowercase? Aug 29 21:20:40 Is it possible to print off the ID's as toasts? Aug 29 21:20:50 while implementing BaseAdapter, in getView, why should I check if convertView is null? I don' care about and everything works correctly. Aug 29 21:23:40 under - err, are you just ignoring convertView and making a new View no matter what? Aug 29 21:26:00 of course no. RyanM: http://ideone.com/Vd64Qd . Also when convertView is null, this works correctly Aug 29 21:26:17 it's working now gtank Aug 29 21:26:23 thought I updated the database version Aug 29 21:26:27 awesome! Aug 29 21:26:28 but turns out I didn't Aug 29 21:26:44 under: ...you're doing exactly what I just said. Aug 29 21:27:01 Big thanks for everyone who helped me get the ID sorted :) now just to get this method done Aug 29 21:27:05 you're ignoring convertView and making a new View no matter what Aug 29 21:27:18 markyosullivan: good luck Aug 29 21:27:34 RyanM: I inflate it btw Aug 29 21:27:54 ...yes, that's often how you create new Views. Aug 29 21:29:42 RyanM: ok so what should I do Aug 29 21:29:44 ? Aug 29 21:31:32 under: if it's appropriate, reuse the existing view Aug 29 21:32:07 like if you just need to change a piece of text Aug 29 21:32:28 Can someone help me with SQLiteDatabase.update? Aug 29 21:34:38 I've done it! Aug 29 21:34:39 :D Aug 29 21:34:43 gtank: sorry, what you mean? Aug 29 21:35:02 The last major feature has been complete! :D Aug 29 21:35:15 Thanks for everyone's help and guidance. So happy right now. Aug 29 21:36:21 markyosullivan: cheers! that's always a great feeling Aug 29 21:36:29 under: if you look at http://developer.android.com/reference/android/widget/Adapter.html#getView(int, android.view.View, android.view.ViewGroup) Aug 29 21:36:47 Think I only have 1 minor thing to do but will look to change the layout of my app now :) Aug 29 21:37:01 convertView is "The old view to reuse, if possible." Aug 29 21:37:07 ack, sorry, I managed to completely break my IRC session Aug 29 21:37:11 freaking mac bugs. Aug 29 21:37:26 had to fix it from my phone Aug 29 21:40:30 under: you should only be inflating the view if convertView is null - otherwise, just do the findViewById and setText calls on the old view Aug 29 21:40:59 also, you should change convertView = inflater.inflate(res, null); to convertView = inflater.inflate(res, parent, false); Aug 29 21:46:34 error when pushing a file to sd card on my emulator Aug 29 21:46:41 Failed to push selection: Read-only file system Aug 29 21:46:59 RyanM: something like that? http://ideone.com/FmlxZv Aug 29 21:50:59 yep, looks good Aug 29 21:51:35 What does your app do? Aug 29 21:51:48 oh he left Aug 29 21:52:28 RyanM: thanks ;) Aug 29 21:52:48 Right, time to look at the sync adapters... Aug 29 21:54:58 Anthaas: help Aug 29 21:56:31 shadej: Whats up? (I will reply once Im back from the toilet) Aug 29 21:56:48 Hello ! Aug 29 21:57:36 error while pushing a file to sdcard on emulator Aug 29 21:57:43 transfer error: Read-only file system Aug 29 21:59:02 it would be cool if nio bytebuffer could grow dynamically :/ Aug 29 21:59:22 this stupid thing is impotent Aug 29 21:59:43 wasn't nio java 7 only? Aug 29 22:00:05 1.4.2 Aug 29 22:00:12 nio.2 was java 7 Aug 29 22:00:43 shadej: Sorry, I can't help - I don't use the emulator. Aug 29 22:00:44 oh I see Aug 29 22:01:10 How easy is it in Android to do specific animated transitions between activities? Like if I need one to slide up from the bottom, down from the top, etc? Aug 29 22:01:20 Very Aug 29 22:01:49 Anthaas: what specific docs should I be reading? any help would be much appreciated, thanks! Aug 29 22:01:54 Yeah, enjoy some DevByte video Aug 29 22:02:00 overridePendingTransition() is the function in Activity you need to override Aug 29 22:02:26 If you google that and something like "custom animations" you should have a good load of stuff come up to help Aug 29 22:02:37 You just define the animations in an XML file Aug 29 22:02:43 There'll be 2987239472342 tutorials for that too :-) Aug 29 22:03:03 Fallout2man: check this project out: http://commondatastorage.googleapis.com/androiddevelopers/shareables/devbytes/ActivityAnimations.zip Aug 29 22:03:19 under: Danke! Will check this out. Aug 29 22:09:22 oh man, i'd like to see this Rx presentation http://uk.droidcon.com/2013/sessions/conquering-concurrency-bringing-the-reactive-extensions-to-the-android-platform/ Aug 29 22:09:43 Guys, every message in this room is coming through to me as if it is being directed at me, how stop? Aug 29 22:10:04 O.o Aug 29 22:10:23 probably depends on your client Aug 29 22:10:23 i second g00s Aug 29 22:10:39 KVIrc Aug 29 22:10:43 hydrairc and others can highlight on event, like any message. Aug 29 22:10:56 ahhh Aug 29 22:10:57 Yeah Aug 29 22:10:59 There we go Aug 29 22:11:05 Think that will have fixed it Aug 29 22:12:36 Is RyanM still here Aug 29 22:13:01 yes Aug 29 22:13:04 Woo Aug 29 22:13:08 Have you used SyncAdapters before? Aug 29 22:13:27 a bit Aug 29 22:13:28 If so, just reading over them, do you need to create the StubAuthenticator, StubContentProvider AND the SyncAdapter? Aug 29 22:14:09 Or can you just have a SyncAdapter? Aug 29 22:15:08 My web database etc doesnt use authentication beyond logging in for the data Aug 29 22:15:21 why use a sync adapter then Aug 29 22:15:43 It was suggested to me as a solution to a regular data synchronisation between web database and app Aug 29 22:15:51 use it if it suits your needs, it usually doesnt Aug 29 22:16:09 Say I want to download data and update a local db every 6 hours Aug 29 22:16:12 What would you use? Aug 29 22:16:18 or once a day Aug 29 22:16:26 user defined time period Aug 29 22:17:02 alarm and a service to download Aug 29 22:17:25 pfn: he'd need to start on boot, though, would he not? Aug 29 22:17:26 only use a sync adapter if you're tying it to some account data Aug 29 22:17:38 big deal Aug 29 22:17:39 alarms are cleared when the device reboots Aug 29 22:17:48 Yeah, I don't want that done Aug 29 22:17:56 so you start on boot if you need Aug 29 22:17:58 I want the "alarm" to stay on regardless of whether device is off or not Aug 29 22:18:04 it's a necessary evil Aug 29 22:18:18 Anthaas, you must start on boot Aug 29 22:18:43 Anthaas: I'm not completely sure - I think you need an Account of some sort, but I've never tried it without an authenticator. Aug 29 22:18:43 I don't want garbage accounts in my account manager Aug 29 22:18:53 ^ I agree Aug 29 22:19:04 At the same time, personally, I don't like apps running themselves Aug 29 22:19:19 Yeah, start on boot is sketchy for a few reasons Aug 29 22:19:21 you're running yourself by definition Aug 29 22:19:53 especially because NOT using the sync adapter will disobey the user's wishes if they disable sync Aug 29 22:21:54 I guess Ill go with the alarm manager and start on boot then Aug 29 22:22:18 wow, Parallels for iPad looks nice (Parallels Access) Aug 29 22:28:07 so using the alarm manager Aug 29 22:28:26 I create a broadcast receiver, which receives boot completed, use that to set up the service, and define what I want to do within the service? Aug 29 22:30:45 g00s: interesting find (Parallels Access) Aug 29 22:30:57 g00s: what does it do? Manages mac Parallels? Aug 29 22:31:09 seems like a VNC type thing Aug 29 22:31:48 i'd rather my pc be the hub of my experience, not the cloud, so this is appealing to me Aug 29 22:35:04 hi i am making a weather widget and i have problems with normal layouts so i did try it with a gridview and it was perfect .. but now i want to use it in android 2.2 and i did try no Aug 29 22:38:22 surprising gridlayout even works at all Aug 29 22:38:41 yes with api 14 its nice working Aug 29 22:40:19 * pfn fly & Aug 29 22:43:32 target api 18 ftw Aug 29 22:44:37 * SpeedEvil looks at his new froyo device. Aug 29 22:44:46 SpeedEvil: new froyo ? Aug 29 22:44:52 yes. Aug 29 22:44:57 Nook simple touch. Aug 29 22:45:00 ohh Aug 29 22:45:10 i was going to guess a chinese manufacturer phone Aug 29 22:45:15 it's quite nice - eink is handy for some things. Aug 29 22:45:34 GridLayout and GridView are two different things Aug 29 22:46:22 i wish there was a grid view with variable height Aug 29 22:46:27 yes anthaas i did mean gridlayout Aug 29 22:46:38 sorry not view Aug 29 22:48:38 SpeedEvil froyo ftw ! Aug 29 22:48:59 To be sure - i'd prefer a more modern OS Aug 29 22:49:27 But with just fbreader, calculator, and not much more, it's a handy device Aug 29 22:58:00 when working in android studio, what is the best way to include a local library that we make ourselves. Do we create a new project for that library, or do we just make it part of the project itself? How do we include it in the projects build.gradle file. Aug 29 22:59:49 I know to include certain android libraries we just add "compile 'com.android.support:support-v4:13.0.+'" or something like it in the build.gradle file, but what about a personal, local library Aug 29 23:03:15 is anyone here a freelancer? Aug 29 23:05:18 Newbieto, yes I am Aug 29 23:12:14 Hello Everyone Aug 29 23:12:27 I have a question about the "ShareActionProvider" Aug 29 23:12:55 Is it possible to capture the event of the share intent? for analytics stuff Aug 29 23:22:13 In Android Studio, when importing a project for a library to be used for your own project, what is the best way to import it for use and inclusion with gradle Aug 29 23:38:07 How can I get the background color of a RadioButton programmatically? Aug 29 23:40:15 Is there something wrong with View#getBackground()? Aug 29 23:40:26 Or did you just not read the docs? Aug 29 23:46:15 Is it possible to turn off GPS programmatically without invoke the gps-settings with an intent? Would be desirable when leaving the maps activity or the whole app... Aug 29 23:48:29 meck0: Not sure if it's possible, but I'd advise you not do that - the user may have wanted to have GPS on and wouldn't want it changed. Aug 29 23:49:49 RyanM, just saw that the Google Maps also behave like mine now, i.e. location updates are not received, but GPS module still turned on. I thought of this so batteries would not tear down faster. Aug 29 23:51:16 But maybe its better to show a dialog instead, asking the if the user want to turn off gps to save battery? Aug 29 23:54:21 Nilium, that getBackground returns a drawable Aug 29 23:54:45 So what do you mean by "background color" then if not a color/shape drawable? Aug 29 23:55:35 A hex code Aug 29 23:55:57 What's a hex code in this case? Aug 29 23:56:38 #FFFFFF Aug 29 23:57:08 And where you think this hex code is stored for a background? Aug 29 23:57:17 Nevermind that it's not actually a hex code. Aug 29 23:58:14 A hexadecimal color code. Commonly abreviated as hex code (when talking about colors). And.. the hex code is stored for a background in the XML. For example, android:background="#FFFFFF" Aug 29 23:58:14 Cat has suddenly decided my lap is the ideal bed, rather than the bed itself. Aug 29 23:59:09 And what do you think that background is? Aug 29 23:59:12 What I could do is ColorDrawable.getColor(), but that return color id Aug 29 23:59:30 Nilium, I know Android makes the color a Drawable Aug 30 00:00:07 getColor does not return a resource ID. Aug 30 00:00:15 It returns the color that you call a hex code. Aug 30 00:00:46 In other words, it's the integer color ARGB color. Aug 30 00:00:55 .. Minus one of those 'color' words. Aug 30 00:02:15 hey I'm having an issue with a listview transcription mode. I have a list adapter with multiple view types. When a new instance of a view type is added the listview doesn't scroll all the way. When its recycling a view, everything works. Any ideas? Aug 30 00:02:38 http://i.imgur.com/2nAG1gw.gif Aug 30 00:02:40 lol'd Aug 30 00:02:57 <|0xD34D|> zyngawow: what's the importance of the RadioButton's background color? Aug 30 00:03:56 |0xD34D|, I use RadioButtons with background so that the user can pick the color Aug 30 00:04:04 And instead of hardcoding it.. Aug 30 00:04:36 zyngawow: Basically, given a color int, the color's components are each of the 8 bits of the int. Aug 30 00:05:07 <|0xD34D|> lol, you still going on about the integer color representation? Aug 30 00:05:34 <|0xD34D|> zyngawow: does the user control that background color or just pick a radio button with a preset color? Aug 30 00:05:42 I'm assuming he doesn't know what an integer color is. Aug 30 00:05:53 |0xD34D|, preset color Aug 30 00:05:55 Considering he thinks getColor returns a resource ID. Aug 30 00:06:08 <|0xD34D|> zyngawow: then why not just get the RadioButton' Aug 30 00:06:16 <|0xD34D|> id and go from there Aug 30 00:06:39 Because that won't help me. I know how to get a View :) Aug 30 00:07:08 I think zyngawow's just ignoring how to actually get the color now. Aug 30 00:07:18 Nilium, nope Aug 30 00:07:30 Nilium, btw, getColor is for API 11 and higher Aug 30 00:08:00 So? Aug 30 00:08:14 Don't target older versions if it matters. Aug 30 00:08:54 The thing is I want to target older versions Aug 30 00:09:11 Version 7 for instance Aug 30 00:09:22 Then you're probably SOL. Aug 30 00:09:40 What you want to do requires that method. Aug 30 00:12:11 zyngawow 7? thats crazy Aug 30 00:12:26 g00s, why is it? Aug 30 00:12:36 g00s, want to see a version chart? Aug 30 00:12:42 I guess you've already seen them Aug 30 00:13:24 <|0xD34D|> 1.2% Aug 30 00:13:38 1.6 Donut 4 0.1% Aug 30 00:13:38 2.1 Eclair 7 1.2% Aug 30 00:13:38 2.2 Froyo 8 2.5% Aug 30 00:13:40 so no Aug 30 00:13:53 That makes almost 3.8% Aug 30 00:13:55 zyngawow even if you aren't using any new apis; you have exposed yourself to many bugs, more shitty phones, etc Aug 30 00:14:21 i would say support 9 min, new app min 15 Aug 30 00:14:22 g00s, so what API level do you suggest I support? Aug 30 00:14:33 Ok Aug 30 00:14:54 And the 33% on GingerBread? Aug 30 00:15:28 zyngawow are you the only person working on the app ? Aug 30 00:15:38 i keep thinking your on a team at zynga Aug 30 00:15:51 I am not related in any way to Zynga Aug 30 00:16:03 so, one man team ? Aug 30 00:16:04 Just my old nickname Aug 30 00:16:06 Yes Aug 30 00:16:17 fuck it, make it easy for yourself, minsdk 15 Aug 30 00:16:30 Holo! Aug 30 00:16:44 during the holidays, or very soon, the next android will be out, api 15 will be the new GB probably if they make lots of changes Aug 30 00:17:55 g00s: seems unlikely Aug 30 00:18:05 but who knows. anyhow, for an indie i'd say make life easy for yourself Aug 30 00:18:36 This app is just like for learning so.. Aug 30 00:18:53 learn new stuff :) Aug 30 00:18:53 How much margin do action bar icons have between each other? So I can align other icons with them (OCD) Aug 30 00:18:57 <|0xD34D|> then learn with something that provides less head aches Aug 30 00:19:22 <|0xD34D|> focus on the core aspects of the app and take advantage of newer features Aug 30 00:24:17 you can also try to leverage some synergies Aug 30 00:26:00 yes, to professionally incentivize cloud-ready experiences Aug 30 00:26:37 and phosfluorescently repurpose client-focused scenarios Aug 30 00:27:03 bingo! Aug 30 00:29:07 don't forget to crowdsource big data Aug 30 00:30:24 In Android Studio, when importing a project for a library to be used for your own project, what is the best way to import it for use and inclusion with gradle Aug 30 00:37:00 Is it possible to handle the back button being pressed in a fragment, or does it need to be handled in the Activity and call a custom method on the Fragment? Aug 30 00:38:37 can anyone here help me with installation of the adt on linux Aug 30 00:38:57 Brandon_Mansell: what part of the instructions are you having difficulty with? Aug 30 00:40:13 ok i have it installed.. when i go to run the program i get an error saying that there is no such command for adb Aug 30 00:40:27 ah, you need to add it to your PATH Aug 30 00:41:10 i searched online with the linux website and folled their instructions i continue to get the same thing Aug 30 00:41:26 *followed Aug 30 00:42:41 im using kali-linux if that has any affect on what i am trying to do Aug 30 00:42:59 try opening a new terminal Aug 30 00:43:19 often PATH changes don't take effect until you open a new terminal Aug 30 00:43:26 i did. i tried rebooting the system Aug 30 00:43:31 also Aug 30 00:44:25 Im attempting to run some sample code from a project called OpenCV using Android Studio instead of Eclipse, but im getting an error about "No resource identifier found for attribute 'show_fps'" . This question on stackoverflow appears to be identical to the issue i'm having: stackoverflow.com/questions/18135391/android-opencv-no-resource-identifier-found-for-attribute-camera-id-in-package . Aug 30 00:44:30 I have compiled a .jar file of the opencv project in eclipse, which i have then included in my android studio project. Aug 30 00:44:43 what did you do to add it to the path? Aug 30 00:46:40 gedit ~/.bash Aug 30 00:47:23 rc Aug 30 00:49:27 Brandon_Mansell: some distros require a different file. Just to test if that's the issue, run "source ~/.bashrc", then try running adb again. Aug 30 00:49:41 ok Aug 30 00:50:33 same thing Aug 30 00:51:49 still an error? Aug 30 00:51:58 yes Aug 30 00:52:28 in that case, the issue is it's not getting added to your path correctly. could you paste your .bashrc on pastebin.com or something similar? Aug 30 00:52:28 i have been at this since 8 this morning.. searching and trying.. havent gotten anywhere Aug 30 00:56:29 ok Aug 30 00:56:40 i have it pasted Aug 30 00:57:17 what do you need to find it Aug 30 01:00:30 http://pastebin.com/u/mansell465 Aug 30 01:02:37 aha Aug 30 01:02:45 I think I see the problem Aug 30 01:03:12 where you have "~home/" I think it should be "~/" Aug 30 01:03:14 ok Aug 30 01:03:21 ok Aug 30 01:03:25 although I'm not sure if ~ works in bashrcs... Aug 30 01:03:48 should i move the whole folder Aug 30 01:04:15 what is the full path to your SDK directory? Aug 30 01:04:32 just to be sure, cd into it, type "pwd" and paste the result Aug 30 01:05:39 root@Brandon-Kali:/home/adt-bundle-linux-x86_64-20130729/sdk# pwd Aug 30 01:05:39 /home/adt-bundle-linux-x86_64-20130729/sdk Aug 30 01:05:55 thats what came up Aug 30 01:06:38 aha, alright Aug 30 01:06:53 I can fix this :-) Aug 30 01:07:03 ok Aug 30 01:07:19 in the two places you have ~home near the top of the file, change both to /home Aug 30 01:08:56 ok Aug 30 01:09:39 root@Brandon-Kali:~# adb devices Aug 30 01:09:39 bash: /home/adt-bundle-linux-x86_64-20130729/sdk/platform-tools/adb: No such file or directory Aug 30 01:09:55 that's interesting... Aug 30 01:11:02 alright, check this answer: http://askubuntu.com/questions/73491/no-such-file-or-directory-for-existing-executable Aug 30 01:11:10 looks like that's your issue Aug 30 01:11:29 you're on 64-bit linux, right? Aug 30 01:11:59 yes Aug 30 01:12:18 yep, that's most likely your issue Aug 30 01:15:50 Hello again, repeated question about the "ShareActionProvider": "Is it possible to capture the event of the share intent? for analytics stuff" Aug 30 01:19:13 root@Brandon-Kali:~# adb devices Aug 30 01:19:14 adb: error while loading shared libraries: libstdc++.so.6: cannot open shared object file: No such file or directory Aug 30 01:19:44 Thats what i got RyanM Aug 30 01:26:12 Brandon_Mansell: what linux distro is this? Aug 30 01:28:50 it is kali... new version of backtrack Aug 30 01:36:06 Brandon_Mansell: sudo apt-get install ia32-libs Aug 30 01:37:26 can I reuse a LayoutParams object that I create, or should I create new ones for every widget? Aug 30 01:37:32 assuming that the params are the same Aug 30 01:38:36 does anyone run android junit tests in android studio? Aug 30 01:39:04 or do you just do it from the command line? Aug 30 01:39:14 i miss that green bar eclipse used to display :( Aug 30 01:41:18 @HorizonXP it would depend on if a view mutates those params. Aug 30 01:41:27 which I don't know the answer to Aug 30 01:44:38 The following packages have unmet dependencies: Aug 30 01:44:39 ia32-libs : Depends: ia32-libs-i386 but it is not installable Aug 30 01:44:39 E: Unable to correct problems, you have held broken packages. Aug 30 01:45:13 did a search .. said to run the update and retry and i still get this Aug 30 01:49:42 I don't have enough linux experience to know for sure how to help, unfortunately. Server Fault has this: http://serverfault.com/questions/415073/ia32-libs-depends-ia32-libs-i386-but-it-is-not-installable Aug 30 01:55:36 ok.. i have the libs installing now Aug 30 01:55:42 finally Aug 30 02:50:14 finally, home at last Aug 30 02:59:57 Does anyone have any advice on getting Google Play Services working on android studio? I have installed Play Services using the sdk manager but android studio still says that "cannot resolve symbol 'GooglePlaySerciesClient'" **** ENDING LOGGING AT Fri Aug 30 02:59:58 2013