[android-developers] Android Back Button

2008-04-25 Thread tenacious
How does the default browser that comes with the emulator capture the back button - and how does it capture the back button being held-down which displays the carousel view? --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Gro

[android-developers] DateInputMethod

2008-04-25 Thread shaimailit
Hi, Does DateInputMethod work correctly? I have set the xml attribute "android:inputMethod="android.text.method.DateInputMethod"". It does enable input of only specific characters (numeric and some special chars), but it does not check that the entire input is valid (as date). Best regards, Shai

[android-developers] Re: Setting EditText and Spinner at the same height level...

2008-04-25 Thread kingkung
Thank you for the response. I guess I'll just have to wait... On Apr 25, 4:58 pm, "Romain Guy" <[EMAIL PROTECTED]> wrote: > This is because, by default, TableRow aligns widgets on their text > baseline. It is more important to have the texts aligned than the > actual object boundaries. However,

[android-developers] Re: Setting EditText and Spinner at the same height level...

2008-04-25 Thread Romain Guy
This is because, by default, TableRow aligns widgets on their text baseline. It is more important to have the texts aligned than the actual object boundaries. However, next SDKs have a different Spinner with the same height as EditText. On Fri, Apr 25, 2008 at 4:11 PM, kingkung <[EMAIL PROTECTED]

[android-developers] Re: Setting EditText and Spinner at the same height level...

2008-04-25 Thread kingkung
"keep the Spinner at the same height as the Spinner... " keep the EditText at the same height as the Spinner is what I mean... On Apr 25, 4:11 pm, kingkung <[EMAIL PROTECTED]> wrote: > I have a table layout and I'm programatically adding an EditText > object and a Spinner on one table row. Simpl

[android-developers] Setting EditText and Spinner at the same height level...

2008-04-25 Thread kingkung
I have a table layout and I'm programatically adding an EditText object and a Spinner on one table row. Simple enough, right? You'd think, since it's a TableROW, that the two objects would be level. Instead, the Spinner is always slightly below the EditText object. Is there a good way to fix this

[android-developers] Mobile Special Report

2008-04-25 Thread cirion
Hi, Please forgive a brief plug: I've written a short article at DevX on Android development. It walks through a basic application that shows how to accomplish several tasks, such as taking a picture, saving it to disk, managing a database, and uploading data to the network. It may be too simpl

[android-developers] Re: Serial Port Programming

2008-04-25 Thread johnstosh
>A number of years ago I used an open source Java >library for similar work but was unable to locate the project when I last You might be thinking of RXTX. I've been using RXTX with Java on windows. It has a little trouble with USB serial ports because they are removable. Here are some bookmarks;

[android-developers] Android and Web Services

