**** BEGIN LOGGING AT Sat Nov 03 03:00:01 2012 Nov 03 03:06:57 Is it possible to hide a menu action item dynamically? Nov 03 03:11:29 yes. keep a reference to it and call setVisible(false) Nov 03 03:12:19 Ahh should use autocomplete to figure out this trivial questions, thanks though! Nov 03 03:14:16 guys help, my codes aren't working!!! Nov 03 03:18:53 tdignan, call startWorking(); Nov 03 03:19:48 oh! Nov 03 03:20:02 nice thanks man. how do I get admob in there now? Nov 03 03:22:51 So I spotted a $90 7" Android "netbook" in convenience store today. With Android 4.0. Nov 03 03:23:15 wow Nov 03 03:23:49 What does style="@style/Theme.Sherlock" do as a menu item attribute? Nov 03 03:23:51 http://www.craigelectronics.com/site/pdetails.php?id=417 Nov 03 03:24:33 one android per child Nov 03 03:24:42 needs a hand-crank Nov 03 03:24:42 the device is kind of crap I'm sure... but it's the fact that even the low end guys are shipping ICS now :-) Nov 03 03:25:23 the screenshot shows Gmail... I wonder if that's legit. Nov 03 03:26:44 I was tempted to buy it just to tinker with it Nov 03 03:51:29 I have one menu action visible on load, two hidden. if the user selects something in the listview, the other two are supposed to show. however, calling invalidateoptionsmenu only keeps 1 visible space (the icon changes, but not all three are shown UNLESS invalidate options menu is called again, ie the user clicks again, then all three show) any idea why? Nov 03 03:52:18 lasserix, what do you have in onPrepareOptionsMenu? Nov 03 03:53:43 ahh well when the user clicks the listview row, a state member is set as not null, then invalidate is called. in prepare, if that state member is not null, i call setVisible(true) to the other two, if is null I call setVisible to false. Nov 03 03:54:00 By default it is false (since no row is initially selected) Nov 03 03:54:24 hmm Nov 03 03:54:36 sounds about right to me, not sure Nov 03 03:54:38 I just moved the same condition into the oncreateoptionsmenu to load an entirely different menu (one without the other two action, and one with it) depending if the state member is null but the same problem, only one visible position Nov 03 04:00:01 Is there some method I can call to clear the action bar menu actions? Nov 03 04:01:56 I want to edit one column of rows in my database Nov 03 04:02:04 I can figure out how to do this Nov 03 04:02:38 you mean update? Nov 03 04:03:20 sqlite is a separate topic. you've got to put the time in to learn basic sql. Nov 03 04:03:25 it's really fundamental Nov 03 04:03:29 don't use w3schools. Nov 03 04:03:33 i guess so. I want to perform a query first and find the rows which match some value Nov 03 04:03:49 then update those rows Nov 03 04:04:00 hmm, new platform versions out. GB still at 53% … will it be >50% into 2013 … the suspense ! Nov 03 04:04:04 Rusty, you can use { openDatabase(); ContentValues vals = new ContentValues(); vals.put(, , vals, "_id = " + , null); Nov 03 04:04:23 I'm using a SQLiteOpenHelper Nov 03 04:04:32 you can practice your sqlite stuff in a console Nov 03 04:04:37 just run the sqlite3 tool Nov 03 04:04:41 } update is a convience method of the database variable you use with SQliteOpenHelper Nov 03 04:04:44 finding this confusing because i'm learning SQLite and the android sdk Nov 03 04:05:02 download python and learn the syntax of SQLITE with python Nov 03 04:05:34 Do you understand how to do a query? Nov 03 04:06:02 lasserix: to some extent. It depends how advanced Nov 03 04:06:50 RustyShackleford: http://pastie.org/5175098 Nov 03 04:07:50 If you can't figure out how to write out a query select statement and apply it to a database in android, you might just play around with sqlite in python first Nov 03 04:07:58 http://shop.oreilly.com/product/9780596007270.do Nov 03 04:08:18 or just use the console. no need for python really. but, I do like python. Nov 03 04:08:32 But the confusing part is that you can directly apply sqlite statements to a database, or you can use android's api convience methods Nov 03 04:09:04 lasserix: yeah thats causing some confusing for me, converting sqlite to android's api Nov 03 04:09:19 which way is recommended? Nov 03 04:10:22 Really a matter of convience. For you I suggest learning how to do basic statements first so you know what's going on. Nov 03 04:11:08 ie you want to do find entries that match some criteria, well that's equivalent to finding one row that matches one criteria. which you should be able to do with a raw statement fairly easily and once you have that down the rest follows Nov 03 04:11:50 JakeWharton Nov 03 04:11:56 i think I have a decent grasp of creating the table and inserting rows, as well as querying for a match in each row Nov 03 04:11:57 wat Nov 03 04:12:30 not so good when the criteria get more complex Nov 03 04:12:34 g+ Nov 03 04:12:51 _id = ? AND/OR _id = ? etc etc Nov 03 04:14:08 And if you are searching through text within a column you may want to use something called FTS i think Nov 03 04:14:25 RustyShackleford: learn WHERE clauses Nov 03 04:14:56 Also try asking in the sqlite channel, some friendly helpful folks in there Nov 03 04:15:21 this place has a channel for everything Nov 03 04:15:46 canadiancow: Nov 03 04:20:38 can I pull my app's database from my (unrooted) phone? Nov 03 04:20:44 yep Nov 03 04:20:58 not through eclipse I don't think Nov 03 04:21:17 *oh sorry you said unrooted no Nov 03 04:21:47 but you can use sqliteviewer and do the commands via python/console to check its working correctly Nov 03 04:22:40 thats the plan Nov 03 04:22:54 this database has me pulling out my hair Nov 03 04:23:09 RustyShackleford: adb shell, run-as your.package, cp database.db /mnt/sdcard Nov 03 04:23:14 it doesn't help at all that the files are horribly formatted Nov 03 04:23:28 http://marketplace.eclipse.org/content/cellobject-sqlite-xml-browser#.UJScJRIy1hE Nov 03 04:23:30 this is handy Nov 03 04:23:32 for eclipse users Nov 03 04:23:37 you can browse SQLite DBs Nov 03 04:24:19 Are there bugs with settings visibility on actionbar items? Nov 03 04:24:23 doogan: is that just for the emu ? Nov 03 04:24:29 *known bugs Nov 03 04:24:36 or rooted afaik Nov 03 04:25:07 doogan: ok, cool. i was going to work on one that didn't require root Nov 03 04:25:23 yeah, no reason to root Nov 03 04:25:23 the idea was similar to the hierarchy viewserver Nov 03 04:25:32 the database is accessible by your app Nov 03 04:26:08 export a database on a non-rooted phone without adb: https://gist.github.com/3999507 Nov 03 04:26:37 do you guys root your devices? Nov 03 04:26:45 i'm too much of a pussy Nov 03 04:26:45 mine is rooted Nov 03 04:27:00 i need my phone to work Nov 03 04:27:08 I know what I'm doing :) Nov 03 04:27:28 tdignan: have you bricked any? Nov 03 04:27:30 no Nov 03 04:27:51 mine isn't rooted Nov 03 04:27:57 just make sure you know what you're doing. don't run some random code you got on mediafire if it's a binary blob Nov 03 04:28:12 lots of 'rooting' tutorials have links to sketchy downloads Nov 03 04:28:21 also the last time I looked, there weren't very many roms for my phone Nov 03 04:28:38 and I got an ICS update, so I;m not complaining Nov 03 04:28:39 g00s: opinion on the HTC 8X? Nov 03 04:29:04 are there any small android devices that run ICS/Jellybean? Nov 03 04:29:25 Leeds: dunno, maybe this will help http://www.theverge.com/2012/11/2/3590464/this-is-not-my-next-htc-windows-phone-8x-google-nexus-4 Nov 03 04:29:34 my Motorola Razr is too big Nov 03 04:29:56 wait Nov 03 04:30:02 g00s: yeah, but I meant *your* opinion :) I'm certainly not going to buy one, but it looks like HTC want to give me one... Nov 03 04:30:17 i meant this http://www.theverge.com/2012/10/30/3575574/this-is-my-next-windows-phone-8x Nov 03 04:30:22 oh, i dont have an opinion on that Nov 03 04:30:47 kinda wondering if the WSJ was right about a surface phone Nov 03 04:30:52 I'm thinking sell it and get an N4 Nov 03 04:31:31 Leeds: how did you get HTC's attention :) Nov 03 04:31:54 there are ways... Nov 03 04:32:22 also got a playbook here I need to dispose of :) Nov 03 04:32:32 heh Nov 03 04:32:57 i'm still trying to figure out how in the hell to buy a w8 iso to load into a vm Nov 03 04:33:02 except the nice slip-case, which I'm keeping for my N7 Nov 03 04:34:17 it was interesting to read about the N4 and why google didn't do LTE Nov 03 04:34:59 is there actually a "reason" Nov 03 04:35:03 yeah, although it would be more interesting from the horse's mouth... not that I think the reports are wrong, but they're still analyses, not reasons Nov 03 04:35:10 i saw inferences drawn from vague statements made by a googler Nov 03 04:36:19 whatever is on the verge is fact Nov 03 04:36:22 * g00s runs Nov 03 04:37:28 "Failed to pull selection" Nov 03 04:37:41 i could pull this file from an emulator before Nov 03 04:38:18 you cant from an unrooted phone (still?) i think your app needs to xfer to sdcard / external storage; and then you need to adb pull it from there Nov 03 04:38:30 or use that eclipse extentsion posted above Nov 03 04:38:40 there is a semi-secret adb option to run as an app Nov 03 04:38:52 Leeds: really? please do tell Nov 03 04:39:04 this file is on an emulator, I'm not trying to pull it from my phone Nov 03 04:39:04 run-as package Nov 03 04:39:23 ah, yeah... shell command, not adb Nov 03 04:39:33 oh, cool ! Nov 03 04:40:02 not secret as such, just not well-known Nov 03 04:41:11 "run-as will only work if you are already root or if you connect via adb shell" Nov 03 04:41:17 >.> Nov 03 04:41:28 and now it works Nov 03 04:41:33 wtf is going on here Nov 03 04:46:19 The thing is working with computers processing instructions, everyonce and a while the path of execution takes a trip through a parallel reality where functioning code doesn't work as expected. Kinda like how an electron in your eyeball has a very small, but non trivial chance of being in the sun. This is why reseting is the number one way to fix most computer related problems. Nov 03 04:49:48 ok, so run-as seems to work all the way back to froyo. i guess if you are not root, you have to run it from adb shell and the package has to be debuggable Nov 03 04:49:52 cooooool Nov 03 04:51:38 So, if you were going to have a bunch of images you wanted displayed exactly like the system gallery... what would you do? Nov 03 04:51:50 Please tell me there's some way to re-use the gallery instead of rolling my own. Nov 03 04:51:59 thanks Leeds / JakeWharton , this is going to save me a ton of time. all this time i was doing it the crazy way Nov 03 04:59:10 adobe … oracle … you guys suck http://thenextweb.com/microsoft/2012/11/02/microsofts-security-team-is-killing-it-not-one-product-on-kasperskys-top-10-vulnerabilities-list/ Nov 03 05:04:39 aoclown: i'd just put them in a viewpager. Nov 03 05:04:51 there is a Gallery class, though. Nov 03 05:05:06 Isn't that deprecated in favor of viewpager? Nov 03 05:05:12 probably Nov 03 05:05:38 ViewPager can do pinchzoom? Nov 03 05:05:41 Or I have to implement it? Nov 03 05:05:58 you would probably implement that inside whatever view you put in the viewpager. Nov 03 05:06:17 True. Nov 03 05:06:30 can webview do pinch zoom? Nov 03 05:06:31 :) Nov 03 05:06:38 Puke. Nov 03 05:16:27 hello! Nov 03 05:19:57 anyone around who can help me get started developing ;) Nov 03 05:20:47 I'm using my own subclass of SQLiteOpenHelper and getting errors while trying to upgrade Nov 03 05:21:03 I have an empty onUpgrade() method Nov 03 05:21:07 what belongs there? Nov 03 05:22:41 Rusty I'm not sure but I've seen people basically drop existing table and add in the new updated one Nov 03 05:22:47 its schema migrations Nov 03 05:23:00 eg, I added a new column and I need to set some values the first time we run it Nov 03 05:23:30 I'm following http://developer.android.com/training/basics/firstapp/building-ui.html but I seem to get "span_exclusive_exclusive spans cannot have a zero length" when I type stuff in the edittext -- anyone have a clue? Nov 03 05:24:30 lasserix: I only want to add values to existing items Nov 03 05:24:44 the column exists already, all values are null Nov 03 05:25:09 do i really need to reconstruct the whole table? Nov 03 05:27:56 No Nov 03 05:28:46 But I think ron_frown was suggesting you'd add those values in the onUpgrade Nov 03 05:32:22 hi, any idea where playstore app temporary files are saved and if there is a way to clear them without restarting my phone ? Nov 03 05:36:03 go into app details and clear data Nov 03 05:36:09 but what are you trying to do? Nov 03 05:43:48 canadiancow: no thats not what i meant, i explained it the wring way Nov 03 05:44:29 i meant, when i download an app for example of 20 MB for the play store, evne if i move it to sd, the internal mem is still adding the 20 MB to the used space Nov 03 05:44:32 man, I hate it when the ISP asks me to pay the bill Nov 03 05:44:32 why can't it just be free Nov 03 05:44:42 until i restart then the 20 MB are counted in the free space Nov 03 05:45:04 i am asking about those 20 MB tmp files Nov 03 05:45:17 if i can remove them without restart Nov 03 05:48:27 application data is usually stored in /data/data/ Nov 03 05:48:35 but you're not supposed to rely on that. Nov 03 05:49:32 tdignan: /data/data/ is where the actual app is stored, i dont want to delete it ! i want to clear the tmp files only Nov 03 05:53:01 how can i make android to "NEVER TIMEOUT" the screen through setprop Nov 03 05:53:04 is it possible Nov 03 05:53:11 i just have an adb connection Nov 03 05:56:05 rsv: u can do it in the manifest (something like android:permission="android.permission.WAKE_LOCK") but i managed to do it thru this API call : .setKeepScreenOn(true); for a view instance Nov 03 05:56:35 asterisk-Tester: what does that do android:permission="android.permission.WAKE_LOCK" Nov 03 05:56:57 asterisk-Tester: temporary files, databases, and assets are all stored there Nov 03 05:57:45 asterisk-Tester: i did not understand that statment, will it hold a wakelock Nov 03 05:59:58 tdignan: yes for this specific application, but i found what i was looking for it was the /cache/data, I can use this tool it seems : https://play.google.com/store/apps/details?id=mobi.infolife.cache&hl=en Nov 03 06:00:07 cool Nov 03 06:00:15 rsv: try setprop hw.nopm true Nov 03 06:00:55 tdignan: i can keep a suspend wakelock on Nov 03 06:00:59 rsv: just google android.permission.WAKE_LOCK if you want to use the manifest file, else just use the api function i told u abt Nov 03 06:01:20 but the problem is early suspend. it blanks the screen out. i want someway to control that Nov 03 06:03:05 rsv: are you doing this for just your own purposes, or is it in your app? Nov 03 06:03:25 if you're writing an app, you should use the PowerManager. Nov 03 06:03:28 my own purpose, i dont know how to write java apps Nov 03 06:03:31 ok Nov 03 06:03:43 did you try my suggestion of disabling powermanagement outright? Nov 03 06:04:06 yes Nov 03 06:06:18 yeah, it doesn't work here either Nov 03 06:06:20 i just tried it Nov 03 06:06:24 something I found on google Nov 03 06:08:59 tdignan: yes that doesnt make screen to not timeout Nov 03 06:30:22 you don't need a wake lock to keep the screen on Nov 03 06:30:26 you can do it with a window flag Nov 03 06:32:24 asterisk-Tester: if i want to do it "android.permission.WAKE_LOCK" which file i need to update Nov 03 06:32:55 I don't have to worry about DPI if I use relative width and height in making icon's and images? Nov 03 06:33:16 rsv: the manifest file : AndroidManifest.xml Nov 03 06:33:25 I found a guide on producing icons with inkscape, and it says just to set width/height to 98 78 etc etc and not worry about dp Nov 03 06:34:48 asterisk-Tester: there are so manu AndroidManifest.xml files in the sources Nov 03 06:35:44 rsv : how come? To my knowledge each android project has only 1 manifest file Nov 03 06:35:53 lasserix: inkscape is a vector graphics editor, so it can produce high quality images at any resolution.. Nov 03 06:36:04 rsv: ru building from scratch or using a sample project Nov 03 06:36:18 im building it from scratch Nov 03 06:51:29 sampullman: have you used it to make graphics for android? I'm just a little confused on how to export whatever I've created. Do I target resolution and then resize it in gimp, or do I target width/height and not worry about the resolution? Nov 03 06:53:22 I have Nov 03 06:53:46 here's the thing. Just because it's a vector graphic doesn't mean it will look good at small scale Nov 03 06:53:55 you need to design them at a reasonable resolution Nov 03 06:54:05 like the tutorial you're reading suggests Nov 03 06:54:28 so goto document properties and crank the resolution, then export them at whatever size? Nov 03 06:54:36 basically Nov 03 06:55:18 I was under the impression for x/h/m/l dpi you are supposed to "control" the resolution? Nov 03 06:55:28 you need to export a separate png for each of those. Nov 03 06:55:46 there are design guidelines on d.android.com Nov 03 06:55:48 only for those you plan to support Nov 03 06:55:51 right, i am not so confused now thanks Nov 03 06:56:22 design at high resolution, export as per recomended design guide sizes for the different resolution types Nov 03 06:56:30 you don't need to supply ldpi assets anymore Nov 03 06:56:46 what about smart watches? ;p Nov 03 06:57:03 lasserix: design at too high a res and when you shrink it it won't work. It will of course, shrink to scale, since it's vector, the problem is some art that looks good at high res, does not work at low res, just to the human eye. Nov 03 06:57:06 they are ldpi? Nov 03 06:57:12 ldpi != small screen size Nov 03 06:57:13 rsv: u should have only 1 androidmanifest.xml file then :-) Nov 03 06:57:19 it would matter less if you use a pencil or an svg... Nov 03 06:57:24 it's about the visual aspect Nov 03 06:57:38 i learned that the hard way Nov 03 06:57:55 lasserix: don't use the doc resize to get the right output dimensions Nov 03 06:58:05 JakeWharton: yeah I just imagine a minimal physical device would not necessary want high resolution at the cost of extra battery or whatever comes with higher density displays Nov 03 06:58:06 export bitmap is what you're looking for Nov 03 06:58:14 ^ Nov 03 06:58:22 right Nov 03 06:58:40 asterisk-Tester: every project has an AndroidManifest.xml Nov 03 06:58:40 I just use doc properties to crop the page to selection before exporting Nov 03 06:58:50 thanks everyone I understand it now Nov 03 06:58:51 you can do that in the export dialog Nov 03 06:58:54 nah, you can do that all from export bitmap Nov 03 06:59:01 you should set up your document properties to work the same for all your work Nov 03 06:59:09 you set it up once at the beginning of your session. Nov 03 07:00:17 rsv: exactly one xml per project Nov 03 07:00:49 rsv: wait, by "make android to "NEVER TIMEOUT" the screen through setprop" I understood for a specific application, did u mean system wise whatever app is running ? Nov 03 07:01:06 so which project i need to update Nov 03 07:01:20 asterisk-Tester: yes Nov 03 07:01:46 asterisk-Tester: i just want the screen to never dim Nov 03 07:02:15 rsv: i never did that, dont think it is possible without modifying android source code... Nov 03 07:02:43 asterisk-Tester: okay tell me which AndroidManifesl.xml file i should modify Nov 03 07:03:52 AndroidManifesl.xml is per applciation, meaning if that specific app is running the screen wont dim, if this is ok with you then modify the xml of that specific app Nov 03 07:04:22 devs: would be possible to take pictures that are not compressed jpgs? Nov 03 07:04:30 like uncompressed raw files or something similar Nov 03 07:04:49 okay which project contains the "SETTINGS->display" options Nov 03 07:10:47 i have the latest sdk and ndk however when i try to compile the sample nativeaudio project i am getting : error: ‘bqRecorderBufferQueue’ undeclared (first use in this function), any ideas ? Nov 03 07:13:02 asterisk-Tester: check imports? Nov 03 07:14:45 anddam: using eclipse : paths and symbols -> GNU C (as the file is .c) -> /platforms/android-9/arch-arm/usr/include same for x86 Nov 03 07:19:34 anddam: and the import on sdk side is android 10 as android 9 is obsolete Nov 03 07:32:14 is there any kind of view that's the display equivalent to just
? Nov 03 07:33:01 a webview :) Nov 03 07:33:12 half serious half joking here Nov 03 07:33:20 did you know they can even be transparent Nov 03 07:34:04 i just looked up
on w3schools :) Nov 03 07:34:14 tophyr: you just want a line ? Nov 03 07:34:36 all hr did here was make a line http://www.w3schools.com/tags/tryit.asp?filename=tryhtml_hr_test Nov 03 07:34:45 hehe Nov 03 07:35:03 is about the best i can come up with at the moment Nov 03 07:35:08 and that ain't exactly elegant Nov 03 07:35:26 g00s: a line and maybe some shadow if we're feeling fancy ;) Nov 03 07:35:45 dunno what is Nov 03 07:35:53 just a graphical separator between top and bottom of the fragment, really Nov 03 07:35:55 g00s: http://w3fools.com Nov 03 07:36:07 Space is what it sounds like; a spacer ;) Nov 03 07:36:18 linearlayout as of api13 or something had some sort of divider Nov 03 07:36:27 same as Nov 03 07:36:49 ListView has dividers by default Nov 03 07:37:01 android:divider Nov 03 07:37:03 but focus inside there can be weird Nov 03 07:37:29 but anyhow, all i did on froyo was make a view with a bg of a 9 patch Nov 03 07:37:30 android:divider goes between each child, however Nov 03 07:37:40 could next LL's but that seems awful as well Nov 03 07:37:46 s/next/nest/ Nov 03 07:37:56 the 9 patches - standard dividers can be found in the sdk install tree Nov 03 07:38:06 tophry just make a drawable xml that is a shape with a gradient Nov 03 07:38:18 in your layout you can dimensionalize it Nov 03 07:38:27 that's a good idea Nov 03 07:38:37 plain View, set background on it? Nov 03 07:38:41 yeah Nov 03 07:38:48 believe we have a winner Nov 03 07:38:56 you can also tweak the alpha to make it look more flush Nov 03 07:45:05 argh finally got my desktop running again Nov 03 07:52:49 anyone read any of don norman's design books? they seem like classics, but some of them are kinda old Nov 03 08:09:07 canadiancow: what is a desktop :P Nov 03 08:17:31 asterisk-Tester: can't really help, mine was just a guess Nov 03 08:18:01 anddam: oh ok, i thought u managed to compile it and run it Nov 03 08:19:16 asterisk-Tester: I'm not familiar with the sample at all, but what you said "bqRecorderBufferQueue" sounds suspicious Nov 03 08:19:27 is that really supposed to be bqRecorder? Or bgRecorder? Nov 03 08:20:27 JesusFreke: hehe, this post http://visualgdb.com/tutorials/android/native-audio/ suggest turning off the offending line, but that created more problem for me Nov 03 08:20:30 Does anyone know how good are the Windows Phones 8? How do they compare against the Galaxy S III? Nov 03 08:21:13 Gavilan2: what is windows ? :-p Nov 03 08:22:24 asterisk-Tester: that hole that connects you to the street Nov 03 08:22:46 does anyone knows if this is legal C code ? static const char hello[] =#include "hello_clip.h"; (taken from native-audio android ndk sample) Nov 03 08:23:02 it's unusual. but valid Nov 03 08:23:13 asterisk-Tester: nope, that's invalid Nov 03 08:23:28 well, assuming that whatever is in hello_clip.h fits at that point in the program, at least. Nov 03 08:23:42 but... if you were to put a new line in the middle, it might be valid... i don't think so, but it might... Nov 03 08:23:43 asterisk-Tester: I guess you have to say the specs you are referring to whlie saying "valid" Nov 03 08:23:45 I know gcc is the compiler but eclipse is giving me warning abt it (might be wrong) Nov 03 08:23:55 preprocessor should subst there the content of file Nov 03 08:24:04 JesusFreke: the # must be next to a new line Nov 03 08:24:28 yes it is indeed on a new line but in my copy paste it came on the same Nov 03 08:24:29 one Nov 03 08:24:35 hmm. yeah, I think you're right Nov 03 08:24:37 Gavilan2: so would it be valid with a newline between assignment and #? Nov 03 08:24:40 good catch :) Nov 03 08:24:56 anddam: I don't know... You'd need to read the standard... Nov 03 08:25:10 anddam: It could be valid, given that the preprocessor is executed before the language parser.... Nov 03 08:25:19 but we don't know which standard are we talking about Nov 03 08:25:32 anddam: but i don't know for sure... :) it has a really high chance of being valid, but I can't assure it.... Nov 03 08:25:40 anddam: ISO C99 Nov 03 08:25:40 the standard that gcc accepts? :) Nov 03 08:25:52 or whatever compiler you are using Nov 03 08:25:56 I'm on clang Nov 03 08:26:12 ah, so you actually get reasonable error messages then Nov 03 08:26:18 :) Nov 03 08:26:20 gcc / android ndk build tool is complaining abt it ! Nov 03 08:26:25 so when building software that assumes gcc error levels matter Nov 03 08:26:53 JesusFreke: indeed, clang is very good at that Nov 03 08:27:41 the idea they have is that hello_clip.h contains just a bunch of array data : ""\x00\x00\xfd\xff\..." Nov 03 08:27:46 yeah, I've had a few error messages where I was quite surprised (in a good way) by the error message Nov 03 08:29:54 anyone here use andengine? Nov 03 08:30:30 asterisk-Tester: you're searching info about the warning, right? you don't have an actual error Nov 03 08:30:41 Bear10: I built it and examples, nothing more Nov 03 08:30:46 ah Nov 03 08:30:47 darn Nov 03 08:30:57 i was looking for someone who's done a platformer or things dealing with slopes Nov 03 08:31:01 that's what you get for an "anyone?" question ;) Nov 03 08:31:02 anddam: yes, i do have an error : ../jni/native-audio-jni.c:53:1: error: stray ‘#’ in program Nov 03 08:31:07 using latest gcc in ubuntu 12 Nov 03 08:32:02 any idea how I could correct this without modifying the sample code ? Nov 03 08:33:44 g00s, its this big thing under my desk Nov 03 08:33:51 its cheap and pwoerful Nov 03 08:34:18 twss Nov 03 08:34:25 My brain hurts. Nov 03 08:34:38 I think I have to write a gallery. Nov 03 08:34:44 And I'm not excited about it. Nov 03 08:34:51 is anyone else having problems buying from google play? Nov 03 08:34:55 i cant buy any music Nov 03 08:34:57 i keep getting errors Nov 03 08:35:58 canadiancow: I'll give you $5 to give me a gallery component. Nov 03 08:36:22 what? Nov 03 08:36:46 It needs to have long-press drag-'n-drop re-ordering. Swipe up delete swipe left/right navigate. Nov 03 08:37:11 $5 Nov 03 08:37:21 ... Nov 03 08:37:35 That's $5 man. Nov 03 08:37:44 You can buy at least a pack of gum with that. Nov 03 08:37:59 I just don't want to start :( Nov 03 08:38:47 lol man $5 Nov 03 08:38:56 you realize if you google hard enough it's out there Nov 03 08:39:01 It may be. Nov 03 08:39:15 do I get the $5 if all I do is a google search?: Nov 03 08:39:48 Only if it does everything and I can copy paste it. Nov 03 08:39:52 :D Nov 03 08:40:47 https://github.com/Dreddik/AndroidTouchGallery Nov 03 08:40:49 where's my $5 Nov 03 08:41:25 try it, if it works pay.tom.dignan@gmail.com (paypal) Nov 03 08:41:39 This better not suck. Nov 03 08:41:52 I looked at it for 5 seconds, so I'm sure it's rock solid Nov 03 08:42:04 no, don't flash your email that way. do it in PM Nov 03 08:42:08 someone could abuse it Nov 03 08:42:18 how are they going to abuse it? Nov 03 08:42:21 Hahah. Nov 03 08:42:26 my emails are all over the internet Nov 03 08:42:38 ohh, sorry to hear that Nov 03 08:42:49 I don't get any abuse... Nov 03 08:42:56 besides, gmails spam filtering is top notch. Nov 03 08:43:01 ok Nov 03 08:43:01 ^ Nov 03 08:43:22 now that you mention it though, time to update passwords. Nov 03 08:46:54 I should do that one day soon. Nov 03 08:47:45 Oh god tdignan.. Nov 03 08:47:49 It's using an api level I don't have. Nov 03 08:48:01 And eclipse is being a hoebag. Nov 03 08:48:09 This example better be amazing... Nov 03 08:49:45 ugh i bought a new router, and not only did i not realize it's not gigabit, it also seems to be screwing with my sip phone :( Nov 03 08:51:30 aoclown: are you not using the compatibility library? Nov 03 08:51:39 tdignan: Am. Nov 03 08:51:48 what API level is it using that you don't have? Nov 03 08:51:51 Just got some ugly problem when it loaded the code in eclipse. Nov 03 08:51:52 8 Nov 03 08:52:01 what is this 'ugly problem'? Nov 03 08:52:28 Sec. I'm rearraging his stuff so it's all in the example project so it's usable lol. Nov 03 08:52:31 you have 8. don't worry about it. you can build against 16 and support 8. Nov 03 08:52:37 Yea Nov 03 08:52:40 I thought so. Nov 03 08:52:48 [2012-11-03 17:45:49 - ru.truba.touchgallery.GalleryActivity] Unable to resolve target 'android-8' Nov 03 08:52:56 Just didn't know why I got that in console is all. Nov 03 08:53:17 canadiancow: could it be because you moved ? Nov 03 08:53:18 project.properties, fix target Nov 03 08:53:23 Kty Nov 03 08:53:45 JesusFreke: still there? Nov 03 08:53:53 g00s, no, its the router Nov 03 08:54:00 because i had another one until a few hours ago Nov 03 08:54:07 buti t had other problems (no 5GHz, and it was reoboting) Nov 03 08:54:20 canadiancow: k. i've heard of people moving around and getting screwed by play/itunes/amazon Nov 03 08:54:20 g00s: ayup Nov 03 08:54:27 oh that issue Nov 03 08:54:33 no its been working fine Nov 03 08:54:33 JesusFreke: smali uses antlr, correct ? Nov 03 08:54:37 g00s: yes Nov 03 08:54:46 have you played with antlr v4 yet ? Nov 03 08:54:50 nope Nov 03 08:54:54 k Nov 03 08:55:23 Sick tdignan, there's only 36 errors. Nov 03 08:55:24 lol. Nov 03 08:56:34 Does anyone know if I can use glCreateShader while drawing on the screen using another shader? Nov 03 08:58:35 Hm?> Nov 03 08:58:40 Anyone> Nov 03 08:58:42 ?* Nov 03 08:59:55 ????? Nov 03 09:00:17 Maybe no one knows D: Nov 03 09:00:27 Awesome... Nov 03 09:00:37 Stupid OpenGL ES documentation... Nov 03 09:00:51 They don't state all the limitations. Nov 03 09:00:55 :( Nov 03 09:01:35 I need to find a workaround Nov 03 09:02:02 aoclown: i think the error is probably PEBKAC Nov 03 09:02:33 tdignan: It's just stupid build errors. Java 7 constraints, as well as import fails etc. Nov 03 09:03:11 fix them in the project properties Nov 03 09:03:17 I thought about it. Nov 03 09:03:22 But. I think I might write my own. Nov 03 09:03:24 I looked at his code... Nov 03 09:03:27 Looks simple enough. Nov 03 09:03:46 He's got a bunch of cruft I don't need for networking and what-not. Nov 03 09:04:00 Since he wants to load images from networked urls. Nov 03 09:04:20 hello everyone!! Nov 03 09:04:25 So first I'd have to understand his code and all this jank. Probably easier to just deal my own. Nov 03 09:04:45 I really need to understand ViewPager a lot better before I do this though. Nov 03 09:05:03 Android emulator is not booting up on 64-bit Ubuntu with 64-bit eclipse. Nov 03 09:05:12 Even tried it with ia32-libs Nov 03 09:06:42 shit ! I was using make instead of ndk-build !!! now the project compiles fine ! Nov 03 09:06:44 FireAndIce, give us more details Nov 03 09:06:53 hah :) Nov 03 09:06:54 wht errors? Nov 03 09:15:26 aoclown: i forked this and already fixed the compile errors and restructured it into a library project Nov 03 09:15:29 https://github.com/tom-dignan/AndroidTouchGallery/ Nov 03 09:17:38 yep, compiling and working here. Just needs some pinch-to-zoom tweaking Nov 03 09:18:32 tdignan: Does it suck? Or is it super nice? Nov 03 09:18:55 Would you consider it quality enough to be an android core component? Or does it jitter and do weird crap like most of the open source components I've found? Nov 03 09:21:09 its a bit choppy, the pinch to zoom needs work Nov 03 09:21:18 but if you think you'll do better from scratch you're nuts Nov 03 09:21:25 better work with something to start Nov 03 09:22:10 it does also load urls for you :D Nov 03 09:22:18 tdignan: You sure? I mean... It's nice that it's a component and everything. But I have to rip out all the url garbage Nov 03 09:22:29 ViewPager doesn't look too hard to work with. Nov 03 09:23:17 Does anyone know how tot use queueEvent from GLSurfaceView Nov 03 09:23:18 ?? Nov 03 09:23:37 Hi Nov 03 09:24:01 Can you all see this? <- Nov 03 09:24:04 tdignan: ViewPager is doing 90% of what I need already. I don't even want pinch zoom in the current view. Nov 03 09:24:08 Freezingwind: See it. Nov 03 09:24:29 tdignan: I need to add "up" fling, and drag and drop crap which may very well be impossible and is the lion's share of the work. Nov 03 09:24:35 Awesome, okay I registered okay. Im using this crap javascript irc instead of having mirc or etc. Nov 03 09:25:07 Anyone know how to get boot sound to work on miui jellybean? Nov 03 09:29:44 aoclown: the url thing is a seperate class Nov 03 09:29:58 if you look for a second, there's also GalleryAdapterView Nov 03 09:30:06 Yeah, I saw it. Nov 03 09:30:20 But it just seems like he hasn't done anything useful that I need outside of what ViewPager does already. Nov 03 09:30:26 That's all I'm saying. So I still have to do all the work anyways. lol. Nov 03 09:30:28 it has pinch to zoom. Nov 03 09:30:50 there's tons of work done in there related to image scaling Nov 03 09:30:57 you must not have looked very carefully Nov 03 09:31:07 I'm already doing my own image scaling. Nov 03 09:31:10 :\ Nov 03 09:31:15 with pinch to zoom? Nov 03 09:31:35 this scales the image based on your pinching... Nov 03 09:31:47 I doubt you wrote that code already, since you were asking about the rudiments of scaling an image earlier. Nov 03 09:32:15 but anyway, good luck going from scratch Nov 03 09:32:26 i'm going to make bacon and eggs Nov 03 09:32:29 Haha Nov 03 09:32:38 I didn't see what he had 100% no Nov 03 09:32:42 o-o anyone know an answer to my question? Nov 03 09:32:47 And I hadn't implemented pinch to zoom or anything yet. Nov 03 09:33:04 But I just don't think there's that much re-usable stuff there. And if there is, I can borrow it later according to his license. Nov 03 09:33:41 Also, it sounds like I'll be better off rewriting the pinch to zoom code anyways, since you said it needs work. Nov 03 09:33:49 I want to extend ListActivity and MapActivity in one activity, how do I do this? Inner class? Nov 03 09:33:54 o-o Nov 03 09:34:00 What's the point of borrowing code if you have to fix every single thing, and code in a ton of missing features? lol. Nov 03 09:35:59 Anyone know how to get boot sound to work at all? Nov 03 09:42:19 Has anyone worked with Andengine and the physics box2d to get slope working? Nov 03 09:50:05 aoclown: good luck man! Nov 03 09:50:18 I've seen the light. You can walk the path of darkness alone. Nov 03 09:50:34 hello everyone. I have this xml here http://pastebin.com/kHB5USNJ and the textview is shown perfectly when user changes the value of the seekbar, on an android with version 4.0. however on an android with 2.2 the textview does not show up when the user changes the value of the seekbar. can you help me please? Nov 03 09:50:44 19 minutes and I made bacon, eggs, coffee, toast, and did all my dishes Nov 03 09:50:51 BOOYAH Nov 03 09:56:48 sigh, 19 minutes to prepare, only 6 to eat Nov 03 09:57:52 eat less, its a good way to become thin Nov 03 09:57:57 ;) Nov 03 09:59:12 i have been Nov 03 09:59:22 staying up all night and eating little while I code Nov 03 09:59:33 then I get super hungry and have to eat so I make bacon and eggs Nov 03 09:59:49 :( Nov 03 09:59:55 whats so unhappy about that? Nov 03 10:00:18 eat fruit and veggies Nov 03 10:00:19 ha Nov 03 10:00:25 I ate bananas all night man Nov 03 10:00:27 so, what are you coding? Nov 03 10:00:40 do you have any ideas about the problem I posted? :( Nov 03 10:00:41 cpu monitor: http://github.com/tom-dignan/android-cpumonitor Nov 03 10:00:51 I started it in march but I just picked it back up Nov 03 10:01:20 it's got most of the hard stuff done. The rest is just neatening stuff and making a nice layout Nov 03 10:01:41 at least until I add processes to it. Nov 03 10:01:45 that will be a bit hard Nov 03 10:02:14 nice Nov 03 10:04:40 :) thanks Nov 03 10:04:52 tdignan: I'd love to be able to re-use his code man. But there's nothing there I can re-use :( Nov 03 10:05:04 you can probably reuse his ImageView subclass Nov 03 10:05:41 if it doesn't suit your needs i'd say look more. maybe there is one in "Ignition" Nov 03 10:05:52 worst case you should rip it out of AOSP Nov 03 10:05:56 carefully Nov 03 10:06:06 I was actually thinking of taking AOSP's gallery part. Nov 03 10:06:13 Seems like that would be a LOT of trouble though. Nov 03 10:06:29 Possibly the most ideal ending though. Nov 03 10:06:36 Sorry for posting this again but it got lost through the dialog. I can't seem to find a solution...I have this xml here http://pastebin.com/kHB5USNJ and the textview is shown perfectly when user changes the value of the seekbar, on an android with version 4.0. however on an android with 2.2 the textview does not show up when the user changes the value of the seekbar. can you help me please? Nov 03 10:06:51 you can always use it as a reference impl while you write your own Nov 03 10:07:21 dioHere: android:max? Nov 03 10:08:01 tdignan: it declares the maximum value for the seekbar Nov 03 10:08:09 Yeah. I was thinking of stealing theirs. I'm all for reuse trust me man. I just don't see enough value in his to learn my way around his code, extract the necessary bits, etc. I don't want to be "that guy" in your books lol. Nov 03 10:08:18 dioHere: hm, lousy attribute name Nov 03 10:08:29 I use seekbars in one of my projects and I've never used it Nov 03 10:08:40 Stealing their image scaling* Nov 03 10:09:22 tdignan it's the same as saying seebar.setMax(72); Nov 03 10:09:51 I guess I never saw a point in setting a max value other than 100 Nov 03 10:09:58 i'm big on decimal Nov 03 10:10:15 dioHere: anyway, the problem isn't in your xml Nov 03 10:10:20 you will need to share java code Nov 03 10:15:10 aoclown: https://github.com/MikeOrtiz/TouchImageView Nov 03 10:15:18 that one has a lot more followers. Nov 03 10:17:33 tdignan: here is the updated version. I hope I didn't forget to paste something in the code. http://pastebin.com/r5YixfBu Nov 03 10:18:06 tdignan: as you can see the view is inside an alert window Nov 03 10:21:32 tabs.. Nov 03 10:22:04 tdignan what do you mean? Nov 03 10:22:12 you should configure eclipse to replace tabs with spaces Nov 03 10:22:21 so your code is readable outside of your editor Nov 03 10:23:21 how about putting a Log.d statement before setText() Nov 03 10:23:39 or setting a breakpoint on line 36 Nov 03 10:23:42 and then trying it Nov 03 10:25:19 tdignan I had set a breakpoint and I saw that the code goes through the line perfectly. As I said it works correctly on a phone with 4.0 but on a phone with 2.2 the textview does not show up. Instead on 2.2 when the user changes the value of the seekbar, the notification bar shows up for a second and then disappears. It is very very strange.. Nov 03 10:30:16 the notification bar... Nov 03 10:30:35 I had a similar weird problem changing a textview but it was inside of a system alert window Nov 03 10:31:38 tdignan: do you think that there is a solution for that? or can you guess a reason why that happens? Nov 03 10:34:58 dioHere: anyway, I had a similar problem before, but it was with displaying a custom system alert window. I fixed it like this: http://pastie.org/5176056 Nov 03 10:35:13 by showing the system alert window from post to the event queue... Nov 03 10:35:35 i don't know if maybe that could be a related thing. If you see the breakpoint getting hit.. maybe try posting it to the textview's event queue Nov 03 10:37:27 so the post should be inside the alert window is it? I have a toast and I can see that the value is changing correctly. It just not show the textview, but instead the notification bar. Nov 03 10:41:15 you've built clean, right Nov 03 10:41:41 tdignan of course... Nov 03 10:41:45 instead of setText, try posting a runnable that sets the text later Nov 03 10:42:07 is the textview inside or outside of the alert dialog? Nov 03 10:42:31 it is inside the alert dialog Nov 03 10:42:37 and it's not working???? man Nov 03 10:42:42 you'd think that'd work Nov 03 10:42:53 I am going crazy here :P Nov 03 10:43:21 the breakpoint proves settext is being called? Nov 03 10:43:30 what if you set text in xml, do you at least see that? Nov 03 10:43:52 try calling invalidate() on it Nov 03 10:44:02 tdignan no I can't see it. even if setting text in xml Nov 03 10:45:03 maybe it's just a layout issue as you mentioned Nov 03 10:45:13 let me take another look at that Nov 03 10:45:46 no invalidate is not working... Nov 03 10:46:41 i didn't realize you hadn't ruled out xml Nov 03 10:46:48 are you sure the seekbar isn't just pushing it off the screen!? Nov 03 10:46:52 because that's what it looks like Nov 03 10:47:03 you have it set toRightOf seekbar, and then that's 100dp Nov 03 10:47:22 your inner relativelayout is useless, you should use only one layout to nest this Nov 03 10:47:30 and android:orientation is not an attribute of RelativeLayout Nov 03 10:47:42 coffee is just hitting me now :) Nov 03 10:49:14 tdignan if android:orientation is not a property of the relativelayout why is it letting me to use it? The outside linearlayout will be used for other things, after the solution of this problem Nov 03 10:49:27 dioHere: it's not. if you don't believe me check the docs Nov 03 10:49:33 don't expect the ide to nanny you on everything Nov 03 10:49:54 no I believe you. It's just strange that it is letting me to use it Nov 03 10:49:55 * tdignan checks the docs himself Nov 03 10:58:05 dioHere: this should work regardless of the size of the dialog Nov 03 10:58:07 http://pastie.org/5176118 Nov 03 11:02:08 tdignan this is very good but still not working. It just doesn't show the textview. Man this is crazy........ Nov 03 11:03:29 only on 2.2 Nov 03 11:03:44 make a test case Nov 03 11:03:57 I bet you won't be able to reproduce it outside of your project. Nov 03 11:04:58 I will... thank you very much Nov 03 11:57:56 tdignan I feel soooooooooooo stupid...... seriously. Can you guess what was the error? On the 4.0 android the background of the alert was by default white, but on the 2.2 was black. The text was showing up the whole time but it was black.... Man I'm so sorry for all the troubles I got you. I really feel stupid Nov 03 11:59:09 heheheheheheheh Nov 03 11:59:22 stupid stuff can be mindbendingly annoying Nov 03 11:59:50 I lost all of my morning and the last night for this stupidness! My God! Nov 03 12:00:33 never mind. at least you won't do that again. there are plenty of other stupidities awaiting! :-) Nov 03 12:00:52 hope you get a good amount done before the next hits Nov 03 12:02:13 dioHere: I've hit that as well. I don't remember what the cause was but something about the style not being assignable for the dialogs or something Nov 03 12:02:23 god, I hate these things about android. :-/ Nov 03 12:10:11 Dialogs have a black background on old platforms, even with the light theme.. That's why you gotta remember to use the dialogs context to inflate any views to go in it Nov 03 12:10:51 hi all Nov 03 12:12:35 has anybody used this library https://github.com/loopj/android-async-http Nov 03 12:12:39 with https Nov 03 12:12:58 hi Nov 03 12:13:03 I want to compile new driver for samsung mini Nov 03 12:13:08 JakeWharton hey, are you around ? Nov 03 12:13:18 Hey gang, Im trying to run the android-15 API samples, but I'm getting an error the style.xml "Error retrieving parent for item: No resource found that matches the given name Nov 03 12:13:18 'android:Theme.Holo'." Nov 03 12:13:31 any one here? Nov 03 12:13:32 why can't it find the themes from the SDK/ Nov 03 12:13:50 You're not building against an api level that has Theme.Holo Nov 03 12:14:40 I understand that I can compile this module in ubuntu and then run it on my mobile? Nov 03 12:15:19 SimonVT: Just send me over a 1099 and I'll get you on a retainer, lol Nov 03 12:16:08 if you say so oO Nov 03 12:40:07 what's a good algorithm to use to deliberately waste clock cycles? fibonacci on a couple of longs is a pretty short lived run. Nov 03 12:40:22 just looping on an increment and doing nothing seems to be optimized out by the compiler. Nov 03 12:40:30 md5sum /dev/zero Nov 03 12:40:53 i've been using cat /dev/zero > /dev/null Nov 03 12:41:01 but I've put a waste CPU button in my program Nov 03 12:41:06 I'd prefer to do this computationally Nov 03 12:41:14 read /dev/random Nov 03 12:41:29 that needs CPU to generate Nov 03 12:41:37 i'll try it Nov 03 12:41:39 but will not work for multi core Nov 03 12:43:02 hmm Nov 03 12:43:28 I guess spinning multiple threads up would likely accelerate more than one core Nov 03 12:46:37 woops. i deadlocked my app by creating too many threads Nov 03 12:46:48 maybe 1000 was a few too many :) Nov 03 12:47:43 ^^ Nov 03 12:52:07 fibonacci is decent if I loop it a few times and spawn a couple threads Nov 03 12:55:46 woo busy this morning Nov 03 12:58:04 tdignan, you can find out the number of cores pretty easy actually: Runtime.getRuntime().availableProcessors() Nov 03 13:13:24 awesome Nov 03 13:13:57 right now fragments get added dynamically if a core appears activated in /proc/stat Nov 03 13:14:08 but I should probably use that call Nov 03 13:14:57 offtopic, but I thought /proc was deprecated a long time ago (of course, it is often kept for retro-compatibility of some tools/bin) Nov 03 13:20:14 There is no way to calculate the load average that I know of other than reading /proc Nov 03 13:26:44 tdignan, top & ps might be another way (I did not look the source, but I'm sure they can work without /proc) Nov 03 13:27:15 but I agree, it's convinient to just read /proc :) Nov 03 13:37:36 Hey gang, If I need to make a little file to store some table data, much like a plist in iOS, how would I do that in Android? Does it offer something like that? Nov 03 13:37:43 SQLite DB is a little too much Nov 03 13:38:00 just a file to read off like 5 rows of config data to draw from Nov 03 13:38:58 you can use sharedpreferences Nov 03 13:39:13 it's a good compromise if you don't need to store zillion of values Nov 03 13:39:39 (and even, it might be slow but around 200 or 300 values is ok, at least from my little experience) Nov 03 13:40:03 it's gonna have 15 rows to be exact Nov 03 13:40:27 type of what you save might matter, you cannot save Object iirc, but int, float, string are ok for sure Nov 03 13:40:43 save or load, ofc. Nov 03 13:41:57 adq: "I didn't look at the source" <--- key point Nov 03 13:41:59 maybe you should Nov 03 13:42:23 * tdignan just cut off his head and had to sew it back on Nov 03 13:42:28 huhu, true (this is why I disclaimed myself) :p Nov 03 13:42:38 HEAD, rather Nov 03 13:42:44 ohh you're a ninja who flip out HEAD :D Nov 03 13:42:59 adq: yeah, just ints and strings Nov 03 13:43:02 i found this page Nov 03 13:43:06 http://sitaramc.github.com/concepts/detached-head.html Nov 03 13:43:10 its good if you ever cut your head off Nov 03 13:43:28 thx I'm going to read it now, looks interesting Nov 03 13:43:53 All, I want to have a periodic service that fetches some items from a server so they're available to an activity at any given time. What is the recommended approach? ContentProviders seem a little heavy weight for this, should I serialise the items to json and have the activity read this file? What would be the most common pattern here? Nov 03 13:44:35 just use alarmmanager to fire off a service Nov 03 13:44:46 syncadapter is yucky, so is contentprovider Nov 03 13:45:07 make sure you have a wake lock Nov 03 13:45:11 yes, but the service needs to persist the data somehow so it's available to the activity Nov 03 13:45:22 save it in a file or a database? Nov 03 13:45:28 you don't need a contentprovider to use sqlite Nov 03 13:46:00 makes sense Nov 03 13:46:13 i like ormlite Nov 03 13:46:25 ah yes tdignan, I'm using/prefering hg (mercurial), I think it's possible when you set a tag on a new version from a old release, but I don't use advanced feature (except exceptionally mq extensions when I really mess up :p) Nov 03 13:46:43 I was using rebase Nov 03 13:46:48 to squish two commits into one Nov 03 13:46:49 so i'm not familiar with it, but I know it's possible in hg too Nov 03 13:46:57 but I did the rebase wrong the first time Nov 03 13:47:10 i forgot the -i Nov 03 13:47:10 we all did wrong at first time I think :-) Nov 03 13:47:19 tdignan: thanks ormlite seems a decent option Nov 03 13:47:21 oh, i've done this kind of rebase before... it's unfortunate Nov 03 13:47:29 so easy to screw up :D Nov 03 14:18:20 Anyone good at OpenGL ES here? Nov 03 14:27:23 2.x does not support action bar … is there a way around this or must I create separate app for 2.x ? Nov 03 14:35:56 meh. why is BROADCAST_STICKY needed on 4.0+ to access bluetooth audio? Nov 03 14:36:03 +permission Nov 03 14:37:36 also, how is BROADCAST_STICKY relevant to or understandable by normal users? Nov 03 14:38:31 convivial: actionbarsherlock.com Nov 03 14:40:10 ok, thanks Nov 03 14:53:42 If I call incReserve() on a Path, then I rewind() that same path, do I need to call incReserve() again if I'm only going to add the same exact number of points next time? Nov 03 14:54:11 argh seems I have to install ubuntu 11.04 just to compile ffmpeg for android successfully, Win7 isn't working and can't find a single Win7 example, and people are reporting no success with ubuntu 12.xx either Nov 03 15:08:31 SimonVT : is there a working workaround your ABS tab bug with the white pixel ? Nov 03 15:08:50 are you going to fix it in next version ? Nov 03 15:13:14 None that I know of Nov 03 15:13:17 Also no eta right now Nov 03 15:13:26 It isn't as easy to fix as I thought Nov 03 15:14:05 I try to record audio from bluetooth SCO, but after the SCO connection is established, I still can not instanciate an AudioRecord: "AudioRecord: Could not get audio input for record source 4" - I'm using 8khz mono 16bit, as advised in the SCO docs Nov 03 15:14:15 Or well, you can comment out the two method calls in onMeasure Nov 03 15:14:36 But then you wont get equally sized tabs when it is scrollable Nov 03 15:19:56 so I've forgot the password to my app keystore Nov 03 15:20:08 for some reason, I didn't save it in Keepass Nov 03 15:21:46 is it possible to download the next version from the application itself and install it? or do i need to refer the user the the app's page on google play? Nov 03 15:22:23 can I sign with a new keystore and upload? Nov 03 15:22:42 Sicp: no Nov 03 15:22:48 yea, guessed so Nov 03 15:22:53 so what's the solution, you think? Nov 03 15:23:03 Sicp: also, nobody will be able to upgrade from the old to the new key without uninstalling the app Nov 03 15:23:09 Sicp: remember your password Nov 03 15:23:23 alright Nov 03 15:24:03 socket: you can not easily install the app from itself. it would need system permissions, or the user would have to check the "other sources" box in android app prefs Nov 03 15:25:42 Ge0rG: so how is it usually done? i check for a new version see that there is one and then what? Nov 03 15:26:24 socket: you can open the google play page for your app Nov 03 15:28:09 thanks Nov 03 15:28:44 one question. how long does it take from the time you upload your app to the market, till it's visible to users Nov 03 15:29:02 s/market/play store/ Nov 03 15:29:16 so I've entered the password for the keystore and I get to the other page without errors, and am presented with "Use existing key" and its alias "ceystore" and another password field Nov 03 15:29:36 did I just enter the passphrase to get to this new screen? Nov 03 15:30:03 SimonVT: oh cool, i don't want tabs to scroll in the first place! Nov 03 15:30:14 what methods are those i should comment ? Nov 03 15:30:46 ah, I entered the keystore password Nov 03 15:30:50 now I need to enter the key password Nov 03 15:35:37 remembered it Nov 03 15:36:03 OpenGL ES, anyone? Nov 03 15:36:43 No one? Nov 03 15:48:34 Is there anyone knowledgeable about OpenGL ES? Nov 03 15:49:31 Hey guys, im really intrested in getting started with android development, i already know java really well and im wondering if its pretty straightfoward to learn? Nov 03 15:49:32 sorry Nov 03 15:50:19 It is. Nov 03 15:50:32 There are a lot of books about Android. Nov 03 15:50:46 And very few books about OpenGL ES. Nov 03 15:51:03 ive fround some good looking android books on amazon Nov 03 15:51:06 found* Nov 03 15:51:26 you still have to learn things like the activity lifecycle, how android classes interact with each other. But there are books, official examples, and so on Nov 03 15:52:01 I need to speak to one of the Android engineers... Nov 03 15:52:09 use the mailing list Nov 03 15:52:09 When are they on? Nov 03 15:52:23 Which one? Nov 03 15:53:05 https://groups.google.com/forum/?fromgroups#!forum/android-platform this one perhaps Nov 03 15:53:10 or maybe stack overflow Nov 03 16:06:11 hello again. I have a question about alert dialogs. I am using the second answer from http://stackoverflow.com/questions/4406804/how-to-control-the-width-and-height-of-default-alert-dialog-in-android as a method to change the height and width of the alert window. This works perfectly in android 4.0. However in android 2.2 the view that am showing in the alert window, shows up about from the 40% of the height screen until down, Nov 03 16:40:35 hey, is there and tftp server app beside andtftp for android? Nov 03 16:44:02 Silly question -- what would be reasons to use dp instead of pt for dimensions? Nov 03 16:54:15 hi Nov 03 17:06:48 Anyone good at OpenGL ES? Nov 03 17:09:10 sogard: no :( learning it though Nov 03 17:09:39 If you have any question, you can ask me. Nov 03 17:52:25 is there a way to create a popup menu just by code without an xml file? Nov 03 17:53:18 i think you can do any kind of layout function just in code Nov 03 17:54:42 popup.getMenu() and then just add menuitems? Nov 03 17:56:24 I'm trying to get back into android, but JellyBean api 16 isn't showing up in the download manager. I've read that unchecking download cache might fix it, but I'm using Osx and can't find that setting Nov 03 17:58:06 hi all Nov 03 18:07:09 is there c ++ cross platform for real time screen capture an mouse/keyboard control Nov 03 18:08:22 the nestlevel ("group") for menues is 1? Nov 03 18:17:05 when using a ViewPager, is it posible to get 2 pages on a single screen? Nov 03 18:32:42 clever: yes -- tweaking pagewidth in the adapter should do it Nov 03 18:33:00 ie, return 0.5 Nov 03 18:33:06 kbs: nice :) Nov 03 18:38:01 kbs: hmmm, works great in landscape mode, but not so much in portait Nov 03 18:38:15 kbs: the pages are side by side, leaving the bottom half empty Nov 03 18:38:58 how should it look in portrait mode? one above another? Nov 03 18:39:03 yeah Nov 03 18:39:27 hm. I can't think of a quick way to do that, I'm afraid Nov 03 18:39:40 What I've done is just do that sort of thing within a page, if you see what I mean Nov 03 18:39:46 yeah Nov 03 18:39:57 a special fragment for that layou Nov 03 18:39:58 a special fragment for that layout Nov 03 18:40:37 yeah, I think we have the same idea. The view-pager shows a single page, but within the page I use a viewgroup that positions the actual spread appropriately. Nov 03 18:40:56 can you have fragments inside fragments? Nov 03 18:41:12 I don't use fragments -- i just use straight up viewgroups Nov 03 18:41:28 i should probably say that I use the pgaeview directly, no fragments Nov 03 18:41:55 i just used the example that came with FragmentPagerAdapter Nov 03 18:42:26 ah. not sure the best way for that then; someone else here might know better how to work with fragments in the way you're thinking Nov 03 18:42:52 i'm thinking, if i can put fragments in a fragment Nov 03 18:43:00 then i can just make a fragment that holds 2 pages Nov 03 18:50:52 How does findFragmentById() work when you add several fragments to the same container programmatically? Nov 03 18:52:05 I have one LinearLayout that I use to hold one or more Fragments. I am calling setRetainInstance() on them so that I can recover them after a config change. Problem is I don't see how to recover them, since they're all in the same container with that same ID. I suppose I could use the String 'tag' parameter, but I don't really want to do that. Nov 03 18:53:51 why don't you want to use tags? Nov 03 18:55:24 I am using them now Nov 03 18:55:29 I guess tags are fine Nov 03 18:55:33 just meh Nov 03 18:55:41 because to use them I have to serialize an int as a string :) Nov 03 18:55:46 it's the correct way, as far as i know Nov 03 18:55:57 sure, it's just a bit tacky for my use case Nov 03 18:55:58 a tag can be any Object Nov 03 18:56:15 not with fragments. Nov 03 18:56:18 they take String Nov 03 18:56:32 unless you want to wrap the fragments with a programmatically inflated viewgroup and use setId... Nov 03 18:56:46 oh right with FragmentTransaction.add() Nov 03 18:56:52 yeah, I don't want to nest viewgroups just to wrap my fragment Nov 03 18:56:59 I'd rather convert my counter int to a string :) Nov 03 18:57:14 its working now Nov 03 18:57:36 thanks for listening Nov 03 19:02:42 Hi everyone! Nov 03 19:05:29 Hey guys, when using setBeamPushUrisCallback or setBeamPushUris, if i want to revert back to the default behaviour of launching that application on the target, how would i do so ? Nov 03 19:06:13 If i give a null argument in the callback or uri, it disables beam for that activity, and if i give it an empty uri array, it just gets an arrayindexoutofbound error Nov 03 19:15:01 idk if its just the adt plugin, but eclipse is so much slower than I remember Nov 03 19:22:27 what are your machine's specs Nov 03 19:26:27 has anyone tried send terminal commands from app ? Nov 03 19:30:49 hey all Nov 03 19:31:04 i would like to make an IM app on android Nov 03 19:31:11 anybody willing to help? Nov 03 19:32:10 nobody? -.- Nov 03 19:32:11 strange Nov 03 19:34:05 * dragorn already has an IM app, so, no. not so interested in another. Nov 03 19:34:20 If you have specific questions about android dev however I'm sure people will help as they are able Nov 03 19:35:32 dragorn: having and developing are two different things, imho Nov 03 19:35:36 but you're right. Nov 03 19:35:43 i guess I should ask specific questions Nov 03 19:36:15 am I right to understand that the architecture is similar to that of a web-chat application? Database polling to retrieve new messages? Nov 03 19:37:35 http://i.imgur.com/WxpRV.jpg?1?7521 Nov 03 19:37:37 is there a way to have Alt+Tab style foreground task switching on android ? Nov 03 19:38:02 I suppose it all depends how the chat server is architected. Many do constant tcp streams, so you either have to keep it awake all the time or put an intermediary server in place Nov 03 19:38:45 jero: press and hold home? Probably the closest you'll get Nov 03 19:39:18 dragorn, that's my issue. takes forever when switching back and forth between 2 apps Nov 03 19:40:16 what application is that task list from ? Nov 03 19:40:39 <_yakubmobiledev> hi guys Nov 03 19:41:09 <_yakubmobiledev> Please help me regarding accesing the music playback service in my application Nov 03 19:41:26 jero: your device probably is running low on ram and terminating non-foreground activities then Nov 03 19:42:30 <_yakubmobiledev> i have ggogled it Nov 03 19:42:46 dragorn, nope, it's the time to get into the task list and selectind the new app that I find long Nov 03 19:43:15 <_yakubmobiledev> but found only the ansers like bind the service with com.android.music Nov 03 19:43:57 dragorn, esp. when i could press, let's say home+volume+ and get the previous used app popped up Nov 03 19:44:12 <_yakubmobiledev> but in my phone i have like com.sonyericsson.music and different methods in the MediaPlayabackService interface Nov 03 19:44:41 <_yakubmobiledev> I am toattaly confused please help me Nov 03 19:45:36 Is there an easy way to get a user on Ice Cream Sandwich to generate a bug report? Nov 03 19:46:05 test Nov 03 19:46:11 <_yakubmobiledev> any one.. Nov 03 19:47:10 Hey! Nov 03 19:47:20 Anyone experienced with onDraw Method? Nov 03 19:47:50 AndroidBeginner: just ask your question Nov 03 19:48:38 anyone have any recommended tutorials other than the one here http://developer.android.com/training/basics/firstapp/index.html Nov 03 19:48:52 i got the view Drawing.java in which i override onDraw() and draw a line Nov 03 19:49:10 now the line is gonna displayed after first loading the app Nov 03 19:49:12 how do i get a selected item from a popupmenu i created? Nov 03 19:49:32 but i got problems in changing the lines specifications dynamically Nov 03 19:51:16 actually its a little bit hard to explain Nov 03 19:52:58 @ monsti did you try onClickListener? Nov 03 19:55:19 AndroidBeginner: yeah i was just not calling the .set() method if the MenuItem after .add() :) Nov 03 19:55:31 it's to late - time to go Nov 03 20:38:49 is it alright to throw exceptions that already exist? or is it better to create your own exception? Nov 03 20:39:25 my concern is that it would be confusing to use an exception commonly used by some other class Nov 03 20:39:40 depends on what the error is Nov 03 20:39:40 When i try to create a new SurfaceView by finding it via its id i get null, can someone help me on that? Nov 03 20:40:55 well I'm making a wrapper for an http API Nov 03 20:41:15 so I'm thinking it would be appropriate to throw an error for an URL that is incorrect Nov 03 20:41:43 is MalformedURLException appropriate? Nov 03 20:57:27 just a question that is driving me crazy. I am building a multiplayer game with andengine. I have a thread that waits an answer for the server and a runOnUIThread to show a dialog. Each time I am showing the dialog it says that the window is leaked, which that means that the activity has ended. How's that possible? The activity isn't it supposed to wait an answer from the server? I ensure that there is no answer from the server Nov 03 20:59:45 Hey guys... so what would the best way for my native app to request a clean shut down of the app? Nov 03 20:59:59 (Trying to avoid calling exit() here) Nov 03 21:05:38 anybody here? Nov 03 21:05:53 I am here :P Nov 03 21:07:37 no Nov 03 21:07:58 So how does an app shutdown usually work? Nov 03 21:08:05 How are you even meant to close an app on Android? Nov 03 21:08:32 you are not meant to Nov 03 21:08:32 on jelly, bring up the app switcher, and swipe it off Nov 03 21:08:45 jelly? Nov 03 21:08:58 jellybean Nov 03 21:09:01 all I see is the 'forcequit' Nov 03 21:09:14 isn't there a 'nice quit'? Nov 03 21:09:29 no Nov 03 21:09:37 say I wanted to implement one in my app Nov 03 21:09:37 well, back a lot Nov 03 21:09:39 what should my app do? Nov 03 21:10:06 your app should generally, unless unusual expect to be closed with no notice Nov 03 21:10:32 exceptions might be stuff like an IRC client, which are set to persist Nov 03 21:11:07 Esphnyx Speedevil do you have any clue about the situation I described? Sorry for bothering but I am running out of time for my project :/ Nov 03 21:11:18 zero, sorry Nov 03 21:11:40 I'm just retelling what little I know Nov 03 21:14:00 Is it possible to remove a titlebar, but keep the actionbar on a fragmentactivity? Nov 03 21:14:21 i.e. when would the activity onDestroy callback be called back by the Android system? Nov 03 21:14:26 ESphynx, http://developer.android.com/training/basics/activity-lifecycle/stopping.html Nov 03 21:14:52 you really have to follow these steps. Only in exceptional rare case, you would like to kill your process with nothing remaining Nov 03 21:15:59 adq: I hate this mobile mentality of keeping all the app res alive. Nov 03 21:15:59 if the activity was getting destroyed then the threads would be destroyed as well. Something's very weird.. Nov 03 21:16:13 ESphynx, yeah but you're on Android, not on Windows CE.. sorry Nov 03 21:16:31 ESphynx, in fact, they're not really alive Nov 03 21:16:38 just a big waste of memory =) Nov 03 21:16:59 you really need to get rid of that mentality too :-) I was thinking like you, few monthes ago Nov 03 21:17:13 then I understood if memory is required, more process will be killed and I don't have to bother Nov 03 21:17:34 onRestart is that onResume in the native activity stuff? Nov 03 21:17:55 killing processes at random does 'not' feel right :P Nov 03 21:18:08 So the system decides when to 'kill' the process? Nov 03 21:18:12 it's not random, and you don't have to do it, the OS manages it for you and in most of the cases it's ok Nov 03 21:18:17 yes ESphynx Nov 03 21:18:41 I'm writing a toolkit here, and I'm just trying to fit in my toolkit with the Android system. Nov 03 21:19:20 is it posible to put fragments inside a fragment? Nov 03 21:19:21 ESphynx, i would agree if we were in the 80's and memory was really... expensive :-) i would even agree more than nowadays programmers do not care of wasting this or that because they have plenty (which from what i heard makes less elegant code), but you have to agree/conform with the design of the OS you develop for Nov 03 21:20:00 adq I'll go to the extent I can to try for that :P that's why i'm trying to do right now ;) Nov 03 21:20:24 clever, i doubt without a hack - http://stackoverflow.com/questions/6672066/fragment-inside-fragment Nov 03 21:20:59 yo dawg we heard you like fragments Nov 03 21:21:04 adq: what about a square of 4 fragments inside a ViewPager? Nov 03 21:21:25 adq : how about telling the sytem though that the user explicitly stopped the activity? Nov 03 21:22:17 clever, sounds interesting (like multiscreen in video :-)) but no clue how Nov 03 21:22:35 Posting my question again. I am building a multiplayer game with andengine. I have a thread that waits an answer for the server and a runOnUIThread to show a dialog. Each time I am showing the dialog it says that the window is leaked, which that means that the activity has ended. How's that possible? The activity isn't it supposed to wait an answer from the server? I ensure that there is no answer from the server until the dialo Nov 03 21:22:43 ESphynx, no clue how you can notify that to the system, sorry :/ Nov 03 21:22:47 adq: ive set my ViewPager up to show 2 fragments at once, but its always showing them along the scroll axis Nov 03 21:22:54 adq: so it works perfectly fine in landscape Nov 03 21:23:08 adq: but in portait, its 2 narrow fragments, with the bottom half totaly empty Nov 03 21:23:15 thats what i was trying to work arround Nov 03 21:23:18 the default activity with tabs (new project in eclipse) gives a titlebar with the appname, the icon and a [...] button with settings. Under that is an actionbar with tabs. When I try to get rid of the titlebar through requestWindowFeature, the actionbar is always NULL. I can't have an actionbar without a visible titlebar? Nov 03 21:23:24 " calls finish() on your activity." Nov 03 21:24:11 * TheSeven wonders how to make the right people spot this bug report: https://code.google.com/p/android/issues/detail?id=38830 Nov 03 21:24:30 apparently it's a kernel (wifi driver) bug... Nov 03 21:24:30 ANativeActivity_finish() =) awesome Nov 03 21:27:48 well, that crashed it (did terminate it though:)) Nov 03 22:20:11 apologies for a repeat question.. is there a reason one might prefer using dp over pt to specify dimensions? Nov 03 22:21:16 kbs: dp scales by resolution and dpi Nov 03 22:21:17 because its considerably easier to understand things in terms of dp? :) Nov 03 22:21:35 also, dp scales more predictably to a "class" of density, whereas pt scales with raw density Nov 03 22:22:32 jasta: the problem I'm finding is that dp actually doesn't scale predictably, because it's getting quantized. To be precise, a 24dp box on a 192 ppi device uses a quantized 160value -- making everything about 20% too small Nov 03 22:22:37 that is, dp scales to low, medium, high, extra-high devices. the exact dpi of the screen is made to fit into one of those buckets. Nov 03 22:23:15 kbs: yes but this is more predictable in terms of real estate occupation Nov 03 22:23:45 it's not targeting the _exact_ same physical size, but trying instead to fit neatly inside the bounds of a class of devices Nov 03 22:24:08 so that relatively speaking the positions of objects will appear similar one device in the same class to the next Nov 03 22:24:27 which makes your job easier for the common set of layout-related problems you'd be looking at Nov 03 22:25:31 jasta: Sorry if I'm just very dense today :-) somehow, I'm finding the biggest layout problem to mostly be that I can't predictably size the text/buttons to a usable level with dp. Nov 03 22:28:13 kbs: are you saying that for some devices the platform itself makes buttons too small? Nov 03 22:28:20 because the platform uses dp like everywhere. Nov 03 22:28:33 jasta: yes, that's exactly right Nov 03 22:28:36 it does use pt (actually sp) for font sizes, though Nov 03 22:29:01 kbs: well, disagreeing with the platform UI designers is a pretty heavy claim. not something i think your app is in a position to solve anyway. Nov 03 22:29:02 anywhere where the platform uses dp, it comes out too small on a 192ppi deice Nov 03 22:29:11 anyone else here having wifi roaming trouble? Nov 03 22:29:33 titlebar is part of the actionbar :\ and is only removable by removing all items in menu.xml, and disable home and title settings. Finally solved :) Nov 03 22:30:08 :-) fair enough. Mostly trying to see why pt wouldn't be a solution; but this seems to be a somewhat philosophical issue that [at least for my app] I can get away with by using pt Nov 03 22:31:13 Is sp actually pt? hm. I thought it's just a user-scaled version of dp Nov 03 22:31:58 (eg: the default buttons on the color nook -- cm 7 -- it's just too small to hit comfortably) Nov 03 22:41:39 I have created a custom dialog. The view of the dialog is ihnerited from an xml that shows 4 horizontal buttons, below a seekbar, and below the seekbar a tableview. When I do dialog.getWindow().getAttributes().width=600; dialog.show(); everything is shown up perfectly. However whenever I set the height with the same way (even when I set the height to full screen) it only shows the 4 buttons above. Nothing else is shown. Any i Nov 03 22:45:50 Should I be worried about E/Looper ( 1480): Error removing epoll events for fd 40, errno=9 ? Nov 03 22:49:18 anyone please? :/ Nov 03 23:02:02 I want to make a string like this into a date "20121103 15:48:15" Nov 03 23:02:10 how much do I need to do manually? Nov 03 23:03:22 I think you should be able to create something from SimpleDateFormat Nov 03 23:04:02 "(\d{4})(\d\d)(\d\d) (\d+):(\d+):\(d+)" in a regex? though I suspect there are other ways (scanf equivalents? proper datetime parsers?) Nov 03 23:05:08 yes, SimpleDateFormat would be the java equivalent of a 'proper' datatime parser Nov 03 23:05:59 but it's more entertaining to do regexs, undoubtedly :-) Nov 03 23:07:07 kbs: not always ;P Nov 03 23:07:15 I'm not sure if my syntax is even right Nov 03 23:07:17 with full validation, including leap years? Nov 03 23:07:43 SuD: the regex was to just split the data into something you can feed to DateTime constructor Nov 03 23:08:17 heh. One thing about the *Dateformat* code is that it came from taligent, who are known for creating, um, elaborate cathedrals for an outhouse. Nov 03 23:11:16 kbs: weren't they also people who made stuff that would work as long as there was electrical power? :> Nov 03 23:12:03 p_l: could be :-) i'm old enough to have officially forgotten more than 50% of whatever I once knew Nov 03 23:12:40 also, date&time *requires* a cathedral - anyone thinking they'll make do with outhouse is building a a family home from twigs on a beach during low tide in area frequented by earthquakes and tornadoes Nov 03 23:13:33 at least you need to understand the cathedral to know what to make ;) Nov 03 23:24:57 I have created a custom dialog. The view of the dialog is ihnerited from an xml that shows 4 horizontal buttons, below a seekbar, and below the seekbar a tableview. When I do dialog.getWindow().getAttributes().width=600; dialog.show(); everything is shown up perfectly. However whenever I set the height with the same way (even when I set the height to full screen) it only shows the 4 buttons above. Nothing else is shown. Any i Nov 03 23:25:32 dioHere: your message got cut off after "Any i" Nov 03 23:25:50 codebutler: *any ideas please? Nov 03 23:26:23 you shouldn't have to set explicit sizes for the window, it should expand… can you post a screenshot of the problem? Nov 03 23:30:47 codebutler I will post one now Nov 03 23:45:05 codebutler this is the first Nov 03 23:45:06 http://imagebin.org/234517 Nov 03 23:45:37 and with the height set as match parent http://imagebin.org/234518 Nov 03 23:46:09 hi, I'm trying to use renderscript, but my project won't build because eclipse says that my script object has no forEach_root method http://pastebin.com/KLW181iR (I just modified developer.android.com example a bit) Nov 03 23:46:32 dioHere: post your xml to pastie.org please Nov 03 23:48:51 codebutler http://pastebin.com/Pt1cLQfS Nov 03 23:49:46 Guys, I get this " Error removing epoll events for fd XX" error upon the onInputQueueDestroyed callback being called... Nov 03 23:50:29 dioHere: line 14 Nov 03 23:50:52 codebutler what's wrong? Nov 03 23:51:09 you told your layout to fill the parent's height, so you won't see the stuff below it Nov 03 23:56:19 codebutler why is it working without setting the height? Nov 03 23:56:26 not sure Nov 03 23:56:54 thank you I will try and fix that Nov 03 23:57:06 I have to go unfortunately Nov 03 23:57:13 thank you very much! Nov 04 00:31:53 :| ok. solved it. had to set minapi to 14 Nov 04 00:41:16 i installed the android sdk in eclipse and now eclipse freezes on start up at 100% cpu on all cores and i have to leave it running for 4-5 minutes before it finally stops Nov 04 00:43:49 is there any way to tie a view, e.g. a textview, and a piece of data together so that when the data changes, the view updates to its new value? Nov 04 00:44:08 it's a feature present on iPhone and it's really nice Nov 04 00:49:04 indeed, and there isn't a generic data-binding thing like this, though some specific widgets (using concrete classes like *Adapter typically) do have something vaguely like a data-binding style implementation. Nov 04 00:52:08 Either I am missing something trivial, or I would like to make a humble proposal for improving the JavaDocs in android: for methods dealing with View sizes, _please let us know if the parameter is [px] or [dp]! Nov 04 00:52:14 example: Nov 04 00:52:29 void setMinimumHeight (int minHeight); Nov 04 00:52:47 javadoc: minHeight The minimum height the view will try to be. Nov 04 00:53:21 I know its the minimum height, dammit, the name already told me that. what I do not know is wether it is expected in PX or DP!! Nov 04 00:54:51 It's px unless told otherwise Nov 04 00:54:55 is there a general rule for these methods? I dont know.. such as: its always px. or always dp. Or do I have to look into GIT every time? Nov 04 00:55:25 ah, ty SimonVT. I suppose thats the rule I was looking for. thx again. Nov 04 01:08:46 I'm wasting a lot of time with this slow emu :| Nov 04 01:10:17 so use the x86 one Nov 04 01:10:35 JakeWharton: hey that's an idea Nov 04 01:10:41 ESphynx: http://codebutler.com/2012/10/10/configuring-a-usable-android-emualtor/ Nov 04 01:10:46 and make sure GPU acceleration is enabled Nov 04 01:11:12 JakeWharton: Hmm I don't seem to be able to change the CPU in the 'new emulator' window? Nov 04 01:11:24 do you have the emulator image installed? Nov 04 01:11:27 JakeWharton: what's bugging me is the upload speed Nov 04 01:11:35 I have the SDK emulator thing installed? Nov 04 01:11:41 I'm in AVD :) Nov 04 01:11:42 the x86 one? Nov 04 01:11:50 I guess not? Nov 04 01:12:05 SDK manager :) Nov 04 01:12:06 install the Intel Atom system image Nov 04 01:12:37 Intel x86 Atom System image Nov 04 01:12:39 that thing? :) Nov 04 01:12:55 yup Nov 04 01:13:03 codebutler: that's a good link Nov 04 01:13:06 cool Nov 04 01:13:25 and there I thought I had a good reason to go buy a Nexus 7 Nov 04 01:14:19 hello android-dev channel Nov 04 01:15:36 If anyone uses my app called Recovery Manager, but your device wasn't working, I added a load of new devices to the list! Nov 04 01:15:49 JakeWharton: thanks, i've gotten a lot of good feedback on that post… hope it won't be required some day. :/ Nov 04 01:15:57 If anyone uses my app called Recovery Manager, but your device wasn't working, I added a load of new devices to the list! Nov 04 01:16:00 Oops Nov 04 01:16:02 sorry Nov 04 01:16:08 yeah it's quite sad, especially in regards to the maps part Nov 04 01:24:22 JakeWharton / codebutler: hmm, is this like a windows specific problem or something? Nov 04 01:24:32 for me, just turning on GPU emulation is all that i needed to make it quite usable Nov 04 01:24:47 no, it applies to all platforms Nov 04 01:25:04 if you aren't using the x86 emulator you're really missing out Nov 04 01:25:13 i'm on linux, which doesn't have it. Nov 04 01:25:14 of course. Nov 04 01:25:42 jasta: the x86 emulator works on linux, including hw acceleration with VT-x and SVM Nov 04 01:25:54 jasta: might require a bit fiddling with commandline Nov 04 01:25:58 the intel hw accelerated thing? eh? Nov 04 01:26:03 the intel one is still slow to start :| Nov 04 01:26:54 p_l: why then does the android sdk manager tell me explicitly it's not downloadable on linux? Nov 04 01:26:54 jasta: VT-x and SVM (or whatever is the curren name) are, appropriately, Intel's and AMD's virtualization extensions Nov 04 01:27:20 jasta: the Hax thing is windows only... because linux includes its own in mainline kernel Nov 04 01:27:35 jasta: for me - and I know I should automate this - "#modprobe kvm-intel && chmod 666 /dev/kvm" is all I need to make the intel image run fast Nov 04 01:27:58 sometimes you need -kvm as option to emulator, too Nov 04 01:28:08 Leeds: what is the group on /dev/kvm? Nov 04 01:28:10 interesting Nov 04 01:28:16 i've never even tried this. not really prompted to Nov 04 01:28:40 jasta: KVM is kernel-included equivalent of the Hax thing in SDK manager Nov 04 01:28:41 codebutler: root/root. KVM is security significant. Nov 04 01:28:49 codebutler: root/root Nov 04 01:28:54 How to manual start activity (intent or something) before user see it? Nov 04 01:28:57 ah Nov 04 01:29:12 KVM is the in-kernel virtualization acceleration stuff; it's also what you use when running virtual server farms, or even just vmware Nov 04 01:29:19 yeah, I'm familiar with kvm Nov 04 01:29:30 the new full acceleration intel emulator has been trying to start for about 5 minutes :| Nov 04 01:29:48 dragorn: having a 'kvm' group would still be more secure than 'chmod 666' on a multi-user system, though... Nov 04 01:30:06 codebutler: it would, yes. which is why blindly chmodding /dev shit is a bad plan ;P Nov 04 01:30:34 ESphynx: then there's no way it's working, unless you're on a uselessly old machine Nov 04 01:30:57 my desktop isn't multi-user, unless something has gone really wrong Nov 04 01:31:12 :) Nov 04 01:33:37 Leeds a useless i7 2600k. you're right. send me a new CPU. Nov 04 01:33:53 ESphynx: then it's not working, you're not accelerated Nov 04 01:34:06 Leeds: It did say HAX was on and all. Nov 04 01:34:13 dunno if it's because I still have the ARM emulator running as well... Nov 04 01:34:15 I have no idea what HAX is Nov 04 01:39:56 hmm, working on getting the kvm support going. really curious what impact this will have Nov 04 01:44:24 *big* Nov 04 01:47:28 hello Nov 04 01:53:16 hi Nov 04 01:57:48 omg haxm Nov 04 02:03:51 haxm the gibson Nov 04 02:10:42 uhh wow. kvm support makes quite a difference. Nov 04 02:14:21 jasta: ive noticed a drastic difference just by running api level 8, havent tried kvm yet Nov 04 02:16:48 i'm on 32 bit linux so I can't use haxm :( Nov 04 02:17:37 this computer can play youtube videos though! Nov 04 02:18:40 tdignan: you need a beast of system to play youtube :P Nov 04 02:19:00 it takes ~2-3x as much cpu power as feeding the identical file into a proper video player Nov 04 02:21:22 i should uninstall the flash plugin and never use it again Nov 04 02:26:59 tdignan: sadly, some videos (those with ad's) seem to demand it Nov 04 02:27:05 but i think they changed things recently Nov 04 02:27:31 last time i tried youtube on my netbook, it was somehow streaming video to