**** BEGIN LOGGING AT Fri May 03 02:59:58 2013 May 03 03:20:28 hello all, I want to make a login app for my college website. The idea is to save the username and password in the app, so whenever i click login button in the app, it opens the web browser and goes directly into my profile of my college website May 03 03:21:07 the thing is that you can't POST with the web browser intent ... so anyone have an idea how I can implement this? May 03 03:21:24 use httpclient May 03 03:21:33 or use a webview May 03 03:22:28 but I read that webview isn't a full web browser May 03 03:22:46 well its like android browser minus the chrome May 03 03:22:58 I will give it a try May 03 03:23:21 I will have to use cookies? May 03 03:38:13 Is there any way to change the way the backgroind of a linearLayout draws? May 03 03:38:22 background* May 03 03:39:18 Right now it's stretching, and I don't want that May 03 03:45:41 stretching is a good way to prevent back and groin injuries May 03 03:45:52 hey guys May 03 03:46:00 getPreferences is a member of Activity? May 03 03:46:10 so I can't really get preferences outside an activity? May 03 03:48:13 getSharedPreferences is a method on Context, or you can use PreferenceManager.getDefaultSharedPreferences May 03 03:48:32 thank you :) May 03 03:58:32 pragma: how pragmatic! May 03 03:58:50 Korvin: you can use drawables you define in the /res or use 9patch png files May 03 03:59:27 if you don't know graphics well enough, drawables are handy scripts to generate basic shapes like rounded edges you can also apply shadows too May 03 04:04:16 lasserix, https://gist.github.com/arriolac/3843346 May 03 04:05:02 If I use that, how can I use that class in an xml in place of an ImageView May 03 04:06:56 you have to ovveride the other constructor constructer (context, attrs) May 03 04:07:04 and then in xml use package declaration May 03 04:07:05 so May 03 04:07:26 com.appname.CustomImageView May 03 04:07:38 instead of May 03 04:09:57 thank you lasserix, I appreciate it May 03 04:10:49 hrmmm so it looks like PreferenceManager.getDefaultSharedPreferences takes a context May 03 04:10:57 figured I could just getApplicationContext() May 03 04:11:04 but that is an abstract method May 03 04:11:27 I think I'm not understanding this stuff the way it is supposed to be used :) May 03 04:13:08 where are you trying to run the code? you probably have access to a context of some kind. activities and services are both contextes. broadcast receivers are passed a context in onReceive. May 03 04:13:36 this little code block I was putting in its own little class May 03 04:13:50 separation of concerns...this stuff is unrelated to contexts and activities May 03 04:13:56 but since I need it to store a preference May 03 04:14:02 guess I'll take in an activity parameter or something May 03 04:14:53 so the way this seems to work is each activity / context gets its own set of preferences? May 03 04:15:03 that way one activity isn't trampling another activity's preference May 03 04:16:23 there's a few ways to get a SharedPreferences object and though their names don't reveal much they're for different purposes. Activity.getPreferences is for prefs used used by that activity May 03 04:16:40 PreferenceManager.getDefaultSharedPreferences is for your whole application, and what a PreferenceActivity will use May 03 04:17:14 Context.getSharedPreferences let's you specify your own filename May 03 04:18:07 i never use Context.getSharedPreferences. i use PreferenceManager.getDefaultSharedPreferences mostly, but for some activity specific things, like remembering a user preference of a checkbox in an activity or something i use Activity.getPreferences May 03 04:19:15 so...I need to report back to our servers some information May 03 04:19:27 one of the things we report is first launch or not May 03 04:19:36 so I need to basically save a preference of "has been launched" May 03 04:19:45 sounds like a PreferenceManager.getDefaultSharedPreferences May 03 04:19:48 but then I need a context, right? May 03 04:19:52 yes May 03 04:19:56 so I guess I can pass in a context as a parameter to this function May 03 04:20:02 since this function is in its own class May 03 04:20:16 but where do I can that context? Can I get it from the launching activity? May 03 04:20:21 you could either pass the context or pass the SharedPreferences object May 03 04:20:46 an activity is a context, so if you call YourClass.someStaticMethod(this); it will pass the activity which is a context May 03 04:20:57 ah kk May 03 04:20:57 thanks May 03 04:37:51 haha okay so... May 03 04:37:57 I wanted to pass in this May 03 04:38:01 but it is doing this: May 03 04:38:27 mSomeMember.doThing( new Api.Receiver() { May 03 04:38:40 so my 'this' is inside the Api.Receiver May 03 04:38:49 any way to get the outer 'this'? Pass it in or something? May 03 04:40:03 MyActivity.this May 03 04:42:25 hey guys May 03 04:43:02 how can i get the max length of the edittext which i have set in the xml file ? May 03 04:50:36 anyone ? May 03 04:50:40 please help May 03 04:58:40 kevinb ohhhh neato. Thank you :D May 03 05:04:02 Can you please suggest a few Beginner and Intermediate level books for android dev? May 03 05:04:25 sunelly_slls: it's a two step operation, you have to set the value in integer.xml and reference it from xml and then also from code ala http://stackoverflow.com/questions/8069015/how-to-get-edittext-maxlength-setting-in-code May 03 05:06:38 sunelly_slls: the upshot is you can set different max lengths for the various values/res device types May 03 05:20:31 guys, do u know how to track when soft keyboard is up or down? May 03 05:26:29 nomo, theres no *nice* way of tracking the soft keyboard state May 03 05:27:15 there are some hacks, like looking for your layout resizing by more than x amount of pixels May 03 05:31:42 If you can get away with just toggling it, it makes life easier May 03 05:32:37 Got another question for ya. :) Our servers have an oauth thing.... May 03 05:32:54 I think I need our app to pop up a modal dialog window with some sort of browser widget in it May 03 05:33:11 have that open up our oauth stuff and be able to parse the resulting redirect url May 03 05:33:37 oauth is pretty mainstream. Is there any java oauth thing I should use for this? Or do I need to make my own dialog box and all that? May 03 05:33:43 I saw a really good article on using AccountManager with custom oauth providers May 03 05:33:49 let me dig it out May 03 05:34:16 ProgramMax, basically you should use the AccountManager and an activity with WebView May 03 05:34:17 thanks :D May 03 05:34:32 ProgramMax, your exact use case is explained in android docs :P May 03 05:34:41 oh really? haha May 03 05:34:45 http://developer.android.com/training/id-auth/identify.html May 03 05:34:49 the three articles here May 03 05:35:12 thanks :) I appreciate it May 03 05:35:19 second one is about authenticating, third about using your own oauth provider :) May 03 05:35:32 AccountManager has to be one of the worst APIs on the planet May 03 05:35:34 so just read through them in order May 03 05:36:23 g00s, it's actually a pretty decent API with exception of needing XML definitions May 03 05:36:28 g00s, its badly documented though May 03 05:36:49 bad docs are a given ;) May 03 05:36:50 crap :( May 03 05:36:56 but its a bad API ;) May 03 05:39:23 public AccountManagerFuture addAccount (String accountType, String authTokenType, String[] requiredFeatures, Bundle addAccountOptions, Activity activity, AccountManagerCallback callback, Handler handler) May 03 05:39:36 exhibit A May 03 05:40:38 Bundles are a smell May 03 05:41:06 happens that turd is parcelable May 03 05:48:10 exhibit too long; didn't read May 03 05:49:32 hm, erica sadun wrote a new book on marketing apps. wonder if it also applies to android. probably. May 03 05:51:53 I am just starting out with android development and I seem to be stuck on multi touch. When I move a finger around my screen, getX/getY stop updating May 03 06:03:52 my company has done a deal with samsung May 03 06:04:01 they've paid us to write some apps that get preloaded May 03 06:04:08 now apple refuse to feature any of our apps May 03 06:04:20 evne if they're unrelated to what our android apps do May 03 06:04:25 why is it sometimes I cannot set breakpoints in eclipse? May 03 06:04:37 are you in the wrong view? May 03 06:04:46 in the Java view May 03 06:04:56 viewing the source corresponding to the project? May 03 06:05:01 yeah May 03 06:05:09 I know that sometimes it'll open up source from elsewhere with the same filename and then you can't May 03 06:05:12 hmm May 03 06:05:25 closed the .java file, navigated to it in the Package Explorer for this project May 03 06:06:02 and if you right click on that bar "Toggle Breakpoint" is greyed out? May 03 06:06:31 im not sure if this is the right place to ask for advice other than the fact that the design issue here is from my android project but here goes: Ive created a method that takes the last 16 bytes read from and InputStream and creates an object depending on what was received. http://pastebin.com/ZYzUkgnq May 03 06:07:00 I just feel like having this method in the same class that does the read is weird. Maybe the method should be part of the constructor of DataObject? May 03 06:07:30 how do I make getX and getY continue updating for multiple pointers? May 03 06:12:17 Toggle Breakpoint is not grayed out May 03 06:20:10 how can I correct this issue with multiple pointers not updating x/y? http://pastebin.com/bS1VeGeK May 03 06:25:25 wabz: are they being passive aggressive, or did they say something officially ? May 03 06:25:39 haha there was a huge argument with our marketing people May 03 06:25:43 and apple May 03 06:27:19 so yeah, they did say that they wouldn't May 03 06:27:21 it's so petty May 03 06:28:08 we've done a REALLY nice iOS sports app, one that they'd normally feature very easily May 03 06:29:47 anyone in sydney, australia looking for a perm role? May 03 06:29:52 wabz: what was their objection? just that it was being preloaded on competitor's phone ? May 03 06:30:07 it's just a business thing May 03 06:30:20 do a deal with samsung and you won't be our friends anymore May 03 06:30:27 like kindergarten you knwo? May 03 06:30:34 yeah, they suck May 03 06:32:34 even if we create an app for android and ios and plan on releasing both May 03 06:32:44 they will say that they won't feature it unless it's exclusive to them for a bit May 03 06:34:59 MotionEvent.getX()/getY() doesn't fully support multiple pointers or am I doing it super completely wrong May 03 06:37:42 fprophet, um May 03 06:38:08 fprophet, documentation it pretty clear on the fact that getX()/getY() returns coordinates of the FIRST pointer May 03 06:38:12 did you even read it? May 03 06:38:39 I thought I did, but apparently not very well. May 03 06:40:04 wait a minute May 03 06:40:17 also you overlooked the getX(int pointer)/getY(int pointer) versions :P May 03 06:40:23 I'm using getX(pointerIndex), not getX() May 03 06:41:01 heres my whole mess.. http://pastebin.com/bS1VeGeK May 03 06:42:04 you're still reading a single pointer :) May 03 06:42:14 crap May 03 06:42:43 how do I read all of them at once? just step through all pointers? May 03 06:42:59 yep :) May 03 06:43:16 that's why you get getPointerCount() May 03 06:43:21 to tell you how many pointers you have :) May 03 06:43:34 That makes sense then :) May 03 06:54:56 mavrik: it's still doesn't seem to track other pointers May 03 06:56:28 http://pastebin.com/Dizd0pzW May 03 07:04:38 ACTION_MOVE doesn't seem to be working with multiple pointers at all May 03 07:17:10 Is it possible to find the resource ID of a given drawable? May 03 07:21:15 maslen: maybe May 03 07:21:30 maslen: let me check something... May 03 07:22:58 maslen: https://github.com/android/platform_frameworks_base/blob/master/core/java/android/content/res/Resources.java#L99 May 03 07:23:21 maslen: while its not really correct, you could use reflection to access this private field, and loop over all the resources it has loaded recently May 03 07:23:34 yeah, that's way too hacky, nothing personal May 03 07:23:54 you could also read the source in that file to see if any existing method does that May 03 07:25:40 maslen: /system/etc/security/otacerts.zip May 03 07:25:54 maslen: /system/etc/security/otacerts.zip May 03 07:25:57 bloody clipboard! May 03 07:26:32 maslen: https://github.com/android/platform_frameworks_base/blob/master/core/java/android/content/res/Resources.java#L1902 May 03 07:26:44 maslen: this function appears to convert a resource id back into a name somehow May 03 07:26:55 close, but not exactly what you wanted May 03 07:29:15 maslen: nope, i dont see any sign of it storing the id/name on the drawable it creates May 03 07:29:34 can you just do R.drawable.myimage May 03 07:35:57 Hello! Somebody over here, I need some help! :} May 03 07:42:53 I'm still having issues tracking multiple pointer x/y at once. can someone shed some light on the subject? here is my code currently: http://pastebin.com/Eycvxh8t May 03 08:02:50 Can I programaticaly control call forwarding and voicemail? May 03 08:03:38 In my activity, an r.id is showing up as not set May 03 08:04:02 I used the interface builder in eclipse, why would that happen? May 03 08:05:10 save, clean, rebuild May 03 08:09:12 bankai_, how do I build the project without running it? May 03 08:11:04 shit bankai_, now it's saying that R isn't defined May 03 08:11:31 Korvin: sounds like you have an xml syntax error somewhere May 03 08:11:33 huh May 03 08:11:37 hey, any knows how i can play a video with videoview without taking focus from any audio streams? The problem I'm having right now is that when I play an introduction greeting clip, it takes focus from the music stream, and it would interrupt the user's experience with the app. Any help would be great, thanks. May 03 08:11:40 why would getExternalFilesDir(null).getAbsolutePath(); NPE May 03 08:12:09 I got three reports of my app crashing on that... weird May 03 08:12:44 hm, no external storage maybe? May 03 08:14:16 yeah apparently it returns null if no external storage exists :> May 03 08:14:27 StingRay_, bankai_, it was that I did @id instead of @+id May 03 08:16:07 hi, I'm I'm working with Loaders, initLoader gets called in onCreate and restartLoader gets called in onResume, but this leads to a Loader being recreated in quick succession, is that normal? May 03 08:17:11 belgianguy: well yeah May 03 08:17:50 it's not normal to do that, but the lifecycle is normal May 03 08:18:21 StingRay_: ah, what would the normal way be? May 03 08:18:25 eg have a flag in there thats called loaderCreated May 03 08:18:28 :) May 03 08:18:49 and on*FinishedLoader thingy (whatever it is) May 03 08:19:13 so in onResume you can check if it's 1st time creation May 03 08:19:29 if it is, dont restart it May 03 08:19:30 :) May 03 08:19:40 I think thats all I do neways May 03 08:20:02 StingRay_: ah, I'll have to dispose of it in onPause/onStop then, to set the loaderCreated flag to false May 03 08:20:21 or is that 'automagically' handled? May 03 08:22:02 oh May 03 08:22:29 all I do is check if my loader is null May 03 08:22:43 if it is then I restart loader with same info May 03 08:23:11 in onResume May 03 08:23:59 What would cause someNonNullView.findViewById(R.id.some_existing_id) to return null? May 03 08:24:21 Korvin: the view/id not being there ? May 03 08:24:23 :) May 03 08:24:36 https://gist.github.com/KorvinSzanto/4b31f6240f818108ac4d May 03 08:25:32 and the offending code: https://gist.github.com/KorvinSzanto/efdc1084c950171cbe7e May 03 08:26:00 Wait, I was looking at the wrong spot. May 03 08:26:04 I'm still having issues tracking multiple pointer x/y at once. can someone shed some light on the subject? here is my code currently: http://pastebin.com/Eycvxh8t May 03 08:26:10 This is why you don't work at 1:26am May 03 08:27:09 Is it even possible to just play an mp4 from a videoview without outputting any audio? Not muting, but lets whatever audio stream currently playing uninterrupted? May 03 08:29:02 ah, thanks, StingRay_ ! May 03 08:35:53 dimsumlab: you'll probably need to use something like Vitamio or ffmpeg for that May 03 08:36:34 shmooz: thanks for the pointers May 03 08:40:11 StingRay_: hmm, I'm using the Loader in a fragment, it hits onCreate first, then onCreateView and then onResume and after that (after the restartLoader) it'll arrive in onLoadFinished (where I was setting the mLoaderCreated to true) May 03 08:40:44 yeah I dont set a flag May 03 08:40:52 I just check if it\s null May 03 08:41:13 would you have a better suggestions how to achieve the same effect? Using FrameAnimations hogs up the memory pretty quickly since I'm playing a 5s clip at min 24fps... May 03 08:42:32 and very choppy as a result May 03 08:47:59 StingRay_: thanks for the info, it works great now :) May 03 08:49:48 good good May 03 08:49:50 :) May 03 08:50:24 Theres nothing like getting the "Deprecated" warning with no reference as to what should be used instead May 03 08:50:51 "Time.parse is deprecated" ...oh..okay then... May 03 08:51:09 lite_: well, blame Java on it, iirc. I don't think there's a way to specify a comment in @Deprecated annotation May 03 08:51:30 I am :p May 03 08:55:08 Can anyone shed some light on getting x/y on multiple pointers at the same time? here is my code: http://pastebin.com/Eycvxh8t May 03 08:56:50 for some reason it doesn't seem to detect anything about another pointer except for the first down event May 03 09:03:09 fprophet: have you tried event.getX(0) and event.getX(1) etc...? May 03 09:04:23 lite_: something like this? http://stackoverflow.com/questions/657962/a-non-deprecated-exact-equivalent-of-datestring-s-in-java May 03 09:05:45 fprophet: not sure I see any issues with your code... what's the problem? May 03 09:06:31 I'll try to explain May 03 09:07:22 when I place two(or more fingers) on my device, the x/y coordinates are updated properly, but only the first pointer continues to update x/y if I move them around a bit May 03 09:08:18 if I remove a then the positions are updated May 03 09:08:43 but action_move doesnt seem to be called at all for any other pointers May 03 09:08:56 oh i see it... you're returning inside the for loop... May 03 09:09:20 should return only after all of them gets updated May 03 09:16:36 I can't get butterknife to work for the life of me, Views.inject just seems to do nothing. Am I missing a step here? May 03 09:23:40 nevermind, I just saw the updated instructions on the website. May 03 09:24:14 Is there any other way to ensure that your application will work on small screens other than simply wrapping all layouts in a ScrollView? May 03 09:28:27 do someone has an up-to-date list of devices with the CPU architecture / version ? (ARMv5, v6, v7 / x86 / MIPS ...) May 03 09:29:39 Hello, somebody over here? I need some help!! May 03 09:29:58 Hi! Are there Android Apps developer willing and available to spend their 2 minutes talking about the tools you use to detect and solve bugs during development? I am looking for analysis tools specific for Android and any suggestion would be appreciated! Thanks!! May 03 09:31:16 lite_: create a separate folder in res/layout-hXXXdp, and tweak your layouts May 03 09:31:19 subtask: there's a tool called monitor in SDK, contains a bunch of useful things which formerly were separated May 03 09:31:24 It's any problem with jobb tool in android? When I try to generate an encrypted .obb file with more than 500 mb It crashes throwing a "FAT FULL" error May 03 09:34:23 thank you, karlo May 03 09:41:21 luisming: if you google for that error you'll find that you're not alone, so it is probably a file size limit in the file format used by jobb May 03 09:45:18 Ok appel1,first of all the half of these google results are mine, lol , but it's strange because Apk Expansion Files have a max size of 2 Gb according to Google's politic, so I found very rare that jobb had that limitatio. Maybe it's a problem with the file names or the folder I store the generated .obb? The error is trhowed by a FAT java manager class which says that that error is sown when there are no more free clusters to May 03 09:45:39 hi, i have some problem with map api v2, i want use with api level 10, in level 17 works May 03 09:45:45 there is code http://pastebin.com/P6XVb3iE May 03 09:46:00 luisming: do you have many files in a single directory? May 03 09:46:03 Hi! Are there Android Apps developer willing and available to spend their 2 minutes talking about the tools you use to detect and solve bugs during development? I am looking for analysis tools specific for Android and any suggestion would be appreciated! Thanks!! May 03 09:46:03 Hello! Is it possible to bring some task to the front? Do I need special permissions for that? May 03 09:46:43 five .mp4 files with a size of 100 mb each May 03 09:47:01 luisming: and just because apk expansion files can be 2gb does not mean that the specific format used by jobb supports it, but it is more likely that a single file stored in the obb file cannot be > 500mb May 03 09:47:31 marrrk: startActivity ? May 03 09:47:40 I thought that, but it's strange, FAT 32 allows sizes to 4 gb... May 03 09:47:49 Can I do that with any activity even if it's not mine? May 03 09:48:40 appel1 and there's no manual who says that jobb tool has a size limitation May 03 09:48:50 appel1: and there's no manual who says that jobb tool has a size limitation, soz May 03 09:49:13 luisming: like much else with android the answer is in the source code May 03 09:49:15 :) May 03 09:49:46 marrrk: yes, but it isn't always a good idea or might not work as you intend May 03 09:50:09 I would have to know the name of the Activity I guess. May 03 09:50:17 obviously May 03 09:50:37 marrrk: what is it you're trying to do? May 03 09:50:49 appel1: I know, i know, but I don't find any line of code which sends me a clue about what is failing, just any .obb generated file larger than 500 mb throws that error, so I don't know if it's the tool who is failing or me May 03 09:51:10 I want to automatically answer messages in chat programs (gtalk and whatsapp) May 03 09:59:36 say I create an http post, how can i dump the actual post and see exactly what's being sent? can i do that with logcat? May 03 10:20:22 my GridViewAdapter reloads my entire GridView after an orientation change which causes the GridView to go from three to two columns. Is there any way to avoid this behavior? I just want to have the children of GridView to be rearranged, not recreated.. May 03 10:23:18 Hello guys, I've a service that should be running all the time. This service has a TCP connection to our server, to exchange data. When there is no connection (i.e. Wifi is turned off), my service keeps trying to connect to our server until it gets a connection. Problem is, when there's no connection for some time, the OS seems to kill my app, Logcat shows me: D/Process(240): killProcessQuiet, pid=22743. How can I prevent the OS to May 03 10:23:18 kill my process, I set my service as setForground(true), but still OS 'is killing me softly'. May 03 10:24:25 Number5: you could listen to connectivity changed instead and restart the service if there is a internet connection to avoid having to poll. May 03 10:24:29 Number5: two things: first, use the android.net.conn.CONNECTIVITY_CHANGE event to stop the service when there is no connection May 03 10:25:07 Number5: second, setForground(true) is deprecated and not having any effect on android 2.x+, you need to context.startForeground() instead May 03 10:25:32 Thanks guys, the latter one seems interesting. May 03 10:25:53 Number5: it comes with a cost though, because you get a permanent notification May 03 10:26:02 Number5: so the user can see your app is active May 03 10:26:37 Ge0rG, I see I already use that, I thought it was setForground, but I use startForground with a notification too, so the user can see if it's still running. May 03 10:27:06 Number5: then you need to handle when your service is killed and restarted May 03 10:28:21 yeah, permanent tcp connections are a kind of black magic May 03 10:28:34 appel1, I have to admit my code is like spagetti now, but does this happen when there's no connection, could it be the memory is getting low, when my service keeps attempting to reconnect? I haven't checked that yet actually. May 03 10:28:51 Number5: services are killed on low memory May 03 10:29:37 Ge0rG, thnx. Cause normally when I have a connection, my service runs untill the battery is drained. Like 6 hours. May 03 10:29:53 But when there's no connection it gets killed. May 03 10:30:58 Number5: so your service drains the battery? :P May 03 10:32:24 Ge0rG, yes if runs continually, but I just want to say if it does have a connection, it runs for ours with no problem. But when it tries to reconnect on a connectionless state it gets killed within minutes. May 03 10:32:39 ours -> hours May 03 10:33:07 Number5: yeah, use a CONNECTIVITY_CHANGE listener. store in the app preferences if the service should be running or not, and then just restart it when connectivity is there May 03 10:33:20 Number5: may I ask what kind of connection/app you are working on? May 03 10:34:11 Another thing, it tries each second for a connection and I found out that my colleague creates a new socket everytime, I can imagine that when socket fd's running out the OS takes action. May 03 10:35:01 yeah, if you run out of socket fd's, the OS takes action by giving you an electric shock. don't do that please May 03 10:35:11 Ge0rG, geo kind of application, but not based on http requests, just straight tcp. Also encrypted May 03 10:35:40 Number5: geo-location? May 03 10:36:10 gsp, browsing, photo upload through an encrypted "tunnel". May 03 10:36:21 gps May 03 10:36:31 photo download May 03 10:36:46 Number5: because I happen to have a geo-location app with a permanent tcp connection as well, it's aprsdroid for radio amateurs May 03 10:36:55 map using mapsforge May 03 10:36:58 no photos though May 03 10:37:20 Number5: thats neat, I'm using mapsforge as well. do you support online tile downloads? May 03 10:37:24 Ge0rG, thnx May 03 10:37:50 no, we convert OSM map to mapsforge kind of format and store it locally May 03 10:37:58 Number5: closed user group? May 03 10:38:21 * Ge0rG is still looking for a way to use online data in mapsforge May 03 10:38:41 Ge0rG, why not using OSM instead? May 03 10:38:52 there are lot of OSM based Android apps May 03 10:39:47 Number5: I'm also using google maps, and I looked for a drop-in replacement. also, mapsforge _is_ using OSM May 03 10:40:03 Number5: is there a decent OSM rendering library I can use as a google-maps replacement? May 03 10:40:50 Ge0rG, I'm sorry, I just know Mapsforge because I needed a map renderer for locally stored map. May 03 10:40:56 I need to go, bye May 03 10:41:01 have nice weekend you all May 03 10:41:14 yeah. May 03 10:51:08 How do I create a DialogFragment with an InputText view ? May 03 10:53:47 you erm, create a dialog fragment May 03 10:53:59 and then in that, you err…. create a editText view ? May 03 10:59:54 StingRay. can you test my app :< May 03 11:00:29 what ? May 03 11:01:09 Would you like to test my app? :< or anyone from here just to make sure its bug free? May 03 11:01:21 not really May 03 11:01:23 :) May 03 11:01:29 ok :< May 03 11:01:43 you can do that May 03 11:01:44 :( May 03 11:02:29 k May 03 11:03:09 I'll do it but it'll cost you :D May 03 11:05:24 ciurkut: what kind of app is it ? May 03 11:05:46 its wallpaper app :< May 03 11:05:47 StingRay_, , alright. Now how do I parse an argument to the dialog? It needs to know if it was button A, B ir C that created the dialog. May 03 11:06:13 lite_: normal ways May 03 11:06:16 it makes wallpaper from pattern file for your device resolution :< May 03 11:06:27 lite_: it's just a fragment May 03 11:06:33 anyway feel free to test it and report Patterns Lite May 03 11:06:45 there are some nice wallpapers in it :< May 03 11:06:52 depends on what you like May 03 11:09:09 shmooz tell me if you like it :c May 03 11:09:34 ciurkut: I didn't find it on my gingerbread market May 03 11:09:50 https://play.google.com/store/apps/details?id=net.patternslite May 03 11:13:07 What does the Wallpaper App do with Internet? Ads? May 03 11:13:33 Is IOUtils available on anadroid SDK? May 03 11:13:48 subtlepatterns \o/ May 03 11:13:52 kakazza yep May 03 11:13:59 don't think so, no May 03 11:14:47 stork: that was for me? May 03 11:14:47 admob requires it :c paid version doesnt have internet permissions you can check May 03 11:14:58 that was for you, crised May 03 11:15:49 stork: Seems that I would be Using Scanner then, http://stackoverflow.com/a/5445161/1341526 May 03 11:16:38 Ternary operator is available on android, right? May 03 11:16:49 yes May 03 11:16:57 i'm not really sure what you're trying to do? May 03 11:17:52 GET a JSon array May 03 11:17:55 form a fixed URL May 03 11:18:17 The ternary conditional operator is part of the language syntax, not part of a library. May 03 11:19:00 kakazza: yes, I see it works ;) May 03 11:19:15 so any Java syntax will work in android? May 03 11:19:34 Yes. Java 1.6 for that matter. May 03 11:19:43 And some tiny parts of 1.7 which are just syntactic sugar. May 03 11:36:08 StingRay_, by "normal ways" I assume youre referring to passing it with a Bundle to the dialogfragment? May 03 11:36:50 yes May 03 11:40:37 Alright. I managed to do that. Thanks. My next issue is with handling the input text in a callback. in the example I found he uses EditNameDialogListener activity = (EditNameDialogListener) getSherlockActivity(); May 03 11:40:47 but my activity doesnt implement the interface, the fragment does. May 03 11:48:53 How do I programatically find the fragment currently being shown by a FragmentActivity ? May 03 11:49:47 you can findFragmentByTag() May 03 11:49:55 or similar methods May 03 11:49:58 no tag is set. May 03 11:50:08 im using a viewpager to show my fragments May 03 11:57:47 hm, I'm seeing some weird behaviour, and I suspect it are ListItems being recycled May 03 11:58:03 I enable a button per ListItem depending on some value May 03 11:58:23 but when I scroll, I see these actions are applied to more ListItems then I though May 03 11:58:29 thought* May 03 11:58:48 all this happens in getView(...) May 03 11:58:54 xorgate, what if i know that the "right" fragment implements IMyInterface ? May 03 11:59:08 lite_: you might use getCurrentItem() of ViewPager and then resolve position to a fragment in some way, for example by storing weakreferences in your fragment adapter May 03 11:59:44 lite i dunno about viewpager, never used it. but in general you should know where in the layout your fragment is, so you can find it there May 03 11:59:51 belgianguy: item views are recycled, you need to use ViewHolder pattern May 03 12:00:05 also im not precisely sure what the problem is May 03 12:00:30 karlo, but that sort of messes with my coupling. This means that my Dialog needs to know that it was called by a fragment in a viewpager. May 03 12:00:34 which is bad design May 03 12:00:35 karlo: I am using the ViewHolder pattern (static class with references to all views inside the listitem, stored as the Tagà May 03 12:01:07 AdjustPricesDialogListener fragment = (AdjustPricesDialogListener) ??? // Find the fragment that implements this interface May 03 12:01:13 xorgate, that is the problem ^-- May 03 12:01:57 who is starting this dialog? May 03 12:02:03 The parent activity May 03 12:02:20 belgianguy well the adapter seems to be buggy then? how about some code May 03 12:03:11 lite_: then the parent activity should subscribe to dialog, and forward it to a fragment, as this activity knows about fragments I guess May 03 12:03:59 or use event bus like Otto May 03 12:04:05 what May 03 12:04:06 Otto ? May 03 12:04:28 event bus? these a two completely foreign concepts to me :p May 03 12:04:49 http://square.github.io/otto/ May 03 12:05:06 It's a really simple concept May 03 12:05:32 karlo, could the activity create an interface which the fragment the subscribes ? May 03 12:05:59 lite_: just call a method to set the data directly May 03 12:06:03 not sure what you mean May 03 12:06:11 tag the fragment when you create it May 03 12:06:27 and call "someMethod(myData)" May 03 12:07:05 StingRay_, you cant tag the fragment when you create it iirc. you tag it when you oerform a transaction May 03 12:07:20 erm May 03 12:07:39 well if you create it you have an instance of it May 03 12:07:48 so just call some method on that fragment May 03 12:07:53 pass your data to it May 03 12:09:05 fuck May 03 12:09:06 youre right May 03 12:09:09 brb May 03 12:09:19 i never saved the reference for the fragment May 03 12:11:25 xorgate: it's pretty big :/ it's almost all dynamic layout May 03 12:12:27 belgianguy you are aware the listitems are getting recycled by default yes May 03 12:15:39 xorgate: yeah, I bet that's the reason why I get this behaviour May 03 12:15:59 belgianguy youtube: world of listview, then try again May 03 12:16:03 maybe I need to store the 'Enabled'/'Visibility' in my ViewHolder again May 03 12:16:11 s/again/too May 03 12:16:39 hello world May 03 12:17:28 I try to use voice RecognizerIntent, but like in this - http://stackoverflow.com/questions/9623079/why-does-the-flag-specified-in-queryintentactivities-method-is-set-to-zero - theme I always recieve empty list May 03 12:17:35 even on real device May 03 12:17:48 why is it? What may I forget? May 03 12:18:05 Does services replaces making threads? May 03 12:18:26 or, sorry. this topic - http://stackoverflow.com/questions/4734030/voice-to-text-on-android-in-offline-mode May 03 12:18:26 crised: no May 03 12:18:43 crised: unless you mean IntentService that creates a worker thread for you May 03 12:19:11 appel1: confused... What is the difference of creating a service or a thread? May 03 12:19:36 appel1: also, what about asyncClass is this a helper class, of making a thread? I mean is this an easy way to create a thread? May 03 12:20:24 crised: a thread is a thread, a service is a component that lets an app tell the system that it is doing something important to the user even if it doesn't have an activity in the foreground. May 03 12:21:01 appel1: so a service is indeed a thread? May 03 12:21:05 crised: no May 03 12:21:40 appel1: it has to run on something.... May 03 12:21:42 A Service is an Android component, a thread is a computer science thing. May 03 12:22:02 The same threads that exist in almost every operating system May 03 12:22:05 crised: a service executes on the main thread, the same thread as activities May 03 12:22:12 appel1: Does a service run on a different thread? May 03 12:22:33 appel1: What? really, so it blocks the UI if it runs on the same thread as the UI May 03 12:22:34 crised: no, your app has one main thread May 03 12:22:51 crised: yes, because you're not supposed to do heavy stuff on the main thread May 03 12:23:03 crised: you are supposed to use worker threads for that May 03 12:23:15 appel1: so a service should be running in a worker thread, not on the UI? May 03 12:23:21 crised: AsyncTask, IntentService and so on are there to help you do that May 03 12:23:43 crised: no, a service should offload heavy computations to a worker thread May 03 12:23:49 crised: same as your activities do May 03 12:24:14 appel1: so a service should be making threads to run processing/networking stuff? May 03 12:24:37 crised: most likely yes May 03 12:25:18 xorgate: think I fixed it, now I reset it's visibility to true in getView May 03 12:25:31 and if it shouldn't be displayed, it'll be set to false further down May 03 12:25:55 crised: this is all explained at http://developer.android.com/guide/components/services.html and related docs May 03 12:26:34 appel1: I'll research more and come back to you May 03 12:26:35 thx May 03 12:29:11 appel1: according to java passion, a service is a background process, is this accurate? May 03 12:30:26 crised: well, a background process can have running services May 03 12:30:47 appel1: let's get this straight, are you talking about a Linux Process? May 03 12:30:58 means 1 Linux process - > n Threads May 03 12:31:05 crised: a "started" service will have its own thread May 03 12:31:09 1 app -> 1 process May 03 12:31:15 p_l|omoikane: there it goes May 03 12:31:15 p_l|omoikane: eh, no May 03 12:31:25 lol, yes or no? May 03 12:31:27 it can be in separate process depending on manifest May 03 12:31:48 appel1: it's bound/intent services that start in calling thread, iirc May 03 12:31:52 crised: I don't know of any other process in this context May 03 12:32:03 p_l|omoikane: let's suppose it's a local service, that runs in the same proces May 03 12:32:23 p_l|omoikane: no, all services "execute" on the main thread of its process May 03 12:32:54 appel1: Does that mean, that it triggers threads? May 03 12:33:17 for example to hear music in the background? May 03 12:33:21 jesus this conversation is all over the place :) May 03 12:33:38 crised: I'm not sure I understand what you mean with "triggers threads" May 03 12:33:56 appel1: a started service has its own thread. That's how for example you can put music in background separate from your activity. May 03 12:33:56 appel1: means that the service will create the threads needed May 03 12:34:39 p_l|omoikane: crised: http://developer.android.com/reference/android/app/Service.html May 03 12:34:42 Note that services, like other application objects, run in the main thread of their hosting process. This means that, if your service is going to do any CPU intensive (such as MP3 playback) or blocking (such as networking) operations, it should spawn its own thread in which to do that work. May 03 12:35:30 the exception is like appel1 said, and intentService that has 1 method for a worker thread May 03 12:35:51 crised: in your implementation you can create worker threads, is that what you mean? May 03 12:36:39 BlackIce_: it seems I have too ingrained into myself the approach to spawn a worker thread, then :) May 03 12:36:53 and forgot stuff May 03 12:38:21 what I wonder is... does google glass have nfc? May 03 12:38:22 BlackIce_: "spawn it's own thread" is this made automatically or it should be done programatically? May 03 12:38:42 crised: should be done programetically May 03 12:38:52 crised: just read the docs May 03 12:38:53 it actually says "should spawn" May 03 12:39:00 if you use an IntentService it's done for you, if you're not using an IntentService you'll need to throw up your own May 03 12:39:05 you have to click your heels 3 times first May 03 12:40:23 ok guys thx, StingRay_ yes on it... but I like to understand it really well May 03 12:41:09 then read the docs (also the IntentService ones) and just try some stuff May 03 12:41:11 crised: well read 1st then ask, cause you created a conversation in here with all kinds of miss info, I dont even understand service/threads now ;) thanks May 03 12:41:18 How do I work around pointer id's changing place when one is no longer active? http://pastebin.com/chjt8cbz May 03 12:41:40 StingRay_: :) May 03 12:42:45 crised: I bet you were kicked out of church May 03 12:42:55 hi May 03 12:44:26 shmooz: not yet :) May 03 12:44:49 I am working on a code to turn on and off flash light and it seems that when the device has autofocus does not work properly only on devices that have camera without autofocus can someone tell me something about it? May 03 13:09:35 Hey there! May 03 13:10:07 Any idea at what point it becomes a good idea to use separate shared preferences in my app instead of one? May 03 13:10:34 mp3 file should be in res/raw? May 03 13:11:00 At the moment I have a lot of separate shared preferences here and there, lots of them contain only about 5 key/values. Is this good/bad/doesn't matter? May 03 13:13:52 hi, i have a question: is it possible to film a room and capture it in 3D or somthing like that? (Augmented Reality question) May 03 13:15:34 UnbertKant: as long as it's not cumbersome for you to keep track of them, I don't see any problem with it. For example, if you have logout feature you might want to clean them out, which would require you to know all the namespaces you use May 03 13:16:01 FrancescoV: yes, it's possible May 03 13:17:02 is it possible to capture a room, and for example if i'm outside this room, i would like to add a 3D object inside my room that i've captured? May 03 13:17:42 FrancescoV: yes, it's possible May 03 13:18:08 do you know a book or a website that can help me with this? May 03 13:19:26 http://lmgtfy.com/?q=introduction+to+computer+vision May 03 13:25:41 is it best to lower the apps resolution from say 1280x720 for the nexus 7, to something lower for phones? if so, whats the best all-around resolution for phones? the app is supposed to scale depending on the devices DPI, but that only affects buttons etc. im using Apache FLEX and Adobe AIR in Adobe Flash Builder (eclipse) May 03 13:28:27 How do I work around pointer id's changing place when one is no longer active? http://pastebin.com/chjt8cbz May 03 13:37:22 b0nghitter: you should avoid hardcoding the resolution , instead, detect the device width/height and scale accordingly May 03 13:38:02 ok, thanks May 03 13:41:50 multi touch is haaard :( May 03 13:44:45 why do you have just one finger? ;) May 03 13:44:45 Leeds: i found a lot about AR when you're in Room A and add object B, but i want to develop something where the user is in Room C and would like to add object B in Room A, how is that possible? May 03 13:46:03 morning May 03 13:46:06 shower time May 03 13:46:12 yeah you smell like shit! May 03 13:48:10 the bad news is, showering won't help May 03 13:50:23 FrancescoV, making a chat? May 03 13:50:56 Anyone know a well tested way to ellipsize multiline textview. May 03 13:52:03 Manavan: my answer to that May 03 13:52:08 add a scrollview May 03 13:52:10 i keep an Array of Objects as my room list, each object holds a rooms properties May 03 13:52:11 it's better for the user May 03 13:53:26 i.e. roomListArr[roomID].roomName May 03 13:54:02 AR = Augmented Reality May 03 13:54:14 ah May 03 13:54:54 FrancescoV: It would be easier to help if you explained a use case May 03 14:01:33 im trying to run an rtsp stream using videoview... I get an error on debug saying: file /data/data/com.nvidia.NvCPLSvc/files/driverlist.txt: not found May 03 14:01:48 any ideas on how to get rid of this or what file this is? May 03 14:02:40 how is this a problem? May 03 14:03:20 for starters it wont play the stream.... and the debug shows up with this May 03 14:03:29 so im guessing its the missing file causing a problem? May 03 14:04:38 thats one reason May 03 14:04:59 joar: oké, what i would like to bould is an app that can capture your room. If you're in a store, you can add a bed or something inside your room and see the result May 03 14:05:04 another reason might be a very bizzare debug message from a driver that sometimes just happens May 03 14:05:32 monsti: it just shows this message on debug... nothing else.... any ideas to where i shud look? May 03 14:10:11 How do I work around pointer id's changing place when one is no longer active? http://pastebin.com/chjt8cbz May 03 14:12:00 hello... in a SimpleCursorAdapter, how can I use ContactsContract.Contacts.PHOTO_ID (taken from the ContentProvider) to populate an ImageView May 03 14:12:02 The pointer id doesn't change May 03 14:12:04 Just the index May 03 14:12:04 fprophet: why do you call event.getX/y 2 times? May 03 14:12:51 a=x and a=x is a=x May 03 14:12:57 without the "and" ;) May 03 14:12:59 monsti: I didn't mean to leave that in. over looked it :( May 03 14:14:13 the problem im having is when pointer 0 is no longer active, pointer 1 replaces it May 03 14:14:28 or something like that May 03 14:15:00 i think you get multiple touchpoints May 03 14:15:09 and one finger can go up but thre others stay May 03 14:15:16 so you have to decide what you do May 03 14:15:21 maybe cancel all action May 03 14:15:38 maybe play a mp3 sound with a michael jackson song May 03 14:15:42 ... who knows May 03 14:16:08 I don't really understand. I'm really green with Android May 03 14:16:28 you have 5 fingers May 03 14:16:34 you get events for every finger May 03 14:16:37 yes May 03 14:16:41 if you move one finger up May 03 14:16:52 you get the "up" and maybe events for 4 other fingers May 03 14:17:05 so YOU as coder have to decide what you want to do May 03 14:17:13 You get notified of pointers going down via ACTION_DOWN and ACTION_POINTER_DOWN .. Fetch their id then. When another event happens, find the index for each id and do whatever you do when that pointer moves May 03 14:17:34 When a pointer stops touching, you get notified with ACTION_POINTER_UP and ACTION_UP May 03 14:17:45 e.g. pitch/zoom ... with 2 fingers - one fingers goes's up - you can stop any action May 03 14:17:55 alright May 03 14:18:47 As you figured out on your own, the pointer index can change as other pointers leave the screen .. The pointer id stays the same from DOWN to UP May 03 14:19:10 Oooh May 03 14:19:12 That's why there's MotionEvent#findPointerIndex(id) May 03 14:20:09 Alright, I think it's starting to click :) May 03 14:24:24 iirc you'll get ACTION_POINTER_UP when several pointers are down and one leaves, and ACTION_UP when the last pointer leaves May 03 14:24:29 Might have to double check that May 03 14:26:26 * monsti needs some coffe :( May 03 14:26:35 macports decided to show me this message: ---> Building perl5.12 May 03 14:29:17 Just created a service, doing startService(new Intent(this, MusicPlayerService.class)); , by using the app I can tell that is not running in the UI thread, so... Why this service spawned a new Thread? May 03 14:30:18 BlackIce_: May 03 14:30:27 Services run on the ui thread May 03 14:31:33 SimonVT: How can I tell if there is a new thread? May 03 14:31:43 Do you start a new thread? May 03 14:31:48 SimonVT: Is there a wat to Log.v thread info May 03 14:31:51 SimonVT: no May 03 14:32:00 crised: have you read up on IntentService? May 03 14:32:10 Then there's no new thread May 03 14:32:20 monsti: so that error has nothing to do with the fact that it isnt able to display the stream? May 03 14:32:29 Unless you're using IntentService of course, but it's clearly documented that it starts a new thread May 03 14:33:31 BlackIce_: yes, but I'm exercising on this one. Is there is no new thread, Why does the application does not freeze the UI? May 03 14:34:03 I'm trying to share a LruCache between 2 Fragments, which are controlled by a ViewPager May 03 14:34:26 I can't see where I can pass each of the Fragments a parameter (my LruCache) May 03 14:34:31 arcanescu: yes or it's a debug foo of a driver developer May 03 14:34:37 arcanescu: that's no android message May 03 14:34:50 crised: aren't you starting a IntentService? May 03 14:35:11 I'm using a TabsAdapter, works great, but has me stuck atm May 03 14:36:12 BlackIce_: Intent intent1 = new Intent(myContext, MusicPlayerService.class);startService(intent1); May 03 14:37:42 crised: please work out for yourself what the difference between starting a service and starting a intentservice is May 03 14:38:57 what is in /data/dalvik-cache ? can I run "rm /data/dalvik-cache/*" safely ? its 42MB, can I delete it ? May 03 14:39:38 monsti: okay thanks.... May 03 14:40:15 BlackIce_: I still don't understand if I started a service or started an intentservice http://developer.android.com/reference/android/content/ContextWrapper.html#startService(android.content.Intent) May 03 14:40:19 crised: are you actually doing something in your service? May 03 14:40:49 crised: and what does MusicPlayerService inherit from? May 03 14:42:56 appel1: yes, extends Service, an starts MediaPlayer May 03 14:43:20 crised: then it obviously does not inherit from IntentService May 03 14:44:35 crised: read the docs, for the different service types and how to use them May 03 14:45:06 crised: the MediaPlayer class is mostly asynchronous which is why your service doesn't block the main thread May 03 14:45:15 appel1: then the service runs media player on the same UI thread, right? May 03 14:45:42 appel1: ooh, that is the true answer ;) May 03 14:45:48 crised: well, you call methods on the MediaPlayer class on the UI thread, but internally MediaPlayer will start worker threads and do most of its work on them May 03 14:45:53 StingRay_ would yuo mind checking if you can start a puzzle? wondering if my router is busted or sth May 03 14:46:12 appel1: ooh I see May 03 14:46:20 appel1: now I'm starting to learn :) May 03 14:46:47 xorgate: "thats unfortu* May 03 14:46:52 t.t May 03 14:47:00 thanks May 03 14:48:24 * monsti hits his head to the desk May 03 14:59:09 good thing it's Friday May 03 15:01:44 appel1: for future reference, How do I know if a class is blocking or non blocking? May 03 15:01:55 crised: you read the documentation May 03 15:05:15 monsti: i also get a warning from choreographer tag saying application may be doing too much work on its main thread skipping frames May 03 15:05:23 monsti: could this be one of the causes? May 03 15:06:05 anyone ever used the ViewPager icw TabsHost trick? May 03 15:06:33 It works rather nice, but I'd like to share an LruCache between the Fragments (which are in the Tabs) May 03 15:06:54 and apart from my own Singleton (and whatever that does wrt Android lifecycles) May 03 15:07:05 I can't seem to access those fragments May 03 15:07:49 arcanescu: there are lot of reasons why a video on one device works and on an other it doesn't even start playing May 03 15:08:13 monsti: On the same device ... using vlc I can decode and play May 03 15:08:24 monsti: same stream... May 03 15:08:35 vlc isn't the system player May 03 15:08:41 true May 03 15:08:43 and in your code you use the system player May 03 15:08:55 so a car is different from a bike ;) May 03 15:09:04 :)....agered May 03 15:09:08 *agreed May 03 15:09:17 maybe I need to tinker around with ffmpeg or similar May 03 15:09:50 or maybe get the videos in a format any android device can read ;) May 03 15:09:54 one doesn't simply tinker around with ffmpeg IMHO May 03 15:10:07 why not use the WebM? May 03 15:10:09 belgianguy: okay gstreamer much easier May 03 15:10:26 monsti: .... my stream is coming from an rtsp server on a raspberrypi May 03 15:11:15 now im not sure if the hw enc on the PI can provide the stream which android can understand May 03 15:12:21 I don't think PI has hw acc for WebM May 03 15:13:00 belgianguy: it doesnt May 03 15:13:05 only h264 atm May 03 15:13:17 its got hw decoders for mpeg2/4 and 64 May 03 15:13:25 enc is only h264 May 03 15:13:29 http://developer.android.com/guide/appendix/media-formats.html May 03 15:14:29 it does support h264 May 03 15:14:33 according to that chard on baseline May 03 15:14:51 codecs and players are very fickle May 03 15:16:54 strange bit is that it doesnt even complain that "cant play video" it jsut doesnt display anything May 03 15:17:41 I have little experience with Android and codecs May 03 15:24:17 but I had to do things with ffmpeg at Uni, so I've come to the conclusion that ffmpeg and I will never be friends May 03 15:25:14 paint.breakText doesnt respect words (white spaces). It will break a word like "programmmming". May 03 15:25:17 any idea May 03 15:29:22 are Singleton patterns usable wrt the Android lifecycle? May 03 15:29:43 Yes May 03 15:29:46 as I can't seem to find any other way to pass a reference to a LruCache to my Fragments May 03 15:30:18 aaaah May 03 15:30:24 I want the old google play back! May 03 15:30:30 also I want it back for my users too May 03 15:30:37 I want to be able to rate apps again May 03 15:30:40 the new google play interface is awful May 03 15:30:57 and it made my apps (that already suffered from poor discoverability) even harder to find May 03 15:31:24 also I keep clicking the wrong stuff on it, with all the smaller buttons May 03 15:31:28 what google was drinking? May 03 15:31:33 (or snorting) May 03 15:33:23 How can I make the screen go off immediately after I release my wake lock? May 03 15:42:29 arcanescu: Is the pi shipping with DSP accelerated WebM _decode_ yet? May 03 15:49:05 Hello. I have a MainActivity with a RowAdapter in its own class. When i´m adding a new push notification and open the MainActivity again it shows double amount of time when it got created, but not in the DB. Somebody know what might be wrong? May 03 15:56:02 Gumboot: nope May 03 15:56:55 Gumboot: you have Vp8 mpeg2/4 mjpeg and h264 dec May 03 15:59:50 thmzz: you have some static member? May 03 16:01:28 monsti: static member where? May 03 16:02:12 thmzz: kn May 03 16:02:15 in your code? May 03 16:02:30 "something" is "keeping" "something" May 03 16:04:57 monsti: only static is infact this May 03 16:04:58 https://gist.github.com/thomasstr/5510396 May 03 16:05:00 arcanescu: vp8 but no webm? May 03 16:05:36 thmzz: ok find that other "something" May 03 16:06:14 monsti: did you see the gist? May 03 16:06:57 Gumboot:nope May 03 16:07:12 thmzz: no May 03 16:07:15 Now why would that be, I wonder. May 03 16:07:21 thmzz: it's a simple bug May 03 16:07:28 Well, at least the decoder is out. May 03 16:07:39 monsti: https://gist.github.com/thomasstr/5510396 May 03 16:07:41 for all the future it has.. May 03 16:07:50 Gumboot: this is afaik. I dont think that it has a hw webm in the first place May 03 16:08:06 No, no hardware vp8 or webm. May 03 16:08:29 yup May 03 16:09:10 webm wouldn't have hardware support anyway. It's a rebranding/profile of the combination of mkv, vp8, and vorbis. May 03 16:09:44 thmzz: you might consider this http://ocpsoft.org/prettytime/ May 03 16:09:48 Most likely the ARM would have to deal with mkv and vorbis while the DSP does vp8. May 03 16:10:40 true May 03 16:21:37 Hey, how can I define a class property with an unknown type? May 03 16:21:56 come again? May 03 16:25:39 Object May 03 16:50:06 https://lh4.googleusercontent.com/-Og6Iwj_C_wc/UYPqh07ta9I/AAAAAAAAEh0/IkegZA7EKZc/w373-h497/13+-+1 May 03 16:50:06 yay May 03 17:32:55 Does anyone know a way to define an equilateral triangle in XML? May 03 17:35:30 erm, how would you think of doing that ? May 03 17:36:03 Well if I want a rectangle I just tell Shapedrawable I want a rectangle May 03 17:36:16 I was hopin there was something similar May 03 17:36:32 well look at the class docs May 03 17:36:34 maybe I could create two rectangles side by side and make them half transparent May 03 17:37:19 how would that make a triangle ? May 03 17:38:11 StingRay_: [/][\] May 03 17:38:18 evancharlton: thanks May 03 17:38:39 nice May 03 17:38:41 I was going to try to find an image of a naval flag which illustrated my point, but your way is better May 03 17:39:08 but neways, not sure it's possible May 03 17:39:18 well not in xml neways May 03 17:39:40 it's a question of what you can do with gradient, I suppose May 03 17:44:50 Ankhwatcher: whats it for ? May 03 17:45:11 I need arrows to show when things are going up and down May 03 17:45:15 there maybe an easier quicker way to visually do what you want May 03 17:45:17 green for up red for down May 03 17:46:14 yeah, besides static bitmaps, thats a bit……funky to do so that it's res augnostic May 03 17:46:29 agnostic May 03 17:46:31 * May 03 18:30:09 has anyone successfully gotten EMMA to work on android May 03 18:30:11 for code coverage? May 03 18:33:14 why can't I pull the statusbar down on ics tablets in the emulator? May 03 18:33:20 I can pull down the notification bar, but not the status bar May 03 18:34:09 for that matter, is there a keystroke to bring the status bar down? May 03 18:35:51 I guess I can use the settings shortcut instead May 03 18:58:19 oh bless me lord for I have sinned.. it's been a lifetime since I last confessed May 03 18:58:49 Amen May 03 18:58:53 but you did confessed previously ? May 03 18:59:10 the more the merrier :-P May 03 18:59:22 but if it was "lifetime" ago, then you shouldn't be alive back then, how so ? May 03 19:01:10 http://www.youtube.com/watch?v=98O1bJou-y4#t=1m45s May 03 19:22:54 : hey iam trying to print a message from GCM but i dont know how to get the json string. i get a message recieved on the android phone but i only get a null printed out. can someone pls help? May 03 19:46:44 why do my x86 emulator images bootloop? May 03 19:46:48 I can't get gb running reliably May 03 19:47:04 bootloop ? May 03 19:49:24 Hey, I have a scrollview that seems to have about 20dp margin at the bottom of it ? May 03 19:49:34 it's the root element of the activity and doesn't have a margin set May 03 19:56:55 is it set to match_parent ? May 03 19:57:02 and are all parents set to that too ? May 03 20:00:38 https://code.google.com/p/android/issues/detail?id=39723#c22 May 03 20:00:48 come on, fixed internally 11/28--where is the new system image already?!? May 03 20:01:00 it just needs to be published to the sdk manager May 03 20:04:18 hey guys. Don't suppose there is any handy way to get the 2-character code that represents the country May 03 20:04:22 that the user is in May 03 20:05:55 ProgramMax: check the Locale class May 03 20:07:54 StingRay_, http://stackoverflow.com/questions/11660937/android-scrollview-refuses-to-scroll-to-bottom May 03 20:08:03 removing the margin from the first child fixed it May 03 20:09:17 yeah was gonna say May 03 20:09:21 AND May 03 20:09:31 I dont see why your using a relative layout May 03 20:09:38 seems heavy for what your doing May 03 20:09:45 lin layout would work better May 03 20:14:20 Korvin: hey, thats because its a RelativeLayout with a margin, add android:paddingBottom="32dp" to your RelativeLayout May 03 20:16:11 StingRay_: LinearLayout is slower in most cases than a RelativeLayout especially when you nest them May 03 20:16:35 Napalm: not in that case May 03 20:16:55 how would you know if he's inflating the view and attaching it inside a linearlayout May 03 20:16:56 :P May 03 20:17:22 but then it'd be a relativelayout inside of a linearlayout May 03 20:17:22 hey y'all May 03 20:17:33 anybody here do any bitmap-heavy android work? May 03 20:17:40 perhaps May 03 20:17:45 I'm trying to figure out the best way to get rid of these OOMs May 03 20:17:46 mheld: ask your question May 03 20:18:00 should be using instead to avoid unnecessary viewhierarchy depth May 03 20:18:32 hey pfn May 03 20:18:39 sup man May 03 20:18:46 I've got an LruCache that, in theory, should be evicting the bitmaps (and even recycling them?) once they've been nicely dereferenced but I just can't seem to catch a break May 03 20:18:59 was going to finish my contract today, they decided to extend another month.. meh why not eh? May 03 20:19:13 mheld, take a heapdump, use jhat or the eclipse MAT and look at what's holding on references May 03 20:19:27 Napalm, oh really? if it was ending, you shoulda taken up that recruiter on their offer May 03 20:19:34 Napalm, relo to the US for a couple years then go back, that woulda been fun May 03 20:19:44 pfn: oh interesting -- I hadn't heard of jhat. I'll check it out May 03 20:19:56 Hey, does anyone know what happens, when the framework kills a service process? I have a process that's killed after a while but does not restart. Instead TaskManager shows something like "Restart in progess..." and nothing else happens. May 03 20:20:01 ugh, I need a new lumbar support for my aeron May 03 20:20:09 How should I use android:ems on EditText ? May 03 20:20:22 Napalm, I just got my keyboard tray installed today, finally May 03 20:20:36 pfn: i need a new aeron, my arms have finally had it May 03 20:20:44 hehe May 03 20:20:47 took you long enough May 03 20:20:48 :D May 03 20:21:08 I like the freedom chairs May 03 20:21:46 https://lh5.googleusercontent.com/-Og6Iwj_C_wc/UYPqh07ta9I/AAAAAAAAEh0/IkegZA7EKZc/w401-h535/13+-+1 May 03 20:21:51 I've had my aeron since like 2000 May 03 20:22:19 that desk looks sooo neat May 03 20:22:33 Yeah, I've had my freedom chair at home since probably 2005-2006 or so May 03 20:22:51 the head/neck rest in particular on those things is *great* May 03 20:23:26 pfn: bit low isnt it? May 03 20:23:46 i see your still using the clingo stand May 03 20:23:47 Napalm, not really, it just about rests on my lap May 03 20:23:50 which is the right height May 03 20:23:59 Napalm, yeah, after they replaced the stickypad, it's been working great May 03 20:24:06 a little too great, because it keeps pulling my battery cover off May 03 20:24:09 StingRay_, ikea desk May 03 20:24:21 and my desk isn't neat, it's loaded full of junk May 03 20:24:25 pfn: you should see my office May 03 20:24:28 pfn: twist your phone slowey as your take it off and it resolves that one May 03 20:24:29 I just cleared crap off that area for the picture May 03 20:24:37 bug fixed +1 point May 03 20:25:03 I have 4 workstations, 4 monitors, mbp, 5 tablets, video breakoutbox, ps3 etc May 03 20:25:05 like I had my tax paperwork covering up the whole area to the right until just now where I threw it in my files May 03 20:25:08 all adds up to be a mess May 03 20:25:19 I used an Aeron for ~10 years but just recently started feeling uncomfortable in it. Probably because I'm a fatass. May 03 20:25:31 most of those years it was 10-14 hours a day. May 03 20:25:41 I want 2 monitors, 1 monitor isn't enough May 03 20:26:11 KungFuHamster: sell it and get the next size up :) one more bug resolved .. im on a roll.. oh yea! May 03 20:26:12 :D May 03 20:26:13 I can't be bothered to get a new monitor arm, though May 03 20:26:20 heh May 03 20:26:36 pfn: i have 3 and its just right May 03 20:26:43 pfn: not including my projector May 03 20:26:49 Napalm, I'm already in a C May 03 20:26:50 all in your office? May 03 20:27:07 yes, my home office May 03 20:27:13 why in the world....suddenly I cannot set breakpoitns May 03 20:27:15 can't figure out why May 03 20:27:25 ProgramMax: save the file you are working on first May 03 20:27:32 did that May 03 20:27:47 oh well, eclipse bug finds ++ May 03 20:28:02 when I close and open eclipse the problem remains May 03 20:28:13 oh dear May 03 20:28:20 when I choose "Toggle Line Breakpoint" I get a null pointer exception May 03 20:28:31 clear up your eclipse plugins May 03 20:28:38 one is probably miss behaving May 03 20:28:46 how do I do that? May 03 20:28:47 using an action view in the action bar. i started off with a searchwidget but where was no way to simply intercept thesearch button event, tried a textedit widget but then when the user presses enter it just goes to the next line and there's no reliable way to get that key event... i just want to be able to get some text input from the user in action bar, any suggestions? May 03 20:28:49 What layout will be shown if I occur extremely small screen ? May 03 20:29:02 And using dp values. May 03 20:29:12 In relative layout. May 03 20:29:17 ProgramMax: help > about > installation details May 03 20:29:42 Napalm, projector in the home office is kinda overkill... May 03 20:30:07 unless it's like at least 20' in one direction May 03 20:30:13 pfn: its for watching movies, not work May 03 20:30:37 man, there are a ton May 03 20:30:39 its 13ft wide on the other side of the room May 03 20:30:44 they are all from the android sdk though May 03 20:31:26 ProgramMax: start a new workspace, import your project and see if that fixes it.. if so, your workspace has become corrupt May 03 20:31:33 kk May 03 20:31:44 I feel like I've had a corrupt workspace before when using eclipse May 03 20:31:49 so that sounds very plausible May 03 20:32:23 * StingRay_ clicks "backup" on his timeMachine….ahhhhh thats better May 03 20:32:25 Napalm, yeah, not a great setup, but I guess that works May 03 20:32:39 a 13' wide screen isn't very optimal if you're only sitting like 6' away May 03 20:32:46 all this talk of corruption ….ugh May 03 20:33:58 pfn: i have a big home office :D May 03 20:34:26 yep May 03 20:34:27 that was it May 03 20:35:52 once the new house gets built, the office is going to be like 22x12 May 03 20:35:54 ProgramMax: go into your old workspace dir May 03 20:36:25 and raise hell? Got ya May 03 20:36:39 ProgramMax: then go to .metadata/org.eclipse.core.resources/.projects// May 03 20:36:44 ProgramMax: delete .markers files May 03 20:36:52 Hey, I have a service that shows as "0 Processes, 1 Service , 0.00B, RestartING"... Any idea how to actually get it restartED? May 03 20:37:10 Before it get's killed it runs absolutely smoothly... May 03 20:37:17 ProgramMax: then close your projects, eclipse and then reopen it all May 03 20:37:41 there is no / May 03 20:37:47 your project May 03 20:37:47 And I don't really want to force it to Foreground, just want to have it come back after low memory conditions have ended. May 03 20:37:52 I know May 03 20:37:56 there is only like org.eclipse.* May 03 20:38:07 and a com.android.ide.eclipse.adt May 03 20:38:10 that's it May 03 20:38:11 inside the .projects dir? May 03 20:38:12 lol May 03 20:38:19 oh sorry May 03 20:38:23 I was in .plugins May 03 20:38:25 there is no .projects May 03 20:38:51 Workspace\.metadata\.plugins\org.eclipse.core.resources\.projects\project\.markers May 03 20:38:58 wait wait .metadata/.plugins/org.eclipse blah blah May 03 20:39:03 yeah May 03 20:39:09 we were missing the .plugins part of that path :) May 03 20:39:13 oopsy May 03 20:39:17 sorry about that May 03 20:39:53 deleted the .markers May 03 20:40:10 now open your workspace again May 03 20:40:14 it worked! May 03 20:40:15 yayyy May 03 20:40:17 :P May 03 20:40:18 thank you so much, Napalm May 03 20:40:28 +1 Napalm point May 03 20:41:09 when will they add FragmentTransformations May 03 20:41:20 that would be an awesome feature May 03 20:41:31 hmm... time to checkout the support lib and add the feature May 03 20:41:35 new weekend project May 03 20:42:58 So whats up with this xamarin thing. Usable or crummy? May 03 20:45:54 anyone know how to get text input from an action view in action bar? something like the search view but without a search provider and all that extra, just want to give the user a way to submit it and then grab the text May 03 20:48:13 speakingcode-wor: whats the problem? just use a KeyListener May 03 20:48:43 my understanding is key listener cannot reliable capture softkeys, particularly the enter May 03 20:48:58 and being able to have a button within the view would be nice, but not necessary May 03 20:51:58 is there no way to get my stat distribution by screen size from the Develop Console? May 03 20:58:27 speakingcode-wor: did you want auto complete? May 03 21:00:53 Hmm. May 03 21:01:46 EditText editText = (EditText) findViewById(R.id.edit_message); May 03 21:02:20 Means that findViewById return View Object, But I have converted it to EditText Object. May 03 21:02:38 bluesm: thats casting not converting May 03 21:02:59 bluesm: think of it as accessing a layer of the interface rather than the object May 03 21:03:59 its almost like google doesn't want me to easily know if my users are phone / tablet :| May 03 21:04:24 g00s: whats up? May 03 21:04:31 Napalm: I get new interface for example "getText" Right ? May 03 21:04:53 bluesm: erm, no? May 03 21:04:55 Napalm: in the dev console, is there any way to get a breakdown of users by screen size May 03 21:04:56 Napalm: I get also methods of sub class -> EditText... May 03 21:05:01 (i don't see anything) May 03 21:05:04 ah May 03 21:05:09 cookies again? May 03 21:06:00 speakingcode-wor: SearchView uses a KeyListener May 03 21:07:26 Napalm: I'm wrong ? May 03 21:07:45 bluesm: i have no idea what you mean May 03 21:08:42 Napalm: That thanks to casting I got all the View's methods and EditText's Methods May 03 21:09:05 yes May 03 21:10:52 Napalm: Ok. But I only access new method, but the appropriate data (related to EditText) was already in returned object... May 03 21:11:14 bluesm: if your classes inheritance path is something like CustomView > EditText > TextView > View and a method like findViewById() returns a View object that was constructed as a CustomView then the returned View also contains all the fields and interfaces to the methods of its sub classes May 03 21:11:23 Napalm: I only got the ability to access that data. For example by getText method. May 03 21:12:06 Napalm: don't want autocompelte May 03 21:12:19 speakingcode-wor: so just add a keylistener May 03 21:12:38 um, has anyone dealt with ViewPager + context menus? May 03 21:12:48 I'm getting callbacks to the wrong fragment May 03 21:12:49 Napalm: k i'll give that a try, what key am i looking for? May 03 21:13:07 i.e. usually keyboard shows a magnifying glass May 03 21:13:13 speakingcode-wor: KEYCODE_ENTER May 03 21:13:28 ah ok, thanks May 03 21:13:29 speakingcode-wor: and KEYCODE_SEARCH ten May 03 21:13:32 then May 03 21:13:55 Mavrik: how are you trying to bring up the context menu May 03 21:14:08 basically I have 2 fragments with list views May 03 21:14:13 inside a viewpager May 03 21:14:27 and in onResume() of each fragment I say "regsiterForContextMenu(ListView)" May 03 21:14:43 and the menu inflate callback is called for the correct fragment and menu displays May 03 21:15:06 however, context menu item selected callback is always called in the first fragment only May 03 21:18:41 registerForContextMenu on a fragment calls down to the activities onCreateContextMenu May 03 21:18:59 Mavrik: what do you do in that method? May 03 21:19:24 which? onCreateContextMenu? May 03 21:19:28 yes May 03 21:19:41 only "menu.setHeaderTitle" and "menu.add(…)" May 03 21:20:00 and as I said, (since I set different header titles) I get a correct menu May 03 21:20:24 one moment May 03 21:22:44 hmm, maybe the important detail would be that I'm using support lib as well :) May 03 21:37:48 Mavrik: so whats up again May 03 21:38:18 What is the name of the property that decides the color of a button when it is pressed? May 03 21:38:44 um May 03 21:38:53 leor, that depends on background drawable state May 03 21:39:38 Mavrik, what are some background drawable states? May 03 21:41:01 leor, http://developer.android.com/guide/topics/resources/drawable-resource.html#StateList May 03 21:41:13 Mavrik: context menus right? May 03 21:41:23 Napalm, hmm? I solved the issue :) May 03 21:41:42 or more specifically: worked around it May 03 21:44:17 Mavrik: https://gist.github.com/slightfoot/5514457 < works fine May 03 21:44:47 Napalm, yep, but that's nowhere close my use case :) May 03 21:44:57 sorry mavrik, just one last question. Do I really need to do this entire thing just to change the pressed color? May 03 21:45:05 leor, yes. May 03 21:45:09 lol May 03 21:45:25 leor: its not that big of a deal May 03 21:45:30 leor, or you can also subclass the button and apply color filters, change background color or whatnot on press :) May 03 21:45:31 Mavrik: whats your use case then May 03 21:45:51 Thanks, I will figure it out... May 03 21:46:38 it's not that hard, you define a selector drawable xml, set backgrounds as you want for each state and set that xml drawable as background May 03 21:46:54 Napalm, as I described, Activity - ViewPager - 2x ListFragment May 03 21:47:10 Napalm, context menus are created and handled by fragments May 03 21:47:15 not the main activity. May 03 21:48:54 ive updated the gist, again, works fine May 03 21:50:03 Napalm, you didn't really read what I wrote did you? :P May 03 21:50:16 erm, i did, explain May 03 21:50:45 however, context menu item selected callback is always called in the first fragment only May 03 21:50:47 oh May 03 21:50:49 :| May 03 21:52:24 basically I worked it around by intercepting onContextItemSelected in top activity then dispatching to fragments according to ViewPager.getCurrentPage(=) May 03 22:03:07 SearchView searchView = (SearchView) menu.findItem(R.id.menu_coverage_address).getActionView(); May 03 22:03:15 err sorry May 03 22:03:43 why would that return null if i have an item in the corresponding menu xml with id menu_coverage_address ? May 03 22:08:53 Napalm: OnKeyListener for searchview appears to not do anything May 03 22:10:00 Mavrik: it still works fine for me May 03 22:10:30 Mavrik: https://gist.github.com/slightfoot/5514457 < updated May 03 22:10:55 Mavrik: were you missing getUserVisibleHint() May 03 22:11:50 " SearchView searchView = (SearchView) menu.findItem(R.id.menu_coverage_address).getActionView(); May 03 22:12:03 ugh, damnit May 03 22:12:07 ? May 03 22:12:26 Napalm, hmm, shouldnt that be set by the viewpager? May 03 22:12:57 " SearchView searchView = (SearchView) menu.findItem(R.id.menu_coverage_address).getActionView(); May 03 22:13:04 This is only useful for hardware keyboards; a software input method has no obligation to trigger this listener May 03 22:13:15 sheesh can't copy n paste today. sorry bout that May 03 22:13:18 yes it does May 03 22:13:25 add the ime actions May 03 22:13:32 thats taken directly from the documentation May 03 22:13:43 no your missing my point May 03 22:13:50 clearly May 03 22:14:00 you react to the ime action which it does have an obligation to trigger May 03 22:14:12 ok, how? May 03 22:14:14 then you call the same method your keylistener would call May 03 22:14:32 speakingcode-wor: why dont you just use a normal searchview May 03 22:14:39 i'm using searchview May 03 22:14:51 but searchview doesn't trigger an event of any sort when it's submitted May 03 22:15:16 speakingcode-wor: http://developer.android.com/reference/android/widget/SearchView.html#attr_android:imeOptions May 03 22:16:02 speakingcode-wor: http://developer.android.com/reference/android/widget/SearchView.html#setOnSearchClickListener%28android.view.View.OnClickListener%29 May 03 22:16:56 i see no such method May 03 22:17:04 o yes i do May 03 22:17:16 no no May 03 22:17:19 i looked at that already May 03 22:17:30 this only triggers when it's jsut the search icon and the text field is invisible May 03 22:17:43 which is what happens when you press enter May 03 22:17:48 no May 03 22:18:01 it's whath appens when you the user hits the icon and the action view expands May 03 22:18:20 i've tested it out, it's not triggered when the text view is visible May 03 22:19:12 ok May 03 22:19:12 What could be a problem ? May 03 22:19:15 https://gist.github.com/bluesm/97d0fadf4e35008c93a5 May 03 22:19:42 I ask because I couldn't reproduce exception. May 03 22:20:00 I'm stuck. Because I have error but in specific cases... May 03 22:20:32 bluesm: java.lang.NumberFormatException: <----- May 03 22:20:41 can you not read man ??? May 03 22:20:43 :) May 03 22:20:53 speakingcode-wor: ok so i just tried this.. extend searchview and override onKeyDown when keyCode == KEYCODE_ENTER do your code May 03 22:22:12 aye aye aye. i suppose that will work, tho i'm thoroughly annoyed one cannot simply get a text input from the user in the action bar May 03 22:24:04 othger issue is if i use android.widget.SearchView it's fine, but if i use com.sherlockactionbar.widget.SearchView, menu.findItem(...).getActionView() always returns null May 03 22:24:11 StingRay_: why do you format numbers? May 03 22:24:23 StingRay_: it's like putting girls in bras :( May 03 22:24:31 i do what ? May 03 22:24:38 lol :=) May 03 22:24:47 oh I dont, that was some1's exception May 03 22:24:54 yes ;) May 03 22:24:59 sry i drunk to much water May 03 22:25:01 and they were too lazy to read what it was May 03 22:25:03 :) May 03 22:26:36 number format exceptions happen. once I had one because I used "0.2f" for a float, which works in C but not in java (where you need to write "1.2f" for the same effect) May 03 22:28:41 i like best the C# templates for formating numbers May 03 22:28:51 they finally got rid of the C origins May 03 22:29:08 Napalm: is there a way to generlize my subclass such that i can programatically set what happens in its key event? so i.e. add an event listener to it from another class so that its generalized May 03 22:29:14 it is horrifying how many of the C origins remain, unaltered, in java May 03 22:29:35 yes! May 03 22:29:55 i know i could simply write an interface and add a member for an implementation of said interface and then have a setListener method, just wondering if there's stuff already implemented i could leverage here May 03 22:30:02 when will we see properties? May 03 22:30:21 speakingcode-wor: its not that much code, why are you not just doing exactly what you said... that is how you do it May 03 22:30:52 just didn't want to duplicate if there was already some stuff provided to leverage May 03 22:31:09 don't like to reinvent the wheel, even if it's a simple wheel ;-p May 03 22:31:26 curious java thing I may have just learned May 03 22:31:46 mTimer.scheduleAtFixedRate(new TimerTask() { @Override public void run() { ..... May 03 22:31:58 you can create an object, then at run-time override a method? May 03 22:32:02 am I reading that right? May 03 22:32:37 speakingcode-wor: well you wont get anywhere in programming with that attitude May 03 22:32:52 ProgramMax: or an interface with inline implementation May 03 22:33:00 that's almost like lamda expressions in C# May 03 22:33:10 monsti, doesn't C# use the same formating for numbers as Java's DecimalFormat? May 03 22:33:22 yeah. Lambdas I am familiar with May 03 22:33:28 but this is like a lambda class May 03 22:33:36 ProgramMax: that is an anonymous inline implementation of an interface May 03 22:33:39 Mavrik: afaik it's similar but not equal May 03 22:33:53 so can I add a member variable to it, by any chance? May 03 22:33:56 it is implementing the interface (i.e. a class) 'anonymously' and constructing an object of that class, in one line May 03 22:34:03 ProgramMax: yes, it's a class May 03 22:34:05 Mavrik: i had to fix a lot of C#/Java constants for number formating May 03 22:34:07 neato neato May 03 22:34:12 you can add methods, members, whatever May 03 22:34:16 makes sense, anonymous class defined just now May 03 22:34:32 ah May 03 22:34:40 just remember that the only object instance of it will be in the scope of the method call, i.e. you can only use it right htere where its implemented May 03 22:35:09 so refactor into an inner class or a 'regular' class if you need to reuse it May 03 22:35:37 ProgramMax: beware doing that, anonymous inner classes maintain a hidden reference to their outer parent object May 03 22:36:01 ^^^ May 03 22:36:17 don't want to memory leak May 03 22:36:35 hidden references are a pattern of the dark side May 03 22:36:48 well, I need this member to only exist in the context of this inner class May 03 22:36:54 and once the inner class dies, so should this May 03 22:37:46 Napalm: i dunno what i did wrong here but using my subclass, the search field won't expand :-\ May 03 22:38:05 didn't even override onKeyDown yet May 03 22:38:25 pastebin ur experiment? May 03 22:44:03 seriously about to give up on this and just have an action button trigger an input dialog May 03 22:44:16 speakingcode-wor: i just did it without any issues May 03 22:44:23 pastebin? May 03 22:44:32 and you're putting this in an action bar? May 03 22:44:44 speakingcode-wor: https://gist.github.com/slightfoot/5514856 May 03 22:45:00 First time android SDK user here. I downloaded the all in one SDK with eclipse and opened the Android SDK Manager, I see here that I only have 4.2.2 stuff ninstalled. Should I install other versions? May 03 22:45:23 Whats the most commonly used android version that devs program in for compatibility? May 03 22:45:32 ownix only if you intend to code against them May 03 22:45:45 speakingcode-wor: I just want to play around and learn ATM. May 03 22:45:52 But eventually id like to know what the devs use\ May 03 22:45:56 you're fine with the latest then May 03 22:46:31 Ownix: it depends but the best practice is to target the latest version May 03 22:46:38 you can specify a target and a min May 03 22:47:01 generally target -> latest, min -> as far back as your code can run on, which may be further back via support libraries May 03 22:47:42 so if you're using all the latest greatest stuff, you probably can't go back very far May 03 22:48:15 Napalm: wheres the subclass of searchview? May 03 22:48:33 i didnt bother May 03 22:48:44 if this works then thank you so much May 03 22:48:49 lemme see here May 03 22:50:49 ive made some changes https://gist.github.com/slightfoot/5514856 May 03 22:50:53 speakingcode-wor: ^ May 03 22:51:47 Where I can find lifecycle of my app ? May 03 22:51:58 bluesm: explain? May 03 22:52:41 Napalm: I have error. And I'm looking in which lifecycle's method it occurs.. May 03 22:53:16 bluesm: im still not sure what you want.. look at your stack trace and see May 03 22:54:57 Napalm: so it works with android.widget.SearchView May 03 22:55:06 looks like it May 03 22:55:22 but com.sherlockactionbar.widget.SearchView, the findItem(...).getActionView() returns null May 03 22:55:39 and then of course NPE trying to set a query text listener on it May 03 22:56:38 seems like a bug as the behavior should be the same May 03 22:57:05 Napalm: You mean logcat ? May 03 22:57:08 and i updated android:actionViewClass="com.actionbarsherlock.widget.SearchView" in my menu xml item May 03 22:57:12 speakingcode-wor: SearchView in ABS is known to have lots of issues May 03 22:57:33 Napalm: oh. where's JakeWharton at, need to bop him on the head May 03 22:57:43 :( this isn't gonna make me boss happy May 03 22:58:38 Now to figure out how to make a button click event May 03 22:59:37 oh nice, in ActionMenuItem - > public getActionView() { return null; } May 03 23:00:31 speakingcode-wor: thats correct, the default implementation returns null.. jake overrides it with his internal code May 03 23:00:41 see MenuItemImpl May 03 23:00:46 oh ok May 03 23:01:49 hrmm May 03 23:02:13 speakingcode-wor: i have an easy work around May 03 23:02:24 do this in prepare May 03 23:03:20 one moment May 03 23:05:01 SearchView searchView = new SearchView(this); menu.findItem(R.id.action_search).setActionView(searchView); May 03 23:05:21 in other words you are constructing it rather than any framework May 03 23:05:25 yeah May 03 23:05:31 you can also get rid of the class in the menu xml May 03 23:05:36 cool May 03 23:07:56 err should i take out the whole xml entry for it? May 03 23:08:07 no May 03 23:08:13 just the actionViewClass attr May 03 23:08:13 getting some binary xml errors May 03 23:10:40 https://gist.github.com/speakingcode/5514977 May 03 23:12:24 "error inflating class May 03 23:13:04 is your activity defintly inheriting from the ABS ones May 03 23:13:16 speakingcode-wor: scroll down and look May 03 23:13:21 look at the cause May 03 23:13:28 Caused by: android.content.res.Resources$NotFoundException: Resource is not a ColorStateList (color or path): TypedValue{t=0x2/d=0x7f01002d a=-1} May 03 23:13:37 a drawable with that id 0x7f01002d May 03 23:13:40 extends SherlockFragmentActivity May 03 23:13:50 now go open your gen/ dir in your project and search for that id in your R.java files May 03 23:14:22 speakingcode-wor: its probably a style thing, you havent setup the theme attr that ABS uses for searchView May 03 23:15:22 yeah i don't see it in my gen but it is in bin/R.txt May 03 23:15:51 int attr textColorPrimary May 03 23:17:14 seems i need an attributeSet maybe? or how can i fix this? aye aye May 03 23:18:13 Does onTextChanged May 03 23:18:20 is called after rotating screen ? May 03 23:20:25 is the screen rotation changing the text? May 03 23:22:27 canadiancow: Doesn't seem so. May 03 23:22:46 canadiancow: I have no setText on any element in onCreate callback... May 03 23:23:21 it wouldnt surprise me if it saved the state, came back, called setText on the new TextView, and caused an onTextChanged event May 03 23:25:23 canadiancow: Yeah. May 03 23:25:32 canadiancow: Probably that's it. May 03 23:27:25 I've commended out //super.onSaveInstanceState(outState); May 03 23:28:16 canadiancow: And then It behave as it should... (don't trigger event)... You were right, default implementation. delete and again insert the text... May 03 23:29:53 speakingcode-wor: im about to do a toast, it wants me to use this: Context context = getApplicationContext(); Should I declare this globally or only create this object when I need it? May 03 23:31:29 you don't create an object! May 03 23:31:37 you get a reference to the application context May 03 23:32:06 you can also put a getContext() method to your application class May 03 23:32:20 i always do this as static method May 03 23:32:54 globally? never do globals. does java even have globals? May 03 23:33:09 Whoops, I should mention I am a C# developer May 03 23:33:12 the application object is a singleton May 03 23:33:21 so this is somehow very very close to "global" May 03 23:33:32 i would just use it where you need it, there is already an object referecne with higher scope, which getApplicationContext() returns May 03 23:34:07 Okay I understand May 03 23:34:25 i always add it May 03 23:35:55 speakingcode-wor: "does java even have globals?" what do you think a static field is? :) May 03 23:36:08 static fields aren't global.. May 03 23:36:15 they are accessed via the class to which they are a member May 03 23:36:16 they aren't? :) May 03 23:36:31 well it depends on you "religion" ;) May 03 23:36:40 in case you are a C++ coder May 03 23:36:47 they aren't May 03 23:37:01 if you are a C# coder of course - it's global May 03 23:37:02 You can access them from anywhere, without any object reference. May 03 23:37:13 sounds like a global to me :) May 03 23:37:35 global would be like... class A { $globalvar = 10; } class B { mylocalvar = $globalvar / 2; } May 03 23:37:49 no, you accerss them via the class May 03 23:38:06 the class name just acts as a namespace May 03 23:38:21 class A { static whatever; } class B { whatever // not instantiated } class C { A.whatever } May 03 23:38:35 then it's not global May 03 23:40:11 In computer programming, a global variable is a variable that is accessible in every scope (unless shadowed) ~ wikipedia May 03 23:42:29 speakingcode-wor: static vars ARE global May 03 23:42:42 speakingcode-wor: the class just defines naming context May 03 23:43:01 they are per class, which is per class loader, which there can be mutluple per vm May 03 23:43:25 eh, fair point. May 03 23:43:38 although that's not allowed in dalvik :) May 03 23:43:38 indeed May 03 23:43:41 touche May 03 23:44:14 although multiple class loaders is something i dont know anything about May 03 23:44:31 speakingcode-wor: i might have to test that, i have a feeling they are unique to the process May 03 23:45:09 at any rate, none of this helps me with this SearchView issue :-\ May 03 23:46:30 Where is the autocompletion in eclipse? May 03 23:46:44 When I type a method and hit "." I dont get a list of methods/objects/fields May 03 23:47:28 Ownix: it should have been enabled by default May 03 23:47:36 speakingcode-wor: you still having issues with that? May 03 23:47:53 well i was distracted, found a thread on the abs github that looks like a solution May 03 23:51:51 hah now it just doesn't show at all May 03 23:51:52 fml May 03 23:52:37 oh accidentally took out showAsAction attribute in xml May 03 23:52:54 effin a, got it May 03 23:52:56 man, thanks May 03 23:53:15 :D yay May 03 23:53:47 i wish the keyboard would dismiss upon a tap anywhere outside of the keyboard May 03 23:53:53 but i'm just gonna leave that one alone May 03 23:54:25 speakingcode-wor: a few improvements > https://gist.github.com/slightfoot/5514856 May 03 23:55:05 nice May 03 23:55:13 but yeah i don't even need all that, not right now May 03 23:55:25 i know, im just messing around May 03 23:55:32 gotta save some enhancements for a future release, go/no go is on tuesday ;-) May 03 23:55:42 never used SearchView before May 03 23:58:18 Activity A starts activity B. Activity B is a semi transparent settings screen. Since it is transparent, the activity immediately behind it will show through, that naturally being activity A. May 03 23:58:37 How can I make it so that A is hidden as long as B is over it? May 04 00:02:20 I made a number guessing game \o/ May 04 00:02:46 C# has spoiled me and made my Java rusty May 04 00:10:29 Hey, after my service is killed, it shows as "0 Processes, 1 Service, 0.00B, Restarting." and nothing else happens. Does anyone have an idea how I can actually get it restarted? May 04 00:30:33 https://plus.google.com/116031914637788986927/posts/VvXVcRm21pW?banner=pwa May 04 00:36:52 dammnit mikedg May 04 00:37:04 when will my google glasses arrive May 04 00:37:08 :( May 04 00:37:18 Napalm: thanks so much again for the help main May 04 00:37:18 you were able to get them? May 04 00:37:24 yes May 04 00:37:45 i got a small glass paper-weight with my serial number and everything May 04 00:37:49 lol May 04 00:37:51 oh wow May 04 00:37:55 lot of good that does May 04 00:37:57 i got 2 paperweights bitch! May 04 00:38:10 :0 May 04 00:38:13 :( May 04 00:38:31 i never thought to check out the onQueryTextListener, just seemed inappropriate by name, and the 2nd issue ABS n searchview. heh May 04 00:38:48 speakingcode-wor: np May 04 00:38:49 wat May 04 00:38:52 hey jakey May 04 00:38:59 speakingcode-wor wants you May 04 00:39:29 what issues is SearchView known to have? May 04 00:40:08 using it in ActionBar, as an action view, menu.findView(...).getActionView() always returned null May 04 00:40:24 i have had people complaining to me that it doesnt detect/use the ContentProvider in the correctly. This might be a previous release. May 04 00:40:27 had to instantiate one programatically and call setActionView May 04 00:40:51 JakeWharton: i believe speakingcode-wor is simply having a styling issue May 04 00:41:08 make sure you're using getSupportActionBar().getThemedContext() May 04 00:41:23 then that had issues with styling attributes, which i was able to fix, didn't bother to go back to getActionView and see if the syling issue resolved that first issue May 04 00:41:30 jake to the recuse May 04 00:41:32 rescue May 04 00:41:34 :D May 04 00:41:49 anyway, feature is working now so that's good enough for me May 04 00:43:28 i'm heading home. it's almsot 8pm here. later May 04 00:49:53 add a friggen lint warning to getsupport balblaba May 04 00:50:10 loool May 04 00:52:10 JakeWharton: can you backport roboto light for me May 04 00:52:39 mikedg: for you i'll even backport condensed May 04 00:52:42 codebutler: here? May 04 00:52:44 a lint warning, why? for not using it? May 04 00:52:45 sweet! May 04 00:52:49 yeah May 04 00:52:54 JakeWharton: yeah May 04 00:53:00 you should get those warnings anyway, by virtue of setting minsdk, no? May 04 00:53:10 I don't really care, i'm just being an asshole May 04 00:53:23 the warnings should be louder May 04 00:53:38 we need something between error and warning May 04 00:53:38 codebutler: there's two or three indent problems on your pull. if I comment on each one real quick can you quick push up a fix and then i'll merge? May 04 00:53:39 errning May 04 00:53:43 otherwise I can merge locally and fix myself May 04 00:54:01 ah shoot thought I fixed all those. May 04 00:54:18 i can fix them and squash the commits together May 04 00:54:40 codebutler: just commented on two lines that need unindented by two spaces May 04 00:54:45 otherwise, let's get this in! May 04 00:55:36 can that style maven plugin you have set up in here identify these things? May 04 00:56:08 sadly, no. identifying indent problems is a Hard Problemâ„¢ May 04 00:58:35 Java needs a go-like formatter May 04 00:59:02 read the entire source into an object representation and then spit it out based on rules May 04 00:59:23 yes, i appreciate that approach of eliminating any disagreement between people May 04 00:59:27 check out a project that uses dumb formatting? run it through the transformatter with your settings, hack hack hack, and then retransformat it with their settings May 04 00:59:34 mikedg/pfn: we should have a lint warning for when you call getFragmentManager() in a FragmentActivity from the support lib. Same goes for LoaderManager. May 04 00:59:49 Napalm: http://b.android.com May 04 00:59:51 it should be automatic from apilevel May 04 00:59:52 mikedg: btw, whats to backport about the fonts May 04 00:59:59 Tor will eat that up May 04 01:00:04 it'll be in AOSP tomorrow May 04 01:00:10 font backporting is easy, just copy the font into assets/ May 04 01:00:14 Napalm: mikedg is King Trollâ„¢ May 04 01:00:22 JakeWharton: credit mikedg May 04 01:00:23 Napalm: if you have to ask, it's too low level May 04 01:01:08 mikedg: waaa? i am definitely not following this May 04 01:01:11 then again, how do you specify fonts in assets as resources... May 04 01:01:14 mikedg: I wrote your backport in C and but there's JNI bindings. good enough? May 04 01:01:32 pfn: Typeface.createFromAsset() ? May 04 01:01:33 sounds good, very performanent! May 04 01:01:45 JakeWharton, yeah, but then how do you reference that from xml? May 04 01:01:47 pfn: dont you remember the Roboto additions i added to our last project May 04 01:01:49 you dont :( May 04 01:01:54 Napalm, I don't, no May 04 01:01:58 pfn: custom XML attribute + custom subclass May 04 01:01:59 I never looked May 04 01:02:04 JakeWharton: crap, I found another indent problem May 04 01:02:20 JakeWharton, hmm, that sounds crappy May 04 01:02:25 pfn: dont, i have better methods now :D May 04 01:02:27 so you can't just drop it into a May 04 01:02:33 yes May 04 01:02:34 you can May 04 01:02:38 codebutler: use IntelliJ? we publish our styles on GitHub: https://github.com/square/java-code-styles May 04 01:02:38 in a very special way May 04 01:02:47 if you override inflating, sure May 04 01:02:53 ClassLoaders to the rescue May 04 01:03:01 that's stupid May 04 01:03:07 :D May 04 01:03:17 the right way is to get root and copy the font to replace the default font May 04 01:03:26 and then in onpause you fix it so other apps look right May 04 01:03:27 pfn: no. we used to the inflater trick but it's ghastly. Custom TextView is much easier to manage May 04 01:03:38 JakeWharton: I do, but I've always tried to match the official android rules... May 04 01:03:39 mikedg: sounds like you have a plan May 04 01:03:46 JakeWharton, yeah, I suppose May 04 01:04:12 JakeWharton: indeed, i did the inflater factory trick.. ghastly is a nice way of putting that May 04 01:04:13 codebutler: they show up as separate styles you you'd have to explicitly select "Square" or "Square Android" on a per-project basis May 04 01:04:23 ah hm May 04 01:04:44 well I think this commit is good now. https://github.com/codebutler/retrofit/commit/00b56dfa0100ec5cc3366fbc45bb11c841824649 May 04 01:05:04 JakeWharton: had any dealings with adding RTL/LTR to custom views? May 04 01:05:29 Napalm: thankfully, no. May 04 01:05:39 * Napalm :'( cries a little inside May 04 01:05:47 i have too May 04 01:05:50 :( May 04 01:05:54 maybe i should write it all up May 04 01:06:00 once its perfecto May 04 01:10:11 mikedg: btw, i spotted this the other day.. https://github.com/hanspeide/anytextview May 04 01:10:41 I think the text viewson glass do that silly ass shit May 04 01:10:41 grrr May 04 01:10:52 oh wait nevermidn May 04 01:11:02 i dont know what im talking about May 04 01:11:04 im tired May 04 01:15:46 mikedg: does glass have BLE? May 04 01:15:56 why is my android build dying with this error? dalvik/vm/native/dalvik_system_Zygote.cpp:199:19: error: aggregate ‘setrlimitsFromArray(ArrayObject*)::rlimit rlim’ has incompletetype and cannot be defined May 04 01:16:03 it's not enabled by default May 04 01:16:16 and i doubt they would use it since it requires tethering May 04 01:22:21 BLE doesn't require tethering May 04 01:23:25 codebutler: one more thing :( May 04 01:26:51 Anyone know of a way to scroll a WebView after loading? I've found a stackoverflow discussion recommending PictureListener, but that's deprecated. May 04 01:27:25 WebClient.onPageFinished() is apparently too early, the page isn't really finished yet. May 04 01:29:20 now the date on the commit is wrong May 04 01:29:24 fml. May 04 01:30:58 ok, it's building now May 04 01:31:09 just restarted the build and it worked this time. no clue what was wrong. May 04 01:31:32 this sucker is using a crapload of RES May 04 01:31:47 stuff doesn't grow on trees, you know May 04 01:35:45 you know a build process is fucked when you're sober by the time it finishes May 04 01:40:07 awww shitsticks May 04 01:40:12 it cropped up again May 04 01:40:17 * Adlai applies http://mjanja.co.ke/2013/04/fix-for-dalvik-compile-error-on-cyanogenmod-9/ May 04 01:41:09 how do you go about moving the .android folder to a secondary partition and making eclipse/adt use that location instead as the primary partition is full windows 7 May 04 02:31:26 I'm trying to make my app support different sized screens. So, getting started, I added a layout-large folder to my project and a activity_main.xml file to start working on a larger version of my main activity layout. But, when I click on on the 10.1" WXGA Tablet entry from the screen preview selection list drop-down menu, it automatically opens the tab for the original activity_mail.xml file and switches to May 04 02:31:26 that tab. Any idea why this could be occurring or how to remedy this? May 04 02:32:08 I'm using eclipse May 04 02:36:38 have you tried a real device? May 04 02:40:32 canadiancow I've used the app on real devices if that is what you mean. It looks terrible on tablets, that's why I'm trying to figure out how to do this. Otherwise, no, I haven't been able to start working on the alternative layouts because this thing keeps switching May 04 02:45:48 i mean have you tried your layout-large on a real device May 04 02:52:33 canadiancow no, i cannot make it yet **** ENDING LOGGING AT Sat May 04 02:59:58 2013