android-library

Changes to Android library project are not applied until restarting Eclipse

限于喜欢 提交于 2019-12-08 07:56:29
I have a main Android application that is using an Android library project. When I change my library project and Build Project or Build All the changes are not detected in main project until I clean the main project or close and reopen Eclipse. How con I solve this problem? Is there any rapid solution? Update I am using: Eclipse 3.7.1 Android SDK API 15 Rev 3 Android SDK Tools Rev 19 Android SDK Platform-tools Rev 11 Bobs Solution 1) I clicked on Android Dependencies in Package Explorer and pressed F5 (refresh) and built the main project and problem solved. Solution 2) this answer also works

Custom Horizontal StackView on the Android Platform

你离开我真会死。 提交于 2019-12-08 07:52:42
问题 I'm trying to design a UI on the Android Platform (Version 4.0) which would be similar to the Cover Flow design of the Apple App Store as seen from the iPad. (Please view the attached screenshot). ![CoverFlowA][1]: http://i.stack.imgur.com/pF2EC.png The nearest Android component to this, which I found is the StackView. QUESTIONS: 1. Is this the Correct Android component? If not, then which one to use? Is it possible to extend the StackView to mimic this UI? Is there any API/Library available

How to package an Android Library for Android Studio

女生的网名这么多〃 提交于 2019-12-08 05:46:10
问题 I'm maybe missing something but I do not get it. How and where can you publish your libs (done with Android Studio as a module) in order that the people just have to write (for example) compile 'se.emilsjolander:stickylistheaders:2.5.2' in their build.gradle ? I saw things like jCenter repositories but I've no experience with packaging and found it very confusing. Thanks for help! :) EDIT Of course, I want to publish a github project under Apache :) 回答1: https://jitpack.io/ is also a good

Artifactory Publish Android Library with Resources

依然范特西╮ 提交于 2019-12-08 03:22:01
问题 Problem: I am trying to create an Android Library which can be included in an application using: // Application's build.gradle compile 'com.mycompany:mylibrary:1.0.0' In my case, I am using Artifactory and I have gotten the above to work fine. The problem is when I try to run the application I a missing resources. The problem seems to be that my library has code that depends on resources which are not getting included in the jar published to Artifactory // Code in library, throws exception

importing ShowcaseView with gradle

江枫思渺然 提交于 2019-12-08 02:47:57
问题 I'm trying to use the ShowcaseView project in my app but can't get the project to build. when I run 'gradle clean installDebug' I get the following error: A problem occurred evaluating root project 'hows-it-going'. Could not find method compile() for arguments [project ':ShowcaseView'] on root project 'hows-it-going'. I'm using gradle 1.11 and Android Studio 0.54. I've downloaded the source, and imported the project using file -> Import module -> ShowcaseView which makes my project structure

Reporting Crashes in Android Library via Crashlytics

感情迁移 提交于 2019-12-07 16:19:41
问题 I am building an android library that I plan to integrate into many 3rd party apps(which do not belong to me). So, I am trying to figure out a way to find out if any of those 3rd party apps crashes due to the code in my library. Is there any way to find that out? I was looking at Crashlytics to achieve the same. But, as I understand, Crashlytics will be able to give the Crash analytics to only the app owner, right? Is there any way to collect the crash info without the intervention of the 3rd

Too many method references in android library project - ClassNotFoundException

流过昼夜 提交于 2019-12-07 10:54:00
问题 I have library project which I am using in main android project using AAR file. I am getting the famous 65k method limit now which I have expected, but I have few queries. I have added AAR file in libs folder of my main project and compiled the same in build.gradle. 1) Do I need to add multi-dex support in both library as well as main android project? 2) Do I need to add afterEvaluate script in both project? Most importantly if we got multi-dex working, we might get issue that in main android

How do I see source or javadocs for a library dependency in an Android package in Eclipse?

不羁的心 提交于 2019-12-07 04:29:00
问题 I have two packages^ in Eclipse. One is marked as a Library and the other references it (under properties->Android), as described here: http://developer.android.com/guide/developing/projects/projects-eclipse.html My problem is that when I hover the mouse over some code referring to the referenced project eclipse displays "This element has no attached javadoc and the javadoc could not be found in the attached source" Furthermore when I select "Open Declaration" in the context menu for said

How to programmatically check if a service is declared in AndroidManifest.xml?

回眸只為那壹抹淺笑 提交于 2019-12-07 03:25:13
问题 I'm writing a library that provides a Service that is used by other developers by including it in their project. As such, I don't have control over the AndroidManifest.xml. I explain what to do in the docs, but nevertheless a common problem is that people neglect to add the appropriate <service/> tag to their manifest, or add it in the wrong place. Right now, when my library calls startService while the service isn't declared in the manifest, the only thing that happens is that

Start Activity of Main project from my library project

可紊 提交于 2019-12-06 23:42:26
I have 2 projects. One is my Main Project(A) , and another is a Library Project(B). I want to start an activity which is present in A from an activity which is located in B. How do I do that ? I Tried startActivity(getApplicationContext(),B.class); ,but B.class is not resolved. How Can I let my library project start an activity of my main project ? You can add custom Action in intent-filter of you activity and start that activity by specifying action <activity android:name="my.package.MyActivity"> <intent-filter> <action android:name="my.package.action.MY_ACTION"/> <category android:name=