**** BEGIN LOGGING AT Thu Nov 14 02:59:59 2013 Nov 14 03:00:11 introduce them to some key concepts, Activities, Fragments, Loaders etc Nov 14 03:00:19 android wireless application development all 3 editions, they follow on each other Nov 14 03:00:20 and let them learn by doing Nov 14 03:00:34 TechEffigy: Who is the author(s)? Nov 14 03:00:52 SO MUCH UML...... Nov 14 03:00:56 So bored... lol Nov 14 03:01:08 lauren darcey and shane condor Nov 14 03:01:39 download them at www.it-ebooks.info Nov 14 03:01:42 TechEffigy: Thanks Nov 14 03:01:58 TechEffigy: I found them on http://gen.lib.rus.ec as well Nov 14 03:02:00 well thats the link on the footer of the books i got Nov 14 03:02:08 but all 3 editions Nov 14 03:02:39 also found big nerd branch android programming to be good Nov 14 03:03:24 TechEffigy: Okay, my link has one of them in epub :D Nov 14 03:03:34 no yucky pdf Nov 14 03:04:12 qnd a new book tht seems good that i got today, "android recipes - a problem solution approach" Nov 14 03:04:36 has advanced shit Nov 14 03:05:29 TechEffigy: awesome thanks Nov 14 03:06:10 i just hit piratebay and d/l all the android books in the book section Nov 14 03:07:01 TechEffigy: I wouldn't be boasting about that if I were you Nov 14 03:07:43 my intention is to buy them when i make my first million dollar app Nov 14 03:08:06 ugh this app is driving me to smoke lol Nov 14 03:08:26 im loaning the books Nov 14 03:09:17 intention, right Nov 14 03:09:27 want to loan books? go to your local library Nov 14 03:09:35 ah, nevermind, im an idiot Nov 14 03:09:47 http://stackoverflow.com/questions/18964902/android-support-library-v7-error-retrieving-parent-for-item --> this is the real answer Nov 14 03:09:51 take lsd clown, it helps you program Nov 14 03:10:00 i forgot you could add libraries from the android section, and not just in the library section Nov 14 03:10:10 I dunno about LSD, but I keep my vaporizor handy when programming. Nov 14 03:10:28 aww wow haven't seen one of those in a few years Nov 14 03:10:43 Whoever posted the link to the "Head First" books...I swear to God I will give you head first <3 Nov 14 03:10:46 libraries here have office 97 for dummies Nov 14 03:11:05 head first is for kids Nov 14 03:11:15 A bit paedoy Nov 14 03:11:17 with their dumb pics Nov 14 03:11:17 yeah my library is lucky to have programming books from 1985 Nov 14 03:11:18 Its not that Nov 14 03:11:22 Its more... Nov 14 03:11:26 motivation if you get me Nov 14 03:11:31 SOOO MUCH I WANT TO DO. Nov 14 03:11:36 have a seat over here... Nov 14 03:11:39 Thats just there to make sure I do once Im done with Uni. Nov 14 03:13:35 i took part in a mobile development club that was for uni Nov 14 03:13:45 i have a spectrum game book Nov 14 03:14:00 my school didnt have a mobile dev course, but another school in town did, so we converged with them Nov 14 03:14:06 program a 100 games on spectrum basic Nov 14 03:14:29 lol, and take over the world Nov 14 03:14:37 after seeing what they were doing in class, i determined that it was not a very effective class Nov 14 03:14:56 I used to program games on the VIC 20 and C64 Nov 14 03:15:21 and a little Atari 400 Nov 14 03:18:17 aaaah i use to have an atari....pacman and astroids Nov 14 03:18:34 no i have the emulator and 500 roms Nov 14 03:18:36 Nilium: it's on the servers Nov 14 03:18:41 grabbing it now Nov 14 03:19:53 On servers? Nov 14 03:19:59 Atari should pay me for making me play those crappy 2600 games Nov 14 03:20:18 compared to the arcade version it was torture Nov 14 03:21:33 Nilium: was it you who responded to my nex7 2012 update question ? Nov 14 03:21:40 Yes. Nov 14 03:21:43 i just got a fiction plot, the keywords are... family on picnic, eclipse occurs, man hears family screams but cant see, eclipse ends, family all dead, mysteries of murder shrouded in darkness, man swears revenge against the sun Nov 14 03:21:45 oh then yes Nov 14 03:21:52 the update is on googles servers Nov 14 03:22:39 Nilium: http://android.clients.google.com/packages/ota/google_nakasi/13088e35942c77e4752aa1fdf51d54472509b941.signed-nakasi-KRT16O-from-JWR66Y.13088e35.zip Nov 14 03:23:01 and GEL if your interested http://www.androidpolice.com/2013/11/13/how-to-try-the-google-experience-launcher-with-translucent-bars-and-google-now-once-you-get-your-kitkat-update-apk-download/ Nov 14 03:23:18 man fly to close to sun, man dies, but ppl later realise mand died upon exiting atmosphere, people dont care, people carry on with lives Nov 14 03:23:58 Nilium: oh forgeot thats nakasi (Wifi) model Nov 14 03:24:03 forgot* Nov 14 03:24:21 I want my 4.4 update Nov 14 03:24:31 not me Nov 14 03:24:44 I hate that swipe to right google now crap Nov 14 03:24:45 I'll just wait for the OTA since I'm too lazy to do the flashy stuff. Nov 14 03:24:59 shmooz, that's only on nexus 5 Nov 14 03:25:06 dp i think kit kat paid google to use that name? Nov 14 03:25:07 well side load adb update is like two lines in a terminal Nov 14 03:25:17 but yeah… know what you mean Nov 14 03:25:51 well on 4.3 I hated swipe from bottom too, so I disabled so many processes that it can't run google now or google anything, and it can't update either Nov 14 03:25:56 i wonder if my email app hack will prevent the update from applying Nov 14 03:26:13 that's the way I like it, no swipe accidents Nov 14 03:26:15 shmooz, that was on 4.2 Nov 14 03:26:23 I never had 4.2 Nov 14 03:26:29 bet u next update will be called sweety-pie Nov 14 03:26:30 I bought the new Nexus 7 Nov 14 03:26:34 nexus 5 is a lovely device btw, I doubt I will ever buy samsung again Nov 14 03:26:39 and swipe right is only in launcher Nov 14 03:26:58 Oh god so jealous Nov 14 03:26:59 I'm very close to buying a moto x Nov 14 03:27:04 I want rid of my feckin S3 Nov 14 03:27:08 its super annoying when google now keeps popping up when you didn't want it Nov 14 03:27:08 GIMME A NEXUS 5 Nov 14 03:27:22 but I can't quite justify having a locked bootloader Nov 14 03:27:38 shmooz, that should be gone in 4.4 Nov 14 03:28:07 the swipe up from bottom should be disabled in full screen mode Nov 14 03:28:14 to reveal controls Nov 14 03:28:15 well I'll update, and then disable the annoying processes again I suppose, saves battery as well Nov 14 03:28:35 Ok, looks like I don't need to do any rootery crap to sideload the update Nov 14 03:28:40 In that case, full speed ahead. Nov 14 03:28:53 :) Nov 14 03:29:11 just boot into recovery and apply the update zip Nov 14 03:29:36 people are complaining the Nexus 5 display looks washed out Nov 14 03:29:51 the new religeon called x86 Nov 14 03:29:53 and there's light bleeding from the top of the screen Nov 14 03:29:58 people always complain Nov 14 03:30:17 I take it with a grain of salt Nov 14 03:30:22 x86 is new? O-o Nov 14 03:30:27 anyhow im just tired talking shit, cheerz Nov 14 03:30:40 I may or may not have just downloaded 51 eBooks. Nov 14 03:30:55 Theres motivation I guess... Nov 14 03:31:32 Religion? Nov 14 03:31:44 Hahahaha, sorry, I will not use a 64-bit machine. It offends me. Nov 14 03:33:27 er... wtf? Nov 14 03:35:19 Awww he left before explaining :/ Nov 14 03:38:16 Nilium: stop Nov 14 03:38:22 you not doing anything yet right ? Nov 14 03:48:26 when were fragments added to android support v4? Nov 14 03:48:57 and if 'from the start,' then when was it released? Nov 14 03:49:00 Doing anything? Nov 14 03:49:01 I already updated. Nov 14 03:49:01 Seems fine. Nov 14 03:49:23 im trying to figure out if there's any excuse to not have used them in this code Nov 14 03:51:15 otiose: you could just read the info + release notes Nov 14 03:51:24 for the various versions Nov 14 03:51:37 aah, here they are Nov 14 03:51:38 good call Nov 14 03:52:23 march 2011 was the first, and may 2011 was the 2nd, which fixed a Fragment.onActivityResult() bug, which means fragments were in there from the start Nov 14 03:53:35 StingRay_: Anything particularly wrong with the sideloaded update? Nov 14 03:53:47 not at all Nov 14 03:54:03 just realised that 90% chance that if you stopped google services framework and cleared cache Nov 14 03:54:06 you would get OTA Nov 14 03:54:08 :) Nov 14 03:54:11 Ah Nov 14 03:54:28 just like the play store cache is the 3-5 hour delay some users get on app updates Nov 14 03:54:35 Well, either way gets the same result. Nov 14 03:54:39 indeed Nov 14 03:54:45 and development began in january 2012... no reason to be creating this ridiculous framework, when fragments are clearly the actual answer Nov 14 03:55:05 I just hadn't planned on doing the sideload thing 'cause I assumed it would be complicated and annoying Nov 14 03:55:39 otiose: what framework ? Nov 14 03:55:40 I remember I called fragments stupid back when they were new. Nov 14 03:56:10 I've of course been proven wrong and proven myself wrong since. Nov 14 03:56:30 you gotta walk all the way to the side of the thing and load it Nov 14 03:57:23 shmooz: an internal, over-engineered framework to recreate the Fragment/Nesting Tabs example of Support4Demos for android-support-v4 Nov 14 03:57:35 which is super ironic because we use android-support-v4 to begin with Nov 14 03:58:13 well most people end up doing normal fragments while learning and later realizing they should do support-v4 fragments instead Nov 14 03:58:30 no no, not support fragments Nov 14 03:58:46 like, no fragments Nov 14 03:59:11 yeah I do that, I avoid fragments by saving what I need to save and keeping a custom backstack Nov 14 03:59:25 I do regular fragments because I need PreferenceFragment. Nov 14 03:59:35 need ? Nov 14 03:59:39 choose to use you mean Nov 14 03:59:40 :) Nov 14 03:59:45 we have a TabViewActivity, which holds a ScreenAnimator, which holds a number of SingleViews (which are just LinearLayouts) Nov 14 03:59:55 why would you avoid fragments/ Nov 14 04:00:28 StingRay_: Well, it's far preferable to doing a poor reimplmentation of them Nov 14 04:00:45 poor ? Nov 14 04:00:53 you under estimate me sir Nov 14 04:00:59 I want better, not poorer Nov 14 04:01:01 :) Nov 14 04:01:35 Well, PreferenceFragment depends on private APIs, so you'd likely only get poor Nov 14 04:01:41 otiose: I believe my custom way is more lightweight and works as well for my purpose Nov 14 04:01:55 shmooz: are fragments not lightweight? Nov 14 04:02:09 not if you treat them as views Nov 14 04:02:12 :) Nov 14 04:02:32 Nilium: you get the GEL apk link too ? Nov 14 04:02:35 hmm.. Nov 14 04:02:57 coming from an iOS background, i'm trying to make a UINavigationController inside a UITabController (pretty standard, I think) Nov 14 04:03:16 and it seems to me that fragments would be perfect for this? Nov 14 04:05:59 even that guy's flood kicks are flood Nov 14 04:26:52 hokay, so I am trying to receive some events from a hardware device Nov 14 04:26:57 I can see the events happening in /proc/kmsg Nov 14 04:27:10 and I subclassed UEventObserver and tried to register to receive all uevents Nov 14 04:27:24 but I am only receiving SUBSYSTEM=cpu and SUBSYSTEM=power_supply, nothing else Nov 14 04:27:35 is there another trick I have to pull? Nov 14 04:28:55 ProgramMax: did you fix that fullscreen with rotation locked thing ? Nov 14 04:29:17 Not yet. Right now our player code is pretty ugly. And we're not using a VideoView Nov 14 04:29:26 so we were all "Eeehhhh I'll get around to it later" Nov 14 04:29:34 I think I'll just make a little sample tomorrow to test it Nov 14 04:29:35 you are using MediaPlayer ? Nov 14 04:29:45 yeah Nov 14 04:29:51 I see Nov 14 04:30:07 I was thinking how to override the user option to not rotate for my app Nov 14 04:30:36 so if video is playing in portrait and user rotates even with the rotate option locked in their settings, it will fullscreen Nov 14 04:31:00 Yeah. That's what I need Nov 14 04:31:09 but the new "up" should be portrait's up Nov 14 04:31:10 so I don't need a silly fullscreen button Nov 14 04:31:16 so it also needs to rotate the video somehow Nov 14 04:31:24 and also needs to not have a blip in playback Nov 14 04:32:00 I've written an app that uses javacv and ffmpeg to encode audio+video, what is an appropriate format+codec to use so that the majority of devices and play the video? Nov 14 04:32:39 jedir0x: any finishing codec + profile Nov 14 04:33:00 jedir0x: mp4 Nov 14 04:33:01 so I would suspect mpeg-4 h.264 /AVC Nov 14 04:33:27 h.264 isn't playing on the samsung duos and pocket Nov 14 04:33:42 StingRay_, what's a "finishing codec" Nov 14 04:33:54 sorry, visual effects term Nov 14 04:33:59 that's samsung's fault. you can have a webm backup but webm is inferior to h264 at the moment Nov 14 04:34:04 means any stream or profile intended for end user Nov 14 04:34:06 :) Nov 14 04:34:19 i'm doing mpeg4 Nov 14 04:34:26 with mp4 container Nov 14 04:34:32 just doesn't look great Nov 14 04:34:40 mpeg is the container Nov 14 04:34:51 avc is the codec you're probably talking about Nov 14 04:34:52 mpeg4-sp or whatever (for the codec) Nov 14 04:35:17 AV_CODEC_ID_MPEG4 according to ffmpeg Nov 14 04:36:10 so you're using mpeg over avc? Nov 14 04:36:28 the other thing i'm having issues with is figuring out which "profile" to use - any ideas on how i might choose the best resolution, codec, frame rate, container and audio bitrate combinaton? Right now i'm using values-swXXXdp and that feels bad. Nov 14 04:36:29 i guess that's still better than webm Nov 14 04:36:39 what's avc? Nov 14 04:36:44 just use the baseline profile Nov 14 04:36:49 avc is h264 Nov 14 04:37:05 ok, so i use H264 for my "high" profile Nov 14 04:37:12 no use baseline Nov 14 04:37:20 high profile is broken on some devices Nov 14 04:37:23 i've had to make my own profiles - javacv doesn't support profiles Nov 14 04:37:25 (not just samsung) Nov 14 04:37:42 my profiles: https://gist.github.com/briandilley/c0be458412c5d32f03d8 Nov 14 04:37:43 (some versions of android, sorry) Nov 14 04:38:11 oops, i'm using 3gp container - not mp4 Nov 14 04:38:20 wow you guys are like stars to me Nov 14 04:38:38 I'll catch up someday Nov 14 04:38:43 Yaaaay screenrecord works Nov 14 04:38:53 i built those profiles based on this: http://developer.android.com/guide/appendix/media-formats.html Nov 14 04:39:06 * Nilium rolls around in joy Nov 14 04:39:13 Nilium: write a how to now ! Nov 14 04:39:41 What's there to write? Nov 14 04:39:41 You use it. Nov 14 04:39:45 supposedly H.264 is supported across all devices (for playback) - but i found out otherwise, that's why i'm using MPEG-4 SP Nov 14 04:39:49 why would AS suddenly give me Installation failed since the APK was either not signed, or signed incorrectly. Nov 14 04:39:49 so… anyone using the hidden UEventObserver? Nov 14 04:40:01 in debug mode, with only an unrelated code change Nov 14 04:40:33 not using gradle btw, still using ANT Nov 14 04:40:45 Triple-check it's actually debug mode? Nov 14 04:40:59 If you build using ant do you get the same error? Nov 14 04:41:04 jedir0x: mpeg-4 sp is only supported in a .3gp container Nov 14 04:41:18 dcow, yeah, that's the container i'm using. Nov 14 04:41:59 i guess what i'm trying to ask - is using values-swXXXdp a good way to determine which profile to use? Any superior suggestions? Nov 14 04:41:59 jedir0x: i don't think the encoder settings matter much then, so long as they're in the range you want them Nov 14 04:42:02 my projects have always been ant since import from eclipse Nov 14 04:42:40 jedir0x: to your question, there doesn't seem to be a problem with that. Nov 14 04:43:01 last time I did encoding was in Gordian Knot and VirtualDub Nov 14 04:43:03 you may want to link to available pixels or something Nov 14 04:43:30 My projects have always been sbt because two projects and you know why Nov 14 04:43:39 oh balls, now python crash and AS forced closed Nov 14 04:43:45 reboot time Nov 14 04:44:10 i'm still using maven Nov 14 04:44:14 He should look at some baby parrots to take the edge off. Nov 14 04:44:27 last words from the captain as the ship sank Nov 14 04:45:03 jedir0x: I would just follow the encoding recommendations in the tables Nov 14 04:45:06 Baby parrots are adorable. Nov 14 04:45:41 baby armadillos too Nov 14 04:45:42 not as adorable as baby pandas Nov 14 04:47:10 for all the baby animals, zooborns.com Nov 14 04:52:02 if you have a library that you include in your project that has some functionality of your app, do you need to include which activities you use from the library in your manifest even if they're declared in the libraries manifest? Nov 14 04:57:40 I think so. Nov 14 05:00:39 blah Nov 14 05:01:00 there must be a better way to monitor these events besides Runtime.getRuntime().exec("su -c 'cat /proc/kmsg'") :/ Nov 14 05:26:36 Hi, is it bad practice to make the main activity extend FragmentActivity and implement the Google Play Services libraries required to do location listening? Would it be better to create a service that implements the Google Play Services libraries and run the location listener from there? Especially if I want to have a combination of location client and aactivity recognition client Nov 14 06:00:28 so, if moto can price the G at $180 USD, i wonder what they could do without a baseband :) something like an ipod touch. i'm thinking -$35 so $150 maybe ? Nov 14 06:08:16 Is it possible to create an intent from within a service? Nov 14 06:08:28 I'm not sure what to pass as the Context Nov 14 06:10:51 I think you can just use "this" Nov 14 06:10:53 i.e. the service Nov 14 06:10:57 that's how I did it in my intent service Nov 14 06:12:08 Hi. WHere would be the best place to look for and contract ROM developers Nov 14 06:12:40 hmm. I may be doing this all wrong. But I want multiple intent services and since they all use the callback onConnected I am assuming that I should put these inside their own session. Is this correct? In this session I have it extend Session and implement GooglePlayServicesClient.ConnectionCallbacks,GooglePlayServicesClient.OnConnectionFailedListener. Nov 14 06:12:54 but, inside this class, intentService = new Intent(this, sessionClass.class); doesn't work Nov 14 06:14:31 you mean it doesn't launch the activity? Nov 14 06:15:02 shoot, battery died Nov 14 06:17:43 durka42: thanks for the help. I had a typo which, when I tab completed, caused me to extend the wrong class Nov 14 06:18:02 heh Nov 14 06:31:05 hi. why I cant get my sharedprefs from non activity? Nov 14 06:31:23 in my activity class I have private Taskai t = new Taskai(this); Nov 14 06:32:06 and is that Taskai class I have http://pastebin.com/RaG7ynR3 Nov 14 06:32:26 whatever I do with sharedprefs I can't get my app to start Nov 14 06:32:28 any ideas? Nov 14 06:47:54 read your log Nov 14 06:49:14 so i'm kinda a newbie at this but.. i wanted to make some modifications to the aosp browser, so i checked out the source.. when i imported into eclipse, there are a ton of errors, mainly that it can't find references to some packages.. Nov 14 06:49:26 do i need to check out more than just the browser repo? Nov 14 06:49:43 yes Nov 14 06:49:56 stuff in aosp doesn't build in eclipse Nov 14 06:50:36 ok.. how do i build it? Nov 14 06:51:19 make Nov 14 06:52:01 holy shit, $50 for moto x on vzw? that might be enough to make me ignore the locked bootloader Nov 14 06:52:29 hmm.. so what about all those errors i'm seeing in eclipse.. do i need to worry about those? Nov 14 06:52:54 well, of course you need more of the aosp sources Nov 14 06:53:01 so maybe Nov 14 06:53:13 use repo init/sync Nov 14 06:53:43 ok.. i'll look into that. Nov 14 06:53:55 curious though, how come you can't build aosp stuff in eclipse? Nov 14 06:54:42 im looking for Android ROM dev to strip down AOSP to a kiosk mode, build in drivers from OEMs , add some security and USB mass storage Nov 14 06:55:06 building an In-Flight Entertainment system for a leading budget airline in Asia Nov 14 06:55:22 messsage me if you are interested Nov 14 06:55:34 see topic Nov 14 06:56:13 shmooz Nov 14 07:01:09 laphlaw, because it isn't setup to be built in eclipse Nov 14 07:01:22 and there is absolutely no desire to Nov 14 07:02:19 so do you just use eclipse to view/edit the source, then actually built it on the command line with make? Nov 14 07:02:52 if that's what you want to do, I suppose Nov 14 07:03:00 <[A3G1S]> thepoosh hi Nov 14 07:03:06 I doubt many aosp developers use eclipse Nov 14 07:05:45 <[A3G1S]> pfn you good with ndk, writing Android.mk for ndk apps Nov 14 07:05:52 <[A3G1S]> ? Nov 14 07:07:37 [A3G1S]: sup? Nov 14 07:07:46 what happenedto you yesterday?! Nov 14 07:07:55 <[A3G1S]> drunk Nov 14 07:07:56 <[A3G1S]> :P Nov 14 07:07:58 you kept on reconnecting Nov 14 07:08:02 and disconnectiong Nov 14 07:08:07 drunk is good! Nov 14 07:08:12 <[A3G1S]> i was downloading something Nov 14 07:08:22 while drunk at 2 AM?! Nov 14 07:08:28 you should sleep some more Nov 14 07:08:37 <[A3G1S]> i wake up at 10 A.M Nov 14 07:08:38 <[A3G1S]> :P Nov 14 07:08:49 <[A3G1S]> i think i should add this server to znc Nov 14 07:08:59 znc? Nov 14 07:09:02 <[A3G1S]> o_O Nov 14 07:09:09 <[A3G1S]> irc bouncer Nov 14 07:09:16 <[A3G1S]> i can stay online 24/7 Nov 14 07:09:20 <[A3G1S]> get offline pms Nov 14 07:09:43 well, I just keep my workplace computer connected at all times Nov 14 07:10:02 <[A3G1S]> good Nov 14 07:10:06 [A3G1S]: have you seen my question from yesterday? Nov 14 07:10:12 <[A3G1S]> naaa i missed it Nov 14 07:10:14 <[A3G1S]> what was it ? Nov 14 07:10:15 hmmmm Nov 14 07:10:32 I'm afraid to ask again, pfn got really pissed at me Nov 14 07:10:34 :P Nov 14 07:11:23 basically I've been experiencing different behavior from my app after signing it Nov 14 07:11:41 <[A3G1S]> what Nov 14 07:11:55 <[A3G1S]> read android docs for signing Nov 14 07:11:56 <[A3G1S]> :P Nov 14 07:12:18 I did Nov 14 07:12:24 but never found anything Nov 14 07:12:26 for some reason before signing my app, if I background and click the launcher icon, it returns to the exact same place. but if I sign the app, going to home and clicking the icon starts the launcher intent and goes to a different place in the app Nov 14 07:12:28 this Nov 14 07:12:47 but you already confirmed signing has nothing to do with it Nov 14 07:12:49 ... Nov 14 07:12:59 true Nov 14 07:13:08 but I still don't get why this happened Nov 14 07:13:11 then why do you keep saying this Nov 14 07:13:14 :S Nov 14 07:13:17 ... Nov 14 07:13:30 didn't realize how to describe the situation better Nov 14 07:13:40 don't be mad Nov 14 07:13:46 * thepoosh is embarressed Nov 14 07:13:49 <[A3G1S]> ROFL Nov 14 07:14:02 NO LAUGHS!!! Nov 14 07:14:07 <[A3G1S]> ;) Nov 14 07:14:39 <[A3G1S]> i am stuck at something, trying to write android.mk for a C project Nov 14 07:14:51 <[A3G1S]> that stuff is eating my brain Nov 14 07:14:57 I dunno anything about NDK Nov 14 07:15:11 <[A3G1S]> so do I Nov 14 07:15:17 <[A3G1S]> except the very basics Nov 14 07:15:50 is this just a general can't get a hold of this? Nov 14 07:15:55 or an actual issue? Nov 14 07:16:28 <[A3G1S]> its just you :P Nov 14 07:17:01 wut?! Nov 14 07:17:19 <[A3G1S]> [12:42:26] for some reason before signing my app, if I background and click the launcher icon, it returns to the exact same place. but if I sign the app, going to home and clicking the icon starts the launcher intent and goes to a different place in the app Nov 14 07:17:22 <[A3G1S]> this ^^ Nov 14 07:17:35 yes Nov 14 07:17:38 <[A3G1S]> i never faced such problem after signing Nov 14 07:17:53 why would you get me in trouble with the P guy again?! Nov 14 07:18:08 nvm, resolved the ticket as "won't fix" Nov 14 07:19:22 <[A3G1S]> common try to resolve it Nov 14 07:19:27 <[A3G1S]> come on* Nov 14 07:19:36 <[A3G1S]> dont give up Nov 14 07:19:58 I cannot figure out why this happens Nov 14 07:33:04 hey, so, I'm trying to make my app a device administrator Nov 14 07:33:21 I've added all the random xml files (I think) and launched the intent ACTION_ADD_DEVICE_ADMIN as described here Nov 14 07:33:22 https://developer.android.com/guide/topics/admin/device-admin.html Nov 14 07:33:26 but… nothing happens Nov 14 07:34:05 oh, I found some extra logcat Nov 14 07:34:10 Unable to retrieve device policy Nov 14 07:34:13 what does that mean? Nov 14 07:35:10 got it! wrong class name in the manifest Nov 14 07:35:12 sorry for the noise Nov 14 07:54:32 Hi Nov 14 07:55:05 I've been trying to integrate GP game services into my game, and I've gotten stuck with an issue for sometime now Nov 14 07:55:43 the game compiles without any issues Nov 14 07:56:14 but while on device, the app crashes with "java.lang.NoClassDefFoundError: com.google.example.games.basegameutils.GameHelper" Nov 14 07:56:27 http://javarevisited.blogspot.in/2011/06/noclassdeffounderror-exception-in.html Nov 14 07:57:06 tells me that NoClassDefFoundError means the class was found at compile time; but was not found during run time Nov 14 07:57:15 possibly a linker error Nov 14 07:57:50 But I'm unable to find any good reason why this is happening Nov 14 07:58:16 Here's a logcat log of my app just before the crash: https://gist.github.com/seekshiva/1a4af99fcf944d672539/raw/1a6b5957fafbcc151a4ebd25a33b20cc32fdc051/gistfile1.txt Nov 14 07:58:16 s33k, are you importing the exernal jar? Nov 14 07:58:26 or is it a library projeact? Nov 14 07:59:10 brx_: google-play-services_lib and BaseGameUtils were imported as library projects Nov 14 07:59:42 oh not sure then Nov 14 07:59:47 should I just import them as external jar? Nov 14 07:59:56 it should work that way ye Nov 14 08:00:05 Oh Nov 14 08:00:07 thanks Nov 14 08:00:08 look in the lib folder of the respective library projects Nov 14 08:00:09 I'll try that Nov 14 08:00:44 Is it lib or bin ? Nov 14 08:01:01 if you are using eclipse remember to also copy the actual file from the extras folder to your android project lib project(drag it from file explorer to eclipse lib folder) Nov 14 08:01:07 it'll be a jar file Nov 14 08:01:21 google play services has one, not sure bout the other Nov 14 08:01:21 the jar file of the projects will be generated within bin of the respective projects right? Nov 14 08:01:30 itl be in lib Nov 14 08:02:34 for google-play-services, I see a google-play-services.jar under lib and google-play-services_lib.jar under bin Nov 14 08:02:43 use the one under lib Nov 14 08:03:08 either way thats not the problem, it was the other library that was NoClassDefFOund Nov 14 08:03:42 for BaseGameUtils, only android-support-v4.jar is present under lib. The actual basegameutils.jar is only present in bin Nov 14 08:03:44 yeah Nov 14 08:03:59 try the one in bin, not sure about that tbh Nov 14 08:04:08 Okay Nov 14 08:04:21 Thank you very much Nov 14 08:04:23 Will try it Nov 14 08:04:23 check the file sizes of the other jar (google play services) if they match they are most likely same heh Nov 14 08:06:42 They are different Nov 14 08:06:56 The folder structure is different Nov 14 08:07:20 the one under bin has android in the root directory Nov 14 08:07:46 the one in lib has com/google/android/gms/ in the root directory Nov 14 08:08:26 META-INF/MANIFEST.MF is empty in the jar inside bin Nov 14 08:10:32 hmm not sure, ive never used gbase to my knowledge Nov 14 08:27:07 how can I request a camera focus every second? Nov 14 08:39:09 hey all :) Nov 14 08:40:27 anyone have a good link with an example of the same app created with a fragment and on without ? Nov 14 09:22:21 Hello. Just for understanding: What happenns when an App force-Close (for example) and its bound to the gcm push service. Will it still be reachable and restart the service of the app? Or is it really "closed" until the user start it again? Nov 14 09:29:12 how can you zoom in with a camera? Nov 14 09:31:14 very few Android devices have a zoom Nov 14 09:32:48 misterli, it's still reachable Nov 14 09:33:12 I want to grab all my SharedPreferences and send them as an email to someone..How do i do that? Nov 14 09:33:14 Okay. Because a return_sticky service does not work when the app crash/freeze for example by outofmemory. Nov 14 09:33:15 unless you're on something like the, uh, Galaxy Zoom - what they're actually doing is cropping and scaling Nov 14 09:33:22 FrancescoV, see Camera class. Nov 14 09:33:25 Leeds: Optical zoom you mean, surely they all have digital/programmatic zoom? :) Nov 14 09:33:44 Thorbear: 'digital zoom' isn't 'a zoom' Nov 14 09:34:28 what if your camera only takes picture in vector format Leeds ? =) Nov 14 09:34:35 misterli: service doesn't get closed if you close the app. if service starts the activity, it will start it anyway Nov 14 09:34:35 For most non-photographers, it might as well be :) Nov 14 09:34:43 asfdd: what if the fsck are you talking about? Nov 14 09:35:02 are you 100% sure that the service will NOT closed when the app freezes and force close? Nov 14 09:37:29 misterli: depends on your implementation http://developer.android.com/reference/android/app/Service.html Nov 14 09:37:38 misterli: that's the whole purpose of the service but you can't be 100% sure of anything Nov 14 09:38:40 And it will not killed by gc? Nov 14 09:38:49 misterli: that's the whole purpose of the service but you can't be 100% sure of anything Nov 14 09:39:26 okay. but i have had some issues that the app (its a push service) does not respond anymore after a while (for example after a outofmemory issue in the app itself) Nov 14 09:39:48 It may be killed if the device is running low on memory and the service is not registered as a foreground service Nov 14 09:40:10 misterli, the push service shouldn't be running all the time anyway Nov 14 09:40:16 you get an intent, you handle it, you close Nov 14 09:40:17 Thats it. Its not a foregorundservcie Nov 14 09:40:35 Mavrik. Its not GCM. Its via MQTT or XMPP Nov 14 09:40:49 so why are you talking about GCM? O.o Nov 14 09:40:58 The question was if GCM handle this that way too Nov 14 09:41:16 GCM just gives the message to a broadcast receiver Nov 14 09:41:28 afterwards it's up to you if you're even gonna start a service or not Nov 14 09:41:36 yes. Which means that the server must be alive because it has it receiver listening for broadcasts Nov 14 09:41:59 but the question is how about services which have no foregorund-service and no notification Nov 14 09:42:45 misterli, what server? Nov 14 09:42:55 GCM is handled globaly by google play services Nov 14 09:42:57 currently xmpp/openfire Nov 14 09:43:16 after it gets the message it does a handoff to you, you have no service running to listen for messages continiously in your app Nov 14 09:43:44 also the message receive part is decoupled from your handling so you can't crash global push receiver by doing something dumb Nov 14 09:44:23 Yes, i know. I use aSmack for the connection and a pendingintent to check if the connection is still alive all 10 minutes for example. its a return_sticky service which initialize everything again once its killed Nov 14 09:44:59 which means that latest all 10 minutes it should/must be listen for connections again even when the service is killed (not foreground) Nov 14 09:45:04 "should" Nov 14 10:04:26 Hey ho, dumb question but can anyone tell me what the equiv ios channel would be ? Need some questions answered for iOS sadly Nov 14 10:04:42 what do you need? Nov 14 10:04:48 but the answer is #iphonedev Nov 14 10:06:04 work at a huge company,our deliverer for our app changed their policy of preview apps. So now we get an ipa file and have to resign it. Our internal app team wont do that and instead are offering us a profile+key so our deliverer can send us an xcArchive. Can we do the latter part or do we need them explicitly? Nov 14 10:06:48 So am I the only one unable to log in to the Genymotion Cloud from the client to download images after upgrading to 2.0? Nov 14 10:06:53 im guessing that the signing part of the xcArchive is part of the compiling process so I cant imagine it will work without the source doe,which we wont get obviously. Nov 14 10:10:48 kjeldahl: i think their servers are getting overloaded Nov 14 10:10:54 200k+ people trying to update at once etc Nov 14 10:34:49 CallumTaylor: You're probably right. Logging in through the web page works fine however, but that could very well be another system. Thanks for the info anyway. Nov 14 11:34:46 Hi, I'd like to develop my first 'real' app. And I need to interact with a secured API (a.k.a requires login). What is the best way to approach this? Where should I store the authentication cookie or token? Nov 14 11:42:50 aesptux: are you talking about authenticating with Oauth2 service? Nov 14 12:01:19 How does AndroidHttpClient exactly work? When i open a Connection (without a Timeout) and the Server does not respond with a body content but has timeout to 0. Will it keep the connection open for .. always? :) Nov 14 12:05:16 Are IntentServices some how linked? Can I call a method of an interface implemented by an IntentService from another IntentService? Nov 14 12:07:09 You may use receivers for that. Or Static vars/functions Nov 14 12:07:43 AndroidHttpClient? isn't that deprecated since 1.6? Nov 14 12:08:00 oO dont think so Nov 14 12:08:19 No, its not http://developer.android.com/reference/android/net/http/AndroidHttpClient.html Nov 14 12:09:17 If the timeout not appear the entity can not be consumed. This is a very dangerous "bug" for apps since even when the server drops the androidhttpclient seems not to recognize that Nov 14 12:10:25 yes, that's why you shouldn't be using AndroidHttpClient, it's buggy as hell. Nov 14 12:10:30 Really? What else? Nov 14 12:10:38 Apache HttpClient which is more buggy? Haha Nov 14 12:10:41 ;p Nov 14 12:11:17 ok. Nov 14 12:11:40 it's not like AndroidHttpClient IS Apache HttpClient, right? Nov 14 12:11:44 what else to communicate between client<>server (files, chat) Nov 14 12:11:47 Yes. Modified Nov 14 12:16:51 misterli, if I register a broadcast receiver I need to unregister it on destroy, which I don't have access to in the IntentService Nov 14 12:18:25 erm, what? you can put it on the end of the onHandleIntent(9 Nov 14 12:18:31 and/or Nov 14 12:18:36 Why do you want to this at all? Nov 14 12:18:56 This is not the point of an Interface to access it within an other class Nov 14 12:19:18 thepoosh: No, a regular login. To moodle or perhaps oracle sso Nov 14 12:22:30 misterli: You might want to try okhttp. Nov 14 12:23:01 Never heared of that but since it is a "open-project" it can be bugged. And its used for more then 50.000 users :/ Nov 14 12:23:38 misterli: closed projects can be bugged just as well Nov 14 12:23:43 Talking about okhttp? Nov 14 12:23:45 Yes Nov 14 12:23:56 okhttp is the default http client for Android 4.4 Nov 14 12:23:56 How do you add C++ Code into android...i just need a general Idea and what it could be used for Nov 14 12:24:09 Oha Nov 14 12:24:15 Does it support threading-support? Nov 14 12:24:17 I've only had good experiences with OkHttp so far. Never looked back. Nov 14 12:24:29 datandroiddude: http://developer.android.com/tools/sdk/ndk/index.html Nov 14 12:24:38 note: "In general, you should only use the NDK if it is essential to your app—never because you simply prefer to program in C/C++" Nov 14 12:24:57 Oh thank you! Nov 14 12:25:10 And is 4.4 officially out for the Nexus 4? Nov 14 12:25:37 misterli: Best check it out for yourself. Square is behind it, so I'd say the chances of it being "bugged", while possible, are very slim. The best thing: There are updates, so you can use the same HttpClient for all platforms. Nov 14 12:25:54 There's also a G+ Community (with a search function). Nov 14 12:25:57 Thank you. I never heared of that before Nov 14 12:26:15 Just for a splash in. Is there a multi-threading/caching support? Nov 14 12:26:24 Hope it works out for you, it certainly did for me. Nov 14 12:26:37 It has aggressive caching even. Nov 14 12:26:39 OkHttp works well Nov 14 12:26:46 Using I think both memory and disk cache. Nov 14 12:26:50 it has some bugs occasionally but not being part of OS helps with updates :) Nov 14 12:26:56 Currently my app sends some http requests which store all the request as thread in a asynctaskexecutor but when there are TOO MANY ... it crashes Nov 14 12:26:56 you need to enable cache yourself Nov 14 12:27:06 I tried many stuff but most does not have multipartrequests.. Nov 14 12:27:12 Mavrik: I don't think so? Nov 14 12:27:20 U GUYS IS KITKAT OUT(OTA)? Nov 14 12:27:26 Yes, it is Nov 14 12:27:41 for n7 at least Nov 14 12:27:44 datandroiddude, this is a dev channel. Nov 14 12:27:46 And Note 2 Nov 14 12:27:47 3 Nov 14 12:27:49 can you please move this somewhere else? Nov 14 12:27:52 misterli: I do it in a Thread which is in a service, not in parallel, tho. Might just try. Nov 14 12:27:54 and people have been running kitkat on n4 since 31st october Nov 14 12:28:13 kakazza. What do you mean? Nov 14 12:28:43 Meaning, I don't execute multiple requests in parallel, but asynchronously, like you do. I cannot give you that answer. Nov 14 12:28:44 The best solution is: A local Caching which can be available for nSeconds/minutes/hours and get seralized to the hdd and grabbed when needed to avoid memory-leaks/service crashs by gbc and so on Nov 14 12:29:28 Look at the source code of okhttp. They use LRU caches. Nov 14 12:29:44 This is not that hard. I made that already with a small sqlitedatabase but it's bad to store images and such. Sure, i can/could use a flag and the path to the file but since the file may change and i want the results before changing, it ... Nov 14 12:30:10 sounds great :) Nov 14 12:30:45 thank you so far for that hint. Is there a special android-version or does the common java.com.squareup.okhttp work on android? Nov 14 12:31:38 Works on Android Nov 14 12:32:04 http://square.github.io/okhttp/ also has the link to the JavaDoc Nov 14 12:32:47 Thank you. And it can be used with android sdk 8+? Nov 14 12:34:14 Android 2.2 and above. Okay, sounds great. Ill try this now. Thanks again Nov 14 12:36:55 Just a word of advice, if you encounter any problems on 2.2 (okhttp or otherwise), drop support. 1.7% of users. Nov 14 12:37:23 I know it hurts to disappoint some users, but if you're doing freelance, it's probably not worth your time. :\ Nov 14 12:38:55 Hello, I have two activities, a ListActivity which shows a list of things. And a details activity which shows details for an individual thing. I also have a Delete button on the details view. Is it possible to pass a reference for the list adapter from the listactivity to the details activity so that I can implement the delete button? Nov 14 12:39:41 From what I've read it is not possible to pass objects between activities (only data) and if that's the case I wonder how you would solve the problem I have with the delete button Nov 14 12:39:41 onActivityResult() for example. Nov 14 12:40:00 It's a list, items have positions. Nov 14 12:40:29 Also, you could Fragments and use the activity (or similar) for the communication between them. Nov 14 12:40:30 how do you disable the backstack transition if you want to clear the backstack without the animation Nov 14 12:41:19 hi there are not specifique config apache2 or debian for android app ? Nov 14 12:41:42 kakazza: I can pass around the item position but I need a reference to the list adapter to actually be able to call listAdapter.remove(itemIndex) Nov 14 12:42:09 possibly fragments would make more sense - what is the disadvantage of using fragments over activities for this kind of thing? Nov 14 12:42:34 because i want connect with mysql a i use php httpost but my doesnt work Nov 14 12:43:44 ? Nov 14 12:44:07 my android app don t communicate with serveur Nov 14 12:44:32 spuz: In the simplest case, you have one Activity, which starts Fragment A (list), then Fragment B (details). The Activity can manage communication between fragments and also hold information. Nov 14 12:44:34 http://pastebin.com/crfL2xXT Nov 14 12:45:20 Note that if you .replace() fragments, their onPause() is called, but not onDestroy() but onDetached() iirc. So their instance still exists. Nov 14 12:45:57 ok.. Nov 14 12:46:00 I need a coaching to format/design some Text on the screen Nov 14 12:46:01 http://pastebin.com/vzZYMuY3 Nov 14 12:46:01 How can I do it? Nov 14 12:46:03 * spuz reads the docs Nov 14 12:46:22 How to set setSmallestDisplacement() in the LocationRequest after the LocationClient is connected, it doesn't seem to change afterwards Nov 14 12:46:33 Does this even work since it is in the MainUI? Nov 14 12:46:39 spuz: https://developer.android.com/training/basics/fragments/communicating.html Nov 14 12:47:10 I'm actually thinking having delete on the details view is the wrong way to do it Nov 14 12:47:16 :) Nov 14 12:47:25 but I'm terrible at UI design so I'm not sure what else I can do... Nov 14 12:47:40 (For this article to make sens for you, you have to read the two previous ones, too, I think. Nov 14 12:47:45 ok Nov 14 12:48:18 misterli, were you refering to me? Nov 14 12:48:29 No, sorry. I ment kript Nov 14 12:48:55 spuz: Maybe the wrong place, but could be there additionally. If it's a list, you could do swipe-to-dismiss/delete, select and delete (Contextual Action Bar) etc etc Nov 14 12:48:55 doest send value or execute php Nov 14 12:49:15 Check if you have the Internet-Permissions and do it in a thread/asynctask to avoid mainui blocking/freezing/fc Nov 14 12:49:27 i have internet permission Nov 14 12:49:48 i don t have blocking freezing Nov 14 12:50:02 kript. This does not mean that you should do this in the main-ui Nov 14 12:50:18 i want send value on php and insert on bdd Nov 14 12:50:34 i want 1 million USD Nov 14 12:51:22 i have form and send boutton Nov 14 12:51:29 kakazza, Mavrik. Threre is no proper tutorial for okHTTP, isnt it? just a few examples for a very simple basic http client which has no advantages to the default androidhttpclient? Nov 14 12:51:52 kript. Show your Manifest file and rtfm about asynctask/threads Nov 14 12:52:06 What kind of Tutorial do you need? The API is exactly the same like any other Java HttpClient. Nov 14 12:52:18 To make sure you can use it as a drop-in replacement. Nov 14 12:52:33 I prefer learning by doing and then using the javadoc to get additional informations Nov 14 12:52:57 Well, you already uses HttpClients, so you're done with the doing. :) Nov 14 12:53:02 used* Nov 14 12:53:22 dumb question, but is there a policy to not allow company employees to rate their programm? Nov 14 12:53:31 The magic is in the implementation, which is obv hidden in examples as it should be transparent to the developer. Nov 14 12:53:40 Yes. But im specially looking for the caching-stuff to the disk. Maybe it's not HttpClient relevanted but i want to send a few posts to one httpclient which do all the stuff byitself. Caching, Threading, Asynchronous stuff Nov 14 12:54:23 The HttpClient doesn't know anything about whether it's run on the UI thread or another. Nov 14 12:54:29 Caching, yes, because that's what they do. Nov 14 12:54:54 Use the Javadoc to see about the caching. I think it's in HttpSomethingCache.java, I forgot. Nov 14 13:03:40 Well. Mabye the whole concept is not good what im using. My App sends sevral httpposts from different classes to just one server. This includes several stuff. It may/can include a file, it may/can include some postvars (mixed with file), it may only sent if there is a Wifi-connection. It may be cached for 10 seconds or longer. It may be dropped if there is no connection and/or cached, it Nov 14 13:03:41 may/have a "payload" or a unqiueID which can only be cached one time (when its already in cache, drop the request). It may be "Important", to jump over all cache and request without waiting, ... Nov 14 13:05:05 Currently i have a HttpPostHelperClass which have tons of setter and getter. I have a Thread-Pool which have 1 up to unlimited requests. The Thread-Pool uses a ExecutorOnExecute() and a BlockedList (which causes trouble in older android-versions already). The BlockedList is currently limited to 500 "Queue-Requests". Nov 14 13:05:24 It works - most of the time - but sometimes it crashes with outofmemory Nov 14 13:06:43 hi, I'm currently using the hidden API to call ITelephony#endCall, but this does not allow me to choose which call to end. Is there a better way to do this, which will allow me to pick the call to end? Nov 14 13:08:49 anyone ? our deliverer is using his own employees to boost their app rating Nov 14 13:08:53 want to know if thats legal Nov 14 13:09:24 In any case it's not really ethical. Nov 14 13:10:05 But if it's a small startup with a few customers, it can be justified. Anyways, big corporations are known to hire the press, bloggers, and commenters to animate the various social channels. Nov 14 13:11:10 ie. as a customer, you may discount some percentage of good opinions. Make up your own mind and see for yourself if the product is worth anything (for you!) nonewithstanding the opinion of others. Nov 14 13:11:39 I would just reject the whole concept of social networks. I should not care the opinion of the others. Nov 14 13:14:46 If anyone could help I will appreciate it :) http://stackoverflow.com/questions/19978583/ending-a-specific-call Nov 14 13:16:29 500 employees Nov 14 13:16:31 make a few milliosn Nov 14 13:16:36 are on the stock market Nov 14 13:19:42 Hey, I have a question regarding closed captioning, I found a way to do it with HLS + webvtt, are there other methods available as well, for live streaming? Nov 14 13:38:15 the action bar is not appearing, i think i messed up something to do with the theme.. what should i do to fix this Nov 14 13:39:18 Hi guys, im doing a custom camera application. When I activate the auto-focus, the size (in octets) double. Nov 14 13:39:31 is that normal ? Is there a way to pass over it ? Nov 14 13:40:25 size of what Nov 14 13:40:49 size of the picture Nov 14 13:41:41 like 500ko without focus, and 1Mo with focus Nov 14 13:41:47 ah Nov 14 13:41:55 did you extract the images Nov 14 13:42:00 and compare the format ? Nov 14 13:42:23 you may find they are different formats Nov 14 13:42:34 format u mean jpg, png etc ? Nov 14 13:43:14 oh i see what u mean, ill check Nov 14 13:43:24 even the color modes, etc Nov 14 13:47:31 There are also formats where several pictures are taken at different focuses, so that software can later reconstruct a globally focused image. Nov 14 13:47:55 That may be the reason why the size double, even if each version of the image has the same format. Nov 14 13:53:30 well, it doesnt double anymore now its like 100Ko more Nov 14 13:53:39 i dunno wtf is going on Nov 14 14:04:24 does anyone know some good implementation of sensors to rotate the compass? Nov 14 14:04:37 just like Google Maps app does Nov 14 14:04:58 it rotates the camera based on device's sensors Nov 14 14:05:17 but I can't get it to work Nov 14 14:05:35 i knwo android has much higher market share than iphone, but i cant decide if i should write an iphone app or android ? Nov 14 14:13:03 Any kind soul can tell me an alternative approach to write to disk until it's full without getting the libcore.io.ErrnoException: write failed: EFBIG (File too large)? Nov 14 14:13:32 http://stackoverflow.com/q/19968185/558991 Nov 14 14:14:23 nvm find an open-source MIUI compass implementation https://github.com/MiCode/Compass Nov 14 14:14:38 assume they are all vfat Nov 14 14:14:42 and only write to max filesyze Nov 14 14:14:44 file size Nov 14 14:15:45 if the end user doesn't have to deal with the result Nov 14 14:15:52 just deal with the worst case scenario Nov 14 14:16:57 wmealing: Thanks Nov 14 14:17:20 Nimooli: its not the best answer, but its how i'd deal with it Nov 14 14:17:53 wmealing: btw is the maximum filesize on vfat 4gb? Nov 14 14:18:17 i know, fat32 was 4gb Nov 14 14:18:51 oh, 4gb minus 1 byte Nov 14 14:19:07 maybe i'll split it into 2gb files just to be safe Nov 14 14:19:18 yeah, can't hurt Nov 14 14:19:40 ah, the 4gb depends on formatting Nov 14 14:19:43 http://support.microsoft.com/kb/184006 Nov 14 14:34:35 Genymotion just released a hotfix release 2.0.1 to fix problems with SSL authentication... Nov 14 14:36:38 kjeldahl cool thanks Nov 14 14:37:03 i dont understand why i never get notifications about updates Nov 14 14:37:14 even though in my profile, its marked as send email Nov 14 14:38:15 I think they've had a very busy day. ;-) Nov 14 14:39:34 i mean, i've never gotten an update email Nov 14 14:39:40 evaaar :) Nov 14 14:39:49 Twitter ftw! Nov 14 14:40:29 The "with Google APIs" image is deprecated, so unless they put it into all their images, for some reason they removed it. Nov 14 14:41:13 Both AndroidBarSherlock and Maps v2 are not working correctly when I push to my 2.3.6 device. Not getting errors, other than the null pointer when I try to use the map. Any idea what I may have forgotten? Nov 14 14:41:25 kjeldahl is there a coincidence there since they are now charging for it ? (for certain tiers) Nov 14 14:41:44 Could be, haven't been able to check yet. Nov 14 14:41:54 deprecating the google apis bits - thats not a feature Nov 14 14:43:46 I definitively got a lot more naggy about personal use... Nov 14 14:43:51 *It Nov 14 14:44:24 Does anyone know a list of say, "croudsourced wants" that people have from Android Nov 14 14:44:37 well, i would just use the google emu & x86 stuff, but HAXM has been nothing less than a disaster for me Nov 14 14:45:04 g00s: You're on Windows? Oh dear... Nov 14 14:45:09 on mac Nov 14 14:45:32 oh, I would expect that to work better, but have not idea. Linux all the way at my end. Nov 14 14:45:39 :) Nov 14 14:45:56 i thought you were running emacsOS ? Nov 14 14:46:01 XD Nov 14 14:46:14 I have a hackathon to participate in, and I'm looking for a random hack I could build in 48 hours. Nov 14 14:47:05 Could be cool, but it's probably a very small market. :-) Nov 14 14:47:42 i dont understand the point of hackathons Nov 14 14:48:29 lut4rp your hack should be increase the speed of qemu by 10x Nov 14 14:48:49 or add bluetooth support to it Nov 14 14:49:24 g00s, I think you missed the 48 hours point xD Nov 14 14:49:45 increasing the speed of qemu by 10x is pretty easy, all you have to do is run it on a native processor with virtualization support :P Nov 14 14:49:46 The point of hackathons is to network and steal people for your company and market shamelessly Nov 14 14:49:58 all under the pretext of Code And Beer, of course Nov 14 15:01:59 <^cheeky> when is kit kat coming out to the rest of the people Nov 14 15:02:11 <^cheeky> i want so badly noaw !!!:P Nov 14 15:03:27 ^cheeky, me too. it's out for my Nexus 7 2013, but still I don't get the update. I know I can update it via USB but still I prefer to have the OTA one Nov 14 15:04:33 <^cheeky> actually i have never done that but i might do that, besides, i need to do a clean install on my phone ... been running the stupid apps i create on it .. so probably better to have a clean install. Nov 14 15:04:57 <^cheeky> thou, putting a custom rom is so tempting , but i don't like having root enabled on the phone oh well Nov 14 15:05:26 ^cheeky, you can disable root permission AFAIK Nov 14 15:06:08 <^cheeky> and wow . kit lat sdk has some new tools to play with, specially for android animations Nov 14 15:06:11 <^cheeky> and bitmaps Nov 14 15:06:18 <^cheeky> yeah i should look into it thank you Nov 14 15:11:30 gnutonio2: adb sideload is functionally identical to getting the OTA Nov 14 15:12:04 <^cheeky> i might do that tonight Nov 14 15:12:16 Leeds, I know. I'm just not sure about the image I download. Nov 14 15:12:24 if you get it from google.com... Nov 14 15:12:56 Leeds, there may be different versions.. Nov 14 15:13:13 yes, that's why you get the right version... whatever Nov 14 15:13:24 You're a developer. Make sure you get the right one. Nov 14 15:13:42 Leeds, I mean some devices can have sliglthly different hardware Nov 14 15:13:55 yes... whatever. Nov 14 15:14:42 kakazza, I love you nickname, in Italian means diarrhea Nov 14 15:14:46 good thing Nexii don't :) Nov 14 15:14:48 your Nov 14 15:18:05 Glad you like it ;) Nov 14 15:22:50 kakazza, :D I think I'll remember your nickname for very long time man! Nov 14 15:26:25 Hi,please could somone help me to get android ndk include files working?Have a problem to cross compile kexec and there are some include files missing, like this: /limits.h:27:22: fatal error: features.h Nov 14 15:30:57 Any idea?Help? Nov 14 15:34:22 Whats the best way to take an array of 20 ints and see two of them are identical? Nov 14 15:34:29 Should I just use an array list? Nov 14 15:36:46 greets, i'm opening my app via a link tag in a webpage, i.e. android-app://com.example.app/something/123, but I get the url and not "com.example.app/something/123" any ideas? Nov 14 15:37:06 i want what launched the intent, not the url it came from. Nov 14 15:52:54 Hey, I'm trying to export a project into an APK using eclipse. It seems eclipse hangs after starting to create the APK, it tried it a few times already... any suggestions? Nov 14 15:54:09 Delete the gen in your project wait for it to regen. then clean. then export Nov 14 15:54:19 Has anyone been able to get a pgp library/implementation going on android and would you care to share what you used? Nov 14 15:55:07 <^cheeky> this guys is awesome, but animations ugggh Nov 14 15:55:36 thanks eghdk, will try Nov 14 15:55:54 jellybee: try turning off "build automatically" in the build menu, export and then re-enable Nov 14 15:56:03 <^cheeky> oh sorry Nov 14 15:56:15 i used to get crashes every time i exported, but turning that off fixed it, but make sure you turn it back on after Nov 14 15:57:51 <^cheeky> can anyone please refer to a good tutorial or introduction to animations in android Nov 14 15:58:07 <^cheeky> i am a sucky @ everything but i am even more sucker with animations, Nov 14 15:58:41 <^cheeky> its so freaking scary !!!!! Nov 14 16:02:37 Any idea why the GooglePlayServicesUtil getErrorDialog function does nothing? It is definitely hit, but my app just crashes. Nov 14 16:04:29 ugh, useless, vzw won't let me transfer upgrades Nov 14 16:04:33 I guess I won't be getting it Nov 14 16:05:24 vzw never gives me a problem transfering upgrades. I did it last week. Nov 14 16:06:37 still stuck :/ it's working on the export for about 5 minutes, used to take 20-30 seconds Nov 14 16:08:23 ^cheeky: DevBytes has good videos. Nov 14 16:08:38 This one is about Transitions, new in Android 4.4 https://www.youtube.com/watch?v=S3H7nJ4QaD8&list=PLWz5rJ2EKKc-2quE-o0enpILZF3nBZg_K Nov 14 16:08:50 eghdk, the problem is completing the transaction on moto maker Nov 14 16:08:53 But there are videos for older platform versions too. Nov 14 16:09:26 ^cheeky: https://www.youtube.com/user/androiddevelopers/search?query=animation Nov 14 16:09:50 <^cheeky> i have fears in me for some reason i need to get over ..just so weird, like i am scared to program in C++ . i think its freaking awesome so much control but i fear it .. and animations ever since i was a kid .. ugh so freaking tainted i am Nov 14 16:10:30 <^cheeky> i have seen them Nov 14 16:11:13 There are so many videos, if you've seen them, you should have a good grasp of how they do it, no? Nov 14 16:11:54 <^cheeky> i wanted to the card flip but then i halted because, each image i have downloaded from the net is different size ... so i dunno how the card flip would be feasible .without a lot of code overhead, so i thought of doing this which looks wicked https://www.youtube.com/watch?v=xbl5cxfA1n4 Nov 14 16:13:22 <^cheeky> well they give you an over-view, but for me to understand or start i need to know what they mean like the working .. so i need to read .. more like what is an animator object , and what not .. i just need to read more about it, thats why i asked about reading, i have never ever ever done animations ever .. Nov 14 16:13:31 <^cheeky> this tea is calming !!! hehe Nov 14 16:13:35 ... I'd so like to understand why List> foo = ...; Collections.sort(foo); will not compile, but Collections.sort(foo, null) will compile Nov 14 16:13:38 <^cheeky> ill start Nov 14 16:13:51 no idea if that throws a runtime exception though Nov 14 16:14:13 <^cheeky> kakazza: thank you :) i appreciate your time for linking me cheers man Nov 14 16:14:22 some of this java generic shit is maddening to me Nov 14 16:14:22 wtf. update to 2.0. 5 minutes after installation.. update to 2.1 (genymotion)... do you have the same issues? Nov 14 16:14:23 alankila, that's java... Nov 14 16:15:10 <^cheeky> erasure or what ever that is Nov 14 16:15:14 alankila, and in order to be able to sort Foo with zero-args, it must be Foo extends Comparable Nov 14 16:15:25 <^cheeky> i ran into a problem like that when i was parcelling Nov 14 16:15:28 otherwise you must specify a comparator Nov 14 16:15:36 Sure it is, the class is defined as Foo extends Comparable> Nov 14 16:15:47 in this case the type of element in list is variable, it's a dynamic system Nov 14 16:16:00 java generics do not support hetero lists Nov 14 16:16:04 it's all runtime shite that takes it from Foo Nov 14 16:16:35 well I can make it Foo or something such for equal effect Nov 14 16:16:45 that's what I usually end up doing Nov 14 16:17:03 it's just that eclipse's compiler compiled that fine but jdk compiler doesn't Nov 14 16:17:04 did something like that for my promise/future framework Nov 14 16:17:14 I've been using eclipse's compiler for so long that I didn't even know there was a problem Nov 14 16:17:25 private List,Function>> mapped = ... Nov 14 16:18:18 pfn: it's... beautiful Nov 14 16:18:32 kakazza, the end result of using it is beautiful Nov 14 16:18:42 https://gist.github.com/pfn/7442087 Nov 14 16:18:53 https://gist.github.com/pfn/7451900 Nov 14 16:20:18 everything contained within the future "monad" executes asynchronously, and you can map results/values after the future completes, the onCompletion callbacks occur on the UI thread automatically Nov 14 16:30:24 I am using Android map v2. Is there a way to have the activity just not initialize the map if the user isn't logged into Google Play? Rather than displaying the error dialog that takes the user to Google Play. Nov 14 16:31:11 alankila, well, if you think about it, a Foo isn't necessarily comparable to a Foo Nov 14 16:32:24 alankila, if you do Foo implements Comparable it should work Nov 14 16:33:25 rather than Comparable> Nov 14 16:37:03 when i use BitmapFactory.decodeByteArray(data,0,data.length); what should data be equal to? Nov 14 16:38:43 pfn: I don't think this makes any sense Nov 14 16:38:54 the error is that Collections.sort(foo) isn't permissible, but Collections.sort(foo, null) is Nov 14 16:38:57 don't ask me why Nov 14 16:39:33 it smells to me like something fucked up the method resolution in the jdk compiler Nov 14 16:39:44 also doesn't help that I'm using jdk 1.8 though I did replicate the issue on jdk 1.7 Nov 14 16:40:25 it compiles fine for me with -source 1.6 Nov 14 16:40:29 using Comparable Nov 14 16:40:54 Foo shouldn't be comparable Nov 14 16:41:07 rather, Comparable> doesn't make sense Nov 14 16:41:49 Comparable gives me warning about Foo being a raw type Nov 14 16:42:18 It's probably easiest for sake of discussion that I package this into nice example file Nov 14 16:42:21 just a moment Nov 14 16:42:49 maybe Comparable> would suffice to make that warning go away Nov 14 16:43:13 I don't think I got the compile warning with that either, though Nov 14 16:44:03 maybe I need -Xlint:all Nov 14 16:44:07 but javac doesn't complain Nov 14 16:47:43 any idea why this doesnt work? http://pastebin.com/cYuRunrJ keeps complaining about getDataInBackground Nov 14 16:48:21 https://bel.fi/alankila/Test.txt Nov 14 16:48:43 I synthesized a full example to illustrate why it might make sense to sort heterogenous collection of elements Nov 14 16:48:55 in this case, by giving a property weight and making the sort occur solely based on weight Nov 14 16:49:21 Now Collections.sort(list) can't be compiled but Collections.sort(list, null) can be compiled. I do not understand it. Nov 14 16:49:43 sorry ignore max() by sort(). I'm actually using both in my failing prod case Nov 14 16:49:45 because from a type system perspective, Foo can't be compared to Foo Nov 14 16:49:49 I'm in a custom made class. Inside of this I need to call a method that requires a context. How can I do that? Nov 14 16:50:00 you pass a context to your class Nov 14 16:50:11 pfn: well why does it insist it can sort the sort(foo, null) case Nov 14 16:50:39 because it's expanding null to be Comparator> Nov 14 16:50:39 Is that the "only" way to do it pfn. It's a huge class that doesn't require context at all. But I just need it to perform a toast. Nov 14 16:50:49 or even, Comparator Nov 14 16:50:52 which accepts anything Nov 14 16:51:13 null is the magical value that fits any time that's necessary Nov 14 16:51:18 s/time/type Nov 14 16:51:27 eghdk, then pass a context for the toast Nov 14 16:51:32 or have a singleton context somewhere Nov 14 16:52:50 Theres no way to do like Activity.getAppContext or something? Nov 14 16:57:13 I sometimes wonder if I'll ever understand generics. Nov 14 17:01:24 I guess I don't care as long as it happens to compile and work at runtime Nov 14 17:06:02 can any1 tell me why my listview is populating 3x's?? http://pastebin.com/YXKHAMS2 Nov 14 17:13:31 Ok so: final ListView.LayoutParams layout = new ListView.LayoutParams(dimen, dimen); Nov 14 17:13:45 For some reason the view with those params is a very wide rectangle... Nov 14 17:14:22 Here is all of the code: http://pastie.org/8480445 Nov 14 17:17:41 is there any android malware that tries to obtain root permissions? Nov 14 17:18:10 probably. Nov 14 17:18:13 ^ Nov 14 17:18:23 There was an app that lets your root your phone with a single click Nov 14 17:18:31 Don't know if it still is applicable Nov 14 17:19:16 ah, found one: http://www.techradar.com/news/phone-and-communications/mobile-phones/android-malware-gives-itself-root-access-1062294 Nov 14 17:21:13 you can install apps like SuperSU even if you aren't rooted in order to thwart some SU brute attacks. Nov 14 17:21:33 hello. I'm trying to follow this guide here: http://forum.xda-developers.com/showthread.php?t=2274692 and I'm having an issue with this command: repo init -u git://github.com/CyanogenMod/android.git -b cm-10.1 && mkdir -p .repo/local_manifests && curl https://raw.github.com/teamuserdebug/page/manifests/manifests/cm10.1-aries.xml > .repo/local_manifests/local_manifest.xml && repo sync it says: line 1: Unexpected token new line Nov 14 17:21:40 could someone help? Nov 14 17:23:01 that was a huge command, especially after posting the link to the thread, and i would say that is a little off topic. Nov 14 17:23:33 how? it's a dev issue @ ekylypse Nov 14 17:23:40 <|0xD34D|> this is for app dev Nov 14 17:23:42 <|0xD34D|> not ROM dev Nov 14 17:23:46 <|0xD34D|> check #android-root Nov 14 17:23:51 check #android-root Nov 14 17:24:01 wow Nov 14 17:35:42 can anyone tell me why when I add to my list view it changes all data that has been entered before to the current??? http://pastebin.com/iT0yVkqQ Nov 14 17:46:46 MrTreeToooo: Nov 14 17:46:48 *sigh* Nov 14 17:46:49 ok Nov 14 17:47:06 The getView method of your adapter serves a greater function than the one you have laid out Nov 14 17:47:27 if, and ONLY if, convertView is null, THEN you *create* a new view Nov 14 17:47:49 once you create a new view, you work with that one. Nov 14 17:48:00 if it is NOT NULL then you work with that already created view. Nov 14 17:49:23 WORKING WITH A VIEW means that you use DATA that you have (in this case, a string, see class KoreyzAdapter extends ArrayAdapter) Nov 14 17:50:11 you get the string at the current row with the index of "position" (String data = list.get(position)) and use it in the view that you're working with Nov 14 17:50:20 MrMeeTooo * Nov 14 17:51:05 See this as an example: the list is a list of Integers, or colors, each view is assigned a background color from the list. http://pastie.org/8480445 Nov 14 17:51:31 No special views are being used, this is just to demonstrate how views are recycled Nov 14 17:54:47 ok give me a min to read up on what you suggested. Nov 14 17:58:30 Im still new to this Nov 14 17:58:46 does what I said make sense? Nov 14 17:59:11 the purpose of a list adapter is to recycle views so that you don't make potentially millions of allocations of views, crashing the device Nov 14 18:00:01 even though lists dont usually have that many items, its still good practice because it does save a lot of memory anyway Nov 14 18:00:25 and saving memory IO during a fast scroll is helpful to appearance of the scroll. Nov 14 18:00:47 kind of...I implented the [position] in static values with ease but Dynamically between activites seems like alot more headache Nov 14 18:01:32 your paste shows 0 static variables Nov 14 18:02:00 yes its dynamic via edittext Nov 14 18:02:14 also: what is going on here: (ImageView)row.findViewById(R.id.sexpic); Nov 14 18:02:42 sex pics Nov 14 18:03:09 explodes: it would seem as such Nov 14 18:03:10 its not how it sounds lol Nov 14 18:03:34 haha Nov 14 18:04:06 guess i should change it to "Gender" Nov 14 18:04:16 final ListView.LayoutParams layout = new ListView.LayoutParams(20, 20); gives me something that looks like MATCH_PARENT and 20 Nov 14 18:04:20 what do Nov 14 18:04:37 na, it makes your code funner to read Nov 14 18:06:00 took me 2weeks just to figure out how to populate it between activities correctly... finally got it this morning smh Nov 14 18:14:14 Is there a neat way to make a ListView horizontal? Nov 14 18:14:37 I have this com.devsmart.android.ui.HorizontialListView but it doesn't live up to its own contract Nov 14 18:14:57 Aside from a scrollview with a linearlayout, do I have any options? Nov 14 18:18:49 Soooooo figure out how to get your convertview to null then celebrate....right? Nov 14 18:28:10 hey guys… anyone has any luck using the 'idea' plugin and downloading sources of dependencies? Nov 14 18:34:48 anyone having problems sending emails with the gmail app today? i can receive but not able to send Nov 14 18:35:56 lol sound like gmail got hit by CryptoLocker Nov 14 18:37:31 MrMeeTooo: really? :) Nov 14 18:40:31 if i have a button, and i want to change how it looks for a picture, i do this: View mImg = findViewById(R.id.button_profile); then what? how do i actually change it to a picture? Nov 14 18:56:11 Hey guys :D Nov 14 18:56:40 is there a way to put the dragshadowbuilder on top of a framelayout? Nov 14 18:58:42 something like bringtofront Nov 14 19:09:16 so what's the preferred model for doing onDraw when it's fairly complex and you want to offload to a thread? As far as I can see, you only get hw acceleration when the canvas is linked to a view directly, so i can't get any hw boost drawing offscreen then copying it to the main during onDraw, but I'm also not confident that I want to be doing the entire draw cycle on UI thread Nov 14 19:10:26 opengl Nov 14 19:10:46 it's 2d and the largest time consuming portion of it is bitmap Nov 14 19:11:15 2d is sucky and slow. i'm planning to use opengl to render the 2d app i'm working on. Nov 14 19:12:44 (which wouldn't be hugely accelerated). One thought I had was to do the bitmap in a thread unaccelerated and then composite it to the accelerated canvas Nov 14 19:12:54 and then overlay the 2d vector stuff Nov 14 19:13:09 I don't particularly want to move this to GL Nov 14 19:15:02 how does SIM_STATE_ABSENT work ? Nov 14 19:15:18 DJ-Rack: in what sense? Nov 14 19:15:53 A wild guess would be that there is no sim card Nov 14 19:16:37 dragorn: does it check some kind or sqlight db or how ? Nov 14 19:17:04 I wouldn't assume so. Since it's a system broadcast it's coming from whatever part of the system handles the sim card Nov 14 19:18:17 dragorn: cuz for airplane mode i found out it checks from AIRPLANE_MODE_ON in sqlight located in /data/data/com.android.providers.settings Nov 14 19:20:29 basiccly i am tring to enable the hotspot tethering without having sim card and airplane mode is enabled (there are 2 checks 1 for airplane mode and the secound one it checks if sim card is inserted i hope there are no other checks) Nov 14 19:21:29 i hope i knew which apk is responsable for that then it would of been easyer to change the check in smali Nov 14 19:25:13 my secondary issue, is when I try using a textureview, I have the drawing ops in a thread. if the textureview goes away while the threaded drawing op is underway, it causes a segv - but I can't abort the thread when I get the onSurfaceTExtureDestroyed event, 'cause, java threads. Nov 14 19:44:58 I have a question regarding closed captioning, I found a way to do it with HLS + webvtt, are there other methods available as well, that can be embedded in an MPEG-TS, HLS, Or any other streaming method? Nov 14 19:53:43 Hi guysç Nov 14 19:53:46 ups, Nov 14 19:53:47 Hi guys Nov 14 19:53:48 ;) Nov 14 19:54:09 How do you write a driver? insmod: init_module '/data/local/gs2/dhd.ko' failed (Function not implemented) Nov 14 19:54:24 I have a question, for connection android json, insert into mysql Nov 14 19:55:08 When can see url for cuestion? Nov 14 19:56:20 snooplsm: in c, following the kernel module guidelines. Beyond that it gets extremely non-trivial. There are various linux module guides out there, mostly you'll be doing a lot of kernel code reading. I don't recommend starting out on android to do so. Nov 14 19:58:03 dragorn: ok, trying to fix my driver for broadcom bcm4330 chipset to enable monitor mode Nov 14 20:03:20 is the bcm4330 chipset code even available ? Nov 14 20:03:47 well, it is being reversed engineered here Nov 14 20:03:48 https://code.google.com/p/bcmon/ Nov 14 20:03:54 only works on gs1,gs2,nexus one, nexus 7 Nov 14 20:04:00 ii want it to work on galaxy nexus Nov 14 20:04:09 oh i just realized i'm in the wrong room Nov 14 20:07:49 extremely nontrivial Nov 14 20:07:53 and yes Nov 14 20:14:43 i'm trying to check out aosp, so i ran repo sync.. but my connection died.. how do i resume where i left off? Nov 14 20:16:02 just repo sync again Nov 14 20:16:39 does it redownload everything? Nov 14 20:16:59 no Nov 14 20:18:49 wow, i wonder what this will bring http://www.theverge.com/2013/11/14/5100928/ibm-opens-watson-up-to-developers-with-new-api Nov 14 20:23:31 I am trying to create an intent that takes a photo and returns it to my app. After the photo is taken, I try to get the uri of the image by doing: Uri selectedImage = imageReturnedIntent.getData(); but it is always null Nov 14 20:23:45 does anyone know what i'm doing wrong or have any ideas? Nov 14 20:28:12 any Googlers in the house? ( romainguy, canadiancow ) - 4.4 KRT16O image for the Nexus 7 Wi-Fi (nakasi) on the Nexus images download page gives a 404 ( https://dl.google.com/dl/android/aosp/nakasi-krt16o-factory-db4a1a8a.tgz ) Nov 14 20:29:12 oh, factory images are available now? damnit, I should have just gotten that and fastboot flashed it Nov 14 20:29:40 god, I hate my galaxy nexus, damn thing crashes way too often Nov 14 20:29:54 I just want deb, nexus 7 LTE Nov 14 20:30:04 yeah I just downloaded for flo and mantaray, to bad nakasi is down Nov 14 20:30:13 Chainfire: but no deb :( Nov 14 20:30:16 coincidentally that was the one device I had OTA upgraded already, hurrah Nov 14 20:30:23 stupid qualcomm and LTE radio stuff Nov 14 20:31:22 but yeah, I'm giving in and ordering the moto x Nov 14 20:31:39 hello. somehow I do not like most of the terminal emulators for android I could find. I would like to write my own one. I have a *little* knowledge about how to do this under linux with forkpty, etc., but I would guess that under android, there is some Java API for this, is it? Nov 14 20:31:47 * pfn twiddles thumbs for aosp to update so he can hax0r the email app again Nov 14 20:32:14 schoppenhauer, look at existing terminal emulator code and figure it out from there Nov 14 20:32:28 and for that matter, why do you even want a terminal emulator on the device itself... Nov 14 20:32:29 mostly useless Nov 14 20:33:07 pfn: Of course, I would use it for ssh (mosh, to be accurate). Nov 14 20:33:19 for ssh, just use connectbot Nov 14 20:33:24 if you're not happy with it, submit patches Nov 14 20:33:24 pfn: anyway, I'd look at code if nobody can tell me anything better Nov 14 20:33:52 pfn: I also want a terminal for my android device to use some commandline applications. Nov 14 20:34:34 schoppenhauer, connectbot Nov 14 20:35:02 pfn: connectbot is a good ssh client for port forwardings, but it does not support mosh. and the terminal emulator is awful. Nov 14 20:35:11 the terminal emulator works fine Nov 14 20:35:15 if you want mosh support, add it Nov 14 20:35:17 not for me. Nov 14 20:35:23 what precisely is awful Nov 14 20:35:30 if you don't like it, fix it Nov 14 20:35:52 pfn: let's agree to disagree Nov 14 20:35:59 does anybody else know more? Nov 14 20:35:59 * pfn shrugs Nov 14 20:36:06 you keep complaining, but aren't willing to work Nov 14 20:36:23 you asked me about the problems I have. Nov 14 20:36:27 you want a good example of how it's done, you have plenty Nov 14 20:36:29 android terminal emulator Nov 14 20:36:31 terminal ide Nov 14 20:36:32 connectbot Nov 14 20:36:34 take your pick Nov 14 20:36:56 gah ... why did I even ask here. I should have known that this happens. Nov 14 20:36:59 well, bye. Nov 14 20:37:04 stupid questions deserve asshole answers Nov 14 20:41:23 <^cheeky> i read it here or perhaps in a devbyte i can't remember but, is it bad practice to have a list view with each item being a horizontal scrollable llistview is this bad to implement Nov 14 20:42:33 how to connection json insert into mysql ? Nov 14 20:42:41 why android studio ? Nov 14 20:43:28 connection json insert into mysql? ... what Nov 14 20:44:15 I have an application that needs to do an insert into a remote mysql database Nov 14 20:44:27 create a web service Nov 14 20:44:39 as I have seen done with json Nov 14 20:44:47 Lomba: http://www.ibm.com/developerworks/webservices/library/ws-restful/ Nov 14 20:44:51 I am with the new IDE, android studio Nov 14 20:46:24 how to apply from android studio? Nov 14 20:50:32 anyone with experience in rx-java ? Nov 14 20:55:14 Why does my code cause so many GC_CONCURRENT freed? http://pastie.org/private/wdtu2adcqmyspj1qktm0ya Nov 14 20:57:52 quit allocating so many objects Nov 14 20:58:23 hello in android studio i have another module with some classes but when i send it to smartphone Nov 14 20:58:27 i get class not found Nov 14 20:58:45 pdn: Where? the bytes array? Nov 14 20:59:21 Baluse: I bet you need to mess with your build.gradle Nov 14 21:00:19 thats what i did but now doesnt work Nov 14 21:00:24 i used to work Nov 14 21:00:40 i have added compile project(':DataModel') Nov 14 21:02:25 Baluse you should also check your maximum file size, I think it's 1 byte too large Nov 14 21:02:35 you should allocate as 0x7FFFFFFF Nov 14 21:05:44 Good Evening Nov 14 21:05:56 where can i check this? Nov 14 21:06:01 I? Nov 14 21:06:24 private static final long MAX_FILESIZE = 2147483648l; // Maximum limit of file size on android system (in bytes) Nov 14 21:06:26 ==> Nov 14 21:06:36 private static final long MAX_FILESIZE = 0x7FFFFFFF; // Maximum limit of file size on android system (in bytes) Nov 14 21:07:55 Huuf: Tried it, still the same.. also changed the buffer_size to 64 instead. Nov 14 21:09:30 The value you gave is an negative int because yours is a negative number in an signed int. Nov 14 21:09:32 any idea how to include a project Nov 14 21:09:36 Your issue might be related to the sizeOf Nov 14 21:09:55 Because I don't know how it determines the size, you should cache the results. Nov 14 21:10:56 You should cache the size Nov 14 21:11:49 http://pastie.org/private/wdtu2adcqmyspj1qktm0ya#33,42,45 First marked line, use cached result, second marked line reset, and thirth marked line add. Nov 14 21:12:26 Also, on the thirth marked line, do BUFFER_SIZE Nov 14 21:12:29 not buffer.length Nov 14 21:14:25 Bluse what do yoe mean Nov 14 21:14:30 Huuf: Thanks, GC_CONCURRENT problem is fixed. As you said, the problem was SizeOf() call Nov 14 21:15:17 Bluse Meinten Sie: Was für eine IDEE hast du? What do you have for an IDE? Nov 14 21:16:15 Android Studio Nov 14 21:17:02 I have two "projects" one with simple java classes.After updating android studio when i run the app i get class not found from logcat Nov 14 21:17:03 Baluse okay. Do you have an Error? Grandle etc.? Nov 14 21:17:10 it compiles fine Nov 14 21:17:24 and main project executes fine Nov 14 21:17:39 it worked but now it stopped. Graddle files are ok like they were Nov 14 21:17:52 What it´s your version from Android Studio? j have 0.3.4 Nov 14 21:18:10 0.3.5 Nov 14 21:19:36 okay i have 0.3.5 too Nov 14 21:21:20 Baluse mybe this can help you http://stackoverflow.com/questions/16610296/android-unable-to-instantiate-activity-class-not-found-exception-after-upgra Nov 14 21:21:36 i mean maybe Nov 14 21:24:55 Nimooli you're welcome Nov 14 21:25:33 He Huuf do you now the ArrayAdapter Nov 14 21:26:30 hi i am using camera.open(); but app crashes saying unable to connect to camera Nov 14 21:26:33 please help Nov 14 21:26:36 Nope, but I could probably figure out what is wrong if I check Nov 14 21:27:30 I have a Querstion about an ArrayAdapter. I have 2 Doubles and all 5 sec was updatet this Adapter when the Double ist higher than should light the number Nov 14 21:27:58 I have a Question about an ArrayAdapter. Nov 14 21:28:39 I hope you anderstand this. My English is not so good. Nov 14 21:29:42 You can pm me in german Nov 14 21:30:22 hi camera.open() crashes the app Nov 14 21:30:29 saying cannot connect to camera Nov 14 21:30:32 please help Nov 14 21:31:02 is it in an emulator Nov 14 21:33:10 vetsin : I tried on a device Nov 14 21:33:19 sorry i pinged out if i missed something ? Nov 14 21:33:20 what device Nov 14 21:34:19 Also, people will need the stack trace to help. So pastie that, also ensure you have the right package imported and the right permissions added Nov 14 21:35:28 vetsin : freenode pinging me out Nov 14 21:35:31 sorry for that Nov 14 21:35:39 I'm just getting started with development, and tend to use multiple machines, anyone have any good methods for keeping eclipse synced across multiple machines? Nov 14 21:35:42 i am using version 4.3 Nov 14 21:36:11 Not eclipse android Studio ^^ Nov 14 21:36:28 Piped{Input/Output}Stream is pretty cool; wonder why i dont see it used often Nov 14 21:37:10 hi vetsin can you help me ? Nov 14 21:37:42 Also, people will need the stack trace to help. So pastie that, also ensure you have the right package imported and the right permissions added Nov 14 21:37:42 chinu: read this- http://developer.android.com/reference/android/hardware/Camera.html Nov 14 21:37:53 the camera is a bit fickle and has to be initialised and locked in a certain order Nov 14 21:41:53 vetsin , bankai : http://pastie.org/8481016 Nov 14 21:42:01 bankai_ http://pastie.org/8481016 Nov 14 21:43:31 hi Nov 14 21:46:12 Hello again. Any idea how to include classes from another module at android studio ? Nov 14 21:46:33 compile project(':DataModel') and include DataModel dont do anything now.. Although they did at past Nov 14 21:48:02 chinu: no one else is using it? it could be that you never released it for yourself Nov 14 21:48:20 since you don't put the open into a try catch and don't release on finally Nov 14 21:49:56 actually thats prob not even the spot you want it, just follow the docs, says that exception is due to it being in use Nov 14 21:50:20 which Exception should i use ? Nov 14 21:50:27 IOException ? Nov 14 21:53:14 vetsin ? Nov 14 21:56:32 Is there a good way to provide the user with a way to jump to the top of a long ListView? Nov 14 21:58:00 if it's that long that you're asking that question one could argue that you might need to re-evaluate the content Nov 14 21:58:36 I implemented a show more button, as the search query could return many results. Nov 14 21:58:50 So after several show mores, the user may want to jump back to the top. Nov 14 22:03:30 g00s, because for the most part, it's useless except for IPC, and IPC is a rarely used pattern in android Nov 14 22:07:57 bad class file magic (cafebabe) or version (0033.0000) Nov 14 22:16:30 Hello, for my app, I performed all database queries using a content provider. Is that an over kill? Would it have been a better design to have limited its use to populating adapters, and accessing the database through my model classes? Nov 14 22:17:33 How do you do it? Nov 14 22:26:32 sulaiman i use CP for queries often, since the loaders help there - and then just do direct insert / updates with ContentResolver.notifyChange() Nov 14 22:31:53 does one need a new recovery for KK ? or does openrecovery-twrp-2.6.3.0-deb.img work fine? Nov 14 22:33:07 wrong channel Nov 14 22:33:15 sorry Nov 14 22:40:41 Does anyone have any idea why an intent in a service's onStartCommand would be null? Nov 14 22:54:44 hello I am trying to learn Intents in Android.. I want to to get two different responses...if (Activity.RESULT_OK) to get the number 42 and if ( Activity.RESULT_CANCELED) to get the String "Test2" Nov 14 22:55:00 I dont know why i am getting only the response if (RESULT_OK) Nov 14 22:55:16 here is my code: http://pastebin.com/SghmM4Ry Nov 14 22:58:00 Because 42 is the answer to the universe Nov 14 22:58:14 The Answer to The Ultimate Question of Life, the Universe, and Everything Nov 14 22:58:30 As a code practice Nov 14 22:58:33 if(resultCode == Activity.RESULT_OK && requestCode == ID) Nov 14 22:58:34 ==> Nov 14 22:58:41 if((resultCode == Activity.RESULT_OK) && (requestCode == ID)) Nov 14 22:59:05 Might be that it is doing Activity.RESULT_OK && requestCode Nov 14 22:59:13 and then resultCode == Nov 14 22:59:28 hello all, I am looking to find out how one would go about getting a question addressed: specifically, WE would like to redistribute android SDK with our linux distribution. I am part of 'blackarch' and archlinux expansion that focuses specifically on penetration testing and security. Nov 14 22:59:46 who would be the person to contact to ask permission to redistribute android-sdk? Nov 14 23:00:13 no one in here Nov 14 23:00:19 Huuf: but if he does Activity.RESULT_OK && requestCode then it shouldn work if the extras is NULL Nov 14 23:00:31 Huuf: then he must do the second IF Nov 14 23:00:49 bankai_, what about #android? Nov 14 23:00:58 I don't know about the code, I am about to head out, need to read the question specifically Nov 14 23:01:13 I just saw this irc channel listed @ source.android.com/source/community/index.html Nov 14 23:01:16 But you should do brackets as default. Nov 14 23:01:24 *shrugs* it's all apache and GPL, you'd have to read the licence and ask a lawyer Nov 14 23:03:33 Has anyone had any issues with uploading their apk to the play store? Last night it was working fine but with only a couple minor source code changes it is not complaining about me uploading a dbuggable api. I have signed it and run it through pro guard Nov 14 23:03:55 debuggable apk* Nov 14 23:05:08 Huuf: yeah I will do them right now..but my main problem is about to give to different messages if Result_OK or Result_Canceled Nov 14 23:05:56 could anyone point me in the right direction for changing network mode? Nov 14 23:09:41 can i just write to the dettings db? Nov 14 23:13:55 anyone run into this yet: art/runtime/mirror/art_method.cc:176] Failed to find Dex offset for PC offset 0xfffdf814(PC 0x62d40f29, code=0x62d61715) in void android.view.ViewGroup.layout(int, int, int, int) Nov 14 23:17:04 how did you produce this, dcow? Nov 14 23:17:32 I'm using ART (obviously) and I'm working on a custom view Nov 14 23:17:54 I think it might be what happens when you have an array out of bounds Nov 14 23:18:07 but the PC stuff doesn't make sense Nov 14 23:18:28 (I wouldn't expect an array index out of bounds to cause PC problems) Nov 14 23:19:21 i was wondering if your array was within bounds as well... Nov 14 23:19:35 hmm. Nov 14 23:20:17 oh well if that looks like an AOOB to you then I'll double check that Nov 14 23:21:38 actually, I think I'm getting some weird recursive shit with onLayout Nov 14 23:29:15 Can a service be both bound to and started? Nov 14 23:29:28 greymalkin: yes Nov 14 23:29:30 startService and bindService that is. Nov 14 23:29:37 greymalkin: yes, but it's the same instance Nov 14 23:29:45 Hmm... I'm submitting the intent, but the service isn't started. Nov 14 23:29:53 evanc: That's what I'm counting on. Nov 14 23:30:52 Second question: does stopSelf kill the service if there are clients bound? Nov 14 23:31:30 or does it just remove its stickiness allowing it to die when the last client unbinds. Nov 14 23:32:43 pretty sure it's the second Nov 14 23:33:50 *facepalm* forgot to declare the service in the manifest... that's probably why it's not starting. Nov 14 23:34:29 greymalkin: you should see a note in your logcat saying such Nov 14 23:34:53 @ekylypse the error I posted is an ART stackoverflow error Nov 14 23:34:58 The general logcat is so cluttered that I've put selectors around it, so I was missing those. Nov 14 23:35:01 resulting from infinite recursion in my case Nov 14 23:50:31 greymalkin, the simple answer is to filter messages for you own app only Nov 14 23:54:16 @Qualifier @Retention(RUNTIME) <-- can someone explain this to me? Nov 14 23:57:28 Gah! How does ResultReceiver managed to be subclassable and parcelable? Nov 15 00:03:01 pfn: Can't filter by application on the command line. Nov 15 00:03:59 I'd recommend pidcat Nov 15 00:04:02 greymalkin: you cant? Nov 15 00:04:15 I haven't found a way yet. Nov 15 00:04:19 (For the colored output and being able to filter by PID) Nov 15 00:04:22 greymalkin: get the app's pid and grep based on that Nov 15 00:04:34 you guys need to learn grep Nov 15 00:04:36 You can filter by all kinds of stuff. Get pidcat, it's awesome! Nov 15 00:04:39 The pid should be changing every time it starts. Nov 15 00:04:45 Not terribly useful in that case. Nov 15 00:04:58 https://github.com/JakeWharton/pidcat Nov 15 00:05:00 greymalkin ResultReceiver is kinda special Nov 15 00:05:01 Filter by package name then Nov 15 00:05:20 greymalkin: pidcat solves exactly that Nov 15 00:14:22 g00s_: Yeah, I'm starting to realize that... is it specifically called out in the parceling code? Nov 15 00:15:02 greymalkin its not as useful as you would think; iosched used to use it back in 2010 to return a result back from an intentService - that code was removed though; Nov 15 00:15:37 if the original context goes away, a new one can not re-attach to the ResultReceiver Nov 15 00:15:45 so the connection is 'brokne' Nov 15 00:15:51 uh, broken Nov 15 00:15:53 greymalkin, there's pidcat Nov 15 00:16:01 I'm just trying to send anonymous packets of work to be done by a service. Preferably as Runnables -- so it's going the other way -- not worried about the original context disappearing. Nov 15 00:16:22 pfn: Thanks, I'll check it out. Nov 15 00:16:35 greymalkin meh, register a Handler then Nov 15 00:16:48 have the service post runnables to the Handler / listener Nov 15 00:17:41 The task is coming from an activity, and going to the service. Nov 15 00:17:56 you have to make sure you're not going to leak stuff :) Nov 15 00:18:01 The task should outlive the Activity's life cycle. Nov 15 00:18:04 I wanna play with my new future/promise stuff some more Nov 15 00:18:06 well, you can look at AsyncQueryService in calendar Nov 15 00:18:29 post commands to a queue, spin up the intent service Nov 15 00:18:38 so many ways to slice this Nov 15 00:19:14 intent service -- yes, what I'm trying to slice is: how do I send a runnable to the intent service Nov 15 00:19:35 see AsyncQueryService; replace The query objects with runnables Nov 15 00:19:41 greymalkin, you don't, you send an intent Nov 15 00:19:42 and dont leak Nov 15 00:20:04 * LuisLeite good evening Nov 15 00:20:04 Yeah, that's what I'm trying to avoid. It spatters connected code all over the application. Nov 15 00:20:29 dainne recommended not using ResultReceiver for IntentService Nov 15 00:21:01 you can find that discussion on groups between her and commonsware guy Nov 15 00:21:46 I'm not trying to use a ResultReceiver -- I'm just trying to figure out how it gets subclasses of itself into a Parcelable. Nov 15 00:22:39 there is magic there Nov 15 00:22:42 :) Nov 15 00:22:52 Hey g00s_ Nov 15 00:23:11 Think I remember you from the last time I was on here, must be a couple of months Nov 15 00:23:28 maybe, i think i was here a few months ago :P Nov 15 00:23:40 How does an Animation subclass apply a transformation to a view Nov 15 00:23:43 Yeah I think I remember you :) Nov 15 00:23:50 oh oh Nov 15 00:23:54 I was asking for help with my custom list view adapter I think Nov 15 00:23:58 does Animation.applyTransformation do that, while you modify the translation in you code? Nov 15 00:24:31 Got my app released Sept 11th, 124 downloads, 9 reviews, average review 4.89 Nov 15 00:24:50 :) Nov 15 00:25:16 markyosullivan aweomse :) Nov 15 00:25:20 uh Nov 15 00:25:29 greymalkin: why do you even need a service? Nov 15 00:25:38 mine on 9 oct, 873 download rating 4.79 :D Nov 15 00:26:05 am i crazy, or if i pass a byte[] to ByteArrayInputStream, the life time of that byte[] is now tied to the stream obj right? Nov 15 00:26:09 gdrc, markyosullivan, I'ma go rate them one star! Nov 15 00:26:26 D: Nov 15 00:26:28 Wavesonics: yes Nov 15 00:26:35 but you can still fuck with the data inside it Nov 15 00:26:43 I don't thing BAIS makes a copy Nov 15 00:27:03 markyosullivan: never forget Nov 15 00:27:16 ok, that was inappropriate. Want to give a link to your app? Nov 15 00:27:19 I might check it out :) Nov 15 00:27:46 Only available in the UK but wanting to release it worldwide, that's why I'm back here because I don't know how to format the currency to the current users locale Nov 15 00:27:52 aried3r: do you remember me? :) Nov 15 00:28:22 Could be! Not sure though. Many faces in here. Nov 15 00:28:55 Been getting a lot of people messaging me on Google+ to release it worldwide, that's why I want to get it done. Been busy with Uni work / Part time work recently but thought I'd do some work on it tonight (it's 12:28 am atm lol) Nov 15 00:29:14 https://play.google.com/store/apps/details?id=com.studentbudget&hl=en_GB Nov 15 00:29:15 My app Nov 15 00:29:21 Need to change one of the screen shots Nov 15 00:29:46 originally had pictures showing a Nexus 4 and then the screen shot inside it, but thought it'd be better letting people see the screen a lot better Nov 15 00:35:02 It's went really quiet Nov 15 00:38:44 yeeep Nov 15 00:39:12 i'm interested in theming the actionbar + drop down menu, is there an easy way to do this ? Nov 15 00:39:21 few things ive tried dont seem to work Nov 15 00:39:25 but i may just be messing them up Nov 15 00:42:08 has anyone got a reliable/sane way of doing it ? Nov 15 00:42:33 Some devoxx android talks https://www.dropbox.com/home/Devoxx%202013 Nov 15 00:44:37 I doubt /home/* does anything useful? Nov 15 00:52:35 Can someone explain to me how to use the getSymbol() method for currency? Nov 15 00:56:58 one of the things that always vexed me, looking back at the old Bluetooth chat example, is how / why they dont have a read / write thread; they only have a read thread. basically, writes happen on the UI thread Nov 15 01:02:22 markyosullivan: without sounding condesending Nov 15 01:02:32 it returns the symbol like '$' for USD Nov 15 01:02:34 for a certain currency Nov 15 01:02:41 It's probably something simple yeah? Nov 15 01:03:04 yeah. Nov 15 01:03:16 it just returns the local currency symbol Nov 15 01:03:16 I need to get the Locale first, return the locale when using the currency.getSymbol(locale); method? Nov 15 01:03:24 you .. could Nov 15 01:03:31 getSymbol(Locale.getDefault()); Nov 15 01:03:32 Yeah that's what I need Nov 15 01:03:46 however, one thing messed up in kitkat Nov 15 01:03:52 is there there is no english(Australian) Nov 15 01:03:59 or english (New zealand) Nov 15 01:04:08 UK is the closest to AU Nov 15 01:04:16 so.. i still have some odd values appearing in some apps Nov 15 01:04:21 Does Locale.getDefault not just get the default currency for me? Nov 15 01:04:50 its the one set in the preferences Nov 15 01:04:58 So if I wanted to have Australian and NZ I'll have to use Locale.Australia? Nov 15 01:05:14 Preferences for the users phone? Nov 15 01:05:15 new Locale("en", "AU"). Nov 15 01:05:16 i reckon Nov 15 01:05:35 take note, that does "force" it Nov 15 01:05:45 When I first made my app, I just added a "£" in front of the values :( Nov 15 01:05:51 but one thing ive realised is that when i force it.. sometimes it makes things like this Nov 15 01:05:53 $AUD Nov 15 01:05:56 even though i'm in AU Nov 15 01:05:58 Why didn't I plan ahead and think about a worldwide release Nov 15 01:06:10 markyosullivan, Currency.getInstance(localeOfTheMoney).getSymbol(localeOfTheCurrentlanguage) Nov 15 01:06:12 although i dont know why some developers do that Nov 15 01:06:26 or was it AUD$ Nov 15 01:06:51 alex_PP_: I haven't seen that in the documentation? Nov 15 01:07:09 markyosullivan: my knowledge is only from messing around, not from actually writing something in use Nov 15 01:07:12 wmealing: I've seen it where some countries actually have the currency sign on the right sign Nov 15 01:07:34 alex_PP_ may know better Nov 15 01:07:35 here? https://developer.android.com/reference/java/util/Currency.html Nov 15 01:07:51 markyosullivan, how do you localize it? easy, each country string has the appropriate format Nov 15 01:08:49 markyosullivan, in your strings.xml, just put £%s Nov 15 01:08:49 I thought the Locale gets the information about what country the user is in pfn? Nov 15 01:09:09 or https://developer.android.com/reference/java/text/NumberFormat.html#getCurrencyInstance(java.util.Locale) Nov 15 01:09:18 markyosullivan, sure, but it doesn't necessarily have a currency formatter Nov 15 01:09:31 alex_PP_, that doesn't have $ and whatnot, does it? Nov 15 01:09:47 i forget Nov 15 01:10:18 Yeah that's why I'm using the currency.getSymbol(locale) method, that gets the currency symbol, I already have the values formatted to 2 decimal places so I just add the symbol to the value? Nov 15 01:10:37 Though maybe that wont work Nov 15 01:12:12 what have you tried so far markyosullivan ? Nov 15 01:13:55 Haven't tried much alex_PP_ just started looking at the currency documentation tonight, then I tried using some of the methods and couldn't get it produced in the toast that I'm using to test it Nov 15 01:14:27 Currency.getInstance(Locale.getDefault()) should return you a currency object for the currency used in the current locale Nov 15 01:14:34 So I tried Currency.getLocale(locale); then using the value of locale, userCurrency.getSymbol(locale); Nov 15 01:14:58 userCurrency being a instance of Currency Nov 15 01:15:09 getSymbol() on that object should return the symbol Nov 15 01:15:46 getSymbol(Locale.FRENCH) should return whatever symbol they use in france for your default locale's currency Nov 15 01:15:52 yeah then I tried Toast.makeText(this, userCurrency.getSymbol(locale), 0).show(); Nov 15 01:15:55 i hope that's a little clearer Nov 15 01:16:27 Wait, how am I supposed to print the Currency if it isn't a text or string? Nov 15 01:16:29 and what output are you getting? Nov 15 01:16:46 It doesn't work :D Nov 15 01:16:49 String.valueOf(anObject) Nov 15 01:16:55 or anObject + "" Nov 15 01:17:20 I tried all that code at the beginning of a class, so haven't created a method for all these yet Nov 15 01:17:23 what does it do? nothing? Nov 15 01:17:32 Can't load up the activity containing it Nov 15 01:18:15 didn't look at the logcat, just tried commenting out the code and it was the Currency.getLocale(locale); causing it to crash Nov 15 01:19:52 ok, can we see the stacktrace? Nov 15 01:20:08 the what? Nov 15 01:22:09 the big list you get when something crashes Nov 15 01:22:53 lol Nov 15 01:22:59 Is that the stacktrace? Nov 15 01:23:09 I thought it was just referred to as the logcat Nov 15 01:23:17 :D Nov 15 01:24:21 Caused by: java.lang.NullPointerException at java.util.Currency.getInstance(Currency.java:72) at com.studentbudget.Income.getCurrency(Income.java:593) at com.studentbudget.Income.onCreate(Income.java:45) Nov 15 01:24:39 Line 593 = Currency.getInstance(locale); Nov 15 01:24:47 looks the locale you're passing to getInstance is null Nov 15 01:24:59 also, it's polite to use a pastebin for this stuff Nov 15 01:25:01 ;) Nov 15 01:25:06 Sorry alex_PP_ Nov 15 01:26:45 I thought the locale wouldn't be null because I'm using Currency.getInstance(locale); Nov 15 01:26:55 and that returned a Locale which was set as locale Nov 15 01:27:13 can we see the java? Nov 15 01:29:07 http://pastebin.com/iR88MxTq Nov 15 01:29:17 That's the only code I'm using for this part Nov 15 01:30:05 What is locale? Locale.getDefault()? Nov 15 01:31:08 I haven't done anything with locale Nov 15 01:31:16 ...probably explains why it isn't working Nov 15 01:31:26 http://developer.android.com/reference/java/util/Currency.html read the API Nov 15 01:32:06 I have bankai_ Nov 15 01:32:14 i'm not sure you have Nov 15 01:32:14 i knocked up a quick example Nov 15 01:32:15 https://gist.github.com/alex-richards/7477646 Nov 15 01:32:39 I thought getInstance(Locale locale) would return the locale of the user? Nov 15 01:32:52 Thank you alex_PP_ Nov 15 01:32:58 Locale.getDefault returns the user's locale Nov 15 01:33:25 Currecncy.getInstance(Locale.getDefault()) returns the users default currency Nov 15 01:33:54 ah, so I should really be using Locale.getDefault() instead? Nov 15 01:33:55 so... what's new in kitkat that's worth using from a user perspective, heh Nov 15 01:34:04 Unless I want to give users the chance to change their currency? Nov 15 01:34:12 i wouldn't rely on that locale too much though -- just because a person set a specific locale doesn't mean they are in the country that it's set Nov 15 01:34:16 alex_PP_: what's that second file used for? Nov 15 01:34:24 the's the result Nov 15 01:34:45 *that's Nov 15 01:35:12 Why's the results like that? Nov 15 01:35:48 like what? Nov 15 01:36:11 that's the printlns you can see in the java Nov 15 01:36:13 bankai_: But usually the user will want to use the currency of the country that they set. I wouldn't want the currency changing if they travel to a different country for a weekend break Nov 15 01:36:48 i have my phone set to .jp, i live in AU -- you need to make allowances for that kind of setup Nov 15 01:36:54 mine's set to en_GB, but i live in kh_KH Nov 15 01:37:09 just to be awkward Nov 15 01:37:41 kh_KM sorry Nov 15 01:37:47 Yeah but why does it go en_GB £, en_GB $, ... fr_FR GDP, fr_FR €... etc Nov 15 01:37:49 it's not the same Nov 15 01:37:57 that's the whole point Nov 15 01:38:09 a us dollar to an american is $ Nov 15 01:38:18 greetings guys, i need some help with a layout - here is a shot from the emulator at present Nov 15 01:38:19 but a us dollar to an australian is USD Nov 15 01:38:20 http://screencast.com/t/lvNfgBxQ7 Nov 15 01:38:22 alex_PP_: aww what locale is kh_KM ? Nov 15 01:38:27 and $ is an aussue dollar Nov 15 01:38:32 each line is a list view item Nov 15 01:38:37 Hi, does anyone have any advice on how to fix a "You uploaded a debuggable APK" error on play? I haven't had issues with this and haven't changed the way I build my app but it worked yesterday and it doesn't today. Any ideas? Nov 15 01:38:46 id like to have the two images (and the scores) line up Nov 15 01:38:53 kh is cambodia Nov 15 01:39:03 Ah, that makes sense alex_PP_ Nov 15 01:39:52 How is a users locale set and where can you change it? Nov 15 01:39:56 you probably want the user to choose a currency (and default to something meaningful) Nov 15 01:40:04 in the language settings of the phone Nov 15 01:40:38 I see Nov 15 01:40:48 Thanks for explaining that, I appreciate it Nov 15 01:40:53 no problem Nov 15 01:42:21 If I let the user choose a currency, I'd have to make a preferences / settings activity. My app is aimed at University students and the majority of students (I know not all) stay in nearby regions to where they live Nov 15 01:42:57 For example, USA students travel to different states for Uni, UK students would travel to different parts of the UK but should stay in the UK and so the currency should stay the same Nov 15 01:43:41 it's up to you Nov 15 01:43:47 lots of students from asia travel to the US to go to school Nov 15 01:43:48 I can see where there can be problems, as anyone from South America, Asia, moving to UK/ USA / European universities will have their currency in the currency where they live Nov 15 01:43:49 and eastern europe Nov 15 01:43:55 * pfn shrugs Nov 15 01:43:57 but anyway Nov 15 01:44:10 (my uni was full of Japanese students, and i passed up a exchange program) Nov 15 01:44:36 Is there any way to use GPS to change the locale? Nov 15 01:45:04 could be done Nov 15 01:45:09 but dont Nov 15 01:45:25 Algorithm: did you get your answer Nov 15 01:45:39 to be honest, the symbol doesn't matter all that mcuh Nov 15 01:46:01 i could just ignore it and have different quantities Nov 15 01:46:14 I know it doesn't matter because they could just enter in the values and it'll work, but it wont be accurate for foreign students Nov 15 01:46:28 like it wont have the right currency sign, which would annoy me Nov 15 01:46:58 Is there no methods to use GPS to change the locale? Or would it be too complex? Nov 15 01:47:02 and it took me 2 years to stop mentally converting everything here to GBP before buying Nov 15 01:47:10 there's no easy way Nov 15 01:47:15 You from UK? :) Nov 15 01:47:28 you need to get the location and then geocode it to a country Nov 15 01:47:29 yeah Nov 15 01:47:32 york Nov 15 01:47:40 Awesome, Northern Ireland myself Nov 15 01:47:53 It's 1:47 am and I have lectures tomorrow at 9am lol Nov 15 01:48:05 gah, what is this extra space in the div view Nov 15 01:48:10 Where you living atm? Nov 15 01:48:10 bah, i got 3 hours last night Nov 15 01:48:16 wait 'till you have kids Nov 15 01:48:30 cambodia Nov 15 01:48:37 alex_PP_: I don't plan to any time soon, only 19 haha Nov 15 01:48:47 Auz? Nov 15 01:48:51 wait Nov 15 01:49:05 that's embarassing Nov 15 01:49:08 lol Nov 15 01:49:26 Combodia is a pretty random country Nov 15 01:50:14 wmealing: I think I figured it out. I added android:debuggable="false" to the manifest. For whatever reason I didn't have that before and it worked fine. Nov 15 01:50:22 ok Nov 15 01:50:26 meh, it's a pretty nice place to live Nov 15 01:50:37 Algorithm: glad its sorted, :) Nov 15 01:50:44 Anyway, I'm away here. Many thanks for your help. Will be looking to get that code working sometime soon :) Nov 15 01:50:54 ok Nov 15 01:50:57 good luck Nov 15 01:51:36 wmealing: me too, thanks! Do you have any ideas why that would be? Should I create two manifests, one for development and one for deployment? Nov 15 01:52:16 Algorithm that might be handled automatically if you use gradle :) Nov 15 01:52:27 assembleDebug / assembleRelease Nov 15 01:52:30 debugable should default to false.. Nov 15 01:52:42 for assembleDebug its probably true Nov 15 01:52:49 ok Nov 15 01:52:54 i dont know much about grade. Nov 15 01:53:09 i mean, to separate what the build system is doing, and what market place understand as defaults Nov 15 01:53:17 or package manager Nov 15 01:53:54 g00s: I currently have my release build type using pro guard with no mention of debug or release. I suppose I should add that to it. Thanks for the help Nov 15 01:57:59 it would have been cool if ContentResolver.registerContentObserver(Uri uri, …) could have taken something like a uri pattern also Nov 15 01:58:30 x/*/y/*/z Nov 15 02:01:58 g00s_: I added assembleRelease to my release buildType and removed the line from the manifest. Is it possible that when I build a signed apk it isn't using my release build type? Nov 15 02:02:51 hmm Nov 15 02:03:25 i didn't think you need to ass assembleRelease to the release buildType :| Nov 15 02:03:29 *add Nov 15 02:04:00 i really haven't done much with the *release side of gradle stuff yet; including proguard Nov 15 02:04:10 i'm just in the dev phase, using debug Nov 15 02:04:50 ah, okay. hmm. I also recently started getting an alert giving information about how to "Configure your signing configurations as described in the user guide". It says to run "gradle assembleRelease". Maybe there's something wrong with the way I currently have the two linked together Nov 15 02:05:09 gotcha, that makes sense. I am as well. I just setup an alpha channel so I could have a few friends test Nov 15 02:32:24 in android studio, what would i use to make a build specific to debugging on MY machine, i.e. my app has a url as a const that i need to change for testing - use a build variant, or product flavor, or ??? Nov 15 02:32:55 other develoers will have their own url for testing as well Nov 15 02:33:56 one major issue that I have already had happen is a release build should NEVER be able to be shipped with anything but the proper url Nov 15 02:36:46 my usual answer is to create a branch Nov 15 02:40:59 meh, that wont really work, the branches would immediately be out of sync - that was my first thought, and i dropped it immediately Nov 15 02:49:49 i ( wrongly probably ) set up a var that differentiates TEST from PROD -- sets up URLs and API keys **** ENDING LOGGING AT Fri Nov 15 02:59:58 2013