Todd-Davies / ProgressWheel

A progress wheel for android, intended for use instead of the standard progress bar.
MIT License
2.64k stars 710 forks source link

Double application #57

Open mateobosco opened 9 years ago

mateobosco commented 9 years ago

After adding the project as a dependency, when I run my application in an Android device it installs two applications, one of them is the actual application and the other one is the sample app from Progress Wheel. I cant figure out how to solve this. device-2015-07-20-150843

RDengue commented 9 years ago

add the project as module ,next clear the intent-filter in AndroidManifest in module ProgressWheel . I hope help you . regards

mateobosco commented 9 years ago

That was the way that I was doing it before but now i have it as a dependency in the build.gradle

repositories {
    maven { url "https://jitpack.io" }
}

dependencies {
    compile 'com.github.Todd-Davies:ProgressWheel:1.0'
}

is there a way to solve this?

marcosholgado commented 9 years ago

@mateobosco unfortunately until @Todd-Davies removes the launcher filter from the manifest you will have this issue since an app can only have one launcher filter (at least if you only want one icon).

However there's something you can do about it without having to add the project as a module.

Basically gradle merges all the manifests into one that you can find in build/intermediates/manifests/full and you can "override" the activity causing this issue. You only need to add the activity to your app manifest and remove the filters.

<activity android:name="com.todddavies.components.progressbar.Main" android:label="@string/app_name" > <intent-filter tools:node="removeAll" /> </activity>

Add that to your Manifest and will be ok.

Todd-Davies commented 9 years ago

If it's urgent, you can submit a pull request. Otherwise, I'll get around to doing this at some point. Thanks!

Todd-Davies commented 9 years ago

Hey @mateobosco, @Orbycius, this should be fixed now :)

sangrime commented 9 years ago

Is it fixed? I still can see two apps..

Todd-Davies commented 9 years ago

Are you using the latest version @sangrime? This should be fixed in e6241f97a.

hoseinit commented 9 years ago

@Todd-Davies Hi, By declaring the library version 1.0 in Gradle I still see two applications. How to use the latest version in gradle method?

o-ayoub commented 5 years ago

Hello How can I reslove this issue: Failed to resolve: com.github.Todd-Davies:ProgressWheel:1.2

Thanks

AkioAlex0817 commented 5 years ago

I also can not resolve com.github.Todd-Davies:ProgressWheel:1.2 Please tell me, how can I fix it? Thank you~

choyisus commented 5 years ago

this theme is from 2015 four years a go :( where is todd davies

Todd-Davies commented 5 years ago

Hey, sorry for my inactivity; I'm rather busy and this library is a legacy from another part of my life. Finding the time to maintain it properly isn't really feasible right now.

My best advice would be to avoid using the library in the first place; it was created specifically for old versions of Android (~version 2), which according to [1] has ~0.2% market share right now. Simply using the built-in Android progress spinner is likely to be far more stable and compatible, and I'm sure there must be more up-to-date libraries if you want something more fancy.

I'll do my best to fix the dependencies/build in future, but can't promise when.

Have a lovely day!

[1] https://developer.android.com/about/dashboards

choyisus commented 5 years ago

thanks for coming :) im a fan of you :)

choyisus commented 5 years ago

Hey, sorry for my inactivity; I'm rather busy and this library is a legacy from another part of my life. Finding the time to maintain it properly isn't really feasible right now.

My best advice would be to avoid using the library in the first place; it was created specifically for old versions of Android (~version 2), which according to [1] has ~0.2% market share right now. Simply using the built-in Android progress spinner is likely to be far more stable and compatible, and I'm sure there must be more up-to-date libraries if you want something more fancy.

I'll do my best to fix the dependencies/build in future, but can't promise when.

Have a lovely day!

[1] https://developer.android.com/about/dashboards

hey todd the fix of two apk's work ? if not work the wheel i can remove from my apk how ////thanks

SalilLuley commented 5 years ago

I resolved this issue by donwngrading the version to implementation 'com.github.Todd-Davies:ProgressWheel:1.0'

Cheers