**** BEGIN LOGGING AT Mon Jul 13 02:59:57 2009 Jul 13 03:21:38 So if you do Uri.parse("http://bob%40lee@localhost/").getHost() it returns "lee@localhost" Jul 13 03:21:47 Sounds like a bug to me. Jul 13 03:22:23 whereas .getUserPart() returns "bob@lee" Jul 13 03:23:45 * kRutOn submits a change Jul 13 04:38:03 hey guys Jul 13 04:38:12 can someone tell me if there is a list of all the android.R.layouts Jul 13 04:38:20 so I can find the 1 I like without trial and error? Jul 13 04:40:36 sure, its in the source Jul 13 04:41:00 right Jul 13 04:41:06 but I was wonering if there were images Jul 13 04:41:09 of the layouts Jul 13 04:41:24 or examples of what they look like Jul 13 04:41:30 instantiating them is no problem Jul 13 04:41:48 oh, there aren't thumbnails of them Jul 13 04:42:38 they really arent anything special Jul 13 04:42:44 you could make the same layouts yourself in your app Jul 13 04:44:25 gotcha Jul 13 04:44:34 do you know if there is a way to display a list Jul 13 04:44:47 using this.setListAdapter Jul 13 04:44:56 which takes in html and displays it correctly? Jul 13 04:45:27 ohwow Jul 13 04:45:38 well, html really isnt a list, its pretty free-form Jul 13 04:46:42 right but each individual component in the list Jul 13 04:46:47 is a html section Jul 13 04:47:03 aka it is a list oh html elements Jul 13 04:47:04 :p Jul 13 04:51:52 we you *could* use a webview for each item Jul 13 04:52:01 but we tried and performance are really not very good Jul 13 04:52:20 yikes Jul 13 04:52:27 we tried for Gmail Jul 13 04:52:45 jasongornall___: it would probably be alot faster for your users if you just pass it through an xmlpullparser and parse into in-memory structure Jul 13 04:53:03 that is exactly what I am doing Jul 13 04:53:11 I am using a xml pull parser to parse in a html Jul 13 04:53:17 it is a xml table of html files Jul 13 04:53:18 lol Jul 13 04:53:37 however found my answer Jul 13 04:53:44 http://developer.android.com/reference/android/text/Html.html#fromHtml(java.lang.String) Jul 13 04:53:49 encase u r curious :p Jul 13 04:53:59 jasongornall___, that's demonstrated in ApiDemos, by the way :) Jul 13 04:54:11 really? which 1 Jul 13 04:54:12 Linkify.java, I believe Jul 13 04:55:28 woah so which s beter Jul 13 04:55:30 fromhtml Jul 13 04:55:33 or linkify Jul 13 04:57:10 well, for linkify you'd have to stip all your tags out Jul 13 05:04:00 * kRutOn gets bitten by forgetting to include --replace Jul 13 05:04:20 kRutOn: hehe Jul 13 05:04:26 fucking dependencies :p Jul 13 05:05:44 It probably caused some spam as well :-) Jul 13 05:05:57 you made my phone beep a few times Jul 13 05:06:02 I'm trying to watch a movie here! Jul 13 05:06:46 Next time I'll devise a plan to upload, replace, and abandon is such a manner as to play the Axl Foley song on your phone. Jul 13 05:09:32 blargh fromHtml just seems to remove the tags Jul 13 05:09:56 jasongornall___: yea fromHtml pretty much only looks at simple etc Jul 13 05:10:08 no href? Jul 13 05:10:32 well, no, because there isnt a way of representing them in a CharSequence as styled spans Jul 13 05:11:38 how would I be able to put a html item on the screen then Jul 13 05:11:45 WebView? Jul 13 05:11:46 what "type" would my list have to be Jul 13 05:11:50 woah Jul 13 05:11:53 mind reader Jul 13 05:11:54 lol Jul 13 05:12:04 its super-flexible, but can be super-expensive Jul 13 05:12:49 its always faster if you can parse out stuff in code tho Jul 13 05:13:22 I thought parsing it in the cloud is the fastest and buzziest Jul 13 05:13:34 well, yes, the cloud is always most-optimal :) Jul 13 05:15:00 Hmm, apparently iWnnIME has some kind of behavior problem. Jul 13 05:15:44 ref http://twitter.com/neo486 Jul 13 05:17:43 like I said above, you can use WebView but if you do so in a list, don't expect good performance Jul 13 05:32:16 HTTP POSTs don't appear to have Content-Length attached to them here... Jul 13 05:32:43 I wonder if luni is doing something naughty.. Jul 13 05:32:47 interesting Jul 13 05:33:05 apparently webviews are not just a simple pass into strings Jul 13 05:33:13 is it possible to have a list of webviews? Jul 13 05:39:08 jasonchen: I already told you twice, yes Jul 13 05:39:13 but performance will suck Jul 13 05:43:59 is there a way to specify that an activity that is already running should be "brought to the front" rather than another instance of that activity be created when you start it via the launcher icon? Jul 13 06:14:50 don't worry people, looks like the "android:launchMode="singleTask"" attribute for the activity in the manifest was what I was looking for Jul 13 08:18:27 can anyone tell me how I get a CursorTreeAdapter to automatically requery the groups, and not only the children? Jul 13 08:26:14 Keychar: when you say automatically, who would trigger the requery? if its a contentprovider, it should automatically invalidate and requery Jul 13 08:26:50 jsharkey: it is a content-provider for the group cursor Jul 13 08:27:12 I am even able to catch it in another class Jul 13 08:27:35 right, so if the provider performs notifyChange(), it should requery Jul 13 08:28:23 it deos, i su eregisterContentObserver on the same URI as the cursor in the tree and it executes onChange Jul 13 08:29:05 *deos, i do regi* Jul 13 08:29:19 does* :P Jul 13 08:29:27 CursorTreeAdapter calls registerContentObserver internally, so it should requery on its own Jul 13 08:30:13 yeah, my registerContentObserver is in the current thread for other reasons, and is seperated from my list Jul 13 08:31:14 did you override CursorTreeAdapter methods that handle the groups cursor? Jul 13 08:31:37 (you shouldnt have) Jul 13 08:31:50 nope Jul 13 08:32:22 okay cool, then it should requery on its own Jul 13 08:32:39 ok, thanks anyway :( Jul 13 08:32:52 were you trying to make it /not/ requery? Jul 13 08:34:49 no Jul 13 08:40:43 the wierd part is that notifyDataSetChanged() isn't working either Jul 13 08:52:20 I have an activity and in the oncreate method i download an xml feed and display a list of items. If i want to reload that view, how can i do that? Jul 13 09:28:40 what is the best way to have my service trigger a change in my UI from my activity? I would like to set a CheckBoxPreference to unchecked from the service. Jul 13 09:29:08 (my service isn't bound, i'm just using startService() and stopService() Jul 13 09:36:32 iop Jul 13 09:36:44 iop? Jul 13 09:36:49 hello Jul 13 09:37:23 do you know how to prevent orientation change by the code ? please Jul 13 09:38:18 from code Jul 13 09:38:27 not from the manifest.xml Jul 13 10:43:06 Hi, I'm interested if there were any attempts to make something like http://www.youtube.com/watch?v=1GDl2r0RxpE ? Or does anybody know any sites about outlook of android apps? Jul 13 10:56:53 what is the adc2 challenge deadline? Jul 13 11:06:56 hiya! , can anybody point me to a guide to making a widget, i cannot follow the api docs confuse me Jul 13 11:12:32 can somebvody help me with a very simple widget issue Jul 13 11:24:53 helo can anyone help me with a simple widget problem Jul 13 11:26:25 Hi friends Jul 13 11:26:57 what would be the best way to handle a login/password storage in my app ? Jul 13 11:27:02 The preference system ? Jul 13 11:28:08 (I'm on a 2G key near the beach, googling is a hell) Jul 13 11:30:28 database probs Jul 13 11:30:33 hash the pass Jul 13 11:31:14 thanks Jul 13 11:31:52 can anyone help me with my widget problem plz Jul 13 11:34:06 Ive tried writting a very simple widget, however when i run the emulator - the widget doesnt appear and its not in the list to install...... Jul 13 11:40:12 Just a question about performance, is it better to get lot of "LinearLayout" or only one RelativeLayout ? Jul 13 11:42:44 louis: you may hit the max depth boundary as I did with linearlayout Jul 13 11:42:50 relativelayout saved my project :) Jul 13 11:43:02 (If I remember, the limit is 9 or 10 levels) Jul 13 11:43:26 yep but while under this limit , wich solution is the most efficient Jul 13 11:43:27 beyond that, your app will crash randomly with a stack overflow Jul 13 11:43:46 that I don't know. relative layout seems pretty fast IMHO Jul 13 11:44:33 ok i'll make some performance test then Jul 13 11:44:43 anyone with an exemple of upload file dialog ? Jul 13 11:44:54 I need to enable the user to upload a video from its mobile to the server Jul 13 12:03:14 hey guys Jul 13 12:03:22 can anybody help me setup a new widget project Jul 13 12:03:27 i get nothing when mine runs Jul 13 12:11:41 hello Jul 13 12:11:43 anyone there Jul 13 12:19:54 does anybody know when you launch an emulator for ur app how to get it to load the new widget straight away Jul 13 12:20:02 cos its so slow to have to add it again and again and again and again Jul 13 13:01:20 Hey all does anyone have any tips of where to start to make a view which only covers half of the screen? i.e. raises from the bottom of the screen up to display a number of buttons? Jul 13 13:03:47 What I really want is something like Android Menu but where I can customise the buttons etc Jul 13 13:05:58 Matt: there is a SlidingDrawer class Jul 13 13:06:22 ooo cheers zhobbs I knew someone would point me in the right direction Jul 13 13:09:25 hopefully I can hide the handle so it is just a sliding drawer Jul 13 13:17:21 Matt: how is the user going to hide/reveal it? Jul 13 13:17:58 Im thinking sliding draw might be wrong, basically I wanted a button click to set of the slide to reveal the buttons Jul 13 13:18:29 so it is near anough a menu except I want to define my own layout within the menu Jul 13 13:25:06 Do you reckon just adding a new Content View will be suitable? Jul 13 13:45:38 guys Jul 13 13:45:43 i want 4 buttons in a relative layout Jul 13 13:45:47 that are 2x2 Jul 13 13:45:49 how do i do it Jul 13 13:45:55 cos currently mine looks like shit Jul 13 13:46:18 http://pastebin.com/m39c2ea49 Jul 13 13:50:00 you need to put them inside of linear layouts Jul 13 13:50:11 have a horizontal layout for each row? Jul 13 13:50:26 actually, no, that's probably not the right way Jul 13 13:51:11 you might want a tablelayout Jul 13 13:51:56 actually, looking at your paste Jul 13 13:52:13 you have four widgets. 1 is to the left of 2. 2 is to the right of 4. 3 is to the right of 4. Jul 13 13:52:20 in eclipse, how do i get system.out.println to work? it doesnt print in the android console, do i have to create some java view console? Jul 13 13:52:21 so, that's not going to stack up as 2x2 Jul 13 13:52:30 wizzler: use the Log class instead Jul 13 13:52:36 kk Jul 13 13:52:43 http://developer.android.com/reference/android/util/Log.html Jul 13 13:53:01 also, strongly advise using the debugger to step through things instead of doing println debugging Jul 13 13:53:07 if you don't know how to use the debugger, now's the time to learn. Jul 13 13:53:39 ^^ Jul 13 13:54:25 nah i just want to see some results on the console. Jul 13 13:55:01 yea the debugging might not be might bggest strength but it seems from the guides that it might be a good idea to use it. Jul 13 13:55:34 http://developer.android.com/reference/android/util/Log.html Jul 13 13:55:38 ops Jul 13 14:01:40 vol_: Log.i("class", "text"); should be thrown to the console right? Jul 13 14:01:42 vol_ - right so waht hsould the widgets be lined up as Jul 13 14:05:47 vol? Jul 13 14:05:51 in order to get 2x2 Jul 13 14:19:37 AndyArmstrong: you want to position widgets relative to each other Jul 13 14:19:45 have the bottom left one say that it is below the top left one Jul 13 14:19:52 have the top right one say it is to the right of the top left one Jul 13 14:20:07 have th bottom right one say it is to the right of the bottom left and below the top right one Jul 13 14:20:13 wizzler: yes, something like that Jul 13 14:20:21 it will show up in the logcat output in ddms Jul 13 14:20:40 ok i have this now vol - http://pastebin.com/m6367ffc8 Jul 13 14:20:49 however the widget only shows two of the imagebuttons Jul 13 14:22:24 like this : Jul 13 14:24:05 http://tinypic.com/r/rjnmgg/3 Jul 13 14:24:08 take a look Jul 13 14:38:31 I have an activity which launches a second activity to display a list of options, does anyone have any idea how I could update the first activity when the second activity has a button press? Jul 13 14:39:06 Even if its just a way of listening for when the activity closes Jul 13 14:45:37 just make a method static Jul 13 14:45:41 and call class.Method(lalala) Jul 13 14:46:34 vol_!?!? Jul 13 14:46:39 ^^ Jul 13 14:52:38 :@( Jul 13 14:55:01 AndyArmstrong: wrong Jul 13 14:55:09 activities don't interact with each other that way Jul 13 14:55:30 Matt: you should be able to register when the child activity closes Jul 13 14:55:35 as well as get some feedback Jul 13 14:56:12 http://developer.android.com/reference/android/app/Activity.html#StartingActivities Jul 13 14:56:32 see startActivityForResult and onActivityResult Jul 13 14:56:56 if you want real IPC, you would use AIDL, but bear in mind that only one activity is active at a time. Jul 13 14:57:05 cheers vol, I started looking into extending Dialog, so The activity starts the dialog with a list of buttons essentially to wait for a click on one of them, is that a better way of approaching the problem? Jul 13 14:58:42 vol can u hel me plz = above i put a image showing u what was happening Jul 13 14:58:50 i only see 2 of my imagebuttons Jul 13 14:58:54 the other 2 dont appear Jul 13 14:59:42 AndyArmstrong: using the relative layout? Jul 13 15:00:07 is it possible to do infinite pagination on the android like the iphone? Jul 13 15:00:09 yea Jul 13 15:00:15 AndyArmstrong: Did you read the relative layout doc? It says it lays out the widgets with one pass, so you have to organize the order of things with that in mind. Jul 13 15:00:30 jasongornall_: sorry, what do you mean by infinite pagination? Jul 13 15:00:45 well I have a xml feed I am pulling in Jul 13 15:00:47 Matt: if you're just having an activity that returns when the user clicks a button, just use an activity Jul 13 15:00:52 yeah i all do it relative to the top left button - as seen here http://pastebin.com/m367e2d92 Jul 13 15:00:55 but it has a pagenumber associated with it Jul 13 15:00:58 that's really exactly what you want for that Jul 13 15:01:04 I want to simply infinitely scroll Jul 13 15:01:11 each page Jul 13 15:01:17 without having it be buggy Jul 13 15:01:18 hmm. Jul 13 15:01:24 Good question. Jul 13 15:01:34 iphone can do it Jul 13 15:01:36 I don't know if the capability exists but you might be able to just write something yourself Jul 13 15:01:46 that's kind of an odd scenario Jul 13 15:01:56 cheers for the advice vol Jul 13 15:02:03 I'm pretty sure that if you have a list or something, you can always just add more elements to it Jul 13 15:02:11 gmail does this Jul 13 15:02:19 I would expect you can probably do it for other things as well Jul 13 15:02:25 AndyArmstrong: widget35 and widget37 are in the same place since they're not positioned relative to eachother Jul 13 15:02:32 AndyArmstrong: Is this for a desktop widget? Jul 13 15:02:42 by that u mean on the phones desktop..? Jul 13 15:02:45 if so, yes Jul 13 15:03:19 AndyArmstrong: Hm, I didn't think you could have buttons on a widget. Jul 13 15:03:20 vol if I do it that way Jul 13 15:03:24 it becomes a memory issue Jul 13 15:03:40 you can ! Jul 13 15:03:47 so what am i supposed to add Jul 13 15:03:51 35 on top of 37? Jul 13 15:03:55 hi all. need some help with layouting. made a messages widget and used some small buttons to switch forward and backward. but they are so small it is hard to hit it with the finger. is there a way to increase the "hit area" without resizing the buttons? (buttons being ImageViews) Jul 13 15:04:00 jasongornall_: The ListView class only reads the data for what's on the screen.. Jul 13 15:04:08 jasongornall_: remove elements from the front then, maybe? Jul 13 15:04:18 sorry, I've never really considered this case, honest Jul 13 15:05:25 kRutOn i dont see what i need to add to fix this problem... Jul 13 15:05:40 added this to widget35 Jul 13 15:05:41 android:layout_above="@+id/widget37" Jul 13 15:07:39 AndyArmstrong: In widget37, you're referencing widget35 which hasn't been read yet. Yes, you need to switch it so widget35 is positioned vertically based on widget37's position Jul 13 15:07:55 AndyArmstrong: http://pastebin.com/mafba124 Jul 13 15:12:03 I have a Builder inside of a ListPreference that I'm calling setMultiChoiceItems on.... is there a way to dynamically check items inside of it after its created? Jul 13 15:12:41 hmm Jul 13 15:12:42 so basically Jul 13 15:12:50 if i start with everything relaitve ot button 1 Jul 13 15:12:55 it must be the very fist thing thats read Jul 13 15:13:17 and likewise if i mention 3 before 4, then 3 mustve occuired in the code before 4 Jul 13 15:13:28 otherwise it will be, "i hevent heard of that yet , so fuk you" Jul 13 15:25:26 Yeah, that's why it says it scans linearly through the layout once. Jul 13 15:26:03 Otherwise you'd have an O(n!) problem where people are nesting things infinitely deep and wondering why this extra layer of indirection doesn't work. Jul 13 15:30:35 kRutOn: Donut changes the way RelativeLayout is implemented Jul 13 15:30:45 it does not require dependencies to be declared in the correct order anymore Jul 13 15:30:56 just doesn't resolve them until the end? Jul 13 15:31:13 it builds two graphs of its children Jul 13 15:31:22 one based on the horizontal rules Jul 13 15:31:26 one based on the vertical rules Jul 13 15:31:30 romainguy_: Speaking of donut, should be be submitting changes to pull in master branch fixes to donut? Jul 13 15:31:53 both get sorted to resolve the dependencies in the right order Jul 13 15:32:07 then there's a couple more tricks (which can result in up to 5 passes in the measure() phase) Jul 13 15:32:23 kRutOn: submissions go in master Jul 13 15:33:03 hm, I'll have to read the new code in donut Jul 13 15:33:25 we haven't dropped that code yet Jul 13 15:33:38 but anyway, that new implementation makes RelativeLayout easier to use Jul 13 15:33:42 ... at some later point in time Jul 13 15:33:47 *and* it fixes a bunch of really obscure bugs Jul 13 15:35:25 Sounds good. For the old layouts will it still be one pass because the graph will be already sorted? Jul 13 15:35:51 it will be 2 passes Jul 13 15:36:00 but that's not O(2*n) Jul 13 15:36:16 because the first pass deals only with children that have horizontal rules Jul 13 15:36:23 and the second pass with children that have vertical rules Jul 13 15:36:27 hi guys, noob question couldn't find an answer for in google.. I'm trying to use INTERNET permission for my application, I get an exception when I try to run the application : Jul 13 15:36:57 java.lang.SecurityException: Permission Denial: starting Intent { flags=0x10000000 comp={com.lat/com.lat.Splash} } from null (pid=-1, uid=-1) requires android.permission.INTERNET Jul 13 15:37:23 I'm getting both on my g1 and emulator Jul 13 15:37:25 throw new GraphCycleException() Jul 13 15:38:17 maannj: I think you need to use not maannj: you're putting your permissions in the wrong spot Jul 13 15:38:29 kRutOn: yes, there's that :p Jul 13 15:38:30 you're setting a permission required to use the app, not a permission the app wants to request Jul 13 15:38:37 vol_; oh Jul 13 15:38:40 kRutOn: oh :) Jul 13 15:38:46 Jul 13 15:38:51 er, INTERNET Jul 13 15:38:52 maannj: click the "permissions" tab at the bottom of the android manifest editor Jul 13 15:38:58 I just noticed it, I tried to do it using Manifest editor in Eclipse Jul 13 15:39:07 ok thanks Jul 13 15:39:09 The manifest editor is slightly confusing in that area. Jul 13 15:39:18 you probably just hit permission in the application tab Jul 13 15:39:37 just out of curiosity , what is this one for in application tab Jul 13 15:40:25 romainguy_ thats great news about donut Jul 13 15:40:33 when is donut arriving Jul 13 15:41:05 romainguy_: Is there someone that is tirelessly looking through all the issues submitted for bug fixes to merge to donut, eclair, flan, etc branches? Jul 13 15:41:14 romainguy_ are u the same person i saw a video of demonstrating part of donut i think it was Jul 13 15:41:24 AndyArmstrong: I asked in dunkin donut, they're not sure yet Jul 13 15:42:20 lmao maannj Jul 13 15:42:21 hahah Jul 13 15:42:29 lol :) Jul 13 15:43:53 kRutOn: we look at all submissions but not all of them are merged back to donut/whatever Jul 13 15:44:04 although jbq has been working on merging the external master with our internal master recently Jul 13 15:44:48 AndyArmstrong: it could be if you are referring to Google I/O Jul 13 15:44:59 ahh wow Jul 13 15:45:06 nice to put irc names to faces actually Jul 13 15:45:10 maybe the first time ive ever done that Jul 13 15:45:20 is it possible to link a sms intent to a desktop widget? Jul 13 15:45:36 bleh. Anyone know know if there's a way to pass arbitrary values to ant targets? Jul 13 15:45:46 I don't want to make three almost but not quite identical ant targets Jul 13 15:45:50 AndyArmstrong: /send/ an sms? Jul 13 15:45:56 actually, more than that, because I have several steps Jul 13 15:46:00 Yeah, I figured with his recent announcement he's in charge of the open source release process Jul 13 15:46:16 jsharkey: I think he wants an sms broadcast to make his desktop app do.... I don't know what. Jul 13 15:46:19 beep. Jul 13 15:46:41 jsharkey more like intercept an incoming text Jul 13 15:46:59 so i get hold of the text of a new sms Jul 13 15:47:28 AndyArmstrong: i think others have done it before, and there should be tutorials out there Jul 13 15:47:36 its probably an ordered broadcast Jul 13 15:48:04 vol_: Just set them before they get into that target.. Jul 13 15:48:19 kRutOn: eh, I suppose that works. Jul 13 15:49:41 yeah i saw a tutorial from anddev.org Jul 13 15:49:50 i aws just ensuring there isnt a restriction on widgets Jul 13 15:50:03 they can do everything all other apps can do , just with a limited selection of widgets Jul 13 15:50:04 it seems Jul 13 15:50:08 vol_: Here's a good example: http://emma.sourceforge.net/userguide/ar01s03s03.html Jul 13 15:50:19 i think the desktop widget and views widgets need different names Jul 13 15:50:21 its confusing Jul 13 15:50:24 kRutOn: thank you Jul 13 15:50:36 AndyArmstrong: thats why they're called AppWidgets ;) Jul 13 15:50:59 what so desktop widgets , like the clock are called appwidgets Jul 13 15:51:41 that needs changing - its hard to ask problems when people could interpret them in a number of ways cos of the same word being used left right and center Jul 13 15:54:30 how do i attach a onclicklistener to an image button in an appwidget Jul 13 15:54:37 cos currently, i cannot do findViewById Jul 13 15:54:46 so i cannot gain access to the button programtically Jul 13 15:58:59 so can anybody advise me how i assign an onclicklistener to my imagebutton within a app widget application - because id ont seem to be able to do it Jul 13 15:59:13 need some help with the SharedPreferences. Jul 13 15:59:38 i have an AppWidget and want to save and read a integer value to and from the file Jul 13 16:00:10 so i try to load the settings in the onReceive() method and store the settings at it's end Jul 13 16:00:23 but it wont load the correct value no matter what i do Jul 13 16:00:27 any suggestions? Jul 13 16:01:51 so can anybody advise me how i assign an onclicklistener to my imagebutton within a app widget application - because id ont seem to be able to do it Jul 13 16:02:20 the_alien Im probably going to look into the SharedPreferences soon so might be of some help later on or 2moro perhaps Jul 13 16:02:44 AndyArmstrong: you cant assign an onclicklistener Jul 13 16:02:52 you have to use a PendingIntent Jul 13 16:03:03 oh right Jul 13 16:03:06 how do i do that Jul 13 16:03:11 can u link me to an example with a button? Jul 13 16:03:42 AndyArmstrong: http://developer.android.com/guide/topics/appwidgets/index.html#AppWidgetProvider Jul 13 16:04:11 Matt: "on or 2moro perhaps" what does that mean? Jul 13 16:04:54 I might be able to help you later on or tommorrow, if all goes well Jul 13 16:05:13 ah nice Jul 13 16:05:18 the_alien, are you sure you set the settings correctly? make sure you .commit() on the editor Jul 13 16:05:49 else your sharedpreferences object will lose its changes once it goes out of scope Jul 13 16:05:58 martin__: i can pastebin it and you could tell me? Jul 13 16:06:11 perhaps, I haven't used an AppWidget before Jul 13 16:07:26 martin__: http://pastebin.com/m59feeb72 Jul 13 16:09:12 what is the best way to load a image from the web? Jul 13 16:12:39 martin__: no idea? Jul 13 16:13:27 I assume position changes between those two pieces of code, I dont see a problem Jul 13 16:14:06 yeah, position changes there Jul 13 16:15:28 i think i'll use a properties object then. where should i store the file? Jul 13 16:19:19 nice, adb tells me the xml file is present, but if i want to access it, it says it doesn't exist Jul 13 16:24:48 how do I invoke function in UI thread ? something like invokeLater in Swing ? Jul 13 16:25:55 nvm I got it, runOnUiThread(Runnable), right ? Jul 13 16:26:23 maannj: that, or using a Handler Jul 13 16:26:40 maannj: or let AsycTask do the work for you Jul 13 16:27:13 zhobbs_: is there any difference beside complication ? Jul 13 16:27:41 maannj: they all use a Handler at some point Jul 13 16:29:13 zhobbs_: aha ok I guess I'll just use runOnUiThread then Jul 13 16:36:24 do any of you guys know how this.setListAdapter() works Jul 13 16:36:30 can I throw a list of anything in there? Jul 13 16:41:59 with this exmaple - http://developer.android.com/guide/topics/appwidgets/index.html#AppWidgetProvider exampleactivity class - what method do i have in there so it reacts on button click Jul 13 16:42:00 you can do everything, you just have to strongly believe in yourself. Jul 13 16:42:14 should it implement on click listener? Jul 13 16:43:31 ?? Jul 13 16:48:36 AndyArmstrong: I think OnClickListener is what you want Jul 13 16:48:56 er perhaps OnTouchListener* Jul 13 16:48:59 so i do Jul 13 16:49:07 yeah but this for for an activity Jul 13 16:49:11 so do i make a class Jul 13 16:49:14 myclass { Jul 13 16:49:20 implements onClickListener Jul 13 16:49:28 and that will work?! Jul 13 16:49:33 you could have the activity implement it Jul 13 16:52:02 Does anyone know if a Thread has interrupt() called in it, is it the same and just killing it? because from the documentation I couldn't see a good way to kill it Jul 13 16:54:19 Matt: don't know how android handles it, but in java you shouldn't call interrupt() because it can cause deadlocks Jul 13 16:54:29 if you're synchronizing anything Jul 13 16:54:49 you should write your own method to tell your thread to stop working, and die Jul 13 16:54:53 its just a background thread, and only time I forsee problems is if the IO over network fails Jul 13 16:55:29 the_alien i am following the link u sent me Jul 13 16:55:39 this is my ExampleActivity class - but its not working when i click my button http://pastebin.com/me610458 Jul 13 16:55:46 the activity starts - but the toast dialog doesnt appear Jul 13 16:58:46 yeah, why should the onClick be called? Jul 13 17:08:18 i dont know Jul 13 17:08:23 what should the helper class have in it Jul 13 17:08:32 i want the code in helper to be executed on click Jul 13 17:08:35 so what should it look like Jul 13 17:09:19 AndyArmstrong: you aren't setting the click listener to any object there Jul 13 17:10:23 AndyArmstrong: you need to do something like "myView.setOnClickListener(Helper.this);" Jul 13 17:10:32 in your onCreate() method Jul 13 17:11:14 Argh Jul 13 17:11:22 I'm having some trouble escaping quotes in ant Jul 13 17:11:36 \" doesn't work? Jul 13 17:11:45 no, sir! Apparently I need to use " Jul 13 17:11:54 nuts Jul 13 17:11:58 except that then sed bitches about the wrong output Jul 13 17:12:00 ugh Jul 13 17:12:11 heh Jul 13 17:12:47 oh, alright Jul 13 17:12:56 I guess I don't need '' around the line if I'm not at the shell Jul 13 17:12:59 that solves that Jul 13 17:13:36 * the_alien cries Jul 13 17:13:58 why the fuck are my settings i store in a file not loaded when the process starts Jul 13 17:14:29 the_alien: that is what debuggers are for :> Jul 13 17:14:31 the_alien, because you're not telling it to load Jul 13 17:14:44 What class can I use to download images to use as resources in application? I'm trying to build sample gallery layout out of images provided on a web site Jul 13 17:14:58 the_alien: yeah, you need to load in your onCreate or wherever makes sense yourself Jul 13 17:15:20 Penguin__, URL or HttpClient Jul 13 17:15:26 thanks Jul 13 17:15:47 KNY: i need the settings in the onReceive(), first i tried it with SharedPreferences > didn't work. now trying it with a PropertiesFile. it is stored and loaded. but when the process restarts everything is gone Jul 13 17:15:51 i dont get it Jul 13 17:16:17 vol_: the process wont be killed by the vm in the emu and i can't stepdebug on the adp1 Jul 13 17:17:03 the_alien: when you used sharedpreferences, did you make sure to do editor.commit()? Jul 13 17:17:21 herriojr: yeah i did Jul 13 17:17:41 herriojr: http://pastebin.com/m59feeb72 Jul 13 17:17:43 I used SharedPreferences a lot, and it works fine for me Jul 13 17:18:31 herriojr: yeah, everything is fine, until my AppWidget Process gets killed. if it restarts everything seems to be gone Jul 13 17:19:12 are you testing on the emulator? Jul 13 17:19:43 herriojr: both, emulator and g1 Jul 13 17:20:06 did you try logging into the shell after it is killed and check to see if the preferences file is still there? Jul 13 17:20:29 herriojr: one sec, i'll try Jul 13 17:24:13 herriojr: the file is there and the correct value is in it Jul 13 17:27:12 and when you run it again, it doesn't use the preferences file? Jul 13 17:27:25 the value gets reseted Jul 13 17:29:48 I'm mulling it over at the moment, just a sec Jul 13 17:30:08 the xml file says the position is 4, the process restarts, the position is set to 0 and stored Jul 13 17:32:12 so in your code, you have 2 different position variables: MessagesProvider.position and position Jul 13 17:32:27 I don't see where position is being set Jul 13 17:36:07 herriojr: position is a static member variable Jul 13 17:36:07 any1 have a problem with the android console in eclipse crashing eclipse? Jul 13 17:36:33 changed it now to position instead of MessagesProvider.position, but doesn't change anything at all Jul 13 17:37:47 herriojr i dont understand Jul 13 17:37:52 how can i do Helper.this Jul 13 17:38:16 then intent takes a class function Jul 13 17:38:18 not an instance Jul 13 17:39:21 herriojr: ffs, i got it *sigh* there was a method setting the position. i feel so stupid Jul 13 17:39:49 help! Jul 13 17:39:52 AndyArmstrong: the onClick method won't be called, u can't use an OnClickeListener in an AppWidget Jul 13 17:40:28 if you use a PendingIntent you can call an Activity but not tne onClick in there. Jul 13 17:40:43 ok Jul 13 17:40:48 so what function do i put in my new activity Jul 13 17:40:50 which will be called Jul 13 17:40:52 onCreate()? Jul 13 17:40:56 fangus: not really Jul 13 17:41:22 the_alien: I do it all the time...ask RomainGuy, I've probably pissed him off more than anyone else :) Jul 13 17:41:48 the_alien: I've just come to the conclusion that 99% of the time, the issue is actually something I did, and not the SDK Jul 13 17:42:08 yeah, was guessing it is my fault, but i couldn't find it :D Jul 13 17:43:45 AndyArmstrong: yeah Jul 13 17:44:18 ffs Jul 13 17:44:37 7:45 pm... i'll have to hurry to get something at the supermarket :D Jul 13 17:44:39 laters Jul 13 17:45:31 this still doesnt work http://pastebin.com/m70efa27c Jul 13 17:46:40 the_alien? Jul 13 17:48:26 argh ffs Jul 13 17:49:01 hey, could someone explain what I'm doing wrong here? http://pastie.org/544400 I'm trying to throw a viewgroup object on top of my app's current window Jul 13 17:49:47 can somebody tell me why my activity isnt doing anything Jul 13 17:49:52 http://pastebin.com/m70efa27c Jul 13 17:51:03 AndyArmstrong: you gotta setContentView in your onCreate Jul 13 17:51:03 how were you able to not call super.onCreate()? Jul 13 17:51:52 muk_mb setContentView then waht? Jul 13 17:52:08 just do that, and it'll display anything Jul 13 17:52:14 do you have a layout file? Jul 13 17:52:40 muk_mb: with your issue, where are you calling manager.add()? Jul 13 17:52:45 in onCreate? Jul 13 17:52:54 yeah i do muk Jul 13 17:52:55 so i do Jul 13 17:53:04 SetContentView(R.layout.widget_word) Jul 13 17:53:06 then it will work Jul 13 17:53:50 herriojr: in a method that gets called when the button gets clicked Jul 13 17:53:55 inside my custom ViewGroup class Jul 13 17:54:05 AndyArmstrong: yeah, then it'll at least display something. Jul 13 17:54:29 im so confused - muk_mb this helper class is meant to be a pending intent for a button in a widget Jul 13 17:54:36 i just want some piece of code to run when the button is pressed Jul 13 17:54:48 an appwidget i mean Jul 13 17:56:19 this is my helper class http://pastebin.com/m65df760d and this is my main class where i am setting the onclickpending intent thing - http://pastebin.com/m3c11ba7c Jul 13 17:57:46 AndyArmstrong: try onStart instead of onCreate. what does lolcat say? Jul 13 17:59:24 it says nothing Jul 13 17:59:33 says acivity starting Jul 13 17:59:34 no errors Jul 13 17:59:37 no other output Jul 13 17:59:57 try onStart, it's the start of the visible lifetime Jul 13 18:00:17 hi Jul 13 18:01:30 tried Jul 13 18:01:30 http://pastebin.com/m5501496f Jul 13 18:01:37 im presuming extending activity is the correct thing to be oding here Jul 13 18:02:24 what are you trying to do from your appwidget? Jul 13 18:02:32 look at the pastebin... Jul 13 18:02:38 im trying to show a toast notification currently Jul 13 18:02:59 when i press my button Jul 13 18:03:01 which is called drive Jul 13 18:03:19 you could use a broadcast to show the toast notification ;) Jul 13 18:03:42 i just want some way...of executing code... when this friggin button is pressed Jul 13 18:03:44 thats what i did on my buttons of my widget Jul 13 18:03:48 why the heck does it have to be so complicated and different Jul 13 18:03:58 right, the_alien , so how do i do the broadcast method hten Jul 13 18:05:07 http://pastebin.com/mf2b4e0f Jul 13 18:05:50 http://pastebin.com/m233bb4fc Jul 13 18:05:52 AndyArmstrong: Jul 13 18:05:55 thats what i did Jul 13 18:06:10 create a broadcast intent, add it to the buttons Jul 13 18:06:26 register my app as an broadcast receiver for my actions in the manifest file Jul 13 18:06:54 then you will get notified in the onReceive method and check the intent.getAction() what action i should execute Jul 13 18:08:26 im SO confused Jul 13 18:08:36 like me ;) Jul 13 18:08:43 i actually dont have a clue how to do this Jul 13 18:08:53 im so pissed of why is this so different to setonclicklistener Jul 13 18:08:53 :@ Jul 13 18:09:09 how to do what? Jul 13 18:09:14 i just want Jul 13 18:09:16 a button Jul 13 18:09:18 which when pressed Jul 13 18:09:22 calls a method Jul 13 18:09:24 why is this so hard Jul 13 18:09:26 in an appwidget Jul 13 18:09:43 i don't know Jul 13 18:09:47 the_alien Jul 13 18:09:50 have u got vnc Jul 13 18:09:56 uhm no Jul 13 18:10:05 im wondering if you could take a look at my code Jul 13 18:10:10 cos u no what ur doing Jul 13 18:10:14 would take like 2 mins i think Jul 13 18:11:25 AndyArmstrong: i just made a running beta of my first android app which is an appwidget. ;) Jul 13 18:11:42 but i download vnc and will have a look Jul 13 18:13:47 thanks so much Jul 13 18:13:47 or you could checkout the sources of my widget right here http://code.google.com/p/messages-widget/ Jul 13 18:14:36 ok qry me with server port etc Jul 13 18:14:37 hmm Jul 13 18:15:00 hmm? Jul 13 18:15:20 i need to make a new screenshot ... this one is outdated ;) Jul 13 18:24:57 can someone tell me why my list view instead of outputing my images Jul 13 18:25:09 I get a tostring version of the image which looks like this Jul 13 18:28:55 how do I fetch the kernel branch that has the goldfish stuff in it? Jul 13 18:29:28 jasongornall_: Because you're using the default item layout? Jul 13 18:29:50 how do I use a different 1? Jul 13 18:30:25 non android related question, does anyone know of any laptop ($600-$800) deal with intel core 2 duo ? Jul 13 18:30:58 new ArrayAdapter(this, R.layout.row,titles); Jul 13 18:31:04 that is the layout I am using.. Jul 13 18:31:25 titles is actually a list of bitmaps Jul 13 18:43:35 has anyone used REST api in development\ Jul 13 18:55:12 my app is stuck in loop, how do I kill it ? Jul 13 18:55:38 cut the emulator off Jul 13 18:55:40 DDMS, click the process, click the STOP button Jul 13 18:56:15 it's real device Jul 13 18:56:21 what's ddms ? Jul 13 18:56:29 what romainguy said Jul 13 18:56:51 that messager widget whos working on that Jul 13 18:57:05 theres not already something out that does stuff like that Jul 13 18:57:24 is there a way to make the TextView of an AppWidget scrollable? Jul 13 18:57:43 or make it scroll by code if it won't work with user interaction Jul 13 18:58:03 put it in a scrollview Jul 13 18:58:11 but I don't think we support ScrollView in app widgets yet Jul 13 18:58:18 you don't Jul 13 18:58:23 regarding the docs Jul 13 18:58:30 thats why i ask ;) Jul 13 18:58:43 the_alien: the way I've done it is to have buttons left/right or up/down to scroll through content Jul 13 18:58:43 then you can't :) Jul 13 19:01:17 hm no, i don't think i add buttons to scroll through the text. if the message is too long they should read it in the sms app :D Jul 13 19:01:42 btw sms app. how can i call the sms app to open up with a specific thread? Jul 13 19:01:47 or sms Jul 13 19:01:51 or open at all :D Jul 13 19:02:12 the_alien: read the source Jul 13 19:02:21 herriojr: of what? Jul 13 19:02:28 of the sms app Jul 13 19:02:38 ok Jul 13 19:42:27 can GridViews have borders? Jul 13 19:42:46 Hello Jul 13 19:45:06 oh hi Jul 13 19:45:17 vol_, hello Jul 13 19:45:40 I am Japanese and I live in Japan Jul 13 19:49:06 good to know Jul 13 19:50:06 vol_, r u android developper? Jul 13 19:50:24 yes Jul 13 19:51:12 Do u know "onMenuOpened"? Jul 13 19:51:44 Yes, what about it Jul 13 19:52:33 I want to switch the language Japanese and English? Jul 13 19:52:53 ... ok, I don't know if you can do that within the app itself Jul 13 19:52:58 But select language but it can't swicth other language Jul 13 19:53:47 how long does it take for an app to show up in the market? Jul 13 19:54:36 1 app has opened but Japanese only Jul 13 19:54:57 I want to open the Japanese andenglish version Jul 13 19:55:11 what do I use as the ClassLoader for Parcel.readParcelableArray(ClassLoader loader)? Jul 13 19:56:33 where is quetion BBS? Jul 13 19:59:03 I want to write the question in the BBS for android Jul 13 20:03:30 is there a disabled state for a button? Jul 13 20:03:46 ie, grayed out Jul 13 20:12:45 hello Jul 13 20:15:03 skyPhyr-, wb Jul 13 20:15:18 hey :) Jul 13 20:18:58 i made a simple little tic tac toe game to try out android stuff and it seems to set the X and the Os in 8 out of the 9 squares, but I don't know why the top left square at pos 0 doesn't get set. the click event happens... http://bnovc.pastebin.com/m2c36e67d Jul 13 20:19:09 it seems like a lot of these android classes have set methods but no get :( Jul 13 20:27:38 any idaes? Jul 13 20:34:15 who's using hero? Jul 13 20:34:31 JAC's latest version? is it fast? Jul 13 21:11:19 what have people found as the best way to distribute aidls? Jul 13 21:18:23 AIDS? Jul 13 21:18:27 unprotected sex. Jul 13 21:18:39 *rimshot* Jul 13 21:24:20 *rimjob* Jul 13 21:25:01 I had a feeling that was going to be coming. ;) Jul 13 21:32:19 *sigh* Jul 13 21:32:26 I didn't see that coming :) Jul 13 21:40:15 neither did i. Jul 13 21:40:26 i had my eyes closed though. Jul 13 22:07:57 is there a way to test an app with different hardware platforms? Jul 13 22:10:08 the_alien: can you be a little more specific? Jul 13 22:10:54 herriojr: i released the first version of my widget today and one comments that it has no hero support. Jul 13 22:10:54 the_alien: android, currently, only has support for certain hardware (processors, etc.), so it depends on what level you mean Jul 13 22:12:08 the_alien: so, you may ask your user what exactly they mean by that, since the hero should be using the same appwidget structure Jul 13 22:12:37 yeah, but how should i contact him? Jul 13 22:12:46 the_alien: is it on the market ? Jul 13 22:12:49 maybe it is the sms content resolver... Jul 13 22:12:52 frez: yeah Jul 13 22:12:53 from the vids I've seen of Hero I wouldn't be surprised if it didn't support AppWidget widgets Jul 13 22:13:17 zhobbs: in the videos they show the google widgets... Jul 13 22:13:22 (this is one of the downsides to having multiple platforms, unlike apple) Jul 13 22:13:23 from the videos I've seen, it looks like it supports appwidgets Jul 13 22:13:25 the_alien: which ones? Jul 13 22:13:34 but the upsides > downsides Jul 13 22:13:36 the_alien: no, some of them aren't really widgets Jul 13 22:14:14 the_alien: like google search isn't a widget Jul 13 22:14:15 the_alien: Download to my magic to check it out :) Jul 13 22:14:32 Downloading* Jul 13 22:14:42 even though i don't get it why someone with hero would like a sms widget, they have a pretty awesome thing :) Jul 13 22:14:45 I couldn't figure out how to install the zip provided on xda-developers to the magic Jul 13 22:14:46 thanks frez Jul 13 22:14:50 oh and rate it high ;) Jul 13 22:14:57 :) Jul 13 22:15:28 herriojr: tried the hero rom from xda-dev. pretty kewl, but crappy slow on the g1 Jul 13 22:15:33 the_alien: it doesn't show contact name, only the number Jul 13 22:16:02 the_alien: I can't install it b/c it reads to update it, but fastboot doesn't recognize my device Jul 13 22:16:32 the_alien: and I can't do it via the update method since I don't have a keyboard :-/ Jul 13 22:16:55 thats bad herriojr. but you won't keep it anyways ;) Jul 13 22:17:30 frez: would be nice to have lolcat, number in the sms and in the contact (you can make the last numbers anreadable ) Jul 13 22:17:34 *unreadable Jul 13 22:17:51 frez: you can mail it or post it on the website Jul 13 22:18:18 the_alien: I tried sending myself a sms and the app has stopped unexpectedly Jul 13 22:18:41 frez: ok... THATS bad :/ plz send me the lolcat Jul 13 22:19:20 the_alien: Have to go to bed, work in the morning, but I will check it out tomorrow :) Jul 13 22:21:02 frez: would be cool. have a nice sleep Jul 13 22:25:29 the_alien: what app is it you made? Jul 13 22:25:47 http://www.cyrket.com/package/de.heimlich.gut Jul 13 22:26:28 @herriojr Jul 13 22:26:48 the_alien: I'll try it out :) Jul 13 22:26:55 or have a look here http://code.google.com/p/messages-widget/ ;) Jul 13 22:28:54 the_alien: when you click on the notification after it downloads, it would be a good idea to take it to auto-launch the configure screen if you can...right now it just pops up and says error Jul 13 22:29:30 herriojr: no configure screen right now :/ but it is on the list Jul 13 22:30:05 herriojr: unbelievable how fast i got a few feedbacks and requests ;) will do some work on it this week Jul 13 22:30:20 the_alien: it's open source, right? Jul 13 22:30:25 but not now, my girlfriend is going to kill me if i start up eclipse right now ;) Jul 13 22:30:29 herriojr: yes Jul 13 22:30:31 when is it good to externalize stings to strings.xml? Jul 13 22:30:36 the_alien: I'll help you out with it Jul 13 22:30:46 herriojr: great Jul 13 22:31:01 you're having the same issue I'm having with my widget...sometimes the buttons are unresponsive when clicking page after page Jul 13 22:31:12 herriojr: i'm off right now. see you Jul 13 22:31:16 adios Jul 13 22:39:33 hi yall Jul 13 22:50:47 hi. Jul 13 22:54:29 halo!? Jul 13 22:58:09 hello anyone up late coding tonight?! Jul 13 22:58:21 lol Jul 13 22:59:22 do activities need to be added to the manifest file?! Jul 13 23:04:50 hello Jul 13 23:04:52 anybody!? Jul 13 23:10:35 does anybody know how to turn on the bluetooth programatically Jul 13 23:19:28 hi Jul 13 23:34:46 hi Jul 13 23:51:03 is anybody here Jul 13 23:52:38 ues Jul 13 23:52:40 yes Jul 13 23:53:09 oh wow! Jul 13 23:53:15 finally! hey jasta Jul 13 23:53:22 im tryna enable bluetooth within a service Jul 13 23:53:44 Settings.Secure.putInt(getContentResolver(), Jul 13 23:53:44 Settings.Secure.BLUETOOTH_ON, 1); Jul 13 23:53:48 this is not working Jul 13 23:54:12 i have heard rumblings that this API has become privileged in cupcake (i.e. you need a permission granted to use it). look at the release notes / api docs for cupcake for more details. Jul 13 23:57:15 yeah i added 2 permissions Jul 13 23:57:17 makes no diff Jul 13 23:57:30 were they granted to you? Jul 13 23:57:39 and were they the right ones? Jul 13 23:57:58 this should be very easy to figure out using documentation (release notes / api diffs) and adb logcat. Jul 13 23:58:13 if you still can't work it out, look at the Settings app source code to figure out how it's doing it. Jul 13 23:58:17 permission.BLUETOOTH_ADMIN Jul 13 23:58:18 and Jul 13 23:58:27 permission.WRITE_SETTINGS Jul 13 23:58:30 i don't know the answer that you seek specifically, i only know how to find answers. Jul 13 23:59:28 well the exception being thrown is Jul 13 23:59:34 really, i'm not interested :) Jul 13 23:59:46 cannot write secure settings table Jul 14 00:00:50 where do i find the settings app source code! Jul 14 00:01:25 android.git.kernel.org Jul 14 00:02:18 omg its goliath Jul 14 00:02:29 the docs are appauling for bluetooth etc Jul 14 00:02:32 dont mention anything.... Jul 14 00:02:35 its pure guesswork Jul 14 00:04:05 infact Jul 14 00:04:07 just found it Jul 14 00:04:11 that IS how its done in the source code Jul 14 00:04:19 of settings app Jul 14 00:04:24 and what about the permissions it holds? Jul 14 00:04:41 no idea Jul 14 00:04:48 where can i find it in the dosc Jul 14 00:04:50 **docs Jul 14 00:04:58 look at the apps manifest Jul 14 00:06:34 i dont have it Jul 14 00:06:42 cos i am lookin at the specific comments other people are saying online Jul 14 00:06:48 but theres i no mention of the permissions it holds Jul 14 00:07:01 i'm not interested in doing this for you buddy :) Jul 14 00:07:05 just look at the apps manifest. Jul 14 00:07:19 how the hell am i gona find it in that massive git thing Jul 14 00:07:36 *facepalm* Jul 14 00:07:47 just stop now, you aren't Jul 14 00:07:55 :) Jul 14 00:08:02 jclinton probably not Jul 14 00:08:14 im surprised its so unknown how to toggle the bluetooth Jul 14 00:08:14 :@ Jul 14 00:08:17 i need to do it tho Jul 14 00:08:22 dam sure i got the right line Jul 14 00:08:25 just wrong permissions Jul 14 00:09:17 AndyArmstrong: im surprised you can't use your browsers search feature. Jul 14 00:09:34 jasta - i can, but theres nothing in here on it Jul 14 00:09:54 what did i tell you the app was called? Jul 14 00:11:04 Settings app Jul 14 00:11:50 and you claim that is not on android.git.kernel.org? Jul 14 00:14:02 AndyArmstrong: I think all you can do is call the activity that can turn on bluetooth Jul 14 00:14:57 ok... Jul 14 00:15:00 whats that called Jul 14 00:15:21 start it on your phone and look what it says in logcat Jul 14 00:16:32 hmm Jul 14 00:16:42 Im having trouble with GPS Jul 14 00:17:06 Im wondering if anyone can send me to a good link that helps with troubleshooting it Jul 14 00:17:27 the trouble is, I am unable to update the gps location in the emulator Jul 14 00:20:39 does anyone know how to properly use footers on a list view? I used addFooter(View v) and its throwing a null pointer error at me Jul 14 00:20:57 b0nn: I think that's in the android developer guide, but as far as problems, youll probably have to google search for the solutions Jul 14 00:23:57 kRutOn: thanks, I have been for the last week Jul 14 00:25:02 You're using DDMS and all that? Jul 14 00:26:11 yeah Jul 14 00:26:21 even telnet will not update the gps position Jul 14 00:27:40 my onStatusChanged method is called in the LocationListener (occasionally) Jul 14 00:28:05 but no actual change in the GPS location (it is reset to Long 0, Lat 0) Jul 14 00:36:32 what happens if I rely on ? Jul 14 00:36:39 can that break my application in the future ? Jul 14 00:36:58 I wonder why this is an internal widget, it seems to be so useful Jul 14 00:41:03 b0nn: Are you using a Google API 1.5 target SVD Jul 14 00:41:09 er, AVD Jul 14 00:44:19 yes Jul 14 00:44:40 kRutOn: it /was/ working at one point, then, inexplicably, it has stopped working Jul 14 00:44:48 and I'm trying to figure out why Jul 14 00:48:56 I'll try this Jul 14 00:49:01 http://pastebin.com/m12d06588 Jul 14 00:49:29 I have been unable to getLongitude() or getLatitude() with values other than 0.0 for the last week Jul 14 01:14:54 hey kRutOn u still there Jul 14 01:17:07 .. Jul 14 01:17:49 07-14 02:15:46.735: DEBUG/BluetoothDeviceService(56): Bluetooth state 1 -> 2 Jul 14 01:17:49 07-14 02:15:46.755: VERBOSE/BluetoothEventRedirector(6034): Received android.bluetooth.intent.action.BLUETOOTH_STATE_CHANGED Jul 14 01:17:49 07-14 02:15:46.855: DEBUG/A2dpAudioInterface(35): setParameter bluetooth_enabled,true Jul 14 01:17:49 07-14 02:15:46.855: DEBUG/A2dpAudioInterface(35): setBluetoothEnabled 1 Jul 14 01:17:55 this is what i see when i turn on bluetooth Jul 14 01:18:04 what is intent name ?? Jul 14 01:18:10 android.bluetooth.intenr.action? Jul 14 01:23:23 ,..,. Jul 14 01:26:56 god dam Jul 14 01:26:59 anybody!? Jul 14 01:27:45 .,.,.,., Jul 14 01:28:13 ,..,.,., Jul 14 01:30:08 does ANYONE know how to bloomin turn on the bluetooth programaticall Jul 14 01:30:39 AndyA, patience is a virtue. Jul 14 01:34:59 KNY i have little amounts of it Jul 14 01:35:05 and ive spent 4 hours trying to do this Jul 14 01:35:09 :( Jul 14 01:35:12 do you know how!? Jul 14 01:35:19 hmm, have you tried google? Jul 14 01:35:20 AndyA, then perhaps IRC isn't the correct medium for you Jul 14 01:35:32 AndyA, if I knew, I would have answered. That's generally how this works. Jul 14 01:36:10 b0nn yah, tons of googling Jul 14 01:41:52 is this using an old api : http://www.anddev.org/recognize-react_on_incoming_sms-t295.html Jul 14 01:42:00 because some of the imports dont seem correct Jul 14 01:42:03 in particular Jul 14 01:42:19 import android.content.IntentReceiver; Jul 14 01:43:41 and the telephony line Jul 14 01:43:44 cos it doesnt work for me Jul 14 01:45:17 AndyA: http://pastebin.com/m49033dbd Jul 14 01:46:18 b0nn seriously - that it!? Jul 14 01:46:23 do i need to add anything to manifest Jul 14 01:46:44 yes Jul 14 01:46:47 what Jul 14 01:48:16 http://pastebin.com/m411a2360 Jul 14 01:48:29 anything else you need is in the api Jul 14 01:48:38 incredible Jul 14 01:48:46 so i presume it easy to read the contents of the new message Jul 14 01:49:06 yes, but you need different permissions Jul 14 01:49:22 eg Jul 14 01:49:33 Jul 14 01:49:51 so do you read the message from within that first pastebin? Jul 14 01:51:25 AndyA: second hit off google for "android read sms" Jul 14 01:51:27 http://stackoverflow.com/questions/900294/android-1-5-reading-sms-messages Jul 14 01:51:51 hmm, it is saying that my manifest is not correct http://pastebin.com/m3ce1ace8 Jul 14 01:51:58 "malformed" Jul 14 01:54:20 why Jul 14 01:57:06 hmm, it is saying that my manifest is not correct http://pastebin.com/m3ce1ace8 Jul 14 01:58:46 AndyA, we saw. You don't need to repeat yourself. Jul 14 02:05:05 anyone know why am getting this error trying to install ndk on x64 machine http://pastebin.org/1443 Jul 14 02:06:06 sounds like your linker isn't working. Also, don't crosspost between channels. Jul 14 02:07:10 KNY: i figured this was more an appropriate place to post the question, though i had posted it on the other channel Jul 14 02:08:08 tells me my linker is not working, i dont know how to resolve this. i have the 32bit devel packages installed Jul 14 02:09:18 so can anybody help me fix up my manifest Jul 14 02:09:23 seems it doesnt like the 2 receiver tags Jul 14 02:23:26 why might something work in the emulator Jul 14 02:23:30 when i move it across onto fone Jul 14 02:23:32 it doesnt Jul 14 02:23:40 i.e a toast notifation i use as a test aint showing on fone Jul 14 02:23:42 but shows on emulator Jul 14 02:24:00 adb logcat Jul 14 02:24:30 im lookin at logcat Jul 14 02:24:35 it doesnt even register my button press Jul 14 02:24:53 are you sure you reinstalled it on the right device? Jul 14 02:26:13 yeah i plug the fone in and it installs to that device Jul 14 02:26:23 phone Jul 14 02:30:05 yeah on the phone it doesnt recognise the button press Jul 14 02:30:11 yet on the emulator its working fine Jul 14 02:39:08 hi Jul 14 02:39:31 does anyone know why i can't use swing components in android? **** ENDING LOGGING AT Tue Jul 14 02:59:57 2009