w3hello.com logo
Home PHP C# C++ Android Java Javascript Python IOS SQL HTML videos Categories
Android Studio and ProGuard - can't write resource [META-INF/MANIFEST.MF] (Duplicate zip entry [volley.jar:META-INF/MANIFEST.MF])
A similar problem is reported in this url. Hope it helps. BTW also make sure that you use the latest version of Android SDK.. it will create an empty proguard-project.txt for your project.

Categories : Misc

Android Studio: Android Manifest doesn't exists or has incorrect root tag
I ran into a similar problem. Looks like my .../src directory for whatever reason moved under my .../lib directory. I moved it out of the /lib directory. Now both /lib and /src are at the same level. After a couple of clean rebuilds and restarts of Android studio everything is back to normal. My emulator started up fine. You might want to check your directory structure. Compare the directory structure with a working project. You might be able to see the difference.

Categories : Android

Manifest merging in Android Studio
1. create sample project 2. add new module 3. Module Setting 4. Remove files in App Module Move app/~~~/values/style.xml to common/~~~/values/style.xml edit 1. <!-- app/~~~/AndroidManifest.xml --> <?xml version="1.0" encoding="utf-8"?> <manifest xmlns:android="http://schemas.android.com/apk/res/android" package="kr.susemi99.manifestmergerforandroidstudio" > <application > <activity android:name="kr.susemi99.common.MainActivity"> <intent-filter> <action android:name="android.intent.action.MAIN" /> <category android:name="android.intent.category.LAUNCHER" /> </intent-filter> </activity> </application>

Categories : Android

Android Studio Manifest Missing Error In Gradle
In the android section of your build.gradle file, you can try adding sourceSets with the manifest.srcFile variable. android { sourceSets { main { manifest.srcFile 'ToDoList/src/main/AndroidManifest.xml' } } } That path may need to be adjusted slightly.

Categories : Android

Android Studio - Gradle Manifest Merging Failed
Make sure that in all your build.gradle scripts the minSdkVersion and targetSdkVersion correspond to those you have in your manifests: android { defaultConfig { minSdkVersion 10 targetSdkVersion 16 } } This worked for me, I hope it does the trick for you, cheers.

Categories : Android

android configChange:orientation and manifest does not work
<activity android:name=".ActivityName" android:configChanges="orientation|screenSize|keyboardHidden"/> Use screenSize for newly version. orientation might not be supported in some version, need to use screenSize for configChanges

Categories : Android

Don't work git in Android Studio
you need to install git on your computer first. in my case on Ubuntu I installed it with: sudo apt-get install git-core in terminal and followed by : git config --global user.name "NewUser" git config --global user.email newuser@example.com for configurations. That's it and now it works perfectly.

Categories : GIT

What manifest visual studio is using to generate msdeploy package
To directly answer your question: the manifest is generated dynamically based on MsDeploySourceManifest MSBuild items. You can make it use contentPath rather than iisApp by declaring DeployAsIisApp=false in your publish profile (or command line /p:DeployAsIisApp=false). This will also disable the setAcl providers. If you want to keep iisApp, you can disable the ACL providers... ... being added to the package by declaring IncludeSetAclProviderOnDestination=false in your publish profile ... being deployed by passing /I:False to deploy.cmd

Categories : Misc

Phonegap 3 doesn't work with Android Studio
Upon must digging I found how to get past this: phonegap run android Its as simple as that. [Edit] You need to add platform to work with, whilst the documentation is so very very poor: C:varwwwsexdiaries.co.uksexdiaries>phonegap build android [phonegap] detecting Android SDK environment... [phonegap] using the local environment [phonegap] adding the Android platform... [warning] missing library cordova/android/3.0.0 [phonegap] downloading https://git-wip-us.apache.org/repos/asf?p=cordova-android.git;a=snapshot;h=3.0.0;sf=tgz... [phonegap] compiling Android... [phonegap] successfully compiled Android app Then you are good to go, doing an import with Andriod Studio will also work now as you have a project to work with :) Fantastic.

Categories : Android

Unable to get Robotium to work in Android Studio
As far as I can tell, you can't successfully run any tests from Android Studio yet (see How can I create tests in Android Studio?). You need to do it from the command line (note that you may need to clean first ./gradlew clean): To run the instrumentTests, use ./gradlew connectedInstrumentTest To run your test task, use ./gradlew localTest For future reference when Android Studio works better with test integration, you can set it up to run any given Gradle task. Go to 'Edit Configurations' and click the '+' button to add a new one. Choose 'Gradle' and then configure it to point to the correct gradle.build file and the task you want to run. I'm not sure what you would add in the 'Before launch' section, however, if anything. All that being said, here's how I got my robotium tests to run

