**** BEGIN LOGGING AT Fri Sep 05 02:59:56 2008 Sep 05 03:28:04 hm? Sep 05 03:59:54 hey Sep 05 04:08:37 I'm getting a VerifyError (caused by: "This error is thrown when the VM notices that an attempt is made to load a class which does not pass the class verification phase.") Sep 05 04:09:02 plusminus_: which class? Sep 05 04:09:21 a custom class, which accesses Preferences Sep 05 04:09:27 (static methods only) Sep 05 04:11:06 maybe a lib has to be included ..? Sep 05 04:11:18 uses-library ?? Sep 05 04:12:34 just though so, because it seems to happen with Preferences-Stuff... Sep 05 04:17:02 how can i use arrays.xml for an integer array Sep 05 04:18:10 it asks me to use CharSequence Sep 05 04:21:02 muthu: Guess what it was because I missed the "uses-library....Maps" whyever it failed within the my Preferences-Accessor-Class ... we'll never know. Sep 05 04:21:13 haha Sep 05 04:21:28 any weird errors, i point to uses-library ;) Sep 05 04:21:38 ;) Sep 05 04:23:30 the focus-behaviour also changed, Im getting FocusReceiver/FocusLost Cycles o_O Sep 05 07:01:18 hello, i have aquestion Sep 05 07:01:35 go ahead Sep 05 07:02:18 it's possible to up-link mp3 to phone call ? Sep 05 07:02:30 for example i'am talking with friend usin phone dialer Sep 05 07:02:31 in the emulator? Sep 05 07:02:40 romainguy_: yes ? Sep 05 07:02:46 romainguy_: o real device ? Sep 05 07:02:51 what? Sep 05 07:02:55 what are you trying to do Sep 05 07:02:55 ? Sep 05 07:03:13 i'am talkin with friend using phone Sep 05 07:03:36 during a call i want him hear a mp3 song Sep 05 07:04:00 it's possible to connect media player with phone call ? Sep 05 07:04:17 ah, I have no idea Sep 05 07:06:02 romainguy_: anbody could know that ? Sep 05 07:06:26 you should send your question to the newsgroup Sep 05 10:19:34 what's bigger, the iphone or the htc? Sep 05 10:20:56 iphone is longer Sep 05 10:21:15 the htc is thicker because of the slider keyboard Sep 05 10:55:47 anno^da_: know of any side-by-side comparisons? Sep 05 10:56:54 There is no official one Sep 05 10:57:03 there are just some leaked pics Sep 05 10:57:10 Have you seen them ? Sep 05 10:57:29 (they are not official and no one knows if they are valid) Sep 05 10:58:00 http://www.engadget.com/photos/htcs-android-driven-dream-revealed-in-glorious-spy-photos/1008305/ Sep 05 10:58:16 on androidguys.com you can find the specs with the size Sep 05 10:58:22 but everything is not official! Sep 05 10:58:42 The size seems to be valid since we know that from the FCC documents Sep 05 11:00:17 any idea what's going to be released after that? Sep 05 11:00:42 Well there will be a device from Samsung and perhaps Motorola Sep 05 11:00:50 but we dont know anything about them Sep 05 11:01:15 but I wouldnt count on them in 2008 Sep 05 11:02:30 I'm pretty sure that I've tripped over a serious bug concerning lock contention between the event dispatch thread and surfaces Sep 05 11:03:06 anyone here heard of something similar? Sep 05 11:16:17 hmm is there an easy way to add icons to a mapactivity (as easy as the maps javascript interface) Sep 05 11:16:36 like to point out location search results Sep 05 11:32:12 yay i just made a 9patch ^.^ Sep 05 12:51:02 I just tested out the new cuil search engine by searching for my own name. Sep 05 12:51:25 The second result is Android Scan, how galling! Sep 05 13:00:42 hmm Sep 05 13:00:52 how do i programatically move the activity out of touch mode? Sep 05 13:01:45 * umdk1d4_ tries KEYCODE_UNKNOWN Sep 05 13:02:32 umdk1d4_: override onToucheMode method Sep 05 13:04:36 sadly its a new activity that im launching with an intent Sep 05 13:04:43 it seems to inherit the touch mode from the last activity Sep 05 13:05:02 umdk1d4_: Why would you want to do that? Sep 05 13:05:18 im opening a new activity and would like a specific list item to be selected Sep 05 13:05:24 it moves to that point in the list with setSelected() Sep 05 13:05:32 but because its in touch mode, it doesnt highlight Sep 05 13:08:59 and onTouchEvent isnt fired for new activities Sep 05 13:09:19 umdk1d4_: I don't have anything to suggest Sep 05 13:09:34 hmm i wonder Sep 05 13:09:46 docs/migrating/m5-0.9/changes-overview.html:
  • ListView is now focusable in touch mode by default Sep 05 13:10:58 umdk1d4_: ListView is useless. I'am using LinearLayout with vertical gravity Sep 05 13:12:07 *orientation Sep 05 13:12:09 umdk1d4_: getFocus(), requestFocus() as getSelected(), setSelection() :) Sep 05 13:12:11 why is it useless? Sep 05 13:12:16 * umdk1d4_ tries focus Sep 05 13:12:22 EQU: That is just daft, ListView is the most powerful widget in the toolkit Sep 05 13:13:12 It's one of the most powerful UI widgets I can remember using Sep 05 13:13:33 agree, listview is amazing if you know how to use it correctly Sep 05 13:14:00 tomgibara: i know, it has powerfull features. But, i have still problems with it. Problems like umdk1d4_'s issue Sep 05 13:15:02 tomgibara: for example, it doesn't hava "auto slection change". When top item is selected and i press down button Sep 05 13:15:07 EQU: But for everything that it does, calling it useless for what is at most an awkward corner case is wrong Sep 05 13:15:27 *up bottom, it should select last item :) Sep 05 13:15:46 well in my case its not listviews fault, its just that its in touch mode somehow Sep 05 13:15:55 at least i think thats the issue Sep 05 13:16:24 umdk1d4_: do you use your own Adapter ? Sep 05 13:17:19 EQU: One component can't do everything (though ListView gives it a pretty good go). Sep 05 13:17:41 tomgibara: ok Sep 05 13:18:35 EQU: yep ive got all sorts of fun adapters going on ^.^ Sep 05 13:19:49 tomgibara: i switched to "fake ListView" because of aniamation also. Sep 05 13:20:15 tomgibara: when list view's adapter render rows with 2,3 drawable Sep 05 13:20:29 tomgibara: aniamtion works slow :/ or emulator works slow Sep 05 13:21:39 EQU: Did you ask for any advice on the developer group? Sep 05 13:23:02 tomgibara: now, i talked about this on this channel Sep 05 13:23:23 Did romainguy have any advice? Sep 05 13:25:36 tomgibara: he said, that ListView it's for small count of adapter items Sep 05 13:26:11 tomgibara: and real device works faster than emulator Sep 05 13:27:19 I won't disagree with anything romain says about ListView Sep 05 13:27:45 But that first comment seems odd, ListView is clearly designed to handle very large lists Sep 05 13:28:28 See API demo Views/Lists/14 Sep 05 13:29:35 tomgibara: I see. Sep 05 13:30:00 tomgibara: android market activity i maded by basic widgets ? Sep 05 13:30:49 I anticipate that most of the Android applications, from Google or otherwise, will predominantly use the standard widgets Sep 05 13:31:09 (where the hell did they get the names of all those cheeses?) Sep 05 13:32:00 tomgibara: maybe they have a french guy on board :) Sep 05 13:32:56 Well, I believe romain is french, but there are plenty of other cheese eating nations Sep 05 13:33:41 in my country, we have only two kinds od chees.. white and yellow :) Sep 05 13:34:08 that country being? Sep 05 13:34:49 Poland :P Sep 05 13:36:57 tomgibara: we have many kinds of vodka :] Sep 05 13:38:12 :) Sep 05 13:38:49 tomgibara: have you ever drinked our best-export product ? Sep 05 13:39:49 I've drunk vodka, more than I ought to on some occasions, but not as far as I'm aware the polish variety Sep 05 13:42:18 there continue coming out with new widgets too Sep 05 13:42:52 umdk1d4_: I doubt if there will be any new widgets between 0.9 and 1.0 Sep 05 13:43:17 true, i think theyve reached feature-complete and are just fixing bugs at this point Sep 05 13:44:22 Well, I think I found a pretty significant bug today, I'm going to run it past someone at Google on this channel before I post it Sep 05 13:45:09 * umdk1d4_ watches all the little people race to be at work at 8am :) Sep 05 13:54:22 I hope the touch diamond can run android Sep 05 13:54:41 since the touch appears to have decent support. Sep 05 13:57:34 EQU, yes but you have Marius Pudzianowski ... Sep 05 13:57:50 If Marius wants another type of cheese he will will it into existence Sep 05 15:02:53 hmm /me tries figuring out the "right way" of doing http requests with a timeout Sep 05 15:21:48 hmm how to delete files created by openFileOutput() Sep 05 15:22:35 yay deleteFile() Sep 05 16:24:52 anybody is running android on a titan? Sep 05 16:53:33 hmm /me wonders the best way to save a file to sdcard Sep 05 16:53:52 /sdcard Sep 05 16:54:25 right, but is there an api? Sep 05 16:54:34 just open it like any file in java Sep 05 16:55:39 but no api to get the path to the sdcard or anything...guess it's just safe to assume /sdcard Sep 05 17:15:01 umdk1d4_: there is a method in the context that gets you the path to the sdcard Sep 05 17:16:05 But I'm searching it again :9 Sep 05 17:17:45 umdk1d4_: http://code.google.com/android/reference/android/os/Environment.html Sep 05 17:17:47 there it is Sep 05 17:17:55 getExternalStorageState() Sep 05 17:18:07 getExternalStorageDirectory() Sep 05 17:18:09 :9 Sep 05 17:22:25 anno^da_: nice, missed that one Sep 05 17:22:37 no problem :) Sep 05 17:28:46 anno^da_: AWESOME i knew it was somewhere ^.^ Sep 05 17:29:02 :-) Sep 05 18:06:52 I'm interested in writing applications for both Android the iPhone platform but the difference in language (objc vs java) and in interface code is discouraging. Are there any tools for easing the transition in one direction or the other? Sep 05 18:22:14 Proteus, not yet Sep 05 18:23:03 would be interesting to see a breakdown like this for android: http://www.catonmat.net/blog/code-reuse-in-google-chrome-browser/ Sep 05 18:23:53 in this list, note that Skia is the SGL used in Android Sep 05 18:25:03 sanmehat: you around? Sep 05 18:30:03 km-: yeah but i'm sick. Sep 05 18:30:40 sanmehat: sucks. Sep 05 18:31:23 when will the first android phone be available? Sep 05 18:31:43 Omar: just slightly after the dawn of time Sep 05 18:31:56 Omar: Q4 2008 Sep 05 18:32:30 lol romainguy_ you are so nice. Sep 05 18:32:38 Don't you get frustrated by anyone? Sep 05 18:32:38 lol Sep 05 18:32:41 :) Sep 05 18:32:50 i wonder if there will be an android epoch ;) Sep 05 18:33:08 i guess many people asked this question before :D Sep 05 18:33:13 oh yeah. Sep 05 18:33:13 umdk1d4_: the android epoch is the release of Robocop Sep 05 18:33:33 romainguy_ how often do you get angry? Sep 05 18:33:38 :-) Sep 05 18:33:52 Dougie187: why are you asking this? Sep 05 18:33:56 just curious. Sep 05 18:34:14 because I don't think ive ever seen you act aggressively in here. Sep 05 18:34:22 i think its good to have a direct answer isnt that what this channel is for? Sep 05 18:34:22 because I have no reason to Sep 05 18:34:25 romainguy_ is just in a good mood cause jasta is out of town Sep 05 18:34:30 lol Sep 05 18:34:42 LOL @ jasta Sep 05 18:34:44 yeah maybe people will be able to ask any question they want without being yelled at by jasta :p Sep 05 18:34:52 hehe Sep 05 18:35:05 i doubt it though. Sep 05 18:35:13 he probably has a pager. Sep 05 18:35:20 boo. I thought if I hit the camera button that the emulator would show me lumburgh Sep 05 18:35:27 that sends him "Time to rip someone on irc" Sep 05 18:35:34 km-: if you save the image and then view it Sep 05 18:35:45 zhobbs: ahh. Sep 05 18:36:08 HAHAHA that's funny. Sep 05 18:36:13 google++ Sep 05 18:36:24 any of you guys fiddle with the wifi apis yet Sep 05 18:36:30 romainguy_: Sorry, but I have another question to bug you with Sep 05 18:36:34 I'm wondering if there's a way to toggle infrastructure vs. ad hoc mode Sep 05 18:36:35 shoot Sep 05 18:36:57 This might be serious bug in android, or it could be a mistake on my part... Sep 05 18:37:00 You know, I really hope the LHC doesnt vaporize the planet before I get my HTC Dream. Sep 05 18:37:59 well if they do, do you think you would care anymore? Sep 05 18:38:07 The scenario is this: I have an activity displaying a surface and a thread that does nothing but update it while the surface is available and the activity is not paused Sep 05 18:38:43 The thread attempts to throttle itself so that it does no more than one update every (1000/15) milliseconds Sep 05 18:39:15 Dougie: point. Sep 05 18:39:33 The only other thing in this testcase is that I've extended the SurfaceView so that I can capture touch events on the surface Sep 05 18:40:15 Firstly does this sound like a sensible scenario? Or am I doing something here that is unplanned for in the framework? Sep 05 18:40:29 that sounds good so far Sep 05 18:42:06 Okay, here's the slighly scrappy test case I've produced: http://pastebin.com/m289690d6 Sep 05 18:42:17 what's the problem> Sep 05 18:42:18 ? Sep 05 18:43:10 In this test case I do two things: I make sure that I do a lot of work on the canvas provided by the SurfaceHolder, and I synchronize state updates with touch events Sep 05 18:44:29 and what is the issue? Sep 05 18:44:51 The problem is that this appears, on many occasions to totally lock-up the event dispatch thread Sep 05 18:45:08 A dialog appears which says that the application is not responding Sep 05 18:45:40 when does it happen? Sep 05 18:46:01 If I put lots of bogus work into the worker thread inside the synchronized block, but not using the canvas, the problem goes away Sep 05 18:46:21 About 5-10 seconds after touching the screen Sep 05 18:47:02 It's as if working the canvas heavily prevents the event dispatch thread from operating correctly Sep 05 18:47:30 it should definitely not Sep 05 18:47:56 It's not an entirely reproducible bug in its current state Sep 05 18:49:26 this is definitely how we do this in our samples Sep 05 18:49:41 except you should have a try/finally around lockCanvas to make sure you always unlock it Sep 05 18:49:43 One more feature, which makes me think this looks like a horrible thread issue, is that you can see the screen being updated even when the system claims the app is being unresponsive Sep 05 18:50:07 I probably do in my actual app Sep 05 18:52:03 That the surface view is constantly updating demonstrates that the synchronized block is being entered/exited which means that there is no reason that the event handling code can't acquire it Sep 05 18:52:16 you could try to do all your synchronize on the holder instead of your own lock Sep 05 18:55:17 Well I think it's more serious than that because I don't think the dispatchTouchEvent isn't even getting called Sep 05 19:01:40 Okay, it's calling the method and failing to acquire the lock - even though the screen is updating frequently meaning that the synchronized block is being exited plenty of times Sep 05 19:02:03 Eventually the lock is obtained, but not until after the ANR has been triggered Sep 05 19:02:17 Synchronizing on the holder makes no difference Sep 05 19:03:12 I'm not saying it is one, but it looks like a fairness issue in the VM Sep 05 19:07:08 One more piece of information, in this testcase, the problem seems to affect the first touch, or the problem doesn't occur (in contrast, in my app, I've seen the problem 'start' after the first touch) Sep 05 19:10:35 does anyone know if dynamically loading classes from dex files is still supported? Sep 05 19:10:39 of did they remove that? Sep 05 19:14:09 herriojr: what specifically are you trying to do? Sep 05 19:15:43 create an interface where I can load .dex files that I create, so I can add new functionality to my application post-release without having to redownload the application Sep 05 19:16:32 also, I'm having difficulty finding where applications save files when you save a file Sep 05 19:19:24 You will likely run into permission problems -- /data/dalvik-cache is no longer world-writable. Sep 05 19:20:19 (can't have apps rewriting other apps) Sep 05 19:21:42 so if I open up a file stream for write to the file something.jpg, it will save to /data/dalvik-cache? Sep 05 19:21:52 oh, you're talking about the .dex file Sep 05 19:21:54 ok Sep 05 19:22:25 Right. Sep 05 19:22:38 that sucks Sep 05 19:22:45 they really are starting to lock everything down Sep 05 19:23:08 *sigh* Sep 05 19:23:14 no we're not Sep 05 19:25:18 romainguy: are external jar libraries still going to be accessible after release, such as java.awt.jar? Sep 05 19:25:47 if they are accessible in 0.9 they should be in 1.0 Sep 05 19:25:53 but I'm no expert on this feature Sep 05 19:26:01 fadden: do you know about this? Sep 05 19:26:37 I talked to fadden about it yesterday, and he said they are probably going to drop it since it is unsupported Sep 05 19:26:44 Some stuff got moved out of core.jar and into android.awt.jar since it wasn't used much. Sep 05 19:27:08 I don't think that's expected to go away. Sep 05 19:27:20 ok, maybe it wasn't you I talked to :) Sep 05 19:32:56 so, are we going to be able to install .jar libraries on the client? the only location I seem to find them are /system/framework and they only have rw permission for root Sep 05 19:33:04 my assumption is that applications won't be installed as root Sep 05 19:36:19 one of the big issues on other phones is keeping software up to date (BREW, J2ME, etc), so if we can't keep code separate from the apk, is there going to be a mechanism to update applications on the phone without having to redownload the applications? Sep 05 19:37:54 herriojr: updates will be done through the Marketplace Sep 05 19:38:07 via downloading/installing new apk Sep 05 19:38:29 will the marketplace autoinform users of updates or will the application have to do that? Sep 05 19:39:02 don't know...I'd think the Marketplace would have a screen to show what apps are out of date, but those details haven't been released Sep 05 19:39:15 ok Sep 05 19:39:29 is there any copy protection for apps sold through the marketplace? Sep 05 19:39:56 don't know, initial marketplace won't support non-free apps Sep 05 19:40:10 free as in beer of course Sep 05 19:40:20 also, I can't seem to find whether I can determine the carrier via API calls or even the hardware version, will that be possible in the future? Sep 05 19:40:33 free if you don't do the billing through the application itself Sep 05 19:40:48 just curious, why do you want to know the carrier? Sep 05 19:41:40 my application is carrier-branded, and if we can determine the carrier, we can have a single build for all carriers and load the branding over-the-air Sep 05 19:42:25 gotcha Sep 05 19:43:07 also, I want to detect device versions, since in my experience, the same device has different problems depending on the version Sep 05 19:43:34 so in the app store being able to specify your application for a certain carrier/device/device version would help out a lot Sep 05 19:43:46 * anno^da- hates branding *help* Sep 05 19:44:21 what do you hate about branding? :) Sep 05 19:45:00 Well what do you mean about carrier branding perhaps you mean sth different :) Sep 05 19:45:10 sth? Sep 05 19:45:12 I can't imagine that many people *like* branding Sep 05 19:45:39 are you talking from a developer perspective or user-perspective? Sep 05 19:45:55 ok, I have to run off to lunch, I'll continue the conversation a little later :) Sep 05 19:46:10 something = sth :) Sep 05 19:46:21 from a user perspective Sep 05 19:46:45 and from a developer perspective I'm looking at it from the user perspective Sep 05 19:46:53 since they have to buy my app Sep 05 19:46:57 or use my app Sep 05 19:47:05 anno^da-: what are you working on? Sep 05 19:49:46 Oh at the moment I'm just working on a open source app for creating content (video, photo, audio, text) and uploading it into blog systems like Tumblr, Blogr. And using social media sites like Flickr, Youtube, Vimeo etc to store the content. Sep 05 19:50:08 nice Sep 05 19:50:17 you working on it by yourself? Sep 05 19:50:19 and informing about new posts through Friendfinder, Twitter etc Sep 05 19:51:24 romainguy: This thread bug - if it's not known, I presume I should find the time to file it. Sep 05 19:51:26 At the moment I am since it was my first real application in java. At the moment it is working pretty fine. I will setup a google code page later on. Just have to clean up my app. Sep 05 19:51:31 I just can't see why no-one else would have run into it Sep 05 19:51:45 But I can't see anything wrong either. Sep 05 19:53:09 zhobbs: But it is a lot of fun for me. Uploading the whole stuff to Tumblr, storing at Vimeo and Flickr and informing about the posts at Twitter, Technorati works at the moment. Sep 05 19:53:56 very cool Sep 05 19:54:05 did you see Romain's Photostream app? Sep 05 19:54:26 Yeah I saw it right after he uploaded it to the SVN Sep 05 19:55:45 I love open source, I hope we see some open source projects really get going after launch Sep 05 19:56:09 Oh well I prefer open source :-) Sep 05 19:56:27 But I can understand that people have to earn money from their apps. Sep 05 19:56:43 yep Sep 05 19:57:14 the app I work on won't be open source :( Sep 05 19:57:49 I thought about that as well but this app should be open source since I am not that experienced with Java and I wont take money for a first try. But for a first try I like it. :-) Sep 05 19:59:26 And I'm so excited getting real hardware in order to test it on the street. Sep 05 19:59:33 yeah, me too Sep 05 20:02:46 But I will upload an APK next week with some test accounts Sep 05 20:03:15 At the moment I just had to remove Video recording Sep 05 20:40:18 ahhh...almost done with my custom tab framework...supports multiple activities per tab and animations Sep 05 21:12:33 anno^da: even if you aren't experienced, if you product is good, there's no reason not to make money for your work Sep 05 21:12:45 I'm not saying don't do open source Sep 05 21:14:17 anyways, from earlier, branding in any of my applications isn't pervasive Sep 05 21:14:23 it just lets you know who did the app, etc. Sep 05 21:17:39 on the open source thing, I was just trying to say: don't do open source just because you think you're not experienced enough to sell your work, you can let the work speak for itself Sep 05 21:37:21 since the appstore will initially only support non-commercial apps and I want more people to buy android phones so I can sell commercial apps later, I finally thought of an open source project that might be useful but I'm really not sure how google will feel about it. I'm thinking about building an android web interface to Wikileaks which would not only let you read and annotate already released documents but, say, take pictures of docume Sep 05 21:37:21 nts and store them in an AES256 encrypted box until you were ready to upload them/ocr them/ whatever. Sep 05 21:37:59 heh, that's cool Sep 05 21:38:06 thanks Sep 05 21:38:12 it will become a spy phone :) Sep 05 21:38:31 I know - and that rocks Sep 05 21:39:23 also, with relation to open source only being the first ones, what's to stop you from building billing, etc. into your application? Sep 05 21:39:42 it may not be the best user experience, but it will work Sep 05 21:40:25 like, a pay pal interface and some sort of key that gets sent back? hrmm Sep 05 21:41:18 yeah, you can become the paypal for google phones :) Sep 05 21:41:19 it would also let you run a benchmark to see if their phone model could support your app before they purchase it Sep 05 21:42:14 or somehow build an interface that allows applications to pull out one-click shopping information from your app Sep 05 21:42:37 but that might not be too secure :) Sep 05 21:43:08 you'd have to get your paypal service-type thing implemented really quickly Sep 05 21:43:21 before google builds out its store to support pay-for apps Sep 05 21:43:38 android! Sep 05 21:43:41 :) Sep 05 21:43:52 the more applications that use your service before their store comes out, the more likely it will be adopted Sep 05 21:44:21 I don't know how to respond to that rapid :) Sep 05 21:45:11 hah, just showing some excitement Sep 05 21:45:52 have you developed apps for android already? Sep 05 21:46:30 unfortunately, I'm not making any money out of it and the appstore would be doing the same thing..... sort of. With my idea you could implement 'pay what you want' schemes and the benchmark tests - or perhaps even subscription services. Sep 05 21:47:11 all of which would just be implemented by the appstore if there was a demand, I expect Sep 05 21:47:21 ah, you mean like donations to the app developers? Sep 05 21:48:27 yeah. 'did you like my minigame? throw me some money! here's a pay pal link' Sep 05 21:48:44 you know, I tried doing that with shovelling snow as a kid Sep 05 21:48:51 didn't work out too well :) Sep 05 21:49:15 but I guess with a mass-audience it might actually work :) Sep 05 21:50:06 I only shovled snow with pre arranged contracts, I never tried just doing it and guilt tripping the residents. Sep 05 21:50:12 hey, does anyone know how I can decompile the dex files in /data/app/dalvik-cache Sep 05 21:50:29 I'm trying to see if my app stores any files it creates in the dex file in there Sep 05 21:50:53 yeah, people in my neighborhood were a bit stingy Sep 05 21:50:56 DEX files are read-only once created. It's just code. Sep 05 21:51:16 adb shell ls -R /data Sep 05 21:51:17 where are the files I create stored, such as .jpg, etc Sep 05 21:51:33 Officially, you're supposed to let the system worry about where they actually end up. Sep 05 21:52:08 yes, I know :) Sep 05 21:52:17 curiosity killed the cat ;) Sep 05 21:53:03 if I save a dex file through a file write in my application, would I be able to execute the code in the dex file through my application? Sep 05 21:53:37 I'm trying to figure out if I can make the equivalent of a dll for my app, so I can add functionality later Sep 05 21:53:44 I don't believe that sort of stuff is supported in 1.0. Sep 05 21:54:03 ok, so I'll have to write a scripting language and have a vm built into my app Sep 05 21:54:44 I just wanted to verify that's the case Sep 05 21:56:55 and my last question of the day: will I be able to detect which carrier the phone is on, and what firmware version is installed and what device? Sep 05 22:01:25 hey Sep 05 22:01:51 is there a way to use an array of ints in a spinner Sep 05 22:02:15 if i put it in arrays.xml it gives me errors (it wants string-array) Sep 05 22:05:42 actually, I have one more question, did they remove the commandline option to open the sqlite database via commandline on the emulator, and if not, where is the command located? Sep 05 22:11:52 what's the best way to define/recognize new and more complex gestures? I _think_ I get how to retreive the shape of the input gesture with MotionEvent functions, but I'm not sure how to make a relatively accurate algorithm for identifying these gestures that will perform well within the restrictions of the platform. I know it can be done, the original palm pilot could do it - but what's the easiest way to do it now? Sep 05 22:16:47 herriojr, you're going to builld a vm for a scripting language on top of your app? that's impressive. Sep 05 22:17:54 well, there are some open source options available Sep 05 22:18:07 I was looking into kahlua Sep 05 22:18:07 Proteus_: i saw someone got jython working on it :) Sep 05 22:18:54 kahlua is a java implementation of lua (at least a subset) Sep 05 22:19:14 python's where it's at man :D Sep 05 22:19:42 though to be fair i never really used lua Sep 05 22:20:03 lua is widely used in gaming Sep 05 22:20:15 so is python :D Sep 05 22:20:18 for scripting Sep 05 22:20:20 heh Sep 05 22:20:31 python just scares people because it's so different Sep 05 22:20:36 squeakypants, wow! I didn't know jython existed! if jython can be made to work then there's hope for my ocaml-dalkvic project Sep 05 22:20:43 "whitespace sensitive? WTF???" Sep 05 22:20:57 what is whitespace sensitive? Sep 05 22:20:58 Proteus_: ocaml-dalkvic? Sep 05 22:21:10 squeakypants, based on ocaml-java Sep 05 22:21:25 but made to work with android Sep 05 22:21:39 herriojr: it uses whitespace (spaces) to detect blocks, not {} Sep 05 22:21:51 do you have a link for jython which is workable on android? Sep 05 22:22:06 yeah but idk how well Sep 05 22:22:06 are you talking about python or lua, I don't have much experience with either :) Sep 05 22:22:11 python ;) Sep 05 22:22:45 http://code.google.com/p/jythonroid/ Sep 05 22:22:53 proteus_: sorry, what's ocaml? Sep 05 22:23:24 also, why is my emu taking so fucking long to load? it's been like 3 minutes and it's still in text mode Sep 05 22:24:04 squeakypants: it depends on your computer :(( Sep 05 22:24:18 romainguy: yeah but it wasn't THIS long yesterday :-/ Sep 05 22:24:24 ah then I don't know :) Sep 05 22:25:03 i don't think it's my code cause it hasn't run it yet... Sep 05 22:25:52 squeakypants: the reason I want to build a vm into my app is so that it can be dynamically updated Sep 05 22:26:08 and other people can write addons for it Sep 05 22:26:12 etc Sep 05 22:26:17 herriojr: aha Sep 05 22:26:32 yeah python is very capable of that, but i've never tried it Sep 05 22:26:46 especially not with java (i've never used jython) Sep 05 22:27:01 I wonder if I can make calls to the vm from another java app Sep 05 22:27:21 with Jython you can invoke python code from Java Sep 05 22:27:25 and the other way around too Sep 05 22:27:26 well it's not really a VM :P it's just an interpreter Sep 05 22:27:27 ok, cool Sep 05 22:27:34 I don't know if this works with Dalvik though Sep 05 22:27:45 romainguy_: there's a android version http://code.google.com/p/jythonroid/ Sep 05 22:27:56 from what I see, it's packaged as an apk, which means probably not exactly what I want Sep 05 22:27:57 right now it seems like just a quick port though Sep 05 22:28:45 herriojr: i'm not too familiar with android (or java)'s structure but Sep 05 22:29:02 herriojr: it says the package name is org.python.util Sep 05 22:29:19 herriojr: so i assume once you have it installed, you should be able to access it from other apps? Sep 05 22:30:16 hmm, i'll try -wipe-data Sep 05 22:30:24 yeah, but it won't be able to modify the screen layout of my app, etc. Sep 05 22:30:37 herriojr: why not? Sep 05 22:30:53 apk's are sandboxed Sep 05 22:31:14 oic Sep 05 22:31:19 what happens in one can't affect another Sep 05 22:31:23 there must be a way to include them together though Sep 05 22:31:34 yeah, that's why I said I'd have to build it as a jar Sep 05 22:31:35 not necessarily an apk (it's open source) Sep 05 22:31:41 ah, gotcha Sep 05 22:31:48 yay! wipe-data worked :D Sep 05 22:31:57 and I need to see if I use it as a jar that the license will be compatible Sep 05 22:32:11 with my project Sep 05 22:32:24 says apache license Sep 05 22:32:28 same as android Sep 05 22:32:30 it has some gnu components Sep 05 22:32:39 you mean gpl'd? Sep 05 22:32:51 eah, that's what I meant Sep 05 22:33:00 mmm, yeah that could be a problem Sep 05 22:33:16 but if it's released under apache i don't think you'll have a problem Sep 05 22:33:36 can you re-license gpl? Sep 05 22:33:40 squeakypants, ocaml is a functional, multiparadigm language which elegantly stays close to the problem but can compile to native code which competes with C. It has support for modules and OO. The language is statically typed and well defined so most problems are caught at compile time yet good type inference makes static typing less of a hassle. The focus of the compiler/language design is to be able to write high-level functional code, i Sep 05 22:33:40 mperitive code, or whatever mix you want and still maintain high performance execution as native code, bytecode, or interpreted. It aslo features an advanced but fast garbage collector. Despite being a functional language, like say Haskell, ocaml is impure (allows side effects) and meant to be a practical language for getting things done, not just another fancy language for academics. Sep 05 22:34:29 the wikipedia is rather out of date, but I can link you to the pdf of an introductory book which lays out the main concepts of the language, if you like. Sep 05 22:34:39 nah, i got the gist :) Sep 05 22:34:40 seems neat Sep 05 22:35:12 umm, correct me if i'm wrong, but spinners are supposed to do something when you click on them, right? :P Sep 05 22:35:57 squeakypants: other people have had that issue Sep 05 22:36:05 oh really? Sep 05 22:36:07 greeeeat Sep 05 22:36:21 maybe i should switch to a list view Sep 05 22:36:53 how do you close an app? Sep 05 22:37:06 umm, let me see Sep 05 22:37:42 Don't mean to be a bother, but I was hoping to get some feedback from the google people here on whether my wikileaks app I described above was going to be to controversial? Sep 05 22:38:07 wikileaks? Sep 05 22:38:31 Proteus: I don't know whether they'd probably care Sep 05 22:38:55 it's not up to them whether you release an app or not Sep 05 22:38:58 wikileaks posts anonymous dumps of secret data from governments around the world Sep 05 22:39:23 yeah, but I'd understand them keeping it out of the appstore. Sep 05 22:40:11 or maybe I have this mixed up because I'm used to apple: will we be able to download and install apps from anywhere once android phones go live? Sep 05 22:40:20 I think most people wouldn't develop if they were to be choosey on who they include in the store Sep 05 22:41:00 I don't think they've released enough information about it Sep 05 22:41:14 Proteus_: they said it wouldn't need approval, like youtube Sep 05 22:41:19 but i assume they'll still moderate it Sep 05 22:41:23 that's completely awesome Sep 05 22:41:29 to exit the app, just call finish() in your activity Sep 05 22:41:40 herriorjr: lol, i meant in the emu :P Sep 05 22:42:05 you want to delete or exit the app? Sep 05 22:42:09 exit Sep 05 22:42:27 wouldn't it depend on whether you implemented the finish() call on your app or not? ;) Sep 05 22:42:40 and how you implemented it Sep 05 22:42:51 I don't think I understand what you're asking :) Sep 05 22:42:57 i mean like Sep 05 22:43:09 on the phone, is there a way to exit an app rather than just close it? Sep 05 22:43:29 hmm, I can't even get that to happen when I have it on a phone Sep 05 22:43:59 ? Sep 05 22:44:11 oh, I put android on a htc vogue Sep 05 22:44:23 I don't think you can at the moment Sep 05 22:44:28 why do you want to do that? Sep 05 22:44:30 you could remove the application and then re-add it Sep 05 22:44:35 the system takes care of everything for you Sep 05 22:45:18 hmm... now i'm just starting to think neither listviews nor spinners like integers :-/ Sep 05 22:45:42 ?? Sep 05 22:45:48 what do you mean by that? Sep 05 22:46:04 well i have a spinner (and i tried the same with a listview) Sep 05 22:46:15 with an ArrayAdapter Sep 05 22:46:24 it shows the first value but i can't click it Sep 05 22:46:33 in the listView it didn't show any values, just blank rows Sep 05 22:46:52 oh, heh, i just realized why the ListView didn't work :P Sep 05 22:50:46 jythonroid does contain gpl code, but it seems jython doesn't Sep 05 22:51:06 so *I think* by default jythonroid has to be gpl'd Sep 05 22:51:47 clicking isn't working for the listview either... only scrolling (with the scroll wheel) Sep 05 22:51:57 which is the equivilent of the arrows Sep 05 22:52:02 hmm, it's like it's completely ignoring the mouse Sep 05 22:52:12 what do you mean by clicking is not working? Sep 05 22:52:18 notification bar scrolls does work though Sep 05 22:52:28 romainguy_: if i click on the listview (or spinner) it doesn't do anything Sep 05 22:52:43 are any events thrown when that happens? Sep 05 22:52:53 how would i find out? debug? Sep 05 22:53:22 honestly, I don't know, I haven't been writing too much android code....mostly just trying to get it on the htc tilt and htc vogue Sep 05 22:53:44 squeakypants: have you registered a click listener? Sep 05 22:53:48 if the rumors about the t-mobile g1 are true i'm gonna try getting one :P Sep 05 22:53:52 romainguy_: eh? Sep 05 22:54:09 what are you expecting the listview to do? Sep 05 22:54:24 scroll and/or select each item Sep 05 22:54:37 when you click on an item I mean Sep 05 22:54:46 nothing Sep 05 22:54:54 then why do you say it's not working? Sep 05 22:54:59 but when i click an item on the list, it should be highlighted Sep 05 22:55:16 and when i touch and move the list, it should move Sep 05 22:55:19 no? Sep 05 22:55:21 yes Sep 05 22:55:32 right, it's not doing either Sep 05 22:55:38 nor does clicking a spinner do anything Sep 05 22:55:52 then there's something wrong with your code *or* with your emulator :) Sep 05 22:56:10 heh Sep 05 22:56:22 i just did a wipe-data so there shouldn't be a problem with the emu Sep 05 22:57:10 can you click on buttons or list in other apps? Sep 05 22:57:14 yup Sep 05 22:57:21 http://dpaste.com/76245/ Sep 05 22:57:50 (lol i'm just trying to make a simple dice roller app) Sep 05 22:57:58 what's the layout? Sep 05 22:58:19 a relativelayout for the entire thing Sep 05 22:58:33 can you show it to me? Sep 05 22:58:35 relativelayout inside that with 2 listviews and a textview Sep 05 22:58:44 guh i guess :P it's not very advanced code Sep 05 22:59:03 http://dpaste.com/76246/ Sep 05 22:59:26 just to be clear, can i do instead of ? Sep 05 22:59:31 yes Sep 05 22:59:32 it's just XML Sep 05 22:59:36 k Sep 05 22:59:40 * squeakypants changes it to look prettier Sep 05 22:59:53 ok I know what's going on Sep 05 23:00:00 remove the last listview Sep 05 23:00:02 the one at the bottom Sep 05 23:00:18 AHA Sep 05 23:00:21 thank you :) Sep 05 23:00:25 i get it exactly hahaha Sep 05 23:00:30 you made this listview cover the entire screen Sep 05 23:00:33 right Sep 05 23:00:36 but it's empty so it doesn't draw Sep 05 23:00:38 yeah i forgot about that :P Sep 05 23:00:41 but it captures the motion events Sep 05 23:00:50 how do i make it fill up the rest of the screen? Sep 05 23:00:50 told you, your fault :p Sep 05 23:00:53 hehehe Sep 05 23:01:46 is there a way i can make it fill the rest of the screen? Sep 05 23:02:07 with linearlayout it would be easier Sep 05 23:02:31 and use gravity to make the first one go to the top? Sep 05 23:02:42 no Sep 05 23:02:54 use a vertical linear layout Sep 05 23:03:10 keep your relative layout (even though your usage of fixed width/height makes me want to cry blood :) Sep 05 23:03:16 and then put your 3rd list view Sep 05 23:03:24 and give it a height of 0dip and a weight of 1.0 Sep 05 23:03:34 0dip? Sep 05 23:04:13 and how can i make it percentage-based? Sep 05 23:04:21 can i just use like 30% as a value? Sep 05 23:04:27 no Sep 05 23:04:44 you would have to give a height of 0dip to your relative layout Sep 05 23:04:48 and a weight of 2.0 Sep 05 23:05:01 what's dip? and what's weight? Sep 05 23:05:41 dip = device independent pixel Sep 05 23:05:51 lol just found http://code.google.com/android/devel/ui/xml.html Sep 05 23:05:52 weight = amount of remaining space you want to allocate to the widget Sep 05 23:12:00 ugh oh Sep 05 23:12:03 it crashes on launch :P Sep 05 23:21:17 thanks for the help, btw romainguy_ Sep 05 23:21:46 no pb Sep 05 23:53:23 is there a way to inflate xml that, say I pull off the wire, to an interface? Basically, I just want ot be able to specify a xml file or stream to use instead of having to specify a resource ID Sep 06 00:17:56 hey romainguy_ Sep 06 00:18:07 i'm having some more layout troubles :P wanna help me out lol Sep 06 00:21:33 oooh fixed it :P for some reason changing from px to dp worked when the issue had nothing to do with that :P Sep 06 00:40:22 how do i make a listener for a listview? Sep 06 00:41:32 setOnItemClickListener() Sep 06 00:42:02 romainguy: aha, thanks :) Sep 06 00:43:15 does anybody tell me the program flow? Sep 06 00:43:31 sorry!! Sep 06 00:43:46 can somebody tell me Android App lifecycle? Sep 06 00:44:03 docs.android.com Sep 06 00:44:19 or whatever the url is? Sep 06 00:44:56 http://code.google.com/android/intro/lifecycle.html Sep 06 00:45:26 heat: awesome Sep 06 00:45:30 heat: thanks Sep 06 00:56:07 what sort of floating-point performance can be expected from the first batch of android devices? Sep 06 01:02:42 what are you plotting? (pun half intended) Sep 06 01:14:22 with a listview, is there a way to get the actual contents of the selection Sep 06 01:14:27 instead of just the position Sep 06 01:14:46 like if i select "rabbit", how do i get "rabbit"? Sep 06 01:16:39 aha Sep 06 01:16:39 getSelectedItem() Sep 06 01:31:04 hmm Sep 06 01:31:19 i want it so when an item in a listview is clicked, it's selected Sep 06 01:31:21 so i did Sep 06 01:31:31 ((ListView)parentView).setSelection(position); Sep 06 01:31:45 in my OnItemClickListener Sep 06 01:31:48 but it's not working... Sep 06 01:32:33 oooh maybe i don't need the cast Sep 06 01:33:34 damn still doesn't work :'( Sep 06 01:34:58 hmm If in touch mode, the item will not be selected but it will still be positioned appropriately. Sep 06 01:37:25 yes Sep 06 01:37:31 in touch mode focus and selection do not exist Sep 06 01:37:38 apps should not rely on selection Sep 06 01:37:47 but if you really want to, you can use the "choice mode" in list view Sep 06 01:38:04 but really, you should not attempt selection Sep 06 01:53:54 hey romainguy Sep 06 01:54:57 so whats the company line on all this "Android Chrome" stuff... you guys gonna have a mobile chrome version releasing? Sep 06 01:59:33 catzilla, real time audio synthesis Sep 06 02:04:55 Rob-CS: I can't comment on that Sep 06 02:05:04 but Android already has one web browser based on WebKit Sep 06 02:05:10 so it has the same rendering engine as Chrome Sep 06 02:05:39 and that web browser that Android currently has... Sep 06 02:05:52 ? Sep 06 02:05:56 is that proprietary to the OHA? Google? or is it from another partner..? Sep 06 02:06:06 it was developed at Google Sep 06 02:06:12 but it will be open soruce with the rest of Android Sep 06 02:06:20 awesome, great info thanks Sep 06 02:06:25 by the way I'm loving Chrome! Sep 06 02:06:29 so darn fast Sep 06 02:06:50 glad to hear that :0 Sep 06 02:07:10 We've built some tools to change themes and make custom sad tabs over at http://chromespot.com Sep 06 02:07:22 its been a blast... can't wait for the plugins Sep 06 02:18:31 have any of you tried using scala with android? They say they've made good progress but I was hoping for more info on its stability. Sep 06 02:47:14 i'm going nuts Sep 06 02:49:14 how do i have a listview with multiple variables per view Sep 06 02:49:43 MatrixCursor? am I on the right track? Sep 06 02:54:00 dunno, never did thart Sep 06 02:54:08 (except Iconified List) Sep 06 02:55:01 guys, does the Layout-Preview work with you all the time? With me it sometimes shows "UnsopportedOperationException STUB needed" ..? Sep 06 02:58:40 i think i'm starting to get there lol Sep 06 02:58:58 i feel like this is waaaaay too complex for what i'm trying to do... maybe it's cause i'm spoiled by python **** ENDING LOGGING AT Sat Sep 06 02:59:57 2008