Search Unity

  1. Welcome to the Unity Forums! Please take the time to read our Code of Conduct to familiarize yourself with the forum rules and how to post constructively.
  2. Dismiss Notice

[Released] Android Manifets Manager

Discussion in 'Assets and Asset Store' started by stanislav-osipov, Dec 4, 2014.

  1. stanislav-osipov

    stanislav-osipov

    Joined:
    May 30, 2012
    Posts:
    1,790

    Asset Store | Documentation

    This editor extension allows you to easily manage android manifest. Editor window will create the representation of current Android Manifest, and allow you to view, modify, remove and add:
    • Manifest Tags and properties
    • Application settings
    • Application properties
    • Manage Activities
    • Manage Permissions

    Learn how to use with:
    I would love to hear your feedback and feature requests.
    If you need technical support feel free to drop an e-mail to stans.assets@gmail.com
    Cheers!
     
  2. Naphier

    Naphier

    Joined:
    Aug 4, 2014
    Posts:
    114
    Would be nice if this was able to show the final merged manifest based on the tags/permissions that get added by various plugins. Still better than nothing!
     
  3. stanislav-osipov

    stanislav-osipov

    Joined:
    May 30, 2012
    Posts:
    1,790
    Not sure what do you mean. Can you please tell me more about your feature request?
    Cheers!
     
  4. Naphier

    Naphier

    Joined:
    Aug 4, 2014
    Posts:
    114
    I think what I'm asking for is not possible. For example, Chartboost plugin has it's own AndroidManifest.xml
    The tags from that get imported to the main manifest when building. I'm not sure you can detect that one.
    I think what would be nice is if this tool scanned the asset folder for all manifests and then showed them to you in this window allowing you to edit all of them. Do that make more sense?
     
  5. stanislav-osipov

    stanislav-osipov

    Joined:
    May 30, 2012
    Posts:
    1,790
    I got what you mean, It is possible, we can store some kind of revision history, and then show changes. I will think about implementing this feature, but can not tell for sure.
    Cheers!
     
  6. purbanics

    purbanics

    Joined:
    Mar 6, 2014
    Posts:
    19
    I noticed a script compile bug:

    Reproduction steps:
    1. Import Android Manifest Manager,
    2. Check that it works without any problem,
    3. Import your Mobile Social Plugin.

    Than get this error:
    Assets/Extensions/AndroidManifestManager/Example/AMMScriptingAPIUseExample.cs(19,28): error CS1061: Type `AN_PropertyTemplate' does not contain a definition for `HasKey' and no extension method `HasKey' of type `AN_PropertyTemplate' could be found (are you missing a using directive or an assembly reference?)

    Probably because the "Mobile Social Plugin" also has some Android Manifest Manager stuff.
    See attached image Mobile Social Plugin.png Android Manifest Manager.png
     
  7. purbanics

    purbanics

    Joined:
    Mar 6, 2014
    Posts:
    19
    Than if I import the "Android Manifest Manager" again the error goes away and all seems OK for now, but as I am no coder I can just hope the "Mobile Social Plugin" will work correctly with it's overwritten script.
     
  8. purbanics

    purbanics

    Joined:
    Mar 6, 2014
    Posts:
    19
    Unfortunately now when I try to build I get errors:

    Assets/Extensions/AndroidManifestManager/Example/AMMScriptingAPIUseExample.cs(10,49): error CS0103: The name `AN_ManifestManager' does not exist in the current context

    Assets/Extensions/AndroidManifestManager/Example/AMMScriptingAPIUseExample.cs(29,17): error CS0103: The name `AN_ManifestManager' does not exist in the current conte

    Error building Player because scripts had compiler errors
     
  9. purbanics

    purbanics

    Joined:
    Mar 6, 2014
    Posts:
    19
    By the way I am testing on Android platform.
    Is this the problem?

    In AN_ManifestManager.cs

    #if UNITY_EDITOR
    static public class AN_ManifestManager {
     
  10. purbanics

    purbanics

    Joined:
    Mar 6, 2014
    Posts:
    19
    I deleted the "Android Manifest Manager" folder and re-imported just that part from the "Mobile Social Plugin" and now I can build again.

    But please fix the problem as I would like to be able to use "Android Manifest Manager" together with your "Mobile Social Plugin".

    Thanks in advance,
    Peter
     
  11. AlexRay

    AlexRay

    Joined:
    Jul 9, 2014
    Posts:
    993
    @purbanics

    It looks like you are using Android Manifest Manager functionality in your scripts (e.g. Assets/Extensions/AndroidManifestManager/Example/AMMScriptingAPIUseExample.cs), which are included in your build.
    As a result you will get errors while build your project.

    Pay your attention to Android Manifest Manager plugin description
    This editor extension allows you to easily manage android manifest

    Android Manifest Manager is an editor extension. Thats why source code contains #if UNITY_EDITOR dependencies.
    You have to use it in Unity Editor, but NOT reference any Android Manifest Manager functionality in your game source code. Either you will get an error during build process.


    Best regards,
    Stans Assets Support Team.
     
  12. purbanics

    purbanics

    Joined:
    Mar 6, 2014
    Posts:
    19
    I am surely not using anything in any scripts, as I am a designer experimenting with Playmaker.
    I don't touch any code.
    That script is not mine and I have no idea why it would be included in the build.

    Please see reproduction steps:
    1. Import Stan's - Android Manifest Manager,
    2. Check that it works without any problem,
    3. Import Stan's Mobile Social Plugin. (This overrides some part of the AMM. See pictures above.)
    4. Try to build any test scene to Android.

    Br,
    Peter
     
  13. stanislav-osipov

    stanislav-osipov

    Joined:
    May 30, 2012
    Posts:
    1,790
    Thx for report. On it.
     
  14. AlexRay

    AlexRay

    Joined:
    Jul 9, 2014
    Posts:
    993
    Hello,
    Previously you have problem with AMMScriptingAPIUseExample.cs script compile errors.

    You should not use this scripts into your Android build.

    One reason why you got this script in your project - it was included in previous versions of the plugin as sample for plugin's work presentation. For now this script is excluded from entire plugin package.
    So, feel free to remove these scripts from your project and you will get your build for Android.

    Best regards,
    Stans Assets Support Team.
     
  15. TechnicalArtist

    TechnicalArtist

    Joined:
    Jul 9, 2012
    Posts:
    736
    Hi,

    I want to when exit my app,it automatic clear in recent.Can I achieve with your asset?
     
  16. AlexRay

    AlexRay

    Joined:
    Jul 9, 2014
    Posts:
    993
    Hello,

    I can not understand exactly what do you mean by
    Please, could you describe such scenario with more details?
     
  17. gitg

    gitg

    Joined:
    Oct 13, 2015
    Posts:
    1
    Unity 5.21 possible?
     
    Last edited: Oct 22, 2015
  18. stanislav-osipov

    stanislav-osipov

    Joined:
    May 30, 2012
    Posts:
    1,790
    All unity version supported!
     
  19. WarpBubble

    WarpBubble

    Joined:
    Dec 4, 2013
    Posts:
    33
    Am I right in thinking this could also simplify allowing me to launch video files in my (Android) Unity app? As in, when opening any video on the device, my app can appear in the list of possible applications to use? If so, how would I then recognise the selected file from within my app?
     
  20. AlexRay

    AlexRay

    Joined:
    Jul 9, 2014
    Posts:
    993
    H
    Hello,
    This editor extension allows you to easily manage android manifest. Unity Inspector window will create the representation of current Android Manifest, and allow you to view, modify, remove and add:
    • Manifest Tags and properties
    • Application settings
    • Application properties
    • Manage Activities
    • Manage Permissions
    Android Manifest Manager is not related to any kind of video player functionality.
    It's the plugin for Unity Editor use only.

    Best regards,
    Alex
     
  21. WarpBubble

    WarpBubble

    Joined:
    Dec 4, 2013
    Posts:
    33
    Ok, I should have worded it better, but video was just an example, I was referring to opening my app with intent (I think that's what it's called anyway) so i could have also said doc file, music file etc. My point is I was under the impression the manifest file is also used to associate file types with apps. When I saw one of the screenshots, I thought "Is Launcher" and "[intent-filter]" might have something to do with setting that up so that I could associate my app with video files.
     
  22. WarpBubble

    WarpBubble

    Joined:
    Dec 4, 2013
    Posts:
    33
    Hey... just to mention, my original question above was misunderstood. Could you please clarify, the features I see in the screen shots "isLauncher" and "[intent-filter]"... are these related to associating file types with my unity app, so that my app could be launched with the intent of doing something with a selected file?
     
  23. AlexRay

    AlexRay

    Joined:
    Jul 9, 2014
    Posts:
    993
    Hello,
    I think, you wrongly understood the conception of Android Manifest Manager plugin.
    In addition to mu previous message: Android Manifest Manager is an editor extension allows you to easily manage android manifest. Unity Inspector window will create the representation of current AndroidManifest, and allow you to view, modify, remove and add Manifest Tags and properties, Application settings, Application properties, Manage Activities, Manage Permissions.
    For advanced developers extension offer C# API with will allow you to work with the manifest using Unity C# scripting.
    Great Android Manifest Manager Scripting API and plugin's features description you can find here.

    Cheers!
     
  24. WarpBubble

    WarpBubble

    Joined:
    Dec 4, 2013
    Posts:
    33
    Ok, thanks for your answer.

    Just for the record, your answers both give me the impression you believe my question has nothing to do with the manifest file, but everything I read tells me that what I am trying to do, is done using the manifest file. So as far as I can tell from your answers, this is a manifest file aspect that your manifest manager does not offer much help with.

    http://forum.unity3d.com/threads/unity-android-app-launch-ability-from-clicked-file.328009/
    http://developer.android.com/guide/topics/manifest/data-element.html
    http://stackoverflow.com/questions/3760276/android-intent-filter-associate-app-with-file-extension

    I'm trying to get it to work myself (It seems I'm not the only one that had difficulty), which is why I had hoped your manifest file manager might have simplified this manifest file related process for me.

    Never mind though, I'll work it out eventually :)
     
  25. AlexRay

    AlexRay

    Joined:
    Jul 9, 2014
    Posts:
    993
    Hello,
    I clearly understand, that to create file association with your application, you have to declare appropriate data-elements and intent-filters in your AndoridManifest.xml file.
    Android Manifest Manager will help you to perform such actions with AndroidManifest.
    But you have some other questions as following
    That's not the case for Android Manifest Manager. To recognize/process any file opened with your application is your responsibility as a developer.
    You should provide the native implementation for such cases.

    Android Manifest Manager is great AndroidManifest.xml file editing tool and will be very useful for your Android project.
    The most powerful approach is a deep dive into Android Manifest Manager scripting API.
    If you will need any kind of additional assistance, please, feel free to contact me or The Stan's Assets Support Team directly via support@stansassets.com

    Best regards,
    Alex
     
  26. WarpBubble

    WarpBubble

    Joined:
    Dec 4, 2013
    Posts:
    33
    Yes, this was the bit I was having difficulty with and was really interested in, associating my app with a file type.

    Ok, so long story short, yes this plugin will help me add intents to the manifest file, but no, it will not specifically help me set up intents for associating file types. (p.s. that would be a nice feature to add... it was surprisingly tricky to get my app to associate with .mp4 files because a lot of the examples I found out there just didn't do anything at all).

    For anyone else that's having the same problem I was, this was the post that finally helped me to get it working... http://answers.unity3d.com/questions/896012/how-to-make-your-android-app-open-xml-files.html
     
    AlexRay likes this.
  27. MrSaoish

    MrSaoish

    Joined:
    Oct 1, 2016
    Posts:
    22
    Hey guys, I'm looking for an add-on that could provide functions for editing my Unity Android app status bar, navigation bar and action bar colors. Can this plugin helps on that? I'm sorry I have no Android development experience.
     
    Last edited: Mar 5, 2018
  28. Cerberus_team

    Cerberus_team

    Joined:
    Apr 9, 2014
    Posts:
    39
    With this plugin we are able to manage the final manifest? after all plugins have merged their requirements and permissions etc...
    Or is it just the one in the plugin/android folder?
     
  29. stanislav-osipov

    stanislav-osipov

    Joined:
    May 30, 2012
    Posts:
    1,790
    Hey @Cerberus_team
    So far it just for the one located at Assets/Plugins/Android

    I've been thinking to actually make a big update ti the plugin, like rework a lot of UI + Add ability to see all manifest you have in your project, and of course, give an ability to edit them.

    But I can't predict the final manifest would look like since that is up for a manifest merging tool.
    The best we can do is to make sure none of the manifests in a project doesn't have something we do not want.