草庐IT

recognizer-intent

全部标签

android - 如何为应用程序上下文启动 Intent

我发现了几乎相同的问题:HowtostartanIntentifcontextisnotActivityContextbutApplicationContext但我在使用https://stackoverflow.com/a/9238105/6593395时失败了publicvoidonReceive(Contextcontext,Intentintent){Stringaction=intent.getAction();if("android.intent.action.BOOT_COMPLETED".equals(action)){IntentapplicationIntent=n

android - 权限拒绝 : starting Intent not exported from uid

当我从我自己的应用程序打开一个已经安装在我手机中的应用程序时,我遇到了这个问题。PermissionDenial:startingIntent{act=android.intent.action.MAINcat=[android.intent.category.LAUNCHER]cmp=com.qq.reader/.widget.picbrowser.PictureActivity}fromProcessRecord{3823559b16851:com.pax.market.android.app/u0a322}(pid=16851,uid=10322)notexportedfromu

Android 指纹 api - FingerprintManager.AuthenticationCallback 未在 SCREEN_ON Intent 后调用

我正在编写一个使用nativeAndroidFingerprintAPI(在Android6.0及更高版本上)对用户进行身份验证的应用。在一种情况下-设备收到Gcm通知,如果屏幕关闭但手机未锁定-应用程序通过启动带有以下标志的activity来“唤醒”设备:WindowManager.LayoutParams.FLAG_TURN_SCREEN_ON|WindowManager.LayoutParams.FLAG_KEEP_SCREEN_ON|WindowManager.LayoutParams.FLAG_SHOW_WHEN_LOCKED然后该应用会显示一个对话框,要求用户使用他的手指进

java - 分享 Intent 需要很长时间才能出现

我正在尝试在我的应用程序中包含图像共享,一切正常,但共享选择器需要很长时间才能出现在设备上这是我正在做的:我有ImageView“items_details_image”,我想分享它的图像以便能够通过whatsapp和其他应用程序发送它voidShareImg(){try{UribmpUri=getLocalBitmapUri(items_details_image);if(bmpUri!=null){//ConstructaShareIntentwithlinktoimageIntentshareIntent=newIntent();shareIntent.setAction(Int

Android 博客应用程序,我应该使用 Sharedpreferences 还是 Intents?

我正在构建一个android应用程序,当前用户的后续页面是可点击的,我保存点击的页面ID并将其传递给打开相应的页面,打开后,用户可以查看关注者列表、页面内的帖子等。这是包含所有页面子页面的根节点(数据库Firebase结构):页面数据id1+page_id+page_name+page_posts-001-post_id-contents....userData-001-user_id-user_name....followData-001-page_id-follow_id-user_id在(followersListActivity、PostsActivity、AboutPageA

android - 如何使用 Intents 在我的应用程序中调用日历?

如何使用Intents在我的应用程序中调用Calendar? 最佳答案 您需要一个看起来像这样的Intent:IntentcalendarIntent=newIntent(Intent.ACTION_EDIT);calendarIntent.setType("vnd.android.cursor.item/event");calendarIntent.putExtra("title","Title");calendarIntent.putExtra("beginTime",startTimeMillis);calendarInten

Android:为什么 broadcastreceiver 没有收到 intent?

我有一些Activity发送给服务的Intent。所有这些都在list中注册:但只收到location_service_start和location_service_stopIntent。可能是什么原因?这是我的接收者代码:privateBroadcastReceiverLocationServiceReceiver=newBroadcastReceiver(){@OverridepublicvoidonReceive(Contextcontext,Intentintent){if(intent.getAction().equals(getString(R.string.locatio

java - 如何从 Android Intent 访问相机拍摄的全尺寸图像?

我的按钮的onclick监听器如下:button.setOnClickListener(newOnClickListener(){@OverridepublicvoidonClick(Viewv){IntentcameraIntent=newIntent(MediaStore.ACTION_IMAGE_CAPTURE);startActivityForResult(cameraIntent,CAMERA_PIC_REQUEST);}});结果处理如下:protectedvoidonActivityResult(intrequestCode,intresultCode,Intentdat

android - Facebook 没有收到来自 Intent 的消息

我已经使用了android的共享内置对话框。它获取所有正在获取ACTION_SENDIntent的应用程序。我的代码是IntentsharingIntent=newIntent(Intent.ACTION_SEND);sharingIntent.setType("text/plain");sharingIntent.putExtra(android.content.Intent.EXTRA_TEXT,sharetext);startActivity(Intent.createChooser(sharingIntent,"Share"));我正在列表中获取所有应用程序,如蓝牙、gmail

android - 通过 "onItemClick"在ListView Android item上从SQLite数据库获取数据到intent

我真的需要你的帮助。我有一个包含纬度和经度数据的数据库,这里是示例:id_____姓名_____lat_________long1_____酒店一___6.1234______-106.123452____酒店二____6.54321_____-107.234563___酒店三___7.12345_____-106.98765AndroidListView中的数据展示。我使用onItemClick,所以如果我单击ListView中的其中一项,它将转到Intent(android.content.Intent.ACTION_VIEW,Uri.parse("http://maps.goog