**** BEGIN LOGGING AT Sun Feb 22 02:59:57 2009 Feb 22 03:01:40 can anyone explain android.text.Spanned and how to use it? Feb 22 03:01:51 i found it because i was searching for a way to display html Feb 22 03:02:09 Html.fromHtml(String) returns Spanned Feb 22 03:02:17 jsharkey: ok..i added "android.permission.VIBRATE to the Permission field on the manifest...but i still ge the permission error... Feb 22 03:03:37 huh? Feb 22 03:03:44 thats what im thinkin Feb 22 03:04:05 you added it like that link i showed, and then recompiled? Feb 22 03:05:12 jsharkey: http://img149.imageshack.us/img149/7192/picture3.png Feb 22 03:06:22 what about the "AndroidManifest" tab at the bottom of that window Feb 22 03:06:53 look at the raw file Feb 22 03:06:54 jsharkey: oh shit...damn sorry Feb 22 03:07:25 AakashPatel: also, remove that permission in the application tab Feb 22 03:07:34 the one you typed into that field Feb 22 03:08:23 hell yes! Feb 22 03:08:26 thank you !!! Feb 22 03:10:03 Excuse me, jsharkey, can I bother you for a moment? Feb 22 03:12:43 sup Feb 22 03:13:07 I tried using the file object to attach zip files, but I don't know what's wrong... This is the code I'm using, can you please take a look? http://pastebin.com/m30093f36 Feb 22 03:13:56 so this looks pretty close to the code you had earlier, right? Feb 22 03:14:41 i didnt setType() on mine, and i made sure to use a File object--im not sure if that file:// is built right Feb 22 03:15:00 Yes, but now I'm using a file object as you suggested, instead of a URL Feb 22 03:15:32 Ah, so there's no need to use setType? Should I also remove the file://? Feb 22 03:18:46 oh Feb 22 03:18:55 Juan_David_Truji: heres the code im using Feb 22 03:19:18 Intent intent = new Intent(Intent.ACTION_SEND); Feb 22 03:19:18 intent.setType("plain/html"); Feb 22 03:19:18 intent.putExtra(Intent.EXTRA_SUBJECT, subject); Feb 22 03:19:18 intent.putExtra(Intent.EXTRA_TEXT, body); Feb 22 03:19:18 intent.putExtra(Intent.EXTRA_STREAM, Uri.fromFile(attachment)); Feb 22 03:20:03 Thakns, where attachment is the path to a .zip file, right? Feb 22 03:20:10 Awesome! Feb 22 03:20:14 where attachment is a File object Feb 22 03:20:35 that i just finished writing data to Feb 22 03:20:42 and .close()';ed Feb 22 03:21:53 Ah, ok, I'll give it a try, to see if this works so I can attach .zip files. Thanks!! Feb 22 03:54:40 is free browsing not allowed? i have to access everything via google.com? Feb 22 04:04:35 how do i use buttons? Feb 22 04:04:48 anyone have a simple code? Feb 22 04:05:27 http://pastebin.com/m5164106e Feb 22 04:06:02 thats what i have so far...but the "R.layout.content_layout_id" and "R.id" are getting underlined Feb 22 04:06:07 in the code Feb 22 04:06:35 happen to have the notepad tutorial handy? Feb 22 04:06:50 I modeled by button events after that guy Feb 22 04:07:11 it's about the simplest example I can think of Feb 22 04:07:16 which is the actual compiler? if i want to compile an android file from emacs, what do I call? Feb 22 04:07:21 do you have the link? squalus Feb 22 04:07:26 sure hang on Feb 22 04:07:35 thanks Feb 22 04:07:42 how do I extend View? do I extend a special View? because I can't import View. Feb 22 04:07:45 i'm trying to replace new lines in a string and this isn't working: desc.replace("\n", " "); Feb 22 04:07:54 anyone know why? Feb 22 04:08:37 http://developer.android.com/guide/tutorials/notepad/index.html Feb 22 04:08:53 thanks...ill look at it Feb 22 04:09:08 I think the goods are in exercise 2 onward Feb 22 04:09:35 I got bogged down in it the first time I tried going through it but it really is worth doing the whole thing through for a couple of evenings Feb 22 04:09:59 it's got a lot of good stuff and I'm glad I went through again and finished it Feb 22 04:12:16 senxhnsshp: this might help Feb 22 04:12:19 senxhnsshp: http://developer.android.com/guide/developing/other-ide.html Feb 22 04:13:20 can use ant/jdk I think Feb 22 04:26:49 how do I implicitly invoke another constructor? if i extend View? Feb 22 04:28:34 how do you mean? Feb 22 04:28:49 i got the button working! Feb 22 04:29:00 n!ce Feb 22 04:30:53 squalus: have you seen those buttons that are like on and off? Feb 22 04:31:00 with the green bar Feb 22 04:31:12 oh like the ones in... Feb 22 04:31:17 sms message thing? Feb 22 04:31:32 well that's not a button I guess Feb 22 04:31:41 do you have the api demos? Feb 22 04:31:48 think so Feb 22 04:32:31 yeah Feb 22 04:32:38 lemme look for the button Feb 22 04:32:59 the Views>Buttons Feb 22 04:33:04 in there...the bottom one Feb 22 04:34:20 whats that called? Feb 22 04:34:33 oh toggle button Feb 22 04:35:26 oh neat Feb 22 04:35:38 I haven't seen one of those Feb 22 04:36:25 hmph Feb 22 04:38:04 I hadn't really explored these this is cool Feb 22 04:40:52 squalus: ya..now the fun part is finding out how to use it in a program ;-) Feb 22 04:41:07 hehe Feb 22 04:42:09 public void onClick(View v) { Feb 22 04:42:19 what would i cahnge that to for the toggle buttons "on"status Feb 22 04:47:52 anyone know how to use toggle buttons? Feb 22 07:28:20 is there no way to set a minimum value for a SeekBar? Feb 22 07:29:29 i guess i could just transpose my values Feb 22 09:05:34 is anyone still alive? Feb 22 10:48:19 does anyone know why i would be getting thousands of these lines when running my app02-22 10:40:45.086: DEBUG/dalvikvm(265): GC freed 5456 objects / 365928 bytes in 381ms Feb 22 10:48:34 does it mean im not closing an object properly? Feb 22 12:10:12 um. question! Feb 22 12:10:26 how can I get a backtrace of an uncaught exception? Feb 22 12:10:46 I set up an exception breakpoint but it doesn't seem to work. Feb 22 12:10:51 (using Eclipse + simulator) Feb 22 12:11:45 ah! found it in logcat Feb 22 12:11:58 there. you didn't even have to answer me. LUCKY YOU. Feb 22 12:14:52 (s/simulator/emulator/) Feb 22 12:19:45 I was porting a small iPhone utility to Android to learn the ropes of the framework Feb 22 12:19:46 http://a4.s3.p.quickshareit.com/files/screenshot_5fbe9dbabda68b84e.png Feb 22 12:50:27 argh...why is it LogCat sometimes only prints one line Feb 22 12:50:59 nothing worse than waiting 60 seconds to get a debug message and not getting it Feb 22 12:52:32 yea i keep getting that Feb 22 12:53:17 submit a bug request and ill be your BFF Feb 22 12:56:19 bff? Feb 22 12:56:55 BEST FRIEND FOREVER ...like y'know totally Feb 22 13:44:06 ok how do I bindService to a component in another package? Feb 22 13:44:12 I found this message: http://groups.google.com/group/android-developers/msg/1f32feee9b593bf0 Feb 22 13:44:21 but I can't find the other thread Dianne Hackborn is talking about. Feb 22 13:44:39 I'm setting the componentName in my intent. Feb 22 13:44:59 thats not doing anything. Feb 22 14:28:33 Is WVGA the highest resolution android supports? Feb 22 14:55:13 hi devs Feb 22 14:57:24 can somebody explain why the user has execute rights in the /data/local directory? Feb 22 14:57:35 Hi all. The market has a "Software Library" section. Feb 22 14:58:03 How does one make one's app depend on such a library? Feb 22 14:59:02 zx128, On the directory itself? The x bit allows the user to traverse through it. Things inside it would be inaccessible otherwise. Feb 22 14:59:50 (zx128, Pardon me if you already know Unixisms and are wondering about some policy decision instead.) Feb 22 15:00:26 um Feb 22 15:00:31 question time! Feb 22 15:00:44 what's the best way to get stack traces for uncaughts in Eclipse? Feb 22 15:00:59 logcat worked until an hour ago, but it's not receiving anything at the moment. Feb 22 15:01:24 millenomi, the easiest way is to get logcat working again! (I think.) Feb 22 15:01:34 yay. Feb 22 15:01:37 Feb 22 15:01:52 let's restart eclipse+emu and see. Feb 22 15:03:27 As for Software-Library, I'm going to try the nodes in AndroidManifest.xml, but I suspect that refers to linking and not package management. Feb 22 15:03:55 Feb 22 15:04:08 nvm Feb 22 15:04:29 ah, got why Feb 22 15:04:41 for some reason, Eclipse had unselected all the level filter buttons Feb 22 15:04:46 ... Feb 22 15:04:58 now Logcat is as chatty as before. phew. Feb 22 15:19:31 anyone got any ideas how I could parse html to just retreive the values between the >Value< tags?? Feb 22 15:23:04 regexps or external libraries. Feb 22 15:23:12 also, I've never seen a >Value< tag. :) Feb 22 15:23:23 lol Feb 22 15:23:43 regexps? ill look it up Feb 22 15:25:00 In order to get started with android development, I want to write an app that syncs contacts / calendar only when on wifi. I want to react to some broadcast like "WIFI_ACTIVE" and sync the data then, rather then checking every X seconds whether wifi is active. I cannot find any such broadcasted intent (?), however. Am I missing something? Feb 22 15:27:05 dennda: I don't think it broadcasts that its active, I believe there is one when it connects though Feb 22 15:28:14 marklar: http://developer.android.com/reference/android/content/Intent.html#ACTION_VIEW is what i checked Feb 22 15:28:39 Good morning! Feb 22 15:28:57 I was wondering if someone has been able to send .zip email attachments... Feb 22 15:29:17 I've been trying for some days without any success Feb 22 15:29:32 Her'es what I have, in case someone can help me: http://pastebin.com/m30093f36 Feb 22 15:32:11 ah Feb 22 15:32:13 'nother question Feb 22 15:32:25 is the +/- widget used by DatePicker also available somewhere as a standalone? Feb 22 15:32:40 jdavidandroid: looks right to me, I would try changing the type from application/zip to rfc822 or whatever emails are Feb 22 15:33:47 Hi marklar... So you suggest setType("rfc822 ")? Feb 22 15:34:32 I don't remember what it is, I think its message/rfc822 Feb 22 15:34:35 you'd have to google it Feb 22 15:34:47 dennda: the intents you need should be here http://developer.android.com/reference/android/net/wifi/WifiManager.html Feb 22 15:35:04 Thanks, I'll read it.,.. Feb 22 15:36:02 thank you Feb 22 15:40:07 np Feb 22 15:41:02 also: didn't Eclipse use to have have a "debug last launched" option? Feb 22 15:41:15 I keep clicking the run and debug buttons without choosing the launch config from the menu Feb 22 15:41:25 and it keeps asking me how I want to run the project. Feb 22 15:42:28 is there anyway to get the index of a char in a string by stateing the char Feb 22 15:43:11 .indexOf Feb 22 15:43:48 tyyy Feb 22 15:46:17 um, so, I ported my iPhone toy app to Android Feb 22 15:46:18 yay? Feb 22 15:46:20 http://a2.s3.p.quickshareit.com/files/screenshot_c0f873e6b61ebb683.png Feb 22 15:48:06 the dice picker is exceedingly ugly, tho. Feb 22 15:48:24 which is a pity because I have no idea on how to pretty it up. Feb 22 15:48:53 any theme devs in here? Feb 22 15:54:53 hey - i'm coding a app right now ... i basically want to inset a class which extends TextView into a FrameLayout in my XML - how can i use the class name in the xml ? Feb 22 16:01:44 magegu: if I understand you correctly you need to use the fully qualified name... com.magegu.textviewchild Feb 22 16:05:39 marklar: i tried that, but i'm getting: 02-22 17:04:31.612: ERROR/AndroidRuntime(203): Caused by: android.view.InflateException: Binary XML file line #19: Error inflating class com.ba.studienarbeit.LocList Feb 22 16:06:56 Does it have a constructor that takes both a context and an AttributeSet? If not you need to implement it Feb 22 16:07:37 ah okay Feb 22 16:09:08 ok works thanks Feb 22 16:09:29 np, just had that happen yesterday Feb 22 16:19:02 mmm Feb 22 16:19:06 'nother noob question. Feb 22 16:19:22 what's the best way to automate a build for an Android project that was made in Eclipse? Feb 22 16:20:24 millenomi, there's a python script that will generate ant files and such Feb 22 16:20:25 marklar: i now changed my TextView to be a ListActivity (i'm following the http://developer.android.com/guide/tutorials/views/hello-listview.html) .. now the same error as above is thrown Feb 22 16:20:47 mmm; it'll need to be maintained independently, right? Feb 22 16:21:07 (I have set my project to depend on a cross-platform set of files which is in another Eclipse project) Feb 22 16:21:10 millenomi, if you add libraries or stuff, yeah Feb 22 16:21:20 yay. Feb 22 16:21:31 what's the name of the script, so that I can google it? Feb 22 16:22:02 I'm looking; it's in the SDK somewhere Feb 22 16:22:07 thank you :) Feb 22 16:22:47 I'd tell you but I can't remember then name of it Feb 22 16:23:07 ah! Feb 22 16:23:12 is it activitycreator? Feb 22 16:23:28 that's what I thought but it calls out to Java and I thought it was python Feb 22 16:23:32 I'm probably wrong, though Feb 22 16:23:35 ah Feb 22 16:23:40 thank you :) Feb 22 16:23:42 try it Feb 22 16:24:01 ah yeah, it's activitycreator Feb 22 16:24:03 http://developer.android.com/guide/developing/other-ide.html Feb 22 16:24:30 it looks like it used to by python but they might have changed it in 1.1 or something Feb 22 16:28:04 magegu: I think you want to inherit listview, not listactivity right? Feb 22 16:28:14 hey guys, anyone else having trouble downloading sdk 1.1 ? Feb 22 16:28:59 marklar: no right now still extending listactivity ... at least http://developer.android.com/guide/tutorials/views/hello-listview.html says to do so Feb 22 16:29:17 ok, well List activity isn't a view so it can't be inflated Feb 22 16:31:03 inflated = loaded by XML ? Feb 22 16:31:21 yup, inflating is the process of creating the objects from the XML Feb 22 16:31:30 ah okay Feb 22 16:31:35 ListActivities contain ListViews, which I think is what you are looking for Feb 22 16:31:45 I'm trying to find some code I wrote for this... Feb 22 16:31:50 cool thx Feb 22 16:33:05 you want to include a in your layout file that has android:id="@id/android:list" Feb 22 16:33:25 maybe I should read that tutorial first to see what yo ureally want :) Feb 22 16:34:35 oh well in that tutorials case you don't even need an XML layout, you just access the list through getListView(); Feb 22 16:35:02 You would need a layout for each list item, which would include your textview right? Feb 22 16:35:59 yes i read that Feb 22 16:36:49 you mean the text view of each item ? .. i dont really have a textview anymore in my layout Feb 22 16:37:10 http://pastebin.com/m27367a48 Feb 22 16:37:37 thats my layout .. Feb 22 16:37:55 LocList = TextView Feb 22 16:38:14 ok, how does the ListActivity fit into this? Feb 22 16:38:42 You want a list in this layout? Feb 22 16:39:33 yes - as content of my first tab .. Feb 22 16:40:39 You need to then add a to the layout with android:id="@id/android:list" Feb 22 16:41:11 then setContentView() with that layout Feb 22 16:41:33 and then when you are creating the adapter, you will need to have yet another XML file with your custom text view Feb 22 16:41:56 okey, i'll try that Feb 22 16:42:06 k, good luck Feb 22 16:42:11 thx :) Feb 22 16:47:45 marklar: you said i'll have to add android:id="@id/android:list" to my main.xml Feb 22 16:48:09 in addtion to the existing reference? Feb 22 16:49:19 http://pastebin.com/m78495d41 so only this line? Feb 22 16:53:24 okay. ant packs the app appropriately. YAY Feb 22 16:55:35 and further activitycreator's do not clobber my changes. nice. Feb 22 16:56:44 magegu: its instead of that one Feb 22 16:57:43 I changed it for you Feb 22 16:57:55 url? Feb 22 16:58:00 ah Feb 22 16:58:02 okay Feb 22 16:58:31 http://pastebin.com/m70bcbc65 Feb 22 16:58:36 thats my main.xml Feb 22 16:58:49 looks right to me Feb 22 17:00:21 so in my main java layout I want to call setContentView() Feb 22 17:00:42 setContentView(R.layout.main) will connect your activity with your layout Feb 22 17:01:00 then you can use findViewById(R.id.xxxxx) to get references to individual objects Feb 22 17:01:27 I think that as long as you give your list the id of android:list, you should be able to just use getListView() to access it Feb 22 17:01:33 not positive about that last part though Feb 22 17:02:16 hm Feb 22 17:02:49 right now i'M using lines tab2 = mTabHost.newTabSpec("tab_test2").setIndicator("Search", icon).setContent(R.id.textview2); to set content to the other tabs Feb 22 17:03:12 thats in my main java activity Feb 22 17:03:17 sorry can't help you there, haven't used tabs at all Feb 22 17:03:26 okay Feb 22 17:03:56 but thanks anyway :9 Feb 22 17:04:43 no problem Feb 22 18:11:12 * KNY idly wonders when the emulator will be updated to include a Magic skin with virtual keyboard Feb 22 19:43:08 whats goldfish ? Feb 22 19:53:06 i want to test my app but i don't have a device. is there any way for me to get it on a device at the store and then delete it? Feb 22 19:54:08 you can download it through the web i think Feb 22 19:54:11 not sure though Feb 22 19:54:31 just host the apk on my site and download it? Feb 22 19:54:47 hrm Feb 22 19:54:50 nevermind Feb 22 19:54:54 i'm not sure it'll work Feb 22 19:55:01 betterask someone who's doneit Feb 22 19:55:45 i'm like 99% sure it works but it uses vibration which the emulator doesn't indicate Feb 22 20:09:28 you can download an apk from the browser. Feb 22 20:09:49 or if you want to put it up, ill download it and see if it vibrates for ya Feb 22 20:53:41 does anyone have an array xml file I could look at Feb 22 20:53:56 all the ones i see online must be an old way doing it Feb 22 20:56:56 nevermind, got it Feb 22 21:06:27 how do i find the market id for my app? so i can build a URL of market://details?id=yourexactmarketid Feb 22 21:06:39 ive tried the package name, didnt seem towork Feb 22 21:15:45 i get "A server error has occured' from the market app. Feb 22 21:15:57 donpdonp: Paid app? Feb 22 21:16:03 market://search?q=appname gives the same error. browsing the market works fine though Feb 22 21:16:06 rsteckler: yes Feb 22 21:16:18 donpdonp: You can't view paid apps from a apd/rooted phone. Feb 22 21:16:27 You should get a "no search results", though Feb 22 21:16:28 rsteckler: stock R33/tmobile phone Feb 22 21:17:05 Are you using the entire package name (the same one specified in the manifest.xml? Feb 22 21:17:25 yes. com.icecondor.nest Feb 22 21:17:56 try market://search?q=pub:"author name" Feb 22 21:18:31 Here is some working code from my app: Feb 22 21:18:33 nextIntent = new Intent(Intent.ACTION_VIEW, Uri.parse("market://search?q=pname:com.ryanSteckler.buzzMe.serviceAndroidPremier")); Feb 22 21:18:33 startActivity(nextIntent); Feb 22 21:18:40 oh pname: Feb 22 21:19:59 anyone know off-hand where normal text buttons get their text color from? Feb 22 21:20:15 rsteckler: q=pname:my.package worked. thanks Feb 22 21:20:25 having a terrible time finding it :/ Feb 22 21:20:29 np Feb 22 21:20:42 zinx, it's a Drawable Feb 22 21:20:52 oh, text color. hmm Feb 22 21:21:01 zinx: I want to say it's in the system default theme file? Theme.Dark or something? Feb 22 21:21:04 nope, don't know that off the top of my head Feb 22 21:21:05 Don't quote me on that, though Feb 22 21:21:13 rsteckler: where's the theme file, though? Feb 22 21:21:50 on the device somewhere. There is a theme example in the api demos - one sec. Feb 22 21:22:42 i know there's a res/values/themes.xml (and various files that go with it), but that all gets compiled away, and i have no idea where to Feb 22 21:24:03 i should note that i'm trying to override the entire system's theme by selectively replacing files :/ Feb 22 21:24:21 ooooh. I was thinking you just want to change your app theme. Feb 22 21:25:22 i've tried res/color/widget_button.xml but that seems to be something entirely different.. adding a textColor attribute to res/drawable/btn_default.xml doesn't work either Feb 22 21:25:43 and i've thus far been unable to find where primary_text_light_nodisable is actually referred to anywhere Feb 22 21:26:05 (or anything else for that matter.. it seems to all be somehow separate and magically put together by the system) Feb 22 21:26:44 I don't know where it goes on the device, but I know it's a compiled xml file. You would prob need to recompile the tools/lib/res/values/themes.xml and styles.xml Feb 22 21:26:55 primary_text_* is in styles.xml Feb 22 21:27:00 i can do that... but things in res/values disappear when compiled Feb 22 21:27:38 yea - you're way outside of my area =) Feb 22 21:27:51 doh Feb 22 21:29:10 * zinx dives in to some code Feb 22 21:34:28 looks like it's in resources.arsc :x Feb 22 21:56:49 is it possible to set the focus to specific view? currently I have to disable the focus on one view to move it to the one I want to have the focus on. Feb 22 22:00:57 View.requestFocus() I believe Feb 22 22:01:05 KNY: thanks Feb 22 22:01:49 I am SO building a scrolling component -- I need to read up on dragging and event handling in general Feb 22 22:01:57 er, not scrolling Feb 22 22:02:05 an up-down component to quickly raise or lower a number Feb 22 22:02:46 http://a4.s3.p.quickshareit.com/files/screenshot_f0635641f82acd170.png -- drag up or down. Feb 22 22:03:09 millenomi, like the iPhone/iPod has? Feb 22 22:03:09 makes sense, should not be hard to implement, it's not as ugly as having + and - buttons. Feb 22 22:03:28 simpler than that of course. Feb 22 22:03:48 the idea is: I'm putting a wheel like this near the number field, rather than using +/- above/below it. Feb 22 22:03:48 millenomi, you can hold down the +/- buttons to jump through numbers faster Feb 22 22:04:07 KNY: are you talking about the +/- widget in DatePicker? Feb 22 22:04:12 is it available as a standalone? Feb 22 22:04:22 (oh Lord let it be so) Feb 22 22:04:27 yes, I'm talking about that. No it's not available :) Feb 22 22:04:32 ... damnit. Feb 22 22:04:38 the source is all there, though Feb 22 22:04:43 NumberPicker.java, I believe Feb 22 22:04:53 that needs to go into the framework library STAT Feb 22 22:04:58 yeah Feb 22 22:05:13 it's in the internal package; I assume the API hasn't finalized yet Feb 22 22:05:26 anyway, the particular need it's filling in my app is one that the iPhone version solves via UIPicker (the scroll wheel) Feb 22 22:05:27 once that happens, it'll move to the public package Feb 22 22:05:41 yeah, that's what I was talking about Feb 22 22:05:53 how would having the wheel next to the input simplify things? Feb 22 22:06:29 it's easy -- the user drags it up or down and the number changes. it resembles a real-world thing, so the user can pick it up even if it's not a regular Android component. Feb 22 22:06:37 it is better than using two Buttons as I do now Feb 22 22:06:54 right, but why not make it like the apple one and have the numbers superimposed on the wheel? Feb 22 22:07:23 two reasons: one, I bet this one is simpler to make; and two, I dunno if it'll feel right with the rest of the system Feb 22 22:07:35 the flick scroll thing is killer. Feb 22 22:07:40 so it'll be simpler for you, but not for the user, then Feb 22 22:07:57 it's a decent compromise methinks. Feb 22 22:08:03 we'll see. Feb 22 22:08:11 if the effort is low enough Feb 22 22:08:11 I feel that putting it next to the input will look like a lazy hack (no offense) Feb 22 22:08:17 it won't be wasted anyway Feb 22 22:08:19 yeah Feb 22 22:08:26 I'll learn enough. Feb 22 22:09:05 the app is up at http://github.com/millenomi/diceshaker/ Feb 22 22:09:11 both versions. Feb 22 22:09:25 it's a stupid dice roller. Feb 22 22:09:53 ouch, I forgot to git push Feb 22 22:10:19 there Feb 22 22:10:20 done Feb 22 22:24:33 well, I've learned the ropes of the framework, learned on how to integrate an Android project in an existing build machinery thingie Feb 22 22:24:42 and ported an iPhone app to AD Feb 22 22:24:47 not bad for 24 hours of work. Feb 22 22:28:05 nice. Feb 23 00:32:49 do you guys find your strings.xml file getting out of hand with large-ish apps? Feb 23 00:36:12 hi guys .. i'm trying to implement a MapView in my app but im stuck with an IllegalArgumentException: MapViews can only be created inside instances of MapActivity. Feb 23 00:37:17 derive your activity from a maActivity? Feb 23 00:37:25 yes it does Feb 23 00:37:29 i'm a bit confused with the difference between activity and view .. I've my main xml where the com.google.android.maps.MapView incl the correct apiKey is defined Feb 23 00:37:44 in my "ObjectMap extends MapActivity" Feb 23 00:37:52 i'm calling myMapView = (MapView) findViewById(R.id.myMapView); Feb 23 00:39:37 activity is typically the entire screen. It's made up of views inside of layouts. Feb 23 00:40:37 magegu: Do you have a this.setContent(R.layout.main);? Feb 23 00:40:50 (or similar? I have eclipse closed so don't have it in front of me) Feb 23 00:41:18 its a bit more complicated Feb 23 00:41:39 i'm using a tabHost Feb 23 00:42:42 wait i'll updard my xml Feb 23 00:43:54 rsteckler: http://pastebin.com/m3c1282a0 Feb 23 00:44:30 throw your activity up, too. Feb 23 00:44:40 that's main.xml? Feb 23 00:45:11 yes Feb 23 00:46:57 oh wait a sec Feb 23 00:47:49 put up the onCreate, too, if you can... Feb 23 00:49:22 first an update of the xml http://pastebin.com/m3c147742 Feb 23 00:49:35 with the "TextView" my program is working Feb 23 00:50:40 which one do you want to see Feb 23 00:51:04 wait a sec. If you uncomment the textview, everything works? Feb 23 00:51:08 the mapsactivity or the "main" acitvity Feb 23 00:51:45 if i exchange the views, yes Feb 23 00:51:55 not the "maps" part .. :) Feb 23 00:51:58 oh. Gotcha. If you comment out mapView. Feb 23 00:52:06 yep Feb 23 00:52:15 ok. Lets see the onCreate of the activity that is supposed to display that main.xml Feb 23 00:52:33 http://pastebin.com/m4689afa2 Feb 23 00:53:05 gotcha. That needs to be derived from MapActivity if you want to show maps in it... Feb 23 00:53:18 Right now it's extending TabActivity Feb 23 00:53:42 ah, even if its in an embedded view? Feb 23 00:54:09 apparently. I haven't used it, but that's what the exception said... Feb 23 00:54:21 hm Feb 23 00:54:30 So you probably need to have it be a mapActivity, and just put a tabview control in there. Feb 23 00:55:01 I believe you can have a tab view in any type of activity. The tabActivity derivation is just for convenience. Feb 23 00:56:21 hmkay I'll try this Feb 23 00:56:33 thanks anyway :) Feb 23 00:58:28 from the docs: A MapView can only be constructed (or inflated) by a MapActivity. This is because it depends on threads which access the network and filesystem in the background; these threads must be shepherded by the lifecycle management in MapActivity. Tiles are cached on the filesystem in your application's directory. The cache is auto-managed so you don't need to do anything with it, and can delete it at any time. Feb 23 01:00:35 ok but still i'm confused where to start Feb 23 01:00:49 so i've my "main" view .. which should be the tabed one Feb 23 01:01:12 emmbeded in this one i would like to have a map Feb 23 01:02:22 magegu: The entire visual screen is the activity, defined in the xml. Feb 23 01:02:37 If you want a map on it, the activity needs to derivce from MapActivity Feb 23 01:02:48 You can put your tabview on the MapActivity. Feb 23 01:02:48 ok gotacha :9 Feb 23 01:03:06 So what you want is to leave your main.xml how it is. Feb 23 01:03:29 Change the derivation of Studienarbeit to MapActivity. Feb 23 01:03:56 then grab your tabLayout from the xml with a findViewById instead of the getTabHost thing Feb 23 01:04:03 (something like that...) Feb 23 01:05:18 ok thank you very much :) I'Ll try that **** ENDING LOGGING AT Mon Feb 23 02:59:58 2009