[android-developers] Re: Recommended uses of a class extending android.app.Application

2009-09-12 Thread Gustav Mauer
I store my application config data in preferences: http://developer.android.com/guide/topics/data/data-storage.html#pref And have a singleton class to read and write (aka wrap) them. That way it is also maintained even if the application is killed. On Sep 11, 8:21 pm, Tom Gibara

[android-developers] SMS intent does not fill in number

2009-09-17 Thread Gustav Mauer
I want to send an SMS from an application, but without needing the SMS permission, using an intent. This way the user can also decide if he/ she really wants to proceed to send the SMS. The code looks as follows: Uri smsToUri = Uri.parse(smsto:123456); Intent sendIntent = new

[android-developers] Re: SMS intent does not fill in number

2009-09-17 Thread Gustav Mauer
and statements in this email are those of the author solely in their individual capacity, and do not necessarily represent those of T-Mobile USA, Inc. On Sep 17, 4:33 am, Gustav Mauer gus...@mauer.co.za wrote: I want to send an SMS from an application, but without needing the SMS permission, using

[android-developers] Click on Status bar notification switch to task in current state?

2009-08-16 Thread Gustav Mauer
My applications carries on processing when the user presses the home key, and generates status bar notifications if something happens the user requested to be notified about. If a user holds the home key and then selects the application, it is restored in its correct state with the activity

[android-developers] Re: Click on Status bar notification switch to task in current state?

2009-08-18 Thread Gustav Mauer
Marco wrote: - You may be able to do what you want by having the notification start a - 'dummy' activity, which in turn brings your real activity to the - front. Marco, do you maybe please have sample code or something that show how one can restore a task like that, hopefully keeping the

[android-developers] Re: Click on Status bar notification switch to task in current state?

2009-08-18 Thread Gustav Mauer
I have changed the intent to be as you have suggested, if I understand correctly. I have also tried with and without singleTask in the manifest for the launcher activity. With singleTask works a bit better, but control still goes back to the AppStart activity when clicking the notification, even

[android-developers] Re: code for simple client server http communication

2009-08-29 Thread Gustav Mauer
Search the internet for the following string: android HttpClient httpclient = new DefaultHttpClient(); This should give you a lot of examples. On Aug 29, 7:00 am, ragavendran s sraghav.ra...@gmail.com wrote: I am new to android development can u give anybody .code for simple client server

[android-developers] Re: Automatic launch of Virtual Keypad in first screen(launcher) of application

2009-08-29 Thread Gustav Mauer
What I did in the same situation was make one of the images in the screen focusable (a property in the layout) and then when creating the view in onCreate after the setContentView() call, called code like this: displayIcon = (ImageView)findViewById(R.id.your_image_widget);