**** BEGIN LOGGING AT Thu Mar 29 02:59:58 2012 Mar 29 03:00:55 readme, that didn't work :( Mar 29 03:02:55 etuleu: paste whole layout Mar 29 03:03:00 try setting margins to 0 Mar 29 03:05:37 Thank you for your help readme, and please keep telling me to go to docs. I always forget. The last api I coded for didn't have docs so I keep forgetting. I should go to docs first but I don't, so please just say look at docs :P. Mar 29 03:09:13 readme: im reading your post but im not seeing any errors about the sharedpreferences taking too long in my app Mar 29 03:09:40 QubeZ: oh, I thought the link might hel Mar 29 03:09:42 issue i'm having is like my app on ICS is catching some sharedpref value Mar 29 03:09:44 you're still stuck? Mar 29 03:09:54 its driving me nuts, here's a quick example: Mar 29 03:10:10 i add home depot as a task, then i add my work place as final destination (meaning, i want to end there after I finish home depot task) Mar 29 03:10:10 ladeis Mar 29 03:10:12 ladies Mar 29 03:10:37 i do this on gingerbread phone, works fine. I do this on ICS, it sometimes shows and sometimes doesnt map (show) the final destination. Mar 29 03:11:03 in my latest build -- just pushed both apk's to both phones (gingerbread and ics).. yet differing behavior. Mar 29 03:11:12 QubeZ: maybe it's a thread problem? Mar 29 03:11:29 that's my gut instinct in most cases of "happens sometimes" Mar 29 03:11:46 honeycomb/ics definitely has extra safety stuff in the threading Mar 29 03:12:47 readme: but it never happens on gingerbread phone. Because I was so frustrated. I click "map" like 20 times and its 100% accurate on gingerbread. Mar 29 03:13:01 QubeZ what about in emulator Mar 29 03:13:04 QubeZ: that doesn't rule out a thread issue Mar 29 03:13:14 infact that sounds to me like its a timing issue Mar 29 03:13:19 eg, gingerbread devices are slower Mar 29 03:13:25 yes Mar 29 03:13:38 I just stepped through the code and I have three ASyncTasks that do 3 diff things.. in order though... I call the 2nd from the 1'st postexecute then the 3rd from the 2nd's postexecute Mar 29 03:13:56 ron_frown: not mine, I'm running gingerbread on moto razr and ics on incredible Mar 29 03:14:01 my gingerbread phone is way faster Mar 29 03:14:10 QubeZ: when you step through the code, you're only suspending one of the threads Mar 29 03:14:12 whoa whoa Mar 29 03:14:19 is ics a custom rom for incredible? Mar 29 03:14:31 readme: step through meaning visually, me manually Mar 29 03:15:08 ron_frown: yes, but I ruled out the rom issue because I installed an old build of the app and that works perfectly. The only thing I've changed in the new build that is acting quirky is moved to using getString() so I can localize to spanish. Mar 29 03:15:29 so you are saying Mar 29 03:15:38 only changes are localization and that fails on ics? Mar 29 03:15:48 old / new build works fine on razr, old build works on ics phone but new one is quirky... only changes I've made are upgraded to ADT17 as well Mar 29 03:15:48 wrap access to the shared preference value in synchronized blocks and check what happens Mar 29 03:16:08 ron_frown: localization works, but the map is not generating locations properly Mar 29 03:16:27 which has nothing to do the mapping. Mar 29 03:16:29 trace through it Mar 29 03:16:53 ok Mar 29 03:17:06 debuggers are gods gift to engineers Mar 29 03:17:52 in the game i am working on I could not debug some of the problems without the debugger. just too much. the ability to move to any point in execution, *then* set the breakpoint, is priceless Mar 29 03:18:08 mid-execution breakpoint setting Mar 29 03:18:26 thing that pisses me off abotu eclipse/debugging Mar 29 03:18:41 it does a shit job of evaluating final vars etc Mar 29 03:19:16 and its not vs.net =( Mar 29 03:19:24 vs.net immediates window is solid fucking gold. Mar 29 03:19:28 if you're working with a library project and an exception is thrown in code that is called by a method in the library, the debug perspective won't give the whole stacktrace, and it will only be available in logcat Mar 29 03:19:35 that was bugging me 2 days ago Mar 29 03:19:54 I always use logcat anyway Mar 29 03:20:09 it's nice to have the IDE fling you directly to the offending line of code Mar 29 03:20:31 oh Mar 29 03:20:37 yeah that is a pain in the ass Mar 29 03:20:42 HacDan: oh, look. Mar 29 03:20:50 dun dun dun Mar 29 03:20:52 pain in the ass that it jumps you to .class implementation of a method too Mar 29 03:20:56 it was stopping on a whole unrelated line stumping me. Mar 29 03:21:12 mhmm. It does that even if a library project with the source is in the workspace. Mar 29 03:21:22 it will open the .class file instead of the .java that is right there. Mar 29 03:21:49 thats a stupid adt change Mar 29 03:21:59 fix one thing with library projects, and make 10 other things way way worse Mar 29 03:22:23 maybe i will take a crack at eclipse adt Mar 29 03:26:19 hwo would I time a method call? Mar 29 03:26:32 using a timinglogger Mar 29 03:26:46 http://developer.android.com/reference/android/util/TimingLogger.html Mar 29 03:27:04 or if you want to do it with ddms you can do that too Mar 29 03:31:04 how does one support third party themes? Mar 29 03:32:55 cant find info on this Mar 29 03:33:55 weird the timers logs never showed Mar 29 03:34:18 you have to enable it with adb though I dont recall how Mar 29 03:34:27 finkle and einhorn, finkle and einhorn! Mar 29 03:34:38 has anyone been successful in retrieving a cdma channel list through the android framework? Mar 29 03:35:05 it doesn't show in logcat? Mar 29 03:36:06 roger_padactor: was that directed at me? As far as I have seen it does not show up in radio logcat Mar 29 03:37:36 was for ron_frown Mar 29 03:38:22 oh sorry then Mar 29 03:39:14 it should show in logcat Mar 29 03:39:23 there was something you had to setup through logcat iirc Mar 29 03:39:57 ron_frown: weird not showing... odd Mar 29 03:40:04 http://stackoverflow.com/questions/3128181/time-code-execution-in-android Mar 29 03:40:29 adb shell setptop log.tag. VERBOSE Mar 29 03:55:04 What's the benefit to using the Uri datatype over java.util URL or even String? Mar 29 04:14:45 @GhostFreeman: It can handle resources other than URL that are in the URI formatting. Mar 29 04:15:30 It has a bunch of methods and such for parsing, etc. Mar 29 04:28:13 hello Mar 29 04:28:28 anybody there? Mar 29 04:28:44 nope Mar 29 04:32:18 jagruti_: presumably you're here to ask something? Mar 29 04:32:43 maybe he's just lonely ... Mar 29 04:33:12 i dont want to ask right now but if anybody want to ask then ok Mar 29 04:38:29 is the Play Store jacked up? getting errors trying to download Mar 29 04:39:43 QubeZ: yeah, possibly Mar 29 04:40:03 I'm getting connection errors - but then I sometimes do anyway... Mar 29 04:43:07 I found that my app mapping gets all messed up when I target api level 15... target 14 and it works fine. minSdk is 8. Mar 29 04:43:21 was scratching my head for awhile then changed the target I'm building again and it works Mar 29 04:52:19 god this is weird Mar 29 04:58:02 So, I'm not sure when this line needs to go into an XML layout ---> xmlns:android="http://schemas.android.com/apk/res/android". Could someone help me see, please? Mar 29 04:58:18 aLearner: it needs to be in your root element Mar 29 04:58:27 whatever that is, relative layout, linearlayout etc.. Mar 29 04:59:45 QubeZ: Thank you. But why doesn't Relative Layout here have it? ---> http://collabedit.com/vwyyg Mar 29 05:00:21 aLearner: because it only needs to be in the root element Mar 29 05:00:24 i.e. the first element Mar 29 05:00:49 that line is what allows the XML parser to resolve attributes in the "android" namespace, such as android:id Mar 29 05:01:03 readme: Ah OK. Cool But then why do all the ImageView's also have them? Mar 29 05:01:13 readme: Thank you for the above explanation. Mar 29 05:01:18 aLearner: probably because someone copy pasted it Mar 29 05:01:25 readme: finally figured out why the mapping is behaving so weird -- if my build target is 4.0.3, minSdk = 8 and targetSdk = 15... i get the behavior. If I just remove the targetSdk line from my manifest and leave other 2 pieces alone... it works. Mar 29 05:02:14 readme: Ah OK...This isn't my code. So you're saying if I just had a --> xmlns:android="http://schemas.android.com/apk/res/android" in the ROOT (that is in my first LinearLayout block) I should be good? Mar 29 05:02:19 yes Mar 29 05:02:55 readme: Cool. Wow. That was so confusing. It doesn't help when sample code is sloppy and makes things confusing. Mar 29 05:02:58 QubeZ: i think what you're observing is not the cause of the problem. It's like when someone has a virus, but they aren't sick, until they get another cold and it weakens their immune system and brings out the dormant problem. Mar 29 05:03:12 readme: Thank you very much for your explanation. I really appreciate it. Mar 29 05:03:23 what you're doing is exposing the problem in your code, not causing it Mar 29 05:03:36 readme: definitely, i just dont know what that problem is Mar 29 05:04:00 paste some code and i will look. PM if you dont want the code leaked Mar 29 05:04:13 using ABS tabs how do I tell the tab text to be single line? setting the style singleLine to true doesn't seem to change anything Mar 29 05:04:15 its weird that its just drawing markers and paths / network code to pull map path -- not sure how that can be related to the targetsdk. Mar 29 05:04:35 readme: im not even sure what to paste because the code works fine -- unless I targetsdk line is in my manifest Mar 29 05:05:08 QubeZ: when you change the SDK, you are changing lots of other things, like the time it takes various things to execute Mar 29 05:05:29 QubeZ: the amount of time it takes things to execute affects the order of execution in your program, if you are not synchronizing the code properly Mar 29 05:05:53 is there a reason to add targetSdk in my case? Since I am essentially not using anything from greater than 2.2 Mar 29 05:06:00 nope Mar 29 05:06:11 if you aren't going to use features from a higher SDK then you don't need it Mar 29 05:06:18 ill leave it and overhaul the code in general Mar 29 05:06:32 shotgun debug always works. Mar 29 05:06:43 Are you using SharedPreferences to pass data around instead of Intents :)? Mar 29 05:07:00 although i set the build target to api 14 in eclipse so I can use values-11 and values-14 for making sure themes look/feel like native HC and ICS Mar 29 05:07:10 which again, all this works as long as I leave targetsdk line out of my uses-sdk Mar 29 05:07:43 readme: nope, im using sharedpreferences to read default driving style, unit of measurement etc.. that the user set in Prefs activity. Mar 29 05:07:53 i use extras when I need to pass data to another activity Mar 29 05:08:09 QubeZ: interesting, that makes it sound less like a thread issue Mar 29 05:08:18 maybe you have a genuine problem with the new sdk Mar 29 05:08:57 who knows, but im a few days away from releasing this next build so I'll deal with it after this release. Mar 29 05:09:02 have some feature requests to get out Mar 29 05:10:34 i don't know where my energy is coming from, this is my 31st consecutive waking hour. Mar 29 05:11:07 wha? Mar 29 05:11:08 why? Mar 29 05:11:16 haven't been tired, I guess Mar 29 05:11:56 lots of rest and nutrition lately. I used to do this all the time when I was a teenager. Mar 29 05:12:10 I think it's just a reaction to the new energy Mar 29 05:12:28 nice Mar 29 05:13:39 are you going to use c2dm in todomapr Mar 29 05:14:58 yup, got it hooked in and working. Beta web service should be up in 2 weeks Mar 29 05:15:05 we're going to make it free for like 2 months Mar 29 05:15:09 so we can work out the kinks Mar 29 05:18:55 http://stackoverflow.com/questions/9862230/how-to-style-actionbarsherlock-4-x Mar 29 05:19:07 nice Mar 29 05:21:07 got like 300 users so far w/o any marketing in 19 days Mar 29 05:21:13 need to find a way to get reviewed Mar 29 05:21:39 pitch Mar 29 05:22:01 i posted on reddit and got a tons of users that day... website hit went up to 130 in like an hour Mar 29 05:22:13 yeah, reddit can give a good burst Mar 29 05:22:22 the traffic will dwindle for months at about 10/day after that Mar 29 05:23:29 QubeZ: have you ever signed up for google adwords? Mar 29 05:23:38 no Mar 29 05:23:46 well, new users get free 100 ad credit Mar 29 05:23:50 so there's your next traffic :) Mar 29 05:24:02 we are ad-free Mar 29 05:24:09 the ads arent on your app Mar 29 05:24:15 they are your app being advertised in ads on others sites Mar 29 05:24:18 and apps Mar 29 05:24:23 oh nice Mar 29 05:24:28 ill peek at that Mar 29 05:25:04 KeeperNo1, read the style docs Mar 29 05:25:09 look at the examples Mar 29 05:27:20 I have another newbie question: What's the difference between ----> @+id and @id, please? Mar 29 05:27:58 @+id create id, @id reference id Mar 29 05:30:29 i looked at the examples Mar 29 05:31:51 readme: Ah! OK. Thank you much. :-) Mar 29 05:32:01 god damn cat dropped coke every fucking where Mar 29 05:32:04 fuck Mar 29 05:32:15 QubeZ: Are you serious? Mar 29 05:32:29 luckily the new mac is safe Mar 29 05:32:46 QubeZ: Who cares about the Mac? How's the cat? ;-) Mar 29 05:33:10 har har Mar 29 05:33:21 she got plenty scared, ran off somewhere Mar 29 05:33:29 mess with my mac, the devil comes out Mar 29 05:33:41 :-) Mar 29 05:33:59 your cat is on crack? Mar 29 05:34:06 Haha Mar 29 05:34:23 lol Mar 29 05:34:33 ya im like tony montana here Mar 29 05:34:53 QubeZ: Tell your cat 'high'...er...'hi' Mar 29 05:35:14 "all i got in this world, is my balls and my code. And i dont break 'em for noboby, you un'erstand?" Mar 29 05:35:43 You're a tennis player? Mar 29 05:35:51 ya Mar 29 05:35:58 you know how? Mar 29 05:36:00 tennis balls + code of conduct Mar 29 05:36:25 interesting Mar 29 05:36:37 :-) Mar 29 05:43:32 JakeWharton, in ABS 3.5 how can I make the tab text not start scrolling like crazy and force singleLine? Mar 29 05:44:16 use a custom tab view? Mar 29 05:44:41 you should upgrade to ABS 4 Mar 29 05:44:55 I would like to but I don't want to stop supporting 1.6 yet Mar 29 05:45:46 so I have inherited your style Widget.Sherlock.Light.ActionBar.TabText Mar 29 05:45:56 and tried singleLine=true but didn't work Mar 29 05:46:15 maxLines=12 Mar 29 05:46:17 1 Mar 29 05:46:18 maybe Mar 29 05:46:56 you'd have to use a custom view so it won't scroll though Mar 29 05:47:37 let me try that thanks! Mar 29 05:48:02 how hard would it be to support 1.6 in ABS 4.0? Mar 29 05:48:22 extremely Mar 29 05:48:26 which is why it isn't supported Mar 29 05:48:31 I see Mar 29 05:48:33 the 1.6 classloader is a horrid piece of work Mar 29 05:49:02 it kills an entire class if you have a single call to a method that isn't present Mar 29 05:49:12 even if it's wrapped in an if block and will never be called Mar 29 05:49:24 there was something else to Mar 29 05:49:26 i forget Mar 29 05:49:36 I see... Mar 29 05:50:27 i thought about including a no frills version for 1.5 and 1.6 Mar 29 05:50:34 i still may if i ever get the time Mar 29 05:50:36 it's not a priority Mar 29 05:51:24 but the longer i wait, the lower their market share gets Mar 29 05:51:39 i can't justify tens of hours of work for something that has below 1% market share and falling Mar 29 05:52:39 makes sense Mar 29 05:52:55 I might just drop support for 1.6 soon because it's a pain Mar 29 05:53:06 I mean they just won't get updates Mar 29 05:53:28 it's not worth having all these hacks in code Mar 29 05:53:28 yeah i've seen a few people go the same route Mar 29 05:55:45 time for shows + books + bed Mar 29 05:55:46 later Mar 29 05:57:25 later thanks for your suggestions! Mar 29 06:22:33 wow this is awesome! setting the color on a childDivider on a expandable list view causes the whole list to take that color Mar 29 06:22:46 What is the difference between Style # 1 and Style # 2? ---> http://collabedit.com/483qq ... I really never understood Mar 29 06:22:47 this doesn't happen in ICS Mar 29 06:24:33 aLearner: nothing, just shorthand Mar 29 06:25:02 QubeZ: Are you saying they are exactly the same effectively? If so, which one should I go with? Mar 29 06:25:20 i always use /> personally Mar 29 06:25:32 QubeZ: Thank you very much for your help. Mar 29 06:25:39 you can use /> as shorthand only when there are no other < > tags between Mar 29 06:26:00 for example /> <-- will not work Mar 29 06:26:11 QubeZ: Ah - that's a good point to note. Will keep this in mind. Mar 29 06:26:23 it has to be Mar 29 06:26:33 hmmm does anyone experience system FC after messing with IO stuff? Mar 29 06:26:48 missed the /> after /test" but you get the point Mar 29 06:27:06 good night, im wiped Mar 29 06:27:08 later Mar 29 06:27:09 coz I have got a weird result on my phone ..... the system has become unresponsive (but not any package) Mar 29 06:27:16 QubeZ: Right. I do get it. I could also have been and we would be good - right? Mar 29 06:27:17 cya QubeZ Mar 29 06:27:27 Later Mar 29 06:28:08 aLearner: /> you use when you want to close the tag without adding a , some tags can't be used that way because they need to contain other values (which they're the parent for) Mar 29 06:28:09 new build of To Do Mapr hits in 2 more days Mar 29 06:28:10 w00t Mar 29 06:28:18 todomapr.com, try it out :) Mar 29 06:28:30 ok now really... bed Mar 29 06:33:07 Mikellip: Hmmm - thinking....Thank you. Mar 29 06:35:28 Mikellip: ---> http://collabedit.com/483qq could I close the ImageView tag with just /> instead of ? Mar 29 06:41:10 hi Mar 29 06:41:59 how can handle the screen rotation while i record or other operations? ie. i write an app that record from MIC, but when the screen rotate it stops, i've to handle the screen rotation, right? Mar 29 06:42:35 virtx: Kinda slow right now... Mar 29 06:44:05 what slow? :) Mar 29 06:46:31 virtx: either you make your activity handle the rotation, or you do the recording in a service Mar 29 06:47:57 Leeds: how can i handle it? i just want record after rotation too Mar 29 06:48:08 or other events Mar 29 06:48:18 Can anyone reach http://schemas.android.com/apk/res/android? I get a DNS lookup error.. Mar 29 06:48:39 http://developer.android.com/guide/topics/resources/runtime-changes.html Mar 29 06:48:51 Thinner: it's not a page, it's a namespace identifier Mar 29 06:49:27 Leeds: Yes, but it still needs to be reached by http - or have I misinterpreted something? Mar 29 06:49:41 nope, it doesn't need to be reached at all Mar 29 06:49:43 I can't run by application in the simulator because it can't reach the schema Mar 29 06:49:49 So it does not have a schema Mar 29 06:49:49 nonsense Mar 29 06:49:54 Where can I find all the android:blah resources? I know there's android:id, android:layout_height, etc...but where's the whole list at? Mar 29 06:50:34 aLearner: http://developer.android.com/reference/android/R.attr.html Mar 29 06:50:39 virtx: Just saying that there weren't many people in the room, but that seems to have changed Mar 29 06:50:42 Thinner: the schema ID does not have to be reachable Mar 29 06:50:43 aLearner: do you have eclipse? it will list all attributes for you, too Mar 29 06:51:02 Leeds: Thank you! Mar 29 06:51:07 aLearner: generally they are quite self-explanatory Mar 29 06:51:22 Mikellip: Yes, I do. But how do I get it to show up _all_ the attributes? Mar 29 06:51:31 Mikellip: Thank you for the suggestion. Mar 29 06:51:40 Thinner: what error are you getting which makes you think the schema URL is stopping your app from running? Mar 29 06:51:55 Leeds: I was just about to lauch the app and check :) Hang a sec Mar 29 06:52:35 aLearner: regarding your http://collabedit.com/483qq - yes you can close the ImageView with /> Mar 29 06:52:54 Mikellip: Cool beans. Thank you for looking into that as well. :-) Mar 29 06:53:03 aLearner: it will list the attributes are you type android: Mar 29 06:53:23 aLearner: you also have menues that list everything, while in graphical editing mode Mar 29 06:53:43 aLearner: "are you type" = as you type Mar 29 06:53:51 Thank you...Let me try that. Also, have to look into graphical editing mode. Mar 29 06:54:02 aLearner: if not, press ctrl + space Mar 29 06:54:04 I've noticed things pop up (intellitype?) Mar 29 06:54:12 aLearner: yeah Mar 29 06:54:59 Cool. Thanks! Mar 29 06:55:44 hi guys Mar 29 06:56:23 how can I set launchMode of Activity in conjunction Mar 29 06:56:30 like singleTask|singleInstance Mar 29 06:56:31 so my mp4 videos aren't working on androids videoview Mar 29 06:57:10 is there a surefire way to convert videos for android? Mar 29 06:57:25 If I set that way, I get an error saying it's string Mar 29 06:57:58 yhpark: try leaving a space between the values? Mar 29 06:58:23 just tried Mar 29 06:58:25 not working Mar 29 06:58:27 goddard: presumably you've memorised http://developer.android.com/guide/appendix/media-formats.html Mar 29 06:58:29 One more question: Is there any way I can change imageUrl to something that points to a picture locally (instead of a URL)? ---> http://collabedit.com/483qq Mar 29 06:58:52 error: Error: String types not allowed (at 'launchMode' with value 'singleTask singleInstance'). Mar 29 06:59:30 Leeds: Turned out it was Netbeans that misinterpreted the xml-file. Thanks for the help :) Mar 29 06:59:42 Thinner: no worries :) Mar 29 07:00:10 yhpark: erm... looking now, I'm not sure you *can* set multiple launchModes, can you? Mar 29 07:00:30 I can, with Intents Mar 29 07:00:43 hmmmm... Mar 29 07:01:47 I think "X | Y | Z" in the docs means one of the above Mar 29 07:02:30 as opposed to, say, configChanges, where it specifically says one or more, and use | to separate them Mar 29 07:02:49 yeah it seems I can't Mar 29 07:02:51 :( Mar 29 07:18:00 Hi, I have a application in which I download data using ajax call.s I observed that the size of my applications is going up each time I download the data. How can I avoid this? Mar 29 07:18:42 Ajax calls? Mar 29 07:19:08 You can free up the resources if you add to a data structure every time you get data from http Mar 29 07:19:44 I'm going to do a live light show, if enough people are interested, say "Kittens, give us a lightshow!" Mar 29 07:20:10 ... Mar 29 07:20:27 Mikellip, I am just using thm in arrays. Mar 29 07:20:48 Mikellip, So basically I must release all the resources right Mar 29 07:21:37 I assumed you meant RAM when you said "size", and yes you should just destroy whatever data structure before loading more data into it - if that's the way you do it Mar 29 07:22:13 if you're on irc.canternet, join #ravingismagic for details and to suggest songs. I don't mean to solicit, but I would like to do something new Mar 29 07:22:14 but that's only if you use a dynamic data structure, other stuff would overwrite Mar 29 07:23:11 Mikellip, I dint mean RAM. I meant the literal size of my application. Mar 29 07:24:04 Rrjois: then it must be a database or something you use for storing data? Mar 29 07:24:27 Mikellip, I am using shared preferences to store URL's Mar 29 07:24:33 urls Mar 29 07:25:03 Rrjois: ok, so that's probably why then Mar 29 07:26:06 Mikellip, oh ok. Just a question. What happens if u do not release resources like arrays, array lists and maps? Mar 29 07:27:25 Rrjois: they get destroyed when your Activity is destroyed or they go out of scope... Mar 29 07:27:39 Mikellip, thanks :) Mar 29 07:36:53 is there a way to focus a edittext without bringing up the soft keyboard? Mar 29 07:38:48 .requestFocus() doesn't? Mar 29 07:39:14 http://twitch.tv/kittencollision < streaming, pre show Mar 29 07:39:51 JakeWharton, requestFocus does receive focus but also brings the soft keyboard up Mar 29 07:39:55 i wonder: what do i have to read if i want to create an android project that can lateron be used as library in another project? Mar 29 07:40:33 that's strange Mar 29 07:40:40 is that not supposed to happen? Mar 29 07:40:40 it never does on all the devices we test with Mar 29 07:40:53 interesting Mar 29 07:41:13 so the reasons I want focus is for hard keyboards to work properly Mar 29 07:41:17 oooh, android create lib-project should do the trick i guess.. Mar 29 07:41:30 but I don't want soft keyboard to pop on phones without a hard keyboard Mar 29 07:42:34 Ehi guys do you know why res/layout-sw600dp/ that is for 7” tablets is not used for the first Samsung Galaxy Tab 7"? Mar 29 07:42:59 because it doesn't run 3.2+ Mar 29 07:43:42 JakeWharton, do you test on Galaxy Nexus? Mar 29 07:43:51 I test on about 20 phones/tablets Mar 29 07:44:36 JakeWharton, ahahha just read it right now :P Mar 29 07:44:39 thank you anyway Mar 29 07:45:10 etuleu, my primary test phones are a Nexus One on 2.3.3+ and a Galaxy Nexus on 4.0.2 Mar 29 07:45:34 hm maybe it's because I have a view pager with multiple edittext's Mar 29 07:46:12 JakeWharton, and what happens if I declare xlarge and layout-sw600dp? If I'm using a 3.2+ device it will use the second and if I'm before 3.2 it will use the first? Mar 29 07:46:23 it will use the second Mar 29 07:46:33 the table on the website lists them in order of precedence Mar 29 07:47:02 and the original galaxy tab was large-hdpi FYI Mar 29 07:47:30 thank you :) Mar 29 07:47:42 damn I think that the android dev has to be payed a lot :D Mar 29 07:48:58 we do have to put up with a lot :) Mar 29 07:54:39 Found an Android bug Mar 29 07:54:40 :) Mar 29 07:54:49 cool story bro ;D Mar 29 07:54:52 THERE IS NO SUCH THING Mar 29 07:54:53 and it causes a crash on the Samsung Fascinate on 2.3.5 Mar 29 07:54:57 JakeWharton, for example, if I put the res/layout-large how can I know that it wont include a smartphone? Mar 29 07:55:02 well, indirectly Mar 29 07:55:15 stermi, layout-large-hdpi-1024x600 Mar 29 07:55:17 JakeWharton, it could be because of the samsung rom Mar 29 07:55:19 that's what I do for the Galaxy Tab Mar 29 07:55:30 JakeWharton: what do you think is the best place to learn creating custom interactive views? i'm not good at this. Mar 29 07:55:38 which aspect of it? Mar 29 07:55:41 for example, an interactive chart Mar 29 07:55:42 if I want to include all the tablet ? which is the best one? Mar 29 07:55:56 i'm pretty lost on the gesture stuff Mar 29 07:56:01 romainguy had a talk at some conference that was available online Mar 29 07:56:12 hmm Mar 29 07:56:15 ok, thx Mar 29 07:56:17 i usually take to the Android source and try to learn from what it does Mar 29 07:56:30 there's some website that starts with a 'p' that hosts the talks Mar 29 07:56:37 it escapes me at the moment Mar 29 07:56:56 ok Mar 29 07:57:20 empty overflow menu + ICS + hardware menu key = blank/invisible popup Mar 29 07:57:51 so you press the menu key, see no change, and then your next press seems to do absolutely nothing (since it's dismissing the popup window) Mar 29 07:58:25 and since ABS mimics that incorrect behavior it causes an NPE on TouchWiz on the Samsung Fascinate running 2.3.5 Mar 29 07:58:27 and only that device... Mar 29 07:58:45 craziness Mar 29 07:59:32 g00s, ViewPager is good to learn from for gestures Mar 29 07:59:38 not sure what explicitly helps with charting Mar 29 07:59:43 something that does Canvas drawing Mar 29 08:00:09 you can pretty much just learn from any Java code and apply that to a Canvas. most of the methods are the same/similar Mar 29 08:00:10 JakeWharton: i wish there was a book just on this topic. i get lost in the intricacies of taking care of little things like slop Mar 29 08:00:38 yeah Mar 29 08:00:44 thats a good suggestion to look at though Mar 29 08:09:30 i wonder what chrome 18 has Mar 29 08:09:48 18? Mar 29 08:09:53 hasn't that been out for a while? Mar 29 08:09:57 yeah, it just updated Mar 29 08:10:02 huh Mar 29 08:10:04 weird, i had 17 Mar 29 08:10:14 oh i'm on dev :-x Mar 29 08:11:23 chrome://gpu/ Mar 29 08:17:50 getting NullPointerException trying to registerReceiver(BroadcastReceiver, new IntentFilter("MY_ACTION")) Mar 29 08:18:18 this is within an activity's constructor Mar 29 08:18:39 you shouldn't be doing anything in an activity constructor Mar 29 08:18:42 move it to onCreate Mar 29 08:19:38 looks like that was the problem Mar 29 08:20:15 like to initialize my members asap Mar 29 08:20:43 consider onCreate Android's activity constructor Mar 29 08:20:58 already done Mar 29 08:28:33 is there an online documentation to integrate my music api with beats audio features? Mar 29 08:28:44 beats ? Mar 29 08:28:47 wtf Mar 29 08:29:13 looks on HTC's website Mar 29 08:29:18 or whoever carries that Mar 29 08:30:16 htc made that developer page, probably has something Mar 29 08:31:03 i forget how to use repo Mar 29 08:31:25 ;d Mar 29 08:31:37 I just pull the single repos I need Mar 29 08:31:47 i'm contributing Mar 29 08:31:48 or trying to Mar 29 08:32:05 http://b.android.com/27986 Mar 29 08:32:12 found that gem and its fix today Mar 29 08:32:33 hah Mar 29 08:34:20 Did google push support lib changes yet? Mar 29 08:34:36 no Mar 29 08:34:44 JakeWharton, yes I've already donwloaded the SDK but I tought there will be an online documentation :D Mar 29 08:34:46 i'm about to try and build the .jar from the sources included in the SDK download Mar 29 08:35:00 I have never used beats Mar 29 08:35:09 nor will I ever in all likelihood Mar 29 08:35:46 Yeah, was going to ask why you couldn't just do that Mar 29 08:36:00 SimonVT, because they're not tied to anything specific Mar 29 08:36:12 with the repo we can always go to that SHA and get the same sources to build from Mar 29 08:36:23 ah Mar 29 08:36:39 I tried posting to the thread from JBQ today when he announced the push but I wasn't moderator approved (yet) Mar 29 08:36:49 If it doesn't happen by the weekend I'll move forward with the SDK sources Mar 29 08:37:23 JakeWharton: so were there fixes to the cal ? Mar 29 08:37:26 *acl Mar 29 08:37:32 no Mar 29 08:37:51 neither the two huge bugs i submitted patches for nor the context menu dispatching erroneous behavior Mar 29 08:37:58 which i also submitted a patch for Mar 29 08:37:59 :( Mar 29 08:46:05 hii Mar 29 08:46:24 is the ratingbar in the android market an float or an int? Mar 29 08:46:39 because in the SDK, its an int..? Mar 29 08:47:33 oh my bad..its a float! Mar 29 08:47:37 sorry.. Mar 29 08:53:04 um, help Mar 29 08:53:10 i hit cmd+option+space on my mac Mar 29 08:53:17 now my mouse doesn't click anything Mar 29 08:53:30 i can right click things Mar 29 08:53:35 but not "left" click Mar 29 08:56:48 hello Mar 29 08:57:15 how can i find the status of outgoing call? Mar 29 09:01:32 anybody there? Mar 29 09:02:01 No soup for you! Mar 29 09:02:33 tomless,thanks for reply Mar 29 09:03:30 Indeed Mar 29 09:03:39 * t0mless wanders off to bed Mar 29 09:04:47 anybody know about sip calling? Mar 29 09:05:29 hey, a good book with example for android programming? apart "hello, android" Mar 29 09:06:05 vitx,i dont want ant theory but i want to ask some query realted sip call Mar 29 09:09:08 http://code.google.com/p/csipsimple/source/browse/trunk/CSipSimple Mar 29 09:09:41 thanks virtx Mar 29 09:12:43 *yawn* Mar 29 09:12:44 night Mar 29 09:14:25 how can change the sip useragent through code Mar 29 09:17:54 jagruti_: any particular reason to believe you can? Mar 29 09:19:56 Leeds,when the call arrive in the asterisk then it will the like Sip/UA but if we want to change them as other name like company name so for that i need to change the sip user agent anme Mar 29 09:19:59 name* Mar 29 09:20:49 jagruti_: punctuation - learn it :) Mar 29 09:21:04 anyway, I didn't ask why you wanted to change the user-agent - I asked why you thought you would be able to Mar 29 09:22:37 Leeds, i think that because in future it might be possible the client require that changes.. Mar 29 09:23:41 jagruti_: You simply need to find out of the google lib has the methods to do that Mar 29 09:24:01 jagruti_: shouldn't take too many seconds to google Mar 29 09:24:11 jagruti_: or to read the documentation on the link above :-P Mar 29 09:24:57 thanks Mikellip, Mar 29 09:25:08 The SIP protocol itself doesn't enforce SIP UA or even displayed number/name to anything - you can freely set it ...just need to do it somehow :-P Mar 29 09:25:18 good morning Mar 29 09:25:29 Mikellip,but i have already searche for that but i cant found.. Mar 29 09:25:53 so if you can't find it, why do you assume it exists? Mar 29 09:26:06 Mikellip, sip header in that useragent is a method but how to change that is i cant found.. Mar 29 09:27:22 if i change things in my SQL-DB (meaning the structure of the db) i change the Database_Version and this will right now result in deleting the old db and creating a new one ... if i want to transfer the old data to the new db, i basically read all the data out of the old db into arrays and write them into the new one afterwards ? or is there an easier way to accomplish that? Mar 29 09:28:26 Surfer2010: generally, you don't delete the old db and recreate - you use things like "add column" to modify it Mar 29 09:28:26 Leeds, i thought it is possible because as we see in softphone then in that also useragent name is different so at somewhere it is added,so we can also change at there.i cant found that so i have asked here ,might be somebody know about that.. Mar 29 09:28:28 The easier way is, don't delete the db.. just make any changes you need Mar 29 09:28:29 Surfer2010: depending on the type of modification you might be able to use f.ex. "alter table" sql instructions Mar 29 09:28:38 jagruti_: why do you think it's possible in Android? Mar 29 09:29:04 not "why would you like it to be possible?" or "what other platforms is it possible on?" Mar 29 09:29:48 Leeds,because now sip is inbuilt in android and useragent is in the sip.. Mar 29 09:30:04 SimonVT what do you mean by "just make any changes you need ? ... if i for example insert a column inbetween two others Mar 29 09:30:08 right, and since the user agent would be the Android SIP library, it would be fixed Mar 29 09:30:28 i go through all rows and add this column or ... ?! Mar 29 09:30:47 Surfer2010: Why does it need to between two specific columns? Mar 29 09:31:11 Surfer2010: do you know the "alter table" SQL command? if not, go look it up somewhere Mar 29 09:31:17 doesn't neet do be Mar 29 09:31:30 Then just alter table, like Leeds said Mar 29 09:31:34 okay i will look that up first Leeds :) Mar 29 09:33:54 hi Mar 29 09:35:28 would it be "architecturally" correct for fragments to communicate directly with each other ? Mar 29 09:35:36 Nope Mar 29 09:37:29 Hello! I have applications that have diferent res in port and land modes.When app in land mode, can i in code set to imageView res from landscape mode? Mar 29 09:37:33 it just feels so dirty to have multiple sets of fragments that have nothing to do with each other (previously in separate activities) communicate by firing events on the same activity Mar 29 09:37:52 Mikellip,I am using the inbuilt sip library but i cant found how to change sip user-agent name Mar 29 09:43:17 jagruti_: either the library you use has a method for changing the header, or you write your own sip client Mar 29 09:43:41 jagruti_: or proxy through a PBX you control and use other means to change the user agent Mar 29 09:45:50 Hello! I have application that have diferent res in port and land modes. When app in land mode, can i from code set to imageView res from port mode? Mar 29 09:47:18 no Mar 29 09:47:49 That ruins the point of orientation qualifiers Mar 29 09:49:20 i understand that it is stupid Mar 29 09:49:50 hi dudes Mar 29 09:49:51 hi guys Mar 29 09:49:55 but it is just interesting :) Mar 29 09:50:00 hI! Mar 29 09:50:18 i dont know whether its a right place to ask it but Mar 29 09:50:46 pushkar! Mar 29 09:50:46 i have a homework , a sqlite based android application Mar 29 09:50:52 a simple contact list Mar 29 09:50:57 im having problems downloading large files, keep getting OOM exceptions, can anyone shed any light on what I can do better? http://pastebin.com/usa5vuP5 Mar 29 09:51:13 a program that you add datas Mar 29 09:51:25 also you can search from db Mar 29 09:52:03 is there anybody have a similar stuff? Mar 29 09:52:18 hello Mar 29 09:52:20 i can send you a screenshot about that Mar 29 09:53:50 i have problem in my SIP application Mar 29 09:54:14 juned, what kind of probel please specify correctly Mar 29 09:55:15 anyone have idea about SIP? Mar 29 09:55:36 frogtimer: show us the code you've written so far, and we might be able to give you some advice Mar 29 09:55:53 may i go private to you? Mar 29 09:56:12 nope Mar 29 09:56:17 ok Mar 29 09:56:32 http://students.sabanciuniv.edu/~ccimenci/hw2.jpg Mar 29 09:56:45 this is a screenshot of final application Mar 29 09:56:47 that's not your code Mar 29 09:56:51 its not me yes Mar 29 09:56:56 is that a screenshot of your code running? Mar 29 09:57:18 mine cannot search Mar 29 09:57:18 juned: tell jagruti_ what your problem is :) Mar 29 09:57:40 just text boxes and empty buttons Mar 29 09:57:46 related with db Mar 29 09:57:56 may i see the codes to you with url? Mar 29 09:58:23 @jagruti i have developed one SIP application for making and receiving the call but the problem is that my application only works on wi-fi network, its not working on internet,3G and GPRS connection...! Mar 29 09:58:33 setting my application's theme programmatically and then when i navigate to a screen the view attributes aren't using that theme Mar 29 09:58:47 http://students.sabanciuniv.edu/~ccimenci/AndroidDatabaseUyg.zip Mar 29 09:58:57 frogtimer: use something like pastebin Mar 29 09:58:58 this is the whole thing i have for now Mar 29 09:59:14 jasonmog: setTheme has to be called before setContentView Mar 29 09:59:27 ah Mar 29 09:59:36 Before onCreate pre-ics or something Mar 29 09:59:39 i'm not a programmer i'm not into that terms Leeds Mar 29 09:59:42 well it should be Mar 29 09:59:43 Er, super.onCreate Mar 29 09:59:52 im studying manufacturing engineering Mar 29 10:00:12 all i do is, stealing and modifying codes Mar 29 10:00:18 activity A sets the theme, starts activity B, B's content view not respecting theme Mar 29 10:00:27 frogtimer: that was the wrong thing to say Mar 29 10:00:27 i'm setting the theme at the application level Mar 29 10:00:28 Cus setTheme sets the theme for the Activity Mar 29 10:00:32 Not the whole application Mar 29 10:00:36 im having problems downloading large files, keep getting OOM exceptions, can anyone shed any light on what I can do better? http://pastebin.com/usa5vuP5 Mar 29 10:00:40 oh? Mar 29 10:01:04 sorry Leeds Mar 29 10:01:15 public void setTheme (int resid)Since: API Level 1 Mar 29 10:01:15 Set the base theme for this context. Mar 29 10:01:19 i have a custom application subclass and i access it as a static Mar 29 10:01:20 For this context, not all contexts Mar 29 10:01:33 the context i'm setting it on is the application object Mar 29 10:01:36 but i thought here was the ultimate place that i can take some help Mar 29 10:02:02 MyApplication.getShared().setTheme(); Mar 29 10:02:22 if you have codes like that you can share and i can modify it man. it should not always be a big deal Mar 29 10:02:45 i need help man, i think you have a profeciance on that Mar 29 10:03:36 *profeciency is the right word Mar 29 10:04:18 http://stackoverflow.com/questions/1823724/why-getapplicationcontext-settheme-in-a-activity-does-not-work Mar 29 10:05:54 since i'm having a little trouble explaining what i'm trying to do I wrote a more extensive question here http://pastebin.com/ZbXSz1RJ if anyone has any ideas about best-practices in such a scenario that would be great Mar 29 10:06:00 is there any one who can help me? Mar 29 10:06:28 i wish Mar 29 10:06:43 if the described method is indeed the best path to the goal, then jolly good Mar 29 10:07:28 frogtimer: saying you steal code and modify it... I don't think you meant to use that word Mar 29 10:07:35 god memory management is such a bitch in java Mar 29 10:07:51 especially when apps only get like 24mb heap Mar 29 10:08:04 leeds you are right, if i were you i would think in the same way Mar 29 10:08:36 but im not a programmer. i dont know java or c. its the only way that i could do Mar 29 10:08:51 CallumTaylor: it's not just Java. Memory management is a major concern when you're working on embedded platforms. It's something you get used to, regardless of the language you're using Mar 29 10:09:19 because i have to pass my school which is to be late (2 years more) Mar 29 10:09:40 its my 6th year of manufacturing engineering Mar 29 10:11:22 come on it cannot be a complicated application. i think most people here coded a similer thing before Mar 29 10:14:11 juned, i have no idea about that...:D Mar 29 10:14:21 Leeds: is it usefull to have this alter table (sql) implemented in general? not really ? because i need to specify what exactly changed what i only know once i changed it ... correct? Mar 29 10:14:41 Surfer2010: you *are* using a database helper, right? Mar 29 10:14:47 yes Mar 29 10:16:09 @jagruti thanks Mar 29 10:16:23 so you're just implementing the onUpgrade (or whatever it's called) Mar 29 10:16:23 Leeds i liked the www.richardcohen.biz Mar 29 10:16:36 its the best website i have ever seen Mar 29 10:16:38 :) Mar 29 10:16:49 exactly Leeds Mar 29 10:16:52 and so far if the version is greater than the one before it will delete all tables and create new ones ... but right now i don't think i will change the version anymore ... is it still usefull to implement something like the "alter table" you talked about ? or do i implement that Mar 29 10:16:54 good, I'm glad - but it's absolutely nothing to do with me Mar 29 10:17:25 erm, no... why would you delete all tables? we've already gone over this Mar 29 10:17:29 ok. what do you advice to me? Mar 29 10:17:43 i know i don't want to do this anymore Mar 29 10:17:49 frogtimer: go to your professor, tell him you don't know how to do the work, and you left it too late to learn? Mar 29 10:18:13 but if i implement the "alter table" thing i need to know what will change don't i ? Mar 29 10:18:18 or buy a crapload of red bulls ^_^ Mar 29 10:18:41 ok man :( thanks im goin Mar 29 10:18:52 Surfer2010: presumably you know your own database? Mar 29 10:18:53 Surfer2010: You're the developer.. Of course you know what will change Mar 29 10:19:17 some strange conversations in here today... Mar 29 10:19:22 yes i would know once i change Mar 29 10:19:34 So once you make a change.. Change the db version Mar 29 10:19:35 ??? Mar 29 10:19:36 profit Mar 29 10:21:23 and then i implement something like a for loop (until version is the newest) with a switch case inside of it for a "upgrade method" from one to the next version and add code every time i update my DB ? ... so a person who misses out on 3 new app-versions will still have his data? Mar 29 10:22:07 generally, a series of "if oldversion Just make a switch on the old db version Mar 29 10:22:51 switch (oldVersion) { case 1: doChanges(); case 2: moreChanges(); Mar 29 10:23:03 ok Mar 29 10:23:18 Leave out the break and it'll fall through to the next case for you Mar 29 10:23:21 i have a Button that is added to a ListView at runtime but it is not using the styles for the current theme. it has white text when the textColor=#000 Mar 29 10:24:04 ahhh that is true SimonVT ;) great Mar 29 10:24:54 onendcall() method of sipaudiocall listener will not work when call end by other party during outbound? Mar 29 10:25:20 can anybody know why this is occure? Mar 29 10:26:20 nobody has any advice ? ;) Mar 29 10:26:58 nobody know about my problem? Mar 29 10:27:01 Follow your dreams! Mar 29 10:27:07 hehe Mar 29 10:27:09 dont eat yellow snow Mar 29 10:27:25 yellow snow cones must not be a good idea for a business Mar 29 10:29:08 hm i guess the default button style overrides my application level text color Mar 29 10:29:21 okay i think i'm getting the hang of this Mar 29 10:32:41 if i just add a new table ?! i just create this new table and ?! mhh Mar 29 10:32:52 i see i don't quite understand this yet :D Mar 29 10:33:29 it's better to have a onCreate for each table correct? Mar 29 10:33:46 that means one DbHelper for each table?! Mar 29 10:34:01 ??!?!?!?! Mar 29 10:34:06 It's DbHelper, not TableHelper Mar 29 10:34:18 lol Mar 29 10:34:54 true ... Mar 29 10:35:55 but still it's better to be able to create one table in the "onCreate" instead of creating for example 3 at once Mar 29 10:36:09 You can create all the tables you want Mar 29 10:37:17 ok but if i add a new table ... looking at the changes from Version9 to 10 ... i would only need to add this table and leave the others untouched Mar 29 10:37:19 can we make one variable like once we have assign a value in that then never we can assign any value? Mar 29 10:38:43 guys I'm going really crazy Mar 29 10:39:02 jagruti_: final? Mar 29 10:39:56 hrnt ,can we can declare date variable as final? Mar 29 10:40:27 why not? try it and see. Mar 29 10:40:43 ok hrnt..!! Mar 29 10:40:58 although it probably doesn't help really that much Mar 29 10:41:10 because it won't prevent date.setTime() or the other methods that change the state Mar 29 10:41:12 I'm using this method to know if my app is in background or not: https://gist.github.com/49a6b937a0d0819a6a93 and I'm calling it on my onPause, onStop and onDestroy to check if it's true or not that my app in background. So the result is: when I'm in my app and I click home (andorid button home) my app goes in the background. When I click back it says that it's not in the bacground! how is it possible? Mar 29 10:42:19 it says? Mar 29 10:42:25 Surfer2010: Vogella ha a pretty nice guide worth mentioning (if it's not that one you're following): http://www.vogella.de/articles/AndroidSQLite/article.html Mar 29 10:43:11 hrnt,ok but just i need store the time ,when onchange() method call but when 2nd time that method call then i dont want to save the time Mar 29 10:44:35 drlaban i read throu this but he only drops the talbes and creates new ones Mar 29 10:45:10 if i only add a new table to the db ... this should do it correct? db.execSQL("CREATE " + DATABASE_TABLE3); Mar 29 10:45:11 jagruti_: uhm, why do you need final for that? Mar 29 10:45:32 leeds, man im still waiting you let your anger fly away Mar 29 10:45:44 jagruti_: assign to the variable the first time onChange is called Mar 29 10:45:53 the second time, note that it is != null and do not assign into it :P Mar 29 10:46:28 hrnt,bcz when first time that method call at time i wan to save the time but when next time that same method call then i dont want to change the saved time. Mar 29 10:47:03 hrnt,wow great y i cant think..!! Mar 29 10:48:05 Surfer2010: In order to create a table the syntax is: "CREATE TABLE [table]". Mar 29 10:49:30 so i basically use the same code as the one i use in the onCreate method and copy it in the "onUpgrade" case 9 (if that happended from version 9 to 10 ?!!!! Mar 29 10:53:42 hi Mar 29 10:54:17 what's wrong with my dialog box, I have no error but it's not displayed: http://pastebin.com/swXqYqxh Mar 29 10:56:32 I don't think that's the correct way to use dialogs, you should be using showDialog() Mar 29 10:58:38 Is there anything you should setup when using a TimePicker? Because whenever I add a TimePicker to my layout Im getting an inflation exception, but when removing it the program runs fine. Thre only thing I have done is move a timepicker from Eclipse into my layout Mar 29 10:58:49 I ave no clue whatś causing the exception Mar 29 10:59:25 TimePicker is included since API Level 1, so it shouldnt be a compatibility issue Mar 29 11:00:01 magnets: thanks! Mar 29 11:03:05 Have they changed how AsyncTask works in ICS ? Mar 29 11:05:06 Wait, why is TimePicker using NumberPicker when Im building on API Level 10? Mar 29 11:07:57 numberpicker wasn't added until recently IIRC Mar 29 11:08:10 anyone know if its possible to link your dev account to a new merchant account? (my merchant account is located in the wrong country so i cant charge for my apps) Mar 29 11:08:16 havchr: IIRC yes Mar 29 11:08:21 anyone did an app for kindle fire? are there micro payments allowed? Mar 29 11:08:42 magnets, thats the point Mar 29 11:09:04 somehow it is using invoking numberpicker while using android 2.3.3 which doesnt have it Mar 29 11:09:12 havchr: or it could be that they changed it for honeycomb Mar 29 11:09:15 which ius weird because ive never set it to that or higher Mar 29 11:09:18 It as pretty much always used NumberPicker, NumberPicker just hasn't always been public Mar 29 11:09:26 havchr: (asynctasks are executed serially nowadays, i think) Mar 29 11:09:27 hrnt: without updating the docs? Just had a collegue come and inform me that if A and B tasks are executed, in ICS it will not start B until A is finished. Mar 29 11:09:33 indeed Mar 29 11:09:45 still doesnt explain why its crashing my app when all i did was adding a timepicker Mar 29 11:10:06 havchr: it is mentioned in the docs if you know where to look :) Mar 29 11:10:26 havchr: execute says "Note: this function schedules the task on a queue for a single background thread or pool of threads depending on the platform version. When first introduced, AsyncTasks were executed serially on a single background thread. Starting with DONUT, this was changed to a pool of threads allowing multiple tasks to operate in parallel. After HONEYCOMB, it is planned to change this back to a single thread to avoid common application errors Mar 29 11:10:39 (i guess that message got cut off, anyways...) Mar 29 11:11:09 hrnt: I see. thanks. Mar 29 11:11:22 havchr: so basically before DONUT it is serial, between DONUT and HONEYCOMB it is concurrent and after HONEYCOMB it is serial again :) Mar 29 11:12:41 so I guess I should not use AsyncTask for fire-and-forget calls to a webservice anymore :) Mar 29 11:13:50 personally i don't use asynctask at all :P Mar 29 11:17:08 You can force it to become paralell too Mar 29 11:17:40 If you read the docs on ASyncTask it will tell you how Mar 29 11:17:43 if you mean executeOnExecutor, then notice that it is API level 11 Mar 29 11:18:14 Yup Mar 29 11:18:19 :-( Mar 29 11:21:08 guys I want to connect to Adnroid database from Eclipse and I found that all I need is to use File Explorer inside of Android and go to data/data/"your app name"/databases/"your database Mar 29 11:21:20 problem is if I click on data folder it does not expand like it is empty Mar 29 11:21:40 other two folders mnt and system workes nicely Mar 29 11:39:42 hi Mar 29 11:39:52 how are the letter tracing apps created? Mar 29 11:39:58 is it the right place to ask? Mar 29 11:40:08 or do we have other channel for it? Mar 29 11:40:34 i need to create an app that would help people trace indic alphabets Mar 29 11:40:58 anyone used micro payments on amazon store ? Mar 29 11:42:54 Trudko: I'm seing the same "issue" (not sure if it really is one). When I use "adb shell" and try to ls the contents of the data-folder I get "Permission denied" Mar 29 11:43:27 Trudko: Most likely you need root Mar 29 11:44:49 is there something like dialog.setCanceledOnTouchOutside to close a dialog when OnTouchInside ? Mar 29 11:46:36 how to get screen resolution in NDK? Mar 29 11:47:38 mango-: you can get the Display object in Android and pass it over JNI or just pass over some int's of the width and height Mar 29 11:48:27 mango-: see http://developer.android.com/reference/android/util/DisplayMetrics.html Mar 29 11:48:52 that's not an option, because DisplayMetrics returns invalid values in ICS with software on-screen buttons Mar 29 11:49:01 how do I set the value of a text field by id from within a fragment ? Mar 29 11:50:46 for example, galaxy nexus returns 1184 x 720 Mar 29 11:53:26 what does this mean: 03-29 11:53:00.503: E/AndroidRuntime(369): ERROR: thread attach failed Mar 29 11:54:58 I am given a homework to create a letter tracing android app, can someone help me? Is it the right channel to ask? Mar 29 11:59:53 the app will have a picture of a letter in background, and a finger tracing over the image should return correct or congo message and if finger traces outside the area, it should show an error message Mar 29 12:01:14 how do i figure out what the problem is with this: 03-29 12:00:30.373: W/ResourceType(53): Resources don't contain package for resource number 0x7f0700e5 Mar 29 12:01:21 tuxnani: cool. have you coded android before? Mar 29 12:03:08 havchr, I did a few tweeks, created very basic apps based on galleryview Mar 29 12:03:27 havchr, can you guide me how does this tracing work? Mar 29 12:05:43 ahhhh who can help me i don't know what i did so it does not run anymore ... ?! :-O here is the LogCat: http://pastebin.com/Naz4A0zm Mar 29 12:06:41 tuxnani: you should be looking at example code for doing a drawing app Mar 29 12:06:56 anybody know how to delete contact from phone? Mar 29 12:08:03 quick question, to help free up memory, can i just set an array of say drawables to null? Mar 29 12:08:09 when they're not being used any more Mar 29 12:08:43 i removed all changes but the app does not start anymore at all ... and there is no real error shown in LogCat ?! :-O please someone help me :-O Mar 29 12:09:35 Hi all Mar 29 12:11:43 SimonVT: can you please look at the CatLog? (http://pastebin.com/Naz4A0zm) Mar 29 12:12:13 people, I have a Socket Server application running with SSL/TLS and I would write application for android to connect to that server application. But this client application in android needs to use ssl/tls to works together socket server. Question is: has support to SSL/TLS in android to developement a pp using that? Mar 29 12:14:20 plm: yes Mar 29 12:16:47 wongk: could you point me where there download ssl/tls for android? google not show me a place specific for that.. Mar 29 12:16:59 mango-: i might have another method for you Mar 29 12:17:02 it's already included Mar 29 12:17:12 wongk can you tell me what it going wrong? it's not even starting my app anymore looks like not even trying to open it up Mar 29 12:17:12 mango-: that will get the correct values Mar 29 12:17:48 wongk: wow, good! for both, ssl and tls? Mar 29 12:17:49 hey folks, what is the "correct" style for the actionbar(sherlock) on pre-HC devices? black with blue bottom line or some kind of grey gradient? Mar 29 12:18:01 plm: yes Mar 29 12:18:08 wongk: thanks! Mar 29 12:18:08 guys I want to connect to Adnroid database from Eclipse and I found that all I need is to use File Explorer inside of Android and go to data/data/"your app name"/databases/"your database Mar 29 12:18:13 problem is if I click on data folder it does not expand like it is empty Mar 29 12:18:34 Napalm, i'm all ears Mar 29 12:19:13 at least Display's getSize() getWidth() and DisplayMetrics return wrong values Mar 29 12:19:13 wongk: other question: that ssl/tls can be used by other development language (like as python) in android? Mar 29 12:19:36 what's the easiest way of replacing the current fragment with a new fragment ? Mar 29 12:19:43 I'm tring to use CursorLoader instead of SimpleCursorAdapter for an SDK 8 project... and I think my head is going to explode. Mar 29 12:19:48 plm: im not aware of any python interpreter on android, not that i would know, i don't use [ython Mar 29 12:20:09 Surfer2010: what were the args you passed to adb logacat? Mar 29 12:20:30 mango-: so both android.view.Display and android.util.DisplayMetrics return incorrect results? Mar 29 12:20:48 what do you mean args? i just clicked on the "play" button in eclipse just like i always do Mar 29 12:21:03 How do I implement a ContentProvider to talk to my existing SQLiteOpenHelper implementation? Mar 29 12:21:08 Surfer2010: so the logcat is from eclipse? Mar 29 12:21:13 yes Mar 29 12:21:49 i've never seen "nothing happening" usually there are errors shown or something if the app cannot start Mar 29 12:22:04 wongk: http://code.google.com/p/python-for-android/ Mar 29 12:22:21 mango-: have you tried to put it in true full-screen getWindow().getDecorView().setSystemUiVisibility(View.SYSTEM_UI_FLAG_HIDE_NAVIGATION); Mar 29 12:22:43 I don't even want to provide any content to anyone! I just want to use the bloody cursorloader Mar 29 12:22:55 Surfer2010: try using this from the command line: "adb logcat volleyball:V *:S AndroidRuntime:E" Mar 29 12:22:59 then launch your app Mar 29 12:23:47 mango-: have you looked into a method to get the width and height of the soft navigation view? you could then add to the Display width and/or height depending on the resolution Mar 29 12:24:12 Napalm: i mean on the rotation Mar 29 12:24:47 mango-: i mean on the rotation Mar 29 12:24:59 damn what is wrong with me atm, need more coffee thats it! Mar 29 12:25:04 comman line ... you mean windows cmd? Mar 29 12:25:22 Surfer2010: yes, that is a command line Mar 29 12:25:47 i'm getting the screen size outside an activity Mar 29 12:26:01 mango-: from a service ? Mar 29 12:26:10 from JNI callback Mar 29 12:26:19 and navigate to the eclipse folder first? Mar 29 12:26:48 Surfer2010: you don't need to navigate anywhere Mar 29 12:27:02 but getting the soft navigation view size sounds like a good idea, i'll try that Mar 29 12:27:03 i assume you know what PATH is and how it works Mar 29 12:27:08 mango-: why not get it from the first activity and save it for later Mar 29 12:27:23 Hi guys someone know how to solve this: http://stackoverflow.com/questions/9923877/android-check-when-my-app-is-in-background-when-back-button-and-home-button ? Mar 29 12:27:37 it says the command adb is not found Mar 29 12:27:47 see above Mar 29 12:28:15 not sure if i know what you mean by PATH Mar 29 12:28:24 to the google! Mar 29 12:28:25 wongk: This is Python built to run on Android devices. It is made to be used together with SL4A (Scripting Layer For Android). Nearly all the actual non-python specific documentation can be found at android-scripting Mar 29 12:28:25 Napalm, that flag doesn't seem to affect the Display return values at all Mar 29 12:28:50 any idea why this turns into a steaming pile of shit ? http://dpaste.com/723441/ Mar 29 12:28:58 plm: i'm glad you found it, but i don't care :P Mar 29 12:29:01 mango-: if you want i should be able to get you some code to find the size of the soft nav? Mar 29 12:29:13 Napalm: that'd be awesome Mar 29 12:29:32 ? google path ... what?! ... i'm lost!!!!!! sorry Mar 29 12:30:13 ok, you know what google is for, right? Mar 29 12:30:27 and you don't know what I mean by PATH Mar 29 12:30:27 yes i google for cmd + path ?! Mar 29 12:30:47 wongk: yes, I know! I'm talking about if the ssl/tls installed by default on android can be accessed just for oficial language of android or for other scription language too? Mar 29 12:31:03 plm: couldn't tell you Mar 29 12:32:19 wongk: ok. But about oficial laguange: using java I can to develop a complete socket client application using tls to connect to Socket Server tls right? Mar 29 12:32:52 why do all attorneys have the shittiest websites Mar 29 12:33:45 <`z> fuck this Mar 29 12:33:50 <`z> can't get denora to work Mar 29 12:34:47 sory wongk seems like you're needed in many places ... but honestly i don't know what you're talking about ... i know how to google stuff, but google for "PATH" doesn't give anything usefull on the first 30 pages?! ;) entering your command in the cmd didn't work nor do i know what this command is supposed to do (and yes i also googled this command you told me) Mar 29 12:35:17 plm: that's what im saying Mar 29 12:36:08 https://www.google.com/webhp?q=command%20PATH Mar 29 12:36:17 I am trying to correct the error getLoaderManager() is undefined--I am targeting 7 and I have followed the instructions to add the SDK compat lib, but it is still giving me an undefined error Mar 29 12:36:38 wongk: there must be something in the code i did so the app does not start anymore ?! but shouldn't logCat tell me what error it is? Mar 29 12:37:35 with two separate layouts for a fragment, one for portrait and one for landscape, in the landscape layout I have a ListView and a FrameLayout, replacing the FrameLayout with another fragment works fine when an item is clicked. In portrait mode there is only a ListView, but I can't find a way to replace that view with a fragment when an item is clicked Mar 29 12:39:03 okay now i read what PATH is ... what does this now help me on the command you gave me? Mar 29 12:39:33 what is the error you received? Mar 29 12:39:56 http://pastebin.com/Naz4A0zm Mar 29 12:40:05 no Mar 29 12:40:20 is there anyway to record a video of whats happennig on device, like the ddms screenshot? Mar 29 12:40:21 what is the error you received when you tried to run the command i told you Mar 29 12:40:52 is there a better way than dialog.getWindow().setGravity(Gravity.BOTTOM) to show a dialog box just below the ImageView which makes it appear when clicked ? Mar 29 12:41:00 path=adb logcat volleyball:V *:S AndroidRuntime:E ..... nothing happened Mar 29 12:41:09 you're still not answering my question Mar 29 12:41:21 Surfer2010: Try using Project -> Clean... in Eclipse and see if that does anything for you. Mar 29 12:41:32 gaz` yes, search the market for screencast Mar 29 12:42:39 drlaban nope :( Mar 29 12:43:06 wongk sorry i don't know where there is supposed to be an error showing typing in your command Mar 29 12:43:15 Also, Surfer2010: Add a row Log.d("TAG", "APPLICATION START"); right after super.onCreate() in your first activity and see if that goes through to the log. Mar 29 12:43:19 there is nothing happening on the command ... nor in eclopse Mar 29 12:43:21 oh boy Mar 29 12:45:22 drlaban and that will turn out in the logCat? or in debug mode somewhere? Mar 29 12:45:27 Surfer2010: Also, the command wongk mentioned to you was not supposed to be used in combination with path. Mar 29 12:45:33 Greets guys, I want to change a fragment's views after my fragmentTransaction has completed its transitions (animation) . Is there a callback or something. The fragment's onResume doesn't seem to do the trick (too early) and even "Handler.post(new Runnable() {..." from the activity doesn't wait. Mar 29 12:45:34 im trying to make one element of my listview dissapear, setting it to GONE, actually leaves a gap in the list view i expected it to simply close up the gap - any ideas? Mar 29 12:45:42 thanks magnets Mar 29 12:46:18 Surfer2010: If the application compiles, gets installed, runs, and LogCat can connect to the app, then yes, it will be in there. Mar 29 12:46:54 it's not Mar 29 12:47:00 :( Mar 29 12:47:03 jagruti_: please don't just start messaging people randomly. It's rude at best. Mar 29 12:48:23 haha at you guys trying to help Surfer2010 Mar 29 12:48:28 Surfer2010: Here's a thing for you to try: Create a new project, and see if that one works for you. If nothing else, we can rule out anything that has to do with you environment, and that the connection between the emulator and Eclipse works.. Mar 29 12:48:30 did anyone bother asking to see his manifest xml? Mar 29 12:48:36 I bet he doesn't even have the activity in it Mar 29 12:48:39 root66: Not yet. Mar 29 12:49:27 drlaban yes another project works Mar 29 12:49:35 if the activity was in the manifest and he had that logcat output oncreate, it would be showing up Mar 29 12:49:41 therefore it is obvious that it is not in the manifest Mar 29 12:49:55 or that it is not defined as the main activity Mar 29 12:50:03 hmm, i remember being able to import an existing android project via its ant file into eclipse.. Mar 29 12:50:18 but now it tells me there's no javac task defined in the build.xml Mar 29 12:50:40 Surfer2010 do you know how to add activities in the manifest? Mar 29 12:50:46 yes Mar 29 12:51:00 open the manifest and make sure there is a main activity defined Mar 29 12:51:13 namely, the one you are testing with Mar 29 12:51:20 which has your log command oncreate Mar 29 12:51:46 it is basically impossible that you have the manifest set up right, it compiles, and you are not seeing the logcat output Mar 29 12:52:12 oh nooooooooooooooooooooooooooooooo :-O Mar 29 12:52:45 root66: Something tells me you were right on the money (or it was something else, like the kitchen catching on fire) Mar 29 12:52:45 <---- was different before now i changed that back and it works ... sorry sorry sorry sorry !!!!!!!!!! Mar 29 12:52:58 * root66 takes a victory lap Mar 29 12:53:09 Napalm: any luck finding the code? Mar 29 12:53:16 heheh root66 Mar 29 12:53:17 i thought this can be changed however you want because in the newboston tutorial he changed that in the DEFAULT thing Mar 29 12:53:31 starting with android is a pain Mar 29 12:53:33 :-) Mar 29 12:54:02 THANKS root66 and also drlaban for trying to help me as well as wongk even if he thinks i'm a total retard ^^ Mar 29 12:54:07 np Mar 29 12:54:44 I didn't do much. But I'm tucking this one into the "good things to keep track of" when it comes to the Manifest. Mar 29 12:55:00 mango-: apparently android.view.Display has a public function called getRealSize where it doesnt subtract the window decor Mar 29 12:55:10 mango-: you could use reflection to call the function Mar 29 12:55:18 whenever someone tells me it compiles but... "there is no icon!" "my activity doesnt launch!" "there is no logcat output!" I always assume bad manifest Mar 29 12:55:22 mango-: the function signature is public void getRealSize(Point outSize) Mar 29 12:55:23 lov,but then to whome i will ask perticularly here Mar 29 12:55:48 root66: Ah, nice that you pointed out a few more cases for me to keep an eye out for. :) Mar 29 12:56:01 mango-: you could also try using reflection to call public int getRawWidth() and public int getRawHeight() Mar 29 12:56:18 yes drlaban ... i didn't know that the LAUNCHER activity has to be named in that very specific way ... because all the others you can name however you want correct? Mar 29 12:56:21 Napalm: i'll try those, thanks Mar 29 12:57:00 Greets, anyone know how to execute things only once a fragment's animation has completed. Mar 29 12:57:42 DysonReturns: I suck when it comes to fragments, but I am not sure there is an event for that Mar 29 12:57:47 you might just need a dumb delay of X ms Mar 29 12:58:00 but again, I am no expert Mar 29 12:58:03 "transition" i mean. fragmentTransaction's commit has to be done, but has a transition defined. Mar 29 12:58:13 i'm trying to avoid the delay - doesn't seem stable :/ Mar 29 12:58:28 jagruti_: I don't really care but you should ask in the channel; people are frequently AFK on IRC. Mar 29 12:58:41 timers are plenty stable if you don't get carried away Mar 29 12:58:44 which in this case you aren't Mar 29 12:58:44 if no one has an answer, wait a while, then try again. Mar 29 12:58:58 but there might be a better way Mar 29 12:59:07 lov,ok thankx Mar 29 12:59:09 hmm how come params is null here! ViewGroup.LayoutParams params = rowcontainer.getLayoutParams(); Mar 29 12:59:51 gaz`: the view has not been laid out? Mar 29 13:00:23 hmm Mar 29 13:00:52 not really sure what u mean Mar 29 13:01:16 what method you calling it in Mar 29 13:01:32 inside getView of my CustomListAdapter Mar 29 13:01:44 see i want to get rid of the first row basically, by setting height to 0 Mar 29 13:01:44 can you post the method on pastebin? Mar 29 13:01:46 afaik it doesn't work at that point Mar 29 13:01:52 Surfer2010: Well, are you referring to without an then yes, you can name it whatever you'd like (but keep it sane for sanity's sake) Mar 29 13:01:55 because at getView you have not attached the view to a parent yet Mar 29 13:02:03 ah Mar 29 13:02:04 weird Mar 29 13:02:05 in this function, http://dpaste.com/723448/ how do I make sure the Back button works as expected and goes back to the list view after viewing a detail view ? Mar 29 13:02:17 you might not be setting convertview before calling Mar 29 13:02:24 gaz`: read the docs: "This method may return null if this View is not attached to a parent ViewGroup"... Mar 29 13:02:46 well thanks guys i gotta run Mar 29 13:02:57 http://pastebin.com/EsH4XXqD Mar 29 13:02:59 i see hrnt Mar 29 13:03:01 if its null, try calling generatedefaultparams Mar 29 13:03:04 so when does it attach? Mar 29 13:03:14 I tried ft.addToBackStack() but that doesn't restore the list fragment Mar 29 13:03:19 after you return it from getView :) Mar 29 13:03:47 if you've inflated the view Mar 29 13:03:50 it wont have any layout params Mar 29 13:03:57 ohh Mar 29 13:03:58 so you'd have to generate new ones Mar 29 13:03:59 really Mar 29 13:03:59 weird Mar 29 13:04:08 yeh i just wanna set height to 0 Mar 29 13:04:09 if you want it to have layout params Mar 29 13:04:17 you could do inflate(id, container, false) Mar 29 13:04:36 that should generate the layout params for the view Mar 29 13:04:53 thx trying Mar 29 13:05:38 Napalm: getRealSize() indeed returns correct values. that's great, many thanks! Mar 29 13:06:47 hmm im passing null in it seems v = vi.inflate(R.layout.newsrssrow, null,false); Mar 29 13:06:58 not sure how to get the parent Mar 29 13:07:03 q Mar 29 13:08:04 try doing convertView as the parent Mar 29 13:08:15 ok Mar 29 13:08:18 uhm Mar 29 13:08:28 look at the parameters of getView Mar 29 13:08:31 isn't the third one the parent? Mar 29 13:08:47 ah Mar 29 13:08:48 so it is Mar 29 13:08:49 do that Mar 29 13:09:24 doh! Mar 29 13:09:38 glad i pasted my messy method now Mar 29 13:09:40 thanks guys Mar 29 13:10:03 this is the most complex app ive done Mar 29 13:10:12 should kinda know what im doing after this Mar 29 13:10:13 :) Mar 29 13:10:18 np Mar 29 13:10:49 hmm class cast exception Mar 29 13:12:50 gaz`: did you set attachToRoot to true? Mar 29 13:13:13 The weird thing about the inflater is... if you set attach to root to true, it doesn't return the actual view you just inflated, but the root viewgroup. Mar 29 13:13:39 Does Android need Java to work ? Mar 29 13:13:48 i set to false Mar 29 13:13:50 will tyr true Mar 29 13:13:54 mango-: nice. did you use reflection in the end? Mar 29 13:13:55 yes Quacktop|BNC Mar 29 13:14:07 Napalm: yes Mar 29 13:14:18 i think so Quantum_Ion Mar 29 13:14:39 gaz`: hm might be something else then.. I just dropped in so possibly I missed something. Mar 29 13:14:49 gaz`, The documentations says I need Java in order to get Android working Mar 29 13:14:52 you THINK android needs java? Mar 29 13:15:08 r u srs? Mar 29 13:15:11 What does that mean "Does Android need Java to work"? Mar 29 13:15:26 hello world.. Mar 29 13:15:30 http://i60.photobucket.com/albums/h17/steinbacks/FacePal.jpg Mar 29 13:15:35 here's what im doing right now Mar 29 13:15:39 never really thought about it but i assume it must nee dit yeh ;) Mar 29 13:15:58 oh yeh of cours eit does Mar 29 13:16:01 for compiling etc Mar 29 13:16:03 Yes but possibly not for the reasons people are assuming :) Mar 29 13:16:09 meh... after replacing the content view with a detail fragment (clicking an item in a list fragment), addToBackStack() doesn't restore the list fragment when navigating backwards :/ Mar 29 13:16:13 Since Android technically isn't Java. Mar 29 13:16:23 why does this work: findViewById(id.commentText); Should it no be 'R' before??? R.id.commentText ? Mar 29 13:16:27 I know Android is Java + XML Mar 29 13:16:28 it smells like jaba Mar 29 13:16:33 jaba the hut Mar 29 13:16:35 http://dpaste.com/723453/ Mar 29 13:16:51 this is weird im not getting an errorthat doesnt tell me at all where it is in my own code Mar 29 13:16:53 the question was "does android need java" Mar 29 13:16:58 They should have called in Javaxml Mar 29 13:17:09 the dualpane path works, but the portrait path doesn't :/ Mar 29 13:17:40 gaz`: how do you know you are getting a class cast exception? Mar 29 13:17:44 android uses the java language with its own libraries instead of the standard oracle libraries Mar 29 13:17:52 CallumTaylor: yes... whatever that means. If you're talking about a phone ROM image that's already built, then no, it doesn't need Java at all, since it has its own VM. Mar 29 13:18:14 but this is android dev room? Mar 29 13:18:19 hrnt http://pastebin.com/jfd7K3Cu Mar 29 13:18:22 Android for Development for Dummies said learn Java and XML and then you can be a good Android head Mar 29 13:18:27 If you're talking about developing Android apps... then... I suppose it's possible to do without large parts of Java, but it's not going to be easy :) Mar 29 13:19:02 hmm it cut off the top Mar 29 13:19:15 Quantum_Ion: that's probably sort of true. Mar 29 13:19:28 I can only assembler.. but i can code apps in it ... 101010101110 = helloWorld Mar 29 13:19:30 The syntax is pretty much 100% java, and knowing some XML doesn't hurt. Mar 29 13:19:33 hrnt http://pastebin.com/m4J7825g Mar 29 13:19:39 eclipse is so lame it even breaks my copy n paste Mar 29 13:19:43 The XML part is hard for me to grasp Mar 29 13:19:55 I have to keep reading that chapter over and over again Mar 29 13:20:10 java is harder to grasp than xml Mar 29 13:20:15 Quantum_Ion: why? It's a markup language, and you don't really need to know the intricacies of parsing, etc. Mar 29 13:20:18 :o Mar 29 13:20:18 unless u mean making guis in xml thats kinda tricky at the start Mar 29 13:20:21 xml is the devil Mar 29 13:20:31 gaz`: rowcontainer.setLayoutParams(new LinearLayout.LayoutParams(params)); Mar 29 13:20:37 Jug6ernaut, right at least someone agrees with me Mar 29 13:20:52 gaz`: what is the type of the parent of rowcontainer? Mar 29 13:21:00 linearlayout Mar 29 13:21:05 oh Mar 29 13:21:06 the parent Mar 29 13:21:07 erm Mar 29 13:21:19 if you have ParentView and a ChildView Mar 29 13:21:25 parentcontainer is a "row" in my list view Mar 29 13:21:25 then ChildView's layout parameters are ParentView.LayoutParams Mar 29 13:21:26 (IIRC) Mar 29 13:21:27 The XML stuff is basically for the GUI is that right Mar 29 13:21:42 yes Mar 29 13:21:46 okay Mar 29 13:21:48 xml is ezpz Mar 29 13:22:18 hrnt hmm im confused Mar 29 13:22:26 all this just to make onw row dissapear, seems ludicrous Mar 29 13:22:34 So you have all these Java programmers out there with no jobs and you go tell them to develop Android applications and sell them on Google Mar 29 13:22:57 gaz`: yeah, setting the height to 0 to "hide" a row is the wrong way to do it anyways Mar 29 13:23:13 Quantum_Ion: a few problems with that. 1 is that there aren't that many Java programmers without a job. Mar 29 13:23:14 not if it works :) Mar 29 13:23:20 Here they're actually pretty scarce. Mar 29 13:23:21 gaz`: it won't Mar 29 13:23:31 or at least it will look strange Mar 29 13:23:31 If only one could build Android apps in PHP Mar 29 13:23:34 if you have many items Mar 29 13:23:44 HDroid: gtfo Mar 29 13:23:45 IIRC ListView has optimizations for calculating its own size Mar 29 13:23:45 why would itm surely that one row will just vanish Mar 29 13:23:48 For example, you can develop an Android application for a cab company and sell it to them, etc Mar 29 13:23:56 it does not want to inflate every row just to calculate its own height Mar 29 13:24:05 so it approximates Mar 29 13:24:06 work for an agency like me Mar 29 13:24:13 clients come to me to make them an app Mar 29 13:24:16 if you have rows that have the height of 0 then that approximation will be way off target Mar 29 13:24:21 thats what i should do CallumTaylor, which agency? Mar 29 13:24:38 i work for http://3sidedcube.com Mar 29 13:24:45 hrnt oh :-( whats the simplest way to get this done then ive got so much to do just wanna find a quick solution Mar 29 13:24:48 awesome CallumTaylor Mar 29 13:25:13 gaz`: which rows do you want to hide? Mar 29 13:25:15 CallumTaylor: I was joking, but come to think of it, a full Python dev stack for Android would be nice. Mar 29 13:25:23 CallumTaylor, okay I get it Mar 29 13:25:36 hrnt - the very top row shoudl be hidden since i display that info in a special bit at the top that makes the first story look bigger Mar 29 13:25:44 gaz`: well Mar 29 13:25:51 Java devs generally are a lot more expensive than Python and PHP devs here. Mar 29 13:25:57 gaz`: then return -1 in your getCount() :P Mar 29 13:26:09 and change your getView so it "skips" the first item Mar 29 13:26:30 There may or may not be a difference in quality but most apps.. don't need expensive EE skills anyhow. Mar 29 13:26:48 gaz`: (so if i understood your code correctly, do Message ccsto = (Message) items.get(position+1); Mar 29 13:27:02 yeh i guess that would work!! Mar 29 13:27:06 an Android phone will never replace my laptop I run Ubuntu Linux and I love it Mar 29 13:27:20 and override getCount somehow? Mar 29 13:27:26 yes Mar 29 13:27:28 override it the usual way :P Mar 29 13:27:33 actually i cant do that Mar 29 13:27:34 what adapter is that? Mar 29 13:27:39 as im populating the top bit in this method Mar 29 13:27:41 Quantum_Ion: what a coincidence! My car will never replace my house, it's made out of bricks and I love it. Mar 29 13:27:48 in what method? Mar 29 13:27:50 lol Mar 29 13:27:52 getview Mar 29 13:28:01 o_O Mar 29 13:28:18 what a pain in the ass Mar 29 13:28:21 andorid can be Mar 29 13:28:23 The Motorola Attrix is getting pretty close Mar 29 13:28:34 with that portable docking station Mar 29 13:28:44 dear god, don't do that :P Mar 29 13:30:04 gaz`: getView returns the view for row N Mar 29 13:30:19 now your "top bit" is not a row, so it shouldn't touch that in getView Mar 29 13:30:40 hello Mar 29 13:30:49 yes i gues si can do that in the constructor Mar 29 13:31:03 or maybe just remove top one from the list before all of this starts Mar 29 13:31:41 Hi there, I'm trying to get a vertical slider to work in my project. I've found a working example, but I can't figure out how to add it to my project. Can anyone point me to the right place to be looking to figure that out? Mar 29 13:34:19 RoadieRich prob copy n past the xml Mar 29 13:34:22 into your xml Mar 29 13:34:35 then grab code for talking to it from the java Mar 29 13:35:10 if anyone is able to help me figure out why this back button is not working it would be greatly appreciated, I put the whole eclipse project at http://bit.ly/HkRRgJ Mar 29 13:38:06 gaz`: There's a heirarchy of three classes, if I just c+p the files, I get "R cannot be resolved to a variable" Mar 29 13:38:09 the issue occurs when navigating to an item in the first tab, and then trying to use the back button to go back Mar 29 13:38:49 I also can't see the package from within my Activity Mar 29 13:39:15 rvsjoen i dont even see a button in this entire project Mar 29 13:39:25 ah Mar 29 13:39:47 no buttons, only the click handler in FragmentA Mar 29 13:39:49 RoadieRich u need to move the reosurce sit needs to res/ etc then R will be generated Mar 29 13:40:29 I think I somehow need to detect when i'm returning from a detail view, and re-add the list fragment to R.id.content Mar 29 13:40:30 cant really follow that cpde rvsjoen sorry Mar 29 13:40:40 not into fragment syet Mar 29 13:41:22 ok, thanks for checking it out anyway Mar 29 13:41:49 you'll be better off pastebinning than posting zip files. Mar 29 13:42:53 (you can still pastebin the uuencoded zip file) Mar 29 13:43:27 avoiding Ge0rG's advice will also make you better off. Mar 29 13:44:42 been doing that several times, with very little feedback :) figured i'd try something new. anyway here is also a pastebin http://dpaste.com/723478/ Mar 29 13:45:00 did it hrnt! removed first element form list before the customadatper gets involved, then set the top bit using the one i removed, thanks for the help Mar 29 13:46:04 gaz`: brilliant, I got it working, thanks. Mar 29 13:46:37 great RoadieRich Mar 29 13:46:43 rvsjoen: and mDualPane is what? Mar 29 13:46:46 (value) Mar 29 13:46:53 is there somw way to make a TextView just display 2 lines of text and nothing more? Mar 29 13:47:06 a boolean, false when the problem exists Mar 29 13:47:29 View detailsFrame = getActivity().findViewById(R.id.details); mDualPane = detailsFrame != null && detailsFrame.getVisibility() == View.VISIBLE; Mar 29 13:47:42 remove the line "ft.addToBackStack(null);" Mar 29 13:48:05 without that line, it'll take me to the desktop when I click the back button Mar 29 13:48:11 and with it, what is your result? Mar 29 13:48:39 the refresh toolbar button is added (the one in FragmentA) but the list is not displayed Mar 29 13:48:49 instead the contents of FragmentB stays Mar 29 13:49:36 you're always using ft.replace, not .add, right? Mar 29 13:49:44 I only see replace but just verifying. Mar 29 13:50:28 in the click handler, yes. but in the activity, the TabListener is using add() in its ontabSelected() function, hang on i'll pastebin that class Mar 29 13:50:44 rvsjoen: well, .add can cause this problem easily, .replace usually fixes it Mar 29 13:50:46 http://dpaste.com/723483/ Mar 29 13:50:57 see line 82 and 89 Mar 29 13:51:03 rvsjoen: also, i notice in the other branch of the mDualPane condition you're replacing into a different container, in case that's an error Mar 29 13:51:06 no Mar 29 13:51:08 damnit Mar 29 13:51:11 that was a brainfrat Mar 29 13:51:32 I'm going to save you massive grief right now on that paste Mar 29 13:51:51 no in the true condition of mDualPane I should be replacing the details view of layout\fraga.xml Mar 29 13:52:01 in the false condition that view does not exist Mar 29 13:52:12 since then i'm using layout-port\fraga.xml Mar 29 13:52:59 rvsjoen: comment out the entirity of onTabUnselected, and change the .add calls in onTabSelected to .replace calls Mar 29 13:53:14 rvsjoen: this will save you large amounts of grief from crashes later when rotating the screen and changing tabs. Mar 29 13:53:56 oh actually let me paste something for you Mar 29 13:55:20 I don't think I can use replace() in the TabListener, since i'm adding multiple fragments Mar 29 13:55:25 to the container Mar 29 13:55:56 nasty. Mar 29 14:00:13 quite possibly, it's the only way i've been able to find so far that does what I want ^_^ Mar 29 14:01:03 without using TabHost Mar 29 14:04:39 well, looking at it I don't see anything that jumps out at me, but I've had large amounts of issues with even android's own actionbar tab examples to do with how the fragments are swapped out, when changing rotation, or when setting the selected tab as part of state restoration... and such Mar 29 14:04:51 hello Mar 29 14:05:14 http://storkme.org/2011/12/tabs-done-right-viewpager-and-fragments/ Mar 29 14:05:20 I resolved my issues, but i don't think they will work as well in your multi-fragment example. Mar 29 14:05:38 justus: but you'll find it much easier if you just run the GUI Mar 29 14:05:45 hm Mar 29 14:05:47 the only thing I can think of is that i'm replacing R.id.content inside FragmentA, with FragmentB, so when its time to go back, the content view no longer has a list in it Mar 29 14:05:54 but I have no idea how to get around it :/ Mar 29 14:07:53 is there a reason for the readme to suggest the exakt opposite for what you just told me? Mar 29 14:09:17 I think I need to read up on the backstack Mar 29 14:10:24 hmm.. maybe I can use onBackPressed() in the activity to restore the list Mar 29 14:13:14 if you've got a class c extends b, if you pass an instance of c through a method argument of type b, are the extra members lost, or can you access them using a coercion? Mar 29 14:13:32 the latter Mar 29 14:13:51 that's a relief, thanks. Mar 29 14:14:00 O_O Mar 29 14:14:04 RoadieRich: #java please :( Mar 29 14:14:11 Guys I need help :D Check when my app is in background when back-button and home-button: http://stackoverflow.com/questions/9923877/check-when-my-app-is-in-background-when-back-button-and-home-button/9925428#comment12669624_9925428 Mar 29 14:14:22 you might want to be familiar with basic OO concepts before you start doing the heavier parts of android Mar 29 14:15:10 stermi: the hell is this Mar 29 14:15:26 stermi: don't use this weird behavior to determine if your app is in the background Mar 29 14:15:47 stermi: CommonsWare has some sort of neat project which uses intent receivers to determine whether to show notifications or whether to do something within the activity Mar 29 14:16:06 stermi: but in any event you should depend on information from onStart, onResume, onPause, onStop, etc. Mar 29 14:16:18 Guys easiest way how can I see data stored in sql databasse on adroind for my app? Mar 29 14:16:28 you shouldn't be doing some strange activity manager hacks to try to figure out what YOU ALREADY KNOW. Mar 29 14:16:31 I will search for CommonsWare project Mar 29 14:16:43 lov I'm depending on onStart, onResume, and so on Mar 29 14:16:57 Trudko: if the device is rooted, pull the database file from /data/data/your.package.name/databases/... Mar 29 14:16:59 as I said I'm cheching if the app is background in onPause Mar 29 14:17:05 lov: it is nto Mar 29 14:17:07 not Mar 29 14:17:10 stermi: WHY Mar 29 14:17:33 why I'm I doing that or why am I doing that in that way? Mar 29 14:17:36 stermi: if you're in onPause, you're either rotating, or you're not fully in the foreground. In either event, you shouldn't be getting content Mar 29 14:18:22 stermi: I literally don't understand what you're trying to do here, and why you can't follow a more event driven model. Mar 29 14:18:42 stermi: consider having a callback to tell your service "I am no longer in the foreground" or "I am in the foreground" which you call in onResume and onPause Mar 29 14:19:02 stermi: alternately, consider just always having your service as a foreground service anyway because who gives a shit Mar 29 14:19:28 you are picking the most absolutely complicated pattern to do this, needlessly so Mar 29 14:19:36 stermi: consider having a callback to tell your service "I am no longer in the foreground" or "I am in the foreground" which you call in onResume and onPause -> I'm doing so but I have to know when I'm in background or in foreground Mar 29 14:19:42 hello. lov. You are are awesome at telling me im stupid can you help me with something? Mar 29 14:19:59 I checked on stackoverflow an answer and that was the suggested answer (checked many threads) Mar 29 14:20:19 jesus christ Mar 29 14:20:35 stermi: http://developer.android.com/reference/android/app/Activity.html#ActivityLifecycle Mar 29 14:20:39 You need to read this Mar 29 14:20:42 you need to read this and understand what it means Mar 29 14:20:46 if you receive an onPause event Mar 29 14:20:49 YOU ARE NOT IN THE FOREGROUND Mar 29 14:20:50 R.color.aqi_green doesn't return the correct color in tvIndex.setTextColor(R.color.aqi_green), its value is set in a colors.xml file as #ff00e400, it works only when give it 0xff00e400, why ? Mar 29 14:20:56 if you receive an onResume event Mar 29 14:20:59 YOU ARE IN THE FOREGROUND Mar 29 14:21:00 THE END Mar 29 14:21:14 unfortunately I have to leave, thanks for the help abaratican, I will continue this quest later Mar 29 14:21:22 I perctly understand what you say lov Mar 29 14:21:32 no, you clearly don't! Mar 29 14:21:38 10:19:42 < stermi> stermi: consider having a callback to tell your service "I am no longer in the foreground" or "I am in the foreground" which you call in onResume and onPause -> I'm doing so but I have to know when I'm in background or in foreground Mar 29 14:22:04 onpause sends pause event to service. onresume sends resume event to service. Mar 29 14:22:28 oncreate sends resume event to service if service is decoupled from activity lifecycle (background/permanent service) Mar 29 14:22:46 hmm how do u do a new line in text in the xml? Mar 29 14:22:54 Trying to figure out why my extended class I use to pass over the outputstream close method causes it to be really really slow. http://pastebin.com/index/8T15tiKP Mar 29 14:23:56 maxagaz: setTextColor takes a hex value, not a resource Id. You have to fetch the color from resources first. Mar 29 14:24:06 lov I have the callback, I'm looking for the event I'm in background / I'm in foreground (and this is onResume) Mar 29 14:24:10 Hello Mar 29 14:24:11 HDroid: I got it Mar 29 14:24:23 HDroid: v.getResources().getColor(R.color.mycolor) thanks! Mar 29 14:24:43 Yeah Mar 29 14:24:45 hmmm, we will have to ship a bunch of activities as library to a client. so i set up two projects.. one for the lib and one for the app Mar 29 14:24:49 Someone may help me ? Mar 29 14:25:13 i wonder how to use the activities from the library.. Mar 29 14:25:23 i already setup the dependencies in te project.properties Mar 29 14:25:27 actually the only answer I've found for "I'm in background" is to check in onPause/onStop event if your app is in background with that method isApplicationSentToBackground of the stackoverflow post Mar 29 14:25:34 I'm looking for a way to pass an array of arguments to a function Mar 29 14:25:36 the activity is declared in the lib's manifest Mar 29 14:25:46 hello all Mar 29 14:26:16 gaz`: \n Mar 29 14:26:35 lov I'm wondering if you really read all my post... Mar 29 14:26:51 stermi: so you seem to think you can be stopped, but in the foreground. Mar 29 14:27:08 stermi: and even if that is the case, you somehow want to handle that differently than if you're stopped in the background Mar 29 14:27:15 Unable to find explicit activity class {com.uandi.freispiel_app/com.uandi.freispiel_lib.activities.Freispiel}; have you declared this activity in your AndroidManifest.xml? Mar 29 14:27:20 i wonder in which one :D Mar 29 14:27:36 Does anybody know how I can check if my Listitem in a Listview is still visible? Mar 29 14:27:38 tapas: what does your manifest look like? pastebin it. The error seems pretty clear. Mar 29 14:28:11 dragorn, as I said the problem is when you are in the home (example) and you click the hard-back-button. This call onPause -> onStop -> onDestroy but your activity (checking with that method) is not in the background Mar 29 14:28:20 x Mar 29 14:28:22 ops Mar 29 14:28:30 http://pastesite.com/33679 Mar 29 14:29:24 instead if you click the hard-home-button this will call onPause -> onStop and NOT onDestroy and your app is in background (the isApplicationSentToBackground I posted in the stackoverflow thread is returning true) Mar 29 14:29:32 hi.. anybody using ormlite? Mar 29 14:29:37 stermi: your activity will receive an onpause when it is no longer the active activity. It has the opportunity to flag the service then. I don't know what "checkig with that method" means. Mar 29 14:29:41 stermi: you may never receive an ondestroy Mar 29 14:29:44 ah i think i need to explicitly declare the activity in the lib to be usable as component Mar 29 14:29:51 stermi: i'm not even sure you're guaranteed to receive an onstop Mar 29 14:30:05 you have to receive that Mar 29 14:30:09 tapas: your package names are so fucked up Mar 29 14:30:20 stermi: no, you don't. you may be outright killed without ondestroy being called Mar 29 14:30:23 anyhow, ya... Mar 29 14:30:24 I mean why have the activity to skip an event of its life cycle? Mar 29 14:30:39 QubeZ: in what sense? Mar 29 14:30:56 stermi: your activity will receive an onpause when it is no longer the active activity. It has the opportunity to flag the service then. I don't know what "checkig with that method" means. ----> That method is here: http://stackoverflow.com/questions/3667022/android-is-application-running-in-background Mar 29 14:31:01 where I'm explaining my problem Mar 29 14:31:14 tapas: nvm, my mistake Mar 29 14:31:56 QubeZ: i was getting nervous there for a moment Mar 29 14:32:02 stermi: you need to read the docs Mar 29 14:32:03 me too Mar 29 14:32:04 stermi: https://developer.android.com/reference/android/app/Activity.html#ActivityLifecycle Mar 29 14:32:15 stermi: Specifically, the "killable" column Mar 29 14:32:29 lov so can i check databse even if phone is not rooted? Mar 29 14:32:55 stermi: you will get an onpause. Maybe. You may also be outright killed at any point. honeycomb and above you'll get an onpause, but that's it Mar 29 14:34:01 stermi: correction. hc+ will wait until onstop executes, but may never deliver an ondestroy. pre-hc will deliver an onpause, but may not execute anything else. Mar 29 14:34:38 that's ok for me onPause because it's the onResume->onPause is the lifetime span of a foreground activity Mar 29 14:34:39 stermi: you need to prepare to be killed at any point after getting an onpause. hence, you get a pause, you tell your service you're no longer active, problem solved. Mar 29 14:35:02 remain the same question when my APP is in background? how can I check it? Mar 29 14:36:14 my bad, the right question is: how can I know when my app (and not the current activity) is in background? Mar 29 14:36:15 dude, simple logic. learn it. oncreate: tell service app is active. onpause: tell service app is inactive. onresume: tell service app is active. If app is not active, app is not in the foreground or is not running. solved. Mar 29 14:37:32 and you can probably detect if the app is still running because the service knows how many connections it has Mar 29 14:37:38 that's not so simple dragorn because when my app goes in background I want to send a notification to the user (notification of music app) and in onResume (foreground) I'm removing it Mar 29 14:38:08 if I send the notification in the onPause always it will do up/down while entering different activies of my app Mar 29 14:40:01 stermi: well all you're promised to get is onpause Mar 29 14:40:10 stermi: so figure out a different logic Mar 29 14:40:43 stermi: (or just, y'know, use different active flags for the different activities and figure it out from there) Mar 29 14:41:04 I'll make some tests and dig a bit Mar 29 14:45:29 Does someone have a short example of how I can determine wether or not a list item in a listview is currently visible? Mar 29 14:51:07 hi.. anybody using ormlite? Mar 29 14:58:27 r Mar 29 14:58:39 dragorn, I mean something like this: http://stackoverflow.com/questions/3667022/android-is-application-running-in-background Mar 29 14:58:55 to check if in onPause I'm in background or not Mar 29 15:03:48 flashed aosp 4.0.4 to the Nexus S .. so does it just not suck now, or are there major changes? Mar 29 15:06:29 If I'd like to have a container for an item in the main.xml file...how would I do that? Mar 29 15:07:43 john_doe_jr what sort of container? u could stick it in a linearlayout Mar 29 15:09:07 so how are some of my processes using >100MB of ram Mar 29 15:09:11 like it says chrome is using 102 Mar 29 15:09:26 eclipse regularly uses 16 gigs here Mar 29 15:09:30 then crashes out Mar 29 15:09:34 some serious memory leak Mar 29 15:09:37 crashes ocne an hr Mar 29 15:09:44 i mean on android Mar 29 15:09:53 oh i didnt even know chrome was out Mar 29 15:10:07 anyway missing the point Mar 29 15:10:10 canadiancow|work: native allocation Mar 29 15:10:22 does that not count towards your limit? Mar 29 15:10:49 ok well i have another app that's using around 100, and it absolutely does not have any native allocation Mar 29 15:10:52 * abaratican doesn't see chrome in market for his phone. Mar 29 15:11:00 what's its minsdk? Mar 29 15:11:09 canadiancow|work: afaik, no Mar 29 15:11:43 13 Mar 29 15:11:48 poo Mar 29 15:11:52 er Mar 29 15:11:54 14 Mar 29 15:12:15 only google can make minsdkversion 14... Mar 29 15:12:59 it doesn't really matter to the, if people use it or not :P Mar 29 15:13:17 ICS chrome is much faster at HTML5+JS than the stock webkit Mar 29 15:13:49 i could see google deprecating the android browser Mar 29 15:13:53 and only including chrome in the future Mar 29 15:14:01 would be a good thing Mar 29 15:14:03 yet another incentive to not make a kindle fire Mar 29 15:15:15 HTC at least replaces the browser, i bet other manufacturers do to Mar 29 15:15:47 wongk: yeah, it wouldn't be a real htc device if they didn't introduce a couple of bugs and security vulns ;) Mar 29 15:16:35 i just say yay for ROM development so i can get rid of the vendor crap Mar 29 15:16:51 just android, please and thank you :P Mar 29 15:18:41 hello Mar 29 15:33:59 hmmm... Mar 29 15:35:24 i changed the name of my main activity from MainActivity to SignatureActivity and changed the activity in the AndroidManifest and IntelliJ is telling me it "MainActivity" doesn't exist. is there somewhere else i'm supposed to inform IntelliJ that the launch activity has changed? Mar 29 15:36:05 code compiles fine, just won't debug. Mar 29 15:36:10 when you run or when you build? Mar 29 15:36:14 ah Mar 29 15:36:22 i guess it's an IntelliJ thing. Mar 29 15:36:23 there is probably a project setting with the start activity Mar 29 15:36:30 i don't use intellij Mar 29 15:36:31 yea i tried lookin around. Mar 29 15:38:00 found it. Mar 29 15:38:22 derp. Mar 29 15:40:31 I expand the height of a listview row in onListItemClick. By a scaleAnimation connected to the view argument. However if a do this to multiple and scroll up/down, the expanded rows change order in the list. Data is retrieved from a sqliteDB through a cursor adapter sorted by a boolean. Do need to link the anim to a specific row? Example code: http://pastebin.com/6dzaRtRp Mar 29 15:41:56 http://www.torfrick.com/info/lab.html Mar 29 15:41:59 holy shit on a stick Mar 29 15:42:01 thats awesome Mar 29 15:42:32 Saw that yesturday. Insane Mar 29 15:43:12 Guys I used DDMS to check database of my App at emulator -but when I find my package ad file explorer there is only lib folder, but there should be also databases filder Mar 29 15:43:15 ...in interfacing to an xmpp server, with a mobile platform say j2me/iOS, i would probably need a Web Service interface as mobile might not be able to host the xmpp/libs. Mar 29 15:43:43 ello Mar 29 15:44:20 let's assume I want to make an equalizer app that does some sound processing for all music playback apps. Is this possible at all? Under what circumstances? Mar 29 15:44:36 mikedg: that's nuts Mar 29 15:45:09 yup Mar 29 15:48:33 mikedg: can that be the next half life please? Mar 29 15:48:34 mikedg: what does that mean for someone who doens't know anything about textures? Mar 29 15:49:09 or are we just awing at the level of detail Mar 29 15:49:30 hmm think of it this way Mar 29 15:49:59 wongk: to get that much variation from just a single (pair of) texture(s) is impressive Mar 29 15:50:00 every view in your app was based off a single 512x256 image Mar 29 15:50:06 wongk: its interesting because there isnt that much detail, he worked smart not hard, using different technologies to delivery the same effects of lots of textures Mar 29 15:50:13 -y Mar 29 15:50:40 he probably worked hard too Mar 29 15:50:45 hah yeah Mar 29 15:50:54 okay not as hard as he would have worked :P Mar 29 15:51:15 gaz`: hey, sorry I didn't realize that you had responded...I was away from my desk Mar 29 15:52:14 i think i get it Mar 29 15:52:28 how many teextures would 'normally' be used Mar 29 15:52:39 5 Mar 29 15:52:53 haha Mar 29 15:53:19 depends on who's doing it Mar 29 15:53:35 5-20 would be reasonable though Mar 29 15:53:51 is there a good website out there that would help me with android xml user interface development? Mar 29 15:54:10 john_doe_jr: http://developer.android.com/guide/topics/ui/index.html Mar 29 15:54:46 alex7: any websites that are interactive? Mar 29 15:55:23 um, they are interactive in that they tell you what to do and you do it Mar 29 15:55:50 you can also look at the tutorials: http://developer.android.com/resources/browser.html?tag=tutorial Mar 29 15:58:26 my question is there a xmpp library for android phones? Mar 29 15:58:43 topriddy: probably, why don't you do a google search for it? Mar 29 15:58:51 if there isn't, CONGRATULATIONS! You get to write it! Mar 29 15:58:53 lov: and that's why you're the boss around here Mar 29 15:59:21 bossman. Mar 29 15:59:21 lov: am wondering if xml/xmpp approach is best for mobile devices in itse;f Mar 29 15:59:49 also if there would be push support etc Mar 29 15:59:53 possibly. Bear in mind that google talk is/was xmpp. Mar 29 16:00:00 As far as push support goes, you'll need/want c2dm Mar 29 16:00:55 why, look! Mar 29 16:00:57 http://stackoverflow.com/questions/4769020/android-and-xmpp-currently-available-solutions Mar 29 16:01:02 a post on stackoverflow Mar 29 16:01:08 and all I had to do was type "xmpp android" into my search bar Mar 29 16:01:14 my stars and heavens it was tough but I did it Mar 29 16:01:32 my hero Mar 29 16:01:40 lov: some people can't read and you expect them to be able to search ? Mar 29 16:01:47 setText return a null pointer exception in this code: http://pastebin.com/qVCzeZXk, how can I fix it ? Mar 29 16:02:29 make sure tvDialogText isn't null Mar 29 16:02:41 ^^ Mar 29 16:03:20 maxagaz: consider using an AlertDialog and AlertDialog.Builder Mar 29 16:03:30 FragmentDialog ftw Mar 29 16:03:30 lov: other that that i also need some developer experience on this matter, i apologise in advance. if you read the last comment here: https://forums.oracle.com/forums/thread.jspa?threadID=1748866 . The guy was talking of maybe putting a face on the server btw mobile client and the real xmpp server Mar 29 16:03:30 another basic java winner question... Mar 29 16:03:58 Hi, can anyone tell me how to force a WebView to recalculate its size regarding to the content (as it does when loading) ? I tried invalidate(); but doesn't seems to do anything Mar 29 16:03:59 lov: why ? Mar 29 16:03:59 Guys I used DDMS to check database of my App at emulator -but when I find my package ad file explorer there is only lib folder, but there should be also databases filder Mar 29 16:04:07 topriddy: ..... and? Mar 29 16:04:09 *folder, but there is non Mar 29 16:04:30 topriddy: I'm not going to do your work for you. I can guide you and answer questions but I will not vet software projects for you. Mar 29 16:04:36 topriddy: I suspect your first problem was wasting your life on forums.oracle.com Mar 29 16:04:44 evancharlton: google. Mar 29 16:04:46 baha Mar 29 16:04:48 lov: okay, thanks. Mar 29 16:04:48 talk about a cesspool of stupidity Mar 29 16:04:49 If a thread with a message handler creates a new thread and i kill the message handler thread, does the child-thread get killed as well? Mar 29 16:05:14 kevwilde: I don't believe so. Mar 29 16:05:58 lov: thank you Mar 29 16:07:41 is an alertdialog dismissed when the negativebutton of this alertdialog is pressed? Mar 29 16:08:06 chris_cross: if that's what you set it to d. Mar 29 16:08:08 *do Mar 29 16:08:43 ok, just wondered if it's done automatically Mar 29 16:09:34 I'm not sure if it is, but I don't think it is. In any event, it's pretty simple to override. Mar 29 16:09:38 anyone here use monkeytalk (aka fonemonkey) to test their apps? Mar 29 16:10:55 Quick question. I've turned on the "Show screen updates" option in the developer options for Ice Cream Sandwich, and if I look at the settings, or look at just about any other app, after a little while, the screen will stop flashing. However with the app that I've written, the screen constantly flashes. Any reason that might be? Mar 29 16:11:18 after closing the dialog by the negative button i have to remove the view from its parent, right? Mar 29 16:11:36 in order to open the same dialog again Mar 29 16:11:38 chris_cross: er Mar 29 16:11:45 chris_cross: use dialog.dismiss() Mar 29 16:11:46 also Mar 29 16:11:54 use onCreateDialog and onprepareDialog Mar 29 16:11:57 i did it Mar 29 16:11:59 that will handle things for you nicely Mar 29 16:12:09 then you just use showDialog to provide the info, and everything is constructed nicely Mar 29 16:12:18 no additional work is necessary Mar 29 16:12:35 indeed, you don't need to cache the dialogs that you construct; that's done automatically Mar 29 16:12:36 hmm someone here just updated to tools r17, and it's bitching about a lib project's R.java already being added Mar 29 16:12:42 even if i put a edittext in the dialog? Mar 29 16:12:50 i have a view inside a viewpager that needs horizontal touch gestures... is there a way to make it so if touching that specific view, the events don't get intercepted by the viewpager? Mar 29 16:13:04 incidentally, the view is inside a _Fragment_ inside the viewpager, if that matters. Mar 29 16:14:53 evancharlton: did you just say "stupid"?? (N) Mar 29 16:14:58 Why isn't invalidate(); resizing my webview...? Mar 29 16:15:57 Quick question for those of you with completed apps; The app I'm working on I was thinking of releasing on an 'optional donation' basis. I.e. app is completely free and people can donate if they so desire. Has anyone gone this route and if so, how successful was it? Mar 29 16:16:01 seems like you'd need to tell its parent to re-layout, though i have no idea how that's done Mar 29 16:16:54 I also used invalidate on the parent to see... Mar 29 16:18:10 lov sorry did you responded because I got disconnected Mar 29 16:18:37 bushbaby I dont think many people donate Mar 29 16:19:19 there are some massive apps with free + donate (no extras) and they do ok but unless you get 100k+ downloads you'll probably get less than 1% Mar 29 16:19:26 Oh yeah, Im not worried about donations, I was more curious about app usage? Mar 29 16:20:10 I.e. would releasing free get the app more attention? Mar 29 16:20:38 yeah it would Mar 29 16:21:04 lov: it works better indeed, thanks Mar 29 16:21:08 well thats kinda common sense right? Free apps get more attention than paid ones. Mar 29 16:21:12 Ok cool. I'd assume so, just checking with the powers that be! Mar 29 16:21:20 Tried both invalidate() and requestLayout() on both webview and parent but doesn't seems to work, the webview is still to big for the content Mar 29 16:21:38 lov: I hope I can customize it Mar 29 16:21:44 well not Free app, but a Free version of an app vs a paid version of the same app. Mar 29 16:23:19 Yeah, quite. I'd only have the one free version though but yeah. I guess that makes sense. Mar 29 16:23:33 dude people are becoming more and more disgruntled about the Android ecosystem. Mar 29 16:23:59 Google needs to put more lockdown on these OEMs. Mar 29 16:24:26 why is the DownloadManager throwing a SecurityException when I try to set the notification visibility to VISIBILITY_VISIBLE_NOTIFY_COMPLETED ??? Mar 29 16:24:33 If nobody knows how to do this, I'll just let it... too bad :/ Mar 29 16:24:39 mikedg just posted an article about that the other day :P Mar 29 16:26:54 anyone using the DownloadManager api? Mar 29 16:27:21 asdf Mar 29 16:27:24 there we go Mar 29 16:27:41 wangenma: got the correct permission in your AndroidManifest.xml? Mar 29 16:27:46 Hi, can XML Layouts be used to put static images on the screen? Mar 29 16:28:40 justus, yes... Mar 29 16:33:53 kinda stumped. I have a ListView bound to a CursorAdapter. it seems like when I touch the database, somehow a message is being sent to update the ListView, and so my BindView() gets called nonstop. I'm not calling requery or notifyDataSetChanged or anything like that. Any idea how I can find what is triggering my ListView to refresh? Mar 29 16:34:27 Anyone know of a good example of using a MotionEvent hit X and Y to get the view that is below the touch? Mar 29 16:34:51 it seems view.getHitRect() only returns a hitRect Relative to its parent. Mar 29 16:37:50 PeteS: Are you using a ContentProvider? Mar 29 16:38:12 or a LoaderManager? Mar 29 16:40:26 d'oh. thanks starbuckt. I forgot about the content provider + observer :-( Mar 29 16:41:02 PeteS: yeah, that one will get you. Mar 29 16:46:41 Madhatt5r: doesn't every View inherit onClick? Mar 29 16:47:29 Yers Mar 29 16:48:01 But I don't want it to be able to click the view. Mar 29 16:49:01 oh. Mar 29 16:49:07 why not? Mar 29 16:50:23 Well that would be a lot of onClicks to manage, and second I am not trying to interact with the view. I am wanting to draw a rectangle around the view displaying which one you touched last. Mar 29 16:54:12 just call a method from the onClick method imo. Mar 29 16:55:03 have the method call accept the dimensions and position of the clicked View, and draw the rectangle accordingly in your method. Mar 29 16:57:29 moonlightcheese: Not a half bad idea, didn't really think about doing that before… *feels dumb* Thanks though I will take a look at that and see what I can get. Mar 29 17:01:17 very annoying how u cant just make an activity object Mar 29 17:01:20 and call methods on it Mar 29 17:01:35 seems like a chunk of OO missing there Mar 29 17:02:08 instead im having to mess around with static shit Mar 29 17:04:17 Quick question. I've turned on the "Show screen updates" option in the developer options for Ice Cream Sandwich, and if I look at the settings, or look at just about any other app, after a little while, the screen will stop flashing. However with the app that I've written, the screen constantly flashes. Any reason that might be? Mar 29 17:04:34 erg, is the only way to display a message on a DatePickerDialog to use a custom view with a TextView and a DatePicker? Mar 29 17:09:18 for an attached fragment, if you do getParent on the root view, will you get the container the fragment is within? Mar 29 17:10:27 Hey guys, is there any way to use the Holo / ICS style on-off button on say... a 2.2 device? Mar 29 17:10:30 is there some way to detect when the user has scrolled a list too far andit does that spring back thing Mar 29 17:11:11 Chronax: there are ways Mar 29 17:11:29 mikedg: Care to elucidate? Mar 29 17:11:32 gaz`: the overscroll behavior is specific to OEMs and not enabled on stock android Mar 29 17:11:34 gaz` sonyericsson did a 3 part tutorial on imlplementing a listview Mar 29 17:11:43 mikedg: Are they easy and/or reasonable? Mar 29 17:12:02 gah! Mar 29 17:12:02 evancharlton ah, clients used it in iOS version to trigger refresh of data from server u see, trying to mimmick it Mar 29 17:12:06 Chronax: it's just a drawable, isn't it? Mar 29 17:12:11 edittext in actionview refuses to show softkeyboard :( Mar 29 17:12:18 reasonable, just copy some drawables over Mar 29 17:12:18 gaz`: google for "android pull to refresh" Mar 29 17:12:24 oh Mar 29 17:12:25 thanks Mar 29 17:12:25 p.s., that interaction paradigm is stupid Mar 29 17:12:30 abaratican: use hierarchyviewer and you will see what the UI tree looks like Mar 29 17:12:32 god yeh its bafflingly weird Mar 29 17:12:33 im pretty sure Mar 29 17:12:35 i thought it was a one off Mar 29 17:13:09 evancharlton: Sure, but can I refer to it in a 2.2 project? Without having to rip the drawable out of the ICS code or something? Mar 29 17:13:42 romainguy__: hierarchyviewer errors saying it can't get the view server version/protocol version Mar 29 17:13:59 ..from the device Mar 29 17:14:29 abaratican: either use github.com/romainguy/ViewServer Mar 29 17:14:32 or run it with the emulator Mar 29 17:15:14 Chronax: you have to rip it out Mar 29 17:15:28 do any of you guys use Bamboo for android projects Mar 29 17:17:53 mikedg: How does one rip a drawable out of the Android source? Mar 29 17:18:04 Is there a way without downloading all the source? Mar 29 17:18:14 look at cyanogenmod's github Mar 29 17:18:33 Chronax: most are in the SDK actually Mar 29 17:18:40 android-sdk/platforms/android-15/data/res/ Mar 29 17:18:47 im busy as a bannana on a hotplate or id look for you Mar 29 17:19:08 Thanks, gusy! Mar 29 17:19:10 guys, even. Mar 29 17:20:17 a banana on a hotplate? Mar 29 17:20:24 im afraid that went over my head Mar 29 17:20:26 evancharlton wow theres a few ways to do it out there, gonna tyr one Mar 29 17:20:57 grr how doesntdirectory opus defaultto modified by Mar 29 17:24:10 canadiancow|work: it's american humour Mar 29 17:25:00 if it makes you feel better, i'm american and have never heard that expression either :P Mar 29 17:25:25 i like you you said "american humour" Mar 29 17:26:14 s/you you/how you/ Mar 29 17:27:18 romainguy_: thanks for the viewserver class, neat. Mar 29 17:27:31 what's the "correct" way to focus an editbox in ActionView? Mar 29 17:27:43 I can't seem to convince Android to show keyboard :( Mar 29 17:29:15 canadiancow: i met a guy from zygna last night Mar 29 17:29:33 how, hau, hon, something like that Mar 29 17:29:56 oh..kay Mar 29 17:30:01 lol Mar 29 17:30:01 Hi, I'm a bloody java & android dev beginner, I created this ListActivity where I want to browse departments, when you click an entry it should load and display the subtree, but the activity does not get updated: http://pastebin.com/FHGyvzNN Mar 29 17:30:10 is this one of those "hey i know bob from canada. do you know him?" jokes? Mar 29 17:30:19 now i know who drives that zygna van that is always parked out front Mar 29 17:30:28 zynga van o.O Mar 29 17:30:29 is your name bob? Mar 29 17:30:33 no Mar 29 17:30:36 lol Mar 29 17:31:31 can i define a certain button-layout or "Linear Layout" with textsize, width and all that and use those default values in xml? Mar 29 17:32:02 like a define a color and call it by ="@color/blabla_white" Mar 29 17:35:03 yes Mar 29 17:35:04 http://android-developers.blogspot.com/2012/03/making-developer-console-work-for-your.html Mar 29 17:35:24 It's here! 4.0.4 Galaxy Nexus is here! Mar 29 17:35:30 YES!!! *cries* Mar 29 17:35:40 DarsVaeda: o_O Mar 29 17:36:01 Afzal: yes, the common response to android users everywhere, crying Mar 29 17:36:04 DarsVaeda: Strongly consider opening a new listactivity instead of updating the db backing the cursor you have open Mar 29 17:36:26 g00s, tears of joy Mar 29 17:36:34 still no official 4.0.x for nexus s 4g Mar 29 17:36:51 evancharlton damn none of them even compile Mar 29 17:36:52 lov: oh you really do that? I thought that would waste resources Mar 29 17:37:05 birbeck: hold on this guy is delivering the update http://i.imgur.com/vgdql.jpg Mar 29 17:37:07 having proiblrms with ((PullToRefreshListView) getListView()).setOnRefreshListener(new OnRefreshListener() { Mar 29 17:37:14 DarsVaeda: so long as your activities know how to recreate themselves, it's not a big deal. Mar 29 17:37:22 g00s: lol Mar 29 17:37:40 [13:35:04] http://android-developers.blogspot.com/2012/03/making-developer-console-work-for-your.html Mar 29 17:37:41 old news Mar 29 17:38:01 lov: I'll try to google it up, thanks Mar 29 17:38:05 yeah really, that was so 17 minutes ago Mar 29 17:38:05 DarsVaeda: up to you. I don't know offhand why this isn't working, but I don't use cursor adapters very much. Mar 29 17:38:15 here is some more old news http://news.ycombinator.com/item?id=3769533 Mar 29 17:38:22 got that from the notepad tutorial Mar 29 17:42:12 'samsung announces 5 million notes sold' Mar 29 17:42:31 yeah thats awesome Mar 29 17:42:43 lov: googleing your advice I only found posts saying, don't do it ^^ Mar 29 17:43:43 god all this crap on github rarely works Mar 29 17:45:05 gaz`: stop trying to copy and paste :) Mar 29 17:45:12 yeh Mar 29 17:45:21 trying to get this lame ass crappy refresh thing going Mar 29 17:45:37 somehow clas sisnt found Mar 29 17:45:38 GRRR Mar 29 17:47:33 hi all Mar 29 17:48:04 question: when my app is rotated it is created by new. Is it a way to remember the before state ? Mar 29 17:48:59 store it when activity is remade Mar 29 17:49:02 in onPause() i think Mar 29 17:51:01 this will take some time :/ optimizing application 30 of 122 Mar 29 17:51:40 onSaveInstanceState(Bundle state) Mar 29 17:51:47 Activity 101 Mar 29 17:51:57 ah yeh Mar 29 17:51:59 ok Mar 29 17:53:20 does eclipse mess anyone elses copy n paste up? Mar 29 17:53:26 no idea why this programwasnt binned yrs ago Mar 29 17:54:15 ah ... complicated Mar 29 17:54:54 is it possible to store objects ? Mar 29 17:55:12 if they are Parcelable Mar 29 17:55:39 shit Mar 29 17:56:18 if I have to store a chain on Observable, Observers what do you suggest ? Mar 29 17:57:17 I'm just curious, is there a nice solid channel/forum for app feedback, and to try out other apps to see what's what? Mar 29 17:58:16 aLeSD: parcelable is an interface Mar 29 17:58:58 wongk, I see. thanks Mar 29 17:59:59 when a alarmreceiver receives my intent some url-request should be done and depending on the result of this request another activity should be started (or not). anyone got an idea in what class the url-request must be done? Mar 29 18:01:03 cause doing it in the alarmreceiver isn't working Mar 29 18:01:04 romainguy: why do you check if the Build.TYPE is "user" when deciding whether or not to use the noop view server? Mar 29 18:01:46 romainguy_: I see that you can have "user" "userdebug" and "eng", but don't see why viewserver would care if it's not user. Mar 29 18:01:48 chris_cross: it should be done on a thread, at least Mar 29 18:02:04 chris_cross: is this done while the phone is asleep or only while awake? Mar 29 18:02:06 sweet account delegation! Mar 29 18:02:20 could be asleep Mar 29 18:02:34 chris_cross: then you have to be concerned with wake locks Mar 29 18:02:43 nasty business Mar 29 18:03:04 did it already for the activity which has to be started Mar 29 18:03:57 chris_cross: so could you be more specific about "isn't working" Mar 29 18:04:13 yes, one moment Mar 29 18:04:19 romainguy_: is it to avoid issues clashing with the emulator's viewserver? Mar 29 18:04:40 abaratican: because on user-debug and eng builds the system already does what ViewServer does Mar 29 18:04:51 ah okay Mar 29 18:04:53 it's not the emulator's Mar 29 18:04:54 but yes Mar 29 18:04:56 here's the problem: The method openFileInput(String) is undefined for the type AlarmReceiver Mar 29 18:06:29 chris_cross: why does it need to be defined? Mar 29 18:07:12 ?! Mar 29 18:07:18 to use it? Mar 29 18:07:56 so are you saying you are calling a method you haven't defined? Mar 29 18:09:12 sounds strange to myself :D Mar 29 18:09:37 why are you tyring to do someAlarmReceiver.openFileInput() Mar 29 18:10:21 you aren't giving much information, so we're not able to help you very effectively Mar 29 18:12:21 http://pastebin.com/n8GNqmdu Mar 29 18:13:24 there i want to serialize an arraylist to save it Mar 29 18:13:42 so you seem to think that this mystery method, openFileInput, is supposed to be defined for you Mar 29 18:14:34 coincendently, the Context class seems to have this method Mar 29 18:15:03 Hey all Mar 29 18:15:08 putting it in an activityclass works well Mar 29 18:15:19 Activity is a Context Mar 29 18:15:50 BroadcastReceiver is not Mar 29 18:16:11 it does receive a context in onReceive, however Mar 29 18:16:54 romainguy_: using the exact implementation the example asks for, onCreate is calling ViewServer.get(this).addWindow(this); which is creating the singleton, however it is also calling .start(), which opens a local socket connection, which is giving a NetworkOnMainThreadException from InetAddress.getLocalHost() Mar 29 18:16:57 so i got to do context.openFileInput(...) ? Mar 29 18:17:04 you tell me Mar 29 18:17:24 romainguy_: I can rework the code to fix that, but I'd call this a bug in the implementation unless I'm missing something. Mar 29 18:17:25 i've given you the puzzle pieces, put them together :P Mar 29 18:17:47 abaratican: disable StrictMode Mar 29 18:17:55 I'm not going to fix it Mar 29 18:18:40 yes and that's really kind of you Mar 29 18:18:48 thanks alot, seems to be working Mar 29 18:19:58 im importing OnScrollListener but it says onScroll isntin the super class Mar 29 18:20:00 hows that Mar 29 18:20:51 sdk 17 included an updated proguard config - anyone know where that went ? Mar 29 18:21:09 i was under the impression it was different than the one in tools/proguard/proguard.pro Mar 29 18:21:41 So, #android-root is dead right now, I'm curious. How well does Android 4.0 run on a Samsung Galaxy S Mar 29 18:22:00 Rain_Silves, this is not the channel for that, and you seem to already know this Mar 29 18:22:10 I've read that officially "It won't support the full user experience" or something, but I see all these ROM's running Android 4, so I'm wondering Mar 29 18:22:18 I don't know the answer Mar 29 18:22:21 I've never rooted anything Mar 29 18:22:29 I'm considering doing it but I want to know if I'll take a performance hit Mar 29 18:22:47 go to #android-root Mar 29 18:22:48 god this pull to refresh thing is gonna make me smash something Mar 29 18:22:56 gaz`: +1 Mar 29 18:23:09 pull to refresh ? Mar 29 18:23:38 some bollocks im trying to put in Mar 29 18:23:41 GRRRR Mar 29 18:23:46 i got it working fine standalone Mar 29 18:23:49 in a diff project Mar 29 18:23:53 but in my project it refuses to compile Mar 29 18:23:54 pull to refresh is stupid Mar 29 18:23:55 dont do it Mar 29 18:23:59 i have to Mar 29 18:24:01 it's the most unintuitive interface ever Mar 29 18:24:04 in the design Mar 29 18:24:05 use a refresh button Mar 29 18:24:11 requirements is requirements :P Mar 29 18:24:13 How come 'Play is telling me the following when I'm trying to upload an apk? "Cannot get developer account ID" Mar 29 18:24:20 a good dev fights back on bad requirements Mar 29 18:24:40 doesn't mean they don't ever get told to do it anyway Mar 29 18:24:42 whydoes it work in my standalone project and not in my main one tho Mar 29 18:25:41 wongk: true, i win some battles, i lose some battles, but if i dont agree with the approach product or design have put into the requirements, i raise an issue Mar 29 18:25:58 as you should Mar 29 18:26:02 now product and design bring me in early and we have a better product Mar 29 18:26:04 as anyone else noticed that sqlite operations seem to take longer on ICS? A single insert that took 20-30ms on my old Nexus One now takes 100-200ms on my Galaxy Nexus. Was there some change in ICS to the filesystem or the Sqlite code that would cause this? Mar 29 18:26:04 complaining about onClick,onScrollStateChanged,onScroll- really dont get it Mar 29 18:26:30 shing: you forgot to copy the initial "H" :D Mar 29 18:26:39 using the mouse is hard :[ Mar 29 18:26:50 now i meet twice weekly with management, product and design to iron out issues for the ios and android apps before they ever make it into designs and specs Mar 29 18:28:14 fuck sake Mar 29 18:28:32 can anyone suggest why onClick,onScrollStateChanged,onScroll its tellign me to remove override Mar 29 18:28:37 shing`: are you using the same device? Mar 29 18:28:45 err no Mar 29 18:28:47 hmm Mar 29 18:29:00 gaz`: your java compatibility is set to 1.5? Mar 29 18:29:09 should be 1.6 Mar 29 18:29:11 no Mar 29 18:29:26 not your android framework Mar 29 18:29:28 other ones work Mar 29 18:29:40 im using @Override all over Mar 29 18:29:52 How can String.valueOf(1.1) be null? Mar 29 18:30:20 mikedg: Googled around, found some benchmarks that seem to support my observation: http://stackoverflow.com/questions/9247439/why-are-inserts-and-updates-slower-on-android-4-0 Mar 29 18:30:34 birbeck that worked! no IDEA why tho Mar 29 18:30:47 Any google android developers hang out in here that would know more about the internals of ICS? Mar 29 18:31:30 shing`, you're best off pulling aosp source yourself and digging through the internals Mar 29 18:31:45 gaz`, because you're on java 1.5 compliance, not 1.6 Mar 29 18:31:55 1.5 compliance doesn't allow @Override on interfaces Mar 29 18:31:57 so very annoying Mar 29 18:32:05 yeh but whats that mean? just means u cant use @ ? Mar 29 18:32:08 yes Mar 29 18:32:17 but its working fine in all my other cases Mar 29 18:32:19 within same proj Mar 29 18:32:23 why in the world are you on 1.5 compliance Mar 29 18:32:25 hi, when trying to build ASOP for emulation on a macbook, should the target be full_eng or full-x86_eng on a macbook pro? Mar 29 18:32:30 that was valid like 2 years ago and not since Mar 29 18:32:33 gaz`: Oh, you can use annotations, and even @Override. You just can't use @Override on interfaces. Mar 29 18:32:40 in 1.5. Mar 29 18:32:40 ah Mar 29 18:32:42 ok! Mar 29 18:32:44 i see Mar 29 18:32:44 I have an webview and im hijacking some links. the webview loads html page on the device. Anyways Im loading something and Im trying to pop up a dialog but it wont show. Can you display dialogs over webview? Mar 29 18:32:53 well i dont know the gayest app ever eclipse set this up for me Mar 29 18:32:53 java is up to 1.7 now. At least set your compiler level to 1.6. Mar 29 18:33:07 The dex compiler doesn't understand 1.7 class files. Mar 29 18:33:10 gaz`: window -> preferences Mar 29 18:33:14 java -> compiler Mar 29 18:33:21 yeh i changed it now Mar 29 18:33:23 compiler compliance level: 1.6 Mar 29 18:33:28 i try not to uses much n eclipse as it crashes Mar 29 18:33:31 in a heartbeat Mar 29 18:33:35 really? Mar 29 18:33:36 its usign 11 gig of ram right now Mar 29 18:33:43 and will crahs within the next 30 mins Mar 29 18:33:45 gahahaha whaaaaaaat Mar 29 18:33:51 without even letting me save Mar 29 18:33:54 yeh no idea whats going on Mar 29 18:33:55 yeah I think I found your problem Mar 29 18:34:05 the problem is that you set the max heap size to "fucking lopl" Mar 29 18:34:07 *lol Mar 29 18:34:10 hehe Mar 29 18:34:13 bahhaha lov Mar 29 18:34:23 256mb 512mb 1GB FKNLOL Mar 29 18:34:30 those are the settings Mar 29 18:34:30 I'm working on a rediculously large project and my heap is only set to 1.5GB Mar 29 18:34:34 and that's really for extreme situations Mar 29 18:34:38 11GB? Mar 29 18:34:39 i did tweak some stuff Mar 29 18:34:41 maybe messed it up Mar 29 18:34:42 you are doing something wrong. Mar 29 18:34:43 in the ini Mar 29 18:34:53 sounds like you tweaked it alright Mar 29 18:34:53 Hint: -Xmx means something. Mar 29 18:34:54 but i only did it because it was flashing around and crashing in the first place Mar 29 18:34:56 stop tweaking dude Mar 29 18:35:14 all the buttons flash constantly and use up like 80% cpu Mar 29 18:35:16 hi, when trying to build ASOP for emulation on a macbook, should the target be full_eng or full-x86_eng on a macbook pro? can qemu run arm on a x86 desktop? Mar 29 18:35:17 til my tweaks :) Mar 29 18:35:29 atleast now i can use it for 45 mins before it dies Mar 29 18:35:38 before i was waiting 20 mins for it to catch up when i do a compile Mar 29 18:35:58 gaz`: are you using a pentium 4? Mar 29 18:35:58 I must know Mar 29 18:36:04 no Mar 29 18:36:09 some sort of 3 core amd Mar 29 18:36:10 nachosx: Yes, qemu can run arm. Mar 29 18:36:12 quite quick Mar 29 18:36:13 nachosx: I THINK that full-x86_)eng will make an x86 target Mar 29 18:36:19 gaz`: no apparently not Mar 29 18:36:23 hehe Mar 29 18:36:27 eclipse has a leak somewhere Mar 29 18:36:28 lov: I see, so i can boot it on pc, lol. Mar 29 18:36:35 gaz`: completely uninstall it re-download Mar 29 18:36:35 your "tweaks" have FUCKED YOU UP somewhere. Mar 29 18:36:37 i spent a day tracking itdown, its producing some text files constantly Mar 29 18:36:37 Hey guys! Mar 29 18:36:47 yeh this is my 4th attempt and reinstal Mar 29 18:36:51 nachosx: Except you can't, because it's configured for x86 android devices, and your PC likely isn't one. It's not linux. Mar 29 18:36:51 On on low-end cellphones, services doesn't receive any sensor? Mar 29 18:36:53 eclipse is just really shit :) Mar 29 18:36:56 gaz`: go to #eclipse, get help Mar 29 18:36:57 no Mar 29 18:37:01 it's really not Mar 29 18:37:04 gaz`: this problem seems to be isolated to you, in a sample of this channel :P Mar 29 18:37:06 you just have some sort of mind bendingly awful setup Mar 29 18:37:11 hehe Mar 29 18:37:12 Why on * rs... Mar 29 18:37:15 well it kind of does suck but for unrelated reasons Mar 29 18:37:30 because it's written in java ;) Mar 29 18:37:30 no its ALWAYS problematic in some way tho, on all pcs icve tried, this one is new to me tho yeh Mar 29 18:37:35 * wongk ducks Mar 29 18:37:37 lfamorim: "low end" meaning "the manufacturer doesn't care if it works or not" probably Mar 29 18:37:55 lov, galaxy cellphones have that problems Mar 29 18:38:13 lfamorim: my point stands :> Mar 29 18:38:20 hehehe Mar 29 18:38:24 nachosx: you can run it in a vm Mar 29 18:38:33 lov, exists know workarround? Mar 29 18:38:37 nachosx: like virtualbox Mar 29 18:38:39 alex7: yeah, all i want to do is run a rom in a emulator Mar 29 18:38:55 nachosx: Then you want ARM. It has the advantage of actually working. Mar 29 18:39:03 thansk Mar 29 18:39:05 thanks * Mar 29 18:39:06 lfamorim: what's the exact problem, be specific please Mar 29 18:39:28 virtualbox does ARM emulation? Mar 29 18:39:41 I didn't think it did, I thought you had to compile AOSP for x86 Mar 29 18:39:47 to run on vbox Mar 29 18:39:48 o_O Mar 29 18:40:01 For VBox, yes. QEMU, however, does do ARM. Mar 29 18:40:11 ah Mar 29 18:40:25 interesting, didn't play too much with qemu Mar 29 18:40:39 evancharlton did u se android-pulltorefresh, finally got it working but it displays "tap to refresh" on my lists when i havent even dragged them down Mar 29 18:40:40 lov, I won't receive the SensorEvents on a Service on GT-I5510T Mar 29 18:40:43 It's the backend for the Android SDK emulator. Mar 29 18:40:48 Android 2.2.1 Mar 29 18:42:04 Works nice on Android 2.3+ Mar 29 18:44:58 Has anyone heard anything about this book? http://www.amazon.com/Professional-Android-Programming-Mono-NET/dp/1118026438 - I'm not an android developer but I thought this might be a cool way to start learning since I don't really recall very much Java. Mar 29 18:45:19 but you know c#? Mar 29 18:45:24 Yep Mar 29 18:45:33 c# to java is easy Mar 29 18:45:41 not that big of a difference between c# and java Mar 29 18:45:44 Yeah they seem very similar Mar 29 18:45:49 gaz`: dang, looks like you're going to have to actually program instead of copy-paste! Mar 29 18:45:51 lfamorim: ok, elaborate. Do you receive them in an activity? Are you maybe getting them but then blank events come later? is there an update for the firmware on the phone? Mar 29 18:46:09 evancharlton haha, Mar 29 18:46:15 you lose linq, delegates and properties, but otherwise very similar Mar 29 18:46:19 When you say you don't receive the events, do you mean that t you never get sent any events? can you verify that the sensor actually exists on the device? Mar 29 18:46:48 lov, I never get update, only if i set a breakpoint Mar 29 18:47:29 surely stealing code is better than writing it evancharlton ;-) Mar 29 18:47:56 My app only sends network packets from my activity when my app closes ... Mar 29 18:47:58 aw no Mar 29 18:48:06 anyone know why it doesn't push it right away ? Mar 29 18:48:17 shroomyreader: Did you put networking on the same thread as your Activity? Mar 29 18:48:31 mmh Mar 29 18:48:35 it uses a service Mar 29 18:48:44 but still runs on the activity thread I think Mar 29 18:48:49 push it right away? Mar 29 18:49:04 yeah the webservice doesn't notice it Mar 29 18:49:07 but when you close the app Mar 29 18:49:12 it flushes the data Mar 29 18:49:17 and the service reads it correctly Mar 29 18:49:20 *webservice Mar 29 18:49:24 sounds like you are not flushing the data Mar 29 18:49:26 problem solved Mar 29 18:49:36 jeez I didn't think about that .. /end sarcasme Mar 29 18:49:39 halas Mar 29 18:50:01 but I'm going to check the threading, thanks for that Mar 29 18:50:22 romainguy_: it works great now, but i noticed something.. if I click on a ViewStub in hierarchyviewer, I get a NPE from View.createSnapshot; for all i know that happens with the stock viewserver as well though. Mar 29 18:50:37 lfamorim: sorrty, what do you mean only when you set a breakpoint? Also, which sensor is this? Mar 29 18:50:40 what happens if you do a google search for Mar 29 18:51:06 what the hell is this params Mar 29 18:51:09 whoops Mar 29 18:51:14 eclipse messes with my copy paste forgot Mar 29 18:51:17 Void... Mar 29 18:51:22 ^ what is that about Mar 29 18:51:26 abaratican: yeah, there's a bug Mar 29 18:51:43 romainguy_: in your stuff, or android's stuff this invokes? Mar 29 18:51:54 in the framework Mar 29 18:52:01 I never took the time to fix it Mar 29 18:52:57 ah, well if it isn't unique to this solution then i suppose all is completely well then with the github project now. :) Mar 29 18:53:08 lov, if I put a debug breakpoint on onReceive the sensorevent come, and I can also confirm on logcat Mar 29 18:53:17 romainguy_: any plans to release more x86 sys images? Mar 29 18:53:25 romainguy_: ah .. reminds me of the nested view overlap bug from 1.0 that I found Mar 29 18:53:32 romainguy_: memories.. Mar 29 18:53:46 lfamorim: but if you don't have the debugger attached, no events come? I'm not sure I understand the problem... Mar 29 18:54:04 lov, yes, is that Mar 29 18:54:05 romainguy_: I also remember ripping ASyncTask from your shelves app for a 1.0 project. Mar 29 18:54:13 I need the debugger and a breakpoint Mar 29 18:54:30 TachyonDevWork: what bug? Mar 29 18:54:48 lfamorim: O_O Mar 29 18:54:55 lfamorim: that is extremely strange. Mar 29 18:54:55 romainguy_: trying to remember, it has to do with nest 9patches overlapping on the top border or something Mar 29 18:55:05 nested* Mar 29 18:55:07 lov, yeh, thats extremely strange, but is real Mar 29 18:55:25 TachyonDevWork: 9patches will do that when they are drawn at smaller dimensions than their intrinsic dimensions Mar 29 18:56:12 romainguy_: hmm .. *shrug* .. it was so long ago I don't remember the exact details. All I know is that I haven't run into the bug since Mar 29 18:56:22 oh one more eclise weird thing 50% of the time when i paste code it loses formating, any reason for that Mar 29 18:56:23 man time flies Mar 29 18:56:55 gaz`: eclipse works fine for me :) Mar 29 18:57:09 nice what u running? a beowulf cluster? :-) Mar 29 18:57:21 just indigo Mar 29 18:57:53 yeh would be nice to formatg this pc but it takes weeks to get back to wher eu were Mar 29 18:58:29 eclipse reformats, based on preference, a pasted selection according to the formatter specified Mar 29 18:58:37 i think you need to learn how to eclipse :) Mar 29 18:58:44 works 85% of the time Mar 29 18:58:57 i for one welcome our new beowulf cluster overlords Mar 29 18:59:27 romainguy_: Do you know of any sqlite related changes in ICS that would make inserting a single row that used to take 20-30ms now take 100+ ms? Some related benchmarks here: http://stackoverflow.com/questions/9247439/why-are-inserts-and-updates-slower-on-android-4-0 Mar 29 18:59:44 no idea Mar 29 18:59:49 bam Mar 29 19:00:48 shing`: what is used to? sqlite 3.7.4 has been used from 3.0 on up Mar 29 19:01:36 Its odd I can get a progressdialog to show up right when my webview is loaded, but not in the shouldovveridurlloading i implemented. Mar 29 19:02:47 is the size of my button important if i create my own button layout? Mar 29 19:03:37 do I actually need to have a GLSurfaceView to check opengl extensions? Mar 29 19:03:52 g00s: on my test gingerbread, 3.7.2, on my ics, 3.7.4 Mar 29 19:04:37 shing`: are you using stock gn? i thought GB was 3.6.22 Mar 29 19:04:42 stock GB Mar 29 19:04:42 I don't need to draw anything, I only want to read the extensions but I'm getting an error "call to OpenGL ES api with no current context" Mar 29 19:04:47 jeppy: no, you only need to create an EGL context Mar 29 19:04:54 g00s: heh, unfortunately no Mar 29 19:05:13 g00s: but it's a small difference in sqlite version, and I don't see anything in the changelog that would cause the speed difference, so I suspect it must be something in the java Mar 29 19:05:36 shing`: :) so basically , your device uses a version of sqlite that hardly anon else would use :D Mar 29 19:05:54 i would bet their are other tweaks beside that XD Mar 29 19:05:57 *there Mar 29 19:06:11 woah my phones hung completely Mar 29 19:06:20 i wa skilling some apps and its stopped Mar 29 19:06:53 actually gonna have to pop battery out Mar 29 19:07:27 interesting, looks like LG uses sqlite 3.7.6.3 in some of their phones Mar 29 19:09:03 evancharlton so did u use it? i think its saying tap to refresh becuase my lists are in a tab host and some stuff above too so its thinkign theyr ento full screen or something Mar 29 19:09:17 g00s: not too surprising, and one reason to not tstray off of the path of what the public apis are Mar 29 19:10:04 the only big difference i remember from froyo forward was sqlite had working foreign key support with cascading deletes Mar 29 19:10:47 problem is, when you want to really dig into the docs for sqlite behavior, the website talks about the current release of course Mar 29 19:11:59 A webview in a listview item is still very bad, and you will be upset romainguy? Mar 29 19:12:14 that sounds terrible Mar 29 19:12:16 Hi, is there a x86 Atom native system image for ICS in the ADT? I only see 2.3.3 Mar 29 19:12:25 g00s, that was what I told the client. Mar 29 19:12:25 only 2.3.3 Mar 29 19:12:41 it is for one item in the listview basicly. Mar 29 19:12:53 its for an ad Mar 29 19:15:55 Why can't the client listen to me Mar 29 19:18:04 I'd like to make 2 or 3 buttons, one besides each other, one of them pressed, and nice left and right corner, but for the moment I just have the default ugly button Mar 29 19:18:31 is there a way to get such result quickly Mar 29 19:18:31 ? Mar 29 19:23:14 buttond with text inside Mar 29 19:23:14 anyone who know why I'm getting a SecurityException when trying to set the DownloadManager visibility to VISIBILITY_VISIBLE_NOTIFY_COMPLETED? Mar 29 19:23:40 wangenma, read the exception to see what it says Mar 29 19:23:51 hierarchyviewer is my new best friend. Mar 29 19:23:58 why would protected onActivityResult() fire automatically whenever I call startActivityForResult() and not fire whenever I finish() the called activity? Mar 29 19:27:50 I think it's a bug Mar 29 19:29:59 is it possible to remove something from the webview history? pop off the last entry? Mar 29 19:32:22 roger_padactor: stop browsing porn at work Mar 29 19:33:06 wow, you really offended him! ;) Mar 29 19:39:35 hi I have a onSharedPreferenceChanged in a PreferenceActivity and I want to call a method from another activity, whats the best way to do this? Mar 29 19:40:44 cooldman224: call a method from another activity? in what way? Mar 29 19:41:02 cooldman224: to trigger something to happen in that activity? Mar 29 19:41:43 cooldman224: because "another activity" is paused and not doing anything. Did that activity launch the preference activity? Mar 29 19:42:13 ActivityA has methodA(); if user changes pref, hence onSharedPreferenceChanged I want methodA() to be called in ActivityA Mar 29 19:42:36 is there anything special about a custom button ? because i cannot see the text written on the button ?! :-O Mar 29 19:42:42 TachyonDevWork: it might call it, I have tabs so those activities may call the prefs activity Mar 29 19:43:15 Surfer2010: define the textcolor in the xml Mar 29 19:44:24 cooldman224: Tabs with Activities are deprecated and suck Mar 29 19:44:45 cooldman224: save yourself the trouble and use a tabhost in a fragmentactivity and use fragments for the tabs Mar 29 19:44:46 Can someone help me with getting opengl extensions? http://pastebin.com/NWEUJtMC Mar 29 19:44:52 TachyonDevWork: the reason I ask is because I have an ActivityA that implements OnSharedPreferenceChangeListener. The preference activity sometimes makes my onDestroy method in ActivityA (which closes the DB) now the db isn't open...crash Mar 29 19:45:37 TachyonDevWork: I have looked into fragments yet I do not quite understand them Mar 29 19:45:37 cooldman224: you should have the database handled in the tab host most likely Mar 29 19:45:39 When I call getExtensions(), the activity crashes and I get the message "call to OpenGL ES API with no current context (logged once per thread)" Mar 29 19:45:58 cooldman224 i did ... the background is definded by a xml basically blue right now and textcolor is white ... nothing to see Mar 29 19:46:23 i'll make a pastebin Mar 29 19:46:42 TachyonDevWork: yeah but how will my activities see the db? Mar 29 19:47:07 TachyonDevWork: and whats so special about fragments? would that problem my problems? Mar 29 19:47:12 solve* Mar 29 19:47:12 well again, it should be fragments, not activities. TabActivities are a nightmare Mar 29 19:47:32 cooldman224: you would only have one activity that hosts the tabs and fragments Mar 29 19:47:43 and you can access the activity with getActivity() at any time in the fragments Mar 29 19:48:04 cooldman224: so if you do not want to open and close the database in every tab, then you can open and close it once in the parent activity Mar 29 19:48:10 TachyonDevWork: that sounds kinda nice actually Mar 29 19:48:13 cooldman224: here is the pastebin: http://pastebin.com/makdbNcv Mar 29 19:48:32 cooldman224: its a world better Mar 29 19:48:54 cooldman224: http://developer.android.com/resources/samples/Support4Demos/src/com/example/android/supportv4/app/FragmentTabs.html Mar 29 19:49:01 TachyonDevWork: ok well I am going to work on converting them today, I will probably need help Mar 29 19:49:02 a viewpager would be even cooler Mar 29 19:49:04 http://pastebin.com/NWEUJtMC ... anyone able to throw me a bone? I'm new to opengl Mar 29 19:49:27 I have an OpenHelper http://pastebin.com/hgLSV5VU and I want to use the compatability CursorLoader with a ListView, the problem is that I need a content provider and I can't figure out how to make one. Mar 29 19:49:35 cooldman224: good luck Mar 29 19:49:45 cooldman224: i use them in my DJ app Mar 29 19:49:55 Ankhwatcher: getContextResolver() Mar 29 19:50:01 cooldman224: and i populate all my tabs with data in a foreground service.. its sexyu Mar 29 19:50:56 cooldman224: eh let me find that other example, its better Mar 29 19:51:15 TachyonDevWork: thanks Mar 29 19:51:37 cooldman224 is a asked man right now ;) Mar 29 19:51:46 Surfer2010: um I might be horribly wrong but I don't see any solid Mar 29 19:51:54 evancharlton: getContextResolver() or getContentResolver()? Mar 29 19:52:07 any solid means= (language barrier ^^) Mar 29 19:52:27 damnit where is that other developer page Mar 29 19:52:50 Surfer2010: Mar 29 19:53:10 Surfer2010: it can't be all gradient you need a solid for the text color to be seen???? Mar 29 19:53:55 ah bingo Mar 29 19:53:55 ah okay Mar 29 19:53:59 so annoying to find Mar 29 19:54:05 its in the deprecated class Mar 29 19:54:08 cooldman224: http://developer.android.com/reference/android/app/TabActivity.html Mar 29 19:54:16 there is a "correct" example using fragments in there Mar 29 19:54:29 it shows you how to switch to using fragments Mar 29 19:54:54 cooldman224: remember to import the compatibility lib Mar 29 19:55:02 cooldman224 do you know any example of a good custom button? because the tutorials in the android.developers don't work Mar 29 19:55:26 Surfer2010: http://www.dibbus.com/2011/02/gradient-buttons-for-android/ is what I was looking at Mar 29 19:55:41 Surfer2010: http://developer.android.com/guide/topics/resources/drawable-resource.html#StateList Mar 29 19:58:17 On my mobile some applications have a Broadcast receiving delay (13-16 seconds) while others receive their broadcasts withing one second. Do you know a reason for this issue? I created three applications, where two are affected by this problem (they share the same BroadcastReceiver concept). One of them: http://pastebin.com/mMnFNJ67 Mar 29 19:58:35 On the emulator none of them has a delay. Mar 29 19:59:16 The examples fires a broadcast just after receiving one Mar 29 19:59:24 http://pastebin.com/wk5sHDnX Mar 29 19:59:59 TachyonDevWork: diving in! Mar 29 20:00:38 How on earth do you get GL extensions without 100 lines of code? Mar 29 20:00:42 or even with Mar 29 20:00:55 thanks you two i'll try that :) Mar 29 20:01:07 jeppy: y u no include stacktrace!? Mar 29 20:01:10 when is google io Mar 29 20:01:39 june Mar 29 20:01:44 end of june i think Mar 29 20:01:46 onActivityResult() fires automatically- just afer I call startactivityforreult(), anyone else had this problem? Mar 29 20:01:49 google.com/io Mar 29 20:02:30 brx_: a) logcat b) test case c) source Mar 29 20:02:36 TachyonDevWork: do my other activities need to be fragments? Mar 29 20:02:45 fragmentactivity Mar 29 20:03:22 cooldman224: they probably should be Mar 29 20:03:38 or dialogfragments Mar 29 20:03:41 or converted to fragments Mar 29 20:04:03 no harm in making them fragmentactivities Mar 29 20:04:30 Hello, could I program in C++?, thanks Mar 29 20:04:38 evancharlton, http://pastebin.com/R2sWmxLP Mar 29 20:04:43 bit0: somewhat, using the NDK Mar 29 20:05:09 bit0: http://developer.android.com/reference/android/app/NativeActivity.html Mar 29 20:05:33 yes, but your app won't look android-native Mar 29 20:05:41 right Mar 29 20:05:47 but if you are going for a game or something.. Mar 29 20:05:50 thanks a lot Mar 29 20:06:14 but for a standard application you need to use java Mar 29 20:07:20 anyone used this? https://github.com/johannilsson/android-pulltorefresh im *desperately* trying ot get rid of the "tap to refresh" button that comes up when it starts, its weird it vanishes once u press it so surely i can use that code to make it vanish automatically, yet i cant work it out Mar 29 20:07:47 gaz`: /j #android-spoon-feeding Mar 29 20:07:56 wtf Mar 29 20:07:57 issue with onActivityResult http://pastebin.com/UPPBpTrH Mar 29 20:08:00 man i been trying for HOURS Mar 29 20:08:16 wasted ages on this and i need to get other shit done Mar 29 20:08:39 itd pathetic that it even starts with that damn state Mar 29 20:08:45 and impossible to change weirdly Mar 29 20:08:46 brx_: are you going from FilterMentionActivity -> FilterMentionActivity ? Mar 29 20:08:58 gaz`: it's OSS--nothing is impossible. Mar 29 20:09:06 start reading the source and figure out what is going on Mar 29 20:09:08 well i challenge anyone to do it ;) Mar 29 20:09:11 ill pay them! Mar 29 20:09:13 good luck with that Mar 29 20:09:17 ive read the src constantly Mar 29 20:09:18 elance.com Mar 29 20:09:28 no evancharlton Mar 29 20:09:29 ive read it all and experimented for hrs Mar 29 20:09:44 brx_: I suspect it's the SINGLE_TOP flag Mar 29 20:09:52 apparently thats meant to fix it Mar 29 20:09:55 it wont work either way Mar 29 20:10:07 do you have any launchMode flags in your manifest? Mar 29 20:10:19 grr Mar 29 20:10:37 so u pointed this to me evancharlton - knowing it was broken - and now youre having a go at *me* :-p Mar 29 20:10:54 gaz`: I didn't point you at anything other than google.com Mar 29 20:10:59 hah Mar 29 20:11:00 now stop crying and start debugging Mar 29 20:11:06 i dont think its possible Mar 29 20:11:07 how can I browse data on my phone with eclipse? Mar 29 20:11:09 somehow Mar 29 20:11:12 yes evancharlton single instance Mar 29 20:11:16 I remember there way a way, but I can't find it now Mar 29 20:11:19 this delay drives me crazy is it possible to disable all non-android background services without uninstalling applications from the phone? Mar 29 20:11:22 ahh i try without that Mar 29 20:11:50 brx_: can you make a simple hello world version of this that reproduces the behavior? I suspect you'll find the problem easier that way Mar 29 20:12:01 Rayne: ... what on earth are you trying to do? Mar 29 20:12:16 thanks you fixed it :) Mar 29 20:12:25 brx_: ... what did I do? haha Mar 29 20:12:32 singleInstance? Mar 29 20:12:39 yes Mar 29 20:12:50 hah Mar 29 20:12:51 man i was messing around for 2 hours there Mar 29 20:13:02 excellent :) Mar 29 20:13:05 knew it would be smt stupid Mar 29 20:13:06 thanks Mar 29 20:13:11 smt? Mar 29 20:13:23 what do you type, 20wpm or something? Mar 29 20:13:24 i hadnt checked the manifest at all pfn Mar 29 20:14:22 i have one hand pfn so i type less Mar 29 20:14:32 ok, I guess that's excusable Mar 29 20:14:53 i lied Mar 29 20:15:02 evancharlton, I have a configuration Activity for AppWidgets. The configuration Activity sends a broadcast to update specific AppWidgets when finishing. The problem: When the broadcast is sent, I have to wait ~15 seconds until the BroadcastReceiver gets informed. The pastebin I posted, contains a simplified version of the receiver and sender. Mar 29 20:15:11 brx_, then it's not Mar 29 20:15:35 Rayne: IIRC, broadcasts to AppWidgets are intentionally throttled Mar 29 20:15:36 The delay does not exist on the emulator Mar 29 20:16:07 Rayne: you shouldn't expect any sort of real-time performance out of remoteviews Mar 29 20:16:11 evancharlton, i thought so, but the old version of my application was not throttled. And the new is only throttled when the intent is created in the Receiver. Mar 29 20:16:26 "was not throttled" = 1-2 seconds Mar 29 20:19:43 AppWidgets not reacting within one second when clicked are dissatisfying. (Problem affects clicking, too) Mar 29 20:20:01 and the AppWidget RemoteViews ist just a TextView Mar 29 20:20:17 hello! Mar 29 20:20:23 (inside LinearLayout). hello ShibaKaneki Mar 29 20:21:19 I created a project in Java that compresses a String with GZipOutputStream and decompress it with GZipInputStream. I checked with some System.out.println and it works fine Mar 29 20:21:33 Then I store the compressed data in a sqlite DB Mar 29 20:22:04 I put the sqlite DB in my android application and try to decompress the data with the same java code for the decompression --> I get an exception Mar 29 20:22:34 lots of things can be going wrong Mar 29 20:23:13 unknown format (magic number 425b) Mar 29 20:23:18 any idea? Mar 29 20:23:29 google play down atm Mar 29 20:23:30 ? Mar 29 20:24:27 http://www.isup.me/play.google.com Mar 29 20:25:06 where is File Browser in eclipse? Mar 29 20:25:36 DDMS Mar 29 20:26:05 maybe the datas are modified by the DB when stored Mar 29 20:27:16 TachyonDevWork: help! I just created a barebones tabs with fragments with the link you posted but I am getting classcastexception: http://pastebin.com/FsKcWXqE Mar 29 20:29:05 cooldman224: eh Mar 29 20:29:49 cooldman224: you copied this directly out of the example? Mar 29 20:30:13 TachyonDevWork: copy and pasted Mar 29 20:30:31 what line is throwing the error Mar 29 20:30:51 cooldman224, CountingFragment doesn't extend support Fragment Mar 29 20:31:02 i.e. you did the wrong import most likely Mar 29 20:31:09 can anyone access google play on thier phone? the website was down 5 minutes ago. Mar 29 20:31:21 wait Mar 29 20:31:24 download updates and get new apps, not working for me Mar 29 20:31:31 those are supposed to be fragments Mar 29 20:31:35 pfn: it extends FragmentActivity, thats Fragment? Mar 29 20:31:36 not fragmentactivities Mar 29 20:31:37 Works on pc nachosx Mar 29 20:31:44 extend Fragment Mar 29 20:31:48 gaz`: not the website, the acutally store. Mar 29 20:31:49 not extend FragmentActivity Mar 29 20:31:58 only the tabhost is a fragmentactivity Mar 29 20:32:02 cooldman224, sounds like you did a bad copy-paste job Mar 29 20:32:07 hee Mar 29 20:32:30 yeah it usually happens but those classes arent listed in the docs so I had to take an educated guess Mar 29 20:34:12 it works now but how do I apply setContentView(R.layout.main) to Fragments? Or is that not the purpose of Fragments. Fragments confuse me! Mar 29 20:34:27 cooldman224, read fragment sample apps Mar 29 20:34:30 like the support demos Mar 29 20:34:33 or the honeycomb demo Mar 29 20:35:00 im so stuck it hurts Mar 29 20:35:03 and its almost bed time Mar 29 20:35:04 crap Mar 29 20:36:11 cooldman224: read the fragments doc Mar 29 20:36:21 cooldman224: http://developer.android.com/guide/topics/fundamentals/fragments.html Mar 29 20:36:37 cooldman224: they are like sub-activities but in the same context Mar 29 20:37:09 interesting, do you have code snippets for the db instance you were talking about earlier? Mar 29 20:38:16 cooldman224: please just do some reading or look at the sample fragment projects Mar 29 20:38:33 cooldman224: http://developer.android.com/resources/samples/Support4Demos/index.html Mar 29 20:38:45 how to use a project like this: https://github.com/bookwormat/segcontrol once it's downloaded ? Mar 29 20:38:48 Anyone had any problems with resources since updating to the newest android tools? Mar 29 20:39:00 Hi all, this is a snippet i found that i use for taking images with the camera.. ( http://pastebin.com/Dd7ffVkZ ) how can i pass the stored filename into a function that i will call in the switch-state @ case -1: ?? Mar 29 20:39:43 I keep getting "Resources&NotFoundException" even though I can see the Resource in the R file, and in the correct folders.. Mar 29 20:40:17 I've closed Eclipse and did a project Clean but nothing is working. Mar 29 20:40:50 Try viewing the 2"problems" window Madhatt5r Mar 29 20:42:37 maxagaz import into eclipse, or start proj and use "existing src" option Mar 29 20:43:54 gaz`: I did it, but it says the manifest is missing while it's here Mar 29 20:44:13 I have been looking at the problems windows. Mar 29 20:44:17 There is nothing there. Mar 29 20:44:29 gaz`: I tried gaz`: with File > New > Android Project Mar 29 20:45:37 ahi dont know Mar 29 20:45:39 stuck myself Mar 29 20:45:45 everythigns difficult with android Mar 29 20:46:12 gaz`: yes, I think so... Mar 29 20:46:51 and now eclipse has frozen, I hope it won't break my workspace prefs again Mar 29 20:46:57 ;-/ Mar 29 20:48:16 google should maybe work on a good ide like xcode Mar 29 20:48:29 or just use netbeans Mar 29 20:48:32 ew Mar 29 20:48:42 yep Mar 29 20:49:01 no idea why everyone goes with eclipse Mar 29 20:49:03 and not netbeans Mar 29 20:49:05 seemsinsane Mar 29 20:49:05 eclipse means memory leak and other problematic stuffs Mar 29 20:49:10 yeh Mar 29 20:49:15 mines using 3 gig right now Mar 29 20:49:16 well gaz` noob friendly Mar 29 20:49:29 id say nb and eclipse are both as difficult as each other Mar 29 20:49:35 eclipse used to seem faster but not now Mar 29 20:49:46 and no proprocessor stuff built in sucks Mar 29 20:49:47 i never liked netbeans Mar 29 20:49:52 i've tried it a few times Mar 29 20:50:00 not sure what it is Mar 29 20:51:31 im gonna have one of them nights wher eu cant sleep Mar 29 20:51:35 as u go to bed with a bug on your mind Mar 29 20:51:51 I try to update data of my ListActivity but nothing I tried works, this is my code, what am I missing? http://pastebin.com/8Yg9Tm6m Mar 29 20:52:03 ive hacked this code apart if it was april fools day id assume someone had been playing with my reality Mar 29 20:53:00 lol how ironic it will be in like 1 day Mar 29 20:54:16 Hello. How can I make a method be called only once on application startup? Mar 29 20:54:23 I have finally imported https://github.com/bookwormat/segcontrol.git successfully, but what now ? It's not even recognized as an android project ? Mar 29 20:54:27 I don't want to put it in onCreate() because that can be called multiple times Mar 29 20:54:39 and there's no howto about how to use it :( Mar 29 20:55:56 Hello - how can I make a widget execute some method on click (with imagebutton)? Do I have to use an intent for that? Mar 29 20:56:57 ironhalik: View.setOnClickListener() Mar 29 20:57:23 romainguy_: does it work with AppWidgetProvider? Mar 29 20:57:26 or in xml android:onClick Mar 29 20:57:50 ironhalik: for app widgets you'll have to use an intent Mar 29 20:58:28 yeah, thats the problem :) Im trying to figure out, how to use an intent to execute some java logic Mar 29 20:59:20 Ill try the xml onClick method Mar 29 20:59:24 maybe it'll work :) Mar 29 21:00:02 anyone good with Contacts API that can peek at this? http://codetidy.com/2389/ -- The name works fine, but I can't pull the address Mar 29 21:00:10 *ARG* I don't understand. Mar 29 21:02:27 what am I missing on updating data in a ListActivity? http://pastebin.com/8Yg9Tm6m Mar 29 21:03:30 romainguy_: if I have two running apps using your ViewServer, the second one will fail because the socket is taken, right? Mar 29 21:03:46 can someone explain me the difference between EditText.setInputType and setRawInputType. I have a field that should allow for all characters, but I have a mode button that switches between numeric and alpha keyboard. Mar 29 21:05:28 Anybody ever use the ICS Switch control on a pre-ICS device? Mar 29 21:06:17 not me, i try to keep the user feeling like home on their device Mar 29 21:09:27 abaratican: ye[ Mar 29 21:09:29 yep Mar 29 21:09:41 okay, another try...can someone point me to a full tutorial how to refresh data in a ListActivity...not only add or remove rows? Mar 29 21:10:00 still nobody knowing how to use this git stuff: https://github.com/bookwormat/segcontrol ? Mar 29 21:10:11 it looks like a library Mar 29 21:10:24 but it's not recognized as android project in eclipse Mar 29 21:10:35 DarsVaeda: you are missing notifyDataSetChanged call... google it Mar 29 21:10:45 maxagaz: copy a .classpath and .project, adjusted of course, from an existing project Mar 29 21:10:49 maxagaz: and eclipse will be happy. Mar 29 21:10:51 Qubez: I tried that to no use Mar 29 21:11:05 also tried cursor.requery() Mar 29 21:11:09 maxagaz: also, greendroid provides a segmented control as well Mar 29 21:11:09 also no change Mar 29 21:12:08 DarsVaeda: im not sure where you are "adapting" your data from Mar 29 21:12:21 where is your class that extends SimpleCursorAdapter in which you "do stuff"? Mar 29 21:12:40 I do not extend it Mar 29 21:13:09 I followed the notepad tutorial which does not either Mar 29 21:13:13 abaratican: nice :-) Mar 29 21:13:24 Okay so I think I found the issue but I am unsure how to fix it. Mar 29 21:13:28 DarsVaeda: and the notepad tutorial does not call notifyDataSetChanged()? Mar 29 21:14:03 not really Mar 29 21:14:08 It seems that it is making an R.java file for my library also but for whatever reason it is filling that R.java with the same exact values as my main application. Mar 29 21:14:16 Anyone have any idea why it might do this? Mar 29 21:14:42 QubeZ: they always create a new simplecursoradapter Mar 29 21:15:02 ahh ok Mar 29 21:15:06 but somehow this does not work for me Mar 29 21:17:45 I guess it is different there because they start a new activity once something changes, if I get that right Mar 29 21:17:53 is it possible to make a shape drawable that is stretchable, like a ninepatch? Mar 29 21:18:11 but not only I think that is not a good idea, I read everywhere its not a good idea, so... Mar 29 21:19:47 I have an issue driving me mad. If I run the code http://pastebin.com/n06jPfRM (stript to the bare miniumum), the list item I press and the list item 10 rows below, change size. Mar 29 21:20:58 because a click usually causes a relayout of the listview Mar 29 21:21:10 you need to do this based on the item position in the adapter Mar 29 21:21:32 Hmm tried something like that but i will check again Mar 29 21:21:36 thanks Mar 29 21:22:02 wow canada's killing the penny Mar 29 21:23:12 ok i gotta go Mar 29 21:23:19 left my question on stackoverflow, hope it helps Mar 29 21:23:25 http://stackoverflow.com/questions/9933644/get-rid-of-tap-to-refresh-button-with-android-pulltorefresh Mar 29 21:23:27 cya Mar 29 21:23:28 :-) Mar 29 21:25:21 Heya - quick question for anyone that's worked with audio buffers on the Anroid..I'm generating an array that holds a set of frequencies (nothing fancing, scaling from x to y over period of time z quadratically), and from that I'm populating an audio buffer. When I use these generated frequencies (which are correct, 10th of a second resolution on the tone samples), I get a crackling sound Mar 29 21:25:21 at approximately the same resolution (every 10th of a second), however using a static tone (say 200hz) the tone is steady. Any suggestions/ideas as to why this might be happening please? Thanks :) Mar 29 21:26:26 I'm trying to make a shape drawable to replace a ninepatch that does nothing more than underline somethign with a thick line.... but can't seem to figure out how to do this simple task because I don't see how to make part of the drawable stretch/fill/etc... or a way to set weights for the sizes. Mar 29 21:26:35 Raising or lowering the resolution only seems to affect the frequency at which the crackles occur, makes me think it just doesn't like jumping from one freq to the next..but that seems odd in a device that can play music perfectly fine heh! Mar 29 21:26:43 abaratican: use the draw9patch tool Mar 29 21:26:49 romainguy_: Are you familiar with the technique used here? http://git.videolan.org/gitweb.cgi/x264.git/?a=commit;h=87c0f8fa66c1d7fb7f25e1991341fd7fe78b1bcd Mar 29 21:26:57 Seidr: try a static set of tones Mar 29 21:26:58 romainguy_: I can already do it with a ninepatch, I'm trying to see if it's possible in an xml drawable. Mar 29 21:27:02 do you get thhe crackle still? Mar 29 21:27:05 Seidr: my first guess would be that you're generating the tones wrong Mar 29 21:27:12 abaratican: ah, no Mar 29 21:27:13 try generating them to an offline file and playing that Mar 29 21:27:18 to check your logic Mar 29 21:27:42 "10th of a second resolution on the tone samples" sounds terribly insufficient Mar 29 21:28:18 readme: Ok, I'll draw up a small array with a sample set of tones in the order I'm expecting, see if that works Mar 29 21:28:19 typical audio sample rates are more like 22kHz, not 10 Hz Mar 29 21:28:55 ctate: For what I'm using this for 10hz is perfectly fine. It's just generating a shifting tone (tones) that raise or fall depending on the preset created Mar 29 21:29:09 Thanks for your input, I'll go and have a closer look at the data and report back =) Mar 29 21:29:32 Any apps out there that will allow me to access or listen to my phones microphone either via another cell phone or via the web? Mar 29 21:30:04 sneaky sneaky Mar 29 21:30:24 should sneak that question on over to #android where it's on topic Mar 29 21:30:56 * readme joins android asap.. wants spyphone Mar 29 21:31:35 :p Mar 29 21:32:46 thats a good idea if it hasn't been written yet Mar 29 21:32:55 simple web service to relay the audio Mar 29 21:38:34 Hmm, no crackle with a static tone, and I've double checked the data and it's fine. In one section, it is raising by 1hz per 10th of a second - I wouldn't of thought that would cause a problem o_0 Mar 29 21:38:36 Seidr: Do all your samples cross zero every tenth of a second? Mar 29 21:39:28 i think i've seen auto-recorders Mar 29 21:39:32 Can I see your synth code? Mar 29 21:39:44 sure, I'll chuck the relevant parts up on pastebin Mar 29 21:39:48 yeah, this still smells to me like the signal generation isn't quite right Mar 29 21:41:10 Seidr, have you plugged different speakers? Mar 29 21:41:24 hum, is there a special way to trigger vibration on an archos 80g9? Mar 29 21:42:03 I set android.permission.VIBRATE and I'm triggering vibration via the COntext.VIBRATOR_SERVICE Mar 29 21:42:10 yet the device doesn't vibrate Mar 29 21:42:22 Try it in the emulator, see if your computer vibrates Mar 29 21:42:28 heh Mar 29 21:42:47 hum, well, the emulator doesn't do anything ;) Mar 29 21:42:58 ;d Mar 29 21:43:07 it's possible the 80g9 simply does not have a vibrator Mar 29 21:43:16 it has something for tactile feedback Mar 29 21:43:24 not sure if this works the same Mar 29 21:43:40 ... well, hm; reviews seem to say it does Mar 29 21:43:54 ::shrug:: Mar 29 21:44:31 I never understood why devices didn't generate a single impulse rather than a short buzz. Mar 29 21:45:32 I do Mar 29 21:47:24 ok, Vibrator.hasVibrator is false Mar 29 21:47:39 any ideas how to access the buzzer for the tactile feedback? Mar 29 21:47:46 Gumboot/ctate: http://pastebin.com/aqL0bVMt I think that's all you should need to see. freqLookup is a 2D array, 2 by n, n being the total number of required lookups, one for the left and one for the right Mar 29 21:47:56 Let me know if that's not enough, I can put more of the code up there Mar 29 21:48:26 That for loop is running in a separate thread, and pushing each filled buffer to the AndroidAudioDevice to play Mar 29 21:49:12 * Gumboot puts his Java head on. Mar 29 21:49:18 Appreciate it :) Mar 29 21:49:34 justus: wait wait wait. Are you saying an Archos device has broken APIs?! Mar 29 21:49:39 Seidr, did you try different speakers? Mar 29 21:49:59 Squarepy: I'm just using headphones at the moment, I'll try the phones speakers, see what I get with them Mar 29 21:50:51 Squarepy: same crack on the speakers Mar 29 21:50:51 I'm calling vibrator.hasVibrator() which equals false Mar 29 21:50:56 crackle* Mar 29 21:50:58 @evancharlton Mar 29 21:51:14 justus: adjust your sarcasm detector :) Mar 29 21:51:20 *how do you what classes to import in java. eg java.util.scanner how/when would you know to import? Mar 29 21:51:32 evancharlton: sorry, didn't know that archos has a reputation for that :D Mar 29 21:51:35 not related to android but just general java question Mar 29 21:51:45 nooby one at that Mar 29 21:52:15 Special-G: Eclipse is pretty good at letting you know which classes you need to import, if you're trying to use something that exists but has not yet been imported Mar 29 21:53:24 seidr, what are you doing at lines 52,53 Mar 29 21:54:23 sampling two frequencies, with one sample distance? Mar 29 21:55:09 Squarepy: that's taking the pre-generated (16000/freq), chucking them through sin and pushing them into the buffer. The left and right frequencies are indeed separated by a arbitary amount, say 5 hz in this case Mar 29 21:55:15 Scanner bucky = new Scanner(system.in) Mar 29 21:55:25 why do you need that new scanner infront? Mar 29 21:55:33 i get the system.in cos that is in the input of the user Mar 29 21:55:38 That's to define WHAT bucky actually is Mar 29 21:55:50 i.e. int i_number = 10; i_number is an int Mar 29 21:56:05 same with bucky, it is an instance of the Scanner object Mar 29 21:56:08 class* Mar 29 21:56:23 what defines a string. eg int = integer. double = fraction? Mar 29 21:56:33 String I think Mar 29 21:56:40 just string :L so simple Mar 29 21:56:45 Seidr: That code makes my head spin. I expected something quite simple. Mar 29 21:57:05 Special-G: You should probably read some java tutorials Mar 29 21:57:17 seidr, right left as in stereo? Mar 29 21:57:20 SimonVT i'm watching thenewboston's java tutorials Mar 29 21:57:46 Gumboot: sorry, I've just been playing about, last time I coded something like this was about 7 years ago in C..I'm not quite in touch with good practice, I think Mar 29 21:57:50 Squarepy: yeah Mar 29 21:59:39 Squarepy: I should also mention, curPosition has the value of i added to it after each for loop, to keep track of the position within the generated audio Mar 29 22:00:34 so what if (curPositionSec>=freqLookup[0].length) ? Mar 29 22:01:24 that means it has gotten to the end of the generated frequencies (for the left channel), and so the loop threads main loop ends and stop() is called Mar 29 22:01:44 you have a discontinuity every time you hit a new value in freqLookup Mar 29 22:01:48 you mean you skip samples? Mar 29 22:01:50 So there's a predefined length of the track, and that makes sure it doesn't try to go out of bounds Mar 29 22:01:53 no wonder it's crackling; you have a glitch every 10th of a second Mar 29 22:02:11 Squarepy: it ends the playback :) Mar 29 22:02:53 cstate, true Mar 29 22:03:06 ctate: discontinuity - jumping from one frequency to another without the frequencies in between? Mar 29 22:03:06 that will give high end clicks Mar 29 22:03:11 in the main void/class you define variables and write your program code? http://www.youtube.com/watch?feature=fvwp&v=ANuuSFY2BbY&NR=1 4:20 Mar 29 22:03:20 you're drawing a nice clean sinusoid Mar 29 22:03:23 sorry, it's late here and this has been driving me mad Mar 29 22:03:29 then suddenly you're drawing one at a different frequency Mar 29 22:03:32 so there's an inflection point Mar 29 22:03:39 aaaaah, yes that makes sense Mar 29 22:03:47 in audio, that means you get a tremendous HF component around that sample Mar 29 22:03:59 You'll get away with it if you do it at a zero crossing, or if you continue from the correct point. Mar 29 22:04:10 to do this smoothly you should express the smooth function directly in the math Mar 29 22:04:10 But I couldn't see where the change was actually happening, so I couldn't tell if you'd done that or not. Mar 29 22:04:14 or if you high pass filter Mar 29 22:04:24 low pass urgh Mar 29 22:04:31 is there a way to simply get a list of all the fragments attached to a certain container ? Mar 29 22:04:49 ok, that's great..at least I know why it's doing it now, thank you Mar 29 22:04:53 argh, phone call, brb Mar 29 22:05:02 Gumboot: even at a zero crossing you might get a snap, but yeah the second derivative discontinuity will be minimized Mar 29 22:05:05 where do i get names of variables eg int, double, string etc? Mar 29 22:05:19 Seidr: The easiest way to do the transition at a zero crossing is to use frequencies that are a multiple of 10Hz. Mar 29 22:06:00 Gumboot: the easiest way is to adjust the frequency smoothly as a function of time :) Mar 29 22:06:05 ctate: I think the first derivative will be minimised and the second will still be there. Mar 29 22:06:48 Gumboot: err yeah; we both knew what i meant. minimize the inflection. Mar 29 22:07:20 Oh. I think I just scored another differential. Do it at a peak! Mar 29 22:08:38 ##java not as active as here, :o Mar 29 22:08:44 (the gradient of the old and new waveforms will be zero at that point) Mar 29 22:11:19 Gumboot: or you could just do the math right and smoothly ramp :) Mar 29 22:11:41 You can't win, you know. Even the "smooth" ramp will need to be smoothed. Mar 29 22:11:58 And the function you use for the smoothing will then be called into question. Mar 29 22:12:11 no no Mar 29 22:12:43 not post-hoc smo Mar 29 22:12:48 *smoothing Mar 29 22:13:08 pure tone is sin(t), essentially, right? Mar 29 22:13:28 can anyone help? I know that write_raw_image() function can be found in install.c of CyanogenMod sources, but I would like to know where it's located in github.com/android sources? Mar 29 22:13:34 Was wondering if anyone could give me a hand rooting my vzw droid razr, and also how to unroot guide? Mar 29 22:13:46 instead make it sin(f(t)) where f(t) is the ramp you want over time Mar 29 22:15:30 But if f(t) has any discontinuities in its differentials (that is, if the transition region is finite) then you'll still get some kind of noise. Mar 29 22:16:22 Great stuff there, given me a direction to go in at least..using frequencies that are multiples of 10 is not an option unfortunately, the two frequencies are to user entered, so they could be anything within the audible range Mar 29 22:17:45 as for a function to smoothly ramp, I think I've got some reading to do :> Mar 29 22:18:19 Seidr, maybe a fm modulation approach would be suited Mar 29 22:18:29 Seidr: sample[i] = sin(t * 2 * pi); t += 1.0 / f; Mar 29 22:19:06 With that you can change f instantaneously and get no first-order glitch, but it would be _better_ to ramp f gently. Mar 29 22:19:38 It would be _best_ if you could ramp f without any discontinuity in any differential, but that's not so important. Mar 29 22:19:47 There's a good function I forget the name of for this, and it's trivial. Mar 29 22:20:11 It's what is usually implemented by smoothstep(). Mar 29 22:21:16 I didn't think about that code, by the way. If it makes your computer catch fire it's not my fault. Mar 29 22:21:23 Haha, no problem :) Mar 29 22:21:28 Really appreciate the help Mar 29 22:25:00 romainguy_: I was going to start talking about how it would be very helpful if renderscript hardware was allowed to twiddle 2D data strides to meet its cache mapping structure, but I got distracted. Mar 29 22:25:02 is there any way to namespace fragments in the FragmentManager, i.e. have multiple fragments with the same prefix so I can attach/detach them all at once ? Mar 29 22:25:11 or even get a list of all the fragments Mar 29 22:25:42 At the API level it means that calculating the address of elements in a 2D array would not be allowed to rely on the current packed assumption. Mar 29 22:28:46 smoothstep(t) is h_01(t), apparently, but I think it has another name. Mar 29 22:28:48 hi, I'd like to use OpenMAX IL API from JNI, but I'm unable to find the headers in the NDK... any ideas? Mar 29 22:30:41 hm i thought IDEA could update itself Mar 29 22:33:51 hmm... maybe a HashMap of ArrayLists could serve as a reference to which fragments should be attached/detached to which tab Mar 29 22:35:56 is there any easy to way find out which images in your /res/drawable* is not being referenced by code or xml ? Mar 29 22:36:19 can anyone point me to the boot/recovery part of the android source. I just can't seem to find it... Mar 29 22:37:20 QubeZ lint will tell you Mar 29 22:37:58 Seidr: This is close enough to ideal: http://en.wikipedia.org/wiki/Smoothstep#Variations Mar 29 22:38:31 xorgate: how can I run it manually? For example, there is a png I know for sure that I am not using but I see nothing in my error log (or warnings from Lint) Mar 29 22:38:58 no clue Mar 29 22:39:20 in eclipse yuo can just select it in the menu Mar 29 22:39:44 oh i see it Mar 29 22:40:02 thanks homie Mar 29 22:40:07 So you might want to dedicate the first 10% of your 100ms to ramping between the previous frequency and the new one. You would use that curve over 10ms to calculate intermediate frequencies, and as you progress through those frequencies you can calculate appropriate values of t. Mar 29 22:41:10 Gumboot: thanks, I think I follow :) Think I might leave this until tomorrow, almost falling asleep at the keyboard! Mar 29 22:41:18 Me too. Mar 29 22:41:27 But I still have important things to do. Mar 29 22:41:35 Which is why I'm messing about on IRC instead. Mar 29 22:41:36 :< Mar 29 22:41:50 http://news.ycombinator.com/item?id=3773329 Mar 29 22:43:24 "The move is an effort to turn around sluggish sales of tablet computers powered by Google's Android software." … hope it works Mar 29 22:43:32 * g00s is not optimistic Mar 29 22:43:33 A big fat cookie to whomever can solve my multipart-method woes with android http://goo.gl/6v11k (Stack-Overflow) I seem to be doing everything correctly Mar 29 22:43:35 thanks Mar 29 22:43:47 it'd be interesting to see how well the asus transformer prime is doing though Mar 29 22:47:56 should be able to link to certain comments on g+ Mar 29 23:00:31 oh the frustration >:( Mar 29 23:01:57 DarsVaeda: can't find your son ? Mar 29 23:02:24 nah he is doing fine I suppose, ask george ;) Mar 29 23:04:43 Any apps out there that will allow me to access or listen to my phones microphone either via another cell phone or via the web? (preferably stealth) Mar 29 23:05:02 O_o Mar 29 23:05:17 thats the wrong channel I think Mar 29 23:05:29 #android-1337 :p Mar 29 23:05:43 #android-stalker maybe ^^ Mar 29 23:06:31 im deciding which target to use - im using opengl . What's a link to a graph of what % Android revision most people have? Mar 29 23:07:33 the definition of 'most people' depends entirely on your target audience Mar 29 23:07:46 Didn't you read? The audience is people! Mar 29 23:08:05 haha Mar 29 23:08:12 http://developer.android.com/resources/dashboard/platform-versions.html Mar 29 23:08:27 the soylent green reference is win! Mar 29 23:09:50 too bad there is not total number Mar 29 23:10:19 I usually target 2.2 Mar 29 23:10:31 dunno if that's actually the best version to target Mar 29 23:11:16 MDijkstra, looking at the chart, 2.2 is best for me because i have an old droid for testing. thx. Mar 29 23:11:30 http://developer.android.com/resources/dashboard/platform-versions.html FYI Mar 29 23:12:21 Well that's the last time I second-guess my choice to give a sarcastic response rather than a link. Mar 29 23:12:37 * Gumboot walks off in a huff. Mar 29 23:15:13 Any apps out there that will allow me to access or listen to my phones microphone either via another cell phone or via the web? (preferably stealth) Mar 29 23:15:32 anyone who knows how to use github: where from github.com/android can I find bootable/recovery/recovery.c? Mar 29 23:16:46 cnc040rs: it is called "dialer", if you turn down the volume of the phone it is stealthy to the level you turn down the phone, now troll elsewhere :) Mar 29 23:16:57 lol Mar 29 23:17:18 delac: note that github isn't regularly updated. In fact, the code is probably quite stale Mar 29 23:18:46 evancharlton: well, I dont need it to be up to date literally, only few pointers from the source Mar 29 23:19:13 I see what you did there! Mar 29 23:20:01 delac: I just have the latest AOSP checked out from repo Mar 29 23:20:09 if I want source I just run locate and find the file Mar 29 23:20:21 it takes a while to do the first time, but after that updating isn't bad Mar 29 23:21:06 readme: yes, I was planning to avoid downloading the whole source, but it seems it is inoissible to find anything from the github... Mar 29 23:21:15 heres your recovery.c http://pastie.org/3694920 Mar 29 23:21:35 readme: what was the path? Mar 29 23:21:43 bootable/recovery/recovery.c Mar 29 23:22:41 how do I translate that to github location? Mar 29 23:23:07 i don't know. I thought I just proved getting the source from github was inferior and persuaded you to check the repo out Mar 29 23:23:17 guess not though Mar 29 23:23:50 maybe i just do that.... Mar 29 23:23:56 * readme would like to note that he does use & love github. nothing against them. Mar 29 23:43:38 hallo again! simple question, just thought you might tell me some rapid information: is there an already existing behaviour for views (textviews in my case) when they are clicked? i mean a visual feedback for the user like just changing the background color of the view when clicked on it Mar 29 23:51:32 is target 8 (2.2) GL10 or GL11 ? Mar 29 23:51:50 2.2 Mar 29 23:52:41 what? Mar 29 23:52:46 gridbag: it was GLES 2 by then, wasn't it? Mar 29 23:52:48 oops. I mean I require Android 2.2. So I'm using target=8. Is that GL11, or should I use GL10. Mar 29 23:52:49 yea Mar 29 23:52:57 you can use GL11 Mar 29 23:52:57 ctate: except it was missing two (!!) methods Mar 29 23:53:00 that didnt make it until 2.3 Mar 29 23:53:13 i know i know Mar 29 23:53:32 gridbag definitely 11, but you can also use 20 Mar 29 23:53:50 hallo again! simple question, just thought you might tell me some rapid information: is there an already existing behaviour for views (textviews in my case) when they are clicked? i mean a visual feedback for the user like just changing the background color of the view when clicked on it Mar 29 23:54:05 ctate did you see did you see??? http://android-developers.blogspot.com/2012/03/making-developer-console-work-for-your.html Mar 29 23:54:12 oh really. If Android 2.2 (target=8) supports GL20, I'll use that. Mar 29 23:54:35 chris_cross: do you have an android device available? Mar 29 23:54:53 yes Mar 29 23:54:54 chris_cross: then why not click a textview and see? Mar 29 23:55:34 the app is already running, but a click on a textview doesn't give me any visual feedback Mar 29 23:55:46 that is correct. Mar 29 23:56:00 you can change that though, with a StateListDrawable as the background. Mar 29 23:56:11 so i want to implement it and i asked myself if theres a simple (maybe already extisting) method of doing it Mar 29 23:56:15 yes Mar 29 23:56:16 ^ Mar 29 23:56:41 although, I wonder why you wouldn't use Button Mar 29 23:56:59 canadiancow|work: i did see that Mar 29 23:57:06 because it's a kind of table Mar 29 23:57:11 also, you can make a textview a clickable hyperlink. Mar 29 23:57:15 so? Mar 29 23:57:20 you want hyperlinks or? Mar 29 23:57:38 also Button is a TextView :p Mar 29 23:57:51 i just want the background of the textview to turn in darkblue when i click on it Mar 29 23:58:08 chris_cross: use a StateListDrawable as the background Mar 29 23:58:14 ok Mar 30 00:00:51 thanks readme! Mar 30 00:01:38 :D Mar 30 00:03:48 ctate it's almost useful for me :) Mar 30 00:03:54 but im sure that the hard work's been done :) Mar 30 00:04:33 readme: so, I managed to download the kernel part. Even that took a while. It wasnt there. How did you get the whole thing? Mar 30 00:05:14 delac: by following the steps on d.android.com, it is under getting the source Mar 30 00:05:22 how do I get my list to look like this? http://developer.android.com/design/building-blocks/lists.html - is there an xml example somewhere? Mar 30 00:05:58 "Google earns 80% of its mobile revenue from iOS, just 20% from Android" … wuut Mar 30 00:06:11 readme: ugh, there was some nasty looking script thingy which I didnt like at all... Mar 30 00:06:17 yeah, repo Mar 30 00:06:29 it's pretty sweet, you can download the whole thing with one command.. Mar 30 00:06:37 and it works very reliably. Mar 30 00:07:40 DarsVaeda: the listview rows there are just layouts with textviews in them. The first row is probably just a text view, the second is could be a linearlayout with two text views, and the third, same as the second but with three. Mar 30 00:08:47 oh, and one has a picture.. so for the 2-line list you'd probably want to use RelativeLayout Mar 30 00:08:58 yeah but how do I get that devider to look that dented, what about the margin around the text Mar 30 00:09:38 the standard list ist just mashed together, not even like the preview in the editor ^^ Mar 30 00:09:45 you can use the padding property of the outer layout for the 'margin' Mar 30 00:10:02 http://developer.android.com/reference/android/widget/ListView.html see "android:divider" Mar 30 00:10:42 padding is a good way to do it too, because padding can be put in a style, but not margin. Mar 30 00:11:26 margin can be put in a style Mar 30 00:11:34 what am i missing =o Mar 30 00:12:30 eclipse's autocomplete doesn't show it. is it a bug with android tools? Mar 30 00:12:40 layout_margin Mar 30 00:14:43 romainguy_: here is why i thought it couldn't, but it is my fault for relying on the tool Mar 30 00:14:53 http://i.imgur.com/a14ra.jpg Mar 30 00:16:36 hmm yeah, thanks I'm getting closer Mar 30 00:26:53 * readme realizes he hasn't updated android tools for at least several months :| Mar 30 00:27:18 some interesting comments in the updated android proguard config Mar 30 00:28:17 by that I don't mean the sdk tools, but ADT for eclipse Mar 30 00:28:40 g00s, i still find it's too careful Mar 30 00:29:00 i let it do everything Mar 30 00:29:02 and it works :) Mar 30 00:29:28 "Dex does not like code run through the ProGuard optimize and preverify steps" Mar 30 00:31:22 does the C2DM registration id get unregistered if an app is uninstalled? Mar 30 00:31:41 the app that registered, that is Mar 30 00:31:55 or does the message just get sent and fall on deaf ears, because there is no more BroadcastReceiver Mar 30 00:32:55 i ask because the documentation says "The registration ID lasts until the application explicitly unregisters itself" Mar 30 00:33:09 Does anyone have expereince Httpposting a multipart image to a RoR server? if so my stackoverflow question would greatly appreciate your attention :) http://goo.gl/6v11k Mar 30 00:33:22 Hrm Mar 30 00:33:28 That sounds like a no, readme Mar 30 00:33:48 t0mless: so that means a spam app, even after uninstalled, is still pinging your phone with junk data. Mar 30 00:33:52 I know you can register for UNINSTALL intents, but you won't receive your own... Mar 30 00:34:17 Perhaps Mar 30 00:34:41 sounds like a question to bring to their office hours :) Mar 30 00:35:24 I'll ask it, but I'll feel guilty because I don't really need the answer, i'm just curious for no good reason Mar 30 00:35:44 :) Mar 30 00:35:47 don't install spam, problem solved :D Mar 30 00:35:53 Indeed Mar 30 00:35:58 but even non-spam apps Mar 30 00:36:07 could be a legit app, that uses c2dm Mar 30 00:36:20 true, you are right, it is worth asking. Mar 30 00:36:27 if it's uninstalled and you don't unregister it, are you becoming one of those spam pinger's Mar 30 00:37:07 also you're sending pings you don't need to send Mar 30 00:37:12 that's server load you don't want to have Mar 30 00:37:17 Indeed Mar 30 00:37:26 and how would you even unregister it on uninstall? Mar 30 00:38:45 exactly Mar 30 00:39:56 t0mless: where is the current lits of office hours, do you know? Mar 30 00:40:09 no idea, I just see g+ posts about it Mar 30 00:56:24 t0mless: i found at least a partial workaround posted on SO Mar 30 00:56:28 http://stackoverflow.com/questions/6595946/android-c2dm-duplicate-message-to-the-same-device-and-app Mar 30 00:56:51 so that if someone installs your app twice, you can at least unregister the previous id Mar 30 00:57:11 I suppose you could also make your app ping periodically, and unregister if it's not pinging Mar 30 01:14:59 android:screenOrientation="landscape" locks the screen as expected. But when I flip it 180 degrees, I want it still be in landscape mode, but upside right. how do you do that? Mar 30 01:36:00 Hey, has anyone had any success running an external hard drive off USB OTG? Mar 30 01:36:12 My flash drive and mouse work, but not this drive. :\ Mar 30 01:36:48 I plug it in and the indicator light goes on but the drive isn't spinning. Mar 30 01:37:34 I think you might be asking in the wrong channel Mar 30 01:37:53 * dylukes shrug. I'm using it for development purposes. Mar 30 01:38:02 needs more power Mar 30 01:38:05 And I'm trying to probe what sorts of partition tables and such. Mar 30 01:38:08 pfn: That's my theory too. Mar 30 01:38:59 Hm, do you think there's any way to get additional power via a hub? Mar 30 01:39:57 use a powerd hub, it will give additional power to the drive Mar 30 01:40:35 Bah. Mar 30 01:40:42 the power is limited per port so if you need even more use a Y shaped cable Mar 30 01:41:02 Right but there's only one port on a galaxy nexus anyways >.> Mar 30 01:45:56 Why is it that in the C2DMessaging.java class provided with chrome-to-phone the package "com.google.android.gsf" is set on the intents but not in the C2DM docs? Mar 30 01:46:04 Is this package required for normal operation? Mar 30 01:48:38 When I call AssetManager.list(""), in addition to the files I put in my ./assets directory, it has an images, sounds, and webkit directory. Where do those come from? Mar 30 01:54:35 Why on this earth would I be receiving a "javax.net.ssl.SSLException( 9227): Write error: ssl=0x1ee7c50: I/O error during system call, Broken pipe" when using a file from android's camera vs No error when accessing a file from gallery? Android blows my mind sometimes.. Mar 30 01:55:24 bobsonator: is that an OEM specific problem maybe Mar 30 01:55:41 sounds like some badly implemented spyware Mar 30 01:56:18 readme: http://ii.snag.gy/Rpx64.jpg Mar 30 01:56:36 it is, heh Mar 30 02:10:40 I've got a framelayout and I'm trying to use to merge a child into the framelayout. however, it keeps throwing a "The specified child already has a parent..." error but i don't quite understand why... the child I am trying to merge into the FrameLayout just has two ImageViews and no parent unless is considered to be one. Mar 30 02:11:25 merge would not throw such an exception Mar 30 02:11:30 do you add/remove views at runtime? Mar 30 02:12:00 romainguy_: before populating the FrameLayout, I called a removeAllViews() method Mar 30 02:12:27 romainguy_: and yes, my plan is to add/remove views @ runtime Mar 30 02:12:41 then your problem is somewhere in that code Mar 30 02:12:52 looks like you are trying to add a view that wasn't removed Mar 30 02:16:20 romainguy_: oops, I had a left over [parent].addView([child]) code after I did the inflate. Mar 30 02:16:36 :) Mar 30 02:19:32 does anyone happend to know if Samsung has ever released any code or "API" relating to the recovery system? Mar 30 02:21:44 delac look in the kernel repository Mar 30 02:21:56 the recovery part is actually coming from there Mar 30 02:22:49 UnknownzD: you mean github/android? Mar 30 02:22:56 lol no Mar 30 02:23:17 https://opensource.samsung.com/community.do Mar 30 02:25:24 UnknownzD: I have downloaded the zip from there and rummaged through it, but it's not there Mar 30 02:30:49 UnknownzD: also, I'm not sure it's part of kernel. On github it is in platform/bootable/recovery. **** ENDING LOGGING AT Fri Mar 30 02:59:58 2012