[android-developers] trying to get phone number from BroadcastReceiver

2009-09-08 Thread gganesh
Hi, This is a simple application which sends group sms (a group consist only 5 phone numbers )and i have registered a Broadcast to announce when an sms is send .here i need to display the number to which the sms is send ,how to do that here is my code # In onCreate() button is pressed it

[android-developers] Getting selected data from spinner using getSelectedItem() results in error

2009-09-04 Thread gganesh
Hi, The spinner is binded with data's from from database using SimpleCursorAdapter and to display the selected data I used the method as below textview.setText(spinner.getSelectedItem().toString()) this gives me an out put like android.database.sqlite.sqlitecur...@437451a0 Is this the right

[android-developers] Problem with onChange of ContentObserver

2009-03-30 Thread gganesh
I have a service running, under which i have declared observer class for to notify any changes in contact list when my contact list is saved I found the onChange is executed 3 times .I could not figure out the reason. Any suggestions? where i went wrong here is my code public class

[android-developers] Problem with detecting a shake movement

2009-03-18 Thread gganesh
I use OpenIntents SensorSimulator In code i wrote public float accelerometer_shake_threshold = 1.2f; static final int ACCELEROMETER_FLOAT_TO_INT = 1024; int mACCELEROMETER_SHAKE_THRESHOLD_SQUARE; public void onSensorChanged(int sensor, float[] values){

[android-developers] Is there any Listener, Listening for violent shake to happen ?

2009-03-16 Thread gganesh
Hi, I'm using Openintents to register the shake movement. Everything is fine ,I can get the x,y z axis values after registering with SENSOR_ORIENTATION . I need to trigger a task only for a violent shake ,Is there any Listener looking for violent shake to happen .How can my application be

[android-developers] Re: Any Listener for shake movement ?

2009-03-02 Thread gganesh
at 12:56 PM, Al Sutton a...@funkyandroid.com wrote: http://www.youtube.com/watch?v=LQwUZe5Ms08 About 20 seconds in. Al. Stoyan Damov wrote: Define shake. On Mon, Mar 2, 2009 at 6:44 AM, gganesh ganesh@gmail.com wrote: hi, Is there any Listener  able to listen for shake

[android-developers] Any Listener for shake movement ?

2009-03-01 Thread gganesh
hi, Is there any Listener able to listen for shake movement . when someone shakes the phone an event should be triggered ,how I'm supposed to do that ,any idea on this topic is appreciable. Thanks ganesh --~--~-~--~~~---~--~~ You received this message because

[android-developers] Re: My Log messages fails to appear on Logcat View

2009-02-26 Thread gganesh
application once then log cat will again start displaying Logs. Thanks. Regards ~Ankit Somani 2009/2/26 gganesh ganesh@gmail.com hi friends, When i run my application i could see the log messages in Logcat View, as i was working through , all of a sudden i couldn't see log message

[android-developers] what type of functioanlities will be written in onStart method

2009-02-26 Thread gganesh
hi group, In most of the example i came across the net , didn't have much talk on onStart() method ,so let me know what kind of functionalities will be writen in this method Thanks --~--~-~--~~~---~--~~ You received this message because you are subscribed to the

[android-developers] My Log messages fails to appear on Logcat View

2009-02-25 Thread gganesh
hi friends, When i run my application i could see the log messages in Logcat View, as i was working through , all of a sudden i couldn't see log message I'm not aware what has happened ,any clue ?. Can we stop log message displaying !,suppose i may accidentally turned it off i am fresh

[android-developers] Re: Need help about Intent

2009-02-24 Thread gganesh
suggestions ? Thanks On Feb 24, 10:46 am, dillirao malipeddi dillir...@arijasoft.com wrote: you have to use Bundle your_extras = getIntent.getExtras(); String val = your_extras.getExtras(myval); On Tue, Feb 24, 2009 at 11:08 AM, gganesh ganesh@gmail.com wrote: hi friends, i

[android-developers] Re: Need help about Intent

2009-02-24 Thread gganesh
sorry, i have made a minor mistake ,the code given by me works perfectly and the val is displayed as excepted . On Feb 24, 1:42 pm, gganesh ganesh@gmail.com wrote: but the code   your_extras.getExtras(myval) ; didn't work ,i suppose there is no such method in Bundle class i tried

[android-developers] Help me solve my Ambiguity regarding Activity

2009-02-24 Thread gganesh
hi friends, What is the difference between starting an new Activity by case :1 and case: 2 case : 1 Intent i= new Intent(com.android.google.Anyname) startActivity(i); case: 2 Intent i = new Intent(this, newActivity.class); startSubActivity(i,

[android-developers] How to check which button is clicked

2009-02-23 Thread gganesh
hi friends, I have 3 buttons on the screen and i have to perform different task according to the button clicked ,how can i check which button is clicked Thanks in Advance ganesh --~--~-~--~~~---~--~~ You received this message because you are subscribed to the

[android-developers] Need help about Intent

2009-02-23 Thread gganesh
hi friends, i have two classes Screen1 and Screen2 both extends activity i have to pass data from the Screen1 to Screen 2 i wrote in onCreate method of Screen1 class t=(EditText)findViewById(R.id.ed1); b=(Button)findViewById(R.id.but1); b.setOnClickListener(new

[android-developers] how to change the background color of the layout set in the main. xml file ,at runtime

2009-02-19 Thread gganesh
hi group, I'm newbie to Android I need to change the color of my screen alternatively ,how to do that can i use setBackground(int color) to access the layout color and change it at runtime ,can any one provide me a code snippet Thanks --~--~-~--~~~---~--~~ You