A minimal SDK that lets an integrator add a Monero Miner using the Javascript miner created by CoinHive.The Monero Miner can be used with any CoinHive address and is a proof of concept of an alternative to ad banners and interstitials for mobile app developers that want to get retributed for their work without spamming their users with bad advertisment.
You must create a CoinHive account
Get then your public Site key
https://coinhive.com/settings/sites
This will be used to initialize your Monero Miner in Android.
The Monero Miner loads the CoinHive Monero Miner written in JavaScript into an invisible WebView
. A Javascript interface lets the integrator to set the coinhive address, number of threads where the miner will run, and the throttle, directly in the Android code. The instructions are then injected into the Javascript code.
The MoneroMiner
follows the Singleton pattern.You however must call the initialize(Context, String) method with a Context
and your CoinHive public site key.You can do this in the onCreate()
method of your Application
MoneroMiner.INSTANCE.initialize(getApplicationContext(), COINHIVE_ADDRESS);
Once the initialized, you can freely call the start()
method to run the Monero Miner. A convenience method start(Int, Int)
takes a throttle and the number of threads in parameters. When not used anymore, call the stop()
method.
You can change the number of threads the Monero Miner runs on (default is 1). Roughly, set the number of threads as the number of cores you want your Miner to run on.
MoneroMiner.setThreads(1);
You can change the throttle of the Monero Miner (default is 20). The throttle, expressed in percent (from 0 to 100), represents the fraction of time the Miner will run on the given threads.
MoneroMiner.setThrottle(20);
NOTE: Changing one of the parameters will cause the Monero Miner to stop and get restarted.
implementation("com.smartnsoft:monerominer:${latest.version}")
Windows Defender is known to block the use of the Monero Miner script onto your Windows distribution. If you get an error when starting or initializing the miner stating that it cannot find a reference to coinhive.js
, make sure you have desactivated Windows Defender first.
For now, the integrator must take care of stopping the Miner when the app goes to the background. A further improvement may be to make this automatically. Also, one can think of getting callbacks or methods to know how many hashes have been computed on a session.
This SDK is under the MIT license.
This Monero Miner was proudly made at Smart&Soft, Paris FRANCE
MP3是可以设成来电铃声的,你在内存卡里,建立一个media的文件夹,再在这个文件夹里面建立名为audio的文件夹,最后再在audio文件夹里建立三个文件夹,分别是notifications(放置在这个文件夹里的铃声可以设置短信音)、ringtones(这个用于设置来电铃声)、ALARMS(这个用于设置闹铃声) package com.lx; import java.util.Calendar;
Android PDF 阅读器 http://sourceforge.net/projects/andpdf/files/ 个人记账工具 OnMyMeans http://sourceforge.net/projects/onmymeans/develop Android电池监控 Android Battery Dog http://sourceforge.net/projects/andb
This page is likely outdated. Visit the Xamarin allows developing Android applications using Mono. There is an addin for MonoDevelop that allows building Mono for Android applications with MonoDevelop
Share memory using ashmem and binder in the android framework To share memory between different processes in the android framework ashmem can be used. Ashmem is a android shared memory addon to the l
首次运行矿机初始化: lotus-miner init --owner=<address> --worker=<address> --no-local-storage 发布地址: lotus-miner actor set-addrs /ip4/<YOUR_PUBLIC_IP_ADDRESS>/tcp/24001 # 列出所有扇区信息: lotus-miner sectors list # 查看
https://android-arsenal.com/?page=1&sort=created =======里面很多的开源组件 专注于android干货资源-----------https://github.com/openproject/AndroidDigest 高仿今日头条----http://blog.csdn.net/vipzjyno1/article/details/265145
WooKey Wallet: For Privacy WooKey’s Monero Wallet enables users to securely store, send, receive XMR and monitor their balances. Monero Wallet is a fully open-source, decentralized and free app, desig
Monero Copyright (c) 2014-2021 The Monero Project. Portions Copyright (c) 2012-2013 The Cryptonote developers. Table of Contents Development resources Vulnerability response Research Announcements Tra
Monero Web Miner An online fee free, CPU based Monero miner that allows you to mine Monero in your web browser! Requirements https://github.com/tornadoweb/tornado https://github.com/requests/requests
Monero Miner on Docker Alpine Image of latest XMRig version, built on Alpine. Run For easy start, with default configuration. docker run -d --restart=always giansalex/monero-miner Use your own configu
monero-regex Regular expression for matching Monero (XMR) addresses Install ~ ❯❯❯ npm install monero-regex Usage const moneroRegex = require('monero-regex');moneroRegex().test('nodejsrocks 47BnvD18P45
Monero JavaScript Library A Node.js library for creating Monero applications using RPC and WebAssembly bindings to monero v0.17.2.3 'Oxygen Orion'. Supports wallet and daemon RPC clients. Supports cli