Tag: android-intent

Insert Contact (ContactsContract) via Intent with Image (Photo)

There is many Q&A threads, but none of them is providing real answer, or I couldn’t find it. To ensure you, I’ve searched before asking: Android: set contact photo with ContactsContract insert intent (invalid answer) Insert contact in Android with ContactsContract (accepted answer does not use Intent) Insert a new contact intent (does not touch […]

Properly tracking install referrals on Play Store

I have a simple task: I want to track the referral id of an app install and pass it to backend. What I did: I created a link with an extra parameter referrer and appended it to the invite link. When it is opened, the javascript detects if the browser is an Android mobile browser […]

Android deep linking into an app

I am trying to create a link that can be sent via email which when opened on an android device with my app installed will automatically open the correct page in my app. I have gotten this partially working in a few different ways but have found a few problems that I was wondering if […]

Creating animation for images from small to large when scrolling vertical

I am creating images in which when scrolled up, the image should get enlarged and remaining images should get smaller. Similarly when second image pushed up, it should enlarge and show. I used accordion type but nothing works. I searched but couldn’t find. In IPhone, it has features but I couldn’t find how to create […]

MediaStore.EXTRA_OUTPUT renders data null, other way to save photos?

Google offers this versatile code for taking photos via an intent: @Override public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.main); // create Intent to take a picture and return control to the calling application Intent intent = new Intent(MediaStore.ACTION_IMAGE_CAPTURE); fileUri = getOutputMediaFileUri(MEDIA_TYPE_IMAGE); // create a file to save the image intent.putExtra(MediaStore.EXTRA_OUTPUT, fileUri); // set the image […]

android: Take camera picture without “save” / “delete” confirmation

I want to display an image taken from the camera in an ImageView using Intent intent = new Intent(android.provider.MediaStore.ACTION_IMAGE_CAPTURE); This works fine so far but after the user takes the photo using the chosen camera app a dialog (probably from the app) appears asking whether to save or delete the taken picture (at least on […]

Bluetooth device discovery in Android — startDiscovery()

Goal: Build an Android app that discovers the names and addresses of BT devices within range and submits their values to a webservice. BT devices have not been previously bonded to the host device, I just want to poll everything as I walk about. What I’ve done: Pored over documentation. Implemented a local instance of […]

scheme host not working on android lollipop, click on link to open app

I am using this piece of code to launch my app from a link. <activity android:name=”com.example.myApp.myClass” android:label=”@string/app_name” > <intent-filter> <data android:host=”customHostName” android:scheme=”customScheme” /> <action android:name=”android.intent.action.VIEW” /> <category android:name=”android.intent.category.BROWSABLE” /> <category android:name=”android.intent.category.DEFAULT” /> </intent-filter> </activity> This is href link, i want to get the key in the end. customScheme://customHost/49FYTJTF00 It is working fine on all previous […]

How to use a different launcher activity in a product flavor?

I’m working on an Android library project, in the default src/main/AndroidManifest.xml, the MainActivity is the launcher activity. For the sake of something else, I created product flavors. Yes, it works perfect if I want to trigger / show different activitis inside different product flavors. However, I wanna keep the default launcher activity from src/main/ folder, […]

Get the list of apps capable of handling the SEND intent to display in a View (not a popup dialog)

I’m trying to get the list of all apps installed on a phone capable of handling the SEND intent. I am currently handling this situation by using Intent.createChooser but this is not what I am trying to achieve as I would like to be able to get access to the list of apps to display […]

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