[android-beginners] Programmatically Adding a LinearLayout Error

2009-07-27 Thread csyperski
I am trying to add a LinearLayout using only code to a Activity and I keep getting as error. Here is a proof of concept piece of code: ackage org.syperiorsoft; import android.app.Activity; import android.os.Bundle; import android.view.Gravity; import android.widget.ImageView; import

[android-beginners] Activity / Screen rotation relationship

2009-07-02 Thread csyperski
I have a very simple app activity within an app where there is a single Buttton and an Edit Text used for a user to enter a pin code. Here is my issue, everything works great if the app is kept in portrait mode, but if the screen is rotated to landscape mode it seems like another instance of the

[android-beginners] Soft Keyboard Question

2009-05-09 Thread csyperski
I have an app I am trying to port to 1.5, but I can't find any good example of using the soft keyboard, my app currrently has a view that uses: setOnKeyListener To listen to keyboard input from the hardware keyboard. My question is can a view still listen to key input from a softkeyboard, and

[android-beginners] Re: Problems with 1.5 SDK

2009-05-01 Thread csyperski
I am having the same issue on 64 bit Ubuntu 9.04! On Apr 27, 2:48 pm, Javi javierjc1...@gmail.com wrote: I have problems with the new sdk (1.5), A dialog show with a error a and suggest me to exit the workbench. Other dialog appear with a pingUsageServer failed: Android SDK Ping

[android-beginners] Reconnecting to a service

2009-03-08 Thread csyperski
This may be a easy question but I have a application that runs a service using: startService() The service works great but my questions is how do I reconnect to this service if I close my front end app by clicking the home button, then re launch the app? Thanks to anyone that can help.

[android-beginners] Phone Status

2009-03-08 Thread csyperski
I have a service that plays an audio file, but the problem is I need it to stop when an incoming phone call in detected, it it possible for me to do with PhoneStateListener? If so does anyone have an example of how this is done? Thanks --~--~-~--~~~---~--~~ You

[android-beginners] DB ID and adapter issue

2008-11-10 Thread csyperski
OK, I am having issues understanding how when using SQLite, how do you display user friendly text for the view's text property, but assign it a DB ID to be used internally to uniquely identify the field later? For example here is a sample from my code: