**** BEGIN LOGGING AT Wed Aug 12 02:59:57 2009 Aug 12 03:00:36 It says somewhere else, but I forget where Aug 12 03:00:46 I ended up reading the source. Aug 12 03:00:51 hi Aug 12 03:01:36 kroot, yeah, it says something about closing a cursor if you use invalidate, but that doesn't apply with SimpleAdapter :) Aug 12 03:14:20 anyone experienced the GPS service not terminated after your activity is killed? Aug 12 03:17:15 where are you shutting it down? Aug 12 03:22:25 onpause Aug 12 03:22:40 well i am doing locaitonManager.removeUpdates(this) Aug 12 03:22:43 in onPause Aug 12 03:22:49 yeah, I believe that should be enough Aug 12 03:22:56 it's been a while since i've done any GPS work Aug 12 03:23:01 yea i thoguht so Aug 12 03:23:17 but the gps icon continue to stay up on the status bar Aug 12 03:23:27 driving me nuts Aug 12 04:59:05 anyone got an idea how MyTrack draws the route efficiently? **** ENDING LOGGING AT Wed Aug 12 05:26:18 2009 **** BEGIN LOGGING AT Wed Aug 12 05:28:14 2009 **** ENDING LOGGING AT Wed Aug 12 05:32:06 2009 **** BEGIN LOGGING AT Wed Aug 12 05:34:16 2009 Aug 12 06:23:54 yay, finally got set back up again at home Aug 12 10:43:44 hello :) Aug 12 10:48:03 whast the H icon for mobile connectivity? seems to be either H or 3G for me Aug 12 10:48:28 how can i fade in a setdropshadowlayer? Aug 12 10:56:25 deebo: HSDPA Aug 12 10:58:41 oh, didnt even know my data plan does that Aug 12 10:58:52 hope i dont get a surprising bill next month :P Aug 12 11:02:01 any idea anyone ? Aug 12 11:06:52 :) Aug 12 11:18:07 lol @ android.permission.BRICK Aug 12 11:18:11 "Permission to Brick, sir?" Aug 12 11:18:12 :p Aug 12 11:25:41 anyone know how to intercept a msg being send (or make it so the user can decide with what 'app' to send it?) Aug 12 11:27:01 SinnerG, what do you mean by message ? Aug 12 11:27:32 sms I mean Aug 12 11:35:07 SinnerG, try this http://mobiforge.com/developing/story/sms-messaging-android Aug 12 12:56:11 hi all Aug 12 12:59:07 Amorgos: good morning Aug 12 12:59:44 good evening :) Aug 12 13:01:49 * bnovc^ still can't get used to the 15 min time from change->testing Aug 12 13:14:34 bnovc^: stop your complaining. I'm the only one who can complain today Aug 12 13:15:37 orly Aug 12 13:15:38 about what Aug 12 13:18:47 could someone clarify the relationship between onLayout() and layout()? when are these called? when does one need to call another? Aug 12 13:20:35 i think onLayout is more of a request, whereas layout() is telling children how to behave Aug 12 13:21:34 the docs say onLayout should call its children's layout() method. what exactly is the layout() method supposed to do? Aug 12 13:21:56 it receives four arguments, left, top, right, bottom. is that the bounding box where the view is supposed to draw itself? Aug 12 13:23:14 well, i'm not a great person to ask because i was trying to extend ViewGroup this morning and i've failed so far Aug 12 13:23:18 but you can see an example in platforms/android-1.1/samples/ApiDemos/src/com/example/android/apis/graphics/PictureLayout.java Aug 12 13:23:25 where onLayout is called and layout() is called on the children Aug 12 13:23:35 i believe it is a bounding box though Aug 12 13:23:54 * mikem`_ fires up the ApiDemos project Aug 12 13:24:46 mikem`_: i have a ViewGroup that I thought I did it right in but it just displays completely transparent but can't click the objects under it, so i know its there :\ Aug 12 13:25:07 your viewgroup -- it has children? and you're trying to click on those? Aug 12 13:25:12 yes Aug 12 13:25:30 it has 3 children, 2 ImageViews, and a custom View Aug 12 13:25:34 i can't see the images in the imageviews even Aug 12 13:26:44 mikem`_: http://bnovc.pastebin.com/m656f30a3 Aug 12 13:26:53 that's the jist of it Aug 12 13:26:57 the Log.e's are never invoked Aug 12 13:27:10 well, i should say the ones on click Aug 12 13:36:15 bnovc: why don't you just call super(context) in CursorPopupView(Context context)? Aug 12 13:36:22 similarly for the next constructor Aug 12 13:39:06 bnovc: it'd be interesting to assign an onClickListener to CursorPopupView and see whether it's for some reason stealing all the clicks? Aug 12 13:41:45 apparently the getMeasuredWidth()s for the children are returning 0 Aug 12 13:41:54 i thought that ImageViews would return the size of the image Aug 12 13:42:35 i do have super(context, null) Aug 12 13:42:53 i kind of hacked code together from other places, not sure why it was null Aug 12 13:55:29 bnovc: it's probably no big deal... i always call the super constructor i'm overriding, is all :) Aug 12 13:55:44 the getMeasureWidth() returning 0 could be an issue ;) Aug 12 13:59:25 how can i fade in a setdropshadowlayer? Aug 12 15:04:13 Hi Aug 12 15:04:19 anyone got an idiea how to bui,ld a theme, that is not automatically applied to all android:background elements and switch that on the fly for example by clicking a button? Aug 12 15:04:19 I can't figure out how to switch the style Tag of a view Aug 12 15:04:33 programmatically Aug 12 15:04:51 i don't think android developers wake up until noonish Aug 12 15:05:01 * bnovc hasn't done anything w/theming Aug 12 15:05:23 bnovc, they wake up earlier than that, but they're PST :) Aug 12 15:05:26 anyone else notice oddities with paths with spaces even quoted in run arguments? Aug 12 15:05:29 (the google folks, anyway) Aug 12 15:07:54 hey I am awake and it is 5 pm right now ;-) Aug 12 15:08:23 KNY: guess thats true Aug 12 15:08:27 i get up at 6:30 CST :\ Aug 12 15:09:13 what time uzone is that? cst? Aug 12 15:09:55 central Aug 12 15:09:59 EST - 1 Aug 12 15:10:01 i'm -5HR from UTC right now Aug 12 15:10:09 sometimes -6 Aug 12 15:15:45 hi, i already published my first app "SlideType Keyboard", but i'm still newbie and i'd like to know Aug 12 15:16:07 how to render a keyboard more or like like this: http://www.latinsud.com/pub/slideType/ (i guess KeyboardView class is not suitable for that) Aug 12 16:13:40 hi guys Aug 12 16:14:03 my portscanner in emulator works, ok, in my phone via 3G all ports allways open :/ Aug 12 16:14:46 hmm Aug 12 16:15:01 something is in the middle :/ Aug 12 16:15:08 maybe my isp? Aug 12 16:15:16 some device Aug 12 16:15:30 You dont get your own IP with 3G Aug 12 16:15:34 as far as i know Aug 12 16:15:47 You share ip with everyone whos using the same mast Aug 12 16:16:11 or what its called Aug 12 16:16:30 yeah, mast Aug 12 16:16:46 Question Aug 12 16:17:05 Is it possible to make the Spinner have a small tiny icon while its not activated Aug 12 16:17:05 the socket connected :/ to every port every ip always establish connection Aug 12 16:17:06 :/ Aug 12 16:17:26 and when its activated, the icon will remain the same size, while the dropdown is wider.. Aug 12 16:17:47 Spinner = the dropdown widget thing Aug 12 16:22:04 where is ifconfig command? Aug 12 16:25:21 netcfg Aug 12 16:38:28 hello Aug 12 16:38:46 hello Aug 12 16:38:56 is the .getExternalStorageDiretory() different on the MyTouch? Aug 12 16:39:33 try it? :x Aug 12 16:39:40 does it matter if it's different? Aug 12 16:39:42 jesus there is no ifconfig Aug 12 16:39:50 but netcfg Aug 12 16:40:50 i am looking for a way to display a layout (like a popup window) ontop of everything else Aug 12 16:41:02 any hints as to how i can achieve that? Aug 12 16:41:31 ante_ Toast ? Aug 12 16:42:23 cya Aug 12 16:42:27 aunn, can i put widgets in it ? :) Aug 12 16:43:21 should be everything visible is some type of view right? Aug 12 16:43:54 aunn, read up on Toast... thanks, but not what i am looking for Aug 12 16:44:02 i want to be able to put widgets in it Aug 12 16:44:25 ante_ Toast is for display only, if you want widget , then it will be Dialog Aug 12 16:45:00 Anyone ever tried to run X directly on an android phone Aug 12 16:45:01 ? Aug 12 16:45:11 yes, someone has Aug 12 16:45:30 aiui you have to patch X's framebuffer driver to update the screen Aug 12 16:45:40 (I'm not talking about the offscreen Xvnc server stuff people have been usingfor a while now) Aug 12 16:45:48 yeah, I was trying to do that Aug 12 16:45:55 are such patches already around? Aug 12 16:46:06 (this is more of a #android question, imo) Aug 12 16:46:09 oh. Aug 12 16:46:24 it's alright Aug 12 16:46:38 aunn, thanks Aug 12 16:51:16 ante_ look for the example in the ApiDemo Aug 12 16:52:59 What do i need to do to use onLocationChanged in a MapActivity? want to keep the map centered on my position. Aug 12 16:53:45 zinx: do you remember where you've seen that? I can't find any related resource on google Aug 12 17:05:13 Fixed it :) Aug 12 18:21:57 quiet in here today Aug 12 18:28:58 How to import SQLite database file to the database Aug 12 18:38:36 yawn Aug 12 18:38:41 hey folks Aug 12 18:39:50 hi there, can anyone tell me real quick how it's possible to create two textview elements side by side. One floating to the left, and the other floating to the right (using code, not xml) Aug 12 18:40:18 Andrioid: by floating you mean a minimum width, with a lot of empty space in between? Aug 12 18:40:39 or that :) Aug 12 18:40:59 but a dynamically discovered space though... because I don't want shit to hit the fan if they decide to turn the phone around Aug 12 18:41:03 do you mean [ text.... ] [ text.... ] or [ text ] [ text ] ? Aug 12 18:41:28 not done much layout programming, but like in CSS where you have two DIV and you put one to float left and the other to float right Aug 12 18:41:48 that would be like the latter. is the latter what you want? Aug 12 18:41:59 like... | Left side text ..(dynamic spacing).. Right side text | Aug 12 18:42:05 yeah Aug 12 18:42:13 ok, this can be done easily Aug 12 18:42:23 however, i need to understand your requirement to do it in code and not xml Aug 12 18:42:46 it is far clumsier to express layouts in code. Aug 12 18:42:46 not really a requirement, its just my first Java app and it's already a mess :) Aug 12 18:42:57 if its a mess, why are you trying to make it messier? Aug 12 18:43:07 well, first I get it working... then i rewrite Aug 12 18:43:20 ok, then do it in xml Aug 12 18:43:28 that is both the conventional way, and the clean way. Aug 12 18:43:38 ok, I'm all ears/yours :) Aug 12 18:44:57 so anyway, the layout is simple: Aug 12 18:45:40 err sorry i meant alignParentLeft and alignParentRight Aug 12 18:45:57 if you need me to be more specific, i can be. im not sure just how much you understand about android layouts Aug 12 18:46:15 well, not so much (never done any layouts in xml before) Aug 12 18:46:22 how does this then interface with the code? Aug 12 18:46:38 have you looked through ApiDemos, hello worlds, and other sample android code? Aug 12 18:47:21 yes and I've tried messing around with main.xml, but somehow it just felt easier defining the layout in the code instead Aug 12 18:47:34 its not easier. Aug 12 18:47:43 its much, much harder Aug 12 18:48:04 anyway, i dont think youre quite ready for the information im giving you. go spend a fair bit of extra time looking through more sample code and come back in a little bit Aug 12 18:49:04 ... been reading API docs and sample code the last couple of weeks Aug 12 18:50:41 but thanks anyway Aug 12 18:53:15 Android , play around with droidDraw a bit to get a hang on the XML layout Aug 12 18:53:47 droidDraw is not the best tool out there but it will give you some visual and insight on XML Aug 12 18:54:50 the next android plugin will have feature like it and will be easier to develop Aug 12 18:56:17 do not do layouts in code Aug 12 18:56:24 period Aug 12 18:56:41 I come from C, every thing is done in code (: Aug 12 18:56:49 but thanks for the pointer aunn Aug 12 18:57:13 you could use xrc Aug 12 18:57:59 Hmm, is it possible to position a Dialog? Aug 12 18:58:07 at a certain x,y coordinate Aug 12 18:58:08 you will love XML later cause it is so easy, just push urself a bit from ur old habit ;) Aug 12 18:58:57 aunn: yeah, it makes perfect sense to seperate layout from code - but old habbits die hard... I'll give it a shot Aug 12 19:03:10 anyway, thanks for the quick response guys... not used to this on IRC Aug 12 19:16:28 How do i get my hands on the x, y coordinates for a Dialog/Window? :-P Aug 12 19:16:35 google isnt helping.. Aug 12 19:16:55 hello Aug 12 19:17:18 what's the best way to get ur current GPS location Aug 12 19:18:00 I am Japanese Aug 12 19:19:44 ante_, I don't think you can/should Aug 12 19:20:12 KNY, hmm okay... thats a shame Aug 12 19:20:21 KNY, i am not to fond of the Spinner Aug 12 19:20:27 i am trying to make a Dialog appear under a button Aug 12 19:20:31 to emulate a drop down menu Aug 12 19:20:32 :) Aug 12 19:21:05 ante_, use a framelayout Aug 12 19:21:42 hey guys Aug 12 19:21:44 i'm american Aug 12 19:21:52 hello Aug 12 19:21:53 i am indian Aug 12 19:22:09 guys, he already left Aug 12 19:22:14 ...failboat Aug 12 19:22:15 oh shit Aug 12 19:22:16 haahah Aug 12 19:22:21 haha Aug 12 19:23:37 KNY, a framelayout for the Dialog? Aug 12 19:24:11 ante_, no, you'd have to use a framelayout so you could layer the drop-down part on top of everything Aug 12 19:24:35 I am FOB Aug 12 19:28:04 I'm trying to encapsulate some consistent presentation into a class that extends View, it holds onto a LinearLayout object, adds some child view elements to that layout, and implements onDraw by calling layout.draw, I think I'm missing something fairly obvious, because nothing seems to be getting rendered, any suggestions? Aug 12 19:30:02 KNY, thanks Aug 12 19:30:27 ante_, this seems like a terrible idea, though :) Aug 12 19:31:13 framelayout or my idea? Aug 12 19:35:21 KNY, you never needed a dropdown menu? ;) Aug 12 19:35:37 no Aug 12 19:36:18 You'd rather switch all the content temporarily? Aug 12 19:36:28 or something... i dont know Aug 12 19:41:31 the spinner used to drop down in version m5 (not sure in what version it changed to popping a new dialog) Aug 12 19:41:48 personally I like the new one better because it gives more real estate to scroll in case there are lots of items Aug 12 19:42:15 Hi, I just built the source for the dream target because I had to expose the bluetooth APIs. My question is now how do I use the source tree for my app. I understand I need to flash the phone with the new image first, but how do I set up my dev environment? Aug 12 19:42:31 but if you really wanted to get the "drop down" animation, maybe you could utilize one of those collapsable/expandable view thingamajigs Aug 12 19:44:46 anyone? has anyone built the source and then used that to make an app? Aug 12 19:46:36 hmm Aug 12 19:59:38 Sentinel: yes. Aug 12 19:59:57 jasta: excuse me? Aug 12 20:00:32 Sentinel: yes, i have built the source and used it to build apps. Aug 12 20:00:44 jasta: can you tell me how to do it? Aug 12 20:00:58 well, ok. Aug 12 20:01:01 I've built the source. Aug 12 20:01:04 did you have a specific question though? Aug 12 20:01:28 my question is mostly what do I do now that I've built the source to my liking? Aug 12 20:01:49 well, you can make sdk, which you can then point the Eclipse ADT plugin to. Aug 12 20:01:58 but this is not the normal approach google engineers use. Aug 12 20:02:12 that sounds like what I want to do Aug 12 20:02:20 what is the "normal approach" ? Aug 12 20:02:22 normally, Google would just place stuff in packages/apps/Foo and create an Android.mk Aug 12 20:02:31 then build it with mmm and deploy with adb remount && adb sync Aug 12 20:02:40 this is the workflow for engineers working within android Aug 12 20:02:46 mmm? Aug 12 20:02:57 likewise, you can make a vendor/yourorg/apps/... Aug 12 20:02:59 and plug that in Aug 12 20:03:04 depends on what youre trying to do really Aug 12 20:03:20 I just want to make this app work with this phone and nothing else Aug 12 20:03:23 Sentinel: here, read this: http://devtcg.blogspot.com/2009/03/building-running-and-debugging-android.html Aug 12 20:03:24 one minute Aug 12 20:04:21 youre not doing a great job explaining what you have done, what you want to do, and how you tried to do it. Aug 12 20:04:55 I know. I'm sorry. Aug 12 20:07:51 Sentinel: what is it about your app that needs a new firmware build/ Aug 12 20:08:00 rfcomm bluetooth Aug 12 20:08:28 thanks for helping everyone. time to sleep Aug 12 20:08:39 * ante_ goes to bed Aug 12 20:11:45 ok, let me try to understand where to go from here. I'm building the source tree with my modifications (unhide bluetooth api's) in the background. Next, I want to make my application. The two ways suggested were to 1) build an SDK (I have no idea how) and then develop with that. This seems pretty simple once the SDK is built; I'd want to drop it in to replace the official SDK in Eclipse. 2) Make my app in the source tree like the off Aug 12 20:12:03 Sentinel: let me stop you there... Aug 12 20:12:08 ok Aug 12 20:12:15 you dont need to un-@hide hidden APIs to get access to them. Aug 12 20:12:28 how should I access them/ Aug 12 20:12:32 in fact, you dont need to modify the framework at all. Aug 12 20:12:43 all apps being built inside the android build system get to use @hide'n apis. Aug 12 20:12:48 they are only hidden to make an sdk build Aug 12 20:13:09 so, all you must do is place your app under packages/apps/MyApp, create an Android.mk for it, and build it with access to whatever private apis you want Aug 12 20:13:32 but be careful: you need to link your app against the right version of android, so make sure you use repo init -b android-1.5r3 && repo sync Aug 12 20:13:57 then take the blog post i pasted you and use it to do rebuilds of your app during development Aug 12 20:15:09 Sentinel: @hide is a feature of the android build system which "filters" the entry out of the final android.jar that gets packaged into the SDK. the entry still exists on the phone, you just have no way to link to it from the sdk. when building inside the andorid source tree (not using the SDK or Eclipse ADT plugin), you are linking directly against the real sources and so you do not have this limitation Aug 12 20:15:43 this grants you access to all the @hide'n apis Aug 12 20:15:45 ok, I understand that now Aug 12 20:16:09 this is a more efficient alternative to using reflection to accomplish the same thing. Aug 12 20:16:42 http://source.android.com/documentation/building-for-dream so following this doc, making my app goes between steps 4 and 5? Aug 12 20:16:59 you need not add any additional steps to build your app Aug 12 20:17:05 in fact, you dont need to follow that document at all Aug 12 20:17:11 building-for-dream is not what youre after. Aug 12 20:17:21 follow the document on my blog which i pasted to you Aug 12 20:17:26 but init using: Aug 12 20:17:30 repo init -u ... -b android-1.5r3 Aug 12 20:17:47 then create packages/apps/MyApp, and put an Android.mk in there (look at other apps for reference) Aug 12 20:17:58 then simply type make to build android (and your app) Aug 12 20:18:11 or use mmm packages/apps/MyApp, as per my blog post Aug 12 20:18:21 why is build for dream not what I want? Aug 12 20:18:35 because youre just trying to get access to private apis, you arent trying to produce a phone image to deploy to dream Aug 12 20:18:37 what is a good approach to draw/track position on the mapview like how MyTrack does it? Aug 12 20:18:54 yes I am Aug 12 20:19:03 Sentinel: it didnt sound like it from your initial explanation Aug 12 20:19:10 sorry if I was unclear Aug 12 20:19:16 what have you modified, and why? Aug 12 20:19:40 all I did was take away the @hide tags. You have explained why that was unnecessary Aug 12 20:19:48 so then you dont need a system image Aug 12 20:19:54 right? Aug 12 20:20:27 just to make sure I understand, what do you mean by "system image" ? Aug 12 20:21:46 Sentinel: i mean system.img, which can be flashed to a phone. Aug 12 20:22:08 I don't know if I need that or not. Aug 12 20:22:18 you don't Aug 12 20:22:20 ok Aug 12 20:22:24 ok sentinel Aug 12 20:22:28 what do I need to do then? Aug 12 20:22:34 after having this little dialog, i'm a little skeptical that you should even be doing what youre doing Aug 12 20:22:36 also, I'm sorry for taking your time Aug 12 20:22:55 you really dont seem to fundamentally grasp the issues involved and so have no business creating an app that is using private apis Aug 12 20:23:06 perhaps im wrong, but youve done a poor job demonstrating the opposite here today Aug 12 20:23:13 look you don't need to insult me Aug 12 20:23:19 I'm just looking for help Aug 12 20:23:41 Sentinel: please do not create an app that uses private apis. Aug 12 20:23:48 you have no business doing this Aug 12 20:23:50 it is not for market Aug 12 20:23:55 i dont care Aug 12 20:23:55 or anyone else's use Aug 12 20:23:56 just dont. Aug 12 20:24:27 youve demonstrated a very weak understanding of just about everything necessary to do this correctly Aug 12 20:24:34 so just stop :) Aug 12 20:24:46 you smile? Aug 12 20:25:01 I need to do this. it's not like some hobby project Aug 12 20:25:20 :X Aug 12 20:25:40 I didn't know android didn't have proper bluetooth api's when I started, and I haven't used android before Aug 12 20:26:01 but now I'm committed, and I'm trying to make it work, and I believe I'm very close. Aug 12 20:27:30 Sentinel: you are close, because i told you exactly what you needed to do Aug 12 20:28:11 jasta: yes, I know. I'm not discounting your help at all. Thank you. Aug 12 20:28:26 you dont even recognize what i said as the solution to your problem though Aug 12 20:28:34 this is why i dont think you have any business doing what youre doing :) Aug 12 20:28:35 just stop? Aug 12 20:28:41 that doesn't seem like a solution Aug 12 20:29:24 hehe, ok Sentinel, you go figure it out. Aug 12 20:29:55 you're too cruel :/ Aug 12 20:33:06 jasta: anyway, I think I know what to do, more or less. Thanks for the tips about @hide. Aug 12 20:33:15 hacks :( Aug 12 20:33:19 zinx: ? Aug 12 20:33:26 @hide Aug 12 20:33:41 and using @hide'n APIs :x Aug 12 20:33:53 zinx: wish I could avoid it Aug 12 20:33:57 ahh yes, well he clearly doesn't understand what he's doing. that's what scares me Aug 12 20:34:23 ever notice it's always the ones who won't tell you what they're doing? Aug 12 20:34:23 jasta: be afraid! oooooooooooh Aug 12 20:34:33 you never asked. Aug 12 20:34:56 zinx: well it's because they think they're special Aug 12 20:35:00 idiots often do Aug 12 20:35:07 I get errors by dlopen when I try to load an .so file made with the NDK.. how can I tell which symbol it is that is incorrect? Aug 12 20:35:21 ludde: ...what errors? :) Aug 12 20:35:28 ludde: check logcat Aug 12 20:35:36 ludde: java should mention some classes not found or something, generally Aug 12 20:35:39 well, thanks jasta. take it easy. Aug 12 20:35:50 ludde: otherwise... ldd it, the dlopen in Android has /very/ little error reporting Aug 12 20:35:57 oh no, a university student. *shudder* :) Aug 12 20:36:04 ludde: in fact, it gives completely bogus messages for most errors. Aug 12 20:36:14 does it really? Aug 12 20:36:17 yes. Aug 12 20:36:20 it has one error, afaik Aug 12 20:36:21 lame Aug 12 20:36:23 it returns that for everything Aug 12 20:36:44 took me a bit to realize that way back when :x Aug 12 20:36:47 lemme show you the error Aug 12 20:37:11 I/dalvikvm( 1757): Unable to dlopen(/data/data/com.pinball.LuddePinball/lib/libpinball.so): Cannot find library Aug 12 20:37:29 there's no unresolved functions/classes mentioned? Aug 12 20:37:32 nope. Aug 12 20:37:33 do you mind if i ask the obvious question? Aug 12 20:37:42 it says that 'Cannot find library' whenever a symbol is missing Aug 12 20:37:44 it's a weird text. Aug 12 20:37:45 why do you need NDK for pinball? :P Aug 12 20:37:56 ludde: it says that for every error Aug 12 20:38:12 zinx: because it has music and stuff Aug 12 20:38:21 uhm Aug 12 20:38:24 anyway, i'm just porting it to the android. Aug 12 20:38:27 ludde: how exactly is it going to play music from the NDK? Aug 12 20:38:30 you don't need native stuff to play music :P Aug 12 20:38:35 jasta: using the AudioTrack C++ class Aug 12 20:38:40 and i don't know that there are any APIs to do that Aug 12 20:38:46 i already got that part sorted. Aug 12 20:38:52 as well as graphics framebuffer access. Aug 12 20:38:55 ludde: hmmmmmmm, this is av ery strange thing youre doing. Aug 12 20:38:58 now.. C++ you say, is it using STL? Aug 12 20:39:11 zinx: no, it's mostly C-ish code. Aug 12 20:40:05 i looked through the import table, and i found no obvious functions that shouldn't work Aug 12 20:41:20 then perhaps it's not a symbol problem, or perhaps you're missing a symbol Aug 12 20:41:37 though in the latter case you should have gotten some sort of feedback from the java side Aug 12 20:41:46 http://pastebin.com/m4ce192af Aug 12 20:42:13 all the android, Sk* classes work cause I've tried linking against them with my test app Aug 12 20:42:44 so it's probably one of longjmp, strcpy, operator new, sethmp, memcpy, operator delete, memset, strcmp, sprintf, strlen or the ABI-helper calls Aug 12 20:42:54 setjmp even Aug 12 20:43:13 you can dump the symbols of the system libraries :/ Aug 12 20:43:23 is there no ldd on adb shell? Aug 12 20:43:30 sorry, nm was the correct one Aug 12 20:43:35 probably want nm -D for shared libraries Aug 12 20:43:47 hi ... is there some nice example code to showcase some guis, that goes beyond what droiddraw shows? (which kinda fails btw imo) Aug 12 20:43:52 i doubt it's available via toolbox/busybox Aug 12 20:43:59 very much a development tool Aug 12 20:44:10 zinx: hm, but if I run it on my dev machine, how will it help me? Aug 12 20:44:25 but you can pull the .so to your machine and dump the symbols w/ a multiarch bintools Aug 12 20:44:57 you'll at least know what symbols are offered, so you can find if any of the ones you're using are unresolved Aug 12 20:45:10 i'm going to try and get the linker to link it against libc.. Aug 12 20:45:11 me, i don't even know that it's missing symbols. Aug 12 20:45:20 or where they're missing from, if it is :/ Aug 12 20:45:21 then it will at least remove the stuff that's inside libc. Aug 12 20:45:39 could very probably even be in your .so (i.e., not defining all the JNI stuff) Aug 12 21:00:18 Is there a good way to paint different fonts if you're working within a View? Is TextView the only way to go? Aug 12 21:02:53 Maybe a custom view, then canvas.drawText(...) Aug 12 21:03:27 so the best way is usually to put a view within a view Aug 12 21:04:04 http://bnovc.pastebin.com/m4ecd9fc9 .. in my custom view, my text isn't being drawn ofrom line 39, and when i add this viwe to a LinearLayout, the ImageView that i add after it dosen't show up Aug 12 21:04:13 well wait... if you can create your own view that changes the font when you use drawText() that's pretty much what I'm asking hehe Aug 12 21:04:14 zinx: It seems to be caused by either __dso_handle or __aeabi_atexit Aug 12 21:04:17 I'm not sure why the first problem occurs and I'm gusesing the second is width/height related somehow? Aug 12 21:04:18 unless by different fonts you accept bold (iirc it was supported inside the textview) Aug 12 21:04:45 SuD, heh well I don't care about the face so much, more the size Aug 12 21:04:52 anyone see any obvious mistakes? hopefully so as my code is only ~40 lines Aug 12 21:05:41 i think you can change the font of a whoe textview Aug 12 21:06:32 use SpannableTextBuilder Aug 12 21:06:35 my background does show up though Aug 12 21:06:37 SuD, well I guess I will be doing that. thank you :) Aug 12 21:07:48 spannabletextbuilder lets you use different text sizes in one textview Aug 12 21:08:18 pskink, is that aimed at me? Aug 12 21:08:26 are both setMinimumWidth and onMeasure+setMeasuredDimension supposed to be required on a custom view? Aug 12 21:08:59 oep, yes Aug 12 21:09:25 bnovc: i don't know, but it compiles and runs without them Aug 12 21:09:37 pskink, well it's not exactly what I want to do. The idea was to avoid using textviews and work from the low-level Aug 12 21:09:43 SuD: doesnt run correctly :P Aug 12 21:10:10 pskink, I don't necessarily need different text sizes in the same textview Aug 12 21:10:33 oep, but why work on low level if you can use ordinary TextView Aug 12 21:10:40 OEP: do you know that may imply to generate line breaks ? Aug 12 21:11:26 oep, ok i see Aug 12 21:11:55 pskink, I'm working within one view right now Aug 12 21:12:05 SuD, what will generate line breaks? Aug 12 21:12:54 if you want to render paragraphs, your code needs to calculate where to break lines Aug 12 21:13:19 SuD, oh well hopefully this should just be a one-liner Aug 12 21:14:10 It may end up being simpler to put my text in PNGs to ensure they will look the same across all devices, but I liked to idea of being able to easily change the text :) Aug 12 21:14:28 OEP: a one-liner for _this_ device, maybe. ;) Aug 12 21:14:36 you really dont want to render text manually, trust me Aug 12 21:14:40 TextView is doing a LOT of owrk for you Aug 12 21:15:10 jasta, OK. I Aug 12 21:15:17 I need to read up about views within views* :P Aug 12 21:15:41 views within views? Aug 12 21:15:53 is it correct to say: a view that has views inside is called a layout ? Aug 12 21:15:55 that is intrisic to the view concept, of course. how do you think layouts work? Aug 12 21:16:04 SuD: strictly speaking, its a ViewGroup. Aug 12 21:16:10 jasta, to be honest text Layout does it Aug 12 21:16:19 layouts do have children, and are viewgroups, but the inverse is not always true Aug 12 21:17:17 SuD: i would personally define a layout as a generic viewgroup which is designed merely to position and measure other views. Aug 12 21:17:44 jasta, I'm catching on I think =p Aug 12 21:17:47 but not all viewgroups are this way. for insatnce, TabWidget is a ViewGroup but its not really a generic layout Aug 12 21:18:10 OEP: if you want to put textviews in another view, you probably want to place them in a layout, like LinearLayout Aug 12 21:18:27 btw, i'm trying to render this in android using KeyboardView: http://www.latinsud.com/pub/slideType/ Note that letters are positioned in a specific place within each key Aug 12 21:19:02 SuD, you could do that with RelativeLayout but you'd probably be better off just making images Aug 12 21:19:04 It seems that each key can be rendered by a "Drawable". I hope i can create a custom drawable and render text inside it Aug 12 21:19:17 Really what I have is a game here, so a view that encompasses the whole screen. I need to overlay formatted text on this screen Aug 12 21:19:51 OEP: ahh, well check out the source to some game and see how they've done it i guess Aug 12 21:20:00 a couple of google made games are open source Aug 12 21:20:04 look at the apps-for-android project Aug 12 21:20:07 * KNY points to the lunarlander demo Aug 12 21:20:09 LunarLander here I come Aug 12 21:20:18 i would look at something other than lunarlander personally Aug 12 21:20:21 see apps-for-android :) Aug 12 21:20:30 =) Aug 12 21:20:34 are you doing a game menu ? i guess there are menus already out there Aug 12 21:20:40 jasta is too good for a tutorial ;-) Aug 12 21:21:30 SuD, No just like sending instructions to the player Aug 12 21:21:35 I've done menus before... Aug 12 21:31:59 yeh, jasta is totally in a different league, well for me at least :) Aug 12 21:37:10 * bnovc hopes someone looks at his code and helps! Aug 12 21:48:49 how do I make a timer that runs at 60hz? Aug 12 21:49:11 use a Handler, as you make any timer. Aug 12 21:49:18 jasta: http://ludde.dyndns.org/screencap/c0b3a6056477b3d4.png Aug 12 21:49:19 but keep in mind you've got a mobile phone here, precise timing is impossible Aug 12 21:49:57 jasta: yea Aug 12 21:51:37 ludde, you can take just screenshots of the screen, you know :) Aug 12 21:57:33 how do I get key input events to my surface? Aug 12 21:57:42 it's a SurfaceView Aug 12 21:58:49 Has anyone had any sort of issue with setting wakelocks on Hero? Aug 12 22:01:11 I think I need to use KeyEvent.Callback Aug 12 22:07:48 ludde: handle key events from the activity Aug 12 22:08:06 hm Aug 12 22:08:13 if you're using a surfaceview there's probably an override for touch events Aug 12 22:08:17 okay Aug 12 22:08:21 because surfaceview overrides normal whatsit iirc Aug 12 22:10:46 are there any anycut/useful switchers-like app where you can one-step enable gps? (Having to put it in /system/app is not a problem...) Aug 12 22:12:18 DarkFoxDK: look into widgets Aug 12 22:12:27 actually, not sure if that's possible anymore Aug 12 22:13:22 no, cupcake forces you to go to the settings page manually, however, some apps (like LocService) can switch it without doing that if you move it to /system/app Aug 12 22:39:01 anyone else had the problem that sending sms messages longer than 1 message (160 chars) results in weird non-readable messages using the android emulator? Aug 12 22:39:26 slit in multiples instead of 1 Aug 12 22:39:49 no, not as of yet Aug 12 22:39:59 actually, not sure I tried using the emu for this Aug 12 22:43:03 hmm ok Aug 12 22:43:33 the emu can send sms? Aug 12 22:43:34 ill try running the same on my phone using adb Aug 12 22:43:49 yeah to other emu instances :> Aug 12 22:44:24 can someone develop dasher for android? it's open source and everything! Aug 12 22:46:16 he guys - u no the drawables folder, is it possible for me to have like other folders inthere to keep it more organised like drawables/gfx/maps/map.jpg Aug 12 22:46:26 and then do R.drawables.gfx.maps.map Aug 12 22:46:59 no it's not Aug 12 22:48:05 so i just have to have a MASSIVE drawables folder Aug 12 22:48:13 what if im making agame with tons of textures and thingd Aug 12 22:48:14 yes Aug 12 22:48:19 u just have to cram them all in Aug 12 22:48:21 thats poor Aug 12 22:48:21 hey romain Aug 12 22:49:39 AndyArmstrong: just name them sensibly, that slal you can do :) Aug 12 22:50:15 what's the best way to get your current GPS location Aug 12 22:50:26 hoy jasta Aug 12 22:50:58 right now im using getLastKnownLocation.. will that suffice? Aug 12 22:51:22 yea Aug 12 22:51:25 but may not be that accurate Aug 12 22:51:29 you can force it to update Aug 12 22:51:30 but can take time Aug 12 22:51:31 and battery Aug 12 22:51:39 hmm.. Aug 12 22:51:46 i guess ill just keep as is Aug 12 22:52:31 fangus: just give the user a way to force it to update if they want Aug 12 22:52:39 just be sensible Aug 12 22:55:33 <_Roman> Is there a way to alter the sample rate of touch screen events? (much like the SENSOR_DELAY_* constants provide) Aug 12 22:56:45 _Roman: no Aug 12 22:57:58 <_Roman> ok, thanks Aug 12 23:03:25 jasta how do i force update location? Aug 12 23:06:39 blerg: http://pastebin.com/d3e0a5d92 Aug 12 23:06:56 I'm a little SQL clueless, can anyone tell me what I'm doing wrong? Aug 12 23:07:17 I have a list of ID's and I just want them in one cursor Aug 12 23:10:23 why does http://pastebin.com/m4940e1ed not stretch my image to be that exact size? Aug 12 23:11:03 fangus: you register to listen for location changes Aug 12 23:11:27 this is an asynchronous event. Aug 12 23:12:23 instead my image just sorta shifts to the right slightly Aug 12 23:12:29 it doesnt fill that specific width and height Aug 12 23:14:16 AndyArmstrong: try android:scaleType Aug 12 23:22:56 whaledawg scaletype!? Aug 12 23:23:29 are you using eclipse? Aug 12 23:23:39 yeah Aug 12 23:23:47 fitXY is that the option i want u think? Aug 12 23:24:08 start typing adroid: inside the xml file Aug 12 23:24:15 and look at scaleType Aug 12 23:24:29 it doest do anything Aug 12 23:24:37 it doesnt autocomplete inside the xml duno why Aug 12 23:24:42 so yeah Aug 12 23:24:43 scaletype Aug 12 23:24:45 fitXY? Aug 12 23:26:04 thats it cheers buddy! Aug 12 23:26:08 didnt even know that existed! Aug 12 23:47:54 is there an easiest way to display debugging informations (Exception.toString()) then with Toast? Aug 12 23:48:15 or must I create a textView? Aug 12 23:48:57 can anyone try to reproduce this bug? : http://code.google.com/p/android/issues/detail?id=3539 Aug 12 23:50:12 simply try to send a message between 2 emulators, containing more that 160 characters Aug 12 23:54:12 okay, didn't find the Log class... Aug 13 00:01:34 seeme: there is android.util.Log Aug 13 00:02:05 seeme: http://developer.android.com/reference/android/util/Log.html Aug 13 00:06:31 mikem`_: you got emulators running? Aug 13 00:07:15 JS88: sure Aug 13 00:07:25 could you open 2 emulators for me? Aug 13 00:07:53 not sure how. i always just launch emulators from Eclipse Aug 13 00:08:04 you work on linux? Aug 13 00:08:08 yep Aug 13 00:08:13 oke Aug 13 00:08:56 in commandline: first cd to your sdk folder Aug 13 00:09:14 then, chmod a+x tools/emulator (so the emulator can run) Aug 13 00:09:42 JS88: hm, tools/emulator doesn't exist Aug 13 00:10:05 ah, found it Aug 13 00:10:11 then, run: android create avd -n avd1 -t 2; android create avd -n avd2-t 2 Aug 13 00:10:14 good :) Aug 13 00:10:40 typo: android create avd -n avd1 -t 2; android create avd -n avd2 -t 2 Aug 13 00:11:49 mikem`_: did you run the command erikwt typed? Aug 13 00:12:01 then run the emulators with: ./tools/emulator -avd avd1 & ; ./tools/emulator -avd avd2 Aug 13 00:12:45 then send sms message to the other by using the port number found in the window title of the other emu as the tel nr Aug 13 00:14:36 ok, the emulators are booting up Aug 13 00:14:45 good Aug 13 00:15:22 then, try to send an sms message with more than 160 characters from one to the other plz Aug 13 00:15:50 why am I doing this again? Aug 13 00:16:11 haha, to confirm a bug :) Aug 13 00:16:23 but you are almost there! :D Aug 13 00:18:39 ok, sent. now what? Aug 13 00:18:52 haha, i see gibberish on the other emulator Aug 13 00:19:26 oke Aug 13 00:19:31 that is one very nasty bug! Aug 13 00:19:44 yeah, ew! Aug 13 00:19:53 thnx for confirming! Aug 13 00:19:55 but it's in the emulator or in the platform itself? Aug 13 00:20:06 the emulator Aug 13 00:20:17 on the android itself it works perfectly **** ENDING LOGGING AT Thu Aug 13 01:24:10 2009 **** BEGIN LOGGING AT Thu Aug 13 01:36:15 2009 **** ENDING LOGGING AT Thu Aug 13 01:36:17 2009 **** BEGIN LOGGING AT Thu Aug 13 01:38:14 2009 Aug 13 01:53:26 if anyone has an idea...why it wont register even with wifi send me a pm..ill be out Aug 13 02:28:41 emmby: long press the menu key Aug 13 02:29:32 great, thanks romainguy Aug 13 02:40:14 hey - Aug 13 02:40:20 i have 2 imageviews Aug 13 02:40:24 one is like a background Aug 13 02:40:29 and another fills a box in the backgroundw Aug 13 02:40:33 when i change the box one Aug 13 02:40:36 programatically Aug 13 02:40:39 ie. change its image Aug 13 02:40:50 it changes the size and makes the background go black Aug 13 02:40:52 why Aug 13 02:45:10 .,.,. Aug 13 02:51:20 is anyone here Aug 13 02:53:14 AndyArmstrong: what's the layout? Aug 13 02:54:12 hey muthu Aug 13 02:54:13 right Aug 13 02:54:14 so Aug 13 02:54:17 i have the following Aug 13 02:54:44 oh Aug 13 02:54:47 thats embarassing Aug 13 02:54:50 think i just found out Aug 13 02:54:54 i had 2 items named the same thing Aug 13 02:58:06 heh. oops. **** ENDING LOGGING AT Thu Aug 13 02:59:57 2009