**** BEGIN LOGGING AT Wed Feb 27 02:59:58 2013 Feb 27 03:00:09 hmm, so this window doesnt overlap the frame generally? Feb 27 03:00:13 only in large res? Feb 27 03:00:36 kaneda^: well because i don't know yet how to run in low res... so the renering window was in the top left corner, while this one in the right Feb 27 03:01:54 everything is not nice yet though :| still irresponsive Feb 27 03:02:11 as i said, you can alawys render at lower quality Feb 27 03:02:22 ESphynx, if you're doing a pixel operation, make it a sparse operation Feb 27 03:02:38 kaneda^: yes, how ? :) Feb 27 03:02:46 lower quality? Feb 27 03:02:50 well, if it's literally per-pixel try pixel+=2 :D Feb 27 03:02:58 I googled that for the longest time last time I tried Feb 27 03:02:58 if it's a texture render it at half the quality Feb 27 03:03:10 the upscale thing? Feb 27 03:03:13 yes Feb 27 03:03:19 but I need to render to a texture? Feb 27 03:03:32 I wa shoping for a way to have a glViewport with a smaller size Feb 27 03:03:34 well, what are you doing right now? i heard sphere and gles Feb 27 03:03:47 ESphynx, well in gl you have a frustum right? Feb 27 03:03:56 yes I have a frustum Feb 27 03:04:05 http://en.wikipedia.org/wiki/Viewing_frustum Feb 27 03:04:14 I understand hte frustum ... Feb 27 03:04:15 i'm reminding myself of how this works at the same time ;p Feb 27 03:04:31 I thought you guys were saying I could have the pixel shaders do less work Feb 27 03:04:35 and then just upscale? Feb 27 03:04:42 that's not a frustum thing Feb 27 03:04:45 ESphynx, no, it's not Feb 27 03:04:50 you don't change the number of pixels with frustum Feb 27 03:05:27 no, you change the visible region Feb 27 03:06:06 but how does that help me? :) Feb 27 03:06:23 ok well at least I guaranteed now that I get one render per display update :) and my input are supposedly being procssed Feb 27 03:07:41 arg. I see. Feb 27 03:08:22 ESphynx, on the java end you set the size of the holder Feb 27 03:08:29 and then your surfaceview fills the screen Feb 27 03:09:36 I don't have a java en d:| Feb 27 03:10:26 "What you can do is get the SurfaceHolder from GLSurfaceView, GLSurfaceView.getHolder() and then set the resolution you desire by calling SurfaceHolder.setFixedSize(width, height)." Feb 27 03:10:29 http://stackoverflow.com/questions/7656783/how-can-i-automatically-scale-my-opengl-es-2-0-window Feb 27 03:10:38 Hope this works with OpenGL ES 1.1 too :P Feb 27 03:10:42 sounds about right Feb 27 03:10:53 but I don't even have Feb 27 03:10:56 a GLSurfaceView Feb 27 03:14:06 oi oi Feb 27 03:16:15 where is the API reference for the NDK ALooper class? Feb 27 03:18:31 all this android glue is what's making this whole event processing sticky :P Feb 27 03:19:42 anu one else use xchat? Feb 27 03:19:45 *any Feb 27 03:20:32 ESphynx, i found refs Feb 27 03:21:36 ESphynx, https://android.googlesource.com/platform/frameworks/native/+/refs/heads/jb-mr1-release/services/surfaceflinger/ Feb 27 03:24:47 holy crap, the htc one x just told me there was a driver update through windows autostart Feb 27 03:24:48 what's surface flinger kaneda^? :) Feb 27 03:24:55 where there's a will, huh? Feb 27 03:25:05 ESphynx, no clue, but it looks interesting Feb 27 03:26:37 hehehe Feb 27 03:26:49 ok I tweaked my event processing :P let's see Feb 27 03:28:49 kaneda^: do you know this feeling when you're hoping something is going to take you about 4 hours, but then it ends up taking 4 weeks? ;) Feb 27 03:29:18 i dont think i've ever been that far off an estimate in my life ;) Feb 27 03:29:45 oh . well actullly I'm about 17 years off what I was estimating maybe 6 months =) Feb 27 03:30:04 but then Feb 27 03:30:10 I guess that's a constant ratio for me Feb 27 03:30:16 I just need to multiply by 40 Feb 27 03:30:24 6 months * 40 = 20 years Feb 27 03:30:46 4 hours * 40 = 4 weeks Feb 27 03:33:17 awwwwwesome. Feb 27 03:33:20 thanks guys ;) I got it! Feb 27 03:33:47 truth be told, I didn't have a clue about all this ALooper_code... I finally found the proper doc in the header and this I understood what I was doing :P Feb 27 03:34:20 responsiveness is very reasonable now :) Feb 27 03:34:32 this is HOT :) Feb 27 03:35:00 ESphynx, i'm curious about this Alooper thingy Feb 27 03:35:06 oh :) Feb 27 03:35:09 well let me commit the fix Feb 27 03:35:09 what doc did you find? Feb 27 03:35:11 and you can see Feb 27 03:35:13 ok Feb 27 03:35:14 cool Feb 27 03:35:22 C:\android-sdk\android-ndk-r8b\platforms\android-14\arch-x86\usr\include\android\looper.h Feb 27 03:35:28 just the header... thought I looked there last time Feb 27 03:35:33 but I hate looking in headers for docs :| Feb 27 03:35:45 is it only arch x86? Feb 27 03:35:47 it was all over the place Feb 27 03:35:56 no it's the same for arm Feb 27 03:36:07 C:\android-sdk\android-ndk-r8b\platforms\android-14\arch-armeabi\usr\include\android\looper.h :) Feb 27 03:36:14 https://android.googlesource.com/platform/frameworks/native/+/refs/heads/jb-mr1-release/include/android/looper.h Feb 27 03:36:49 let me try my chess game now :) maybe that will be more responsive as well :) Feb 27 03:38:31 I need to add a multi touch API to Ecere now =) Feb 27 03:38:56 pics or it didnt happen Feb 27 03:39:10 lol Feb 27 03:39:37 ESphynx, let me know when you get around to getting all native hardware ;) Feb 27 03:39:42 specifically camera Feb 27 03:39:56 kaneda^ hehe yeah, i'm not in a big rush for camera Feb 27 03:40:10 ESphynx, i am, full native camera though, not JNI Feb 27 03:40:12 what I wanna do is get the accelerometer so I can use it to look at the terrain around :) Feb 27 03:40:28 kaneda^: well, is it in the NDK yet? :) Feb 27 03:40:32 no Feb 27 03:40:33 * ESphynx peeks at the d Feb 27 03:40:45 you have to use JNI to query it or push to native from java Feb 27 03:40:49 how could I do it if it's not in the NDK :P Feb 27 03:41:05 ESphynx, if it was in the NDK i wouldnt need someone to do it ;) Feb 27 03:41:21 ANDROIDCEPTION Feb 27 03:41:22 kaneda^: well what exactly do you want me to do :P Feb 27 03:41:37 I just wrap the NDK in my cross-platform Ecere API : Feb 27 03:41:40 ESphynx, write generic camera drivers that work on all supported devices Feb 27 03:41:49 yeah, not gonna do that myself :P Feb 27 03:41:51 :D Feb 27 03:41:55 c'mon, just 1200 drivers or so Feb 27 03:42:00 someo f them might be the same! Feb 27 03:42:03 lol i'm busy enough as it is Feb 27 03:42:07 ehehe Feb 27 03:42:17 Ping me when it's available though :) Feb 27 03:42:47 I guess I could abstract that camera thing together with my scanning API :P Feb 27 03:42:57 well I did have plans for webcam support too for Ecere Communicator before :) Feb 27 03:43:02 it might just hapoen Feb 27 03:44:48 i'm not holding my breath, i'm sure it's difficult enough to make sure the camera support works in java alone as new devices are released Feb 27 03:45:11 again, with unity3d i know they sometimes have to play catchup when new devices are released Feb 27 03:45:53 anyways, my wife, and my cat, are both giving me the same look, which means i need to stop talking about programming now Feb 27 03:45:57 goodnight Feb 27 03:46:40 hehe Feb 27 03:48:30 ESphynx have you done anything with ecere? Feb 27 03:49:36 ron_frown of course I have done loads with it :P Feb 27 03:49:52 I've been writing it / with it for the last 17 years ;) Feb 27 03:50:18 oh Feb 27 03:50:19 nice Feb 27 03:50:26 I've never heard of it until now Feb 27 03:50:30 looks interesting Feb 27 03:50:31 pah, newbies Feb 27 03:50:40 hehe thanks ron_frown Feb 27 03:51:12 ron_frown: Ecere SDK = x-platform, native, fast, compact, low deps (eC + GUI + network + 2D/3D gfx + IDE); eC = C + OO + properties + instance level methods + reflection + dynamic imports - headers Feb 27 03:51:37 what sort of stuf do you do with it thats out there? Feb 27 03:51:39 or do other people Feb 27 03:52:09 I've been looking for something like this for cross platform mobile apps Feb 27 03:52:17 ron_frown: it's a generic SDK really... a cross-platform GUI toolkit like Qt or GTK; and an OO language like Java/C#/C++ ... Feb 27 03:52:18 (qt would work if it wasnt such a massive framework) Feb 27 03:52:25 it's light too. Feb 27 03:52:42 Trying to set up checkstyle with my Android project using Ant for builds. Anyone know any good guides for setting this up? Feb 27 03:52:50 particularly getting it working with Ant Feb 27 03:52:55 ron_frown: i'm about to release 0.44.1 which is about 64 bit and basic Android support. next step is more Android support and iOS, maybe BlackBerry too Feb 27 03:58:42 Anyone here got a gui gdb front end working for debugging android NDK applications? Feb 27 04:00:30 ceti331_: I'm gonna start working on one :P Feb 27 04:01:07 i.e. I got a GUI front end to GDB, but I haven't tried it with Android apps yet Feb 27 04:01:12 I really mean gdb debugging via an IDE Feb 27 04:01:28 yeah. that :) Feb 27 04:01:42 i am using qtcreator on linux, and just plain makefiles for android Feb 27 04:02:01 doesn't KDevelop or one of the other Linux tools support that yet? Feb 27 04:02:12 Makefiles , commandline etc are great but an IDE is great for debugging Feb 27 04:02:38 an IDE is great. Feb 27 04:02:50 reluctant to ick up another ide after haing settled into qtcreator Feb 27 04:02:52 Makefiles commandlines are not. Feb 27 04:03:38 Makefiles are nice for various reasons, but an ide is good too Feb 27 04:04:54 what's best is an IDE generating the Makefiles for you :P Feb 27 04:06:45 What i like most is a makefile with wildcards Feb 27 04:07:24 ah wildcards, yes. the makefiles generated by my IDE still doesn't do wildcards :S we were looking into it... Feb 27 04:07:30 it's hard to set per file options then though Feb 27 04:08:04 qtcreator seems to use wildcards , its project file really seems to be some makefile style thing Feb 27 04:08:20 thats why i am enjoying it i think Feb 27 04:08:28 ah nice Feb 27 04:08:42 For some reason ive not had this in past environments Feb 27 04:08:42 are you coding with Qt too? Feb 27 04:08:53 no just gl Feb 27 04:08:57 Gles Feb 27 04:09:06 ah nice. Feb 27 04:09:12 C Feb 27 04:09:13 '? Feb 27 04:09:43 Youd call most of my source c, but it does require c++11 to compile Feb 27 04:10:03 ah! hehe Feb 27 04:10:33 ceti331_ you wouldn't care to help me test and make my IDE working to debug NDK/Android apps with GDB, would you? ;) Feb 27 04:10:59 theres enough i hate about true idiomatic c++ to tend toward c... But enough in c++ i cant live without now... Specially auto and range based for in cpp11 Feb 27 04:11:13 maybe Feb 27 04:11:24 Depends how much is involved in setting it up Feb 27 04:11:45 My project does compile pretty easily from the commandline using wildcards Feb 27 04:11:48 ceti331_ well installing it would be straight forward, but then it's just how to connect to the ADB gdb I think Feb 27 04:12:08 it would be easy to just set up a project and compile your code with the IDE i'm sure Feb 27 04:12:12 Are you the eC person Feb 27 04:12:17 I'm the eC person lol Feb 27 04:12:37 and this is your eC environment presumably Feb 27 04:12:41 presumably ;) Feb 27 04:13:01 but you can add any mix of .ec / .c / .cpp files to a project :P Feb 27 04:13:49 eC sounds interesting but i also suspect something like qt moc is also a good solution for patching over cpp deficiencies ( generating extra metadata alongside c and cpp source ) Feb 27 04:14:12 uh-oh. ESphynx is here. Feb 27 04:14:16 Hehheh Feb 27 04:14:20 don't mock me with moc :P such an annoyance :P Feb 27 04:14:25 eC is the elegant solution ;) Feb 27 04:14:32 ceti331_: do they still have moc? Feb 27 04:14:35 hey maslen =) Feb 27 04:15:13 qt uses that moc tool to provide equivalent of reflection doesnt it, to make gui bindings and so on easier? Feb 27 04:15:13 last time I used Qt was in 2000 :D Feb 27 04:15:32 i thought they were replacing it with something else though Feb 27 04:15:38 ceti331_: to patch up for C++'s lack of being appropriate for GUIs Feb 27 04:16:06 ceti331_: eC has instance virtual methods overriding, you see :) Button button { bool NotifyClicked() { PrintLn("Hello!"); } } Feb 27 04:16:24 g00s they have a new language now don't they? Feb 27 04:16:30 qml Feb 27 04:16:34 qml yeah Feb 27 04:16:39 yeah, thats what ubuntu phone uses Feb 27 04:18:15 The ability to iterate class members is nice for all sorts of things eg serializing Feb 27 04:18:57 ceti331_: Yeah eC has full reflection :) Feb 27 04:19:17 File f; f.Put(myObject); Feb 27 04:20:30 I also have a JSON serializer :) Feb 27 04:21:45 json is nice, do you do strict json or allow unquoted keys Feb 27 04:22:06 ceti331_: strict JSON so far. guess I could 'allow' that :) but it does parseable JSON Feb 27 04:22:32 ceti331_: e.g. I adopted JSON for the Ecere IDE project files ( .epj ) Feb 27 04:23:45 everyone who writes a json reader should relax it to allow unquoted keys :) Feb 27 04:23:50 and it's just a: JSONParser parser; parser.GetObject(class(Project), &project); Feb 27 04:24:14 ceti331_: in fact, JSON syntax is very close to the eC object syntax :) Feb 27 04:24:40 { } for instances, [ ] for containers... { bla = "value" } in eC vs { "bla" : "value" } in JSON Feb 27 04:25:06 so I'd say one should even relax it to understand = instead of :, and it could parse eC instantiations :P Feb 27 04:25:26 Maybeyou can extend ec to take json aswell. Feb 27 04:25:45 that's a thought. Feb 27 04:26:02 : instead of = you mean? :) Feb 27 04:26:15 dont know if it will mess up your parser Feb 27 04:26:23 But yes, instead of equals Feb 27 04:26:29 I think it would work, for the instantiations. Feb 27 04:26:37 can't think of any major syntactic conflict offhand :) Feb 27 04:27:09 however, my ;/: keys on my keyboard tend to die first, thanks to all the statements terminating semicolons I type =) Feb 27 04:27:26 or maybe it's all the smileys I type :) Feb 27 04:27:47 'm still new at coding android and my google foo isn't working tonight. I can't seem to figure out how to set a preference text progmatically. How can I update the android: DialogTitle progmatically as there is no @id to reference? Feb 27 04:29:40 anyone Feb 27 04:33:01 Ive not used any android apis ust ndk Feb 27 04:33:06 Just ndk Feb 27 04:39:03 awesome. my 3D chess game works like a charm too now =) Feb 27 05:20:30 On a scale of 1-10, 10 being the worst, how bad is it to make 30 or so HTTP calls before an activity loads to load enough data for 3-4 screens? The HTTP calls are JSON responses, average size is 10K or so Feb 27 05:20:47 11 Feb 27 05:21:01 That's not on the scale Feb 27 05:21:17 oh then disregard Feb 27 05:22:25 depends Feb 27 05:22:34 On what? Feb 27 05:23:01 are you on wifi, and it's a server with a really rapid response time on your internal net. Feb 27 05:23:26 Probably no on the wifi, and its the Flickr API Feb 27 05:23:31 or is it going over GPRS and may take at best a couple of minute sto co plete Feb 27 05:23:45 it only takes 5 or so seconds on my galaxy nexus Feb 27 05:23:46 minutes to complete Feb 27 05:23:47 to fire 30 or so Feb 27 05:24:10 i guess my only concern really is will it break on some 3G conn or just take 1 minute on the shitty EDGE connection Feb 27 05:24:11 also, check the flicker API a up Feb 27 05:24:29 aup Feb 27 05:24:39 V/ecere-app(15658): Invalidating a font! V/ecere-app(15658): Sorry, no context man Feb 27 05:24:45 no context is bad :| Feb 27 05:32:08 not sure if this would be of use in android or not. http://blogs.msdn.com/b/vcblog/archive/2013/02/26/the-c-rest-sdk-quot-casablanca-quot.aspx Feb 27 05:35:39 wait Feb 27 05:35:51 that's a microsoft open source project using the Apache license? Feb 27 05:37:35 yeah :) and Windows Phone app store allows any OSI-approved open source license — even the GPL. Feb 27 05:38:12 heh. Feb 27 05:40:09 is it normal that my Nexus 10 battery slowly drains when plugged into my USB port? Feb 27 05:41:09 ESphynx: might not have enough power to charge. Feb 27 05:44:43 yeah 7 hours from a 9000 mAh battery (surfing the web) Feb 27 05:48:12 about 1.2 a,or 4W. Feb 27 05:48:31 USB will provide 2.5 Feb 27 05:49:11 what ? no way Feb 27 05:49:25 the nexus 7 can charge from a computer in use. but only at low brightness Feb 27 05:49:27 500ma typical, spikes up to 900ma maybe Feb 27 05:49:27 Scala on Android question: Anyone a good idea to debug apps written in scala? Seems like dex without proguard is impossible. and debugging after proguard, well... Feb 27 05:50:33 g00s: I was assuming you meant you got 7h, to drained from a 9ah battery Feb 27 05:51:00 so it looks paid apps are once again available to Taiwan, but devs have to check the box for it again as it is not unchecked (for me at least). Anyone heard an official source on this? I just found out because a Taiwanese user emailed me asking me to add Taiwan and I checked and saw the checkbox. Anyone here in Taiwan? Feb 27 05:51:02 g00s Feb 27 05:51:05 SpeedEvil: oh - yeah, but USB 2 won't do 2.5A, not sure what USB 3 would do Feb 27 05:51:09 hey ron_frown :) Feb 27 05:51:20 http://pinocc.io/ Feb 27 05:51:26 oh Feb 27 05:51:34 2.5w Feb 27 05:51:45 not amps, sorry Feb 27 05:52:03 jiggawatts Feb 27 05:52:09 ron_frown: cool, are you part of that project ? Feb 27 05:52:15 haha no no Feb 27 05:52:22 I am a part of a lot Feb 27 05:52:24 but not that Feb 27 05:52:36 it was exactly what I was looking for, but unfortunately not available yet Feb 27 05:53:08 hm, it has a LiPo battery Feb 27 05:53:21 gotta look for stuff that can run off solar ;) Feb 27 05:53:35 yeah I got something for the interim in the works Feb 27 05:53:41 ron_frown: arg.. another cool thing to play around with :) Feb 27 05:53:51 haha pboos you should see my desk at the office Feb 27 05:54:08 about 1/2 dozen pandas, probably 20 4460 custom boards Feb 27 05:54:11 ron_frown: well. at home i have 3 arduinos, 1 raspberry pi, .. Feb 27 05:54:22 ron_frown: where do you work? sounds cool!! Feb 27 05:54:28 hahahahahahahahah Feb 27 05:54:30 yeah not so much Feb 27 05:54:36 I work on interesting stuff Feb 27 05:54:45 but company is completely fucking backwards Feb 27 05:55:13 ron_frown: $99 is a little expensive for wifi... can do the same with arduino but cheaper :) Feb 27 05:55:19 I got a couple odroidx's colecting dust Feb 27 05:55:38 there is a new arduino with a 3g GMS module Feb 27 05:55:55 meh Feb 27 05:56:04 my stuff wont be that remote Feb 27 05:56:13 if zigbee or other meshnetwork shit was remotely reliable Feb 27 05:56:15 that would be sufficient Feb 27 05:56:44 here it is http://www.h-online.com/open/news/item/GSM-Arduino-calls-in-to-the-cloud-1810901.html Feb 27 05:57:05 there it is again Feb 27 05:57:07 that c word Feb 27 05:57:31 zigbee has royalty fees; i think its being replaced by 6LowPAN Feb 27 05:57:42 there was another I read about that was pretty cool Feb 27 05:57:45 dont remember name Feb 27 05:57:50 zigbee would be awesome. but too expensive :( Feb 27 05:58:29 did ron just fall asleep in the middle of the conversation? damn Feb 27 05:59:02 g00s: you're just *that* boring :P Feb 27 05:59:15 probably :/ Feb 27 05:59:19 uh, exciting... yeah, that's what I meant Feb 27 06:00:14 Chainfire: ping? Feb 27 06:09:29 * Gumboot lives in a cubieboard household. Feb 27 06:20:14 Has anyone here used native activity .... I am trying to get the sample to comple Feb 27 06:20:34 So far ive got something working using other ndk samples with java calling cpp Feb 27 06:20:36 But it loooks to me likey nativeactivity supports a propper cpp main loop which i would much prefer Feb 27 06:20:47 This is for a crossplatform project Feb 27 06:28:09 When i go to preferences->General->Appearance in Eclipse, I get a warning saying that invalid values exist Feb 27 06:28:24 I'm using eclipse from the ADT Bundle Feb 27 06:28:40 does anyone have this issue as well? Feb 27 06:29:55 seems the bundle is more trouble than its worth Feb 27 06:30:22 what is so hard in getting the platform runtime and adding the ADT Feb 27 06:31:40 g00s, so you use your own eclipse? Feb 27 06:31:48 and just install ADT? Feb 27 06:31:55 yeah … its so easy Feb 27 06:32:02 true, I've done it Feb 27 06:32:12 but the page told me to get the bundle! Feb 27 06:32:38 the platform runtime is slim, you wind up with adt, jdt, and some xml tool. my eclipse memory usage is always under 500meg Feb 27 06:33:54 hm, I'm having a scope issue, line 48 is erroring, claiming the method does not exist for GPSFlag. I have included GPSFlag as well http://pastebin.com/ygULhsgG Feb 27 06:34:53 lines 48, 49 and 50 error, BUT line 51 is fine Feb 27 06:35:33 b0nn: btw, in GPSFlag, you can use a technique called 'telescoping constructors' Feb 27 06:35:53 the last 3 ctors are definitely not DRY Feb 27 06:35:59 ? Feb 27 06:37:05 builders are better than telescoping constructors, but when you only have a few its ok Feb 27 06:37:39 ok Feb 27 06:37:41 what's a telescoping constructor Feb 27 06:38:03 canadiancow: I had to google to see what was meant too! Feb 27 06:38:12 you provide one ctor with full argument list that inits everything, and each smaller ctor calls that with defaults Feb 27 06:38:13 http://stackoverflow.com/questions/5603108/builder-pattern-or-telescoping-constructor-pattern-like-pattern-is-better Feb 27 06:38:36 good evening canadiancow :) Feb 27 06:38:37 thats a stupid example Feb 27 06:38:51 Pizza(int size, List toppings) Feb 27 06:38:59 LETS HAVE A BOOLEAN FOR EVERY POSSIBILITY Feb 27 06:40:14 at any rate, can anyone see why eclipse doesn't let me access my public getters? Feb 27 06:40:54 b0nn: are you a python dev ? Feb 27 06:41:19 um Feb 27 06:41:31 I'm a jack of all trades dev Feb 27 06:41:44 public double getLatitude(){return this.latitude;} Feb 27 06:41:46 which is causing my master of none itus Feb 27 06:41:50 you dont need this :) Feb 27 06:43:03 should I just be GPSFlagObj.latitude? Feb 27 06:43:54 just say return latitude; :/ Feb 27 06:43:59 oh Feb 27 06:44:22 but anyhow, nothing stands out, let eclipse try to suggest a fix :D Feb 27 06:44:30 probably something just stupid Feb 27 06:45:04 it just errors on me Feb 27 06:45:20 I have to go, I'll think on it and see if anything springs to mind Feb 27 06:45:22 hover over the error, it should suggest some fixes Feb 27 06:45:26 thanks for having a look Feb 27 06:46:12 the method getId() is undefined for the type GPSFlag Feb 27 06:54:35 g00s, can you return this.this.latitude ? Feb 27 06:55:04 :| Feb 27 06:55:09 i wasnt sure Feb 27 06:55:11 apparently not Feb 27 06:55:15 im getting a really strange error when i try Feb 27 06:55:20 wth is this.this? Feb 27 06:55:39 canadiancow: this this.that.latitude :P Feb 27 06:55:43 lol Feb 27 06:55:44 *try Feb 27 06:56:38 anyway after that constructor talk Feb 27 06:56:41 i kinda want a pizza Feb 27 06:56:49 new pizza(); Feb 27 06:57:07 are those pizza vending machines out yet ? Feb 27 06:59:38 wow i just opened an eclipse project that hsa a build target of android 3.1 Feb 27 06:59:43 i clearly havent touched that in... two years Feb 27 06:59:59 my target is still 8 :) Feb 27 07:00:04 * g00s runs Feb 27 07:00:39 i was going to get a new device when the 2nd gen N7 is announced Feb 27 07:04:19 there's a 2nd gen N7? Feb 27 07:04:53 well, not yet. i'm just guessing announcement at i/o. should be almost the same but maybe higher drpi screen slight spec bump on processor Feb 27 07:05:42 basically, i need my next device to have bluetooth low energy; and none of the nexus have that. if the n7 v2 comes out and doesn't i'll just have to go to plan V Feb 27 07:05:46 and hopefully some solution to the crippling I/O performance Feb 27 07:05:48 err, plan B Feb 27 07:06:02 Plan V? You'll call in an alien invasion? :) Feb 27 07:06:09 \o/ Feb 27 07:06:43 the only intelligent life they will find … dolphins and cows that program Feb 27 07:09:39 the new Weather Channel app … boggles Feb 27 07:09:52 "The free Weather Channel App is launching in partnership with sponsor Toyota and introduces new full-screen ad units dubbed "branded backgrounds" Feb 27 07:10:23 which is so funny, since i read a usability critique on this app - and they said it didn't effectively use available space Feb 27 07:10:29 well, i guess they solved that problem now :D Feb 27 07:11:04 Hi, I'm having trouble with URIs. I have a class Provider which extends ContentProvider and has a private SQLiteHelper with in. But I'm not sure how exactly the URI system works so that I may access it from my main activity Feb 27 07:11:33 thebope: study the iosched example for a nice simple and clean provider example Feb 27 07:12:01 g00s: thanks, will check out, on the google android.dev examples I presume? Feb 27 07:12:11 "Clayton on developing for Android: Android fragmentation is still the single largest hurdle for developers, including us. It's a real bear, and it needs material change sooner or later. It's disincentivizing developers to build for the platform." Feb 27 07:12:37 Developing for Android is definitely like putting a puzzle together Feb 27 07:12:58 yeah, that puzzle being the android developer docs Feb 27 07:13:24 its one of those puzzles, which is missing a few pieces or has too many pieces Feb 27 07:13:45 and very few edges Feb 27 07:13:55 and no box with a picture Feb 27 07:14:06 luckily you can assemble it in a variety of ways Feb 27 07:14:39 * JesusFreke ponders a toroidal puzzle, with no edges Feb 27 07:14:58 lol Feb 27 07:15:32 meh, you could tell wghat part of the torroid the piece was supposed to go, based on the curve Feb 27 07:16:05 I guess that is kind of like android Feb 27 07:17:34 the android puzzle is different based on the size of your table Feb 27 07:19:45 g00s: by iosched example did you mean the whole iosched project? Feb 27 07:19:54 it only has one provider Feb 27 07:20:17 its very neatly done, so a good example Feb 27 07:21:14 ahh okay, cloning now Feb 27 07:21:52 there are at least 3 things that will impact your Uri design: (1) data model (2) how you want to secure certain uris with & friends, and (3) how you want to notify part of your app that something is changed (which depends on the form of the Uri) , etc Feb 27 07:22:18 it requires some careful thinking through Feb 27 07:22:26 Ahhh, so I can add URIs to the matcher which will then be accessible I'm thinking Feb 27 07:22:37 I haven't set up any matcher and I'm figuring that's my issue Feb 27 07:22:50 My data model is incredibly simple, just a key value table Feb 27 07:23:40 did you consider trying MapDb ? Feb 27 07:24:12 Hmm no, it is for a school project so there must be a content provider involved so that it may be accessed from other applications Feb 27 07:24:29 ah, ok. Feb 27 07:26:14 I love when schoolwork gets me to develop cool things but sometimes I think goal oriented learning often causes me to lose sight of the big picture Feb 27 07:26:38 So that I may miss out on some details while trying to satisfy others Feb 27 07:38:29 Hi, can someone please guid me to why i suddenly receives double notifications(from gcm) this started occuring at the same time as i installed the app from google play(did uninstall the previous) Feb 27 07:45:35 goodnight all Feb 27 07:45:50 I rest my eyes for the moment Feb 27 07:52:50 what is the best way to post data to the server side Feb 27 07:53:04 on android Feb 27 07:53:24 depends on what your server side supports :D Feb 27 07:53:39 depends on the data, frequency of posting, etc Feb 27 08:01:43 during the lifetime of an applciation can the context change or is it specific to the application Feb 27 08:02:05 balls2thewall: which context? Feb 27 08:02:12 Hi, can someone please guid me to why i suddenly receives double notifications(from gcm) this started occuring at the same time as i installed the app from google play(did uninstall the previous) Feb 27 08:02:48 hi. can install an apk requiring root without flashing my phone and reinstalling the OS again? i have had the phone yesterday brand new Feb 27 08:02:50 are there several? im referring to the abstract context i acquire via getAppContext Feb 27 08:02:56 and use in almost every other call Feb 27 08:04:31 balls2thewall: then no, the application context is tied to the lifetime of the process Feb 27 08:04:46 balls2thewall: http://developer.android.com/reference/android/content/Context.html#getApplicationContext() Feb 27 08:05:10 so why is it considered bad to put the context in a static field? Feb 27 08:06:14 balls2thewall: in general it is bad, because context can also be an activity or service Feb 27 08:08:54 alright that settles that, ty Feb 27 08:17:10 how to startActivity from inside Activity -> ListView -> CursorAdapter -> bindView -> button.setOnClickListener Feb 27 08:17:11 :) Feb 27 08:17:37 pass the activity into the adapter? Feb 27 08:18:16 squ: use the context you get in bindView ? Feb 27 08:19:46 basically is it normal? Feb 27 08:20:06 what about ListView.setOnItemClickListener ? Feb 27 08:20:54 ListView.this.getContext()? Feb 27 08:20:58 I'd like to pass record id into a method which is inside Activity Feb 27 08:21:22 now I'm doing it this way: I setContentDescription to button Feb 27 08:21:28 with record id Feb 27 08:21:42 in xml I set button android:onClick:method Feb 27 08:22:13 and inside activity I get that id from public void method(View view) { view.getContentDescription } Feb 27 08:23:17 I get the weirdest behavior when recreating my VBOs upon going back to the apps :| first frame renders ok with the new VBOs, but the next are garbage! Feb 27 08:23:39 this is on the x86 emulator, on the device it takes quite a bunch of frames before they become garbage Feb 27 08:24:04 before I leave the app, everything is just fine Feb 27 08:52:39 Hi, can someone please guid me to why i suddenly receives double notifications(from gcm) this started occuring at the same time as i installed the app from google play(did uninstall the previous) Feb 27 09:00:05 perhaps your app has registered on your systems twice Feb 27 09:00:18 i.e. same device token twice? Feb 27 09:00:53 I'm trying to upload an apk to publisher console and it's just giving me "Your application cannot be loaded at this time. Please try again later." Feb 27 09:01:01 anyone got that before? Feb 27 09:01:57 anyone knows why when I reload my VBOs from a context loss... I get one correct frame, then junk? Feb 27 09:02:05 hmm I signed out/in and it's there Feb 27 09:02:06 winner Feb 27 09:03:09 actually that's not correct :| I get a bunch of frmaes until i 'move' Feb 27 09:09:07 HI guys, is it possible to set bluetooth mode to discoverable without user confirmation ? Feb 27 09:20:44 evanc ? Feb 27 09:29:02 huh, i haven't seen this yet http://phandroid.com/2013/02/26/google-settings-icon/ Feb 27 09:39:41 hey guys, im having problems with GCM sending a notification twice, around 10 minutes apart Feb 27 09:39:47 anyone else having this issue? Feb 27 09:40:06 google shit not working? say it aint so ! Feb 27 09:40:40 its really weird http://pastebin.com/SPdnT5vG Feb 27 09:40:55 the first one, the from in the bundle is mcs.android.com, and the second one is my project ID Feb 27 09:40:58 callumtaylor: did you ask that question an hour or so ago, under a different nick ? Feb 27 09:41:06 no Feb 27 09:41:14 literally just got in to work Feb 27 09:41:16 ok, well all i can say is - someone else is seeing that Feb 27 09:41:30 did they get a solution? Feb 27 09:41:30 so you aren't the only one Feb 27 09:41:32 callumtaylor: i have the same problem Feb 27 09:41:36 not that i could tell Feb 27 09:41:42 ah :) Feb 27 09:41:46 oh thank god its not just me, i've been rapping my head for the past 2 days Feb 27 09:41:56 me2 Feb 27 09:42:10 i've never had the issue before with the script im using Feb 27 09:42:11 since yesterday this time Feb 27 09:42:14 nor me Feb 27 09:42:28 i did connect the api-key to the market app Feb 27 09:42:36 that's the only thing i could think of Feb 27 09:42:45 "LINKED SENDER IDS" Feb 27 09:44:41 have you tried removing it from your app? Feb 27 09:45:18 hi, i want to continously read output from a process started via exec (e.g. logcat) and display it on my activity. what'd be the best way to do this, is there any useful (well-explained) example? i found some snippets on SO etc. but nothing too useful Feb 27 09:47:46 Morning all, I'd like to track people who install my android app via a certain link. Has anyone done this before? Feb 27 09:48:04 I mean can I add google analytics urls to the google play link Feb 27 09:48:05 ? Feb 27 09:49:28 i've just sent a support ticket to google kreaper Feb 27 09:50:58 callumtaylor: yes, and same results Feb 27 09:51:07 callumtaylor: how did u end up in this mess? Feb 27 09:51:27 achuinard: i connected the sender id, and also publishing the app to the market Feb 27 09:51:30 hi. if i set target=android-10, my app won't work on newer target versions? Feb 27 09:51:32 callumtaylor: i connected the sender id, and also publishing the app to the market Feb 27 09:51:46 my app had a sudden influx of users so i had to re-write my notification system and when i was testing, i was getting the same notication over and over Feb 27 09:51:53 it worked perfectly a few days ago Feb 27 09:52:16 do you get the same allways or just double Feb 27 09:52:25 double Feb 27 09:52:34 so i'll get one instantly, then another one about 10 minutes later Feb 27 09:52:46 for me about 2-4minutes Feb 27 09:53:08 and me response from google looks perfect Feb 27 09:53:14 and i know i just send a single message Feb 27 09:53:20 (from logging) Feb 27 09:53:31 so either the app do something funny or GCM is messing with me Feb 27 09:53:35 yeah, me too Feb 27 09:53:35 is my cnoclussion sofar Feb 27 09:53:59 what script are you using for pushing messages? Feb 27 09:54:03 so far i've found, its not my code, laptop, or server Feb 27 09:54:10 sec, i'll paste it Feb 27 09:55:10 http://pastebin.com/KnLK5L4B Feb 27 09:55:39 hmm? Feb 27 09:55:44 not a working link Feb 27 09:56:50 o.o weird, sec Feb 27 09:57:02 g00s: yo Feb 27 09:57:04 http://pastebin.com/v9xnANq2 Feb 27 09:57:13 hey p_l Feb 27 09:58:28 hm, got d/c Feb 27 09:58:29 callumtaylor: how does your payload look like? Feb 27 09:59:07 http://pastebin.com/kcEANuhS Feb 27 09:59:14 http://pastebin.com/Cn3mA40D Feb 27 09:59:14 i use double data arrays Feb 27 09:59:26 that shouldn't matter Feb 27 09:59:52 nope :) Feb 27 10:00:00 grasping straws by now ;) Feb 27 10:03:24 hi. can install an apk requiring root without flashing my phone and reinstalling the OS again? i have had the phone yesterday brand new Feb 27 10:03:46 can i? Feb 27 10:04:33 ask in #android-root or look for instructions on xda-developers Feb 27 10:05:22 callumtaylor: https://groups.google.com/forum/?fromgroups=#!search/gcm$20double$20notification/android-gcm/EHZUTEJMeyw/Eij4m6PqAKcJ Feb 27 10:05:39 interesting Feb 27 10:06:29 i hope they get this fixed asap Feb 27 10:06:50 :) Feb 27 10:06:51 me2 Feb 27 10:09:05 https://groups.google.com/d/msg/android-gcm/EHZUTEJMeyw/tvyWp9it3zgJ Feb 27 10:09:15 although my app was set up with gcm, not c2dm Feb 27 10:09:29 but the from field is coming through as "mcs.android.com" for the first notification Feb 27 10:09:51 mine to Feb 27 10:10:10 mine is brand new Feb 27 10:12:56 appel1, thanks Feb 27 10:18:13 anyone using Necessitas? Feb 27 10:18:21 and could they extoll the virtues (or even lack of) Feb 27 10:21:22 callumtaylor: i guess it's waiting time! Feb 27 10:21:32 indeed Feb 27 10:23:45 kreaper callumtaylor good luck guys :) Feb 27 10:56:43 Good morning Feb 27 10:58:54 I am using to develop an app for android some external classes not belonging to Android SDK. Its name is simple 2.7 and it uses for XML serialization in a very easy way Feb 27 10:59:17 I add the external JAR to my project in eclipse and it compiles good Feb 27 10:59:51 but, when deploying to my device for testing a Classnotfound exception is given Feb 27 11:00:40 try checking the "export" in the build path Feb 27 11:01:19 my question: Is there anyway to solve this? exporting the library, because is vere light Feb 27 11:02:11 very* Feb 27 11:02:28 callumtaylor what do you mean by checking the export? Feb 27 11:02:52 in build path, go to order and export Feb 27 11:03:01 then check the checkbox next to the jar file Feb 27 11:04:16 shouldn't an app built for android 2.3.6 work on android 4.0? Feb 27 11:04:53 bwahaha Feb 27 11:05:10 i just had to update mine, it was blowing chunks on 4.1 + Feb 27 11:05:55 this kind of sucks. i thought android supports backward compatibility Feb 27 11:06:12 g00s, what did you have to update specificially? Feb 27 11:06:51 well, behavior of content providers, security, and exported changed enough to make my app crash on 4.1 and 4.2 Feb 27 11:07:26 i used to have exported="false" and that worked fine when i fired an Intent of ACTION_SEND with EXTRA_STREAM uri pointing to my provider Feb 27 11:08:02 but then all of a sudden it started busting. and that led to a can of worms about how the behavior of uri permissions has changed from froyo to now Feb 27 11:09:52 hello, i need help getting root access in my app.I was trying to send udp packet using source port 40, and i just discovered using sorce ports <1024 needs root access in linux.Since android is linux, how can i get root access for my app in java, what is the easiest and best way to do Feb 27 11:10:15 my device is rooted btw Feb 27 11:11:38 hfatih: why are you sending on port 40? Feb 27 11:12:23 callumtaylor, what you say makes sense and should resolve the issue. But once I deploy the app two warning are given: Could not find class '[...]' and VFY: unable to resolve new-instance 566- Feb 27 11:12:37 and also: VFY: dead code... Feb 27 11:12:41 what is dead code? Feb 27 11:12:57 I didn't know code could die.... Feb 27 11:13:00 jejejeje Feb 27 11:14:23 hello Feb 27 11:14:31 aero1, i'm cloning an existing app, i sniffed packages and i saw that it uses source and dest. ports 40.i'm trying to communicate with an external central device so i thought it may be lloking for my source port and replying if it is 40 Feb 27 11:14:49 Shouldn't do Feb 27 11:15:02 http://i.imgur.com/w7M6qAh.png Feb 27 11:15:09 that is how other app communicates Feb 27 11:15:12 I don't care Feb 27 11:15:30 Source ports are rarely checked, only receiving ports are (obviously) important. Feb 27 11:15:39 Try it on >1024 before _needing_ to use port 40 Feb 27 11:15:57 i tried and didnt get any response from device Feb 27 11:16:03 then maybe it is Feb 27 11:16:11 which device is this? Feb 27 11:16:25 a central hospital device Feb 27 11:16:34 no no Feb 27 11:16:37 a bedside monitor Feb 27 11:16:42 Can't you ask the manufacturer? Feb 27 11:16:45 graphing ecg graphs etc Feb 27 11:17:18 hfatih: http://stackoverflow.com/questions/6010796/run-secure-api-calls-as-root-android Feb 27 11:17:20 well they are too far, and i just wanted to figure around myself Feb 27 11:17:26 i will ask if i cant do anything Feb 27 11:20:01 im getting devices not found when I do adb shell Feb 27 11:20:04 http://pastebin.com/LdvD6aW4 Feb 27 11:20:28 try adb kill-server Feb 27 11:21:19 hfatih: apparently putting the binary app into /system/app will grant root privs, but I've not got a rooted phone so I don't know. Feb 27 11:21:51 Hope they won't take this as a flood Feb 27 11:21:52 but Feb 27 11:21:55 g00s, * daemon not running. starting it now on port 5037 * Feb 27 11:21:56 * daemon started successfully * Feb 27 11:21:56 error: device not found Feb 27 11:22:19 i tried adb kill-sever and then adb shell thats what I get Feb 27 11:23:00 aero1, yes, i saw that one on the link u gave, i'm trying it now Feb 27 11:23:26 becom33: doesn't adb shell need a device name to connect to? Feb 27 11:23:36 adb -s .e.g. Feb 27 11:24:18 EPG : I do it in my app (except that I write in a file), check this out : http://paste.h3b.us/?e72a0dd538021dff#KFINGvLLDBMJFT9XNUM31ss8ChJ6MfJCIkdbo48D4ms= Feb 27 11:24:23 aero1, I was trying to root the emulator Feb 27 11:26:52 anyone ? Feb 27 11:28:13 aero1, I was trying to root the emulator I ran this command "adb shell mount -o rw,remount -t yaffs2 /dev/block/mtdblock03 /system " Feb 27 11:28:19 after that I started to get this error Feb 27 11:28:28 becom33 use shell on the device directly and find out what is running Feb 27 11:28:29 error: device not found Feb 27 11:28:53 soulseekah, what do you mean ? Feb 27 11:29:26 get a shell onto the device and start doing netstat, ps to find out the state of the system Feb 27 11:30:09 soulseekah, what device ? Feb 27 11:30:13 your emulator Feb 27 11:30:59 sounds like adbd went down and can't get back up in your case Feb 27 11:32:11 but without evidence in the form of process lists one can only guess Feb 27 11:33:36 H3bus, thanks I'll have a look Feb 27 11:34:13 EPG: You're welcome Feb 27 11:37:25 Does anyone knows what a COD filter for bluetooth is ? Feb 27 11:39:15 H3bus: COD is "Class of Device" Feb 27 11:44:32 is it possible to set in xml something like android:layout_marginBottom="" to the height of an image divided by 5? Feb 27 11:46:10 p_l: think key lime will have bluetooth low energy? like we know , heh ... Feb 27 11:47:25 I have eclipse installed with ADT. Is it possible to create a "clean" workspace where everything android will be disabled? Feb 27 11:49:49 gru__: if you do it in code yes Feb 27 11:52:19 StingRay_: i want to do it in xml Feb 27 11:52:24 is that possible? Feb 27 11:52:28 no Feb 27 11:53:23 well that may not be 100% true Feb 27 11:54:08 you maybe able to use a boat load of view/spacers all in a big hierarchy and using layout_weight Feb 27 11:54:23 but not sure and if you could would be boat loads of pointless views Feb 27 11:54:24 :) Feb 27 11:54:44 mh no that sucks Feb 27 11:54:48 i want to have something clean Feb 27 11:54:58 code then Feb 27 12:03:31 windows can't recognize my android device.. it's a GS2.. it just cant find the usb driver Feb 27 12:05:43 krad: have you installed the usb driver via android sdk manager? Feb 27 12:05:48 krad: did you insta... ^ Feb 27 12:05:52 timroes, yes Feb 27 12:05:55 definitely. Feb 27 12:06:15 have you checked styackoverflow? Feb 27 12:06:17 search for HTC one Feb 27 12:06:21 +y Feb 27 12:06:34 i'm just using another mobile's usb cable. does that make any difference Feb 27 12:06:39 no Feb 27 12:06:42 it's the device ID Feb 27 12:06:54 so why it cant find it Feb 27 12:06:59 the drivers int he SDK are only for Google identified phones Feb 27 12:07:14 other manufacturers have different devioce IDs Feb 27 12:07:42 http://stackoverflow.com/a/13327665/588306 Feb 27 12:08:18 I had the same problem and JUST as i was about to give up, i realized that I had replaced my usb cord with a generic one from the store. I happened to still have the old one around still and that ended up " being my issue -.-; Hope this helps someone else!" Feb 27 12:08:23 chord matters.. Feb 27 12:09:11 bizare Feb 27 12:09:14 it's just USB Feb 27 12:09:27 the cord should be entirely passive Feb 27 12:09:53 Anoia: it might only be for power. Feb 27 12:10:12 if the producers are REALLY cheap. Feb 27 12:10:25 I have eclipse installed with the android sdk. Is it possible to create a "clean" workspace where everything android will be disabled? Feb 27 12:11:37 krad: have you checked that link yet? Feb 27 12:12:43 g00s: ... I could ask? ;P Feb 27 12:12:53 do eet ! Feb 27 12:13:03 g00s: if I visit MTV, sure :P Feb 27 12:13:21 \o/ Feb 27 12:13:23 (actually more possible than it seemed yesterday o_O) Feb 27 12:14:33 ok.. i enabled debugging over wifi.. adb devices lists: 192.168.1.125:5555 Feb 27 12:14:45 but i can't see the device in the android virtual device manager Feb 27 12:14:55 krad: have you connected to it ? Feb 27 12:15:00 it's not a virtual device. Feb 27 12:15:12 adb connect ip:port Feb 27 12:15:18 yes i connected to it Feb 27 12:15:26 i want to debug my android app on eclipse against the device Feb 27 12:15:48 well it should show in the devices window if you HAVE connected Feb 27 12:15:55 your using some odd custom rom ? Feb 27 12:16:03 cyanogenmod Feb 27 12:16:12 indeed Feb 27 12:16:32 i don't see it in the devices window Feb 27 12:16:58 "Device Definitions" tab Feb 27 12:17:05 err Feb 27 12:17:14 no the ddms devices view Feb 27 12:17:25 can i open it in eclipse? Feb 27 12:17:40 it is in eclipse Feb 27 12:17:49 part of the ddms perspective Feb 27 12:17:53 by default Feb 27 12:18:32 i see it now Feb 27 12:19:28 is there an android dev account which would be updated with the latest update from the GCM issue i can follow? Feb 27 12:28:49 hi all. Does anyone have any idea of how to pass arguments to a fragment in the layout xml file? Feb 27 12:29:26 the documentation on the Fragment class is not helping me much, and the example also doesn't help. Feb 27 12:33:54 deviantpeer there is some method to get a fragment by id from fragmentmanager so you can instance your fragment defined in your xml Feb 27 12:34:39 lasserix: you got me loss now... I was thinking that I could just use the Fragment#getArguments() Feb 27 12:34:50 lasserix: or maybe overide the Fragment#onInflate... Feb 27 12:38:02 DeviantPeer: you can pass a bundle into an instance of your fragment Feb 27 12:38:29 if you have a method in the fragment that sets it and returns an instance of iteself Feb 27 12:38:33 itself Feb 27 12:38:41 ugh... I need more coffee Feb 27 12:39:52 :) Feb 27 12:39:58 I think I figured it out. Feb 27 12:40:31 overide the onInflate(...) then from the passed activity get the styled attributes. Feb 27 12:42:02 then we I guess we either construct whatever object we need or we set a argument with Fragment#setArguments(Bundle) Feb 27 12:42:22 had my head in a knot there for a while. Feb 27 12:47:20 so... what is the "correct" way to implement search in a way that works both in 2.x and 4.x? Feb 27 12:48:08 i currently have a "search" menu item with an action view specified in my menu XML. in onCreateOptionsMenu i set the searchable config etc. if SDK_VER >= 11. in onOptionsItemSelected i call onSearchRequested(). Feb 27 12:48:22 in my understanding this is what you are supposed to do (according to the docs) Feb 27 12:48:47 however, when i try to search on a ICS phone, it now launches both the search dialog and expands the search action view Feb 27 12:49:16 is it possible to have numbered parameters in sql query Feb 27 12:50:02 like in java String.format("$1%d $1%d $2%d " , 1, 2) Feb 27 13:16:14 hey Feb 27 13:16:37 In google analytics, (on their website), where can I view my "custom sent events"? Feb 27 13:16:49 I mean those that I send via myTracker.sendEvent, like that: https://developers.google.com/analytics/devguides/collection/android/v2/events Feb 27 13:17:34 hi guys.. I've finished my first app.. and now there are 2 other apps I want to write, and I have 2 local companies that want android/iPhone apps built for them as well.. so, I want to design my next app correctly, with proper architecture so that I can have a LOT of code re-use Feb 27 13:17:52 You guys ever had a problem where if you're USBed up to your phone/device, you'll be developing and testing just fine but then after [x] amount of idle time (20 minutes? more sometimes)... the "USB debugging" and "Connected to USB as Media..." notifications disappear, etc... and the ONLY way to get re-connected to where you can use your device other than just charging, is to reboot the Feb 27 13:17:53 computer, and bam.. soon as it gets to the reboot turn-around, USB debugging notification, etc., comes back. ?? Feb 27 13:18:02 can someone recommend some books, or websites that talk about good architecture for android apps? package organization, interfaces, security, Object Orientation, etc? Feb 27 13:18:52 DanielBusan: Website... Android Development... Google's site. And learn Fragments. http://developer.android.com/guide/components/fragments.html <-- is the site and you can learn by following their tutorials. Feb 27 13:19:38 great, thanks pierpark. I started my first app using an earlier android sdk that didnt have fragments. so if you recommend it, I will start with that now. Feb 27 13:20:32 I started the not so great way, and I regret it... Learn fragments and you'll love yourself. Feb 27 13:20:54 Hi, Feb 27 13:20:54 I have a problem and hope sb here can help me. Feb 27 13:20:54 I am trying to implement a GCM receiver and play a custom sound when a message is received. Showing the message works, but playing the sound does not. Feb 27 13:20:54 I would prefer to put the sound file inside the assets folders, but this seems not work, so I did put it into the res/raw folder but this doesn't work either. Feb 27 13:20:54 I can get a resource id by calling: int resId = resources.getIdentifier("foo", "raw", context.getPackageName()); Feb 27 13:20:55 But when I try to play the sound I always get a android.content.res. Feb 27 13:20:55 Resources$NotFoundException: File res/raw/foo.mp3 from drawable resource ID #0x7f030002 Feb 27 13:20:56 Has anybody an idea what might be causing this error? Feb 27 13:21:55 ok perfect. it sounds like we did the same thing. my first app, which is in testing now, has lots of technical components, location services, camera, ssl, local sql, server sql, push notification, etc. but the code i really dirty and it was really just to mess around and get stuff in as fast as possible.. i want to do it right the next time. as i envision creating a lot of apps for various Feb 27 13:21:56 people. Feb 27 13:22:37 pierpark: yes I have that issue sometimes, too Feb 27 13:22:44 Yeah, you don't want to do that. Learn fragments, and you'll be set. Don't shortcut _anything_ Feb 27 13:23:02 Svelix: any fix, other than a reboot? Feb 27 13:23:37 most times disconnection and reconnecting works, but when this doesnt work anymore…reboot Feb 27 13:23:54 Svelix: you shouldn't be getting a drawable error for a sound file (I don't think..) Feb 27 13:24:12 Definitely doesn't work on dis/reconnect. Need to reboot brb Feb 27 13:24:39 and suffer through the windows update.. sigh.. brb Feb 27 13:26:57 where at the analytics site can I view the events I cause with sendEvent? https://developers.google.com/analytics/devguides/collection/android/v2/events#implementation Feb 27 13:30:18 what version of java run on android 2.1? 1.5? Feb 27 13:30:47 'cause java.lang.NoSuchMethodError: java.lang.String.isEmpty Feb 27 13:30:51 :/ Feb 27 13:30:57 DeviantPeer: 1.6 Feb 27 13:32:17 how come string#isEmpty doesn't exist then? Feb 27 13:34:09 http://developer.android.com/reference/java/lang/String.html#isEmpty%28%29 Added in API Level 9 > so its available since 2.3 Feb 27 13:35:26 @DeviantPeer Feb 27 13:36:18 Svelix: thx. replacing all String#isEmpty with length > 0 :) Feb 27 13:36:29 although almost no one is using 2.1... but... Feb 27 13:36:30 well.. Feb 27 13:46:18 is it possible to create sqlite function ? Feb 27 13:48:40 are any of you guys web developers - if so what is the best editor you have found for android so that you can edit code on websites on the move Feb 27 13:53:40 :) Feb 27 13:54:49 devswap: vim Feb 27 13:56:25 aide is pretty good Feb 27 14:00:17 svelix: thanks - was thinking something a little more user friendly than vim - choosing for an end user and not a techy Feb 27 14:01:05 fyi the free aide wont let you save once your project reaches a certain size Feb 27 14:01:11 but it's worth the money, honestly Feb 27 14:02:10 root66: i will investigate - thanks Feb 27 14:02:13 if you get AppSales and put it on your watch list, you will find that it goes on sale pretty often Feb 27 14:02:19 Nobody got an idea on my resource problem? Feb 27 14:05:21 morning Feb 27 14:06:24 devswap: I actually just glossed over your question because callumtaylor recommended aide... aide is for android apps. for html/javascript check out DroidEdit Feb 27 14:07:04 hrm, question, why doesnt android have a javascript/html render in general views? Feb 27 14:07:10 I don't think it supports ftp though, just dropbox and box Feb 27 14:07:31 it seems like since google has developed much faster js that should be supported everywhere ;p Feb 27 14:08:05 not sure about the much faster js, but javasciprt in general is slow Feb 27 14:08:14 *script Feb 27 14:09:47 root66, google's new js engine is much faster Feb 27 14:09:54 cool Feb 27 14:10:00 how new? Feb 27 14:10:41 V8 JavaScript engine Feb 27 14:10:49 Thats not new.. Feb 27 14:10:54 but fast ;-) Feb 27 14:10:54 http://code.google.com/p/v8/ Feb 27 14:11:01 root66 aide can also do perl and stuff, it might not be best for html in terms of auto assist/syntax highlighting Feb 27 14:11:02 is it already in chrome? Feb 27 14:11:10 but i'll help with formatting and stuf Feb 27 14:11:11 it's already in chrome, yah Feb 27 14:11:28 callumtaylor, luckily html is so simple you never need a reference ;p Feb 27 14:11:37 yeah : Feb 27 14:11:38 :p Feb 27 14:11:43 too bad, then, because I am already almost maxing one of my cores with my current project :) Feb 27 14:12:04 anywho, we dont have access to the V8 engine generally Feb 27 14:12:17 i want a layout that isnt a webview in which i can write arbitrary htmla nd javascript Feb 27 14:12:21 in sqlite is there a way to add a "grouped" count ? Feb 27 14:12:25 i know, it sounds like exploit heaven :D Feb 27 14:12:25 android is behind on javascript and webkit Feb 27 14:12:32 erm, i dont think so Feb 27 14:12:45 ios just introduced their new js engine and it's ONLY in safari, not even in web vies Feb 27 14:12:46 views Feb 27 14:12:48 like there is no webkit audio api on android Feb 27 14:13:00 it's pretty weak Feb 27 14:13:02 erm, i thought that was all included in the HTML5 stuff? Feb 27 14:13:06 canvas and the like Feb 27 14:13:25 it might support the