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
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
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
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
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()
5 matches
Mail list logo