I tried signing the application and tried just debugging it. I have the Galaxy nexus. i have been able to run on the device before but now when I compile and build it shows up on the device but when i try and run it it tells me the application is not installed. I have tried to reinstall it too!
thanks
You need to add Internet permission for the app you're installing, in its manifest file, by adding the following line to the manifest file:
<uses-permission android:name="android.permission.INTERNET" />
Do this before the <application ...> tag
Related
In my Flutter application I need to use microphone. As I test application in emulator in myproject/android/app/src/debug/AndroidManifest.xml I have:
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="temp.myproject.myproject">
<uses-permission android:name="android.permission.INTERNET"/>
<uses-permission android:name="android.permission.RECORD_AUDIO"/>
</manifest>
However, my application still doesn't have permission to use microphone. So, I need to use permission_handler library to make it work:
Map<Permission, PermissionStatus> statuses = await [Permission.microphone].request();
I thought that adding uses-permission.. in AndroidManifest is enough, but it doesn't work without permission_handler. Could anyone explain why, or what I do/understand wrong.
You can uninstall the app and install it again on your physical or emulator device, in order make sure that the app is running from fresh install, and to make sure that the AndroidManifest is re-register into the device
Cordova app after installing warns me about MMS Sending.
Appears only on Xiaomi RedMi Note3 (MIUI)
screenshot
you can add and remove any permission
navigate to <project directory>/platforms/Android/ and open AndroidManifest.xml
you will all see permissions at last like following
...other permissions....
<uses-permission android:name="android.permission.RECEIVE_MMS" />
<uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE" />
...other permissions....
remove the line the line with MMS's permission in it.
Beware: Removing the permission added by plugin can cause app crash.
I found the SET_DEBUG_APP permission - it seems to grant permission to do exactly what I need to do at the moment - unfortunately I found no documentation on how to use it - can anybody shed some light on how to use it?
Like any other permission, add it to the AndroidManifest.xml file.
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="com.somebody.amazing_app" >
...
<uses-permission android:name="android.permission.SET_DEBUG_APP" />
...
<application
...
</application>
...
</manifest>
Most of my devices don't need this; they debug just fine without this line. But one of my devices insists--it won't start running the app in debug mode without this line.
I'm a little confused about something.
I wrote an app and tested it on an LG Ally with the following specs:
Android version: 2.2.2
Kernel version: 2.6.32.9
Build number: FRG83G
Now I'm trying to install it (via adb install AppName.apk) on an HTC with the following specs:
Android version: 2.3.3
Kernel version: 2.6.35.10-gc0a661b HTC-kernel#and 18-2#1
Build number: 4.24.651.1 CL61076
and I get an error like 'error parsing package'
Here's where I get confused. I wanted to try duplicate the problem. So I created an emulator AVD with the specs:
Android version: 4.0.3
Kernel version: 2.6.29-g46b05b2 vchtchetkine#vc-irv #28
Build number: google_sdk-eng 4.0.4 MR1 302030 test-keys
And....I am able to install my app successfully with the adb install command that will NOT install the app on the HTC.
I don't understand why I'm able to use 'adb install' to put it on the LG Ally and the emulator but I get the parse error on the HTC.
I thought I might need in the AndroidManifest but then why am I able to install on the emulator without it?
My manifest is below (I removed the activity definitions for brevity):
<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="com.mj.molepatrol"
android:versionCode="1"
android:versionName="1.0">
<application android:icon="#drawable/icon" android:label="#string/app_name">
<uses-library android:name="com.google.android.maps" />
</application>
<uses-permission
android:name="android.permission.READ_CALENDAR">
</uses-permission>
<uses-permission
android:name="android.permission.WRITE_CALENDAR">
</uses-permission>
<uses-permission
android:name="android.permission.EDIT_CALENDAR">
</uses-permission>
<uses-permission android:name="android.permission.INTERNET" />
<uses-permission android:name="android.permission.ACCESS_FINE_LOCATION" />
<uses-permission android:name="android.permission.ACCESS_COARSE_LOCATION" />
</manifest>
Try to use
<uses-sdk android:minSdkVersion="10">
It will solve your problem. Because, I read this documentation about uses-sdk,
Caution: If you do not declare this (uses-sdk android:minSdkVersion) attribute, the system assumes a default value of "1", which indicates that your application is compatible with all versions of Android. If your application is not compatible with all versions (for instance, it uses APIs introduced in API Level 3) and you have not declared the proper minSdkVersion, then when installed on a system with an API Level less than 3, the application will crash during runtime when attempting to access the unavailable APIs. For this reason, be certain to declare the appropriate API Level in the minSdkVersion attribute.
Source: Android Developers Website
The possible problem for this is that you are using a feature that is not available to the device. Such as a camera or NFC.
You have only set minSdkVersion and targetSdkVersion right?
There will be something in the manifest that the htc doesn't like, please post your AndroidManifest.xml file so we can see specifics and figure it out for you
I have developed one Android application. I have installed the .apk in Samsung Galaxy Pop. It has installed successfully but when I'm trying to open it, it gives me an error "Application is unexpectedly close". The application works fine on emulator. I don't know what is the problem. Please someone give me proper suggestions regarding it.
first of all check screen sizes in manifest..
check all permissions ur application need is added in ur manifest?
check versions supported by your application..
<uses-permission />
<permission />
<permission-tree />
<permission-group />
<instrumentation />
<uses-sdk />
<uses-configuration />
<uses-feature />
<supports-screens />
<compatible-screens />
Please, post your code here:
-> Activity launcher
-> XML's Activity launcher
-> Android Manifest
Blockquote
Check these things:
-> All of Jigar Patel wrote, and:
-> Make sure that the Launcher Activity has declared in Mainfest.
-> Check your package in Mainfest
-> Permissions
Put your error log here, because there are a lot of possibilities to solve.
Is your error about library? You have to check your build path library.
But, if your error (in a logcat) is about "NullpointerException", try to correct your code.