android-intent Questions
4
I wrote a program that invokes Google Translator android application via Intent.ACTION_VIEW.
The problem is that invoking the Google Translator App does not work anymore, although it did once.
The...
Pipsissewa asked 2/10, 2013 at 8:1
8
Instead of going the regular getPackageManager().getLaunchIntentForPackage("com.example.app") way, I want to create the launch intent by myself.
Intent intent = new Intent(Intent.ACTION_MAIN);
int...
Patel asked 2/2, 2019 at 11:40
8
Solved
I'm becoming crazy figuring out what is the best way to handle screen rotation. I read hundreds of questions/answers here but I'm really confused.
How can I save myClass data before the activity i...
Uke asked 12/4, 2012 at 15:31
8
Is there a way to use intent.setType() and supply multiple broad types (like images and video)?
I am using an ACTION_GET_CONTENT. It seems to be working with just comma-separated types.
Freitag asked 8/11, 2009 at 21:52
16
I want to share Text + Image together using ACTION_SEND in android, I am using below code, I can share only Image but i can not share Text with it,
private Uri imageUri;
private Intent intent;
i...
Cordage asked 2/12, 2013 at 16:35
6
WebView in this app opens a page with upload button.
Below is the code block that allows to open a dialog box to upload image from gallery or camera.
Within my Activity I have:
private WebVie...
Oshaughnessy asked 31/3, 2013 at 2:43
6
Solved
In JAVA we can close the application. We trying to develop skills with Kotlin and feel we are using the correct syntax to close the application. The issue is that the code only works if you close t...
Underglaze asked 13/8, 2018 at 23:24
3
Solved
I'm implementing GCM. My app has two activities, say A and B. I'm using this code to launch B from the NotificationBar:
long when = System.currentTimeMillis();
NotificationManager notificationMana...
Barbra asked 30/10, 2012 at 8:56
21
I want an Intent to take control you directly to WhatsApp. So the moment the user clicks on the button, the Intent is supposed to take you to WhatsApp.
This is the code I wrote after following a fe...
Marlinmarline asked 17/7, 2016 at 14:28
4
Solved
I know
String value= value;
Intent i = new Intent(this, NextActivity.class);
i.putExtra("value",value + "");
startActivity(i)
and in NextActivity
values = getIntent().getStringExtra("value");
...
Delp asked 22/1, 2014 at 9:26
13
Solved
I followed the insttructions on https://developer.android.com/training/app-indexing/deep-linking.html, but when I want to trigger the intent through adb with:
adb shell am start
-W -a android.int...
Pyrophyllite asked 17/7, 2014 at 16:22
9
Solved
I've the same issue described here but i can't understand whats wrong.
My issue is: Unable to start service Intent { act=.connections.MoodyService } U=0: not found
EDIT
I've changed my package fr...
Impressment asked 30/9, 2013 at 23:32
7
I'm trying to play video's on Android, by launching an intent.
The code I'm using is:
tostart = new Intent(Intent.ACTION_VIEW);
tostart.setDataAndType(Uri.parse(movieurl), "video/*");
startActivit...
Theomancy asked 15/10, 2009 at 12:39
2
I need an intent to "Don't optimize" settings page of ACTION_IGNORE_BATTERY_OPTIMIZATION_SETTINGS .
But when i change it to "Don't optimize and return , The settings are not saved .
It will be sti...
Merla asked 22/4, 2019 at 12:19
10
Solved
fun launchNextScreen(context: Context, people: People): Intent {
val intent = Intent(context, NextScreenActivity::class.java)
intent.putExtra(EXTRA_PEOPLE, (Parcelable) people)
//intent.putExtra...
Neutralize asked 1/12, 2017 at 12:15
8
When ever we need to send an email in Android we will invoke registered email application using Intent.ACTION_SEND like below
Intent i = new Intent(Intent.ACTION_SEND);
startActivity(Intent.create...
Temptress asked 27/9, 2010 at 13:29
24
Solved
I asked a similar question to this earlier this week but I'm still not understanding how to get a list of all installed applications and then pick one to run.
I've tried:
Intent intent = new In...
Nicolanicolai asked 23/4, 2010 at 2:7
4
Solved
I have an text reader app that is designed to receive intent from Android system when I click on a text file to open it. But my app isn't on the list popped up by the system. Below are my codes:
M...
Olivo asked 22/6, 2012 at 8:39
2
Solved
There are a lot of questions related to back stack management, but none really satisfied me. The closer I found is that one but it looks like an ugly workaround to me.
When clicking on a button in ...
Raspings asked 15/9, 2017 at 13:58
19
I want to launch an installed package from my Android application. I assume that it is possible using intents, but I didn't find a way of doing it. Is there a link, where to find the information?
Koser asked 6/10, 2010 at 11:46
6
Solved
I have a little personal app I built which allows me to specify different browsers for different URLs. Up until Android 13, it was working fine, but at some point after Android 13 it started failin...
Vasectomy asked 26/8, 2022 at 2:49
9
Solved
I'm trying to pass a URI-Object to my Intent in order to use that URI
in another activity.
How do I pass a URI?
private Uri imageUri;
....
Intent intent = new Intent(this, GoogleActivity.class);
in...
Elenaelenchus asked 5/11, 2011 at 0:57
2
Solved
Is there any way to capture/intercept Intents of application during runtime without modifying Android framework?
Modifying Android framework might require too much work.
Please help me.
Spectrum asked 14/10, 2014 at 23:21
12
Solved
Android:
public class LocationService extends Service {
@Override
public void onStart(Intent intent, int startId) {
super.onStart(intent, startId);
startActivity(new Intent(this, activity.clas...
Logorrhea asked 31/8, 2010 at 6:44
19
Solved
I have My Layout like below:
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="fill_parent"
android:l...
Hyracoid asked 1/10, 2013 at 11:45
1 Next >
© 2022 - 2025 — McMap. All rights reserved.