android-intent

Screen Recorder in Android Programmactically, not Screen shots

老子叫甜甜 提交于 2019-12-23 00:49:24
问题 I want to make the app like "EASY screen recorder". From where I have to start because I search a lot but not any link i have found to getting start. There is any api that is used to create the screen recorder not screen shots. I do not want to create video from screen shots using javacv. I just want user start the application and and click on start recording button and what ever user did on the mobile record these. 1) Is there any api for this in android. 2) How I can create the screen

How should I programmatically open the Flight Mode setting page on Samsung devices?

我只是一个虾纸丫 提交于 2019-12-22 23:40:09
问题 I am opening the Flight Mode setting page with below code. startActivity(new Intent(Settings.ACTION_AIRPLANE_MODE_SETTINGS)); It is working fine on the most of the devices. But on Samsung model = GT-19300 it throws an exception: ActivityNot Found Exception.No Activity found to handle intent {android.Settings.ACTION_AIRPLANE_MODE_SETTINGS} What is the Intent string to open Flight Mode settings on Samsung devices? 回答1: if (android.os.Build.VERSION.SDK_INT < 17){ try{ Intent intentAirplaneMode =

How to deeplink to product page for Amazon Shopping app in Android?

巧了我就是萌 提交于 2019-12-22 18:56:09
问题 Using Intents/Activities, how can I programatically deeplink / launch the Amazon Shopping app to the landing page of a particular product in Android? 回答1: Can you provide more information on what you're trying to accomplish? Executing deep links will lead the user to the specific App and content which the deep link corresponds to. You can see more information in Google documentation - https://developers.google.com/app-indexing/android/app 来源: https://stackoverflow.com/questions/33577880/how

How to change 'open' in gallery intent to 'done'?

谁都会走 提交于 2019-12-22 18:42:25
问题 I am using following intent to open gallery for picking multiple images and videos: Intent intent = new Intent(); intent.setType("image/* video/*"); intent.putExtra(Intent.EXTRA_ALLOW_MULTIPLE, true); intent.setAction(Intent.ACTION_GET_CONTENT); startActivityForResult(Intent.createChooser(intent, "Select Images"), MULTIPLE_IMAGE_SELECT); When the gallery is opened it looks like In the top it says 'open' i want to change it to 'done' or 'ok', how to achieve that? Thanks. 回答1: When the gallery

Can i rederect user to Samsung app store from my android app? [duplicate]

纵然是瞬间 提交于 2019-12-22 18:33:18
问题 This question already has answers here : Does 'Samsung Apps' support a URI scheme to redirect to specific apps? (3 answers) Closed 5 years ago . In my app i have to redirect user to samsung app store like.I know how to do it for google play store the link is Intent browserIntent = new Intent("android.intent.action.VIEW", Uri.parse("https://market.android.com/details?id=com.myPackageName")); startActivity(browserIntent); So my question is how i can achieve this for samsung app store? 回答1:

Get the current page being viewed in the browser (Possible?)

时光怂恿深爱的人放手 提交于 2019-12-22 17:59:41
问题 I would like to know Is it possible for me as an android developer to know if the browser app is currently open, and if it is, what page is being viewed? (URL?) If so, how would I go about doing this? If not, I would also love to know so I wouldn't search anymore. Thanks, Omri. 回答1: Hello, I would like to know Is it possible for me as an android developer to know if the browser app is currently open, and if it is, what page is being viewed? No, that is not possible -- it would be a privacy

broadcastreceiver onReceive problem ACTION_MEDIA_BUTTON Android

大兔子大兔子 提交于 2019-12-22 17:38:28
问题 I've found a lot of pages about this in the web, but none of them helped me. I've been for hours stucked in this problem. That's why i decided to make my own question. What I want to do is an application that receives an intent of the type ACTION_MEDIA_BUTTON and the method onReceive() of the Broadcastreceiver does something. My Activity is like this: public class MusicControlActivity extends Activity { private MediaButtonIntentReceiver receiver = new MediaButtonIntentReceiver(); @Override

Intent.putExtras not consistent

血红的双手。 提交于 2019-12-22 15:39:58
问题 I have a weird situation with AlarmManager. I am scheduling an event with AlarmManager and passing in a string using intent.putExtra. The string is either silent or vibrate and when the receiver fires the phone should either turn of the ringer or set the phone to vibrate. The log statement correctly outputs the expected value each time. Intent intent; if (eventType.equals("start")) { intent = new Intent(context, SReceiver.class); } else { intent = new Intent(context, EReceiver.class); }

Intent.putExtras not consistent

丶灬走出姿态 提交于 2019-12-22 15:39:09
问题 I have a weird situation with AlarmManager. I am scheduling an event with AlarmManager and passing in a string using intent.putExtra. The string is either silent or vibrate and when the receiver fires the phone should either turn of the ringer or set the phone to vibrate. The log statement correctly outputs the expected value each time. Intent intent; if (eventType.equals("start")) { intent = new Intent(context, SReceiver.class); } else { intent = new Intent(context, EReceiver.class); }

Intent.putExtras not consistent

老子叫甜甜 提交于 2019-12-22 15:39:03
问题 I have a weird situation with AlarmManager. I am scheduling an event with AlarmManager and passing in a string using intent.putExtra. The string is either silent or vibrate and when the receiver fires the phone should either turn of the ringer or set the phone to vibrate. The log statement correctly outputs the expected value each time. Intent intent; if (eventType.equals("start")) { intent = new Intent(context, SReceiver.class); } else { intent = new Intent(context, EReceiver.class); }