Tag: android-intent

Android: Open file with intent chooser from URI obtained by Storage Access Framework

In the beginning the user can select files with the new Storage Access Framework (Assuming the app is API>19): https://developer.android.com/guide/topics/providers/document-provider.html Then I save references to those chosen files by saving the URI`s which looks like: content://com.android.providers.downloads.documments/document/745 (in this case the file is from the default downloads dir`). Later, I want let the user to open […]

How to reduce the size of camera picture while saving, using the camera action intent?

How to reduce the size of camera picture while saving, using the camera action intent. I was trying to use MediaStore.EXTRA_SIZE_LIMIT in putExtra of the camera action as below : Intent captureintent = new Intent(android.provider.MediaStore.ACTION_IMAGE_CAPTURE); captureintent.putExtra(MediaStore.EXTRA_OUTPUT, outputFileUri); captureintent.putExtra(MediaStore.EXTRA_VIDEO_QUALITY, 0); captureintent.putExtra(MediaStore.EXTRA_SCREEN_ORIENTATION, 0); captureintent.putExtra(MediaStore.EXTRA_SIZE_LIMIT, The Value to be Kept); But this doesn’t seem to work. What is […]

USER_PRESENT Intent for GO Locker

My app listens for the USER_PRESENT intent. However, custom lock-screen-replacements, such as WidgetLocker and GO Locker don’t/can’t send this protected broadcast. WidgetLocker provides a workaround to this by broadcasting its own custom intents (e.g. com.teslacoilsw.widgetlocker.intent.UNLOCKED, see here). Does GO Locker provide similar intents? I wasn’t able to find any information on this.

Error ERROR_RECOGNIZER_BUSY with offline speech recognition

I have made research on google offline speech recognition. but it works fine in google nexus 5(OS:-4.4) but same build if I implement in Samsung galaxy s5(OS:-5.0) it is not recognizing and it is showing this error: 8- ERROR_RECOGNIZER_BUSY. Below is my code. By keeping this link as reference I have made a changes http://www.truiton.com/2014/06/android–speech-recognition-without-dialog-custom-activity/ […]

Further explanation about IntentService

I was trying to get the purpose of the IntentService, and when should I use it? I tried to understand from the API, but not enough details on that one. Is there any analogy between this and running long-task on a working thread? Any further explanation and samples on why I would use IntentService would […]

MediaButtonIntentReceiver not working in Android 4.0+

The goal is to intercept broadcasts from the headset, as well as bluetooth eventually, to respond to different types of clicks from the headset to alter the mediaplayer. This solution works fine for all versions prior to ICS. Here is some of the code and things I have tried: …. private BroadcastReceiver mediaButtonReceiver = new […]

passing intent extra to android broadcast receiver

I have created a AlarmReceiver class which is used as broadcast receiver for alarm. The issue is that I need to send some values from the class which is setting the alarm to the broadcast receiver class. setAlarmManager.java Intent i = new Intent(mContext, AlarmReceiver.class); i.putExtra(KEY_ROWID, (long)taskId); PendingIntent pi = PendingIntent.getBroadcast(mContext,taskId_int,i,PendingIntent.FLAG_ONE_SHOT); mAlarmManager.set(AlarmManager.RTC_WAKEUP, when.getTimeInMillis(), pi); I need […]

What Intents does the Facebook Android app support

As far as I know, the Facebook app for android only supports a basic intent. Does anyone know of an authoritative list of intents for facebook? It would be nice if you could just have a like intent.

How to pass an object to another activity?

This question already has an answer here: How to send an object from one Android Activity to another using Intents? 31 answers

Open android application from a web page

I know that for opening android application from a link inside a web page we have to write the following in the AndroidManifest.xml: <intent-filter> <action android:name=”android.intent.action.VIEW”/> <category android:name=”android.intent.category.DEFAULT” /> <category android:name=”android.intent.category.BROWSABLE” /> <data android:scheme=”my_scheme” android:host=”my_host” /> </intent-filter> The problem is that I wrote it in the following way: <intent-filter> <action android:name=”my_action”/> <category android:name=”android.intent.category.DEFAULT” /> <category […]

Android Babe is a Google Android Fan, All about Android Phones, Android Wear, Android Dev and Android Games Apps and so on.