I am a newbie on android. I have Created a WebView app.
When I test my application through an emulator, it works fine.
The app is also installed when I select the
Run -> Run 'app' -> and then select my connected device (Not Emulator).
But when I go to my project folder /app/build/outputs/apk/debug/xyz.apk
or under the folder /app/build/outputs/apk/release/xyz.apk
then when I select to install then I receive an error that is App is not installed.
Any suggestion where I am doing mistakes.
I also generated the signed apk through Build-> Generate signed Bundle or Apk option. But not getting any success.
Any help is really appreciated.
This is my AndroidManifest.xml file
<?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.example.test">
<uses-sdk android:minSdkVersion="21"/>
<uses-permission android:name="android.permission.ACCESS_COARSE_LOCATION" />
<uses-permission android:name="android.permission.INTERNET" />
<uses-permission android:name="android.permission.MEDIA_CONTENT_CONTROL"
tools:ignore="ProtectedPermissions" />
<uses-permission android:name="android.permission.READ_EXTERNAL_STORAGE" />
<uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE" />
<uses-permission android:name="android.permission.CAMERA" />
<uses-permission android:name="android.permission.ACCESS_NETWORK_STATE" />
<uses-feature android:name="android.hardware.camera" />
<application
android:hardwareAccelerated="true"
android:allowBackup="true"
android:icon="#mipmap/ic_launcher"
android:label="Test"
android:roundIcon="#mipmap/ic_launcher"
android:supportsRtl="true"
android:theme="#style/AppTheme"
android:name=".MyApp">
<activity android:name=".SplashActivity" android:theme="#style/SplashTheme" android:configChanges="orientation|screenSize">
<intent-filter>
<action android:name="android.intent.action.MAIN" />
<category android:name="android.intent.category.LAUNCHER" />
</intent-filter>
</activity>
<activity android:name=".MainActivity" android:configChanges="orientation|screenSize"/>
</application>
</manifest>
It is done through simplest process. Go to Build -> click on Rebuild Project.
That's it. I got this solution. And I am installing this apk to my cellphone(Real device)
Related
I just created Live TV app for Android Mobile and uploaded in googleplay. But they rejected for Violations of terms and conditions.
How can I get permission to show those channels in my app.
<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="com.techndroid.cricketlivestreaming">
<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.ACCESS_COARSE_LOCATION" />
<uses-permission android:name="android.permission.ACCESS_FINE_LOCATION" />
<uses-permission android:name="android.permission.RECEIVE_BOOT_COMPLETED" />
<uses-permission android:name="android.permission.BLUETOOTH" />
<application
android:allowBackup="true"
android:icon="#mipmap/ic_launcher"
android:label="#string/app_name"
android:supportsRtl="true"
android:theme="#style/AppTheme">
<activity android:name=".MainActivity">
<intent-filter>
<action android:name="android.intent.action.MAIN" />
<category android:name="android.intent.category.LAUNCHER" />
</intent-filter>
</activity>
<activity
android:name=".LiveStreaming"
android:screenOrientation="landscape"
android:theme="#style/Theme.AppCompat.NoActionBar" />
<activity android:name=".Ptv"
android:screenOrientation="landscape"
android:theme="#style/Theme.AppCompat.NoActionBar" >
</activity>
</application>
</manifest>
Any Help?
It seems you have not added a privacy policy.Try adding privacy policy by following steps:
1.Log into your Google Play Developer Console
2.Select All Applications.
3.Select (your) application.
4.Click Store Listing.
5.Go to the Privacy Policy field.
6.Enter the URL where you host the policy. ...
7.Click Save.
It should work
I have developed a android app with a wear app. Now I like to release the app but if I make a release mobile APK with the wear APK included the wear app won't install on the watch.
I follow this document.
https://developer.android.com/training/wearables/apps/packaging.html#PackageManually
The app was created with Eclipce.
In debug mode I can install the wear app and everything works fine.
I use the same package name.
Exported the app with the same key.
And I use real hardware to test a HTC One M7 and the samsung Gear Live.
I install the apk with the "adb install c8.apk".
This is how I release the app.
Export the wear project if a Android Application.
Use the same key alias if I use for the phone app.
rename the .apk to wearable_app.apk
Put the .apk file in the Phone project res/raw dir.
Export the phone project if a Android Application.
Use the same key alias if I use for the wear app.
Edit: Full Manifest
The Phone manifest.
<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="com.tild.c8"
android:versionCode="12"
android:versionName="1.12" >
<uses-sdk
android:minSdkVersion="18"
android:targetSdkVersion="19" />
<uses-permission android:name="android.permission.BLUETOOTH_ADMIN" />
<uses-permission android:name="android.permission.BLUETOOTH" />
<uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE" />
<uses-permission android:name="android.permission.INTERNET" />
<uses-permission android:name="android.permission.ACCESS_NETWORK_STATE" />
<uses-permission android:name="android.permission.ACCESS_NETWORK_STATE" />
<uses-permission android:name="com.google.android.providers.gsf.permission.READ_GSERVICES" />
<uses-permission android:name="android.permission.ACCESS_COARSE_LOCATION" />
<uses-permission android:name="android.permission.ACCESS_FINE_LOCATION" />
<uses-permission android:name="android.permission.BIND_NOTIFICATION_LISTENER_SERVICE" />
<uses-feature android:name="android.hardware.bluetooth_le" android:required="true"/>
<uses-feature android:name="android.hardware.type.watch" android:required="false"/>
<uses-feature android:glEsVersion="0x00020000" android:required="true" />
<application
android:allowBackup="true"
android:hardwareAccelerated="true"
android:icon="#drawable/logo"
android:label="#string/app_name"
android:theme="#style/AppTheme" >
<meta-data
android:name="com.google.android.gms.version"
android:value="#integer/google_play_services_version" />
<meta-data
android:name="com.google.android.wearable.beta.app"
android:resource="#xml/wearable_app_desc"/>
<activity
android:name=".MainActivity"
android:label="#string/app_name"
>
<intent-filter>
<action android:name="android.intent.action.MAIN" />
<category android:name="android.intent.category.LAUNCHER"
android:windowSoftInputMode="stateHidden"/>
</intent-filter>
</activity>
<service
android:name=".ComService"
android:process=":remote" >
</service>
<receiver android:name=".AlarmReceiver" >
<intent-filter>
<action android:name=".AlarmReceiver" />
</intent-filter>
</receiver>
</application>
</manifest>
The Wear manifest:
<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="com.tild.c8"
android:versionCode="1"
android:versionName="1.0" >
<uses-sdk
android:minSdkVersion="20"
android:targetSdkVersion="20" />
<uses-feature android:name="android.hardware.type.watch" />
<uses-permission android:name="android.permission.BIND_NOTIFICATION_LISTENER_SERVICE" />
<application
android:allowBackup="true"
android:icon="#drawable/logo"
android:label="#string/app_name"
android:theme="#style/AppTheme">
<meta-data
android:name="com.google.android.gms.version"
android:value="#integer/google_play_services_version" />
<activity
android:name=".MainActivity"
android:exported="true"
android:allowEmbedded="true"
android:taskAffinity=""
android:label="#string/app_name" >
<intent-filter>
<action android:name="android.intent.action.MAIN" />
<category android:name="android.intent.category.LAUNCHER" />
</intent-filter>
</activity>
<service
android:name=".WearService" >
<intent-filter>
<action android:name="com.google.android.gms.wearable.BIND_LISTENER" />
</intent-filter>
</service>
</application>
</manifest>
The Phone wearable_app_desc.xml in the res/xml dir:
<wearableApp package="com.tild.c8">
<versionCode>1</versionCode>
<versionName>1.0</versionName>
<rawParhResId>wearable_app</rawParhResId>
</wearableApp>
I have found the problems.
In the wearable_app_desc.xml rawParhResId need to be rawPathResId.
And the permision give also a problem. After I remove it the installation is successful.
I uploaded an application to Play Store which I can't install on Samsung Galaxy Tab 3. It just tells me that device is uncompatible and no reason. I've checked in Developer's Console and it is also unsupported by Galaxy Tab 3 7.0, Galaxy Tab 4 and other tablets. Here's my manifest file:
<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="***"
android:versionCode="2"
android:versionName="1.0.1" >
<uses-sdk
android:minSdkVersion="14"
android:targetSdkVersion="19" />
<uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE" />
<uses-permission android:name="android.permission.READ_EXTERNAL_STORAGE" />
<uses-permission android:name="android.permission.ACCESS_NETWORK_STATE" />
<uses-permission android:name="android.permission.ACCESS_WIFI_STATE" />
<uses-permission android:name="android.permission.INTERNET" />
<uses-permission android:name="android.permission.CAMERA" />
<uses-permission android:name="android.permission.RECORD_AUDIO" />
<application
android:name="***.App"
android:icon="#drawable/ic_launcher"
android:label="#string/app_name"
android:theme="#style/AppTheme" >
<activity
android:name="***.MainActivity"
android:label="#string/app_name" >
<intent-filter>
<action android:name="android.intent.action.MAIN" />
<category android:name="android.intent.category.LAUNCHER" />
</intent-filter>
</activity>
<activity android:name="***.DocumentInfoActivity" />
<activity android:name="***.ReaderActivity" />
<activity
android:name="***.ImageOverviewActivity"
android:theme="#style/Theme.Transparent" />
<activity
android:name="***.AccountsActivity"
android:windowSoftInputMode="stateHidden" />
<activity android:name="***.SearchHelpActivity" />
<activity
android:name="***.DeveloperSettingsActivity"
android:label="#string/preferences_title" />
</application>
</manifest>
As you can see there's nothing special which can influence on compatibility. Can there be some hidden reasons in code for example? How can I fix and test this?
I can install and run the app on SG Tab 3 avoiding Play Store.
I'm not 100% sure but it could be, that your front facing camera has no autofocus, thats why you'd have to add following in your AndroidManifest.xml:
<uses-feature android:name="android.hardware.camera.autofocus" android:required="false" />
please let me know, if this worked - cause, I'm pretty sure, that some persmissions are to restrictive
Edit:
you can test the modification, if you upload the new apk in alpha or beta mode. After some hours your test accounts will receve the update, but it's not published yet.
I have opened my app for beta testing on Google Play. I tested the app on my phone (Samsung Galaxy Y S5360) using eclipse before uploading it to Google Play. It runs smoothly from eclipse, but when I opened it as beta in Google Play and tried to download the app to my phone. It says “Your device isn't compatible with this version”.
Here is my Manifest:
<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="com.myproject.newapp"
android:versionCode="10"
android:versionName="2.0" >
<uses-sdk
android:minSdkVersion="9"
android:targetSdkVersion="19" />
<uses-permission android:name="android.permission.CAMERA" />
<uses-permission android:name="android.permission.ACCESS_NETWORK_STATE" />
<uses-permission android:name="android.permission.INTERNET" />
<uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE" />
<application
android:allowBackup="true"
android:hardwareAccelerated="true"
android:icon="#drawable/mc_logo"
android:label="#string/app_name"
android:theme="#style/Theme.Sherlock" >
<service android:name="com.myproject.newapp.QueueService" />
<activity
android:name="com.myproject.newapp.LoginActivity"
android:icon="#drawable/mc1_logo"
android:label="#string/app_name"
android:screenOrientation="portrait" >
</activity>
<activity
android:name="com.myproject.newapp.SplashScreenActivity"
android:label="#string/title_activity_splashscreen"
android:screenOrientation="portrait" >
<intent-filter>
<action android:name="android.intent.action.MAIN" />
<category android:name="android.intent.category.LAUNCHER" />
</intent-filter>
</activity>
<activity
</application>
</manifest>
As you can see I declared the minSdkVersion="9" which matches my phones android version. Im new to uploading android apps in Google Play, please help me out. Thank you very much.
In messing around, I noticed that adding a dummy API Key to a working project's AndroidManifest.xml does not affect the project. In fact, I added key "Asfasdfasdfasfa" which isn't even valid and the project continues working.
Could someone draw light on this issue? Is there caching going?
Console:
MY:SS:HA:1K:EY;com.company.myproject
MY:SS:HA:1K:EY;com.example.gmaptest
Working manifest:
<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="com.company.myproject"
android:versionCode="1"
android:versionName="1.0" >
<uses-sdk
android:minSdkVersion="11"
android:targetSdkVersion="17" />
<uses-permission android:name="android.permission.INTERNET" />
<uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE" />
<uses-permission android:name="com.google.android.providers.gsf.permission.READ_GSERVICES" />
<uses-permission android:name="android.permission.ACCESS_COARSE_LOCATION" />
<uses-permission android:name="android.permission.ACCESS_FINE_LOCATION" />
<application
android:allowBackup="true"
android:icon="#drawable/ic_launcher"
android:label="#string/app_name"
android:theme="#style/AppTheme" >
<activity
android:name="com.company.myproject.MainScreen"
android:label="#string/app_name" >
<intent-filter>
<action android:name="android.intent.action.MAIN" />
<category android:name="android.intent.category.LAUNCHER" />
</intent-filter>
</activity>
<meta-data
android:name="com.google.android.maps.v2.API_KEY"
android:value="asdfadf22" />
</application>
</manifest>
Take a look of this: Can I have a single Google Maps API key for all my apps without registering their package names?.
To create an API key, you provide some information that include the package name of the app. That means you are trying to validate one of your apps with a key created with another package name, this could be the issue.