2008-04-25 Thread joesonic
Hello, Is it possible to use SOAP WebServices in Android in a simple way. As an example an ordinary java snippet for webservices is given. import org.apache.axis.client.Call; import org.apache.axis.client.Service; import javax.xml.namespace.QName; import java.net.*; public class Test {

[android-developers] Re: ListActivity SelectedItem

2008-04-25 Thread Jason von Nieda
You can always get the currently selected item in the ListActivity with ListActivity.getSelectedItemPosition(). While preparing your options menu you could check the currently selected item and modify your menu as needed. On Apr 24, 5:17 pm, shaimailit <[EMAIL PROTECTED]> wrote: > Hi, > I guess i

[android-developers] how to access mobile web app on local network

2008-04-25 Thread WRM
In Android Emulator, when I try to type in the http path to the mobile web app I am developing on our INTRAnet here at work, I receive the following error: Network Error Unknown host. Question: How do configure Android Emulator so that I can view the mobile web app I am developing? --~--~--

[android-developers] Re: Task Manager in Android

2008-04-25 Thread hackbod
On Apr 25, 1:04 am, AndreySerj <[EMAIL PROTECTED]> wrote: > Thanks for your reply. > I should specify my needs: I want to monitor exactly any running > android-applications (installed .apks,  not -tasks-) from my own > application so that one can hold and represent such information about > theirs

[android-developers] Re: The entire lifetime of an activity and static variables

2008-04-25 Thread hackbod
The application lifecycle is covered here: http://code.google.com/android/intro/lifecycle.html It has also been discussed extensively on this group, this is probably one of the more comprehensive threads: http://groups.google.com/group/android-developers/browse_thread/thread/502fe58d8ed44102/ed

[android-developers] Re: The entire lifetime of an activity and static variables

2008-04-25 Thread vol
If you look in DDMS, the resources are kept in memory even after onDestroy has been called. This is, as far as I can tell, for faster startup times. I too would like further information on this. So far I haven't gotten any good answers. I am hoping that we will not have to explicitly initialize e

[android-developers] Re: Error no space left on device

2008-04-25 Thread vol
Your device is probably out of space. If you start the emulator with the -wipe-data argument, it will wipe all user data from the device before starting. Please note that certain activities such as creating MediaPlayer resources via MediaPlayer.create and then failing to release them may cause thi

[android-developers] Re: How android can i work with MAP in android

2008-04-25 Thread vol
You'll need to create an overlay ( http://code.google.com/android/reference/com/google/android/maps/Overlay.html ) and display any points you wish to display on that. Then, in your MapView ( http://code.google.com/android/reference/com/google/android/maps/MapView.html ) use the OverlayController

[android-developers] Re: failure to import java.rmi.RemoteException

2008-04-25 Thread vol
Android does not utilize the entirety of the J2SE API. Remember, it's designed for mobile devices which are resource limited, so they have to choose what they put in. See the complete list of public packages here http://code.google.com/android/reference/packages.html See the complete list of pub

[android-developers] Re: Do we have any functionalities in Android to intercept calls and SMS

2008-04-25 Thread David Welton
> Dear Friends, >Do we have any functionalities in Android to intercept calls and > SMS. This program can be running in the background which will get the > notification in case of any incoming/outgoing SMS or Call. You can get notified of the phone state: http://groups.google.com/group/an

[android-developers] Re: How to draw Bitmap outside of onDraw()

2008-04-25 Thread vol
The canvas passed in onDraw is used for drawing to the screen, so you shouldn't store it. You can create your own canvas from your own Bitmap outside of onDraw easily. private Bitmap mBitmap; private Canvas mCanvas; private Paint mPaint = new Paint(); private void createSurface() { Bitmap bmp

[android-developers] Re: failure to connect to database

2008-04-25 Thread Charlie Collins
Actually, same deal there, you shouldn't really be trying to use a SOAP webservice (which I assume is what you mean, since you are talking about RemoteException?) from a small embedded device either. The reason "why is this" is that Android has a limited API, which is designed for it's limited env

[android-developers] How to draw Bitmap outside of onDraw()

2008-04-25 Thread battlecry
Hi I want use canvas outside of the onDraw() method, I code this way: Canvas mCanvas; protected void onDraw(Canvas canvas) { mCanvas = canvas; } private void drawSth(){ mCanvas.drawRect(0,0,100,100,mPaint); } but it seems useless, please tell me how to draw sth outside of onDraw()

[android-developers] Do we have any functionalities in Android to intercept calls and SMS

2008-04-25 Thread Naveen Garg
Dear Friends, Do we have any functionalities in Android to intercept calls and SMS. This program can be running in the background which will get the notification in case of any incoming/outgoing SMS or Call. --~--~-~--~~~---~--~~ You received this message because

[android-developers] How android can i work with MAP in android

2008-04-25 Thread super
Now i just start my project in the objective to view the map of my country on phone by using android programming. Now i can only view map only, but it still have other problem that i have to complete, Can android program work with KML file? or how can I add any placemarks on map? Best regard --

[android-developers] Re: How to Create a new Content Providers on Android Platform

2008-04-25 Thread Naveen Garg
thanks dude!! On Apr 24, 5:08 pm, Charlie Collins <[EMAIL PROTECTED]> wrote: > As Heilko states, the NotePad example (samples/NotePad) has a > provider. > > The WikiNotes example app Dick Wall of Google wrote has a > ContentProvider (yes, "the" Dick Wall for the inside joke > people):http://andr

[android-developers] Re: How to Create a new Content Providers on Android Platform

2008-04-25 Thread Naveen Garg
many many thanks... On Apr 24, 4:02 pm, Hielko <[EMAIL PROTECTED]> wrote: > See the noteslist example in the sdk > > On Apr 24, 6:42 am, Naveen Garg <[EMAIL PROTECTED]> wrote: > > > > > I am trying to create a new content provider in android but have not > > seen any sample code on the net so far

[android-developers] Re: Task Manager in Android

2008-04-25 Thread AndreySerj
Hi hackbod, > You use Context.getSystemService() to retrieve it: > > http://code.google.com/android/reference/android/content/Context.html...) > > Note the information here is about -tasks-, which do not necessarily > map directly to processes or installed .apks, but are generally what > the user

[android-developers] Re: i try to catch an exeption in a thread but although it does throws the exeption the catch i planted did not cought it, why is that?

2008-04-25 Thread hackbod
That doesn't look like an exception being thrown, it looks like the system reporting that your application is not responding. In other words, you are doing networking stuff from the main application thread, it is blocking on the network call, this causes your applications UI to become unresponsiv

[android-developers] Re: Task Manager in Android

2008-04-25 Thread hackbod
You use Context.getSystemService() to retrieve it: http://code.google.com/android/reference/android/content/Context.html#getSystemService(java.lang.String) Note the information here is about -tasks-, which do not necessarily map directly to processes or installed .apks, but are generally what th

[android-developers] Re: Task Manager in Android

2008-04-25 Thread AndreySerj
> Um, please don't use private APIs like IActivityManager. :) The > public API for this is on android.app.ActivityManager. Hello hackbod, I would like to find out how to get an instance of android.app.ActivityManager from my code ? PS: Could I clarify from my application how many another applic