**** BEGIN LOGGING AT Sun Jul 12 02:59:57 2009 Jul 12 07:46:33 Hi, I have four controls that I want to be places in the four corners of the screen. What is the best layout to do this? Jul 12 09:30:09 hey all Jul 12 09:37:08 Hi, I have a TableLayout with two rows. I want the second row to appear at the bottom and thought "gravity" would to the trick, but it does not. Any suggestions? Jul 12 09:41:43 actually, its the same problem as reported here: http://groups.google.com/group/android-beginners/browse_thread/thread/9fff8d9e6036ec6f Jul 12 09:46:41 ccmas try relative layout Jul 12 09:46:50 worked for me for that type of thing Jul 12 09:46:58 Matt_: thanks! Jul 12 09:47:18 actually I want four items, each of them being in one corner of the screen Jul 12 09:47:40 one on tope of the other? Jul 12 09:48:25 no, e.g. four buttons. each button is in another corner of the screen Jul 12 09:49:28 ooo ok Jul 12 09:50:15 you could try relative layout with linearlayouts inside or linearlayouts with weights Jul 12 09:50:31 ok, I'll try that, thanks! Jul 12 10:11:07 Does anyone have any ideas how I can share variables between activities Jul 12 10:25:57 Matt__: maybe with SharedPreferences Jul 12 10:26:57 cheers for the reply, Im thinking about making a singleton class, basically I want to display a splash screen while performing some MapVew Operations, getting the GPS and then some networking for some info before starting a new activity to display the MapView Jul 12 10:31:08 My big problem at the mo is whether I can create a MapView without actually creating the activity :-S Jul 12 11:49:52 hi Jul 12 11:55:01 I just git clone'd AlarmClock, I get several compile errors, one of them being "the constructor Vibrator() is not visible". Jul 12 11:55:13 isn't one supposed to get a vibrator instance through getSystemService ? Jul 12 11:56:21 the line that produces the error is obviously "mVibrator = new Vibrator()" Jul 12 11:56:26 ; Jul 12 11:57:27 what IDE do you use to build android apps? Jul 12 11:58:00 eclipse Jul 12 11:58:34 just before you joined: Jul 12 11:58:35 I just git clone'd AlarmClock, I get several compile errors, one of them being "the constructor Vibrator() is not visible". Jul 12 11:58:35 isn't one supposed to get a vibrator instance through getSystemService ? Jul 12 12:01:15 well I'm trying to run a sample: the snake game Jul 12 12:02:05 and I'm getting an error on this line : "mSnakeView = (SnakeView) findViewById(R.id.snake);" Jul 12 12:02:12 R cannot be resolved Jul 12 12:02:19 what might be the prob? Jul 12 12:05:48 event with the class android.R imported it cannot resolve Jul 12 12:07:20 keny: Jul 12 12:09:58 little help Jul 12 12:12:20 chrome_, probably a problem with your build environment, as the R class should be built automagically, as far as i know Jul 12 12:12:30 try using eclipse with ADT plugin Jul 12 12:16:34 ADT? Jul 12 12:16:37 what's that Jul 12 12:17:18 Android Development Tools Jul 12 12:17:33 ok Jul 12 12:21:40 Androud? What's that? Jul 12 12:21:44 :P Jul 12 12:21:46 *i Jul 12 12:28:13 still not workind Jul 12 12:28:16 working* Jul 12 12:28:27 with the ADT plugin Jul 12 12:39:59 now it's fine Jul 12 12:40:01 :p Jul 12 13:56:12 Does anyone have an idea of how I can access a UI element from a handler? Jul 12 13:56:42 i.e. I want to use findViewByID from a different thread to update a TextView Jul 12 14:03:40 this channel is awesome, I solved my problem simply by loging in then realising I was an idiot Jul 12 14:03:48 *logging Jul 12 14:21:14 Matt__: from a diffrent thread u have to use RemoteViews afaik Jul 12 14:21:41 oooo okies cheers the_alien ill check it out Jul 12 14:22:47 or was it from another process... hm Jul 12 14:23:13 whoa whoa Jul 12 14:23:23 just don't modify the UI from anything except the UI thread Jul 12 14:23:25 no it was from another thread Jul 12 14:23:30 you shouldn't be using remoteviews Jul 12 14:24:06 and i want to update the thread to inform the user the background thread is doing something and shows where it is Jul 12 14:24:13 use AsyncTask Jul 12 14:26:11 RemoteViews seems to work for elements which have reasonable cases where widgets would need changing Jul 12 14:27:24 Matt__, for what you're doing, you don't need a remoteview Jul 12 14:28:06 KNY: can animations be used within widgets? Jul 12 14:28:26 the_alien, widgets like one you put on the home screen? no clue Jul 12 14:28:35 yeah that widget Jul 12 14:28:57 KNY would I use an Async task instead of a seperate thread? Jul 12 14:29:25 Matt__, yes. http://android-developers.blogspot.com/2009/05/painless-threading.html Jul 12 14:29:47 cheers ill give that a look through Jul 12 14:30:56 Hey guys, im trying to write a broadcast reciever that can recieve when the wifi changes however im getting this error in the logcat 07-12 15:29:13.400: WARN/ActivityManager(129): Unable to launch app zerofate.distconnect/10062 for broadcast Intent { action=android.net.wifi.WIFI_STATE_CHANGED flags=0x20000000 (has extras) }: process is bad Jul 12 15:26:44 Hello, i have a GridView + Adapter with a list of bookmarks and icons... but i have no "Smooth" scrolling... can anyone give me an example for smooth scrolling with a GridView? Jul 12 15:28:36 Inselbewohner: Check the API demo Jul 12 15:28:46 I just confirmed there is one in there. Jul 12 15:29:07 can you tell me the name of the demo? (API Demo has a lot of examples) Jul 12 15:29:41 hello all Jul 12 15:29:59 a, ok i think Grid1 or Grid2 Jul 12 15:30:05 thx Jul 12 15:30:15 yeah. i was looking at grid1 Jul 12 15:30:19 no problem Jul 12 16:08:25 Hi, is there a way to keep the Menu open after an item has been clicked? Having checkboxes in the menu makes it really stupid when it closes Jul 12 16:51:19 anyone doing any augmented reality stuff? Jul 12 17:21:33 is it not possible to put a camera in any other kind of view except a fullscreen? Jul 12 17:59:12 anyone know how to do xml over htttp Jul 12 17:59:32 and does anyone know how to put the xml into a list Jul 12 18:24:32 does Context.getSharedPreferences(String name, int mode) allow a Service to access it's Application's SharedPreferences object? What would the name of the file be? Jul 12 18:49:57 Hi, all. I have an application that creates a Service and an Activity. When the Service connects to the Activity, it updates the UI. What I'm seeing leads me to believe that the UI is trying to update before the service is connected, since the UI there is blank. When I trigger another update, everything is fine. How can I ensure that the Service is connected to the Activity before trying to do the initial UI update? Jul 12 19:16:11 how can i apply the layer style from the Widget Design Guidelines in gimp? Jul 12 19:17:10 does android provide a service for certificate path validation? Jul 12 19:19:13 the_alien, you get photoshop Jul 12 19:19:15 tarzan, ? Jul 12 19:19:57 KNY: too expensive to draw some widget backgrounds Jul 12 19:21:55 the_alien, then complain to google. I believe there is a bug written up about it Jul 12 19:22:17 i want to use certificates internally for authentication of connected peers. Jul 12 19:26:13 nevermind i found it Jul 12 19:47:23 KNY: found it. Jul 12 19:53:53 Hi. I'm looking for a way to create an alert dialog box, but i want to style it (set the text size, a custom icon etc). I can't find any good resources on how to create custom dialog boxes in nadroid. Tips? Jul 12 19:54:34 whats wrong with : setTextColor(context.getResources().getColor(R.color.rsvp_yes_color) ? Jul 12 20:00:32 with the Handler.postAtTime(runnable, long) method, it says use the uptimemillis() base time, does that mean the time I should be using is my x time in the future + uptimemillis() rather than x time + System.currentTimeMillis()? Jul 12 20:00:52 Hi ! Jul 12 20:01:55 martin___, yes Jul 12 20:02:58 it would explain why my runnable wasn't getting called :) thanks Jul 12 20:08:04 How can i remove the top title bar of my application? Jul 12 20:08:15 Does anybody use RecognizerIntent ?? (android.speech) Jul 12 20:08:43 It's doesn't work in all handset Jul 12 20:09:58 I get this exception: The application Voice Search (process com.google.android.voicesearch) hast stopped unexpectedly. Please try again Jul 12 20:10:12 :( Jul 12 20:10:38 ayone know how to bind xml over http to a listiew Jul 12 20:11:10 Radzell, parse the XML and build up a simpleadapter Jul 12 20:11:45 what would i use for the get of the http request if i was using as rest api Jul 12 20:11:46 fran__, adb logcat Jul 12 20:12:14 Radzell, whatever you want; url, urlconnection, httpclient, etc Jul 12 20:12:54 how do you view the log file for android Jul 12 20:16:54 i know you can use log.i to make a log how do you view it Jul 12 20:22:46 hello Jul 12 20:23:10 noob question, how can I add new items to ListView after adapter has been set ? Jul 12 20:24:08 did someone slap me ? Jul 12 20:24:44 maannj, add it to the adapter's dataset and call notifyDataSetChanged() Jul 12 20:25:28 KNY: I got this: http://pastebin.com/m7295801b Jul 12 20:26:22 sounds like a pretty clear error Jul 12 20:26:32 though I don't know what you do to resolve it. Have you tried googling? Jul 12 20:27:04 of course Jul 12 20:27:47 in some handset works fine Jul 12 20:27:47 KNY: I'm can't find notifyDataSetChanged(), I'm using SimpleAdapter btw Jul 12 20:28:15 SimpleAdapter.notifyDataSetChanged() Jul 12 20:28:45 http://developer.android.com/reference/android/widget/BaseAdapter.html#notifyDataSetChanged() Jul 12 20:28:53 ok it's there, weird how eclipse underlined it :) Jul 12 20:29:52 worked, thanks Jul 12 20:31:36 KNY: the problem is with android 1.5, coz its work in 1.1 Jul 12 20:40:04 Is anyone doing general performance optimization work on Android (/G1)? Jul 12 20:40:15 anyone knows when will be donut officialy released ? Jul 12 20:40:32 I've just gotten started trying to profile some UI codepaths, and track down where (for starters) text-input hiccups are coming from. Jul 12 20:40:46 maannj, yeah, it'll be out as soon as it's done Jul 12 20:40:51 sethn, ddms Jul 12 20:40:58 :) Jul 12 20:41:28 Android would feel a LOT faster if a couple UI hiccups could be ironed out. I'm afraid they might be related to paging out of RAM though, and I don't see a way to lock small sections of code into RAM. Jul 12 20:41:33 KNY: IRC nick? Jul 12 20:41:39 KNY: Or, rather, that's an irc nick? Jul 12 20:41:58 sethn, um, no, it's a comman Jul 12 20:42:00 command* Jul 12 20:42:03 rather, it's a tool Jul 12 20:42:31 and "UI hiccups" are almost always related to GC. watch logcat Jul 12 20:44:05 Anyone know when Android will support bluetooth file transfer? Jul 12 20:44:29 as soon as you submit a patch :) In reality, Goole; I believe that they have a bug open for it Jul 12 20:44:33 KNY: yeah, I've been using ddms, I thought somebody might be using that as their nick... seemed like a good guy to talk to :-) Jul 12 20:44:55 KNY: I see GC hiccups in scrolling performance Jul 12 20:45:16 sethn, just watch adb logcat. every time you see it free up memory, *everything* else stops dead until it's done Jul 12 20:45:21 KNY: But not so much in, e.g., the hiccups when you're trying to type a URL and its trying to load a web page beneath Jul 12 20:45:23 KNY: right Jul 12 20:46:11 KNY: With GTK+, even on PCs, we had to carefully optimize the loop between text input and rendering so it pre-empts almost everything else Jul 12 20:46:31 KNY: Obviously if the VM is kicking it in the nuts, there's not as much that can be done :-/ Jul 12 20:46:45 sethn, I'm not on the android team, but I believe the official response is "patches welcome" :-) Jul 12 20:46:51 KNY: totally Jul 12 20:47:02 KNY: I'm just trying to get as much info as is known before I start trying to hack patches Jul 12 20:47:18 (but yes I agree with you; browser is definitely dogshit slow) Jul 12 20:48:10 To me the biggest complaint I have with Android isn't overall performance, its the feedback loop between user input and response doesn't seem to always succesfully take priority over background tasks Jul 12 20:48:47 With GNOME we had great success making things feel faster just by making them more responsive (which turned out to be MUCH easier than actually improving overall performance) Jul 12 20:48:50 * sethn keeps looking Jul 12 20:48:53 thanks KNY Jul 12 20:49:18 sethn, SanMehat put some (a lot) work into a new scheduler Jul 12 20:49:27 so background tasks can't hurt the performance of foreground ones Jul 12 20:49:32 KNY: that's cool Jul 12 20:49:48 KNY: Is that in shipped code? Jul 12 20:50:14 sethn, ask again in a year ;) Jul 12 20:50:24 it's in donut Jul 12 20:51:02 heh, cool Jul 12 20:51:48 KNY: sorry for n00b questions. this is stuff I'm up for putting some work into, but I'm just getting started falling off the fence from user to developer wrt to Android Jul 12 20:52:04 KNY: Is there a good mailing list where low-level OS-type Android work is being done? Jul 12 20:54:57 android-platform google group Jul 12 21:03:06 KNY: thanks again KNY Jul 12 21:10:12 i have a textview below a ListView but it's not showing up. If i move my TextView (in the xml file) above the listview it's showing just fine. Anyone got an idea why it isn't showing? Jul 12 21:14:38 is your listview set to fill parent in height? Jul 12 21:17:06 yes Jul 12 21:17:47 so i should probably set it to wrap_content instead :) Jul 12 21:17:52 thanks Jul 12 21:18:35 is there a way to position a textview in the bottom of the screen? kind of like a statusbar which is always showing, no matter how long a listview is Jul 12 21:37:35 <__avatar> terros: what type of Layout are you using? LinearLayout? Jul 12 21:37:42 yes Jul 12 21:39:44 <__avatar> look into using layout weights, e.g., layout_height="fill_parent" and layout_weight="1.0" for the ListView. i think that'll give you the result you're looking for Jul 12 21:45:30 hi everybody, is there a set of instructions on how to easily upgrade from SDK 1.0 to SDK 1.5 on eclipse? Jul 12 21:51:25 oh nvmd found it: http://developer.android.com/sdk/1.5_r2/upgrading.html Jul 12 22:22:36 the ListView sets a shadow on the top and/or bottom of the scrollinglist if there are more items. Is it possible to remove this? Jul 12 22:24:54 found it:) Jul 12 22:24:58 fadingEdge property Jul 12 22:25:00 :) Jul 12 22:34:39 hi guys - why when i try the voice recognization api example does it say recognizer not present Jul 12 22:35:54 how do you disable IME for an EditText or the whole activity? Jul 12 22:38:54 hi guys - why when i try the voice recognization api example does it say recognizer not present Jul 12 22:40:47 .. Jul 12 22:50:05 hi guys - why when i try the voice recognization api example does it say recognizer not present Jul 12 22:55:35 hi guys - why when i try the voice recognization api example does it say recognizer not present Jul 12 22:56:50 perhaps the regognizer isn't present Jul 12 22:57:25 it only comes in roms w/ google's apis in them afaik Jul 12 22:57:51 wtf is that about..... Jul 12 22:58:05 hmmm Jul 12 22:58:12 am gona have to do something different then Jul 12 23:19:28 I'm trying to create some tests for a package. I followed this guide: com.example.performalong but I'm still getting the "ERROR: Application does not specify a android.test.InstrumentationTestRunner instrumentation or does not declare uses-library android.test.runner" error. Do I need to set something in Eclipse? What do I need to do to do "Run as AndroidJUnit test?" Jul 12 23:24:08 Anyone working on getting aircrack working in android? Jul 13 00:16:28 Anyone know how to run the framework unit tests? Still digging.. Jul 13 00:17:42 hm, I guess it's just make AndroidTests snod or something Jul 13 00:29:01 Hi, I'm developing on g1 with Eclipse. Every time I need to test my app on the device, it install itself on the phone own memory and not in the sdcard. Someone knows how to install apps directly in the sdcard? it there an option somewhere? Jul 13 00:30:10 salentinux: You can't install apps to the SD card with stock firmware Jul 13 00:32:34 tnks kRut0n, so apps can be only installed on the device own phone. I don't know it Jul 13 00:32:54 sorry.. phone=memory Jul 13 00:46:19 ミ★ The More You Know! Jul 13 01:15:17 I wrote an application to automatically generate a .csv file on the phone. Where are files created, by default? Jul 13 01:15:33 I dont seem to ahve permission to look anywhere on the phone where the files might be, using adb shell Jul 13 01:18:27 it depends Jul 13 01:18:30 how did you create the file? Jul 13 01:18:37 it's likely you created it in /data Jul 13 01:18:43 which is not where you want to put files your app exports Jul 13 01:18:49 use the SD card for that Jul 13 01:19:16 (see Environment.getExternalStorageDirectory() http://d.android.com/reference/android/os/Environment.html#getExternalStorageDirectory()) Jul 13 01:21:01 ah OK Jul 13 01:21:35 yes, in the emulator it's on data Jul 13 01:21:45 clearly not useful now that im dev on actual G1 Jul 13 01:33:01 like I said Jul 13 01:33:04 don't export files in /data Jul 13 01:33:07 that's not what it's for Jul 13 01:42:18 so if I create a file like so: File file1 = new File(Environment.getExternalStorageDirectory(), "file.csv"); Jul 13 01:42:26 then write to it...it should appear in SD directory? Jul 13 01:42:58 that's correct Jul 13 01:43:35 hmmm no luck Jul 13 01:44:18 no file there Jul 13 02:06:19 hey Jul 13 02:06:36 can someone tell me how to add to add a non activity to a tab Jul 13 02:10:49 jasongornall: just add as children of the tabhost inside the framelayout portion Jul 13 02:10:57 and then use the setContent methods of TabSpec which makes sense Jul 13 02:12:31 Jul 13 02:12:31 Jul 13 02:12:31 Jul 13 02:12:31 Jul 13 02:12:32 Jul 13 02:12:32 Jul 13 02:12:36 I could add something like that Jul 13 02:12:43 and just use setContent? Jul 13 02:15:18 07-12 22:14:16.519: ERROR/AndroidRuntime(838): java.lang.RuntimeException: Unable to start activity ComponentInfo{com.kroz.tag/com.kroz.tag.AppMain}: android.view.InflateException: Binary XML file line #13: Error inflating class DefaultHandler Jul 13 02:19:28 holy crap, someone needs to make an app that causes your phone to beep when a connection break. I hate talking into a dropped call. Jul 13 02:28:36 jasongornall: i dont think you understand the manifest format. Jul 13 02:29:05 more than likely I am new to android dev Jul 13 02:32:56 how do I write a file to internal storage (no SD card in phone)? Jul 13 02:52:07 ugh, simply cannot write to SD card. I see an option about "use as USB disk" discussed in forums...but not seeing that **** ENDING LOGGING AT Mon Jul 13 02:59:57 2009