1
I have a problem in my apk that allows the user to take a photo straight from the application, however, in some cell phones give error and closes the app. Here is my manifest:
<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="br.com.diego.tecnologiadanet">
<uses-permission android:name="ANDROID.PERMISSION.CALL_PHONE"/>
<uses-permission android:name="android.permission.ACCESS_NETWORK_STATE"/>
<uses-permission android:name="android.permission.CALL_PHONE" />
<uses-permission android:name="android.permission.INTERNET"/>
<uses-permission android:name="android.permission.WAKE_LOCK"/>
<uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE" />
<uses-permission android:name="android.permission.CAMERA" />
<uses-feature android:name="android.hardware.camera" />
<supports-screens
android:resizeable="true"
android:smallScreens="true"
android:largeScreens="true"
android:xlargeScreens="true"
android:normalScreens="true"
android:anyDensity="true"/>
<application
android:allowBackup="true"
android:icon="@mipmap/ic_launcher"
android:label="@string/app_name"
android:theme="@style/Theme.MyTheme">
<activity
android:name=".Splash"
android:label="APP">
<intent-filter>
<action android:name="android.intent.action.MAIN" />
<category android:name="android.intent.category.LAUNCHER" />
</intent-filter>
</activity>
<activity android:name=".MainActivity"
android:label="APP">
</activity>
<activity
android:name=".SecondActivity"
android:label="@string/title_activity_second"></activity>
<activity
android:name=".CarActivity"
android:label="@string/title_activity_car"></activity>
</application>
</manifest>
How to fix this?
You can add the error that appears in the logcat?
– rsicarelli
Bro I’m not emulating straight on cel, I generated apk and some people who are using apk are reporting this problem.
– Carlos Diego
Without the detail of the error, only with your manifesto, it is very difficult to help you find the problem!
– rsicarelli
Difficult without error logging, use Google Analytics to help you with this, every exception you can report to it. https://developers.google.com/analytics/devguides/collection/android/v4/? hl=en#configurao-do-projeto
– Alessandro Barreto
Post java code. Which version of Android devices gives error?
– ramaral
Possible duplicate of Error in SMS Broadcastreceiver on android 6 marshmallow
– ramaral