**** BEGIN LOGGING AT Mon Jun 22 02:59:57 2009 Jun 22 03:10:58 how to debug android platform, make android-building shorten? Jun 22 04:18:40 Anyone ever got a android.graphics.Canvas.throwIfRecycled exception on a bitmap ? Jun 22 04:19:45 I found a thread with someone with the same issue but it turned into non-sense partial way through http://groups.google.com/group/android-developers/browse_thread/thread/ef1f206cfcab010d/81606b5d5fd18bce?show_docid=81606b5d5fd18bce&fwc=1 Jun 22 05:46:58 Hi, can I do a Google Search from Android Code? E.g. using the Google Search AJAX API? Jun 22 05:47:10 Or how to other apps acquire information, e.g. on businesses? Jun 22 05:48:50 you use the search intent i suppose? Jun 22 05:51:30 I haven't found any sample code in the sdk, or am i blind? Jun 22 05:51:39 anyone messed with box2d? Jun 22 06:04:56 Can someone help me with this? Jun 22 06:05:14 I need to have a triggered action when a button in a widget is pressed Jun 22 06:05:30 I can't figure out how to do it with RemoteViews Jun 22 07:16:14 yawn Jun 22 07:16:29 i totally spaced this presentation i have at work tomorrow. i should probably get to bed early :) Jun 22 07:25:58 no ones toks here? Jun 22 07:31:56 I want to build an application with two navigation bars; is going with two TabHostActivities nested in one another the best way? Jun 22 10:01:54 anyone know how to create a buttonrow at the bottom like in the message view in the gmail application? Jun 22 10:02:16 is there a specific layout or view for that? Jun 22 11:57:13 hi guys, anybody knows how to do a HTTP multipart post using org.apache.http ? Jun 22 12:06:02 hi I need to create a combo box and a text field ,which class is responsible for that Jun 22 12:12:19 HELP!!!!!!!!!!!!!!!! Jun 22 12:13:05 * cutmasta throws a lifesaver to inamru Jun 22 12:14:11 What is lifesaver?? Jun 22 12:18:44 how can I develop combobox and text field,please give me the class reference Jun 22 12:19:28 I am a new developer Jun 22 13:13:10 hey all i need help regarding the wifi add network Jun 22 13:13:15 when i system.out.print wifi.getConfiguredNetworks().size() is seems to return me 0 even though after i add the network Jun 22 13:47:13 hi i use the code for creating the radiobutton,but it shows exception,http://pastebin.com/d48d5574c Jun 22 13:52:15 hi i use the code for creating the radiobutton,but it shows exception,http://pastebin.com/d48d5574c Jun 22 13:52:59 HELP!!!!!!!!!!!!!!!!!!!!!!!! Jun 22 13:55:24 hi i use the code for creating the radiobutton,but it shows exception,http://pastebin.com/d48d5574c Jun 22 13:55:29 HELP!!!!!!!!!!!!!!!!!!!!!!!! Jun 22 13:59:42 hi i use the code for creating the radiobutton,but it shows exception,http://pastebin.com/d48d5574c Jun 22 13:59:46 HELP!!!!!!!!!!!!!!!!!!!!!!!! Jun 22 13:59:55 wow :D Jun 22 14:00:29 :) Jun 22 14:00:43 androidguru: What's the exception? Jun 22 14:01:01 the application crashes Jun 22 14:01:42 androidguru: Using Eclipse? Jun 22 14:01:53 yes Jun 22 14:02:06 is there any permission necessary to write on the sdcard ? Jun 22 14:02:49 when using the emulator, i can create directories, but no files Jun 22 14:03:05 and when running on the device, i cant create directories or files Jun 22 14:03:39 androidguru: Try to run it in debug mode and take a look at the exception. You can also break on Java exceptions by going to Run -> Add Java Exception Breakpoint Jun 22 14:10:01 ravon whenRadioGroup returns null,http://pastebin.com/d48d5574c Jun 22 14:11:26 ravon: whenRadioGroup returns null,http://pastebin.com/d48d5574c Jun 22 14:15:45 whenRadioGroup returns null,http://pastebin.com/d48d5574c Jun 22 14:16:04 How to solve this :'( Jun 22 14:18:27 radio button whenRadioGroup returns null,http://pastebin.com/d48d5574c Jun 22 14:21:59 radio button whenRadioGroup returns null,http://pastebin.com/d48d5574c Jun 22 14:22:47 HELP!!!!!!!!!!!!!!!!!!!!!!!!!!!!! Jun 22 14:25:04 radio button whenRadioGroup returns null,http://pastebin.com/d48d5574c Jun 22 14:25:09 HELP!!!!!!!!!!!!!!!!!!!!!!!!!!!!! Jun 22 14:25:19 * cutmasta throws a lifesaver to androidguru Jun 22 14:26:48 lifesaver? Jun 22 14:32:46 anyone willing to take a look over my servive problem? Jun 22 14:32:55 http://pastebin.com/m569c2ce5 Jun 22 14:33:09 help appreciated :) Jun 22 14:33:57 u will not get help from here Jun 22 14:34:17 I am waiting over 2 hours :'( Jun 22 14:34:38 time will come ... have patience Jun 22 14:35:03 maybe nobody knows the answer who knows Jun 22 14:35:12 by this time you can help me Jun 22 14:35:28 its radio button Jun 22 14:36:06 its hard for me to help people coding wise as im really new to android Jun 22 14:36:20 me too Jun 22 14:37:52 :'( Jun 22 14:38:53 anybody have some time to look at me, radio button whenRadioGroup returns null,http://pastebin.com/d48d5574c Jun 22 14:58:27 anybody have some time to look at me, radio button whenRadioGroup returns null,http://pastebin.com/d48d5574c Jun 22 15:04:28 anybody have some time to look at me, radio button whenRadioGroup returns null,http://pastebin.com/d48d5574c Jun 22 15:05:29 ravon: I got null here,RadioGroup whenRadioGroup = (RadioGroup) findViewById(R.id.whenRadioGroup); Jun 22 15:09:34 BaseAdapter.getView(..) is called from the UI thread or from somewhere else? Jun 22 15:10:17 Its for me:Tauno?? Jun 22 15:10:30 no Jun 22 15:15:12 as for your problem - you have been here screaming for the last 2.5 hours.. it's not helping when you just keep on spamming your pastebin link Jun 22 15:15:49 its for me:Tauno?? Jun 22 15:15:56 yes, now it's for you Jun 22 15:16:03 hmm Jun 22 15:16:13 so what you suggest?? Jun 22 15:17:10 to not spam here and search for the solution on your own (android manual, google, mailing lists etc) Jun 22 15:17:11 What should to do for getting help,I am new on android and IRC Jun 22 15:17:28 I also did it Jun 22 15:17:44 but found nothing Jun 22 15:17:49 so you are saying that findViewById(R.id.whenRadioGroup) is null, right? Jun 22 15:17:57 yes Jun 22 15:18:27 so the next step would be to go and look at the documentation of Activity.html#findViewById(int) Jun 22 15:18:43 and look for the hint in what case it returns null Jun 22 15:18:50 "The view if found or null otherwise. " Jun 22 15:19:09 so you can see that there's is no view with that id Jun 22 15:19:34 ok Jun 22 15:19:41 then Jun 22 15:20:03 next you should think something like "OMG OMG, why is there no view with that ID, what did I do wrong.. did I forget to call setContentView before calling findViewById() by any chance" Jun 22 15:20:36 no go and look if you did that or not.. because that part of your code is not in the pastebin link that you scream here all the time Jun 22 15:21:30 ok,Now I understand, may I post the total code Jun 22 15:21:41 Its a little code Jun 22 15:21:53 feel free to do whatever you want, it's a free world Jun 22 15:22:14 ok Jun 22 15:22:49 http://pastebin.com/m49b16f87 Jun 22 15:26:11 what's the name of the layout file that contains this radiogroup? Jun 22 15:26:58 Tauno_ :you mean xml file?? Jun 22 15:27:22 yes, I mean xml file Jun 22 15:27:45 http://pastebin.com/d2dbc9428 Jun 22 15:30:01 wth did you just pastebin there? you have three files, right? one .java file with your java code, one AndroidManifest.xml (the one that contains the tag etc) and one more .xml file that's in a /layout/ folder that contains your " you can not put inside your AndroidManifest!! Jun 22 15:31:10 Ok Jun 22 15:35:00 * Tauno_ cries Jun 22 15:37:24 Tauno_:Thanks now I am able to see radio button Jun 22 15:45:33 Tauno_:Is there any combo like widget?? Jun 22 16:19:53 how does the user know what input he is editing when he's using a fullscreen IME? Jun 22 16:32:13 Tauno_: He doesn't, and it's annoying as hell :) Jun 22 16:32:29 anyone? http://pastebin.com/m569c2ce5 Jun 22 16:33:09 im going crazy Jun 22 16:34:56 dont get whats wrong Jun 22 16:35:18 would be great if anyone could take a look Jun 22 16:38:08 I took a look and gave up :( Jun 22 16:38:28 mechanicFFM: wahts the issue? Jun 22 16:38:41 oh Jun 22 16:38:42 i see Jun 22 16:39:17 Is StringBuilder the class to use for optimal string concatenation? Jun 22 16:40:37 * AakashPatel would answer if he knew what "concatenation" meant Jun 22 16:40:39 haha Jun 22 16:41:35 join :) Jun 22 16:41:51 ravon, yes Jun 22 16:41:59 KNY: aight, thanks Jun 22 16:47:30 Is there a torrent with all the Google I/O videos out there? Jun 22 16:47:59 AakashPatel: "concat"+"enation" = "concatenation" Jun 22 16:48:07 AakashPatel: I think ;) Jun 22 16:50:46 :D Jun 22 16:51:29 har har Jun 22 17:04:02 AakashPatel: the issue is that the ui not react any more and will force close as soon as i start the service from ui Jun 22 17:05:04 without the thread checkMode thread the service starts fine Jun 22 17:06:03 i tried a lot but nothing works to check the current audiomode in my service Jun 22 17:07:09 main problem is i need to loop the if-else thingy but i dont get how Jun 22 17:08:32 is there any features included with android to deal with text validation in, for example, the edittext view? Jun 22 17:08:48 AakashPatel: any ideas? Jun 22 17:08:55 uh Jun 22 17:09:02 put the stuff on a different thread Jun 22 17:09:07 or look at logcat and see why its crashing Jun 22 17:09:52 thats what i try as far as i can see... trying to greate a new thread Jun 22 17:10:25 look at logcat Jun 22 17:10:27 why is it crashign first Jun 22 17:10:36 ill post the logcat as soon as im home as im not able to read it properly i think Jun 22 17:11:40 should be ok how the thread is created as far as i can see http://pastebin.com/m569c2ce5 Jun 22 17:11:50 but well ill post the logcat laters Jun 22 17:12:24 probably i need a custom listenenr to check the audiomode Jun 22 17:12:31 ooo Jun 22 17:12:34 err Jun 22 17:12:37 wrong window lol Jun 22 17:12:40 okay... Jun 22 17:12:42 but i have no glue how to do that Jun 22 17:13:18 * AakashPatel has no clue Jun 22 17:15:09 hmm Jun 22 17:18:12 will post logcat laters maybe that will help to locate the problem Jun 22 17:36:21 yawn Jun 22 17:36:23 romainguy_: you around? Jun 22 17:40:47 jasta: yes? Jun 22 17:43:01 i am trying to build a widget which can automatically and persistently cache its drawing output to disk Jun 22 17:43:13 and restore it when recreated later Jun 22 17:43:52 ok? Jun 22 17:43:54 i was curious if you had any recommendation for how to implement such a widget? my first crack at this involved just turning on drawing cache and drawing to it during the onDraw path Jun 22 17:44:33 but the issue is that the performance overhead to draw it then the first time is higher than it would be normally, defeating the purpose of being an optimization for that case Jun 22 17:44:56 i was thinking it might make more sense to allow it to draw normally first and then use a handler to defer the storage to disk until after the UI thread has settled a bit? Jun 22 17:45:00 why do you need to persist the drawing in the first place? Jun 22 17:45:16 because the work required to draw is heavy. Jun 22 17:45:43 Hi, how can I do a google search in android, e.g. using AJAX Site Search? Using an ACTION_WEB_SEARCH opens the Google page, but I want to process the data further. Jun 22 17:45:50 it's basically a composite of some scaling/drawing effects with actual android widgets mixed in Jun 22 17:46:55 jasta: you should persist to disk only when the widget is torn down Jun 22 17:47:04 in onDetachedFromWindow() Jun 22 17:47:29 its actually a main widget and a gallery used for switching the look of the main widget. Jun 22 17:47:43 so the widget itself wont detach, its contents will merely change. Jun 22 17:48:02 but for each gallery item, the widget will draw predictably. so i'm actually caching per gallery item. Jun 22 17:48:32 so there are typically free cycles after the user selects an item in teh gallery and is looking at the result Jun 22 17:58:22 Hi, how can I do a google search in android, e.g. using AJAX Site Search? Using an ACTION_WEB_SEARCH opens the Google page, but I want to process the data further. Where does e.g. cab4me get its data from? Jun 22 18:21:07 heya yall, can anybody help me out , i am trying to create a customised webview so i can included a back button, can anybody help me Jun 22 18:26:04 heya yall, can anybody help me out , i am trying to create a customised webview so i can included a back button, can anybody help me Jun 22 18:26:56 is there something similar to simplehtmldom for android/java? Jun 22 18:34:01 I got the bug with the not working vibrator once more Jun 22 18:34:18 this code was working for weeks now and I have changed nothing at all Jun 22 18:34:29 now there is no vibration any more :( Jun 22 18:35:28 clearscreen, is the org.w3c.dom package suitable? Jun 22 18:36:09 heya yall, can anybody help me out , i am trying to create a customised webview so i can included a back button, can anybody help me Jun 22 18:37:45 renegadeandy, could you use a linearlayout (vertical) and put a button at the top and a webview in the bottom? Jun 22 18:40:03 I'm trying to set up tabs for my main app. I followed the api demo of Tabs2 and it worked great. The only issue is that the tabs from that demo look nothing like the tabs that are used in android's native apps. the demo tabs also have an ugly bar at the bottom of the screen that isnt in my xml file Jun 22 18:40:22 does anyone know how to get the standard tabs? Jun 22 18:42:04 hm. actually, looking at it again, I see that the bar at the bottom of the screen should actually be underneath the tabs themselves, not at the bottom of the screeen. Jun 22 18:44:56 jasta: are you around. Perhaps you could help me. I don't know who could help me :( . Jun 22 18:46:41 yes Jun 22 18:47:05 Just one moment. I'm pasting some things. Jun 22 18:48:29 I'm using the following code since 1.0 for setting a vibration notification: http://paste.pocoo.org/show/McYTh0v62s49U9DuXyNN/ Jun 22 18:48:47 I have the correct permission set Jun 22 18:49:17 wat is the efficient way of keeping track of your past position and draw out the route you have traveled on the overlay in mapview? Jun 22 18:49:20 And it had been working for months. But from time to time it stops working. Jun 22 18:49:32 I'm not getting anything in the logs Jun 22 18:49:49 I have logged the "adb bugreport" Jun 22 18:49:56 but can't find the error Jun 22 18:50:33 Even after uninstalling and reinstalling the application it is not working. Jun 22 18:50:48 Is there anything else I could do to get some kind of error message Jun 22 18:50:50 ? Jun 22 18:51:27 are you certain that its not a bug in android? Jun 22 18:51:34 ooo clever Jun 22 18:51:39 yes i could do that martin__ Jun 22 18:52:25 anno^da: btw, there is a vibrator class, maybe you should use that Jun 22 18:52:41 well the problem is that I don't really know if it is a bug in android. I discussed the bug with romainguy_ and jbq months ago but we couldn't find an answer. Well it was gone for months and I just had few users complaining about it in feedback mails. Jun 22 18:53:19 renegadeandy, it's possible that you could subclass the webview to place a seethrough button somewhere but I haven't done it so I wouldn't be sure how :) Jun 22 18:53:19 And now without changing anything in code it apperead again. :) Jun 22 18:53:27 so are you able to reproduce? Jun 22 18:53:44 i'm not sure i like speculating on a bug that your users may or may not be entirely truthful about :) Jun 22 18:53:50 sometimes users are just stupid Jun 22 18:54:19 jasta: Not really. I can't really reproduce it and having no error message at all makes it even harder. Jun 22 18:54:36 jasta: I will try using the vibration class now. Jun 22 18:54:58 im reading through NotificationManagerService to make sure Vibrator will actually take a different path Jun 22 18:55:12 wat is the efficient way of keeping track of your past positions and draw out the route you have traveled on the overlay in mapview? Jun 22 18:55:32 it definitely doesnt seem right to use a notification just to get vibration though Jun 22 18:56:17 so, i see this in the code: Jun 22 18:56:18 // If we're not supposed to beep, vibrate, etc. then don't. Jun 22 18:56:18 if (((mDisabledNotifications & StatusBarManager.DISABLE_NOTIFICATION_ALERTS) == 0) Jun 22 18:56:21 && (!(old != null Jun 22 18:56:23 && (notification.flags & Notification.FLAG_ONLY_ALERT_ONCE) != 0 ))) { Jun 22 18:56:28 can anyone point me to an example of how to create a UI similar to the "settings"? specifically how to: 1) get the checkbox in there, 2) make the icon go all the way to the right, 3) get the "hitbox" of the list items to be the full width Jun 22 18:57:09 also user settings can affect whether that notification can vibrate Jun 22 18:57:31 looks like a lot of conditionalization in that code path. way better to use Vibrator. Jun 22 18:57:41 if you dont intend for settings to be able to disable it Jun 22 18:58:30 Thats my problem. But ok I will check the user settings on my own now and use the Vibrator class. Jun 22 18:58:31 Skail, PreferenceActivity? Jun 22 18:59:02 Thank you jasta I will try that now. Jun 22 18:59:08 anno^da: look at NotificationManagerService#enqueuNotification source. Jun 22 18:59:38 I will do that. Opened it :) Jun 22 19:00:00 Skail, http://images.google.co.uk/images?hl=en&q=android%20preferenceactivity&um=1&ie=UTF-8&sa=N&tab=wi is this what you want? :) Jun 22 19:05:04 jasta: Ok with the vibrator class it is working now. Jun 22 19:09:18 jasta: I'm having issues with TabHost, following api demo Tabs2 worked without error, but for some reason the graphics are distorted: the bottom of the tab image is not appearing at the bottom of the tabs but rather at the bottom of the entire screen. I checked my xml file and I'm not setting any sizes anywhere so I'm a bit confused as to where this behavior is coming from. any ideas? Jun 22 19:12:58 martin__: yes, a view like that. However it is not for preferences - would PreferenceActivity still be good to use? Jun 22 19:13:21 Skail, you can put whatever you want in it Jun 22 19:16:56 martin__: but.. must it be specified in the xml format? how would I detect presses? Jun 22 19:20:00 Skail, no idea, but it has an addPreferencesFromResource() method, so you can define all the preferences in XML I would imagine Jun 22 19:21:18 Skail, http://mobdev.olin.edu/mobdevwiki/FrontPage/Tutorials/Preferences might be useful? Jun 22 19:25:39 does anyone know how the android app store and the youtube app implement the horizontal scrolling thumbnails? Jun 22 19:26:23 martin__: hmm.. surely there must be a way to get stuff into that format without the prefs activity.. in any case I guess I'll have to leave that for later, as it is beyond me for now. Jun 22 19:27:59 Skail: You can always look at the source coe.. Jun 22 19:28:01 code Jun 22 19:30:09 kRutOn: I'm not aware of an app that does what I'm wanting... and it isn't clear how to get the source, either Jun 22 19:32:11 http://android.git.kernel.org/?p=platform/frameworks/base.git;a=blob;f=core/java/android/preference/PreferenceActivity.java Jun 22 19:32:21 Does Android support the Google AJAX Site Search? Jun 22 19:32:31 Or is there any other way to perform a google search? Jun 22 19:40:12 Skail, you would create an activity that subclasses PreferenceActivity. In your XML you would use and like in that demo. You'd use the addPreferencesFromResource(R.xml.preferences); in the onLoad() method Jun 22 19:40:34 Skail, there's a fairly detailed tutorial in Ed Burnette's Android eBook "Hello, Android" Jun 22 19:40:52 pages 64 and 117 Jun 22 19:45:13 martin__ u no what u said earlier bout using a vertical layout - button at top webview at bottom, how would u do the minimize of the buttons thing? Jun 22 19:45:57 you would like the buttons at the top to disappear? Jun 22 19:50:37 renegadeandy, if you would like buttons to disappear then think about how you would get them back, you can't go mouseover-ing them as there is no mouse... it would be better to sub class WebView I would expect to add your buttons on top, but I haven't done it before and am not familiar with the methods Jun 22 19:56:31 yeah - thats what im tryna figure out Jun 22 19:56:36 subclassing seems sensible Jun 22 19:56:47 what i could do, is if the person taps on the webview - minimize the buttons Jun 22 19:56:54 and if they swipe at the top it brings them back Jun 22 19:57:10 removing the possibility of scrolling at the top? Jun 22 20:01:44 hey Jun 22 20:01:53 so does anybody have any experiance subclassing webview Jun 22 20:04:46 ^^ Jun 22 20:04:48 nobody!? Jun 22 20:07:00 well WebView inherits from AbsoluteLayout which has a method called generateLayoutPerams, perhaps you could override that and add your buttons to the ViewGroup Jun 22 20:07:11 but that's a guess, it would be best to look at the source Jun 22 20:12:59 eek Jun 22 20:13:03 bit deep for me i think Jun 22 20:13:20 im surprised so few have done this Jun 22 20:14:34 adnt he lack of documentaton on subclassing views onine Jun 22 20:14:35 **online Jun 22 20:14:59 subclassing views is the same as subclassing any other class in Java Jun 22 20:17:59 yes - but i dont understand how to add an view to the view Jun 22 20:18:01 if you see what i mean Jun 22 20:18:21 addView() Jun 22 20:18:29 in ViewGroup Jun 22 20:19:08 romainguy_, he's trying to add a button to the WebView class that appears and disappears like the zoom buttons do, would this work there? Jun 22 20:19:52 WebView's a ViewGroup so yes Jun 22 20:20:40 so viewgroup is like a collection of views - that this view has Jun 22 20:22:13 A ViewGroup is a special view that can contain other views (called children.) ;) Jun 22 20:22:43 ah right ok Jun 22 20:22:58 and how do you position them etc Jun 22 20:23:13 cos they wont have the xml file Jun 22 20:24:48 you give them WebView.LayoutParams with setLayoutParams() Jun 22 20:26:27 i seee Jun 22 20:26:29 hmm Jun 22 20:26:39 can u kickup a quick example of a webview with a button then Jun 22 20:26:56 public class myView extends Webview() etc Jun 22 20:27:02 without the () lol ;p Jun 22 20:37:40 does anybody know any good global weather web services Jun 22 20:46:48 possible to buy an unlocked G1 dev phone direct from TMobile? Jun 22 20:46:52 anyone can help? Jun 22 20:47:09 myservice: http://pastebin.com/m569c2ce5 Jun 22 20:47:52 here is the logcat : http://pastebin.com/d74324ae4 Jun 22 20:48:26 ui does not react anymore and will force me to close Jun 22 20:49:40 doubleminus, no. Jun 22 20:51:07 dont get whats wrong... this problem is killing me Jun 22 20:51:27 would be great is anyone could take a look Jun 22 20:52:03 if Jun 22 20:52:11 mechanicFFM, my guess would be that one of your methods blocks waiting for something, if it's running in the same thread as your activity it will block the activity's thread, causing it to not respond Jun 22 20:52:30 the UI will become unresponsive Jun 22 20:52:48 hmmm how would i greate a new thread Jun 22 20:53:26 thought i created a new thread in the onStart Jun 22 20:53:32 bagelrun: thanks. Jun 22 20:53:33 sorry im really new to android Jun 22 20:54:39 http://developerlife.com/tutorials/?p=290 this might help, you make a Runnable method Jun 22 20:54:56 but what I mentioned was a guess, have a look at the docs for the methods you're using to see if that's the case Jun 22 20:55:22 will take a look Jun 22 20:55:27 does anyone have an idea how to create a view that has a row of buttons at the bottom of the screen like in the gmail ap in the message view? Jun 22 20:55:52 i just want to check the current audiomode in my service and show a toast Jun 22 20:56:50 do i need a loop/ new thread or is there a better way to do that Jun 22 20:57:18 a loop will surely slow down the system Jun 22 20:57:25 ah I see you are already starting a new thread Jun 22 20:57:46 could anyone tell me the best way to archive what i want? Jun 22 20:58:05 thats just what i would do in c++ Jun 22 20:58:50 in the api docs : A Service is an application component that runs in the background, not interacting with the user Jun 22 20:58:52 it works just fine when i ad it to a click listener but i need to have it in a service Jun 22 20:59:03 well thats what i want Jun 22 20:59:11 otoh i'm not sure what a toast is :-) Jun 22 20:59:29 i have a ui/ listview from thee i start myService class Jun 22 21:00:01 toast ist that tiny pop message which appears in nearly every app Jun 22 21:00:37 yeah i see Jun 22 21:00:46 you should use some ipc i guess Jun 22 21:00:51 service starts fine if i remove the whole checkmode thread Jun 22 21:00:59 ok, so I'm being told in the #android channel that an app cannot save files to the phone's internal storage, is this true? Jun 22 21:01:41 so whats the best way to check the current audiomode in a service? Jun 22 21:01:48 you have an sqllite database that you may use Jun 22 21:01:53 and you may access files on the sdcard Jun 22 21:01:56 looks like im wrong with my loop idea Jun 22 21:02:27 mechanic maybe an ipc call.. i'm looking at the docs.. on how to communicate with services Jun 22 21:03:25 Global access to a service can be enforced when it is declared in its manifest's tag Jun 22 21:05:44 i declared it in the manifest Jun 22 21:06:27 and without my attemp to start the thread in MyService class the service starts just fine if i start it from my listview ui Jun 22 21:07:30 well i can't find anything in a hurry now Jun 22 21:07:37 i have my ui.java and a myservice.java Jun 22 21:07:39 http://pastebin.com/m569c2ce5 Jun 22 21:07:56 it works fine to start the service but i cant get my loop working Jun 22 21:08:15 is there a way to get the current audiomode without a loop? Jun 22 21:08:29 my guess is you need something like an ipc call that your UI can call in which the service tell's the calling app the status Jun 22 21:08:41 dunno Jun 22 21:08:43 shame i hate it to be a noob in android lol Jun 22 21:09:15 wait, mechanicFFM why does it loop indefinitely? Jun 22 21:09:25 have to read about ipc... never had to deaall with Jun 22 21:10:03 hmmm dont know really... it should check the current mode constantly so it shpuld be infinite or im wrong Jun 22 21:10:37 maybe anyone can take a loook at the code and add / remove something Jun 22 21:10:52 im out of ideas i deal with that problem for days Jun 22 21:11:09 or i just need the right hint dont know Jun 22 21:11:17 there's almost certainly a better way than using an infinite loop ;D Jun 22 21:12:13 would be great if u can tell me how Jun 22 21:12:27 should be a custom listener huh Jun 22 21:12:51 o_O Jun 22 21:12:51 but have no idea how i should create one that does what i want Jun 22 21:12:56 hold on, what's going on Jun 22 21:13:34 problems all the way Jun 22 21:13:39 take a look http://pastebin.com/m569c2ce5 Jun 22 21:13:44 help appreciated Jun 22 21:13:50 * vol_ cringes Jun 22 21:13:52 * vol_ clicks Jun 22 21:14:20 its my service class which i start from ui.java Jun 22 21:14:52 is there any reason why your AudioManager is called mXm? Jun 22 21:15:02 because I don't think there's any way that can be less obvious Jun 22 21:15:03 to check the current audio mode and show a toast about the current mode in a loop Jun 22 21:15:23 thats just how i tagged it Jun 22 21:15:43 just imagine if somebody else is trying to debug your code though ;D Jun 22 21:15:43 well, you probably shouldn't have this guy in an infinite loop Jun 22 21:15:50 you should probably only have it loop while someone is connected Jun 22 21:15:56 you DEFINITELY want to have a sleep Jun 22 21:16:05 so that you're not sucking up all of the cpu Jun 22 21:16:55 it can sleep for a second and check the mode every second that would be ok i think Jun 22 21:17:34 im out of ideas Jun 22 21:17:51 im lucky that i can start my service so on... but this problem kills me Jun 22 21:18:09 what exactly is it doing, you just want to be able to find the status of your audiomanager? Jun 22 21:18:18 yes Jun 22 21:18:31 thats what i try to archive in my service class Jun 22 21:18:50 and thats how i would do it in c Jun 22 21:19:13 i had the the if/else statement in a click listener and it worked just fine Jun 22 21:19:17 it's not the worst approach Jun 22 21:19:22 you just need a clearly defined exit condition Jun 22 21:19:27 definitely keep track of whether anyone is connected or not Jun 22 21:19:33 but i need it in a service that it can run in the background to check the curent mode Jun 22 21:19:38 hmm Jun 22 21:19:44 well, you can always keep it running like this Jun 22 21:19:54 as long as you have SOME exit condition Jun 22 21:19:58 aside from android reaping this. Jun 22 21:21:45 i just need to set up a thread but as soon as i add it like in my code the ui class does not react anymore Jun 22 21:22:11 that's because the while loop never exits in your new thread Jun 22 21:22:34 i thought i just add if/else in the onStart in a loop Jun 22 21:22:45 thats what comes to my mind in the first place Jun 22 21:23:01 but looks its not that easy Jun 22 21:23:58 never thought it would be that hard Jun 22 21:25:17 it's because you're throwing up ten million toasts Jun 22 21:25:22 and taking every ounce of the cpu's running time Jun 22 21:25:37 hmmm Jun 22 21:26:02 what else can i do to check the current mode Jun 22 21:26:40 im out of ideas Jun 22 21:26:46 damn Jun 22 21:29:25 this is the first version which i tried without a new thread Jun 22 21:29:26 http://pastie.org/518741 Jun 22 21:29:50 it looks like it should work but it does not loop the if/ else statement Jun 22 21:32:22 service starts and no force close in that one... just no loop Jun 22 21:36:48 does there happen to be documentation on what functions of a ImageButton you can access via a RemoteViews.set[Boolean|Int|etc.]? Jun 22 21:38:37 herriojr: the source code would tell you -- they're marked with RemotableViewMethod Jun 22 21:38:46 ah ok, thanks Jun 22 21:38:57 also make sure to look at its base classes Jun 22 21:39:10 ok Jun 22 21:39:13 thanks Jun 22 21:41:22 btw, I'm still a little confused on dp, what does it assume the number of density-independent pixels are across the screen? Jun 22 21:56:28 herriojr: dp is a unit which scales with the dpi of the device. it is calibrated for the G1 to be exactly equal to pixels. Jun 22 21:56:59 but on other devices with a different dpi, the actual pixels will scale to match the same physical size. for instance, 40dp will always be the same number of mm on any screen, even one with twice the resolution. Jun 22 21:57:42 its very important to use dp for your dimension units for this reason. only when you generally should have nothing in px. Jun 22 21:57:48 s/only when// Jun 22 21:58:18 then, if you wanted to provide higher quality assets to fill the remaining space (to prevent scaling them up or down) you could do so with drawable-xxxdpi Jun 22 22:01:09 when I set a transparent background on a ListView's child view and try to scroll the background behind the list is hidden...(similar to when you don't have the color cache hint set) Jun 22 22:01:13 anyway around this? Jun 22 22:02:55 actually, doesn't do it after I stuck a click listener on it...interesting Jun 22 22:07:11 ok, cool, thanks jasta Jun 22 22:08:25 Hi, I am having trouble using setImageBitmap on an ImageView to change the image shown dynamically with a camera app but it crashes the second time I try to do it. Jun 22 22:09:05 Ive also tried removing the ImageView and adding a new one but that doesnt seem to work either. Jun 22 22:12:55 im tired of my problem... Jun 22 23:12:27 Hi, Android 1.5 browser doesn't seem to copy-paste CRLFs - a buddy wants to copy ASCII art. Is this a known issue? Jun 23 01:43:15 Perhaps it copies it as html and copies
instead? Jun 23 01:43:34 typically html doesn't have crlf's Jun 23 01:43:50 crlf is a dos/windows thing Jun 23 01:43:59 unix just uses lf I seem to recall Jun 23 01:59:03 wat's the property that keeps the screen on and not dimmed? Jun 23 02:15:56 chouman82: its called a wake lock Jun 23 02:18:25 see the docs on PowerManager Jun 23 02:50:23 * jasta curses trying to read through git commit history on Android **** ENDING LOGGING AT Tue Jun 23 02:59:57 2009