I want to pass a value from one avtivity to another activity by use intent.. Im not getting the value im getting as null.. There is no error in my logcat. Any help would appreciated. thanks in advance.
In my applicattion i need to go to de settings activity of the phone to activate GPS and want to return to my application using this code code:
Intent intent = new Intent(Settings.ACTION_LOCATION_SOURCE_SETTINGS);
startActivityForResult(intent);
but when I used it I couldn't return to my app.
what are the reasons that would affect my intent not to load the next activity i've fixed my manifest the intent is correct the button is okey and the activity is good basically i don't have any errors or i don't see any can anyone clear this things for me i need help..this is my intent if you would like to check it
final Intent intent = new Intent();
intent.setClass(MainActivity.this
I have no problem in passing data to a service using intent, extras, etc and using startService(intent)
Intent intent = new Intent();
intent.setClass(MainActivity.this, MediaPlayerService.class);
intent.setAction(MediaPlayerService.PLAY_PAUSE);
intent.putExtra("URI", URI);
intent.putExtra("TITLE", content.toString());
//PendingIntent.getService(MainActivity.this, 0, intent, 0);
startService(inte
I am passing strings as intent extras, the following method is passed parameters containing the information I wish to pass via intent, I can see that the values in "mc" and "title" are as they should be in toasts:
private void addProximityAlert(int id, Double latitude, Double longitude, String title, String mc) {
Intent intent = new Intent(PROX_ALERT_INTENT);
intent.putExtra("id
I have an Activity Class that is calling an IntentService class to do some work
Intent intent = new Intent(this, NetworkHandler.class);
PendingIntent pendingIntent = createPendingResult(1, intent, PendingIntent.FLAG_ONE_SHOT);
intent.putExtra(NetworkHandler.REFRESH_CONTENT, NetworkHandler.GRO);
intent.putExtra("pendingIntent", pendingIntent);
startService(intent);
After the IntentService is d
I think this is a basic question. Is there any option to stop an activity by using intent.
Intent intent = new Intent(Intent.ACTION_CALL,Uri.parse("tel:5554"));
startActivity(intent);
This is my code. I would like to stop this activity (That means, i want to drop this call) if the user is busy or something. What can I do for that?
I am having trouble when I try to pass a text string from within an EditText to either Facebook or Twitter via an intent.
Intent intent = new Intent(Intent.ACTION_MAIN);
intent.addCategory(Intent.CATEGORY_HOME);
intent.setFlags(Intent.FLAG_ACTIVITY_NEW_TASK);
startActivity(intent);
and use this method
moveTaskToBack(true);
I'm developing an application and at the last activity I need to exit it, I have used the above methods which exits the application the problem is it exists the ONLY the activity and the appli