**** BEGIN LOGGING AT Sat Mar 31 02:59:59 2012 Mar 31 03:01:13 alright, finally built 1.3.0 of TDM Mar 31 03:01:21 now I can enjoy the weekend, no coding Mar 31 03:01:32 well maybe a lil research on andengine but no code Mar 31 03:03:53 alright im out, see ya Mar 31 03:05:38 have a good weekend Mar 31 03:27:25 hmm so i'm following a tutorial that says to create an ICD AVD w/keyboard support disabled ... but when i launch an app in the AVD, i don't see any on screen back or home button Mar 31 03:28:31 *ICD = ICS Mar 31 03:31:17 hey readme no matter if i change it to horizontal or vertical it is always vertical Mar 31 03:32:59 http://pastebin.com/zdtcFf2J Mar 31 03:43:57 goddard, what are you trying to do? Mar 31 03:47:04 hi, i just started fooling around with android today and i just got hit with this error "ERROR: Unable to load VM from snapshot. The snapshot has been saved for a different hardware configuration." i'm looking at my AVD and the platform is 3.0/api level 11 and project.properties the target is set to android-11. why would this happen when the emulator and the same app worked just fine a few hours ago? Mar 31 03:48:01 goddard activity has no xml tag 'orientation' Mar 31 03:48:21 it might have something to do with the sdcard size for that adv Mar 31 03:48:24 avd Mar 31 03:48:42 jeppy: thats for me? Mar 31 03:48:48 yes Mar 31 03:49:05 ok hmm what's a good amount of space to give it, i left that field blank Mar 31 03:49:21 i usually give it 32m or 64m Mar 31 03:49:24 i'm guessing he saved to snapshot then edited the configuration Mar 31 03:49:40 yeah i'm kind of poking around in the dark here Mar 31 03:50:09 it seems like if all else fails, creating a new avd would fix the problem Mar 31 03:50:12 xorgate: hmm, just delete it and create a new one? Mar 31 03:50:13 yeah Mar 31 03:50:24 sure why nto Mar 31 03:50:28 let me try the SD thing first then if not i'll trash it Mar 31 03:51:25 i appreciate it, going to make coffe while this thing loads up o_O; Mar 31 03:52:58 jeppy: that actually DID work Mar 31 03:54:28 looopy, i think i had that problem before Mar 31 03:54:57 yeah, it's a rather strange error...misleading. Mar 31 04:01:05 just one more thing.... http://pastie.org/3701657 i just attempted to create two rows/textviews containing strings and i get a error " No resource found that matches the given name" i just ordered two books, at the moment i'm trying to follow the tutorials google gives, they seem rather incomplate Mar 31 04:01:32 @string/Open... Mar 31 04:01:39 it doesnt work like that Mar 31 04:02:06 do tell Mar 31 04:02:15 @string/open should be a string in strings.xml saying "Open..." Mar 31 04:02:40 ahh i see...strange Mar 31 04:02:44 @string or @color or whatever are references to things defined elsewhere Mar 31 04:03:02 aka resources Mar 31 04:03:21 hmmm Mar 31 04:04:38 could i do android:text="Foo..."? Mar 31 04:04:54 that's what i originally saw then i got a complaint about that as wel Mar 31 04:05:30 should work Mar 31 04:06:30 hmm nope Mar 31 04:06:51 whats the error Mar 31 04:06:56 I18N] Hardcoded string "Open", should use @string resource Mar 31 04:07:13 well thats a warning or at least should be a warning Mar 31 04:07:41 in general it's better to use resource strings Mar 31 04:08:22 yeah...so in strings.xml. i create a string. set a name and value how would i call that resource or it's name @givename ? Mar 31 04:08:31 looopy, you should be able to hardcode strings. it may warn you but it should not be an error Mar 31 04:08:35 @string/givename Mar 31 04:09:01 xorgate: figured so, i tried that. i'm going to clean my project. Mar 31 04:09:13 new to eclipse as well... Mar 31 04:09:23 ah yes eclipse can be a bit of a friggin hassle when it comes to resources and building Mar 31 04:09:31 one of the reasons i prefer IDEA Mar 31 04:09:37 sweet Mar 31 04:09:48 yeah sometimes resource changes wont take effect until you clean the project, but most of the time they do. Mar 31 04:10:05 which basically means you want to clean everytime Mar 31 04:10:14 aka fuck that Mar 31 04:10:23 lol i was an intellij fan for a summer, i may go back. i actually use scala and intellij was...half way ok for it...though i went back to vim. scala ide/eclipse just recently became very good as a scala ide Mar 31 04:10:57 i'll give it a day or two and see Mar 31 04:13:28 imo the only advantage eclipse has is the interface builder Mar 31 04:15:19 yeah..if not for IB to be honest i'd probably stick to vim and eclim Mar 31 04:15:40 smh... i wasn't saving strings.xml -_- oops Mar 31 04:24:47 my issue with intellij is that it's not eclipse :) Mar 31 04:29:21 jeppy: xorgate trying to keep my display horizontal and i put this in the mainifest Mar 31 04:29:23 http://pastebin.com/zdtcFf2J Mar 31 05:08:59 Hello Mar 31 05:09:08 anybody here setup their dev environment with eclipse using ubuntu? Mar 31 05:09:43 I'm willing to be half the people here Mar 31 05:10:00 I use RPM systems but what do you need? Mar 31 05:10:50 Well I guess it started with me wanting a portable development enviromnet, and I decided a virtual system would work best. Mar 31 05:11:10 eh? Mar 31 05:11:11 Using Ubuntu I would have to worry about purchasing a commercial OS Mar 31 05:11:16 wouldn't* Mar 31 05:11:57 and what happened? Mar 31 05:12:00 I want to run Ubuntu in fluxbox and set it up to be used for andorid devleopment Mar 31 05:13:37 then I thought, well maybe somebody has already thought of this and there is a virutal image out there somewhere or a distro created for this purpose. Mar 31 05:14:47 oh, there probably is Mar 31 05:15:19 Why don't you just make a development environment that doesn't require an os for portability? Mar 31 05:15:38 eclipse and android are both very portable Mar 31 05:16:10 Can you explain that a little bit, don't they have to run on an OS? Mar 31 05:16:13 if you get java embeded for x86 you could easily just have a thumbdrive with everything you need Mar 31 05:16:33 yes but you plug the thumbdrive into whatever computer and just run the executables need Mar 31 05:16:46 kinda like WAMP? Mar 31 05:17:04 I guess thats a bad example Mar 31 05:17:20 ? Mar 31 05:17:24 I don't know wamp Mar 31 05:18:04 It's like a portable LAMP environment made for windows. You can put it on a thumb drive. Mar 31 05:18:09 why do you need a portable environment anyway? Mar 31 05:19:01 I don't really know. Mar 31 05:19:39 I think I just like the idea of a distro or virtal image out there somewhere where the work of setting everything up was done for me. Mar 31 05:19:51 Oh Mar 31 05:19:57 I guess that makes sense Mar 31 05:19:58 haha Mar 31 05:20:33 I use VirtualBox for my homwork, but mostly because I like Linux and windows running at the same time Mar 31 05:21:59 so what do you mean by java embeded x86. I admit I have no idea what that means. Mar 31 05:22:35 It must be obvious by now that I am new to both Java and Android development but you gotta start somewhere right? Mar 31 05:28:30 I'm using a ViewPager and RadioButton to switch image in one of the page, when swipe to another page and come back, the RadioButton do not switch images anymore, how can I fix it Mar 31 05:28:30 ? Mar 31 05:30:49 hello all. Mar 31 05:30:54 good morning Mar 31 05:33:14 i want to know which SIP stack library is best in Android development? Mar 31 05:36:31 just reading through this Mar 31 05:36:33 http://www.itworld.com/mobile-wireless/263772/pre-paid-smartphone-world-you-never-hear-about-booming Mar 31 05:36:47 really wonder what versions of android these phones have, since they are low end Mar 31 05:36:59 soundsprettystupid.jpg Mar 31 05:37:18 huh ? Mar 31 05:37:28 Prepaid phones like that Mar 31 05:37:32 I dunno, we never had that here Mar 31 05:41:39 i'm bored Mar 31 05:48:33 JakeWharton: on to ABS 5 ! Mar 31 05:48:38 Is 480x295 OpenGL the maximum i'm going to get compiling for -target=8 ? Mar 31 05:49:16 I'm trying to figure out why I can't get my opengl surface to go full screen anymore on my Bionic 2.3.4. Mar 31 05:49:23 I'll do ABS 5 when Android 5 comes out Mar 31 05:50:25 should be pretty soon right :D Mar 31 05:50:40 it may be announced at I/O Mar 31 05:50:46 maybe everybody will jump on 5 and just forget about 4 Mar 31 05:50:48 i'm sure it won't be pushed until AOSP until considerably later Mar 31 05:51:15 i did see that jbq post about "8 months" Mar 31 05:52:01 I need a good way to authenticate users to be able to submit data to a webapp Mar 31 05:52:14 I don't want to have a signup process Mar 31 06:04:29 the apache projects have some awful sites Mar 31 06:09:56 is there a way to convert an existing build tree so it no longer supports -target=8 ? I think i only want to do API10 opengl now. Mar 31 06:14:21 can someone tell me why this metod does not work? public void deleteByText(String s){ db.execSQL("delete from MYTABLE where title="+s); } Mar 31 06:15:15 I get an error that tells me "there's not such column named" + the value of s Mar 31 06:15:24 no quotes Mar 31 06:15:30 you're also not sanitizing your DB Input Mar 31 06:15:43 http://xkcd.com/327/ Mar 31 06:15:44 nono, MYTABLE is not a constant, it is the name of the table Mar 31 06:15:55 i'm aware Mar 31 06:15:59 you're not quoting the input string Mar 31 06:16:28 deleteByText("a'; drop table MYTABLE; --"); Mar 31 06:16:29 owned Mar 31 06:17:15 I am new so sql... so one can just inject his code in my function? how do i prevent this? Mar 31 06:17:27 that was quick with the link Mar 31 06:18:12 use parameters Mar 31 06:18:45 i told you i am new to sql, can you explain me what do you mean? Mar 31 06:20:05 "delete from MYTABLE where title=@Title" Mar 31 06:20:20 i dunno how the android sqlite api works Mar 31 06:20:35 you use question marks Mar 31 06:20:37 but there should be a second parameter that accepts :) Parameters Mar 31 06:20:41 oh ok Mar 31 06:22:09 so i change this "delete from MYTABLE where title='"+s+"'" in... Mar 31 06:22:22 no you learn about parameters Mar 31 06:22:32 what is going on here? i just created a brand new project, and the hello world apps aren't using the whole screen anymore, when run thru the USB. Mar 31 06:22:44 can you link me something? Mar 31 06:22:54 https://developer.android.com/reference/java/sql/PreparedStatement.html Mar 31 06:23:03 i've barely done any android developing why would i know :) Mar 31 06:24:24 The link above should allow you to mitigate the sql injections. Mar 31 06:24:53 use set(index,) on the prepaired statement Mar 31 07:06:38 has anyone else seen that? When the GLSurfaceView.Renderer.onSurfaceChanged() no longer gives you a width/height that's full screen? that seems goofy. Mar 31 07:07:18 gridbag: how so? Mar 31 07:09:23 its just too small, and my OpenGl scene sits here with 1 cm black borders on the edges and bottom. Mar 31 07:10:30 sounds like your app is not setup properly Mar 31 07:10:41 it's definitely possible to create full screen gl apps Mar 31 07:11:39 Hello people.e I have a listview with a custom adapter. Basically it consists of 2 text views and 2 image views. I'd like to setup an on click listener for 1 out of the 2 image views. Where in my code should I put it ? Mar 31 07:11:42 ive been switching between the droid and bionic all day, this might be droid resolution in the the box. Mar 31 07:12:44 romainguy_, DeckLayout rocks Mar 31 07:12:52 I "stole" it and have been slowly adding an API to it Mar 31 07:12:54 what's DeckLayout? Mar 31 07:13:03 from your xlarge-photo-demo Mar 31 07:13:09 oh yeah Mar 31 07:13:24 I remember writing that Mar 31 07:14:06 JakeWharton: what is deckLayout ? Mar 31 07:14:16 google xlarge photo demo Mar 31 07:14:18 it's on google code Mar 31 07:14:29 g00s: the layout I wrote for this: http://www.curious-creature.org/2011/02/18/android-3-0-animations-demo/ Mar 31 07:15:15 I wrote a quick app at work for something to demo responsive design and used it Mar 31 07:15:24 romainguy_: interesting, thanks Mar 31 07:15:29 added callbacks and programmatic access to page changing, etc. Mar 31 07:17:06 is that decklayout done in gl? Mar 31 07:17:13 rendar: yes and no Mar 31 07:17:13 no Mar 31 07:17:22 it uses the built-in hw acceleration Mar 31 07:17:36 i see Mar 31 07:17:36 but it's written against the View and Canvas APIs Mar 31 07:17:55 ok, i tought sliding photos was sliding gl quads :) thanks for clarify Mar 31 07:18:07 well that's what the framework does behind the scenes Mar 31 07:18:41 oh, i see Mar 31 07:18:58 but that little shadow is done with CPU, right? Mar 31 07:19:20 no Mar 31 07:19:27 it's a bitmap drawn by the GPU Mar 31 07:19:32 look at the source here: http://code.google.com/p/xlarge-demos/source/browse/trunk/PhotoAlbum/src/com/example/android/photoalbum/DeckLayout.java Mar 31 07:20:03 thanks man Mar 31 07:36:41 hello I m trying Android-qt.... Can I able to know how can I embedd Flash plugins in my Application? Mar 31 07:37:13 With perl. Mar 31 07:38:04 if you actually really need to do that, look at the source of the stock browser app Mar 31 07:38:51 stock browser app?? Mar 31 07:39:03 you know, the one that browses the web, comes with android and all that Mar 31 07:39:24 where the source is available? Mar 31 07:39:28 d.android.com Mar 31 07:39:30 http://s.android.com Mar 31 07:39:34 better Mar 31 07:39:38 faster Mar 31 07:39:40 stronger Mar 31 07:39:44 qicr? Mar 31 07:42:27 still I didn't get it... Mar 31 07:43:10 Dare I ask why you think you need Flash in your application? Mar 31 07:44:13 I m building a multimedia apps which run swf files.... for that it requires flash plugins? Mar 31 07:45:13 http://blogs.adobe.com/flashplayer/2010/04/adobe_air_applications_for_and.html Mar 31 07:45:18 flash->android in 10m Mar 31 07:45:24 why build an app to run these when this exists? Mar 31 07:48:05 pfn, around? Mar 31 07:48:19 or anyone that knows how to use sbt Mar 31 07:48:40 I m developing a multimedia apps which vll run images, videos , flash files etc in one single apps... its just a start... but before that I want to know how to enable third party plugins in android-qt Mar 31 07:54:39 JakeWharton: using scala ? Mar 31 07:54:48 no Mar 31 07:54:49 just sbt Mar 31 07:55:13 http://robots.thoughtbot.com/post/5836463058/scala-a-better-java-for-android Mar 31 07:55:17 i have wanted to try it Mar 31 07:55:21 but not got around to it yet Mar 31 07:56:00 doesn't appeal to me at all Mar 31 07:57:09 howdy! is ant included in the sdk package, or does it have to be installed on the dev machine? Mar 31 07:57:59 separate Mar 31 07:58:02 according to google Mar 31 07:58:10 i'd be more interested if someone wrote a cool nontrivial app in scala for android Mar 31 07:58:14 on mac, its part of the system Mar 31 07:58:23 in /usr/bin/ant Mar 31 07:58:32 did you know your mac comes with R Mar 31 07:58:33 probably from the java install , not sure Mar 31 07:58:34 most linux distros too in all likelihood Mar 31 07:58:36 JakeWharton: thx. Mar 31 07:59:26 i'm kinda getting tired of mac, but like the unix command line Mar 31 07:59:26 android-sdk-linux/tools/ant Mar 31 07:59:39 readme: thats a directory, but no binary there. Mar 31 07:59:43 I'm fine with Linux Mint Mar 31 08:00:06 ant Mar 31 08:00:09 whoops Mar 31 08:00:16 stupid guake Mar 31 08:00:16 LetoThe2nd: doh Mar 31 08:00:24 looks like it's not installed on Ubuntu by default Mar 31 08:00:33 JakeWharton: thats why i ask. Mar 31 08:00:43 sudo apt-get install ant Mar 31 08:00:49 problem solved Mar 31 08:01:09 ant also comes with eclipse JDT Mar 31 08:01:16 but its burried Mar 31 08:01:24 along with junit Mar 31 08:01:30 JakeWharton: sure, just wanted to get a second opinion. i don't trust googles stuff not to come with own binaries trying to override my system. Mar 31 08:02:17 there are too many negations in that sentence for my current level of intoxication Mar 31 08:02:22 LetoThe2nd: i don't install anything outside of my homedir that isn't from apt Mar 31 08:02:52 even installing a third party deb can screw up dpkg a lot. Mar 31 08:02:53 i use to use depot and graft Mar 31 08:03:30 readme: it can make sense. but the optimum case is always really understanding what you do - hence the question. Mar 31 08:12:11 so what happened, I am reading old mailing list posts and there is not going to be anything to take the place of the "android.provider.Telephony.SMS_RECEIVED" broadcast that was removed from the docs? Mar 31 08:20:09 hi all! i have scrollview on my custom control. i want the scrollview to scroll on control to showing. time to choose which handler? Mar 31 08:41:51 romainguy: are you using LR 4.1 ? Mar 31 08:46:37 I wish Window.Callback had config change callbacks Mar 31 08:48:21 mm, I have an array of items in my activity. I pass this array to an array adapter. I then remove an item from within the array adapter. How could I then propagate this removal to the array of my activity ? Mar 31 08:48:31 So that array-in-activity and array-in-adapter are in sync ? Mar 31 08:48:45 they should already Mar 31 08:48:51 sounds like you're using the same reference Mar 31 08:48:53 Just make sure the adapter and the activity references the same list Mar 31 08:49:12 Beket: ArrayAdapter owns the list, if i recall. but i hate it. just extend BaseAdapter Mar 31 08:49:23 +1 base adapter Mar 31 08:49:38 I do from my activity: m_adapter = new InterArrayAdapter(this, R.layout.interlist_row, m_array); Mar 31 08:49:44 ah, mm ok Mar 31 08:49:52 I'll read on BaseAdapter Mar 31 08:49:54 thanks Mar 31 08:50:07 Beket: plenty of examples in the apidemos Mar 31 08:50:19 (of BaseAdapter) Mar 31 08:52:28 *sigh* Mar 31 08:55:29 Gah.. Why the fuck are one of my fragments showing 4 instances of each action items >.< Mar 31 08:55:58 because you broke it Mar 31 08:56:06 it's only one of them tho Mar 31 08:56:15 calling .add instead of .replace ? Mar 31 08:56:23 But if I switch to another fragment, one set disappears Mar 31 08:57:01 No, I detach(...) when I switch fragments Mar 31 08:57:20 does IntelliJ have a "send to superclass" keystroke? Mar 31 08:57:56 that would be awesome for what i'm working on right now Mar 31 08:58:03 Send to superclass keystore? Mar 31 08:58:07 stroke* Mar 31 08:58:31 class A {} Mar 31 08:58:34 class B extends A {} Mar 31 08:58:38 I'm in B, want to send something to A Mar 31 08:58:53 Ah Mar 31 08:59:16 There's probably a way to set a shortcut Mar 31 08:59:22 but refactor => pull member up Mar 31 08:59:36 class B extends A {} maybe would be useful in your case Mar 31 08:59:37 :) Mar 31 09:00:48 A< T > would have some function which call T.somethingElse() and in the case of of class B extends A it would be B.somethingElse() Mar 31 09:02:05 I'm too lazy to make a custom keystroke Mar 31 09:02:13 I'm only doing it for about 6 methods Mar 31 09:02:18 :p Mar 31 09:02:25 and I'll just forget the keystroke anyways and then hit it randomly one day and complain Mar 31 09:02:29 i guess 11.1 is out Mar 31 09:02:32 "WTF did my method go" Mar 31 09:02:35 11.1.1 is out Mar 31 09:02:38 er Mar 31 09:02:39 nvm Mar 31 09:02:41 yeah 11.1 Mar 31 09:02:46 i still haven't tried intellij Mar 31 09:02:51 It's amazing Mar 31 09:02:52 you should Mar 31 09:02:57 Makes Eclipse looks like a kids toy Mar 31 09:03:07 JakeTheCoder: look in the Refactor menu Mar 31 09:03:26 /kill JakeTheCoder Mar 31 09:03:39 JakeTheCoderWharton Mar 31 09:03:53 i've also seen someone here named h00s Mar 31 09:03:57 whats up with that Mar 31 09:04:04 :| Mar 31 09:04:08 oh, he is here now, lol Mar 31 09:04:18 haha Mar 31 09:04:49 it would suck if we had SimonAZ, SimonWA ... Mar 31 09:05:03 At least we got rid of that SimonT guy Mar 31 09:05:14 haha, he changed his nick Mar 31 09:05:21 :p Mar 31 09:05:22 who Mar 31 09:05:39 JakeWharton, I think another way to pull something up in idea is to add @override to it and it'll suggest pulling it up ;) Mar 31 09:06:20 romainguy__: anyhow, i guess LR 4.1 rc supports mk iii, did you have any trouble performance wise? lots of people were complaining about that Mar 31 09:06:25 they're already @Overrides from an interface Mar 31 09:06:30 but I didn't know that Mar 31 09:07:03 JakeWharton, ah Mar 31 09:07:23 just tried it though. clever! Mar 31 09:07:31 Wonder if intellij can pull up an entire interface :p Mar 31 09:08:05 My interface was already on the base class (which was abstract). I'll have to try that one too, though. Mar 31 09:08:10 s/was/id/ Mar 31 09:08:15 *is Mar 31 09:08:15 fail Mar 31 09:08:35 is the intellij android plugin pretty decent then? better than the adt ? Mar 31 09:08:48 or at least passable Mar 31 09:09:04 it uses the libs from ADT Mar 31 09:09:06 so it's basically the same Mar 31 09:09:08 i have to admit, i like the lint, and xml code formatting stuff of the adt Mar 31 09:09:10 hm Mar 31 09:09:16 intellij has lint Mar 31 09:09:28 the layout previewer is 10x nicer in my opinion Mar 31 09:09:36 ooh Mar 31 09:09:54 there's no designer or whatever it's called, but i never used that anyways Mar 31 09:10:13 Am I the only one getting errors like this pretty regularily?: java.lang.NoClassDefFoundError: com.actionbarsherlock.R$styleable Mar 31 09:10:21 Have to clean all the time Mar 31 09:10:22 JakeWharton: is there at least a preview? Mar 31 09:10:24 hi, does anyone know where I can report Android bugs (for 2.x.y or 4.x.y)? Mar 31 09:10:25 I just use it to preview Mar 31 09:10:25 yeah, i never used the gui to create layouts Mar 31 09:10:32 Dunno if intellij or sdk Mar 31 09:10:39 the GUI is unusable to create a layout :) Mar 31 09:10:42 readme, yeah it's a pane in the XML editor that updates as you type Mar 31 09:10:52 =O that's awesome Mar 31 09:11:02 i'll give it a second try i guess Mar 31 09:11:08 * g00s thinks so too Mar 31 09:11:18 Ah yeah, I use that when making relativelayout layouts.. Awesome :p Mar 31 09:11:19 graphemica.com/Û” Mar 31 09:11:24 i tried it once and was very disoriented, used to eclipse nomenclature Mar 31 09:11:34 g00s, it took me about a week to get comfortable Mar 31 09:11:47 i'm still not as good as I was in Eclipse (after 4 weeks) but I'm getting there Mar 31 09:11:53 this character doesn't work on 2.3.5 Mar 31 09:13:12 with the latest eclipse update and sdk tools i haven't had any qualms lately Mar 31 09:13:34 I just updated to r17 and IJ 11 today Mar 31 09:13:40 still haven't had a chance to play with everything Mar 31 09:14:03 Gogo fix lint warnings in ABS :p Mar 31 09:14:10 I will next week maybe Mar 31 09:14:21 We're doing a hack week next week though Mar 31 09:14:28 I have some sick stuff lined up to make Mar 31 09:14:37 like what? Mar 31 09:14:45 Haha I can't tell you that Mar 31 09:14:50 does it involve irc? Mar 31 09:14:53 You gonna steal his ideas! Mar 31 09:14:57 SimonVT, now that I can do ABS as part of my job I'll do that the week after Mar 31 09:15:02 no it does not involve IRC Mar 31 09:15:05 :D Mar 31 09:15:12 JakeWharton: ok phew, I leaked an idea here im working on Mar 31 09:15:31 So far I've just added a lint.xml to ABS that ignores most errors :p Mar 31 09:15:33 JakeWharton: thats awesome they are letting you do abs as part of your job Mar 31 09:15:37 I was going to write this thing that lets you use the action bar in versions going back to 1.6 Mar 31 09:15:42 g00s, we use it in one of our apps Mar 31 09:16:01 readme, doesn't sound useful :) Mar 31 09:16:57 g00s: works fine for me Mar 31 09:17:23 are google employees allowed to publish apps on the market? Mar 31 09:17:45 someone published romainguy__ 's app for him :| Mar 31 09:17:50 (shelves) Mar 31 09:17:51 ssh Mar 31 09:18:12 readme: yes we are Mar 31 09:18:18 oh cool Mar 31 09:25:56 does anyone here use scala? Mar 31 09:26:02 pfn does Mar 31 09:27:29 pfn: do you ever run into an issue with eclipse looking for ;? I converted the line delimiters which fixed it, then when i attempt to run as an android application the issue comes back, despite cleaning my project Mar 31 09:27:42 sorry for asking again, I'm using a ViewPager and RadioButton that display images in one of the page, when swipe to another page and come back, the RadioButton is still clickable but do not switch images anymore, someone knows how to fix it ? Mar 31 09:28:15 I couldn't find anything about that on stackoverflow Mar 31 09:28:39 ask on StackOverflow or provide code in a pastebin Mar 31 09:35:54 JakeWharton: here is the code: http://pastebin.com/4sHjCqcr Mar 31 09:36:27 JakeWharton: btw, thanks for making the indicator! Mar 31 09:38:34 so, when I go to another page of the pager and come back to my page where I have my buttons, the setOnClickListener doesn't work anymore Mar 31 09:59:04 I can't seem to find any official guide on ContentObservers and the various Content URIs that are already on android which can be observed Mar 31 09:59:07 is tehre one? Mar 31 09:59:15 there* Mar 31 10:29:10 When should you use log verbose vs debug? Mar 31 10:30:07 I started using debug exclusively and now I've switched to using just verbose. Not sure when I should use one over the other! Mar 31 10:43:10 code1: i use verbose for tracing method calls, debug for more general messages relating to whats going on internally Mar 31 10:47:27 Any issues with a fried ROM on your phone? I can help. Mar 31 10:48:20 i prefer my rome baked Mar 31 10:48:26 *roms Mar 31 10:54:27 lol g00s ... I do too.. but some people fried them ... Mar 31 10:54:35 no baking possible then Mar 31 10:55:22 actually a lot of people have been saying they have fried their roms here lately Mar 31 10:55:29 just message them privately, they won't mind Mar 31 10:55:35 g00s too Mar 31 10:57:23 Is there a log of this channel available? Mar 31 10:57:56 Thanks readme Mar 31 11:03:48 Hi, newbie having a problem with an android app in Eclipse @ mac. Getting the dreaded "must override superclass" error.. After abit searching it seems to be due to eclipse using 1.5 jdk.. I've made sure Eclipse is configured to use both 1.6 jdk and JRE, but i still get the error.. any ideas? Mar 31 11:11:17 How do I get transition animations for fragments to work for an app that has to compatible from 2.1+? I followed a lot of SO advice, but the fragments still only appear and disappear. I'm going for slide-in and out animations like you'd see in an iOS navigation controller. Mar 31 11:12:36 anyone ever met OnGestureListener.onSingleTapConfirmed had wrong motion event (x, y) coordinate? Mar 31 11:12:44 I mean in the emulator. Mar 31 11:12:53 It's okay with real device. Mar 31 11:13:53 Actually I'm using paul's open sourced horizonal list view. When I'm trying to handling the list view item click event, I always get the wrong item. Mar 31 11:14:45 After steping, it seems to be the problem of the coordination of a motion event passed from OnGestureListener.onSingleTapConfirmed Mar 31 11:25:57 Guys, I am looking where to get a credit card reader like the Square Up one which inputs into Microphone jack - for writing my own stuff Mar 31 11:26:07 I was unable to google anything related Mar 31 11:27:50 Bauer: IDTech Unimag Pro Mar 31 11:27:52 is what you want Mar 31 11:30:18 Bauer: http://www.idtechproducts.com/products/mobile-readers/126.html < thats what you want right? Mar 31 11:30:47 yes, thanks Napalm! although it looks bigger than the Square Up one Mar 31 11:31:01 its not that big Mar 31 11:31:05 i have one here Mar 31 11:32:52 ohh really? how do I get one Napalm? there is no purchase information on that page Mar 31 11:33:05 it uses a manchester encoded audio signal because it can contain a clock signal and keep the DC offset at 0 which is required because speaker output is AC Mar 31 11:34:13 Bauer: make sure you get the "Pro" one Mar 31 11:34:20 it will work on more devices Mar 31 11:34:21 well right now the technical details are too early for me, first I need to get it, then start seeing how to read the credit card data with it Mar 31 11:34:51 Bauer: contact their sales office http://www.idtechproducts.com/contact/sales-offices.html Mar 31 11:35:09 or go through one of their distrubutors Mar 31 11:35:10 http://www.idtechproducts.com/contact/distributors-.html Mar 31 11:35:26 Napalm: you mean the iMag Pro one? ok will contact them, how much did you pay for one? Mar 31 11:35:38 no Mar 31 11:35:43 Unimag Mar 31 11:36:37 Napalm: how reliable is it? usually microphone plugs are very sensitive, and tend to break (which is why many headphones stop working) Mar 31 11:36:40 Bauer: i sent you as link to the product page above Mar 31 11:37:34 Bauer: I only developed a driver for it, not used it as such, but its pretty solid and reliable while i was developing for it Mar 31 11:38:41 Napalm: yes I got the links, thanks will mail them now, but I just want to know how much you paid for it, so I'd have a rough idea of what is a fair price and what to negotiate for :) Mar 31 11:38:59 i didnt buy one Mar 31 11:39:02 so i have no idea Mar 31 11:39:35 i worked for a company that wanted a more driver for it, so they sent some devices and a reader Mar 31 11:39:55 Bauer: are you just looking for one of them? Mar 31 11:41:19 Bauer: just remember you definitly want the Pro version and not the normal one Mar 31 11:41:24 Napalm: yes for start, to see about developing reading capabilities, then developing small charging application, and sell it to various SMBs :) Mar 31 11:41:37 Bauer: also, dont get them from eBay or whatever you dont know if they are the Pro version or not Mar 31 11:41:57 Napalm: why the pro version is so important? Mar 31 11:42:29 Bauer: well i retained my rights to the source, so we can talk about that in the future if you wish Mar 31 11:42:57 the pro version contains a small rechargable battery meaning it will work on a lot more devices Mar 31 11:43:17 some devices dont output that much current to power the device and things get a little screwy if that happens Mar 31 11:43:31 so the Unimag can fail at times, where as the Unimag Pro is much more stable Mar 31 11:43:37 aha, I see :) I'll send you a PM in that case Mar 31 11:43:44 np Mar 31 11:44:28 brb, coffee time Mar 31 11:45:58 weird, outofmemoryexception when setting an imageresource to an imageview. Have worked before. Mar 31 11:46:09 Well, worked before I checked it out from my gitserver. Mar 31 11:46:17 changed target lvl as well Mar 31 11:55:29 onSingleTapConfirmed(MotionEvent e) return the coordinates relative to the items in the list view on emulator while relative to the list view on the real device. Mar 31 11:55:52 so strange. Mar 31 11:56:43 I mean event.getX() and event.getY(), event.getRawX() and event.getRawY() is okay with both the emulator & real device. Mar 31 11:57:04 Anyone here please give me some hint on this? Mar 31 11:59:10 lol, and now eclipse complains about xml errors :/ Mar 31 12:00:30 hi Mar 31 12:00:58 Hello Mar 31 12:01:22 What can we do for you? Serve some coffee or provide some knowledge? Mar 31 12:01:27 when I'm calling getAuthToken it raises a notification about accepting|denying the OAuth for application in the background ... how can I make it popup right there and then, so the user must immediately choose between the two ? Mar 31 12:04:00 at android.widget.ImageView.setImageResource(ImageView.java:315) Mar 31 12:04:00 :/ Mar 31 12:06:06 Did you provide the current activityContext when calling getAuthToken Mar 31 12:10:29 starting to kind of piss me off. Mar 31 12:19:08 how to develop an android apps which will communicate with harware peripherals (e.g. serial port, usb, wifi).. Mar 31 12:20:07 snkt: on newer devices, make yourself some bridge using USB accessory Mar 31 12:20:22 for serial port, there are Bluetooth serial dongles Mar 31 12:20:59 if you root you can use possible physical ports (many phones have a serial port hidden in the microusb port, for example) Mar 31 12:21:31 I'm looking at creating an android app that can connect in some way to an app on a pc, sending a few kBs of after either way. Can anyone suggest a way to connect them? (I will be creating an app for the PC also). Mar 31 12:21:53 bluetooth Mar 31 12:21:58 ddoom_: wifi or BT Mar 31 12:22:56 p_l, but to use devices such /dev/tty* in our apps... Mar 31 12:23:07 snkt: you need root, yes Mar 31 12:23:21 p_l, how can we communicate.... Mar 31 12:23:23 at least on normal devices Mar 31 12:23:36 p_l, ok... Mar 31 12:24:07 p_l, do you any tutorials regarding hardware handling in android.... Mar 31 12:24:14 no Mar 31 12:24:28 there is some stuff about USB accessory handling Mar 31 12:24:44 and you'll find info about RFCOM (BT serial) Mar 31 12:24:48 p_l, any sample example to communicate with serial port Mar 31 12:24:54 nope Mar 31 12:25:19 * iivvoo has looked into android ADK / accesory mode etc Mar 31 12:25:42 I don't quite get why android can't be the usb host Mar 31 12:26:04 it can be Mar 31 12:26:16 iivvoo: it can be Mar 31 12:26:21 depends on hw Mar 31 12:26:47 isn't anrdoid the host already when you connect a keyboard to it, for example? Mar 31 12:27:04 iivvoo: depends on *phone* *hardware* Mar 31 12:27:15 I understand Mar 31 12:27:18 replace 'phone' with 'tablet' if needed Mar 31 12:27:52 but I haven't seen anything about controling a non-default usb device using android Mar 31 12:28:04 it's all about accessory mode which seems overly complex Mar 31 12:28:09 iivvoo: search d.android.com please Mar 31 12:28:45 in my case I'm actually trying to control an arduino device and rewriting existing arduino code not to use certail pins and to communicate over usb in stead of serial makes it more complex than it needs to be Mar 31 12:28:56 http://developer.android.com/guide/topics/usb/host.html Mar 31 12:29:06 *three* click Mar 31 12:29:09 *clicks Mar 31 12:29:17 was it that hard? Mar 31 12:30:23 Looking around in MAT, but I can only see that its something with the bitmaps that causes the outofmemeory Mar 31 12:34:44 Zooklubba "large" bitmaps cause OOM, it's a known issue Mar 31 12:35:03 properly handling (large) images in android is actually quite painfull and messy Mar 31 12:35:03 Interesting thing is I havent had that problem before :/ Mar 31 12:35:07 Havent changed the images Mar 31 12:35:12 iivvoo: it can be the host, but as someone said earlier it depends on the hardware.. there are few devices that act as hosts but dont meet the usb host spec. The reason for this is power, the host has to supply up to 500mA to each usb connected device.. that would consume your battery like mega fast Mar 31 12:35:29 Zooklubba it can be pretty random Mar 31 12:35:30 Zooklubba: maybe more memory on your device is in use this time than last? Mar 31 12:35:40 uninstall some of those crappy apps Mar 31 12:35:41 napalm now that I look into it I slowly understand the issues, yeah Mar 31 12:35:59 I also understand that if it's supporeted at all, you will need a special usb cable (if you don't have a dedicated port) Mar 31 12:36:14 in my case, it's not really a problem to constantly power the tablet Mar 31 12:36:44 in general, everything "out there", esp when it comes to arduino talks about either accessory mode or using bluetooth Mar 31 12:38:10 also, accessory mode is (as far as I know) impossible to test/develop using an avd Mar 31 12:38:26 readme, funny thing is I have less apps now than before. But I go through the pictures and resize them Mar 31 12:38:55 readme / Zooklubba there's a 16M process size limit in android (which can be increased in >3.something) Mar 31 12:39:10 =O Mar 31 12:39:56 * iivvoo has written an imageviewer that uses most of the know tricks to avoid OOM Mar 31 12:40:18 but in general, if your image is too big you'll always run into OOM and the only solution is to create tiles out of the image Mar 31 12:40:24 ivvo, github? Mar 31 12:40:41 which isn't an option for photographs taken on the device for example Mar 31 12:43:59 Zooklubba let's see if I can refactor it into something releaseable quickly Mar 31 12:44:28 If its a lot of work dont bother. Dont want to give you things to do :( Mar 31 12:45:48 Zooklubba it's been on my todo for a while Mar 31 12:45:54 iivvoo: that problem with image size can be fixed by using native code Mar 31 12:46:11 Napalm true, or some opengl hackery Mar 31 12:46:32 opengl hackery? Mar 31 12:46:47 how would that solve the final issue of just loading a bitmap that is just too large Mar 31 12:46:56 yeah, you can do something with opengl buffers that aren't counted as memory usage Mar 31 12:47:09 hmm Mar 31 12:47:17 interesting Mar 31 12:47:42 eventually you'll hit a limit Mar 31 12:48:30 a nice way to do it is to use native image decoder and only store whats inside the visible bounds Mar 31 12:48:37 I ran into that solution while researching the oom issue Mar 31 12:48:53 napalm it would be even nicer if the android sdk would just provide such a decoder Mar 31 12:48:54 lol Mar 31 12:48:58 still the issue that that you dont get the hw decoder speed Mar 31 12:49:01 resizing the picture seem to have worked. Mar 31 12:49:19 you can downsample large images but if you want to zoom into the image you'll need the fullblown image eventually Mar 31 12:49:20 Zooklubba: i hope your using BitmapFactory.Options correctly Mar 31 12:49:21 hum, the new app I do have on my phone is viber. Mar 31 12:49:28 you can't just load a region of the image Mar 31 12:49:40 Napalm, I am not playing around with bitmaps. Just imageview.setImageResource(int resiD) Mar 31 12:49:47 ah Mar 31 12:50:06 Zooklubba: setImageResource will decode a bitmap. same thing really Mar 31 12:50:11 ye Mar 31 12:50:21 iivvoo: i dont see why you cant just load a region Mar 31 12:50:31 or am i not following? Mar 31 12:51:07 if you zoom then the bounds simply change and then its resampled later, but the total image storage size would never go over the size of a bitmap that fills the screen Mar 31 12:56:37 Napalm as far as I know you can't get a region from a bitmap without loading the entire bitmap, which will cause the OOM Mar 31 12:57:01 you can Mar 31 12:57:08 but only with native software decoders Mar 31 12:57:24 Catherall, so you're saying that I should use this method call: getAuthToken (Account account, String authTokenType, Bundle options, Activity activity, AccountManagerCallback callback, Handler handler) Mar 31 12:57:32 really BitmapFactory.Options should have been expanded by now to encompass a bounding Rect for decoding Mar 31 12:57:34 and sorry for not seeing your anser earlier Mar 31 12:57:58 evelyette: he said you need to make sure you have Activity parameter set Mar 31 12:58:05 evelyette .. and providing the correct activity for the call Mar 31 12:58:15 that's my point, it should have, but hasn't, as far as I know Mar 31 12:58:27 Catherall, so the activity should be 'this' ... what does that parameter actually do ? Mar 31 12:59:18 iivvoo: even if they added it at this stage, it wouldnt help devices without the latest API.. and its not something you could add to a compatibility pack as the issue is rooted in the framework itself Mar 31 13:00:08 iivvoo: the real problem the Android API has at present is no way to communicate with the HW encoders and decoders Mar 31 13:00:48 I don't know in depth, I think the parameter provides the right context to the method so it can deal with that ... might also deal with window order Mar 31 13:01:04 But that is only a guess ... I am not an Android hardcore developer Mar 31 13:01:30 iivvoo: i can understand why since the delay in working though the dalvik stack would still hit performance and lets not forget the fact you would have contention over the hardware resources Mar 31 13:02:00 iivvoo: so there would have to be some kind of priortization in the framework where the forground apps get priority or something Mar 31 13:02:32 iivvoo: i think the final solution would be for Google to implement access to hw encoder/decoders from the NDK only Mar 31 13:03:25 Does it work evelyette? Mar 31 13:03:47 Catherall, it's a problem to provide an activity, since I'm using this method in protected Dialog onCreateDialog(int id) { } ... The method displays Google accounts to choose from, then calls the getAuthToken Mar 31 13:03:53 I'll have to rearrange the code a bit Mar 31 13:07:33 evelyette: why not use the AccountManager's inbuilt chooser? Mar 31 13:08:12 evelyette: http://developer.android.com/reference/android/accounts/AccountManager.html#newChooseAccountIntent%28android.accounts.Account,%20java.util.ArrayList%3Candroid.accounts.Account%3E,%20java.lang.String[],%20boolean,%20java.lang.String,%20java.lang.String,%20java.lang.String[],%20android.os.Bundle%29 Mar 31 13:08:39 Nice Napalm Mar 31 13:09:40 I've already rearranged the code, but no, it doesn't work Mar 31 13:10:00 the allow|deny is still not getting called in the foreground Mar 31 13:11:01 Napalm, thanks, I'didn't know about that, but thanks for pointing it out, I'll implemente that in the future Mar 31 13:12:31 and I'm calling my getAuthToken like this: getAuthToken(account, AUTH_TOKEN_TYPE, null, this, null, null); Mar 31 13:17:40 ok, it works now, thank you guys Mar 31 13:18:18 Catherall, btw: one more thing, is it possible to detect if a user clicks deny|allow ... how ? Mar 31 13:20:02 evelyette: dont you get a onActivityResult? Mar 31 13:20:16 or something similar Mar 31 13:20:19 i forget Mar 31 13:20:29 evelyette: what was the original problem? Mar 31 13:20:33 and the fix Mar 31 13:21:01 that the allow|deny wasn't calling when application wanted to access OAuth Mar 31 13:21:17 now this is calling, giving the user a chance to click allow|deny Mar 31 13:21:27 only when you provide a callback handler Mar 31 13:21:28 but then I want to know what user clicked, but don't know how Mar 31 13:21:42 that callback handler is called when the method finishes Mar 31 13:21:54 let me post the code Mar 31 13:22:36 http://dpaste.com/724824/ Mar 31 13:23:20 so I should provide a callback handler in the getAuthTOken function ? Mar 31 13:23:31 and it will be called whenever a user clicks on allow|deny ? Mar 31 13:25:30 Catherall, ? Mar 31 13:25:35 Try if the returned bundle contains an OperationCanceledException (if the operation is canceled for any reason, including the user canceling a credential request) Mar 31 13:26:11 So you know if canceled or not ... Mar 31 13:26:19 Napalm can help, I think Mar 31 13:26:32 He knows better about the usage of all the classes in Android Mar 31 13:28:00 ok Mar 31 13:28:07 let me try adding that Mar 31 13:28:08 bye .. have to go Mar 31 13:28:37 Catherall, yeah it's called ... thank you, it works now :) Mar 31 13:28:42 Very nice Mar 31 13:28:47 Bye Mar 31 13:28:47 I mean it will work in 5 minutes :) Mar 31 13:28:49 yes Mar 31 13:28:50 thanks Mar 31 13:28:50 bye Mar 31 13:29:07 evelyette: did you read the AccountManager documentation? Mar 31 13:29:23 Napalm, of course, but not all of it Mar 31 13:29:28 http://developer.android.com/reference/android/accounts/AccountManagerFuture.html Mar 31 13:30:21 evelyette: this isnt something you can just simply do in a single function Mar 31 13:31:07 well I've added the catch(OperationCanceledException e) { System.out.println("OPERATION CANCELED."); } and it's called, so yeah I can detect that now Mar 31 13:31:17 and yes, of course I can't do it in one function Mar 31 13:32:53 How would you go about reading a video file frame by frame? Mar 31 13:35:00 morning all Mar 31 13:36:49 afief: why are you trying to do this exactly? Mar 31 13:39:40 Napalm: Trying to create dynamic panoramas from video files, to do that I need to analyze the frames of a video Mar 31 13:42:23 afief: there is no real way on Android to decode frames, because putting software in the loop of playback would make playback slow Mar 31 13:42:39 afief: but what you might be able to do is implement your own SurfaceHolder Mar 31 13:42:48 and push that to a MediaPlayer Mar 31 13:42:57 afief: afief: you use a MediaPlayer to play back the video Mar 31 13:43:02 opsy Mar 31 13:43:05 afief: http://developer.android.com/reference/android/view/SurfaceHolder.html Mar 31 13:44:06 so I would assume MediaPlayer calls lockCanvas/unlockCanvasAndPost each frame Mar 31 13:45:13 afief: it might call getSurface() in which case you have another issue Mar 31 13:45:41 afief: if your trying to decode video frames to analyse them then I would suggest you do it in native code Mar 31 13:46:01 afief: compile some open source video decoder Mar 31 13:46:32 afief: since i would hope your not going to try analyising pixel data of videos in java :P Mar 31 13:48:25 Napalm: well for the proof of concept I actually wouldn't mind using Java Mar 31 13:48:38 afief: i would suggest you cheap out on the methodf Mar 31 13:48:56 Napalm: Any OSS video decoder you can recommend? Mar 31 13:51:15 afief: are you experienced in C/C++? Mar 31 13:52:04 Napalm: yes, but I never wrote anything that was supposed to run on a phone Mar 31 13:52:21 afief: well just remember resources are "thin" on a mobile device Mar 31 13:52:32 http://libav.org/ might suite your purpose Mar 31 13:52:58 but its not for the 'faint of heart' to get this compiled and interfacing with Android Mar 31 13:53:17 also programming video stuff is extremely hard Mar 31 13:53:40 if you dont mind displaying the video to the user "sped up" with say a dialog on top saying "processing" Mar 31 13:54:04 you might be able to get away with some kind of hook on the surface Mar 31 13:54:16 readme: any ideas on that ^ Mar 31 13:54:28 yeah, you can record frames from the camera with the apis. Mar 31 13:54:44 good point Mar 31 13:55:06 last I tried to do that was on 1.6 though and the g1 couldn't handle more than a few frames before OOM because of a memory leak Mar 31 13:55:11 afief: if its only PoC you could use camera to record rather than processing a pre-made video Mar 31 13:55:14 I would much rather read a saved file so I won't have to record a good test video on each debug run Mar 31 13:55:23 afief: i tell you what would be the best solution Mar 31 13:55:29 afief: server-side it Mar 31 13:55:48 afief: get the user to upload the video for processing, do the video processing on a server, and send the results back Mar 31 13:55:52 that is the best option Mar 31 13:56:19 readme: would you agree? Mar 31 13:56:40 Napalm: I think you're right, but doing it on the phone itself is so much cooler Mar 31 13:56:48 not really Mar 31 13:56:55 video files are pretty big Mar 31 13:56:59 uploading them could be slow Mar 31 13:57:37 if I was going to make a panorama app, i'd do it with the camera, accelerometer, and gyroscope Mar 31 13:57:51 if you did it server-side then you could offer services such as pulling the video from other sources such as YouTube or FlickR or whatever Mar 31 13:58:21 readme: The problem is that I actually need the 25-30 frames per second for a video panorama Mar 31 13:58:25 readme: it sounds to me like he's trying to panorama videos already taken without the use of a accelerometer and gyro Mar 31 13:58:59 you could restrict uploads to WiFi only Mar 31 13:59:29 Napalm: I do agree that it'd make more business/usability sense, but this is a university project I'm working on so the technology involved is kinda important Mar 31 14:00:01 then it sounds like you have some late night coding in your future Mar 31 14:00:15 perhaps native code is the only way to go Mar 31 14:00:24 how long do you have to do this project? Mar 31 14:01:00 about 3 months Mar 31 14:01:42 I haven't really seen much info on the NDK and how to use/compile stuff with it. Java and the android plugin were very easy to use. Is there a good resource for this? Mar 31 14:03:31 afief: http://mhandroid.wordpress.com/2011/01/23/using-eclipse-for-android-cc-development/ Mar 31 14:03:41 afief: i think you're expecting this to be much easier than its going to be. Mar 31 14:03:57 afief: just try building some basic programs with libav on a desktop machine and using the api Mar 31 14:04:32 afief: i agree with readme on this point Mar 31 14:08:07 Well this is my first day, working on the real implementation(after the matlab version), guess matalb spoiled me with it's video functions Mar 31 14:08:29 How hard do you think will it be to move the code I write on the desktop to android after I'm done? Mar 31 14:10:37 afief: you would have to write your own version of the matlab functions and more to glue them to the libav api, its not going to be straight forward Mar 31 14:10:47 you can do that on your PC Mar 31 14:10:50 and get it working on there Mar 31 14:11:10 then making it work on the mobile is another issue all of its own Mar 31 14:12:09 ouch :( Mar 31 14:12:09 afief: one way to find out, write some code Mar 31 14:12:18 hehe Mar 31 14:12:38 I was hoping to draw on the wisdom of experienced gurus like you ;-) Mar 31 14:16:22 So I'm trying to use .fullScroll(ScrollView.FOCUS_DOWN); but it doesn't scroll down all the way Mar 31 14:16:45 The problem seems to be that my addView() additions before that have not been processed yet Mar 31 14:17:17 rdonx: are you trying to append text and scroll in a TextView? Mar 31 14:17:21 yes Mar 31 14:17:29 No Mar 31 14:17:37 There's a linearview that's getting the data Mar 31 14:17:43 which is inside the scrollview Mar 31 14:18:01 So appending to linearview, trying to scroll the scrollview Mar 31 14:18:26 rdonx: explain what this is being used for, as it sounds like you are going about things the wrong way Mar 31 14:18:49 Custom List Widget Mar 31 14:19:52 still really doesnt explain it, why not just use a ListView? Mar 31 14:20:38 rdonx: sounds like you want this http://developer.android.com/reference/android/widget/AbsListView.html#attr_android:transcriptMode Mar 31 14:21:20 rdonx: ListView will monitor its data set and update its view based on that, its been around since the beginning of android and is heavly optimized for this type of thing Mar 31 14:24:57 Still sticking to scrollview/linearlayout - it gives me the flexibility that's needed Mar 31 14:25:44 just that I may have to run the .fullScroll() call after the listview has been redrawn Mar 31 14:26:28 Am I the only one who has troubles copying in xml editor_ Mar 31 14:26:32 using eclipse and a mac Mar 31 14:26:44 have to do cmd+c like 5 times. :/ Mar 31 14:28:45 hum, cut is the same. nothing happends. lol Mar 31 14:31:08 Zooklubba: are you sure it's only the eclipse editor Mar 31 14:31:20 no, not really. It is a bit random Mar 31 14:31:28 probably hardware, I think. Mar 31 14:38:35 is 3gpp and audio format or general media format? Mar 31 14:40:24 general media format Mar 31 14:47:01 Should I chose eclipse 32bit or 64bit to develop android apps on mac os lion? Is there a recommendation? Or are they absolutely equivalent regarding Plugins and such? Mar 31 14:47:24 Perhaps I should ask more generally: Is eclipse the way to go? Mar 31 14:47:44 yes eclipse and yes 64bit on lion Mar 31 14:47:51 Napalm: Thank you! Mar 31 14:47:55 i would also assume you have a 64bit processor of course Mar 31 14:50:04 i think lion requires it Mar 31 14:50:14 so i forgot to plug my phone in last night Mar 31 14:50:15 battery died Mar 31 14:50:18 it's my alarm Mar 31 14:50:22 that worked out well Mar 31 14:58:27 hey guys Mar 31 15:02:53 hello Mar 31 15:03:55 Can anyone tell me how get a button and textview displayed on top of a CustomDrawableView? Mar 31 15:04:18 put them inside it in the layout? Mar 31 15:04:21 lol Mar 31 15:04:37 The problem is that the CustomDrawableView is dynamicaly created Mar 31 15:04:44 so? Mar 31 15:04:55 you would of course need your CustomDrawableView to extend a ViewGroup rather than a View Mar 31 15:05:07 then you just do addView(button); Mar 31 15:05:08 or whatever Mar 31 15:05:25 addView - just the tip i needed Mar 31 15:11:58 afief: still around? Mar 31 15:12:15 Napalm: yup Mar 31 15:12:59 afief: i think i found you an undocumented method of doing what you want Mar 31 15:13:46 android.media.MediaMetadataRetriever Mar 31 15:13:58 it uses native code and allows you to capture frames Mar 31 15:14:04 as java Bitmap's Mar 31 15:14:18 That's funny, libav has the same kind of class Mar 31 15:14:51 wait i lie Mar 31 15:14:52 http://developer.android.com/reference/android/media/MediaMetadataRetriever.html Mar 31 15:15:02 looks like its documented Mar 31 15:15:09 API 10 and above Mar 31 15:15:39 so 2.3.3 Gingerbread + Mar 31 15:17:16 Okay, made the linearlayout scroll to bottom correctly Mar 31 15:17:30 Napalm: Thanks, but I think I'll still go through the C++ route getting it to run on a PC first Mar 31 15:18:28 i have a question regarding hooking a project in my case libreoffice in with the android project i created is there any NDK documentation or tutorials Mar 31 15:18:47 .post(new Runnable() { public void run() { .fullScroll(ScrollView.FOCUS_DOWN); } });; Mar 31 15:19:14 That will make the scrollview process the scroll after the new elements have been added and not before Mar 31 15:20:21 Napalm: Also, am I mistaken or does it not support reading frames in order? Mar 31 15:20:57 afief: you specify your time code, so you can do it in order Mar 31 15:21:55 Napalm: Yeah but that has a lot of seeking involved Mar 31 15:21:57 afief: you can get the duration using extractMetadata(); Mar 31 15:22:39 afief: this is a uni project, not pro Mar 31 15:23:01 time is your critical issue here, and with this you get quick access to the frame pixel data Mar 31 15:23:28 Napalm: True, I'll give it a try Mar 31 15:28:13 Hello I am new to android and having some trouble understanding the use of Handlers in android. Mar 31 15:28:27 couldnt make anything out of the tutorial on d.android.com Mar 31 15:28:41 arkiver: what is your problem exactly? Mar 31 15:28:51 i want to make a couple apps be able to live though a factory reset so i moved them from /data/app to /system/app Mar 31 15:28:53 does anyone know a tutorial where i can learn about handlers? Mar 31 15:29:06 but i need their settings to live as well Mar 31 15:29:12 there is no /system/data Mar 31 15:29:31 Napalm, I am trying to use startActivityForResult. And im seeing some code for it where they've used handlers for passing data to UI. Mar 31 15:29:38 Is it always necessary to use handlers? Mar 31 15:29:47 can i build my app without using handlers? Mar 31 15:29:48 djshotglass: dont you want this http://developer.android.com/reference/android/app/backup/package-summary.html Mar 31 15:30:37 arkiver: i wouldnt say necessary, but it depends on the scenario Mar 31 15:31:00 arkiver: handles are used to push code(runnable)/messages to a specific thread Mar 31 15:31:15 i am building an app to push data to the PC using Bluetooth. Mar 31 15:31:29 for that i am calling an activity which searches for devices and returns the selected device Mar 31 15:31:32 arkiver: ie) to offload non async tasks off the ui-thread or to push code that would change the ui to run on the ui-thread Mar 31 15:32:55 Napalm, okay so basically it is used to get some load off the UI and put that load onto another thread so that the UI isnt affected due to the load ? Mar 31 15:33:43 correct Mar 31 15:34:06 but also remember that non-ui-thread's should not change the UI Mar 31 15:34:19 so they should push updates back onto the ui-thread Mar 31 15:34:42 dont think so Napalm Mar 31 15:34:56 arkiver: http://developer.android.com/reference/android/app/Activity.html#runOnUiThread%28java.lang.Runnable%29 thats why this exists Mar 31 15:35:06 if someone takes my phone and facory resets it i want the apps that help me locate it to remain Mar 31 15:35:33 djshotglass: yes so move them into system Mar 31 15:35:58 djshotglass: and have your app search for backup data that is persisitant Mar 31 15:35:58 what about their settings in /data/data Mar 31 15:36:27 djshotglass: http://developer.android.com/reference/android/app/backup/package-summary.html < the first paragraph explains what you want Mar 31 15:36:31 so whats the problem? Mar 31 15:55:24 Napalm, Thanks alot :) Mar 31 15:55:41 np Mar 31 15:56:35 I've sort of understood it much better now :) Mar 31 15:58:06 morning all Mar 31 15:59:24 question related to Cursors, if I do not explicity startManagingCursor in my activities -- do I just need to close the cursor and thats it? Basically, I have yet to implement CursorLoader in my code and on HC I am seeing exceptions from SQLite like "requery on closed cursor" which only happens on HC devices. It's because I am managing using startManagingCursor(Cursor c). I'd like to remove this code and manage the Cursor myself. Mar 31 16:01:30 i'm searching for a method which is called whenever the state of a view is "pressed" Mar 31 16:02:07 like onClick Mar 31 16:02:52 just set a listener for it, are you wanting to do something when that view is pressed/tapped? Mar 31 16:03:24 if so, attach a listener to it and inside's that listener's onClick, you can add your business logic code Mar 31 16:03:27 the background is, that i have a tablerow containing two views. if one of this views is pressed the backgroundcolor of the hole tableview should change Mar 31 16:06:08 does anybody know a solution for my problem? Mar 31 16:06:34 Why not set a statelistdrawable as the background Mar 31 16:06:41 yeah did it Mar 31 16:07:01 but it seems like the two views cover the tablerow Mar 31 16:07:32 row.setBackgroundResource(R.drawable.backgroundcolorselector) Mar 31 16:07:34 Unless you did something, your views will have a transparent background Mar 31 16:08:12 i know Mar 31 16:08:57 when i press the textview which is added to the tablerow, the color doesn't change Mar 31 16:09:14 but when i do: textview.setBackgroundResource(R.drawable.backgroundcolorselector) Mar 31 16:09:29 Well no, you set the background on the view you're clicking. And the view you're clicking is the one to get selected Mar 31 16:09:30 the color of the textview change if i press it Mar 31 16:10:16 that i found out Mar 31 16:10:24 but how can i solve it? Mar 31 16:10:54 if i click on one of the views, the tablerow must be clicked, too Mar 31 16:10:59 If you want the row to change background, set your click listener on it Mar 31 16:11:10 i hope you understand what i mean Mar 31 16:12:02 i tried this already, but it doesn't work, since the views seem to cover the tablerow, so the row.onclick is not called Mar 31 16:12:56 Then you're doing something wrong :p Mar 31 16:13:04 Touch events are sent to child views until one consumes it Mar 31 16:13:24 i show you the code, one moment pls Mar 31 16:15:38 question: That motive-locking screen feature. Is it exposed as an API so one can use it for authentication purposes outside device locking? Or it is an internal feature which is not exposed? Mar 31 16:15:56 ok, heres the code: http://pastebin.com/zPLdNUmf Mar 31 16:18:52 So, set the click listener on the row Mar 31 16:19:38 but then if the checkbox is clicked a new activity will start Mar 31 16:19:52 and i just want to start the activity if the textview is clicked Mar 31 16:20:08 No, it wont Mar 31 16:20:16 ?! Mar 31 16:20:48 the checkbox is added to the row Mar 31 16:21:12 so clicking the checkbox is not like clicking on the row?? Mar 31 16:21:50 No Mar 31 16:22:07 i dont understand that Mar 31 16:22:15 could you explain? Mar 31 16:22:35 Okay, click events are handled in onTouchEvent in the View Mar 31 16:22:59 A ViewGroup will dispatch onTouchEvent to child views before trying to handle it itself Mar 31 16:23:38 If a View handles the touch event (returns true in onTouchEvent), the viewgroup will not do anything in onTouchEvent Mar 31 16:24:35 So if you have a viewgroup with 2 views, it will first dispatch the touchevent to view2, check if it handles it. if not, dispatch to view1, check if it handles it. if not, handle it itself Mar 31 16:24:43 so the onTouchEvent is "catched" by the checkbox before my onClick-method could be called, right? Mar 31 16:24:57 If view2 handles the touchevent, neither view1 or the viewgroup will get to do anything Mar 31 16:25:08 Yes Mar 31 16:25:25 Or in Android terms, the touch event is consumed by the checkbox Mar 31 16:25:59 thanks alot Mar 31 16:28:17 so, noone knows what I asked? Mar 31 16:28:49 you wrote " it will first dispatch the touchevent to view2", but you mean it will first dispatch the touchevent to the view which was touched, or? Mar 31 16:31:32 The view on top where the touch event happens Mar 31 16:32:39 ok, that was want i mean Mar 31 16:32:44 Hey again. I'd likave 2 activities to operate on the same array of objects. What would be the best approach to this one ? Mar 31 16:32:54 (not concurrently) Mar 31 16:33:44 you could save the array and load it Mar 31 16:34:37 That would mean serialize it/deserialize it ? Mar 31 16:35:11 whatever Mar 31 16:35:17 it can also be a static variable Mar 31 16:35:23 so it can be accessed directly without a pointer Mar 31 16:36:42 but how would I get a reference from activity A to B ? Mar 31 16:37:02 if the array is static? A.arrayname Mar 31 16:37:41 thanks WindowsNT; let me explore this method Mar 31 16:38:43 so I guess using the locking motive programmatically isn't an option. I haven't been able to find information on it. Mar 31 16:41:13 Beket: Can't you pass an array in a bundle? Mar 31 16:41:52 Oh, with custom objects? Mar 31 16:42:04 yeh, unless I implement Parceable :\ Mar 31 16:42:14 any germans around? :0 Mar 31 16:44:28 here! Mar 31 16:46:04 don't you mean… "hier"? Mar 31 16:46:29 gibts hier nen deutscher ja bitte Mar 31 16:46:43 hey Mar 31 16:46:52 haha Mar 31 16:46:57 bitte nicht deutsch sprechen :) Mar 31 16:47:09 i'm looking to translate 1 sentence Mar 31 16:47:28 ja, hab ich doch schon gesagt mensch Mar 31 16:47:49 xorgate give it to me ;) Mar 31 16:51:01 I keep watching Reito's video on receiving location updates from other activies. Mar 31 16:51:11 But I don't really understand the process. Mar 31 16:51:39 So, if your in your own application… you register an intent filter.. and when another application receives a location update your activity gets called? Mar 31 16:51:43 Hi, me and my friends want to create a little team of development, but for that we want to have a system to coordinate between multiples computers on the same workspace. For you, what is the best/easiest plugin for that? I found Subclipse, but that's mean I must transform one of my computer for a little linux server (SVN). We found too ECF if we want to work at the same time. Someone had already use that? Mar 31 16:52:02 Nic007: git, imo Mar 31 16:52:35 Nic007: everyone uses eclipse on this network? Mar 31 16:53:09 Nic007: you could always make your life easier and get a github account and use git Mar 31 16:54:14 ^ Mar 31 16:54:18 They will install Eclipse, they will be all new to Android, hourra for me! -.- Mar 31 16:54:41 Hum, ok I will search for git. Mar 31 16:54:51 Right. Well like Napalm said, github and eclipse is a pretty nasty combo. Mar 31 17:09:54 Bwarf, github is free only for open source projects... Mar 31 17:10:43 your source just has to be public Mar 31 17:10:50 it doesn't have to be an open source license Mar 31 17:10:52 :| Mar 31 17:11:48 ah ok ^^ Mar 31 17:28:27 hi world! Mar 31 17:29:25 JakeWharton, sup Mar 31 17:30:58 what was the command to make individual packages? Mar 31 17:31:06 say you wanna make Camera Mar 31 17:31:16 aLeSD: not sure if testing android program… or saying hi to me Mar 31 17:31:41 oh...maybe it was make Camera in the root folder Mar 31 17:34:37 Afzal, indeed, you just type make Camera Mar 31 17:35:35 pfn, yeah I was typing that, just not in the correct folder Mar 31 17:36:44 Anyone know why my OpenGL on a Bionic is sending me a onSurfaceChanged( width=480 height=295 ) ? This is much smaller than fullscreen, and gives me a 1cm black border around my OpenGL scene. Is there some resolution config in the android project for this? Mar 31 17:37:56 gridbag: it's giving you the size of the surface, not the size of the screen Mar 31 17:38:13 gridbag: you may want to set your surface to fill the screen.. Mar 31 17:38:24 gridbag: that will be in the layout stuff Mar 31 17:39:11 zinx - yes. that sounds right. Mar 31 17:40:20 how do indie devs do compatibility testing for various popular devices? Mar 31 17:40:54 hey Mar 31 17:40:55 zinx, i see. I'm still using the hello-world layout with a LinearLayout/TextView. Mar 31 17:41:16 someone know how a king of view I don'r rememeber the name work ? Mar 31 17:41:36 I got it Mar 31 17:41:43 ViewPager Mar 31 17:42:27 for example ... when the viewPager decide that a child view has to be redrawen ? Mar 31 17:42:31 king of view? :p Mar 31 17:42:40 the king of view Mar 31 17:43:00 the king of view.? Mar 31 17:43:11 I keyboard is gone Mar 31 17:43:20 ah okay lol i'll stop making fun then Mar 31 17:43:39 I think I have pieces of something under the keys Mar 31 17:43:55 it's a logitech Mar 31 17:43:58 yeah...that's annoying Mar 31 17:44:01 xdon't buy logitech Mar 31 17:44:13 Dried up hot pocket filling. Mar 31 17:44:15 nah, i have a logitech mouse that still works find after 2 years Mar 31 17:44:15 Most likely. Mar 31 17:44:35 a good mouse have to work forever Mar 31 17:44:49 by the way Mar 31 17:45:01 I have a problem with ViewPager Mar 31 17:45:04 ?/ Mar 31 17:45:10 i dunno much about them but ask Mar 31 17:45:15 I have a ListView inside the pager Mar 31 17:45:18 okay Mar 31 17:45:40 and views inside the listpager are added on user request Mar 31 17:46:04 and they have to draw new stuff at 30Hx Mar 31 17:46:06 Hz Mar 31 17:46:16 ? user request? Mar 31 17:46:18 I mean, do indie devs even bother with compatibility testing before launch? Mar 31 17:46:24 as in, the user requests for new items? Mar 31 17:46:25 yes Mar 31 17:46:34 Afzal, yes Mar 31 17:46:43 Codhisattva, if I was one, I'd at least test on 3 different versions on 3 different devices Mar 31 17:46:52 aLeSD, okay, go on Mar 31 17:47:15 well the user add a stuff ... and I can't see the new stuff in the ListView inside the PAger Mar 31 17:47:22 Afzal: not a dev? or do you have a QA dept in the company? Mar 31 17:47:25 if it is outside it works Mar 31 17:47:35 I mean without the pager Mar 31 17:47:43 only the ListView Mar 31 17:48:01 Codhisattva, I'm a lone developer. Don't have a company yet Mar 31 17:48:02 I know there's something I dunno .. I want it Mar 31 17:48:25 Afzal: what about a service? Mar 31 17:48:29 aLeSD, what do you mean by "works" ? Mar 31 17:48:35 Afzal, my future is working on my sealbot Mar 31 17:48:37 boat Mar 31 17:48:38 what goes wrong when it's in the viewpager? Mar 31 17:48:43 maybe working for you Mar 31 17:48:53 Codhisattva, what do you mean? Mar 31 17:48:55 works mean I see the view Mar 31 17:49:10 okay, but you're unable to add items to it? Mar 31 17:49:11 the view added by the user Mar 31 17:49:22 the code is the same Mar 31 17:49:30 I put my ListView inside the pager Mar 31 17:49:33 Afzal: I shouldn't be coy. I'm researching whether it makes sense to start a QA company that does android compatibility (among other QA things) specifically geared towards indy app and game devs Mar 31 17:49:34 it is not uldated Mar 31 17:49:37 can you paste some code? Mar 31 17:49:41 me ? Mar 31 17:49:46 a small studio for small studios Mar 31 17:50:05 Codhisattva, might be interesting. I wouldn't pay a QA company though. I'm too detail oriented as is. Mar 31 17:50:22 unless you do program correctness checking Mar 31 17:50:29 I can't cause It's TS Mar 31 17:50:30 that is the stuff of gold Mar 31 17:50:35 TS? Mar 31 17:50:39 topS Mar 31 17:50:39 Afzal: it's hard for most devs to adequately test their own code Mar 31 17:50:40 oh okay top secret Mar 31 17:51:13 Afzal: also less efficient when it comes to compatibility and functional testing Mar 31 17:51:15 by the way Mar 31 17:51:31 Afzal: since QA might be a 1/3rd of your $ value Mar 31 17:51:42 I belive I don't understand when ViewPager decides a child has to be redrawen Mar 31 17:51:59 I think that's the trick Mar 31 17:52:01 ViewPager "decides" same way every other view does Mar 31 17:52:05 There's nothing special about it Mar 31 17:52:18 SimonVT, thanks Mar 31 17:52:32 so the next question is ... how the views decide to redraw ? Mar 31 17:52:41 When they're invalidated Mar 31 17:52:45 I show you something Mar 31 17:52:49 mmmç Mar 31 17:53:04 if you're using a listview, calling notifyDataSetChanged will invalidate the listview Mar 31 17:53:06 SimonVT, invalidate a PagerView is not what I am seraching to dp Mar 31 17:53:09 it will redraw all Mar 31 17:53:24 ok Mar 31 17:53:35 SimonVT, Mar 31 17:53:57 http://stackoverflow.com/questions/7263291/viewpager-pageradapter-not-updating-the-view Mar 31 17:54:02 strike Mar 31 17:55:38 halo Mar 31 17:56:13 http://www.youtube.com/watch?v=JlDnevvKud0&feature=fvst Mar 31 17:56:38 Patience Mar 31 17:56:50 Yes, you need to override getItemPosition Mar 31 17:56:56 I did it Mar 31 17:56:57 Then call notifyDataSetChanged on the pager Mar 31 17:56:59 adapter Mar 31 17:57:12 it doesn't work Mar 31 17:57:33 Works fine for me Mar 31 17:57:40 SimonVT, I show you why Mar 31 17:57:54 cause I am not changing the vhied Mar 31 17:57:59 chield Mar 31 17:58:02 ahhhhh Mar 31 17:58:08 * aLeSD fucks the keyboard Mar 31 17:58:38 cause I am changing che childrens of a child of the PagerView Mar 31 17:58:50 mmm Mar 31 17:59:09 So it has nothing to do with the viewpager? Mar 31 17:59:26 it has Mar 31 17:59:41 if you're not changing the viewpagers dataset, it has nothing to do with the viewpager Mar 31 17:59:51 I want to know how viewpager check if a child has to bew redrawn Mar 31 18:00:10 SimonVT, in a way I cange it Mar 31 18:00:25 cause the List has 1 more child Mar 31 18:00:38 I maen the child of hte pager has 1 more child Mar 31 18:00:51 Okay, so it has nothing to do with the viewpager. Mar 31 18:00:56 It's your listview that doesn't work Mar 31 18:01:01 SimonVT, in a way yes Mar 31 18:01:21 SimonVT I dunno it works if is not in a viewpager Mar 31 18:01:51 sio Mar 31 18:01:53 so Mar 31 18:01:54 Then pastebin some code that's actually relevant Mar 31 18:02:03 ok Mar 31 18:02:09 I will give you my blood Mar 31 18:02:26 What type? Mar 31 18:02:31 b+ Mar 31 18:02:33 no Mar 31 18:02:34 mmm tasty Mar 31 18:02:35 c- Mar 31 18:02:37 aw Mar 31 18:02:51 ah Mar 31 18:02:56 c++ Mar 31 18:02:56 still a passing grade I guess. Mar 31 18:03:11 * aLeSD C++ is better Mar 31 18:03:34 I will paste the adapter Mar 31 18:03:37 it's a shit Mar 31 18:03:45 cause I did it to test the stuff Mar 31 18:04:59 http://ideone.com/TMZFO Mar 31 18:05:42 as you can see I am putting the same ListView in the 2 pages of the pager Mar 31 18:06:12 I won't really show you what's I think is a derived problem Mar 31 18:06:14 but Mar 31 18:06:26 the first page works ... the second not Mar 31 18:06:34 Er, yeah Mar 31 18:06:40 and, as you can see, they are the same Mar 31 18:06:40 Don't use the same listview instance Mar 31 18:07:01 SimonVT, if I use different is the same Mar 31 18:07:09 the first page is updating the second notr Mar 31 18:07:13 but Mar 31 18:07:25 I think it's a derived problem Mar 31 18:07:29 an inherit problem Mar 31 18:07:44 caused by a first problem ... that I want to know Mar 31 18:07:52 I think it's a problem that you're trying to draw 1 view in two different positions Mar 31 18:08:04 And you're not setting an adapter anywhere Mar 31 18:08:13 And you're casting it to a textview in destroyItem Mar 31 18:08:40 it's copied code Mar 31 18:08:47 a test Mar 31 18:09:33 SimonVT, maybe you like it more http://ideone.com/8wTlX Mar 31 18:10:21 * aLeSD is Lysergic Mar 31 18:10:25 wanna try Mar 31 18:10:26 ? Mar 31 18:10:42 Was the problem not that your listviews weren't updating? Mar 31 18:11:23 https://play.google.com/store/apps/details?id=org.lysergic.app.screenghost&feature=search_result#?t=W251bGwsMSwxLDEsIm9yZy5seXNlcmdpYy5hcHAuc2NyZWVuZ2hvc3QiXQ.. Mar 31 18:11:45 SimonVT, it's not updating with the new child Mar 31 18:12:05 If I put my ListView inside a pager and I add a child to the listView .. I can't see it Mar 31 18:12:22 and it happend not in the 1 page of the pager Mar 31 18:12:28 it's a bad behviour Mar 31 18:12:38 it means I am using it iun a bad way Mar 31 18:12:44 Well, first off, don't return the same listview instance for every instantiateItem Mar 31 18:12:53 it's obviously a derived problem Mar 31 18:12:55 Then pastebin your actual listview code Mar 31 18:13:12 ok Mar 31 18:14:17 here ? Mar 31 18:14:42 yes Mar 31 18:14:43 SimonVT, http://ideone.com/ZHKIT Mar 31 18:15:01 amazing code Mar 31 18:15:07 do you contract me ? Mar 31 18:15:31 hehehe Mar 31 18:16:52 And notifydatasetchanged is being called? Mar 31 18:18:22 SimonVT, line 49 Mar 31 18:19:12 Yes, but before that your might have returned false Mar 31 18:20:00 SimonVT, if I can't add I have not to call notify ... cuse te number of children are the same Mar 31 18:20:43 we need a new sog Mar 31 18:21:42 http://www.youtube.com/watch?v=Nsi3eqjY1UY Mar 31 18:21:55 Now, go back and fix your viewpager. Return a different listview instance for each position.. Then set a different adapter instance for each of them.. Then if it doesn't work, pastebin your code again Mar 31 18:23:05 ok Mar 31 18:23:17 but yopu listen to the song Mar 31 18:24:59 God what has this World come to? Spamming youtube links on IRC now. Mar 31 18:25:00 *sigh* Mar 31 18:25:28 sha1sum, I wrote that song Mar 31 18:25:45 Uh huh Mar 31 18:26:00 well I wish I would Mar 31 18:26:16 but I am not spamming youtube links ... I am spamming culture Mar 31 18:26:40 That's what they all say. Mar 31 18:26:44 "Spamming culture" Mar 31 18:26:53 If I had a dollar for every time I heard that Mar 31 18:27:03 I'd have enough for 4 quarters Mar 31 18:30:34 hi. how can I see how an application I'm debugging works while it's running. I want to see what methods are running, what layout I'm in, etc.. Mar 31 18:48:04 can an android dev make a living by creating apps? Mar 31 18:48:15 maybe :P Mar 31 18:48:20 questions stupid tho Mar 31 18:49:02 thebastl, I thought no question is stupid Mar 31 18:49:16 some are Mar 31 18:49:46 especially ones where you have done no research at all for programming questions. Mar 31 18:50:22 the question you asked is horribly open ended and dumb. Mar 31 18:50:45 Yes people are making a living at apps, yes theres plenty of contract work out there, thats the easiest way. Mar 31 18:50:56 Can you make a living at it? Who knows. Mar 31 18:52:34 hey - quick question. If i have an app that uses a database should i be able to copy the database from one phone and use it on another? Mar 31 19:01:48 michaeltpb: don't assume so, no Mar 31 19:05:06 i wonder if there is some list somewhere, that mentions the best phones to have for testing Mar 31 19:05:24 the best being? Mar 31 19:06:00 the best being, you can only afford a few, what os versions, devices, skins sold the most so you get reasonable coverage Mar 31 19:06:18 i guess i could ask some friends at mobile devs shops, they go through this exercise Mar 31 19:07:18 what about 2 virtual devices that are the same though? I've been trying to ftp a database from one and then download it on the other to use but i'm not having much luck even though they should be identical Mar 31 19:07:47 if they are identical hw & os versions, it should work, yeah Mar 31 19:08:38 the only assumption you can make, is that if you have a phone version X with sqlite db, that phone version x + n will be compatible with the db Mar 31 19:09:17 I guess i must be doing something wrong with the ftp then ... I'll have a look into it. Thanks for the help =) Mar 31 19:39:27 Is it possible to wrap very long text using android.R.id.text1 with android.R.layout.simple_list_item_1 ? Mar 31 19:40:16 I want create ListView with multiple selection. Everything works fine, but the very long text for selections. Mar 31 19:41:06 I made my own relative layout with TextView and CheckBox, but method getCheckItemIds() returns nothing Mar 31 19:41:21 Can anybody give any piece of advice? Mar 31 19:41:25 Please. Mar 31 19:43:25 ... Mar 31 19:45:34 How can i get all selected id`s in my ListView with custom layout? Mar 31 19:47:19 hi! Mar 31 19:47:25 i am getting my6self a new phone Mar 31 19:47:34 what do you peeps use? Mar 31 19:47:45 I want a phone that I can easily swap out OS;'s Mar 31 19:48:06 one that is easy to root anhd install OS of my choice Mar 31 19:49:25 cyanogen looks good Mar 31 19:52:15 god damn, fuck off google http://www.engadget.com/2012/03/29/google-patent-application-google-plus-ghost-profile/ Mar 31 19:59:34 Hello, anyone willing to help me with my problem playing Flash within a WebView for devices running ICS (Android 4.0)? Mar 31 20:00:27 i thought flash was dropped Mar 31 20:00:30 for mobile Mar 31 20:00:58 I'm aware but my code plays flash on 2.1 onwards except 4.0 Mar 31 20:01:17 i mean it still should be able to play them right? Mar 31 20:01:26 not sure Mar 31 20:04:23 anyone else? Mar 31 20:05:59 Nexus S 4G Mar 31 20:06:01 jeppy: ics will be the last version of android w/ flash support, according to adobe anyway Mar 31 20:06:19 is it common practice among professional android developers to follow these(http://source.android.com/source/code-style.html#follow-field-naming-conventions) guidelines for naming? or is it just in-house practices that's followed? Mar 31 20:07:01 i would definitely follow those conventions Mar 31 20:07:48 well with some modification i suppose Mar 31 20:07:50 I'll second the 'following conventions' Mar 31 20:08:34 for instance, i put else blocks on the next line rather than starting them on the line with the end bracket Mar 31 20:08:56 ok I'll look for help somewhere else. thanks. Mar 31 20:09:21 it was the naming conventions i was wondering about Mar 31 20:09:46 yes follow those Mar 31 20:10:09 i think the code is more readable when starting the blocks on the same line, but probably personal preferences count much there Mar 31 20:11:01 Hello Mar 31 20:11:33 hi Mar 31 20:12:17 Q: Why is that my EditText onKeyListener() is never called? Here snippet: http://pastie.org/3705212 Mar 31 20:12:38 I sort of want to make small dynamic calculator - to do calcs when user types Mar 31 20:13:11 silur, i think you want onKeyDown or up Mar 31 20:13:20 http://source.android.com/source/code-style.html#follow-field-naming-conventions Mar 31 20:13:28 is that fine ? Mar 31 20:13:54 Detergentizer, yes Mar 31 20:14:11 jeppy: do you ave one ? Mar 31 20:14:21 have one? Mar 31 20:14:30 I wanna root it, and possibly swap OS's in and outs of it Mar 31 20:14:45 now i'm lost Mar 31 20:14:53 your link is about naming conventions Mar 31 20:15:00 oh Mar 31 20:15:08 http://www.amazon.com/Samsung-I9250-Galaxy-Nexus-Unlocked/dp/B005ZEF01A/ref=pd_cp_cps_2 Mar 31 20:15:33 no I dont have one Mar 31 20:15:41 i am getting a phones, thinkiung abouts that Mar 31 20:16:07 Detergentizer: if you have some patience, I'd wait a bit Mar 31 20:16:13 next gen devices in the next couple of months Mar 31 20:16:30 for rooting and rom discussions, try #android-root Mar 31 20:16:34 always the case ;) Mar 31 20:16:37 hacdan, i wanna get my feets in the door and have some apps ready though Mar 31 20:17:08 Codhisattva: yes, but in this case, it is the start of a new model year, that phone is coming up on 6 months old Mar 31 20:17:11 can we devs get next gen devices from googlators ? Mar 31 20:17:22 * HacDan doesn't know what a googlator is Mar 31 20:17:23 s/googlator/google Mar 31 20:17:41 Detergentizer: as of right now, no Mar 31 20:17:58 HacDan: what's the most popular phones right now? seems a dev wants to target popularity and plan for nextgen. Mar 31 20:18:00 how are we as devs to get software ready? Mar 31 20:18:21 the most popular is gingabread Mar 31 20:18:30 s/gingabread/gingerbreed Mar 31 20:18:34 s/breed/bread Mar 31 20:18:48 Detergentizer, http://developer.android.com Mar 31 20:18:53 but that is a lot of money for something obsoletes Mar 31 20:19:35 Hi All Mar 31 20:19:37 SDK docs clearly says that callback should be called. Why it doesn't? - http://pastie.org/3705212 Mar 31 20:19:47 No log messages from there Mar 31 20:20:09 silur, did you try using onKeyDown instead of onKey? Mar 31 20:20:10 how do I make a listview in my parent Activity refresh when my child activity finishes? Mar 31 20:20:14 gingerbread is l;like 60percent of markeet Mar 31 20:20:29 sorry for typo, my keyboar4de is messing up Mar 31 20:20:41 Codhisattva: then he should be looking at at least one year old devices with that mindset =/ Mar 31 20:21:22 or he could invest in a next gen phone, and thanks to androids backward-compatibility, he shouldn't have an issue =/ Mar 31 20:21:29 HacDan: good point Mar 31 20:21:37 jeppy, Thanks, i was looking at wrong code... will try Mar 31 20:21:53 I guess it depends on what you're developing, heh Mar 31 20:22:28 I need to get a collection of android devices for compatibility testing Mar 31 20:22:38 I hope I don't need hundreds Mar 31 20:23:04 why do you need to get a collection of devices? Mar 31 20:23:18 HacDan: compatibility testing Mar 31 20:23:29 I see, and the emulator won't do? Mar 31 20:23:35 HacDan: games in particular Mar 31 20:24:24 jeppy, there is no setOnKeyDown() though for EditView... ? Mar 31 20:24:27 HacDan: emulation is OK for OS compatibility, but what about screen sizes, GPU, and various CPU speeds? Mar 31 20:24:35 Codhisattva: thats a tough question; which phones to get Mar 31 20:24:50 Codhisattva: I've fed the troll long enough, find someone else to give you food =) Mar 31 20:24:51 Codhisattva: did you see this? http://news.ycombinator.com/item?id=3779672 Mar 31 20:25:10 HacDan: I'm not trolling. I'm starting a QA company. Mar 31 20:25:40 Codhisattva: there is at least 1 company which leases out android phones via telepresence somehow, for testing Mar 31 20:25:58 g00s: yes that article is almost a manifesto for this company idea Mar 31 20:25:59 i think JakeWharton knows who they are, i forgot their name Mar 31 20:26:13 g00s: I found something like that but I haven't tried it yet Mar 31 20:26:42 g00s: http://www.perfectomobile.com/portal/cms/services/android Mar 31 20:27:10 yeah, it was like this, but i thought they had a different name Mar 31 20:27:13 HacDan: I'm also porting a popular game to Android and not looking forward to the testing cycle Mar 31 20:27:14 not sure if its the same folks Mar 31 20:27:31 g00s: Worst. Name. Ever. Mar 31 20:27:44 yeah, lame Mar 31 20:28:18 Codhisattva: so you're starting a QA company where you ask the questions? seems like it's destine to fail. Mar 31 20:28:54 HacDan: thanks for your insight Mar 31 20:29:18 just trying to understand Mar 31 20:30:20 Codhisattva: these are the guys i was thinking of http://gigaom.com/2011/10/31/apkudo-helps-android-devs-with-the-fragmentation-testing-blues/ Mar 31 20:30:41 g00s: thanks. I'll look into those guys too. Mar 31 20:31:28 this is a nice phone for dev -- me thinks -- http://www.amazon.com/Samsung-Unlocked-QuadBand-Smartphone-Touchscreen/dp/B004HZDNTY/ref=sr_1_8?s=wireless&ie=UTF8&qid=1333225664&sr=1-8 Mar 31 20:32:46 if i wanna upgrade my table (i added 4 columns) i do that with this command? db.execSQL("ALTER TABLE blablaaa ADD COLUMN new_column INTEGER DEFAULT 0"); is "new_column" one of the new ones means i have to copy this line 4 times and change it ? Mar 31 20:33:09 Surfer2010: "Upgrade" table? Mar 31 20:33:16 http://www.amazon.com/Samsung-T959-Vibrant-Unlocked-Android/dp/B004T0LKHO/ref=pd_sim_sbs_cps_6 Mar 31 20:33:26 that am another nice phone you ya thhinks? Mar 31 20:33:42 i wanna change my SQL-DB without loosing my data Mar 31 20:34:13 Detergentizer: is it just going to be a development device or personal use as well? Mar 31 20:34:25 hacdan both Mar 31 20:34:29 Surfer2010: If I read your statement correctly, you want to add a new column to your database? Mar 31 20:34:48 hacdan i only do dev Mar 31 20:35:48 HacDan: my only concern is if i can upgrade it to at least latest gingerbread Mar 31 20:36:15 both of those phones will go up to gingerbread Mar 31 20:36:17 well no ... i added one in my sql code ... and now i wanna run it there for i have to increase my DatabaseVersion ... so the "onUpgrade" will be called and i don't want to loose any of my data Mar 31 20:36:27 ok. Mar 31 20:36:45 would be nice to get a phone that is upgradablea to 4.0 too but that is hard to find on amazon Mar 31 20:37:15 how can you tell if it will be 4.0 compat? Mar 31 20:37:33 you gotta look it up Mar 31 20:39:00 Surfer2010: Don't know. I haven't done any upgrading of the SQLite database in Android yet. But to support the new columns without dropping the entire table and recreating it, I'm guessing you'd have to create the new columns by hand. Mar 31 20:40:02 yes and transfer all the old data into the new database Mar 31 20:42:28 drlaban: Well, not necessarily. I mean, if you only create extra columns in your Android DB manually, you wouldn't have to drop the tables. Just add the missing data to the new columns. (This won't upgrade the database version number, though, as I don't know how to this without recreating the whole thing from scratch). Or am I missing something here. Mar 31 20:42:33 Surfer2010: ^ Mar 31 20:42:34 Detergentizer: I assume it has to be a gsm phone right? if so, might wanna look into the galaxy s2 line, those are currently on gingerbread, and are all getting ics Mar 31 20:42:48 hacdan thanki3es Mar 31 20:45:16 uhm Mar 31 20:45:20 Anyone have experience with leaking a serviceConnection ? Mar 31 20:46:47 shroomyreader: i do not know what that means Mar 31 20:47:42 Surfer2010: Alright, read a little on the subject. So you put your ALTER TABLE-statement in the onUpgrade() method, I guess. Mar 31 20:48:15 yes Mar 31 20:48:29 but i'm not sure if i did it right ... Mar 31 20:49:17 Surfer2010: Here's what I'm reading now and it seems pretty useful for this kind of stuff: http://www.stackoverflow.com/questions/3505900 Mar 31 20:51:20 Q: I screwed up something in Eclipse editor: "organize imports" no longer works. Any hints to make it work again? Mar 31 20:53:54 drlaban i read that before but there are a couple of different answers and i also read one saying that the only thing to do is the line i copied in here before is you want to add a row Mar 31 20:54:06 so i thought i ask here if someone knows for sure Mar 31 20:54:50 hacdan: i think ik go with this unless you have url to something with better price -- http://www.amazon.com/Samsung-SGH-i777-Smartphone-Gingerbread-Dual-core/dp/tech-data/B00642EWMU/ref=de_a_smtd Mar 31 20:54:59 Surfer2010: Well, if you want to know for sure and if noone in here can/has answered you, just create a separate project and test it out. Mar 31 20:55:54 Detergentizer: price looks good, and it's a great phone, so, should be good with that =) Mar 31 20:56:06 yeah i have to do this it seems like it since noone in here knows or they're afk right now ;) Mar 31 20:56:11 coolies and thankies very very much!!!! Mar 31 20:56:19 Surfer2010: And I'd say that a vote of 38 on that SO-response beats any of the rest in that thread. Mar 31 20:57:23 Surfer2010: Well, that's how I do most things: Test them out and see what screws up. If nothing else, you also get to know about what can go wrong. Mar 31 21:01:25 Anyone knows why "Organize Imports" does not work for one project (suddenly stopped working), but works for others? Mar 31 21:01:47 Must pressed some secret hotkey and not sure what was it Mar 31 21:10:57 What the hell? "Organize Imports" removes 'import android.widget.Button;' and then I get Syntax Error about 'Button' in the code... Did my Eclipse gone mad? Mar 31 21:11:47 eclipse is per definition bad... and a bit buggy Mar 31 21:12:28 for import-magic I use ctrl+shift+o Mar 31 21:13:20 SOLVED! at the end of code - closing method brace was missing!!! Oh man.... took me 20 minutes Mar 31 21:16:26 Where are you typing that didn't clue you in to that? Mar 31 22:04:56 Hey there :) I've got a code design question Mar 31 22:05:03 I'm making a game where current state is stored as several custom objects Mar 31 22:05:12 I'd like to keep it when the user rotate the screen for example, or when the user leaves the app for some time and come back a bit later. Mar 31 22:05:17 I'm not talking about long-term saves, I already handle that Mar 31 22:05:23 But rather a short and mid-term solution : just storing the objects in memory Mar 31 22:05:30 Serializing all them and un-serializing seem like a bit of a waste Mar 31 22:05:37 So I'm thinking of using a Service that would hold the state Mar 31 22:05:39 Is it a wront idea ? Mar 31 22:05:43 *wrong Mar 31 22:13:12 does anyone here use scala for android dev in eclipse? Mar 31 22:15:37 Are you guys good at OAUTH Mar 31 22:25:53 sup dogs Mar 31 22:27:08 <- cat Mar 31 22:27:25 lol Mar 31 22:27:40 the log-cat.. :P Mar 31 22:43:25 JakeWharton: /poke Mar 31 23:11:37 hi.. how to perform corrent ordering of data in database using UNICODE collate? Mar 31 23:11:41 correct* Mar 31 23:26:45 is the /dev dir read-only on roms ? Mar 31 23:53:57 Hi Mar 31 23:55:51 Is there any way to run a method every X seconds. I've tried looking at Google and I've read about Handlers and Runnables and Timers, etc, but all my current attempts have failed.,, Anyone got some example or something on how to use it properly? Apr 01 00:09:32 Solirify: create a handler and post a delayed runnable which calls your method Apr 01 00:09:59 From your method post another delayed runnable Apr 01 00:10:28 AlCapwn: I tried that but I couldn't get it to work... I'll try it again. Thanks :) Apr 01 00:11:16 Ok, it might be helpful to post code of your current attempt to pastebin Apr 01 00:12:12 Solirify: One approach is roughly something like this: http://pastebin.com/m5xKfVp4 Apr 01 00:12:15 AlCapwn: I deleted my earlier attempt. I'll try it again and if it doesn't work I'll post it to pastebin Apr 01 00:13:26 Solirify: did you find the blog post about exactly this? Apr 01 00:14:34 http://developer.android.com/resources/articles/timed-ui-updates.html Apr 01 00:17:06 g00s: Nope, haven't seen that. Thanks Apr 01 00:17:15 SimonVT: Thanks for the link Apr 01 00:23:42 AlCapwn: What did I do wrong? http://pastebin.com/0DfbDJrw Apr 01 00:25:09 Looks about right Solirify Apr 01 00:25:24 Post the full code though, might be something in there Apr 01 00:30:01 AlCapwn: I got it working! Thanks for your help! I added handler.post(runnable); to onCreate Apr 01 00:30:59 Great :) Apr 01 00:32:58 Again, thank you for your help :) I'm all new to Android programming and it's great to know that I can (probably) just go here if I have a question :D Apr 01 00:35:12 AlCapwn: Do I need to think about anything special like memory management when it comes to Handlers and Runnables? I have an if statement and only if it's true I run the "handler.postDelayed(runnable, 1000);". But if it's false do I need to do anything like destroy the handler/runnable or something like that? Apr 01 00:36:16 Not really, be sure to stop your handler when your app goes into the background and restart it later when your app comes back into foreground Apr 01 00:36:26 Check the link g00s gave Apr 01 00:38:29 AlCapwn: You mean this part: "mHandler.removeCallbacks(mUpdateTimeTask);"? Apr 01 00:39:07 Yes, the parts in onPause and onResume Apr 01 00:40:30 AlCapwn: Ah, you must mean the link SimonVT gave :) Apr 01 00:41:50 hi all Apr 01 00:42:02 http://developer.android.com/resources/samples/Home/index.html Apr 01 00:42:09 how can i download the source Apr 01 00:42:24 the sample sources come with the sdk Apr 01 00:43:11 in wich samples packages is it Apr 01 00:43:23 Home probably Apr 01 00:43:49 i found it thx Apr 01 00:44:01 its in samples 2.3 zip package Apr 01 00:47:29 Good bye :) Apr 01 01:05:48 pfn, I tried using sbt last night Apr 01 01:06:48 o hai JakeWharton Apr 01 01:07:06 hello cow Apr 01 01:07:09 ZLIB is a standard, so if i compress data with alb (using python), i should be able to decompress it with java. Is my assumption correct ? Apr 01 01:07:12 i work with a canadian Apr 01 01:07:14 do you know him? Apr 01 01:07:20 lol Apr 01 01:08:35 god damn time zones and april fools Apr 01 01:09:23 lyxus, in theory Apr 01 01:09:55 JakeWharton: i guess i will find it out soon ! Apr 01 01:10:06 JakeWharton: thanks for answering Apr 01 01:11:06 JakeWharton, I see, can't chat now though, on my way out Apr 01 01:11:28 ok, see ya Apr 01 01:15:53 ahhh fresh batteries in my mac mouse Apr 01 01:16:02 a whole day of using trackpad sucks Apr 01 01:34:22 has any1 here used AlarmManager to help me with a issue im facing Apr 01 01:34:36 PDawg: i've used it, not an expert but i can try Apr 01 01:34:39 bye akk Apr 01 01:35:04 oh yea i didnt see u there QubeZ...u and ctate helped with my initial question Apr 01 01:35:32 i dont remember but ok =) Apr 01 01:37:22 ok so here is the background, i have main acticity with a button, that creates a PendingIntent using the Broadcast...and sets the alarm to go off right away...then inside the Broadcast class's onRecieve i acquire my additional wakelock, and execute a background service Apr 01 01:38:03 then inside the background service's onDestroy, i tried doing: alarmManager.set(AlarmManager.RTC_WAKEUP, 60*1000, pendingIntent); Apr 01 01:38:34 this is causing the code to execute constantly, meaning every second Apr 01 01:38:52 isn't that every minute? Apr 01 01:38:59 i want it to be every minute Apr 01 01:39:02 but its not Apr 01 01:39:16 Logcat is showing constant execution Apr 01 01:39:25 endlessly basically for every second Apr 01 01:39:33 show code Apr 01 01:40:05 i thought the .set method takes the triggerAt param as its 2nd param Apr 01 01:40:20 meaning you need to tell it "when" to trigger, its not a static timing to repeat at Apr 01 01:40:26 ok, not sure how much code, but ill post as much as i can Apr 01 01:40:27 yeah Apr 01 01:40:28 if you need repeating, you need to use .setInexactRepeating Apr 01 01:40:31 I don't understand why you even need a wake lock if you're using AlarmManager and calling something every single minute Apr 01 01:40:34 the phone will never sleep anyway Apr 01 01:40:40 it's AlarmManager Apr 01 01:41:49 •readme• umm im not 100% but, ctate said that the phone will acquire wakelock in the onRecieve of the broadcast, and then it will call the service and then phone will go right back to sleep Apr 01 01:42:12 hence requiring another manual wakelock, which i can release from within the service Apr 01 01:42:12 PDawg: if you want it to fire in a minute, you need to schedule like Calendar cal = Calendar.getInstance(); cal.getTimeInMillis() + (60000) or someting like that Apr 01 01:42:47 or there might be a static Interval.MINUTE or someting you can use to replace the 60000 Apr 01 01:42:57 ah yea let me try that Apr 01 01:43:06 if not then i can show code...one thing Apr 01 01:43:12 one sec i mean Apr 01 01:43:16 PDawg: AlarmManager wakes up the phone Apr 01 01:43:25 that's why it's used to write alarm clocks etc. Apr 01 01:43:31 and if you call it every minute Apr 01 01:43:41 the phone will never sleep, because it will constantly be woken up by AlarmManager Apr 01 01:43:42 ya dont secure a wakelock dude, like readme says Apr 01 01:43:58 oh ok Apr 01 01:44:19 if you dont release it properly, you'll have alot of pissed off users Apr 01 01:44:20 i just dont want the phone to sleep before it fully executes the service code Apr 01 01:44:47 PDawg: if you poll something with alarmmanager every minute, the phone *will not sleep* --- ever. Apr 01 01:45:05 again, pissed off users Apr 01 01:45:07 you might want to try like, 30 minutes Apr 01 01:45:10 that would be more reasonable Apr 01 01:45:30 •readme• this is my dummy code, that im working with...the original app im working on is a profile scheduler, which will have a more wider interval Apr 01 01:45:42 ok so that interval is for testing Apr 01 01:45:51 yea Apr 01 01:45:58 PDawg: lets see the code and we can be of more help Apr 01 01:46:16 ok let me try the cal.getTimeInMillis approach Apr 01 01:46:28 PDawg: make sure you add more millis to that though Apr 01 01:46:34 otherwise it'll go off right away Apr 01 01:47:03 System.currentTimeMillis() + 60000 will do it Apr 01 01:47:14 ya there ya go Apr 01 01:47:22 alright Apr 01 01:51:08 PDawg: if you're starting a Service from the onReceive of your AlarmManager, then you should have a wake lock Apr 01 01:51:15 sorry, not seeing any code kind of made it difficult Apr 01 01:51:35 np, so i should create my own wakelock? Apr 01 01:53:08 i think i need to start pasting as much as code i can, because now the code is not executing after the 1st alarm expires Apr 01 01:54:53 PDawg: that is not a repeating alarm, it should only fire once Apr 01 01:55:24 nevermind, its working Apr 01 01:55:36 nice! Apr 01 01:55:45 QubeZ, i know, i was re-creating another alarm as the 1st one expires Apr 01 01:55:59 ok Apr 01 01:56:26 PDawg: yeah, inside the service for as long as the service is running Apr 01 01:56:46 that is, the task you have your service run. services themselves do not 'run' Apr 01 01:56:57 •readme• ok yea, thats what i read online as well, so i was doing as per what some say Apr 01 01:56:59 yeah Apr 01 01:57:11 sounds good Apr 01 01:57:36 •QubeZ• i needed a way to create a re-schedule-able alarm, and you and ctate suggested the approach im taking atm =) Apr 01 01:57:49 ahh ok Apr 01 02:01:38 QubeZ: which android-x86 image are you running in vmware? Apr 01 02:02:43 eeepc Apr 01 02:02:51 ics Apr 01 02:03:57 does USB work? Apr 01 02:04:23 adb/usb Apr 01 02:04:24 not sure, im transfering apk via network Apr 01 02:04:29 ah i see Apr 01 02:04:37 i have network working on the emu Apr 01 02:05:46 man i've been trying to get MonkeyTalk working with Eclipse, such a pita Apr 01 02:05:53 would love to get it working though Apr 01 02:14:24 brb, have to log back in for kvm permission Apr 01 02:17:55 my screen orientation is stuck vertically even though I set it to horizontal Apr 01 02:18:03 any ideas? Apr 01 02:18:19 goddard: you asked this the other day, orientations are "portrait" and "landscape" Apr 01 02:18:24 stop saying vertical/horizontal Apr 01 02:18:37 you are talking graphically Apr 01 02:18:49 no, thats the names in Android Apr 01 02:18:58 where is the xml that says that? Apr 01 02:19:06 android:orientation="portrait" or android:orientation="landscape" Apr 01 02:19:19 shows as invalid for me Apr 01 02:19:42 •goddard• look in ur Manifest.xml file Apr 01 02:19:44 sorry its android:screenOrientation Apr 01 02:19:59 android:screenOrientation="portrait" Apr 01 02:20:02 android:screenOrientation="portrait" Apr 01 02:20:33 ok Apr 01 02:20:41 whats this http://developer.android.com/reference/android/widget/LinearLayout.html#attr_android:orientation Apr 01 02:20:48 d.android.com would solve your problem quick Apr 01 02:20:54 that's the orientation of a layout Apr 01 02:21:01 ok Apr 01 02:29:18 QubeZ: do you have wifi working on your? Apr 01 02:29:28 yes Apr 01 02:29:30 I just installed on qemu, stuck at entering my gmail account Apr 01 02:29:33 wifi wont turn on Apr 01 02:30:02 i dont actually turn on the wifi, that wont work... Apr 01 02:30:09 i dropped into shell and ran netcfg Apr 01 02:30:14 oh, awesome Apr 01 02:30:15 netcfg eth0 dhcp Apr 01 02:30:35 it pulled an ip off my wifi because i have the interface set to bridged Apr 01 02:30:44 whats the key combo for that? c-alt-fn is bound to Xorg so Apr 01 02:30:58 hmm im on mac but my iso had a termimal emulator Apr 01 02:31:01 so i just ran that :) Apr 01 02:31:17 eeepc ics iso should come with terminal emulator in your Apps list Apr 01 02:31:21 ohh Apr 01 02:31:23 good idea Apr 01 02:31:26 dropped in there then su - (to get root) Apr 01 02:31:57 it's blazing fast :) Apr 01 02:33:05 after you set IP, need to set DNS possibly Apr 01 02:33:08 i am tempted to just fullscreen and make it my primary os Apr 01 02:33:10 using setprop net.dns1 Apr 01 02:33:25 and whatever your dns ip is Apr 01 02:39:09 QubeZ: thanks, I am closer than before at least Apr 01 02:39:15 dhcp is timing out :/ Apr 01 02:39:18 np, it is blazing fast Apr 01 02:39:42 ya, you'll need: netcfg eth0 dhcp then setcfg net.dns1 Apr 01 02:39:48 err setprop Apr 01 02:39:53 setprop net.dns1 Apr 01 02:39:58 then you should be set Apr 01 02:40:53 netcfg dhcp isn't giving me an ip Apr 01 02:40:58 it's failing Apr 01 02:41:02 netcfg eth0 dhcp ? Apr 01 02:41:12 on qemu, i have no eth0 Apr 01 02:41:18 i've got ifb0, ifb1, sit0, and loopback Apr 01 02:41:32 just type: netcfg Apr 01 02:41:38 you'll see that Android's interface is eth0 Apr 01 02:41:50 Apr 01 02:42:03 not on qemu Apr 01 02:42:12 ahh ok Apr 01 02:42:25 do you have qemu set to bridged, host-only or ...? Apr 01 02:42:28 nat even? Apr 01 02:42:33 http://imgur.com/4xLn5 Apr 01 02:42:35 i could only get it working on bridged Apr 01 02:42:43 I just ran it with -net nic like the instructions siad Apr 01 02:42:47 i'll look into that more Apr 01 02:43:03 netcft sit0 dhcp <-- that doesn't work? Apr 01 02:43:18 not sure about qemu, wish i could help more :\ Apr 01 02:43:49 thanks for the help Apr 01 02:43:52 i'm am reading the manual Apr 01 02:43:56 k Apr 01 02:44:19 hi all. can someone point me at an asynctask download/progressbar example that actually works? thanks in advance. Apr 01 02:44:26 im going to run HC shortly, having some bugs related to HC / db / Cursors with my app Apr 01 02:44:29 god damn HC Apr 01 02:45:45 jmg: you can try the Vogella tutorial: http://www.vogella.de/articles/AndroidPerformance/article.html#concurrency_progressbar Apr 01 02:45:53 http://www.vogella.de/articles/AndroidPerformance/article.html Apr 01 02:46:33 sigh Apr 01 02:46:50 everything i read has a completely differnet way of doing things Apr 01 02:46:58 there's no coherence Apr 01 02:47:17 i think i've rewritten this activity upwards of 20 times now. Apr 01 02:47:59 brb doing it yet another way Apr 01 02:50:58 jmg: just show the code Apr 01 02:51:33 * readme tries ics in vbox Apr 01 02:51:40 damn it installs fast Apr 01 02:51:49 readme: i tried ics in vbox and install failed Apr 01 02:51:53 not sure why Apr 01 02:52:01 actually anything i try to install fails Apr 01 02:52:07 worked for me Apr 01 02:52:07 need to get HC running asap to troubleshoot Apr 01 02:52:25 are you on linux Apr 01 02:52:57 mac Apr 01 02:53:05 wow, apparently To Do Mapr is really popular in Thailand Apr 01 02:53:08 unfortunately, I'm not seeing my mouse inside the virtualbox one. Apr 01 02:53:09 nice Apr 01 02:53:10 sometimes i think freenode is a sinister campaign by apple and microsoft to sabotage open source development Apr 01 02:53:57 QubeZ: probably being used extensively by drug dealers and ... adult entertainers Apr 01 02:54:16 readme: lol, that is what my wife said this morning Apr 01 02:55:24 gonna try vbox once more Apr 01 02:55:40 just gotta figure out this thing with the mouse ptr Apr 01 02:57:11 readme: http://code.google.com/p/android-x86/issues/detail?id=341 Apr 01 02:57:22 in Machine tab, disable mouse integration Apr 01 02:57:26 worth a shot Apr 01 02:57:50 QubeZ: brilliant Apr 01 02:58:18 worked like a charm, thanks Apr 01 02:58:22 np Apr 01 02:59:30 * jmg casts Genocide on java **** ENDING LOGGING AT Sun Apr 01 02:59:58 2012