android-instant-apps

Instant Apps with NFC

会有一股神秘感。 提交于 2019-12-03 05:19:49
I'm trying to get an instant app to be opened via NFC. I have something like the below in my AndroidManifest.xml <intent-filter android:autoVerify="true"> <action android:name="android.intent.action.VIEW" /> <action android:name="android.nfc.action.NDEF_DISCOVERED" /> <category android:name="android.intent.category.DEFAULT" /> <category android:name="android.intent.category.BROWSABLE" /> <data android:scheme="https" /> <data android:scheme="http" /> <data android:host="example-refresh.herokuapp.com" /> </intent-filter> When going to https://example-refresh.herokuapp.com (example link obviously

Is it possible to discover and run third-party Android Instant Apps on an emulated device?

人盡茶涼 提交于 2019-12-03 02:05:53
I'm currently trying to learn about Android instant apps. Since I don't own any real devices that support them, I'm using the emulator (from Android Studio 3.0 Canary 9). I can successfully run "toy" instant apps ( like this ) on my emulated Nexus 5x (with Play Store), so I believe that my development environment is configured correctly. However, I was curious to learn about the discovery process for third-party apps, and find out what the user experience is like. Lacking a suitable device of my own, I used the emulated Chrome browser to search for sites (like Stack Exchange) that have instant

Error: style attribute '@android:attr/windowExitAnimation' not found

做~自己de王妃 提交于 2019-12-03 00:01:30
I recently upgraded to the gradle-3.0.0-alpha8 after which some styles are not resolved at compile time. Develop envirment: IDE: Android studio 3.0 Bate3 Gradle build tools : 'com.android.tools.build:gradle:3.0.0-beta3' Gradle :gradle-4.1-all.zip Error info: Error:(94, 5) style attribute '@android:attr/windowExitAnimation' not found Error:(94, 5) style attribute '@android:attr/windowEnterAnimation' not found Setting android.enableAapt2=false in gradle.properties file can solve this isuue. But, Instant App need android.enableAapt2=true. What would i do? All the problem was solved already. Cause

How can i access an activity from another feature module

假装没事ソ 提交于 2019-12-02 18:24:47
问题 I am creating an instant app, which include application module, base feature module, instant app module and an another feature module. Problem is i am not able to access the activities of application module from base-feature and feature module and same between base-feature module and feature module but i am able to access activity of base-feature module from application module. Right now i am accessing the activities using : Intent i = new Intent(this, Class.forName("com.demo.test.appmodule

Instant app crashing on adview.loadAd, SecurityException: Failed to find provider com.google.android.gsf.gservices

℡╲_俬逩灬. 提交于 2019-12-02 13:40:18
问题 I'm using play services ads 10.2.6 and it works just fine with the installed app. Here's the stacktrace: java.lang.SecurityException: Failed to find provider com.google.android.gsf.gservices for user 0; expected to find a valid ContentProvider for this authority at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2817) at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2892) at android.app.ActivityThread.-wrap11(Unknown Source:0) at android.app

How can i access an activity from another feature module

◇◆丶佛笑我妖孽 提交于 2019-12-02 09:29:41
I am creating an instant app, which include application module, base feature module, instant app module and an another feature module. Problem is i am not able to access the activities of application module from base-feature and feature module and same between base-feature module and feature module but i am able to access activity of base-feature module from application module. Right now i am accessing the activities using : Intent i = new Intent(this, Class.forName("com.demo.test.appmodule.TextActivity")); by this method studio don't show me any errors at compile time. Is there any other way

Start instant app from another installable App

僤鯓⒐⒋嵵緔 提交于 2019-12-02 08:18:08
问题 I need to start an Instant App from another installable app I own. The idea is really this, a sync app that starts other instant apps. I've already posted my instant app on google play and it's working through the tests I've done here. My deeplink configured is: https://puzzleinstantapp.firebaseapp.com/main My Assetlinks.json: https://puzzleinstantapp.firebaseapp.com/.well-known/assetlinks.json Instant app package name: com.lapic.thomas.puzzle I tried to run it as follows: Intent intent = new

Instant app crashing on adview.loadAd, SecurityException: Failed to find provider com.google.android.gsf.gservices

五迷三道 提交于 2019-12-02 05:08:05
I'm using play services ads 10.2.6 and it works just fine with the installed app. Here's the stacktrace: java.lang.SecurityException: Failed to find provider com.google.android.gsf.gservices for user 0; expected to find a valid ContentProvider for this authority at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2817) at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2892) at android.app.ActivityThread.-wrap11(Unknown Source:0) at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1593) at android.os.Handler.dispatchMessage(Handler.java:105

Start instant app from another installable App

北慕城南 提交于 2019-12-02 03:29:17
I need to start an Instant App from another installable app I own. The idea is really this, a sync app that starts other instant apps. I've already posted my instant app on google play and it's working through the tests I've done here. My deeplink configured is: https://puzzleinstantapp.firebaseapp.com/main My Assetlinks.json: https://puzzleinstantapp.firebaseapp.com/.well-known/assetlinks.json Instant app package name: com.lapic.thomas.puzzle I tried to run it as follows: Intent intent = new Intent(Intent.ACTION_VIEW, Uri.parse("https://puzzleinstantapp.firebaseapp.com/main")); intent

INVALID_ARGUMENT: Application credential header not valid. Please fix the client to pass a valid application credential header

百般思念 提交于 2019-12-02 02:07:33
问题 When attempting to run a simple Android Instant App, I receive this error in the console and the app does not open. What does this error mean and how do I pass in a valid credential header? 回答1: There's a known issue where emulators are not allowed to talk to the Instant Apps backend, resulting in this error. If you try to use the emulator to launch a published instant app, it'll fail for this reason. We've also seen it on some physical devices, but it's very inconsistent there. When running