**** BEGIN LOGGING AT Fri Feb 08 02:59:59 2013 Feb 08 03:01:35 the worse part is that we shipped a couple of games with that on Feb 08 03:01:41 at least these guys care Feb 08 03:02:08 yikes Feb 08 03:04:43 still nothing. I feel so close to the key, though Feb 08 03:31:00 Is it possible that make Gallery item left aligned? Feb 08 03:32:11 probably Feb 08 03:46:00 hello, this is the code for ss in android 4.0 http://paste.ubuntu.com/1623176/ i tried inserting it in gb but when i run it it fails at 157 Feb 08 03:53:28 got a stack trace? Feb 08 03:53:35 stack trace or gtfo Feb 08 03:53:38 :) Feb 08 03:54:08 stack trace? Feb 08 03:54:12 can't you read the code? Feb 08 03:54:23 it tries to open a file but fopen returns something > 0 Feb 08 03:54:27 what stack trace do you want? Feb 08 03:54:32 log cat Feb 08 03:54:35 there is no stack trace Feb 08 03:54:52 um, there's no stack trace for C code Feb 08 03:55:11 hi guys, I'm busy porting my app to 2.3.3 - I am now getting "02-08 13:53:08.948: E/AndroidRuntime(336): Caused by: java.lang.RuntimeException: Can't create handler inside thread that has not called Looper.prepare() Feb 08 03:55:14 * bankai_ obviously didn't even look at the code :P Feb 08 03:55:18 erm Feb 08 03:55:19 lol Feb 08 03:55:21 XD Feb 08 03:55:31 Is it a case of having to rewrite all my threading in a different manner? Feb 08 03:55:35 it fails due to permission issues Feb 08 03:55:38 In that case I might not persist with porting Feb 08 03:56:18 w32stuxnet: erm, porting forward or backward? Feb 08 03:59:13 since fopen fails with permission denied, i suspect i don't have write_external_storage I/System.out( 110): error: writing file /sdcard/tmpshot: Permission denied, but doesn't the lockscreen use the permissions defined in frameworks/base/core/res ? Feb 08 03:59:54 w32stuxnet can't say something w/o the code Feb 08 04:08:12 Leeds: backwards Feb 08 04:08:15 I can provide you guys with a gist Feb 08 04:08:17 gimme a minute Feb 08 04:09:07 studybot_ Leeds https://gist.github.com/emilevictor/3d86f283803b41dde9f8 Feb 08 04:09:22 the code works perfectly in APIs >= 11 Feb 08 04:10:05 try putting the new Handler() in the onCreate Feb 08 04:13:19 ok, one minute Feb 08 04:15:23 it seems a reasonable suggestion Feb 08 04:18:38 nope :( Feb 08 04:18:41 didn't work Feb 08 04:23:39 Any tips, libraries, anything to implement a infinite/circular carousel? lazy loading is also nice... Feb 08 04:29:02 Any tips, libraries, anything to implement a infinite/circular carousel? lazy loading is also nice... Feb 08 04:31:27 don't forget the horses! Feb 08 04:32:02 any tips on how to implement the horses? Feb 08 04:33:41 btw: does renderscript run in the GPU by any chance? Feb 08 04:37:28 The horses are amazing. Feb 08 04:39:30 How can I list memory usage statistics? ( Using adb. ) Feb 08 04:42:03 MouseTheLuckyDog: you can check stats in the DDMS view Feb 08 04:42:16 threads, objects, heap size etc Feb 08 04:50:02 OK, How does DDMS find memory usage. Feb 08 04:50:50 adb I would suspect Feb 08 04:52:10 btw: does renderscript run in the GPU by any chance? Feb 08 04:52:13 Any tips, libraries, anything to implement a infinite/circular carousel? lazy loading is also nice... Feb 08 04:52:54 Gavilan2: use a gridView and adapter ? Feb 08 04:58:00 My API source does not match my binary, I'm seemingly jumping around the Android source as I step through with the debugger. Feb 08 04:58:20 How did I manage to screw that up and what can I do to fix it? Feb 08 05:03:53 Seriously, how can I tell Eclipse to use different source for the debugger? Feb 08 05:10:17 why a gridView? Feb 08 05:10:31 ok any adapter driven view Feb 08 05:20:28 Come on guys, I've googled for it but the instructions don't match the Eclipse that came with the ADK. A little help would be appreciated. Feb 08 05:28:28 jda2000: do you actually mean the ADK? Feb 08 05:28:32 or the SDK? Feb 08 05:28:55 The source to android.jar Feb 08 05:29:24 I want to be able to single-step into the APIs Feb 08 05:29:44 so that's not answering the question then, ok... Feb 08 05:29:52 Well, actually, I am it's just that the source does not match. Feb 08 05:31:12 Leeds, I guess it's the SDK. The one that came with it's own Eclipse. Feb 08 05:32:59 Leeds, but now that some source is attached I'm not getting the "Edit source lookup path" button and so can't seem to change it. Feb 08 05:33:23 I don't use eclipse, so you're wasting your time asking me - I was just trying to clarify if you were actually talking about the ADK or not Feb 08 05:34:24 Leeds, OK. Did we settle that? Feb 08 05:34:29 sure Feb 08 05:36:10 hello all Feb 08 05:44:05 OK, I found it you right-click your debug configuration in the debug view and choose Edit Source Lookup. Feb 08 05:54:03 hello all Feb 08 05:54:10 this String is driving me nuts... http://pastebin.com/gv7pNGnw Feb 08 05:54:25 temp var has the data on each iteration and completed fully Feb 08 05:54:43 however, when I append then return my .toString(), its truncated Feb 08 05:55:01 Any tips, libraries, anything to implement a infinite/circular carousel? lazy loading is also nice... Feb 08 05:55:16 QubeZ: adb/locat limit ? Feb 08 05:55:50 is that it? hmm Feb 08 05:56:07 well if it's a MASSIVE thing then it's probable Feb 08 05:56:20 dont know limit off-hand Feb 08 05:57:16 makes it kinda difficult to debug this then Feb 08 05:58:17 QubeZ: well you can log it per 100 chars or something Feb 08 05:58:45 or Feb 08 05:58:49 log it Feb 08 05:58:56 then log the last 50 chars Feb 08 06:00:38 Log.d("",myString.subSequence(myString.lenght - 100, myString.lenght); Feb 08 06:00:43 oops Feb 08 06:00:45 -1 Feb 08 06:00:47 :) Feb 08 06:01:00 and length spelled wrong Feb 08 06:01:06 <-- tired Feb 08 06:12:32 wall of stingray Feb 08 06:29:09 god damn google Feb 08 06:29:28 they changed their output of Google Places results and broke my app.. all fixed now Feb 08 06:29:31 but no warning Feb 08 06:30:18 QubeZ: you never said if it was log limit Feb 08 06:32:36 who knows, but I never had to check that.. I found somewhere else my code was breaking due to Google changes Feb 08 06:32:43 but yes, looks like Logcat limit Feb 08 06:34:07 (07:01:06) StingRay_: <-- tired Feb 08 06:34:07 == 6am in UK = no wonder, whether still up or getting up ;-) Feb 08 06:38:37 is there any way to see who +1 your app on Google Play? Feb 08 06:40:51 fredcooke: still up Feb 08 06:41:24 damn! Feb 08 06:41:44 Does anyone know why for Google In App Billing version 2 it is required to both do nonce verification and signature verification, IF the nonce is *included* in the message that is signed and verified in the signature verification part. I don't get why we need to verify the nonce, too? Feb 08 06:43:03 http://goo.gl/YIbmm says that it will "reduce replay attacks" Feb 08 06:43:57 That means that when a payment is submitted multiple times with the same data the verification should fail for 2nd, and nth time but only pass for the 1st payment Feb 08 06:46:29 ah, I get it, after the first nonce verification I remove it from the list of known nonces, and if a request comes with the same data even though the signature veerification passes the nonce verification does not, because the nonce is no longer in the list of known nonces Feb 08 06:47:07 because it was removed after the first payment was verified Feb 08 06:47:31 am I right? Feb 08 07:11:19 Is there a better example for using the AccountManager than the SampeSync example? Feb 08 07:16:31 Hello guys, what's the way to check for download completion of a file in android ? Should I check the file size or md5 or ? Feb 08 07:17:36 monitor the process thats responsible Feb 08 07:17:58 it's in async task, but if I kill the wifi Feb 08 07:18:26 handle the exception Feb 08 07:18:50 it's not throwing one :) Feb 08 07:19:08 and the strange thing is that onPostExecute Feb 08 07:19:13 passes freely Feb 08 07:19:16 wtf Feb 08 07:19:25 well if there is no exception it will do Feb 08 07:19:33 how are you downloading it ? Feb 08 07:20:12 AsyncTask Feb 08 07:20:18 no Feb 08 07:20:29 thats how your handling the process that downloads it Feb 08 07:20:36 how are you downloading it ? Feb 08 07:21:00 urlconnection Feb 08 07:21:15 care to elaborate ? Feb 08 07:21:43 meaning ? Feb 08 07:22:20 urlconnection then BufferedInputStream Feb 08 07:22:39 then FileOutputStream Feb 08 07:22:53 that's it Feb 08 07:30:06 tagrudev: use google, http://stackoverflow.com/questions/3028306/download-a-file-with-android-and-showing-the-progress-in-a-progressdialog Feb 08 07:30:57 Trinity, how is that answering my question Feb 08 07:32:49 if you know the the "progress" of the download how wouldn't you know when the download ends Feb 08 07:33:05 why wouldnt* Feb 08 07:34:13 download ends when I kill the connection Feb 08 07:34:25 I am more concert for the integrity of the file downloaded Feb 08 07:35:25 wholeness* Feb 08 07:35:25 then check sum post completion Feb 08 07:35:32 still need to know when it ends, though Feb 08 07:35:36 fredcooke, now that's an idea Feb 08 07:35:37 thank you Feb 08 07:35:55 not a new idea, mind you, but an idea, yes, i'll give you that :-) Feb 08 07:43:11 Do any Android devices in the wild actually run on MIPS CPUs? Feb 08 07:44:27 gwynne: yes Feb 08 07:44:30 some in India, afaik Feb 08 07:44:58 p_l: Is it worth supporting them for NDK work? Feb 08 07:45:54 gwynne: depends. Do you plan to support rare devices mostly specific to certain regions? Feb 08 07:47:18 Though if you can, prepping and testing on few architectures might help you keep clean code, especially if you plan on getting x86 as well :) Feb 08 07:47:58 I would support x86 if the ndk kit didn't suck so much :E Feb 08 07:48:17 p_l: I'll have to ask my client how important that support is; how widespread are x86 'Droid devices, since I'm wondering" Feb 08 07:48:21 *? Feb 08 07:48:40 gwynne: seems to me mostly a single phone that some poor deluded people got :> Feb 08 07:49:57 at least around here, I've seen only one phone in salon and nothing else Feb 08 07:50:40 mips? Feb 08 07:51:38 Zharf: x86 Feb 08 07:51:55 AFAIK MIPS has only been seen in some no-name Chinese tablets Feb 08 07:52:04 I think there are bigger chances for more mips devices here than x86 bought from china Feb 08 07:53:35 mmh, what to do next, I wonder Feb 08 07:54:05 today's a post-an-update-day Feb 08 07:54:16 Leeds: I think some ultra-cheap tablet in India was MIPS-based Feb 08 07:54:36 p_l: a rebranded Chinese one, presumably :) Feb 08 07:54:43 Leeds: afaik locally made Feb 08 07:54:47 at least designed Feb 08 07:54:59 it was for a gov-supported educational project IIRC Feb 08 07:59:50 "of the top ten Android devices its customers used, eight were made by Samsung" :O Feb 08 08:03:01 mmmh Feb 08 08:09:58 mmeh Feb 08 08:12:02 I seem to fail miserably trying to make my listview have a custom colour background on the checked items :E Feb 08 08:14:37 Hi, can someone tell me How do i know how much RAM is using my app? thanks Feb 08 08:14:53 less than 640K Feb 08 08:16:03 okay, i need precisely, how can i find it out . Does MAT plugin in eclipse help me with that ? Feb 08 08:26:46 I extended RelativeLayout to implement Checkable and created a drawable selector to set its background to something when state_checked="true", but it's not working at all :E Feb 08 08:28:18 hm I think I found something Feb 08 08:38:12 oh yeah it works Feb 08 09:02:24 Can someone explain me why memory heap in eclipse is 8,700mb and i know i can change it in eclipse.ini but what exactly measures this feature ? Feb 08 09:03:57 millibits? Feb 08 09:04:57 :-p Feb 08 09:10:12 Hello! Is it possible to define in xml drawable like on screenshot http://clip2net.com/s/2O7qj - right and left edges are just lines with stroke width from dimensions? Feb 08 09:10:45 i mean it is like rectangle shape but without top and bottom line Feb 08 09:11:37 ctate: I have a problem with the AOSP build system. canadianc0w said, I should tell you. My commits has some review, and he said the auto verifier should have already checked them, but for some circumstances the auto verifier never added itself to the commits. any idea? Feb 08 09:13:34 timroes: i know you can help me ;) Feb 08 09:13:56 with my problem with drawable Feb 08 09:15:14 xgear: i would make two rectangles inside of each other, and set the padding of the inner to leave the space at the border Feb 08 09:15:46 afaik stroke is always for all sides the same, you cannot control that only with strokes Feb 08 09:17:03 you mean use layer drawable? Feb 08 09:17:16 yeah like that Feb 08 09:17:43 but I would also need to look up documentation on how exactly to do i t, so the documentation is also available for you :) Feb 08 09:20:31 thanks, i will try Feb 08 09:23:39 hello, is it possible to get access to the scrollbar "logic"... like, i want to catch a touchdown, touchmove, and touchup and know how much the user would've scrolled if he had been doing that in a scrollbar Feb 08 09:23:49 but I want to use that on my own custom control Feb 08 09:24:06 like, I want to simulate the scrollbar acceleration, velocity, etc... is there any way to do that? Feb 08 09:27:59 Guys.. is there a way to pass data to a service on start? for example with putExtra? i cant do any getIntent() or something llike this in nte service so i dont know how i could get the data i have set... Feb 08 09:28:42 oh wait.. i just found in the onBind an intent... Feb 08 09:30:33 Styler2go: or onStartCommand, if you don't use it as a bound service, but started service Feb 08 09:32:25 oh god i dont know why my AlertDialog won't show up... "Unable to add window -- token null is not for an application" Feb 08 09:33:53 and again i found the solution Feb 08 09:34:12 passing a null context to it? Feb 08 09:36:08 i passed getAppContext to it not this... Feb 08 09:36:21 i think i am some kind of braindead today Feb 08 09:41:22 hey timroes, in my onBind i set thisint = intent; and... in my onCreate i am tryinf to access it but it is not set yet... is htere an easy way to workaround this? Feb 08 09:41:40 onCreate is called prior to onBind i guess? Feb 08 09:42:22 ok i put all my code from onCreate to onBind Feb 08 09:42:26 I guess I should stop answering questions that are obviously found in the documentation Feb 08 09:42:31 onCreate() The system calls this method when the service is first created, to perform one-time setup procedures (before it calls either onStartCommand() or onBind()). If the service is already running, this method is not called. Feb 08 09:42:31 Does someone know how can i debug / measure which process is gathering how muc memory in my application ? Feb 08 09:42:49 DOSP: maybe the profiler? Feb 08 09:43:02 Profiler in Eclipse ? Feb 08 09:43:20 http://ft.trillian.im/f9a4bf4963860c6af13335c6d005f99c2496a025/6eh8t0aNRGXA2JVl1A6pkefNwNBEH.jpg Feb 08 09:43:20 marked blue Feb 08 09:43:47 i have profiler in Unity, but it is showing 21 MB totally used, and my built-in app for memory management shows me 128 mb of memory, so i dont know what to thin Feb 08 09:44:21 i cant help you that good i think... Feb 08 09:44:54 i just know that i measure waiting times etc. with this "profiler" Feb 08 09:45:26 what about the Heap in Eclipse DDMS? Feb 08 09:46:54 i dont quite understand the heap thing, i look through many tutorials but propably it isnt what i want.. can you advice me how can i measure some values , Feb 08 09:46:58 with that ? Feb 08 09:49:21 Anyone had an issue whereby the user can spam a button, triggering its onclick multuiple times and thus launching multple activites? Feb 08 09:49:33 as i told you i am not that good at developing.. but i dont think the heap is actually what you are searching but could show you what COULD use much memory. in the eclipse ddms you can click this icon (1) and then you can click Cause GC (2) and you should see a list... maybe this would help you... http://ft.trillian.im/f9a4bf4963860c6af13335c6d005f99c2496a025/6eh8ShrwB3IMtgACdnjI3xsutSBph.jpg Feb 08 09:50:50 ah yes iam toying with this since yesterday, well okay thanks :) also, Can someone help figure this ? havent found anything about it -> Unexpected error while collecting system trace. Feb 08 09:50:51 timroes: but.. my onBind never gets called... Feb 08 09:50:52 Unable to find trace start marker 'TRACE:': Feb 08 09:50:53 /system/bin/sh: atrace: not found Feb 08 09:51:03 Styler2go: do you bind to your service in some place? Feb 08 09:51:48 i start it just this way: Intent patchIntent = new Intent(context, PatchService.class); patchIntent.putExtra("local", local); startService(patchIntent); and in my xml file: Feb 08 09:51:56 yeah Feb 08 09:52:06 you obvisously didn't read the documentation about services... Feb 08 09:52:22 so i will go read :) Feb 08 09:52:25 read this: http://developer.android.com/guide/components/services.html and if your question is still there afterwards, i am willed to answer Feb 08 09:52:32 but be sure it wont Feb 08 09:52:40 because you will know afterwards the difference between bound and started services Feb 08 09:54:23 hi guys, ran into a bit of an annoying problem: If the user taps a button 18 times before an activity transition, 18 instances of a new activity appear. What is the best way to disable input? Feb 08 09:54:51 (basically there is a window of opportunity for the user to tap a button more than 1 time before the desired effect of the button press has executed) Feb 08 09:54:54 feesh: make the activity transition faster Feb 08 09:55:06 or disable the button after first click Feb 08 09:55:13 "couldn't fix your brakes, made your horn louder!" Feb 08 09:55:18 nothing is worse than having to wait for a button press to have an effect Feb 08 09:55:57 Ge0rG, I'm doing nothing more than 'startActivity' Feb 08 09:56:06 or replacing a fragment Feb 08 09:56:29 feesh: then your activity.onCreate() is too loaded? Feb 08 09:56:32 I could simulate the behaviour with standard android controls like the spinner Feb 08 09:57:05 Ge0rG, there is a disconnect with startActivity and onCreate being called. At the time onCreate is called, the other activity would of lost focus Feb 08 09:57:11 is there an app that reminds you of making a call after you drove somewhere else? Feb 08 09:58:13 Ge0rG, it looks like this is a common problem, I'm just looking for the common solution Feb 08 09:58:33 feesh: disable the button in onClick(), enable in onResume() Feb 08 09:59:18 has anyone got anything more robust than this? Feb 08 09:59:23 surprisingly, that's what I've already got Feb 08 09:59:42 * Ge0rG never encountered that problem Feb 08 10:00:03 I have a couple of times now Feb 08 10:00:13 the thing is, the app doesn't crash Feb 08 10:00:32 but, it's not nice having >1 activity started if you're impatient Feb 08 10:01:10 I discovered the issue by tapping a button multiple times, like one would when desperately trying to skip a cutscene Feb 08 10:03:06 [ot] is it possible to disable creation of new issues on a google code project without removing the existing ones? Feb 08 10:03:18 hey Feb 08 10:03:53 I am trying to start an app with a dialog. it crashes at startup... Feb 08 10:04:42 are you guys there? Feb 08 10:04:45 post the function as a runnable to the view when its created, or run on UIthread. Feb 08 10:04:56 http://pastebin.com/xM5p8eED heres the dialog class Feb 08 10:07:38 Can anyone help? Feb 08 10:08:58 ilhami, Arab? Feb 08 10:09:06 ilhami, are you an arab? Feb 08 10:09:22 I am from Turkey Feb 08 10:09:24 why are you asking about that? Feb 08 10:09:25 um... Feb 08 10:09:26 I live in Denmark Feb 08 10:09:46 ilhami, i am an arab. your name is arab Feb 08 10:09:55 yes I know its also a TUrkish name Feb 08 10:09:55 :D Feb 08 10:10:00 kayf al hal? Feb 08 10:10:35 ilhami, الحمد لله Feb 08 10:10:56 Alhamdulillah Feb 08 10:11:04 ilhami, so i am looking at your paste Feb 08 10:11:35 Can you add me on skype superlinux-hp? Feb 08 10:11:54 ilhami, yea why not Feb 08 10:12:01 we can have a chat now too Feb 08 10:12:15 ok akhi al kareem Feb 08 10:12:28 ilhami-kurdo Feb 08 10:12:28 add me Feb 08 10:14:37 How many drop-kicks per week do you get in here? I mean significant time wasting idiots like that Quest guy yesterday? It's no surprise that a few people got fired up at him, but with that being repeated all the time, it would wear you down, eventually. Feb 08 10:16:25 FreeAir I haven't seen many kicks or bans in this channel Feb 08 10:16:43 Might have just missed them, but I've been sitting in here since August or something quite regularly Feb 08 10:17:15 sonOfRa: they didn't ban this guy yesterday, and only kicked him once, and didn't re-kick when he re-entered. Feb 08 10:17:30 that's why i said, kicks or bans, not just bans Feb 08 10:17:37 doesn't happen too often Feb 08 10:17:52 timroes: Thanks for the tip, i got it working Feb 08 10:18:13 but, is there a way to test if my app is in foreground right now? in the service? Feb 08 10:27:55 can I somehow say "hey, my app can open *.lol files", so when I will get something.lol as mail attachement, or downloaded it from web, it will open in my app? Feb 08 10:31:29 Pitel> http://stackoverflow.com/questions/8903443/android-file-associations Feb 08 10:34:21 i wonder what would be more popular for my app (of putting a file somewhere) … Google Drive or Dropbox Feb 08 10:34:59 for me it would be dropbox Feb 08 10:35:09 i am not using google drive... Feb 08 10:35:24 yeah … i dunno anyone that uses gdrive Feb 08 10:35:33 why not both? Feb 08 10:35:39 i would, eventually Feb 08 10:35:40 let the user chose his favorite? Feb 08 10:36:33 How much does DropBox cost? I've got 2 free years of 50G on dropbox, but I don't want to use it till I know how much it will cost me after the two years. Feb 08 10:36:55 https://www.dropbox.com/getspace Feb 08 10:37:04 oh sry Feb 08 10:37:07 I don't use either, scp -r server:path/ in a script with a url pumper outerer :-) Feb 08 10:37:23 100gb is 19,99$ Feb 08 10:37:27 per month Feb 08 10:37:39 9,99, not 19.... Feb 08 10:38:52 Per month? That's more per month then buying that much space. Feb 08 10:39:09 https://www.dropbox.com/upgrade Feb 08 10:39:32 MouseTheLuckyDog: well, they don't offer just the space Feb 08 10:39:44 it's more for the sync stuff etc. Feb 08 10:40:05 I made it up to 25G on my free account, more than enough Feb 08 10:40:32 some people use LG phones to make a fleet of several 50G Box.net accounts :) Feb 08 10:41:01 i wonder if the nexus 4 is a "lg phone" for box? Feb 08 10:41:50 p_l: But you can't move the dropbox accounts over to a different phone can you? Feb 08 10:42:05 yes you can Feb 08 10:42:08 I would rather just carry around SD cards. Feb 08 10:43:13 Styler2go: N4 counts Feb 08 10:43:19 MouseTheLuckyDog: you can move the accounts Feb 08 10:43:58 I use dropbox on my phone, used on my old phone, use on my personal laptop, on dayjob workstation, and various times from web browsers. That's *one* account Feb 08 10:46:34 [p_l: I mean you can't have an account you got free with a phone under the name p_l, get a new phone and transfer the free account over to your other account to get 4 years of 50G free. Feb 08 10:47:33 MouseTheLuckyDog: you get the 50G when you log in to Box with their app, running on LG phone Feb 08 10:47:45 it probably doesn't expire :) Feb 08 10:47:49 Can someone point out benefits of Thread vs. AsyncTask? AFAIK, AsyncTask ist just an implementation of Thread wich provied more ease of use. Is this correct? Feb 08 10:47:56 no idea about Dropbox promotions Feb 08 10:48:15 On my galaxy note 10.1 they say it's for 2 years. Feb 08 10:48:29 freiform: AsyncTask is an abstraction of the "task", and a thread is how the task would be executed Feb 08 10:49:13 freiform: the idea of AsyncTask, is once the thread is done, it has to deliver the result back onto the main thread. Feb 08 10:49:20 I get kind wary when people give me something for free for a period of time. It usually means they have a way to get me to pay big time when that time is over. Feb 08 10:50:35 freiform: basically, AsyncTask is more of an abstraction over Runnable than over Thread Feb 08 10:51:13 MouseTheLuckyDog: i have a (non droid) app that expires that i let certain people use for free, and I make it expire so they're not allowed to use out of date code. Feb 08 10:51:25 but in general, yes Feb 08 10:51:27 :-) Feb 08 10:51:30 well, in this case it's to lure them in Feb 08 10:51:37 after all, you might be willing to pay for the convenience Feb 08 10:52:04 also, quite possibly such deals involve money from vendor to service Feb 08 10:53:12 I see. So, if i need interaction with my ui-thread, I would probably use AsyncTask, otherwise i would use something like new Thread(new Runnable)? Feb 08 10:54:10 how can I get the name of the preferences file returned by PreferenceManager.getDefaultSharedPreferences(context)? Feb 08 10:55:04 Hello, how can I sligthly vertically offset one view in vertcial linearlayout under another? I have an activity header that has trasparent background on the bottom, the content view should be sligtly beneath and I still wan't to use automatic layouting using LinearLayout (so I dont' want to use FrameLayout). Feb 08 10:55:51 negativ layout_marginTop just crops the offset view... Feb 08 10:58:07 mgv: http://stackoverflow.com/questions/6146106/where-are-shared-preferences-stored Feb 08 10:59:07 blackhex: I know that, but the docs don't say that packagename_preferences.xml won't change in a future version Feb 08 10:59:52 blackhex: if there is no way to get the name, I'll hardcode that format Feb 08 11:00:57 blackhex: a relativelayout containing both linearlayouts, along with appropriate margins on the "bottom" layout should do it. Feb 08 11:01:19 2 layouts with fill_parent in a relativelayout will stack on the z-axis. Feb 08 11:03:07 TheTrash: I'll try that but I read that negative margin does not work with RelativeLayout ... Feb 08 11:04:19 blackhex: it's not like that, you give the lower layout a margin that is (height of header - size of transparent background). Feb 08 11:04:52 Without the (positive) margin, they'd both start at a 0 x/y. Feb 08 11:05:00 TheTrash: but that what I want to avoid - I don't want to depend on fixed header height Feb 08 11:05:32 I can't think of a way around it. Feb 08 11:05:58 Apart from a custom layout that extends RelativeLayout and automatically determines the margins based on the header's actual size. Feb 08 11:06:06 TheTrash: ok, thanks, then I'll split the hader background and put the overlapping part above the content view in a FrameLayout Feb 08 11:06:46 Suit yourself, though that seems slightly more complicated than the relativelayout solution. Feb 08 11:07:42 TheTrash: it is, but it's the smaller evil Feb 08 11:08:04 *lesser Feb 08 11:08:07 FrameLayout is the biggest evil :) Feb 08 11:08:17 :-) Feb 08 11:09:40 Skype writes that "we are working closely with BlackBerry to ensure the Skype for Android app runs great in the BlackBerry 10 environment." Feb 08 11:09:54 damn, the android player on BB10 must be pretty damn good Feb 08 11:10:13 Yeah I'm very curious about how that's going to work out. Feb 08 11:10:34 maybe i can get a Z10 and do android + bb dev on the same device :D Feb 08 11:10:38 More likely, the "android ports" are going to run like absolute crap, but let's hope that's not the case. Feb 08 11:10:49 it still seems that the blackberry android-porting sdk fails on native code :| Feb 08 11:10:51 Skype for Android doesn't even run on my Android phone? :D Feb 08 11:11:06 Heh yeah it isn't very good on Android to start with, indeed. Feb 08 11:11:22 i've only used the ios version which worked fine Feb 08 11:11:56 I'm personally eyeing the Q10, I love qwerty phones but offerings have been quite poor in the last few years. Feb 08 11:12:30 TheTrash: yeah, thats because most people don't use qwerty keyboards :) Feb 08 11:12:36 (on phones) Feb 08 11:12:57 even the devotees tended to use them only when composing some long text like email Feb 08 11:12:58 The Android version is far from fine, even though the push notification stuff is supposed to be better on Android. Feb 08 11:13:19 I dunno, I can barely type on my One X. Feb 08 11:13:20 g00s: I'm using a qwerty phone for ssh... Feb 08 11:13:32 It's very tedious IMO Feb 08 11:13:35 and I wish there was an update to the desire z Feb 08 11:13:53 Yes, Desire Z was awesome, at least the hardware. Feb 08 11:13:59 it still is. Feb 08 11:14:00 Ge0rG: "most people" :D most people dont use ssh XD Feb 08 11:14:05 But its Android version was already outdated when it was released. Feb 08 11:14:15 g00s: oh, right Feb 08 11:14:30 HTC is in deep trouble; they cut their R&D by 60% and engineers are working 12-hour days Feb 08 11:14:32 still, I want a better qwerty phone Feb 08 11:14:53 yeah, they totally got pwned by samsung Feb 08 11:14:57 "most people" do use silly messaging systems to inform their peers about even the most trivial details. Feb 08 11:15:08 I've given VMware the path to my kernel headers ("/usr/src/linux/inux-3.7.5-1-ARCH/include/linux" after I installed kernel26-headers) but I still get this https://dl.dropbox.com/u/19390574/scrot-vmware.png Feb 08 11:15:28 TheTrash: like posting inline cat pictures in whatsapp? your app better provides inline picture support as well! Feb 08 11:16:06 Whatsapp is the New Alcohol. Feb 08 11:16:48 * Ge0rG is looking for devs to make yaxim as usable as whatsapp and as secure as pgp ;) Feb 08 11:18:42 IM is a tough nut to crack, and not for the obvious reasons. Feb 08 11:19:16 Whatsapp is pretty poor, but they hit the jackpot by cross-referencing users' contacts serverside, even though that apparently violates European and Canadian laws. Feb 08 11:19:30 Then there's the cross-platform thing... Feb 08 11:20:08 TheTrash: XMPP has most of the building blocks needed Feb 08 11:20:29 TheTrash: except for secure end-to-end file transfers.... Feb 08 11:20:43 Yeah, just like Lego has most of the building blocks to build a real city :D Feb 08 11:21:34 TheTrash: you are such a pessimist. instead, you could pick one of the many OSS xmpp clients and help improve it Feb 08 11:21:53 the solution to what I posted above is in the wiki Feb 08 11:21:53 It's interesting how Whatsapp and the likes use XMPP but instead of supporting the protocol, they make their own crooked version. Feb 08 11:22:15 I am a pessimist, indeed, but being the pessimist I am, I'd rather call myself a realist :P Feb 08 11:23:25 TheTrash: irregardless of your political opinions, you can help making the world better :P Feb 08 11:24:39 what were you guys using xmpp for ? Feb 08 11:25:28 g00s: for instant messaging Feb 08 11:25:56 oh , heh Feb 08 11:26:08 FB uses MQTT, my experience with MQTT has been very positive Feb 08 11:26:59 https://www.facebook.com/notes/facebook-engineering/building-facebook-messenger/10150259350998920 Feb 08 11:28:10 "By maintaining an MQTT connection and routing messages through our chat pipeline, we were able to often achieve phone-to-phone delivery in the hundreds of milliseconds, rather than multiple seconds." Feb 08 11:28:20 dat Feb 08 11:28:22 g00s: you are working on facebook chat? Feb 08 11:28:47 no, i work on internet of things stuff - i use mqtt for that Feb 08 11:29:07 g00s: what about encryption with mqtt? just use tls? Feb 08 11:29:13 over ssl Feb 08 11:29:30 ssl is pretty heavy tho Feb 08 11:30:15 xmpp is pretty heavy as well, but it has plenty of extensions for funky stuff Feb 08 11:30:24 g00s: does mqtt support file transfers? ;) Feb 08 11:31:02 mqtt is a pub/sub protocol that does not enforce the type of payload Feb 08 11:31:18 its open source (eclipse paho) Feb 08 11:31:26 mqtt.org Feb 08 11:31:48 * Ge0rG 's got enough of pub/sub stuff from his university work on mobile robotics :> Feb 08 11:40:38 !@#$ Feb 08 11:41:40 Yesterday I ran the emulator easily. Today everytime I start it I get System UI has stopped. Feb 08 11:45:12 MouseTheLuckyDog: recreate the avd Feb 08 11:45:33 g00s, I've done that three times. Feb 08 11:47:55 MouseTheLuckyDog: 4 is a good even number Feb 08 12:25:03 sweet mother of all that can ruin your day.. i was so proud of myself for figuring out the basics of java and draw some stuff on a canvas Feb 08 12:25:36 ...until I found out I had overrated the abilities of the canvas by far Feb 08 12:25:48 and now i have to learn opengl Feb 08 12:25:56 which seem like a completely different language Feb 08 12:25:58 yaaaay Feb 08 12:26:14 lime: if you just want to draw with your finger, canvas should be pretty fast Feb 08 12:26:35 oh hai timroes Feb 08 12:26:46 i doubt that you recognize large fps drops cause of canvas, I assume you have large fps drops cause you doing stupid stuff :) Feb 08 12:26:57 e.g. initialize objects (e.g. Paint) in your onDraw method Feb 08 12:27:02 yeah well, since my artistic skills are close to "having trouble with stick men" i want the code to do all that work Feb 08 12:27:17 timroes, i fixed all that Feb 08 12:27:32 and i'm only initializing the objects when they're needed Feb 08 12:27:34 oh and: you are hopefully not testing on emulator :D Feb 08 12:27:41 but i guess that you figured out already Feb 08 12:27:46 no lol, testing on my experia device :) Feb 08 12:27:55 -e Feb 08 12:27:57 can you paste the source code of that class? Feb 08 12:28:30 i could, but we already concluded yesterday that the problem is that my project is based on alpha blends Feb 08 12:28:38 which should be tricky for the canvas to handle Feb 08 12:29:14 ah right okay :D Feb 08 12:29:20 i mixed you app with someone else :D Feb 08 12:29:28 hehe, no problem Feb 08 12:29:31 so you are the bezier guy and not the painting with finger on canvas guy :D Feb 08 12:29:43 yup.. i'm the bezier guy :D Feb 08 12:30:00 sorry, thought you were the canvas finger painting guy, so yeah have fun learning opengl :D Feb 08 12:30:34 well, after a bit of a struggle i did manage to load the 'blurry lines' app into my own eclipse Feb 08 12:30:51 so now i've got a premade engine and renderer Feb 08 12:31:04 but how to use this stuff is still a mystery to me Feb 08 12:31:53 yeah thats opengl :D Feb 08 12:40:41 when i dont have an activity to call TextToSpeech.. How do i check if the Text is spoken before i stop/shutdown? shoot finalize() by myself? Feb 08 12:41:03 you never call finalize by yourself :D Feb 08 12:41:10 and you also rarly should implement it at all Feb 08 12:41:15 are you meaning finish()? Feb 08 12:42:37 you can call finalize by yourself :D And yes.. Its dirty. :> Well.. I have to release it because i cannot access TTS again until it has been released Feb 08 12:42:50 when i shoot stop or shutdown straight after speak then it wont be spoken Feb 08 12:43:29 what is the most common/best way to implement a global class, accessible by many activities? Feb 08 12:43:43 I have a question regarding implementation of a permanent audio recorder. This is intended to be the sole use of the device, from time to time a questionaire will be displayed, but that's it. So we don't have to worry about the usual limitations of such applications. How would one approach such a problem? Feb 08 12:43:56 SingleTon Pattern (if really neccessary). Feb 08 12:44:00 Vaidas: singleton, static methods, pass it around; really depends on your use case Feb 08 12:44:22 Would one use a Service or just call timed AsyncTasks or IntendServices? Feb 08 12:44:47 I have a "device driver" class, which can have only one instance Feb 08 12:45:07 and I need to communicate with the device trough different activities Feb 08 12:45:14 i.e. "configure", "monitor" Feb 08 12:45:15 etc Feb 08 12:45:53 I;d use a service Feb 08 12:46:34 I have a service in lower level already Feb 08 12:47:18 the activity connects to device in this manner Activity->"driver" class->bluetooth service Feb 08 12:47:42 I have made a "driver" class, so I could implement the NFC connection in the future Feb 08 12:49:35 can I use Application global class? Feb 08 13:00:50 so i'm gonna use jni to do some bruteforce calculations. since i'm talking speed i wonder if i should avoid using byte-pointers versus int-pointers. byte pointers will have better cachehits (?) but non-aligned mem access Feb 08 13:11:27 Need help on understanding. I've got a ListFragment, during onCreate it calls setListAdapter, initially with an empty custom listviewadapter. By the press of a button inside an Activity (A) a FragmentActivity (B) is started which in turn expands the ListFragment and populates some items. But, I see no items in the listview. If I go back to Activity (A), press the same button to fire FragmentActivity (B) the ListAdapter shows the items. How can I resolve Feb 08 13:11:27 this? Feb 08 13:15:51 Hi all: anyone experienced with using the android-maven-plugin to generate apklibs and have eclipse using those artifacts? Feb 08 13:26:26 doh. I was missing a notifydatasetchange(). Feb 08 13:37:03 I know not wanting to reuse code is a sin, but lately whenever I try a lib that isn't made by JakeWharton, I spend more time fixing the problems than I would have spent writing it from scratch. Feb 08 13:37:34 can you have a subdir in assets? Feb 08 13:38:25 I think so. Try it out. Feb 08 13:38:31 i did Feb 08 13:38:39 some fuckwad on stackkoverflow is saying it doesnt work Feb 08 13:38:42 doesnt build Feb 08 13:38:57 well if you did, you already know the answer Feb 08 13:42:20 http://stackoverflow.com/questions/14773336/how-open-local-html-page-in-browser/14773441#comment20681860_14773441 Feb 08 13:42:22 i hate people Feb 08 13:43:02 :D Feb 08 13:43:16 asset folder (yeah ofc under /res where else :D) Feb 08 13:49:21 i just want my points! Feb 08 13:49:37 there you get a point from me :) Feb 08 13:54:02 thanks buddy Feb 08 13:54:09 good point about him probably using the wron gdir Feb 08 13:54:47 so you're asking questions here so you may answer questions on stackoverflow so you may gain points ? Feb 08 13:55:04 evil Feb 08 13:56:38 Some would call that enterprising :) Feb 08 13:57:25 can anyone help with NotificationCompat not showing the notificaiton (http://pastebin.com/i4PevPLM) Feb 08 13:57:36 how can i convert a List to an int[] ? Feb 08 13:58:29 osxorgate: isnt that more of a java question? Feb 08 13:58:52 i ask questions here so i can get my work done too Feb 08 13:59:01 all i do is copy/paste from here into eclipse Feb 08 13:59:23 osxorgate: by reading the List javadoc Feb 08 13:59:46 basic 101 java skill: knowing how to find and read javadocs Feb 08 13:59:50 I'm usually surprised by the inability of stackoverflow users to find answers Feb 08 14:01:06 NotificationCompat anyone? Feb 08 14:02:17 pragma-++ Feb 08 14:02:58 When I was a student I quickly realised the javadocs were a goldmine of information. I just needed to know how to navigate them and find the classes / methods i needed. Feb 08 14:04:20 how to center element vertically relative to another element Feb 08 14:04:39 element center should match center of desired element Feb 08 14:04:50 how to do it Feb 08 14:04:55 osxorgate: you can read about lists in the reference http://developer.android.com/reference/java/util/List.html as they said Feb 08 14:05:10 thanks fellas Feb 08 14:06:08 if you are lazy like me you can also start googling "javadoc SE List" it normally takes you to a nice place Feb 08 14:07:27 make sure you say SE6 for more recent docs though Feb 08 14:09:34 or just "android list" Feb 08 14:10:12 pretty much every google for "android" followed by a class name will have the first result be the android javadoc Feb 08 14:14:34 how do I access all the photos on the device Feb 08 14:14:35 ? Feb 08 14:14:36 https://duckduckgo.com/?q=android+list+api ddg needs an extra term, but at least you don't get tracked/bubbled. Feb 08 14:15:44 if android wouldn't implement that whole search stuff on the reference so .. not so well .. you could even register an own search provider in your browser Feb 08 14:15:49 I would like that a lot :/ Feb 08 14:16:19 more awesome to have it right on the ide Feb 08 14:16:41 edman: not if you mainly use it to find links, you can post here Feb 08 14:17:15 morning Feb 08 14:17:24 good day :) Feb 08 14:17:28 canadiancow, do you ever sleep? Feb 08 14:17:30 hello timroes Feb 08 14:17:44 timroes: not sure if i get you or if you got me, i meant something on the ide that would trigger the search in the browser Feb 08 14:17:48 storm's hitting us now, gettin crazy outside Feb 08 14:18:02 edman, are you trying to make an eclipse extension? Feb 08 14:18:07 edman: didnt got you :) Feb 08 14:18:10 eclipse has a browser inside Feb 08 14:18:32 but still for links searching here, most often I dont type that stuf finto the IDE beforehand, so still would prefere the serach provider in browser :D Feb 08 14:18:34 kaneda^: i dont like that, i prefer to use my default browser Feb 08 14:18:48 +1 Feb 08 14:18:53 edman, ah, i'm not sure, seems outside the scope of android dev anyways ;p Feb 08 14:19:38 kaneda^: you just arrived, you can't be sure of this Feb 08 14:19:55 indeed, what's the context? Feb 08 14:20:35 we were just talking about easier ways to access the reference Feb 08 14:21:07 oh, i like java docs Feb 08 14:21:39 we wanted a more practical of searching, like a search box in your browser just for the reference or some mechanism to trigger this search from your ide Feb 08 14:23:09 i would be happy by hitting some keystroke, typing "List" and getting the page http://developer.android.com/reference/android/app/Activity.html#q=list in my browser Feb 08 14:23:19 *hitting that in my ide Feb 08 14:26:12 let's make a charting library without density independence Feb 08 14:26:22 loaded up an app with TeeCharts on a nexus 10, omg so tiny Feb 08 14:26:32 i honestly cant say that i need anything more than java docs Feb 08 14:26:39 + intellij or whatnot Feb 08 14:26:53 yeah i love javadoc Feb 08 14:27:01 i dont get why people think apples documentation is better Feb 08 14:27:24 i've never worked with it, but i think the java docs for android stuff are good Feb 08 14:27:34 i'm always looking for more examples but it's generally really good Feb 08 14:29:13 javadocs is good Feb 08 14:30:04 at the android dev console, how can I respond to comments/reviews? Feb 08 14:30:07 but you need something else if you want navigation between classes/functions Feb 08 14:30:32 edman, you do? eclipse -> right click -> open declaration? Feb 08 14:30:47 that's not javadoc Feb 08 14:31:07 that's seeing declaration Feb 08 14:32:05 some jdoc is shown in eclipse when you're looking through methods/types while expanding Feb 08 14:32:11 not sure if it's complete, though Feb 08 14:32:39 it's as complete as the jdoc implementation is Feb 08 14:33:27 no methods, just the main class part for a class Feb 08 14:37:51 How can I (in xml) make a view square shaped, but as be as big possible so one of width/height is like "match_parent"? Feb 08 14:41:49 hi Feb 08 14:42:08 anyone succedded to connect samsung galaxy note 10.1 on linux ? Feb 08 14:43:39 i have Feb 08 14:43:52 I want to get a list of all the photos and videos on the device Feb 08 14:43:57 how do I do that?? Feb 08 14:43:58 haqe17: can you explain me how to achieve this pelase ? Feb 08 14:44:15 anyone else getting error occured with google play application statistics Feb 08 14:44:47 ohmy i have a galaxy tab 10.1 is that the same thing? Feb 08 14:45:11 haqe17: Mine is called calaxy note 10.1 Feb 08 14:46:00 ohmy: well i didnt have any problems with mine , Feb 08 14:46:19 haqe17: you mean it's automounted when you connect it ? Feb 08 14:46:36 haqe17: and adb works without any odification ? Feb 08 14:47:45 if I use Calendar's HOUR constant, I get 4 (pm) for 16..will I also get 4 for AM? Feb 08 14:48:22 brb rebooting Feb 08 14:48:47 cause I want to do a comparison of dates (to the hour) for something, I don't want to get repeated values while they are actually 12 hours apart Feb 08 14:48:56 I tried HOUR_OF_DAY constant, seems more adequate Feb 08 14:54:35 which ad system do you use? Feb 08 14:54:37 Still admob? Feb 08 14:55:00 I feel my revenue drops for no-reason dramatically each month. Google happens to become greedier and greedier. Feb 08 14:56:29 spobat: you feel or the numbers show it? Feb 08 14:56:55 the revenue decreases, but everything else seems to go in an upward direction Feb 08 14:57:04 like the impressions etc. Feb 08 14:57:25 thus, google pays less for each click/impression Feb 08 14:57:37 It was about the double one year ago, I think Feb 08 14:57:43 wow Feb 08 14:58:26 This is why I'm (probably) going to switch within the next 7 days (in all apps) Feb 08 14:58:40 I'm just not certain to whom, so I'm looking around a bit Feb 08 14:59:24 can't say i've been missing c/c++ holy hell Feb 08 15:01:21 spobat, no ads > * ;) Feb 08 15:02:02 * FreeAir has no ads on any of his sites Feb 08 15:02:18 Zharf, ? Feb 08 15:02:28 I refuse to use or view ads, I despise people who support them :p Feb 08 15:02:47 I "understand" why but I still feel the way I do Feb 08 15:03:01 * FreeAir uses adblock plus in his browsers, too Feb 08 15:03:13 I can't use a browser without it now, it's just too intrusive Feb 08 15:03:15 the internet is so much better with adblock plus Feb 08 15:03:17 * novie doesn't like discussions around advertisement philosophy. Feb 08 15:05:04 real men don't visit sites they need AdBlock for Feb 08 15:05:15 ... or don't use such measures Feb 08 15:06:02 youtube-dl ftw? ;-) Feb 08 15:07:44 same thing Feb 08 15:07:55 if you don't want to pay for the service you're using, don't use it Feb 08 15:08:12 you should pay your dues FreeAir Feb 08 15:10:56 I've never seen ads on youtube actually Feb 08 15:11:01 on videos Feb 08 15:11:08 but I guess that's due to my region.. Feb 08 15:12:24 ok, Calendar is totally fucked Feb 08 15:12:39 sweeden? Feb 08 15:12:47 (16:07:45) bobsapp: you should pay your dues FreeAir (16:07:28) Chainfire: if you don't want to pay for the service you're using, don't use it Feb 08 15:12:47 Do you mean turn flash and html5 back on? No. Feb 08 15:12:52 bobsapp, close Feb 08 15:13:39 Chainfire, I would pay for the service if they actually let me pay for it though, I still don't want ads, ever Feb 08 15:13:56 but most services won't let me pay for them :E Feb 08 15:14:09 paying in this case is seeing the ads Feb 08 15:14:28 no, that's pollution Feb 08 15:14:35 but because they don't have the option for you to pay real money, that's not an excuse to just rip out the ads Feb 08 15:14:42 I refuse to use such methods of payment Feb 08 15:14:48 thats totally fine Feb 08 15:15:05 all I'm saying is that you should man the fuck up and just not use the service, in that case. Feb 08 15:15:07 I would somewhat welcome a return to paid for services where people pay a subscription to access a site. Feb 08 15:15:10 but I will still use the service since it's free to use!, I don't care what you or anyone else thinks about it Feb 08 15:15:18 +1 Feb 08 15:15:41 ads are the bane of internet Feb 08 15:15:42 its not free to use, check their terms of use, pretty sure it mentions you can't remove the ads Feb 08 15:15:53 like anyone cares about those Feb 08 15:15:56 FreeAir: if that kind of behaviour becomes commonplace you will end up with many sites taking measures against people that block ads Feb 08 15:17:04 they already are Feb 08 15:17:07 i've hit a site like that Feb 08 15:17:18 * Zharf too Feb 08 15:17:22 that's when i follow Chainfire's advice and simply do not use it Feb 08 15:17:23 I know reddit fellate you for not using ad blocker Feb 08 15:17:32 the law does, and your argument does. It is not "free to use". You are in error. You are a leech. Feb 08 15:17:35 which imho is just as bad Feb 08 15:17:37 but they provided no value for me to let myself see the ads Feb 08 15:18:02 Chainfire, then let me fucking pay for the service and get rid of the crappy ads :p Feb 08 15:18:12 agreed Zharf Feb 08 15:18:22 I would gladly do so Feb 08 15:18:29 if the service is worth a damn Feb 08 15:19:55 let's move on to the next topic. Feb 08 15:20:03 .... you can pay by viewing the ads. Just because your favorite payment method is not supported is no reason to rob the store. Feb 08 15:20:16 yes it is, they need to learn manners Feb 08 15:20:38 ok novie, I'm out anyways. Entitlement attitudes like ^^^^ just rub me the wrong way Feb 08 15:23:28 ok, there is something terribly wrong here. Whenever (and wherever) i want to get the current time, I get a wrong time Feb 08 15:23:51 I did calendar.setTimeInMillis(SYstem.currentTimeInMillis()).. Feb 08 15:24:00 I really need some help guys with NotificationCompat.... its just not showing no matter what! Feb 08 15:24:02 gives me the exact same number everytime Feb 08 15:25:07 madmcphil, pastebin some code Feb 08 15:25:07 ok a development question incoming: how do i get the certificate details from the SslError class? Feb 08 15:26:02 http://pastebin.com/i4PevPLM Feb 08 15:26:20 its kind of infuriating because I can see the SslCertificate class has a copy of the X.509 certificate but held as a private member. Feb 08 15:29:29 see anything untoward there Zharf? Feb 08 15:29:51 doesnt crash or give errors but just doesnt show the notification ever Feb 08 15:30:17 build for 17 but min sdk is 11 and testing on ICS Feb 08 15:30:54 mmmm Feb 08 15:31:03 I don't see any obvious errors.. Feb 08 15:31:41 Ive tried someone elses code too and that has the same results Feb 08 15:31:47 no notification showing Feb 08 15:31:50 is the intent filter for Park defined in androidmanifest Feb 08 15:32:10 I'm using NotificationCompat.Builder in my app and it's working fine Feb 08 15:32:12 :E Feb 08 15:32:45 hmmm interesting is all I have Feb 08 15:32:52 no intent filters Feb 08 15:33:00 lets play with that Feb 08 15:33:13 will let you know Feb 08 15:33:13 madmcphil, not sure if it's necessary really Feb 08 15:33:28 worth a try ;) Feb 08 15:38:12 sorry Zharf... no different Feb 08 15:38:20 not really surprised.. Feb 08 15:38:40 by the way, I think there might be a system setting that prevents applications from sending notifications Feb 08 15:39:15 maybe, I think I remember seeing one Feb 08 15:39:30 Its just weird.... All seems correct... been on this for like 4 days Feb 08 15:41:06 interesting, one of my apps has more active installs than total installs Feb 08 15:41:18 heh Feb 08 15:41:27 is it a free app? Feb 08 15:41:33 no, its a commercial app Feb 08 15:41:37 Chainfire, ... Feb 08 15:41:40 my apps active installs stats are broken, play says unexpected error Feb 08 15:41:40 how is that... Feb 08 15:41:45 Chainfire, ive see that before, the stats are sometimes out of sync Feb 08 15:41:58 that's true, it reports every 24 hours right? Feb 08 15:42:09 yeah I know, the stats sometimes don't update for months, and when they do, they don't seem to be correct half the time, but I've never seen active>>>total before Feb 08 15:42:23 erm, my stats are generally up to date as of 24 hours Feb 08 15:42:26 Chainfire: Active installs is # of devices it is currently installed on, total installs is how many users have installed it Feb 08 15:43:01 unique devices / unique users .. so it's not really that weird Feb 08 15:43:02 SimonVT, he's saying active is > total Feb 08 15:43:04 i think its several cron tabs hooked up to a tank of manatee. when they bring the ball to the surface the cron job runs Feb 08 15:43:13 kaneda^: yes he is Feb 08 15:43:19 SimonVT, so, i dont think that explains it Feb 08 15:43:26 i have a function in a .c file, compiling it with ndk. works fine. Now i make it a .cpp file and compile works, but java can't find the method anymore. what's going on? Feb 08 15:43:28 or is a user on two devices treated as one install? Feb 08 15:43:37 kaneda^: If you have 1 user that installed it on two devices, you'd have 2 active installs, 1 total install Feb 08 15:43:38 ah well that does make some sense then, SimonVT. It is an app I know many users have installed on multiple devices Feb 08 15:43:45 SimonVT, ok, well that probably explains it then Feb 08 15:43:58 SimonVT, that's, strange, i'd say Feb 08 15:44:04 dude, setTimeInMillis(something.getTimestampInMillis()) is disastrous, don't use it. Feb 08 15:44:10 SimonVT, at least, it's not intuitive Feb 08 15:44:10 but then again, if these numbers don't use the same metric, they're not as useful Feb 08 15:44:21 Chainfire, yep Feb 08 15:45:08 Yeah, should just be number of active users Feb 08 15:45:32 It's probably just to confuse devs into thinking they have more users than they actually do Feb 08 15:45:35 madmcphil, if you figure it out, if you remember, let me know :) Feb 08 15:45:49 i pubilshed an app for school for android 1.5, people are still trying to install it, there's no way it works any more Feb 08 15:45:55 on the plus side, over 20k installs Feb 08 15:46:21 will do Zharf.... have a horrible feeling I will be on this for a further 4 days Feb 08 15:46:55 madmcphil, have you tried other devices Feb 08 15:49:42 the funny thing is it's not meant to work any more, the twitter, facebook, and maps api i used are all deprecated Feb 08 15:50:37 Just waiting for my Galaxy Tab to charge a bit then will try it on that as its running JellyBean Feb 08 15:57:53 I have an Activity that uses Theme.Dialog, and even if I do not setContentView, a small black box is shown with title. I can remove the title with FEATURE_NO_TITLE, but how do I avoid the small box completely? I use the Theme.Dialog because I have a preference to make it show an AlertDialog. Feb 08 15:58:16 Do I have to make it a service instead for that? Feb 08 15:58:47 So you use Theme.Dialog, but you don't want it to look like a dialog Feb 08 15:59:31 I use an AlertDialog.builder if a preference is set Feb 08 15:59:33 you can also check the layout from the android sources so you don't have to quess Feb 08 16:00:10 check there why and how the small box appears and you are one inch closer to solve the problem :P Feb 08 16:02:01 I guess I can always have a separate activity to display the dialog, but I was hoping it could be prevented Feb 08 16:02:10 Well, it looks like a dialog cus he styles it like a dialog Feb 08 16:02:25 I'm not sure what he expected Feb 08 16:03:07 Quacked: what are you trying to achieve? Feb 08 16:03:19 you also set the custom view to dialog if you want fully customized dialog Feb 08 16:03:23 als can set* Feb 08 16:03:39 can also set.. hmph..-.-' Feb 08 16:06:25 basically I want to start a hidden Activity :P Feb 08 16:07:23 ok, hidden as in empty or..? Feb 08 16:07:25 but I think I would need a service for that Feb 08 16:07:34 not empty, invisible :) Feb 08 16:07:37 if you need background task, you need to use service Feb 08 16:07:39 yeah Feb 08 16:07:41 yeah Feb 08 16:07:47 thought so Feb 08 16:08:00 yup Feb 08 16:12:10 how much time can pass between bindService() and onServiceConnected()? Feb 08 16:12:39 hey Zharf..... same thing with Jellbean on the TAB Feb 08 16:12:45 no notification Feb 08 16:15:23 madmcphil, make sure it's actually reaching that code <.< Feb 08 16:16:54 yeah just did set up another details page that basically gets launched on pendingIntent... that opens the page nicely on the right time..... just notifications not appearing Feb 08 16:17:09 very bizarre Feb 08 16:18:04 I've changed the schema of my SqliteDB to include 1 extra field but now when running I get that my table doesn't include that field Feb 08 16:18:29 I set the schema in DBHelper and used it to getWritableDatabase(), Feb 08 16:19:03 Sicp, i've never done this, but in other systems adding an entry to a model doesnt update the DB, either you have to sync the db or manually modify the table to accomodate the model changes Feb 08 16:19:15 or uninstall the app Feb 08 16:19:36 another thing, why does it insert backwards? I've set the first field to be ID, 2nd to be Date and 3rd to be Time Feb 08 16:19:56 it says "error while constructing "INSERT INTO myTable (Time, Date, ID)"....wtf Feb 08 16:25:33 uninstalling the app sorted it Feb 08 16:26:53 say descending instead of ascending on yuor query Feb 08 16:32:26 Sicp: that's because tables are created only when the database is created first time Feb 08 16:32:26 I am setting my startup activity to show fullscreen, from this activity I do some animation and on animation end I load a second activity. Problem is this, the second activity is using the Holo theme with action bar, not fullscreen so to say but when going from the first activity to the second a big white rectangle is stuck in the bottom. Has anyone encountered this? Feb 08 16:33:21 so for example if you have application in production and you want to add field to your app, you need to update the table in your sql helper clas / whatever Feb 08 16:35:49 vavirta, onUpgrade() Feb 08 16:35:55 yeah Feb 08 16:36:05 update upgrade... well not the same thing Feb 08 16:36:06 my bad Feb 08 16:36:11 I ment onUpgrade Feb 08 16:37:26 Zharf.....figured it out....and as usual was a dumb ass mistake in the manifest Feb 08 16:38:37 I had previously tested code which didnt work called AlarmNotification and my new activity which NOW works was called AlaramNotifications....one s made all the difference Feb 08 16:38:48 thank you so much for you time. Feb 08 16:38:59 kind regards Feb 08 16:39:13 * monsti declares today as M$ server patch day Feb 08 16:42:20 I am using Sherlock if that matters? Feb 08 16:43:54 it must be a bug Feb 08 16:44:50 Daani: I get the feeling no one in here knows what you're talking about. Got a screenshot? Feb 08 16:46:45 First screen is fullscreen by setting @android:style/Theme.NoTitleBar.Fullscreen property for this activity, the second activity which is started from the fullscreen activity is set to use: @style/Theme.Sherlock.Light.DarkActionBar. Problem is the screen for this second activity is scaled so there is a big white box in the bottom. This only occurs when the first activity is fullscreen. Feb 08 16:46:45 oh, yes I can provide a screen shot Feb 08 16:47:33 I'm currently keeping a dataHolder object in a class I've derived from Application. I'm using this class to get access to my dataHolder object from within the different activities by getApplication().getDataHolderObject(); Is there a better way to do this? Should i use a singleton instead? Feb 08 16:49:10 Also I want to persistently store this dataHolder object whenever my custom Application class is destroyed. I've noticed that there isn't any onDestroy method though which i can override. What's the best way to determine when my dataHolder object should be stored then ? Feb 08 16:52:22 I've used this pattern and found that it works pretty well: Singleton class which persists its data to SharedPreferences Feb 08 16:52:35 madmcphil, ah Feb 08 16:52:39 but my data has fit pretty well to SharedPreferences Feb 08 16:52:53 madmcphil, yeah I thought it would be something related to manifest Feb 08 16:53:39 here is a screenshot of how the second layout looks like coming from a fullscreen: http://postimage.org/image/eowyhjhj5/ Feb 08 16:53:44 so class with singleton pattern and getters which fetches data from prefs, and setters which puts data to prefs Feb 08 16:54:54 it looks like the bottom area has been chopped off for some reason. If I don't have the first activity in fullscreen it doesnt do this Feb 08 16:55:57 vavirta: k ty. that actually already gave me an idea on how to do it. :) Feb 08 16:56:34 np :P Feb 08 16:59:02 Hi, i'm trying to call a AsyncTask (processing audio) from within another AsyncTask's (record audio) onProgressUpdate. For some reason, the processing seems to be queued until the recording task is finished. Any Ideas why this happens? Feb 08 16:59:48 hi Feb 08 17:00:30 Because asynctasks are executed serially (on hc+) Feb 08 17:00:53 SimonVT: even if i have different classes? Feb 08 17:01:00 yes Feb 08 17:01:51 SimonVT: so would i have to create a thread manually or use service? Feb 08 17:02:05 yep Feb 08 17:02:13 I use abs and when I set requestWindowFeature(Window.FEATURE_INDETERMINATE_PROGRESS) in SherlockActivity (Theme.Sherlock.Light.Dialog) then title style is broken Feb 08 17:02:14 Well, not or Feb 08 17:02:22 You still have to use threads in services Feb 08 17:02:38 small font, no title divider, wrong padding Feb 08 17:02:43 i remember. ok. And here i thought it would eb that simple.. ;) Feb 08 17:02:53 but it occurs on ics 4.0.4 Feb 08 17:03:03 how would I go about comparing times, time of receiving XYZ and time it is now Feb 08 17:03:32 I want to know which elements are 30 minutes old.. Feb 08 17:03:35 on another device with Froyo, it looks good, proper title font, divider, paddings. Feb 08 17:04:04 where should I start to inspect this wrong behavior with ICS? Feb 08 17:04:50 Sicp: So save the time, and compare? Feb 08 17:05:13 yea but..how? the time is saved as a concatenation of calendar.get(Calendar.HOUR) + etc... Feb 08 17:05:16 and same for date Feb 08 17:05:30 Why not just save it in milliseconds Feb 08 17:05:39 it would always give me the same value when trying that Feb 08 17:06:04 calendar.setTimeInMillis(sms.getTimestampInMillis()) wouldn't work at all, always same value Feb 08 17:06:44 after it I would do get(Calendar.HOUR) from that same calendar object, though Feb 08 17:07:40 I don't know what you're doing wrong, but System#currentTimeMillis works fine Feb 08 17:08:07 that one does, but I'm not using that one to set the time of the receiving SMS, I use sms.getTimestampInMillis to do that one Feb 08 17:09:19 ugh, what a headrush, lol Feb 08 17:09:26 you see I get them and store in DB Feb 08 17:09:29 "Thank you for submitting your request for an expedited review." Feb 08 17:09:30 lol Feb 08 17:09:34 oh bah Feb 08 17:09:41 then as they come out of the DB, that's when I need to compare and act upon the resut Feb 08 17:10:24 Daani: I've never seen such a thing; I would bet it's an error on your end. Put it in hierarchyviewer and see what's up Feb 08 17:16:13 I'm one of the top 5% viewed Linked profiles? Feb 08 17:16:19 Linkedin Feb 08 17:16:24 Odd Feb 08 17:16:39 you lucky :-P Feb 08 17:17:20 Ologn, lucky you! Feb 08 17:17:24 Ologn, how do you know that? Feb 08 17:18:28 kaneda^, they sent me a message Feb 08 17:18:39 http://www.opengardensblog.futuretext.com/archives/2013/02/i-am-a-top-5-viewed-profile-on-linkedin.html Feb 08 17:18:48 Ologn, interesting, i get like 4-7 hits/day on my profile, nothing crazy Feb 08 17:18:55 http://modragonfly.wordpress.com/2013/02/07/my-linkedin-profile-is-one-of-the-top-5-most-viewed-linkedin-profiles-for-2012/ Feb 08 17:19:05 http://www.biskero.org/top-5-linkedin-most-viewed-profile-in-2012-5981?utm_source=rss&utm_medium=rss&utm_campaign=top-5-linkedin-most-viewed-profile-in-2012 Feb 08 17:19:11 http://planetlotus.org/profiles/bob-balfe_112042_i-made-the-top-5-viewed-profiles-on-linkedin Feb 08 17:19:14 you're pretty special dude Feb 08 17:19:32 It's not special, it's odd Feb 08 17:19:41 I had my profile turned off most of the year Feb 08 17:19:51 then you been hacked Feb 08 17:20:25 there should be some sort of bumper sticker, "Been Hacked" Feb 08 17:21:08 Ologn, i hav shown up 20 times in search results in 3 days, that's about as good as it gets for me Feb 08 17:23:02 j #python Feb 08 17:23:04 ups Feb 08 17:24:06 alright, so I fixed the calendar issue, I now have a calendar in which I save the exact time where an event is triggered Feb 08 17:24:14 but..that's in my Receiver class, that's where that gets done Feb 08 17:24:32 the comparison otoh is to be done in my main Activity Feb 08 17:25:05 do anyone know of a way to make the GridView properly wrap it's rows height? I have items with height = wrap_content and I want the gridview to adapt row to the taller one of each row centering the others (or matching them with the other if possible) -- do you know if that can be done with the Android GridView or if there's some custom GridView around that does that? Feb 08 17:26:03 http://stackoverflow.com/questions/2513832/how-to-send-data-from-broadcastreceiver-to-an-activity-in-android ? Feb 08 17:26:09 seems like fail Feb 08 17:26:18 mastro: I have some code you can look at. I don't know if it would be helpful or not Feb 08 17:26:24 Hey. Feb 08 17:26:37 ah, what if the activity is gone! Feb 08 17:26:41 I have a question: What is the best way to detect swipes on a SurfaceView? Feb 08 17:26:51 I currently have this code: http://pastebin.com/50cYeYMH , but it is very buggy. Feb 08 17:27:44 mastro, http://ow.ly/hy75F Feb 08 17:27:51 Anickyan: do you want to do some action like really swiping some stuff Feb 08 17:27:57 e.g. like turning pages, or such Feb 08 17:28:26 (or like viewpager) Feb 08 17:28:45 Well, I just want to detect ANY swipe with a velocity greater than 15 pixels. Feb 08 17:29:01 And it should be generalised to up, down, left or right. Feb 08 17:29:09 If that's a proper way to say it. Feb 08 17:29:59 Hey Guys! Feb 08 17:30:27 i guess I understand it, just some notificationon the other stuff, since you know best what you are doing: if you want to turn pages or anything like that, begin the movement frmo the very first moment the swipe started (so the user will have immediate feedback) very bad example is the adobe acrobat reader, that let you finish the swipe before turning pages, you have no clue if you actually turning pages right now, until you f Feb 08 17:31:02 but for game stuff or such (what i somehoe expecting you are doing :D) whats so bad about what you are trying to do with your code? Feb 08 17:31:12 What is better for GCM? Tomcat 6 or Jetty ( or Java App Engine) on a Ubuntu server? Feb 08 17:31:13 I'm making a game where a "ball" moves when you swipe. Feb 08 17:31:26 It only moves in the said directions. Feb 08 17:31:39 except you doing two if's where there would be one enough :D Feb 08 17:31:46 Styler2go, i've only ever used tomcat, it works well but you need to be exceptionally careful security wise Feb 08 17:31:55 What? Feb 08 17:32:01 why not if(dx < -15 && dy > -45 && dy < 45) Feb 08 17:32:05 instead the nested if Feb 08 17:32:22 Didn't change that after I changed everything from else if to if. Feb 08 17:32:25 So that's why. Feb 08 17:34:26 I would btw implement it other way (but also behaves a bit different): I would calculate the angle and distance you moved, activating the swipe, when you moved far enough, and using the angle to determine which of the four directions it was Feb 08 17:35:24 but ofc that have a bit different behavior, since it always activates a move, as long as you crosed the required distance, even if you draw e.g. upright Feb 08 17:36:30 why is it so difficult to setup gcm? :D Feb 08 17:36:48 Does anyone know how to figure out why an app would crash when downloaded from the play store but not when run from the Eclipse project? Feb 08 17:36:58 Styler2go: it is? try to set up a push infrrastructure all by yourself: THAT is difficutl Feb 08 17:37:19 i never got it working :D Feb 08 17:37:26 Styler2go: it's really not difficult. Feb 08 17:37:30 timroes: I'mma try that. Feb 08 17:37:43 Ologn, let me see, thanks Feb 08 17:38:01 i will just use a timer wich sends a request every half hour... :D Feb 08 17:38:39 nice, your users will love that Feb 08 17:38:46 i know Feb 08 17:38:47 I hope you like 1-star ratings Feb 08 17:38:52 uhm Feb 08 17:38:59 i have abotu 16 5 star rating Feb 08 17:39:02 and 0 on estar Feb 08 17:39:17 and 0 2 star ratings :) Feb 08 17:39:54 hey guys Feb 08 17:40:00 hey :) Feb 08 17:40:12 can someoen please help me understand fragments? I think I have to use it Feb 08 17:40:12 Ologn, thanks, but nope it's not what I need :) Feb 08 17:40:26 I read the fragment article on the developer android site Feb 08 17:40:36 and watched some youtube videos, but don't know how to implemtn it Feb 08 17:40:56 how do I create a reference to a layout_height value (dimension | enumeration of wrap_content, match_parent) I can reference from a layout and change in styles ? Feb 08 17:40:57 yeah same here.. thats why i never used it :-/ Feb 08 17:41:09 possibly not using themes Feb 08 17:41:23 I have an activity with tab+swipe as the navigation Feb 08 17:41:37 so there are three tabs, each tab will display different info Feb 08 17:42:02 so dunno how to display the info, I'm guessing I need to create 3 fragments Feb 08 17:42:05 and assign them to each tab Feb 08 17:42:08 is that right? Feb 08 17:43:17 StingRay_ here? Feb 08 17:43:29 Styler2go: ish Feb 08 17:43:35 I just woke up Feb 08 17:43:40 hey StingRay_ :) good morning Feb 08 17:43:41 on my 1st coffee Feb 08 17:43:49 well it's in the afternoon here Feb 08 17:43:51 but yeah Feb 08 17:43:53 cheers Feb 08 17:44:03 anyone? Feb 08 17:44:25 you know my app... i want to redesign it to match the android design guideline... how should i create the startscreen? like an inforation center? Feb 08 17:44:48 whats the purpose of the start screen ? Feb 08 17:44:54 is it needed? Feb 08 17:45:00 what will is show? Feb 08 17:45:10 right now it only shows 5 buttons Feb 08 17:45:36 and i want to remake it... maybe liek an information center or something... Feb 08 17:47:06 Styler2go: tbh, you should design it, and the flow, so you have a clear idea and can see how things work Feb 08 17:47:11 or would work (rather) Feb 08 17:47:21 tbh? Feb 08 17:47:27 just my opinion :) Feb 08 17:47:34 to-be-honest Feb 08 17:47:55 hmm Feb 08 17:48:12 ok i will think about how i could make it like google wants it :D Feb 08 17:51:29 StingRay_, do you know how to use fragments/ Feb 08 17:51:30 ? Feb 08 17:57:09 Rob|boR: for my part yes Feb 08 17:57:13 why? Feb 08 17:59:15 if I have an activity with tab+swipe, how do I add info into each tab section Feb 08 17:59:23 I'm guessing I need to use fragments right? Feb 08 17:59:39 not really Feb 08 17:59:58 do you know what a fragment is ? Feb 08 18:00:48 Hi folks, I have an app installed that asks for a password when opening other apps. Now I dont know which app that is. I want to uninstall it. How can I find out which app that is? Feb 08 18:01:11 I read the article about fragments Feb 08 18:01:42 latenite: #android or #xda-devs maybe better to discuss Feb 08 18:01:45 I'm goign to be pulling live data from a server, and I'm categorizing them in 3 tabs Feb 08 18:02:09 coming back Feb 08 18:02:32 StingRay_, ook thx Feb 08 18:02:33 , which ad-framework do you use for making ads in your app? GoogleAdMob? Feb 08 18:03:54 Rob|boR: sounds ok Feb 08 18:04:04 so what do you recommend I do? Feb 08 18:04:45 well is this not a game of design/try/test/implement ? Feb 08 18:05:28 Rob|boR: not really sure how to answer your question.... Feb 08 18:05:39 "start/try" i guess Feb 08 18:07:38 yeah I'm trying to create fragments, but it won't let me edit the design of that fragment Feb 08 18:08:44 Rob|boR: then I suspect you dont know what a fragment really is Feb 08 18:09:11 I'm trying to run android emulator on Ubuntu 12.04 and it runs fine from command line ,but don't work on eclipse Feb 08 18:09:36 and maybe the decision to use fragments is based on the wrong understanding ? Feb 08 18:09:48 not saying it is...just more of a question :) Feb 08 18:10:29 most likely right Feb 08 18:10:51 also I take it your new to android ? Feb 08 18:10:56 and or programming ? Feb 08 18:11:06 ctate: are you there? Feb 08 18:11:09 so probably best to learn doing something simple Feb 08 18:11:38 cause frustration and anger lead to resentment ..... and combined they are the biggest hinderances to learning Feb 08 18:12:18 well maybe some1 chopping of your head is a bigger hinderance, but not by much! Feb 08 18:17:15 tarelerulz, do you have the ADT plugin? Feb 08 18:17:47 spobat, I use Admob, Millennial Media and Inmobi Feb 08 18:17:51 i'm having trouble with eclipse, its complaining about @Override functions not overriding things Feb 08 18:17:59 like BaseAdapter.getCount() Feb 08 18:18:34 clever, that is usually related to your Java version Feb 08 18:18:49 Ologn: *looks* Feb 08 18:19:09 clever, you might have java 1.5 compliance checked somewhere in Eclipse...or something along those lines Feb 08 18:19:09 Ologn: 1.7.0_07 Feb 08 18:19:49 yeah there it is, *tweaks* Feb 08 18:19:55 Ologn how do you tell Feb 08 18:19:59 Ologn, with which do you earn most? Feb 08 18:20:29 tarelerulz, I think it is discussed here - http://stackoverflow.com/questions/8220786/java-eclipse-override-error Feb 08 18:20:30 mobfox looks quite good, btw Feb 08 18:21:26 I meant ADT plugin sorry Feb 08 18:21:29 Ologn: now it claims there is a problem in the project, but doesnt say which file Feb 08 18:21:31 spobat, it depends on a variety of factors - fill rate (and by which country), eCPM etc. Feb 08 18:22:00 Android requires compiler compliance level 5.0 or 6.0. Found '1.7' instead. Please use Android Tools > Fix Project Properties Feb 08 18:22:20 5 and 6 are not valid choices Feb 08 18:22:27 Ologn: do i need to install a newer jdk? Feb 08 18:22:29 Ologn, I see :S Feb 08 18:22:43 it is `a bit` more complicated as it superficially might look. Feb 08 18:23:10 what about adwhirl? :D Feb 08 18:23:29 clever, http://developer.android.com/sdk/index.html Feb 08 18:24:26 clever, the docs say use JDK 6. I don't know about alternatives, but they say 6 works. Feb 08 18:24:57 i'll try that out Feb 08 18:25:00 spobat, I've used Adwhirl, and Admob mediation a little. Google is trying to push Adwhirl to Admob mediation. Feb 08 18:25:24 spobat, this is a good page to watch: http://www.appbrain.com/stats/libraries/ad Feb 08 18:25:24 aren' they the same? Feb 08 18:25:26 both are from google Feb 08 18:25:36 I think they will get merged Feb 08 18:26:18 spobat, no. Adwhirl is older and more "legacy" but has backfill. Admob mediation allows selection by country, but has no backfill as far as I know. Feb 08 18:26:51 ah, okay. Thanks for that piece of information and the great link Feb 08 18:27:05 spobat, I've found Admob and Millennial Media to be good. Inmobi is OK, although it seems to take twice as long to set anything up with them. Feb 08 18:27:26 hehe, okay :) Feb 08 18:27:59 are ads really worth it Feb 08 18:28:09 I can see them being a + on free games Feb 08 18:28:12 spobat, that link is good because it shows you what ad libraries are on the most # of installs. If a library is in a lot of installs, it is a good sign it is a decent library. I'd follow # of installs over # of apps. # of installs means they make money, # of apps means nothing. Feb 08 18:28:19 Ologn: ugh, i need to register just to download the jdk Feb 08 18:28:24 Ologn: and the pw requirements are nuts Feb 08 18:29:04 StingRay_, one of my apps made 1100 last month on ads Feb 08 18:29:18 and 1060 in December Feb 08 18:29:39 but how many users does that have ? Feb 08 18:29:47 i mean thats got to be millions Feb 08 18:29:50 ? Feb 08 18:30:01 Ologn, yep, I totally agree. Feb 08 18:30:15 now do I get internet access under the emulator? Feb 08 18:30:22 StingRay_, 550,000 Feb 08 18:30:32 oh Feb 08 18:30:39 <--- a little shocked Feb 08 18:31:06 but you do some cheaty thing where the ad bounces to where the user clicks right ? :) Feb 08 18:31:13 then opens Feb 08 18:31:14 :) Feb 08 18:31:19 StingRay_, you can't really do that any more Feb 08 18:31:32 StingRay_ well for Admob any how Feb 08 18:31:36 what app is it if you dont mind me asking ? Feb 08 18:31:59 StingRay_, https://play.google.com/store/apps/details?id=com.panaceasupplies.android.reader Feb 08 18:32:03 oh and thanks for the info btw Feb 08 18:32:31 Ologn: is it per view, or per click? Feb 08 18:32:33 Ologn: would you write some blog-entry/paper/whatsoever on your experience with the different ad frameworks and such, backed by your numbers? I am really interested in collection that kind of articles that really have backed numbers, so you can use them if you try to convince customers Feb 08 18:32:44 clever, per click Feb 08 18:32:49 ah Feb 08 18:34:04 should all styleable declarations go in the same file? Feb 08 18:34:09 attrs.xml (for example) Feb 08 18:34:24 It doesn't matter Feb 08 18:34:37 timroes, I've written a little here, but not that much useful - http://www.vartmp.com/blog/2012/03/27 Feb 08 18:34:58 thanks Simon Feb 08 18:35:46 Ologn: better than nothing :) Feb 08 18:35:54 will save it for later reading Feb 08 18:43:42 Q: what's the difference between setPadding and setPaddingRelative?? Feb 08 18:44:51 given an APK, is there a way to generate the odex for it? Feb 08 18:45:03 timroes, if I ever really use Admob mediation, I would write a blog post. The one app I put on Admob mediation was downloaded by almost no one. Feb 08 18:45:39 kkimlabs: setPaddingRelative sets a start and end (isntead of left or right) padding. So it takes the reading direction right to left or left to right into account Feb 08 18:45:54 timroes, thanks! Feb 08 18:46:57 Nowadays I release new apps which I plan to use ads with, with all the ad Manifest permissions, as well as the ad jar's. But I put an ad webview house ad to my web apps. If I see people are actually downloading the app, then I turn it on on Admob and Admob mediation, and if it really takes I would turn on MM and Inmobi too. Feb 08 18:47:23 Otherwise it clutters up my screen...I even get punished if my overall click-through-rates drop off Feb 08 18:48:17 Gentlemen, I have a webview in an activity. If I add configChanges="screenSize" to my Manifest then when i go to lanscape and back, the webview will be zoomed in to the same level as in landscape. Canzoomout is false, but i can double tap to zoom out. Any idea how to resize during orientation change appropriately? Feb 08 19:10:37 Can i tell an ImageView thet its width and height shoudl mathc the image? Feb 08 19:10:45 WRAP_CONTENT, or? Feb 08 19:14:01 WRAP_CONTENT, and i think there's a fitbounds or something propery that you want to set true as well Feb 08 19:14:04 read the docs :) Feb 08 19:16:48 I've used DateFormat to retrieve dates of events occurring, so can I do comparison on those in the DB? Feb 08 19:17:30 something like this, http://stackoverflow.com/questions/10832864/compare-dates-stored-as-string-in-android-sqlite-database Feb 08 19:17:48 is that applicable to when I get them through DateFormat? (Feb 8, 2003 9:30:00 PM) Feb 08 19:20:00 hi all guy Feb 08 19:21:19 i've build an app that use usb host on a MK-802 II device. Every time that i use this app with usb host for reading nfc tag (the reader is connected to usb port of mk802 ii) appear a confirmation message that ask me about permission on usb host Feb 08 19:21:25 there is some way to bypass this? Feb 08 19:25:52 can i let a scrollview permanently scroll just a liiiittle bit to the right? Feb 08 19:30:31 when I'm about to create a key for signing my app, where is the key generated? (linux) Feb 08 19:34:36 cant you search for the filename? Feb 08 19:36:22 Styler2go: what do you mean ? Feb 08 19:37:28 I made a horizontal scrollview with images in it and i want to slightly let it scroll to right.. but i maybe found a way to do that... i am currently writing the timer for it.. wait :D Feb 08 19:39:22 k my way is useless Feb 08 19:40:29 Styler2go: key was genereated in current directory. I thought it'd be generated in e.g. ~/.android but no. Feb 08 19:40:41 Styler2go: i just wanted to know beforehand but then i read it in the docs. Feb 08 19:40:43 i have tried it with the command scrollTo , getMeasszredWidth() and a varibale xScroll... http://pastebin.com/DCvRQ3jx Feb 08 19:42:04 getMeasuredWidth returns the view width right ? Feb 08 19:42:13 ... i got it Feb 08 19:42:25 forgot to set xScroll into the scrolLTo... Feb 08 19:49:37 StingRay_: Normally a ImageView sets its width and height to its image, or? Feb 08 19:50:01 depends on parent and imageView scaleType Feb 08 19:50:10 parents can be strict ! Feb 08 19:50:15 :) Feb 08 19:50:22 mine weren't ! Feb 08 19:51:02 so i will try different scaleTypes Feb 08 19:51:05 width = parent constraints + (imageView.scaleType + source image) Feb 08 19:51:32 source image dimensions * Feb 08 19:53:07 hmm Feb 08 19:54:46 scaleType helped me to find an even better look :) Feb 08 20:05:51 Hey all, has anyone had problems with the editor for .cpp files in the latest ADT bundle? Feb 08 20:06:06 it just does not display .cpp files in a readable form... at all Feb 08 20:17:55 hey guys. i'm fairly new. trying to start running the android SDK Feb 08 20:18:10 I unzip on my windows 7 professional 64 bit machine and try to run "SDK Manager.exe" Feb 08 20:18:28 a command prompt window briefly appears but closes before I can see what it says and that's all Feb 08 20:18:50 so i try to open SDK Manager through the command prompt instead of windows explorer. no output. Feb 08 20:18:56 what's happened there? Feb 08 20:19:02 by the way, i went with latest stable build Feb 08 20:19:10 do you have java installed? Feb 08 20:19:16 i dont have windows - justguessing Feb 08 20:19:20 i should ... i've run jdownloader and minecraft Feb 08 20:19:40 but you know what, it could be just that simple. let me double check. :) Feb 08 20:19:48 maybe JAVA_HOME needs to be set ? Feb 08 20:20:06 (and in your path) Feb 08 20:20:19 i'll check that too, thanks :) Feb 08 20:20:50 I have to tell you guys thanks <3 for all the patience with me :D Feb 08 20:23:38 LOL, just installing Java did it, g00s Feb 08 20:23:50 :) Feb 08 20:23:56 oh noes, the US has less sun than germany! Feb 08 20:24:00 but now I'm confused: why were Java-based applicaitons like jDownloader able to run for me before I installed Java? Feb 08 20:24:01 hi to all Feb 08 20:24:20 maybe windows 7 ships with an older version or something?? Feb 08 20:24:21 BenMcLean: runtime and dev kit different Feb 08 20:24:29 haha yeah g00s, did u read this news? Feb 08 20:24:31 look at the requirements to ADT Feb 08 20:24:32 BenMcLean: dunno; next step is to make sure eclipse compiler settings are set to java 6 Feb 08 20:24:39 Styler2go: :) Feb 08 20:24:52 we laughed at work about this :D Feb 08 20:24:55 JRE != JDK Feb 08 20:24:57 g00s, I plan to use the eclipse that comes with the SDK. doesn't it already come with that set up? Feb 08 20:25:17 yes it comes fully setup BenMcLean Feb 08 20:25:18 what's happen if i assign the same id to two different widget in two different activityes? Feb 08 20:25:21 BenMcLean: oh yeah, StingRay_ has a point kinda :) :) did you install the JDK ? Feb 08 20:25:27 oh, and can i still make desktop apps in the Eclipse that comes in the SDK or will it only compile for android? Feb 08 20:25:34 make sure you have 'javac' Feb 08 20:25:37 wanna make some libgdx games ^_^ Feb 08 20:25:54 i'll go get JDK then Feb 08 20:25:58 Hello, anybody know how to do game-appropriate keyboard input? Using onKeyDown and onKeyUp in SurfaceView results in most keys receiving an automatic immediate key Up event after pressing it. Feb 08 20:26:39 http://developer.android.com/design/downloads/index.html those icons are free to use, or? Feb 08 20:27:05 Styler2go: yes Feb 08 20:27:15 they are part of android Feb 08 20:27:15 i love google for that Feb 08 20:27:54 i'm kind of excited cause last semester i completed a course in game development and now for the first time, i get to apply these new skills on my own idea(s) Feb 08 20:28:04 i think google is one of the most lovable companies.. Feb 08 20:28:07 course we only did desktop then Feb 08 20:28:09 Styler2go: use android asset studio (google it, or in eclipse) to create that icons in all densities Feb 08 20:28:49 ? they have all densities packed in this package? Feb 08 20:29:06 ok not ldpi but... who cares about ldpi :D Feb 08 20:29:15 Styler2go: but you need to copy them all over :) Feb 08 20:30:46 oh and, can i redownload old copies of my apk? Feb 08 20:32:47 would extending ProgressDialog be the best way to implement your own custom loading dialog? Feb 08 20:34:07 Loading dialogs sucks! Feb 08 20:34:16 SimonVT: +1 Feb 08 20:34:23 But no, you should probably just make a DialogFragment with a custom view Feb 08 20:34:25 tnzr: really only do loading dialogs if you have no other choise! Feb 08 20:34:41 and most of the times there are other choices :) Feb 08 20:34:58 hehe Feb 08 20:34:59 thanks guys Feb 08 20:35:05 yeah it's not really my choice :( Feb 08 20:35:13 ok well thanks for the admittedly somewhat obvious advice g00s, haha ^_^ Feb 08 20:35:19 err, I have to make a custom loading dialog..it is my choice how, though, so thanks for the suggestions Feb 08 20:35:31 I will try a DialogFragment Feb 08 20:35:32 i feel kinda dumb for asking that now Feb 08 20:35:43 BenMcLean: was it what I said ? Feb 08 20:35:50 JRE JDK ? Feb 08 20:35:52 timroes: You should put your axmlrpc library in maven Feb 08 20:36:12 StringRay_, prolly Feb 08 20:36:28 well I mean it works now right ? Feb 08 20:36:41 SimonVT: I am not using maven, so i am absolutelty unexperienced. The pom file wrote someone else, but if you explain how and what to do, i can do so :) Feb 08 20:37:03 i thought maven decides to take files, didn't know ppl can push them there :) Feb 08 20:37:29 Yeah, devs upload their own libs Feb 08 20:38:18 All I had to do was go on some website, open an issue or something, moments later, JakeWharton had it all sorted out for me :p Feb 08 20:38:32 :D Feb 08 20:38:36 yeah sounds like a plan :D Feb 08 20:40:02 its estimated that the N4 has now sold 1 million unt=its Feb 08 20:40:05 I'm not quite sure how it works yet Feb 08 20:41:16 StringRay_, yeah. well, i haven't launched Eclipse but I at least downloaded the SDK which is all I'm doing at this moment. cya l8r :) Feb 08 20:41:26 er, downloaded & installed, to work on later Feb 08 20:41:46 timroes: maven == the only way :-) Feb 08 20:42:36 fredcooke: might be. but if you develop a project alone, somehow ant scripts have been satisfiying for me till now :) Feb 08 20:42:41 dont get too attached, forthcoming android tools are using gradle :) Feb 08 20:42:53 nice Feb 08 20:43:05 spring is built with gradle, can't be too bad :-) Feb 08 20:43:13 >.> Feb 08 20:47:17 woah, a bug report contains loads of private date Feb 08 20:47:24 data * Feb 08 20:47:38 sell it! Feb 08 20:47:39 I've removed lots of stuff so far, my email address, contact number, friend numbers Feb 08 20:47:53 good thing I checked it first :s Feb 08 20:49:15 i can add a search to the actionbar or? Feb 08 20:49:49 Styler2go: http://developer.android.com/guide/topics/ui/actionbar.html Feb 08 20:50:25 is it difficult to setup? Feb 08 20:50:29 for a custom listview? Feb 08 20:51:00 Styler2go: read the link and see by yourself Feb 08 20:51:25 what's difficult? difficult to me might be trivial to you Feb 08 20:55:17 g00s: nothing since early october on the page here, and a LONG list of "NO!"s http://tools.android.com/tech-docs/new-build-system Feb 08 20:55:39 it might be in a preview version of the tools Feb 08 20:56:02 seems like it has a long way to go, that's all Feb 08 21:00:05 hey, this isn't related specifically to android development, but do any of you happen to know if there's a way to transfer ownership of your google play developer account to someone else? Feb 08 21:02:05 i jumped the gun on registering an account for my lab (including paying the $25 fee, for which i've been reimbursed), but now i'm in the sticky situation of being the gatekeeper for adding the rest of the devs Feb 08 21:02:09 glad to see my chrome has the outdated flash player >.> Feb 08 21:02:39 indeed :< flash on chrome is a nightmare wrapped in an enigma Feb 08 21:03:26 remember the days when android fans loved to tout that the os had flash support :) Feb 08 21:04:09 because Apple refused to permit it Feb 08 21:04:15 then Adobe pull the rug out :( Feb 08 21:04:28 at least those 2 companies had smarts in this case :D Feb 08 21:04:33 s/:(/:)/ Feb 08 21:05:30 they dont tell where i can handle inputs of the searchview? Feb 08 21:05:47 ctate: does the OS have support for CMAS or is this baked in at a deeper level ? http://www.nationaljournal.com/tech/the-supercharged-technology-behind-the-nemo-blizzard-emergency-alert-20130208 Feb 08 21:06:28 i don't know about the telephony end of things, really Feb 08 21:06:43 i certainly know we're aware of it, so there's probably at least *some* platform plumbing for it Feb 08 21:11:06 Styler2go: there's a link from that page to this one http://developer.android.com/guide/topics/search/search-dialog.html Feb 08 21:11:52 so it actually IS difficult to make this :o Feb 08 21:11:58 (for me) Feb 08 21:13:11 It's not that hard Feb 08 21:13:17 you just have many options Feb 08 21:13:47 you can simplify this a little bit by listening to the text change from the search view Feb 08 21:13:49 but.. the problem is.. i dont know how to link this with my custom list view .. Feb 08 21:13:58 this way you don't need to wait for an intent Feb 08 21:14:42 is your search gonna be like a filter for the elements on this view? Feb 08 21:14:59 yes, what else could it be? Feb 08 21:15:00 Styler2go: how very odd, I'm just implementing a search Feb 08 21:15:13 how do you populate your list? Feb 08 21:17:22 what exactly do you want o know? final List adapter = new List(this, R.layout.teilnehmerlist, ls);teilnehmer = new ListView(this);teilnehmer.setAdapter(adapter);LinearLayout layout = (LinearLayout) findViewById(R.id.theList); layout.removeAllViews(); layout.addView(teilnehmer); Feb 08 21:17:24 this maybe? Feb 08 21:18:32 waaah internationalized variable names... Feb 08 21:18:36 thats funny, StingRay_ :D But i think you have it very ueasy... Feb 08 21:19:18 teilnehmer = subscriber... Feb 08 21:19:21 teilnehmer das ist sehr gut Feb 08 21:21:31 ListItem[] ls = (ListItem[]) entry.toArray(new ListItem[entry.size()]); this line creates all them items for the listview Feb 08 21:21:46 I have a gridview which would contain max of 6 images , i want depending on number of images .. the images should center themselves from the screen .. is it possible ? Feb 08 21:21:57 or better, it fills all these informations in ls Feb 08 21:22:07 Styler2go: so, in order to implement the search you must get the query, fetch the elements you want to present and then actually present them to the user Feb 08 21:22:22 could you get to put the search view in your action bar? Feb 08 21:23:05 yes the search view is there Feb 08 21:23:08 looks great Feb 08 21:23:33 "Teilnehmer" is the word used for that? Neat. Feb 08 21:23:38 maybe i will just use my search which i have right now... ( i already have a search, but its.. very bad) Feb 08 21:23:51 * ctate always had the most trouble with just building up vocabulary Feb 08 21:24:47 someone please answer if it can be done or how... i have tried this again and again and i am failing Feb 08 21:25:48 Styler2go: it gets easier if you break it into those 3 problems and solve them separately... good luck when you try it :) Feb 08 21:26:35 ctate: canadianc0w said, I should ask you, why auto verifier hasn't added to my commits in AOSP yet, though they have reviews? He said, auto verifier should have already verified them, but right now nothing happened. Feb 08 21:28:16 Styler2go: looks better with actionbar, now you should move the actions (e.g. search view and sort action) to it :) Feb 08 21:28:26 uhm Feb 08 21:28:31 just got an update :) Feb 08 21:28:36 yes Feb 08 21:28:40 don't know when you updated it in play store :) Feb 08 21:28:48 but my current "search" is ugly Feb 08 21:29:08 it just sends to the server the query and the server fitlers it and the app redownlaods the filtered data Feb 08 21:29:24 Styler2go: what you mean I have it easy? Feb 08 21:29:29 Styler2go: http://developer.android.com/guide/topics/ui/actionbar.html#ActionView Feb 08 21:29:37 i think u are a "better coder" than me Feb 08 21:29:46 so you will have it easier to to this :) Feb 08 21:29:50 I'm a 3D Tech artist Feb 08 21:29:59 how does that make me a coder :) Feb 08 21:30:05 or better than anyone for that matter Feb 08 21:30:07 :) Feb 08 21:30:15 better than me i think^^ Feb 08 21:30:25 StingRay_, artists aren't better than anyone, obviously Feb 08 21:30:45 kaneda^: simple artists no, I agree Feb 08 21:30:50 Feb 08 21:30:58 tech artists...well thats diff Feb 08 21:31:05 kaneda^: :D Feb 08 21:31:41 I have the freedom to create a t-rex and a goat Feb 08 21:31:45 make them talk Feb 08 21:31:57 and makeout Feb 08 21:32:03 there is no better freedom than that Feb 08 21:32:04 well, that beats my job Feb 08 21:32:11 it's like being GOD!!!! Feb 08 21:32:38 lil less Feb 08 21:32:44 so Feb 08 21:32:49 I would like to see that Feb 08 21:32:50 should i leave my ugly search? Feb 08 21:32:55 * timroes praises his new god StingRay_ Feb 08 21:33:00 :) Feb 08 21:33:04 * StingRay_ basks Feb 08 21:33:39 I can make a chicken sh*t out and elephant .... Feb 08 21:33:43 Styler2go: you should perhaps implement it a bit better with the server stuff, and I would design it to use actionview and not that... ehm ... pseudo text box, but way too small, whatsoever :D Feb 08 21:34:00 StingRay_: you can't! *looking shocked* Feb 08 21:34:34 but the core, that the server makes the search, i can leave like this? Feb 08 21:34:43 yeah that you can Feb 08 21:34:48 ok Feb 08 21:34:49 if you wish so :D Feb 08 21:34:52 i dont Feb 08 21:35:04 but the other thing is to difficult for me ...i think... Feb 08 21:35:51 yeah small steps Feb 08 21:36:20 http://pastebin.com/3RERvAK5 thats my current search Feb 08 21:37:23 i will change this to actionview now Feb 08 21:41:35 Ologn: Ads onFailedToReceiveAd(Ad request successful, but no ad returned due to lack of ad inventory.) Feb 08 21:41:51 can anyone tell me what this error means? D/NvOsDebugPrintf( 9198): Couldn't open /sys/bus/nvhost/devices/host1x/syncpt/22/max Feb 08 21:41:56 if it helps, I'm using a Galaxy Tab 10.1 with a Tegra 2 processor Feb 08 21:41:58 Ologn: from what ive read, it should start up after 2mins, but its been doing this for an hour now Feb 08 21:43:18 lol i am starting to love this SearchView Feb 08 21:46:17 ehrm, why cant i use images with for example 2_ or 1_ on the beginning? Feb 08 21:46:33 So anyone able to give me an answer on that? Feb 08 21:46:45 Styler2go: violates java variable naming rules Feb 08 21:46:59 can i change to another JDK? Feb 08 21:47:04 ...no Feb 08 21:47:06 nope Feb 08 21:47:17 i don't think that varies from JDK to JDK anyway Feb 08 21:47:18 i am asking because it tells me that.... Feb 08 21:47:51 http://ft.trillian.im/f9a4bf4963860c6af13335c6d005f99c2496a025/6ehTUYiUZl19frrV7nruKpLz88EcD.jpg Feb 08 21:48:58 ( the quick fix is not working, thats why i am asking) Feb 08 21:49:12 well.. that error not making sense for the problem aside.. no, android dev requires jdk 1.6 Feb 08 21:49:46 ok :) Feb 08 21:50:06 why the hell android named their pictures like that... Feb 08 21:50:53 what pictures? Feb 08 21:51:20 underscores? what Feb 08 21:51:20 anyone happen to know a good icon pack for language prefered if the icones are name something like en.png da.png.... since i need to load the icons from language not contry Feb 08 21:51:23 http://developer.android.com/design/downloads/index.html thosew Feb 08 21:52:18 Styler2go, the thing with them is that you can't start a variable name with a number in java, so you'll need to change the filename Feb 08 21:52:25 Seriously Feb 08 21:52:32 if you guys can't help just let me know Feb 08 21:52:36 so I can maybe look elsewhere Feb 08 21:52:53 barque can u tell ur problem again? :-/ Feb 08 21:53:03 [16:40] can anyone tell me what this error means? D/NvOsDebugPrintf( 9198): Couldn't open /sys/bus/nvhost/devices/host1x/syncpt/22/max Feb 08 21:53:10 [16:40] if it helps, I'm using a Galaxy Tab 10.1 with a Tegra 2 processor Feb 08 21:53:17 barque, no clue, and some patience, not many people are too actively helping Feb 08 21:53:25 i guess thats not even a question for this room Feb 08 21:53:29 barque also did you just seriously ask everyone who has no idea of your problem to tell you so Feb 08 21:53:30 ??? Feb 08 21:53:31 lol Feb 08 21:53:38 or are you getting this when developing an application? Feb 08 21:53:42 well a few would help Feb 08 21:53:53 timroes, I'm developing of course Feb 08 21:53:57 using NDK and ESGL 2.0 Feb 08 21:53:57 http://android-dev-tips-and-tricks.blogspot.com/2012/08/so-you-need-help.html Feb 08 21:54:19 and MediaPlayer as well Feb 08 21:54:23 (Java class) Feb 08 21:54:27 and of course, needless to say, JNI Feb 08 21:55:22 i would imagine that it means that either that file doesn't exist, or process 9198 isn't +r for it. Feb 08 21:55:36 happens after 40 minutes of gameplay Feb 08 21:55:40 and the file is there Feb 08 21:56:01 it's one of those files that is tied to the system and changes all the time Feb 08 21:56:12 tied to the (Tegra) graphics driver perhaps Feb 08 21:56:13 i'd be googling around to figure out what host1x and syncpt mean. Feb 08 21:56:23 i'm gonna guess it has something to do with vsync. Feb 08 21:57:03 I've googled it to death Feb 08 21:57:14 only thing that pops up is IRC logs related to Ubuntu Feb 08 21:57:19 and point the finger at the driver? Feb 08 21:57:44 My best guess is that either the driver screws up Feb 08 21:57:48 probably barking up the wrong tree then. it's only a Debug message anyway; doesn't seem to indicate a severe error. Feb 08 21:57:52 or I'm asking too much of it Feb 08 21:58:06 there is literally no other error Feb 08 21:58:17 barque: is it causing a problem? Feb 08 21:58:20 and the debugger attached would not even report anything Feb 08 21:58:25 well.. what's the symptom, is what i'm getting at. Feb 08 21:58:27 it's causing the application to crash Feb 08 21:58:35 with no error Feb 08 21:58:37 no exception Feb 08 21:58:40 no stack trace Feb 08 21:58:43 nothign Feb 08 21:58:44 with what exception? Feb 08 21:58:46 logcat is as clean Feb 08 21:58:48 oh Feb 08 21:58:54 as it can get Feb 08 21:58:59 and the debugger shows zero Feb 08 21:59:01 nothing Feb 08 21:59:16 can i make multiple dropdown menus in ActionBar? just a yes/no pelase :D Feb 08 21:59:20 well, then yeah, that's clearly something beyond your control; the system is just killing the process outright Feb 08 21:59:24 all I see is that, and the next thing WIN DEATH Feb 08 21:59:36 God damn Feb 08 21:59:43 I hope if it is some driver bug or some such Feb 08 21:59:46 I can work around it Feb 08 21:59:52 email nvidia and say "sorry" to users :/ Feb 08 22:00:04 I'll investigate this some more Feb 08 22:00:08 at least one Google search turned up "pershoot" asking the same question as you in IRC half a year ago... he is a kernel developer, there's a good chance he has since found out what the problem is. If you do a /whois , he also actually appears to be online. Feb 08 22:00:35 .........now getting interesting :) Feb 08 22:00:43 barque: #cyanogenmod-dev will probably be more help Feb 08 22:01:47 Styler2go: google search it Feb 08 22:02:39 Styler2go: the answer is one of the reasons I wanted my own bar, that could be styled like a actionbar, but also different Feb 08 22:03:19 hm.. Feb 08 22:03:29 but for design still have the menu action capture Feb 08 22:04:13 there is nothing about this on the google site Feb 08 22:06:38 In speech recognition, is it possible to turn on personal speech recognition training from the application itself, by getting permission from the user to access his google account? Feb 08 22:09:02 ctate: about BT 4 / BLE. One used to have to join the Apple MFi program to use BT with an iDevice, but not with BT4. So the ecosystem of BLE devices is growing rapidly (like heart rate monitors, etc) since there is no hassle using it on iDevices now. But, android still does not support this officially. I hope you guys are looking at official support - i think this is a huge screw up. Feb 08 22:10:12 with current adoption rates anyhow, even if the next version of android has official bt4 support, no sizable portion of the market will have it any time soon. Feb 08 22:16:23 ah damn is Personalized Recognition still available only in the us? Feb 08 22:18:21 ctate: maybe google could work with TI for a demo using their SensorTag ;) http://www.ti.com/ww/en/wireless_connectivity/sensortag/index.shtml Feb 08 22:18:53 is sorting a listview as difficult as search? Feb 08 22:20:29 Styler2go: not really Feb 08 22:20:36 just like searching/sorting any data Feb 08 22:20:45 i just found a "Comperator" would thi sbe anough? Feb 08 22:21:05 ah i will just rty Feb 08 22:26:10 hmm Feb 08 22:27:05 does anyone know of any initiatives to improve incremental build times for complex lib projects? dex now supports merge to improve this, but aapt is not up to par yet Feb 08 22:27:20 i've been thinking a little about this problem and i do believe it's possible to take a similar approach as dex, in fact. Feb 08 22:28:00 basically just smash together two zip files, resources.arsc files, and the final R.java Feb 08 22:28:19 it's a bit tricky because of the need to collapse & linearize the resource space Feb 08 22:28:30 yeah ive been thinking about that. Feb 08 22:29:09 the real question is: where's the cost of aapt? Feb 08 22:29:31 does it spend most of its time building/writing resources.arsc? raw I/O copying large resources like pngs perhaps? Feb 08 22:29:52 not just copying them; it runs pngcrush etc on them too Feb 08 22:30:03 i thought that was an optional pre step? Feb 08 22:30:05 it's an interesting question. profile it. Feb 08 22:30:20 i'm strongly considering it Feb 08 22:30:23 i suspect it isn't a large part of overall build times though. Feb 08 22:30:26 did it not only do that to modified pngs ? and if you rename to uppercase PNG it skips ? Feb 08 22:30:30 for very large projects, building the final artifacts does take a lot of time in aapt. Feb 08 22:30:34 at least now that the Windows toolchain pathology has been worked around. :) Feb 08 22:33:21 ok i got it working ot sort my adapter.. but.. how can i invert the search? any ideas? :-/ Feb 08 22:34:36 ctate: what do you mean about that last part about windows? Feb 08 22:34:41 what did the windows toolchain have to do with build times? Feb 08 22:35:07 Styler2go: you mean invert the results ? Feb 08 22:35:32 yes Feb 08 22:35:38 maybe just invert the adapter? Feb 08 22:36:10 Collections.reverse() Feb 08 22:36:13 jasta: there's something wrong with mingw or something Feb 08 22:36:17 nice easy way Feb 08 22:36:22 oh well, i dont care at all about windows so whatever :) Feb 08 22:36:34 on certain workloads the Windows build of aapt was an order of magnitude slower than running on the same hardware on osx or linux Feb 08 22:36:49 Styler2go: you could override the getObject and getId() functions on the adapter, to just call super.getObject(size - index); Feb 08 22:36:49 and what is my "Collection"? Feb 08 22:37:07 the relevant part of the code has been rewritten to be a bit faster, and in the process the codegen pathology isn't being triggered, so yay. Feb 08 22:37:21 it matters because 80+% of android development is on Windows :) Feb 08 22:37:21 Styler2go: a class in android Feb 08 22:38:18 makes no sense.. i am never using any Collection? how could i use thie reverse function then? Feb 08 22:38:39 read Feb 08 22:39:03 read where? Feb 08 22:39:14 http://developer.android.com/reference/java/util/Collections.html#reverse(java.util.List) <--- ??????? Feb 08 22:40:34 where else would you read....well google i suppose Feb 08 22:40:55 yeah sry i thought u wrote something i did not read... Feb 08 22:41:19 na, just you were asking questions that are in the manual Feb 08 22:41:20 :) Feb 08 22:42:26 i hate to work with never used things like this now :D Feb 08 22:42:51 then just do a for/while loop and reverse it yourself :) Feb 08 22:43:19 nah comeone.. this way i wouldn't learn anything... Feb 08 22:43:32 i will try the collection :) Feb 08 22:43:39 Styler2go: you could override the getObject and getId() functions on the adapter, to just call super.getObject(size - index); Feb 08 22:43:58 Styler2go: what are you reversing? Feb 08 22:44:02 as in data type Feb 08 22:44:19 i just have an adapter with the finished data Feb 08 22:44:49 and the data that powers my adapter is of type " " <--- fill that in Feb 08 22:44:49 Styler2go: @Override public ??? getItem(index) { return super.getItem(getCount() - index); } Feb 08 22:45:00 :D Feb 08 22:45:02 ListItem Feb 08 22:45:15 Styler2go: if you put this line of code into the adapter, it will return things in reverse order Feb 08 22:45:31 thanks clever :) Feb 08 22:45:49 youll want to add an if condition to do things normaly Feb 08 22:45:52 and also do the same to getItemId Feb 08 22:46:11 and when you change the order, call notifyDatasetChanged on the adapter Feb 08 22:46:27 the rest is performance enhancing, like caching the count Feb 08 22:46:32 ah i am getting more and more confused :D Feb 08 22:46:51 StingRay_: What was you attempting to do with this questioN? Feb 08 22:46:53 it helps to know how adapters work first Feb 08 22:47:32 Styler2go: I wanted to know the data that powers you adapter Feb 08 22:47:33 list Feb 08 22:47:35 arraylist Feb 08 22:47:36 etc Feb 08 22:47:40 clever, by the way, what do you mean with "put that in your adapter" Feb 08 22:47:44 ListItem Feb 08 22:47:47 i told you :) Feb 08 22:48:01 Styler2go: you need to subclass whatever adapter your giving to the ListItem Feb 08 22:48:07 and put that line of code in the subclass Feb 08 22:48:34 Styler2go: whats a listItem ? Feb 08 22:48:39 clever: let me see what StingRay_'s solution would be :) Feb 08 22:48:49 StingRay_: its a selfmade item Feb 08 22:48:53 its a custom listview Feb 08 22:48:57 oh Feb 08 22:49:09 that changes things unless you implement serilizable Feb 08 22:49:19 in your data object Feb 08 22:50:04 uhm... Feb 08 22:50:21 do clever adapter condition on getView Feb 08 22:50:49 StingRay_: getView just calls getItem internaly Feb 08 22:51:01 thats what I ment, getItem Feb 08 22:51:03 :) Feb 08 22:51:04 and its simpler to re-use the existing getView if you dont need to rewrite it Feb 08 22:51:09 lol wait Feb 08 22:51:13 @Override public ??? getItem(index) { return super.getItem(getCount() - index); } Feb 08 22:51:58 changing getItem also has the performance benefit of not re-ordering the entire list Feb 08 22:52:02 beh my app has been broken for some reason the app icon is no longer showing up on the device =( Feb 08 22:52:02 clever: but does an itemClick use getItem index or does it return the view index ? cause that would be confusing Feb 08 22:52:18 StingRay_: it will return the backwards index, and the correct item id Feb 08 22:52:24 cool Feb 08 22:52:26 if you modify the getItemId function the same way Feb 08 22:52:39 https://developer.android.com/reference/android/widget/Adapter.html#getItemId%28int%29 Feb 08 22:52:57 the same mapping needs to apply to this function Feb 08 22:53:09 and it depends on what your data is Feb 08 22:53:21 its to difficult for me right now.. i really dont know where i could start clever :( Feb 08 22:53:36 i got it working... the reverse sorting Feb 08 22:53:46 but.. with the comperator... Feb 08 22:55:13 works so much faster than sorting on the server Feb 08 22:55:26 what do i look at for modding the fast-scroll behaviour of a listView ? Need to do some visual things to it Feb 08 22:55:36 Styler2go: instead of burning server cpu and network, it just burns local cpu and battery Feb 08 22:55:40 StingRay_ and clever: so much tganks! Feb 08 22:59:48 someone may find these usful http://www.infoq.com/presentations/Dagger Feb 08 23:00:05 http://www.infoq.com/news/2013/02/RxJava Feb 08 23:00:21 both for use on Android :) Feb 08 23:07:17 can anyone explain to me why my app has stopped showing up on the device ??? it has been working just fine. i change some activitys names .. and it stopped working ... then i changed them back.. the xml file is correct =( Feb 08 23:07:34 look in your manifest Feb 08 23:07:56 do you have the intent filters MAIN and LAUNCHER on one acitivty? Feb 08 23:07:56 i did Feb 08 23:07:58 look in logcat when you install the apk. maybe the install is failing Feb 08 23:08:23 yes i yes i never removed the main and launcher Feb 08 23:08:52 any logcat errors like jesus said? Feb 08 23:09:49 consol say's t is sucess install .. Feb 08 23:10:05 the app is also located on the phone when looking there Feb 08 23:10:10 I would still look in logcat, and see if there is anything relevant Feb 08 23:10:17 wait, what? Feb 08 23:10:23 that's makes no sense Feb 08 23:10:49 "my app has stopped showing up on the device" "the app is also located on the phone when looking there" Feb 08 23:10:56 :D Feb 08 23:10:58 you're contradicting yourself Feb 08 23:11:29 .. ok it is not showing up as a app you can start ... Feb 08 23:11:44 fanno: probably just permissions errors due to difference of manifest names and your new names Feb 08 23:11:52 as what is it showing up? Feb 08 23:12:13 the app is not even trying to start Feb 08 23:12:24 i cant press the icon it is not to be founed anywhere Feb 08 23:12:47 what is printed in the log when you try to install it? Feb 08 23:12:48 can you pastebin your androidmanifest? Feb 08 23:14:19 http://pastebin.com/PwsuJKxk Feb 08 23:14:56 "No Launcher activity found!" - definitely something screwy with your manifest Feb 08 23:15:04 seems ok... can you show the androidmanifest? Feb 08 23:15:15 http://pastebin.com/9rJ0u7H9 Feb 08 23:15:48 fanno: i think you have too much in the intent-filter Feb 08 23:15:51 you want 2 seperate intent-filters, i think Feb 08 23:16:37 yeah Feb 08 23:16:39 you awnt this: Feb 08 23:16:41 Feb 08 23:16:41 Feb 08 23:16:42 Feb 08 23:16:43 Feb 08 23:16:48 by itself, then other filters as appropriate Feb 08 23:17:17 (see e.g. http://developer.android.com/reference/android/content/Intent.html for examples) Feb 08 23:18:18 on the subject of no launcher activity being found, it'll say that too and refuse to launch the app from Eclipse if you have an activity without LAUNCHER category and instead have that on an activity-alias, I have recently discovered. Works fine on device, of course. Feb 08 23:20:45 Chainfire: is there not an launch option in eclipse to override this and fire another activity ? Feb 08 23:20:56 seem to remember seeing it Feb 08 23:21:22 ya that worked ... odd i guess when i renamed the activity it messed up the intent filter Feb 08 23:21:26 don't know, that's a good one to look for though. Feb 08 23:22:43 Chainfire: found it in Run Configurations Feb 08 23:23:10 launch default || lauch : ***** : or do nothing which could be funky Feb 08 23:24:02 hey lauching with "do nothing" really works :) Feb 08 23:24:27 Anyone ever run into "cannot locate symbol "__exidx_end"" errors when trying to load native libs made using NDK r8d? Feb 08 23:24:57 its only happening after upgrading my ndk version Feb 08 23:25:24 The only workaround I'm seeing online looks really ghetto http://www.crystax.net/trac/ndk/ticket/112 Feb 08 23:31:43 matt9: you aren't using crystax, are you? Feb 08 23:31:53 no im not Feb 08 23:31:54 you upgraded the NDK from what to what? Feb 08 23:32:00 upgraded from 8b to 8d Feb 08 23:32:59 honestly i dont know much about ndk and native libraries, but the project I'm workign on is having that error when trying to load its so file Feb 08 23:33:41 any debugging tips? I dont really even knwo what a symbol is lol Feb 08 23:34:14 the workaround of adding __exidx_start() and __exidx_end() is kinda ghetto but frankly not that bad; you can at least try that. :) Feb 08 23:34:32 hah, just like add that to any one of my C files? Feb 08 23:34:37 but yeah hm. you're sure you're rebuilding *everything* with the r8d toolchain? Feb 08 23:35:12 I believe so. `git clean -fdx`, check that so isn't there, rebuild, install, run, get error Feb 08 23:35:45 is there something broken with ColorStateLists? " tag requires a 'drawable' attribute or child tag defining a drawable" in a tag inside a res/color/...xml file Feb 08 23:35:45 not only the .so, but all .o files as well Feb 08 23:36:18 oh god Feb 08 23:36:26 yup all object files gone too Feb 08 23:36:43 guys, i have a button. in the background of th ebutton i set an image. why does the image gets stretched? Feb 08 23:36:53 im wondering if maybe the native code im using actually does depend on that "symbol" or whatever, but im not sure how to check for that Feb 08 23:37:02 grep`ing for __exidx_end yields nothing Feb 08 23:37:42 really sounds like a toolchain / NDK weirdness Feb 08 23:38:07 Styler2go: cause the button is taking dimensions that do not match the background that your using ? Feb 08 23:39:06 Cannot load library: soinfo_relocate(linker.cpp:975): cannot locate symbol "__exidx_end" referenced by "libfourpool.so"... Feb 08 23:39:16 is the exact error Feb 08 23:39:52 can i crop a background to the size of the view? Feb 08 23:41:09 Styler2go: you can do almost anything you want Feb 08 23:41:19 so bit of an odd question that Feb 08 23:41:31 :D Feb 08 23:43:56 hmm I copied exactly the example from the docs about color state lists, and its neither working.. Feb 08 23:44:07 pretty strange Feb 08 23:46:00 oh and before i forget :D Feb 08 23:46:14 how would u guys include a very simple facebook lile button? via webview? Feb 08 23:46:26 for facbeook? Feb 08 23:46:29 or facebook like? Feb 08 23:46:47 a facebook like button fir my site... Feb 08 23:47:08 i wouldn't Feb 08 23:47:12 me neither Feb 08 23:47:18 i dont like your site and I detest facebook Feb 08 23:47:20 lol Feb 08 23:47:22 :) Feb 08 23:47:38 :D Feb 08 23:47:42 in android there is something to use all defined sharing providers Feb 08 23:48:06 anyway, i will use a webview :D easiest way Feb 08 23:48:09 http://android-developers.blogspot.de/2012/02/share-with-intents.html Feb 08 23:48:21 i dont want to share... just a like button :D Feb 08 23:48:28 and if you want to make something that somehow connects to your server, just make a button and send the shit out like your search? :) Feb 08 23:49:44 :D Feb 08 23:53:56 oh and... Feb 08 23:54:36 in the actionbar in the left side is an icon if my app.. i know that this can be linked as "back button", but i could not find how... Feb 08 23:55:13 http://developer.android.com/guide/topics/ui/actionbar.html#Home Feb 08 23:55:17 http://developer.android.com/guide/topics/ui/actionbar.html#Home Feb 08 23:55:19 oh Feb 08 23:55:25 yeah i already read this Feb 08 23:56:18 but.. this is not a real backbutton as they descripe there Feb 08 23:56:34 they just say jhey if u click this go back to MainActivty Feb 08 23:56:46 yeah the app icon is NO back button Feb 08 23:56:49 i repeat NO BACK button Feb 08 23:56:52 its an UP button Feb 08 23:57:03 :D Feb 08 23:57:09 hierachical vs. temporal(?) navigation Feb 08 23:57:22 ok so i will use it as UP button Feb 08 23:57:35 http://developer.android.com/design/patterns/navigation.html Feb 08 23:59:08 thanks for this link, this is helpful Feb 09 00:01:05 is there a way to extend a class by two Activities? Feb 09 00:02:04 nope java doesn't know multiple inheritage Feb 09 00:02:39 can i combine two to one? Feb 09 00:03:10 okay i guess i didnt understand your first question, you cannot have two superclasses for one class Feb 09 00:03:17 ofc you cann make as many subclasses of a class, as you wish Feb 09 00:03:24 the background is: i am using the youtubeAPI and this requires YouTubeFailureRecoveryActivity as extend and i want to use the ActionBar too, this would need SherlockActivity Feb 09 00:05:06 so this is impossible? Feb 09 00:05:09 yeah that doesnt work unfortunately Feb 09 00:05:18 hmm Feb 09 00:05:47 cant i combine the SherlockActivty with the youtubeAPiActivity? Feb 09 00:05:55 maybe copy both into one new Activity? Feb 09 00:06:20 could work Feb 09 00:06:36 if i remember right, ABS had some class that offers static access to the support stuff Feb 09 00:06:47 so you don't need to extend sherlockactivity Feb 09 00:06:55 but not sure about that anymore Feb 09 00:07:25 oh damn Feb 09 00:07:35 i cant edit the YoutUbeBaseAcitivty "Source not Found" Feb 09 00:07:41 damn :D Feb 09 00:17:25 hey guys i'm developing an app that uses the youtube API. The end goal of this app is to make it so users can search for videos on youtube but I do not want the video to be shown, only the audio of the video to be played...does anyone have experience with youtube API or could give me the right direction I should go down in accomplishing this? Feb 09 00:18:04 i am using the youtubeapi in my app Feb 09 00:18:11 and i am currently working on it :D Feb 09 00:19:49 try to use the play() function and just dont set the player View. or set it but set it as invisible. both should work Feb 09 00:20:58 they have very good examples in the demo whick comes with the API, maybe you should just start this and look if it helps you. important for you would be the "PlayerControlsDemoActivity" Feb 09 00:29:40 KillmeSoftly, are you allowed to do that? Feb 09 00:30:48 https://developers.google.com/youtube/terms Feb 09 00:30:56 II. Prohibitions Feb 09 00:30:56 Your API Client will not, and You will not encourage or create functionality for Your users or other third parties to: Feb 09 00:31:05 separate, isolate, or modify the audio or video components of any YouTube audiovisual content made available through the YouTube API; Feb 09 00:31:19 ianal, but make sure you're allowed to just play the audio Feb 09 00:31:58 wow damn so late already.. but at least my SwipeToDismissAndUndo library is finished Feb 09 00:32:16 timroes, like gmail's? Feb 09 00:32:20 yeah Feb 09 00:32:38 clearly you can't even play it _with_ video, because that still requires demuxing, decoding, and sending the to dsp, and separation, isolation, and modification are explicitly prohibited ;) Feb 09 00:36:02 oGMo: yes because that's clearly what they meant Feb 09 00:36:40 anyway, that's all lawyer stuff Feb 09 00:36:49 evanc: yes but that's what they _said_, and if it's not what htey _meant_, they should say what they mean Feb 09 00:37:04 hey Feb 09 00:37:10 i have a server serving a KML file Feb 09 00:37:16 i made a bookmark in chrome to to Feb 09 00:37:19 to it Feb 09 00:37:30 when i tap the bookmark chrome downloads the file, but seemingly not all of it Feb 09 00:37:38 the server ges a connection reset by peer Feb 09 00:37:38 oGMo, to do what you ask, the terms of service would be a thousand pages long Feb 09 00:37:45 then it opens the maps app and only a part of the map show Feb 09 00:38:04 actually maybe not... you're not separating the streams, the video player implementation on android is Feb 09 00:38:22 canadiancow or you could consider that it is actually Google controlled code that does the demuxing, decoding, etc when played normally, and thus does not have to adhere to the license terms Google has put forward for others ;) Feb 09 00:38:33 yeah Feb 09 00:38:36 heh, same though ;) Feb 09 00:38:39 *thought Feb 09 00:39:21 oh jug6ernaut... sigh Feb 09 00:39:38 didn't I +b him yesterday? Feb 09 00:39:45 yeah Feb 09 00:39:49 he asked me to unban him later Feb 09 00:39:50 so i did Feb 09 00:48:49 I have an app that has video played on it through youtube API, i only want the audio to be played but the API does not have this feature.. so is there anyway that I could make it so my app will not allow any video to be shown? Feb 09 00:51:10 KillmeSoftly: did you read up in the discussion ? Feb 09 00:52:18 oh snap my bad, i didn't realize you guys already discussed it..very sorry bout that. thanks StringRay_ your a cool dude. Feb 09 00:52:34 interesting points though Feb 09 00:53:31 another one could be to make the video view 1px X 1px, it's and artistic choice, the video maybe viewed by ants Feb 09 00:53:50 nah you cant do that Feb 09 00:53:57 you get an error Feb 09 00:54:05 here ill shoow you hold on Feb 09 00:54:17 you not control the surface with that api ? Feb 09 00:54:19 02-08 19:35:27.930: W/YouTubeAndroidPlayerAPI(13749): YouTube video playback stopped due to the player's view being too small. The YouTubePlayerView is 962dp wide (minimum is 200dp) and 50dp high (minimum is 110dp). Feb 09 00:54:34 lol Feb 09 00:54:40 thats just a warning though ? Feb 09 00:54:48 yes but it wont play Feb 09 00:54:58 ugh Feb 09 00:55:01 :) Feb 09 00:55:12 you hit the play button, it starts for 2 seconds then stops and gives you that message Feb 09 00:56:05 so would the only way to do this be to have it download the youtube video, then convert flv and extract the mp3 from that? Feb 09 00:56:15 that would suck because it would take too long Feb 09 00:57:09 you got any other ideas? i am not developing this app for commercial..just personal uses Feb 09 00:57:24 just for personal use* Feb 09 00:59:01 i think google is trying really hard to prevent the kind of things you want to do Feb 09 00:59:11 unfortunately :( Feb 09 01:02:11 the short answer is "when you are working with other peoples' property, what you want to do with it is not necessarily relevant." Feb 09 01:03:48 KillmeSoftly, what you're suggesting is clearly against the YT TOS Feb 09 01:03:56 so i would advise not discussing it here Feb 09 01:04:28 ok sorry fair enough Feb 09 01:04:42 i shall stop Feb 09 01:06:23 Israeli apartheid week is coming up soon US & Canada march 4-8. i am not soliciting so please don't kick me, just informing those in this channel who may care. i shall stop now. thank you Feb 09 01:09:10 i said I shall stop Feb 09 01:09:14 sorry dude Feb 09 01:09:18 so you knew it was wrong before you started... Feb 09 01:09:30 no i didnt actually Feb 09 01:09:37 matt9: ping Feb 09 01:09:54 what up Feb 09 01:09:56 it doesnt say no politics anywhere...it says no advertising, so i suppose i broke that. Feb 09 01:10:00 matt9: pm ok? Feb 09 01:10:05 yeah Feb 09 01:10:34 anyway okay i'm done, only droid from now. Feb 09 01:10:42 droid != android Feb 09 01:10:51 'droid Feb 09 01:11:11 wow okay im out guys peace Feb 09 01:11:28 success! Feb 09 01:11:55 well that was mean :/ Feb 09 01:12:08 no, that was stupid. Feb 09 01:12:22 his Quit: "" Feb 09 01:12:48 im with pragma- though... isnt "droid" a trademark licensed to verizon? Feb 09 01:12:57 yup Feb 09 01:13:54 hmm google maps on android only displays part of my kml / kmz file Feb 09 01:13:56 any ideas? Feb 09 01:13:58 yes, Verizon licensed "Droid™" from Lucas Feb 09 01:19:02 does the new api support kml???? Feb 09 01:19:06 * canadiancow gets excited Feb 09 01:19:23 what api? Feb 09 01:19:45 i'm generating a kmz dynamically on my server Feb 09 01:19:52 and i want to view it on my phone Feb 09 01:20:30 new api, new shapi -- if the past is anything to go by, it'll be years before we see more than 10% of users using the new apis (and I'm being generous with that percentage) Feb 09 01:40:45 pragma-, it's part of google play services Feb 09 01:40:54 every device with play store running 2.2+ has it Feb 09 01:43:37 pragma-: what new apis ? Feb 09 01:53:49 anyone know why the nexus 4 has such an odd way to enable USB debugging ( multiple tapping on the 'build number' ? Is this now standard ? Feb 09 01:57:40 wow, if you;re into photography, this is cool http://www.gizmag.com/panasonic-micro-color-splitter/26165/ Feb 09 01:58:36 g00s: yeah I am lots, but that isn't all that Feb 09 01:59:22 StingRay_: why not? Feb 09 01:59:40 (not arguing - maybe you know something) Feb 09 01:59:51 well there are more elements than just use or not of color filters Feb 09 02:00:05 and the thing is, color isn't all that of a problem Feb 09 02:00:16 it's like the least thing to fix/improve Feb 09 02:00:53 also from a perceptual sense too, you eye doesn't really see color all too well Feb 09 02:01:14 hey, is it possible to use C/C++ to get the android cam data directly? Feb 09 02:01:27 your* Feb 09 02:01:53 your eye sees color in different wavelengths in different amounts, green being the best Feb 09 02:02:06 kaneda^ knows :) Feb 09 02:02:18 color models like Luv, Lch, help to approximate how a human sees color Feb 09 02:02:34 check out CIE2000 Feb 09 02:03:16 i think its 59%, 30$, 11% for G, R, B Feb 09 02:03:26 30% Feb 09 02:03:38 so neways, my point is perception of colour is crap compared to luminance or detail light/shadow variance in both how eyes work and how the brain sees Feb 09 02:03:58 StingRay_: you realize, that by removing the filter, more light hits the sensor :) Feb 09 02:04:13 thats the whole point; the s/n ratio is better during readout Feb 09 02:04:53 this isn't about color depth, although, hopefully this technique isn't worse Feb 09 02:05:00 StingRay_, i disagree Feb 09 02:05:18 color is an incredibly important part of how we distinguish things Feb 09 02:05:31 i didn't say it wasnt Feb 09 02:05:53 perceptive color is really weird too Feb 09 02:05:57 I'm saying that distinguishing factor is inaccurate compared to detail Feb 09 02:06:36 yah, i mean something's luminance is probably the biggest factor Feb 09 02:06:36 same theory behind jpeg, or s-vhs cable... or well loads Feb 09 02:07:32 same way I would aim to do pallet compressions, like with YUV split to preserve and re-flate textures in most if not all games Feb 09 02:07:36 again? Feb 09 02:07:52 gug6ernaut banned again , heh Feb 09 02:08:07 I never see him say anything Feb 09 02:08:17 his comp auto connect or something ? Feb 09 02:08:25 yeah im not sure why it keeps happening Feb 09 02:08:34 but he's useful enough that i'd rather have him here than not Feb 09 02:08:35 :P Feb 09 02:10:12 jug6ernaut, fix your irc client =P Feb 09 02:10:25 :( Feb 09 02:10:41 idk wtf is going on so I'm just disabling autojoin/rejoin Feb 09 02:11:15 would to many auto-joins cause flood? Feb 09 02:11:44 i dont know Feb 09 02:11:49 its probably a better question for #freenode Feb 09 02:11:57 true enough Feb 09 02:16:14 hmm, java 8 is getting the new time apis (3-10) Feb 09 02:16:29 JSR 310 Feb 09 02:16:53 y Feb 09 02:17:08 i wonder if these can work on android Feb 09 02:17:22 android is still stuck on j6 lol Feb 09 02:17:33 much less 7, even more less 8 Feb 09 02:17:38 j6 is EOL Feb 09 02:17:55 end of line lol Feb 09 02:18:14 hmm http://sourceforge.net/projects/threeten/files/threeten/ Feb 09 02:18:48 g00s, i havent done the research, but i'm really curious about what java 8 is gonna look like now that no one is going to use java 7 any more Feb 09 02:18:50 :D Feb 09 02:18:52 i think this was written by the guy who did joda time Feb 09 02:19:25 kaneda^: i would be most excited about lambdas and optional methods ;) Feb 09 02:20:06 lambdas would be nice, i would hope they spent a lot of time thinking about how to avoid another fiasco Feb 09 02:20:24 like generics :) Feb 09 02:26:03 kaneda^, still haven't found the key. What happens when I take my app off the Play Store? Feb 09 02:26:13 Can I force all users to uninstall? Feb 09 02:28:13 that would be bad Feb 09 02:28:19 how many users you have ? Feb 09 02:28:32 about 55 Feb 09 02:28:49 ah, thats not all that bad Feb 09 02:28:51 :) Feb 09 02:29:17 it's just my school (it's a scheduler that interfaces with the school website) Feb 09 02:29:32 doomrobo, not too bad i guess :/ Feb 09 02:29:35 doomrobo, i'd keep trying Feb 09 02:29:36 the thing is that the current version works just fine, so I'm afraid nobody will upgrade Feb 09 02:33:56 Can anyone here help me with the Vibrator class please? Feb 09 02:35:23 bluwhale, don't ask to ask Feb 09 02:35:46 doomrobo: Gotcha, here goes: Feb 09 02:36:45 hi. totally new to app dev. trying to add a simple actionbar menu. i've got a with items in activity_main.xml, but it's not showing up in the graphical layout Feb 09 02:37:21 So I'm using the vibrate(long milliseconds) function. So in my app, to induce a subtle vibration, I used vibrate(25). It works fine, but on different phones, it seems to vibrate for noticably different lengths of time. Feb 09 02:38:19 It's hard to tell which phone (if any) is actually vibrating for 25 milliseconds, but it is clear that the lenghts of time that the vibration is running for is different. Feb 09 02:39:09 bluwhale: hardware Feb 09 02:39:15 doubt there is anything you can do Feb 09 02:39:33 it will on many phones depend on the random orientation the vibrator came to rest in Feb 09 02:39:36 Dang, I was fearing that response. Feb 09 02:39:39 bluwhale: it will be different on even same makes of phone, spin-down/resistance of motor Feb 09 02:39:56 temperature and age too Feb 09 02:40:15 other electromagnetic fields close by ;) Feb 09 02:40:24 I guess it is noticeable in my case especially, because 25 ms is a really short amount of time. Feb 09 02:40:28 battery charge Feb 09 02:40:29 :) Feb 09 02:40:42 battery charge and em fields are unlikely Feb 09 02:41:04 I just went of on listing potential rather than likely Feb 09 02:41:06 :) Feb 09 02:41:06 it's not that it vibrayes for 25ms Feb 09 02:41:11 Alright, guess I will just have to test several phones and find a reasonable level (or give an option in settings) Feb 09 02:41:27 it's the vibrator is sped up for 25ms. it then coasts down Feb 09 02:41:38 Ya Feb 09 02:44:19 Thanks guys Feb 09 02:44:30 infogulch: are you pointing to the right xml file in your activity's oncreateoptions menu? Feb 09 02:45:43 probably not. i'm looking at http://developer.android.com/guide/topics/ui/menus.html so i moved my from layout/activity_main.xml to menu/activity_main.xml Feb 09 02:46:06 yeah that is where it should be but in your activity class there should be a method to override called onCreateOptionsMenu Feb 09 02:46:34 I believe the call you make in that method is like getMenuLayoutInflater.inflate(R.menu.myMenu) Feb 09 02:47:27 looks like it's already there Feb 09 02:47:44 point that line to your xml layout Feb 09 02:47:55 so the menu won't show up in the graphical layout at all? i have to run it on a device or emulator? Feb 09 02:48:17 i think so since it's not actually called until runtime Feb 09 02:48:25 bummer Feb 09 02:52:08 hello Feb 09 02:52:43 is there any way to detect a device inactivity other than using Intent.ACTION_SCREEN_OFF? Feb 09 02:54:27 can i configure the location of the virtual devices? **** ENDING LOGGING AT Sat Feb 09 02:59:57 2013