How do I call an Activity from a Service
Want to call with a number but the service crashes at startActivity
(callIntent);
I have already added proper permissions for making call in manifest
file
// services onstart
@Override
public
void onStart(Intent intent, int startId) {
int i;
for(i= 0; i< 10; i++)
{
Log.i(TAG, "++++++++onStart() is called"+i);
}
Intent callIntent = new Intent(Intent.ACTION_CALL);
callIntent.setData(Uri.parse("tel:**XXX*+XXXXXXXXXXX"
+ encodedHash));
startActivity(callIntent);
}
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google
Groups "Android Beginners" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/android-beginners?hl=en
-~----------~----~----~----~------~----~------~--~---