Category "android-intent"

Howto getExtras from a local broadcast Intent in react-native

in my React-Native opened project, I want to receive the data (extra text) sent by another local service app named "scanservice" on its intent output (broadcast

Passing ArrayList of JsonObjects through intents [duplicate]

How do I pass ArrayList of JSONObjects from RecyclerView's viewholder to another activity through intents?

How i can get Uri from intent?

I did @Override public void onClick(View v) { switch (v.getId()){ //если выбрали

Android Studio mailto Intent doesn't show subject and mail body

I'm trying to send an e-mail from my Android App. With the click on a button, gmail should open and show a new email with my previously defined recipient, subje

show pdf file inside android app from server url without give the permission download that file

show PDF file inside the android app from the server URL without give permission to download that file. how it can do in the android app. I have tried using web

How to open and check whether Play Protect is enabled or disabled

minSdkVersion 18 targetSdkVersion 27 Using below code, I can able to open the Google Settings page. private static final String GOOGLE_SETTINGS_COMPO

Android: How to hide or close topmost activity?

In my app, I need to start the built-in camera application using the action INTENT_ACTION_STILL_IMAGE_CAMERA. The reason of this action is that in this case, I

Duplicate Classes to handle app flow (with explicit intents)

I have three different options in my app that allow the user through several of the same classes but at different times, ie 1) Sharing with friend: MainClass

intent.putExtra() in pending intent not working

I am passing a pending intent through alarmreceiver, from a service class. But, after the pendingIntent fires, the intent.putExtra() information is not being re

How to detect change in time each second in Android?

I am creating a custom watch face for android by following this tutorial. I have implemented broadcast receiver to detect change in time as follows: Inside my

Android - Already have a pending vsync event

I have three services. MorningNotification, DinnerNotification, EveningNotification And I have this code to init them: morning_notification = new Intent();

android remove data from getintent

I have an activity for handling deeplink which is a browsable activity suppose user clicks a link on another app and my browsable activity handles that intent

android - broadcast receiver - caller verification

I am writing an Android application wherein I need to receive some broadcasts sent by the system. I want to make sure the broadcasts are indeed sent by the syst

how to call the start activity from one java class

Is it possible to start an Activty using an Intent in a general java class which extends Activity? import android.os.Bundle; import android.view.View; impor

Attaching cache file to GMail through FileProvider and Intent not working

So I've been banging my head against the wall for the past day trying to figure out why a file won't attach to an email. Every time the app runs, I get a little

How i can make Flutter application start when it receives background firebase message even if the screen is locked i want my app to start

I tried this code but it didn't works: package com.example.flutter_telegram import android.os.Bundle import io.flutter.app.FlutterActivity import io.flutter.pl

In Activity.onCreate(), why does Intent.getExtras() sometimes return null?

This was probably a false alarm, see my own answer. Original question below: An activity has a button that takes the user to another activity. To launch the ne

PendingIntent does not send Intent extras

My MainActicity starts RefreshService with a Intent which has a boolean extra called isNextWeek. My RefreshService makes a Notification which starts my MainAc

Highlighting a menu item in system settings

Trying to bring up an unaswered question I found here - How to highlight android setting app menu item? As seen in this video https://www.youtube.com/watch?v=eH

Listen to incoming Whatsapp messages/notifications

I'm working on a notification based app, for which I need to listen to incoming notifications. I've been able to listen to incoming calls, SMS, mail etc. I have