Categories : Android

Android Studio proguard doesn't work
I'm not sure because I didn't use Android Studio to build a release apk yet, but try to look at this http://tools.android.com/tech-docs/new-build-system/user-guide#TOC-Running-ProGuard You probably need to configure gradle to use proguard, considering that android studio is using it to build

Categories : Android

How to setup Android Studio to work completely offline?
Ok guys finally I overcome to this problem here is the solution. 1: Download the gradle-1.6-bin.zip for offline use. 2: Now paste it in the C:Usersusername.gradle directory. 3: Open the AndroidStudio and click on the Create New Project option and you will not get this error any more while offline. But you can get another error like me or some other erro like this... Don't worry just ignore it. Your new project with your Specified name has been created. So now click on the Import Project and go to the path C:/users/username/AndroidStudioProject and open your project and you are done.

Categories : Android

module was expected to contain an assembly manifest Visual Studio 2010 error
Try this : Turn off your firewall and/or antivirus and create a new project with NOTHING added to it. Try to run the project, clean. If you still have that error, it means that your VB.NET is corrupted or broken. You will have to reinstall. If you do not get the error when your firewall/antivirus is off, then it's your firewall/antivirus causing the problem.

Categories : Vb.Net

Library projects in Android Studio only work if nested in the project tree?
Every step are here : How do I add a library project to the Android Studio? If you want to more about gradle see the Google I/O conference by Xavier Ducrohet on youtube : http://www.youtube.com/watch?v=LCJAgPkpmR0

Categories : Android

Where are the Android manifest file data saved in Android?
The Manifest.xml file is stored in the signed apk which is in the systems area that you don't have access to without root. So it would only work on rooted devices, you would need to obtain root, possible decrypt the apk, unzip it, make the modification and then, somehow, resign it with the original keystore that was initially used. If you are trying to modify one of your own apps I guess it's possible but it seems like a lot of trouble to go to.

Categories : Android

How to configure the android intent actions in android manifest
Your answer seems to me a bit strange, I think you are a bit confuse about the difference between Intent and manifest permission. The first one are the system used by android to let app communicate with each other, the second one allow you to use some feature of the device like wifi and direct phone call that need the explicit agreement of the user to be used (the prompt that popup when you make the first install of an app). With this clarification it is clear that if you want to do something that require another app you will have to make an Intent. This Intent, if well formed, will be elaborated by the os that will take care of sending it to the correct application able to accomplish the Intentrequirement. So the answer to your question, as far as i know, is no, you have to use intent

Categories : Android

Why does HTML5 offline re-cache the entire manifest, and only when the manifest file changes?
First, check out appcachefacts.info to gain a better understanding of this confusing spec. AppCache will often work in unexpected ways, like Jake Archibald explains in his blog post Application Cache is a Douchebag. In it, the behaviour described above is achieved by doing some iframe magic. I got away by just adding a static page to the appcache manifest and loading body content through AJAX calls of non-cached fragment pages, based on external events like onClick, and storing the body data in a WebSQL database for future (possibly offline) reference. This, in effect, had made my offline app entirely JavaScript-based without any page reloads. In place of WebSQL, you may also use HTML5 local storage but may feel uneasy about the 5MB storage limit. As to the whys, I can only speculate.

Categories : HTML

.manifest file and @font-face, iOS device, how to make it work? or graceful fallback?
try this @font-face implementation @font-face { font-family: 'OpenSans'; src: url('fonts/OpenSans-Regular-webfont.eot'); src: url('fonts/OpenSans-Regular-webfont.eot?#iefix') format('embedded-opentype'), url('fonts/OpenSans-Regular-webfont.woff') format('woff'), url('fonts/OpenSans-Regular-webfont.ttf') format('truetype'), url('fonts/OpenSans-Regular-webfont.svg#open_sansregular') format('svg'); font-weight: normal; font-style: normal; } h1 { font-family: 'OpenSans'; font-weight: 300%; } for more information check out this example https://github.com/ttibensky/BulletProof-font-face-implementation

Categories : IOS

How to check whether (type of) a manifest is a subtype of manifest[Numberic[_]]?
Numeric is a type class and it has nothing with subtyping and Manifest (or TypeTag). Double is not a Numeric. T : Numeric in type parameter means there is implicit value of type Numeric[T] in scope. You can't check it via reflection. Maybe you could search for implicit in macros, but I'm not sure and I don't think it's what you are looking for. So the answer is: You just can't. It isn't possible even in theory: there is no information about implicit values in runtime and there is no instance of Manifest[T] in compile time.

