Apk работает, если установлен sd, и не работает, если установлен Google Play - PullRequest
0 голосов
/ 26 марта 2019

У меня есть веб-приложение apk (SdkVersion 26), созданное с помощью Android Studio, которое я опубликовала в Google Play.Если я устанавливаю apk из локальной памяти sd телефона, все работает хорошо.Если я устанавливаю apk из Google play, контроллер видеопроигрывателя не работает, видео запускается без звука, но блокируется при включении звука.Я не очень опытен в разработке приложений для Android.

AndroidManifest.xml

<?xml version="1.0" encoding="utf-8"?>
  <manifest xmlns:android="http://schemas.android.com/apk/res/android"
      xmlns:tools="http://schemas.android.com/tools"
      package="com.sngine.webview"
      android:installLocation="auto">

      <supports-screens
          android:anyDensity="true"
          android:resizeable="true"
          android:smallScreens="true"
          android:largeScreens="true"
          android:normalScreens="true"
          android:xlargeScreens="true" />
      <!--
          Remove permissions that your app doesn't require, asking for authority over unwanted information can cause damage to your reputation among your users
      -->
      <uses-permission android:name="android.permission.INTERNET" />
      <uses-permission android:name="android.permission.ACCESS_NETWORK_STATE" />
      <uses-permission android:name="android.permission.ACCESS_WIFI_STATE" />
      <uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE"/>
    <uses-permission android:name="android.permission.CAMERA"/>
      <uses-permission android:name="android.permission.ACCESS_FINE_LOCATION" />
      <uses-permission android:name="android.permission.VIBRATE" />

      <!-- remove location.gps feature if not using permission ACCESS_FINE_LOCATION -->
      <uses-feature android:name="android.hardware.location.gps" />
      <uses-feature android:name="android.hardware.touchscreen" android:required="false" />

      <application
          android:allowBackup="true"
          android:icon="@mipmap/ic_launcher"
          android:label="@string/app_name"
          android:supportsRtl="true"
          android:theme="@style/SplashTheme"
          tools:ignore="AllowBackup">
          <activity
              android:name="com.sngine.webview.SplashScreen"
              android:launchMode="singleTask"
              android:label="@string/app_name"
              android:screenOrientation="portrait" >
              <intent-filter>
                  <action android:name="android.intent.action.MAIN" />
                  <category android:name="android.intent.category.LAUNCHER" />
              </intent-filter>
          </activity>
          <activity
              android:name="com.sngine.webview.MainActivity"
              android:screenOrientation="portrait" > <!-- remove or alter as your apps requirement -->
              <intent-filter android:label="@string/app_name">
                  <action android:name="android.intent.action.VIEW" />
                  <category android:name="android.intent.category.DEFAULT" />
                  <category android:name="android.intent.category.BROWSABLE" />
                  <data android:scheme="https"
                      android:host="sportwii.com"
                      android:pathPrefix="/" /> <!-- if you want only a specific directory from your website to be opened in the app through external links -->
              </intent-filter>
          </activity>
          <meta-data
              android:name="com.google.android.gms.version"
              android:value="9452000" />
      </application>
  </manifest>
Добро пожаловать на сайт PullRequest, где вы можете задавать вопросы и получать ответы от других членов сообщества.
...