[android-beginners] beginner question.

2008-12-03 Thread Honest
I am just learning android. I was reading API documentation. I found the following line of code which i cannot understand so can some one explain me what is wrong in it ? String path = intent.getStringExtra(com.example.android.apis.Path); Can some one tell me what this method getStringExtra()

[android-beginners] Permission problem in location base application

2009-01-02 Thread Honest
I have created one simple application which uses location api. I used LocationManager and LocationListener. When i run my application. I got exception and go the screen that Unexpected Exception. After that i openend logcat so and i found RunTime Exception. I created the object of

[android-beginners] Playing Sound

2009-01-06 Thread Honest
I am learning API related to sound playing. I was understanding code for it. The code is as below. private void playAudio(Integer media) { try { switch (media) { case LOCAL_AUDIO: /** * TODO: Set the path variable to a

[android-beginners] Problem in Playing sound

2009-01-06 Thread Honest
I am playing sound by putting one folder which contains sound file. The coding is as below to play file. mMediaPlayer = MediaPlayer.create(this, R.raw.test_cbr); mMediaPlayer.start(); Test_cbr.mp3 is a file which i put in RAW folder which is available in RES folder. But when i am

[android-beginners] problem in receiving sms.

2009-01-08 Thread Honest
I have created one main class which extends activity. Another class which extends BroadcastReceiver. The code of it is as below. import android.app.NotificationManager; import android.content.*; import android.app.Notification; import android.widget.*; public class AlarmReceiver extends