GithubHelp home page GithubHelp logo

coolerfall / android-appuninstallwatcher Goto Github PK

View Code? Open in Web Editor NEW
155.0 16.0 51.0 1.36 MB

[Deprecated]App uninstall watcher.

Home Page: http://coolerfall.com/2015/03/25/android-app-uninstall-watcher/

License: Apache License 2.0

Java 3.26% Makefile 2.08% C 94.66%

android-appuninstallwatcher's Introduction

Android-AppUninstallWatcher

App uninstall watcher. You can monitor uninstall of your app.

Usage

  • This wathcer can be added in application or service in your app, use Watcher.run(context, url, shouldOpenBrowser) to run the watcher.
  • If shouldOpenBrowser is true, the wathcer will open default browser with url. Don't forget to add android.permission.INTERNET permission in manifest.
  • If you want to keep your app alive, see also Android-AppDaemon.

Note

This library dosen't work on all phones, such as xiaomi phones and Android 5.x.

Download

If you are building with Gradle, simply add the following line to the dependencies section of your build.gradle file:

compile 'com.coolerfall:android-app-uninstall-watcher:1.0.3'

License

Copyright (C) 2015-2016 Vincent Cheung

Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at

     http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.

android-appuninstallwatcher's People

Contributors

coolerfall avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

android-appuninstallwatcher's Issues

On some phones which does not have default android browser

Hi I tried this library & really working fine on those phones which have default android browser but those who don't have default android browser there it does not work.

For ex : Motorolo, Nexus phones does not have default android browser, they have google chrome browser, xiaomi have their inbuilt different browser.

Then I tried to look a c files of your project there I found you have a mentioned package name and activity name of browser that looks like only the reason it does not work in some phones.

if (version >= 17 || version == 0)
{
    execlp("am", "am", "start", "--user", "0", "-n",
            "com.android.browser/com.android.browser.BrowserActivity",
            "-a", "android.intent.action.VIEW",
            "-d", url, (char *)NULL);
}
else
{
    execlp("am", "am", "start", "-n",
            "com.android.browser/com.android.browser.BrowserActivity",
            "-a", "android.intent.action.VIEW",
            "-d", url, (char *)NULL);
}

Can we have simple action.View instead of specifying any browser package name and activity name. Let OS handle it so whatever browser is available on device then our source code will open that browser.

I'm looking forward for your help on this. Thanks & lastly great work!! (y).

did you push new version to maven?

hello, you update you library 2 day's ago, this update is "use am start android.intent.action.VIEW -d url to open browser" ,did you push this update to maven?

Its nor Working

Its not working some of devices. I want to send data to server without opening browser.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.