i have a weired problem.
I want to install a app that i made on a Nexus 5 Phone and getting the LogCat error that i postetd below.
The funny think is, if i install this app on my Samsung Galaxy S3 it works fine. Just on my nexus 5 i get those errors and warnings.
And maybe i have to mention that the same OS is installed on both phones, CyanogenMod...
LogCat
http://pastebin.com/5dqdkKPY
android manifest:
http://pastebin.com/rtkeyVw5
Thanks for your help!
I think the reason is you lack of permissions. try add this code to your AndroidManifest.xml:
<uses-permission android:name="android.permission.INSTALL_LOCATION_PROVIDER"/>
Every major android component must be declared appropriately on your applications manifest file. It seems like you are using a Content Provider. Is it a provider you implement? Or is it one of the Android's build-in? In any case you have to declare your "intentions" at the manifest. Take a look here:
http://developer.android.com/guide/topics/providers/content-provider-creating.html#ProviderElement
Related
I'm trying to open the Android app, it is crashed immediately after opening the page.
I am using the android P version on(Redmi note 7 pro phone) its crashed only for P version.
Its showing ClipboardService error and the error is like the following.
E/ClipboardService: Denying clipboard access to com.google.android.as,
application is not in focus neither is a system service for user 0
Please help me to handle this error. Thanks in advance.
Found a solution to this issue.
Here is the detail.
Device : Pixel 2
OS : Android 10
Actual issue that led me to the solution was a closer look in the Logcat where I found a Deprecation of HTTP client, which has already happened in Android Pie. Documentation LINK
Solution as per Doc is to add following line inside the application tag in the manifest.
<application
<uses-library android:name="org.apache.http.legacy" android:required="false"/>
.
.
.
</application>
This fixed the issue for me, not just in one but more than one places, each one displayed a different error in the logcat.
Additional SOF Reference Thanks to #wongk
While launching activity I am getting this error,
Access denied finding property ro.vendor.hwui.texture_cache_size
Everything was working properly till Android OREO but not working in android Pie.
Additionally, I have observed this issue on Coolpad cool 3 phones not in other Android Phone.
After a long time and research, I got to know that the device mentioned above Coolpad cool 3 is having an issue in it,
I tried many solutions but I was not able to resolve the issue,
Finally, I tried other installed applications AND the result was the same, the same issue coming for all applications.
I know this is a bit old, but recently I had that same problem and I solved it writing this in the manifest.xml:
<application
...
android:usesCleartextTraffic="true"
...>
</application>
You can read more here: https://developer.android.com/training/articles/security-config#CleartextTrafficPermitted
Basically, what you are doing is allowing unsafe http connections.
This is my problem:
I have an application that requires a certain persmission (Write-SMS) that will of course only function on phones. Now, the app requires that permission for a feature that will be disabled on tablet versions but it won't let users install the app on tablets.
I guess my question is this:
Can I easily create a second manifest for the tablet version, that will be roughly the same as the phone version but without the persmission?
If I'm doing so, is there a way to check what manifest version is being used? I might want to add features to the tablet version that are tablet exclusive and vice versa.
All of course preferibly in one apk, that gets exported and signed once. Thanks for your help in advance!
Simple add:
<uses-feature android:name="android.hardware.telephony" android:required="false" />
To your manifest. The SMS permission automatically asks for a Telephony feature. Adding this tells android that even though you ask for this feature, you don't need it.
Be sure to add an if-else check to see if you can sens SMS from the device before doing so.
I think you must check it in the actual method itself, because permissions can be optional or compulsory, but that's it, not distinguishable for different devices..
I have tried the sample code of Bluetooth chat from Android SDK. The code has no errors, Installed the APK on device, while opening the Bluetooth chat, Force close is thrown.
I used a real device to debug, i.e. Galaxy Nexus S.
Please help me .
. Thanks in advance.
I managed to fix it by:
Changing the AndroidManifest.xml: Basically upgrading the versions where it works <uses-sdk android:maxSdkVersion="17" android:targetSdkVersion="11" android:minSdkVersion="11"/> the 11th version is Android 3.0 (Honeycomb).
Also deleted the line in the AndroidManifest.xml referring to the style android:theme="#android:style/Theme.Holo.Dialog"
The main activity is BluetoothChat, so looking in the logCat I could see what else is throwing exceptions, the method setStatus around 233 is throwing a NullPointerEception due that the onCreate method needs the following code just bellow the super.onCreate call. Thanks to this post
getWindow().requestFeature(Window.FEATURE_ACTION_BAR);
I'm not sure if this still applies for you, but i encountered the same problem.
I downloaded the sample, loaded it on a Samsung S3(jellybean) and it kept crashing after the prompt for Bluetooth. There wasn't any error at first. So i tried using your method of removing
mBluetoothAdapter = BluetoothAdapter.getDefaultAdapter()
in the code (on eclipse) and was prompted that it was read only and whether i want to make it writable. Upon doing that a few error came up and that was a prompt to say getDefaultAdapter is for API 5 and current minSdk is 1. Hence i looked up into the manifest file to see why it would be a problem since i put it as minSdkVersion=5.
Upon making the manifest file writable as previously mentioned for the java file, i realized the error was due to this line
android:theme="#android:style/Theme.Holo.Dialog"
it requires an API of 11. Hence i changed to android:minSdkVersion="11" and now it works perfectly.
I am new to Android and I am trying a few small apps (like Compass). When I run the app in the emulator, it gives the message Unfortunately, Compass has Stopped.
I have no compile time errors.
How do I solve this, and what is causing this?
Thanks in advance.
I had the same error message and found that, in commenting out uses-permission nodes in AndroidManifest.xml I had commented out one that was needed. When I put it back in the app ran fine. I was able to reproduce the error. I needed:
<uses-permission android:name="android.permission.ACCESS_NETWORK_STATE" />
This was for a barebones index.html, single page app, that displays Hello World.
And the permission above was the only one I needed to do Run As/ Android Application and get it to run in an emulator.
HTH
You have posted no code so it's difficult to see what your problem is. However I had the same issue which has been sorted out here Unfortunately HelloListView has stopped
It probably due to the fact that you don't have accelerometer and magnetic field support.
Go to your AVD configuration and add the following hardware: Magnetic Field Support and accelerometer
First check your AndroidManifest.xml file and write activity tag
For example, you have DisplayMessageActivity.class and package is me.user_interface
tag is:
<activity android:name="me.user_interface.DisplayMessageActivity"/>
You can write this after </activity> tag in AndroidManifest.xml file. Check the path carefully.