android-manifest

How to fix INSTALL_PARSE_FAILED_MANIFEST_MALFORMED in my android application

|▌冷眼眸甩不掉的悲伤 提交于 2019-12-28 02:07:06
问题 Hi I am trying to experiment with gcm but unable to make it work. Don't know where I am messing with it, below is the error I am getting. I am trying to deploy my application directly on device and debug from there but when ever I try to deploy it gives this error Waiting for device. Target device: HT24LW108632 Uploading file local path: D:\Data\Android\AndroidTest\out\production\AndroidTest\AndroidTest.apk remote path: /data/local/tmp/Android.Test Installing Android.Test DEVICE SHELL COMMAND

Android 'debuggable' default value

谁说我不能喝 提交于 2019-12-28 01:03:29
问题 I am trying to get application's debuggable attribute value from code: packageInfo = context.getPackageManager().getPackageInfo(packageName, 0); int flags = packageInfo.applicationInfo.flags; isDebugMode = (flags & ApplicationInfo.FLAG_DEBUGGABLE) != 0; And I have noticed that when debuggable attribute is not specified in manifest this code defines it as true. And documentation says that it is false by default. What's wrong? 回答1: From SDK Tools : ( SDK Tools, Revision 8 (December 2010) )

Register Application class in Manifest?

删除回忆录丶 提交于 2019-12-27 17:06:11
问题 I have one Application class to keep the global state of my application. But I'm unable to register it in Manifest file? Any idea how to do this? 回答1: If it derives from Application, add the fully qualified (namespace + class name) as the android:name parameter of the application element in your manifest. <application android:name="com.you.yourapp.ApplicationEx" Or if the class' package can be described as relative to the package in the manifest tag, then just start with a . : <manifest xmlns

customize check box preference

偶尔善良 提交于 2019-12-27 12:20:39
问题 I am unable to customize my checkbox , although I have defined the background in the xml preference file, it doesn't pull the file. 1. I am trying to display custom images for checkbox and have defined the selector xml as "android_button.xml" which looks like : <?xml version="1.0" encoding="utf-8"?> <selector xmlns:android="http://schemas.android.com/apk/res/android"> <item android:state_checkable="true" android:drawable="@drawable/state_normal" /> <!-- pressed --> <item android:state_checked

Why are permissions being automatically added to my AndroidManifest when including Google Play Services library

扶醉桌前 提交于 2019-12-27 11:08:07
问题 I noticed that the following permissions were automatically added when i use the following in my build.gradle file compile 'com.google.android.gms:play-services:7.5.0' This did not occur with the earlier versions of the play-services. does anyone have a solution to remove these unwanted permissions? I am only using the ads function (INTERNET and ACCESSNETWORK_STATE). I got no need for the LOCATION and USE_CREDENTIALS permissions. How do you remove these unwanted permissions? I noticed that

Why are permissions being automatically added to my AndroidManifest when including Google Play Services library

二次信任 提交于 2019-12-27 11:05:25
问题 I noticed that the following permissions were automatically added when i use the following in my build.gradle file compile 'com.google.android.gms:play-services:7.5.0' This did not occur with the earlier versions of the play-services. does anyone have a solution to remove these unwanted permissions? I am only using the ads function (INTERNET and ACCESSNETWORK_STATE). I got no need for the LOCATION and USE_CREDENTIALS permissions. How do you remove these unwanted permissions? I noticed that

Which permissions should I ask at runtime and which I don't have to ask runtime in Android?

╄→гoц情女王★ 提交于 2019-12-26 18:14:30
问题 How does I determine which permissions should I ask at runtime and which one is 'enough' to have declared in the manifest? 回答1: From the documentation: System permissions are divided into two categories, normal and dangerous : Normal permissions do not directly risk the user's privacy. If your app lists a normal permission in its manifest, the system grants the permission automatically. Dangerous permissions can give the app access to the user's confidential data. If your app lists a normal

Audio not playing?

我的梦境 提交于 2019-12-25 16:56:59
问题 My audio isn't playing...I've been stuck on this for literally 6 hours, and have no clue what the problem is. I am trying to have the volume mute when user clicks mute and unmute when user clicks it again. I want to be able to have the user unmute the app to the same volume that the user was originally on. Their original volume is stored in userVolumeOnStart.userVolume , I use this value in the unMute, to set their volume back. Here is the listener to the mute button: public void mute(View

My app all of a sudden has 0 supported devices

↘锁芯ラ 提交于 2019-12-25 16:51:32
问题 This is my app: https://play.google.com/store/apps/details?id=com.elgami.customizer I've been wracking my head trying to figure this out. Can't find out what the problem is. I'm pretty sure one of the permissions is either spelled or implemented incorrectly. The camera features and permissions were the latest things I've added. Basically, it can't be downloaded by anybody and I didn't notice this until I published it. What could be going wrong? This is my Manifest: <?xml version="1.0"

How to add data to app shortcut Intent

末鹿安然 提交于 2019-12-25 08:24:29
问题 What I want to do is to pass a certain key value to the intent indicate the app that it was open trough shortcut, so it does certain task instead of standard launch. In my case the app needs to download data from the server before it continues. I want the shortcut to be available after install so I cannot put a dynamic shortcut as I did so far after launch. I also tried to do this by opening a special activity where I put the key to the intent, but I would need to do this for every shortcut