android-library

How can I “refresh” my RegionBootstrap (Android Beacon Library)?

 ̄綄美尐妖づ 提交于 2019-12-11 12:44:00
问题 I am developing an Android app that works with Beacons (thanks to the usage of Android Beacon Library). I have an Application that extends BootstrapNotifier that calls a Controller (my class) method which creates a new RegionBootstrap. Everything works fine when the app starts and the Beacons related to the corresponding Regions triggers notifications when they enter or leave that specific Region. public class BackgroundApplication extends Application implements BootstrapNotifier,

Reference to external project doesn't work

久未见 提交于 2019-12-11 11:56:12
问题 Since I updated android SDK tools to rev19 my external Library Projects discontinued to be visible by referencing projects. With new dependency behavior I moved jars to /libs folder which has fixed references with external jars. Addining a link to the LIbProject Link added with the absolute path When properties reopened again the link appears broken This link helped with external jars. http://tools.android.com/recent/dealingwithdependenciesinandroidprojects This is literally what I'm getting,

Using build types in Gradle libraries to run same app that uses ContentProvider on one device

杀马特。学长 韩版系。学妹 提交于 2019-12-11 11:36:48
问题 I'm having the issue where my Android Content Provider is not being recognized in a separate build variant from an Android library. I've followed most of the ideas in: Using build types in Gradle to run same app that uses ContentProvider on one device I also followed: http://www.kevinrschultz.com/blog/2014/03/23/using-android-content-providers-with-multiple-package-names/ When I try running the app, the parent application tries to import a java class from the FYC library listed in src/main

Appcompat-v7 conflict in android

北城以北 提交于 2019-12-11 10:12:58
问题 I ran into a nasty problem. In my project I have a library (.aar) file which is including an appcompat-v7 compatibility library. Now in my project I also have another appcompat-v7 under the dependency section of gradle.build (app) file.. The problem is when I run the Application it throws an exception saying UNEXPECTED TOP-LEVEL EXCEPTION:com.android.dex.DexException: Multiple dex files define Landroid/support/v7/appcompat/R$anim; Here is my application gradle.build (app) file relevant part

How can I edit the source of a gradle library and use the changes in my project?

♀尐吖头ヾ 提交于 2019-12-11 07:29:58
问题 Let's use Yalantis Phoenix Library as an example. I don't want to import the project via gradle, but I want to edit and use the source code of the library since the author provides no way to edit some of the files programatically. The way I've done, it is the following: Unzip folder File > New > Import Module (select Phoenix-master folder) Now, my gradle file has: dependencies { //... compile project(':library') } But the library doesn't compile. What step am I missing? I get the following

Unable to make Android library resources private?

雨燕双飞 提交于 2019-12-11 07:19:59
问题 created public.xml in values and added public resource there <resources> <public type="drawable" name="image_public"/> <public type="string" name="external_module_string_res_public"/> <public type="layout" name="activity_main_public"/> </resources> but still, I am able to access to all resource from library module in the Main project. tried this Chris Banes's instruction and this as well stackoverflow post using Android Studio 3.1.4 and classpath 'com.android.tools.build:gradle:3.1.4' 来源:

Using Firebase in a Library

时光怂恿深爱的人放手 提交于 2019-12-11 06:19:25
问题 I am trying to create a connection library for use in all of our Android applications. They will all use Firebase, but only to store the FCM Token for the devices, and to receive messages from Firebase console. Mainly the apps will connect to our backend server, which will make calls to a Firebase Functions url to get a custom login token, that is sent back to the library/device with some other data from our server. The library will then login to Firebase using the custom token it gets from

Building a jni lib for tux rider android application

匆匆过客 提交于 2019-12-11 05:58:10
问题 I've downloaded drodin's android app "Tux rider" source code, in order to build it my self. https://github.com/drodin/TuxRider in the application, there's a call for a library called "tuxrider" System.loadLibrary("tuxrider"); but there's no such library, and I'm not managing to figure out how to build one from all the files there. 回答1: There seem to be build scripts for that library in TuxRider/jni/tuxrider. You'll probably need to download Android NDK (http://developer.android.com/sdk/ndk

How can I start / disable background monitoring for beacons at runtime with AltBeacon Library for Android?

大兔子大兔子 提交于 2019-12-11 05:17:46
问题 the AltBeacon documentation say I need to initialize the library in the Application onCreate() for background monitoring. But I have the data needed to initialize it at runtime. Specifically at runtime (after a remote http service call) I know: IF beacon tracking should be started at all which regions to monitor Furthermore I may need to turn it off completely if some condition changes (remotely configured). What's the correct way with the current version of the library (2.5+) to handle this

How to add library project to an existing android project in AndroidStudio

╄→尐↘猪︶ㄣ 提交于 2019-12-11 05:14:31
问题 how can I add a custom library project (in my example the CuXtomCam library) to an existing android project using Android Studio 1.1? I've read about changing the build.gradle file. But where should I place the library ressources? Thank you in advance for all answers and comments! 回答1: To import library into Android Studio: select File > Import, and then select the directory containing the project to import. a wizard will open and guide you through the rest of the import process. When the