**** BEGIN LOGGING AT Thu Mar 28 02:59:58 2013 Mar 28 03:00:18 * agy2154 would never realize that he would ever write an activity with over 600 lines of code Mar 28 03:11:39 is there an IRC channel for XDA? Mar 28 03:11:47 or is this it Mar 28 03:12:12 #android-root is more like XDA than here Mar 28 03:12:54 kevinb, thanks :) Mar 28 03:20:17 I am getting error "The import android.support.v4.util.SparseArrayCompat cannot be resolved", is my suppor.v4 library not updated? Mar 28 03:50:49 I am getting error "The import android.support.v4.util.SparseArrayCompat cannot be resolved", is my suppor.v4 library not updated? Mar 28 03:53:36 Okay this exception is becoming very annoying. https://gist.github.com/rburton/5260445 Mar 28 03:54:16 Anyone have any idea or clues to help track this down? I also have the code calling it (Updated) Mar 28 04:43:34 i hardly hear anyone mention the android analytics library. is it pretty decent? i was going to add it in the next revision of my project Mar 28 04:47:54 how can i give a list adapter a position from another list when they are both on separate fragments? Mar 28 04:48:48 can an adapter use getArguments? Mar 28 04:49:48 give ? Mar 28 04:49:59 just like pass an int from one to another ? Mar 28 04:50:15 and are they hosted by the sam activity ? Mar 28 04:50:35 achmode: Mar 28 04:50:52 yes they are hosted by the same activity Mar 28 04:51:11 well you can get an reference to it by TAG Mar 28 04:51:18 and call a method directly Mar 28 04:51:52 makes sense Mar 28 04:52:26 ((myfragment_list)getActivity().getSupport*().getFragMan*().findFragmentByTag("mytag")).myMethod(int); Mar 28 04:53:37 g00s, found lte allll over Mar 28 04:53:46 just a few spots id like them to cover and id be pretty happy Mar 28 04:55:48 StingRay_, eclipse complains that myMethod is undefined Mar 28 04:56:12 oh nevermind, had to add a cast Mar 28 04:56:19 was gonna say Mar 28 04:56:35 the only way it would do that is if the method don't exist on the class Mar 28 04:58:10 but the things is, this position will change over time and i dont want to reinitialize the adapter every time to set it Mar 28 04:59:31 myMethod() sets the position variable in the fragment, not the adapter Mar 28 05:00:08 your not Mar 28 05:25:01 would anyone know of a lib for creating a wrap around animation Mar 28 05:26:01 so say I have a view, with 5 children.. of same height.. I would want to animate them vertically, when they go offscreen I would then wrap them around so its an infinite scroll Mar 28 05:27:05 how would 5 of them exactly match the listView height ? Mar 28 05:27:59 but sure you could do it in getPosition() of the adapter Mar 28 05:28:14 well right now I have a FrameLayout (I havn't actually tested my code yet) , so first I offset them by looping through the children and getting the previous height and offset the next one Mar 28 05:28:27 also I have called setClipChildren(true) Mar 28 05:28:47 O I should mention this should be done automaticly without user interaction Mar 28 05:29:39 what sort of adapter is it ? Mar 28 05:29:46 not using an adapter Mar 28 05:29:54 should I use one? Mar 28 05:30:11 your adding views manually to a listView ? Mar 28 05:30:14 right now I'm using a FrameLayout and using ObjectAnimator Mar 28 05:30:18 no no list view Mar 28 05:30:21 hehe Mar 28 05:30:23 oh Mar 28 05:30:25 Its a FrameLayout Mar 28 05:30:27 god knows then Mar 28 05:30:30 lol Mar 28 05:30:31 alright Mar 28 05:30:35 so how would YOU do it Mar 28 05:30:44 without user interaction Mar 28 05:30:54 listView + adapter + alter the index that is returned in getView Mar 28 05:31:10 and keep track of wrap number/amount Mar 28 05:31:22 dunno if that would work, never wanted to try it tbh Mar 28 05:31:26 :) Mar 28 05:31:32 but oddly interested now Mar 28 05:31:44 umm so I can control the rate of scrolling for a listview? Mar 28 05:31:58 would have to take care that the same index not on the screen at the same time Mar 28 05:32:04 say I want the scrolling of one view to span 2 seconds Mar 28 05:32:22 can do what you want Mar 28 05:33:47 umm Mar 28 05:36:04 well this FrameLayout way isn't working Mar 28 05:42:29 well with that you would have to emulate a list view Mar 28 05:43:48 morning JakeWharton Mar 28 05:45:25 xastey`: just asked a question that I would be interested to know, and infinite looping listView, possible with just wrapping the position/item that is passed to getView ? Mar 28 05:45:32 @ JakeWharton Mar 28 05:46:20 well thats not passed. that is returned from getItem/getPosition Mar 28 05:46:59 StingRay_ this is what I have now http://pastebin.com/MMPpgtPi Mar 28 05:47:29 may try out the ListView approach cause I can't get the children to move their "y" position inside the FrameLayout Mar 28 05:48:37 well if you read the 1st line of the description http://developer.android.com/reference/android/widget/FrameLayout.html Mar 28 05:49:04 or the class overview rather Mar 28 05:49:42 umm layout_gravity eh Mar 28 05:50:04 why on earth did they drop AbsoluteLayout Mar 28 05:50:17 relativeLayout Mar 28 05:52:09 doesn't let me control the y cords Mar 28 05:52:11 http://stackoverflow.com/questions/2332847/how-to-create-a-closed-circular-listview Mar 28 05:53:10 guess thats the best way Mar 28 05:53:25 now need to know how to control the ListView scrolling rate Mar 28 05:54:30 http://stackoverflow.com/questions/7519597/continuously-auto-scrolling-listview Mar 28 05:54:38 these things are all searchable :) Mar 28 05:54:49 I know.. I was searching Mar 28 05:54:53 you just beat me to it Mar 28 05:54:55 but thanks Mar 28 05:56:12 but there are a few scroll methods too Mar 28 05:56:23 sure it has what you want Mar 28 05:57:23 just smooth scrolling, no boost or anything like that Mar 28 05:57:26 constant scrolling Mar 28 05:58:02 well would you not do your own timer and update the listView off that ? Mar 28 06:00:01 I'm implementing it this now Mar 28 06:00:05 see how far I can get Mar 28 06:14:16 almost worked StingRay_ just need to control the ListView scroll duration Mar 28 06:14:48 well iirc you can do it even on a pixel by pixel basis if you want Mar 28 06:14:54 using the offset Mar 28 06:14:58 maybe wrong Mar 28 06:15:11 but I seem to remember doing something similar Mar 28 06:15:42 think I found it smoothScrollToPositionFromTop Mar 28 06:43:57 Thanks a lot StingRay_ got it working Mar 28 06:44:06 cool, well done :) Mar 28 06:44:43 way easier then tyring to do it with ObjectAnimator Mar 28 06:45:11 smoothScrollToPositionFromTop + Interger.MAX_VALUE and SCROLL_STATE_IDLE did the trick Mar 28 08:16:09 I'm extracting a part of an mms containing a reference to a 3gpp file. So I get a url looking like /data/data/com.android.providers.telephony/app_parts/PART_1364457765761_.temp.3gp. I can play this by sending an ACTION_VIEW intent on my Nexus 4 (4.2.2). It works with both the native gallery and third party app like VLC. Mar 28 08:16:42 But on Galaxy S3 I get permission denied when the video player tries to open the file. It does not work with VLC on that phone either. Mar 28 08:17:33 sms/mms are not always the same locations and or permissions, tis based on manuf. Mar 28 08:17:52 eg. samsung have their own sms/mms client Mar 28 08:18:04 so it's not even guaranteed to use same data sources Mar 28 08:18:14 hence the lack of any real sms/mms api's Mar 28 08:18:32 But the strange thing is that my team claims that our own app has read access to this file. Therefore they are currently working on a solution where we first copy the file to the /sdcard and then try to play the file from there. Mar 28 08:19:02 And I can't really wrap my head around this. Why can our app access the file but not VLC Mar 28 08:19:29 Is it because we request READ_SMS permission, perhaps Mar 28 08:20:06 well like I say, samsung can do and do do :) very odd things sometimes Mar 28 08:20:14 using parts of the spec and not Mar 28 08:20:16 eg Mar 28 08:20:27 sammy have account sync fb integration Mar 28 08:20:49 that fb picture sync stores in a private area Mar 28 08:21:01 but gives permission and link to normal contacts manager Mar 28 08:21:09 but you can't read that uri Mar 28 08:21:16 only a system service can Mar 28 08:21:35 yeah but again, for some reason our app can read the uri. Mar 28 08:21:40 so your end up having to get the fb account name in the uri link and lookup the picture online Mar 28 08:22:09 it actually gets the file that is not null || zero size ? Mar 28 08:22:30 my team claims so, yes. Mar 28 08:22:35 have yet to see for myself. Mar 28 08:22:55 cause if you fire an intent with that uri you giving permission to whatever ACTION to use your permissions to deal with it Mar 28 08:23:05 is that so? Mar 28 08:23:06 so there should be no difference Mar 28 08:23:21 I see. Really odd. Mar 28 08:23:57 btw : disclaimer, I'm not a programmer/dev Mar 28 08:24:05 vfx/cgi artist Mar 28 08:24:20 so only take what I say as 50% fact 50% question ;) Mar 28 08:25:34 but with vlc or gallery you should get errors in logcat Mar 28 08:25:40 that tell you why/how/what Mar 28 08:26:11 gallery/player still have w & e errors I think Mar 28 08:26:28 error*log entries Mar 28 08:27:04 I got FileNotFound... PermissionDenied Mar 28 08:27:56 so prove now that you can read the file Mar 28 08:28:04 open a File or FileStream Mar 28 08:28:12 and get size/bytes from your app Mar 28 08:28:23 then you know it's an intent permissions prob Mar 28 08:31:59 halo, I am going to implement an app which takes all the contact in the phone's contact list. And send all phone numbers to server to check if the contact number is member of my system. I use cursorAdapter to show the contact, when binding the view, I query the contact to get the phone detail. But using this approach, the list scroll become laggy. What is the better way to handle this situation? any suggestion? Mar 28 08:34:18 offload the "resolving" off the main ui thread ? Mar 28 08:36:03 StingRay_: umm, let say I want to show display name and the phone number in the rows, then it seems that this is not possible to do in it other thread Mar 28 08:36:52 well that should be quite quick Mar 28 08:37:10 but depends what source Mar 28 08:37:19 there are different levels of contacts Mar 28 08:37:25 StingRay_: I try that using content provider of the contact Mar 28 08:37:38 StingRay_: but the scrolling still seems laggy Mar 28 08:37:39 just contact.* Mar 28 08:38:29 StingRay_: umm....contact.* doesn't include phone number if I am correct Mar 28 08:38:29 look at ContactsContract.CommonDataKinds.Phone.* Mar 28 08:38:46 that would Mar 28 08:39:01 I need to use one query to query all contacts and then for each contacts, query their phone detail Mar 28 08:39:03 on older android there is no has_number field Mar 28 08:39:16 but you would still get phone nuns in data1 etc Mar 28 08:39:19 i think Mar 28 08:39:39 let me see Mar 28 08:39:52 I think phone and contact are seperate table Mar 28 08:39:59 well yes Mar 28 08:40:08 but content provider = auto join Mar 28 08:40:16 depending on the uri call Mar 28 08:40:40 right off for a smoke and a coffee Mar 28 08:40:42 :) Mar 28 08:41:53 ok thanks, let me check about it Mar 28 08:49:16 StingRay_: yep, there is a field named HAS_PHONE_NUMBER which is available after API 5, but I want the exact phone number instead of an boolean of having phone number Mar 28 08:53:35 then get that field Mar 28 08:53:48 ContactsContract.CommonDataKinds.Phone.NUMBER Mar 28 08:54:03 that resolves to something like "data1" Mar 28 08:54:32 or it may resolve to phone_number Mar 28 08:54:37 I can't remember Mar 28 08:54:43 and I'm still not awake Mar 28 08:55:03 umm....ok, let me think about, use this URI: ContactsContract.Contacts.CONTENT_URI? Mar 28 08:55:18 or should I use ContactsContract.CommonDataKinds.Phone.CONTENT_URI Mar 28 08:55:35 2nd one Mar 28 08:56:26 Then I may have two row with same display name but different phone number, i guess Mar 28 08:56:42 well yes Mar 28 08:57:06 otherwise you would be missing numbers Mar 28 08:57:32 I see you point Mar 28 08:57:49 let me think about it Mar 28 08:58:23 you could possibly group them by name and increment a inner.number# dunno Mar 28 08:58:28 not really had the need Mar 28 09:08:11 anyone happen to have experience with GLSurfaceView? i tried fiddling with it for a while to make it transparent and it seems the only way to accomplish this is to set its z order as the top. is it true that its impossible to have a transparent GLview AND draw android views on top of it? Mar 28 09:09:01 just checked my app on multiple android devices by different makers. Some screen layouts don't dispay Mar 28 09:09:11 oops, sent in middle of typing Mar 28 09:09:47 well, some layouts don't display properly. like a checkbox is lower than it should be, or a button is not quite where it should be Mar 28 09:10:13 how are you supposed to get your layouts to be the same across multiple mobile devices ? Mar 28 09:10:34 It should be one layout to rule them all Mar 28 09:10:58 not oh its ok on a couple phones, but screwed up on these others Mar 28 09:10:59 dimension files / use of dp / and layouts with either spacers to relative positioning Mar 28 09:11:13 then all is fine Mar 28 09:11:29 dp ? Mar 28 09:11:38 you really should read the docs Mar 28 09:11:55 http://developer.android.com/guide/practices/screens_support.html Mar 28 09:12:27 oh those Mar 28 09:12:38 yes using dp numbers Mar 28 09:12:52 140dp width 120dp height ect Mar 28 09:13:07 or wrap content, fillparent Mar 28 09:13:14 and mostly relative layouts Mar 28 09:13:43 thanks for the link, i will look to see if there are any nuggets Mar 28 09:45:35 hy all! I have imported my project what I have developed previously, but Eclipse can't find java and android packages. I use ADT Bundle. What am I missing? Mar 28 09:45:57 JDK is also installed. Should I select that from eclipse somehow? Mar 28 09:46:17 yeah, probably, which eclipse do you use? Mar 28 09:46:29 this is also an #eclipse issue Mar 28 09:47:33 ugh, play store ranking is weird. in germany, i'm in the top 10 if you search for "multiplayer", and in the US i dropped out the top100 until I added (Multiplayer) to the name Mar 28 09:49:33 Xabster: I don't think, because IntellijIdea had the same problme Mar 28 09:49:43 so I think something is missing Mar 28 09:50:04 RobinB: I suspect localization of results Mar 28 09:51:25 yeah, it's just strange how much of an effect the name of the app has. i thought it was more in the description. it's now #6 when you search for it Mar 28 09:53:01 so what should I do now? Mar 28 09:55:55 gregtom6: have you tried "fix project properties" in the android tools when you right-click on the project? Mar 28 09:56:08 yes, maybe I have found this Mar 28 09:56:11 http://stackoverflow.com/questions/4497076/unable-to-run-imported-project Mar 28 09:56:18 thx Mar 28 09:59:15 Hi! I've created own authenticator. It adds via sync data to android contacts (from facebook). In app Peaple in android v 4.2 it shows my contacts but without birthday. Format of birthday same as on that contacts that shows birthday. What can it be? Mar 28 10:09:48 halo all, I want to add custom contact type to the contact list like whatsapp, but I can't google any result on how to do that. Can anyone have such experience? Mar 28 10:09:53 JakeWharton: couldn't get butterknife to work last night, how would I go about debugging it? Mar 28 10:38:51 Morning All Mar 28 10:43:12 Ankhwatcher, morning Mar 28 10:43:32 Ankhwatcher, are you in the mood to help? Mar 28 10:49:15 storkme: How exactly does it fail? Mar 28 10:49:44 it wasn't injecting the fields I'd annotated Mar 28 10:51:26 storkme: wut is butterknife? Mar 28 10:51:45 View injection library by JakeWharton Mar 28 10:51:49 http://jakewharton.github.com/butterknife/ Mar 28 10:52:59 Is there sonewhere i can download a real full example contacts database ? Mar 28 10:53:42 heh, actually i dont' mind writing some boilerplate Mar 28 10:53:54 i don't mind doing it, I'd just rather not :p Mar 28 10:54:07 i mean, this is fucking sparta, uh, android Mar 28 10:54:16 I try and view the real contacts database from a rooted phone bit i always get a null error when opening it Mar 28 10:55:07 superlinux: if I can I will Mar 28 10:55:18 I've never had so many views that has annoyed me really.. Mar 28 10:56:43 Ankhwatcher, i get a crash while the app is running and when i change the system locale. what would be the problem usually? the program is completely working fine. Mar 28 10:57:09 but what's left is when change the locale the app crashes Mar 28 10:57:32 but what's left is when I change the locale the app crashes Mar 28 10:58:25 any recommendations for a persisted task queue? Mar 28 10:58:37 i'm thinking service, using sqlite and messengers to communicate Mar 28 10:59:10 funkbox: tape Mar 28 10:59:26 kazimir42: thanks will check it out Mar 28 11:00:01 http://square.github.com/tape/ Be sure to check out the sample in the repository. Mar 28 11:00:01 ohh, square, i guess JakeWharton was probably involved. can't be bad Mar 28 11:00:31 I once looked for the same thing. Jake recommended it and used it recently, love it. :) Mar 28 11:00:43 how do you use it if you don't mind me asking Mar 28 11:01:46 Exactly like it says on the page and in the sample code. Mar 28 11:02:13 i basically need a way to make sure user operations are synced with the backend even if they don't have network connection Mar 28 11:02:18 The sample also uses dagger and otto last time I checked, be sure to go through the classes and try to see how Service, Task, Queue work together. Mar 28 11:02:43 ah, perfect. thanks dude Mar 28 11:02:46 slash lady Mar 28 11:06:12 superlinux: what does logcat say? Mar 28 11:06:37 someone with 2.3.5 device here? Mar 28 11:06:48 i just ask as it looks like a common problem. Mar 28 11:07:03 squ: mine is at home sadly Mar 28 11:07:16 let me run the project and brb wit the results of logcat Mar 28 11:07:31 superlinux: cool, pastebin that and we can have a look Mar 28 11:07:51 Hi. Is there a way to style a NumberPicker? Mar 28 11:08:13 Ankhwatcher: will you please be here at monday? Mar 28 11:09:42 squ: monday is a bank holiday here, so probably not, tbh Mar 28 11:09:58 squ: what is the problem you're trying ot troubleshoot? Mar 28 11:10:12 ah yeah, sure I forgot Mar 28 11:10:24 Tuesday then Mar 28 11:10:45 some random client telling app crash on his device Mar 28 11:11:06 kakazza: this thing looks awesome, i think i'm going to port everything over to it. i wish i knew about it before :( Mar 28 11:11:50 squ: is the app in the play store, if so what does the crashlog say? Mar 28 11:12:16 tells version is incompatible Mar 28 11:12:37 I told crash.. meant this one last Mar 28 11:13:32 curious, and it runs okay on the emulator? Mar 28 11:14:31 Ankhwatcher, I knew now what is the problem. I have a list activity. the list is filled with text from a set of @string values. Mar 28 11:15:28 squ: does it give you a stack and diag info? are you using crittercism or anything like it? Mar 28 11:15:48 so when I maximize the app window again, I think I have to reload the list with the 2nd locale Mar 28 11:16:06 i'll try that **** BEGIN LOGGING AT Thu Mar 28 11:23:52 2013 Mar 28 11:24:14 hy all! how can I import a project, what is already in eclipse workspace? how should I change the new one's name? in which files should I overwrite the name to a new one? Mar 28 11:27:40 superlinux: 'eureka' Mar 28 11:27:55 xorgate, ah ok Mar 28 11:27:59 thanks Mar 28 11:28:13 i have found it Mar 28 11:28:16 gregtom6, you import a project with the import menuitem in the right click popup menu in the project explorer Mar 28 11:28:32 when you import, there's no "new project" to get a changed name, it's a folder that already has a name Mar 28 11:28:52 you don't need to overwrite some files for new names, i have no idea what you're talking about **** BEGIN LOGGING AT Thu Mar 28 11:33:07 2013 Mar 28 11:33:24 sry, I'm back Mar 28 11:33:32 Xabster: what did you wrote? Mar 28 11:34:04 [12:28:19] gregtom6, you import a project with the import menuitem in the right click popup menu in the project explorer Mar 28 11:34:07 [12:28:33] when you import, there's no "new project" to get a changed name, it's a folder that already has a name Mar 28 11:34:11 [12:28:54] you don't need to overwrite some files for new names, i have no idea what you're talking about Mar 28 11:34:11 [12:28:58] and this is #eclipse issue still Mar 28 11:34:55 I can't import that Mar 28 11:35:53 can't import what? Mar 28 11:36:41 the copied project Mar 28 11:36:56 that's not enough to rewrite the folder's name Mar 28 11:39:40 Xabster: thanks again btw (if you didn't get the thanks from yesterday) Mar 28 11:40:03 gregtom6, eclipse's workspace is a folder, often c:\users\xabster\workspace Mar 28 11:40:16 if the project is there, and not shown in project explorer, you import the folder Mar 28 11:40:33 it will be given the name of the project's folder, because that's what project names are in eclipse Mar 28 11:40:38 StingRay_: you're welcome Mar 28 11:40:40 did you make it work? Mar 28 11:41:28 Xabster: well, no, not the folder's name is the important, because it's in D:\prob, and the project name is still proba Mar 28 11:41:52 then the project is not in the workspace Mar 28 11:41:56 yeah, i see what Chainfire was on about with ByteStreams now :) but all works Mar 28 11:42:02 it's not, I know Mar 28 11:42:04 :D Mar 28 11:42:07 you said it was! Mar 28 11:42:08 ffs Mar 28 11:42:09 because I can't import that Mar 28 11:42:23 YOU SAID IT WAS IN THE WORKSPACE Mar 28 11:42:25 it's in there, but not the new one, only the old one Mar 28 11:42:32 the original Mar 28 11:42:33 new one? Mar 28 11:43:04 yeah, i'm gonna stop talking to you now unless you ask real questions instead of this guessing game Mar 28 11:43:11 Does anybody have experience using basic authentication and webview? I can authenticate the only way to deauth is to exit the app. I've literally tried everything. Mar 28 11:43:23 StingRay_ myes sooner or later you realise that not everything I say is bs ;) Mar 28 11:43:33 I have asked real questions.... Mar 28 11:43:52 okay, I start this again Mar 28 11:44:00 Chainfire: didn't mean to imply BS :) what I probably meant was I have now experienced what you were describing Mar 28 11:44:15 onPageStarted doesn't seem to ever ask for authentication in my setWebView content except for the first time I attempt to auth. Mar 28 11:44:21 I know :) Mar 28 11:46:10 Xabster: I have a project, it's name is test. I want to import it again, to be two same projects in the workspace (Because I don't want to overwrite a previous version on my phone). So I copied the project from the workspace (it's still there too), and renamed the folder to test2. I tried to import that test2 project to my workspace, but it said it's already in the workspace. Mar 28 11:46:17 And that's the problem Mar 28 11:47:57 open the .project file and change the stuff between the Name tags in the xml Mar 28 11:48:06 and next time write this the first time Mar 28 11:50:54 I wrote this the first time, don't I? Mar 28 11:51:12 that's not how i read it Mar 28 11:51:25 well, english is not my first language Mar 28 11:51:44 and maybe I told this in parts, not in a complete post Mar 28 11:52:59 it's ok, but i think you should take this to #eclipse so we don't disturb the good android people Mar 28 11:53:25 most in here are already "disturbed" Mar 28 11:54:24 . o O ( me? are they talking about me? I don't think they saw me .... I'm safe ...safe) Mar 28 12:02:29 I have a horizontal LinearLayout and three Views that are centered there. I want to add one View on the right, but I still want the other views stay centered without taking the new view into account - is that possible? Mar 28 12:04:20 possible yes Mar 28 12:04:33 try relativelayout Mar 28 12:04:46 still attempting to figure out visually what your wanting though Mar 28 12:07:30 two NumberPickers to choose a weight (e.g. 78 and 3 for 78.3 kg) and a TextView at the end that shows the unit (kg); only the NumberPickers should be centered, else it looks kind of bad Mar 28 12:08:12 ah now i get ya Mar 28 12:08:37 so yeah, the best way would be relativeLayout parent Mar 28 12:09:08 with child[0] and child[1] being centerHorizontal Mar 28 12:09:25 OK, thanks Mar 28 12:09:54 and child 2 being rightOf child 1 Mar 28 12:10:16 oh and child1 being rightOf child 0 Mar 28 12:14:32 and I'm back Mar 28 12:35:21 Any disadvantages to using a timestamp as unique key in a DB? Each user has his own DB, so duplicates should not be a problem. Data I want to store: one float; timestamp; day, month, year as int for nice queries Mar 28 12:37:49 Hm, looks like it's not even possible without problems. _ID it is then Mar 28 12:38:49 nope Mar 28 12:38:50 :) Mar 28 12:44:46 For an app where you have a lot of text (ref manual style), is a prepopulated DB still one of the best ways forward? (leaving aside downloading data once installed) Mar 28 12:46:03 sounds like as good a solution as any Mar 28 12:49:13 Chainfire: *nod* Good to know. Mar 28 12:49:29 Hey Mar 28 12:49:57 I'm trying to find the intent which causes the pressing Home Button on Screen-Off, to start screen & display the running app, instead of jumping back to home Mar 28 12:50:08 Other channels seem to be asleep O.o Mar 28 12:50:13 Can anyone help me? Mar 28 12:50:49 the home button is not catchable by a normal app Mar 28 12:51:13 Hey CHainfire, well, not by normal apps, I'm speaking about the base ROM Mar 28 12:51:47 When running an app, & the display goes out, pressing hardware home should just turn on the display, & the apps should keep running Mar 28 12:52:05 but instead, the display focuses back to Home Mar 28 12:52:21 no idea Mar 28 12:52:43 what hardware is this ? Mar 28 12:53:04 Phone, S3 I9300 international Mar 28 12:53:38 thats interesting, cause I just tested this on an S3 I9300 international and it doesn't go to the home screen Mar 28 12:53:39 Only app I've seen do something similar is that DroidSleep or what's its name Mar 28 12:53:43 I think there's some kind of conditional onResume() somewhere, in context with SCREEN_OFF Mar 28 12:53:53 I know it doesn't, that's what I'm trying to find Mar 28 12:53:57 What does that Mar 28 12:54:03 Chainfire: All devices I know show the lock screen when you hit home from power off Mar 28 12:54:23 gokussjx_: Sleep as Android even Mar 28 12:54:30 asmodai: you know very little devices then :) Mar 28 12:54:33 gokussjx_: It dims the display and stays running Mar 28 12:54:50 StingRay_: Only what me and friends/acquaintances use. Mar 28 12:54:54 also this depends how the user has configured it Mar 28 12:55:03 gokussjx_ make up your mind, first you say it goes to the home screen, then I tell you it doesn't, then you tell me you know it doesn't Mar 28 12:55:04 I mean what source file forces that? Mar 28 12:55:12 StingRay_: I do Android dev on the side of my normal dev job ;) Mar 28 12:55:20 and it's controlled by the HOME activity as to what to do no ? Mar 28 12:55:28 in your case touchwiz Mar 28 12:55:43 Chainfire, okay, let me explain. The Home takes you to running app in CM Mar 28 12:55:48 which IS the correct reaction Mar 28 12:55:54 I don't think the home-button-turns-screen-on behavior is regulated by the home activity Mar 28 12:55:56 But I'm trying to modify something Mar 28 12:56:13 And trying to find that snippet which does that Mar 28 12:56:28 As I remember, it was fixed a few months ago by CM Mar 28 12:56:39 But I can't find the commit Mar 28 12:56:46 search the CM git history for it, or search the CM source for VK_HOME and follow the trail Mar 28 12:56:47 couldn't* Mar 28 12:56:57 this channel is certainly not the place to find the answer though Mar 28 12:57:00 try #cyanogenmod Mar 28 12:57:02 VK_HOME? Let me try, thanks Mar 28 13:07:57 I've got an app with a long running Service (which creates a Thread which, amongst other things, Logs info to logcat periodically). I left the app running last night, and everything seemed to work fine (the Thread did everything it was meant to). Mar 28 13:08:12 When I view the logcat, I see no Logs from my app all night - although it does resume in the morning. The only log messages are one's about the Wifi state changing. Mar 28 13:08:27 are you keeping the device awake? Mar 28 13:08:48 how are you viewing the log cat? Mar 28 13:08:53 did you catch it by its tail? Mar 28 13:08:57 mikedg_: I have a partial wake lock, and a wifi wake lock, so I think the cpu should be running. Mar 28 13:09:20 It continued operating (an external accessory) all night, so I guess it must have been awake. Mar 28 13:09:41 mikedg_: I'm just viewing it in eclipse. Mar 28 13:10:08 I can see log messages from yesterday afternoon, so it doesn't seems like I'm just missing log data from before a certain time. Mar 28 13:10:49 There's no way the Thread in my app wouldn't have been calling Log.i. Mar 28 13:11:20 try the command lines Mar 28 13:11:28 sometimes eclipses log viewer sucks Mar 28 13:12:23 adb logcat -v time -d will give me everything, right? Mar 28 13:14:11 i think so Mar 28 13:15:53 mikedg_: Ah, I see in the output that it has a section for /dev/log/system (which covers about 24hrs), and /dev/log/main after that which covers just 4 hours. Mar 28 13:16:17 mornin Mar 28 13:16:18 I assume that my log messages would go in /dev/log/main, and so that's why I don't see any? Mar 28 13:17:44 kakazza: have you seen this before using tape? IOException: File is truncated. Expected length: 8192, Actual length: 8128 Mar 28 13:17:56 looks like it corrupts on restart Mar 28 13:18:29 funkbox, what's being serialized? Mar 28 13:19:04 kaneda^: simple tasks. two strings and a boolean Mar 28 13:19:26 funkbox, and this occurs when you deserialize yes? Mar 28 13:19:29 do i need a Boolean instead of a boolean Mar 28 13:19:51 it occurs after the fetcher service is stopped and then on the next start Mar 28 13:19:57 funkbox, depends on the output stream you used Mar 28 13:20:06 "Primitive types can be serialized using DataOutputStream class and deserialized using DataInputStream class" Mar 28 13:20:28 use a FileObjectQueue Mar 28 13:20:33 i guess i can write a custom serializer and try that Mar 28 13:20:34 do a barrel roll Mar 28 13:21:00 * kaneda^ barrel rolls Mar 28 13:21:16 funkbox, or you could make it Boolean Mar 28 13:21:35 off i go to try it, thanks Mar 28 13:22:00 isn't it kind of a bad idea to use data in/output stream for serialization Mar 28 13:22:21 storkme, i dunno, i use objectinput/output usually and make sure everything is serializable or transient Mar 28 13:23:23 Why do I so often see List instead of HashMap in android? Mar 28 13:23:24 i have a problem when using the gallery activity. I specify to crop, don't return data, save to temp.jpg. It works the first time, but If i try a second time i am getting a io exception file not found. I am always using the same temp path. anyone know why this would happen ? Mar 28 13:25:22 mobydev: paste bin code cause I do that Mar 28 13:25:36 I don't exactly save to same temp file every time though Mar 28 13:25:36 ok to paste here ? Mar 28 13:25:41 NO Mar 28 13:25:44 pastebin Mar 28 13:25:48 oh Mar 28 13:25:48 :) Mar 28 13:25:53 do you need an account ? Mar 28 13:26:02 no Mar 28 13:26:06 ok, brb Mar 28 13:27:39 hmm... time to switch to MariaDB? Mar 28 13:27:53 KungFuHamster, try it, let me know how it works for you ;p Mar 28 13:28:01 i've been thinking about switching from mysql to mariadb for a while Mar 28 13:28:04 hamster? more like guinea pig Mar 28 13:28:30 article on slashdot about it today Mar 28 13:29:07 hmm, you cant serialize a static object can you? Mar 28 13:29:13 http://developers.slashdot.org/story/13/03/28/0335222/mysqls-creator-on-why-the-future-belongs-to-mariadb?utm_source=rss1.0mainlinkanon&utm_medium=feed Mar 28 13:29:59 kaneda^, I dunno... sounds like a job for googleman Mar 28 13:30:17 KungFuHamster, i already know the answer is no, i was just thinking about why :| Mar 28 13:33:06 mariadb is default for opensuse, arch, fedora, slackware Mar 28 13:33:16 sounds pretty legit Mar 28 13:34:04 kaneda^: I don't see why not. Mar 28 13:34:14 kaneda^: I mean it's probably not a GOOD idea but it's possible. Mar 28 13:34:46 StingRay_ Mar 28 13:34:49 http://pastebin.com/Q7nZ9pS4 Mar 28 13:35:33 lov, hrm, i dunno, it seems like you might want to serialize the state of a singleton Mar 28 13:36:01 then again my singleton is always the data manager and the data is non-static, so i guess it doesnt apply Mar 28 13:38:36 mobydev: and gallery reports null or your onActivityResult data is null ? Mar 28 13:39:10 hi guys Mar 28 13:39:27 anyone used IDEA as IDE for android? Mar 28 13:39:28 on some devices it is null Mar 28 13:39:34 others it is totally fine Mar 28 13:40:49 well thats probably due to default gallery ? "image/*" will just ask whatever is system default ? Mar 28 13:41:09 won't that mean that you have sony/samsung/others default thingy to cope with ? Mar 28 13:41:37 Expro: some people have. I haven't. Mar 28 13:41:49 how are you supposed to do it ? Mar 28 13:42:02 do what ? crop ? Mar 28 13:42:13 how, after 3 years of programming in C, do i still double free stuff? Mar 28 13:42:18 :( Mar 28 13:42:21 no, thats automatic when you say crop true Mar 28 13:42:32 how do I create something under /data/data/? Mar 28 13:42:45 I tried to go to File Explorer and just click Add, permission denied Mar 28 13:42:50 kanada^: thats why garbage collection is good - its error-prone (almost) Mar 28 13:42:53 oh, it's not double free, it's pointer arithmetic error, hooray! Mar 28 13:43:06 Expro, neg, i prefer to do my own allocs ty Mar 28 13:43:13 i am trying to figure out why the cropped file is accessible the first time round, but not the second time round Mar 28 13:43:40 mobydev, could it be you never closed the file handle? Mar 28 13:43:51 is the same true if you make the filename random ? Mar 28 13:43:55 i cant look at your code right now though :| Mar 28 13:44:01 ^ good question Mar 28 13:44:06 good question Mar 28 13:44:41 i will also try kaneda's suggestion and look for open file handles or inputstreams Mar 28 13:44:59 09:42:56 < Expro> kanada^: thats why garbage collection is good - its error-prone (almost) Mar 28 13:45:09 I'd actually say GC is generally NOT error prone, but w/e Mar 28 13:45:09 mobydev, just ensure you .close() the stream when you're done Mar 28 13:45:21 lov, i think he meant that having to manage your own memory is error-prone Mar 28 13:45:32 lov, which i agree with, although by now i feel like i should never get it wrong ;p Mar 28 13:45:51 yeah, i did mean that Mar 28 13:49:02 kaneda^: no luck Mar 28 13:49:35 funkbox, did you try flushing the output stream before closing? it's a long shot, but maybe something is failing to be written from the buffer? Mar 28 13:50:04 Expro, my problem was delete (*foo[0]) instead of delete ((*foo)[0]) Mar 28 13:50:13 it dereferenced the wrong thing Mar 28 13:50:51 kaneda^: yeah, i thought it did cleanup by itself, i shall try again Mar 28 13:51:08 funkbox, it usually does, but circumstances can leave stuff in the buffer Mar 28 13:53:04 kaneda^: this is why I'm happy to live in javaland. I can manage my own memory, but we're in the 21st century ffs Mar 28 13:53:18 lov, it's STILL half the speed of C on avg Mar 28 13:53:42 lov, better than python, but the NDK exists for speed Mar 28 13:53:46 kaneda^: depending on what benchmarks you use. JIT helps A LOT. There's also the tradeoff of running speed vs developer time and stability. Mar 28 13:53:55 kaneda^: for *dalvik* Mar 28 13:53:59 true, and JNI is expensive Mar 28 13:54:01 JVM is another thing Mar 28 13:54:05 p_l, jvm is another beast Mar 28 13:54:30 p_l, although according to oracle they're basically the same beast ;) Mar 28 13:54:53 kaneda^: stupid question, but it can handle multiple writers? Mar 28 13:55:05 funkbox, what happens when you open a file for write? Mar 28 13:55:48 kaneda^: oh i'm talking about JakeWharton 's tape Mar 28 13:56:08 you mean, a physical tape? Mar 28 13:56:19 e.g., magnetic tape w/ robot? Mar 28 13:56:58 ah no it's a qeueu library Mar 28 13:57:05 i thought you were familiar, my bad Mar 28 13:57:15 nope, sorry Mar 28 13:59:05 I can't seem to be able to insert anything into the filesystem anew Mar 28 13:59:43 like this, http://gauravstomar.blogspot.com/2011/08/prepopulate-sqlite-in-phonegap.html Mar 28 13:59:56 I already have a DB, I want to use it in this android app Mar 28 14:00:11 talking about speed, anyone got experience with renderscript Mar 28 14:00:16 im about to write image processing app Mar 28 14:00:36 and there is barely any useful info on web Mar 28 14:02:47 Sicp: phonegap ? Mar 28 14:03:00 yea Mar 28 14:03:01 you know there is #phonegap Mar 28 14:03:08 has nothing to do with Phonegap this time Mar 28 14:03:22 it's Android that won't allow me to place a file under /data/data/ where I need it Mar 28 14:03:23 oh, then you need super user priv Mar 28 14:04:33 yea, I wasn't able to implement this http://stackoverflow.com/questions/10633697/how-to-change-permission-of-ddms-file-explorer-sdcard because there is no 'su' Mar 28 14:05:04 it isn't my phone that I want to root, but the ADB shell to be able to do su, how is that done Mar 28 14:06:33 Sicp, the adb server runs on your machine, it connects with the phone Mar 28 14:06:38 you dont root adb, you simply run it as root Mar 28 14:06:44 if you want to be a super user on the phone you must root the phone Mar 28 14:06:47 I did do "sudo adb" Mar 28 14:07:01 that's on your machine, it doesnt give you any special permissions beyond the norm on the phone Mar 28 14:07:47 https://dl.dropbox.com/u/19390574/scort.png Mar 28 14:08:26 yeah cause you don't have su on the phone Mar 28 14:08:35 it's not rooted Mar 28 14:08:42 like kaneda^ just said Mar 28 14:08:46 hmm Mar 28 14:11:08 Expro: What do you need to know? Mar 28 14:12:33 well, minimal would be example explaining memory allocation, spreading work across threads and how synchronization works in this environment Mar 28 14:13:11 memory alloc in java is under-the-hood, and threading: http://developer.android.com/guide/components/processes-and-threads.html Mar 28 14:13:36 kaneda^: i mean in renderscript Mar 28 14:13:50 im too familiar with java Mar 28 14:14:06 oooh, renderscript is another beast! Mar 28 14:14:30 Expro, i've seen a tutorial on rendering in opengl in the NDK, that's as far as i got Mar 28 14:15:28 I think the general idea there is "don't worry your pretty little head about it". Most of that is under-the-hood stuff. Mar 28 14:16:07 i found the reason Mar 28 14:16:33 Sicp: your phone isn't rooted. adb connects to adbd, which runs on your phone, and just passes data for the shell back and forth to your local shell. The actual shell is running ON THE PHONE. Mar 28 14:16:35 there was an optimization in another part of code that was deleting my temp.jpg file. everything is fine now Mar 28 14:16:41 good bye Mar 28 14:16:45 perhaps, but since you cant debug renderscript, i woudl love to get knowledge not only by "trial-swear-error" approach Mar 28 14:16:51 Sicp: because your phone isn't rooted, adbd won't have permissions to run the shell as root. Mar 28 14:17:10 Expro, i'm not sure, honestly, but i find my way around needing to truly debug is logging, everywhere Mar 28 14:17:34 Sicp: regardless, you could always write a simple activity or service that will pull a file from the sdcard and write it to wherever you need it, app-side. Mar 28 14:17:45 and the reverse is true for pulling files from app private data Mar 28 14:17:46 kaneda^: I guess thats how it will end Mar 28 14:18:12 Expro, it's not so bad, there are log tags and logcat has nice filtering Mar 28 14:18:47 but logs are less useful in concurrent environment Mar 28 14:18:56 and thats what I am aiming for Mar 28 14:19:28 Expro, yah, for sure, you have to associate the log message with the thread id or whatnot Mar 28 14:19:30 Expro: To be honest, I never got much past swearing, trying other things, and reading the AOSP source code. Mar 28 14:19:44 but I did write a program to do that, lov http://gauravstomar.blogspot.com/2011/08/prepopulate-sqlite-in-phonegap.html Mar 28 14:19:59 doesn't make sense that if I can't do it through ADB, my little prog would be able to do it Mar 28 14:20:18 Gumboot: anyway, thanks for asking Mar 28 14:20:26 let me just try again Mar 28 14:20:52 I did a lot of printf debugging and found that for the most part I needed to simplify what I was doing. Mar 28 14:21:09 But I understand they've fixed a lot of that in 4.2. Mar 28 14:21:50 Sicp: *sigh* Mar 28 14:22:01 Sicp: the problem is that you need to push a file into a directory that only your program has permissions to access. Mar 28 14:22:12 Gumboot, i'm still using printf debugging, i cant seem to get anything other than allocs in ddms from ndk Mar 28 14:22:13 Sicp: the shell has DIFFERENT permissions than your application. Mar 28 14:22:23 Sicp: your application has permissions to that directory, which the shell does not. Mar 28 14:22:23 alright, I'm still using that program in the link to do it Mar 28 14:22:24 lov, i think you're up against a wall ;p Mar 28 14:22:29 yeah, fuck it. Mar 28 14:22:39 :D Mar 28 14:22:47 Mostly it's just a matter of writing your kernel in renderscript, and then making a handful of Java calls to push things in and pull things out. When your code gets that simple there's not so much room for non-obvious questions. Mar 28 14:22:48 we weren't all born knowing anything, kaneda^ Mar 28 14:23:01 Oh, and single-thread your caller. Mar 28 14:23:16 Sicp: note that the code in that sample is actually TERRIBLE. Mar 28 14:23:24 You MUST NOT hardcode /data/data Mar 28 14:23:28 lol Mar 28 14:24:08 Sicp: use http://developer.android.com/reference/android/content/Context.html#getFilesDir() Mar 28 14:24:22 that will get you /data/data/com.your.shitty.app/ Mar 28 14:24:48 Mornings! Mar 28 14:24:55 Sicp: also worth noting is that he calls "mkdir" instead of "mkdirs" Mar 28 14:25:01 which means that if the parent directory doesn't exist, it will fail. Mar 28 14:25:12 Sicp: the moral of the story here is that random tutorials on the internet can be garbage. Mar 28 14:25:27 * Gumboot curses repo sync for making him miss out on nice lunch. Mar 28 14:27:18 I'm having a problem with preferencescreen (ps from now on), I have a ps that it's a child of another ps (the root one), but when I try to access the child (click, tap) it crash and gives a android.view.WindowManager$BadTokenException: Unable to add window -- token null is not for an application Mar 28 14:27:47 lov: I should just hard code the directory, right? Mar 28 14:28:11 lov: and used fixed resolution layouts :P Mar 28 14:31:00 yes. Mar 28 14:31:03 portrait only. Mar 28 14:31:26 also, make your app run in the foreground at all times via startForeground; this is good for the customer experience as it minimizes cold start times (by never having cold starts) Mar 28 14:31:52 wow Mar 28 14:31:57 * StingRay_ runs off to try that Mar 28 14:32:34 just download the Audible app to see it in action ._. Mar 28 14:33:43 lov: Just a tip, if your application is debugable, you can run the shell as the application and access its data dir Mar 28 14:34:40 hey guys i'm getting an error in my layout file on this line xmlns:android="http://schemas.android.com/apk/res/android" Mar 28 14:34:52 it says Unexpected namespace prefix "xmlns" found for tag LinearLayout Mar 28 14:34:58 what do? Mar 28 14:35:34 Overv: interesting, clever idea. Mar 28 14:35:43 coco89: remove it? ._. Mar 28 14:35:58 lov: remove the whole line? It is something from a demo app Mar 28 14:36:03 so I don't know what it's meant to do Mar 28 14:36:37 coco... Mar 28 14:36:44 yes Vanscot Mar 28 14:36:52 Can you pastebin the layout somewhere? Mar 28 14:36:55 sure Mar 28 14:37:00 Or link the demo. Mar 28 14:37:32 http://pastebin.com/XGJYb650 Mar 28 14:37:43 remove line 14. Mar 28 14:37:49 xmlns should be in the outermost element, only. Mar 28 14:37:56 ^ Mar 28 14:38:02 also, that demo app is broken if it came like that. Mar 28 14:38:23 this is the demo http://www.framentos.com/wp-content/uploads/HelloNFC.zip Mar 28 14:38:37 So, any ideas about my problem? :-S Mar 28 14:38:47 lov: should I moev it somewhere else or remove it completely? Mar 28 14:39:07 10:37:49 < lov> remove line 14. Mar 28 14:39:16 ok Mar 28 14:41:28 thanks love Mar 28 14:41:39 :$ Mar 28 14:41:42 Love Mar 28 14:41:49 xD Mar 28 14:41:52 :D Mar 28 14:43:55 xD Mar 28 14:45:01 Say, if I'm using a PrefrenceScreen within a PreferenceActivity and said PreferenceScreen has a child PreferenceScreen, when I select this child, it start the new screen as a new Activity... Mar 28 14:45:25 Which means that the first PreferenceScreen and Activity (their context) are no more. Mar 28 14:46:01 But if I build all this programmatically (without xml layouts, fragments or another activities), how can I make it work? Mar 28 14:47:39 I get a token null is not for an application exception whenever I try to access the child screen. Mar 28 14:51:31 that sounds dirty Mar 28 14:52:02 Vanscot: so you just want a preference row, when clicked to launch an activity? Mar 28 14:52:18 Not quite... Mar 28 14:52:46 According to what I've read... Mar 28 14:53:12 If you nest a PreferenceScreen into another they behave in a certain way... Mar 28 14:53:19 Like a categorized menu... Mar 28 14:53:39 On which, if you click a category, a list is loaded and uses the screen. Mar 28 14:54:35 Or so is the behavior explained when using them with XML resources... Mar 28 14:54:45 Is it possible to reset an in-app purchase to act as if I have never bought it with my test account? Mar 28 14:54:55 But I can't use xml resources because the settings depend on the user. Mar 28 14:54:59 So I can make sure my 'restore' code does not give the items away for free. Mar 28 14:57:00 Vanscot: have you tried using com.harlem.Shake? Mar 28 14:57:10 I build all this preferences programmatically. Mar 28 14:57:12 Vanscot: does your app really work well using the preferences screen? Mar 28 14:57:24 mikedg_: yup, it does.. Mar 28 14:57:27 I don't know if many will agree with me, but using the preference screen sucks Mar 28 14:57:41 it's awkward, limited, just make your own junk Mar 28 14:57:44 Actually, I find it way more simple than using fragments. Mar 28 14:57:53 oh ok Mar 28 14:58:04 (Which should be the way to go) Mar 28 14:58:11 sure it's simple to make Mar 28 14:58:17 but usability Mar 28 14:58:35 Mmm, the usability is the same as in any android settings screen.. Mar 28 14:59:28 yeah they all suck Mar 28 14:59:44 suck as they might, they are "standard Android" Mar 28 15:00:21 if I see a settings screen not based on it, it feels weird :) Mar 28 15:00:34 dont try to emulate the settings screen Mar 28 15:00:47 that will just feel wrong Mar 28 15:00:50 make your own design Mar 28 15:01:00 There is no design on the app.. Mar 28 15:01:35 The idea is to keep the styles selected on the phone. Mar 28 15:03:38 Anyway, preferences are not that bad.. Mar 28 15:03:45 And are simple to use. Mar 28 15:03:50 Fragments, in the other hand... Mar 28 15:03:56 *sigh* Mar 28 15:05:02 a doddle Mar 28 15:10:18 hi all Mar 28 15:10:40 I have a tab host which keeps disappearing when user rotates screen Mar 28 15:10:47 how can i solve this? Mar 28 15:11:17 Without using tabs. Mar 28 15:11:27 They use way too much space. Mar 28 15:11:30 and this tab host have a web view with javascript mode enabled so if the web view takes more height, the tabs also disappears Mar 28 15:12:05 Vanscot u mean using Action bars with tabs? Mar 28 15:12:27 nick123: tabs are automatically put to actionbar, if there is enough space for it Mar 28 15:12:32 just use tabs if it makes sense Mar 28 15:12:46 I need them as a bottom tab Mar 28 15:12:49 timroes: Hey there, I did what you recommended and modified my app to write URI's but my reader isn't appearing even when I filter for scheme="goldtag" ? Mar 28 15:12:55 nick123: that in fact doesn't make sense :) Mar 28 15:12:57 nick123: I would just use actionbar, yes.. Mar 28 15:13:11 nick123: perhaps you want to head over to #iOS Mar 28 15:13:14 Does anyone know how to force NumberPicker to use the (old style) buttons instead of a wheel? Either with standard NumberPicker or SimonVT's backport Mar 28 15:13:34 nick123: that's a split action bar... Mar 28 15:13:38 timroes no one is talking about iOS, I'm just asking a q in a polite way man Mar 28 15:13:49 anyway thanks for the headsup dude Mar 28 15:13:56 yeah and bottom tabs are not android :) Mar 28 15:14:20 timroes: They are.. Mar 28 15:14:25 coco89: paste of whole classes and manifest please :) Mar 28 15:14:26 Split action bar.. Mar 28 15:14:35 timroes: sure thing! Mar 28 15:14:58 Vanscot: since when dos split actionbar have tabs at the bottom of the screen? Mar 28 15:15:13 They can look like tabs, for the user. Mar 28 15:15:19 http://developer.android.com/design/patterns/actionbar.html#considerations-split-action-bars Mar 28 15:15:25 last time i watched this tabs are still at the top :) Mar 28 15:15:31 In the end, what matters is what the user "thinks" it is. Mar 28 15:15:36 Not what they actyally are. Mar 28 15:15:52 i have no idea what you are talking about Mar 28 15:16:00 you mean that the user think actions are tabs? Mar 28 15:16:14 timroes: writer is http://pastebin.com/JKRQQfAW reader manifest is http://pastebin.com/M1suHhYj Mar 28 15:16:24 Some do. Mar 28 15:16:32 And you can make it look like that too. Mar 28 15:16:52 Vanscot: then there might be other flaws in your design, because if an action item does something, that the user think ' this might be a tab' you have other design flaws as well Mar 28 15:17:12 coco89: action should be NDEF_DISCOVERED Mar 28 15:17:23 timroes: i see trying now Mar 28 15:17:38 then skip line 28 and 29 since i guess you want to listen to all goldtag scheme urls Mar 28 15:18:03 if it won't work afterwards tell me, then i will also look at the writer :) Mar 28 15:19:54 timroes: worked a charm buddy, thanks! By the way how do I make use of the prefixes/hosts? as in if room101 needed to be used in a method. I would like to see if room101 is true and if so then fire a method that would query a database Mar 28 15:20:21 coco89: you can use getIntent().getData() to retrieve the url that has been scanned Mar 28 15:20:29 getHost() on that url gives you the room Mar 28 15:20:37 getPath() everything behind the host, and so on Mar 28 15:20:54 timroes, perfect. thanks! I will give it a shot :) Mar 28 15:21:24 remeber you need to call setIntent in the onNewIntene mthod Mar 28 15:21:38 otherwise getIntent will always return the origina litnent that ctivity was startet wit Mar 28 15:22:07 Ah okay, will make a note Mar 28 15:22:34 ofc if you only need to access the url in onNewIntent you can ofc directly use `intent` you don't need to set it Mar 28 15:24:52 Indeed for sure, hopefully I can get this structure working so today so I can start with the databases :D Mar 28 15:31:09 question Mar 28 15:31:23 do I require a credit card to test IAPs with a test account? Mar 28 15:37:24 ugh i need to figure out the flow of my app Mar 28 15:38:05 somehow selectively clear the backstack Mar 28 15:42:39 I'm incredibly annoyed by apps where I try to hit 'back' to exit but have to close 50 activities first before it finally exits Mar 28 15:42:47 * pragma- glares at Google Play Mar 28 15:43:30 here's where it would be nice to have an exit option in the menu Mar 28 15:43:31 yeah that's what i'm trying to avoid Mar 28 15:43:40 thats why "hold back to kill" is good feature Mar 28 15:43:58 * StingRay_ reminds priagma that the home key probably provides a shortcut to where he's going :) Mar 28 15:43:58 killing sucks Mar 28 15:44:12 no, i want the app to exit, not go to the background Mar 28 15:44:26 is there a special reason you need it closed ? Mar 28 15:44:34 cause would not the system do that if needed ? Mar 28 15:44:34 are you calling me special? Mar 28 15:44:43 unique :) Mar 28 15:45:44 the only way I know how to selectively kill activities in the back stack is to chain calls to startActivityForResult Mar 28 15:47:10 storkme: what is it that you're after? being able to press back and end up closer to the bottom of the back stack? Mar 28 15:48:06 besides, sometimes you want to go back to the first page in google play, but you end up pressing back to close ancient pages that opened from other intents Mar 28 15:48:29 Anyone have a good solution for this problem? I have a listview and the listview has cells with EditText in them. The activity is set to adjustResize in order to fix an issue with the soft keyboard covering up an EditText field when regaining focus a second time. The issue is that when one EditText loses focus, the last EditText on the screen automatically gains focus upon resize / keyboard dismissal. Mar 28 15:48:30 my app flow goes like Home->A->b->C->End, what i want is for the user to be able to hit back at any point, *until* they hit End, then A, B, and C should all be killed, and the user can only go back Home Mar 28 15:48:45 I'm having trouble clearing the cache of webview for basic auth. The only way is to completely exit the app and rei enter. So I've tried this: http://pastebin.com/UE86ymCr does anybody have suggestions? Mar 28 15:49:59 storkme: might be simpler to just use fragments Mar 28 15:50:10 I'm overriding onPageLoaded, onPageStarted, onRecievedHttPAuthRequest Mar 28 15:50:25 storkme: i agree with evanc. add fragment transactions to back stack, finish the activity to go back home Mar 28 15:51:41 i am using fragments where possible, I think my three activities A B and C have six or so fragments between them Mar 28 15:52:08 but unfortunately activity C has a viewpager in it... so it isn't an option to do a fragments-only approach :/ Mar 28 15:52:49 unless I did something nasty like put my viewPager in a ViewSwitcher... Mar 28 15:53:10 StingRay_, are you in the OpenGL channel as well? I've seen you before Mar 28 15:54:53 not at the mo Mar 28 15:55:07 I'm in the #maya channel Mar 28 15:55:39 where we talk about the end of the world stuff :) Mar 28 15:55:48 lol Mar 28 15:56:06 actually tis the name of an autodesk product Mar 28 15:56:20 that was named from an accent word for "illusion" Mar 28 15:56:48 when I place a file manually into pkgname/files/ I can access it just fine, but when I have it inside my assets in the project and run a program to copy it there (it does get copied) and then try to access it, it cannot access it Mar 28 15:56:58 I know about maya, but I figured something like that could really exist Mar 28 15:57:01 you never know ;) Mar 28 15:57:28 That's not terribly helpful: http://developer.android.com/reference/android/text/format/Time.html#format(java.lang.String) Mar 28 15:58:46 unity windows phone 8 addon is coming into public beta Mar 28 16:04:49 it's the exact same file... Mar 28 16:04:50 wtf Mar 28 16:07:40 it's because I'm the one placing it there as a user Mar 28 16:07:44 fucking permissions. Mar 28 16:08:16 sqlite? Mar 28 16:08:21 yea Mar 28 16:08:29 just create it Mar 28 16:08:35 what? Mar 28 16:08:35 then insert Mar 28 16:08:46 dude, I already have a very large DB Mar 28 16:08:56 how large ? Mar 28 16:09:09 lol Mar 28 16:09:15 it's lol large Mar 28 16:13:47 thats what she said Mar 28 16:15:21 mikedg_ lol Mar 28 16:16:40 IAB isn't working for me Mar 28 16:16:46 it couldn't verify the public key Mar 28 16:16:47 which is BS Mar 28 16:19:54 hi guys, is SpeechRecognizer online or offline? Mar 28 16:21:46 why so much inactivity here? Mar 28 16:22:09 how can you have much of nothing ? Mar 28 16:22:31 maybe tis end of week nearly Mar 28 16:22:44 because it's 9:22am on the west coast Mar 28 16:22:46 norbi: from 4.1 with the newest google search update it will be offline afaik Mar 28 16:22:53 StingRay_: like you can have a huge universe that mostly is empty then how it is big? Mar 28 16:23:10 cause it's not empty Mar 28 16:23:21 you think that space is a void ? Mar 28 16:23:24 StingRay_: mostly it is Mar 28 16:23:24 with nothing ? Mar 28 16:23:26 :) Mar 28 16:23:38 StingRay_: ah thats OT :D Mar 28 16:23:59 no in this channel we very seldom go offtopic Mar 28 16:24:01 really i promise Mar 28 16:24:10 timroes: thanks, so if i want to try out romanian or hungarian speech recog it will be offline? Mar 28 16:24:32 the user must download these before in their settings Mar 28 16:24:48 take care, i am just assuming, from how the google seach works Mar 28 16:25:08 i don't know if that stick 1 to 1 to the api, though i know that offlien speech is in geenral available due to some google search update Mar 28 16:25:13 aham, but for example romanian speech recog is downloadable right now? and can be used offline? Mar 28 16:25:34 norbi: wait Mar 28 16:26:29 norbi: no romanian is not availabel for offlien use yet Mar 28 16:26:46 timroes but it is available online?\ Mar 28 16:27:07 dutch, french, spanish, english, italia, brasil, portugese, russia, and german are availabel for offline use Mar 28 16:27:24 timroes where are you reading about this? Mar 28 16:27:26 also several languages I would say are east asia, but since i don't speak them i cannot read any of their names :D Mar 28 16:27:35 :D Mar 28 16:27:40 in settings -> language -> speech search Mar 28 16:27:55 but yeah romania is avialbale for online use Mar 28 16:28:05 and several others Mar 28 16:28:13 i guess most are Mar 28 16:29:24 timroes: thanks, that was very usefull, so if the api wont find the offline package installed, then automatically goes online? and how is that it doesnt need INTERNET permission? Mar 28 16:30:22 because you are using google search Mar 28 16:30:36 they offer that service for you Mar 28 16:30:39 and they have internet permission Mar 28 16:31:06 but i never tried it, maybe the speec recognition is run in your process, and maybe you do need internet permission? Mar 28 16:31:06 timroes im looking at this sample: http://code.google.com/p/adk-moto/source/browse/src/com/jmoyer/adk_moto/ADKMoto.java Mar 28 16:31:36 and this one is using SpeechRecognizer service Mar 28 16:31:58 im wondering if that service is offline or online? Mar 28 16:33:14 put your device in airplane mode and see if it works Mar 28 16:34:28 evanc: :D hehe ok, but why is there no reference about this? if its online or offline? Mar 28 16:35:48 norbi: since its implemented in Google Search, this might be subject to further changes Mar 28 16:35:55 e.g. the offline functionallity wasn't always there Mar 28 16:36:36 and i don't know if this class on some devices have other implementations (vendor specific) Mar 28 16:37:23 does anyone have a simple example of using a custom Action View (i.e. not using a system-provided widget) with the action bar? Mar 28 16:37:40 documentation is a bit skimp on that Mar 28 16:38:48 timroes: ok, so lets asume that in general speeking speach recog is online but whats the case with tts? im having the default navigation software and google maps and it has voice assistant in romanian, turn left, right etc.... and its a nice male sound not that robotic crap and its spelling is very good also Mar 28 16:39:38 but on google translate the tts is horrible, the hungarian is lot better, now tts on android is that online also? or the built in google tts knows only english and german and such... ? Mar 28 16:39:39 norbi: IIRC, Google Maps uses a hybrid online/offline TTS Mar 28 16:39:53 online if you have a good connection, but falls back to offline if you don't Mar 28 16:40:02 (note: I'm probably totally wrong) Mar 28 16:40:13 evanc: ok, but i cant find the online tts that has that great male or female voice Mar 28 16:40:17 look Mar 28 16:40:40 norbi: where would you found it? Mar 28 16:40:55 norbi: I doubt it's a public API Mar 28 16:41:09 http://translate.google.com/#auto/en/Ce%20face%20omul%20acela%3F Mar 28 16:41:19 look this one has a horrible voice Mar 28 16:41:21 norbi: why should it be in google translate/ Mar 28 16:41:28 who says that it is used there? Mar 28 16:41:41 timroes, because probably is the same service? Mar 28 16:41:49 apparently it isn't :-/ Mar 28 16:42:03 norbi: as it seem not :) Mar 28 16:42:25 evanc, so are you saying that the quality one tts is used by google? and we are using the crapy one? Mar 28 16:42:30 btw the german and english voices on translate.google.com are fine Mar 28 16:42:31 and its not public? Mar 28 16:42:45 yea the hungarian also Mar 28 16:43:21 http://translate.google.com/#auto/en/Kedves%20uram%2C%20%C3%B6n%20telefon%C3%A1lt%20be%20hozz%C3%A1nk%20az%20im%C3%A9nt%3F Mar 28 16:47:50 so do we have access to those tts voice that navigation software is using_ Mar 28 16:47:51 ? Mar 28 16:48:20 I doubt it, but I could be wrong. Go look through the TTS APIs and see what you can find Mar 28 16:48:54 evanc: TTS API s ? there are multiple google tts apis? Mar 28 16:49:16 norbi: http://lmgtfy.com/?q=google+TTS+API Mar 28 16:50:35 evanc: :)) i know how to search but u sayed apis and i wondered if there are multiple tts solutions provided out there by google Mar 28 16:52:50 evanc: it seems that pico is the default tts engine on android devices but there are more, like scox classic tts engine that can be isntalled Mar 28 16:53:05 how can i check out wich one is my navigation software using? Mar 28 16:59:19 i've been doing android/java development in my spare time for a few months now, i'm pretty comfortable with it, but i'm sure if an experienced java programmer looked at my code, they would say it could be written better, or i did things wrong. is there a book or some other documentation out there that will help me become better at programming Java, maybe something that goes into best practices that you guys would recommend? thanks Mar 28 17:03:53 timroes, hey so I did if (getIntent().getData().getHost().equals(room101)) { Toast.makeText(this, "lol", Toast.LENGTH_LONG).show(); } where room101 is a string variable and it doesn't show up? Mar 28 17:04:15 coco89: paste Mar 28 17:05:42 timroes, http://pastebin.com/9Fq2EeGL Mar 28 17:06:08 I'll paste everything one sec Mar 28 17:06:35 coco89: yeah that won't work Mar 28 17:06:47 timroes; oh really? Mar 28 17:06:50 you are listening on TECH_DISCOVERED Mar 28 17:06:58 what is right for the foredground dispatching Mar 28 17:07:07 but if you want to have the ndef discovered, you also need to listen to that Mar 28 17:07:15 and the url is only read to the ndef-discovered Mar 28 17:07:56 how do I just...refer to 1 file from assets; I don't want to open it using assetmanager.open() or anything Mar 28 17:08:04 timroes: ohh, I see! Mar 28 17:08:11 timroes: My bad I should've checked that, trying again Mar 28 17:08:20 I just want to get to use the path to the 1 file that has "something" in its name Mar 28 17:08:41 if you want to read the url while foreground dispatching, you will need to read it yourself from the tag, since during foreground dispatching you only get tech_discovered Mar 28 17:08:52 because I can't seem to use file:///android_asset/etc. it's not being parsed by the method I'm aiming for (not loadURI or anything like that) Mar 28 17:09:00 if you want to listen to it always (also when your app isn't started) use intent filter (as you did) and listen to ndef discovered Mar 28 17:09:09 that intents url will then be the scanned url Mar 28 17:10:28 Sicp: why not use asset manager ? Mar 28 17:10:54 timroes: okay so I've changed it to NDEF_DISCOVERED it stil doesn't work Mar 28 17:11:20 Sicp: thats just the standard way to open…….. assets Mar 28 17:11:30 coco89: again you are not trying to do foreground dispatching? Mar 28 17:11:47 timroes: nope, this is when the app is not in the foreground Mar 28 17:12:06 but the app is started when you scan the tag? Mar 28 17:12:11 timroes: yep Mar 28 17:12:32 and your activity is set to singleTop? Mar 28 17:12:38 its lunch mode Mar 28 17:13:45 Eppo: it's probably just a matter of experience, style guides, and design patterns. You could always ask around in ##java. Mar 28 17:13:50 timroes: http://pastebin.com/E6xUbAsn Mar 28 17:13:51 yep Mar 28 17:14:01 coco89: the singleTop would be in your manifest :) Mar 28 17:14:06 doesn't help ifyou send the class Mar 28 17:14:14 ah Mar 28 17:14:34 yes, launchMode="singletop" Mar 28 17:15:01 http://pastebin.com/gC5CKnT7 Mar 28 17:15:03 in general you might not want to use onNewIntent, sinec IIRC it will only be called if its already on the stack Mar 28 17:15:29 so might not be called if your app isn't running Mar 28 17:15:45 timroes: oh really, i thuoght it's always called when there's a new intent? Mar 28 17:15:54 nope Mar 28 17:16:09 afaik only if set to singleTop and a new intent is deliverd, while its already running Mar 28 17:16:10 they should have called it onnewintentreusedshiz Mar 28 17:16:41 while the app is in the foregruond you mean? Mar 28 17:16:47 leave off the last z for sazingz Mar 28 17:16:48 espeiclaly everything lower case, would have been very helpful :D Mar 28 17:16:52 coco89: either or Mar 28 17:17:00 lov: thanks Mar 28 17:19:03 timroes: I see, so I guess I could use onResume instead Mar 28 17:19:36 timroes: So onNewIntent is called when it received a new intent and app is in the foreground only? Mar 28 17:19:42 but take care onResume is also called when your app comes to foreground Mar 28 17:19:45 for WHATEVER reason Mar 28 17:19:54 not necessarily a tag scan Mar 28 17:20:01 timroes: oh yes Mar 28 17:20:15 but the if statement will take care of that I guess? Mar 28 17:20:40 without really thingking baout it, i would check in (a) onNewIntent and (b) onCreate if the intent as NDEF_DISCOVERED Mar 28 17:21:05 you could also check in onResume, but you should make sure, that you clear the intent after you handled, it because it won't clear itself Mar 28 17:21:27 and otherwise even when your app wents to backgruond and comes to foreground, onResume is called and still have the ndef_dsicovered intent as starting intent Mar 28 17:21:37 ah I see Mar 28 17:21:44 so onNewIntent is better? Mar 28 17:21:57 but that only happens if it's in the foreground hm Mar 28 17:23:26 I DON'T want to open the file in the assets Mar 28 17:23:34 i'm using Log.v() in my activity but no logcat entries occur. Am I missing something? Mar 28 17:23:48 coco89: onNewIntent AND onCreate Mar 28 17:24:01 Sicp: not even sure what you want Mar 28 17:24:10 check in both if NDEF_DISCOVERED was the action Mar 28 17:24:11 is this a phoneGap thing ? Mar 28 17:24:12 immediately after Log.v() i have a Toast message, and that works fine, so I know it's going through Log.v() Mar 28 17:24:13 ofc you will make a method for that, that you call from oncreate and onnewintent Mar 28 17:24:16 or an android thing ? Mar 28 17:24:45 timroes: so have the two if statements both in oncreate and onnewintent to both call the same method? :S Mar 28 17:25:22 i recommend in this case a good java beginners book Mar 28 17:25:41 heh Mar 28 17:25:44 so anyway i am now away finishing my work Mar 28 17:25:49 * StingRay_ thinks timroes should charge coco89 at extended private tutoring fees Mar 28 17:26:05 * coco89 wuold be fine with that :P Mar 28 17:26:06 dude i would just have made another thousand € .. Mar 28 17:26:14 i know Mar 28 17:26:15 lol Mar 28 17:26:16 :) Mar 28 17:26:18 sorry timroes Mar 28 17:26:18 :P Mar 28 17:26:30 na kidding, private teching fee is only 150€/h Mar 28 17:26:30 the channel is just full of coco89 Mar 28 17:26:52 in 3d/maya i only chafe £750 per day Mar 28 17:26:56 charge* Mar 28 17:27:02 that's a lot timroes ;p Mar 28 17:27:04 I just don't get why both onNewIntent and onCreate Mar 28 17:27:13 150 euros an hour lol Mar 28 17:27:20 * coco89 can't wait to be an android tutor Mar 28 17:27:39 kaneda^: hadn't we already the discussion about different countries and such :) Mar 28 17:27:58 timroes, yah, that's still a lot ;p Mar 28 17:28:12 StingRay_: in fact we also only charge around 1000€/day Mar 28 17:28:18 for teaching afail Mar 28 17:28:20 Hi Mar 28 17:28:28 values-sw600dp values-sw720dp-land <<< how do i get rid of these forever? Mar 28 17:28:50 timroes: well £750 per day it top top end for maya training Mar 28 17:28:52 Delete them? Mar 28 17:28:54 so that aint bad Mar 28 17:29:19 So where do I stick the if statement :S Mar 28 17:29:30 inside some method Mar 28 17:29:42 and have both onCreate and onNewIntent call that method? Mar 28 17:29:51 yeah Mar 28 17:29:53 coco89: honest now, don't you think he may have work to finish ? Mar 28 17:30:02 SimonVT: but they come back Mar 28 17:30:05 okay, sorry :3 Mar 28 17:30:09 i was going to finish my thesis today :( Mar 28 17:30:13 but now its all demolished Mar 28 17:30:17 * coco89 hides Mar 28 17:30:32 no panic, i already wrote 8 pages today :) Mar 28 17:30:43 that is for my standards quite a lot for 6 hours Mar 28 17:30:49 timroes: can you teach me how to write 8 pages in one day? :D huehue Mar 28 17:30:58 jk Mar 28 17:31:01 actually not, i have no idea how i do it Mar 28 17:31:05 normally i am around 2 pages/day Mar 28 17:31:10 coco89: A word by page. Mar 28 17:31:10 timroes, I appreciate your help I'll stop bugging you for.. today Mar 28 17:31:29 but somehow my boss said he is sticking me in my hotel room at droidcon to finish my thesis Mar 28 17:31:36 so i said okay, then i will finish it before droidcon :D Mar 28 17:31:41 SimonVT: have you used this ChartView library?https://github.com/nadavfima/ChartView Mar 28 17:31:44 so i wrote the last 3 days 11/10/10 pages Mar 28 17:31:47 and today already 8 Mar 28 17:31:51 Nope Mar 28 17:32:10 SimonVT: bummer Mar 28 17:34:56 * g00s is resigned to the reality he'll have to write yet another charting view Mar 28 17:34:59 hei guys...I just bought an Alcatel OneTouch 991 ... and I can't install the usb driver for it .... can it be that it's too new of a phone? Apparently it was released in 2012 Q3 ... Mar 28 17:35:17 i make it get the driver from the required folder, but it says it can't find it Mar 28 17:35:21 tested it on XP and also win 7 Mar 28 17:35:23 nothin' Mar 28 17:35:24 SimonVT: I'm trying to get it to display timestamps, but it does something funny with the labels Mar 28 17:35:25 any ideas? Mar 28 17:36:25 bogo10: have you uninstalled the device and manually set the driver during connection? Mar 28 17:39:35 g00s: what charting views have you written previously? Mar 28 17:41:04 write an extensible and adaptable one properly the first time Mar 28 17:41:17 * pragma- is quite happy with his graph library. Mar 28 17:41:35 Ankhwatcher: yeah. It still has the ! icon next to it in device manager ... grr, this is getting frustrating Mar 28 17:41:40 any other ideas? Mar 28 17:42:17 I also tested it on my notebook which runs Windows XP ... it still couldn't find the proper driver in the folder Mar 28 17:42:18 o.O Mar 28 17:43:29 * pragma- uses a modified version of jjoe64's graphview -- improved it with features like fling-scrolling, being able to hide/show series at runtime, and more Mar 28 17:44:30 Open source it Mar 28 17:45:00 it is Mar 28 17:47:34 I'm happy with how this one looks, but it doesn't seem like there is any way to get timestamps on here. Mar 28 17:47:55 pragma-: can you one graph long on the x axis and Double on the Y? Mar 28 17:48:14 s/you/your Mar 28 17:49:49 it uses double for x and y Mar 28 17:53:56 I'm currently trying to figure out where the values I am getting in my LabelAdapter are coming from in https://github.com/nadavfima/ChartView/blob/master/ChartViewLib/src/com/fima/chartview/ChartView.java Mar 28 17:58:19 they come from the width() function of another class! further down the rabbit hole I go! Mar 28 18:01:40 what is the most efficient way to cast shadow on a layout? Mar 28 18:02:45 why would you do that Mar 28 18:02:58 pragma-, ;O where is your library? I'm going to use graphview, but sounds like I want to use your lib instead :) Mar 28 18:03:58 How would one track how long their app has been open and visible on a device? Basically trying to track usage statistics for the player. Mar 28 18:04:02 player/user Mar 28 18:04:40 jdawes log onResume and onPause Mar 28 18:05:38 Yeah, but if I want to know app wide that doesn't work if I've got multiple activities does it? I guess I could send the difference between onResume and onPause to a singleton which could add the time to the ongoing time total? Mar 28 18:06:10 I've created a private Thread class in my activity. How can I get the context of my Activity within the Thread? Mar 28 18:06:18 xorgate: see above Mar 28 18:06:20 end goal: append text to a view Mar 28 18:07:06 hesperaux: https://github.com/pragma-/networklog Mar 28 18:07:20 i know I could pass the view into the Thread class constructor, but that doesn't feel right to me Mar 28 18:07:26 pragma-, thanks :) Mar 28 18:07:59 jdawes you could use preferences for it.. only 1 is gonna be active at a time Mar 28 18:09:47 xorgate: That's true, so I could just grab the preferences time and add to it in onPause in each activity. Set the start time in onResume. Thanks. Mar 28 18:09:59 precisely Mar 28 18:10:28 your act has a long member to store system.currentmillis in onresume and calc in onpause Mar 28 18:11:27 hesperaux: pass the context to the thread or store the context in some global object that they thread can access Mar 28 18:11:57 pragma-: is your network logging app in the play store? Mar 28 18:12:22 yes Mar 28 18:12:41 cool, I'll throw it on my N7 and give it a whirl Mar 28 18:13:03 i trust you're rooted Mar 28 18:13:14 the N7 is Mar 28 18:15:18 lol Mar 28 18:15:31 anyone here have much experience with JS interop classes? i'm debugging mine on a 2.2 device and my method setResult(Object obj) is always getting called with a null parameter, no matter what I specify in the JS call Mar 28 18:17:16 pragma-: I was too fast for it and it crashed Mar 28 18:17:33 I sent you the crash log if you want to have a look Mar 28 18:17:36 it's working now Mar 28 18:18:07 * pragma- peers around suspiciously. Mar 28 18:18:21 yes, put the crash log somewhere Mar 28 18:19:04 what do you mean, too fast for it? what did you do? Mar 28 18:19:42 pragma-: I started the app and immediately hit the button to turn on logging Mar 28 18:20:07 presumably that caused the app to go try do something which requried root, which it did not have yet Mar 28 18:20:15 so it froze up Mar 28 18:21:25 <_br_> Is there any way to run a android image via the emulator and connect it up to a browser running on my host so that I can do google chrome debugging? (remote debugging). I'd like to test some web stuff I'm working on and for that I'd need a chome mobile browser.... Mar 28 18:21:45 pragma-, okay. I thought there might be a safer way but i suppose that is fine Mar 28 18:23:16 Does the holo theme accept color changes? Mar 28 18:23:30 like can i have the tab color be red rather than the cyan it usually is? Mar 28 18:24:19 _br_: isn't that what the google web driver thing is for? (in the SDK manager) Mar 28 18:24:40 do0ob: http://jgilfelt.github.com/android-actionbarstylegenerator/ Mar 28 18:25:07 _br_, try using bridged wifi in the emu? Mar 28 18:25:46 join #Branch Mar 28 18:25:47 that is so cool Mar 28 18:25:52 timroes: thanks Mar 28 18:25:54 <_br_> evanc: Never heared of that, will check it out thanks! Mar 28 18:26:12 _br_, i think i'm mistaken about that suggestion btw Mar 28 18:26:35 _br_: I've never used it, but it rings a bell Mar 28 18:27:00 <_br_> hesperaux: Hm, no problem, appreciate the comment ... maybe evanc's answer will solve this Mar 28 18:27:24 <_br_> cheers guys, will go back to rtfm for google web driver.. Mar 28 18:27:33 _br_, sure thing. I do see the ability to emulate a gsm modem. Perhaps that bridges your host's internet Mar 28 18:35:21 hmm what are the reasons that would prevent async to go to onpostexecute? Mar 28 18:38:44 riccoski: doInBackground threw an exception? Mar 28 18:38:53 the doinbackground never finishes Mar 28 18:38:57 android destroys it Mar 28 18:39:01 or the main thread is blocked Mar 28 18:39:16 user turns the device off Mar 28 18:39:19 the app crashes Mar 28 18:39:37 the reasons are numerous :) Mar 28 18:39:39 another async task is blocking that one when executed serially Mar 28 18:40:03 the version of the platform on your phone just doesnt call onpostexecute Mar 28 18:40:29 onPosexycute Mar 28 18:41:04 onPOSIXecute? Mar 28 18:53:13 How can I get a double to output with all of it's trailing zeros? Mar 28 18:53:25 as a string Mar 28 18:56:36 Can you provide an example, because it's not all clear what you mean Mar 28 18:57:37 Ankhwatcher: probably String.format() ;) Mar 28 19:00:22 I'm trying to get from long to int and back again, here is what happens currently: http://pastebin.com/jH97Csyh Mar 28 19:00:29 damnit Mar 28 19:00:39 long to Double and back again Mar 28 19:04:43 I've updated that pastebin to show exactly what methods I'm using Mar 28 19:06:25 you're using doubleToLongBits() Mar 28 19:06:45 just cast your double to long Mar 28 19:06:54 and you don't need Long.valueOf(input).doubleValue() either Mar 28 19:06:59 just write (double) input Mar 28 19:07:29 okay, ta Mar 28 19:07:36 it fucking works Mar 28 19:07:42 and it needed a lot of fucking effort; HA! Mar 28 19:10:09 romainguy: that works, which is really confusing, because that's what I thought I started with. Mar 28 19:11:54 If I begin with writing my app to work with a local database and later decide to hook it up to a remote database, would half the workload be over with or would I have to implement it in such a different way that I'd just be wasting my time? Mar 28 19:12:06 oh I remember now, I went down the rabbit hole because I got "Cannot cast from Double to long" Mar 28 19:12:31 Double is not double :) Mar 28 19:13:44 anyone? Mar 28 19:16:05 romainguy: yes, I see what you mean, I just need to double dubble = myDouble, etc Mar 28 19:16:05 I'm getting a filenotfoundexception on Context.openFileOutput(). The exception says "permission denied", but this method is suposed to create on the internal storage, where I should have permissions Mar 28 19:16:48 coco89: we've told you this many times already, but we Very Strongly Recommend that you not point to a remote database, for several reasons. Mar 28 19:17:08 if you do decide that you want to communicate with a database via the internet, you'll need to find appropriate drivers to do it with, since sqlite won't cut it by default. Mar 28 19:17:53 lov: If I use a webservice then it would be fine? Mar 28 19:18:06 well, it would at least be shielding the database behind a webservice. Mar 28 19:18:19 I'm assuming that your webservice would be horribly misconfigured but that's not relevant here. Mar 28 19:18:27 lol Mar 28 19:18:33 maybe, but I've gotta start somewhere right? Mar 28 19:19:00 This is how I'm calling it context.openFileOutput("DeviceCode", Context.MODE_PRIVATE);, where "context" here is an activity Mar 28 19:19:29 lov: so I was thinking of just using a local database and later modifying it to connect to a database via a webservice. Would that be ideal i.e would it take half the work load off? Mar 28 19:20:20 or would I just be better off writing it to be used with a remote database to start with? Mar 28 19:20:53 coco89: find an android developer :) Mar 28 19:21:00 * lov sighs Mar 28 19:21:10 I don't understand why that's a hard question to answer :S Mar 28 19:21:13 coco89: you realize that the api calls for a local database aren't the same as for a remote one. Mar 28 19:21:30 additionally, if you're tempted to execute arbitrary queries via a webservice, I'd like to introduce you to little bobby drop tables Mar 28 19:21:51 hey, leave little bobby alone Mar 28 19:22:58 So you suggest I start learning to use a remote database instead Mar 28 19:23:05 awesome Mar 28 19:23:19 when did I suggest that? Mar 28 19:23:58 I strongly recommend that you just use a local database while you're figuring out wtf you need. When you want to migrate, you can write an abstraction layer so that you can point to either a local or a remote destination. Mar 28 19:23:59 lov: you said they use different api calls, that would suggest that I'd be better off writing my app to communicate with a remote database rather than starting off with a local one Mar 28 19:24:11 * lov sighs heavily Mar 28 19:24:24 tell you what, bud. Find me the jdbc drivers that work with android, we'll talk. Mar 28 19:24:55 the short version is "you really, really, really don't want to expose your database to the internet" Mar 28 19:25:00 which is EXACTLY WHAT YOU ARE PLANNING TO DO Mar 28 19:25:16 hey ppl Mar 28 19:25:20 the longer version is "SQL is not the same as HTTP" Mar 28 19:25:45 is threre a flag to cancel current Activity when starting same activity? Mar 28 19:25:45 to which I also strongly recommend that you not attempt to encode raw SQL queries in your HTTP requests, as that's the gateway to SQL Injection exploits Mar 28 19:26:10 lov: I see Mar 28 19:26:23 15:21:03 < g00s> coco89: find an android developer :) Mar 28 19:26:25 just do this. Mar 28 19:26:29 lov: why? Mar 28 19:27:33 lov: are we still going in circles on "dont' do raw db from android" from a few days ago? Mar 28 19:27:52 lov: is that today? Didn't this conversation happen last week some time? Mar 28 19:28:34 Ankhwatcher: remember, professional developers don't know what we're talking about. Goes double for pro security folk, we're just trying to keep innovation down. :P Mar 28 19:29:11 dragorn: wait, who's we? Mar 28 19:29:14 but I'm not planning to do a war db from android Mar 28 19:29:16 *raw Mar 28 19:29:27 Ankhwatcher: i gave up on this debate days ago ;P Mar 28 19:29:48 WarDB Mar 28 19:29:54 sounds like a good project Mar 28 19:30:06 brb Mar 28 19:30:07 it'll really stick it to Mongo Mar 28 19:30:27 Ankhwatcher: saves on infrastructure costs, spread your db across all your users :P Mar 28 19:30:45 dragorn: bitDB Mar 28 19:31:25 dragorn: Warning, please email your developer before turning off your phone Mar 28 19:32:34 well I've got to ramble on, compatriots. Enjoy your respective days/weekends/easter eggs Mar 28 19:37:43 thanks guys lol Mar 28 19:37:47 i figured it out Mar 28 19:40:17 i had to ask because i had no errors Mar 28 19:44:09 i'm trying to implement an ActionProvider with a submenu, where one of the submenu items is a 'widget' with a textbox and button. is that not allowed? can one only place widgets directly into the actionbar itself as an ActionView? Mar 28 19:45:23 hey ppl what does "add unimplemented methods" fix do in eclipse? Mar 28 19:45:43 It adds stub methods for unimplemented methods for the interface you're implementing Mar 28 19:46:04 It may also do this if you haven't imported some classes in your functions yet Mar 28 19:46:04 it means you've declared some kind of class as either implementing an interface or extending an abstract class with unimplemented methods which cannot compile until those methods are implemented Mar 28 19:46:20 so eclipse will provide stubs of those unimplemented methods, with empty bodies Mar 28 19:46:52 I have a dialog where the most likely action is the positive one, but it puts that button to the far right. Is there a better solution than to switch positive and negative manually? Mar 28 19:46:58 ok I need to gtfo Reddit because I started to upvote the best answer to that question in IRC. Mar 28 19:48:02 I don't even know where you'd click to do that. Mar 28 19:49:05 I know, I looked at the nick and thought, where's the arrows? Mar 28 19:59:30 Hey guys, I'm really struggling with basic authentication and webview. When I authenticate I can't clear credentials. Which means the user has to exit the app and re-enter if they want to log out or if they entered in their username/ password wrong. Not a smooth experience. I'm using onRecievedHttpAuthRequest, but it's only loaded the first time. Here are some of the things I've tried to clear the cache/database/headers ht Mar 28 19:59:30 tp://pastebin.com/UE86ymCr Mar 28 19:59:46 Any advice is more than welcomed. I've been up all night working on this to no avail. Mar 28 20:21:52 If anyone wants to discuss a possible collaboration, PM me Mar 28 20:23:29 god you make it sound so tempting Mar 28 20:23:42 ;) Mar 28 20:25:33 Well, I try...I can't advertise for app collaborators here, as in, make a juicy pitch to developers Mar 28 20:25:40 correct Mar 28 20:25:42 So I won't Mar 28 20:25:43 so why are you trying? :) Mar 28 20:26:27 Sarcasm, evanc Mar 28 20:27:58 you missed my point. The "no advertising, please" doesn't really mean "please don't use these exact words" Mar 28 20:28:26 Mmkay Mar 28 20:31:11 go to workforpie or carrers2.0 or elance Mar 28 20:31:24 i.e. apporpriate channels for recruitment Mar 28 20:31:36 i hate java and i hate android, fu Mar 28 20:31:59 i wanna work for that guy] Mar 28 20:33:13 Who? Mar 28 20:33:33 speakingcode-wor, those are IRC channels? Mar 28 20:35:34 :P Mar 28 20:40:16 no i mean channel in the general sense, like avenues, means, whatever. they are websites Mar 28 20:40:55 workforpie.com, careers2.0 is part of stackoverflow.com and elance.com Mar 28 20:51:27 speakingcode-wor, I doubt that a profit-sharing system would work there Mar 28 21:00:19 hi guys Mar 28 21:01:03 im really new to making android apps and i am using the ADT, when i create an image button there is a space to the left and top of the image button where it wont touch the edge of the screen, anyone know how to fix this? i tried changing the padding on the layout but that didnt change anything =[ Mar 28 21:02:01 here is my code http://pastebin.com/N7zxFuKz Mar 28 21:12:20 anyone know how to do this? Mar 28 21:15:41 I'm pretty terrible with layouts but it probably has to do with the gravity or the parent. I really wish I could help but it always takes me a really long time to get a layout how I want it. Mar 28 21:16:06 thats ok Mar 28 21:16:10 ill look into those, thanks =] Mar 28 21:16:20 KrizOne: I suspect you don't actually want ImageButton Mar 28 21:16:28 evanc oh ok Mar 28 21:16:41 i dragged in a regular button and that had the space there aswell Mar 28 21:17:02 you probably want an ImageView with a state drawable (so it gets the touch highlights and whatnot) Mar 28 21:17:39 ah ok thanks =] Mar 28 21:17:41 maybe set android:layout__marginTop="15DP" or instead of top left or something. Mar 28 21:18:53 oh if i make it an imageview it doesnt have that border Mar 28 21:18:55 cool thanks guys :D Mar 28 21:28:32 So CharSequence takes in ints for its perameters, is there anyway I change that to a double? Mar 28 21:28:43 ok, who's the photography nuts here? anyone wanna buy my 70-200 f/2.8L? heh Mar 28 21:29:26 pfn: lmao I just hate how lenses only work on one brands body. Mar 28 21:29:54 I have really good cannon lenses but can't use them on a nikon Mar 28 21:30:00 pfn: if I were fully employed Mar 28 21:30:02 pfn: I'd be interested Mar 28 21:30:06 agy2154: Parameters where? Mar 28 21:30:09 pfn: I have the 70-200/f4 Mar 28 21:30:19 CharSequence is an interface, it doesn't take anything. Mar 28 21:30:21 pfn: tho honestly I don't use it much Mar 28 21:30:26 kakazza: public abstract CharSequence filter (CharSequence source, int start, int end, Spanned dest, int dstart, int dend) Mar 28 21:30:39 I have the 70-200 f/2.8L that I've been wanting to get rid of, I want to get a new espresso machine Mar 28 21:30:45 and my wife is forcing me to sell unused toys, heh Mar 28 21:30:54 pfn: I usually hang out more at the wide-angle side of things Mar 28 21:31:02 I have a 17-35 f/2.8L as well Mar 28 21:31:05 agy2154: Well,... these _are_ ints. start, end etc don't make sense as doubles. Mar 28 21:31:09 that's for sale, too Mar 28 21:31:09 heh Mar 28 21:31:13 "Start at the 3.14th character" Mar 28 21:31:17 kakazza: I want to take decimal places too... I know I can multiply it by a value of 10 and then devide it later on Mar 28 21:31:39 pfn: how much? Mar 28 21:31:49 agy2154: Decimal places for what? Mar 28 21:32:06 dragorn, a little under whatever the going market rate on ebay is Mar 28 21:32:29 kakazza: I mean if I want to set a max and min value using the characterspace users won't be able to enter tenth, hundreths place, etc. Its for a degree value. Not radians. Mar 28 21:32:33 And what you describe is not CharSequence taking ints, but a public method of the Filter class, returning a CharSequence. Mar 28 21:33:14 I'm not sure what you're getting at. Can you provide an example? Mar 28 21:34:49 kakazza: http://tech.chitgoks.com/2011/06/27/android-set-min-max-value-an-edittext-accepts/ but that will only accept whole values so the user isn't able to enter a decimal place in the textview which is an issue Mar 28 21:36:23 agy2154: not only between manufacturers, but same manufacturer with different sensor sizes (canon ef vs ef-s) Mar 28 21:37:02 Ah, now I see get what you want. Mar 28 21:37:15 i was thinking "maybe get an entry dslr --> aps-c --> ef-s lense" but then realized the lens investments wouldn't carry over to full frame -- at least from what i can tell Mar 28 21:37:43 g00s: Is hasselblad good? Mar 28 21:37:51 yeah :) Mar 28 21:38:08 good luck if you need that serviced though ;) Mar 28 21:38:37 kakazza: I can convert it to an int and then back to a double but the problem is its limited to a certain length then so I might ahve to drop everything after that in the decimals. Mar 28 21:39:00 g00s: haa. I'm pretty sure the person who would have enough money to own one would just throw it out. Mar 28 21:39:13 pfn: selling camera stuff for an expresso machine? thats criminal ! Mar 28 21:39:25 *espresso Mar 28 21:39:46 g00s, meh... I rarely get a chance to shoot photos Mar 28 21:39:49 I'll shoot espresso instead Mar 28 21:41:05 Is Hasselblad better than leica? Mar 28 21:42:28 What is the best way to manage database access in android? Should i setup a connection manager class and instantiate it within Application? Mar 28 21:42:57 agy2154: What stops you from doing it like the guy in the blog did it just for Doubles? Mar 28 21:43:47 He did it just the way you need it, replace 'int' with 'double' where necessary. Mar 28 21:43:51 kakazza: CharSequence takes in ints and not doubles. Mar 28 21:44:08 Ok, now you show me where CharSequence takes arguments. Mar 28 21:44:20 You mean the Method _RETURNING_ a CharSequence? Mar 28 21:44:31 Because that's a Method, not a CharSqeuence taking anything. Mar 28 21:44:47 g00s, http://www.1st-line.com/store/pc/La-Nuova-Era-Cuadra-Commercial-Espresso-Machine-V2-B101-B108-93p4420.htm <-- that's what I'm using my funds from selling photo gear to buy Mar 28 21:45:32 kakazza: yeah i think .... http://developer.android.com/reference/android/text/InputFilter.html Mar 28 21:45:36 _HE_ implements min/max, for ints. Take his implementation, change to double use it like "et.setFilters(new InputFilter[]{ new InputFilterMinMaxForDouble(0.9, 7.6);" Mar 28 21:46:14 pfn: Wouldn't it be more affordable to stop by your local officer shop? Mar 28 21:46:15 He subclassed InputFilter. He showed you how to do it for ints. Again, replace 'int' with 'double' where appropriate. The "int" paramters have fuck all to do with the range. Mar 28 21:46:26 pfn: wow. for home use ? Mar 28 21:46:36 g00s, yeah Mar 28 21:46:48 can it handle bacon espresso ? Mar 28 21:47:00 kakazza: Alright. I'm going to check it up again. I hope it works this time. Mar 28 21:47:10 agy2154, ROI on it is probably under 2 years if I drink coffee daily Mar 28 21:47:15 at starbucks prices Mar 28 21:47:31 $2.50 for a double-shot daily repays itself in under a year Mar 28 21:47:55 pfn: I guess. Did you add the price of the ingredients? Mar 28 21:48:11 agy2154, not quite, but beans aren't *that* expensive Mar 28 21:48:20 Hi, im learning java so I can write Android apps. Do I need to know awt/swing APIs? Mar 28 21:48:25 I usually buy espresso beans @ $9 per 250g or so Mar 28 21:48:30 Miesco: no Mar 28 21:48:35 and each double-shot is about 14-18g Mar 28 21:48:52 agy2154: The code looks wrong. The comments suggest so too. Look at the last one, it contains a SO link. Mar 28 21:49:05 Miesco, you don't, but know how to work with awt/swing is *tremendously* helpful to working with android Mar 28 21:49:38 Miesco, particularly, it's understanding about using event loops, and writing blocking code outside of that loop Mar 28 21:49:41 pfn: as long as you don't use that knowledge to programmatically construct your layouts Mar 28 21:49:55 Miesco, generally, if you have any UI programming experience, it generally translates well to being on android Mar 28 21:50:12 same concepts apply pretty universally across UI programming Mar 28 21:50:48 agy2154, as for the price of that machine, that's a low-end price (of the upper spectrum) Mar 28 21:50:49 kakazza: yeah the code is flawed. Mar 28 21:51:05 most HX machines go for around $1500-2500, and home machines can cost as much as $6500 or so Mar 28 21:51:29 pfn: Okay i'll read the AWT/Swing chapters Mar 28 21:51:51 pfn: yeah. Commercial machines can cost thousands of dollars. I mean if you drink coffee a lot I can see why you would want your own machine at home. Mar 28 21:52:49 agy2154, s/can/do and more Mar 28 21:53:36 Does anyone know how to implement an editText that doesn't bring up the android keyboard? I want the text to be input by custom buttons but I don't want the android keyboard to pop up when touched. Also, I want the cursor to be visible. Mar 28 21:53:39 Miesco, well, don't read too much into it, primary things to understand are using event listeners (akin to ClickListeners, TouchListeners, etc. on android) and the EventDispatchThread Mar 28 21:53:52 i just drink water. problem solved ~ Mar 28 21:54:14 jdawes, android:windowSoftInputMode="stateAlwaysHidden" Mar 28 21:54:16 g00s, my house has a $400 RO filter that I plumbed in :p Mar 28 21:54:23 in your activity in the manifest Mar 28 21:54:32 kakazza: found another problem. It won't let your replace your value after it reaches the maximum int. Ill probably end up checking the value before going on the next activity. Mar 28 21:54:42 kaneda^: OK, I think I came across that solution earlier in the week but I'll give it a shot, thanks. Mar 28 21:55:05 np Mar 28 21:55:49 kaneda^: Still comes up. Mar 28 21:56:12 jdawes, http://stackoverflow.com/a/1109108 <-- tried this yet? Mar 28 21:56:14 kaneda^: Does it have anything to do with the EditText having focus on the start of the activity? Mar 28 21:56:31 jdawes, yes and no, if it says never show the soft keyboard then it shouldnt matter if an edittext has focus Mar 28 21:56:33 wut, git-annex doesn't support windows? i wonder if its because its written in Haskell Mar 28 21:58:40 Will the slide keyboard act the same as the soft keyboard? Mar 28 21:58:55 Like if I am listening for specific keys. Mar 28 21:59:00 kaneda^: No luck on the other method. Mar 28 21:59:15 jdawes, dang, someone with more experience will have to help, i'm out of ideas Mar 28 21:59:32 kaneda^: No problem, I've been dealing with this on and off this week. Mar 28 21:59:51 pfn: does the espresso machine run android :P Mar 28 22:00:06 i mean, for $100, i should be able to connect to it from the internet Mar 28 22:00:10 *1000 Mar 28 22:00:23 OK, so does anyone know how to disable the android keyboard for an EditText view but still have the cursor be present in the EditText? I would like to input text with custom buttons but still see where the cursor is located. Mar 28 22:01:11 pfn: yeah just get a development kit and make it automaticly do your coffie from anywhere in the world Mar 28 22:01:51 pfn: Just kidding. I would never mess with electronics. Mar 28 22:02:41 agy2154: you should be able to program the machine from your phone ;) Mar 28 22:03:26 g00s: I want to get a board that I can connect to my android phone. Maybe with a camera on it. I have a nice idea. Mar 28 22:09:42 jdawes, i have no idea the technical answer to your question, but i know that if i hit the back button with the keyboard up, it keeps the cursor in the edittext. Can you simulate that behvavior on the user's behalf? Mar 28 22:09:58 just a long shot Mar 28 22:11:17 He could implement his own keyboard. Mar 28 22:11:35 if he did that the user would have to choose his input method Mar 28 22:12:42 jdawes: does hiding the keyboard (programmatically) remove the cursor from the EditText? Mar 28 22:13:15 evanc: I don't think so. Mar 28 22:13:19 hesperaux: nope Mar 28 22:13:38 I use a custom keyboard in my app for certain edittexts. The default one just doesn't show up. Mar 28 22:13:51 i bet that the edittext object has methods that call the keyboard onclick. I doubt the keyboard itself implements the cursor. Therefore, maybe he could extend EditText into a new class and implement his own onClick method? Mar 28 22:14:12 kakazza: yeah and don't some devices have that swipe crap which is on top of the activity? Mar 28 22:14:12 kakazza, oh, okay. i didn't know that was possible. That is definitely an option Mar 28 22:14:24 * hesperaux uses swype Mar 28 22:14:28 KeyboardView afaik. Mar 28 22:15:07 I didn't mean that swipe in general. I ment like general handwriting recognition. Mar 28 22:15:32 oh i see what you mean Mar 28 22:15:42 agy2154: like https://play.google.com/store/apps/details?id=com.google.android.apps.gesturesearch ? Mar 28 22:15:46 like the galaxy Note series? Mar 28 22:15:58 g00s, if only, heh Mar 28 22:16:26 jdawes, make the edittext not receive focus, set focusable=false or something Mar 28 22:16:37 jdawes, that should prevent the keyboard from showing up on it Mar 28 22:16:40 evanc: yeah thats what i ment? Mar 28 22:16:45 although, that probably prevents a cursor from appearing as well Mar 28 22:17:26 Can I post my library for people to use on Git Hub? Mar 28 22:17:34 For free? Mar 28 22:17:35 agy2154, why not? Mar 28 22:17:40 github is free Mar 28 22:17:43 unless you want private repos Mar 28 22:17:51 pfn: Ohhh I was wondering if it was a part of their paid plan. Mar 28 22:18:34 pfn: Thanks. No I was just making my own version of the switch backport. This one will have the holo light and dark theme, switch preferences and also RTL support. Mar 28 22:18:34 agy2154, it's only paid if you want private or are over their quota Mar 28 22:20:14 pfn: does code.google has a quota? Mar 28 22:20:20 *have Mar 28 22:20:21 jdawes, i still think that making your own widget that extends EditText is probably the nicest way to do this Mar 28 22:20:23 agy2154, I don't think so Mar 28 22:20:33 agy2154, the quota is relatively large, iirc Mar 28 22:21:52 code.google.com is dead and yes, it has a quota. Mar 28 22:22:04 kakazza: dead? Mar 28 22:22:28 Well, more and more projects move to github, I don't see the same for Google Code. Mar 28 22:22:41 Pull Requests etc make github a worthwhile place. Mar 28 22:22:57 I moved to github, because back in the days, Google Code didn't have git support. Mar 28 22:23:01 hesperaux: What would you put inside of it? What method needs to be overidden in order to not show the android keyboard. Mar 28 22:23:10 googlecode added git support somewhat recently Mar 28 22:23:15 jdawes, i'm trying to figure that out now Mar 28 22:23:16 I know. Mar 28 22:23:29 jdawes, just make the edittext not focusable, and override it to always force the cursor to be shown Mar 28 22:23:39 evanc: I tried to remove the keyboard when the EditText is selected, the result is the keyboard trying to pop up, causing a jarring effect when it is then forced down. Mar 28 22:23:40 a simple subclass should be able to do that, I imagine? Mar 28 22:23:42 But people still post .diff files because there are not pull requests last time I checked. Might have changed. Mar 28 22:24:06 kakazza, well, they don't directly have pull requests or something Mar 28 22:25:29 Since this is #android I'll try to keep it short. If you're going to host a library based on other libraries which are already on github, put it there. Mar 28 22:25:43 You can also ttly stalk JakeWharton there! Mar 28 22:26:59 kakazza: I'm going to try to edit android's class Mar 28 22:27:16 kakazza: and add a couple of things to it Mar 28 22:28:54 github pull requests are quite convenient, though, it gets people submitting much more stuff than they would otherwise, normally Mar 28 22:29:27 Absolutely Mar 28 22:29:59 i'm not even sure why google has that product (google code). doesn't seem like its really in line with their core businesses Mar 28 22:30:07 which means … i give it 4 more years :D Mar 28 22:30:21 google code exists simply to foster opensource Mar 28 22:30:35 which google doesn' treally care much about, unless it has to do with their core business Mar 28 22:30:49 well, it uses and offers much open-source as part of its core business Mar 28 22:31:02 so they might as well offer their own opensource code hosting Mar 28 22:31:06 a minimal service affair Mar 28 22:31:07 so, google glass is in production -- they're going to give them out at IO ? Mar 28 22:31:09 jdawes, http://stackoverflow.com/questions/5803193/android-disable-soft-keyboard-at-all-edittexts Mar 28 22:31:33 * agy2154 went with GitHub Mar 28 22:31:37 there are a few options on there Mar 28 22:31:43 hesperaux: I found that link too, this disables the cursor, do you know how I could force it to be shown anyway? Mar 28 22:31:45 I downloaded Eclipse today on my new computer and tried to import my Android project, but it looks like it doesn't recognize it. Nothing happens when I click "finish" on the import wizard Mar 28 22:31:50 Any ideas= Mar 28 22:32:06 jdawes, there is a method to enable display of the cursor, but did you try allt he suggestions on the page or just the main answer? Mar 28 22:32:08 remember google code search … seems like spring cleaning events are pretty ruthless now on what makes money Mar 28 22:32:26 google Reader didn't even have a single engineer or manager assigned to it Mar 28 22:32:27 g00s: not a bad thing to focus the company Mar 28 22:32:40 and the former manager said, if it doesn't make money, it has to have at least 100 million users for google to care about it Mar 28 22:32:50 so, i give it 4 years Mar 28 22:33:18 g00s: So your saying google Code will have 100 million users in 4 years? Mar 28 22:33:42 compared to things like glass, things like reader are a distraction Mar 28 22:34:10 jdawes, EditText inherits setCursorVisible(boolean) from TextView. Did you try that? Mar 28 22:34:11 it's the opportunity cost. why have engineers work on something few people use vs something that is innovating for the next generation of devices ? Mar 28 22:34:48 opportunity cost is difficult to figure when ROI isn't concrete Mar 28 22:35:20 g00s: sure, but new things like glass have much more of a potential upside than things like reader Mar 28 22:35:31 Anyone have suggestions for querying LDAP since javax.naming isn't available? Mar 28 22:35:37 I love discussions like this. Can you guys solve the copyright, patent, and trademark problems next? Preferably using the terms interchangeably Mar 28 22:35:43 funkbox: we're talking about a company that used to give 20% time to all employees :P Mar 28 22:35:54 g00s: still does, for the record. Mar 28 22:36:16 thats good, i heard it was somewhat not the case any more Mar 28 22:36:23 evanc: well i think patents shoudl be trademarkeable -- that way any copyright lawsuits have the burden of showing actual damage inflicted Mar 28 22:36:34 * evanc twitches Mar 28 22:36:37 well played, funkbox Mar 28 22:36:44 QbY, you can use the novell ldap library Mar 28 22:36:49 QbY, arguably better than javax.naming Mar 28 22:36:56 javax.naming is worst api ever Mar 28 22:36:57 pfn: hanks. Mar 28 22:36:58 lol... Mar 28 22:36:58 thanks Mar 28 22:37:17 evanc: a little offtopic discussion isn't bad after a day of … err.. work i guess? Mar 28 22:37:56 pfn: http://www.novell.com/developer/ndk/ldap_classes_for_java.html ??? 2009 is the latest? Mar 28 22:38:12 QbY, ldap is a stable api, it doesn't need updates Mar 28 22:38:31 gotcha. Mar 28 22:38:42 If I want to display information that comes over an SPP bluetooth connection, how do I obtain the active socket in arbitrary activities in my application? Mar 28 22:39:09 QbY, there hasn't been a change in javax.naming apis since java 1.5; the underlying implementation probably hasn't changed since then as well Mar 28 22:39:13 and that's like 2004 Mar 28 22:39:14 QbY: here is another one https://www.unboundid.com/products/ldap-sdk/ Mar 28 22:39:57 why are you communicating directly to an ldap server from android, anyway Mar 28 22:40:05 * do0ob wonders why there is no standard file browser in android Mar 28 22:40:25 pfn: have to query for public key from a pgp universal server. Mar 28 22:40:28 pfn: sometimes ldap is used to store configuration info Mar 28 22:40:31 file browser intent Mar 28 22:40:53 so, which is the preferred here.. unboundid or novell? Mar 28 22:40:57 hesperaux: I tried all answers, nothing works, even overriding the setCursorVisible method Mar 28 22:41:10 jdawes, :( Mar 28 22:41:14 I have no idea about unboundid Mar 28 22:41:23 but novell has been stable as far as I've known it Mar 28 22:41:31 k. Mar 28 22:41:41 hesperaux: Well nothing comes out to what I want. No keyboard but still cursor seems so simple lol. Mar 28 22:41:54 guess it all boils down to documentation :) Mar 28 22:41:55 QbY, check the license and see which one works for you Mar 28 22:42:00 and license Mar 28 22:42:10 true Mar 28 22:44:44 so does anyone know how to grab active bluetooth sockets from any activity? I formed a connection to a bluetooth device in a thread, but now I don't know how to use its socket in my other activities. Mar 28 22:45:06 hesperaux: did you look at the bt chat example? Mar 28 22:45:43 does sqlite3 exist on stock n7? Mar 28 22:46:14 yes Mar 28 22:47:34 hesperaux, store it in a threadlocal and pick it up, pass it around like you would any other piece of data Mar 28 22:47:43 (well, not data that you would pass through an intent) Mar 28 22:48:09 I get the error "Unable to resolve target 'android-16'", but my usesSDK value in AndroidManifest.xml is 8 :| Mar 28 22:48:13 Any ideas? Mar 28 22:48:32 Kake_Fisk, your project.properties has android.target=android-16 Mar 28 22:48:43 android update project -t android-8 -p path-to-project Mar 28 22:49:13 Where is that executed from? Mar 28 22:49:20 where? i can't find the binary anywhere Mar 28 22:49:27 it's clearly usable in apps hwoever Mar 28 22:49:30 Is that android.bat? Mar 28 22:50:11 g00s, no, i will look at it. pfn i'll have to look up what a ThreadLocal is first lol Mar 28 22:50:22 i'm pretty new Mar 28 22:50:33 hesperaux, just store it in some sort of singleton object that you can access from other activities Mar 28 22:52:21 I think that might have worked pfn, thanks Mar 28 22:52:25 somebody wrote git in javascript :| Mar 28 22:52:39 tophyr: No, stock roms don't have the sqlite3 binary Mar 28 22:52:46 grrrr Mar 28 22:52:56 SimonVT: really? Hmm, I thought they did Mar 28 22:53:16 has to be a special build; dont remember what its called. not in user builds Mar 28 22:53:22 evanc: Naw, most rooted roms include it tho Mar 28 22:53:22 g00s: userdebug Mar 28 22:53:31 weird, I wonder when that changed Mar 28 22:54:00 Was it ever there? Mar 28 22:54:37 tophyr: i've conjured up some elaborate scheme to bundle it in my apk and copy it out into my private data directory; external storage doesn't allow +x i dont think Mar 28 22:55:00 SimonVT: I definitely remember using it on my G1 :P Mar 28 22:55:00 g00s, external storage is often fat, and fat doesn't allow permissions, or it's often mounted noexec Mar 28 22:55:14 pfn: yeah, thats what i meant (noexec) Mar 28 22:55:46 why FAT ? Mar 28 22:56:17 is it really fat now? i thought it was ext4 but exposed to something as fat Mar 28 22:56:57 FAT seems weird especially becuase ofthe limits Mar 28 22:57:39 evanc: Well :p I don't think it was there in 2.x Mar 28 22:58:46 i dont have it on 2.2, maybe 2.1 Mar 28 22:58:50 git bisect! Mar 28 23:01:33 Hi all Mar 28 23:01:58 I'm not a dev, but a problem is driving crazy with spotify, would appreciate some help greatly! Mar 28 23:02:20 funkbox, because it's often external storage, aka sdcard/mmc/etc. and they need to plug into lots of things, and not just the phone Mar 28 23:02:35 funkbox, and by fat, I mean the various fat variants that are popular now, fat32, exfat, whatever Mar 28 23:02:49 that's what i thought Mar 28 23:03:02 I'm running CM 10.1 on i9300, and I use FolderMount to issue bind command from my original Spotify Data folder to somewhere on external sd Mar 28 23:03:15 th3m1773n: plz see topic Mar 28 23:03:29 or, plz s33 t0p1c Mar 28 23:03:31 th3m1773n: probably want #cyanogenmod-dev or #cyanogenmod Mar 28 23:03:41 g00s is calling the kettle black Mar 28 23:03:45 :D Mar 28 23:03:47 lol Mar 28 23:04:15 I understand, but I just don't really know where to ask, as this is non-cm-specific and just has to do with how an app boots up ignoring a bind command Mar 28 23:04:50 Isn't that relevant to the dev chan? Mar 28 23:05:45 th3m1773n: maybe ask the dev how to bind to the service ? Mar 28 23:07:48 Questions about random android apps are not related to android app development Mar 28 23:08:06 I understand, sorry then. Couold you maybe direct me to a channel? Mar 28 23:08:10 *could Mar 28 23:08:28 You were directed to two already Mar 28 23:08:37 stop doing weird stuff and maybe spotify will stop being broken :p Mar 28 23:08:37 But sure, if you want some more: #android #android-root Mar 28 23:08:40 I was there, they said the same thing Mar 28 23:08:49 alright I'll try those thx ^^ Mar 28 23:08:59 Since it's a specific app, maybe you should ask the app dev Mar 28 23:09:24 th3m1773n: spotify is a commercial application. they have customer support. Mar 28 23:10:09 th3m1773n: https://www.spotify.com/us/about-us/contact/ Mar 28 23:11:46 th3m1773n: hello Mar 28 23:11:47 wow, sqlite 4 does look kinda of cool Mar 28 23:12:00 sry Mar 28 23:13:32 Does anyone here remember that "overflow" functionality for a ListView-row that popped up a context menu? Mar 28 23:14:09 I can't seem to find anything about it anymore, not sure what it was called either. Mar 28 23:14:12 add a contextmenu listener? Mar 28 23:15:33 pfn: Yeah, but I was thinking about that thing, looked like the "actionbar overflow logo" but was in a ListView item Mar 28 23:15:39 Can't even recall where I've seen it Mar 28 23:15:56 n20, you mean it appears in-line with the list item? Mar 28 23:16:34 Yeah, I remember it being on the right hand side in the examples I saw. Might've "showed up" for 4.x Mar 28 23:16:53 nope, dunno what you're talking about Mar 28 23:17:11 I'll try to find it, but I'm hoping I didn't just dream it all up haha. :) Mar 28 23:17:11 only actionbar thing I know in conjunction with listitems is using actionmodes Mar 28 23:17:25 unless it's something custom Mar 28 23:17:31 That quickaction thing? Luckily that died out Mar 28 23:18:07 SimonVT: Sounds about right, what happened to it?! :D Mar 28 23:18:32 People realized it was ugly as hell Mar 28 23:19:05 SimonVT: So now it's CAB all the way? Mar 28 23:19:20 Pretty much Mar 28 23:20:05 SimonVT: i haven't done much post froyo UI; are you saying actionmodes are not used much unless they are used with CAB ? Mar 28 23:20:24 how would one go about creating a grid of buttons like the following: http://i.imgur.com/Q2bYFyk.png? Would it be a bad idea to use Linear Layouts? Is a RelativeLayout the best choice? Mar 28 23:20:49 Actually, I guess they could be a grid of anything really. Mar 28 23:20:59 Action modes are pretty much contextual by definition Mar 28 23:22:48 either RL or a bunch of LLs would work for that. Mar 28 23:24:37 evanc: Yeah that was my suspicion, just wondering if anyone had found an easier way to implement it. Mar 28 23:24:57 Would gridlayout not be able to do something like that? Mar 28 23:26:28 SimonVT: gridlayout is a grid, yeah? Mar 28 23:26:44 jdawes: I think I saw an OSS project to do things like that. CanvasView maybe? I don't remember Mar 28 23:27:03 QuiltView was one; there are a few Mar 28 23:27:21 http://www.androidviews.net/ Mar 28 23:27:56 g00s: yeah, that's the one I've heard of Mar 28 23:27:59 evanc: GridLayout does stuff like this: http://4.bp.blogspot.com/-nQwSciBv9fw/TrxWZ_T6YRI/AAAAAAAAA5w/mZW4egdPJv4/s400/milne-3.png Mar 28 23:28:21 SimonVT: oh right, mixed up GridLayout and GridView. Sorry. Mar 28 23:28:30 (I figured :p) Mar 28 23:28:30 Hi again, sry for previous n00bness Mar 28 23:28:42 Let me ask a real question this time Mar 28 23:28:52 th3m1773n: shoot Mar 28 23:29:06 Is there any way to know which files an app accesses on launch? Mar 28 23:29:18 evanc: OSS? Mar 28 23:29:19 I tried adb logcat but I don't think it's advertised Mar 28 23:29:38 th3m1773n: this channel is really for apps you're developing. As the developer, you should know which files you're opening :) Mar 28 23:29:45 th3m1773n: Are you trying to tamper with the apps files? Mar 28 23:30:02 hey guys Mar 28 23:30:10 agy2154: well yeah, trying to bind an appdata location to external sd with a bind command Mar 28 23:30:10 as far as reading files that another app opens, maybe you can use lsof, but don't count on it Mar 28 23:30:15 private Paint brush = new Paint(); Mar 28 23:30:19 the word brush in there Mar 28 23:30:23 is that a method? Mar 28 23:30:31 factory81: no Mar 28 23:30:33 and Paint is the class.... Mar 28 23:30:34 right? Mar 28 23:30:34 evanc: thanks for your answer =) Mar 28 23:30:34 factory81: no Mar 28 23:30:47 evanc: beat me to it Mar 28 23:30:48 what is the word paint in there? Mar 28 23:30:52 and what is brush? Mar 28 23:30:58 agy2154: you were way ahead of me Mar 28 23:31:01 factory81: thats the name of the paint your creating which in this case is brush Mar 28 23:31:01 factory81: a variable Mar 28 23:31:03 Paint is the class, brush is the variable name.. java 101 Mar 28 23:31:13 evanc: ohh i thought you beat me Mar 28 23:31:18 so i am instantiating paint....with the name "brush" Mar 28 23:31:23 cheers ppl ^^ Mar 28 23:31:30 factory81: yes Mar 28 23:31:37 SimonVT, easy there killa Mar 28 23:31:44 we all didn't get hooked up to the matrix Mar 28 23:32:36 SimonVT: I guess you can also think of it Paint() being object and "paint" is the name of this object that he is creating? Mar 28 23:32:52 can anyone explain context's in android like i am five? Mar 28 23:32:53 Idk honestly the vocab that java uses blows my mind away Mar 28 23:33:07 factory81: a context is the current state of the application Mar 28 23:33:24 so when I say Mar 28 23:33:30 factory81: sometimes I just use this because this is the context Mar 28 23:33:31 btnEraseAll = new Button(context) Mar 28 23:33:37 i am saying...New button...but thats all Mar 28 23:33:54 Context is a class. Other classes, like Activity, extends it Mar 28 23:34:00 So Activity is a Context Mar 28 23:34:00 btnEraseAll is the variable name for my new button Mar 28 23:34:36 i just have a hard time grasping just what why a context is here, or there... Mar 28 23:34:50 public BrushView(Context context) Mar 28 23:34:51 why? Mar 28 23:34:55 A Context instance is required to access certain parts of your app, like resources Mar 28 23:35:14 so to access certain parts of the BrushView class I have to provide 2 context's? Mar 28 23:35:45 factory81: no your making a Context named context Mar 28 23:35:55 I'm not sure if im right on that one Mar 28 23:36:07 agy2154, thats ok, we are here to learn Mar 28 23:36:11 factory81: I'm still fresh with this stuff too Mar 28 23:36:20 BrushView takes a Context as a parameter since it does stuff that requires a Context Mar 28 23:36:30 i took a 6 month android class, but of course that was 10 weeks ago, and im trying to keep doing stuff with it, so it sticks with me and i can build on it Mar 28 23:36:36 i just used the canvas class for the first time Mar 28 23:36:51 actually 15 week android class Mar 28 23:36:54 so 4 months Mar 28 23:37:38 http://developerfeed.com/android/tutorial/building-live-stock-quotes-app-android Mar 28 23:37:41 im building this one next Mar 28 23:37:57 i want to get in to doing RESTful shit Mar 28 23:38:23 did someone mention remote databases? Mar 28 23:39:02 Can i have two intent filters in my manifest pointing to the same acitivyt Mar 28 23:39:03 coco89: *facepalm* Mar 28 23:39:09 :P Mar 28 23:39:10 agy2154: yes Mar 28 23:40:39 factory81: I mean I have a decent understand of how things work but most of the time when i need to learn new stuff i can't just look at the doc and get it... i'd have to google it Mar 28 23:43:16 coco89, is RESTful shit a fancy word for remote databases? Mar 28 23:43:27 http://www.ibm.com/developerworks/webservices/library/ws-restful/ Mar 28 23:43:30 fuck IBM has some good ass topics Mar 28 23:43:57 http://xkcd.com/37/ Mar 28 23:44:27 factory81: they's got to do theys werk Mar 28 23:46:00 factory81: you need a web service in order to communicate between an android device and a remote database Mar 28 23:46:09 factory81: also everything i say is wrong Mar 28 23:46:15 so don't believe me xD Mar 28 23:50:52 you could always implement it in sockets.. Mar 28 23:51:00 KungFuHamster? Mar 28 23:51:22 evanc: Since you were the one with the suggestion on my layout, would you mind telling me if the weighting in this layout is too nested? Mar 28 23:51:46 http://pastebin.com/cyPe1aRb Mar 28 23:54:03 Should I allow the users to view all their history of inputed mathmatial equations? Mar 28 23:59:15 Is any nested weight a bad thing or is there an acceptable amount of nesting you could do without hurting performance? Mar 29 00:00:08 Is it possible to blit a canvas on an existing canvas? Mar 29 00:00:39 jdawes: i think nested LLs with weights were slow Mar 29 00:00:59 there is a lint heuristics for that XD Mar 29 00:02:37 g00s: of course, those are the layouts a I need to use Mar 29 00:02:49 g00s: What do you mean a lint heuristic? Mar 29 00:02:55 hi guys Mar 29 00:02:59 :( Mar 29 00:03:01 phong_: uh oh Mar 29 00:03:02 sad Mar 29 00:03:05 hi g00` Mar 29 00:03:17 howdy? g00s Mar 29 00:03:28 jdawes: if you try it, lint will show a warning Mar 29 00:03:37 hi phong_ Mar 29 00:03:48 g00s: I thought that's what you meant, I knew about the warnings. Mar 29 00:04:06 can winamp play music and have it broadcast thru bluetooth in car? Mar 29 00:04:16 lol...sould be nice ....so i can listen to radio and music Mar 29 00:05:05 is thursday in android-dev user customer service day ? Mar 29 00:05:27 I don't believe nested weights are too bad, as long as the views with weight have a size of 0dp Mar 29 00:05:30 iti thought it was funkbox appreciation day Mar 29 00:05:43 funkbox: isn't that every day :) Mar 29 00:05:56 The issue is that when they're e.g. wrap_content they'll be measured twice Mar 29 00:08:06 how much does it affect perf ? Mar 29 00:08:13 So a view with weight inside a ll with weight will get measured 4 times (if both are e.g. wrap_content) Mar 29 00:08:19 Nest it once more, and that's 8 Mar 29 00:08:35 so set to match_parent or relative layouts ? Mar 29 00:08:54 Is it faster to use gradients defined in xml or png files? Mar 29 00:09:30 No, views with weight should have a size of 0dp in the ll's orientation Mar 29 00:09:33 SimonVT: So, if I've got less than 20 items on a screen and there are a few items that are measured 8 times, is that terrible? Mar 29 00:10:20 Might be expensive to measure those views Mar 29 00:10:25 mhm Mar 29 00:10:26 And besides, it's unnecessary Mar 29 00:10:39 Well, have you seen the effect I'm going for? Mar 29 00:10:58 Do you have a suggestion for me, because this is all I've got so far. Mar 29 00:11:25 I believe I suggested gridlayout Mar 29 00:13:09 I'm sorry, I didn't see that, but I've got the image you sent up now. Mar 29 00:14:50 do you know how you can scroll down the facebook app and you can click loadmore. Can i do that with a listview? Mar 29 00:15:29 yes Mar 29 00:32:58 awesome! just realised thenewobston has tutorials on httpclient, JSON etc Mar 29 00:33:54 hah, to all you who had no faith in me, we'll see in a couple of days :D Mar 29 00:41:29 is there a way to determine whether I am running in a system-app process? Mar 29 00:42:09 Can I use a tabactivity and activity at once? Mar 29 00:42:46 ok.... my head hurts and the more I can't grasp this concept, the more it's hurting. Can someone explain fairly simply the difference between DAO versus non-DAO databases please. Mar 29 00:45:51 I guess I just need to know whether my library is running in a privileged process Mar 29 00:45:55 but I can't seem to figure that out :) Mar 29 00:48:12 How can i use sherlock activity and TabActivity at the same time? Mar 29 00:49:22 Tabactivity is deprecated, don't use it Mar 29 00:49:48 SimonVT: I need backwords compatability though. Mar 29 00:50:11 Still shouldn't use it Mar 29 00:50:50 Is there anything better I can use? I'm using so many depreciated classes like the old clip board manager and all that Mar 29 00:52:15 Could use actionbar tabs Mar 29 00:52:26 Tabhost still works Mar 29 00:52:38 Could also just put a few buttons in a linearlayout and style them as tabs Mar 29 00:53:43 SimonVT: I heard that android will never delete these depreciated meathods in versions to come... they will only add better ones is that true? Mar 29 00:54:04 SimonVT: I don't get fragments that much. I'm going to tlook them up right now Mar 29 00:55:06 Using tabactivity is still a bad approach, even if it remains in the sdk Mar 29 00:55:06 the Android team does their best to maintain backwards compatibility. however deprecated APIs are not going to get any improvements or much fixes and might not look or feel like modern android Mar 29 00:56:05 and SimonVT is right, some APIs are more deprecated than others. TabActivity isn't worth using anymore. Just use a SherlockActivity and either use the action bar tabs or provide your own tabhost/tabwidget Mar 29 00:56:24 sleepster, you can check your certificate Mar 29 00:56:30 sleepster, by inspecting the PackageManager Mar 29 00:56:37 kevinb_: I see. I might fix it... but android 2.3.3 still has %30 of the education market Mar 29 00:56:51 ActionBarSherlock runs on Android 2.3.3 Mar 29 00:57:10 thanks pfn. Mar 29 00:57:19 pfn: I see that there are a few "check*" functions Mar 29 00:57:23 but none of them seem promising Mar 29 00:57:28 I can compare signatures Mar 29 00:57:46 http://developer.android.com/reference/android/content/pm/PackageManager.html Mar 29 00:58:19 sleepster, yes, you would compare signatures Mar 29 00:59:07 there's other methods, but I can't recall right now Mar 29 00:59:19 dunno if android exposes properties in System.properties Mar 29 00:59:22 you might be able to do that Mar 29 00:59:33 I see Mar 29 00:59:35 thanks Mar 29 01:00:20 hrm, nope Mar 29 01:01:17 I guess I should probably clarify a bit on what I am doing :) I have a service factory that exposes my services... if my service factory is loaded in a "privileged" app (signed by platform key), I want to load one service factory Mar 29 01:01:33 if it is loaded into a regular app, then I want to load my default service factory Mar 29 01:01:47 http://ezscreens.appspot.com/view/4c44/system.getproperties+on+android Mar 29 01:01:54 ^^ no identifiable info in system properties Mar 29 01:02:32 yeah Mar 29 01:02:33 hmm Mar 29 01:02:56 if I can get the key somehow.. I have the entire AOSP at my disposal :) Mar 29 01:02:57 anyway, compare signatures is my best guess at how you would do it Mar 29 01:03:15 load up some system package, get its signature, and compare it against your own packages signature Mar 29 01:04:33 I wish I could do something useful with recontrolr... heh Mar 29 01:06:37 i have a fragment that will be handling a number of onClick(DialogInterface dialog, int which) events coming from different dialogs inside the fragment. what's the best way to handle each onClick event? Mar 29 01:06:56 check dialog to see which dialog it belongs to Mar 29 01:07:00 then process appropriately Mar 29 01:07:35 check with instance of? or is there better way? Mar 29 01:07:58 well, you check it with whatever way you can to identify Mar 29 01:08:35 and instanceof is perfectly legitimate Mar 29 01:09:09 ok good, that was my though. but i've seen in many places people discouraging the use of instance of Mar 29 01:10:27 i don't see any other way, so instanceof it is! just making sure, thanks Mar 29 01:14:08 SimonVT: I can't really use a fragment because its inside another screen. I might just use a button to switch two views to either GONE or VISIBLE Mar 29 01:19:15 oh gawd http://9to5google.com/2013/03/28/facebook-smartphone-with-htc-launching-soon-ad-campaign-in-the-works/ Mar 29 01:20:04 i hope they dont fuck this up like amazon Mar 29 01:21:43 "This will be a deeper, forked version of Android rather than a Facebook-ified version of Sense." Mar 29 01:23:06 watch out for the twitter phone :P Mar 29 01:24:30 also, HTC must be getting pretty desperate Mar 29 01:44:00 g00s: I hope that isn't what the phone actually looks like Mar 29 01:44:29 the buttons look like mouse wiskers :) Mar 29 01:44:38 g00s: Apple is going to press charges... lmao Mar 29 01:44:55 just a mockup, likely Mar 29 01:45:09 g00s: yeah possibly Mar 29 01:45:40 i don't know anyone on FB except for one friend; i think it makes her depressed Mar 29 01:46:01 g00s: I don't use social networking that much Mar 29 01:52:51 I know this is kinda a stupid question to ask. Are your devices rooted? Mar 29 01:53:27 nope Mar 29 01:55:05 I'm trying to create a contract class per api documentation (which is a real PITA to understand btw). if I implement BaseColumns do I still need to define public static final String ID = "_id"; ? Mar 29 01:56:49 I have a small problem with my store items. The order of the items listed in the developer console and the order of the items in the json string i get back in my app are different. Is there a way to fix this in the console, or do i have to customize the order after i get my item data ? Mar 29 02:06:07 Hi guys, I was wondering, why isn't my if statement in the checkIntent() method true when the app is in the foreground and I scan a tag? It is only true when I'm out of the app and I scan a tag.. http://pastebin.com/b9G3DRkZ Mar 29 02:15:30 g00s: oh hai Mar 29 02:15:31 :D Mar 29 02:28:09 can i use setTag() to pass the position of one list to another? Mar 29 02:30:13 Good day. I'm trying to correctly use AudioRecord and I can't tell for sure if read() is supposed to be blocking or nonblocking. Anyone handy who knows about AudioRecord.read()? Mar 29 02:32:01 jesseg: am not sure because there is no citation, but this might help: http://stackoverflow.com/a/4573223/568169 Mar 29 02:33:11 Yeah, I've been all over stack overflow and the documentation at http://developer.android.com/reference/android/media/AudioRecord.html#read%28byte[],%20int,%20int%29 Mar 29 02:33:49 and from experimentation, read() is not always blocking, but sometimes it seems to be. Mar 29 02:35:03 jesseg: hmmm. Mar 29 02:36:02 this thread suggests a workaround which might help: http://code.google.com/p/android/issues/detail?id=10151 Mar 29 02:36:21 Ideally, AudioRecord.read() would be non-blocking or have a way to test available data without doing a read. -- Let me check out that url.. Mar 29 02:37:19 Using robitum and ActionBarSherlock. My Tab is titled 'Pantry'. On 4.0+ it works fine with solo.clickOnText("Pantry"); but fails on API's prior to that. solo.clickOnText("PANTRY") works with <4.0 but fails on 4.0 or higher...anyway to do this without a conditional check to see which version I'm on? Mar 29 02:37:31 *Robotium Mar 29 02:39:19 anirudh24seven, ahh, threads. That's what I've seen while scouring the google-indexed world. Everybody is stuffing things into threads because they don't know how to make it work right otherwise he he :-) I am trying to avoid that. Mar 29 02:39:54 jesseg: he he :) Mar 29 02:40:07 And don't get me wrong - threads are absolutely great - but I don't like just isolating things because I don't understand them :) Mar 29 02:41:43 jesseg: makes sense Mar 29 02:43:06 I have another question that may also help me get to the bottom of this: Is there a way I can get a copy of all java and native sources for Android so I can "dig deeper" to find out what .read() actually does? Mar 29 02:43:48 f2prateek: have you tried this? http://tinyurl.com/cts8wtd#Why_do_text_and_button_clicks_get_wrong? Mar 29 02:44:51 anirudh24seven: yeah tried that Mar 29 02:46:05 Can anyone point me in the direction on how to make a PIN screen for my app? Similar to how google wallet's pin entry on launch. Mar 29 02:46:14 it's just getting the case wrong, I logged the output, and on 4.0+ it can find 'Pantry' but not 'PANTRY', vice versa for <4.0 Mar 29 02:48:54 jesseg: http://grepcode.com/ is a good site where you can search & browse through the source. Mar 29 02:50:50 retic: I'm not familiar with google wallet, but you can set some flags in the xml layout file to set it to be in password mode (shows *****) and optionally numeric only for number only passwords: android:inputType="numberPassword" Mar 29 02:51:21 completely forgot about input type - thanks! Mar 29 02:51:36 Hi guys, I was wondering, why isn't my if statement in the checkIntent() method true when the app is in the foreground and I scan a tag? It is only true when I'm out of the app and I scan a tag.. http://pastebin.com/b9G3DRkZ Mar 29 02:51:47 also for EditText fields you can specify the keyboard to use. number pad is an option Mar 29 02:52:41 thanks jesseg and armdale Mar 29 02:54:02 ya jesseg, http://grepcode.com/snapshot/repository.grepcode.com/java/ext/com.google.android/android/4.2.2_r1/. i created a project with all the com.google.android sources last night. it's been so useful when debugging to just browse through the classes Mar 29 02:54:31 anirudh24seven: Let me try grepcode again. I did spend some time yesterday reading through grepcode stuff (found by google) and was able to follow AudioRecord.read() down to where the native code is called -- but I was trying to cross reference against whatever version google happened to find for me Mar 29 02:54:55 nice having it all in eclipse i find and using the outline to quickly jump to specific methods Mar 29 02:55:00 armdale: oh super! let me check that out! Mar 29 02:55:13 rather than browsing around on webpage. it's a lot quicker Mar 29 02:55:25 As you can tell I'm brand new to android, so I really do appreciate your kind help! Mar 29 02:55:42 armdale: great! Mar 29 02:56:02 me too. writing some android projects for school right now. i'm learning too :) Mar 29 02:56:09 ? Mar 29 02:56:36 I'm just writing projects for fun. Mar 29 02:58:11 armdale: is there any chance you could point me to a document explaining how to do what you did -- create a project with all the sources? Mar 29 02:58:31 um. just create a new project with existing code Mar 29 02:59:03 File > New > Project… Android > Android Prokect from Existing Code Mar 29 02:59:25 set root directory to where android sources live Mar 29 02:59:37 Okay, I got that far - where do the android surces live? Mar 29 02:59:48 wherever you downloaded them to **** ENDING LOGGING AT Fri Mar 29 02:59:59 2013