**** BEGIN LOGGING AT Sat Mar 10 02:59:58 2012 Mar 10 03:15:08 Hello Mar 10 03:23:11 Is there a solution to start (or go back) to the icon launcher (not the "desktop") from an application? startactivity "com.android.launcher", "com.android.launcher2.Launcher" "starts" the desktop. I want to go to the icons? Mar 10 03:23:36 so you want to go to the Application drawer? Mar 10 03:25:39 DrPenguin: yes. Not sure if it's the official name Mar 10 03:25:43 but basically yes Mar 10 03:25:48 I believe thats what its called Mar 10 03:25:58 good we have the name :-) Mar 10 03:26:02 do we have the code? ;-) Mar 10 03:26:21 maybe look in logcat and see if it posts the intent? Mar 10 03:26:32 I think that it will require to patch the Launcher2 itself because I don't see anything in the Manifest of the Launcher Mar 10 03:26:49 (that's fine with me to patch the launcher if needed) Mar 10 03:27:08 http://developer.android.com/reference/android/content/Intent.html Mar 10 03:27:44 Here is the manifest of Launcher2 on AOSP ICS 4.0.3: http://pastebin.com/mrCQBeAb Mar 10 03:28:07 there is BTW a funny launcher named RocketLauncher (kind of rocket) Mar 10 03:28:14 but that's not answering my question Mar 10 03:28:31 Grenade Launchers are better. Mar 10 03:28:33 hang on, let me adb my phone Mar 10 03:29:13 GDI, Ubuntu software updat broke my adb.. hang on Mar 10 03:30:02 Oh dear. Mar 10 03:30:22 ls /opt/ Mar 10 03:30:35 nah, its libncurses Mar 10 03:30:36 Oops, forgot I wasn't in the terminal *blushes* Mar 10 03:30:44 luls Mar 10 03:31:02 MalRD: Am I missing something? Mar 10 03:32:56 I've just started programming on the Android, anybody have any recommendations about OpenGLES 1.0 vs 2.0? Mar 10 03:33:30 OK there we go.. Mar 10 03:39:03 DrPenguin: So any idea? Mar 10 03:39:55 no not really Mar 10 03:40:33 OK. Posted to http://stackoverflow.com/questions/9643729/launch-launcher-app-drawer-from-an-application Mar 10 03:40:53 why do you want to do that anyway Mar 10 03:41:20 Too long to tell ;-) Mar 10 03:41:35 but I think that it's a legitimate request Mar 10 03:41:35 gregoiregentil: Sorry, I would've sworn there was something on that page about the app drawer, but I'm not seeing it. Mar 10 03:41:48 MalRD: No problem Mar 10 03:42:10 Anyway, I have posted the question. And I have searched hard on Google. so I don't think that the answer has ever been posted Mar 10 03:42:13 gregoiregentil: honestly, I dont. like, if I launch my application from my desktop, I want to be returned to there Mar 10 03:42:35 I think that it needs some patch in the Launcher after inspecting the manifest Mar 10 03:43:08 ... how nice Mar 10 03:43:18 Surface Flinger just bugged out on me Mar 10 03:43:33 Anyway, many thanks for the help. leaving now Mar 10 03:44:14 hmm.... Mar 10 03:45:30 So about OpenGLES, anybody have any statistics about how many phones support 2.0, or rationale for using 1.0 over 2.0 and vice versa? Mar 10 03:46:00 tnelsond: use 2.0 if you want serious graphics Mar 10 03:46:37 and take care to use proper market filters Mar 10 03:46:47 So serious as in "innovative" and different, or that it's just a better pipeline? Mar 10 03:47:00 tnelsond: both Mar 10 03:47:36 1.0 is classic old fixed function pipeline. Actually has to be emulated by drivers in most chips Mar 10 03:48:20 Maybe I should buy a book or something on it, because I've been trying to learn 2.0 and I'm not "getting it" that well. Mar 10 03:48:35 Then again, I don't know 1.0 really either. Mar 10 03:48:55 tnelsond: the only thing keeping to 1.0 truly gives you is the fact that it *has* to be supported... because there's software renderer included in framework Mar 10 03:49:19 on older devices you can find 1.1 sometimes, and since 2.x there are devices with 2.0 Mar 10 03:49:58 So how many android phones don't support 2.x? Mar 10 03:50:28 tnelsond: its not so much that they dont support it, they may just not leverage it Mar 10 03:50:50 tnelsond: it's like with desktops... you need to check carefully Mar 10 03:51:16 DrPenguin: Wait... so the older android versions had 2.x? Mar 10 03:51:26 thats.. not what I said Mar 10 03:52:08 * p_l had a 1.5 device that had a 2.0-only GPU, but only 1.1 GLES drivers which emulated 1.1 using shaders... Mar 10 03:52:16 lol Mar 10 03:52:30 Ok, that makes sense. Mar 10 03:53:48 actually, I still have it Mar 10 03:54:02 So as for books or tutorials, if I wanted to learn 2.0 (without too much knowledge of OpenGL or OpenGLES), what resources do you recommend? Mar 10 03:54:06 we (modders) just swiped GLES2.0 drivers from another phone that had the same chip but which got official 2.2 :D Mar 10 03:54:24 :D Mar 10 03:55:02 tnelsond: if you have an old phone, you're fucked with updates ^_- Mar 10 03:55:13 My phone has android 2.2 Mar 10 03:55:35 eeek, 4.0.3 Mar 10 03:56:04 But it doesn't have phone service because I'm cheap, and because my brother just gave it to me because he knew I'm a Linux geek and would do cool things to it. Mar 10 03:56:50 p_l: So I can't update my phone manually if I wanted to? Mar 10 03:57:22 tnelsond: I use GV with SIP stack, no service (f*** the carriers) Mar 10 03:57:41 tnelsond: if you're lucky, your phone got picked up by Cyanogenmod... Mar 10 03:58:08 yeah what phone? Mar 10 03:58:25 It's an LG sprint LS670 Mar 10 03:58:47 optimus one or something? Mar 10 03:58:57 I don't know. Mar 10 03:59:16 Doesn't say that anywhere. Mar 10 03:59:37 yeah optimus s i think, I think youre out of luck though, maybe can grab 2.3 (maybe) Mar 10 04:00:01 Well, I already have 2.2, 2.3 is not that much better, is it? Mar 10 04:00:30 it honestly depends Mar 10 04:00:39 i'm not sure on the openGL stuff Mar 10 04:01:05 any n all 2.2 roms I used were fan tastic, there were some 2.3's which were bad seeds Mar 10 04:01:25 tnelsond: 2.3 introduced several new APIs, better input handling etc., NativeActivity (useful for games), and better GC Mar 10 04:03:32 Well, I do like C. But I'm not sure that programming any code in C for an android app would be worth it. Mar 10 04:05:18 Most games for pc are written in c#, are games like deadspace and minecraft (for android) written in c# as well as java? Mar 10 04:05:51 well minecraft IS java Mar 10 04:05:55 not C# Mar 10 04:06:02 for sure, didnt realize Mar 10 04:06:18 * tnelsond dislikes C# because it's basically Java but restricted to Windows. Mar 10 04:06:31 ^ Mar 10 04:06:59 tnelsond: C# itself isn't (Mono is quite good, actually), it's some of the platform bits... which are part of Windows anyway, so if you're using them, you're developing for windows Mar 10 04:07:57 of course, like many things on Linux, the mono team managed to utterly screw up standalone delivery system ^_- Mar 10 04:09:54 I'm always hesitant to install Mono too, I'm sorta stuck in that minimalistic mindset. Mar 10 04:10:14 So it's easy to make crossplatform programs with Mono? Mar 10 04:10:27 tnelsond: if you know how to write crossplatform programs Mar 10 04:10:38 Oh dear, at that I don't. Mar 10 04:10:46 that's a separate thing from knowing to write using .NET, Java, or whatever Mar 10 04:11:04 writing a program for JVM doesn't make it crossplatform, no matter what you were smoking Mar 10 04:11:54 the same goes for most other cases Mar 10 04:12:10 (I think Inferno avoids it, but that's because it hauls a whole OS around) Mar 10 04:15:16 I'm having an issue with the context. I'm in side a class that extends fragments Mar 10 04:15:29 this returns a null pointer though. but with other widgets it works Mar 10 04:15:30 Switch sw = new Switch(getActivity()); Mar 10 04:15:42 if I was to use button or anything else it works Mar 10 04:17:43 so, wait, the Switch is null from the Constructor? or is getActivty() returning null? neither of which make sense Mar 10 04:18:05 getActivity is not returning null Mar 10 04:18:11 it works with other widgets Mar 10 04:18:20 so i know that's not the issue Mar 10 04:18:36 it must be the way i'm calling/defining switch Mar 10 04:18:44 well it doesnt make much sense that the Constructor for Switch is returning Null Mar 10 04:19:13 stack trace! Mar 10 04:19:22 constructors can never return null Mar 10 04:19:28 that is axiomatic Mar 10 04:19:33 exactly Mar 10 04:19:41 * DrPenguin googles axiomati Mar 10 04:19:44 haha Mar 10 04:19:54 FFFFFUUUUUUUUUU Mar 10 04:21:04 throwing a null pointer exception is another story Mar 10 04:21:10 I'm using this as my base app Mar 10 04:21:11 http://android-developers.blogspot.com/2011/02/android-30-fragments-api.html Mar 10 04:21:15 getActivity can return null prior to onCreate and/or onActivityCreated Mar 10 04:21:18 trying fragments for the first time Mar 10 04:21:28 depending on situation Mar 10 04:21:34 and i'm trying to use a switch within the details fragment of that tutorial Mar 10 04:21:38 they had a text view Mar 10 04:21:45 attached to a scrollview Mar 10 04:21:46 in a retain instance fragment, getActivity will return null prior to onActivityCreated Mar 10 04:21:53 i switched it to a linear layout with a switch Mar 10 04:22:03 i.e. onCreate won't be called again Mar 10 04:22:13 pfn: yeah, but he said getActivity() works everywhere else, so I am assuming the locality of the Switch Constructor call must be around his other stuff Mar 10 04:23:19 let me pastebin it for you guys Mar 10 04:23:29 a stack trace would be nice too Mar 10 04:24:23 http://pastebin.com/KTGeas3k Mar 10 04:24:37 1 sec DrPenguin Mar 10 04:24:44 TIMES UP Mar 10 04:24:53 the sdk plugin has been screwy on ubuntu 12.04 Mar 10 04:25:16 because Pangolins are screwy Mar 10 04:25:18 not sure if this is one of those times or if i'm missing something Mar 10 04:25:26 lol agreed they should stick to ant eating Mar 10 04:26:02 this is the last time i do an early upgrade lol Mar 10 04:26:06 i never learn my lesson Mar 10 04:27:19 ill probably upgrade my 11.10 lubuntu to pangolin when its release.. Oneiric lubuntu aint that bad.. I get the occasional X lockup.. I really should memorize SysRq Mar 10 04:29:09 it's just annoying when things that break are trivial things but hinder production Mar 10 04:29:28 easy stroke now sets off the new HUD feature they have on pangolin Mar 10 04:29:48 i cant use any gesture commands with out setting of the HUD lense Mar 10 04:30:27 btw eclipse crashes when i try to get that stack trace Mar 10 04:30:41 then run logcat via the shell Mar 10 04:31:39 to make things easier, just redirect it to a file, filtering for E's only Mar 10 04:31:41 http://pastebin.com/bc0WDppc Mar 10 04:32:12 thres no caused by section? Mar 10 04:32:18 that doesnt help, doesnt point to your code Mar 10 04:32:37 nope Mar 10 04:32:44 that's why i'm so thrown off Mar 10 04:32:49 i don't even know where to look Mar 10 04:33:44 but i know where it's being caused Mar 10 04:33:55 it's obviously where the switch is being defined Mar 10 04:34:11 i just have no idea why Mar 10 04:34:29 Im wondering if its because theres no Drawables associated with your Switch Mar 10 04:34:54 um Mar 10 04:34:58 your NPE'ing on Switch.jumpDrawablesToCurrentState(), bu there are no Drawables Mar 10 04:35:01 i wasn't aware that i had to Mar 10 04:36:33 do i really need drawables? Mar 10 04:36:47 I guess so? I have never used a switch before Mar 10 04:45:31 hey guys, if I have ICS (4.0) and I compiled an app for 2.2 or 2.3, would it still run on the phone? Mar 10 04:45:37 what would be some things I'd have to watch out for? Mar 10 04:46:29 Snuupy: You have to make sure you're not accidentally using ICS features. Mar 10 04:46:46 loke: so it would be compatible, right? Mar 10 04:46:50 Snuupy: best way is to set up a 2.3 emulator image and make sute the application runs in it Mar 10 04:47:30 Snuupy: yes. But just because you specify 4.0 in the AndroidManifest doesn't mean you can't use ICS features. That's why you must test on an older system to make sure it runs. Mar 10 04:47:52 And yes, if it works on older devices, it will work on newer ones (assuming you haven't done something stupid) Mar 10 04:47:56 loke: I'm asking because the playbook has an android emulator - I think it's on 2.3.3. Mar 10 04:48:41 Snuupy: that a different issue. On playbook you still have to repackage the application for their OS. It can't run random Android applications out of the box. Mar 10 04:49:03 loke: yes, I know that - the app has to be <2.3.3 Mar 10 04:49:36 thanks. Mar 10 05:29:18 vladikoff: still there? Mar 10 05:58:14 i picked up a new Samsung SGH-i847 (Rugby Smart) for a family member a few days ago and quickly noticed that it has the potential to pocket dial 911, even (and especially) with a pattern lock Mar 10 05:59:41 is the lockscreen typically integrated or is it an independent apk on most samsung phones? Mar 10 05:59:58 vanilla / default lockscreen, that is Mar 10 06:10:23 I finally turned on the pattern lock after my gf went into my phone and yeah mine wants to pocket dial 911 too Mar 10 06:10:30 different phone though Mar 10 06:11:38 fn44r, huh, the lock screen emergency dial thing doesn't call 911 directly Mar 10 06:11:44 you still have to manage to hit 9-1-1 and dial Mar 10 06:11:48 in order to pocket dial 911 Mar 10 06:18:21 pfn: right, all sane phones are that way Mar 10 06:18:39 pfn: but they just released the SGH-i847 about six days ago and this is some new ICE feature they created Mar 10 06:18:51 pfn: in theory, it's a brilliant idea -- but the execution is terrible Mar 10 06:20:25 pfn: you literally gesture a one-inch diagnoal swipe and then 911 is shown in a list Mar 10 06:21:42 pfn: the traditional emergency dial option is there as well, but this is something new in addition Mar 10 06:24:56 pfn: even worse, you can't configure the list at all -- even in regions where 911 is not a valid emergency number Mar 10 06:34:25 Actually, 112 is the standard emergency number Mar 10 06:34:46 it will work on all phones, regardless of whether 112 is the emergency number is the country where you are Mar 10 06:35:16 (most european countries have already changed their official number to match the standard. only the UK is a holdout, I believe) Mar 10 06:36:04 loke: not exactly Mar 10 06:36:17 112 is the aggregate emergency number Mar 10 06:36:45 it doesn't connect you directly to specific services Mar 10 06:37:06 right. Mar 10 06:37:19 But the point is, that 112 is the only number you have to remember. Wherever you are Mar 10 06:37:20 you're reminding me of this: https://www.youtube.com/watch?v=HWc3WY3fuZU Mar 10 06:46:00 hello ppl. does anyone know what /system/secro/ holds in the android structure? it has a .git and lost+found directory and a single text file called "secro_generic" that contains only the 4 bytes TEST. inside the .git directory is a bunch of dead symlinks Mar 10 06:53:45 When onResume is called is there anyway to know what activity its resuming from? Mar 10 06:56:00 Bear10: not that I know of. Why do you need it? Perhaps there is a better way. Mar 10 06:56:59 loke, i have a preference screen, and i change a value, i wanted to execute a "sync" method on my Main screen whenever the value is changed Mar 10 06:57:08 (or whenever it returns to the Main screen from the preference screen) Mar 10 06:57:35 Bear10: OK, don't do it like that Mar 10 06:58:07 Have a sync Service instead. Call the service when you change the setting. Your problem is that you are putting responsibilities in the Main screen that doesn't belong there. Mar 10 06:58:27 loke, well there is a service Mar 10 06:58:30 i have a data service Mar 10 06:58:37 however i just call the service inside the main screen Mar 10 06:58:50 its my "dashboard", and i cant be allowing any user to do anything unless the sync is done Mar 10 06:59:04 so the "dashboard" (Main screen) keeps the user at bay until the sync is done Mar 10 07:00:02 loke, another thing i thought of, was maybe a static variable Mar 10 07:00:20 what's your take on that? Mar 10 07:05:34 Bear10: let the Main activity check if it's ready in the onResume() method. If not, it sends the user to a PleaseWait activity that shows some kind of progress bar. Mar 10 07:06:12 Once it's done, the PleaseWait activity can simple finish() and it will return to the Main activity which will then start properly. Mar 10 07:06:36 loke, no problem there. thanks Mar 10 07:06:40 If the uses presses BACK from PleaseWait, he will obviously be sent back to PleaseWait since Main.onResume() will notice it isn't done Mar 10 07:06:56 thats a good idea Mar 10 07:07:47 I'm doing something similar in my music player where the Play screen has to wait for the song to download first Mar 10 07:07:53 It works well Mar 10 07:08:07 :) Mar 10 07:12:10 Actually. Now that I think about it. The check should be done in the Main.onStart, not onResume Mar 10 07:12:32 i'll have to read about the difference :P Mar 10 07:12:50 ah okay Mar 10 07:12:52 its before the resume Mar 10 07:13:55 yeah. The reason is that if you do startActivity() in onStart(), the activity will not become part of the activity stack, which makes sense. Mar 10 07:17:44 canadiancow, wut Mar 10 08:58:30 hei im using currentMatrix.preScale(canvasScale, canvasScale, x, y); now i want to have my text keeping on the same position - how do i calcutalte the new position? Mar 10 08:58:55 canvas.drawText(message, 20, 20, msgPaint); Mar 10 09:04:04 no ideas? Mar 10 09:04:48 friken Kies Mar 10 09:04:59 crashed and tried to force a reboot Mar 10 09:16:15 maybe its not the position but the size ... did anyone tried that before? Mar 10 09:23:00 ellipse, do you speak a language? Mar 10 09:23:39 I speak letters! Mar 10 09:24:28 i acutally dont, why do you ask? freecandy Mar 10 09:25:35 Just confirming my suspicion. Mar 10 09:26:30 so you cant help? Mar 10 09:34:25 anyone ever tried to draw a text on a scaled canvas and faced some positioning problems? Mar 10 09:39:40 the_ellipse: There must, presumably, be some kind of coordinate object to which you could simply apply the same transform. Mar 10 09:39:46 well, yeah Mar 10 09:41:23 mh i tried but its still not at the expected place - canvas.drawText(message, 20, 20, msgPaint); - 20,20 is the position here Mar 10 09:41:40 canvasScale is the scale factor between 0.75 and 1.25 Mar 10 09:43:37 the_ellipse: do you (subtract position), (apply scale), (re-add position) ? Mar 10 09:47:27 mhh im using preScale (canvasScale) and after that just draw the text ... Mar 10 09:55:33 so your text will change size but you want some part of the text to stay in teh same place? Mar 10 09:55:40 like aligned on the left? Mar 10 09:56:01 and these are scales and transforms you are applying to a matrix? Mar 10 09:57:17 the whole text should stay in the upper left corner - im not sure if its the position thats the problem or the text size (which should be in Paint) Mar 10 09:57:24 scales are applied to the matrix of the canvas, right Mar 10 10:16:43 i wonder why a webview started by an intent shows three buttons: "BAck", "Stop/Reload" and "Forth" Mar 10 10:17:41 oh never mind.. they were added by a coworker Mar 10 10:36:56 6 Mar 10 10:39:51 why noone say sth Mar 10 10:40:46 ok ok Mar 10 10:40:46 7 Mar 10 10:49:00 speak and thou shalt be heard Mar 10 10:51:24 bleak Mar 10 10:52:06 hmm, my google-fu fails me finding a list of stock icons included with android Mar 10 10:54:50 tapas: theres a load of them inside the sdk Mar 10 10:54:55 search for png Mar 10 10:57:48 Stuff like ic_menu_camera ? Mar 10 11:02:06 i once found a nice list with the ids online Mar 10 11:04:45 I found a list, but it wasn't long enough. I think there should be more ic_menu_* stuff. Mar 10 11:05:03 I reason that if I don't draw it myself then it'll stay properly themed forever. Mar 10 11:07:20 Actually, the list I found (http://www.darshancomputing.com/android/1.5-drawables.html) is marked "1.5", so it could have grown significantly since then. Mar 10 11:07:31 i'm just looking for stock "back", "forward" and "refresh" image ids.. Mar 10 11:09:03 i guess i'll have to grab them out of the sdk sources :( Mar 10 11:09:37 This? http://developer.android.com/reference/android/R.drawable.html Mar 10 11:10:29 Doesn't seem to contain anything useful. Still. Mar 10 11:10:44 http://androiddrawableexplorer.appspot.com/ Mar 10 11:12:11 damn, ic_menu_back and forward aren't public Mar 10 11:12:48 also refresh Mar 10 11:12:54 ok, i'll copy them over then.. urks.. Mar 10 11:13:13 grrr, my onclicklistener makes my app hang :/ Mar 10 11:14:55 what class is it to set wallpaper? Mar 10 11:15:11 iSeeDeadPixels, does it do a lot of things? Mar 10 11:16:15 Zharf, custom ArrayAdapter for a listfragment Mar 10 11:18:38 http://pastebin.com/jxbz4WRZ the listadapter, http://pastebin.com/EZM9rs8S, the listitemclick handler, it hangs at line 3 Mar 10 11:29:51 iSeeDeadPixels: looks like you should override getItem() in your "ListAdapter" -- also please change the name of the class Mar 10 11:30:03 ListAdapter is used by another class in the SDK and that could get confusing Mar 10 11:30:10 oh, okay Mar 10 11:30:51 readme, how do i override the getITem? Mar 10 11:31:56 put your cursor somewhere in the class, not inside a method Mar 10 11:32:01 now type "getIt" Mar 10 11:32:05 and hit control space Mar 10 11:32:13 find the method definition and autocomplete it Mar 10 11:32:23 then make it return the value from your "items" list Mar 10 11:33:36 so what exactly should i make it return? e.g. if i want the title? (TextView named ht) Mar 10 11:33:58 Hm, actually ArrayAdapter may have you covered already Mar 10 11:34:06 you say it's hanging? What's in logcat? Mar 10 11:34:53 but yeah, still don't call the class ListAdapter Mar 10 11:34:56 that's asking for a bug Mar 10 11:35:17 Call it whatever it does.. "MessagesAdapter" for example Mar 10 11:35:29 logcat doesn't show anything on the hang Mar 10 11:35:56 try figuring out where the "hang" is by commenting out lines Mar 10 11:36:04 first comment out all the lines in onListItemClick Mar 10 11:36:07 then re-run the code Mar 10 11:36:15 i know where it hangs ;) Mar 10 11:36:16 then start uncommenting the lines from the top, until it hangs again Mar 10 11:36:22 Which line are you hanging on? Mar 10 11:36:25 http://pastebin.com/EZM9rs8S, the listitemclick handler, it hangs at line 3 Mar 10 11:36:29 Oh, right Mar 10 11:37:30 show the rest of the activity please Mar 10 11:39:00 http://pastebin.com/qks8cqDP Mar 10 11:39:16 How are you determining that it "hangs at line 3" Mar 10 11:39:28 Eclipse Mar 10 11:39:31 and when you say hang, do you mean crash? Mar 10 11:39:53 usually people say hang when their code blocks infinitely or there is some sort of concurrency issue where it deadlocks. Mar 10 11:39:55 Eclipse opens the debug view and tells me it hangs at line 3 with a ClassCastException. Mar 10 11:40:02 ah ha Mar 10 11:40:07 yeah, hang was confusing me Mar 10 11:40:26 you should have told me it threw a ClassCastException :) Mar 10 11:40:34 soz >< Mar 10 11:40:44 Well, you're casting it to String, that's why Mar 10 11:41:00 your ArrayList contains "OpdrachtItems" Mar 10 11:41:14 so... i should cast it to OpdrachtItems? Mar 10 11:41:28 Yeah, you should instead get an OpdrachtItem back and work with that. Mar 10 11:42:07 "OpdrachtItem cannot be resolved to a type" Mar 10 11:42:14 you need to import it Mar 10 11:42:26 wupss typo xD Mar 10 11:43:07 ah it works ^_^ thanks :) Mar 10 11:44:48 np Mar 10 11:49:29 ok, if i want to change the background color an icon changes to when selected i'll have to create a selector and use that as drawable for the imagebutton background? Mar 10 11:51:12 s/icon/imagebutton/ Mar 10 11:52:32 Hello, I'm studying android project. Is there any relationship between gerrit ids and issues (BTS) ids? thank you Mar 10 11:53:52 tapas, yes Mar 10 12:07:35 is it possible to turn on geotagging programmatically? Mar 10 12:07:58 or send an intent to the options window? Mar 10 12:27:23 hey guys.. Mar 10 12:27:53 which is best framework and 3d engine for game development in android? Mar 10 12:28:10 list them Mar 10 12:29:33 Which is according to you? Mar 10 12:31:15 unity3D? Mar 10 12:31:59 ogre3D? although i dont know if is it released Mar 10 12:32:31 I have seen unity 3d used in many games... Mar 10 12:34:36 unity3d has been around a while on other platforms. it should be decent Mar 10 12:43:58 http://lwjgl.org/wiki/index.php?title=Game_Engines_and_Libraries_Using_LWJGL Mar 10 12:49:35 grrrrrr.... Mar 10 12:49:44 Is it possible to "reload" a DialogPreference with a new layout when one of the options in the first dialog is clicked? Mar 10 12:50:10 how hard can it be to show a google map in my app '-_- classnotfoundexception Mar 10 12:52:43 java.lang.ClassNotFoundException: com.google.android.maps.MapView Mar 10 12:57:42 hackkitten, ya alive? Mar 10 12:59:53 hi iSeeDeadPixels o/ Mar 10 13:11:40 does anybody know how to refresh the gallery thumbnails Mar 10 13:24:28 is there a way to set different colors for stroke and fill separately? Mar 10 13:53:30 i had a linear layout with some buttons and imageviews in it. i had to wrap it in a scrollview, when i did this alot of the stuff disappeared, anyone knows what the problem might be? Mar 10 13:57:04 how hard can it be to show a google map in my app '-_- classnotfoundexception Mar 10 14:00:08 it's rocket science, really it is Mar 10 14:00:59 iSeeDeadPixels: in your android manifest file? Mar 10 14:03:08 JakeWharton come back to EST Mar 10 14:06:17 napoleoncomplex: yes, build target is set to the google api thing for 4.0.3 Mar 10 14:07:20 I'm using setDialogLayoutResource() and showDialog() in the onClick() listener which is called when a button in my DialogPreference dialog is clicked. This opens a new dialog with the new layout and works fine. But when I have this new dialog open, press home and restart the activity, my view is leaked.. Any hints on why this happens? Mar 10 14:09:40 iSeeDeadPixels: can you make a pastebin of the manifest? Mar 10 14:15:15 napoleoncomplex, http://pastebin.com/2uym4KRC Mar 10 14:15:35 there we go Mar 10 14:15:42 uses-library needs to be inside application Mar 10 14:15:51 inside the application tags i nthe manifest Mar 10 14:19:22 napoleoncomplex, java.lang.reflect.InvocationTargetException Mar 10 14:19:52 Binary XML file line #25: Error inflating class com.google.android.maps.MapView Mar 10 14:21:51 iSeeDeadPixels: cant help you further than that, ive actually never dealt with maps implementation, the answer i gave you above was the one i found after a few seconds of googling your exact error message Mar 10 14:22:20 so i suggest google and stackoverflow as your next steps :) Mar 10 14:32:13 Hi people! Is it possible to invok onOptionsItemSelected(MenuItem) if I know the menu id ? Mar 10 14:32:20 github needs somethign between "free" and "micro" Mar 10 14:32:33 i dont really want to pay $7/month for 1 repo that needs like 10MB Mar 10 14:32:45 is there somewhere a list of the JDK <-> SDK version number pairs? Mar 10 14:33:39 * Ge0rG just stumbled on android-8 being jdk 1.5 Mar 10 14:34:01 ? Mar 10 14:34:41 canadiancow: why not just hosting your private git repo on some web hosting box? Mar 10 14:34:50 dont get the github web interface :P Mar 10 14:34:57 like im willing to pay Mar 10 14:35:10 but $84/year is a bit steep for what i need Mar 10 14:35:38 canadiancow: bitbucket has free private repos if thats what you need Mar 10 14:35:42 canadiancow: unfuddle.com Mar 10 14:35:47 does it have the github web interface? Mar 10 14:36:08 what do you mean? Mar 10 14:36:17 it has a web interface, yes Mar 10 14:36:27 all the features of the github one? Mar 10 14:36:40 blame, the image comparison (!!!) Mar 10 14:36:46 pull requests between branches Mar 10 14:37:17 canadiancow: i pay 7 bucks for the micro github. to me its worth it because everyone and thier cousin uses github today and understands it Mar 10 14:37:22 not sure about that, since i only use it for a basic repo Mar 10 14:37:35 neekers, i just wish there was something smaller Mar 10 14:37:40 1 repo, 1 collaborator, 0.1GB Mar 10 14:37:42 or something like that Mar 10 14:37:45 i know what you mean Mar 10 14:37:49 That'd be nice Mar 10 14:37:59 like im not saying it should be free Mar 10 14:38:08 $1 per repo, yay Mar 10 14:38:19 but im not sure i want to move from ShitVN if its gonna cost 84/year :P Mar 10 14:38:19 7 bucks is 2 starbucks lattes... Mar 10 14:38:30 i dont drink starbucks Mar 10 14:38:34 unless my boss buys Mar 10 14:38:34 :) Mar 10 14:38:39 i dont drink coffee. Mar 10 14:38:45 this ^ Mar 10 14:38:47 i get hot chocolate Mar 10 14:38:47 +1 Mar 10 14:38:50 ^_^ Mar 10 14:39:02 i like hot chocolate too Mar 10 14:39:04 I don't drink coffee, only cappuccino ;) Mar 10 14:39:21 its that that i cant afford 84/year, its that id be using 1/5 of what im paying for, and i have a system that "works" rigth now Mar 10 14:39:32 if it was $24/year, id do it Mar 10 14:39:36 maybe even $36 Mar 10 14:41:30 bitbucket ? Mar 10 14:41:47 ah already discussed Mar 10 14:41:50 :P Mar 10 14:41:57 fuck it Mar 10 14:41:59 just...fuck Mar 10 14:42:04 i'll find a coupon code for a free month Mar 10 14:42:05 and do it Mar 10 14:42:09 YOU WIN THIS TIME GITHUB Mar 10 14:42:28 another satisfied customer... hehe :) Mar 10 14:44:04 i cant even find a coupon code Mar 10 14:44:05 ... Mar 10 14:44:07 cocks Mar 10 14:44:29 WOW Mar 10 14:44:33 they only required card number and expiration? Mar 10 14:44:42 thats like...the least info ive needed to use a credit card online ever Mar 10 14:45:16 now i need to get git working on my server Mar 10 14:45:17 lol Mar 10 14:45:37 Hello, does anyone here develop apps on Linux? Mar 10 14:46:14 wow...way to tell me that you cant import PRIVATE svn repos until AFTER i pay Mar 10 14:46:47 * neekers gets some popcorn and watches the canadiancow show... :) Mar 10 14:46:57 the really annoying part is that im on windows Mar 10 14:47:02 so antyhing non-standard git is a pita Mar 10 14:47:05 *pulls out mac* Mar 10 14:47:32 os x ftw Mar 10 14:47:34 i havent even used my mac since i upgraded to lion Mar 10 14:48:39 im not a big fan of mac Mar 10 14:48:53 someoen recently told me "yea with lion, theres no point in a second screen, because it doesnt work very well" Mar 10 14:48:57 i lol'd Mar 10 14:49:53 why cant github import private svn repos Mar 10 14:49:57 cant it just ask for a un/pw? Mar 10 14:50:46 oh fuck i do need more than one repo Mar 10 14:50:54 can i go back and not say all the shit i said earlier? Mar 10 14:50:54 :) Mar 10 14:51:31 canadiancow, no problem we'll just forget that Mar 10 14:51:32 :D Mar 10 14:52:04 lol Mar 10 14:52:48 Which is the most convenient OS for android development? Mar 10 14:53:08 [(W)indows/(L)inux/(M)acOS] Mar 10 14:53:57 i think mac is the most convenient. it has the nicest UI and also has all the unix tools underneath. Mar 10 14:54:10 What the heck, java.security.KeyStoreException: java.security.NoSuchAlgorithmException: KeyStore jks implementation not found when I try to use the facebook sdk to authorize. I can't get the dialog to auth my facebook app. Mar 10 14:54:56 um Mar 10 14:55:00 i think my macbook's broken Mar 10 14:55:03 it's scrolling the wrong way Mar 10 14:55:16 you can change that in mouse settings Mar 10 14:55:41 that is by design Mar 10 14:58:51 ok now i have git and svn Mar 10 15:03:36 I'd like to do: lala.setOnClickListener(some other activity than the one I'm calling from); Is it feasible? Mar 10 15:04:27 Uh.. So one activity handles the click events of the other activity? No Mar 10 15:04:35 yes Mar 10 15:04:38 mm thanks Mar 10 15:04:48 I mean, it's possible, sure, but don't do that Mar 10 15:05:16 Hum Mar 10 15:05:32 main activity has the custom title bar, so I can only call findViewId() from main activity Mar 10 15:05:36 The facebook oauth get user info works swell on the emulator but not on my gnexus running 4.0.2 Mar 10 15:12:06 im calling notifyDataSetChanged(); when i have changed my data in a listadapter but it dont change anything Mar 10 15:12:11 or update the view Mar 10 15:17:54 i dont think my svn import is going to go so well Mar 10 15:18:03 i moved directories around too much in svn :( Mar 10 15:18:46 bah, facebook sdk aint working on my gnexus. Using facebook.auth... thing. Mar 10 15:20:06 yea we've been having FB issues too Mar 10 15:20:14 but i think thats more a dev issue on our side ;) Mar 10 15:24:22 canadiancow, it calls their app for authorization but nothing happends. Loading the page and the page dies Mar 10 15:24:34 nothing in logcat except that the facebook app uses acra Mar 10 15:24:46 if I try to authorize again I get the keystoreexception Mar 10 15:24:57 hmm Mar 10 15:25:31 Worked on the emulator (didnt have the app). Mar 10 15:26:06 My gnexus have the facebook app, could it be that my boss screwed up the android key hash? Mar 10 15:27:13 hmm Mar 10 15:27:21 oh it's loading the facebok activity? Mar 10 15:27:24 not the webview dialog? Mar 10 15:28:37 It doesnt load squat now Mar 10 15:29:22 or well, it loads this: https://dl.dropbox.com/u/5264125/Captured/xbmk2.png Mar 10 15:29:36 but that load never finishes, it crashes without any info Mar 10 15:33:32 yea thats the facebook app's activity Mar 10 15:33:38 looks like you're signed with the wrong key Mar 10 15:33:43 if its not working Mar 10 15:33:46 or facebook is down :P Mar 10 15:33:59 has anyone here used svn2git to ... convert svn to git? Mar 10 15:34:04 it gave me some strange brnahces Mar 10 15:35:00 Guess it's the hash key problem. Mar 10 15:35:06 Ut works with webview Mar 10 15:35:22 it works with the webview dialog if I dont have the app on the device. Is it only the app that uses the key hash? Mar 10 15:35:31 yes Mar 10 15:56:25 how can I add data to an adapter without the listview showing another item...I want to have the listview stay at the same positon as it was before the addition of data Mar 10 15:57:46 does simpleCursorAdapter provide such functionality? I think maybe it does via the _id column Mar 10 16:00:14 you just dont want to update position? Mar 10 16:02:14 Jug6ernaut, not really. the position might have to change if the data being added has to be on top of the list Mar 10 16:02:31 ugh now i have to switch all my shit over to git Mar 10 16:02:31 mofo Mar 10 16:03:05 Hi! Mar 10 16:03:31 canadiancow from? Mar 10 16:03:36 svn Mar 10 16:03:38 mephju what DO u want? Mar 10 16:03:43 well ive done all the server-side stuff Mar 10 16:03:46 like everything is in github now Mar 10 16:03:50 but i need to get all my clients using it Mar 10 16:03:55 lol Mar 10 16:03:55 Is it possible for someone here to make me a small app, and you can stuff your name in the about part of it? Mar 10 16:03:58 like my webserver has the website on svn Mar 10 16:04:15 if my application stores a list and I wish to save this to file (an arraylist with the serializable objects), should i be saving them with onDestroy(), and loading from file with onCreate()? Mar 10 16:04:40 or should I be saving at other times? Mar 10 16:04:52 *Can anyone here make me a small app, and il discuss terms* Mar 10 16:05:22 Jug6ernaut, imagine a list of events. which might be updated while browsing the list... when the update happens I want to show the same list items as before so the user is not annoyed while browsing the list Mar 10 16:05:55 but when the user scroll the list to the top the new events should be available Mar 10 16:21:38 I'm changing the dialog layout of a DialogPreference when the user clicks a button in the initial dialog shown. This is my onClick() method: http://pastebin.com/E3PpVRfG If I run the code directly without postDelayed, or with a low delay, I end up with a view leak. However, if I use a delay of 100 ms+ I do not get a view leak. Is there a better way of executing this code to ensure no view leak? Mar 10 16:23:22 canadiancow, quite certain that I have the correct hash now. Mar 10 16:23:31 Still the same problem, and it was the same hash as well. Mar 10 16:26:16 wow that was painless Mar 10 16:26:22 git clone blah newdirectory Mar 10 16:26:32 cp -R newdirectory/.git public_html/ Mar 10 16:27:27 FatCookies is a shit Mar 10 16:27:29 that is all. Mar 10 16:27:38 hi all Mar 10 16:28:11 hmm how long does it take a push to show up on github :S Mar 10 16:28:11 does anyone have any examples of using xpath on android? Mar 10 16:28:15 storkme said that iphone development is better than androids Mar 10 16:28:54 windows 7 phone for lyfe Mar 10 16:31:48 has anyone tried actionbarsherlock 4.0 with Android-PullToRefresh by any chance? Mar 10 16:32:10 getting a conflict with attribute 'headerBackground' been in the two libs Mar 10 16:34:10 pull to refresh is the biggest shit ever Mar 10 16:34:18 its the most unintuitive interface Mar 10 16:34:25 just use a refresh button Mar 10 16:35:03 canadiancow: umm.. Mar 10 16:35:17 im inclined to agree, but id like to hear a little more reasoning before I rip it out :P Mar 10 16:35:27 so facebook for android added it Mar 10 16:35:33 and twitter for android Mar 10 16:35:36 a few months later, i was just scrolling the list Mar 10 16:35:40 and scrolled too far Mar 10 16:35:42 and it pulled down Mar 10 16:35:47 and that was thef irst time i saw it Mar 10 16:36:17 i think some people must like it Mar 10 16:36:19 look at any google or apple apps Mar 10 16:36:25 none of them have pull to refresh Mar 10 16:36:33 google apps have a refresh button in the actionbar Mar 10 16:36:34 hi mikedg Mar 10 16:36:46 good enough for me! Mar 10 16:37:09 i think one of my git repos is broken Mar 10 16:37:12 its not updating on github Mar 10 16:37:15 but the other one is :S Mar 10 16:37:43 or github is :P Mar 10 16:37:57 well same thing really Mar 10 16:38:00 hmm Mar 10 16:38:07 i can pull the change from another location Mar 10 16:38:12 so it seems the changes ARE sticking Mar 10 16:41:42 fuck svn2git didnt work properly here Mar 10 16:41:44 T_T Mar 10 16:42:35 oh wait yes it did Mar 10 17:01:50 This doesnt work in Eclipse: 'TextView tv = new TextView(this);' Mar 10 17:02:40 <_lpc> looking for a dlna server with subtitle support for android Mar 10 17:05:38 This doesnt work in Eclipse: 'TextView tv = new TextView(this);' Mar 10 17:07:46 Syntax error on token(s), misplaced construct(s) when i do this.. ArrayList items = new ArrayList; Mar 10 17:08:39 is someone other than me having problem with notifyDataSetChanged(); on list adapter not working Mar 10 17:08:40 ? Mar 10 17:10:16 Can someone here make me a sample code with a button? Mar 10 17:11:47 why does it error at Line 15 http://pastebin.com/KByBR7KU, it's the problem i posted 4 minutes ago.. Mar 10 17:12:39 hey mikedg :) Mar 10 17:12:42 sup? Mar 10 17:13:05 iSeeDeadPixels: what's the error ? Mar 10 17:14:44 Multiple markers at this line Mar 10 17:14:44 - TextView cannot be resolved to a type Mar 10 17:14:44 - TextView cannot be resolved to a type Mar 10 17:15:40 Beket, i posted that... Mar 10 17:15:49 Syntax error on token(s), misplaced construct(s) when i do this.. ArrayList items = new ArrayList; Mar 10 17:16:16 so, Beket, any ideas? :) Mar 10 17:16:58 iSeeDeadPixels: so it means that you aren't constructing the object correctly Mar 10 17:17:47 ... Mar 10 17:17:56 that same code works in my ListFragment. Mar 10 17:18:09 but not in that seperate class file. Mar 10 17:21:33 hey mikedg Mar 10 17:21:42 If you had a 'Dead' class, would you write Dead d = new Dead; ? Mar 10 17:22:28 http://pastebin.com/tWw2FxQ3 Mar 10 17:22:44 how can i init the items ArrayList then? Mar 10 17:23:21 (); Mar 10 17:26:02 iSeeDeadPixels: you are forgetting the () parens at the end. Mar 10 17:28:12 i cant open google play, it seems to say that the application is installed on the SD Card, I do not know how to transfer it to Phone memory. Please paste guide. Thanks Mar 10 17:36:30 how do i upgrade from android 2.3.6 to 4.0? :D Mar 10 17:38:33 any idea why my app crashes when i call clear(); on my listAdapter? Mar 10 17:38:55 stack trace or gtfo Mar 10 17:39:54 hm, reading again about this asus android tablet worked on with google - with its low price, i wonder if google is trying to take out the kindle Mar 10 17:40:54 hm when i try to save the log it gives me an empty txt file lol Mar 10 17:40:58 kindle is a good little unit for the price Mar 10 17:41:23 ah nvm, i just used it wrong Mar 10 17:43:02 hi everybody! I don't understand how we can save some picture from an application in the internal storage.. Mar 10 17:43:03 here comes the log canadiancow|work http://pastebin.com/Dp0MtEx5 Mar 10 17:43:07 g00s, you cant take out the kindle Mar 10 17:43:12 amazon is too big Mar 10 17:43:26 i suppose Mar 10 17:43:31 google music is failboating on my gtv Mar 10 17:43:34 "could not play this song" Mar 10 17:43:35 next Mar 10 17:43:36 "could not play this song" Mar 10 17:43:37 next Mar 10 17:43:39 "could not play this song" Mar 10 17:43:42 then i finally get one that owrks Mar 10 17:44:08 i don't hear overwhelmingly good things about the kindle either though ... Mar 10 17:44:18 but they are selling quite a bit Mar 10 17:44:28 yeah, there is a massive store behind the device Mar 10 17:46:15 fail adapter Mar 10 17:47:00 Does Android support OpenGL like Apple products? Mar 10 17:47:05 What is it $100 a year to put apps on Kindle? Bleh. Mar 10 17:47:47 IHateHavingToReg: do you hate having to read as well? http://developer.android.com/guide/topics/graphics/opengl.html Mar 10 17:47:48 I submitted an app when they were taking them for free...it was rejected for not working well with Facebook's junky generic Intent implementation Mar 10 17:47:49 IHateHavingToReg: yes... Mar 10 17:48:07 lol Ologn Mar 10 17:52:29 IHateHavingToReg: what value did "like apple products" add to your question? Mar 10 17:53:57 Hi, in my developing, i would save pictures in the internal storage, does anybody know how we can do that? Mar 10 17:55:34 readme: +1 Mar 10 17:55:35 :) Mar 10 17:55:45 :D Mar 10 17:55:46 guigui22, google it Mar 10 17:56:03 guigui22, use openFileOutput() Mar 10 17:56:13 ok :) Mar 10 17:56:57 wtf github Mar 10 17:57:00 tags are now zip files? Mar 10 17:57:04 what if i just want to browse the tag Mar 10 17:57:08 like...to see what line number something is Mar 10 17:57:45 oh...still possible, just not as pretty Mar 10 17:58:16 i havent still found out why calling clear() method on ArrayAdapter makes my app crash Mar 10 17:59:21 private final Object mObject; Mar 10 17:59:34 joelmob: have you pastebinned the exception yet? Mar 10 17:59:42 constructor has: if (object == null) { throw new Exception(); } mObject = object; Mar 10 17:59:45 yes Mar 10 17:59:51 im getting a NPE on an access to mObject Mar 10 17:59:51 http://pastebin.com/Dp0MtEx5 Mar 10 18:00:03 but where do we define the direction ? Mar 10 18:01:09 canadiancow|work what is NPE? Mar 10 18:01:22 *sigh* Mar 10 18:01:22 null pointer exception Mar 10 18:07:44 is it possible on latest android sdk to do video call? Mar 10 18:08:17 does anybody have a piece of code for saving picture in the internal storage? Mar 10 18:08:46 ha i think i know why, it seems ArrayAdapter doesnt support clear() and remove if the dataset is a regular array of items Mar 10 18:09:19 can I communicate through USB? for syncing, sending data etc? Mar 10 18:14:35 n1x: with adb Mar 10 18:14:51 hello Mar 10 18:15:11 readme, can i use it programatically? i mean in code? Mar 10 18:15:12 http://sei.meidokon.net/files/ics_storage.png <-- any google people around able to tell why the UI here is so badly broken? Mar 10 18:15:27 namely, the overflow has a single entry, and is itself hosted alone on a completely new toolbar, even though there's already a perfectly fine and *empty* action bar. And to top it off, the entry is named poorly (because what it really does should be called 'USB connection settings') Mar 10 18:15:59 n1x: you can always pipe the data through logcat :) Mar 10 18:16:25 I really dislike how the overflow (and action bar) jump around between being at the top and at the bottom, for no apparent reason Mar 10 18:16:40 readme, :D i want something solid to perform sync programatically! Mar 10 18:17:02 n1x: top apps like EasyTether use adb for stuff it's not supposed to be used for Mar 10 18:17:14 n1x: anyway, you can always implement this on the host OS Mar 10 18:17:36 similarly, the stock SMS app has the bottom action bar, which contains mere 3 icons and bucketloads of whitespace, even though it could stuff them on top Mar 10 18:17:44 readme, implement what on host os? Mar 10 18:17:59 the syncing Mar 10 18:18:09 just let the OS mount your phone and then do the sync from there? Mar 10 18:18:30 maybe you could try bluetooth, instead. Mar 10 18:18:32 readme, ah. okay! kinda hackish it seems! :) Mar 10 18:19:09 mathrick, overflow only splits to bottom if you ask it to Mar 10 18:19:23 oh Mar 10 18:19:28 talking about a built in app Mar 10 18:19:33 yep Mar 10 18:19:40 readme, i feel safe using USB! direct communication! bluetooth seems penetrable! Mar 10 18:19:43 I'm complaining about google's own shipped UI Mar 10 18:19:44 sounds like they screwed it Mar 10 18:20:05 which really should be the shining beacon of how it's supposed to be done with action bar Mar 10 18:21:02 sadly, the stock apps seem to be closer to "barely workable", such as the dialer *still* not supporting predictive contact lookup, and the SMS *still* not being able to save drafts (!?) Mar 10 18:21:06 At least you don't have to use Motoverizonblur Mar 10 18:21:28 With this new expansion files thing...does an app have to be 50MB? I wonder if my 2MB apps can have optional expansion files... Mar 10 18:21:29 these are the things every single vendor has to fix in their skin, it's rather ridiculous IMHO Mar 10 18:21:44 0logn: no, it's optional Mar 10 18:21:50 Which seems to be a combination of building ads into the stock rom, messing with perfectly good default applications, and changing settings just enough so you think you know where they are, but can't find them. Mar 10 18:22:49 MalRD: yes, though the problem is really that the vendors *rebuild* the stock mechanisms, rather than using them Mar 10 18:22:53 I'm looking at you, HTC Mar 10 18:23:40 like in 3.0 they removed the stock music widget and replaced it with their own not-actually-a-widget, just so that it can have a pseudo-3D compositing effect when you switch screens Mar 10 18:24:19 so you cannot have a music widget if you use non-default homescreen, and the default one is 1) all bling 2) all RAM usage 3) no actual functionality Mar 10 18:24:59 but the situation is largely really caused by the stock apps being so horrible, too Mar 10 18:25:22 because nobody can tell me the stock sms app is usable Mar 10 18:25:34 I've never had any issues with it. Mar 10 18:25:45 readme: how about not being able to save drafts? Mar 10 18:25:46 what's your gripe Mar 10 18:25:53 haha, drafting a sms? Mar 10 18:26:04 I guess you're very thorough Mar 10 18:26:18 yes, also called "I have to switch to something else, like say calendar, to look things up" Mar 10 18:26:44 and when you come back your sms is gone? Mar 10 18:26:54 you know, you can hold the home button to switch apps Mar 10 18:27:00 then you don't lose your data Mar 10 18:27:29 Which reminds me Mar 10 18:27:36 oh wait, it's even more stupid Mar 10 18:27:44 it does save drafts Mar 10 18:27:52 I constantly see the built-in ads that are stuck there under running applications Mar 10 18:27:53 but only when you have entered "valid recipients" Mar 10 18:27:58 that is... just wow Mar 10 18:28:03 and they have used my data. Mar 10 18:28:16 any app devs here?, did you have a delay in payout ? Mar 10 18:28:18 readme: anything and everything that can have unsaved progress should support drafting Mar 10 18:30:13 oh! And if you go home, then it also saves a draft, one without "valid recipients" at that! So all the functionality bits are there in ICS, it's just got a UI that goes an extra mile to be bad Mar 10 18:30:21 How often is it that you send a message to someone that isn't in your contacts? Mar 10 18:31:25 readme: why can't I save a message I haven't put a recipient for in yet? "How often do you do X" is a bad excuse, because there's absolutely NO reason to make me go through hurdles when you even have all the code in place already Mar 10 18:31:57 if I wish to save a message in progress because I'm interrupted, then I damn well should be able to, unless there's no logical possibility to do so Mar 10 18:32:21 s/message/anything I'm doing/ Mar 10 18:32:58 I don't think omitting a marginally valuable feature is the same thing as "making you jump through hurdles". Features are evil. Mar 10 18:33:02 readme: that is the thing, the stock apps are bad because they have all sorts of sticking UI issues that shouldn't be there at all Mar 10 18:33:17 marginally valuable? It's the first thing I've run into when using the stock apps Mar 10 18:33:33 saving my data is not "marginally valuable", thank you very much Mar 10 18:34:15 and you already have your "evil" feature, FFS. And then you have another one, an extra dialogue that says "but I won't actually let you do that just because" Mar 10 18:34:17 mathrick: I understand why you want the feature, but it is marginal, statistically most people will never have this qualm. Mar 10 18:34:23 ... Mar 10 18:34:44 that's why you have the freedom to choose a better sms app, from the market. Mar 10 18:34:46 and that's why apple will continue to be heralded as the saviour of mankind Mar 10 18:35:04 there are more android users than iphone users, and the numbers keep shifting towards android. Mar 10 18:35:10 btw, woz likes android, too. Mar 10 18:36:36 I appreciate your taste. We just disagree on the economics of implementing nice to haves. Mar 10 18:37:25 I hate apple's guts, but that's not important here. "Marginally useful", "statistically most people will have no qualm with" (what statistics did you base it on, pray tell?), and "install your own" are all stupid, because you insist on ADDING MORE CODE to break the UI. You are actually saying that the app should stay broken because most people won't be hurt by it enough, even though fixing it is trivial and involves REMOVING code that exists only t Mar 10 18:37:26 o break it Mar 10 18:38:17 mathrick: not having an extra feature and being broken are not the same thing Mar 10 18:38:42 my view is that the stock apps should be as stable as possible. so avoiding features is good. less possibility for a bug. Mar 10 18:40:02 readme: read my lips: that "feature" is already there. It exists in the code. And THEN, on top of it existing, an extra piece of UI is added to make it impossible to use. How that is economical or less bugy in your warped logic I cannot possibly comprehend Mar 10 18:40:26 that dialogue has no purpose whatsoever besides making the UI worse Mar 10 18:41:25 mathrick: i don't agree that the feature is already there. for example, if we saved a draft with no recipient, where would the draft be stored/appear for me to go find it again? what screen? Mar 10 18:41:56 there's no "drafts" screen Mar 10 18:42:02 readme: go to sms app, start writing a message without adding any recipients, then press back Mar 10 18:42:51 canadiancow, EST sucks Mar 10 18:42:55 mathrick: yes, I know Mar 10 18:43:01 no press cancel, then home, then reenter the sms app again Mar 10 18:43:08 JakeWharton lol Mar 10 18:43:10 it will be saved there, with "draft" Mar 10 18:43:19 p.s. JakeWharton that video i sent you is private, not for your issues list :P Mar 10 18:43:23 ok Mar 10 18:43:45 are you naked in it or something? Mar 10 18:43:48 no Mar 10 18:43:58 shame Mar 10 18:43:58 but i think i took a video of my phone sitting on top of a hydro bill or something Mar 10 18:44:00 lol Mar 10 18:44:02 mathrick: I don't get that here, but I'm using a gingerbread phone. Mar 10 18:44:17 it's saved under the other conversations? Mar 10 18:44:21 another chrome update :/ Mar 10 18:44:30 I dunno how exactly gingerbread does it, but I remember it was similarly broken Mar 10 18:45:59 mathrick: you're right, it would be a good feature Mar 10 18:46:06 but I don't think the lack of it means that the app sucks Mar 10 18:46:31 maybe just give it a 4 star Mar 10 18:46:42 google should open up their own apps to rating :D Mar 10 18:46:48 then you could leave an angry rant Mar 10 18:50:16 Cannot make a static reference to the non-static method createCardEmulation(ConnectionProperty, int) from the type CardEmulationRegistry Mar 10 18:50:25 any hints on making it not static? Mar 10 18:50:36 use an instance Mar 10 18:50:37 the ConnectionPropery Mar 10 18:51:37 how do I do it to Enum ConnectionProperty ? Mar 10 18:52:26 sadly they haven't hosted the html documentation on the web in nice way, only zip package available... Mar 10 18:52:52 html documentation Mar 10 18:52:56 any documenation Mar 10 18:53:00 simple optimization question, is it better to create small outside class with a parameter passed to the constructor or an annonymous inner class that would directly access the property ? Mar 10 18:53:24 in term of memory management Mar 10 18:53:29 probably compiles to same thing Mar 10 18:53:35 * Jug6ernaut runs away in case he is wrong Mar 10 18:53:58 DarkRift__: I think the inner classes can get some extra optimizations Mar 10 18:54:17 I thought inner classes are compiled differently because it needs to have some hook to the main class Mar 10 18:54:43 readme: yes and no. The stock apps really, really shouldn't need replacing, because you're just creating instant fragmentation that way. *Every single vendor* has replaced the SMS app (if they do any customisation at all, that is). And all of them are different and incompatible Mar 10 18:54:45 they're only somewhat different Mar 10 18:55:10 not sure about optimizations but functionally you're doing the same Mar 10 18:55:16 it's nice that android lets me replace the stock sms app, but I shouldn't be -required- to if I don't want some esoteric features Mar 10 18:55:31 if logically it makes more sense for the class to be an inner-class then I'd go that route Mar 10 18:55:33 and I submit that "not losing my data" is not very esoteric Mar 10 18:55:42 mathrick: but the mentality of your typical android fanboy, is "I want to install 5 different SMS apps and try them all, then review them and rate them" Mar 10 18:55:58 that's the fanboys' problem Mar 10 18:55:59 http://developer.android.com/guide/practices/design/performance.html#package_inner Mar 10 18:56:12 I'm not a fanboy and don't want to be bogged down by their issues Mar 10 18:56:16 mathrick: i'm just explaining why I think Android will never be iPhone. Apples and bananas. Mar 10 18:56:25 the stock app should be more or less perfect in what it does Mar 10 18:56:40 just found that Mar 10 18:56:44 I guess that would answer my q Mar 10 18:56:48 the iphone will always be a better choice for some. Mar 10 18:57:21 Apple owns it in a very vertical sense Mar 10 18:57:50 you can compare Android and iOS but you cannot rightly compare an Android phone vs. an iPhone in the scope of Google and Apple Mar 10 18:57:59 readme: again, "I can replace the stock app" is no reason that the stock app shouldn't be flawless in what is deemed the appropriate feature set for it. And saving user data properly and intuitively is not a feature, it's UI. User comfort *is* more valuable than developer comfort, period Mar 10 18:58:06 if only google made android phones then android would be better than apple Mar 10 18:58:20 that is your opinion Mar 10 18:58:21 its easier to make hardware and software together Mar 10 18:58:21 not to mention that the dev guide will tell you to save user data as the first thing Mar 10 18:58:45 JakeWharton: the dev guide by google agrees! Mar 10 18:59:24 and everyone see the ICS and move towards less fragmentation as a good thing. You don't get less fragmentation by shipping broken stock apps Mar 10 18:59:56 or are you suggesting that every single android phone vendor is also insane, just like I am, and that's why they saw fit to implement that feature? Mar 10 19:00:11 or rather, fix that glaring UI issue Mar 10 19:01:26 I wasn't paying attention to your conversation before so I'm not even sure what you guys are talking about yet Mar 10 19:01:30 Ktomislav, JakeWharton: yes, vertical integration obviously plays into apple's hand. But that means you should only try harder to make the stock apps not worth replacing, if anything! Mar 10 19:01:44 ie. they should be so good you'd have to be insane to replace them Mar 10 19:01:47 ah Mar 10 19:02:04 Ktomislav: also google does make phones. They're called "nexus", you might've heard of them :) Mar 10 19:02:09 I replaced the stock SMS app with Google Voice, but that's mostly due to the service behind it rather than the app Mar 10 19:02:29 but its not only google that makes android phones Mar 10 19:02:32 I'd say the Nexus phones are maybe 75% google Mar 10 19:02:51 they impose some restrictions but the hardware is still very OEM-specific Mar 10 19:03:09 Ktomislav: and that's why google, who ship the software on which every single one of them is based, should make sure the stock apps are usable as-is Mar 10 19:03:33 rather than make sure that every single vendor will have to replace them, if they want to compete with iphones at all Mar 10 19:03:46 Usually the OEM replacements are worse Mar 10 19:03:50 i agree, but i dont see what can be not usable in sms app Mar 10 19:03:57 they're just worried about the experience and branding Mar 10 19:03:59 Ktomislav: I detailed it above Mar 10 19:04:03 e.g., Sense, TouchWiz Mar 10 19:04:14 they want to differentiate, even at the cost of quality Mar 10 19:04:38 JakeWharton: yes and no. They are worse in other regards, but if you really make it impossible not to, you're only encouraging it Mar 10 19:04:48 mathrick: why should google even focus its efforts on competing with the iphone when there are still plenty of dumbphone users to scoop up that would never have bought an iphone because they just want a cheapo burner? Mar 10 19:05:05 because that's what OEMs do Mar 10 19:05:16 haha, I'd *never* recommend an android (or any smartphone) to such a user Mar 10 19:05:24 smartphones are not "better" than feature phones Mar 10 19:05:35 Google has no interest in that market because they are selling the services that come with Android Mar 10 19:05:43 they are different, and still often way worse than them as far as being a phone goes Mar 10 19:05:58 They want you using GMail and YouTube and Google Maps Mar 10 19:06:03 JakeWharton: and they all suck! Mar 10 19:06:15 gtalk doesn't get saved in the recent apps list Mar 10 19:06:18 What do i import for the sensors? Mar 10 19:06:25 youtube won't load if it's in the background Mar 10 19:06:40 google maps has no way to get a link to what I'm viewing (WTF!?) Mar 10 19:06:51 best part is that gmaps for iOS DOES have that Mar 10 19:07:01 but not the native one for google's own OS Mar 10 19:07:18 that's exactly my gripe, google apps are always 90% quality Mar 10 19:07:21 I don't think the lack of a single feature is enough to condemn those apps to the realm of 'suck' Mar 10 19:08:01 not being able to preload youtube videos without burning my battery is very much suck in my book Mar 10 19:08:50 maybe someone should make u a fire extinguisher app Mar 10 19:08:59 the fact that I can't get back to my gtalk conversation on gingerbread is also a glaring issue that shouldn't ever make it past any QA Mar 10 19:09:22 well Google is always hiring Mar 10 19:09:22 you actually have to add extra manifest elements to make your activity not be recorded there Mar 10 19:09:33 so again, somebody went out of their way to break it Mar 10 19:10:34 lol... Mar 10 19:11:37 readme: gingerbread's app is identical. A slight correction to what I said: 1) open sms 2) type a message with no recipients 3) press home 4) go back to sms app 5) add any random recipient 6) press back Mar 10 19:11:52 now you will see two drafts, one of which has no recipients defined Mar 10 19:12:22 SMS is so 2000's Mar 10 19:12:40 * Jug6ernaut suggests not doing that 1/10000000 combination Mar 10 19:12:56 pressing back is 1/10000000? Mar 10 19:13:10 the sequence is Mar 10 19:13:12 every app has bugs Mar 10 19:13:16 what I said above is a series of steps to demonstrate that both drafts have, in fact, been saved Mar 10 19:13:22 mathrick: i can't reproduce. I think i have an OEM sms app. Mar 10 19:13:36 if you're not running a nexus or CM, then yes you do Mar 10 19:14:02 perhaps Huawei also ships stock, dunno Mar 10 19:14:16 I didn't notice due to the fact that there isn't an sms app on the emulator for my immediate comparison Mar 10 19:14:27 there is! Mar 10 19:14:31 it's called "messaging" Mar 10 19:14:38 oh, duh Mar 10 19:14:39 JakeWharton: but that sequence is not needed to trigger the bug. Pressing back is Mar 10 19:14:45 Sorry, the different icons and stuff threw me off Mar 10 19:14:45 haha this is just hilarious Mar 10 19:15:00 Nokia FTW Mar 10 19:15:01 Ok, now I can do it. Mar 10 19:15:15 might as well try on ics Mar 10 19:15:35 Ktomislav: you bet! I was very sorry to upgrade from my nokia 1210 (which I got for free, too) to a smartphone due to work Mar 10 19:15:47 otherwise I'd have held off for another 1-2 years Mar 10 19:15:58 I waited 4, I can just as well wait more Mar 10 19:16:14 is there a difference between using a PhoneStateListener with LISTEN_CALL_STATE and an android.intent.action.PHONE_STATE receiver, regarding the time when the event is triggered? Mar 10 19:16:18 being a programmer teaches you not to adopt new tech :) Mar 10 19:16:33 overgeneralization!!!!!!!! Mar 10 19:16:34 mathrick: =o....... this is crap. i remember this now from when I had my g1 Mar 10 19:16:39 see? Mar 10 19:16:43 that's what I meant Mar 10 19:16:45 sorry, you're right, this thing is a pile of junk Mar 10 19:16:52 it's UI that's bad just because somebody let it be bad Mar 10 19:17:06 that has nothing to do with UI Mar 10 19:17:13 it has everything to do with the UI Mar 10 19:17:18 it's a pure UI bug Mar 10 19:17:19 the whole time we were discussing this i was using verizon's oem app as a reference, heh Mar 10 19:17:24 yeah ok Mar 10 19:17:27 which btw, isn't so bad, apparently. Mar 10 19:17:48 it's not a bug, it's just not a shiny new sportscar. Mar 10 19:18:14 man, I want another G1 Mar 10 19:18:17 that thing was awesome Mar 10 19:18:22 Hey, I need someone helpful to prove that I'm not going mad. I can't get my android device (in my app, or in browser) to render this image: Mar 10 19:18:23 http://www.pentathlon.org/components/com_uipm/media/images/17054.png Mar 10 19:18:26 when it works perfectly well on desktop and in Opera on the same handset Mar 10 19:18:40 oh, and also the market, which is absolute and utter rubbish. I can count the times it has worked flawlessly on one hand, and I still haven't been able to get the mythical "restore my installed apps" thing to work Mar 10 19:18:45 Can someone PM Me regarding an App im creating? Mar 10 19:19:03 i guess theres only Blizzard left on my list of companys that know how to make things as they should be made Mar 10 19:19:26 and nokia :) Mar 10 19:19:48 Does anyone have the time to help me create a quick app? Mar 10 19:19:57 Ktomislav: right, like the RealID and running themselves into the ground to the point where everybody and their dog has abandoned Symbian :) Mar 10 19:20:03 mathrick: menu key -> my apps Mar 10 19:20:23 readme: yes, after you do a wipe, it will only list your paid apps Mar 10 19:20:36 it's supposed to restore everything automagically Mar 10 19:20:39 but it doesn't for me Mar 10 19:20:42 yea, but it all worked good Mar 10 19:21:01 while I understand the motivation for that, I never really noticed because I didn't care to recover free apps, but understand why you would be displeased. Mar 10 19:21:15 tomtiger11: http://developer.android.com/guide/topics/sensors/index.html Mar 10 19:21:38 It's truly irritating, because when I inspect the element using weinre, the image appears fine in my desktop browser. Mar 10 19:21:46 and i just hate updating android.. why cant there be a built in backup app?? Mar 10 19:21:54 Are there any known issue with some PNG's not being rendered correctly ? Mar 10 19:22:50 mathrick: Thanks, Can i PM you? Mar 10 19:23:03 mathrick whats wrong with RealID? Mar 10 19:23:17 tomtiger11: I don't think so, I just know there's a section in the dev guide, but I've never programmed sensors myself Mar 10 19:23:51 so I won't be able to help you Mar 10 19:24:13 Its more about the way i can program it, like storing the sensor readings, and displaying them Mar 10 19:24:42 then you should state the questions in the channel. It's your best bet for getting useful answers Mar 10 19:24:46 or so I hope anyway Mar 10 19:25:09 stackoverflow is a much better bet Mar 10 19:25:20 because irc is not as well suited to questions and answers Mar 10 19:25:25 but here is good too Mar 10 19:25:48 mathrick: I have to add my +1 about the "mysterious restore my installed apps" function. I acn't really figure out to whom it applies. Mar 10 19:26:30 mathrick: Just having a way of listing perhaps apps I've rated or why not a Favorite-star-function, would be pretty sweet. Mar 10 19:26:48 Chris_W_uk: I get a blank page here, running 2.3.5 + dolphin HD Mar 10 19:27:03 mathrick, now try it on your desktop Mar 10 19:27:10 I already did :) Mar 10 19:27:10 it should be the brazilian flag Mar 10 19:27:13 yes, it's fine Mar 10 19:27:20 so... WTF?! :) Mar 10 19:27:29 it should be checked with a PNG validator first, tho Mar 10 19:27:44 think the file is sloppy? Mar 10 19:27:53 could be Mar 10 19:28:16 http://pastebin.com/XgCYYSza Mar 10 19:28:31 that's my first bet. libpng probably swallows it, the whatever webkit-android uses doesn't Mar 10 19:28:53 hmm Mar 10 19:29:19 I need some cli tool then, there are 100's of those images generated from some older db-driven desktop app Mar 10 19:29:34 http://pastebin.com/XgCYYSza Mar 10 19:29:37 but that would explain things - I started to think it was me going nutts Mar 10 19:30:15 Chris_W_uk: http://sourceforge.net/projects/png-mng/files/pngcheck/2.3.0/pngcheck-2.3.0-win32.zip/download Mar 10 19:30:49 tomtiger11: you need to define "display data" Mar 10 19:30:59 what exactly is your problem and what do you have so far? Mar 10 19:31:24 tomtiger11: Are you registering the SensorManager as well? Mar 10 19:31:31 win32? What kind of punk do you think I am? ;) Mar 10 19:32:27 $ pngcheck.exe 17054.png Mar 10 19:32:27 17054.png this is neither a PNG or JNG image nor a MNG stream Mar 10 19:32:27 ERROR: 17054.png Mar 10 19:32:27 mathrick@madoka ~/Downloads/Prog Mar 10 19:32:27 $ file 17054.png Mar 10 19:32:28 17054.png: JPEG image data Mar 10 19:32:38 Chris_W_uk: and now you know! Mar 10 19:32:47 it's some idiot mislabelling things again Mar 10 19:33:13 tomtiger11: Your code snippet is a tad to limited to draw a conclusion of your problem. Mar 10 19:33:48 drlaban: right... Well i have registered SensorManager Mar 10 19:34:03 Chris_W_uk: I moved to win7 because ubuntu has gone mad with power, and I really didn't want to set up linux on a thinkpad tablet. In retrospect, it was a 100eur mistake, I'd have had at least as good user experience by not using lenovo's software Mar 10 19:34:07 Its whats from the guide Mar 10 19:35:19 tomtiger11: Which guide? Mar 10 19:35:23 Chris_W_uk: so anyway, any time you deal with data someone else feeds you and it doesn't work, you should suspect they blew it. Because they probably did Mar 10 19:35:33 sorry 100 different chats at once... Mar 10 19:36:22 Ktomislav: https://en.wikipedia.org/wiki/Blizzard_Entertainment#Privacy_controversy_and_Real_ID Mar 10 19:36:27 hey all, just released To Do Mapr. Would love some feedback... https://play.google.com/store/apps/details?id=com.controlledsenility.android.todomapr Mar 10 19:36:48 mathrick, cheers for that Mar 10 19:36:49 lol didnt think you would answer that xD Mar 10 19:37:04 Ktomislav: the poor Blizzard sap they made publish his real data as a "proof" it was safe has been harassed ever since, also his entire family Mar 10 19:37:25 his address, phone numbers, tax statements, family history have all been published online... Mar 10 19:37:32 drlaban: http://developer.android.com/guide/topics/sensors/sensors_environment.html Mar 10 19:37:39 mathrick, I'm on thinkpad T520 with (soon to be swapped) ubuntu for lxdubuntu Mar 10 19:37:45 Chris_W_uk: glad to be of assistance! Mar 10 19:37:57 will find a cli script and check the 100's of other images there Mar 10 19:38:24 well, i played wow for a short time so i didnt know about that Mar 10 19:38:59 Chris_W_uk: former happy user of x60, and a terribly disappointed current x220t owner here. I will probably man up and replace it with linuxmint one of these days probably Mar 10 19:39:31 mathrick, co-worker had a crack at Mint for a bit, quite liked it Mar 10 19:39:52 I'm going to try to stick ubuntu as so many of our servers are as well Mar 10 19:39:58 I just can't stand Unity. Mar 10 19:40:12 (the windows manager, not the concept) Mar 10 19:40:38 ugh Mar 10 19:41:01 I'm not sure I'd go with Ubuntu. But Red Hat has also been doing weird stuff Mar 10 19:41:33 Chris_W_uk: yes, but it's only one facet of ubuntu being fucking insane these days. Mark has a serious black turtleneck complex, and it shows Mar 10 19:41:45 mint, OTOH, is ubuntu without the insane UI bits Mar 10 19:41:51 puppy ftw ! Mar 10 19:41:59 * mcr gonna try linuxmint on new desktop. Mar 10 19:41:59 but lack of unity is unlikely to hinder you on the servers :) Mar 10 19:42:01 or lfs :D Mar 10 19:42:11 slackware lololololol! Mar 10 19:42:21 lol mathrick how do you know all that stuff Mar 10 19:42:23 for people who are too insane to breathe, but still manage to somehow Mar 10 19:42:28 tomtiger11: Have you tried adding a Log.d("TAG", "Sensordata: " +millibars_of_pressure); Mar 10 19:42:33 Ktomislav: way too much internet, way too little actual work done Mar 10 19:42:41 xD Mar 10 19:42:47 Anyone able to help me here? Mar 10 19:43:01 tomtiger11: Or something to that extent, so you know the onSensorChanged actually catches anything? Mar 10 19:43:03 mathrick: Ubuntu also got the same illness that caught on with freedesktop.org Mar 10 19:43:18 there's fd.o illness? Mar 10 19:43:26 drlaban: Ehhhh?!?!?!? Mar 10 19:43:58 tomtiger11: you still haven't told us what you want to do. If you question is "someone please write my app for me", then it's a bit of a tall order, sorry Mar 10 19:44:04 *your Mar 10 19:44:42 mathrick: yes. It's caused "how can we fuck it up further into an unholy mess by mixing wrong concepts together because we can't be arsed to think about them deeper". The same thing that got NT into the sad shape it is now ;) Mar 10 19:44:44 tomtiger11: Alright, just to get things straight: What exactly works and what does not, from what you have implemented so far? Mar 10 19:44:57 *called Mar 10 19:44:57 mathrick: Nonononononononononono, Its, How do i display the readings from the sensors? Mar 10 19:45:15 tomtiger11: How do you _want_ them displayed? Mar 10 19:45:21 In text Mar 10 19:45:26 tomtiger11: Toast, TextView, EditText? Mar 10 19:45:31 TextView Mar 10 19:45:59 tomtiger11: step 1) make a textview 2) put the value from the sensors in the textview from 1. Mar 10 19:46:29 1) Done 2) Thats what the problem is, how do i do that? Mar 10 19:47:00 p_l: oh, you mean like the MPRIS mess? Mar 10 19:47:11 tomtiger11: If you're sure you're getting readings from the sensor, my guess would be adding "myTextView.setText(String.valueOf(millibars_of_pressure));" should work Mar 10 19:47:29 Ok, Thanks Mar 10 19:47:48 tomtiger11: good luck Mar 10 19:48:30 I assume the thanks goes to mathrick as well, since he tried to establish what the actual problem was to begin with Mar 10 19:48:44 :D Mar 10 19:49:16 Credit where credit is due. Mar 10 19:49:45 don't mention it, years of IRC user support have made it entirely automatic Mar 10 19:50:22 mathrick: The word "thanks" still has meaning, even after 30 years of support experience. Mar 10 19:50:35 :) Mar 10 19:50:36 mathrick: everything, starting with the Xft2 implementation choice (which started the "let's break X11!!1oneoneeleven" trend), through the crazy of D-Bus (which has good idea... and horrible implementation that is completely orthogonal to the whole OS) Mar 10 19:50:45 drlaban: http://pastebin.com/LFaLvmgt Mar 10 19:51:57 p_l: I dunno what's wrong with dbus really, and xft2... well, it was that or staying with the woefully inadequate XLFD & core fonts (which have been MEANT to be replaced from day one) Mar 10 19:52:02 tomtiger11: I should be clear that I haven't implemented the code myself. I just gave you an example of a way to do it. Not tested out code. Mar 10 19:52:07 in that way, X11 came prebroken Mar 10 19:53:00 drlaban: Can i give you my full code for you to look at? Mar 10 19:53:10 mathrick: actually, there were two competing implementations... one proposed by Sun, another was Xft2. Sun's was server-side, so you could continue sending *text* to server to properly draw with all local display corrections like proper DPI. Mar 10 19:54:02 p_l: I sorta recall that, but IIRC it was not very usable for a long time. I wasn't aware of the DPI issue, that's a good point Mar 10 19:54:29 tomtiger11: We could make an attempt, sure. Pastebin it? Mar 10 19:54:30 mathrick: you might recall the other one, which was using TTF fonts with X font servers and later on embedded font server Mar 10 19:54:49 which is older than Sun's and Xft2 Mar 10 19:54:53 * g00s looks up to notice X and fonts being discussed; runs the other way Mar 10 19:54:58 p_l: it didn't solve the fundamental issue of needing font metrics locally and the fonts being huge Mar 10 19:55:25 drlaban: http://pastebin.com/viKWDXxM Mar 10 19:55:44 mathrick: basically, X11 was supposed to abstract the display for you. Now? Every single app has to know which way the subpixels are arranged Mar 10 19:55:57 s/app/toolkit/ Mar 10 19:56:07 tomtiger11: Alright, looking through it Mar 10 19:56:09 mathrick: I don't care what the app used for implementing that Mar 10 19:56:16 that's why you really, really want to use a toolkit, and if you don't, then I want to hit you Mar 10 19:56:55 mathrick: I'm looking at it from the pov of what actually runs. Meaning that every single application has to load a completely separate configuration data about displays Mar 10 19:57:03 p_l: And il stand behind you with a hammer Mar 10 19:57:09 p_l: xsettings, but yes Mar 10 19:58:06 tomtiger11: First of all, the onSensorChanged method should not be within the onCreate method. Mar 10 19:58:14 (looking at it from the pov of processes - yes, they use toolkits, but they are essentially part of the app after compilation/linking) Mar 10 19:58:16 still, fd.o has been IMMENSELY helpful at getting the X desktop from "haha are you joking" state all the way to to "you could make it suck less with a bit of work" Mar 10 19:58:32 tomtiger11: Put it below the onCreate method ending curly bracket. Mar 10 19:58:46 the real problem with FD.o is the fact that it really assumes that X == linux, IMHO Mar 10 19:58:57 (hello, HAL) Mar 10 19:59:27 mathrick: and that they don't understand *nix Mar 10 19:59:50 *nix was broken when they started fixing it, and that's not something that's up to discussion Mar 10 19:59:51 mathrick: reminds me of the FSF tools that for a long time were at least theoretically GNU Hurd-oriented Mar 10 19:59:59 you can only argue about what the best fix was Mar 10 20:00:00 mathrick: broken by actions like that, actually Mar 10 20:00:09 hell no Mar 10 20:00:22 broken by the previous licensed Unix systems out there Mar 10 20:00:35 have you ever *tried* using anything with CDE for example? Mar 10 20:00:40 solaris 8? Mar 10 20:00:50 it was SO bad it was a mystery it booted at all Mar 10 20:01:11 also, the solaris idea of system configuration? "Change these values in the kernel config, then recompile and reboot" Mar 10 20:01:13 mathrick: which did similar actions (creation of multitude badly conceived APIs and subsystems, made completely orthogonal to the underlying OS) Mar 10 20:01:36 p_l: what about AIX then? Mar 10 20:02:00 which was something not quite unlike a sacrificial altar, albeit with a lower chance of success? Mar 10 20:02:26 I cannot tell anything about IRIX, it might've worked for all I know Mar 10 20:02:30 mathrick: does similar shit even server side, though I have to admire the fact that the config database at least *seemed* to me (when I first seen it) to be manipulation of extended attributes Mar 10 20:02:33 drlaban: http://pastebin.com/wxb10Bui Mar 10 20:03:07 I'm not against working towards better desktop, and the *general* ideas aren't bad... but man, do they suck like crazy with implementation Mar 10 20:03:29 p_l: and that's exactly my point. There's no mythical "unix" which does things right, there's only a multitude of bad hacks, all of them officially licensed to use the name Unix, expensive and incompatible with each other Mar 10 20:03:40 and because it's all based on "let's link with this library and use this abstract interface", I can't integrate the whole thing properly Mar 10 20:03:47 the FD.o hacks at least get us mistakes that are interoperable somewhat between vendors Mar 10 20:03:56 tomtiger11: Does it give the same error or something else.... or...? Mar 10 20:04:02 although that's only linux vendors 50% of the time Mar 10 20:04:27 mathrick: and that's only because majority of that is based on two codebases Mar 10 20:04:38 well, three, there's a lot of difference between Fedora and RHEL these days Mar 10 20:04:43 tomtiger11: You don't have to use setContentView() in both methods. Remove it from the onSensorChanged method. Mar 10 20:04:49 that's still an improvement! All of the proprietary unices had one codebase Mar 10 20:04:54 Ok Mar 10 20:05:05 occasionally two when the vendor decided to reimplement themselves Mar 10 20:05:15 then you could bet they'd be incompatible Mar 10 20:05:20 mathrick: method or function: What's the correct usage? I always mix myself up... Mar 10 20:05:28 mathrick: no, they had one codebase per vendor (most of the time, there was USL distro but that was mainly PC-unices) Mar 10 20:05:46 drlaban: So, if the users device has the sensor, and the reading changes, it will say the reading? Mar 10 20:05:57 drlaban: in java, all you have are methods. But if you say "public static", then you're really writing a function, it's just java being stupid Mar 10 20:06:26 in this case, they are methods, because they are actually pertinent to the object instance in question Mar 10 20:06:38 mathrick: Oh, that's a nice, clear explanation. Thanks. Mar 10 20:06:50 any time! Mar 10 20:07:06 mathrick: I especially like the "it's just java being stupid" part. :D Mar 10 20:07:45 tomtiger11: Have you got a sensor? Are you trying to develop this for a device you got yourself? Mar 10 20:08:08 mathrick: I'm very tempted to try and make a d-bus lib that will actually talk to a filesystem instead of over a socket, so I can apply (without ugly hacks) any kind of security etc. Mar 10 20:09:11 (and most importantly, talk to it from shell) Mar 10 20:10:07 drlaban: http://pastebin.com/wfw7GY8H - event cannot be resolved to a variable Mar 10 20:12:44 visa just cancelled my card Mar 10 20:12:52 apparently if you open a fraud investigation, that automatically cancels it Mar 10 20:13:07 also: visa reps cant pronounce 'github' Mar 10 20:13:40 tomtiger11: Something more along the lines of: http://pastebin.com/hhZZbBzc Mar 10 20:14:32 drlaban: So that will display the sensor readings all the time? Mar 10 20:14:37 (And all the while the discussion is progressing, I'm frantically installing Eclipse on my poor Samsung N150 Plus netbook)... Mar 10 20:15:02 canadiancow|work: did *you* open it, or you mean you were notified of it happening? Mar 10 20:15:06 i opened it Mar 10 20:15:13 tomtiger11: Have you any way of testing this? Like, a device of your own that you could install the app on? Mar 10 20:15:15 well i told them there was an unauthroized charge Mar 10 20:15:17 they opened it Mar 10 20:15:22 "so your card has been cancelled" Mar 10 20:15:26 * p_l also loves utterly broken networks that can reallocate IPs despite active connections Mar 10 20:15:26 "you'll get a new one tuesday" Mar 10 20:15:33 canadiancow|work: at least that Mar 10 20:15:36 p_l: haha, I find the suggestion of unix filesystem being secure pretty hilarious Mar 10 20:15:37 so now im like...fucked Mar 10 20:15:46 how do you buy stuff without a credit card? Mar 10 20:15:47 mathrick: I'm not talking about filesystems being secure Mar 10 20:15:48 i should ask for a backup Mar 10 20:15:57 then what do you mean? Mar 10 20:16:04 drlaban: My device is a HTC Explorer... So it only has a proximity sensor, Light sensor and G-Sensor Mar 10 20:16:23 no accelerometre? Mar 10 20:16:34 My teacher has a HTC Wildfire. Mar 10 20:16:37 mathrick: the filesystem forms a common API understood by *all* applications, without dynamically linked libs that implement weird protocols that system can't track Mar 10 20:16:43 mathrick: Probaly Mar 10 20:17:05 Thats what the G-Sensor is... Mar 10 20:17:06 tomtiger11: install Elixir2 to see what sensors exactly you have Mar 10 20:17:09 oh, right Mar 10 20:17:14 tomtiger11: Is the project compiling and the app getting installed on your device? Mar 10 20:17:14 mathrick: and because it's tracked by kernel, all the security enhancements for *nix include ways to control such access Mar 10 20:17:40 drlaban: Once the code is done, yes Mar 10 20:18:05 https://play.google.com/store/search?q=elixir+2&c=apps Mar 10 20:18:47 drlaban: Same error, same line Mar 10 20:19:14 mathrick: I can't do so to a binary protocol going over an unix socket which to make funnier needs extra handling to make sure I actually got the correct bus Mar 10 20:19:15 p_l: unix is really a piss-poor substrate, though, and trying to coax everything into a flat stream of characters is a really good way to get something that will never be appropriate for anything Mar 10 20:19:26 How many cores does the most diesel android phone have at present? Mar 10 20:19:28 2? Mar 10 20:19:44 what's "most diesel" mean? Mar 10 20:19:48 mathrick: Plan 9 did quite well by making filesystems easier to create, mount and connect Mar 10 20:19:55 mathrick: dunno, used by Vin Diesel? ;) Mar 10 20:20:01 mathrick: i think you can infer :D Mar 10 20:20:01 canadiancow, you pay with Square! Mar 10 20:20:06 p_l: actually in linux the sockets are files, on a virtual fs Mar 10 20:20:11 JakeWharton: how Mar 10 20:20:33 readme: no, I'm honestly not familiar with that expression. Is that "most powerful" or "most commonplace" or what? Mar 10 20:20:36 with Card Case you pay with your name and it's linked to a bank account Mar 10 20:20:44 mathrick: you've got it Mar 10 20:20:50 do i get reward points? Mar 10 20:20:53 extended warranty? Mar 10 20:20:56 free travel insurance? Mar 10 20:20:57 which of those two did get it? Mar 10 20:20:59 mathrick: I know about sockfs. Couldn't figure any place to mount it ;) Mar 10 20:20:59 free rental car insurance? Mar 10 20:21:02 etc Mar 10 20:21:05 all of them Mar 10 20:21:07 plus strippers Mar 10 20:21:10 heh Mar 10 20:21:21 paying for strippers with square? Mar 10 20:21:27 strippers just pop out of the micro-usb port of your phone when you pay Mar 10 20:21:40 what if you have a mini usb port Mar 10 20:21:44 or a samsung port Mar 10 20:21:45 readme: I think all the quads are not yet out Mar 10 20:21:47 tomtiger11: this line: "public class Tom4Activity extends Activity". You've missed out on SensorEventListener from the guide...: public class SensorActivity extends Activity implements SensorEventListener Mar 10 20:21:57 * mathrick wonders if multicore medfield is coming Mar 10 20:22:03 JakeWharton: this is very important, because the ATM at a strip club usually has fees upwards of 10 dollars Mar 10 20:22:16 mathrick: and multplexing everything over D-Bus means that suddenly there are crazy things that need extra support from both userland and kernel, because you can't track permissions Mar 10 20:22:32 mathrick: i was thinking id do 8, to future proof my code Mar 10 20:22:33 I don't need multicore in a *phone*, but I would like to replace my computer with a docking station in a near future Mar 10 20:22:38 but 4 i guess is safe Mar 10 20:22:45 what do you mean by "do"? Mar 10 20:22:53 readme, there's no reason a stripper couldn't accept Square Mar 10 20:23:13 mathrick: decide how many lines to read from the head of /proc/stat. Mar 10 20:23:17 if (number_of_cores > 4) { die("omgwtf"); } ? Mar 10 20:23:21 drlaban: Thats not the error... Mar 10 20:23:25 nah Mar 10 20:23:31 JakeWharton: ... actually, I'd like a square->bitcoin->cash for those use cases Mar 10 20:23:31 my code will not be doing that Mar 10 20:23:37 readme: how about /proc/cpu ? Mar 10 20:23:46 drlaban: Line 26 Mar 10 20:23:49 which will tell you about all the CPUs Mar 10 20:23:51 that's not a file in procfs Mar 10 20:23:53 cpuinfo Mar 10 20:23:56 oh, cpuinfo Mar 10 20:23:57 does bitcoin still even exist? Mar 10 20:24:02 it tells you info, but /proc/stat has the cputime usage Mar 10 20:24:04 I don't actually have a running linux handy Mar 10 20:24:09 JakeWharton: yes, just there's less hype Mar 10 20:24:14 yes, but you can get the number of cores from cpuinfo Mar 10 20:24:20 so you know exactly how many lines to stat Mar 10 20:24:21 except for some hilarious "bank robberies" Mar 10 20:24:22 oh, that's a good point. Mar 10 20:24:26 I could do it that way. Mar 10 20:24:52 what's square? Mar 10 20:24:56 I can also read lines from /proc/stat until none start with "cpu" Mar 10 20:25:09 tomtiger11: Ah, sorry. You can't get the value from the event variable in onCreate. Has to happen in onSensorChange in this situation. Mar 10 20:25:28 is there a 30% fee taken for in-app billing? Mar 10 20:25:42 40% Mar 10 20:25:47 to make sure you're serious about the purchase Mar 10 20:25:59 ... Mar 10 20:26:10 So the sensor value has to change? Mar 10 20:26:14 canadiancow|work: immediately blocking a suspicious card is the only sensible option, so as much as I wish all CC companies died in a big chemical fire, I can't fault them for that one Mar 10 20:26:34 that said, I do feel for you, I also don't use that whole "cash" thing these days Mar 10 20:27:12 yea like im not really complaining Mar 10 20:27:14 but honestly Mar 10 20:27:18 if i had known that Mar 10 20:27:21 i would have called monday Mar 10 20:27:21 :P Mar 10 20:27:22 JakeWharton: it turns out bitcoin was really just a conspiracy by the federal reserve to make the dollar look like a viable currency Mar 10 20:27:39 heheh Mar 10 20:28:09 drlaban: How do i add another sensor then? As event.values[0] is used by another sensor Mar 10 20:28:32 event.values[1]? Mar 10 20:28:35 (just a guess) Mar 10 20:28:44 reading the API docs would probably tell you Mar 10 20:28:57 tomtiger11: see mathrick's response. I'm guessing this as well. Mar 10 20:29:21 so event.values[1]? Mar 10 20:30:38 tomtiger11: Try and see what you get from it. Mar 10 20:31:04 Ok, Il have to do that tomorrow Mar 10 20:32:12 Is everything in Java supported by Android? Mar 10 20:32:55 no Mar 10 20:34:21 Kake_Fisk: One of my friends asked me this the other day. I couldn't answer him. JakeWharton, do you know what's missing/added? Or perhaps something on the InterWebs that explains it? Mar 10 20:34:38 there's no comprehensive list Mar 10 20:34:42 checking the docs is the best way Mar 10 20:34:52 there's also some fundamental differences in the VMs Mar 10 20:34:55 ohh Mar 10 20:35:19 for instance, you can't do byte rewriting (e.g., mocking) Mar 10 20:35:43 JakeWharton: Oh yes, of course, now that you mention it, they _are_ running different VM's, aren't they? ;) Mar 10 20:35:43 Do you know if most of java.io is supported? Mar 10 20:36:02 d.android.com will tell you all Mar 10 20:36:09 I'll try Mar 10 20:36:10 but, yes Mar 10 20:36:16 java.io is an extremely common package Mar 10 20:36:33 I see Mar 10 20:46:10 hi Mar 10 20:46:46 Doesn't look like Android have java.io.FilenameFilter :| Mar 10 20:50:09 Kake_Fisk: look harder Mar 10 20:50:20 I'll try Mar 10 20:50:33 Oh, it's an interface Mar 10 20:50:52 ... Mar 10 20:51:28 outerface Mar 10 20:52:12 Is it possible to get all the files in the res/raw/ folder and put them in an array? Mar 10 20:52:30 you probably want assets/ for that Mar 10 20:52:41 everything in res/raw/ is known at compile time Mar 10 20:52:56 ah Mar 10 20:52:56 not that assets isn't Mar 10 20:53:19 assets/ is more like a filesystem where res/raw/ acts like resources Mar 10 20:54:03 I kind of want to load all my maps into the game when you start it. So I don't have to hardcode the filenames. Should I use assets for this? Mar 10 20:57:03 hey guys, i'm my program as 5 dynamic spinners, I select for example 4 with a choice, if I flip my phone horizontaly the spinners lost their choices, any sugestion to make it "stable"? Mar 10 20:57:28 save their selection in onPause Mar 10 20:57:35 read the selection from the Bundle in onCreate Mar 10 20:57:53 flip in the phone puts it onPause? Mar 10 20:57:59 yes Mar 10 20:58:03 the activity is recreated Mar 10 20:58:10 hmm makes sense Mar 10 20:59:14 other thing, I'm putting files on /data/data/myprogramfolder/ when I make sure I can delete them? onDestroy() right? Mar 10 20:59:39 onDestroy may never get called Mar 10 20:59:50 onStop? Mar 10 21:00:27 even onPause may not be called if the app is killed Mar 10 21:00:41 the thing is, I've tried the onDestroy an onStop to delete those files but after I start again my app it crashes :S Mar 10 21:00:58 why do the files need to be deleted when the activity leaves? Mar 10 21:02:00 in the future I don't want the users to have lots of files in my folder if I don't delete them Mar 10 21:02:51 I would check for old files when the activity starts and delete them then Mar 10 21:03:01 in a background thread Mar 10 21:03:14 hmm not a bad idea ;) Mar 10 21:03:54 I was ondering, if my app can acess to that folder how I make sure I can't delete the whole /data/ folder on porpose? Mar 10 21:04:06 knowing when an activity (or application) is truly stopping is hard Mar 10 21:04:17 uh, be very careful! :) Mar 10 21:04:47 lol but it's dangerous if someone puts something like that on the market Mar 10 21:04:49 your app only has access to its own data folder Mar 10 21:04:56 but there are other files in there that you may not want to delete Mar 10 21:05:10 I know, the libs folder ;) Mar 10 21:06:49 you told me to save the values on the spinners onPause(), and load them when? onStart()? Mar 10 21:07:31 onCreate Mar 10 21:07:44 after you call findViewById and store them in an instance variable Mar 10 21:07:54 if (savedInstanceState != null) { /* TODO load spinner states } Mar 10 21:09:17 jakey Mar 10 21:09:21 mikey Mar 10 21:09:25 wanna be on my beta list for my game? Mar 10 21:10:20 yes\ Mar 10 21:10:22 -/ Mar 10 21:10:23 er Mar 10 21:10:25 -\ Mar 10 21:10:34 i can't type on my laptop after using a Mac :( Mar 10 21:10:38 what am I becoming?!? Mar 10 21:11:01 lol Mar 10 21:11:12 yeah i cant type on real keyboards either anymore Mar 10 21:11:16 fucking mac laptop key Mar 10 21:11:16 s Mar 10 21:11:25 i cant type on this either actually Mar 10 21:12:16 other thing, I can find an option to the spinners to put the previous option, somethin call setItemSelected? :S Mar 10 21:15:29 setSelection Mar 10 21:59:17 does any one know if the OS has a preinstalled app, and we want to send updates to that app after release, if there is any special process for that? Mar 10 21:59:31 like how gmail/youtube apps get updated even when they were preinstalled? Mar 10 22:00:08 <[deXter]> They get installed to /data/app Mar 10 22:00:16 <[deXter]> which is mounted r/w Mar 10 22:03:52 [deXter]: so an update to the app on the market,.. err play .. would update the app? Mar 10 22:04:06 <[deXter]> yeah Mar 10 22:04:14 <[deXter]> doesnt matter if its preinstalled Mar 10 22:05:07 <[deXter]> And I prefer calling it Market instead of Play. Play, is just stupid. Devalues the work of serious app developers. Mar 10 22:05:14 <[deXter]> The Market isn Mar 10 22:05:19 <[deXter]> t all fun and games Mar 10 22:07:01 yeah i was being sarcastic there.. its so retarded Mar 10 22:07:45 its so random "Google Play" and that stupid market website design.. its hideous .. all boxes and stuff Mar 10 22:07:57 no fluidity to the design what so ever Mar 10 22:08:32 "3 days to Play" what after 3 days? no play? Mar 10 22:08:49 i could go on but whatever.. anyways thanks for your help! Mar 10 22:09:07 <[deXter]> np Mar 10 22:24:20 * g00s is still looking for a good interactive chortling library beside achartengine Mar 10 22:24:26 heh, charting Mar 10 22:24:37 g00s: ahoy matey! goin sailin? Mar 10 22:24:38 heh Mar 10 22:24:46 chortling library... :) Mar 10 22:24:51 What is the best practice for not redrawing a view, lets say I'm rebuilding the sms application. Mar 10 22:25:40 fuck, i'm going to have to write my own Mar 10 22:36:23 Hey. I'm looking for the ideal "Wizard" component to handle fragments. I have fragments which all represent the different parts of the form (wizard) and i'd like to have next and back buttons at the bottom. I've looked at FragmentPager but I don't want to allow the user to swipe the screen, the next/back buttons do that. Any ideas? Mar 10 22:37:17 Amorgos: why not just use a Tabhost then Mar 10 22:38:24 seems like wp8 apps can be c# or C++ , both first class citizens Mar 10 22:38:47 I don't want tabs. I want to be able to have two next/back buttons and a finish at the end. I also want the ability to animate the fragments switching like a viewpager does Mar 10 22:39:22 Amorgos: http://stackoverflow.com/questions/4817900/android-fragments-and-animation Mar 10 22:40:05 Just connect the back and next buttons to shuffle in the appropriate fragment that is next or previous in line Mar 10 22:40:56 g00s: is it straight C++ or Visual C++? Mar 10 22:41:23 uh Mar 10 22:41:42 last time i checked, vc++ was a very compliant c++ compiler Mar 10 22:41:48 although it was not always that way Mar 10 22:41:55 I've got an old logcat log from my Nexus One, and but can't remember what version of Android (either 2.2 or 2.3) it was running at the time. Do you think there is any way of telling from the log? It starts as it boots. Mar 10 22:42:17 ejcweb: maybe by the kernel if it prints it in the log Mar 10 22:42:40 g00s: "very compliant" that made me lol ^^ Mar 10 22:43:46 Amorgos, just have each button execute a transaction to bring in the next fragment Mar 10 22:43:53 you can supply custom animations to make it look like its paging Mar 10 22:47:22 anyone know any easy way to find all instances of: onResume() { ... someCallIShouldNotMakeInOnResume(); ... } ? Mar 10 22:48:14 Hi guys, slightly about to get depressive... I'm trying to use SharedPreferences, I commit the damn setting, the next line of code I can see using Contains that the setting is "stored" properly... now if the instance die, and i try to reload the damn value it doesnt find it. I'm not under gingerbread so I can't use .apply(), here is the very simple code: http://pastebin.com/pSSctS4m Mar 10 22:48:56 DrPenguin: There aren't any instances of 'kernel' in the log - there isn't immediately any reference to version numbers anywhere. Mar 10 22:52:49 mobidroid: How are you storing your SharedPreference reference? In what part of your code are you reading the value for the second time? Mar 10 22:53:14 System.loadLibrary("open_nfc_client_jni"); crashes my app. E/AndroidRuntime( 8016): java.lang.UnsatisfiedLinkError: Couldn't load open_nfc_client_jni: findLibrary returned null. OpenNFC was compiled in by the instructions provides on their .pdf. Any suggestions? Mar 10 22:53:54 skfax: Well initially it was in my Application, then I thought maybe Application context isnt suitable for these operation, so I moved the code to onPause of the Activity, I read the value onCreate the next time the app start Mar 10 22:55:15 which class can i use to get the filename of a user entered Url (http:// etc), i dont want a regex Mar 10 22:55:31 canadiancow|work: find all instances of onResume()? you mean you want to track whenever onResume is called? Mar 10 22:55:38 no Mar 10 22:55:45 i want to find whenever that method is called in an onResume(0 Mar 10 22:55:51 and if possible, a method called from onResume() Mar 10 22:55:55 skfax: btw the commit method return true, so no error i guess Mar 10 22:56:25 mobidroid: Could you pastebin more of your onCreate() code? Mar 10 22:56:35 skfax: sure old on Mar 10 22:56:46 canadiancow|work: hmm.. unless you have those methods actually mark it.. I am not really sure how you could, not sure if theres any sort of mechanism that you can use to dump the activity of a function Mar 10 22:56:56 jangal: http://stackoverflow.com/questions/6092517/loading-a-native-library-for-android-using-eclipse Mar 10 22:57:07 DrPenguin, i need to do this statically Mar 10 22:57:10 it's crashing in the market when it happens Mar 10 22:57:18 but users arent clicking the report button Mar 10 22:57:26 so i see the crash in flurry, but only get one line of the stacktrace Mar 10 22:57:41 which is like android.app.wahtever line 1234 Mar 10 22:57:42 hmm, any chance I could help you debug it? Mar 10 22:57:44 brx_: What do you mean by filename? Have you looked at http://developer.android.com/reference/android/net/Uri.html ? Mar 10 22:57:49 DrPenguin, where do you live? Mar 10 22:57:53 >_> Jersey Mar 10 22:57:56 nope Mar 10 22:57:56 sorry Mar 10 22:58:03 its ok i found it skfax Mar 10 22:58:11 not in a supported country :( Mar 10 22:58:12 was going off in the wrong direction Mar 10 22:58:22 then.. why dont you just send me a debug apk? Mar 10 22:58:33 DarkRift__: thank you. Weird that it didn't add it there. Do I have to manualy put it somewhere and where? Mar 10 22:59:18 DrPenguin: oh i cant do that Mar 10 22:59:24 DarkRift__: The sample I have has only open_nfc_client_jni.dll Mar 10 22:59:25 weird... Mar 10 23:00:09 a dll won't work on android Mar 10 23:00:15 I know Mar 10 23:00:21 it is weird that it didn't add it there Mar 10 23:01:00 the .so I mean Mar 10 23:03:06 skfax: argg, i was calling back the main application to get the preferences it was not in the onCreate, I moved the loading into the onCreate and now it seem to work... Before I go on, why wouldnt it work if the main application is calling the sharedPreferences? Mar 10 23:04:20 I mean technically Application.getSharedPreferences is a valid call no?! Mar 10 23:06:28 skfax: I'll reput the code like it was before (aka not working) I'm really not sure why it was not working Mar 10 23:12:10 interesting comment from trawl http://games.slashdot.org/story/12/03/10/2226214/battleheart-developer-drops-android-as-unsustainable Mar 10 23:12:19 *trawg Mar 10 23:13:22 as of yet, is is possible to fullscreen an application removing the systembar? Mar 10 23:13:31 g00s i saw that Mar 10 23:13:36 but 5%? i find that hard to believe Mar 10 23:13:39 i cant really talk numbers Mar 10 23:13:45 skfax: sorry, I found the issue, it wasnt really on the sharedPreferences, it's me missing the ! in contains condition that lead to a bad assumption, thanks a lot for your time Mar 10 23:13:48 but i assure you android is more than 5% of our mobile revenue Mar 10 23:14:11 * g00s should have known canadiancow|work would see that before he did ;) Mar 10 23:14:26 lol Mar 10 23:14:43 isn't google working on some unified gaming platform ? Mar 10 23:15:33 Google games Mar 10 23:16:40 Google Play? :P Mar 10 23:20:10 * mobidroid fell ashame of the last bug hehe Mar 10 23:20:12 g00s: PlayN Mar 10 23:20:50 I want to build a dummy jni(?) library that does absolutely nothing. Mar 10 23:20:52 a Java-only library that provides you an event loop and common interfaces between Android, HTML5, normal Java and I think some more Mar 10 23:20:57 what is the minimum code required? Mar 10 23:21:24 but so that it would be loaded without the program crashing :D Mar 10 23:27:01 * g00s didn't realize that styling food for a picture is actually a profession Mar 10 23:27:31 everything can be a profession. Mar 10 23:27:45 i see g00s is busy reading the entire internet again. Mar 10 23:27:52 hehe Mar 10 23:27:57 procrastination is a wonderful thing. :) Mar 10 23:28:30 i will reach the end of the interwebs if i try hard enough Mar 10 23:28:41 Nothing interesting to see there. Mar 10 23:29:02 i actually think you might do that. but the question is, will you be any smarter? Mar 10 23:29:16 The more you know, the dumber you become. Mar 10 23:29:26 soemthing like that... :) Mar 10 23:35:49 what is better, psilocybin mushrooms or lysergic acid diethylamide? Mar 10 23:36:08 depends on what kind of high you're looking for. Mar 10 23:36:24 and how clean the acid is. Mar 10 23:36:54 but those are just things i read from a book. :) Mar 10 23:37:21 i understand that. this is for a research paper as well.. obviously i would never do this stuff.. Mar 10 23:38:07 well, "better" is very subjective, but your best bet to start your research is http://www.erowid.org/ Mar 10 23:38:52 k. does that have any information about mescaline? Mar 10 23:39:07 yes, all psychoactive drugs Mar 10 23:39:26 great. ty Mar 10 23:40:37 neekers knows his drugs Mar 10 23:40:45 heh Mar 10 23:47:46 i wish i knew android as well... Mar 10 23:49:01 as SimonVT... :) Mar 10 23:50:13 I only know stuff I used myself :F Mar 10 23:52:08 one area of android i still find challenging, is mapping a uri scheme to a data model for content providers, in a way to make uri notifications useful. Mar 10 23:53:43 as of yet, is it possible to fullscreen an application removing the systembar? Mar 10 23:56:23 yeah funkster Mar 10 23:56:53 DrPenguin: is this a new feature? i checked back few months ago and it wasn't possible., heh Mar 10 23:57:10 Im pretty sure its been there since atleast 2.1 Mar 10 23:58:09 then no, we arent talking about same thing. Mar 10 23:58:37 then you need to be a bit more clear about what your asking then, because I just answered the question you asked Mar 10 23:58:38 There's some flags in View for this, try them.. SYSTEM_UI_FLAG.. Mar 11 00:00:16 DrPenguin: http://stackoverflow.com/questions/6099105/hiding-systembar-in-android-3-0honeycomb Mar 11 00:00:49 funkster: i don't think so. you can ask pfn Mar 11 00:00:51 I believe the answer to that question is no, although I know someone here made an app that can do it Mar 11 00:00:58 but I think it requires root Mar 11 00:01:04 yeah =( Mar 11 00:01:27 when newest version come out? i cant use android until thats possible - have to use apple and its more expensive... baaah Mar 11 00:01:52 well ICS just came out a few months ago, its the same story Mar 11 00:01:59 and I doubt Jelly Bean will implement what you want Mar 11 00:02:04 dammit Mar 11 00:04:13 It's possible to hide it, but not permanently disable it Mar 11 00:04:18 The user will always be able to get to it Mar 11 00:05:05 yeah - wont work for me Mar 11 00:06:01 anyone know of a natural language date parser that natty android Mar 11 00:06:10 er, is better than* Mar 11 00:06:24 wow, I accidently that entire sentence Mar 11 00:07:02 Does anyone know of a natural language time/date parse that I can easily use in an android application that would be better than natty?*** http://natty.joestelmach.com/ Mar 11 00:08:51 looks like natty uses antlr Mar 11 00:09:02 which would probably suck on android Mar 11 00:10:01 http://stackoverflow.com/questions/9594966/android-antlr-make-not-working-properly Mar 11 00:10:07 you could try http://www.date4j.net/ Mar 11 00:10:17 never tried it, seems to have some parsing classes Mar 11 00:10:46 how do I tell proguard to keep any annotations in a single package Mar 11 00:11:13 JakeWharton: did you move already ? Mar 11 00:11:18 yes Mar 11 00:11:32 been here a week Mar 11 00:11:38 \o/ Mar 11 00:12:20 still unpacking Mar 11 00:12:24 just got my chair set up Mar 11 00:12:29 no longer sitting on a pillow on my desktop tower Mar 11 00:13:08 \o/ Mar 11 00:15:29 oops, amazon put the whole book as preview :D Mar 11 00:16:23 JakeWharton: who are you working for? Mar 11 00:16:29 Square Mar 11 00:16:34 oh yeah.. Mar 11 00:16:37 thats cool Mar 11 00:17:01 JakeWharton: as in Square Enix? Mar 11 00:17:13 just Square Mar 11 00:17:22 mkay Mar 11 00:19:02 i actually have a square reader here Mar 11 00:23:47 charge some people Mar 11 00:23:56 pay my salary Mar 11 00:24:15 * p_l sees it as interesting, but so far meaningless Mar 11 00:24:25 meaningless? Mar 11 00:24:30 because unavailable Mar 11 00:24:45 are you in one of those third-world countries then Mar 11 00:25:08 ethnocentrisim FTW! Mar 11 00:25:25 JakeWharton: no, just outside USA, and recently finding out that US government likes to apply their law outside in ways that have very dubious legality Mar 11 00:25:41 if you say so Mar 11 00:26:21 JakeWharton: i built a competitor to square using a different reader Mar 11 00:26:58 * g00s remembers that :) Mar 11 00:27:05 for this company, http://www.kudospayments.com/ Mar 11 00:27:09 JakeWharton: basically, if your transaction goes through USA in any way (quite dubious ways, even), and it's something illegal in USA but fully legal regarding actual subjects of the thing, then they might impound the money Mar 11 00:27:35 it was a pain in the butt, the reader was not very robust... :) Mar 11 00:27:52 i think square has a pos solution for ipad Mar 11 00:27:55 or the reader library i should probably say... Mar 11 00:28:02 g00s, register Mar 11 00:28:19 $100?!? Mar 11 00:28:24 http://www.usatoday.com/money/industries/technology/story/2012-03-05/square-register-ipad-app/53356522/1 Mar 11 00:28:27 square looks very solid, they have thier act together Mar 11 00:28:43 people complain about the readers not being robust Mar 11 00:28:53 i guess the original ones for iStuff used the headphone jack Mar 11 00:28:56 JakeWharton: i guess they think highly of themselves... Mar 11 00:29:05 g00s, they all use the headphone jack Mar 11 00:29:10 and they're all small Mar 11 00:29:23 you can extrapolate what that does to how accurate they can be made Mar 11 00:29:34 if you use them all day long though they tend to bust things Mar 11 00:29:51 yeah, i don't think so Mar 11 00:29:59 and there are some dependencies, like if the person has the volume turned all the way up on the phone... :) Mar 11 00:30:25 which can cause quirky behavior... Mar 11 00:30:42 if not Mar 11 00:30:43 i wonder if square originally went that route, when they were small, to get around apple's stupid hardware program Mar 11 00:30:53 oh, absolutely Mar 11 00:31:04 now they should just use the damn 30 pin dock connector Mar 11 00:31:08 sup peeps Mar 11 00:31:22 funkster, no fullscreen mode on tablets Mar 11 00:31:23 considering it's no iOS exclusive, that's dumb Mar 11 00:32:24 i wonder how many people use square with android Mar 11 00:32:33 at least one Mar 11 00:32:36 because I do Mar 11 00:32:36 Enough to hire an android developer Mar 11 00:32:38 better yet, how about everyone gets on board with NFC and this becaomes irrelevant 5 years from now? Mar 11 00:33:34 won't happen Mar 11 00:33:59 probably not Mar 11 00:34:02 SimonVT: maybe they needed some work on ABS XD Mar 11 00:34:05 but I can dream, right? Mar 11 00:36:02 ^_^ Mar 11 01:18:47 i can ping www.google.com while shell'ed into my device, but for some reason Browser refuses to load it. any ideas? Mar 11 01:28:12 Is there anything like "to touch-drag" or is that a term I have come up with? Mar 11 01:29:23 That i am sure you jst came up with Mar 11 01:29:30 but id imagine "touch to drag" is a phrase Mar 11 01:29:54 I see Mar 11 01:36:12 my (support.v4) action bar icon shows up weird in gingerbread, but shows up fine on ics, What causes this? Mar 11 01:37:16 are you comparing them against = screen sizes? Mar 11 01:38:05 im looking at Action Bar in a 2.3.3 VM I made, the icon looks fine Mar 11 01:39:21 yeah same size, the button is super wide, but the icon looks fine, the text shows up scrolling because the icon button is too wide Mar 11 01:39:36 the icon is centered in the wide button Mar 11 01:40:05 Then its something you did I would imagine.. my ActionBars are default setup (atleast for the icon) and its fine Mar 11 01:42:01 I have an ImageView with a LayerDrawable set to it and it works fine, but when I want to change some layer I have to, in order to update the ImageView, make new LayerDrawable and after that setImageDrawable. Am I doing something wrong? Mar 11 01:43:52 is there any way to avoid making new LayerDrawable? Mar 11 02:14:34 If you're having floating problems I feel bad for you son, I got NaN problems but 0.9999999999 ain't 1. Mar 11 02:22:57 code1: *face palm* Mar 11 02:23:44 :D Mar 11 02:24:53 I bet you thats on Steven Hawkings iPod Mar 11 02:25:29 It's his Android ringtone **** ENDING LOGGING AT Sun Mar 11 02:59:58 2012