Categories : Scala

Android-manifest issue
Like described here (Add a new activity to the AndroidManifest?) you need to add a separate activity-tag for each class (which extends Activity) and is started via startActivity() or startActivityForResult() respectively. In your case, from what you have posted, there is no entry for "full.class" in your manifest. So to get rid of your error you need to specify something like <activity android:name=".full" /> If the full class is not in the same package like your MainActivity you may need to specify the package as well, like android:name=".tables.full". Maybe you also like to change the name of the class as well to something more expressive.

Categories : Android

Air Android - app.xml manifest additions
Looks to me like you have to remove that first 'android:' from your addition. <supports-screens android: android:largeScreens="true" android:xlargeScreens="true"/> should be <supports-screens android:largeScreens="true" android:xlargeScreens="true"/> Via this Adobe post (including for future reference in case that post is removed): <android> <manifestAdditions><![CDATA[ <manifest android:installLocation="preferExternal"> <supports-screens android:smallScreens="false" android:normalScreens="true" android:largeScreens="true" android:xlargeScreens="true"/> <compatible-screens> <!-- list the screens you support here -->

Categories : Android

android manifest being choosey
The problem is your Main Constructor: 09-04 11:33:04.895: E/AndroidRuntime(717): Caused by: java.lang.NullPointerException 09-04 11:33:04.895: E/AndroidRuntime(717): at android.app.Activity.findViewById(Activity.java:1825) 09-04 11:33:04.895: E/AndroidRuntime(717): at com.ollygrov.bakerspride.Main.<init>(Main.java:19) In line 19 of Main.java you are trying to call findViewById() which will obviously not work. It is way to early to call such code in the constructor. My best guess is, that you need to move EVERYTHING from the cronstructor to onCreate() of the Activity. Normally you don't need a custom constructor in Activities or Fragments.

Categories : Android

Modfiying Android Manifest
The error is because there is no icon in your project, Look in Project/res/drawable/ ... The ic_launcher is the default icon, so just replace android:icon="@drawable/icon" By : android:icon="@drawable/ic_launcher"

Categories : Android

Android Unity Plugin Manifest
This is a late answer and maybe you've already figured it out. You can include this AndroidManifest.xml file in the Unity project, here is the path: YourProjectname/Assets/Plugins/AndroidManifest.xml When you build the project for Android, you can double check the AndroidManifest.xml in YourProjectname/Temp/StagingArea/AndroidManifest.xml which is the final setting for your apk file. Hope that helps!

Categories : Android

What minimum android sdk version i need to use in manifest?
Like it says in the docs The runtime requires a minimum SDK version greater than 8. You should ensure that the Manifest includes < uses-sdk android:minSdkVersion="8">

Categories : Android

Android humidity sensor manifest
There is no way to do that using <uses-feature> Read here about <uses-feature>. I know alternative solution : when user turn on application, you're getting a list of sensors and if there is not hydrometr, you're showing toast : "You cannot use that application, because your device hasn't got required sensor"

Categories : Android

Android Manifest no launcher found
In your second activity addition you forgot to add intent-filter tags. that is why you are getting the error. Change your xml file second activity addition as below. <activity android:name="com.example.themap.ListActivity" android:label="@string/title_activity_list" > <intent-filter> <action android:name="android.intent.action.MAIN" /> <category android:name="android.intent.category.LAUNCHER" /> </intent-filter> </activity>

Categories : Android

Purpose of using CATEGORY_HOME in android manifest?
What's the main use of this category It, coupled with ACTION_MAIN, identifies a replacement home screen. what's the alternative to it Not having it. Either you have this category, or you do not.

Categories : Android

Notification push receiver android( manifest?)
Try changing this : <uses-permission android:name="com.name.name.permission.C2D_MESSAGE" android:protectionLevel="normal" /> To this : <permission android:name="com.name.name.permission.C2D_MESSAGE" android:protectionLevel="signature" /> <uses-permission android:name="com.name.name.permission.C2D_MESSAGE" />

Categories : Android

Malformed android manifest violating terms
The problem is likely that you've nested <intent-filter>...</intent-filter> under the meta-data tag, whereas both should be direct children of <receiver />. According to the documentation, a valid declaration should look as follows: <receiver> <intent-filter> . . . </intent-filter> <meta-data /> </receiver> http://developer.android.com/guide/topics/manifest/manifest-intro.html

Categories : Android

Gradle: How to customize Android Manifest permissions?
I just managed to do this by having different flavors in my gradle file: free { packageName 'com.sample.free' buildConfigField "boolean", "HAS_AD", "true" } paid { packageName 'com.sample.paid' buildConfigField "boolean", "HAS_AD", "false" } and then I created a new folder under src called "free" and under that a folder called "res" src/ + free/ | + res/ + src/ and in that folder create a new file "AndroidManifest.xml" with the following code in it: <?xml version="1.0" encoding="utf-8"?> <manifest xmlns:android="http://schemas.android.com/apk/res/android" package="com.sample" > <uses-permission android:name="android.permission.INTERNET" /> <uses-permission android:name="android.permission.ACCESS_NETW

Categories : Android

What is in android manifest ? How to make use of this?
permission-tree allows an application to declare a namespace of permissions, in which it can dynamically at runtime define new permissions. This is used example, by google's service APIs to have a namespace for individual permissions to each google service that it discovers at runtime.

Categories : Android

Android app shows for lower version than manifest
I think that this could be the problem. Sometimes Android Studio does not comply with the AndroidManifest. What I mean is the following: to eliminate this possibility, try importing your project in Eclipse with the Android SDK installed as well. Then, clean, build and produce the .pck file. See if the problem persists.

Categories : Android

Reading Android Permissions from Manifest through Native C
It is difficult to access all android permissions and their info from native code due complexity of java objects. But you can write a java method which fetches all this info and convert it to more simpler form like string array and return it. Then call this method in native code and use the return value for your use case. Just an idea never tried it.

Categories : Android

Android manifest (AndroidManifest.xml) not working as expected
Replace this: android:name=".StationList" in <activity android:name=".StationList" android:configChanges="orientation|keyboardHidden" android:launchMode="singleInstance" android:theme="@android:style/Theme.Black.NoTitleBar" android:label="@string/app_name" > with the name of your splashscreen activity and add .StationList as a seperate activity like: <activity android:name=".StationList" android:configChanges="orientation|keyboardHidden" android:theme="@android:style/Theme.Black.NoTitleBar" ></activity>

Categories : Android

android manifest application 3 errors detected
Its incorrect path as well as wrong location of xmlns:android The path should be .Home and Home must extends Activity SuperClass and There must be a launcher activity or service to start with Should look like this <?xml version="1.0" encoding="utf-8"?> <manifest xmlns:android="http://schemas.android.com/apk/res/android" package="com.photon.trackme" android:versionCode="1" android:versionName="1.0" > <uses-sdk android:minSdkVersion="9" android:targetSdkVersion="17" /> <application android:icon="@drawable/ic_launcher" android:label="@string/app_name" android:theme="@style/AppTheme" > <activity android:name="com.photon.trackme.MainActivity" android:label="@string/app_n

Categories : Android

Exclude 7 inch Tablets below Android 3.2 in manifest
You can filter the devices on Google Play by screen size and some other option http://developer.android.com/google/play/filters.html I don't think that you can exclude devices in the manifest.

Categories : Android

Adding permissions to the Android Manifest with Apportable
Common AndroidManifest.xml features are set up by modifying the features section in configuration.json. To dive deeper into how the AndroidManifest.xml is created, see .apportable/SDK/site_scons/android/mainifest.py

Categories : Android

Programmatically retrieve permissions from manifest.xml in android
You can use this method: //for example, permission can be "android.permission.WRITE_EXTERNAL_STORAGE" public boolean hasPermission(String permission) { try { PackageInfo info = getPackageManager().getPackageInfo(context.getPackageName(), PackageManager.GET_PERMISSIONS); if (info.requestedPermissions != null) { for (String p : info.requestedPermissions) { if (p.equals(permission)) { return true; } } } } catch (Exception e) { e.printStackTrace(); } return false; }

Categories : Java

Why I can not use the hidden permissions in android.Manifest.permission
Why is that? Some permissions require your app to be signed by the same signing key that signed the firmware. Other permissions require your app to either be signed by the same signing key that signed the firmware, or to be installed on the system partition (e.g., by a rooted device user). Ordinary SDK apps cannot hold these permissions. Unfortunately, the JavaDocs does not explain which permissions have which requirements. If you look at the platform manifest, those permissions with signature as part of their android:protectionLevel allow apps to hold that permission if they were signed by the same signing key that signed the firmware. Those with system as part of the android:protectionLevel can be held by apps installed in the system partition. So, for example: <!-- Required

Categories : Android



© Copyright 2017 w3hello.com Publishing Limited. All rights reserved.