Professional Documents
Culture Documents
Android Application Answers-3
Android Application Answers-3
Ans:
What are the purpose of geocoding?
What are the two types of intent?
What are the different data storage options available on the Android platform
Explain content provider in android
// Querying contacts Content Provider
Uri uri = ContactsContract.Contacts.CONTENT_URI;
String[] projection = {ContactsContract.Contacts._ID,
ContactsContract.Contacts.DISPLAY_NAME};
if (cursor != null) {
while (cursor.moveToNext()) {
String contactId =
cursor.getString(cursor.getColumnIndex(ContactsContract.Contacts._ID
));
String displayName =
cursor.getString(cursor.getColumnIndex(ContactsContract.Contacts.DIS
PLAY_NAME));
import android.content.Intent;
import android.os.Bundle;
import android.view.View;
import androidx.appcompat.app.AppCompatActivity;
findViewById(R.id.sendEmailButton).setOnClickListener(new
View.OnClickListener() {
@Override
public void onClick(View view) {
sendEmail();
}
});
}
startActivity(Intent.createChooser(emailIntent, "Choose an
Email client:"));
}
}