**** BEGIN LOGGING AT Wed Dec 26 02:59:59 2012 Dec 26 03:10:27 I have a ListView, I do a getItemAtPosition() which returns an Object, but I have my Person object there. How would I use the getName() that my Person has? Dec 26 03:11:01 I promise to go to sleep after this Dec 26 03:12:22 cast it to person then Dec 26 03:15:25 Ah, that's it. Thank you! :) Dec 26 03:44:45 on mediarecorder class I dont see a method to get raw video/audio, do I have to choose a compression/container format? Dec 26 03:53:21 Hm. Dec 26 03:53:39 I just pushed my apk to my phone and the app shows up in Settings/Apps but not in the apps grid. Dec 26 03:54:40 (or whatever you call the listing of app icons that you get to by going to the home screen and pressing the 6-little-squares-in-a-circle icon). Dec 26 03:55:41 puff, did you modify something in the manifest file? Dec 26 04:25:26 Maziz, hello Dec 26 04:26:54 so aparently opengl on android you should be able to share resources between contexts ... on egl capabel devices, but it doesn't work Dec 26 04:27:09 hi k0nichiwa Dec 26 04:27:14 remember opengl trouble i had Dec 26 04:27:16 just discoverd that, what a pain, now i have to refactor my code not to bgnd load textures on android Dec 26 04:27:17 last mondy Dec 26 04:27:28 the 7 inch screen ? Dec 26 04:27:33 about why texture can be loaded on 7 inch screen Dec 26 04:27:34 yeah Dec 26 04:27:39 solve it Dec 26 04:27:43 what was the problem ? Dec 26 04:28:17 it turns out, one of the main requirement for texture to be loaded on opengl is the dimensions must be in power of 2 Dec 26 04:28:27 theres calculation involve Dec 26 04:28:32 ladies Dec 26 04:28:37 for gl es 1.0 i think Dec 26 04:28:43 yeah Dec 26 04:28:46 maziz that's not required in gl es 2 i dont think Dec 26 04:28:50 and the calculation produce wrong number on 7 inch Dec 26 04:28:57 altho its good if you can, some may pad to power of 2 i think Dec 26 04:29:09 but the app is running on opengl es 1.0 Dec 26 04:29:28 u know there is a gl2jni sample app Dec 26 04:29:34 so yeah. calculation Dec 26 04:29:36 uhuh Dec 26 04:29:41 that shows how to get the glsurfaceview to give you a gl es 2 context Dec 26 04:29:44 you don't have to use JNI Dec 26 04:29:48 i mean ndk Dec 26 04:30:05 u can use the gl2jni examle, grab their java class to get a gl es 2 context Dec 26 04:30:14 but you don't have to use NDK to od that, all java Dec 26 04:30:25 sounds complicated lol Dec 26 04:30:26 XD Dec 26 04:30:29 no not really Dec 26 04:30:45 basically u just derive fromt heir gl2jni instead of glsurfaceview Dec 26 04:30:50 oh Dec 26 04:30:51 i see Dec 26 04:30:53 however the smaple is in the NDK Dec 26 04:30:59 i see i see Dec 26 04:31:04 you'd have to grab that class .. jsut an idea Dec 26 04:31:12 mabye not the bets soln for you but you can consider it Dec 26 04:31:29 thanks. one of the suggestion. Dec 26 04:31:43 hard bugger, since using NPOT doesn't show anything on android logcat Dec 26 04:32:00 t Dec 26 04:32:10 Maziz, i'll post that class for u, hold on Dec 26 04:32:17 already fix it Dec 26 04:32:24 now ok already but for learning purpose ill have a look Dec 26 04:32:51 I just pushed my apk to my phone and the app shows up in Settings/Apps but not in the apps grid. (or whatever you call the listing of app icons that you get to by going to the home screen and pressing the 6-little-squares-in-a-circle icon). Dec 26 04:33:07 Maziz, http://pastebin.com/sg90cQ9w Dec 26 04:33:21 all u have to do is remove the parts that set their renderer which calls their native stuff Dec 26 04:33:48 and use it like it's a glsurfaceview ... maybe needs some more chagnes, but basically it should work Dec 26 04:34:08 i see thanks. Dec 26 04:34:34 if u use gl es 2 with java not sure how yo'd set the shaders tho Dec 26 04:35:01 I had a simple little app, all it did was catch a share intent and do an HTTP post. I wanted to add some settings to use in the post, so I followed a tutorial to create a settings layout, menu, activity etc, and added it. Built fine, installed it, it pops up when I do the share but now ti doesn't do the post, and it doesn't appear in the apps listing so I can't try to run it directly and see if the settings menu works. Dec 26 04:36:47 Whoops, the post actually does work. Dec 26 04:37:13 Do I have to do something in the manifest to get it to show up as an invocable icon? Dec 26 04:37:23 Invocalbe? Invokable? Dec 26 04:48:48 I was looking the other day for a 'share to clipboard' - too many things don't have it Dec 26 04:52:35 Is this chan specific to app building only? what about building from android from source? Dec 26 04:53:26 what do you mean? Dec 26 04:53:51 mrsudoer: I think he means building the android OS itself, not an app. Dec 26 04:54:16 mrsudoer: I didn't modify anything in my manifest, should I have? Dec 26 04:54:21 Ohhh, fwiw I think some of the android ROM devs are in here too Dec 26 04:54:37 I vaguely recall seeing people directed to some other channel, in the past. Dec 26 04:54:49 puff, well I was working on an app last night and changed something in the manifest file which caused the problem you mentioned. Dec 26 04:55:42 mrsudoer: My manifest only had one entry, for the share intent. I just added another one, for the UserSettingsActivity. Still not showing up in the apps list Dec 26 04:55:49 mrsudoer: Btw, do you know the proper term for the apps list? Dec 26 04:56:06 puff, app drawer? Dec 26 04:56:26 drewx2: Ah, yeah... the cahnnel topic says Root/custom ROMs, head to #android-root. Not sure that's what you need, but the folks over there might know where you need to go. Dec 26 04:56:33 puff, how about you share your manifest file with me? Dec 26 04:56:36 mrsudoer: Ah, is that what it's called? Dec 26 04:56:40 I think so Dec 26 04:56:59 I am in #android-root, and someone told me to come here :) Dec 26 05:01:52 puff, AndroidManifest or something like that lol Dec 26 05:01:59 when i d File.mkdir() on jellybean it creates folder in /storage/emulated/legacy instead of /storage/sdcard0 Dec 26 05:02:00 it's in the root directory of your project Dec 26 05:04:23 mrsudoer: Hang on sec, I'll upload it. Dec 26 05:06:27 mrsudoer: Just pm'd you the link. Dec 26 05:07:41 mrsudoer: Or use http://pastebin.com/vzQL4wfk Dec 26 05:10:09 mrsudoer: inside the intent filter? Dec 26 05:10:39 puff, yes Dec 26 05:11:17 no apparent difference. Dec 26 05:11:23 hmm Dec 26 05:11:24 Still doesn't show up in the app drawer. Dec 26 05:12:07 puff, Dec 26 05:12:11 change android.intent.action.SEND to android.intent.action.MAIN Dec 26 05:12:23 if that doesn't work, i don't know :/ Dec 26 05:12:36 Wouldn't putting it inside the intent filter mean it would invoke the Overshare activity instead of the UserSettingsActivity activity? Dec 26 05:13:02 Perhaps I should set up a second intent filter for the UserSettingsActivity. Dec 26 05:14:01 Maybe Dec 26 05:14:10 I'm having brain farts right now Dec 26 05:14:19 maybe i'll think straighter later :p Dec 26 05:14:55 Yeah, might be a good thing for me to try, too :-). Dec 26 05:14:59 Thanks for the help though. Dec 26 05:15:15 i didn't do anything, but np :) Dec 26 05:15:43 Yay, that fixed it! Dec 26 05:15:53 Aww, you helped, you got me to think about the problem differntly :-) Dec 26 05:16:02 I put an intent filter in the UserSEttings activtiy. Dec 26 05:16:07 Ahh Dec 26 05:16:09 that makes sense Dec 26 05:16:10 :) Dec 26 05:16:36 Good night! Dec 26 05:29:39 EXTRA_CC field doesn't work with Gmail 4.2.1? Dec 26 05:32:43 has anyone tried INTENT.EXTRA_CC field in android? Dec 26 05:32:54 with new gmail 4.2.1 it doesn't seem to work. Neither does EXTRA_BCC Dec 26 05:36:17 Anyone know what I would use to have an app auto-refresh a few JSON streams in real/as a close to instant time over a cellular network? Dec 26 06:03:19 photoshop : pixelmator :: illustrator : ? Dec 26 07:53:55 hi guys Dec 26 07:53:58 i need help Dec 26 07:54:02 I have problems with the download manager... I Dec 26 07:54:02 keep getting messages like this: Failed to fetch URL http://dl-ssl.google.com/an Dec 26 07:54:02 droid/repository/addons_list-2.xml, reason: Connection to http://dl-ssl.google.c Dec 26 07:54:02 om refused... I don't have a proxy, trying http in stead of https doesn't help and I have Sun JRE 1.6 installed. wgetting the file works fine.... Please help Dec 26 07:54:12 i lost my efs folder Dec 26 07:54:13 yikes, split lines Dec 26 07:54:35 is there anybody to help about recovering efs? Dec 26 07:55:09 my imei is lost i can't use device as a phone Dec 26 08:57:46 hmm; how does wunderlist stay in business? everything seems free Dec 26 09:01:45 is anyone of you almost 400 people awake? Dec 26 09:02:36 * capella shakes hist fist !! Damn you loch ness monster Dec 26 09:03:07 heh - tabs confuse me ... :) Dec 26 09:04:15 It seems besides some Chinese forum posters, I'm the only one to get Connection refused on the SDK servers... :( Dec 26 09:05:29 What are you trying to do? Download "something" from google? Dec 26 09:54:21 'ello Dec 26 09:56:30 Quick question... I am checking a preference file via SharedPreferences sharedPref = getActivity().getSharedPreferences(getString(R.string.my_pref_file), Context.MODE_PRIVATE); Dec 26 09:57:21 however, when I want to check my settings that are modified from my settings activity, I usually do SharedPreferences sharedPref = PreferenceManager.getDefaultSharedPreferences(getActivity()); Dec 26 09:57:35 Do I need to do that in a case where I need to check both of those consecutively? Dec 26 09:57:50 Or can I access "settings preferences" from the first file-specific SharedPreferences? Dec 26 10:02:00 Not sure I understand ... I usually keep all my preferences in one file .... but activities in your app can have their own or read each others ... right? Dec 26 10:11:13 yeah but the settings I got don't have a specified file, that's the thing Dec 26 10:11:44 I just have an activity that extends PreferenceActivity and the preference objects have keys assigned to them Dec 26 10:12:02 I never specify, nor do I know, where those preferences are stored Dec 26 10:12:21 I know just that I can access them via PreferenceManager.getDefaultSharedPreferences(context); Dec 26 10:21:59 R.string.my_pref_file doesn't have them .... hmmmm... http://stackoverflow.com/questions/5946135/difference-between-getdefaultsharedpreferences-and-getsharedpreferences ??? Dec 26 10:26:39 ah I see Dec 26 10:26:43 thanks a lot Dec 26 10:29:11 >) Dec 26 10:29:26 TIL also B) Dec 26 10:30:43 No idea about "connection refused' in the Andoid SDK updater? Dec 26 10:34:11 yo Dec 26 10:47:03 Quibus: linux and ipv6 available? sudo "echo 0 > /proc/sys/net/ipv6/bindv6only" Dec 26 10:50:44 meh, 79 eur to watch devoxx vids :/ Dec 26 10:53:14 Nebukadneza: will try that, thanks Dec 26 10:54:23 Nebukadneza: yep, that's it! Thanks a lot! Dec 26 11:25:08 i kind of want to send romain guy a nice bottle of scotch, that blog post about UI was invaluable Dec 26 11:25:21 and JakeWharton too i guess Dec 26 11:32:49 Hello. Any android developers here from China willing to help me with a quick test? Dec 26 12:02:27 Should I really remove android:debuggable="true" from the Manifest? How exactly is it going to determine if I'm doing a release build or a debug build? Dec 26 12:02:58 Is Internal storage deleted between update ? Dec 26 12:12:53 kakazza, BuildConfig.DEBUG Dec 26 12:13:32 it's generated automatically when you build the application Dec 26 12:14:28 atoll, application updates? I don't think so Dec 26 12:14:51 Zharf: I need to be sure, I store my h2 database on it Dec 26 12:15:24 atoll, I very much doubt it but better wait for someone to answer for sure ;) Dec 26 12:15:47 atoll, you save it in whatever getFilesDir() returns right? Dec 26 12:15:57 or under it Dec 26 12:16:30 in whatever getFilesDir return Dec 26 12:17:00 getFilesDir+"/db.h2" actually Dec 26 12:20:12 I am using apps with action bars but they still use the Menu button... Dec 26 12:20:36 like gmail settings Dec 26 12:20:53 google+ search Dec 26 12:21:01 so it's not really "goodbye to menu button"? Dec 26 12:21:49 luyang, devices which have a hardware menu button don't get the overflow menu item Dec 26 12:21:53 instead they use the menu button Dec 26 12:22:24 it works Dec 26 12:23:12 Zharf: I didn't know that Dec 26 12:23:31 now you do :) Dec 26 12:23:44 My phone has a menu button. So I'd have to use an emulator without a memu button to test action bar with overflow menu Dec 26 12:23:52 yes Dec 26 12:25:02 kiitos Dec 26 12:25:23 i went to record screen of my Google TV i tried some applications :AirDroid , Z - Screen Recorder. but both of them say :portrait mode is not available for this app . can you someone tell my way to record screen of Google TV in normal quality Dec 26 12:26:19 <`z> oh Dec 26 12:26:22 <`z> i thought someone highlighted me Dec 26 12:26:25 <`z> never mind, carry on Dec 26 12:26:29 o.O Dec 26 12:27:11 `z: funny Dec 26 12:27:28 <`z> indeed Dec 26 12:31:36 How can I find out what OpenGL Version is supported by the phone's hardware? Dec 26 12:32:06 I found this http://www.badlogicgames.com/wiki/index.php/Querying_for_OpenGL_ES_2.0_Support but I don't think it queries for the _supported_ OpenGL version but the _required_ OpenGL version of the application. Dec 26 12:32:15 Which can be set with the element. Dec 26 12:32:44 Zharf: Thanks @BuildConfig Dec 26 12:36:06 what do you all use for markdown rendering Dec 26 12:39:15 Ok so, I have an async task in my fragment, which, after finishing, needs to access shared preferences... but I get a "Fragment Not Attached To Activity" exception. Dec 26 12:39:51 Assuming that the async task finishes at a bad time, I put the whole thing into a timertask and delayed it by 300ms Dec 26 12:40:31 After the same thing happened, I delayed it by 3000ms, with no change, dispelling the notion that it's a "not yet attached" issue, but rather a "it's never attaching on orientation flip" issue Dec 26 12:40:48 I forgot to mention above, I get the exception if I changed orientation before the async task could finish Dec 26 12:48:18 Changing the orientation usually restarts the activity (onCreate() is called again), maybe there's a problem with that in your case? Dec 26 12:50:03 whats a good way to have an app-wide action in the action menu? Right now my activities and fragments all add their own items, but what about say a preferences menu item? Dec 26 13:22:52 salut à tous, et merci à adp et chpo pour leurs aides au passage ;) Dec 26 13:42:02 BeHuman__: so is your mother Dec 26 13:48:25 thx pragma :/ Dec 26 13:50:30 pragma-: that wasn't about your mother Dec 26 14:21:38 how can i properly apply my custom style to a SherlockDialogFragment? Dec 26 14:48:35 Is anyone can explain me difference between singleinstance and singletop? Dec 26 15:12:00 funkbox: dr freud disagrees Dec 26 15:14:56 anyone know if google drive has a file picker yet on android? Dec 26 15:15:43 or do i have to do all that myself Dec 26 15:31:19 hello, can anyone help me with something? Dec 26 15:31:35 i have a view to which i added a onLongClickListener Dec 26 15:32:44 if i have a dialog inside it, it's perfectly fine, i get the dialog, but if instead, i call another method which does other stuff, i get npe from View.showContextMenu() Dec 26 15:34:36 oddly enough, if that same method call is from another thread, it mysteriously works Dec 26 15:40:53 Hi. Anybody know how I add the android billing aidl file to my project? I have no idea what they mean in the docs Dec 26 15:41:03 In eclipse Dec 26 15:49:24 Why might a surface /not/ be created? Dec 26 15:55:53 can i get a string response from a http post? or just some errorcode? Dec 26 16:16:50 I'm trying to create a surfaceView but surfaceCreated never gets called.. Why might that be? Dec 26 16:23:30 pew ? Dec 26 16:26:23 is there any way i can disallow creating shortcuts on the home screen for my app ? Dec 26 16:33:55 Hey all, i'm having problems with one of my first apps Dec 26 16:34:22 i'm writing for android 2.3.3 (I have an old r2d2 i'm playing with) Dec 26 16:35:17 I got some basic functionality working, buttons, some text and some OnClickListeners Dec 26 16:35:52 But as soon as I try to add any kind of image or additional resource, the app crashes the next time I try it Dec 26 16:36:12 Be it a background image resource or an app icon Dec 26 16:36:30 with the app icon, the icon actually works but when i run it, the application crashes Dec 26 16:37:02 I'm not sure if theres something special i need to do with resources, or if i'm setting up my directories wrong Dec 26 16:37:32 Other notes, I have a few years of Java programming experience and i'm managing the project from the command line - not through Eclipse Dec 26 16:53:47 is there some... nice way to make the logcat output more managable? i.e. what's the standard way of looking at logcat stuff? there is undoubtedly stuff in here I don't need to know. and looking at 200K lines for a program that has run in three seconds is a bit tedious. Dec 26 16:54:32 can I limit it to output generated by/in the context of program foo? Dec 26 16:55:54 also E/AndroidRuntime( 3164): ... 12 more Dec 26 16:56:11 is not very helpful. I'd like to see those 12 more, rather than those other 200K lines. Dec 26 16:56:22 Those 12 more are above the "caused by" line Dec 26 16:56:45 aha. Dec 26 17:01:15 SimonVT: sorry. reading this is quite different from gcc/gdb which is what I'm used to. Dec 26 17:04:22 <__kr> hi, does anybody understand jelly bean app encryption.. like is it activated in google play? Dec 26 17:04:35 <__kr> and can developers disable it at all for paid apps? Dec 26 17:09:01 does anybody know how one could implement an iOS style popover such as the one shown here? http://mobelux.com/portfolio/instapaper/2_medium.jpg Dec 26 17:14:44 i've been trying to set up a contextual action bar for my listview following this guide http://developer.android.com/guide/topics/ui/menus.html#CAB Dec 26 17:14:59 however nothing happens when i longclick a listitem Dec 26 17:18:34 i have listView.setOnLongClickListener(new View.OnLongClickListener() { in my main activitys onCreate method Dec 26 17:19:13 is that enough to register the views? i tried putting a print statement inside the onLongClick method there but it isn't executed Dec 26 17:19:36 register the click* typo Dec 26 17:22:14 Chilley: Maybe pastebin the relevant code? Dec 26 17:22:33 It'll make it a lot easier for someone who wants to help you Dec 26 17:24:46 http://pastebin.com/tGJCZbxm Dec 26 17:25:28 there's my onCreate method, could my problem be that i need to set the listener to the individual lisitems and not the list itself? Dec 26 17:25:46 setOnItemLongClickListener Dec 26 17:26:47 i'm using that but it doesnt seem to register anything Dec 26 17:27:01 No you're not, you're using setOnLongClickListener Dec 26 17:27:28 oh wow Dec 26 17:27:56 ill try that one Dec 26 17:28:07 guys I am looking for way how to generate code for android same as Scaffold does in ruby on rails Dec 26 17:29:54 what magic words must one utter to make Eclipse accept my onSurfaceCreated method in a custom Renderer? Dec 26 17:30:12 I even removed it and let Eclipse add it itself, but the error just stays Dec 26 17:30:51 is that one those errors on the bottom panel that you have to delete manually before rebuilding? Dec 26 17:31:20 capella: I don't know, but this never was an issue in IDEA, and I wouldn't know why it keeps annoying me about it Dec 26 17:31:47 yah - i used eclipse for several hours learned the buggy work arounds switched to intelliJ and never looked back Dec 26 17:32:12 some eclipse errors you can right click and delete Dec 26 17:32:46 capella: ugh, what kind of UX is _that_? Dec 26 17:32:55 it seems to have accepted me deleting it Dec 26 17:33:20 now trying to rebuild, of which I don't see any indication yet Dec 26 17:33:35 capella: is NDK dev possible with IDEA? Dec 26 17:33:37 <__kr> anybody who can help with beta-testing a game trainer for doodle jump ? Dec 26 17:33:48 because then I'd toss Eclipse right out Dec 26 17:34:26 yes it is but i havent done it - i've written a couple native C++ apps using some funky toolkit whose name I forget Dec 26 17:34:37 and do toss Eclipse Dec 26 17:35:11 oh but I'm in love with my IDEA 12.0, I just realized what I left behind :/ Dec 26 17:36:28 Hello people, i'm new to android building so i'm gonna ask some dumb questions (but not twice :) ). The first one is about opengl init, at the very beginning of boot (after gralloc), i only have /system/lib/egl/libGLES_android.so loaded, and not my vendor-specific ones, that should load jus after that, could you point me to a place i can look ? ( Makefile, part of the tree...) (some of you may already have read that :) ) Dec 26 17:36:56 how do I achieve the same effect as hitting the back-button? Dec 26 17:37:20 I start a new activity with intent. there I want to do foo and bar, and then return as if I hit the back-button. Dec 26 17:38:06 SimonVT: hey i managed to make it register the longclick, what's the use of the setOnLongClickListener? Dec 26 17:38:19 Chilley: That's a View method Dec 26 17:38:28 did the listitems block the click to the underlying lst? Dec 26 17:38:32 For when you're long clicking the view, in this case ListView Dec 26 17:38:36 and that's why it didn't execute? Dec 26 17:38:41 But you're long clicking the items it's displaying Dec 26 17:40:34 why would the android tutorial use the setOnLongClick method to demonstrate using an contextual action bar for a listview Dec 26 17:40:48 alexander__b finish() ? Dec 26 17:40:56 capella: yes. just found it. thanks. Dec 26 17:41:13 isn't CAB supposed to e used for specific items? what kind of contextual actions would you use on a whole listview Dec 26 17:41:18 capella: everything crashed though, so I need to solve it more elegantly. Dec 26 17:41:27 Chilley: It doesn't Dec 26 17:42:09 that is the way ... check your logcat for the crash reason Dec 26 17:55:14 Trying to extend a surfaceView to do some animation, but surfaceCreated never gets called. Why might that be? http://pastebin.ca/2296851 Dec 26 17:55:30 I want to write an app which reads sensor/GPS data and once started by the user logs that to a file; to keep that running in the background I thought I need a Service, but reading about started and bound services I'm not that sure anymore, is there anything else I could accomplish that with? Dec 26 17:57:33 curious ... (I haven't done a service yet) ... what makes you think it wont work? Dec 26 17:57:55 you can bring your service to foreground which has the highest priority then Dec 26 17:58:19 so it wont be killed Dec 26 17:59:07 I've been referring to this but havent tried it yet http://www.vogella.com/articles/AndroidServices/article.html Dec 26 18:01:28 @rn Dec 26 18:01:41 I need a quick interface between the activity and the service, the IBinder stuff, seems rather complicated, I'd like to be able to register a Listener to the service and call it whenever the sensor updates, is that somehow possible? Dec 26 18:02:40 the ibinder isn't complicated. There is alot of good tutorials how to use it Dec 26 18:03:01 ofcourse you need to write few lines of boilerplate code Dec 26 18:03:26 but that's the interface between service and activity Dec 26 18:03:35 do you need a surfaceview to draw on a view Dec 26 18:03:36 ? Dec 26 18:04:38 hello Dec 26 18:08:10 when i select an item in listview with a longclick, how do i get the relevant listitems underlying array object which the adapter uses to create the list Dec 26 18:22:23 JakeWharton: is it possible to have custom width tabs ? Dec 26 18:22:42 how to I do to build android-linaro-2.3.7 I am facing issues with many toolchains Dec 26 18:23:09 oops sorry Dec 26 18:31:17 question how do i move the folder of the avd's to a different "default" location my drives partition is almost full and these avds take up alot of room Dec 26 18:41:37 hey Dec 26 18:42:11 can anyone develop an app for me that checks every minute if the internet connnection is really working and reboots the phone in case teh connection is faultyß Dec 26 18:42:31 why Dec 26 18:42:35 it should be more than just a ping, because the ping keeps working, it should check if it's possible to get data Dec 26 18:43:06 I donate 10 EUR if you can develop such an app, should be easy to base on one of the many dumb reboot apps already out there Dec 26 18:43:57 why, because on my old phone where I'll for sure not change the ROM again internet stops working sporadically and can't be restored without rebooting Dec 26 18:46:11 I need to know that I get the latest mails and messages Dec 26 18:55:57 does anyone have any thoughts about @AndroidAnnotations? Dec 26 18:56:42 sounds interesting, but looking at the list of apps using it, i dont know any, and they all either have very poor ratings or are 5* with <10 reviews Dec 26 18:57:06 and their screenshots suck :) Dec 26 19:01:02 dadada: that for one would Drain your battery very very fast so wehy would u want to do that ? missed fb msgs vs a battery dead in a couple of hours not worth the it Dec 26 19:02:06 dadada: as for 10 Euro ? that is nothing for Custom Widget/ App/ Service written for you. its like paying pennies for a 20$ item Dec 26 19:16:24 ugh Dec 26 19:16:43 now Eclipse chokes on some undefined var, but I don't know where it's looking for it Dec 26 19:16:49 ${ANDROID_NDK}/ndk-build it says in Builders Dec 26 19:17:03 but where would ANDROID_NDK be defined? Dec 26 19:17:22 In .profile? In Eclipse? Dec 26 19:19:21 droidbuster: there's message that are worth moeny Dec 26 19:19:22 money Dec 26 19:21:17 droidbuster: I could fucking write this myself, I'm just to lazy to setup the sdk and get going. it's not like I want a 1st class application like facebook, I'm a programmer myself, if you know what you're doing and you have the SDK, you should be able to do this within an hour IMHO, and I don't prevent you from putting the app on google play, so this isn't really supposed to be a custom app just for me Dec 26 19:21:26 sorry for the swear word Dec 26 19:24:00 anyone? Mueller? Dec 26 19:24:48 so dadada you develop by launching ideas into chatrooms then? Dec 26 19:26:02 belgianguy: :-) I just think that some people have an comparative advantage in some areas, I'm behind the curve in Android development, someone else might be able to do the task in 20 minutes.... so go figure Dec 26 19:26:35 dadada: and how do you expect ever to get more experienced? Dec 26 19:27:03 if the experience of failure and the rewards of success go to someone else? Dec 26 19:27:14 belgianguy: it's no fun to develop for the phone I have, so slow it's a nightmare, I might get into app development when I've a decent phone to develop for Dec 26 19:27:29 dadada: what kind of phone? Dec 26 19:27:35 lg gt540 Dec 26 19:27:56 with android 2.3.7 custom rom Dec 26 19:28:13 I have an Sony Ericsson X10 Mini Pro, (barely) running 4.1.1 (MiniCM) Dec 26 19:28:29 slow as hell, but it got the job done Dec 26 19:29:02 programming is more than the shortest route between idea and realisation, it's also about learning and adjusting Dec 26 19:29:13 and coffee, lot and lots of coffee Dec 26 19:29:15 please stop the lectures ;-) Dec 26 19:30:05 dadada: my pleasure Dec 26 19:30:22 I spent years programming for the sake of programming, right now I need to get a job done :-) Dec 26 19:30:37 yeah, no soliciting here Dec 26 19:30:41 so you're SOL either way Dec 26 19:30:48 SOL? Dec 26 19:31:23 it's an abbreviation, I'm to lazy to start Google and get going... Dec 26 19:31:28 :p Dec 26 19:31:31 I take a guess, seriously out of line? Dec 26 19:31:32 :-) Dec 26 19:31:53 dadada: that would fit, yes Dec 26 19:32:02 mine was a bit more, expletive Dec 26 19:32:40 heh, ok, don't want to be mean, I'm amazed really that this task seems to be below people here Dec 26 19:33:35 dadada: they are here to help developers, not to be told what they "should" do Dec 26 19:33:55 dadada: what's the task? Dec 26 19:34:00 there are very few things that are below me Dec 26 19:34:11 I get that, but I'm not telling you what to do, I was making an offer Dec 26 19:34:34 dadada: what's the offer ? Dec 26 19:34:35 funkbox is your man/women/thing :p Dec 26 19:34:49 funkbox: write an app/script that reboots the phone when internet isn't working as determined by trying to load a simple page (ping isn't enough), interval should be possible to set Dec 26 19:35:01 why do that Dec 26 19:35:39 funkbox: 10 EUR donation, because my ROM is so broken and I can't get a new phone now, and need internet working 24/7 and reboots fixes that Dec 26 19:35:57 is it possible to show animation inside a popupwindow? Dec 26 19:36:09 dadada: ah, 10 EUR isn't the type of price we consider acceptable Dec 26 19:36:18 btw, at least for me that doesn't seem to be like within an hour job Dec 26 19:36:19 dadada: add two zeros Dec 26 19:36:54 because there is always issues like how to make sure that the app is always running (maybe a service in foreground) Dec 26 19:37:26 but that's just one example, what if the simple webpage you are trying to load is down, your phone will boot every time Dec 26 19:37:32 my bet is a hw issue wrt the wifi radio Dec 26 19:37:43 and reboot is out of question in UX Dec 26 19:37:45 I'm trying to extend from AdapterView, and I add a couple of elements to addViewInLayout(..) but nothing ever appears on the screen.. any obvious problem I could be making? Dec 26 19:38:24 if a custom rom is making your life hell, perhaps try another with better radio drivers Dec 26 19:38:26 hmm, ok, everybody has a price, I'm not rich, so I tried to offer something I could for something I THOUGHT (but perhaps am wrong to assume) was a simple job based on my own experience Dec 26 19:39:21 or consult #android-root, #xda-devs Dec 26 19:39:33 belgianguy: I think it's software related, it effects 2g/3g and wifi, and ping keeps working, only real internet usage stops working Dec 26 19:40:22 and what error does it show? Dec 26 19:40:25 a) radio stuff mostly isn't done by the ROM, but by a closed source radio processor Dec 26 19:40:39 b) this is an application development channel, not a rom development channel Dec 26 19:40:54 belgianguy: opera times out, mail tries to load forever and so on, beyond that I haven't checked Dec 26 19:41:19 disabling/enabling radio in settings doesn't help Dec 26 19:41:28 ie, it can very well be software related and still be unfixable by modifying the ROM Dec 26 19:42:07 just get a new phone Dec 26 19:43:23 seems someone got an iCoal for Christmas Dec 26 19:43:31 dadada: last thing I'll say on the matter wrt Maurits_ a) and b), flash back to stock and see if it persists Dec 26 20:05:32 how can I get the position in newView (inside CursorAdapter)? Dec 26 20:18:52 any trie implementations ? Dec 26 20:26:13 I'm adding a few children to my extended ViewGroup. I call child.measure(MeasureSpec.EXACTLY | getWidth(), MeasureSpec.EXACTLY | 100); but my log prints out that getWidth() and getHeight() of the child obj is 720 / 0 . How can I make an actual height ? :) the added children is a LinearLayout with wrap_content on width/height containing additional views with wrap_content Dec 26 20:27:41 I might be missing something, but I want my ViewGroup to be as large as it's children combined Dec 26 20:29:42 also my viewGroup is getting called with onLayout(false, 0, 836, 720, 836) which is a height of 0. What am I missing here? :) Dec 26 20:31:45 good night Dec 26 20:32:22 how okay is it to make my app support only API 11 and upwards? Dec 26 20:32:53 i want to have a nice holo theme on my app but making that conflicts with my API 8 minimum Dec 26 20:34:04 when i hit theese restrictions in my layout file should i just move it to layout-v11 and then do some alternate solution for lower APIs? Dec 26 20:36:22 Chilley i take it you have not even bothered looking at the docs?? it's even in the create a new project window Dec 26 20:38:11 i know how to change it, my question is what is the recommended minimum API version to support? Dec 26 20:38:32 or do i just keep increasing it when i hit theese restrictions Dec 26 20:39:12 http://developer.android.com/guide/topics/manifest/uses-sdk-element.html Dec 26 20:39:23 see the descriptions of minSdkVersion and targetSdkVersion Dec 26 20:40:05 it depends on what your app is...it is just a simple browswer..then who cares?? Dec 26 20:40:41 to summarize: you don't need to throw away support for older API levels if you want to use the features of newer API levels Dec 26 20:45:56 in general what you want is to set min to 8, target to the newest API level available, and then use the support library and actionbarsherlock to get fragments and an actionbar on older versions of android Dec 26 20:48:03 or just forget about legacy support and set target and min to something like 12 or even higher Dec 26 20:52:20 I just downloaded and installed the ADT bundle. I loaded my android app project, and then it said "The project was not built since its build path is incomplete. Cannot find the class file for java.lang.Object. Fix the build path then try building this project" Dec 26 20:53:02 So then I did this: Right click on project -> Properties -> Java Build Path (From Left List) -> Libraries (Tab) -> Add Library (Button on right) -> JRE System Library -> Next -> Workspace default JRE -> Finish Dec 26 20:53:23 Now I have a ton of errors saying Activity cannot be resolved to type Dec 26 20:57:34 anyone have a suggestion? Dec 26 20:57:40 hm... you use @string/whatever in the XML files, is there some way to use the same in code? Dec 26 20:58:25 Or to put it more properly, nevermind, I'll just google on "android string resources" Dec 26 21:00:32 Hm, and accessing, say, preffUsername via R.java, you have to use R.pref_username but to access it by SharedPreferences.getString("prefUsername")? Dec 26 21:07:49 i just added an imagebutton to my listitems and now i cant select the listitems anymore? Dec 26 21:11:41 Hi there! I'm a Junior Android Developer (still very junior). I'm trying my first app just to learn a few things, it's a shopping list. Can anybody help me in finding a good and simple tutorial for ListViews with checkboxes? Thanks! Dec 26 21:14:00 has anyone created a Dialog box with List Checkbox ? Dec 26 21:14:12 i want to implement a Check all button Dec 26 21:14:37 is it good to use checkTextView or should i use a Text View with a Checkbox Dec 26 21:14:38 ? Dec 26 21:15:30 GreenTuxer: List _views_ Idaknow about, but this tutorial shows you how to set up a preference dialog iwth a list: Dec 26 21:15:30 Android Preferences Tutorial Dec 26 21:15:30 Add comments Dec 26 21:15:34 A commonly used feature in most applications, irrespective of whether they are mobile applications or not, is the ability to save some application/user specific settings. Examples include endpoint URLS, the security access token, certain user preferences like color, title, language, etc. While we can surely implement it using our activity and custom forms, the Android framework makes it easier by providing us some great suppor Dec 26 21:15:37 only implements core stuff like saving to a preferences file and reading out the values, it also helps in providing a standardized look and feel to managing preferences. This helps conserve the familiarity that the user may have while working with preferences in any Android application. Dec 26 21:15:40 Let us assume that we want to develop a preferences activity for our application and the preferences that we want to set for our application look something like this: Dec 26 21:15:43 When you click on Your Name, you get a dialog box, where you can enter the value: Dec 26 21:15:45 If you click on the Application Updates, you can toggle the option as you want. Dec 26 21:15:49 The last preference is interesting, when you click it, it will bring up a list containing several values from which you can select one as shown below: Dec 26 21:17:31 Damn, I hope not too much of that mis-paste leaked through. Dec 26 21:17:59 I to all, is anybody working with renderscript? Dec 26 21:18:22 GreenTuxer: This is the tutorial link: http://www.javacodegeeks.com/2011/01/android-quick-preferences-tutorial.html Dec 26 21:18:26 no, puff, just a few lines. Dec 26 21:18:27 what's the keyboard shortcut command in Eclipse to add any necessary imports? Dec 26 21:18:32 Thanks a lot, I'll check that :) Dec 26 21:18:32 GreenTuxer: Thanks. Dec 26 21:18:44 hip2p: command+shift+O Dec 26 21:18:46 iirc Dec 26 21:19:00 or controler+shift+O on windows/linux Dec 26 21:19:14 *control Dec 26 21:20:07 GreenTuxer: Actually, while the previous link is okay, I think this one is better: http://viralpatel.net/blogs/android-preferences-activity-example/ Dec 26 21:20:21 Maurits_ thanks Dec 26 21:20:38 GreenTuxer: One gotcha, the viralpatel tutorial neglects to mention that you need to add an AndroidManifest entry. Dec 26 21:21:18 Thank you very much :) I'll still try to find exactly what I need (ListView with checkboxes), there are many tutorials but it seems very difficult or the tutorials not good, don't really know which is. Dec 26 21:21:35 GreenTuxer: Hm, well, I guess he's using the default AndroidManifest entry when you generate the hello world project. I was using that tutorial to add preferences to an app I'd already started, so I needed to add a second activity and intent filter to AndroidManifest.xml. Dec 26 21:22:19 No problem about that, thanks :) Dec 26 21:22:24 GreenTuxer: Yeah, I don't know what to say there... I guess it's still early days as far as the docs go. I have a stack of android books that I need to get to reading, but none of them are quite taking the approach I want, which is to walk me through building an app of the sort I want to build :-). Dec 26 21:22:51 Exactly my issue :) Dec 26 21:23:35 I like practical aproach, try an app with many features to understand everything well, not a bunch of menus with functions, which is what almos every book does. Dec 26 21:26:00 Yeah. Dec 26 21:26:07 Well, if you find the right book, let me know :-). Dec 26 21:26:55 I started reading this one, which seems more on that kind of view, but haven't read much yet: http://www.wrox.com/WileyCDA/WroxTitle/Professional-Android-4-Application-Development.productCd-1118102274.html Dec 26 21:27:16 very early starts with a to-do task list Dec 26 21:27:18 with fragments Dec 26 21:27:25 but the explaining is very little Dec 26 21:27:43 we copy paste the code and don't understand it all very well Dec 26 21:28:22 Heh... yah. Dec 26 21:28:24 but maybe that's just me Dec 26 21:29:06 My Favorite Programming Book of All Time is Kelly & Pohl's _C by Dissection_. I really wish more books would tackle programming that way. Dec 26 21:29:34 Basically the book is a bunch of example programs. They give you the code listing, then they dissect the code listing, going over it line by line and explaining what's happennig. Dec 26 21:29:50 exactly what I like :) Dec 26 21:57:12 if i add a fragment via async (normal) transaction in my activity's onCreate, do i have any guarantees as to when that frag's onCreateView gets called? Dec 26 21:57:40 i'm *imagining* after the activity's onStart at the very least. possibly after onResume? Dec 26 22:00:14 I don't see why it couldn't happen before then Dec 26 22:00:27 ie, to create a view you don't need to be running Dec 26 22:00:38 just as you can do setContentView from Activity.onCreate just fine Dec 26 22:01:28 also, the point that you need to control when onCreateView runs is usually indicative of a possible design problem Dec 26 22:07:37 agreed Dec 26 22:08:54 usually what you want to do is show a loading screen until the activity / data source / etc is ready Dec 26 22:09:31 what i'm working with is an activity that creates its fragment in onCreate, but doesn't necessarily have a User to pass to it. the activity will start another activity in onStart, to authenticate if needed. it gets a User back via onActivityResult, at which point it sets the fragment's user. main activity's loading continues, onResume is called, and user can interact. Dec 26 22:09:55 this used to be all honky dory before fragments, because it was impossible to interact with the activity unless it had a valid User Dec 26 22:10:08 now, the fragments need a user before i can guarantee we have one. hrmmm Dec 26 22:10:37 right, why not do the add transaction once you're sure you can get a user? Dec 26 22:10:58 that's what i just thought of as i was explaining this Dec 26 22:11:12 love how explaining a prob to someone else makes the solution blindingly obv Dec 26 22:11:19 (and, as a sidenote, why not use dialogfragment to show the authentication popup?) Dec 26 22:11:26 oh wait, assuming it's a popup Dec 26 22:11:35 it's a pretty full-fledged activity Dec 26 22:11:42 ah Dec 26 22:11:59 but, gracias for being a sounding board senor Dec 26 22:12:07 np, good luck Dec 26 22:13:55 By the way, for those wanting the same I wanted (the listview with checkboxes), this worked for me: http://www.todddeland.com/2012/01/android-listview-with-checkbox-easy-way.html Dec 26 22:14:36 I just changed two or three things on what I had and the checkboxes are there and can be enabled/disabled Dec 26 22:18:45 i have a listview with selectable items, on theese items i want checkboxes, when i add the checkboxes the listitems aren't selectable anymore, any idea what's happening here? Dec 26 22:20:54 Is it possible to use a RemoteViews with a custom ViewGroup? Dec 26 22:21:29 i want a similar behavior as the gmail app, you can select emails but there is also this star which you can use to favorite the email Dec 26 22:22:18 I've got an activity with a FragmentPagerAdapter and 2 fragments Dec 26 22:22:29 for some reason the app crashes on rotation Dec 26 22:22:52 I'm curious why Dec 26 22:23:11 but also, I think I want to disable rotation. This app looks best with vertical orientation Dec 26 22:23:39 cop out :) fix the memory leak Dec 26 22:24:15 heh - I've had those things drive me nuts Dec 26 22:26:37 right on! fixed it, why must i make the checkbox unfocusable to be able to select the underlying listitem? Dec 26 22:29:14 capella: directed towards me? Dec 26 22:29:19 Anyone know a good way of creating a side menu with the arrow pointing to current page? Very similar to this: http://2.bp.blogspot.com/-R4iia4-W6Pc/T9PKnICJPhI/AAAAAAAAHfc/ek6cuMNEGJs/s1600/3.png Dec 26 22:29:50 oh - memory leak ... yah .... goofing :P Dec 26 22:30:14 * capella Hates those things ! Dec 26 22:34:15 perhaps someone can help me. I've spent the last few hours trying to recreate an android app I had in an older version of Eclipse. I've installed the latest ADT environment, and I created a new android project. I'm putting all of the old project's elements into this new project, but I cannot clean the project. I get this error: Errors occurred during the build. Dec 26 22:34:15 Errors running builder 'Android Pre Compiler' on project 'XXXX'. Dec 26 22:34:16 java.lang.NullPointerException Dec 26 22:34:32 I've googled this error, but the solutions aren't helping. Dec 26 22:37:35 Is there a good way to pass a row or rows of a Cursor to another Activity? Dec 26 22:38:06 besides passing what I need in an intent object, column by column? Dec 26 22:40:46 perhaps I can pass one row of the Cursor in a single object? Dec 26 22:42:07 this is a nightmare Dec 26 22:45:49 now I'm getting this error: Problems occurred when invoking code from plug-in: "org.eclipse.core.resources". Dec 26 22:46:49 RustyShackleford: CursorWindow implements Parcelable Dec 26 22:46:52 is there a way to debug the code run from intents? I have a remoteview thats not being populated, and I dont seem to get any logcat output from it¨ Dec 26 22:47:18 it = the remoteadapter intent Dec 26 22:47:45 hello Dec 26 22:48:40 stevel: that looks like exactly what I'm looking for Dec 26 22:48:57 how does the Parcelable interface work? Dec 26 22:49:11 RustyShackleford: you can put Parcelable objects into Bundles Dec 26 22:49:27 that is, what do I need to implement to make an object Parcelable? Dec 26 22:49:31 http://developer.android.com/reference/android/os/Bundle.html#putParcelable(java.lang.String, android.os.Parcelable) Dec 26 22:49:39 you implement the Parcelable interface :) Dec 26 22:49:44 and then you can shove it into a Bundle Dec 26 22:50:34 or put the Parcelable directly into the Extras that you pass to your new Activity Dec 26 23:00:55 can I use the selector xml to choose the resource image according to some boolean value I have in my code? Dec 26 23:06:55 is there a guideline how to best implement the observer pattern for android? like to use which container to store the listeners? Dec 26 23:12:47 hi Dec 26 23:12:55 anyone online? Dec 26 23:14:02 i have some questions about an app before uploading it on play store... Dec 26 23:14:09 so i have my manifest file Dec 26 23:14:36 can you help me to do the final set up of the manifest file? Dec 26 23:14:58 i'm a beginner and this is my first android app Dec 26 23:15:01 :) Dec 26 23:17:37 have you read the "preparing your app for the market" documentation? Dec 26 23:17:54 it explains exactly what needs to be set and what you need to do Dec 26 23:19:03 http://developer.android.com/tools/publishing/preparing.html Dec 26 23:19:20 http://developer.android.com/distribute/googleplay/publish/preparing.html Dec 26 23:21:18 ok, i will read it now :) Dec 26 23:21:43 also i wanna ask you smtg on pm Dec 26 23:30:35 this is a real nightmare. Anyone tried using a ListView inside of an ongoing notification event? Dec 26 23:31:01 I just can't seem to get it populated, and also i cannot receive any log messages from the intents started to populate it Dec 26 23:31:08 I'm really at a halt here Dec 26 23:34:32 anyone use monkey runner? does it use jni bindings or is it pure java Dec 26 23:36:42 hey guys Dec 26 23:40:54 hey guys :) Dec 26 23:41:43 http://pastebin.com/hSUBeEAj Dec 26 23:41:48 anyone see any problems with this? Dec 26 23:42:41 I get really strange unexpected results... if I do a random change anywhere in my project there is a 50% chance the children in onMeasure will report insane measured height values and 50% chance they will report the correct Dec 26 23:43:58 ow goodies custom adapterviews xD Dec 26 23:44:14 ;) Dec 26 23:44:24 yea sorry stuff of nightmares for me :P Dec 26 23:44:29 had it on an exam freezed up my brain :P Dec 26 23:44:30 hm Dec 26 23:44:36 where do you put it in? Dec 26 23:44:40 just a customlistview? Dec 26 23:45:04 if so, what is that customlistview in? Dec 26 23:45:08 linearlayout or..? Dec 26 23:45:14 let me paste the xml Dec 26 23:46:16 http://pastebin.com/Zmxw1wPn Dec 26 23:46:47 IceKiller first xml is the layout containing the adapterview and the second is each row returned back from the adapter Dec 26 23:47:16 I'm a bit baffled as to why it works so random :) Dec 26 23:47:24 to be honest Dec 26 23:47:28 i haven't had much problems with it Dec 26 23:47:32 so i don't know if i can help ya :P Dec 26 23:47:34 but let me take a look Dec 26 23:48:06 awesome :) Dec 26 23:48:22 can you make another layout bu ta list layout? Dec 26 23:48:34 and connect the customview /adapter to it? Dec 26 23:48:37 I can see in my logs that the onMeasure is run three times at app startup. first time fails, second time get the correct measurements and the third time fails again Dec 26 23:48:50 its possible its trying to measure it before its done loading Dec 26 23:49:43 good thinking, let me try that. should I put the view in a linear or as the root? (not even sure you can put it as root, never tried that ;) ) Dec 26 23:50:08 does anyone know which barometer/atmospheric pressure sensor LG builds into the Nexus 4? Dec 26 23:50:27 you can make a layout thats "just a listview" Dec 26 23:50:34 so mainoen is a listview without a paren't linearlayout Dec 26 23:50:42 umm Dec 26 23:50:45 neXyon did you google it? Dec 26 23:50:56 http://www.androidcentral.com/nexus-4-teardown-ifixit-now-under-way Dec 26 23:51:30 IceKiller I put it as root, still get the same "error" Dec 26 23:51:34 hmmm Dec 26 23:51:59 if I watch the app as it starts I can see it works , then a reload occurs and it fails Dec 26 23:52:03 pretty non-awesome :) Dec 26 23:52:45 hmm Dec 26 23:52:52 so it actually crashes or just doesn't work? Dec 26 23:53:57 it works, but the height of each object is insane Dec 26 23:54:06 IceKiller: nice, how did you find that? although I couldn't find the sensor's name there xD Dec 26 23:54:15 google nexus parts Dec 26 23:54:17 svearike Dec 26 23:54:20 i'm looking around a bit Dec 26 23:54:20 if I have my scrollview as root I can scroll and see that all is there, working as it should. it's just the measurements that gets screwed up Dec 26 23:54:31 the values are insane but are you sure the .. bit operations you are doing are correct? Dec 26 23:55:11 no, not at all. that's just something I put in there because I was worried the state bit was screwing with the heights.. I can remove that again and see if it does anything Dec 26 23:55:35 svearike Dec 26 23:55:38 can you try something insane Dec 26 23:55:49 in your normal one Dec 26 23:55:51 IceKiller no change I'm afraid Dec 26 23:55:59 the one were you use a linearlayout Dec 26 23:56:04 yeah? Dec 26 23:56:05 what happens if you set the layout hight ? Dec 26 23:56:15 in the "each row" xml ? Dec 26 23:56:32 android:layout_width="fill_parent" Dec 26 23:56:32 android:layout_height="100dp"> Dec 26 23:56:36 in the linearlayout Dec 26 23:56:49 so 100dp instead of wrap_content Dec 26 23:57:47 did it, but with px Dec 26 23:57:50 and same result as before Dec 26 23:57:55 that is .. kind of strange Dec 26 23:59:09 yea.. Dec 26 23:59:21 out of ideas right now srry :( Dec 26 23:59:24 12-27 00:52:38.564: D/NonScrollableList(2955): onMeasure: Child said height: 77 Dec 26 23:59:27 thats on a good run Dec 26 23:59:33 IceKiller: can't find it still unfortunately :( Dec 26 23:59:34 It seems like a CursorWindow isn't all that convenient Dec 26 23:59:34 12-27 00:52:38.484: D/NonScrollableList(2955): onMeasure: Child said height: 1015 Dec 26 23:59:43 thats on a "not that good" run :) Dec 26 23:59:50 isn't there a way to construct a CursorWindow from a Cursor? Dec 27 00:02:43 I think I might settle with grabbing each column of the row and storing it in a Bundle Dec 27 00:12:16 IceKiller I think I found the error. Dec 27 00:12:34 do share :) Dec 27 00:12:59 IceKiller or atleast WHEN it's happening. It only happens when I completed a AsyncTask and create the tab which contains the AdapterView from within the post function Dec 27 00:13:16 so .. i'm not sure, but it could be some threading issues? Dec 27 00:15:44 .. I tried to run the tab creating function from onResume now, got the same error. Dec 27 00:17:00 but it works from within onCreate, maybe I've misunderstood some things about dynamically updating the layout? o_O Dec 27 00:22:09 aah.. what the.. now it works when I start (because I removed some updating code) but as soon as I switch tab it stops working when I go back Dec 27 00:22:22 hmm Dec 27 00:22:26 sound slike a thread problem Dec 27 00:22:40 Seriously.. In-app billing is such a pain in the arse Dec 27 00:23:17 IceKiller yeah. it goes like this: If everthing is created in onCreate (works). if created for the first time , or second time, or whatever time outside onCreate if fails. Dec 27 00:24:06 Im considering just giving the bloody thing for free now Dec 27 00:25:12 in-app billing .. does that go thru the google store? Dec 27 00:25:20 like on ios purchase go thru itunes ? Dec 27 00:26:35 yeah Dec 27 00:28:38 yeah I'm working on in-app billing now Dec 27 00:28:42 very complicated Dec 27 00:32:47 Why cant the MediaRecorder class be used to write out uncompressed video? Dec 27 00:37:54 whats the difference between sdk and ndk Dec 27 00:37:55 anyone do some NDK stuff ? im wondering how long it takes for NDK c++ code to call a java method, and then have java make a return call into c++ Dec 27 00:38:03 can't be more than like 1ms at the worst Dec 27 00:38:35 you need jni wrapper class Dec 27 00:42:15 is there a tutorial for ndk programming? Dec 27 00:43:37 not much of one, google i/o Dec 27 00:43:52 there is a video from like 2010 or 2011, porting games to android i think it was Dec 27 00:44:17 but they don't go into much, u have to read "jni tips" android developers is the main one Dec 27 00:44:33 and then look at samples , the ndk comes with some samples Dec 27 00:46:21 k0nichiwa i hadnt anticipated the complexity of your question, i thought you was asking like "how long will it take me to write some ode which..>" Dec 27 00:47:10 no i was wondering how inefficient ndk calling java and getting called back would be Dec 27 00:47:23 roger that Dec 27 00:47:43 its probably not that bad in comparsion to the other stuff going on Dec 27 00:50:46 k0nichiwa, why cant i record uncompressed video with the MediaRecorder class, or am i missing something? Dec 27 00:52:39 i have no idea, never used it Dec 27 00:53:42 ok Dec 27 01:11:52 Is there a way to force a onMeasure to be run? Dec 27 01:13:03 n/m I just ran onMeasure directly ;) seems like a hack but I'm glad Dec 27 01:13:10 IceKiller I finally got it working now hehe Dec 27 01:13:23 hehe nice Dec 27 01:13:24 what was it? Dec 27 01:13:32 ah Dec 27 01:13:34 IceKiller http://pastebin.com/267nnpq1 Dec 27 01:13:36 manually calling it? Dec 27 01:13:53 IceKiller yeah I did some changes and put alot of logging in there Dec 27 01:15:12 IceKiller I finally found that in first run it went like measure, measure, layout, measure layout Dec 27 01:15:30 IceKiller but in the second run it just went measure, measure, layout STOP Dec 27 01:15:41 ah Dec 27 01:15:47 yea .. gotta love that stuff :P Dec 27 01:15:58 and it looks before the layout function had run the childrens sizes were pure nonsense :) Dec 27 01:16:10 haha, yeah.. I still don't quite understand WHY it was happening though ;) Dec 27 01:18:37 now I just gotta find a good movie and shut my brain off so I can hopefully fix the AdapterView inside of an ongoing notifation tomorrow, that was PURE hell :) Dec 27 01:26:00 can anyone recommend an openGL freelancer? Dec 27 01:28:48 woo first succesful render with the c++ gl code im porting Dec 27 01:29:25 anyone know a good tutorial or quick intro on how to handle pinch to zoom on android ? Dec 27 01:33:38 haven't tried it myself, but maybe http://www.zdnet.com/blog/burnette/how-to-use-multi-touch-in-android-2-part-6-implementing-the-pinch-zoom-gesture/1847 Dec 27 01:33:47 k0nichiwa, ^ Dec 27 01:35:13 anyone here do much with github? Dec 27 01:35:27 I forked a codebase and want to have that repo update from the original Dec 27 01:35:35 meco thanks Dec 27 01:35:41 meck0, i mean Dec 27 01:36:01 k0nichiwa, you're welcome, hope it will give something :) Dec 27 01:41:50 Hey guys. About to pull my hair out... have been for about 12 hours. I'm trying to implement this color dialog... http://macykuang.com/?p=41 ... and I also tried to implement a similar one (though this is better). Both are using a "Dialog", and both are screwing up. However, I make a new application project, minimum 9, target 17. On the "new app project", I simply threw in the same code Dec 27 01:41:50 on this page, and the dialog appeared just fine. However, on my real app, the dialog comes up without the drawable arrow between the green and blue color box, and the vertical color bar on the right of the color dialog is completely gone. It's there, if you run your finger up and down in the black area, it'll change the colors, etc.... Anyway, I'm trying to figure out WHAT THE HELL could Dec 27 01:41:50 be different/causing the Dialog to act like a complete whore in my app vs my test app? Dec 27 01:43:53 maybe youre missing some drawables Dec 27 01:44:04 from your resource Dec 27 01:46:13 k0nichiwa: I've referenced the library project, and it holds the drawables that is shown on the dialog when called, so I'm not sure what you are saying? I don't do anything different from creating my test app vs using this in my real app. One is flawless, the other is broken. Dec 27 01:49:45 maybe the theme is different Dec 27 01:50:19 Where all is the theme referenced, because I've changed the themes to match. Dec 27 01:50:25 sorry dont know, but the main difference would seem to be things like your XML config files Dec 27 01:50:30 manifest, etc Dec 27 01:50:51 add your real project to the test app, problem solved =) Dec 27 01:51:26 Hmm. May have to. Ug. Dec 27 01:51:56 what about your api level targeted ? Dec 27 01:52:03 maybe thte test app targets a different api level Dec 27 01:52:20 hm that comes under "XML" same idea as b4, never mind Dec 27 01:53:02 Both are the same.... :/ yeah this is super annoying. Dec 27 02:01:48 wow implementing pinch to zoom is a pain in android Dec 27 02:01:56 i would have thought google would have made this simple Dec 27 02:02:08 yeah Dec 27 02:02:08 just add some kind of recognizer and it gives you the scale delta Dec 27 02:02:09 hi all Dec 27 02:02:18 k0nichiwa: you could use touchView library Dec 27 02:03:41 thanks ill look for that Dec 27 02:04:56 Maziz, do you have a link havent found it yet Dec 27 02:05:04 ok Dec 27 02:05:04 https://github.com/MikeOrtiz/TouchImageView Dec 27 02:05:06 sorry Dec 27 02:05:09 was touch image view Dec 27 02:05:12 not touch view Dec 27 02:05:13 lol Dec 27 02:05:26 it's an extended class from imageview Dec 27 02:05:40 you can use it like image view Dec 27 02:06:35 anyone here play with little fluffy location library? Dec 27 02:08:39 ron_frown: I like drowning the battery and having super exact position! Dec 27 02:08:50 uhh little fluffy doesnt do that Dec 27 02:08:57 thats the entire point Dec 27 02:09:01 that why I don't use it >.> Dec 27 02:09:11 well I suppose you could override the default intervals etc Dec 27 02:09:12 what your issue with it? Dec 27 02:09:16 actually ther eisa ScaleGestureDetector in api 8 Dec 27 02:09:27 doesnt seem to work as expected in certain places Dec 27 02:10:16 maybe it also doesn't work with all device... Dec 27 02:10:29 fluffy what? Dec 27 02:10:36 location library Dec 27 02:10:41 not what I meant Dec 27 02:10:58 it fires broadcast intents that my generic recievers pick up Dec 27 02:11:07 but if I instantiate and register on an activity no worky Dec 27 02:15:38 funky name Dec 27 02:33:18 hello guys. is it possible from one application/service to know when another application is launched, and which launcher/icon is associated with it? Dec 27 02:34:35 i suppose you can do it if you are writing a launcher, right? Dec 27 02:36:13 lgfreitas: why do you want to? what is your end goal? Dec 27 02:37:19 jasta: i want to rank applications i launch most, so I can auto-organize my home screen based on that Dec 27 02:37:30 such that most launched apps will appear first Dec 27 02:38:08 one second Dec 27 02:39:08 i intend to do that without writing a launcher replacement, my goal is just the home screen Dec 27 02:39:15 but im willing to write one if necessary Dec 27 02:39:56 i believe this is possible with information captured by the activity manager service already Dec 27 02:40:21 I'm using android.test.purchased in my in-app billing, and when I checked its price in the inventory, it said it is $.99. Does this make sense? Dec 27 02:40:31 i'm exploring currently; my theory is that you could write something to basically scan the task record stack periodically and "sync" it with what you knew previously to build up an understanding of launch times Dec 27 02:40:52 jasta: can you fiddle with that record? Dec 27 02:41:27 i mean, does the activity manager expose that information? Dec 27 02:42:03 that's what i'm currently researching. it does via dumpsys activity; it may via some more convenient API Dec 27 02:42:20 http://developer.android.com/reference/android/app/ActivityManager.html Dec 27 02:42:25 hmm that may be possible Dec 27 02:43:56 using RecentTaskInfo maybe, but how can I trace the intent back to the launcher icon? Dec 27 02:44:32 found the relevant pieces of code here; reading... Dec 27 02:44:45 trace the intenet back to the launcher icon? what? Dec 27 02:46:06 I mean, if I launch the calculator from the calculator icon, I want rank that icon up in my home screen so that it appears first Dec 27 02:46:43 it's trivial to determine the icon to display to launch a particular intent Dec 27 02:47:10 the hard part of your question is knowing when (and therefore by what frequency) intents are launched. Dec 27 02:48:05 yes Dec 27 02:48:14 i just hit a dead end looking at the public API. i think your best bet there is to periodically scan dumpsys activity or, perhaps more efficiently, tail logcat and look for launch intents for MAIN category intents. Dec 27 02:48:19 has anyone tried using android.test.purchased with app-billing Version 3? Dec 27 02:48:42 lgfreitas: anyway, see PackageManager for info on how to do the trivial translation of intent => icon Dec 27 02:48:47 i didn't knew that getting the icon was trivial. Dec 27 02:49:03 if this were my project, i'd keep researching. but i do believe logcat is the best option revealed so far. Dec 27 02:49:25 it will not be efficient, though, which could be a deal breaker Dec 27 02:49:35 i was hoping i could "listen" to application launches and record hwo many times they are launched Dec 27 02:49:42 i bet you were Dec 27 02:49:46 :) Dec 27 02:49:46 lol Dec 27 02:49:50 not possible? Dec 27 02:50:03 nothing is broadcast to my knowledge when an intent is launched. Dec 27 02:50:25 it is written into the logcat though, and as i said, that can be read. Dec 27 02:50:45 dumpsys activity could be done on an interval, say every few hours, but it would be a bit performance knock when it ran Dec 27 02:50:46 logcat might be huge with GC info Dec 27 02:50:56 yeah :/ Dec 27 02:51:08 it would be. you'd be relying on really good I/O performance between your app and logcat for this to work at all well Dec 27 02:51:26 http://stackoverflow.com/questions/7596488/android-listen-for-app-launch Dec 27 02:51:57 :/ sad. Dec 27 02:52:26 to take this seriously, you'd need to benchmark the performance difference between tailing logcat versus polling (periodically) dumpsys. Dec 27 02:52:34 smart money says tailing logcat wins :) Dec 27 02:52:42 :D Dec 27 02:52:50 tailing logcat is indeed a good idea. Dec 27 02:53:19 you could parse it really efficiently, just looking for the newline delim and writing a very fast parser to determine if you got the message type you expected Dec 27 02:53:33 the format of logcat makes this very easy (a str.startsWith(...) could even work) Dec 27 02:53:52 yeah, but how can I get to logcat? Dec 27 02:53:52 but actually, don't do that because then you'd be creating a string for every line and that is such a bad idea ;) Dec 27 02:54:20 java.lang.Process Dec 27 02:55:13 oh Dec 27 02:55:17 execute the logcat process Dec 27 02:55:23 I was hoping to really tail a file Dec 27 02:55:37 tailing a process is a lot easier tahn tailing a file dude :) Dec 27 02:56:24 hm tailing output from logcat. god am i dumb. you're right :D Dec 27 02:58:30 btw, what i said about not creating a string for each line is important. read into a byte buffer and scan the byte buffer to find the records youre looking for Dec 27 02:58:59 ok, i'll make sure to read to a byte buffer. Dec 27 02:59:26 now I am left with one more question, that is, how to change the home icons organization? better write a launcher replacement? Dec 27 02:59:35 designing this properly, you could just make your own scanner type class that uses an internal byte buffer to do this so you can write soemthing like while ((ActivityLaunchRecord record = myScanner.next())) { Dec 27 02:59:41 maybe write a widget... Dec 27 02:59:49 that's up to you **** ENDING LOGGING AT Thu Dec 27 02:59:58 2012