android-intent

How to send data to another app which is not started

江枫思渺然 提交于 2020-02-16 06:23:50
问题 I have made a app for which licence expires after 2 years. And I am making another app which I want to use for renewal of the licence of the first app. I will provide user with a key which he will enter in second app to renew the first app. For this I want to know How do I send my first app the key? 回答1: You can communicate between apps using BroadcastReceivers. Check the documentation here: http://developer.android.com/reference/android/content/BroadcastReceiver.html In the sending app:

Why does the notification not show up in API 28?

二次信任 提交于 2020-02-14 21:36:49
问题 I have looked at android documentation and I have seen all the answers in StackOverflow, however, I cannot seem to understand why the notification I am trying to show not show up. Whenever I click the button, instead of notification showing up, the app crashes, can someone please give me insight as to why this is occurring? notify_me.setOnClickListener( new View.OnClickListener() { @Override public void onClick(View v) { if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.O) {

Intent ACTION_POWER_CONNECTED not working when added inside AndroidManifest.xml [duplicate]

此生再无相见时 提交于 2020-02-08 09:38:11
问题 This question already has answers here : Android: Event ACTION_POWER_CONNECTED is not sent to my BroadcastReceiver (4 answers) Closed 4 months ago . I am adding intent filter for battery power connected and disconnected events inside my app's AndroidManifest.xml file and registering PowerConnection receiver as given in this link: https://developer.android.com/training/monitoring-device-state/battery-monitoring.html. But when I connect and disconnect my device with power source the receiver

Intent ACTION_POWER_CONNECTED not working when added inside AndroidManifest.xml [duplicate]

我的未来我决定 提交于 2020-02-08 09:37:49
问题 This question already has answers here : Android: Event ACTION_POWER_CONNECTED is not sent to my BroadcastReceiver (4 answers) Closed 4 months ago . I am adding intent filter for battery power connected and disconnected events inside my app's AndroidManifest.xml file and registering PowerConnection receiver as given in this link: https://developer.android.com/training/monitoring-device-state/battery-monitoring.html. But when I connect and disconnect my device with power source the receiver

Broadcast receiver not working when app is closed

拜拜、爱过 提交于 2020-02-08 02:30:30
问题 So I have two different apps made, one sends a broadcast and another receives it and displays a toast. However, when I close the receiver app the broadcast is no longer received by the second app even though I defined the receiver in the manifest file. The broadcast sender in the MainActivity of app1. public class MainActivity extends AppCompatActivity { @Override protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.activity_main);

Broadcast receiver not working when app is closed

孤街醉人 提交于 2020-02-08 02:30:29
问题 So I have two different apps made, one sends a broadcast and another receives it and displays a toast. However, when I close the receiver app the broadcast is no longer received by the second app even though I defined the receiver in the manifest file. The broadcast sender in the MainActivity of app1. public class MainActivity extends AppCompatActivity { @Override protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.activity_main);

Android phonegap app : unable to retrieve an image taken by the camera using my own code (not phonegap's)

醉酒当歌 提交于 2020-02-07 03:20:26
问题 Note- even though im using phonegap, the question is not about some issue in that. Hi, im developing a android app. my app is using phonegap 1.3. mi problem... Im using phonegap apis to take a picture and display it in my app. But whats happening is due to some reason the os kills my app after the camera is launched, so that after the photo is clicked, my app is relaunched and it doesnt get the info abt the taken picture. As a workaround to this problem (the problem), i designed a phonegap

Intent-Filter for content:// URI on Android 9 and higher

喜你入骨 提交于 2020-02-07 03:09:49
问题 I want to write intent-filter that will allow my app to open files with custom files exception. On Android 8 (and before) there was a possibility to do this as intent url was delivered like this (this comes from Chrome downloads screen): content://com.android.chrome.FileProvider/downloads/somefile.xyz Now, the same screen on Android 9+ delivers intent like this: content://media/external/downloads/25 Is there a possibility to detect my file extension with such intent-uri format without writing

Android app not opening from URL using intent-filter

两盒软妹~` 提交于 2020-02-06 08:31:06
问题 I am trying to open my app from a website and read some text from link. The URL will be like codespike.com/?code=xxxx . I need to read the xxx but my problem is that I am not able to open my app when this specific URL in being opened in the browser. For testing I also used a webiste bfinstafollowers.com , not working with this either. This is what I am trying. <activity android:name="com.softech.betforinstafollowers.MainActivity" android:label="@string/app_name" android:screenOrientation=

Android app not opening from URL using intent-filter

痞子三分冷 提交于 2020-02-06 08:30:46
问题 I am trying to open my app from a website and read some text from link. The URL will be like codespike.com/?code=xxxx . I need to read the xxx but my problem is that I am not able to open my app when this specific URL in being opened in the browser. For testing I also used a webiste bfinstafollowers.com , not working with this either. This is what I am trying. <activity android:name="com.softech.betforinstafollowers.MainActivity" android:label="@string/app_name" android:screenOrientation=